@d19n/youfibre-odin-sdk 2.0.86 → 2.0.87

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 (28) hide show
  1. package/README.md +5 -5
  2. package/dist/actions-v2/CaseTransitionBlockedToEscalatedDto.d.ts +17 -157
  3. package/dist/actions-v2/CaseTransitionBlockedToEscalatedDto.js +21 -101
  4. package/dist/actions-v2/CaseTransitionEscalatedToEscalatedDto.d.ts +17 -157
  5. package/dist/actions-v2/CaseTransitionEscalatedToEscalatedDto.js +21 -101
  6. package/dist/actions-v2/CaseTransitionPendingAgentToEscalatedDto.d.ts +17 -157
  7. package/dist/actions-v2/CaseTransitionPendingAgentToEscalatedDto.js +21 -101
  8. package/dist/actions-v2/CaseTransitionPendingReplyToEscalatedDto.d.ts +17 -157
  9. package/dist/actions-v2/CaseTransitionPendingReplyToEscalatedDto.js +21 -101
  10. package/dist/actions-v2/CasteTransitionOpenToEscalatedDto.d.ts +17 -157
  11. package/dist/actions-v2/CasteTransitionOpenToEscalatedDto.js +21 -101
  12. package/dist/actions-v2/CreateContactDto.d.ts +1 -1
  13. package/dist/actions-v2/CreateLeadFromAddressDto.d.ts +1 -1
  14. package/dist/actions-v2/UpdateContactDto.d.ts +1 -1
  15. package/dist/actions-v2/UpdateInstallScheduleDto.d.ts +9 -10
  16. package/dist/actions-v2/UpdateLeadDto.d.ts +8 -1
  17. package/dist/entities-v2/Call.d.ts +46 -1
  18. package/dist/entities-v2/Call.js +31 -1
  19. package/dist/entities-v2/Contact.d.ts +9 -9
  20. package/dist/entities-v2/Contact.js +2 -2
  21. package/dist/entities-v2/Lead.d.ts +8 -1
  22. package/dist/entities-v2/Lead.js +2 -0
  23. package/dist/entities-v2/Order.d.ts +36 -32
  24. package/dist/entities-v2/Order.js +29 -25
  25. package/dist/records-v2/CaseRecord.d.ts +98 -188
  26. package/dist/records-v2/CaseRecord.js +123 -333
  27. package/dist/runner.js +16 -16
  28. package/package.json +26 -26
@@ -13,21 +13,21 @@
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CasteTransitionOpenToEscalatedDto = exports.CasteTransitionOpenToEscalatedSteps = exports.CreateNoteForCaseAssignmentDto = exports.EscalateCaseActionYfcsDto = exports.EscalateCaseActionYfDto = exports.EscalateCaseActionBrskDto = void 0;
16
+ exports.CasteTransitionOpenToEscalatedDto = exports.CasteTransitionOpenToEscalatedSteps = exports.CreateNoteForCaseAssignmentDto = exports.EscalateCaseActionDto = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
- * Escalate to Brsk Customer Services
19
+ * Escalate Case
20
20
  *
21
- * Escalate Case Action Brsk
21
+ * Escalates a Case
22
22
  *
23
23
  * @actionType UPDATE - Updates an existing Case record
24
24
  * @module SupportModule
25
25
  * @entity Case
26
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseActionBrsk
27
- * @permission schema.action.escalatecaseactionbrsk.trigger
26
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction
27
+ * @permission schema.action.escalatecaseaction.trigger
28
28
  * @benchmark This action is tracked for performance benchmarks
29
29
  */
