@d19n/youfibre-odin-sdk 2.0.370 → 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.
Files changed (54) hide show
  1. package/README.md +7 -3
  2. package/dist/actions-v2/CreateNoteForCaseSalesAppDto.d.ts +73 -0
  3. package/dist/actions-v2/CreateNoteForCaseSalesAppDto.js +59 -0
  4. package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
  5. package/dist/actions-v2/MoveCaseToSolvedWithNoteSalesAppDto.d.ts +171 -0
  6. package/dist/actions-v2/MoveCaseToSolvedWithNoteSalesAppDto.js +124 -0
  7. package/dist/actions-v2/OrderBuilderUpdateContactDto.d.ts +182 -0
  8. package/dist/actions-v2/OrderBuilderUpdateContactDto.js +56 -0
  9. package/dist/actions-v2/UpdateOutboundDialCampaignCaseDto.d.ts +15 -1
  10. package/dist/actions-v2/UpdateOutboundDialCampaignCaseOnDialEndDto.d.ts +15 -1
  11. package/dist/actions-v2/UpdateoutbounddialcampaignDto.d.ts +8 -1
  12. package/dist/api-sdk-v2/QaBatchApi.d.ts +48 -0
  13. package/dist/api-sdk-v2/QaBatchApi.js +155 -0
  14. package/dist/api-sdk-v2/QaReportApi.d.ts +2 -0
  15. package/dist/api-sdk-v2/QaReportApi.js +6 -0
  16. package/dist/db-sdk-v2/QaBatchDb.d.ts +120 -0
  17. package/dist/db-sdk-v2/QaBatchDb.js +204 -0
  18. package/dist/db-sdk-v2/QaReportDb.d.ts +2 -0
  19. package/dist/db-sdk-v2/QaReportDb.js +6 -0
  20. package/dist/entities-v2/AiRouteRequest.d.ts +2 -0
  21. package/dist/entities-v2/AiRouteRequest.js +2 -0
  22. package/dist/entities-v2/Document.d.ts +821 -12
  23. package/dist/entities-v2/Document.js +63 -1
  24. package/dist/entities-v2/DocumentProcessing.d.ts +7 -1
  25. package/dist/entities-v2/DocumentProcessing.js +6 -0
  26. package/dist/entities-v2/EquipmentReturnItem.d.ts +6 -6
  27. package/dist/entities-v2/EquipmentReturnItem.js +6 -6
  28. package/dist/entities-v2/HomeMove.d.ts +23 -1
  29. package/dist/entities-v2/HomeMove.js +17 -1
  30. package/dist/entities-v2/Note.d.ts +9 -9
  31. package/dist/entities-v2/Note.js +2 -2
  32. package/dist/entities-v2/Order.d.ts +9 -1
  33. package/dist/entities-v2/Order.js +2 -0
  34. package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
  35. package/dist/entities-v2/OutboundDialCampaign.js +2 -0
  36. package/dist/entities-v2/OutboundDialCampaignCase.d.ts +17 -1
  37. package/dist/entities-v2/OutboundDialCampaignCase.js +4 -0
  38. package/dist/entities-v2/QaBatch.d.ts +235 -0
  39. package/dist/entities-v2/QaBatch.js +122 -0
  40. package/dist/entities-v2/QaReport.d.ts +12 -1
  41. package/dist/entities-v2/QaReport.js +2 -0
  42. package/dist/entities-v2/Recontract.d.ts +17 -1
  43. package/dist/entities-v2/Recontract.js +4 -0
  44. package/dist/entities-v2/Returns.d.ts +30 -30
  45. package/dist/entities-v2/Returns.js +30 -30
  46. package/dist/records-v2/CaseRecord.d.ts +87 -0
  47. package/dist/records-v2/CaseRecord.js +133 -1
  48. package/dist/records-v2/ContactRecord.d.ts +27 -0
  49. package/dist/records-v2/ContactRecord.js +29 -0
  50. package/dist/records-v2/DocumentRecord.d.ts +35 -3
  51. package/dist/records-v2/DocumentRecord.js +33 -1
  52. package/dist/records-v2/NoteRecord.d.ts +29 -0
  53. package/dist/records-v2/NoteRecord.js +36 -0
  54. package/package.json +1 -1
@@ -18,8 +18,12 @@ import { ContractBuyOutProperties } from './ContractBuyOut';
18
18
  * Available types for Document records
19
19
  */
