@d19n/youfibre-odin-sdk 2.0.377 → 2.0.379

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 (35) hide show
  1. package/README.md +2 -1
  2. package/dist/api-sdk-v2/AccountApi.d.ts +2 -0
  3. package/dist/api-sdk-v2/AccountApi.js +6 -0
  4. package/dist/api-sdk-v2/ContractApi.d.ts +52 -0
  5. package/dist/api-sdk-v2/ContractApi.js +167 -0
  6. package/dist/api-sdk-v2/OrderApi.d.ts +2 -0
  7. package/dist/api-sdk-v2/OrderApi.js +6 -0
  8. package/dist/api-sdk-v2/RecontractApi.d.ts +2 -0
  9. package/dist/api-sdk-v2/RecontractApi.js +6 -0
  10. package/dist/db-sdk-v2/AccountDb.d.ts +2 -0
  11. package/dist/db-sdk-v2/AccountDb.js +6 -0
  12. package/dist/db-sdk-v2/ContractDb.d.ts +124 -0
  13. package/dist/db-sdk-v2/ContractDb.js +216 -0
  14. package/dist/db-sdk-v2/OrderDb.d.ts +2 -0
  15. package/dist/db-sdk-v2/OrderDb.js +6 -0
  16. package/dist/db-sdk-v2/RecontractDb.d.ts +2 -0
  17. package/dist/db-sdk-v2/RecontractDb.js +6 -0
  18. package/dist/entities-v2/Account.d.ts +3 -0
  19. package/dist/entities-v2/Case.d.ts +9 -3
  20. package/dist/entities-v2/Case.js +9 -3
  21. package/dist/entities-v2/ChangeReason.d.ts +2 -1
  22. package/dist/entities-v2/ChangeReason.js +2 -1
  23. package/dist/entities-v2/Contract.d.ts +299 -0
  24. package/dist/entities-v2/Contract.js +198 -0
  25. package/dist/entities-v2/DocumentProcessing.d.ts +3 -1
  26. package/dist/entities-v2/DocumentProcessing.js +2 -0
  27. package/dist/entities-v2/Lead.d.ts +2 -0
  28. package/dist/entities-v2/Lead.js +2 -0
  29. package/dist/entities-v2/Order.d.ts +12 -1
  30. package/dist/entities-v2/Order.js +2 -0
  31. package/dist/entities-v2/Recontract.d.ts +16 -1
  32. package/dist/entities-v2/Recontract.js +7 -1
  33. package/dist/entities-v2/WorkOrder.d.ts +3 -2
  34. package/dist/entities-v2/WorkOrder.js +3 -2
  35. package/package.json +1 -1