30
- class EscalateCaseActionBrskDto extends core_1.OdinRecordUpdateDto {
30
+ class EscalateCaseActionDto extends core_1.OdinRecordUpdateDto {
31
31
  constructor(record, properties, options) {
32
32
  super({
33
33
  id: record.id,
@@ -37,104 +37,24 @@ class EscalateCaseActionBrskDto extends core_1.OdinRecordUpdateDto {
37
37
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
38
  stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
39
39
  });
40
- this.actionName = 'EscalateCaseActionBrsk';
41
- this.schemaActionId = 'b07ab8ef-4ab0-469d-8914-68fabf511161';
40
+ this.actionName = 'EscalateCaseAction';
41
+ this.schemaActionId = 'a4b43ce6-affe-45ac-a42a-cc2069090496';
42
42
  this.entity = 'SupportModule:Case';
43
43
  }
44
44
  }
45
- exports.EscalateCaseActionBrskDto = EscalateCaseActionBrskDto;
45
+ exports.EscalateCaseActionDto = EscalateCaseActionDto;
46
46
  /** Used by SDK generators to identify action type */
47
- EscalateCaseActionBrskDto.ACTION_TYPE = 'UPDATE';
48
- EscalateCaseActionBrskDto.ACTION_KEY = 'EscalateCaseActionBrsk';
49
- EscalateCaseActionBrskDto.MODULE_NAME = 'SupportModule';
50
- EscalateCaseActionBrskDto.ENTITIES = ['Case'];
51
- EscalateCaseActionBrskDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseActionBrsk';
52
- EscalateCaseActionBrskDto.PERMISSION = 'schema.action.escalatecaseactionbrsk.trigger';
47
+ EscalateCaseActionDto.ACTION_TYPE = 'UPDATE';
48
+ EscalateCaseActionDto.ACTION_KEY = 'EscalateCaseAction';
49
+ EscalateCaseActionDto.MODULE_NAME = 'SupportModule';
50
+ EscalateCaseActionDto.ENTITIES = ['Case'];
51
+ EscalateCaseActionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction';
52
+ EscalateCaseActionDto.PERMISSION = 'schema.action.escalatecaseaction.trigger';
53
53
  /** Step metadata - entity this action targets */
54
- EscalateCaseActionBrskDto.STEP_ENTITY = 'SupportModule:Case';
55
- EscalateCaseActionBrskDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
56
- EscalateCaseActionBrskDto.STEP_SCHEMA_ACTION_ID = 'b07ab8ef-4ab0-469d-8914-68fabf511161';
57
- EscalateCaseActionBrskDto.AUTO_LINK_PARENT = false;
58
- /**
59
- * Escalate to YouFibre
60
- *
61
- * Escalate Case Action YF
62
- *
63
- * @actionType UPDATE - Updates an existing Case record
64
- * @module SupportModule
65
- * @entity Case
66
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseActionYF
67
- * @permission schema.action.escalatecaseactionyf.trigger
68
- * @benchmark This action is tracked for performance benchmarks
69
- */
70
- class EscalateCaseActionYfDto extends core_1.OdinRecordUpdateDto {
71
- constructor(record, properties, options) {
72
- super({
73
- id: record.id,
74
- entity: record.entity,
75
- type: record.type,
76
- properties,
77
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
78
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
79
- });
80
- this.actionName = 'EscalateCaseActionYF';
81
- this.schemaActionId = '998149b0-4e63-476b-87c3-ce5acf691671';
82
- this.entity = 'SupportModule:Case';
83
- }
84
- }
85
- exports.EscalateCaseActionYfDto = EscalateCaseActionYfDto;
86
- /** Used by SDK generators to identify action type */
87
- EscalateCaseActionYfDto.ACTION_TYPE = 'UPDATE';
88
- EscalateCaseActionYfDto.ACTION_KEY = 'EscalateCaseActionYF';
89
- EscalateCaseActionYfDto.MODULE_NAME = 'SupportModule';
90
- EscalateCaseActionYfDto.ENTITIES = ['Case'];
91
- EscalateCaseActionYfDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseActionYF';
92
- EscalateCaseActionYfDto.PERMISSION = 'schema.action.escalatecaseactionyf.trigger';
93
- /** Step metadata - entity this action targets */
94
- EscalateCaseActionYfDto.STEP_ENTITY = 'SupportModule:Case';
95
- EscalateCaseActionYfDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
96
- EscalateCaseActionYfDto.STEP_SCHEMA_ACTION_ID = '998149b0-4e63-476b-87c3-ce5acf691671';
97
- EscalateCaseActionYfDto.AUTO_LINK_PARENT = false;
98
- /**
99
- * Escalate to YouFibre Customer Services
100
- *
101
- * Escalate Case Action YF CS
102
- *
103
- * @actionType UPDATE - Updates an existing Case record
104
- * @module SupportModule
105
- * @entity Case
106
- * @event k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseActionYFCS
107
- * @permission schema.action.escalatecaseactionyfcs.trigger
108
- * @benchmark This action is tracked for performance benchmarks
109
- */
110
- class EscalateCaseActionYfcsDto extends core_1.OdinRecordUpdateDto {
111
- constructor(record, properties, options) {
112
- super({
113
- id: record.id,
114
- entity: record.entity,
115
- type: record.type,
116
- properties,
117
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
118
- stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
119
- });
120
- this.actionName = 'EscalateCaseActionYFCS';
121
- this.schemaActionId = '4c151dc1-6d27-4ebf-b1e5-f5eda95574a3';
122
- this.entity = 'SupportModule:Case';
123
- }
124
- }
125
- exports.EscalateCaseActionYfcsDto = EscalateCaseActionYfcsDto;
126
- /** Used by SDK generators to identify action type */
127
- EscalateCaseActionYfcsDto.ACTION_TYPE = 'UPDATE';
128
- EscalateCaseActionYfcsDto.ACTION_KEY = 'EscalateCaseActionYFCS';
129
- EscalateCaseActionYfcsDto.MODULE_NAME = 'SupportModule';
130
- EscalateCaseActionYfcsDto.ENTITIES = ['Case'];
131
- EscalateCaseActionYfcsDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseActionYFCS';
132
- EscalateCaseActionYfcsDto.PERMISSION = 'schema.action.escalatecaseactionyfcs.trigger';
133
- /** Step metadata - entity this action targets */
134
- EscalateCaseActionYfcsDto.STEP_ENTITY = 'SupportModule:Case';
135
- EscalateCaseActionYfcsDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
136
- EscalateCaseActionYfcsDto.STEP_SCHEMA_ACTION_ID = '4c151dc1-6d27-4ebf-b1e5-f5eda95574a3';
137
- EscalateCaseActionYfcsDto.AUTO_LINK_PARENT = false;
54
+ EscalateCaseActionDto.STEP_ENTITY = 'SupportModule:Case';
55
+ EscalateCaseActionDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
56
+ EscalateCaseActionDto.STEP_SCHEMA_ACTION_ID = 'a4b43ce6-affe-45ac-a42a-cc2069090496';
57
+ EscalateCaseActionDto.AUTO_LINK_PARENT = false;
138
58
  /**
139
59
  * CreateNoteForCaseAssignment
140
60
  *
@@ -234,7 +154,7 @@ CasteTransitionOpenToEscalatedDto.HAS_STEP_LINKS = false;
234
154
  CasteTransitionOpenToEscalatedDto.stepDefinitions = [
235
155
  {
236
156
  stepKey: 'escalate_case',
237
- dtoClass: 'EscalateCaseActionBrskDto',
157
+ dtoClass: 'EscalateCaseActionDto',
238
158
  entity: 'SupportModule:Case',
239
159
  linksTo: null
240
160
  },
@@ -248,4 +168,4 @@ CasteTransitionOpenToEscalatedDto.stepDefinitions = [
248
168
  /** Type-safe step key accessor */
249
169
  CasteTransitionOpenToEscalatedDto.Steps = exports.CasteTransitionOpenToEscalatedSteps;
250
170
  /** Step classes that can be used with this action */
251
- CasteTransitionOpenToEscalatedDto.stepClasses = ['EscalateCaseActionBrskDto', 'EscalateCaseActionYfDto', 'EscalateCaseActionYfcsDto', 'CreateNoteForCaseAssignmentDto'];
171
+ CasteTransitionOpenToEscalatedDto.stepClasses = ['EscalateCaseActionDto', 'CreateNoteForCaseAssignmentDto'];
@@ -96,7 +96,7 @@ export interface CreateContactProperties {
96
96
  * Phone
97
97
  *
98
98
  * Phone number (Sales - Contact)
99
- * @type {PHONE_NUMBER}
99
+ * @type {PHONE_NUMBER_E164_GB}
100
100
  */
101
101
  Phone?: string | null;
102
102
  /**
@@ -161,7 +161,7 @@ export interface CreateContactProperties {
161
161
  * Phone
162
162
  *
163
163
  * Phone number (Sales - Contact)
164
- * @type {PHONE_NUMBER}
164
+ * @type {PHONE_NUMBER_E164_GB}
165
165
  */
166
166
  Phone?: string | null;
167
167
  /**
@@ -71,7 +71,7 @@ export interface UpdateContactProperties {
71
71
  * Phone
72
72
  *
73
73
  * Phone number (Sales - Contact)
74
- * @type {PHONE_NUMBER}
74
+ * @type {PHONE_NUMBER_E164_GB}
75
75
  */
76
76
  Phone?: string | null;
77
77
  /**
@@ -22,8 +22,8 @@ export interface UpdateInstallScheduleMessage extends OdinRecordUpdatedEvent<Upd
22
22
  /**
23
23
  * Properties for UpdateInstallSchedule action
24
24
  *
25
- * @property Required fields: 4
26
- * @property Optional fields: 7
25
+ * @property Required fields: 3
26
+ * @property Optional fields: 8
27
27
  */
28
28
  export interface UpdateInstallScheduleProperties {
29
29
  /**
@@ -51,14 +51,6 @@ export interface UpdateInstallScheduleProperties {
51
51
  * @required
52
52
  */
53
53
  Contractor: string;
54
- /**
55
- * Region
56
- *
57
- * The linked region (Field Operations - ServiceAppointmentConfig)
58
- * @type {LOOKUP}
59
- * @required
60
- */
61
- RegionId: string;
62
54
  /**
63
55
  * ExPolygonId
64
56
  *
@@ -81,6 +73,13 @@ export interface UpdateInstallScheduleProperties {
81
73
  * @format DD/MM/YYYY
82
74
  */
83
75
  AvailableTo?: string | null;
76
+ /**
77
+ * Region
78
+ *
79
+ * The linked region (Field Operations - ServiceAppointmentConfig)
80
+ * @type {LOOKUP}
81
+ */
82
+ RegionId?: string | null;
84
83
  /**
85
84
  * BookingDelay
86
85
  *
@@ -22,7 +22,7 @@ export interface UpdateLeadMessage extends OdinRecordUpdatedEvent<UpdateLeadDto,
22
22
  * Properties for UpdateLead action
23
23
  *
24
24
  * @property Required fields: 2
25
- * @property Optional fields: 2
25
+ * @property Optional fields: 3
26
26
  */
27
27
  export interface UpdateLeadProperties {
28
28
  /**
@@ -48,6 +48,13 @@ export interface UpdateLeadProperties {
48
48
  * @type {TEXT}
49
49
  */
50
50
  Name?: string | null;
51
+ /**
52
+ * FakePhoneNumber
53
+ *
54
+ * FakePhoneNumber
55
+ * @type {PHONE_NUMBER_E164_GB}
56
+ */
57
+ FakePhoneNumber?: string | null;
51
58
  }
52
59
  /**
53
60
  * UpdateLead
@@ -86,6 +86,29 @@ export declare enum CallCallStage {
86
86
  TRANSFERRED = "Transferred",
87
87
  WAITING = "Waiting"
88
88
  }
89
+ /**
90
+ * Valid values for Call.CallEndReason
91
+ *
92
+ * CallEndReason
93
+ *
94
+ * @remarks Available options:
95
+ * - `abandoned_ivr`
96
+ * - `abandoned_queue`
97
+ * - `busy`
98
+ * - `canceled`
99
+ * - `completed`
100
+ * - `failed`
101
+ * - `no_answer`
102
+ */
103
+ export declare enum CallCallEndReason {
104
+ ABANDONED_IVR = "abandoned_ivr",
105
+ ABANDONED_QUEUE = "abandoned_queue",
106
+ BUSY = "busy",
107
+ CANCELED = "canceled",
108
+ COMPLETED = "completed",
109
+ FAILED = "failed",
110
+ NO_ANSWER = "no_answer"
111
+ }
89
112
  /**
90
113
  * Property keys for Call
91
114
  * Use these constants instead of string literals for type safety
@@ -186,7 +209,13 @@ export declare enum CallPropertyKeys {
186
209
  /** Data field for Call records. Used by Communications team. */
187
210
  From = "From",
188
211
  /** Classification type for Call records. Used by Communications team for categorization. */
189
- Type = "Type"
212
+ Type = "Type",
213
+ /** QueueEntryTime */
214
+ QueueEntryTime = "QueueEntryTime",
215
+ /** IVRDuration */
216
+ IvrDuration = "IVRDuration",
217
+ /** CallEndReason */
218
+ CallEndReason = "CallEndReason"
190
219
  }
191
220
  /**
192
221
  * Properties for Call records
@@ -447,6 +476,22 @@ export interface CallProperties {
447
476
  * @type {TEXT}
448
477
  */
449
478
  Type: string;
479
+ /** QueueEntryTime
480
+ *
481
+ * @type {DATE_TIME}
482
+ */
483
+ QueueEntryTime: string;
484
+ /** IVRDuration
485
+ *
486
+ * @type {NUMBER}
487
+ */
488
+ IvrDuration: number;
489
+ /** CallEndReason
490
+ *
491
+ * @type {ENUM}
492
+ * @enum {CallCallEndReason}
493
+ */
494
+ CallEndReason: CallCallEndReason;
450
495
  }
451
496
  /**
452
497
  * Call entity from NotificationModule
@@ -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_CALL_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_CALL_CASE_DELETED = exports.ROUTING_KEY_LINK_CALL_CASE_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_CREATED = exports.ROUTING_KEY_LINK_CALL_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CALL_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_CALL_FILE_DELETED = exports.ROUTING_KEY_LINK_CALL_FILE_CREATED = exports.ROUTING_KEY_LINK_CALL_LEAD_DELETED = exports.ROUTING_KEY_LINK_CALL_LEAD_CREATED = exports.ROUTING_KEY_CALL_DEFAULT_DELETED = exports.ROUTING_KEY_CALL_DEFAULT_UPDATED = exports.ROUTING_KEY_CALL_DEFAULT_CREATED = exports.ROUTING_KEY_CALL_DELETED = exports.ROUTING_KEY_CALL_UPDATED = exports.ROUTING_KEY_CALL_CREATED = exports.Call = exports.CallPropertyKeys = exports.CallCallStage = exports.CallDirection = exports.CallCallType = exports.CallEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_CALL_CASE_DELETED = exports.ROUTING_KEY_LINK_CALL_CASE_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_CREATED = exports.ROUTING_KEY_LINK_CALL_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CALL_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_CALL_FILE_DELETED = exports.ROUTING_KEY_LINK_CALL_FILE_CREATED = exports.ROUTING_KEY_LINK_CALL_LEAD_DELETED = exports.ROUTING_KEY_LINK_CALL_LEAD_CREATED = exports.ROUTING_KEY_CALL_DEFAULT_DELETED = exports.ROUTING_KEY_CALL_DEFAULT_UPDATED = exports.ROUTING_KEY_CALL_DEFAULT_CREATED = exports.ROUTING_KEY_CALL_DELETED = exports.ROUTING_KEY_CALL_UPDATED = exports.ROUTING_KEY_CALL_CREATED = exports.Call = exports.CallPropertyKeys = exports.CallCallEndReason = exports.CallCallStage = exports.CallDirection = exports.CallCallType = exports.CallEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for Call records
@@ -84,6 +84,30 @@ var CallCallStage;
84
84
  CallCallStage["TRANSFERRED"] = "Transferred";
85
85
  CallCallStage["WAITING"] = "Waiting";
86
86
  })(CallCallStage = exports.CallCallStage || (exports.CallCallStage = {}));
87
+ /**
88
+ * Valid values for Call.CallEndReason
89
+ *
90
+ * CallEndReason
91
+ *
92
+ * @remarks Available options:
93
+ * - `abandoned_ivr`
94
+ * - `abandoned_queue`
95
+ * - `busy`
96
+ * - `canceled`
97
+ * - `completed`
98
+ * - `failed`
99
+ * - `no_answer`
100
+ */
101
+ var CallCallEndReason;
102
+ (function (CallCallEndReason) {
103
+ CallCallEndReason["ABANDONED_IVR"] = "abandoned_ivr";
104
+ CallCallEndReason["ABANDONED_QUEUE"] = "abandoned_queue";
105
+ CallCallEndReason["BUSY"] = "busy";
106
+ CallCallEndReason["CANCELED"] = "canceled";
107
+ CallCallEndReason["COMPLETED"] = "completed";
108
+ CallCallEndReason["FAILED"] = "failed";
109
+ CallCallEndReason["NO_ANSWER"] = "no_answer";
110
+ })(CallCallEndReason = exports.CallCallEndReason || (exports.CallCallEndReason = {}));
87
111
  /**
88
112
  * Property keys for Call
89
113
  * Use these constants instead of string literals for type safety
@@ -186,6 +210,12 @@ var CallPropertyKeys;
186
210
  CallPropertyKeys["From"] = "From";
187
211
  /** Classification type for Call records. Used by Communications team for categorization. */
188
212
  CallPropertyKeys["Type"] = "Type";
213
+ /** QueueEntryTime */
214
+ CallPropertyKeys["QueueEntryTime"] = "QueueEntryTime";
215
+ /** IVRDuration */
216
+ CallPropertyKeys["IvrDuration"] = "IVRDuration";
217
+ /** CallEndReason */
218
+ CallPropertyKeys["CallEndReason"] = "CallEndReason";
189
219
  })(CallPropertyKeys = exports.CallPropertyKeys || (exports.CallPropertyKeys = {}));
