@d19n/youfibre-odin-sdk 2.0.366 → 2.0.368

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 (80) hide show
  1. package/README.md +9 -26
  2. package/dist/EntityRegistry.d.ts +0 -8
  3. package/dist/EntityRegistry.js +0 -8
  4. package/dist/OdinApiClient.d.ts +0 -16
  5. package/dist/OdinApiClient.js +0 -32
  6. package/dist/OdinDbClient.d.ts +0 -16
  7. package/dist/OdinDbClient.js +0 -32
  8. package/dist/accessors-v2/index.d.ts +0 -4
  9. package/dist/accessors-v2/index.js +2 -10
  10. package/dist/actions-v2/CancelNotStartedReplacementAmcoWorkOrderDto.d.ts +68 -0
  11. package/dist/actions-v2/CancelNotStartedReplacementAmcoWorkOrderDto.js +60 -0
  12. package/dist/actions-v2/CancelOrderForEtfPaidDto.d.ts +67 -0
  13. package/dist/actions-v2/CancelOrderForEtfPaidDto.js +59 -0
  14. package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
  15. package/dist/actions-v2/CreateOutboundDialSessionDto.d.ts +15 -1
  16. package/dist/actions-v2/UpdateOutboundDialSessionDto.d.ts +15 -1
  17. package/dist/actions-v2/UpdateoutbounddialcampaignDto.d.ts +8 -1
  18. package/dist/api-sdk-v2/QaReportAmendmentApi.d.ts +48 -0
  19. package/dist/api-sdk-v2/QaReportAmendmentApi.js +155 -0
  20. package/dist/api-sdk-v2/QaReportApi.d.ts +2 -0
  21. package/dist/api-sdk-v2/QaReportApi.js +6 -0
  22. package/dist/db-accessors-v2/index.d.ts +0 -4
  23. package/dist/db-accessors-v2/index.js +2 -10
  24. package/dist/db-sdk-v2/QaReportAmendmentDb.d.ts +120 -0
  25. package/dist/db-sdk-v2/QaReportAmendmentDb.js +204 -0
  26. package/dist/db-sdk-v2/QaReportDb.d.ts +2 -0
  27. package/dist/db-sdk-v2/QaReportDb.js +6 -0
  28. package/dist/entities-v2/Address.d.ts +10 -1
  29. package/dist/entities-v2/Address.js +2 -0
  30. package/dist/entities-v2/HomeMove.d.ts +23 -1
  31. package/dist/entities-v2/HomeMove.js +17 -1
  32. package/dist/entities-v2/OrderItem.d.ts +2 -0
  33. package/dist/entities-v2/OrderItem.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/OutboundDialSession.d.ts +17 -1
  37. package/dist/entities-v2/OutboundDialSession.js +4 -0
  38. package/dist/entities-v2/QaReport.d.ts +70 -1
  39. package/dist/entities-v2/QaReport.js +31 -1
  40. package/dist/entities-v2/QaReportAmendment.d.ts +209 -0
  41. package/dist/entities-v2/QaReportAmendment.js +120 -0
  42. package/dist/records-v2/OrderRecord.d.ts +25 -0
  43. package/dist/records-v2/OrderRecord.js +29 -0
  44. package/dist/records-v2/WorkOrderRecord.d.ts +25 -0
  45. package/dist/records-v2/WorkOrderRecord.js +29 -0
  46. package/dist/records-v2/index.d.ts +0 -4
  47. package/dist/records-v2/index.js +2 -14
  48. package/package.json +1 -1
  49. package/dist/accessors-v2/QaAutoFailAccessor.d.ts +0 -112
  50. package/dist/accessors-v2/QaAutoFailAccessor.js +0 -191
  51. package/dist/accessors-v2/QaRubricAccessor.d.ts +0 -112
  52. package/dist/accessors-v2/QaRubricAccessor.js +0 -191
  53. package/dist/accessors-v2/QaRubricItemAccessor.d.ts +0 -112
  54. package/dist/accessors-v2/QaRubricItemAccessor.js +0 -191
  55. package/dist/accessors-v2/QaRubricSectionAccessor.d.ts +0 -112
  56. package/dist/accessors-v2/QaRubricSectionAccessor.js +0 -191
  57. package/dist/actions-v2/UpdateQaAutoFailDto.d.ts +0 -102
  58. package/dist/actions-v2/UpdateQaAutoFailDto.js +0 -56
  59. package/dist/actions-v2/UpdateQaRubricDto.d.ts +0 -103
  60. package/dist/actions-v2/UpdateQaRubricDto.js +0 -56
  61. package/dist/actions-v2/UpdateQaRubricItemDto.d.ts +0 -157
  62. package/dist/actions-v2/UpdateQaRubricItemDto.js +0 -56
  63. package/dist/actions-v2/UpdateQaRubricSectionDto.d.ts +0 -87
  64. package/dist/actions-v2/UpdateQaRubricSectionDto.js +0 -56
  65. package/dist/db-accessors-v2/QaAutoFailDbAccessor.d.ts +0 -180
  66. package/dist/db-accessors-v2/QaAutoFailDbAccessor.js +0 -265
  67. package/dist/db-accessors-v2/QaRubricDbAccessor.d.ts +0 -180
  68. package/dist/db-accessors-v2/QaRubricDbAccessor.js +0 -265
  69. package/dist/db-accessors-v2/QaRubricItemDbAccessor.d.ts +0 -180
  70. package/dist/db-accessors-v2/QaRubricItemDbAccessor.js +0 -265
  71. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.d.ts +0 -180
  72. package/dist/db-accessors-v2/QaRubricSectionDbAccessor.js +0 -265
  73. package/dist/records-v2/QaAutoFailRecord.d.ts +0 -205
  74. package/dist/records-v2/QaAutoFailRecord.js +0 -275
  75. package/dist/records-v2/QaRubricItemRecord.d.ts +0 -205
  76. package/dist/records-v2/QaRubricItemRecord.js +0 -275
  77. package/dist/records-v2/QaRubricRecord.d.ts +0 -225
  78. package/dist/records-v2/QaRubricRecord.js +0 -308
  79. package/dist/records-v2/QaRubricSectionRecord.d.ts +0 -225
  80. package/dist/records-v2/QaRubricSectionRecord.js +0 -308
