mirror of
https://github.com/documenso/documenso.git
synced 2026-06-22 04:12:06 +10:00
28 lines
710 B
TypeScript
28 lines
710 B
TypeScript
import {
|
|
DEFAULT_MINIMUM_ENVELOPE_ITEM_COUNT,
|
|
DEFAULT_RECIPIENT_COUNT,
|
|
} from '@documenso/ee/server-only/limits/constants';
|
|
import type { SubscriptionClaim } from '@prisma/client';
|
|
|
|
export const generateDefaultSubscriptionClaim = (): Omit<
|
|
SubscriptionClaim,
|
|
'id' | 'organisation' | 'createdAt' | 'updatedAt' | 'originalSubscriptionClaimId'
|
|
> => {
|
|
return {
|
|
name: '',
|
|
teamCount: 1,
|
|
memberCount: 1,
|
|
envelopeItemCount: DEFAULT_MINIMUM_ENVELOPE_ITEM_COUNT,
|
|
recipientCount: DEFAULT_RECIPIENT_COUNT,
|
|
locked: false,
|
|
flags: {},
|
|
|
|
documentRateLimits: [],
|
|
documentQuota: null,
|
|
emailRateLimits: [],
|
|
emailQuota: null,
|
|
apiRateLimits: [],
|
|
apiQuota: null,
|
|
};
|
|
};
|