190
220
  /**
191
221
  * Call entity from NotificationModule
@@ -305,8 +305,6 @@ export declare enum ContactPropertyKeys {
305
305
  Role = "Role",
306
306
  /** current contract type (Sales - Contact) */
307
307
  CurrentContractType = "CurrentContractType",
308
- /** Phone number (Sales - Contact) */
309
- Phone = "Phone",
310
308
  /** PreferredSpeed (Sales - Contact) */
311
309
  PreferredSpeed = "PreferredSpeed",
312
310
  /** Current Network Provider (Sales - Contact) */
@@ -366,7 +364,9 @@ export declare enum ContactPropertyKeys {
366
364
  /** When the customer last used or was last active on the customer web portal (Sales - Contact) */
367
365
  PortalLastActiveDate = "PortalLastActiveDate",
368
366
  /** When the customer last used or was last active on the native customer mobile app (Sales - Contact) */
369
- AppLastActiveDate = "AppLastActiveDate"
367
+ AppLastActiveDate = "AppLastActiveDate",
368
+ /** Phone number (Sales - Contact) */
369
+ Phone = "Phone"
370
370
  }
371
371
  /**
372
372
  * Properties for Contact records
@@ -512,12 +512,6 @@ export interface ContactProperties {
512
512
  * @hidden This field is hidden in the UI
513
513
  */
