@d19n/youfibre-odin-sdk 2.0.376 → 2.0.378

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.
@@ -0,0 +1,130 @@
1
+ "use strict";
2
+ /**
3
+ * DocumentValue Entity Definition
4
+ *
5
+ * One extracted value of a document: the field, the value, where it came from (section, quote, page), the model's confidence, and its review state. Linked to the Document.
6
+ *
7
+ * @module AiModule
8
+ * @entity DocumentValue
9
+ * @schemaId 96afdaae-fb15-4a46-bb1c-67ef9509e02d
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ * Generated from Odin schema definition
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.ROUTING_KEY_DOCUMENT_VALUE_DEFAULT_DELETED = exports.ROUTING_KEY_DOCUMENT_VALUE_DEFAULT_UPDATED = exports.ROUTING_KEY_DOCUMENT_VALUE_DEFAULT_CREATED = exports.ROUTING_KEY_DOCUMENT_VALUE_DELETED = exports.ROUTING_KEY_DOCUMENT_VALUE_UPDATED = exports.ROUTING_KEY_DOCUMENT_VALUE_CREATED = exports.DocumentValue = exports.DocumentValuePropertyKeys = exports.DocumentValueReviewState = exports.DocumentValueKind = exports.DocumentValueEntityTypes = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Available types for DocumentValue records
19
+ */
20
+ var DocumentValueEntityTypes;
21
+ (function (DocumentValueEntityTypes) {
22
+ /** This is the default record type */
23
+ DocumentValueEntityTypes["DEFAULT"] = "DEFAULT";
24
+ })(DocumentValueEntityTypes = exports.DocumentValueEntityTypes || (exports.DocumentValueEntityTypes = {}));
25
+ /**
26
+ * Valid values for DocumentValue.Kind
27
+ *
28
+ * The type of the value, from the field list.
29
+ *
30
+ * @remarks Available options:
31
+ * - `BOOLEAN` - Boolean
32
+ * - `DATE` - Date
33
+ * - `MONEY` - Money
34
+ * - `NUMBER` - Number
35
+ * - `PARTY` - Party
36
+ * - `TEXT` - Text
37
+ */
38
+ var DocumentValueKind;
39
+ (function (DocumentValueKind) {
40
+ DocumentValueKind["BOOLEAN"] = "BOOLEAN";
41
+ DocumentValueKind["DATE"] = "DATE";
42
+ DocumentValueKind["MONEY"] = "MONEY";
43
+ DocumentValueKind["NUMBER"] = "NUMBER";
44
+ DocumentValueKind["PARTY"] = "PARTY";
45
+ DocumentValueKind["TEXT"] = "TEXT";
46
+ })(DocumentValueKind = exports.DocumentValueKind || (exports.DocumentValueKind = {}));
47
+ /**
48
+ * Valid values for DocumentValue.ReviewState
49
+ *
50
+ * Where the value stands with a person: needs review, confirmed, corrected, or not found in the document.
51
+ *
52
+ * @remarks Available options:
53
+ * - `CONFIRMED` - Confirmed
54
+ * - `CORRECTED` - Corrected
55
+ * - `NEEDS_REVIEW` - Needs review
56
+ * - `NOT_FOUND` - Not found
57
+ */
58
+ var DocumentValueReviewState;
59
+ (function (DocumentValueReviewState) {
60
+ DocumentValueReviewState["CONFIRMED"] = "CONFIRMED";
61
+ DocumentValueReviewState["CORRECTED"] = "CORRECTED";
62
+ DocumentValueReviewState["NEEDS_REVIEW"] = "NEEDS_REVIEW";
63
+ DocumentValueReviewState["NOT_FOUND"] = "NOT_FOUND";
64
+ })(DocumentValueReviewState = exports.DocumentValueReviewState || (exports.DocumentValueReviewState = {}));
65
+ /**
66
+ * Property keys for DocumentValue
67
+ * Use these constants instead of string literals for type safety
68
+ */
69
+ var DocumentValuePropertyKeys;
70
+ (function (DocumentValuePropertyKeys) {
71
+ /** The field name from the field list for the document type, e.g. GoverningLaw, PaymentDays. */
72
+ DocumentValuePropertyKeys["Field"] = "Field";
73
+ /** The type of the value, from the field list. */
74
+ DocumentValuePropertyKeys["Kind"] = "Kind";
75
+ /** The value as text, after any correction. Blank when the document does not state it (see ReviewState NOT_FOUND). */
76
+ DocumentValuePropertyKeys["Value"] = "Value";
77
+ /** What the model extracted, kept beside a correction. Equal to Value until a person corrects it. */
78
+ DocumentValuePropertyKeys["ModelValue"] = "ModelValue";
79
+ /** The field list the value was extracted with, e.g. NDA. */
80
+ DocumentValuePropertyKeys["SchemaName"] = "SchemaName";
81
+ /** The version of that field list. */
82
+ DocumentValuePropertyKeys["SchemaVersion"] = "SchemaVersion";
83
+ /** How sure the model was, 0 to 1. */
84
+ DocumentValuePropertyKeys["Confidence"] = "Confidence";
85
+ /** The id of the section in sections.json the value was read from. */
86
+ DocumentValuePropertyKeys["SectionId"] = "SectionId";
87
+ /** The passage, copied word for word from that section, the value rests on; checked against the stored text before the row is written. */
88
+ DocumentValuePropertyKeys["Quote"] = "Quote";
89
+ /** The page of the section. */
90
+ DocumentValuePropertyKeys["Page"] = "Page";
91
+ /** Where the value stands with a person: needs review, confirmed, corrected, or not found in the document. */
92
+ DocumentValuePropertyKeys["ReviewState"] = "ReviewState";
93
+ /** The user who confirmed or corrected the value. */
94
+ DocumentValuePropertyKeys["ReviewedBy"] = "ReviewedBy";
95
+ /** When the value was confirmed or corrected. */
96
+ DocumentValuePropertyKeys["ReviewedAt"] = "ReviewedAt";
97
+ })(DocumentValuePropertyKeys = exports.DocumentValuePropertyKeys || (exports.DocumentValuePropertyKeys = {}));
98
+ /**
99
+ * DocumentValue entity from AiModule
100
+ *
101
+ * One extracted value of a document: the field, the value, where it came from (section, quote, page), the model's confidence, and its review state. Linked to the Document.
102
+ *
103
+ * @module AiModule
104
+ * @entity DocumentValue
105
+ * @schemaId 96afdaae-fb15-4a46-bb1c-67ef9509e02d
106
+ * @recordPrefix DOV
107
+ * @capabilities searchable, updateable, undeletable, triggerable
108
+ */
109
+ class DocumentValue extends core_1.OdinRecord {
110
+ }
111
+ exports.DocumentValue = DocumentValue;
112
+ // ============================================
113
+ // RABBITMQ EVENT ROUTING KEYS
114
+ // ============================================
115
+ /**
116
+ * RabbitMQ routing keys for DocumentValue events
117
+ */
118
+ exports.ROUTING_KEY_DOCUMENT_VALUE_CREATED = 'AiModule.DocumentValue.SubDbRecordCreated';
119
+ exports.ROUTING_KEY_DOCUMENT_VALUE_UPDATED = 'AiModule.DocumentValue.SubDbRecordUpdated';
120
+ exports.ROUTING_KEY_DOCUMENT_VALUE_DELETED = 'AiModule.DocumentValue.SubDbRecordDeleted';
121
+ /**
122
+ * Type-specific routing keys for DocumentValue events
123
+ * Subscribe to these for events on specific entity types only
124
+ */
125
+ /** This is the default record type created */
126
+ exports.ROUTING_KEY_DOCUMENT_VALUE_DEFAULT_CREATED = 'AiModule.DocumentValue.DEFAULT.SubDbRecordCreated';
127
+ /** This is the default record type updated */
128
+ exports.ROUTING_KEY_DOCUMENT_VALUE_DEFAULT_UPDATED = 'AiModule.DocumentValue.DEFAULT.SubDbRecordUpdated';
129
+ /** This is the default record type deleted */
130
+ exports.ROUTING_KEY_DOCUMENT_VALUE_DEFAULT_DELETED = 'AiModule.DocumentValue.DEFAULT.SubDbRecordDeleted';
@@ -616,7 +616,9 @@ export declare enum OrderPropertyKeys {
616
616
  /** The next commitment to fall due. What a "what is about to breach" query sorts on, without walking every commitment. Written only by the lifecycle. */
617
617
  EarliestDueAt = "EarliestDueAt",
618
618
  /** True while the customer has declined the router/mesh dispatch this recontract would otherwise raise. Written by dispatchRouterForSpeedChange on every call — true when a decline is honoured, false otherwise — so reversal is simply calling the endpoint again with no decline flag (ORD-493). */
619
- RouterUpgradeDeclined = "RouterUpgradeDeclined"
619
+ RouterUpgradeDeclined = "RouterUpgradeDeclined",
620
+ /** The activation date asked for when the order was placed. Written once at checkout and never changed; RequestedActivationDate moves when the date does. */
621
+ FirstRequestedActivationDate = "FirstRequestedActivationDate"
620
622
  }
