211922b6a6
* first batch of changes * tests fix * FE fixed * renaming constants * test fixes * moar test fixes * another test fix * reenable app rover check --------- Co-authored-by: Gergő Jedlicska <gergo@jedlicska.com>
21 lines
487 B
TypeScript
21 lines
487 B
TypeScript
import { PaidWorkspacePlans, WorkspacePlanBillingIntervals } from '@speckle/shared'
|
|
|
|
export type WorkspacePricingProducts = PaidWorkspacePlans
|
|
|
|
export const Currency = {
|
|
usd: 'usd',
|
|
gbp: 'gbp'
|
|
} as const
|
|
|
|
type IntervalPrices = Record<
|
|
WorkspacePlanBillingIntervals,
|
|
{ amount: number; currency: string }
|
|
>
|
|
|
|
export type WorkspacePlanProductPrices = Record<
|
|
Currency,
|
|
Record<PaidWorkspacePlans, IntervalPrices>
|
|
>
|
|
|
|
export type Currency = (typeof Currency)[keyof typeof Currency]
|