mirror of
https://github.com/documenso/documenso.git
synced 2026-07-09 12:35:04 +10:00
138d663c25
Merge origin/main into feat/external-2fa-codes. Resolve formatting conflicts caused by biome rollout; preserve both feature streams: PR's external 2FA token + signing-session 2FA proof additions plus main's RateLimit/RecipientExpired/signingReminders/date-auto-insert. In complete-document-with-token.ts, drop the duplicate early field-fetching block introduced when main moved that logic later with date auto-insert support; keep the EXTERNAL_TWO_FACTOR_AUTH check using derivedRecipientActionAuth.
29 lines
681 B
TypeScript
29 lines
681 B
TypeScript
import { msg } from '@lingui/core/macro';
|
|
import { SubscriptionStatus } from '@prisma/client';
|
|
|
|
export enum STRIPE_PLAN_TYPE {
|
|
FREE = 'free',
|
|
INDIVIDUAL = 'individual',
|
|
PRO = 'pro',
|
|
EARLY_ADOPTER = 'earlyAdopter',
|
|
PLATFORM = 'platform',
|
|
ENTERPRISE = 'enterprise',
|
|
}
|
|
|
|
export const FREE_TIER_DOCUMENT_QUOTA = 5;
|
|
|
|
export const SUBSCRIPTION_STATUS_MAP = {
|
|
[SubscriptionStatus.ACTIVE]: msg({
|
|
message: 'Active',
|
|
context: 'Subscription status',
|
|
}),
|
|
[SubscriptionStatus.INACTIVE]: msg({
|
|
message: 'Inactive',
|
|
context: 'Subscription status',
|
|
}),
|
|
[SubscriptionStatus.PAST_DUE]: msg({
|
|
message: 'Past Due',
|
|
context: 'Subscription status',
|
|
}),
|
|
};
|