621
623
  /**
622
624
  * Properties for Order records
@@ -1305,6 +1307,12 @@ export interface OrderProperties {
1305
1307
  * @default
1306
1308
  */
1307
1309
  RouterUpgradeDeclined: boolean;
1310
+ /** The activation date asked for when the order was placed. Written once at checkout and never changed; RequestedActivationDate moves when the date does.
1311
+ *
1312
+ * @type {DATE}
1313
+ * @default
1314
+ */
1315
+ FirstRequestedActivationDate: string;
1308
1316
  }
1309
1317
  /**
1310
1318
  * Order entity from OrderModule
@@ -600,6 +600,8 @@ var OrderPropertyKeys;
600
600
  OrderPropertyKeys["EarliestDueAt"] = "EarliestDueAt";
601
601
  /** True while the customer has declined the router/mesh dispatch this recontract would otherwise raise. Written by dispatchRouterForSpeedChange on every call — true when a decline is honoured, false otherwise — so reversal is simply calling the endpoint again with no decline flag (ORD-493). */
602
602
  OrderPropertyKeys["RouterUpgradeDeclined"] = "RouterUpgradeDeclined";
603
+ /** The activation date asked for when the order was placed. Written once at checkout and never changed; RequestedActivationDate moves when the date does. */
604
+ OrderPropertyKeys["FirstRequestedActivationDate"] = "FirstRequestedActivationDate";
603
605
  })(OrderPropertyKeys = exports.OrderPropertyKeys || (exports.OrderPropertyKeys = {}));