20
20
  export declare enum DocumentEntityTypes {
21
+ /** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. */
22
+ CONTRACT = "CONTRACT",
21
23
  /** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). */
22
24
  CONTRACT_BUYOUT = "CONTRACT_BUYOUT",
25
+ /** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. */
26
+ CORPORATE_DOCUMENT = "CORPORATE_DOCUMENT",
23
27
  /** This is the default record type */
24
28
  DEFAULT = "DEFAULT",
25
29
  /** A file attached to an inbound or outbound email. */
@@ -78,15 +82,42 @@ export declare enum DocumentSubmittedVia {
78
82
  *
79
83
  * @remarks Available options:
80
84
  * - `CATALOGUED` - Catalogued
85
+ * - `DELETED` - Deleted
81
86
  * - `DESCRIBED` - Described
82
87
  * - `DESCRIBE_FAILED` - Describe failed
83
88
  * - `DESCRIBE_PENDING` - Describe pending
89
+ * - `EMBEDDED` - Embedded
90
+ * - `EMBED_FAILED` - Embed failed
91
+ * - `READ` - Read
92
+ * - `READ_FAILED` - Read failed
93
+ * - `READY` - Ready
84
94
  */
85
95
  export declare enum DocumentCatalogStatus {
86
96
  CATALOGUED = "CATALOGUED",
97
+ DELETED = "DELETED",
87
98
  DESCRIBED = "DESCRIBED",
88
99
  DESCRIBE_FAILED = "DESCRIBE_FAILED",
89
- DESCRIBE_PENDING = "DESCRIBE_PENDING"
100
+ DESCRIBE_PENDING = "DESCRIBE_PENDING",
101
+ EMBEDDED = "EMBEDDED",
102
+ EMBED_FAILED = "EMBED_FAILED",
103
+ READ = "READ",
104
+ READ_FAILED = "READ_FAILED",
105
+ READY = "READY"
106
+ }
107
+ /**
108
+ * Valid values for Document.FieldsReviewState
109
+ *
110
+ * Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
111
+ *
112
+ * @remarks Available options:
113
+ * - `CONFIRMED` - Confirmed
114
+ * - `NEEDS_REVIEW` - Needs review
115
+ * - `NOT_EXTRACTED` - Not extracted
116
+ */
117
+ export declare enum DocumentFieldsReviewState {
118
+ CONFIRMED = "CONFIRMED",
119
+ NEEDS_REVIEW = "NEEDS_REVIEW",
120
+ NOT_EXTRACTED = "NOT_EXTRACTED"
90
121
  }
91
122
  /**
92
123
  * Property keys for Document
@@ -140,7 +171,25 @@ export declare enum DocumentPropertyKeys {
140
171
  /** When a pipeline last ran on the document. */
141
172
  LastProcessedAt = "LastProcessedAt",
142
173
  /** Id of the most recent DocumentProcessing row. */
143
- LastProcessingId = "LastProcessingId"
174
+ LastProcessingId = "LastProcessingId",
175
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report. */
176
+ IsTemplate = "IsTemplate",
177
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank. */
178
+ Parties = "Parties",
179
+ /** The party that is not us. Blank in a template. */
180
+ Counterparty = "Counterparty",
181
+ /** The date the document is dated or was adopted. Blank in a template. */
182
+ DocumentDate = "DocumentDate",
183
+ /** The term or confidentiality period in months, when the document states one. */
184
+ TermMonths = "TermMonths",
185
+ /** The governing law as the document names it, e.g. England and Wales. */
186
+ GoverningLaw = "GoverningLaw",
187
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed. */
188
+ FieldsReviewState = "FieldsReviewState",
189
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history. */
190
+ FolderKey = "FolderKey",
191
+ /** How many sections the read step produced; equals the number of vectors. */
192
+ SectionCount = "SectionCount"
144
193
  }
145
194
  /**
146
195
  * Properties for Document records
@@ -295,13 +344,68 @@ export interface DocumentProperties {
295
344
  * @default
296
345
  */
297
346
  LastProcessingId: string;
347
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
348
+ *
349
+ * @type {BOOLEAN}
350
+ * @default
351
+ */
352
+ IsTemplate: boolean;
353
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
354
+ *
355
+ * @type {TEXT}
356
+ * @default
357
+ */
358
+ Parties: string;
359
+ /** The party that is not us. Blank in a template.
360
+ *
361
+ * @type {TEXT}
362
+ * @default
363
+ */
364
+ Counterparty: string;
365
+ /** The date the document is dated or was adopted. Blank in a template.
366
+ *
367
+ * @type {DATE}
368
+ * @default
369
+ */
370
+ DocumentDate: string;
371
+ /** The term or confidentiality period in months, when the document states one.
372
+ *
373
+ * @type {NUMBER}
374
+ * @default
375
+ */
376
+ TermMonths: number;
377
+ /** The governing law as the document names it, e.g. England and Wales.
378
+ *
379
+ * @type {TEXT}
380
+ * @default
381
+ */
382
+ GoverningLaw: string;
383
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
384
+ *
385
+ * @type {ENUM}
386
+ * @default NOT_EXTRACTED
387
+ * @enum {DocumentFieldsReviewState}
388
+ */
389
+ FieldsReviewState: DocumentFieldsReviewState;
390
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
391
+ *
392
+ * @type {TEXT}
393
+ * @default
394
+ */
395
+ FolderKey: string;
396
+ /** How many sections the read step produced; equals the number of vectors.
397
+ *
398
+ * @type {NUMBER}
399
+ * @default
400
+ */
401
+ SectionCount: number;
298
402
  }
