@d19n/youfibre-odin-sdk 2.0.140 → 2.0.142

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.
package/README.md CHANGED
@@ -353,7 +353,7 @@ This SDK includes **165** entities across **12** modules.
353
353
 
354
354
  ## Actions
355
355
 
356
- This SDK includes **683** actions.
356
+ This SDK includes **684** actions.
357
357
 
358
358
  ### Action Types
359
359
 
@@ -1275,6 +1275,7 @@ This SDK includes **683** actions.
1275
1275
  | `CreateInboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall |
1276
1276
  | `CreateOutboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall |
1277
1277
  | `UpdateCallAnalytics` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallAnalytics |
1278
+ | `UpdateCallInsights` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights |
1278
1279
  | `UpdateCallOnInboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered |
1279
1280
  | `UpdateCallOnInboundCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCanceled |
1280
1281
  | `UpdateCallOnInboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted |
@@ -0,0 +1,67 @@
1
+ /**
2
+ * UpdateCallInsights Action DTO
3
+ *
4
+ * Updating call record with insights from Twilio
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallInsights
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateCallInsights created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
18
+ */
19
+ export interface UpdateCallInsightsMessage extends OdinRecordCreatedEvent<UpdateCallInsightsDto, UpdateCallInsightsProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallInsights action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 1
26
+ */
27
+ export interface UpdateCallInsightsProperties {
28
+ /**
29
+ * WhoHungUp
30
+ *
31
+ * WhoHungUp
32
+ * @type {ENUM}
33
+ */
34
+ WhoHungUp?: string | null;
35
+ }
36
+ /**
37
+ * UpdateCallInsights
38
+ *
39
+ * Updating call record with insights from Twilio
40
+ *
41
+ * @actionType CREATE - Creates a new Call record
42
+ * @module NotificationModule
43
+ * @entity Call
44
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
45
+ * @permission schema.action.updatecallinsights.trigger
46
+ * @benchmark This action is tracked for performance benchmarks
47
+ */
48
+ export declare class UpdateCallInsightsDto extends OdinRecordCreateDto<UpdateCallInsightsProperties> {
49
+ /** Used by SDK generators to identify action type */
50
+ static readonly ACTION_TYPE = "CREATE";
51
+ static readonly ACTION_KEY = "UpdateCallInsights";
52
+ static readonly MODULE_NAME = "NotificationModule";
53
+ static readonly ENTITIES: string[];
54
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights";
55
+ static readonly PERMISSION = "schema.action.updatecallinsights.trigger";
56
+ /** Step metadata - entity this action targets */
57
+ static readonly STEP_ENTITY = "NotificationModule:Call";
58
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
59
+ static readonly STEP_SCHEMA_ACTION_ID = "b743deba-1f05-4933-962d-6cdecd1540c5";
60
+ static readonly AUTO_LINK_PARENT = true;
61
+ readonly actionName: string;
62
+ readonly schemaActionId: string;
63
+ readonly entity: string;
64
+ constructor(properties: UpdateCallInsightsProperties, options?: {
65
+ journeyId?: string;
66
+ });
67
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallInsights Action DTO
4
+ *
5
+ * Updating call record with insights from Twilio
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey UpdateCallInsights
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallInsightsDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallInsights
19
+ *
20
+ * Updating call record with insights from Twilio
21
+ *
22
+ * @actionType CREATE - Creates a new Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
26
+ * @permission schema.action.updatecallinsights.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallInsightsDto extends core_1.OdinRecordCreateDto {
30
+ constructor(properties, options) {
31
+ super({
32
+ entity: 'NotificationModule:Call',
33
+ type: undefined,
34
+ properties,
35
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
+ });
37
+ this.actionName = 'UpdateCallInsights';
38
+ this.schemaActionId = 'b743deba-1f05-4933-962d-6cdecd1540c5';
39
+ this.entity = 'NotificationModule:Call';
40
+ }
41
+ }
42
+ exports.UpdateCallInsightsDto = UpdateCallInsightsDto;
43
+ /** Used by SDK generators to identify action type */
44
+ UpdateCallInsightsDto.ACTION_TYPE = 'CREATE';
45
+ UpdateCallInsightsDto.ACTION_KEY = 'UpdateCallInsights';
46
+ UpdateCallInsightsDto.MODULE_NAME = 'NotificationModule';
47
+ UpdateCallInsightsDto.ENTITIES = ['Call'];
48
+ UpdateCallInsightsDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights';
49
+ UpdateCallInsightsDto.PERMISSION = 'schema.action.updatecallinsights.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ UpdateCallInsightsDto.STEP_ENTITY = 'NotificationModule:Call';
52
+ UpdateCallInsightsDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
53
+ UpdateCallInsightsDto.STEP_SCHEMA_ACTION_ID = 'b743deba-1f05-4933-962d-6cdecd1540c5';
54
+ UpdateCallInsightsDto.AUTO_LINK_PARENT = true;
@@ -21,52 +21,42 @@ export interface UpdateCallOnInboundCallAnsweredMessage extends OdinRecordUpdate
21
21
  /**
22
22
  * Properties for UpdateCallOnInboundCallAnswered action
23
23
  *
24
- * @property Required fields: 0
25
- * @property Optional fields: 6
24
+ * @property Required fields: 4
25
+ * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateCallOnInboundCallAnsweredProperties {
28
- /**
29
- * CurrentAgentEmail
30
- *
31
- * Email of currently assigned agent (Communications - Call)
32
- * @type {TEXT}
33
- */
34
- CurrentAgentEmail?: string | null;
35
- /**
36
- * user Id
37
- *
38
- * The Odin user that handled the call (Communications - Call)
39
- * @type {UUID}
40
- */
41
- UserId?: string | null;
42
28
  /**
43
29
  * Call stage
44
30
  *
45
31
  * The granular stage of a call, more extensive than CallStatus (Communications - Call)
46
32
  * @type {ENUM}
33
+ * @required
47
34
  */
48
- CallStage?: string | null;
35
+ CallStage: string;
49
36
  /**
50
37
  * call status
51
38
  *
52
39
  * the status of the call (Communications - Call)
53
40
  * @type {TEXT}
41
+ * @required
54
42
  */
55
- CallStatus?: string | null;
43
+ CallStatus: string;
56
44
  /**
57
45
  * AnswerTime
58
46
  *
59
47
  * When customer call was answered (Communications - Call)
60
48
  * @type {DATE_TIME}
49
+ * @required
61
50
  */
62
- AnswerTime?: string | null;
51
+ AnswerTime: string;
63
52
  /**
64
53
  * QueueTime
65
54
  *
66
55
  * Seconds spent in queue (Communications - Call)
67
56
  * @type {NUMBER}
57
+ * @required
68
58
  */
69
- QueueTime?: number | null;
59
+ QueueTime: number;
70
60
  }
71
61
  /**
72
62
  * UpdateCallOnInboundCallAnswered
@@ -21,80 +21,34 @@ export interface UpdateCallOnInboundCallCompletedMessage extends OdinRecordUpdat
21
21
  /**
22
22
  * Properties for UpdateCallOnInboundCallCompleted action
23
23
  *
24
- * @property Required fields: 0
25
- * @property Optional fields: 10
24
+ * @property Required fields: 3
25
+ * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateCallOnInboundCallCompletedProperties {
28
- /**
29
- * EndTime
30
- *
31
- * Data field for Call records. Used by Communications team.
32
- * @type {DATE_TIME}
33
- */
34
- EndTime?: string | null;
35
- /**
36
- * TotalDuration
37
- *
38
- * Total call duration in seconds from customer perspective (Communications - Call)
39
- * @type {NUMBER}
40
- */
41
- TotalDuration?: number | null;
42
- /**
43
- * call status
44
- *
45
- * the status of the call (Communications - Call)
46
- * @type {TEXT}
47
- */
48
- CallStatus?: string | null;
49
- /**
50
- * Call stage
51
- *
52
- * The granular stage of a call, more extensive than CallStatus (Communications - Call)
53
- * @type {ENUM}
54
- */
55
- CallStage?: string | null;
56
- /**
57
- * QueueTime
58
- *
59
- * Seconds spent in queue (Communications - Call)
60
- * @type {NUMBER}
61
- */
62
- QueueTime?: number | null;
63
- /**
64
- * CallEndReason
65
- *
66
- * CallEndReason
67
- * @type {ENUM}
68
- */
69
- CallEndReason?: string | null;
70
28
  /**
71
29
  * RecordingSid
72
30
  *
73
31
  * Twilio ID for Recording (Communications - Call)
74
32
  * @type {TEXT}
33
+ * @required
75
34
  */
76
- RecordingSid?: string | null;
77
- /**
78
- * RecordingStatus
79
- *
80
- * RecordingStatus (Communications - Call)
81
- * @type {TEXT}
82
- */
83
- RecordingStatus?: string | null;
35
+ RecordingSid: string;
84
36
  /**
85
37
  * RecordingDuration
86
38
  *
87
39
  * RecordingDuration (Communications - Call)
88
40
  * @type {NUMBER}
41
+ * @required
89
42
  */
90
- RecordingDuration?: number | null;
43
+ RecordingDuration: number;
91
44
  /**
92
45
  * RecordingUrl
93
46
  *
94
47
  * RecordingUrl (Communications - Call)
95
48
  * @type {TEXT}
49
+ * @required
96
50
  */
97
- RecordingUrl?: string | null;
51
+ RecordingUrl: string;
98
52
  }
99
53
  /**
100
54
  * UpdateCallOnInboundCallCompleted
@@ -21,7 +21,7 @@ export interface UpdateCallOnNumberCallStatusMessage extends OdinRecordUpdatedEv
21
21
  /**
22
22
  * Properties for UpdateCallOnNumberCallStatus action
23
23
  *
24
- * @property Required fields: 3
24
+ * @property Required fields: 5
25
25
  * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateCallOnNumberCallStatusProperties {
@@ -49,6 +49,22 @@ export interface UpdateCallOnNumberCallStatusProperties {
49
49
  * @required
50
50
  */
51
51
  CallStatus: string;
52
+ /**
53
+ * TotalDuration
54
+ *
55
+ * Total call duration in seconds from customer perspective (Communications - Call)
56
+ * @type {NUMBER}
57
+ * @required
58
+ */
59
+ TotalDuration: number;
60
+ /**
61
+ * QueueTime
62
+ *
63
+ * Seconds spent in queue (Communications - Call)
64
+ * @type {NUMBER}
65
+ * @required
66
+ */
67
+ QueueTime: number;
52
68
  }
53
69
  /**
54
70
  * UpdateCallOnNumberCallStatus
@@ -21,42 +21,10 @@ export interface UpdateCallOnOutboundCallCompletedMessage extends OdinRecordUpda
21
21
  /**
22
22
  * Properties for UpdateCallOnOutboundCallCompleted action
23
23
  *
24
- * @property Required fields: 7
24
+ * @property Required fields: 3
25
25
  * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateCallOnOutboundCallCompletedProperties {
28
- /**
29
- * TotalDuration
30
- *
31
- * Total call duration in seconds from customer perspective (Communications - Call)
32
- * @type {NUMBER}
33
- * @required
34
- */
35
- TotalDuration: number;
36
- /**
37
- * call status
38
- *
39
- * the status of the call (Communications - Call)
40
- * @type {TEXT}
41
- * @required
42
- */
43
- CallStatus: string;
44
- /**
45
- * Call stage
46
- *
47
- * The granular stage of a call, more extensive than CallStatus (Communications - Call)
48
- * @type {ENUM}
49
- * @required
50
- */
51
- CallStage: string;
52
- /**
53
- * CallEndReason
54
- *
55
- * CallEndReason
56
- * @type {ENUM}
57
- * @required
58
- */
59
- CallEndReason: string;
60
28
  /**
61
29
  * RecordingSid
62
30
  *
@@ -21,7 +21,7 @@ export interface UpdateCallOnOutboundDialActionMessage extends OdinRecordUpdated
21
21
  /**
22
22
  * Properties for UpdateCallOnOutboundDialAction action
23
23
  *
24
- * @property Required fields: 3
24
+ * @property Required fields: 4
25
25
  * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateCallOnOutboundDialActionProperties {
@@ -49,6 +49,14 @@ export interface UpdateCallOnOutboundDialActionProperties {
49
49
  * @required
50
50
  */
51
51
  CallEndReason: string;
52
+ /**
53
+ * TotalDuration
54
+ *
55
+ * Total call duration in seconds from customer perspective (Communications - Call)
56
+ * @type {NUMBER}
57
+ * @required
58
+ */
59
+ TotalDuration: number;
52
60
  }
53
61
  /**
54
62
  * UpdateCallOnOutboundDialAction
@@ -86,6 +86,21 @@ export declare enum CallCallStage {
86
86
  TRANSFERRED = "Transferred",
87
87
  WAITING = "Waiting"
88
88
  }
89
+ /**
90
+ * Valid values for Call.WhoHungUp
91
+ *
92
+ * WhoHungUp
93
+ *
94
+ * @remarks Available options:
95
+ * - `callee` - Callee
96
+ * - `caller` - Caller
97
+ * - `unknown`
98
+ */
99
+ export declare enum CallWhoHungUp {
100
+ CALLEE = "callee",
101
+ CALLER = "caller",
102
+ UNKNOWN = "unknown"
103
+ }
89
104
  /**
90
105
  * Valid values for Call.CallEndReason
91
106
  *
@@ -204,6 +219,8 @@ export declare enum CallPropertyKeys {
204
219
  Title = "Title",
205
220
  /** TaskQueueSid */
206
221
  TaskQueueSid = "TaskQueueSid",
222
+ /** WhoHungUp */
223
+ WhoHungUp = "WhoHungUp",
207
224
  /** ActiveTransferId */
208
225
  ActiveTransferId = "ActiveTransferId",
209
226
  /** Data field for Call records. Used by Communications team. */
@@ -467,6 +484,12 @@ export interface CallProperties {
467
484
  * @type {TEXT}
468
485
  */
469
486
  TaskQueueSid: string;
487
+ /** WhoHungUp
488
+ *
489
+ * @type {ENUM}
490
+ * @enum {CallWhoHungUp}
491
+ */
492
+ WhoHungUp: CallWhoHungUp;
470
493
  /** ActiveTransferId
471
494
  *
472
495
  * @type {TEXT}
@@ -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.CallCallEndReason = 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.CallWhoHungUp = 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,22 @@ 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.WhoHungUp
89
+ *
90
+ * WhoHungUp
91
+ *
92
+ * @remarks Available options:
93
+ * - `callee` - Callee
94
+ * - `caller` - Caller
95
+ * - `unknown`
96
+ */
97
+ var CallWhoHungUp;
98
+ (function (CallWhoHungUp) {
99
+ CallWhoHungUp["CALLEE"] = "callee";
100
+ CallWhoHungUp["CALLER"] = "caller";
101
+ CallWhoHungUp["UNKNOWN"] = "unknown";
102
+ })(CallWhoHungUp = exports.CallWhoHungUp || (exports.CallWhoHungUp = {}));
87
103
  /**
88
104
  * Valid values for Call.CallEndReason
89
105
  *
@@ -204,6 +220,8 @@ var CallPropertyKeys;
204
220
  CallPropertyKeys["Title"] = "Title";
205
221
  /** TaskQueueSid */
206
222
  CallPropertyKeys["TaskQueueSid"] = "TaskQueueSid";
223
+ /** WhoHungUp */
224
+ CallPropertyKeys["WhoHungUp"] = "WhoHungUp";
207
225
  /** ActiveTransferId */
208
226
  CallPropertyKeys["ActiveTransferId"] = "ActiveTransferId";
209
227
  /** Data field for Call records. Used by Communications team. */
@@ -215,41 +215,41 @@ export declare enum ContactAccountStatus {
215
215
  NONE = "NONE"
216
216
  }
217
217
  /**
218
- * Valid values for Contact.MedicallyDependant
218
+ * Valid values for Contact.AdditionalCareRequired
219
219
  *
220
- * Is the customer medically dependant on their broadband (Sales - Contact)
220
+ * Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
221
221
  *
222
222
  * @remarks Available options:
223
223
  * - `NO` - No
224
224
  * - `YES` - Yes
225
225
  */
226
- export declare enum ContactMedicallyDependant {
226
+ export declare enum ContactAdditionalCareRequired {
227
227
  NO = "NO",
228
228
  YES = "YES"
229
229
  }
230
230
  /**
231
- * Valid values for Contact.AdditionalCareRequired
231
+ * Valid values for Contact.TelecareAlarm
232
232
  *
233
- * Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact)
233
+ * Does the customer use a Telecare Alarm (Sales - Contact)
234
234
  *
235
235
  * @remarks Available options:
236
236
  * - `NO` - No
237
237
  * - `YES` - Yes
238
238
  */
239
- export declare enum ContactAdditionalCareRequired {
239
+ export declare enum ContactTelecareAlarm {
240
240
  NO = "NO",
241
241
  YES = "YES"
242
242
  }
243
243
  /**
244
- * Valid values for Contact.TelecareAlarm
244
+ * Valid values for Contact.MedicallyDependant
245
245
  *
246
- * Does the customer use a Telecare Alarm (Sales - Contact)
246
+ * Is the customer medically dependant on their broadband (Sales - Contact)
247
247
  *
248
248
  * @remarks Available options:
249
249
  * - `NO` - No
250
250
  * - `YES` - Yes
251
251
  */
252
- export declare enum ContactTelecareAlarm {
252
+ export declare enum ContactMedicallyDependant {
253
253
  NO = "NO",
254
254
  YES = "YES"
255
255
  }
@@ -352,8 +352,6 @@ export declare enum ContactPropertyKeys {
352
352
  PortalLastActiveDate = "PortalLastActiveDate",
353
353
  /** When the customer last used or was last active on the native customer mobile app (Sales - Contact) */
354
354
  AppLastActiveDate = "AppLastActiveDate",
355
- /** Is the customer medically dependant on their broadband (Sales - Contact) */
356
- MedicallyDependant = "MedicallyDependant",
357
355
  /** Any additional information */
358
356
  AdditionalCareNotes = "AdditionalCareNotes",
359
357
  /** Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact) */
@@ -362,6 +360,8 @@ export declare enum ContactPropertyKeys {
362
360
  TelecareAlarm = "TelecareAlarm",
363
361
  /** Select a care requirement */
364
362
  AdditionalCareReason = "AdditionalCareReason",
363
+ /** Is the customer medically dependant on their broadband (Sales - Contact) */
364
+ MedicallyDependant = "MedicallyDependant",
365
365
  /** Phone number (Sales - Contact) */
366
366
  Phone = "Phone"
367
367
  }
@@ -667,14 +667,6 @@ export interface ContactProperties {
667
667
  * @hidden This field is hidden in the UI
668
668
  */
669
669
  AppLastActiveDate: string;
670
- /** Is the customer medically dependant on their broadband (Sales - Contact)
671
- *
672
- * @type {ENUM}
673
- * @default
674
- * @enum {ContactMedicallyDependant}
675
- * @hidden This field is hidden in the UI
676
- */
677
- MedicallyDependant: ContactMedicallyDependant;
678
670
  /** Any additional information
679
671
  *
680
672
  * @type {TEXT_LONG}
@@ -702,6 +694,14 @@ export interface ContactProperties {
702
694
  * @hidden This field is hidden in the UI
703
695
  */
704
696
  AdditionalCareReason: string;
697
+ /** Is the customer medically dependant on their broadband (Sales - Contact)
698
+ *
699
+ * @type {ENUM}
700
+ * @default
701
+ * @enum {ContactMedicallyDependant}
702
+ * @hidden This field is hidden in the UI
703
+ */
704
+ MedicallyDependant: ContactMedicallyDependant;
705
705
  /** Phone number (Sales - Contact)
706
706
  *
707
707
  * @type {PHONE_NUMBER_E164_GB}
@@ -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_CONTACT_REWARD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_REWARD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_DELETED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_CREATED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_CREATED = exports.ROUTING_KEY_LINK_CONTACT_FILE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_FILE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_DELETED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_CREATED = exports.ROUTING_KEY_CONTACT_DEFAULT_DELETED = exports.ROUTING_KEY_CONTACT_DEFAULT_UPDATED = exports.ROUTING_KEY_CONTACT_DEFAULT_CREATED = exports.ROUTING_KEY_CONTACT_DELETED = exports.ROUTING_KEY_CONTACT_UPDATED = exports.ROUTING_KEY_CONTACT_CREATED = exports.Contact = exports.ContactPropertyKeys = exports.ContactTelecareAlarm = exports.ContactAdditionalCareRequired = exports.ContactMedicallyDependant = exports.ContactAccountStatus = exports.ContactActivationSource = exports.ContactCurrentNetworkProvider = exports.ContactRole = exports.ContactPreviousProvider = exports.ContactHomeownerStatus = exports.ContactPortalStatus = exports.ContactCurrentProvider = exports.ContactEntityTypes = void 0;
15
+ exports.ROUTING_KEY_LINK_CONTACT_REWARD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_REWARD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_DELETED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_CREATED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_CREATED = exports.ROUTING_KEY_LINK_CONTACT_FILE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_FILE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_DELETED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_CREATED = exports.ROUTING_KEY_CONTACT_DEFAULT_DELETED = exports.ROUTING_KEY_CONTACT_DEFAULT_UPDATED = exports.ROUTING_KEY_CONTACT_DEFAULT_CREATED = exports.ROUTING_KEY_CONTACT_DELETED = exports.ROUTING_KEY_CONTACT_UPDATED = exports.ROUTING_KEY_CONTACT_CREATED = exports.Contact = exports.ContactPropertyKeys = exports.ContactMedicallyDependant = exports.ContactTelecareAlarm = exports.ContactAdditionalCareRequired = exports.ContactAccountStatus = exports.ContactActivationSource = exports.ContactCurrentNetworkProvider = exports.ContactRole = exports.ContactPreviousProvider = exports.ContactHomeownerStatus = exports.ContactPortalStatus = exports.ContactCurrentProvider = exports.ContactEntityTypes = void 0;
16
16
  exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_DELETED = exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
@@ -195,20 +195,6 @@ var ContactAccountStatus;
195
195
  ContactAccountStatus["INACTIVE"] = "INACTIVE";
196
196
  ContactAccountStatus["NONE"] = "NONE";
197
197
  })(ContactAccountStatus = exports.ContactAccountStatus || (exports.ContactAccountStatus = {}));
198
- /**
199
- * Valid values for Contact.MedicallyDependant
200
- *
201
- * Is the customer medically dependant on their broadband (Sales - Contact)
202
- *
203
- * @remarks Available options:
204
- * - `NO` - No
205
- * - `YES` - Yes
206
- */
207
- var ContactMedicallyDependant;
208
- (function (ContactMedicallyDependant) {
209
- ContactMedicallyDependant["NO"] = "NO";
210
- ContactMedicallyDependant["YES"] = "YES";
211
- })(ContactMedicallyDependant = exports.ContactMedicallyDependant || (exports.ContactMedicallyDependant = {}));
212
198
  /**
213
199
  * Valid values for Contact.AdditionalCareRequired
214
200
  *
@@ -237,6 +223,20 @@ var ContactTelecareAlarm;
237
223
  ContactTelecareAlarm["NO"] = "NO";
238
224
  ContactTelecareAlarm["YES"] = "YES";
239
225
  })(ContactTelecareAlarm = exports.ContactTelecareAlarm || (exports.ContactTelecareAlarm = {}));
226
+ /**
227
+ * Valid values for Contact.MedicallyDependant
228
+ *
229
+ * Is the customer medically dependant on their broadband (Sales - Contact)
230
+ *
231
+ * @remarks Available options:
232
+ * - `NO` - No
233
+ * - `YES` - Yes
234
+ */
235
+ var ContactMedicallyDependant;
236
+ (function (ContactMedicallyDependant) {
237
+ ContactMedicallyDependant["NO"] = "NO";
238
+ ContactMedicallyDependant["YES"] = "YES";
239
+ })(ContactMedicallyDependant = exports.ContactMedicallyDependant || (exports.ContactMedicallyDependant = {}));
240
240
  /**
241
241
  * Property keys for Contact
242
242
  * Use these constants instead of string literals for type safety
@@ -337,8 +337,6 @@ var ContactPropertyKeys;
337
337
  ContactPropertyKeys["PortalLastActiveDate"] = "PortalLastActiveDate";
338
338
  /** When the customer last used or was last active on the native customer mobile app (Sales - Contact) */
339
339
  ContactPropertyKeys["AppLastActiveDate"] = "AppLastActiveDate";
340
- /** Is the customer medically dependant on their broadband (Sales - Contact) */
341
- ContactPropertyKeys["MedicallyDependant"] = "MedicallyDependant";
342
340
  /** Any additional information */
343
341
  ContactPropertyKeys["AdditionalCareNotes"] = "AdditionalCareNotes";
344
342
  /** Marks if the customer requires additional care (Ofcom vulnerable customer handling). (Sales - Contact) */
@@ -347,6 +345,8 @@ var ContactPropertyKeys;
347
345
  ContactPropertyKeys["TelecareAlarm"] = "TelecareAlarm";
348
346
  /** Select a care requirement */
349
347
  ContactPropertyKeys["AdditionalCareReason"] = "AdditionalCareReason";
348
+ /** Is the customer medically dependant on their broadband (Sales - Contact) */
349
+ ContactPropertyKeys["MedicallyDependant"] = "MedicallyDependant";
350
350
  /** Phone number (Sales - Contact) */
351
351
  ContactPropertyKeys["Phone"] = "Phone";
352
352
  })(ContactPropertyKeys = exports.ContactPropertyKeys || (exports.ContactPropertyKeys = {}));
@@ -30,6 +30,7 @@ import { CreateInboundCallBuilder } from '../actions-v2/CreateInboundCallDto';
30
30
  import { CreateOutboundCallProperties } from '../actions-v2/CreateOutboundCallDto';
31
31
  import { CreateOutboundCallBuilder } from '../actions-v2/CreateOutboundCallDto';
32
32
  import { UpdateCallAnalyticsProperties } from '../actions-v2/UpdateCallAnalyticsDto';
33
+ import { UpdateCallInsightsProperties } from '../actions-v2/UpdateCallInsightsDto';
33
34
  import { UpdateCallOnInboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnInboundCallAnsweredDto';
34
35
  import { UpdateCallOnInboundCallCanceledProperties } from '../actions-v2/UpdateCallOnInboundCallCanceledDto';
35
36
  import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
@@ -427,6 +428,34 @@ export declare class CallRecord<TProps = CallProperties> {
427
428
  journeyId?: string;
428
429
  stageKey?: string;
429
430
  }): CreateOutboundCallBuilder;
431
+ /**
432
+ * UpdateCallInsights
433
+ *
434
+ * Creates a new Call record with the specified properties.
435
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
436
+ *
437
+ * @param properties - The properties for the new record
438
+ * @param options - Optional settings
439
+ * @param options.type - Override the record type
440
+ * @param options.journeyId - Associate with a journey
441
+ * @param options.stageKey - Set initial pipeline stage
442
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
443
+ *
444
+ * @example
445
+ * ```typescript
446
+ * // Create with properties
447
+ * const record = odinClient.calls.new();
448
+ * await record.updateCallInsights({ ... }).execute();
449
+ *
450
+ * // Dry run (for debugging)
451
+ * const payload = record.updateCallInsights({ ... }).dryRun();
452
+ * ```
453
+ */
454
+ updateCallInsights(properties?: UpdateCallInsightsProperties, options?: {
455
+ type?: string;
456
+ journeyId?: string;
457
+ stageKey?: string;
458
+ }): ActionBuilder;
430
459
  /**
431
460
  * UpdateCallAnalytics
432
461
  *
@@ -456,11 +485,13 @@ export declare class CallRecord<TProps = CallProperties> {
456
485
  /**
457
486
  * UpdateCallOnInboundCallAnswered
458
487
  *
459
- * Updates this Call record.
488
+ * Updates this Call record with the specified properties.
460
489
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
461
490
  *
462
- * @param propertiesOrOptions - Properties to update, or options object
463
- * @param options - Optional settings (journeyId, stageKey)
491
+ * @param properties - Required properties for this action
492
+ * @param options - Optional settings
493
+ * @param options.journeyId - Associate with a journey
494
+ * @param options.stageKey - Transition to pipeline stage
464
495
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
465
496
  * @throws Error if called on a new (unsaved) record
466
497
  *
@@ -473,10 +504,7 @@ export declare class CallRecord<TProps = CallProperties> {
473
504
  * const payload = record.updateCallOnInboundCallAnswered({ ... }).dryRun();
474
505
  * ```