514
514
  CurrentContractType: string;
515
- /** Phone number (Sales - Contact)
516
- *
517
- * @type {PHONE_NUMBER}
518
- * @pii This field contains personally identifiable information
519
- */
520
- Phone: string;
521
515
  /** PreferredSpeed (Sales - Contact)
522
516
  *
523
517
  * @type {TEXT}
@@ -709,6 +703,12 @@ export interface ContactProperties {
709
703
  * @hidden This field is hidden in the UI
710
704
  */
711
705
  AppLastActiveDate: string;
706
+ /** Phone number (Sales - Contact)
707
+ *
708
+ * @type {PHONE_NUMBER_E164_GB}
709
+ * @pii This field contains personally identifiable information
710
+ */
711
+ Phone: string;
712
712
  }
713
713
  /**
714
714
  * Contact entity from CrmModule
@@ -288,8 +288,6 @@ var ContactPropertyKeys;
288
288
  ContactPropertyKeys["Role"] = "Role";
289
289
  /** current contract type (Sales - Contact) */
290
290
  ContactPropertyKeys["CurrentContractType"] = "CurrentContractType";
291
- /** Phone number (Sales - Contact) */
292
- ContactPropertyKeys["Phone"] = "Phone";
293
291
  /** PreferredSpeed (Sales - Contact) */