@@ -0,0 +1,204 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.QaReportAmendmentDb = void 0;
13
+ const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
14
+ const db_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/db.record.link.manager");
15
+ /**
16
+ * @deprecated Use OdinDbClient.
17
+ *
18
+ * Migration:
19
+ * - Old: new QaReportAmendmentApi(authParams).get(id)
20
+ * - New: new odin.qareportamendment.get(id)
21
+ *
22
+ * The new OdinDbClient returns typed record wrappers with action methods.
23
+ *
24
+ * Supports separate query options and provider options:
25
+ * - Constructor level: new QaReportAmendmentDb(principal, dbService, { omitPermissionsCheck: true })
26
+ * - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
27
+ */
28
+ class QaReportAmendmentDb extends db_provider_1.DbProvider {
29
+ constructor(principal, dbService, defaultOptions) {
30
+ super(principal, dbService, defaultOptions);
31
+ this.moduleName = 'SupportModule';
32
+ this.entityName = 'QaReportAmendment';
33
+ this.principal = principal;
34
+ this.dbService = dbService;
35
+ // Link managers are lazy-loaded on first access
36
+ }
37
+ // ============================================
38
+ // LAZY-LOADED LINK MANAGERS (Public Getters)
39
+ // ============================================
40
+ // Usage remains identical: db.address.list(recordId)
41
+ get qareport() {
42
+ if (!this._qareport) {
43
+ this._qareport = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:QaReportAmendment', 'SupportModule:QaReport', 'QaReport__Amendment');
44
+ }
45
+ return this._qareport;
46
+ }
47
+ // ============================================
48
+ // STANDARD METHODS
49
+ // ============================================
50
+ // Methods support separate query options and provider options for clean API
51
+ setRecord(sourceRecord) {
52
+ this.sourceRecord = sourceRecord;
53
+ }
54
+ /**
55
+ * Search records with manual pagination control
56
+ * @param params - Search parameters
57
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
58
+ */
59
+ searchRecords(params, providerOptions) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ return yield this._searchRecords(this.moduleName, this.entityName, params, providerOptions);
62
+ });
63
+ }
64
+ /**
65
+ * Search all records with automatic pagination
66
+ * @param params - Search parameters
67
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
68
+ */
69
+ searchAllRecordsAndPaginate(params, providerOptions) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params, 0, providerOptions);
72
+ });
73
+ }
74
+ /**
75
+ * Get a single record by primary key
76
+ * @param qaReportAmendmentId - Record ID
77
+ * @param queryOptions - Query options (WHAT: entities to include)
78
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
79
+ *
80
+ * @example
81
+ * // Simple get
82
+ * const record = await db.getByPrimaryKey(id);
83
+ *
84
+ * // With related entities
85
+ * const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
86
+ *
87
+ * // With permissions bypass
88
+ * const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
89
+ *
90
+ * // Both options
91
+ * const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
92
+ */
93
+ getByPrimaryKey(qaReportAmendmentId, queryOptions, providerOptions) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, qaReportAmendmentId, queryOptions, providerOptions);
96
+ if (res)
97
+ this.setRecord(res);
98
+ return res;
99
+ });
100
+ }
101
+ /**
102
+ * Get multiple records by primary keys
103
+ * @param qaReportAmendmentIds - Array of record IDs
104
+ * @param queryOptions - Query options (WHAT: entities to include)
105
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
106
+ */
107
+ getManyByPrimaryKey(qaReportAmendmentIds, queryOptions, providerOptions) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, qaReportAmendmentIds, queryOptions, providerOptions);
110
+ });
111
+ }
112
+ /**
113
+ * Upsert a single record
114
+ * @param upsertDto - Record to upsert
115
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
116
+ */
117
+ upsert(upsertDto, providerOptions) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto], providerOptions);
120
+ return res[0];
121
+ });
122
+ }
123
+ /**
124
+ * Upsert multiple records
125
+ * @param upsertDtos - Records to upsert
126
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
127
+ */
128
+ upsertMany(upsertDtos, providerOptions) {
129
+ return __awaiter(this, void 0, void 0, function* () {
130
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos, providerOptions);
131
+ });
132
+ }
133
+ /**
134
+ * Update a single record
135
+ * @param updateDto - Record to update
136
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
137
+ */
138
+ update(updateDto, providerOptions) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto], providerOptions);
141
+ return res[0];
142
+ });
143
+ }
144
+ /**
145
+ * Update multiple records
146
+ * @param updateDtos - Records to update
147
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
148
+ */
149
+ updateMany(updateDtos, providerOptions) {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ return yield this._update(this.moduleName, this.entityName, updateDtos, providerOptions);
152
+ });
153
+ }
154
+ /**
155
+ * Delete one or many records
156
+ * @param qaReportAmendmentIds - Record IDs to delete
157
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
158
+ */
159
+ delete(qaReportAmendmentIds, providerOptions) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ return yield this._delete(this.moduleName, this.entityName, qaReportAmendmentIds, providerOptions);
162
+ });
163
+ }
164
+ /**
165
+ * Restore one or many deleted records
166
+ * @param qaReportAmendmentIds - Record IDs to restore
167
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
168
+ */
169
+ restore(qaReportAmendmentIds, providerOptions) {
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ return yield this._restore(this.moduleName, this.entityName, qaReportAmendmentIds, providerOptions);
172
+ });
173
+ }
174
+ /**
175
+ * Apply an action to a record
176
+ * @param actionName - The action key
177
+ * @param dto - The action DTO
178
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
179
+ */
180
+ applyAction(actionName, dto, providerOptions) {
181
+ return __awaiter(this, void 0, void 0, function* () {
182
+ return yield this._applyAction(this.moduleName, this.entityName, dto, providerOptions);
183
+ });
184
+ }
185
+ /**
186
+ * Get version history for the current source record
187
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
188
+ */
189
+ getVersions(providerOptions) {
190
+ return __awaiter(this, void 0, void 0, function* () {
191
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
192
+ });
193
+ }
194
+ /**
195
+ * Get revision timeline for the current source record
196
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
197
+ */
198
+ getRevisionTimeline(providerOptions) {
199
+ return __awaiter(this, void 0, void 0, function* () {
200
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
201
+ });
202
+ }
203
+ }
204
+ exports.QaReportAmendmentDb = QaReportAmendmentDb;
@@ -22,8 +22,10 @@ export declare class QaReportDb extends DbProvider {
22
22
  private readonly entityName;
23
23
  private sourceRecord;
24
24
  private _case?;
25
+ private _qareportamendment?;
25
26
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
26
27
  get case(): DbRecordLinkManager;
28
+ get qareportamendment(): DbRecordLinkManager;
27
29
  setRecord(sourceRecord: any): void;
28
30
  /**
29
31
  * Search records with manual pagination control
@@ -44,6 +44,12 @@ class QaReportDb extends db_provider_1.DbProvider {
44
44
  }
45
45
  return this._case;
46
46
  }
47
+ get qareportamendment() {
48
+ if (!this._qareportamendment) {
49
+ this._qareportamendment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:QaReport', 'SupportModule:QaReportAmendment', 'QaReport__Amendment');
50
+ }
51
+ return this._qareportamendment;
52
+ }
47
53
  // ============================================
48
54
  // STANDARD METHODS
49
55
  // ============================================
@@ -206,7 +206,9 @@ export declare enum AddressPropertyKeys {
206
206
  /** This describes the type of property (Sales - Address) */
207
207
  ClassDescription = "ClassDescription",
208
208
  /** Type of address (Shipping, Billing) (Sales - Address) */
209
- Type = "Type"
209
+ Type = "Type",
210
+ /** the latitude of the property (replaces the misspelled Latititude, CORE-1402) */
211
+ Latitude = "Latitude"
210
212
  }