475
506
  */
476
- updateCallOnInboundCallAnswered(propertiesOrOptions?: UpdateCallOnInboundCallAnsweredProperties | {
477
- journeyId?: string;
478
- stageKey?: string;
479
- }, options?: {
507
+ updateCallOnInboundCallAnswered(properties: UpdateCallOnInboundCallAnsweredProperties, options?: {
480
508
  journeyId?: string;
481
509
  stageKey?: string;
482
510
  }): ActionBuilder;
@@ -509,11 +537,13 @@ export declare class CallRecord<TProps = CallProperties> {
509
537
  /**
510
538
  * UpdateCallOnInboundCallCompleted
511
539
  *
512
- * Updates this Call record.
540
+ * Updates this Call record with the specified properties.
513
541
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
514
542
  *
515
- * @param propertiesOrOptions - Properties to update, or options object
516
- * @param options - Optional settings (journeyId, stageKey)
543
+ * @param properties - Required properties for this action
544
+ * @param options - Optional settings
545
+ * @param options.journeyId - Associate with a journey
546
+ * @param options.stageKey - Transition to pipeline stage
517
547
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
518
548
  * @throws Error if called on a new (unsaved) record
519
549
  *
@@ -526,10 +556,7 @@ export declare class CallRecord<TProps = CallProperties> {
526
556
  * const payload = record.updateCallOnInboundCallCompleted({ ... }).dryRun();
527
557
  * ```
528
558
  */
529
- updateCallOnInboundCallCompleted(propertiesOrOptions?: UpdateCallOnInboundCallCompletedProperties | {
530
- journeyId?: string;
531
- stageKey?: string;
532
- }, options?: {
559
+ updateCallOnInboundCallCompleted(properties: UpdateCallOnInboundCallCompletedProperties, options?: {
533
560
  journeyId?: string;
534
561
  stageKey?: string;
535
562
  }): ActionBuilder;
@@ -553,6 +553,42 @@ class CallRecord {
553
553
  createOutboundCall(properties, options) {
554
554
  return new CreateOutboundCallDto_1.CreateOutboundCallBuilder(properties || {}, [...this._pendingLinks], options).withProvider(this._provider, 'NotificationModule', 'Call', () => { this._pendingLinks = []; });
555
555
  }
556
+ /**
557
+ * UpdateCallInsights
558
+ *
559
+ * Creates a new Call record with the specified properties.
560
+ * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
561
+ *
562
+ * @param properties - The properties for the new record
563
+ * @param options - Optional settings
564
+ * @param options.type - Override the record type
565
+ * @param options.journeyId - Associate with a journey
566
+ * @param options.stageKey - Set initial pipeline stage
567
+ * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
568
+ *
569
+ * @example
570
+ * ```typescript
571
+ * // Create with properties
572
+ * const record = odinClient.calls.new();
573
+ * await record.updateCallInsights({ ... }).execute();
574
+ *
575
+ * // Dry run (for debugging)
576
+ * const payload = record.updateCallInsights({ ... }).dryRun();
577
+ * ```
578
+ */
579
+ updateCallInsights(properties, options) {
580
+ var _a, _b;
581
+ const payload = {
582
+ entity: 'NotificationModule:Call',
583
+ type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
584
+ actionName: 'UpdateCallInsights',
585
+ properties: properties || {},
586
+ associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
587
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
588
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
589
+ };
590
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
591
+ }
556
592
  // ============================================
557
593
  // UPDATE ACTIONS (require existing record)
558
594
  // ============================================
@@ -588,11 +624,13 @@ class CallRecord {
588
624
  /**
589
625
  * UpdateCallOnInboundCallAnswered
590
626
  *
591
- * Updates this Call record.
627
+ * Updates this Call record with the specified properties.
592
628
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
593
629
  *
594
- * @param propertiesOrOptions - Properties to update, or options object
595
- * @param options - Optional settings (journeyId, stageKey)
630
+ * @param properties - Required properties for this action
631
+ * @param options - Optional settings
632
+ * @param options.journeyId - Associate with a journey
633
+ * @param options.stageKey - Transition to pipeline stage
596
634
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
597
635
  * @throws Error if called on a new (unsaved) record
598
636
  *
@@ -605,21 +643,11 @@ class CallRecord {
605
643
  * const payload = record.updateCallOnInboundCallAnswered({ ... }).dryRun();
606
644
  * ```
607
645
  */
608
- updateCallOnInboundCallAnswered(propertiesOrOptions, options) {
646
+ updateCallOnInboundCallAnswered(properties, options) {
609
647
  var _a;
610
648
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
611
649
  throw new Error('updateCallOnInboundCallAnswered requires an existing record. Use accessor.get() first.');
612
- let properties = {};
613
- let opts = options;
614
- if (propertiesOrOptions) {
615
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
616
- opts = propertiesOrOptions;
617
- }
618
- else {
619
- properties = propertiesOrOptions;
620
- }
621
- }
622
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
650
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
623
651
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
624
652
  }
625
653
  /**
@@ -654,11 +682,13 @@ class CallRecord {
654
682
  /**
655
683
  * UpdateCallOnInboundCallCompleted
656
684
  *
657
- * Updates this Call record.
685
+ * Updates this Call record with the specified properties.
658
686
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
659
687
  *
660
- * @param propertiesOrOptions - Properties to update, or options object
661
- * @param options - Optional settings (journeyId, stageKey)
688
+ * @param properties - Required properties for this action
689
+ * @param options - Optional settings
690
+ * @param options.journeyId - Associate with a journey
691
+ * @param options.stageKey - Transition to pipeline stage
662
692
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
663
693
  * @throws Error if called on a new (unsaved) record
664
694
  *
@@ -671,21 +701,11 @@ class CallRecord {
671
701
  * const payload = record.updateCallOnInboundCallCompleted({ ... }).dryRun();
672
702
  * ```
673
703
  */
674
- updateCallOnInboundCallCompleted(propertiesOrOptions, options) {
704
+ updateCallOnInboundCallCompleted(properties, options) {
675
705
  var _a;
676
706
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
677
707
  throw new Error('updateCallOnInboundCallCompleted requires an existing record. Use accessor.get() first.');
678
- let properties = {};
679
- let opts = options;
680
- if (propertiesOrOptions) {
681
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
682
- opts = propertiesOrOptions;
683
- }
684
- else {
685
- properties = propertiesOrOptions;
686
- }
687
- }
688
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
708
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
689
709
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
690
710
  }
691
711
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.140",
3
+ "version": "2.0.142",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",