294
292
  ContactPropertyKeys["PreferredSpeed"] = "PreferredSpeed";
295
293
  /** Current Network Provider (Sales - Contact) */
@@ -350,6 +348,8 @@ var ContactPropertyKeys;
350
348
  ContactPropertyKeys["PortalLastActiveDate"] = "PortalLastActiveDate";
351
349
  /** When the customer last used or was last active on the native customer mobile app (Sales - Contact) */
352
350
  ContactPropertyKeys["AppLastActiveDate"] = "AppLastActiveDate";
351
+ /** Phone number (Sales - Contact) */
352
+ ContactPropertyKeys["Phone"] = "Phone";
353
353
  })(ContactPropertyKeys = exports.ContactPropertyKeys || (exports.ContactPropertyKeys = {}));
354
354
  /**
355
355
  * Contact entity from CrmModule
@@ -206,7 +206,9 @@ export declare enum LeadPropertyKeys {
206
206
  /** Type of lead (Sales - Lead) */
207
207
  Type = "Type",
208
208
  /** When Lead is added to max contact */
209
- AddedToMaxContactDate = "AddedToMaxContactDate"
209
+ AddedToMaxContactDate = "AddedToMaxContactDate",
210
+ /** FakePhoneNumber */
211
+ FakePhoneNumber = "FakePhoneNumber"
210
212
  }
