4b06f42db7
* sort of works * type fixes * added option to run old way too
21 lines
492 B
TypeScript
21 lines
492 B
TypeScript
import type { 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]
|