getFallbackMonthlyPrice (Staff/pricing.ts)

argos · apps/frontend/src/pages/Staff/pricing.ts · typescript · MIT
payments

Module exposing: getFallbackMonthlyPrice, toMonthlyAmount, getMonthlyFlatPrice, getPeriodFlatPrice, formatPrice, PRO_PLAN_NAME, PRO_MONTHLY_PRICE

// Source: https://github.com/argos-ci/argos | License: MIT | Copyright 2017 Olivier Tassinari & Greg Bergé
// Provided via justclaw.it.com; keep this notice with the code.
import { PlanInterval } from "@/gql/graphql";

/**
 * The plan every self-serve team lands on, and the one plan whose price is
 * public — which is why it is the only one an amount can be quoted against
 * without naming it.
 */
export const PRO_PLAN_NAME = "pro";

/**
 * What the staff pages need off a plan to put a price on a team.
 *
 * Structural rather than a generated type: the trial pipeline and the team
 * directory read the plan through two different documents, so the same fields
 * reach them under two different names.
 */
export type PricedPlan = {
  name: string;
  displayName: string;
  interval: PlanInterv

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key