604
606
  /**
605
607
  * Order entity from OrderModule
@@ -164,7 +164,11 @@ export declare enum QaReportPropertyKeys {
164
164
  /** Optional note from the manager about the amendment as a whole. */
165
165
  AmendmentNote = "AmendmentNote",
166
166
  /** The bulk QA run this report was generated by. Empty for a report generated from the case tab. */
167
- BatchId = "BatchId"
167
+ BatchId = "BatchId",
168
+ /** The model's verdict per rubric item key, the auto-fails it triggered and PASS/FAIL, as {"result","items","autoFails"}. Written once with the report; never changed. */
169
+ ItemVerdicts = "ItemVerdicts",
170
+ /** The same shape as ItemVerdicts after a manager's amendment. Empty when the report has not been amended; cleared on restore. */
171
+ AmendedItemVerdicts = "AmendedItemVerdicts"
168
172
  }
169
173
  /**
170
174
  * Properties for QaReport records
@@ -358,6 +362,18 @@ export interface QaReportProperties {
358
362
  * @default
359
363
  */
360
364
  BatchId: string;
365
+ /** The model's verdict per rubric item key, the auto-fails it triggered and PASS/FAIL, as {"result","items","autoFails"}. Written once with the report; never changed.
366
+ *
367
+ * @type {JSON}
368
+ * @default
369
+ */
370
+ ItemVerdicts: string;
371
+ /** The same shape as ItemVerdicts after a manager's amendment. Empty when the report has not been amended; cleared on restore.
372
+ *
373
+ * @type {JSON}
374
+ * @default
375
+ */
376
+ AmendedItemVerdicts: string;
361
377
  }
362
378
  /**
363
379
  * QaReport entity from SupportModule
@@ -172,6 +172,10 @@ var QaReportPropertyKeys;
172
172
  QaReportPropertyKeys["AmendmentNote"] = "AmendmentNote";
173
173
  /** The bulk QA run this report was generated by. Empty for a report generated from the case tab. */
174
174
  QaReportPropertyKeys["BatchId"] = "BatchId";
