@d19n/youfibre-odin-sdk 2.0.371 → 2.0.372
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
- package/dist/actions-v2/OrderBuilderUpdateContactDto.d.ts +182 -0
- package/dist/actions-v2/OrderBuilderUpdateContactDto.js +56 -0
- package/dist/actions-v2/UpdateoutbounddialcampaignDto.d.ts +8 -1
- package/dist/entities-v2/Document.d.ts +821 -12
- package/dist/entities-v2/Document.js +63 -1
- package/dist/entities-v2/DocumentProcessing.d.ts +7 -1
- package/dist/entities-v2/DocumentProcessing.js +6 -0
- package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
- package/dist/entities-v2/OutboundDialCampaign.js +2 -0
- package/dist/entities-v2/Returns.d.ts +30 -30
- package/dist/entities-v2/Returns.js +30 -30
- package/dist/records-v2/ContactRecord.d.ts +27 -0
- package/dist/records-v2/ContactRecord.js +29 -0
- package/dist/records-v2/DocumentRecord.d.ts +35 -3
- package/dist/records-v2/DocumentRecord.js +33 -1
- package/package.json +1 -1
|
@@ -12,15 +12,19 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ROUTING_KEY_LINK_DOCUMENT_DOCUMENT_PROCESSING_DELETED = exports.ROUTING_KEY_LINK_DOCUMENT_DOCUMENT_PROCESSING_CREATED = exports.ROUTING_KEY_LINK_DOCUMENT_FILE_DELETED = exports.ROUTING_KEY_LINK_DOCUMENT_FILE_CREATED = exports.ROUTING_KEY_DOCUMENT_OUTCOME_FORM_DELETED = exports.ROUTING_KEY_DOCUMENT_OUTCOME_FORM_UPDATED = exports.ROUTING_KEY_DOCUMENT_OUTCOME_FORM_CREATED = exports.ROUTING_KEY_DOCUMENT_OTHER_DELETED = exports.ROUTING_KEY_DOCUMENT_OTHER_UPDATED = exports.ROUTING_KEY_DOCUMENT_OTHER_CREATED = exports.ROUTING_KEY_DOCUMENT_INVOICE_DELETED = exports.ROUTING_KEY_DOCUMENT_INVOICE_UPDATED = exports.ROUTING_KEY_DOCUMENT_INVOICE_CREATED = exports.ROUTING_KEY_DOCUMENT_EMAIL_ATTACHMENT_DELETED = exports.ROUTING_KEY_DOCUMENT_EMAIL_ATTACHMENT_UPDATED = exports.ROUTING_KEY_DOCUMENT_EMAIL_ATTACHMENT_CREATED = exports.ROUTING_KEY_DOCUMENT_DEFAULT_DELETED = exports.ROUTING_KEY_DOCUMENT_DEFAULT_UPDATED = exports.ROUTING_KEY_DOCUMENT_DEFAULT_CREATED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_DELETED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_UPDATED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_CREATED = exports.ROUTING_KEY_DOCUMENT_DELETED = exports.ROUTING_KEY_DOCUMENT_UPDATED = exports.ROUTING_KEY_DOCUMENT_CREATED = exports.Document = exports.DocumentPropertyKeys = exports.DocumentCatalogStatus = exports.DocumentSubmittedVia = exports.DocumentFormat = exports.DocumentEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_DOCUMENT_DOCUMENT_PROCESSING_DELETED = exports.ROUTING_KEY_LINK_DOCUMENT_DOCUMENT_PROCESSING_CREATED = exports.ROUTING_KEY_LINK_DOCUMENT_FILE_DELETED = exports.ROUTING_KEY_LINK_DOCUMENT_FILE_CREATED = exports.ROUTING_KEY_DOCUMENT_OUTCOME_FORM_DELETED = exports.ROUTING_KEY_DOCUMENT_OUTCOME_FORM_UPDATED = exports.ROUTING_KEY_DOCUMENT_OUTCOME_FORM_CREATED = exports.ROUTING_KEY_DOCUMENT_OTHER_DELETED = exports.ROUTING_KEY_DOCUMENT_OTHER_UPDATED = exports.ROUTING_KEY_DOCUMENT_OTHER_CREATED = exports.ROUTING_KEY_DOCUMENT_INVOICE_DELETED = exports.ROUTING_KEY_DOCUMENT_INVOICE_UPDATED = exports.ROUTING_KEY_DOCUMENT_INVOICE_CREATED = exports.ROUTING_KEY_DOCUMENT_EMAIL_ATTACHMENT_DELETED = exports.ROUTING_KEY_DOCUMENT_EMAIL_ATTACHMENT_UPDATED = exports.ROUTING_KEY_DOCUMENT_EMAIL_ATTACHMENT_CREATED = exports.ROUTING_KEY_DOCUMENT_DEFAULT_DELETED = exports.ROUTING_KEY_DOCUMENT_DEFAULT_UPDATED = exports.ROUTING_KEY_DOCUMENT_DEFAULT_CREATED = exports.ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_DELETED = exports.ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_UPDATED = exports.ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_CREATED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_DELETED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_UPDATED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_CREATED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_DELETED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_UPDATED = exports.ROUTING_KEY_DOCUMENT_CONTRACT_CREATED = exports.ROUTING_KEY_DOCUMENT_DELETED = exports.ROUTING_KEY_DOCUMENT_UPDATED = exports.ROUTING_KEY_DOCUMENT_CREATED = exports.Document = exports.DocumentPropertyKeys = exports.DocumentFieldsReviewState = exports.DocumentCatalogStatus = exports.DocumentSubmittedVia = exports.DocumentFormat = exports.DocumentEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for Document records
|
|
19
19
|
*/
|
|
20
20
|
var DocumentEntityTypes;
|
|
21
21
|
(function (DocumentEntityTypes) {
|
|
22
|
+
/** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. */
|
|
23
|
+
DocumentEntityTypes["CONTRACT"] = "CONTRACT";
|
|
22
24
|
/** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). */
|
|
23
25
|
DocumentEntityTypes["CONTRACT_BUYOUT"] = "CONTRACT_BUYOUT";
|
|
26
|
+
/** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. */
|
|
27
|
+
DocumentEntityTypes["CORPORATE_DOCUMENT"] = "CORPORATE_DOCUMENT";
|
|
24
28
|
/** This is the default record type */
|
|
25
29
|
DocumentEntityTypes["DEFAULT"] = "DEFAULT";
|
|
26
30
|
/** A file attached to an inbound or outbound email. */
|
|
@@ -81,17 +85,45 @@ var DocumentSubmittedVia;
|
|
|
81
85
|
*
|
|
82
86
|
* @remarks Available options:
|
|
83
87
|
* - `CATALOGUED` - Catalogued
|
|
88
|
+
* - `DELETED` - Deleted
|
|
84
89
|
* - `DESCRIBED` - Described
|
|
85
90
|
* - `DESCRIBE_FAILED` - Describe failed
|
|
86
91
|
* - `DESCRIBE_PENDING` - Describe pending
|
|
92
|
+
* - `EMBEDDED` - Embedded
|
|
93
|
+
* - `EMBED_FAILED` - Embed failed
|
|
94
|
+
* - `READ` - Read
|
|
95
|
+
* - `READ_FAILED` - Read failed
|
|
96
|
+
* - `READY` - Ready
|
|
87
97
|
*/
|
|
88
98
|
var DocumentCatalogStatus;
|
|
89
99
|
(function (DocumentCatalogStatus) {
|
|
90
100
|
DocumentCatalogStatus["CATALOGUED"] = "CATALOGUED";
|
|
101
|
+
DocumentCatalogStatus["DELETED"] = "DELETED";
|
|
91
102
|
DocumentCatalogStatus["DESCRIBED"] = "DESCRIBED";
|
|
92
103
|
DocumentCatalogStatus["DESCRIBE_FAILED"] = "DESCRIBE_FAILED";
|
|
93
104
|
DocumentCatalogStatus["DESCRIBE_PENDING"] = "DESCRIBE_PENDING";
|
|
105
|
+
DocumentCatalogStatus["EMBEDDED"] = "EMBEDDED";
|
|
106
|
+
DocumentCatalogStatus["EMBED_FAILED"] = "EMBED_FAILED";
|
|
107
|
+
DocumentCatalogStatus["READ"] = "READ";
|
|
108
|
+
DocumentCatalogStatus["READ_FAILED"] = "READ_FAILED";
|
|
109
|
+
DocumentCatalogStatus["READY"] = "READY";
|
|
94
110
|
})(DocumentCatalogStatus = exports.DocumentCatalogStatus || (exports.DocumentCatalogStatus = {}));
|
|
111
|
+
/**
|
|
112
|
+
* Valid values for Document.FieldsReviewState
|
|
113
|
+
*
|
|
114
|
+
* Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
|
|
115
|
+
*
|
|
116
|
+
* @remarks Available options:
|
|
117
|
+
* - `CONFIRMED` - Confirmed
|
|
118
|
+
* - `NEEDS_REVIEW` - Needs review
|
|
119
|
+
* - `NOT_EXTRACTED` - Not extracted
|
|
120
|
+
*/
|
|
121
|
+
var DocumentFieldsReviewState;
|
|
122
|
+
(function (DocumentFieldsReviewState) {
|
|
123
|
+
DocumentFieldsReviewState["CONFIRMED"] = "CONFIRMED";
|
|
124
|
+
DocumentFieldsReviewState["NEEDS_REVIEW"] = "NEEDS_REVIEW";
|
|
125
|
+
DocumentFieldsReviewState["NOT_EXTRACTED"] = "NOT_EXTRACTED";
|
|
126
|
+
})(DocumentFieldsReviewState = exports.DocumentFieldsReviewState || (exports.DocumentFieldsReviewState = {}));
|
|
95
127
|
/**
|
|
96
128
|
* Property keys for Document
|
|
97
129
|
* Use these constants instead of string literals for type safety
|
|
@@ -146,6 +178,24 @@ var DocumentPropertyKeys;
|
|
|
146
178
|
DocumentPropertyKeys["LastProcessedAt"] = "LastProcessedAt";
|
|
147
179
|
/** Id of the most recent DocumentProcessing row. */
|
|
148
180
|
DocumentPropertyKeys["LastProcessingId"] = "LastProcessingId";
|
|
181
|
+
/** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report. */
|
|
182
|
+
DocumentPropertyKeys["IsTemplate"] = "IsTemplate";
|
|
183
|
+
/** The parties as the document names them, separated by " and ". A blank in a template is left blank. */
|
|
184
|
+
DocumentPropertyKeys["Parties"] = "Parties";
|
|
185
|
+
/** The party that is not us. Blank in a template. */
|
|
186
|
+
DocumentPropertyKeys["Counterparty"] = "Counterparty";
|
|
187
|
+
/** The date the document is dated or was adopted. Blank in a template. */
|
|
188
|
+
DocumentPropertyKeys["DocumentDate"] = "DocumentDate";
|
|
189
|
+
/** The term or confidentiality period in months, when the document states one. */
|
|
190
|
+
DocumentPropertyKeys["TermMonths"] = "TermMonths";
|
|
191
|
+
/** The governing law as the document names it, e.g. England and Wales. */
|
|
192
|
+
DocumentPropertyKeys["GoverningLaw"] = "GoverningLaw";
|
|
193
|
+
/** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed. */
|
|
194
|
+
DocumentPropertyKeys["FieldsReviewState"] = "FieldsReviewState";
|
|
195
|
+
/** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history. */
|
|
196
|
+
DocumentPropertyKeys["FolderKey"] = "FolderKey";
|
|
197
|
+
/** How many sections the read step produced; equals the number of vectors. */
|
|
198
|
+
DocumentPropertyKeys["SectionCount"] = "SectionCount";
|
|
149
199
|
})(DocumentPropertyKeys = exports.DocumentPropertyKeys || (exports.DocumentPropertyKeys = {}));
|
|
150
200
|
/**
|
|
151
201
|
* Document entity from AiModule
|
|
@@ -174,12 +224,24 @@ exports.ROUTING_KEY_DOCUMENT_DELETED = 'AiModule.Document.SubDbRecordDeleted';
|
|
|
174
224
|
* Type-specific routing keys for Document events
|
|
175
225
|
* Subscribe to these for events on specific entity types only
|
|
176
226
|
*/
|
|
227
|
+
/** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. created */
|
|
228
|
+
exports.ROUTING_KEY_DOCUMENT_CONTRACT_CREATED = 'AiModule.Document.CONTRACT.SubDbRecordCreated';
|
|
229
|
+
/** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. updated */
|
|
230
|
+
exports.ROUTING_KEY_DOCUMENT_CONTRACT_UPDATED = 'AiModule.Document.CONTRACT.SubDbRecordUpdated';
|
|
231
|
+
/** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. deleted */
|
|
232
|
+
exports.ROUTING_KEY_DOCUMENT_CONTRACT_DELETED = 'AiModule.Document.CONTRACT.SubDbRecordDeleted';
|
|
177
233
|
/** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). created */
|
|
178
234
|
exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_CREATED = 'AiModule.Document.CONTRACT_BUYOUT.SubDbRecordCreated';
|
|
179
235
|
/** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). updated */
|
|
180
236
|
exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_UPDATED = 'AiModule.Document.CONTRACT_BUYOUT.SubDbRecordUpdated';
|
|
181
237
|
/** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). deleted */
|
|
182
238
|
exports.ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_DELETED = 'AiModule.Document.CONTRACT_BUYOUT.SubDbRecordDeleted';
|
|
239
|
+
/** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. created */
|
|
240
|
+
exports.ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_CREATED = 'AiModule.Document.CORPORATE_DOCUMENT.SubDbRecordCreated';
|
|
241
|
+
/** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. updated */
|
|
242
|
+
exports.ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_UPDATED = 'AiModule.Document.CORPORATE_DOCUMENT.SubDbRecordUpdated';
|
|
243
|
+
/** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. deleted */
|
|
244
|
+
exports.ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_DELETED = 'AiModule.Document.CORPORATE_DOCUMENT.SubDbRecordDeleted';
|
|
183
245
|
/** This is the default record type created */
|
|
184
246
|
exports.ROUTING_KEY_DOCUMENT_DEFAULT_CREATED = 'AiModule.Document.DEFAULT.SubDbRecordCreated';
|
|
185
247
|
/** This is the default record type updated */
|
|
@@ -27,17 +27,23 @@ export declare enum DocumentProcessingEntityTypes {
|
|
|
27
27
|
*
|
|
28
28
|
* @remarks Available options:
|
|
29
29
|
* - `CBO_FINAL_BILL_CHECK` - CBO final bill check
|
|
30
|
+
* - `CHAT` - Chat
|
|
30
31
|
* - `DESCRIBE` - Describe
|
|
31
32
|
* - `EMBED` - Embed
|
|
33
|
+
* - `EXTRACT_FIELDS` - Extract fields
|
|
32
34
|
* - `EXTRACT` - Extract text
|
|
33
35
|
* - `OUTCOME_FORM_REVIEW` - Outcome form review
|
|
36
|
+
* - `TEMPLATE_REPORT` - Template report
|
|
34
37
|
*/
|
|
35
38
|
export declare enum DocumentProcessingUseCase {
|
|
36
39
|
CBO_FINAL_BILL_CHECK = "CBO_FINAL_BILL_CHECK",
|
|
40
|
+
CHAT = "CHAT",
|
|
37
41
|
DESCRIBE = "DESCRIBE",
|
|
38
42
|
EMBED = "EMBED",
|
|
43
|
+
EXTRACT_FIELDS = "EXTRACT_FIELDS",
|
|
39
44
|
EXTRACT_TEXT = "EXTRACT",
|
|
40
|
-
OUTCOME_FORM_REVIEW = "OUTCOME_FORM_REVIEW"
|
|
45
|
+
OUTCOME_FORM_REVIEW = "OUTCOME_FORM_REVIEW",
|
|
46
|
+
TEMPLATE_REPORT = "TEMPLATE_REPORT"
|
|
41
47
|
}
|
|
42
48
|
/**
|
|
43
49
|
* Valid values for DocumentProcessing.Provider
|
|
@@ -29,18 +29,24 @@ var DocumentProcessingEntityTypes;
|
|
|
29
29
|
*
|
|
30
30
|
* @remarks Available options:
|
|
31
31
|
* - `CBO_FINAL_BILL_CHECK` - CBO final bill check
|
|
32
|
+
* - `CHAT` - Chat
|
|
32
33
|
* - `DESCRIBE` - Describe
|
|
33
34
|
* - `EMBED` - Embed
|
|
35
|
+
* - `EXTRACT_FIELDS` - Extract fields
|
|
34
36
|
* - `EXTRACT` - Extract text
|
|
35
37
|
* - `OUTCOME_FORM_REVIEW` - Outcome form review
|
|
38
|
+
* - `TEMPLATE_REPORT` - Template report
|
|
36
39
|
*/
|
|
37
40
|
var DocumentProcessingUseCase;
|
|
38
41
|
(function (DocumentProcessingUseCase) {
|
|
39
42
|
DocumentProcessingUseCase["CBO_FINAL_BILL_CHECK"] = "CBO_FINAL_BILL_CHECK";
|
|
43
|
+
DocumentProcessingUseCase["CHAT"] = "CHAT";
|
|
40
44
|
DocumentProcessingUseCase["DESCRIBE"] = "DESCRIBE";
|
|
41
45
|
DocumentProcessingUseCase["EMBED"] = "EMBED";
|
|
46
|
+
DocumentProcessingUseCase["EXTRACT_FIELDS"] = "EXTRACT_FIELDS";
|
|
42
47
|
DocumentProcessingUseCase["EXTRACT_TEXT"] = "EXTRACT";
|
|
43
48
|
DocumentProcessingUseCase["OUTCOME_FORM_REVIEW"] = "OUTCOME_FORM_REVIEW";
|
|
49
|
+
DocumentProcessingUseCase["TEMPLATE_REPORT"] = "TEMPLATE_REPORT";
|
|
44
50
|
})(DocumentProcessingUseCase = exports.DocumentProcessingUseCase || (exports.DocumentProcessingUseCase = {}));
|
|
45
51
|
/**
|
|
46
52
|
* Valid values for DocumentProcessing.Provider
|
|
@@ -56,7 +56,9 @@ export declare enum OutboundDialCampaignPropertyKeys {
|
|
|
56
56
|
/** Override Twilio CLI Outbound number in case needed for different campaigns */
|
|
57
57
|
CallerId = "CallerId",
|
|
58
58
|
/** How cases reach agents: SELF_SELECT (agents pick from the queue) or ROUND_ROBIN (the dialler hands new cases to agents in turn, CASES-1984). Empty means SELF_SELECT. */
|
|
59
|
-
DistributionMode = "DistributionMode"
|
|
59
|
+
DistributionMode = "DistributionMode",
|
|
60
|
+
/** When true, agents on this campaign record the retention RET outcomes and give a reason when they skip a case (CASES-1993). Empty means false. */
|
|
61
|
+
RetentionCampaign = "RetentionCampaign"
|
|
60
62
|
}
|
|
61
63
|
/**
|
|
62
64
|
* Properties for OutboundDialCampaign records
|
|
@@ -110,6 +112,12 @@ export interface OutboundDialCampaignProperties {
|
|
|
110
112
|
* @default
|
|
111
113
|
*/
|
|
112
114
|
DistributionMode: string;
|
|
115
|
+
/** When true, agents on this campaign record the retention RET outcomes and give a reason when they skip a case (CASES-1993). Empty means false.
|
|
116
|
+
*
|
|
117
|
+
* @type {BOOLEAN}
|
|
118
|
+
* @default
|
|
119
|
+
*/
|
|
120
|
+
RetentionCampaign: boolean;
|
|
113
121
|
}
|
|
114
122
|
/**
|
|
115
123
|
* OutboundDialCampaign entity from SupportModule
|
|
@@ -58,6 +58,8 @@ var OutboundDialCampaignPropertyKeys;
|
|
|
58
58
|
OutboundDialCampaignPropertyKeys["CallerId"] = "CallerId";
|
|
59
59
|
/** How cases reach agents: SELF_SELECT (agents pick from the queue) or ROUND_ROBIN (the dialler hands new cases to agents in turn, CASES-1984). Empty means SELF_SELECT. */
|
|
60
60
|
OutboundDialCampaignPropertyKeys["DistributionMode"] = "DistributionMode";
|
|
61
|
+
/** When true, agents on this campaign record the retention RET outcomes and give a reason when they skip a case (CASES-1993). Empty means false. */
|
|
62
|
+
OutboundDialCampaignPropertyKeys["RetentionCampaign"] = "RetentionCampaign";
|
|
61
63
|
})(OutboundDialCampaignPropertyKeys = exports.OutboundDialCampaignPropertyKeys || (exports.OutboundDialCampaignPropertyKeys = {}));
|
|
62
64
|
/**
|
|
63
65
|
* OutboundDialCampaign entity from SupportModule
|
|
@@ -218,14 +218,14 @@ export declare enum ReturnsCpe4Type {
|
|
|
218
218
|
* Cpe 5 Grade (Field Operations - Returns)
|
|
219
219
|
*
|
|
220
220
|
* @remarks Available options:
|
|
221
|
-
* - `
|
|
222
|
-
* - `
|
|
223
|
-
* - `
|
|
221
|
+
* - `E` - Fail - Cosmetic
|
|
222
|
+
* - `F` - Fail - Technical
|
|
223
|
+
* - `D` - Pass
|
|
224
224
|
*/
|
|
225
225
|
export declare enum ReturnsCpe5Grade {
|
|
226
|
-
FAIL_COSMETIC = "
|
|
227
|
-
FAIL_TECHNICAL = "
|
|
228
|
-
PASS = "
|
|
226
|
+
FAIL_COSMETIC = "E",
|
|
227
|
+
FAIL_TECHNICAL = "F",
|
|
228
|
+
PASS = "D"
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
231
|
* Valid values for Returns.Cpe3Model
|
|
@@ -283,14 +283,14 @@ export declare enum ReturnsCpe3Model {
|
|
|
283
283
|
* Cpe 1 Grade (Field Operations - Returns)
|
|
284
284
|
*
|
|
285
285
|
* @remarks Available options:
|
|
286
|
-
* - `
|
|
287
|
-
* - `
|
|
288
|
-
* - `
|
|
286
|
+
* - `E` - Fail - Cosmetic
|
|
287
|
+
* - `F` - Fail - Technical
|
|
288
|
+
* - `D` - Pass
|
|
289
289
|
*/
|
|
290
290
|
export declare enum ReturnsCpe1Grade {
|
|
291
|
-
FAIL_COSMETIC = "
|
|
292
|
-
FAIL_TECHNICAL = "
|
|
293
|
-
PASS = "
|
|
291
|
+
FAIL_COSMETIC = "E",
|
|
292
|
+
FAIL_TECHNICAL = "F",
|
|
293
|
+
PASS = "D"
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* Valid values for Returns.Cpe2Type
|
|
@@ -473,14 +473,14 @@ export declare enum ReturnsCpe2Model {
|
|
|
473
473
|
* Cpe 4 Grade (Field Operations - Returns)
|
|
474
474
|
*
|
|
475
475
|
* @remarks Available options:
|
|
476
|
-
* - `
|
|
477
|
-
* - `
|
|
478
|
-
* - `
|
|
476
|
+
* - `E` - Fail - Cosmetic
|
|
477
|
+
* - `F` - Fail - Technical
|
|
478
|
+
* - `D` - Pass
|
|
479
479
|
*/
|
|
480
480
|
export declare enum ReturnsCpe4Grade {
|
|
481
|
-
FAIL_COSMETIC = "
|
|
482
|
-
FAIL_TECHNICAL = "
|
|
483
|
-
PASS = "
|
|
481
|
+
FAIL_COSMETIC = "E",
|
|
482
|
+
FAIL_TECHNICAL = "F",
|
|
483
|
+
PASS = "D"
|
|
484
484
|
}
|
|
485
485
|
/**
|
|
486
486
|
* Valid values for Returns.InspectedBy
|
|
@@ -507,14 +507,14 @@ export declare enum ReturnsInspectedBy {
|
|
|
507
507
|
* Cpe 3 Grade (Field Operations - Returns)
|
|
508
508
|
*
|
|
509
509
|
* @remarks Available options:
|
|
510
|
-
* - `
|
|
511
|
-
* - `
|
|
512
|
-
* - `
|
|
510
|
+
* - `E` - Fail - Cosmetic
|
|
511
|
+
* - `F` - Fail - Technical
|
|
512
|
+
* - `D` - Pass
|
|
513
513
|
*/
|
|
514
514
|
export declare enum ReturnsCpe3Grade {
|
|
515
|
-
FAIL_COSMETIC = "
|
|
516
|
-
FAIL_TECHNICAL = "
|
|
517
|
-
PASS = "
|
|
515
|
+
FAIL_COSMETIC = "E",
|
|
516
|
+
FAIL_TECHNICAL = "F",
|
|
517
|
+
PASS = "D"
|
|
518
518
|
}
|
|
519
519
|
/**
|
|
520
520
|
* Valid values for Returns.Tv1Type
|
|
@@ -535,14 +535,14 @@ export declare enum ReturnsTv1Type {
|
|
|
535
535
|
* Cpe 2 Grade (Field Operations - Returns)
|
|
536
536
|
*
|
|
537
537
|
* @remarks Available options:
|
|
538
|
-
* - `
|
|
539
|
-
* - `
|
|
540
|
-
* - `
|
|
538
|
+
* - `E` - Fail - Cosmetic
|
|
539
|
+
* - `F` - Fail - Technical
|
|
540
|
+
* - `D` - Pass
|
|
541
541
|
*/
|
|
542
542
|
export declare enum ReturnsCpe2Grade {
|
|
543
|
-
FAIL_COSMETIC = "
|
|
544
|
-
FAIL_TECHNICAL = "
|
|
545
|
-
PASS = "
|
|
543
|
+
FAIL_COSMETIC = "E",
|
|
544
|
+
FAIL_TECHNICAL = "F",
|
|
545
|
+
PASS = "D"
|
|
546
546
|
}
|
|
547
547
|
/**
|
|
548
548
|
* Property keys for Returns
|
|
@@ -225,15 +225,15 @@ var ReturnsCpe4Type;
|
|
|
225
225
|
* Cpe 5 Grade (Field Operations - Returns)
|
|
226
226
|
*
|
|
227
227
|
* @remarks Available options:
|
|
228
|
-
* - `
|
|
229
|
-
* - `
|
|
230
|
-
* - `
|
|
228
|
+
* - `E` - Fail - Cosmetic
|
|
229
|
+
* - `F` - Fail - Technical
|
|
230
|
+
* - `D` - Pass
|
|
231
231
|
*/
|
|
232
232
|
var ReturnsCpe5Grade;
|
|
233
233
|
(function (ReturnsCpe5Grade) {
|
|
234
|
-
ReturnsCpe5Grade["FAIL_COSMETIC"] = "
|
|
235
|
-
ReturnsCpe5Grade["FAIL_TECHNICAL"] = "
|
|
236
|
-
ReturnsCpe5Grade["PASS"] = "
|
|
234
|
+
ReturnsCpe5Grade["FAIL_COSMETIC"] = "E";
|
|
235
|
+
ReturnsCpe5Grade["FAIL_TECHNICAL"] = "F";
|
|
236
|
+
ReturnsCpe5Grade["PASS"] = "D";
|
|
237
237
|
})(ReturnsCpe5Grade = exports.ReturnsCpe5Grade || (exports.ReturnsCpe5Grade = {}));
|
|
238
238
|
/**
|
|
239
239
|
* Valid values for Returns.Cpe3Model
|
|
@@ -292,15 +292,15 @@ var ReturnsCpe3Model;
|
|
|
292
292
|
* Cpe 1 Grade (Field Operations - Returns)
|
|
293
293
|
*
|
|
294
294
|
* @remarks Available options:
|
|
295
|
-
* - `
|
|
296
|
-
* - `
|
|
297
|
-
* - `
|
|
295
|
+
* - `E` - Fail - Cosmetic
|
|
296
|
+
* - `F` - Fail - Technical
|
|
297
|
+
* - `D` - Pass
|
|
298
298
|
*/
|
|
299
299
|
var ReturnsCpe1Grade;
|
|
300
300
|
(function (ReturnsCpe1Grade) {
|
|
301
|
-
ReturnsCpe1Grade["FAIL_COSMETIC"] = "
|
|
302
|
-
ReturnsCpe1Grade["FAIL_TECHNICAL"] = "
|
|
303
|
-
ReturnsCpe1Grade["PASS"] = "
|
|
301
|
+
ReturnsCpe1Grade["FAIL_COSMETIC"] = "E";
|
|
302
|
+
ReturnsCpe1Grade["FAIL_TECHNICAL"] = "F";
|
|
303
|
+
ReturnsCpe1Grade["PASS"] = "D";
|
|
304
304
|
})(ReturnsCpe1Grade = exports.ReturnsCpe1Grade || (exports.ReturnsCpe1Grade = {}));
|
|
305
305
|
/**
|
|
306
306
|
* Valid values for Returns.Cpe2Type
|
|
@@ -488,15 +488,15 @@ var ReturnsCpe2Model;
|
|
|
488
488
|
* Cpe 4 Grade (Field Operations - Returns)
|
|
489
489
|
*
|
|
490
490
|
* @remarks Available options:
|
|
491
|
-
* - `
|
|
492
|
-
* - `
|
|
493
|
-
* - `
|
|
491
|
+
* - `E` - Fail - Cosmetic
|
|
492
|
+
* - `F` - Fail - Technical
|
|
493
|
+
* - `D` - Pass
|
|
494
494
|
*/
|
|
495
495
|
var ReturnsCpe4Grade;
|
|
496
496
|
(function (ReturnsCpe4Grade) {
|
|
497
|
-
ReturnsCpe4Grade["FAIL_COSMETIC"] = "
|
|
498
|
-
ReturnsCpe4Grade["FAIL_TECHNICAL"] = "
|
|
499
|
-
ReturnsCpe4Grade["PASS"] = "
|
|
497
|
+
ReturnsCpe4Grade["FAIL_COSMETIC"] = "E";
|
|
498
|
+
ReturnsCpe4Grade["FAIL_TECHNICAL"] = "F";
|
|
499
|
+
ReturnsCpe4Grade["PASS"] = "D";
|
|
500
500
|
})(ReturnsCpe4Grade = exports.ReturnsCpe4Grade || (exports.ReturnsCpe4Grade = {}));
|
|
501
501
|
/**
|
|
502
502
|
* Valid values for Returns.InspectedBy
|
|
@@ -524,15 +524,15 @@ var ReturnsInspectedBy;
|
|
|
524
524
|
* Cpe 3 Grade (Field Operations - Returns)
|
|
525
525
|
*
|
|
526
526
|
* @remarks Available options:
|
|
527
|
-
* - `
|
|
528
|
-
* - `
|
|
529
|
-
* - `
|
|
527
|
+
* - `E` - Fail - Cosmetic
|
|
528
|
+
* - `F` - Fail - Technical
|
|
529
|
+
* - `D` - Pass
|
|
530
530
|
*/
|
|
531
531
|
var ReturnsCpe3Grade;
|
|
532
532
|
(function (ReturnsCpe3Grade) {
|
|
533
|
-
ReturnsCpe3Grade["FAIL_COSMETIC"] = "
|
|
534
|
-
ReturnsCpe3Grade["FAIL_TECHNICAL"] = "
|
|
535
|
-
ReturnsCpe3Grade["PASS"] = "
|
|
533
|
+
ReturnsCpe3Grade["FAIL_COSMETIC"] = "E";
|
|
534
|
+
ReturnsCpe3Grade["FAIL_TECHNICAL"] = "F";
|
|
535
|
+
ReturnsCpe3Grade["PASS"] = "D";
|
|
536
536
|
})(ReturnsCpe3Grade = exports.ReturnsCpe3Grade || (exports.ReturnsCpe3Grade = {}));
|
|
537
537
|
/**
|
|
538
538
|
* Valid values for Returns.Tv1Type
|
|
@@ -554,15 +554,15 @@ var ReturnsTv1Type;
|
|
|
554
554
|
* Cpe 2 Grade (Field Operations - Returns)
|
|
555
555
|
*
|
|
556
556
|
* @remarks Available options:
|
|
557
|
-
* - `
|
|
558
|
-
* - `
|
|
559
|
-
* - `
|
|
557
|
+
* - `E` - Fail - Cosmetic
|
|
558
|
+
* - `F` - Fail - Technical
|
|
559
|
+
* - `D` - Pass
|
|
560
560
|
*/
|
|
561
561
|
var ReturnsCpe2Grade;
|
|
562
562
|
(function (ReturnsCpe2Grade) {
|
|
563
|
-
ReturnsCpe2Grade["FAIL_COSMETIC"] = "
|
|
564
|
-
ReturnsCpe2Grade["FAIL_TECHNICAL"] = "
|
|
565
|
-
ReturnsCpe2Grade["PASS"] = "
|
|
563
|
+
ReturnsCpe2Grade["FAIL_COSMETIC"] = "E";
|
|
564
|
+
ReturnsCpe2Grade["FAIL_TECHNICAL"] = "F";
|
|
565
|
+
ReturnsCpe2Grade["PASS"] = "D";
|
|
566
566
|
})(ReturnsCpe2Grade = exports.ReturnsCpe2Grade || (exports.ReturnsCpe2Grade = {}));
|
|
567
567
|
/**
|
|
568
568
|
* Property keys for Returns
|
|
@@ -24,6 +24,7 @@ import { ContactProperties } from '../entities-v2/Contact';
|
|
|
24
24
|
import { CreateCaseProperties } from '../actions-v2/CreateCaseFromContactDto';
|
|
25
25
|
import { CreateContactProperties } from '../actions-v2/CreateContactDto';
|
|
26
26
|
import { CreateContactSalesAppProperties } from '../actions-v2/CreateContactSalesAppDto';
|
|
27
|
+
import { OrderBuilderUpdateContactProperties } from '../actions-v2/OrderBuilderUpdateContactDto';
|
|
27
28
|
import { UpdateAdditionalCareProperties } from '../actions-v2/UpdateAdditionalCareDto';
|
|
28
29
|
import { UpdateContactAppPreferencesProperties } from '../actions-v2/UpdateContactAppPreferencesDto';
|
|
29
30
|
import { UpdateContactProperties } from '../actions-v2/UpdateContactDto';
|
|
@@ -839,6 +840,32 @@ export declare class ContactRecord<TProps = ContactProperties> {
|
|
|
839
840
|
createCaseFromContact(options?: {
|
|
840
841
|
journeyId?: string;
|
|
841
842
|
}): CreateCaseFromContactFlowBuilder;
|
|
843
|
+
/**
|
|
844
|
+
* OrderBuilderUpdateContact
|
|
845
|
+
*
|
|
846
|
+
* Updates this Contact record with the specified properties.
|
|
847
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
848
|
+
*
|
|
849
|
+
* @param properties - Required properties for this action
|
|
850
|
+
* @param options - Optional settings
|
|
851
|
+
* @param options.journeyId - Associate with a journey
|
|
852
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
853
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
854
|
+
* @throws Error if called on a new (unsaved) record
|
|
855
|
+
*
|
|
856
|
+
* @example
|
|
857
|
+
* ```typescript
|
|
858
|
+
* const record = await odinClient.contacts.get(id);
|
|
859
|
+
* await record.orderBuilderUpdateContact({ ... }).execute();
|
|
860
|
+
*
|
|
861
|
+
* // Dry run (for debugging)
|
|
862
|
+
* const payload = record.orderBuilderUpdateContact({ ... }).dryRun();
|
|
863
|
+
* ```
|
|
864
|
+
*/
|
|
865
|
+
orderBuilderUpdateContact(properties: OrderBuilderUpdateContactProperties, options?: {
|
|
866
|
+
journeyId?: string;
|
|
867
|
+
stageKey?: string;
|
|
868
|
+
}): ActionBuilder;
|
|
842
869
|
/**
|
|
843
870
|
* UpdateAdditionalCare
|
|
844
871
|
*
|
|
@@ -1248,6 +1248,35 @@ class ContactRecord {
|
|
|
1248
1248
|
createCaseFromContact(options) {
|
|
1249
1249
|
return new CreateCaseFromContactFlowBuilder(this, this._provider, this._pendingLinks, options);
|
|
1250
1250
|
}
|
|
1251
|
+
/**
|
|
1252
|
+
* OrderBuilderUpdateContact
|
|
1253
|
+
*
|
|
1254
|
+
* Updates this Contact record with the specified properties.
|
|
1255
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
1256
|
+
*
|
|
1257
|
+
* @param properties - Required properties for this action
|
|
1258
|
+
* @param options - Optional settings
|
|
1259
|
+
* @param options.journeyId - Associate with a journey
|
|
1260
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
1261
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
1262
|
+
* @throws Error if called on a new (unsaved) record
|
|
1263
|
+
*
|
|
1264
|
+
* @example
|
|
1265
|
+
* ```typescript
|
|
1266
|
+
* const record = await odinClient.contacts.get(id);
|
|
1267
|
+
* await record.orderBuilderUpdateContact({ ... }).execute();
|
|
1268
|
+
*
|
|
1269
|
+
* // Dry run (for debugging)
|
|
1270
|
+
* const payload = record.orderBuilderUpdateContact({ ... }).dryRun();
|
|
1271
|
+
* ```
|
|
1272
|
+
*/
|
|
1273
|
+
orderBuilderUpdateContact(properties, options) {
|
|
1274
|
+
var _a;
|
|
1275
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1276
|
+
throw new Error('orderBuilderUpdateContact requires an existing record. Use accessor.get() first.');
|
|
1277
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'OrderBuilderUpdateContact', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
1278
|
+
return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
|
|
1279
|
+
}
|
|
1251
1280
|
/**
|
|
1252
1281
|
* UpdateAdditionalCare
|
|
1253
1282
|
*
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* await record.createDocument({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: CONTRACT_BUYOUT, DEFAULT, EMAIL_ATTACHMENT, INVOICE, OTHER, OUTCOME_FORM
|
|
16
|
+
* Entity Types: CONTRACT, CONTRACT_BUYOUT, CORPORATE_DOCUMENT, DEFAULT, EMAIL_ATTACHMENT, INVOICE, OTHER, OUTCOME_FORM
|
|
17
17
|
*
|
|
18
18
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
19
|
*/
|
|
@@ -22,14 +22,14 @@ import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
|
22
22
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
23
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
|
-
import { DocumentProperties, ContractBuyoutDocumentProperties, EmailAttachmentDocumentProperties, InvoiceDocumentProperties, OtherDocumentProperties, OutcomeFormDocumentProperties } from '../entities-v2/Document';
|
|
25
|
+
import { DocumentProperties, ContractDocumentProperties, ContractBuyoutDocumentProperties, CorporateDocumentDocumentProperties, EmailAttachmentDocumentProperties, InvoiceDocumentProperties, OtherDocumentProperties, OutcomeFormDocumentProperties } from '../entities-v2/Document';
|
|
26
26
|
import { CreateDocumentProperties } from '../actions-v2/CreateDocumentDto';
|
|
27
27
|
import { UpdateDocumentProperties } from '../actions-v2/UpdateDocumentDto';
|
|
28
28
|
import { FileRecord } from './FileRecord';
|
|
29
29
|
import { DocumentProcessingRecord } from './DocumentProcessingRecord';
|
|
30
30
|
import { ContractBuyOutRecord } from './ContractBuyOutRecord';
|
|
31
31
|
/** Valid entity types for Document */
|
|
32
|
-
export declare type DocumentType = 'CONTRACT_BUYOUT' | 'DEFAULT' | 'EMAIL_ATTACHMENT' | 'INVOICE' | 'OTHER' | 'OUTCOME_FORM';
|
|
32
|
+
export declare type DocumentType = 'CONTRACT' | 'CONTRACT_BUYOUT' | 'CORPORATE_DOCUMENT' | 'DEFAULT' | 'EMAIL_ATTACHMENT' | 'INVOICE' | 'OTHER' | 'OUTCOME_FORM';
|
|
33
33
|
/**
|
|
34
34
|
* Builder for action execution with dryRun support
|
|
35
35
|
*
|
|
@@ -123,6 +123,22 @@ export declare class DocumentRecord<TProps = DocumentProperties> {
|
|
|
123
123
|
get links(): OdinRecord<TProps>['links'];
|
|
124
124
|
/** Access the underlying OdinRecord (null for new records) */
|
|
125
125
|
get record(): OdinRecord<TProps> | null;
|
|
126
|
+
/**
|
|
127
|
+
* Type guard: check if this record is of type CONTRACT
|
|
128
|
+
*
|
|
129
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
130
|
+
* giving you access to CONTRACT-specific properties.
|
|
131
|
+
*
|
|
132
|
+
* @example
|
|
133
|
+
* ```typescript
|
|
134
|
+
* if (record.isContract()) {
|
|
135
|
+
* // TypeScript knows record.properties is ContractDocumentProperties
|
|
136
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
137
|
+
* }
|
|
138
|
+
* ```
|
|
139
|
+
* @remarks An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind.
|
|
140
|
+
*/
|
|
141
|
+
isContract(): this is DocumentRecord<ContractDocumentProperties>;
|
|
126
142
|
/**
|
|
127
143
|
* Type guard: check if this record is of type CONTRACT_BUYOUT
|
|
128
144
|
*
|
|
@@ -139,6 +155,22 @@ export declare class DocumentRecord<TProps = DocumentProperties> {
|
|
|
139
155
|
* @remarks A customer's previous-provider final bill sent for a contract buyout (YouFibre orders).
|
|
140
156
|
*/
|
|
141
157
|
isContractBuyout(): this is DocumentRecord<ContractBuyoutDocumentProperties>;
|
|
158
|
+
/**
|
|
159
|
+
* Type guard: check if this record is of type CORPORATE_DOCUMENT
|
|
160
|
+
*
|
|
161
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
162
|
+
* giving you access to CORPORATE_DOCUMENT-specific properties.
|
|
163
|
+
*
|
|
164
|
+
* @example
|
|
165
|
+
* ```typescript
|
|
166
|
+
* if (record.isCorporateDocument()) {
|
|
167
|
+
* // TypeScript knows record.properties is CorporateDocumentDocumentProperties
|
|
168
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
169
|
+
* }
|
|
170
|
+
* ```
|
|
171
|
+
* @remarks A document about the company itself: articles of association, resolutions, filings. SubType says which kind.
|
|
172
|
+
*/
|
|
173
|
+
isCorporateDocument(): this is DocumentRecord<CorporateDocumentDocumentProperties>;
|
|
142
174
|
/**
|
|
143
175
|
* Type guard: check if this record is of type DEFAULT
|
|
144
176
|
*
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* await record.createDocument({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: CONTRACT_BUYOUT, DEFAULT, EMAIL_ATTACHMENT, INVOICE, OTHER, OUTCOME_FORM
|
|
17
|
+
* Entity Types: CONTRACT, CONTRACT_BUYOUT, CORPORATE_DOCUMENT, DEFAULT, EMAIL_ATTACHMENT, INVOICE, OTHER, OUTCOME_FORM
|
|
18
18
|
*
|
|
19
19
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
20
|
*/
|
|
@@ -150,6 +150,22 @@ class DocumentRecord {
|
|
|
150
150
|
// ============================================
|
|
151
151
|
// TYPE GUARDS (with TypeScript type predicates)
|
|
152
152
|
// ============================================
|
|
153
|
+
/**
|
|
154
|
+
* Type guard: check if this record is of type CONTRACT
|
|
155
|
+
*
|
|
156
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
157
|
+
* giving you access to CONTRACT-specific properties.
|
|
158
|
+
*
|
|
159
|
+
* @example
|
|
160
|
+
* ```typescript
|
|
161
|
+
* if (record.isContract()) {
|
|
162
|
+
* // TypeScript knows record.properties is ContractDocumentProperties
|
|
163
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
166
|
+
* @remarks An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind.
|
|
167
|
+
*/
|
|
168
|
+
isContract() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'CONTRACT'; }
|
|
153
169
|
/**
|
|
154
170
|
* Type guard: check if this record is of type CONTRACT_BUYOUT
|
|
155
171
|
*
|
|
@@ -166,6 +182,22 @@ class DocumentRecord {
|
|
|
166
182
|
* @remarks A customer's previous-provider final bill sent for a contract buyout (YouFibre orders).
|
|
167
183
|
*/
|
|
168
184
|
isContractBuyout() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'CONTRACT_BUYOUT'; }
|
|
185
|
+
/**
|
|
186
|
+
* Type guard: check if this record is of type CORPORATE_DOCUMENT
|
|
187
|
+
*
|
|
188
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
189
|
+
* giving you access to CORPORATE_DOCUMENT-specific properties.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```typescript
|
|
193
|
+
* if (record.isCorporateDocument()) {
|
|
194
|
+
* // TypeScript knows record.properties is CorporateDocumentDocumentProperties
|
|
195
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
196
|
+
* }
|
|
197
|
+
* ```
|
|
198
|
+
* @remarks A document about the company itself: articles of association, resolutions, filings. SubType says which kind.
|
|
199
|
+
*/
|
|
200
|
+
isCorporateDocument() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'CORPORATE_DOCUMENT'; }
|
|
169
201
|
/**
|
|
170
202
|
* Type guard: check if this record is of type DEFAULT
|
|
171
203
|
*
|