@aptly-as/types
Version:
Aptly types and enums
21 lines (20 loc) • 629 B
TypeScript
import { AptlySignageSignerRef } from '../enums/index.js';
export type AptlySignage = AptlySignageSchema<string, string>;
export interface AptlySignageSchema<ID, DATE> {
hasReceivedFile: boolean;
documentId?: string;
document?: ID;
signedFile?: ID;
signed: boolean;
documentCreationDate?: DATE;
expireDate?: DATE;
signers: AptlySignageSignerSchema<ID, DATE>[];
}
export type AptlySignageSigner = AptlySignageSignerSchema<string, string>;
export interface AptlySignageSignerSchema<ID, DATE> {
_id: ID;
ref: AptlySignageSignerRef;
user?: ID;
signerId: string;
signedAt?: DATE;
}