211
213
  /**
212
214
  * Properties for Address records
@@ -600,6 +602,13 @@ export interface AddressProperties {
600
602
  * @hidden This field is hidden in the UI
601
603
  */
602
604
  Type: AddressType;
605
+ /** the latitude of the property (replaces the misspelled Latititude, CORE-1402)
606
+ *
607
+ * @type {TEXT}
608
+ * @default
609
+ * @hidden This field is hidden in the UI
610
+ */
611
+ Latitude: string;
603
612
  }
604
613
  /**
605
614
  * Address entity from CrmModule
@@ -190,6 +190,8 @@ var AddressPropertyKeys;
190
190
  AddressPropertyKeys["ClassDescription"] = "ClassDescription";
191
191
  /** Type of address (Shipping, Billing) (Sales - Address) */
192
192
  AddressPropertyKeys["Type"] = "Type";
193
+ /** the latitude of the property (replaces the misspelled Latititude, CORE-1402) */
194
+ AddressPropertyKeys["Latitude"] = "Latitude";
193
195
  })(AddressPropertyKeys = exports.AddressPropertyKeys || (exports.AddressPropertyKeys = {}));
194
196
  /**
195
197
  * Address entity from CrmModule
@@ -117,6 +117,19 @@ export declare enum HomeMoveServiceableVia {
117
117
  NONE = "NONE",
118
118
  OPENREACH = "OPENREACH"
119
119
  }
120
+ /**
121
+ * Valid values for HomeMove.NewOrderInstallTimeBlock
122
+ *
123
+ * AM or PM engineer slot for a New Provide move, chosen with NewOrderInstallOrActivationDate from the install calendar. Empty on a Start Order.
124
+ *
125
+ * @remarks Available options:
126
+ * - `AM`
127
+ * - `PM`
128
+ */
129
+ export declare enum HomeMoveNewOrderInstallTimeBlock {
130
+ AM = "AM",
131
+ PM = "PM"
132
+ }
120
133
  /**
121
134
  * Property keys for HomeMove
122
135
  * Use these constants instead of string literals for type safety
@@ -153,7 +166,9 @@ export declare enum HomeMovePropertyKeys {
153
166
  /** True when proof of move arrived in time (ETF Waived). Empty until decided. */
