Files
speckle-server/packages/server/modules/gatekeeperCore/domain/billing.ts
T
Kristaps Fabians Geikins 4b06f42db7 chore(server): run TS files directly (no compilation) (#5134)
* sort of works

* type fixes

* added option to run old way too
2025-07-23 11:20:40 +02:00

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]