@d19n/youfibre-odin-sdk 2.0.229 → 2.0.231

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 (69) hide show
  1. package/README.md +19 -2
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/PgReportEventAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/PgReportEventAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +4 -2
  12. package/dist/actions-v2/CompletePicRequestDto.d.ts +13 -3
  13. package/dist/actions-v2/CompletePicRequestDto.js +2 -0
  14. package/dist/actions-v2/CompletePicRequestFlowDto.d.ts +11 -3
  15. package/dist/actions-v2/CreatePgReportEventDto.d.ts +135 -0
  16. package/dist/actions-v2/CreatePgReportEventDto.js +59 -0
  17. package/dist/actions-v2/MovePgReportEventToFailedDto.d.ts +117 -0
  18. package/dist/actions-v2/MovePgReportEventToFailedDto.js +82 -0
  19. package/dist/actions-v2/MovePgReportEventToSkippedDto.d.ts +117 -0
  20. package/dist/actions-v2/MovePgReportEventToSkippedDto.js +82 -0
  21. package/dist/actions-v2/MovePgReportEventToSucceededDto.d.ts +117 -0
  22. package/dist/actions-v2/MovePgReportEventToSucceededDto.js +82 -0
  23. package/dist/actions-v2/UpdateAdditionalCareDto.d.ts +2 -2
  24. package/dist/actions-v2/UpdateContactDto.d.ts +2 -2
  25. package/dist/actions-v2/UpdatePgReportEventDto.d.ts +95 -0
  26. package/dist/actions-v2/UpdatePgReportEventDto.js +56 -0
  27. package/dist/api-sdk-v2/PgDirectDebitFileApi.d.ts +2 -0
  28. package/dist/api-sdk-v2/PgDirectDebitFileApi.js +6 -0
  29. package/dist/api-sdk-v2/PgPaymentMethodApi.d.ts +2 -0
  30. package/dist/api-sdk-v2/PgPaymentMethodApi.js +6 -0
  31. package/dist/api-sdk-v2/PgReportEventApi.d.ts +52 -0
  32. package/dist/api-sdk-v2/PgReportEventApi.js +167 -0
  33. package/dist/api-sdk-v2/PgTransactionApi.d.ts +2 -0
  34. package/dist/api-sdk-v2/PgTransactionApi.js +6 -0
  35. package/dist/db-accessors-v2/PgReportEventDbAccessor.d.ts +149 -0
  36. package/dist/db-accessors-v2/PgReportEventDbAccessor.js +227 -0
  37. package/dist/db-accessors-v2/index.d.ts +1 -0
  38. package/dist/db-accessors-v2/index.js +4 -2
  39. package/dist/db-sdk-v2/PgDirectDebitFileDb.d.ts +2 -0
  40. package/dist/db-sdk-v2/PgDirectDebitFileDb.js +6 -0
  41. package/dist/db-sdk-v2/PgPaymentMethodDb.d.ts +2 -0
  42. package/dist/db-sdk-v2/PgPaymentMethodDb.js +6 -0
  43. package/dist/db-sdk-v2/PgReportEventDb.d.ts +124 -0
  44. package/dist/db-sdk-v2/PgReportEventDb.js +216 -0
  45. package/dist/db-sdk-v2/PgTransactionDb.d.ts +2 -0
  46. package/dist/db-sdk-v2/PgTransactionDb.js +6 -0
  47. package/dist/entities-v2/ChurnRequest.d.ts +4 -0
  48. package/dist/entities-v2/ChurnRequest.js +4 -0
  49. package/dist/entities-v2/Contact.d.ts +58 -72
  50. package/dist/entities-v2/Contact.js +40 -54
  51. package/dist/entities-v2/PgDirectDebitFile.d.ts +7 -0
  52. package/dist/entities-v2/PgDirectDebitFile.js +5 -1
  53. package/dist/entities-v2/PgPaymentMethod.d.ts +7 -0
  54. package/dist/entities-v2/PgPaymentMethod.js +5 -1
  55. package/dist/entities-v2/PgReportEvent.d.ts +194 -0
  56. package/dist/entities-v2/PgReportEvent.js +134 -0
  57. package/dist/entities-v2/PgTransaction.d.ts +7 -0
  58. package/dist/entities-v2/PgTransaction.js +5 -1
  59. package/dist/records-v2/PgDirectDebitFileRecord.d.ts +20 -0
  60. package/dist/records-v2/PgDirectDebitFileRecord.js +33 -0
  61. package/dist/records-v2/PgPaymentMethodRecord.d.ts +20 -0
  62. package/dist/records-v2/PgPaymentMethodRecord.js +33 -0
  63. package/dist/records-v2/PgReportEventRecord.d.ts +347 -0
  64. package/dist/records-v2/PgReportEventRecord.js +465 -0
  65. package/dist/records-v2/PgTransactionRecord.d.ts +20 -0
  66. package/dist/records-v2/PgTransactionRecord.js +33 -0
  67. package/dist/records-v2/index.d.ts +1 -0
  68. package/dist/records-v2/index.js +6 -3
  69. 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.PgReportEventDb = 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 PgReportEventApi(authParams).get(id)
