mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 11:41:44 +10:00
feat: billing
This commit is contained in:
25
packages/lib/utils/organisations-claims.ts
Normal file
25
packages/lib/utils/organisations-claims.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import type { OrganisationClaim, SubscriptionClaim } from '@prisma/client';
|
||||
|
||||
export const generateDefaultOrganisationClaims = (): Omit<
|
||||
OrganisationClaim,
|
||||
'id' | 'organisation' | 'createdAt' | 'updatedAt' | 'originalSubscriptionClaimId'
|
||||
> => {
|
||||
return {
|
||||
teamCount: 1,
|
||||
memberCount: 1,
|
||||
flags: {},
|
||||
};
|
||||
};
|
||||
|
||||
export const generateDefaultSubscriptionClaim = (): Omit<
|
||||
SubscriptionClaim,
|
||||
'id' | 'organisation' | 'createdAt' | 'updatedAt' | 'originalSubscriptionClaimId'
|
||||
> => {
|
||||
return {
|
||||
name: '',
|
||||
teamCount: 1,
|
||||
memberCount: 1,
|
||||
locked: false,
|
||||
flags: {},
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user