-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathagreement.ts
More file actions
96 lines (86 loc) · 2.1 KB
/
agreement.ts
File metadata and controls
96 lines (86 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
export interface ExternalSource {
sourceName: string;
externalSourceId: string;
}
export interface Recipient {
email: string;
phone: string | null;
userId: string;
}
export interface Sender {
userId: string;
}
export interface Envelope {
id: string;
recipients: Recipient[];
sender: Sender;
subject: string;
}
export interface Party {
id: string;
name: string;
extractionReview?: string; //TODO: ajust
aliasGroup?: string; //TODO: ajust
fieldMetadata?: string; //TODO: ajust
reference?: string; //TODO: ajust
}
export interface Data {
agreementType: string;
clmLegacyCustomAttributes: string; //TODO: ajust
effectiveDate?: string;
envelope: Envelope;
etag: string; //TODO: ajust
expirationDate?: string;
extractionStatus: string;
governingLaw: string;
name: string;
parties?: Party[];
paymentTerms?: string; //TODO: ajust
renewal?: string; //TODO: ajust
terminationNoticePeriod?: string; //TODO: ajust
terminations?: string; //TODO: ajust
totalValue?: string; //TODO: ajust
}
export interface AgreementDocument {
id: string;
fileName?: string;
type?: string;
category?: string;
status?: string;
parties?: {
id: string;
nameInAgreement: string;
}[];
provisions?: {
effectiveDate?: string;
expirationDate?: string;
executionDate?: string;
paymentTermsDueDate?: string;
assignmentType?: string;
};
relatedAgreementDocuments?: Record<string, unknown>;
sourceName?: string;
sourceId?: string;
metadata?: {
createdAt: string;
modifiedAt: string;
modifiedBy: string;
};
additionalCustomEsignData?: {
[key: string]: {
label: string;
value: string;
$class: string;
valueString: string;
};
};
}
export interface MockedData {
ctoken: string | null;
agreementDocuments: AgreementDocument[];
}
export enum DocumentTypeModel {
OTHER_LETTER = 'OfferLetterDocumentData',
OTHER = 'OtherDocumentData',
ORDER_FORM = 'OrderFormDocumentData',
}