154
167
  EtfWaived = "ETFWaived",
155
168
  /** Which network can serve the new address. Set by the serviceability check at Created. Netomnia and Brsk are one company, so both move now; OPENREACH is a later phase. */
156
- ServiceableVia = "ServiceableVia"
169
+ ServiceableVia = "ServiceableVia",
170
+ /** AM or PM engineer slot for a New Provide move, chosen with NewOrderInstallOrActivationDate from the install calendar. Empty on a Start Order. */
171
+ NewOrderInstallTimeBlock = "NewOrderInstallTimeBlock"
157
172
  }
158
173
  /**
159
174
  * Properties for HomeMove records
@@ -260,6 +275,13 @@ export interface HomeMoveProperties {
260
275
  * @enum {HomeMoveServiceableVia}
261
276
  */
262
277
  ServiceableVia: HomeMoveServiceableVia;
278
+ /** AM or PM engineer slot for a New Provide move, chosen with NewOrderInstallOrActivationDate from the install calendar. Empty on a Start Order.
279
+ *
280
+ * @type {ENUM}
281
+ * @default
282
+ * @enum {HomeMoveNewOrderInstallTimeBlock}
283
+ */
284
+ NewOrderInstallTimeBlock: HomeMoveNewOrderInstallTimeBlock;
263
285
  }
264
286
  /**
265
287
  * HomeMove entity from OrderModule
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_LINK_HOME_MOVE_NOTE_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_NOTE_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_CASE_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_CASE_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_NEW_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_NEW_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_OLD_ORDER_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_OLD_ORDER_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_FILE_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_FILE_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_CONTACT_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_CONTACT_CREATED = exports.ROUTING_KEY_HOME_MOVE_DEFAULT_DELETED = exports.ROUTING_KEY_HOME_MOVE_DEFAULT_UPDATED = exports.ROUTING_KEY_HOME_MOVE_DEFAULT_CREATED = exports.ROUTING_KEY_HOME_MOVE_DELETED = exports.ROUTING_KEY_HOME_MOVE_UPDATED = exports.ROUTING_KEY_HOME_MOVE_CREATED = exports.HomeMove = exports.HomeMovePropertyKeys = exports.HomeMoveServiceableVia = exports.HomeMoveCollectionKitAddress = exports.HomeMoveRouterDeliveryAddress = exports.DefaultHomeMoveStageKeys = exports.DefaultHomeMoveStageNames = exports.HomeMoveEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_HOME_MOVE_NOTE_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_NOTE_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_CASE_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_CASE_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_NEW_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_NEW_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_OLD_ORDER_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_OLD_ORDER_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_FILE_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_FILE_CREATED = exports.ROUTING_KEY_LINK_HOME_MOVE_CONTACT_DELETED = exports.ROUTING_KEY_LINK_HOME_MOVE_CONTACT_CREATED = exports.ROUTING_KEY_HOME_MOVE_DEFAULT_DELETED = exports.ROUTING_KEY_HOME_MOVE_DEFAULT_UPDATED = exports.ROUTING_KEY_HOME_MOVE_DEFAULT_CREATED = exports.ROUTING_KEY_HOME_MOVE_DELETED = exports.ROUTING_KEY_HOME_MOVE_UPDATED = exports.ROUTING_KEY_HOME_MOVE_CREATED = exports.HomeMove = exports.HomeMovePropertyKeys = exports.HomeMoveNewOrderInstallTimeBlock = exports.HomeMoveServiceableVia = exports.HomeMoveCollectionKitAddress = exports.HomeMoveRouterDeliveryAddress = exports.DefaultHomeMoveStageKeys = exports.DefaultHomeMoveStageNames = exports.HomeMoveEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for HomeMove records
@@ -119,6 +119,20 @@ var HomeMoveServiceableVia;
119
119
  HomeMoveServiceableVia["NONE"] = "NONE";
120
120
  HomeMoveServiceableVia["OPENREACH"] = "OPENREACH";
121
121
  })(HomeMoveServiceableVia = exports.HomeMoveServiceableVia || (exports.HomeMoveServiceableVia = {}));
122
+ /**
123
+ * Valid values for HomeMove.NewOrderInstallTimeBlock
124
+ *
125
+ * AM or PM engineer slot for a New Provide move, chosen with NewOrderInstallOrActivationDate from the install calendar. Empty on a Start Order.
126
+ *
127
+ * @remarks Available options:
128
+ * - `AM`
129
+ * - `PM`
130
+ */
131
+ var HomeMoveNewOrderInstallTimeBlock;
132
+ (function (HomeMoveNewOrderInstallTimeBlock) {
133
+ HomeMoveNewOrderInstallTimeBlock["AM"] = "AM";
134
+ HomeMoveNewOrderInstallTimeBlock["PM"] = "PM";
135
+ })(HomeMoveNewOrderInstallTimeBlock = exports.HomeMoveNewOrderInstallTimeBlock || (exports.HomeMoveNewOrderInstallTimeBlock = {}));
122
136
  /**
123
137
  * Property keys for HomeMove
124
138
  * Use these constants instead of string literals for type safety
@@ -157,6 +171,8 @@ var HomeMovePropertyKeys;
157
171
  HomeMovePropertyKeys["EtfWaived"] = "ETFWaived";
158
172
  /** Which network can serve the new address. Set by the serviceability check at Created. Netomnia and Brsk are one company, so both move now; OPENREACH is a later phase. */
