UNPKG

@aptly-as/types

Version:
19 lines (18 loc) 513 B
export type AptlyInvite = AptlyInviteSchema<string, string>; export interface AptlyInviteSchema<ID, DATE> { _id: ID; code: string; created: DATE; createdBy: ID; sendCount: number; claim: AptlyInviteClaimSchema<ID, DATE>; } export type AptlyInviteClaim = AptlyInviteClaimSchema<string, string>; export interface AptlyInviteClaimSchema<ID, DATE> { email: string; fullName?: string; phone?: string; claimed?: boolean; claimedBy?: ID | null; claimTime?: DATE | null; }