175
+ /** The model's verdict per rubric item key, the auto-fails it triggered and PASS/FAIL, as {"result","items","autoFails"}. Written once with the report; never changed. */
176
+ QaReportPropertyKeys["ItemVerdicts"] = "ItemVerdicts";
177
+ /** The same shape as ItemVerdicts after a manager's amendment. Empty when the report has not been amended; cleared on restore. */
178
+ QaReportPropertyKeys["AmendedItemVerdicts"] = "AmendedItemVerdicts";
175
179
  })(QaReportPropertyKeys = exports.QaReportPropertyKeys || (exports.QaReportPropertyKeys = {}));
176
180
  /**
177
181
  * QaReport entity from SupportModule
@@ -58,12 +58,14 @@ export declare enum DefaultRecontractStageKeys {
58
58
  * - `AGENT` - Agent
59
59
  * - `CUSTOMER_APP` - Customer App
60
60
  * - `CUSTOMER_PORTAL` - Customer Portal
61
+ * - `SPEED_CHANGE` - Speed Change
61
62
  * - `WEB_RECONTRACT` - Website
62
63
  */
63
64
  export declare enum RecontractSource {
64
65
  AGENT = "AGENT",
65
66
  CUSTOMER_APP = "CUSTOMER_APP",
66
67
  CUSTOMER_PORTAL = "CUSTOMER_PORTAL",
68
+ SPEED_CHANGE = "SPEED_CHANGE",
67
69
  WEBSITE = "WEB_RECONTRACT"
68
70
  }
69
71
  /**
@@ -62,6 +62,7 @@ var DefaultRecontractStageKeys;
62
62
  * - `AGENT` - Agent
63
63
  * - `CUSTOMER_APP` - Customer App
64
64
  * - `CUSTOMER_PORTAL` - Customer Portal
65
+ * - `SPEED_CHANGE` - Speed Change
65
66
  * - `WEB_RECONTRACT` - Website
66
67
  */
67
68
  var RecontractSource;
@@ -69,6 +70,7 @@ var RecontractSource;
69
70
  RecontractSource["AGENT"] = "AGENT";
70
71
  RecontractSource["CUSTOMER_APP"] = "CUSTOMER_APP";
71
72
  RecontractSource["CUSTOMER_PORTAL"] = "CUSTOMER_PORTAL";
73
+ RecontractSource["SPEED_CHANGE"] = "SPEED_CHANGE";
72
74
  RecontractSource["WEBSITE"] = "WEB_RECONTRACT";
73
75
  })(RecontractSource = exports.RecontractSource || (exports.RecontractSource = {}));
74
76
  /**
@@ -795,14 +795,14 @@ export declare enum WorkOrderCpe4 {
795
795
  * - `NO_SPEED_UPGRADE_ONT_REPLACEMENT_REQUIRED` - [NO] Speed Upgrade – ONT Replacement Required
796
796
  * - `NO_SPEED_UPGRADE_ONT_ROUTER_AND_MESH_REPLACEMENT_REQ` - [NO] Speed Upgrade – ONT Router & Mesh Replacement Req
797
797
  * - `NO_SPEED_UPGRADE_ONT_AND_ROUTER_REPLACEMENT_REQUIRED` - [NO] Speed Upgrade - ONT & Router Replacement Required
798
+ * - `NO_START_ORDER_ONT_OFFLINE` - [NO] Start Order - ONT Offline
798
799
  * - `NO_TLOS_BIP_ERRORS` - [NO] Tlos Bip Errors
799
800
  * - `NO_TLOS_DAMAGED_FIBRE` - [NO] Tlos Damaged Fibre
800
801
  * - `NO_TLOS_ONT_DOWN` - [NO] Tlos Ont Down
801
802
  * - `RXP_PROJECT` - RXP Project
802
803
  * - `YF_CANCEL_WO_SPEAK_TO_CUSTOMER` - [YF] Cancel WO Speak To Customer
803
804
  * - `YF_CITY_FIBRE_NEW_INSTALLATION` - [YF] City Fibre New Installation
804
- * - `YF_CONNECTION_DROP_OUTS` - [YF] Connection Drop Outs
805
- * - ... and 12 more
805
+ * - ... and 13 more
806
806
  */