20
+ * - New: new odin.pgreportevent.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 PgReportEventDb(principal, dbService, { omitPermissionsCheck: true })
26
+ * - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
27
+ */
28
+ class PgReportEventDb extends db_provider_1.DbProvider {
29
+ constructor(principal, dbService, defaultOptions) {
30
+ super(principal, dbService, defaultOptions);
31
+ this.moduleName = 'BillingModule';
32
+ this.entityName = 'PgReportEvent';
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 pgdirectdebitfile() {
42
+ if (!this._pgdirectdebitfile) {
43
+ this._pgdirectdebitfile = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PgReportEvent', 'BillingModule:PgDirectDebitFile', 'PgDirectDebitFile__PgReportEvent');
44
+ }
45
+ return this._pgdirectdebitfile;
46
+ }
47
+ get pgpaymentmethod() {
48
+ if (!this._pgpaymentmethod) {
49
+ this._pgpaymentmethod = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PgReportEvent', 'BillingModule:PgPaymentMethod', 'PgPaymentMethod__PgReportEvent');
50
+ }
51
+ return this._pgpaymentmethod;
52
+ }
53
+ get pgtransaction() {
54
+ if (!this._pgtransaction) {
55
+ this._pgtransaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PgReportEvent', 'BillingModule:PgTransaction', 'PgTransaction__PgReportEvent');
56
+ }
57
+ return this._pgtransaction;
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 pgReportEventId - 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(pgReportEventId, queryOptions, providerOptions) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, pgReportEventId, queryOptions, providerOptions);
108
+ if (res)
109
+ this.setRecord(res);
110
+ return res;
111
+ });
112
+ }
113
+ /**
114
+ * Get multiple records by primary keys
115
+ * @param pgReportEventIds - Array of record IDs
116
+ * @param queryOptions - Query options (WHAT: entities to include)
117
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
118
+ */
119
+ getManyByPrimaryKey(pgReportEventIds, queryOptions, providerOptions) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, pgReportEventIds, 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 pgReportEventIds - Record IDs to delete
169
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
170
+ */
171
+ delete(pgReportEventIds, providerOptions) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ return yield this._delete(this.moduleName, this.entityName, pgReportEventIds, providerOptions);
174
+ });
175
+ }
176
+ /**
177
+ * Restore one or many deleted records
178
+ * @param pgReportEventIds - Record IDs to restore
179
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
180
+ */
181
+ restore(pgReportEventIds, providerOptions) {
182
+ return __awaiter(this, void 0, void 0, function* () {
183
+ return yield this._restore(this.moduleName, this.entityName, pgReportEventIds, 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.PgReportEventDb = PgReportEventDb;
@@ -25,11 +25,13 @@ export declare class PgTransactionDb extends DbProvider {
25
25
  private _pgpaymentmethod?;
26
26
  private _pgdispute?;
27
27
  private _pgfileallocation?;
28
+ private _pgreportevent?;
28
29
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
29
30
  get pgwebhook(): DbRecordLinkManager;
30
31
  get pgpaymentmethod(): DbRecordLinkManager;
31
32
  get pgdispute(): DbRecordLinkManager;
32
33
  get pgfileallocation(): DbRecordLinkManager;
34
+ get pgreportevent(): DbRecordLinkManager;
33
35
  setRecord(sourceRecord: any): void;
34
36
  /**
35
37
  * Search records with manual pagination control
@@ -62,6 +62,12 @@ class PgTransactionDb extends db_provider_1.DbProvider {
62
62
  }
63
63
  return this._pgfileallocation;
64
64
  }
65
+ get pgreportevent() {
66
+ if (!this._pgreportevent) {
67
+ this._pgreportevent = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'BillingModule:PgTransaction', 'BillingModule:PgReportEvent', 'PgTransaction__PgReportEvent');
68
+ }
69
+ return this._pgreportevent;
70
+ }
65
71
  // ============================================
66
72
  // STANDARD METHODS
67
73
  // ============================================
@@ -97,6 +97,8 @@ export declare enum ChurnRequestOutcome {
97
97
  * - `CUSTOMER_SERVICE` - Customer Service
98
98
  * - `DECEASED` - Deceased
99
99
  * - `DUPLICATE` - Duplicate
100
+ * - `OTS_LOSS_FAILURE` - OTS Loss Failure
101
+ * - `OTS_LOSS_SUCCESS` - OTS Loss Success
100
102
  * - `SALES_LOST_TO_COMPETITION` - Sales (Lost to Competition)
101
103
  * - `SALES_MISSELLING` - Sales (Misselling)
102
104
  * - `SALES_MOVE_OUT` - Sales (Move-Out)
@@ -112,6 +114,8 @@ export declare enum ChurnRequestReason {
112
114
  CUSTOMER_SERVICE = "CUSTOMER_SERVICE",
113
115
  DECEASED = "DECEASED",
114
116
  DUPLICATE = "DUPLICATE",
117
+ OTS_LOSS_FAILURE = "OTS_LOSS_FAILURE",
118
+ OTS_LOSS_SUCCESS = "OTS_LOSS_SUCCESS",
115
119
  SALES_LOST_TO_COMPETITION = "SALES_LOST_TO_COMPETITION",
116
120
  SALES_MISSELLING = "SALES_MISSELLING",
117
121
  SALES_MOVE_OUT = "SALES_MOVE_OUT",
@@ -102,6 +102,8 @@ var ChurnRequestOutcome;
102
102
  * - `CUSTOMER_SERVICE` - Customer Service
103
103
  * - `DECEASED` - Deceased
104
104
  * - `DUPLICATE` - Duplicate
105
+ * - `OTS_LOSS_FAILURE` - OTS Loss Failure
106
+ * - `OTS_LOSS_SUCCESS` - OTS Loss Success
105
107
  * - `SALES_LOST_TO_COMPETITION` - Sales (Lost to Competition)
106
108
  * - `SALES_MISSELLING` - Sales (Misselling)
107
109
  * - `SALES_MOVE_OUT` - Sales (Move-Out)
@@ -118,6 +120,8 @@ var ChurnRequestReason;
118
120
  ChurnRequestReason["CUSTOMER_SERVICE"] = "CUSTOMER_SERVICE";
119
121
  ChurnRequestReason["DECEASED"] = "DECEASED";
120
122
  ChurnRequestReason["DUPLICATE"] = "DUPLICATE";
123
+ ChurnRequestReason["OTS_LOSS_FAILURE"] = "OTS_LOSS_FAILURE";
124
+ ChurnRequestReason["OTS_LOSS_SUCCESS"] = "OTS_LOSS_SUCCESS";
121
125
  ChurnRequestReason["SALES_LOST_TO_COMPETITION"] = "SALES_LOST_TO_COMPETITION";
122
126
  ChurnRequestReason["SALES_MISSELLING"] = "SALES_MISSELLING";
123
127
  ChurnRequestReason["SALES_MOVE_OUT"] = "SALES_MOVE_OUT";
@@ -81,19 +81,6 @@ export declare enum ContactCurrentProvider {
81
81
  VODAFONE = "VODAFONE",
82
82
  ZEN = "ZEN"
83
83
  }
84
- /**
85
- * Valid values for Contact.AdditionalCareConsent
86
- *
87
- * Customer consent for recording additional care requiremetns (Sales - Contact)
88
- *
89
- * @remarks Available options:
90
- * - `NO` - No
91
- * - `YES` - Yes
92
- */
93
- export declare enum ContactAdditionalCareConsent {
94
- NO = "NO",
95
- YES = "YES"
96
- }
97
84
  /**
98
85
  * Valid values for Contact.PortalStatus
99
86
  *
@@ -109,21 +96,6 @@ export declare enum ContactPortalStatus {
109
96
  INACTIVE = "INACTIVE",
110
97
  NONE = "NONE"
111
98
  }
112
- /**
113
- * Valid values for Contact.HomeownerStatus
114
- *
115
- * Homeowner Status (Sales - Contact)
116
- *
117
- * @remarks Available options:
118
- * - `HOMEOWNER` - I own the property
119
- * - `RENTER` - It is a rented property
120
- * - `LIVING_WITH_PARENTS` - Living with parents
121
- */
122
- export declare enum ContactHomeownerStatus {
123
- I_OWN_THE_PROPERTY = "HOMEOWNER",
124
- IT_IS_A_RENTED_PROPERTY = "RENTER",
125
- LIVING_WITH_PARENTS = "LIVING_WITH_PARENTS"
126
- }
127
99
  /**
128
100
  * Valid values for Contact.PreviousProvider
129
101
  *
@@ -240,6 +212,19 @@ export declare enum ContactTelecareAlarm {
240
212
  NO = "NO",
241
213
  YES = "YES"
242
214
  }
215
+ /**
216
+ * Valid values for Contact.AdditionalCareRequired
217
+ *
218
+ * Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
219
+ *
220
+ * @remarks Available options:
221
+ * - `NO` - No
222
+ * - `YES` - Yes
223
+ */
224
+ export declare enum ContactAdditionalCareRequired {
225
+ NO = "NO",
226
+ YES = "YES"
227
+ }
243
228
  /**
244
229
  * Valid values for Contact.MedicallyDependant
245
230
  *
@@ -253,6 +238,21 @@ export declare enum ContactMedicallyDependant {
253
238
  NO = "NO",
254
239
  YES = "YES"
255
240
  }
241
+ /**
242
+ * Valid values for Contact.HomeownerStatus
243
+ *
244
+ * Homeowner Status (Sales - Contact)
245
+ *
246
+ * @remarks Available options:
247
+ * - `HOMEOWNER` - I own the property
248
+ * - `RENTER` - It is a rented property
249
+ * - `LIVING_WITH_PARENTS` - Living with parents
250
+ */
251
+ export declare enum ContactHomeownerStatus {
252
+ I_OWN_THE_PROPERTY = "HOMEOWNER",
253
+ IT_IS_A_RENTED_PROPERTY = "RENTER",
254
+ LIVING_WITH_PARENTS = "LIVING_WITH_PARENTS"
255
+ }
256
256
  /**
257
257
  * Valid values for Contact.WhitelistedTwilioQueue
258
258
  *
@@ -270,19 +270,6 @@ export declare enum ContactWhitelistedTwilioQueue {
270
270
  GENERAL_SUPPORT = "General Support",
271
271
  ORDER_MANAGEMENT_UPDATE = "Order Management - Update"
272
272
  }
273
- /**
274
- * Valid values for Contact.AdditionalCareRequired
275
- *
276
- * Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
277
- *
278
- * @remarks Available options:
279
- * - `NO` - No
280
- * - `YES` - Yes
281
- */
282
- export declare enum ContactAdditionalCareRequired {
283
- NO = "NO",
284
- YES = "YES"
285
- }
286
273
  /**
287
274
  * Property keys for Contact
288
275
  * Use these constants instead of string literals for type safety
@@ -298,10 +285,10 @@ export declare enum ContactPropertyKeys {
298
285
  CompanyPosition = "CompanyPosition",
299
286
  /** hear about us other (Sales - Contact) */
300
287
  HearAboutUsOther = "HearAboutUsOther",
301
- /** Customer consent for recording additional care requiremetns (Sales - Contact) */
302
- AdditionalCareConsent = "AdditionalCareConsent",
303
288
  /** vulnerable customer */
304
289
  VulnerableCustomer = "VulnerableCustomer",
290
+ /** Customer consent for recording additional care requiremetns (Sales - Contact) */
291
+ AdditionalCareConsent = "AdditionalCareConsent",
305
292
  /** NONE if never registered, INACTIVE if requested a code, ACTIVE if completed registration (Sales - Contact) */
306
293
  PortalStatus = "PortalStatus",
307
294
  /** Referral Code (Sales - Contact) */
@@ -318,8 +305,6 @@ export declare enum ContactPropertyKeys {
318
305
  DirectDebitConsent = "DirectDebitConsent",
319
306
  /** Send if true otherwise they have opted-out if false (Sales - Contact) */
320
307
  MarketingSms = "MarketingSMS",
321
- /** Homeowner Status (Sales - Contact) */
322
- HomeownerStatus = "HomeownerStatus",
323
308
  /** Terms and Conditions Consent (Sales - Contact) */
324
309
  TermsAndConditionsConsent = "TermsAndConditionsConsent",
325
310
  /** previous/current provider (Sales - Contact) */
@@ -382,20 +367,22 @@ export declare enum ContactPropertyKeys {
382
367
  PortalLastActiveDate = "PortalLastActiveDate",
383
368
  /** When the customer last used or was last active on the native customer mobile app (Sales - Contact) */
384
369
  AppLastActiveDate = "AppLastActiveDate",
385
- /** Any additional information */
386
- AdditionalCareNotes = "AdditionalCareNotes",
387
370
  /** Does the customer use a Telecare Alarm (Sales - Contact) */
388
371
  TelecareAlarm = "TelecareAlarm",
389
372
  /** Select a care requirement */
390
373
  AdditionalCareReason = "AdditionalCareReason",
374
+ /** Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact) */
375
+ AdditionalCareRequired = "AdditionalCareRequired",
376
+ /** Any additional information */
377
+ AdditionalCareNotes = "AdditionalCareNotes",
391
378
  /** Is the customer medically dependant on their broadband (Sales - Contact) */
392
379
  MedicallyDependant = "MedicallyDependant",
380
+ /** Homeowner Status (Sales - Contact) */
381
+ HomeownerStatus = "HomeownerStatus",
393
382
  /** Used to whitelist this user to a specific twilio queue in a time range. */
394
383
  WhitelistedTwilioQueue = "WhitelistedTwilioQueue",
395
384
  /** Time when the whitelisting ends and the user falls back to the main IVR again. */
396
385
  WhitelistTwilioEndTime = "WhitelistTwilioEndTime",
397
- /** Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact) */
398
- AdditionalCareRequired = "AdditionalCareRequired",
399
386
  /** Phone number (Sales - Contact) */
400
387
  Phone = "Phone"
401
388
  }
@@ -436,18 +423,17 @@ export interface ContactProperties {
436
423
  * @hidden This field is hidden in the UI
437
424
  */
438
425
  HearAboutUsOther: string;
439
- /** Customer consent for recording additional care requiremetns (Sales - Contact)
440
- *
441
- * @type {ENUM}
442
- * @enum {ContactAdditionalCareConsent}
443
- */
444
- AdditionalCareConsent: ContactAdditionalCareConsent;
445
426
  /** vulnerable customer
446
427
  *
447
428
  * @type {BOOLEAN}
448
429
  * @hidden This field is hidden in the UI
449
430
  */
450
431
  VulnerableCustomer: boolean;
432
+ /** Customer consent for recording additional care requiremetns (Sales - Contact)
433
+ *
434
+ * @type {BOOLEAN}
435
+ */
436
+ AdditionalCareConsent: boolean;
451
437
  /** NONE if never registered, INACTIVE if requested a code, ACTIVE if completed registration (Sales - Contact)
452
438
  *
453
439
  * @type {ENUM}
@@ -499,12 +485,6 @@ export interface ContactProperties {
499
485
  * @readonly This field is read-only
500
486
  */
501
487
  MarketingSms: boolean;
502
- /** Homeowner Status (Sales - Contact)
503
- *
504
- * @type {ENUM}
505
- * @enum {ContactHomeownerStatus}
506
- */
507
- HomeownerStatus: ContactHomeownerStatus;
508
488
  /** Terms and Conditions Consent (Sales - Contact)
509
489
  *
510
490
  * @type {BOOLEAN}
@@ -702,11 +682,6 @@ export interface ContactProperties {
702
682
  * @hidden This field is hidden in the UI
703
683
  */
704
684
  AppLastActiveDate: string;
705
- /** Any additional information
706
- *
707
- * @type {TEXT_LONG}
708
- */
709
- AdditionalCareNotes: string;
710
685
  /** Does the customer use a Telecare Alarm (Sales - Contact)
711
686
  *
712
687
  * @type {ENUM}
@@ -719,6 +694,17 @@ export interface ContactProperties {
719
694
  * @type {ENUM_MULTI_SELECT}
720
695
  */
721
696
  AdditionalCareReason: string;
697
+ /** Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
698
+ *
699
+ * @type {ENUM}
700
+ * @enum {ContactAdditionalCareRequired}
701
+ */
702
+ AdditionalCareRequired: ContactAdditionalCareRequired;
703
+ /** Any additional information
704
+ *
705
+ * @type {TEXT_LONG}
706
+ */
707
+ AdditionalCareNotes: string;
722
708
  /** Is the customer medically dependant on their broadband (Sales - Contact)
723
709
  *
724
710
  * @type {ENUM}
@@ -727,6 +713,12 @@ export interface ContactProperties {
727
713
  * @hidden This field is hidden in the UI
728
714
  */
729
715
  MedicallyDependant: ContactMedicallyDependant;
716
+ /** Homeowner Status (Sales - Contact)
717
+ *
718
+ * @type {ENUM}
719
+ * @enum {ContactHomeownerStatus}
720
+ */
721
+ HomeownerStatus: ContactHomeownerStatus;
730
722
  /** Used to whitelist this user to a specific twilio queue in a time range.
731
723
  *
732
724
  * @type {ENUM}
@@ -740,12 +732,6 @@ export interface ContactProperties {
740
732
  * @hidden This field is hidden in the UI
741
733
  */
742
734
  WhitelistTwilioEndTime: string;
743
- /** Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
744
- *
745
- * @type {ENUM}
746
- * @enum {ContactAdditionalCareRequired}
747
- */
748
- AdditionalCareRequired: ContactAdditionalCareRequired;
749
735
  /** Phone number (Sales - Contact)
750
736
  *
751
737
  * @type {PHONE_NUMBER_E164_GB}