159
173
  HomeMovePropertyKeys["ServiceableVia"] = "ServiceableVia";
174
+ /** AM or PM engineer slot for a New Provide move, chosen with NewOrderInstallOrActivationDate from the install calendar. Empty on a Start Order. */
175
+ HomeMovePropertyKeys["NewOrderInstallTimeBlock"] = "NewOrderInstallTimeBlock";
160
176
  })(HomeMovePropertyKeys = exports.HomeMovePropertyKeys || (exports.HomeMovePropertyKeys = {}));
161
177
  /**
162
178
  * HomeMove entity from OrderModule
@@ -45,6 +45,7 @@ export declare enum OrderItemEntityTypes {
45
45
  * - `BT`
46
46
  * - `EE`
47
47
  * - `GRAIN` - Grain
48
+ * - `HOME_MOVE` - Home Move
48
49
  * - `LIGHTSPEED` - LightSpeed
49
50
  * - `OTHER` - Other
50
51
  * - `POP_TELECOM` - POP Telecom
@@ -60,6 +61,7 @@ export declare enum OrderItemPriceMatchedTo {
60
61
  BT = "BT",
61
62
  EE = "EE",
62
63
  GRAIN = "GRAIN",
64
+ HOME_MOVE = "HOME_MOVE",
63
65
  LIGHT_SPEED = "LIGHTSPEED",
64
66
  OTHER = "OTHER",
65
67
  POP_TELECOM = "POP_TELECOM",
@@ -32,6 +32,7 @@ var OrderItemEntityTypes;
32
32
  * - `BT`
33
33
  * - `EE`
34
34
  * - `GRAIN` - Grain
35
+ * - `HOME_MOVE` - Home Move
35
36
  * - `LIGHTSPEED` - LightSpeed
36
37
  * - `OTHER` - Other
37
38
  * - `POP_TELECOM` - POP Telecom
@@ -48,6 +49,7 @@ var OrderItemPriceMatchedTo;
48
49
  OrderItemPriceMatchedTo["BT"] = "BT";
49
50
  OrderItemPriceMatchedTo["EE"] = "EE";
50
51
  OrderItemPriceMatchedTo["GRAIN"] = "GRAIN";
52
+ OrderItemPriceMatchedTo["HOME_MOVE"] = "HOME_MOVE";
51
53
  OrderItemPriceMatchedTo["LIGHT_SPEED"] = "LIGHTSPEED";
52
54
  OrderItemPriceMatchedTo["OTHER"] = "OTHER";
53
55
  OrderItemPriceMatchedTo["POP_TELECOM"] = "POP_TELECOM";
@@ -54,7 +54,9 @@ export declare enum OutboundDialCampaignPropertyKeys {
54
54
  /** Inactive campaigns hidden from agents */
55
55
  IsActive = "IsActive",
56
56
  /** Override Twilio CLI Outbound number in case needed for different campaigns */
57
- CallerId = "CallerId"
57
+ CallerId = "CallerId",
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"
58
60
  }
59
61
  /**
60
62
  * Properties for OutboundDialCampaign records
@@ -102,6 +104,12 @@ export interface OutboundDialCampaignProperties {
102
104
  * @type {PHONE_NUMBER}
103
105
  */
104
106
  CallerId: string;
107
+ /** 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.
108
+ *
109
+ * @type {TEXT}
110
+ * @default
111
+ */
112
+ DistributionMode: string;
105
113
  }
