archetecture security fix
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
export type AccessLevel = 'full' | 'limited' | 'read_only' | 'none';
|
||||
export declare const SUBSCRIPTION_POLICY: {
|
||||
readonly trial: {
|
||||
readonly durationDays: 14;
|
||||
readonly requiresPaymentMethod: false;
|
||||
readonly oneTrialPerCompany: true;
|
||||
};
|
||||
readonly payment: {
|
||||
readonly paymentPendingTimeoutDays: 7;
|
||||
readonly retryScheduleDays: readonly [0, 3, 6, 10, 14];
|
||||
readonly maxRetryAttempts: 5;
|
||||
};
|
||||
readonly pastDue: {
|
||||
readonly timeoutDays: 7;
|
||||
};
|
||||
readonly suspension: {
|
||||
readonly cancelAfterDays: 16;
|
||||
};
|
||||
readonly notifications: {
|
||||
readonly trialEndingDaysBefore: readonly [7, 3, 1];
|
||||
readonly paymentFailureDaysAfter: readonly [0, 3, 6];
|
||||
readonly pastDueDaysAfter: readonly [7];
|
||||
readonly suspensionDaysAfter: readonly [14];
|
||||
readonly cancellationDaysAfter: readonly [30];
|
||||
};
|
||||
};
|
||||
export declare const ACCESS_MAP: Record<string, AccessLevel>;
|
||||
export declare function getAccessLevel(status: string): AccessLevel;
|
||||
export declare function hasFullAccess(status: string): boolean;
|
||||
export declare function hasAnyAccess(status: string): boolean;
|
||||
//# sourceMappingURL=subscription.policy.d.ts.map
|
||||
Reference in New Issue
Block a user