mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
18 lines
492 B
TypeScript
18 lines
492 B
TypeScript
import type { SubscriptionClaim } from '@prisma/client';
|
|
|
|
import { DEFAULT_MINIMUM_ENVELOPE_ITEM_COUNT } from '@documenso/ee/server-only/limits/constants';
|
|
|
|
export const generateDefaultSubscriptionClaim = (): Omit<
|
|
SubscriptionClaim,
|
|
'id' | 'organisation' | 'createdAt' | 'updatedAt' | 'originalSubscriptionClaimId'
|
|
> => {
|
|
return {
|
|
name: '',
|
|
teamCount: 1,
|
|
memberCount: 1,
|
|
envelopeItemCount: DEFAULT_MINIMUM_ENVELOPE_ITEM_COUNT,
|
|
locked: false,
|
|
flags: {},
|
|
};
|
|
};
|