106
114
  /**
107
115
  * OutboundDialCampaign entity from SupportModule
@@ -56,6 +56,8 @@ var OutboundDialCampaignPropertyKeys;
56
56
  OutboundDialCampaignPropertyKeys["IsActive"] = "IsActive";
57
57
  /** Override Twilio CLI Outbound number in case needed for different campaigns */
58
58
  OutboundDialCampaignPropertyKeys["CallerId"] = "CallerId";
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
+ OutboundDialCampaignPropertyKeys["DistributionMode"] = "DistributionMode";
59
61
  })(OutboundDialCampaignPropertyKeys = exports.OutboundDialCampaignPropertyKeys || (exports.OutboundDialCampaignPropertyKeys = {}));
60
62
  /**
61
63
  * OutboundDialCampaign entity from SupportModule
@@ -86,7 +86,11 @@ export declare enum OutboundDialSessionPropertyKeys {
86
86
  /** Dial attempts in this session that ended BUSY. Previously folded into NoAnswerCount (CASES-1830). Sibling of AttemptsCount / ConnectedCount / MachineCount / NoAnswerCount; zeroed at session creation like them. */
87
87
  BusyCount = "BusyCount",
88
88
  /** Dial attempts in this session that ended FAILED (carrier failure / cancelled). Previously folded into NoAnswerCount (CASES-1830). Sibling of AttemptsCount / ConnectedCount / MachineCount / NoAnswerCount; zeroed at session creation like them. */
89
- FailedCount = "FailedCount"
89
+ FailedCount = "FailedCount",
90
+ /** New (previously unassigned) cases the dialler has handed this session on a ROUND_ROBIN campaign. The turn rule gives the next new case to the session with the fewest (CASES-1984). */
91
+ CasesAssigned = "CasesAssigned",
92
+ /** When the agent last asked for their next case. A session that has not asked for 5 minutes is left out of the round-robin turn rule until it asks again (CASES-1984). */
93
+ LastCaseRequestAt = "LastCaseRequestAt"
90
94
  }
91
95
  /**
92
96
  * Properties for OutboundDialSession records
@@ -168,6 +172,18 @@ export interface OutboundDialSessionProperties {
168
172
  * @default
169
173
  */
170
174
  FailedCount: number;
175
+ /** New (previously unassigned) cases the dialler has handed this session on a ROUND_ROBIN campaign. The turn rule gives the next new case to the session with the fewest (CASES-1984).
176
+ *
177
+ * @type {NUMBER}
178
+ * @default 0
179
+ */
180
+ CasesAssigned: number;
181
+ /** When the agent last asked for their next case. A session that has not asked for 5 minutes is left out of the round-robin turn rule until it asks again (CASES-1984).
182
+ *
183
+ * @type {DATE_TIME}
184
+ * @default
185
+ */
186
+ LastCaseRequestAt: string;
171
187
  }
172
188
  /**
173
189
  * OutboundDialSession entity from SupportModule
@@ -90,6 +90,10 @@ var OutboundDialSessionPropertyKeys;
90
90
  OutboundDialSessionPropertyKeys["BusyCount"] = "BusyCount";
91
91
  /** Dial attempts in this session that ended FAILED (carrier failure / cancelled). Previously folded into NoAnswerCount (CASES-1830). Sibling of AttemptsCount / ConnectedCount / MachineCount / NoAnswerCount; zeroed at session creation like them. */
92
92
  OutboundDialSessionPropertyKeys["FailedCount"] = "FailedCount";
93
+ /** New (previously unassigned) cases the dialler has handed this session on a ROUND_ROBIN campaign. The turn rule gives the next new case to the session with the fewest (CASES-1984). */
94
+ OutboundDialSessionPropertyKeys["CasesAssigned"] = "CasesAssigned";
95
+ /** When the agent last asked for their next case. A session that has not asked for 5 minutes is left out of the round-robin turn rule until it asks again (CASES-1984). */
96
+ OutboundDialSessionPropertyKeys["LastCaseRequestAt"] = "LastCaseRequestAt";
93
97
  })(OutboundDialSessionPropertyKeys = exports.OutboundDialSessionPropertyKeys || (exports.OutboundDialSessionPropertyKeys = {}));
94
98
  /**
95
99
  * OutboundDialSession entity from SupportModule
@@ -12,6 +12,7 @@
12
12
  */
13
13
  import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
14
  import { CaseProperties } from './Case';
15
+ import { QaReportAmendmentProperties } from './QaReportAmendment';
15
16
  /**
16
17
  * Available types for QaReport records
17
18
  */
@@ -85,6 +86,19 @@ export declare enum QaReportStatus {
85
86
  FAILED = "FAILED",
86
87
  PENDING = "PENDING"
87
88
  }
