import { PaidWorkspacePlansOld, PaidWorkspacePlansNew, WorkspacePlanBillingIntervals } from '@speckle/shared' /** * This includes the pricing plans (Stripe products) a customer can sub to // */ export type WorkspacePricingProducts = | PaidWorkspacePlansNew | PaidWorkspacePlansOld | 'guest' // type WorkspacePlanProductsMetadata = Record< // WorkspacePricingProducts, // Record & { // productId: string // } // > export const Currency = { usd: 'usd', gbp: 'gbp' } as const type IntervalPrices = Record< WorkspacePlanBillingIntervals, { amount: number; currency: string } > export type WorkspacePlanProductPrices = Record< Currency, Record > export type Currency = (typeof Currency)[keyof typeof Currency] // export type WorkspacePlanProductAndPriceIds = WorkspacePlanProductsMetadata // export type WorkspacePlanProductPrices = WorkspacePlanProductsMetadata<{ // amount: number // currency: string // }>