@@ -0,0 +1,216 @@
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.ContractDb = 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 ContractApi(authParams).get(id)
20
+ * - New: new odin.contract.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 ContractDb(principal, dbService, { omitPermissionsCheck: true })
26
+ * - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
27
+ */
28
+ class ContractDb extends db_provider_1.DbProvider {
29
+ constructor(principal, dbService, defaultOptions) {
30
+ super(principal, dbService, defaultOptions);
31
+ this.moduleName = 'OrderModule';
32
+ this.entityName = 'Contract';
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 order() {
42
+ if (!this._order) {
43
+ this._order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Contract', 'OrderModule:Order', 'Contract__Order');
44
+ }
45
+ return this._order;
46
+ }
47
+ get account() {
48
+ if (!this._account) {
49
+ this._account = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Contract', 'CrmModule:Account', 'Contract__Account');
50
+ }
51
+ return this._account;
52
+ }
53
+ get recontract() {
54
+ if (!this._recontract) {
55
+ this._recontract = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Contract', 'OrderModule:Recontract', 'Recontract__Contract');
56
+ }
57
+ return this._recontract;
58
+ }
59
+ // ============================================
60
+ // STANDARD METHODS
61
+ // ============================================
62
+ // Methods support separate query options and provider options for clean API
63
+ setRecord(sourceRecord) {
64
+ this.sourceRecord = sourceRecord;
65
+ }
66
+ /**
67
+ * Search records with manual pagination control
68
+ * @param params - Search parameters
69
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
70
+ */
71
+ searchRecords(params, providerOptions) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ return yield this._searchRecords(this.moduleName, this.entityName, params, providerOptions);
74
+ });
75
+ }
76
+ /**
77
+ * Search all records with automatic pagination
78
+ * @param params - Search parameters
79
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
80
+ */
81
+ searchAllRecordsAndPaginate(params, providerOptions) {
82
+ return __awaiter(this, void 0, void 0, function* () {
83
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params, 0, providerOptions);
84
+ });
85
+ }
86
+ /**
87
+ * Get a single record by primary key
88
+ * @param contractId - Record ID
89
+ * @param queryOptions - Query options (WHAT: entities to include)
90
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
91
+ *
92
+ * @example
93
+ * // Simple get
94
+ * const record = await db.getByPrimaryKey(id);
95
+ *
96
+ * // With related entities
97
+ * const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
98
+ *
99
+ * // With permissions bypass
100
+ * const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
101
+ *
102
+ * // Both options
103
+ * const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
104
+ */
105
+ getByPrimaryKey(contractId, queryOptions, providerOptions) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, contractId, queryOptions, providerOptions);
108
+ if (res)
109
+ this.setRecord(res);
110
+ return res;
111
+ });
112
+ }
113
+ /**
114
+ * Get multiple records by primary keys
115
+ * @param contractIds - Array of record IDs
116
+ * @param queryOptions - Query options (WHAT: entities to include)
117
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
118
+ */
119
+ getManyByPrimaryKey(contractIds, queryOptions, providerOptions) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, contractIds, queryOptions, providerOptions);
122
+ });
123
+ }
124
+ /**
125
+ * Upsert a single record
126
+ * @param upsertDto - Record to upsert
127
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
128
+ */
129
+ upsert(upsertDto, providerOptions) {
130
+ return __awaiter(this, void 0, void 0, function* () {
131
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto], providerOptions);
132
+ return res[0];
133
+ });
134
+ }
135
+ /**
136
+ * Upsert multiple records
137
+ * @param upsertDtos - Records to upsert
138
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
139
+ */
140
+ upsertMany(upsertDtos, providerOptions) {
141
+ return __awaiter(this, void 0, void 0, function* () {
142
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos, providerOptions);
143
+ });
144
+ }
145
+ /**
146
+ * Update a single record
147
+ * @param updateDto - Record to update
148
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
149
+ */
150
+ update(updateDto, providerOptions) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto], providerOptions);
153
+ return res[0];
154
+ });
155
+ }
156
+ /**
157
+ * Update multiple records
158
+ * @param updateDtos - Records to update
159
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
160
+ */
161
+ updateMany(updateDtos, providerOptions) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ return yield this._update(this.moduleName, this.entityName, updateDtos, providerOptions);
164
+ });
165
+ }
166
+ /**
167
+ * Delete one or many records
168
+ * @param contractIds - Record IDs to delete
169
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
170
+ */
171
+ delete(contractIds, providerOptions) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ return yield this._delete(this.moduleName, this.entityName, contractIds, providerOptions);
174
+ });
175
+ }
176
+ /**
177
+ * Restore one or many deleted records
178
+ * @param contractIds - Record IDs to restore
179
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
180
+ */
181
+ restore(contractIds, providerOptions) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ return yield this._restore(this.moduleName, this.entityName, contractIds, providerOptions);
184
+ });
185
+ }
186
+ /**
187
+ * Apply an action to a record
188
+ * @param actionName - The action key
189
+ * @param dto - The action DTO
190
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
191
+ */
192
+ applyAction(actionName, dto, providerOptions) {
193
+ return __awaiter(this, void 0, void 0, function* () {
194
+ return yield this._applyAction(this.moduleName, this.entityName, dto, providerOptions);
195
+ });
196
+ }
197
+ /**
198
+ * Get version history for the current source record
199
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
200
+ */
201
+ getVersions(providerOptions) {
202
+ return __awaiter(this, void 0, void 0, function* () {
203
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
204
+ });
205
+ }
206
+ /**
207
+ * Get revision timeline for the current source record
208
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
209
+ */
210
+ getRevisionTimeline(providerOptions) {
211
+ return __awaiter(this, void 0, void 0, function* () {
212
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
213
+ });
214
+ }
215
+ }
216
+ exports.ContractDb = ContractDb;
@@ -66,6 +66,7 @@ export declare class OrderDb extends DbProvider {
66
66
  private _commitment?;
67
67
  private _homemove__oldorder?;
68
68
  private _homemove__neworder?;
69
+ private _contract?;
69
70
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
70
71
  get note(): DbRecordLinkManager;
71
72
  get lead(): DbRecordLinkManager;
@@ -112,6 +113,7 @@ export declare class OrderDb extends DbProvider {
112
113
  get commitment(): DbRecordLinkManager;
113
114
  get homemove__oldorder(): DbRecordLinkManager;
114
115
  get homemove__neworder(): DbRecordLinkManager;
116
+ get contract(): DbRecordLinkManager;
115
117
  setRecord(sourceRecord: any): void;
116
118
  /**
117
119
  * Search records with manual pagination control
@@ -308,6 +308,12 @@ class OrderDb extends db_provider_1.DbProvider {
308
308
  }
309
309
  return this._homemove__neworder;
310
310
  }
311
+ get contract() {
312
+ if (!this._contract) {
313
+ this._contract = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'OrderModule:Contract', 'Contract__Order');
314
+ }
315
+ return this._contract;
316
+ }
311
317
  // ============================================
312
318
  // STANDARD METHODS
313
319
  // ============================================
@@ -23,9 +23,11 @@ export declare class RecontractDb extends DbProvider {
23
23
  private sourceRecord;
24
24
  private _order?;
25
25
  private _modifyservicerequest?;
26
+ private _contract?;
26
27
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
27
28
  get order(): DbRecordLinkManager;
28
29
  get modifyservicerequest(): DbRecordLinkManager;
30
+ get contract(): DbRecordLinkManager;
29
31
  setRecord(sourceRecord: any): void;
30
32
  /**
31
33
  * Search records with manual pagination control
@@ -50,6 +50,12 @@ class RecontractDb extends db_provider_1.DbProvider {
50
50
  }
51
51
  return this._modifyservicerequest;
52
52
  }
53
+ get contract() {
54
+ if (!this._contract) {
55
+ this._contract = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Recontract', 'OrderModule:Contract', 'Recontract__Contract');
56
+ }
57
+ return this._contract;
58
+ }
53
59
  // ============================================
54
60
  // STANDARD METHODS
55
61
  // ============================================
@@ -26,6 +26,7 @@ import { FileProperties } from './File';
26
26
  import { DataIssueProperties } from './DataIssue';
27
27
  import { FrustrationScoreProperties } from './FrustrationScore';
28
28
  import { FrustrationEventProperties } from './FrustrationEvent';
29
+ import { ContractProperties } from './Contract';
29
30
  /**
30
31
  * Available types for Account records
31
32
  */
@@ -800,6 +801,8 @@ export declare class Account extends OdinRecord<AccountProperties> {
800
801
  FrustrationScore: OdinLink<LinkedOdinRecord<FrustrationScoreProperties>>;
801
802
  /** Linked FrustrationEvent records (FrustrationEvent__Account) */
802
803
  FrustrationEvent: OdinLink<LinkedOdinRecord<FrustrationEventProperties>>;
804
+ /** Linked Contract records (Contract__Account) */
805
+ Contract: OdinLink<LinkedOdinRecord<ContractProperties>>;
803
806
  }
804
807
  /**
805
808
  * RabbitMQ routing keys for Account events
@@ -430,6 +430,7 @@ export declare enum CaseCategory {
430
430
  * - `AMEND_MY_ORDER` - Amend my Order
431
431
  * - `AREA_AVAILABILITY_QUERY` - Area Availability Query
432
432
  * - `BAD_CSAT` - Bad CSAT
433
+ * - `BILLING` - Billing
433
434
  * - `CANCEL_APPOINTMENT` - Cancel Appointment
434
435
  * - `CHANGE_CONTACT_DETAILS` - Change contact details
435
436
  * - `CHURN_REQUEST` - Churn Request
@@ -439,15 +440,15 @@ export declare enum CaseCategory {
439
440
  * - `COMPLAINT` - Complaint
440
441
  * - `CONTRACT_BUYOUT` - Contract Buyout
441
442
  * - `COPY_OF_INVOICE` - Copy of Invoice
442
- * - `CUSTOMER_DEVICE_ISSUE` - Customer Device Issue
443
- * - `DATA_SUBJECT_ACCESS_REQUEST` - Data Subject Access Request
444
- * - ... and 45 more
443
+ * - `CS_ESCALATIONS` - CS Escalations
444
+ * - ... and 51 more
445
445
  */
446
446
  export declare enum CaseSubCategory {
447
447
  AMEND_BILLING_DATE = "AMEND_BILLING_DATE",
448
448
  AMEND_MY_ORDER = "AMEND_MY_ORDER",
449
449
  AREA_AVAILABILITY_QUERY = "AREA_AVAILABILITY_QUERY",
450
450
  BAD_CSAT = "BAD_CSAT",
451
+ BILLING = "BILLING",
451
452
  CANCEL_APPOINTMENT = "CANCEL_APPOINTMENT",
452
453
  CHANGE_CONTACT_DETAILS = "CHANGE_CONTACT_DETAILS",
453
454
  CHURN_REQUEST = "CHURN_REQUEST",
@@ -457,6 +458,7 @@ export declare enum CaseSubCategory {
457
458
  COMPLAINT = "COMPLAINT",
458
459
  CONTRACT_BUYOUT = "CONTRACT_BUYOUT",
459
460
  COPY_OF_INVOICE = "COPY_OF_INVOICE",
461
+ CS_ESCALATIONS = "CS_ESCALATIONS",
460
462
  CUSTOMER_DEVICE_ISSUE = "CUSTOMER_DEVICE_ISSUE",
461
463
  DATA_SUBJECT_ACCESS_REQUEST = "DATA_SUBJECT_ACCESS_REQUEST",
462
464
  DIRECT_DEBIT = "DIRECT_DEBIT",
@@ -464,8 +466,10 @@ export declare enum CaseSubCategory {
464
466
  EQUIPMENT_RETURN_REFUND = "EQUIPMENT_RETURN_REFUND",
465
467
  ESCALATED_COMPLAINT = "ESCALATED_COMPLAINT",
466
468
  ETF_CUSTOMER_LEAVING_YF = "ETF_CUSTOMER_LEAVING",
469
+ FORMAL_COMPLAINTS = "FORMAL_COMPLAINTS",
467
470
  FRUSTRATION_OUTREACH = "FRUSTRATION_OUTREACH",
468
471
  GDPR_DATA_BREACH = "GDPR_DATA_BREACH",
472
+ HOME_MOVES = "HOME_MOVES",
469
473
  INACTIVE_CHAT_NO_CUSTOMER_RESPONSE = "INACTIVE_CHAT_NO_CUSTOMER_RESPONSE",
470
474
  INSTALL_APPOINTMENT = "INSTALL_APPOINTMENT",
471
475
  INSTALL_REMEDIATION_QUERY = "INSTALL_REMEDIATION_QUERY",
@@ -495,6 +499,8 @@ export declare enum CaseSubCategory {
495
499
  RECONTRACT_UPGRADE = "RECONTRACT_UPGRADE",
496
500
  REFERRAL = "REFERRAL",
497
501
  RETENTIONS = "RETENTIONS",
502
+ SALES = "SALES",
503
+ SALES_CBO = "SALES_CBO",
498
504
  SERVICE_VISIT = "SERVICE_VISIT",
499
505
  SPAM = "SPAM",
500
506
  SPEED_HARD_WIRED = "SPEED_HARD_WIRED",
@@ -422,6 +422,7 @@ var CaseCategory;
422
422
  * - `AMEND_MY_ORDER` - Amend my Order
423
423
  * - `AREA_AVAILABILITY_QUERY` - Area Availability Query
424
424
  * - `BAD_CSAT` - Bad CSAT
425
+ * - `BILLING` - Billing
425
426
  * - `CANCEL_APPOINTMENT` - Cancel Appointment
426
427
  * - `CHANGE_CONTACT_DETAILS` - Change contact details
427
428
  * - `CHURN_REQUEST` - Churn Request
@@ -431,9 +432,8 @@ var CaseCategory;
431
432
  * - `COMPLAINT` - Complaint
432
433
  * - `CONTRACT_BUYOUT` - Contract Buyout
433
434
  * - `COPY_OF_INVOICE` - Copy of Invoice
434
- * - `CUSTOMER_DEVICE_ISSUE` - Customer Device Issue
435
- * - `DATA_SUBJECT_ACCESS_REQUEST` - Data Subject Access Request
436
- * - ... and 45 more
435
+ * - `CS_ESCALATIONS` - CS Escalations
436
+ * - ... and 51 more
437
437
  */
438
438
  var CaseSubCategory;
439
439
  (function (CaseSubCategory) {
@@ -441,6 +441,7 @@ var CaseSubCategory;
441
441
  CaseSubCategory["AMEND_MY_ORDER"] = "AMEND_MY_ORDER";
442
442
  CaseSubCategory["AREA_AVAILABILITY_QUERY"] = "AREA_AVAILABILITY_QUERY";
443
443
  CaseSubCategory["BAD_CSAT"] = "BAD_CSAT";
444
+ CaseSubCategory["BILLING"] = "BILLING";
444
445
  CaseSubCategory["CANCEL_APPOINTMENT"] = "CANCEL_APPOINTMENT";
445
446
  CaseSubCategory["CHANGE_CONTACT_DETAILS"] = "CHANGE_CONTACT_DETAILS";
446
447
  CaseSubCategory["CHURN_REQUEST"] = "CHURN_REQUEST";
@@ -450,6 +451,7 @@ var CaseSubCategory;
450
451
  CaseSubCategory["COMPLAINT"] = "COMPLAINT";
451
452
  CaseSubCategory["CONTRACT_BUYOUT"] = "CONTRACT_BUYOUT";
452
453
  CaseSubCategory["COPY_OF_INVOICE"] = "COPY_OF_INVOICE";
454
+ CaseSubCategory["CS_ESCALATIONS"] = "CS_ESCALATIONS";
453
455
  CaseSubCategory["CUSTOMER_DEVICE_ISSUE"] = "CUSTOMER_DEVICE_ISSUE";
454
456
  CaseSubCategory["DATA_SUBJECT_ACCESS_REQUEST"] = "DATA_SUBJECT_ACCESS_REQUEST";
455
457
  CaseSubCategory["DIRECT_DEBIT"] = "DIRECT_DEBIT";
@@ -457,8 +459,10 @@ var CaseSubCategory;
457
459
  CaseSubCategory["EQUIPMENT_RETURN_REFUND"] = "EQUIPMENT_RETURN_REFUND";
458
460
  CaseSubCategory["ESCALATED_COMPLAINT"] = "ESCALATED_COMPLAINT";
459
461
  CaseSubCategory["ETF_CUSTOMER_LEAVING_YF"] = "ETF_CUSTOMER_LEAVING";
462
+ CaseSubCategory["FORMAL_COMPLAINTS"] = "FORMAL_COMPLAINTS";
460
463
  CaseSubCategory["FRUSTRATION_OUTREACH"] = "FRUSTRATION_OUTREACH";
461
464
  CaseSubCategory["GDPR_DATA_BREACH"] = "GDPR_DATA_BREACH";
465
+ CaseSubCategory["HOME_MOVES"] = "HOME_MOVES";
462
466
  CaseSubCategory["INACTIVE_CHAT_NO_CUSTOMER_RESPONSE"] = "INACTIVE_CHAT_NO_CUSTOMER_RESPONSE";
463
467
  CaseSubCategory["INSTALL_APPOINTMENT"] = "INSTALL_APPOINTMENT";
464
468
  CaseSubCategory["INSTALL_REMEDIATION_QUERY"] = "INSTALL_REMEDIATION_QUERY";
@@ -488,6 +492,8 @@ var CaseSubCategory;
488
492
  CaseSubCategory["RECONTRACT_UPGRADE"] = "RECONTRACT_UPGRADE";
489
493
  CaseSubCategory["REFERRAL"] = "REFERRAL";
490
494
  CaseSubCategory["RETENTIONS"] = "RETENTIONS";
495
+ CaseSubCategory["SALES"] = "SALES";
496
+ CaseSubCategory["SALES_CBO"] = "SALES_CBO";
491
497
  CaseSubCategory["SERVICE_VISIT"] = "SERVICE_VISIT";
492
498
  CaseSubCategory["SPAM"] = "SPAM";
493
499
  CaseSubCategory["SPEED_HARD_WIRED"] = "SPEED_HARD_WIRED";
@@ -296,7 +296,7 @@ export declare enum ChangeReasonOwner {
296
296
  * - `ENGINEER_UNABLE_TO_RESOLVE` - Engineer unable to resolve
297
297
  * - `HEALTH_AND_SAFETY_CONCERN_CUSTOMER_PREMISE` - Health and safety concern - customer premise
298
298
  * - `INCORRECT_DATE_BOOKED` - Incorrect date booked
299
- * - ... and 14 more
299
+ * - ... and 15 more
300
300
  */
301
301
  export declare enum ChangeReasonRescheduleReason {
302
302
  ADDITIONAL_WORK_REQ_APPROVAL_NEEDED = "ADDITIONAL_WORKS_REQUIRED_APPROVAL_NEEDED",
@@ -322,6 +322,7 @@ export declare enum ChangeReasonRescheduleReason {
322
322
  SCHEDULE_CHANGED = "SCHEDULE_CHANGED",
323
323
  SCHEDULE_CONTRACTOR_CHANGED = "SCHEDULE_CONTRACTOR_CHANGED",
324
324
  SERVICE_VISIT_NO_LONGER_REQUIRED = "SERVICE_VISIT_NO_LONGER_REQUIRED",
325
+ START_ORDER_SERVICE_VISIT_RESCHEDULED = "START_ORDER_SERVICE_VISIT_RESCHEDULED",
325
326
  SUPPLIER_RESCHEDULED_APPOINTMENT = "SUPPLIER_RESCHEDULED_APPOINTMENT",
326
327
  TIME_BLOCK_CHANGED = "TIME_BLOCK_CHANGED",
327
328
  TLOS_PRIORITISED_NOT_ATTENDED = "TLOS_PRIORITISED_NOT_ATTENDED",
@@ -302,7 +302,7 @@ var ChangeReasonOwner;
302
302
  * - `ENGINEER_UNABLE_TO_RESOLVE` - Engineer unable to resolve
303
303
  * - `HEALTH_AND_SAFETY_CONCERN_CUSTOMER_PREMISE` - Health and safety concern - customer premise
304
304
  * - `INCORRECT_DATE_BOOKED` - Incorrect date booked
305
- * - ... and 14 more
305
+ * - ... and 15 more
306
306
  */
307
307
  var ChangeReasonRescheduleReason;
308
308
  (function (ChangeReasonRescheduleReason) {
@@ -329,6 +329,7 @@ var ChangeReasonRescheduleReason;
329
329
  ChangeReasonRescheduleReason["SCHEDULE_CHANGED"] = "SCHEDULE_CHANGED";
330
330
  ChangeReasonRescheduleReason["SCHEDULE_CONTRACTOR_CHANGED"] = "SCHEDULE_CONTRACTOR_CHANGED";
331
331
  ChangeReasonRescheduleReason["SERVICE_VISIT_NO_LONGER_REQUIRED"] = "SERVICE_VISIT_NO_LONGER_REQUIRED";
332
+ ChangeReasonRescheduleReason["START_ORDER_SERVICE_VISIT_RESCHEDULED"] = "START_ORDER_SERVICE_VISIT_RESCHEDULED";
332
333
  ChangeReasonRescheduleReason["SUPPLIER_RESCHEDULED_APPOINTMENT"] = "SUPPLIER_RESCHEDULED_APPOINTMENT";
333
334
  ChangeReasonRescheduleReason["TIME_BLOCK_CHANGED"] = "TIME_BLOCK_CHANGED";
334
335
  ChangeReasonRescheduleReason["TLOS_PRIORITISED_NOT_ATTENDED"] = "TLOS_PRIORITISED_NOT_ATTENDED";