89
+ /**
90
+ * Valid values for QaReport.AmendedResult
91
+ *
92
+ * PASS or FAIL after the amendment, from the benchmark and the auto-fails as amended.
93
+ *
94
+ * @remarks Available options:
95
+ * - `FAIL` - Fail
96
+ * - `PASS` - Pass
97
+ */
98
+ export declare enum QaReportAmendedResult {
99
+ FAIL = "FAIL",
100
+ PASS = "PASS"
101
+ }
88
102
  /**
89
103
  * Property keys for QaReport
90
104
  * Use these constants instead of string literals for type safety
@@ -135,7 +149,19 @@ export declare enum QaReportPropertyKeys {
135
149
  /** Display name of the person who pressed Generate. */
136
150
  RequestedBy = "RequestedBy",
137
151
  /** When Generate was pressed. The report is written against this row when the worker finishes. */
138
- RequestedAt = "RequestedAt"
152
+ RequestedAt = "RequestedAt",
153
+ /** The score after a manager corrected the model, recomputed by the same rule. Empty when the report has not been amended. */
154
+ AmendedScore = "AmendedScore",
155
+ /** PASS or FAIL after the amendment, from the benchmark and the auto-fails as amended. */
156
+ AmendedResult = "AmendedResult",
157
+ /** When the live amendment was made. */
158
+ AmendedAt = "AmendedAt",
159
+ /** Display name of the manager who made the live amendment. */
160
+ AmendedBy = "AmendedBy",
161
+ /** S3 URL of the amended result JSON: the same shape as QaResultUrl, with the amendment applied and recorded inside it. */
162
+ AmendedResultUrl = "AmendedResultUrl",
163
+ /** Optional note from the manager about the amendment as a whole. */
164
+ AmendmentNote = "AmendmentNote"
139
165
  }
140
166
  /**
141
167
  * Properties for QaReport records
@@ -286,6 +312,43 @@ export interface QaReportProperties {
286
312
  * @default
287
313
  */
288
314
  RequestedAt: string;
315
+ /** The score after a manager corrected the model, recomputed by the same rule. Empty when the report has not been amended.
316
+ *
317
+ * @type {NUMBER}
318
+ * @default
319
+ */
320
+ AmendedScore: number;
321
+ /** PASS or FAIL after the amendment, from the benchmark and the auto-fails as amended.
322
+ *
323
+ * @type {ENUM}
324
+ * @default
325
+ * @enum {QaReportAmendedResult}
326
+ */
327
+ AmendedResult: QaReportAmendedResult;
328
+ /** When the live amendment was made.
329
+ *
330
+ * @type {DATE_TIME}
331
+ * @default
332
+ */
333
+ AmendedAt: string;
334
+ /** Display name of the manager who made the live amendment.
335
+ *
336
+ * @type {TEXT}
337
+ * @default
338
+ */
339
+ AmendedBy: string;
340
+ /** S3 URL of the amended result JSON: the same shape as QaResultUrl, with the amendment applied and recorded inside it.
341
+ *
342
+ * @type {TEXT}
343
+ * @default
344
+ */
345
+ AmendedResultUrl: string;
346
+ /** Optional note from the manager about the amendment as a whole.
347
+ *
348
+ * @type {TEXT}
349
+ * @default
350
+ */
351
+ AmendmentNote: string;
289
352
  }
290
353
  /**
291
354
  * QaReport entity from SupportModule
@@ -305,6 +368,8 @@ export declare class QaReport extends OdinRecord<QaReportProperties> {
305
368
  properties: QaReportProperties;
306
369
  /** Linked Case records (Case__QaReport) */
307
370
  Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
371
+ /** Linked QaReportAmendment records (QaReport__Amendment) */
372
+ QaReportAmendment: OdinLink<LinkedOdinRecord<QaReportAmendmentProperties>>;
308
373
  }
309
374
  /**
310
375
  * RabbitMQ routing keys for QaReport events
@@ -322,3 +387,7 @@ export declare const ROUTING_KEY_QA_REPORT_DEFAULT_CREATED = "SupportModule.QaRe
322
387
  export declare const ROUTING_KEY_QA_REPORT_DEFAULT_UPDATED = "SupportModule.QaReport.DEFAULT.SubDbRecordUpdated";
323
388
  /** This is the default record type deleted */
324
389
  export declare const ROUTING_KEY_QA_REPORT_DEFAULT_DELETED = "SupportModule.QaReport.DEFAULT.SubDbRecordDeleted";