211
213
  /**
212
214
  * Properties for Lead records
@@ -425,6 +427,11 @@ export interface LeadProperties {
425
427
  * @type {DATE}
426
428
  */
427
429
  AddedToMaxContactDate: string;
430
+ /** FakePhoneNumber
431
+ *
432
+ * @type {PHONE_NUMBER_E164_GB}
433
+ */
434
+ FakePhoneNumber: string;
428
435
  }
429
436
  /**
430
437
  * Lead entity from CrmModule
@@ -201,6 +201,8 @@ var LeadPropertyKeys;
201
201
  LeadPropertyKeys["Type"] = "Type";
202
202
  /** When Lead is added to max contact */
203
203
  LeadPropertyKeys["AddedToMaxContactDate"] = "AddedToMaxContactDate";
204
+ /** FakePhoneNumber */
205
+ LeadPropertyKeys["FakePhoneNumber"] = "FakePhoneNumber";
204
206
  })(LeadPropertyKeys = exports.LeadPropertyKeys || (exports.LeadPropertyKeys = {}));
205
207
  /**
206
208
  * Lead entity from CrmModule
@@ -140,27 +140,6 @@ export declare enum OrderCurrencyCode {
140
140
  export declare enum OrderContractType {
141
141
  NO_CONTRACT = "NONE"
142
142
  }
143
- /**
144
- * Valid values for Order.ActivationStatus
145
- *
146
- * status of the order (must be activated for billing) (Sales - Order)
147
- *
148
- * @remarks Available options:
149
- * - `APPROVAL_PENDING` - Approval Pending
150
- * - `CLOSED` - Closed
151
- * - `DRAFT` - Draft
152
- * - `OPEN` - Open
153
- * - `PARTIAL` - Partial
154
- * - `PROCESSING` - Processing
155
- */
156
- export declare enum OrderActivationStatus {
157
- APPROVAL_PENDING = "APPROVAL_PENDING",
158
- CLOSED = "CLOSED",
159
- DRAFT = "DRAFT",
160
- OPEN = "OPEN",
161
- PARTIAL = "PARTIAL",
162
- PROCESSING = "PROCESSING"
163
- }
164
143
  /**
165
144
  * Valid values for Order.TrialUnit
166
145
  *
@@ -274,6 +253,31 @@ export declare enum OrderProvider {
274
253
  OPENREACH = "OPENREACH",
275
254
  PY_OMNI = "PYOMNI"
276
255
  }
256
+ /**
257
+ * Valid values for Order.ActivationStatus
258
+ *
259
+ * status of the order (must be activated for billing) (Sales - Order)
260
+ *
261
+ * @remarks Available options:
262
+ * - `ACTIVE` - Active
263
+ * - `BLOCKED` - Blocked
264
+ * - `CANCELLED` - Cancelled
265
+ * - `DRAFT` - Draft
266
+ * - `EXPIRED` - Expired
267
+ * - `PENDING_FULFILMENT` - Pending Fulfillment
268
+ * - `PROVISIONING` - Provisioning
269
+ * - `SUSPENDED` - Suspended
270
+ */
271
+ export declare enum OrderActivationStatus {
272
+ ACTIVE = "ACTIVE",
273
+ BLOCKED = "BLOCKED",
274
+ CANCELLED = "CANCELLED",
275
+ DRAFT = "DRAFT",
276
+ EXPIRED = "EXPIRED",
277
+ PENDING_FULFILLMENT = "PENDING_FULFILMENT",
278
+ PROVISIONING = "PROVISIONING",
279
+ SUSPENDED = "SUSPENDED"
280
+ }
277
281
  /**
278
282
  * Property keys for Order
279
283
  * Use these constants instead of string literals for type safety
@@ -297,8 +301,6 @@ export declare enum OrderPropertyKeys {
297
301
  Umprn = "UMPRN",
298
302
  /** Affiliate code used when order was placed */
