mirror of
https://github.com/documenso/documenso.git
synced 2026-07-23 00:13:46 +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.
17 lines
491 B
TypeScript
17 lines
491 B
TypeScript
import { DEFAULT_MINIMUM_ENVELOPE_ITEM_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,
|
|
locked: false,
|
|
flags: {},
|
|
};
|
|
};
|