390
+ /** Event: QaReport__Amendment link created */
391
+ export declare const ROUTING_KEY_LINK_QA_REPORT_AMENDMENT_CREATED = "SupportModule.QaReport.QaReportAmendment.SubDbRecordAssociationCreated";
392
+ /** Event: QaReport__Amendment link deleted */
393
+ export declare const ROUTING_KEY_LINK_QA_REPORT_AMENDMENT_DELETED = "SupportModule.QaReport.QaReportAmendment.SubDbRecordAssociationDeleted";
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_QA_REPORT_DEFAULT_DELETED = exports.ROUTING_KEY_QA_REPORT_DEFAULT_UPDATED = exports.ROUTING_KEY_QA_REPORT_DEFAULT_CREATED = exports.ROUTING_KEY_QA_REPORT_DELETED = exports.ROUTING_KEY_QA_REPORT_UPDATED = exports.ROUTING_KEY_QA_REPORT_CREATED = exports.QaReport = exports.QaReportPropertyKeys = exports.QaReportStatus = exports.QaReportFeedbackReason = exports.QaReportFeedbackAccuracy = exports.QaReportChannel = exports.QaReportEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_QA_REPORT_AMENDMENT_DELETED = exports.ROUTING_KEY_LINK_QA_REPORT_AMENDMENT_CREATED = exports.ROUTING_KEY_QA_REPORT_DEFAULT_DELETED = exports.ROUTING_KEY_QA_REPORT_DEFAULT_UPDATED = exports.ROUTING_KEY_QA_REPORT_DEFAULT_CREATED = exports.ROUTING_KEY_QA_REPORT_DELETED = exports.ROUTING_KEY_QA_REPORT_UPDATED = exports.ROUTING_KEY_QA_REPORT_CREATED = exports.QaReport = exports.QaReportPropertyKeys = exports.QaReportAmendedResult = exports.QaReportStatus = exports.QaReportFeedbackReason = exports.QaReportFeedbackAccuracy = exports.QaReportChannel = exports.QaReportEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for QaReport records
@@ -92,6 +92,20 @@ var QaReportStatus;
92
92
  QaReportStatus["FAILED"] = "FAILED";
93
93
  QaReportStatus["PENDING"] = "PENDING";
94
94
  })(QaReportStatus = exports.QaReportStatus || (exports.QaReportStatus = {}));
95
+ /**
96
+ * Valid values for QaReport.AmendedResult
97
+ *
98
+ * PASS or FAIL after the amendment, from the benchmark and the auto-fails as amended.
99
+ *
100
+ * @remarks Available options:
101
+ * - `FAIL` - Fail
102
+ * - `PASS` - Pass
103
+ */
104
+ var QaReportAmendedResult;
105
+ (function (QaReportAmendedResult) {
106
+ QaReportAmendedResult["FAIL"] = "FAIL";
107
+ QaReportAmendedResult["PASS"] = "PASS";
108
+ })(QaReportAmendedResult = exports.QaReportAmendedResult || (exports.QaReportAmendedResult = {}));
95
109
  /**
96
110
  * Property keys for QaReport
97
111
  * Use these constants instead of string literals for type safety
@@ -144,6 +158,18 @@ var QaReportPropertyKeys;
144
158
  QaReportPropertyKeys["RequestedBy"] = "RequestedBy";
145
159
  /** When Generate was pressed. The report is written against this row when the worker finishes. */
146
160
  QaReportPropertyKeys["RequestedAt"] = "RequestedAt";
161
+ /** The score after a manager corrected the model, recomputed by the same rule. Empty when the report has not been amended. */
162
+ QaReportPropertyKeys["AmendedScore"] = "AmendedScore";
163
+ /** PASS or FAIL after the amendment, from the benchmark and the auto-fails as amended. */
164
+ QaReportPropertyKeys["AmendedResult"] = "AmendedResult";
165
+ /** When the live amendment was made. */
166
+ QaReportPropertyKeys["AmendedAt"] = "AmendedAt";
167
+ /** Display name of the manager who made the live amendment. */
168
+ QaReportPropertyKeys["AmendedBy"] = "AmendedBy";
169
+ /** S3 URL of the amended result JSON: the same shape as QaResultUrl, with the amendment applied and recorded inside it. */
170
+ QaReportPropertyKeys["AmendedResultUrl"] = "AmendedResultUrl";
171
+ /** Optional note from the manager about the amendment as a whole. */
172
+ QaReportPropertyKeys["AmendmentNote"] = "AmendmentNote";
147
173
  })(QaReportPropertyKeys = exports.QaReportPropertyKeys || (exports.QaReportPropertyKeys = {}));
148
174
  /**
149
175
  * QaReport entity from SupportModule
@@ -178,3 +204,7 @@ exports.ROUTING_KEY_QA_REPORT_DEFAULT_CREATED = 'SupportModule.QaReport.DEFAULT.
178
204
  exports.ROUTING_KEY_QA_REPORT_DEFAULT_UPDATED = 'SupportModule.QaReport.DEFAULT.SubDbRecordUpdated';
179
205
  /** This is the default record type deleted */
180
206
  exports.ROUTING_KEY_QA_REPORT_DEFAULT_DELETED = 'SupportModule.QaReport.DEFAULT.SubDbRecordDeleted';
207
+ /** Event: QaReport__Amendment link created */
208
+ exports.ROUTING_KEY_LINK_QA_REPORT_AMENDMENT_CREATED = 'SupportModule.QaReport.QaReportAmendment.SubDbRecordAssociationCreated';
209
+ /** Event: QaReport__Amendment link deleted */
210
+ exports.ROUTING_KEY_LINK_QA_REPORT_AMENDMENT_DELETED = 'SupportModule.QaReport.QaReportAmendment.SubDbRecordAssociationDeleted';