299
303
  AffiliateCode = "AffiliateCode",
300
- /** status of the order (must be activated for billing) (Sales - Order) */
301
- ActivationStatus = "ActivationStatus",
302
304
  /** Pending Amco Replacement WorkOrder */
303
305
  PendingAmcoReplacement = "PendingAmcoReplacement",
304
306
  /** BrskOrderStatus */
@@ -460,7 +462,9 @@ export declare enum OrderPropertyKeys {
460
462
  /** Aklamio cashback was applied (Sales - Order) */
461
463
  AklamioCashbackVerificationDate = "AklamioCashbackVerificationDate",
462
464
  /** When the Cashback was approved (Sales - Order) */
463
- CashbackApprovalDate = "CashbackApprovalDate"
465
+ CashbackApprovalDate = "CashbackApprovalDate",
466
+ /** status of the order (must be activated for billing) (Sales - Order) */
467
+ ActivationStatus = "ActivationStatus"
464
468
  }
465
469
  /**
466
470
  * Properties for Order records
@@ -524,14 +528,6 @@ export interface OrderProperties {
524
528
  * @type {TEXT}
525
529
  */
526
530
  AffiliateCode: string;
527
- /** status of the order (must be activated for billing) (Sales - Order)
528
- *
529
- * @type {ENUM}
530
- * @default DRAFT
531
- * @enum {OrderActivationStatus}
532
- * @hidden This field is hidden in the UI
533
- */
534
- ActivationStatus: OrderActivationStatus;
535
531
  /** Pending Amco Replacement WorkOrder
536
532
  *
537
533
  * @type {BOOLEAN}
@@ -1038,6 +1034,14 @@ export interface OrderProperties {
1038
1034
  * @type {DATE}
1039
1035
  */
1040
1036
  CashbackApprovalDate: string;
1037
+ /** status of the order (must be activated for billing) (Sales - Order)
1038
+ *
1039
+ * @type {ENUM}
1040
+ * @default DRAFT
1041
+ * @enum {OrderActivationStatus}
1042
+ * @hidden This field is hidden in the UI
1043
+ */
1044
+ ActivationStatus: OrderActivationStatus;
1041
1045
  }
1042
1046
  /**
1043
1047
  * Order entity from OrderModule