807
807
  export declare enum WorkOrderServiceCallReason {
808
808
  NO_ACTIVATION_FAILED_ONT_NOT_READY = "NO_ACTIVATION_FAILED_ONT_NOT_READY",
@@ -813,6 +813,7 @@ export declare enum WorkOrderServiceCallReason {
813
813
  NO_SPEED_UPGRADE_ONT_REPLACEMENT_REQUIRED = "NO_SPEED_UPGRADE_ONT_REPLACEMENT_REQUIRED",
814
814
  NO_SPEED_UPGRADE_ONT_ROUTER_MESH_REPLACEMENT_REQ = "NO_SPEED_UPGRADE_ONT_ROUTER_AND_MESH_REPLACEMENT_REQ",
815
815
  NO_SPEED_UPGRADE_ONT_ROUTER_REPLACEMENT_REQUIRED = "NO_SPEED_UPGRADE_ONT_AND_ROUTER_REPLACEMENT_REQUIRED",
816
+ NO_START_ORDER_ONT_OFFLINE = "NO_START_ORDER_ONT_OFFLINE",
816
817
  NO_TLOS_BIP_ERRORS = "NO_TLOS_BIP_ERRORS",
817
818
  NO_TLOS_DAMAGED_FIBRE = "NO_TLOS_DAMAGED_FIBRE",
818
819
  NO_TLOS_ONT_DOWN = "NO_TLOS_ONT_DOWN",
@@ -768,14 +768,14 @@ var WorkOrderCpe4;
768
768
  * - `NO_SPEED_UPGRADE_ONT_REPLACEMENT_REQUIRED` - [NO] Speed Upgrade – ONT Replacement Required
769
769
  * - `NO_SPEED_UPGRADE_ONT_ROUTER_AND_MESH_REPLACEMENT_REQ` - [NO] Speed Upgrade – ONT Router & Mesh Replacement Req
770
770
  * - `NO_SPEED_UPGRADE_ONT_AND_ROUTER_REPLACEMENT_REQUIRED` - [NO] Speed Upgrade - ONT & Router Replacement Required
771
+ * - `NO_START_ORDER_ONT_OFFLINE` - [NO] Start Order - ONT Offline
771
772
  * - `NO_TLOS_BIP_ERRORS` - [NO] Tlos Bip Errors
772
773
  * - `NO_TLOS_DAMAGED_FIBRE` - [NO] Tlos Damaged Fibre
773
774
  * - `NO_TLOS_ONT_DOWN` - [NO] Tlos Ont Down
774
775
  * - `RXP_PROJECT` - RXP Project
775
776
  * - `YF_CANCEL_WO_SPEAK_TO_CUSTOMER` - [YF] Cancel WO Speak To Customer
776
777
  * - `YF_CITY_FIBRE_NEW_INSTALLATION` - [YF] City Fibre New Installation
777
- * - `YF_CONNECTION_DROP_OUTS` - [YF] Connection Drop Outs
778
- * - ... and 12 more
778
+ * - ... and 13 more
779
779
  */
780
780
  var WorkOrderServiceCallReason;
781
781
  (function (WorkOrderServiceCallReason) {
@@ -787,6 +787,7 @@ var WorkOrderServiceCallReason;
787
787
  WorkOrderServiceCallReason["NO_SPEED_UPGRADE_ONT_REPLACEMENT_REQUIRED"] = "NO_SPEED_UPGRADE_ONT_REPLACEMENT_REQUIRED";
788
788
  WorkOrderServiceCallReason["NO_SPEED_UPGRADE_ONT_ROUTER_MESH_REPLACEMENT_REQ"] = "NO_SPEED_UPGRADE_ONT_ROUTER_AND_MESH_REPLACEMENT_REQ";
789
789
  WorkOrderServiceCallReason["NO_SPEED_UPGRADE_ONT_ROUTER_REPLACEMENT_REQUIRED"] = "NO_SPEED_UPGRADE_ONT_AND_ROUTER_REPLACEMENT_REQUIRED";
790
+ WorkOrderServiceCallReason["NO_START_ORDER_ONT_OFFLINE"] = "NO_START_ORDER_ONT_OFFLINE";
790
791
  WorkOrderServiceCallReason["NO_TLOS_BIP_ERRORS"] = "NO_TLOS_BIP_ERRORS";
791
792
  WorkOrderServiceCallReason["NO_TLOS_DAMAGED_FIBRE"] = "NO_TLOS_DAMAGED_FIBRE";
792
793
  WorkOrderServiceCallReason["NO_TLOS_ONT_DOWN"] = "NO_TLOS_ONT_DOWN";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.376",
3
+ "version": "2.0.378",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",