299
403
  /**
300
- * Properties for CONTRACT_BUYOUT Document records
404
+ * Properties for CONTRACT Document records
301
405
  *
302
406
  * @see AiModule:Document
303
407
  */
304
- export interface ContractBuyoutDocumentProperties {
408
+ export interface ContractDocumentProperties {
305
409
  /** Module of the record the document belongs to, e.g. FieldServiceModule.
306
410
  *
307
411
  * @type {TEXT}
@@ -449,13 +553,68 @@ export interface ContractBuyoutDocumentProperties {
449
553
  * @default
450
554
  */
451
555
  LastProcessingId: string;
556
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
557
+ *
558
+ * @type {BOOLEAN}
559
+ * @default
560
+ */
561
+ IsTemplate: boolean;
562
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
563
+ *
564
+ * @type {TEXT}
565
+ * @default
566
+ */
567
+ Parties: string;
568
+ /** The party that is not us. Blank in a template.
569
+ *
570
+ * @type {TEXT}
571
+ * @default
572
+ */
573
+ Counterparty: string;
574
+ /** The date the document is dated or was adopted. Blank in a template.
575
+ *
576
+ * @type {DATE}
577
+ * @default
578
+ */
579
+ DocumentDate: string;
580
+ /** The term or confidentiality period in months, when the document states one.
581
+ *
582
+ * @type {NUMBER}
583
+ * @default
584
+ */
585
+ TermMonths: number;
586
+ /** The governing law as the document names it, e.g. England and Wales.
587
+ *
588
+ * @type {TEXT}
589
+ * @default
590
+ */
591
+ GoverningLaw: string;
592
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
593
+ *
594
+ * @type {ENUM}
595
+ * @default NOT_EXTRACTED
596
+ * @enum {DocumentFieldsReviewState}
597
+ */
598
+ FieldsReviewState: DocumentFieldsReviewState;
599
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
600
+ *
601
+ * @type {TEXT}
602
+ * @default
603
+ */
604
+ FolderKey: string;
605
+ /** How many sections the read step produced; equals the number of vectors.
606
+ *
607
+ * @type {NUMBER}
608
+ * @default
609
+ */
610
+ SectionCount: number;
452
611
  }
453
612
  /**
454
- * Properties for EMAIL_ATTACHMENT Document records
613
+ * Properties for CONTRACT_BUYOUT Document records
455
614
  *
456
615
  * @see AiModule:Document
457
616
  */
458
- export interface EmailAttachmentDocumentProperties {
617
+ export interface ContractBuyoutDocumentProperties {
459
618
  /** Module of the record the document belongs to, e.g. FieldServiceModule.
460
619
  *
461
620
  * @type {TEXT}
@@ -603,13 +762,68 @@ export interface EmailAttachmentDocumentProperties {
603
762
  * @default
604
763
  */
605
764
  LastProcessingId: string;
765
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
766
+ *
767
+ * @type {BOOLEAN}
768
+ * @default
769
+ */
770
+ IsTemplate: boolean;
771
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
772
+ *
773
+ * @type {TEXT}
774
+ * @default
775
+ */
776
+ Parties: string;
777
+ /** The party that is not us. Blank in a template.
778
+ *
779
+ * @type {TEXT}
780
+ * @default
781
+ */
782
+ Counterparty: string;
783
+ /** The date the document is dated or was adopted. Blank in a template.
784
+ *
785
+ * @type {DATE}
786
+ * @default
787
+ */
788
+ DocumentDate: string;
789
+ /** The term or confidentiality period in months, when the document states one.
790
+ *
791
+ * @type {NUMBER}
792
+ * @default
793
+ */
794
+ TermMonths: number;
795
+ /** The governing law as the document names it, e.g. England and Wales.
796
+ *
797
+ * @type {TEXT}
798
+ * @default
799
+ */
800
+ GoverningLaw: string;
801
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
802
+ *
803
+ * @type {ENUM}
804
+ * @default NOT_EXTRACTED
805
+ * @enum {DocumentFieldsReviewState}
806
+ */
807
+ FieldsReviewState: DocumentFieldsReviewState;
808
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
809
+ *
810
+ * @type {TEXT}
811
+ * @default
812
+ */
813
+ FolderKey: string;
814
+ /** How many sections the read step produced; equals the number of vectors.
815
+ *
816
+ * @type {NUMBER}
817
+ * @default
818
+ */
819
+ SectionCount: number;
606
820
  }
607
821
  /**
608
- * Properties for INVOICE Document records
822
+ * Properties for CORPORATE_DOCUMENT Document records
609
823
  *
610
824
  * @see AiModule:Document
611
825
  */
612
- export interface InvoiceDocumentProperties {
826
+ export interface CorporateDocumentDocumentProperties {
613
827
  /** Module of the record the document belongs to, e.g. FieldServiceModule.
614
828
  *
615
829
  * @type {TEXT}
@@ -757,13 +971,68 @@ export interface InvoiceDocumentProperties {
757
971
  * @default
758
972
  */
759
973
  LastProcessingId: string;
974
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
975
+ *
976
+ * @type {BOOLEAN}
977
+ * @default
978
+ */
979
+ IsTemplate: boolean;
980
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
981
+ *
982
+ * @type {TEXT}
983
+ * @default
984
+ */
985
+ Parties: string;
986
+ /** The party that is not us. Blank in a template.
987
+ *
988
+ * @type {TEXT}
989
+ * @default
990
+ */
991
+ Counterparty: string;
992
+ /** The date the document is dated or was adopted. Blank in a template.
993
+ *
994
+ * @type {DATE}
995
+ * @default
996
+ */
997
+ DocumentDate: string;
998
+ /** The term or confidentiality period in months, when the document states one.
999
+ *
1000
+ * @type {NUMBER}
1001
+ * @default
1002
+ */
1003
+ TermMonths: number;
1004
+ /** The governing law as the document names it, e.g. England and Wales.
1005
+ *
1006
+ * @type {TEXT}
1007
+ * @default
1008
+ */
1009
+ GoverningLaw: string;
1010
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
1011
+ *
1012
+ * @type {ENUM}
1013
+ * @default NOT_EXTRACTED
1014
+ * @enum {DocumentFieldsReviewState}
1015
+ */
1016
+ FieldsReviewState: DocumentFieldsReviewState;
1017
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
1018
+ *
1019
+ * @type {TEXT}
1020
+ * @default
1021
+ */
1022
+ FolderKey: string;
1023
+ /** How many sections the read step produced; equals the number of vectors.
1024
+ *
1025
+ * @type {NUMBER}
1026
+ * @default
1027
+ */
1028
+ SectionCount: number;
760
1029
  }
761
1030
  /**
762
- * Properties for OTHER Document records
1031
+ * Properties for EMAIL_ATTACHMENT Document records
763
1032
  *
764
1033
  * @see AiModule:Document
765
1034
  */
766
- export interface OtherDocumentProperties {
1035
+ export interface EmailAttachmentDocumentProperties {
767
1036
  /** Module of the record the document belongs to, e.g. FieldServiceModule.
768
1037
  *
769
1038
  * @type {TEXT}
@@ -911,13 +1180,68 @@ export interface OtherDocumentProperties {
911
1180
  * @default
912
1181
  */
913
1182
  LastProcessingId: string;
1183
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
1184
+ *
1185
+ * @type {BOOLEAN}
1186
+ * @default
1187
+ */
1188
+ IsTemplate: boolean;
1189
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
1190
+ *
1191
+ * @type {TEXT}
1192
+ * @default
1193
+ */
1194
+ Parties: string;
1195
+ /** The party that is not us. Blank in a template.
1196
+ *
1197
+ * @type {TEXT}
1198
+ * @default
1199
+ */
1200
+ Counterparty: string;
1201
+ /** The date the document is dated or was adopted. Blank in a template.
1202
+ *
1203
+ * @type {DATE}
1204
+ * @default
1205
+ */
1206
+ DocumentDate: string;
1207
+ /** The term or confidentiality period in months, when the document states one.
1208
+ *
1209
+ * @type {NUMBER}
1210
+ * @default
1211
+ */
1212
+ TermMonths: number;
1213
+ /** The governing law as the document names it, e.g. England and Wales.
1214
+ *
1215
+ * @type {TEXT}
1216
+ * @default
1217
+ */
1218
+ GoverningLaw: string;
1219
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
1220
+ *
1221
+ * @type {ENUM}
1222
+ * @default NOT_EXTRACTED
1223
+ * @enum {DocumentFieldsReviewState}
1224
+ */
1225
+ FieldsReviewState: DocumentFieldsReviewState;
1226
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
1227
+ *
1228
+ * @type {TEXT}
1229
+ * @default
1230
+ */
1231
+ FolderKey: string;
1232
+ /** How many sections the read step produced; equals the number of vectors.
1233
+ *
1234
+ * @type {NUMBER}
1235
+ * @default
1236
+ */
1237
+ SectionCount: number;
914
1238
  }
915
1239
  /**
916
- * Properties for OUTCOME_FORM Document records
1240
+ * Properties for INVOICE Document records
917
1241
  *
918
1242
  * @see AiModule:Document
919
1243
  */
920
- export interface OutcomeFormDocumentProperties {
1244
+ export interface InvoiceDocumentProperties {
921
1245
  /** Module of the record the document belongs to, e.g. FieldServiceModule.
922
1246
  *
923
1247
  * @type {TEXT}
@@ -1065,6 +1389,479 @@ export interface OutcomeFormDocumentProperties {
1065
1389
  * @default
1066
1390
  */
1067
1391
  LastProcessingId: string;
1392
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
1393
+ *
1394
+ * @type {BOOLEAN}
1395
+ * @default
1396
+ */
1397
+ IsTemplate: boolean;
1398
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
1399
+ *
1400
+ * @type {TEXT}
1401
+ * @default
1402
+ */
1403
+ Parties: string;
1404
+ /** The party that is not us. Blank in a template.
1405
+ *
1406
+ * @type {TEXT}
1407
+ * @default
1408
+ */
1409
+ Counterparty: string;
1410
+ /** The date the document is dated or was adopted. Blank in a template.
1411
+ *
1412
+ * @type {DATE}
1413
+ * @default
1414
+ */
1415
+ DocumentDate: string;
1416
+ /** The term or confidentiality period in months, when the document states one.
1417
+ *
1418
+ * @type {NUMBER}
1419
+ * @default
1420
+ */
1421
+ TermMonths: number;
1422
+ /** The governing law as the document names it, e.g. England and Wales.
1423
+ *
1424
+ * @type {TEXT}
1425
+ * @default
1426
+ */
1427
+ GoverningLaw: string;
1428
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
1429
+ *
1430
+ * @type {ENUM}
1431
+ * @default NOT_EXTRACTED
1432
+ * @enum {DocumentFieldsReviewState}
1433
+ */
1434
+ FieldsReviewState: DocumentFieldsReviewState;
1435
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
1436
+ *
1437
+ * @type {TEXT}
1438
+ * @default
1439
+ */
1440
+ FolderKey: string;
1441
+ /** How many sections the read step produced; equals the number of vectors.
1442
+ *
1443
+ * @type {NUMBER}
1444
+ * @default
1445
+ */
1446
+ SectionCount: number;
1447
+ }
1448
+ /**
1449
+ * Properties for OTHER Document records
1450
+ *
1451
+ * @see AiModule:Document
1452
+ */
1453
+ export interface OtherDocumentProperties {
1454
+ /** Module of the record the document belongs to, e.g. FieldServiceModule.
1455
+ *
1456
+ * @type {TEXT}
1457
+ * @default
1458
+ */
1459
+ SourceModule: string;
1460
+ /** Entity of the source record, e.g. RegionNInternalInstallForm.
1461
+ *
1462
+ * @type {TEXT}
1463
+ * @default
1464
+ */
1465
+ SourceEntity: string;
1466
+ /** Id of the source record. With SourceEntity, the key the helper upserts on.
1467
+ *
1468
+ * @type {TEXT}
1469
+ * @default
1470
+ */
1471
+ SourceRecordId: string;
1472
+ /** Record number of the source record, for people.
1473
+ *
1474
+ * @type {TEXT}
1475
+ * @default
1476
+ */
1477
+ SourceRecordNumber: string;
1478
+ /** The File records that make up the document: photos, signatures, PDFs.
1479
+ *
1480
+ * @type {FILE_MULTIPLE}
1481
+ * @default
1482
+ */
1483
+ Files: string;
1484
+ /** Number of File records in Files.
1485
+ *
1486
+ * @type {NUMBER}
1487
+ * @default
1488
+ */
1489
+ FileCount: number;
1490
+ /** Finer kind within the record type: the form entity name, the previous provider, the invoice type.
1491
+ *
1492
+ * @type {TEXT}
1493
+ * @default
1494
+ */
1495
+ SubType: string;
1496
+ /** Physical shape of the document.
1497
+ *
1498
+ * @type {ENUM}
1499
+ * @default
1500
+ * @enum {DocumentFormat}
1501
+ */
1502
+ Format: DocumentFormat;
1503
+ /** User or contact id that submitted the document.
1504
+ *
1505
+ * @type {TEXT}
1506
+ * @default
1507
+ */
1508
+ SubmittedById: string;
1509
+ /** Name of the user or contact that submitted the document.
1510
+ *
1511
+ * @type {TEXT}
1512
+ * @default
1513
+ */
1514
+ SubmittedByName: string;
1515
+ /** When the source record was created.
1516
+ *
1517
+ * @type {DATE_TIME}
1518
+ * @default
1519
+ */
1520
+ SubmittedAt: string;
1521
+ /** The channel the document arrived through.
1522
+ *
1523
+ * @type {ENUM}
1524
+ * @default
1525
+ * @enum {DocumentSubmittedVia}
1526
+ */
1527
+ SubmittedVia: DocumentSubmittedVia;
1528
+ /** The business record the document belongs to: FieldServiceModule:WorkOrder, OrderModule:Order, CrmModule:Account.
1529
+ *
1530
+ * @type {TEXT}
1531
+ * @default
1532
+ */
1533
+ BusinessRecordEntity: string;
1534
+ /** Id of that business record.
1535
+ *
1536
+ * @type {TEXT}
1537
+ * @default
1538
+ */
1539
+ BusinessRecordId: string;
1540
+ /** AI-written plain-English description of what the document is and contains. Capped at 1,500 characters by the writer.
1541
+ *
1542
+ * @type {TEXT_LONG}
1543
+ * @default
1544
+ */
1545
+ Description: string;
1546
+ /** One line per image or page. Capped at 400 characters by the writer.
1547
+ *
1548
+ * @type {TEXT_LONG}
1549
+ * @default
1550
+ */
1551
+ ContentsSummary: string;
1552
+ /** Number of images in the document.
1553
+ *
1554
+ * @type {NUMBER}
1555
+ * @default
1556
+ */
1557
+ ImageCount: number;
1558
+ /** Number of pages, for PDFs and HTML.
1559
+ *
1560
+ * @type {NUMBER}
1561
+ * @default
1562
+ */
1563
+ PageCount: number;
1564
+ /** Language of the document, ISO 639-1, e.g. en.
1565
+ *
1566
+ * @type {TEXT}
1567
+ * @default
1568
+ */
1569
+ Language: string;
1570
+ /** True when the description or the document carries names, addresses or signatures.
1571
+ *
1572
+ * @type {BOOLEAN}
1573
+ * @default
1574
+ */
1575
+ ContainsPii: boolean;
1576
+ /** Where the document is in the catalog pipeline.
1577
+ *
1578
+ * @type {ENUM}
1579
+ * @default
1580
+ * @enum {DocumentCatalogStatus}
1581
+ */
1582
+ CatalogStatus: DocumentCatalogStatus;
1583
+ /** When the catalog first saw the document.
1584
+ *
1585
+ * @type {DATE_TIME}
1586
+ * @default
1587
+ */
1588
+ FirstSeenAt: string;
1589
+ /** When a pipeline last ran on the document.
1590
+ *
1591
+ * @type {DATE_TIME}
1592
+ * @default
1593
+ */
1594
+ LastProcessedAt: string;
1595
+ /** Id of the most recent DocumentProcessing row.
1596
+ *
1597
+ * @type {TEXT}
1598
+ * @default
1599
+ */
1600
+ LastProcessingId: string;
1601
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
1602
+ *
1603
+ * @type {BOOLEAN}
1604
+ * @default
1605
+ */
1606
+ IsTemplate: boolean;
1607
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
1608
+ *
1609
+ * @type {TEXT}
1610
+ * @default
1611
+ */
1612
+ Parties: string;
1613
+ /** The party that is not us. Blank in a template.
1614
+ *
1615
+ * @type {TEXT}
1616
+ * @default
1617
+ */
1618
+ Counterparty: string;
1619
+ /** The date the document is dated or was adopted. Blank in a template.
1620
+ *
1621
+ * @type {DATE}
1622
+ * @default
1623
+ */
1624
+ DocumentDate: string;
1625
+ /** The term or confidentiality period in months, when the document states one.
1626
+ *
1627
+ * @type {NUMBER}
1628
+ * @default
1629
+ */
1630
+ TermMonths: number;
1631
+ /** The governing law as the document names it, e.g. England and Wales.
1632
+ *
1633
+ * @type {TEXT}
1634
+ * @default
1635
+ */
1636
+ GoverningLaw: string;
1637
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
1638
+ *
1639
+ * @type {ENUM}
1640
+ * @default NOT_EXTRACTED
1641
+ * @enum {DocumentFieldsReviewState}
1642
+ */
1643
+ FieldsReviewState: DocumentFieldsReviewState;
1644
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
1645
+ *
1646
+ * @type {TEXT}
1647
+ * @default
1648
+ */
1649
+ FolderKey: string;
1650
+ /** How many sections the read step produced; equals the number of vectors.
1651
+ *
1652
+ * @type {NUMBER}
1653
+ * @default
1654
+ */
1655
+ SectionCount: number;
1656
+ }
1657
+ /**
1658
+ * Properties for OUTCOME_FORM Document records
1659
+ *
1660
+ * @see AiModule:Document
1661
+ */
1662
+ export interface OutcomeFormDocumentProperties {
1663
+ /** Module of the record the document belongs to, e.g. FieldServiceModule.
1664
+ *
1665
+ * @type {TEXT}
1666
+ * @default
1667
+ */
1668
+ SourceModule: string;
1669
+ /** Entity of the source record, e.g. RegionNInternalInstallForm.
1670
+ *
1671
+ * @type {TEXT}
1672
+ * @default
1673
+ */
1674
+ SourceEntity: string;
1675
+ /** Id of the source record. With SourceEntity, the key the helper upserts on.
1676
+ *
1677
+ * @type {TEXT}
1678
+ * @default
1679
+ */
1680
+ SourceRecordId: string;
1681
+ /** Record number of the source record, for people.
1682
+ *
1683
+ * @type {TEXT}
1684
+ * @default
1685
+ */
1686
+ SourceRecordNumber: string;
1687
+ /** The File records that make up the document: photos, signatures, PDFs.
1688
+ *
1689
+ * @type {FILE_MULTIPLE}
1690
+ * @default
1691
+ */
1692
+ Files: string;
1693
+ /** Number of File records in Files.
1694
+ *
1695
+ * @type {NUMBER}
1696
+ * @default
1697
+ */
1698
+ FileCount: number;
1699
+ /** Finer kind within the record type: the form entity name, the previous provider, the invoice type.
1700
+ *
1701
+ * @type {TEXT}
1702
+ * @default
1703
+ */
1704
+ SubType: string;
1705
+ /** Physical shape of the document.
1706
+ *
1707
+ * @type {ENUM}
1708
+ * @default
1709
+ * @enum {DocumentFormat}
1710
+ */
1711
+ Format: DocumentFormat;
1712
+ /** User or contact id that submitted the document.
1713
+ *
1714
+ * @type {TEXT}
1715
+ * @default
1716
+ */
1717
+ SubmittedById: string;
1718
+ /** Name of the user or contact that submitted the document.
1719
+ *
1720
+ * @type {TEXT}
1721
+ * @default
1722
+ */
1723
+ SubmittedByName: string;
1724
+ /** When the source record was created.
1725
+ *
1726
+ * @type {DATE_TIME}
1727
+ * @default
1728
+ */
1729
+ SubmittedAt: string;
1730
+ /** The channel the document arrived through.
1731
+ *
1732
+ * @type {ENUM}
1733
+ * @default
1734
+ * @enum {DocumentSubmittedVia}
1735
+ */
1736
+ SubmittedVia: DocumentSubmittedVia;
1737
+ /** The business record the document belongs to: FieldServiceModule:WorkOrder, OrderModule:Order, CrmModule:Account.
1738
+ *
1739
+ * @type {TEXT}
1740
+ * @default
1741
+ */
1742
+ BusinessRecordEntity: string;
1743
+ /** Id of that business record.
1744
+ *
1745
+ * @type {TEXT}
1746
+ * @default
1747
+ */
1748
+ BusinessRecordId: string;
1749
+ /** AI-written plain-English description of what the document is and contains. Capped at 1,500 characters by the writer.
1750
+ *
1751
+ * @type {TEXT_LONG}
1752
+ * @default
1753
+ */
1754
+ Description: string;
1755
+ /** One line per image or page. Capped at 400 characters by the writer.
1756
+ *
1757
+ * @type {TEXT_LONG}
1758
+ * @default
1759
+ */
1760
+ ContentsSummary: string;
1761
+ /** Number of images in the document.
1762
+ *
1763
+ * @type {NUMBER}
1764
+ * @default
1765
+ */
1766
+ ImageCount: number;
1767
+ /** Number of pages, for PDFs and HTML.
1768
+ *
1769
+ * @type {NUMBER}
1770
+ * @default
1771
+ */
1772
+ PageCount: number;
1773
+ /** Language of the document, ISO 639-1, e.g. en.
1774
+ *
1775
+ * @type {TEXT}
1776
+ * @default
1777
+ */
1778
+ Language: string;
1779
+ /** True when the description or the document carries names, addresses or signatures.
1780
+ *
1781
+ * @type {BOOLEAN}
1782
+ * @default
1783
+ */
1784
+ ContainsPii: boolean;
1785
+ /** Where the document is in the catalog pipeline.
1786
+ *
1787
+ * @type {ENUM}
1788
+ * @default
1789
+ * @enum {DocumentCatalogStatus}
1790
+ */
1791
+ CatalogStatus: DocumentCatalogStatus;
1792
+ /** When the catalog first saw the document.
1793
+ *
1794
+ * @type {DATE_TIME}
1795
+ * @default
1796
+ */
1797
+ FirstSeenAt: string;
1798
+ /** When a pipeline last ran on the document.
1799
+ *
1800
+ * @type {DATE_TIME}
1801
+ * @default
1802
+ */
1803
+ LastProcessedAt: string;
1804
+ /** Id of the most recent DocumentProcessing row.
1805
+ *
1806
+ * @type {TEXT}
1807
+ * @default
1808
+ */
1809
+ LastProcessingId: string;
1810
+ /** True for an unfilled template, false for a signed or filled copy. Chosen by the uploader; drives the blanks report.
1811
+ *
1812
+ * @type {BOOLEAN}
1813
+ * @default
1814
+ */
1815
+ IsTemplate: boolean;
1816
+ /** The parties as the document names them, separated by " and ". A blank in a template is left blank.
1817
+ *
1818
+ * @type {TEXT}
1819
+ * @default
1820
+ */
1821
+ Parties: string;
1822
+ /** The party that is not us. Blank in a template.
1823
+ *
1824
+ * @type {TEXT}
1825
+ * @default
1826
+ */
1827
+ Counterparty: string;
1828
+ /** The date the document is dated or was adopted. Blank in a template.
1829
+ *
1830
+ * @type {DATE}
1831
+ * @default
1832
+ */
1833
+ DocumentDate: string;
1834
+ /** The term or confidentiality period in months, when the document states one.
1835
+ *
1836
+ * @type {NUMBER}
1837
+ * @default
1838
+ */
1839
+ TermMonths: number;
1840
+ /** The governing law as the document names it, e.g. England and Wales.
1841
+ *
1842
+ * @type {TEXT}
1843
+ * @default
1844
+ */
1845
+ GoverningLaw: string;
1846
+ /** Where the extracted key terms stand: not extracted yet, some still need a person, or all confirmed.
1847
+ *
1848
+ * @type {ENUM}
1849
+ * @default NOT_EXTRACTED
1850
+ * @enum {DocumentFieldsReviewState}
1851
+ */
1852
+ FieldsReviewState: DocumentFieldsReviewState;
1853
+ /** The document's folder in the org files bucket (document-intelligence/<documentId>/), holding sections, fields, vectors and chat history.
1854
+ *
1855
+ * @type {TEXT}
1856
+ * @default
1857
+ */
1858
+ FolderKey: string;
1859
+ /** How many sections the read step produced; equals the number of vectors.
1860
+ *
1861
+ * @type {NUMBER}
1862
+ * @default
1863
+ */
1864
+ SectionCount: number;
1068
1865
  }
1069
1866
  /**
1070
1867
  * Document entity from AiModule
@@ -1099,12 +1896,24 @@ export declare const ROUTING_KEY_DOCUMENT_DELETED = "AiModule.Document.SubDbReco
1099
1896
  * Type-specific routing keys for Document events
1100
1897
  * Subscribe to these for events on specific entity types only
1101
1898
  */
1899
+ /** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. created */
1900
+ export declare const ROUTING_KEY_DOCUMENT_CONTRACT_CREATED = "AiModule.Document.CONTRACT.SubDbRecordCreated";
1901
+ /** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. updated */
1902
+ export declare const ROUTING_KEY_DOCUMENT_CONTRACT_UPDATED = "AiModule.Document.CONTRACT.SubDbRecordUpdated";
1903
+ /** An agreement between parties: an NDA, a supply agreement, a lease. Template or signed; SubType says which kind. deleted */
1904
+ export declare const ROUTING_KEY_DOCUMENT_CONTRACT_DELETED = "AiModule.Document.CONTRACT.SubDbRecordDeleted";
1102
1905
  /** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). created */
1103
1906
  export declare const ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_CREATED = "AiModule.Document.CONTRACT_BUYOUT.SubDbRecordCreated";
1104
1907
  /** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). updated */
1105
1908
  export declare const ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_UPDATED = "AiModule.Document.CONTRACT_BUYOUT.SubDbRecordUpdated";
1106
1909
  /** A customer's previous-provider final bill sent for a contract buyout (YouFibre orders). deleted */
1107
1910
  export declare const ROUTING_KEY_DOCUMENT_CONTRACT_BUYOUT_DELETED = "AiModule.Document.CONTRACT_BUYOUT.SubDbRecordDeleted";
1911
+ /** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. created */
1912
+ export declare const ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_CREATED = "AiModule.Document.CORPORATE_DOCUMENT.SubDbRecordCreated";
1913
+ /** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. updated */
1914
+ export declare const ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_UPDATED = "AiModule.Document.CORPORATE_DOCUMENT.SubDbRecordUpdated";
1915
+ /** A document about the company itself: articles of association, resolutions, filings. SubType says which kind. deleted */
1916
+ export declare const ROUTING_KEY_DOCUMENT_CORPORATE_DOCUMENT_DELETED = "AiModule.Document.CORPORATE_DOCUMENT.SubDbRecordDeleted";
1108
1917
  /** This is the default record type created */
1109
1918
  export declare const ROUTING_KEY_DOCUMENT_DEFAULT_CREATED = "AiModule.Document.DEFAULT.SubDbRecordCreated";
1110
1919
  /** This is the default record type updated */