@d19n/youfibre-odin-sdk 2.0.119 → 2.0.121

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 **644** actions.
356
+ This SDK includes **648** actions.
357
357
 
358
358
  ### Action Types
359
359
 
@@ -1137,6 +1137,8 @@ This SDK includes **644** actions.
1137
1137
  | `UpdateAgentCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled |
1138
1138
  | `UpdateAgentCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted |
1139
1139
  | `UpdateAgentCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinging |
1140
+ | `UpdateAgentCallLegOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered |
1141
+ | `UpdateAgentCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted |
1140
1142
  | `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
1141
1143
  | `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
1142
1144
  | `UpdateCustomerCallLegOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted |
@@ -1208,6 +1210,8 @@ This SDK includes **644** actions.
1208
1210
  | `UpdateCallOnInboundCallInitiated` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated |
1209
1211
  | `UpdateCallOnInboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging |
1210
1212
  | `UpdateCallOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted |
1213
+ | `UpdateCallOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered |
1214
+ | `UpdateCallOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted |
1211
1215
  | `UpdateCallOnTaskRouterAssign` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskRouterAssign |
1212
1216
  | `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
1213
1217
 
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateAgentCallLegOnOutboundCallAnswered Action DTO
3
+ *
4
+ * Update agent call leg on outbound call answered
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnOutboundCallAnswered
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateAgentCallLegOnOutboundCallAnswered updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
18
+ */
19
+ export interface UpdateAgentCallLegOnOutboundCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnOutboundCallAnsweredDto, UpdateAgentCallLegOnOutboundCallAnsweredProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnOutboundCallAnswered action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateAgentCallLegOnOutboundCallAnsweredProperties {
28
+ /**
29
+ * AnsweredAt
30
+ *
31
+ * Data field for CallLeg records. Used by Communications team.
32
+ * @type {DATE_TIME}
33
+ * @required
34
+ */
35
+ AnsweredAt: string;
36
+ /**
37
+ * Status
38
+ *
39
+ * Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
40
+ * @type {ENUM}
41
+ * @required
42
+ */
43
+ Status: string;
44
+ }
45
+ /**
46
+ * UpdateAgentCallLegOnOutboundCallAnswered
47
+ *
48
+ * Update agent call leg on outbound call answered
49
+ *
50
+ * @actionType UPDATE - Updates an existing CallLeg record
51
+ * @module NotificationModule
52
+ * @entity CallLeg
53
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
54
+ * @permission schema.action.updateagentcalllegonoutboundcallanswered.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateAgentCallLegOnOutboundCallAnsweredDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallAnsweredProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnOutboundCallAnswered";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered";
64
+ static readonly PERMISSION = "schema.action.updateagentcalllegonoutboundcallanswered.trigger";
65
+ /** Step metadata - entity this action targets */
66
+ static readonly STEP_ENTITY = "NotificationModule:CallLeg";
67
+ static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
68
+ static readonly STEP_SCHEMA_ACTION_ID = "d93a6714-fda8-4635-a9f6-7b582d155f08";
69
+ static readonly AUTO_LINK_PARENT = false;
70
+ readonly actionName: string;
71
+ readonly schemaActionId: string;
72
+ readonly entity: string;
73
+ constructor(record: OdinRecord<any> | {
74
+ id: string;
75
+ entity: string;
76
+ type?: string;
77
+ }, properties: UpdateAgentCallLegOnOutboundCallAnsweredProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnOutboundCallAnswered Action DTO
4
+ *
5
+ * Update agent call leg on outbound call answered
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnOutboundCallAnswered
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnOutboundCallAnsweredDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnOutboundCallAnswered
19
+ *
20
+ * Update agent call leg on outbound call answered
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered
26
+ * @permission schema.action.updateagentcalllegonoutboundcallanswered.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnOutboundCallAnsweredDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateAgentCallLegOnOutboundCallAnswered';
40
+ this.schemaActionId = 'd93a6714-fda8-4635-a9f6-7b582d155f08';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnOutboundCallAnsweredDto = UpdateAgentCallLegOnOutboundCallAnsweredDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.ACTION_KEY = 'UpdateAgentCallLegOnOutboundCallAnswered';
48
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered';
51
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.PERMISSION = 'schema.action.updateagentcalllegonoutboundcallanswered.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.STEP_SCHEMA_ACTION_ID = 'd93a6714-fda8-4635-a9f6-7b582d155f08';
56
+ UpdateAgentCallLegOnOutboundCallAnsweredDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,88 @@
1
+ /**
2
+ * UpdateAgentCallLegOnOutboundCallCompleted Action DTO
3
+ *
4
+ * Update agent call leg on outbound call completed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnOutboundCallCompleted
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateAgentCallLegOnOutboundCallCompleted updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
18
+ */
19
+ export interface UpdateAgentCallLegOnOutboundCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnOutboundCallCompletedDto, UpdateAgentCallLegOnOutboundCallCompletedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnOutboundCallCompleted action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 1
26
+ */
27
+ export interface UpdateAgentCallLegOnOutboundCallCompletedProperties {
28
+ /**
29
+ * EndedAt
30
+ *
31
+ * Data field for CallLeg records. Used by Communications team.
32
+ * @type {DATE_TIME}
33
+ * @required
34
+ */
35
+ EndedAt: string;
36
+ /**
37
+ * Status
38
+ *
39
+ * Status indicator for CallLeg records. Tracks lifecycle state. Used by Communications team.
40
+ * @type {ENUM}
41
+ * @required
42
+ */
43
+ Status: string;
44
+ /**
45
+ * Duration
46
+ *
47
+ * Duration of THIS leg only in seconds (Communications - CallLeg)
48
+ * @type {NUMBER}
49
+ */
50
+ Duration?: number | null;
51
+ }
52
+ /**
53
+ * UpdateAgentCallLegOnOutboundCallCompleted
54
+ *
55
+ * Update agent call leg on outbound call completed
56
+ *
57
+ * @actionType UPDATE - Updates an existing CallLeg record
58
+ * @module NotificationModule
59
+ * @entity CallLeg
60
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
61
+ * @permission schema.action.updateagentcalllegonoutboundcallcompleted.trigger
62
+ * @benchmark This action is tracked for performance benchmarks
63
+ */
64
+ export declare class UpdateAgentCallLegOnOutboundCallCompletedDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallCompletedProperties> {
65
+ /** Used by SDK generators to identify action type */
66
+ static readonly ACTION_TYPE = "UPDATE";
67
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnOutboundCallCompleted";
68
+ static readonly MODULE_NAME = "NotificationModule";
69
+ static readonly ENTITIES: string[];
70
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted";
71
+ static readonly PERMISSION = "schema.action.updateagentcalllegonoutboundcallcompleted.trigger";
72
+ /** Step metadata - entity this action targets */
73
+ static readonly STEP_ENTITY = "NotificationModule:CallLeg";
74
+ static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
75
+ static readonly STEP_SCHEMA_ACTION_ID = "231be3cd-1ed9-40eb-937a-8cd1d7c0b983";
76
+ static readonly AUTO_LINK_PARENT = false;
77
+ readonly actionName: string;
78
+ readonly schemaActionId: string;
79
+ readonly entity: string;
80
+ constructor(record: OdinRecord<any> | {
81
+ id: string;
82
+ entity: string;
83
+ type?: string;
84
+ }, properties: UpdateAgentCallLegOnOutboundCallCompletedProperties, options?: {
85
+ journeyId?: string;
86
+ stageKey?: string;
87
+ });
88
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnOutboundCallCompleted Action DTO
4
+ *
5
+ * Update agent call leg on outbound call completed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnOutboundCallCompleted
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnOutboundCallCompletedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnOutboundCallCompleted
19
+ *
20
+ * Update agent call leg on outbound call completed
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
26
+ * @permission schema.action.updateagentcalllegonoutboundcallcompleted.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnOutboundCallCompletedDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateAgentCallLegOnOutboundCallCompleted';
40
+ this.schemaActionId = '231be3cd-1ed9-40eb-937a-8cd1d7c0b983';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnOutboundCallCompletedDto = UpdateAgentCallLegOnOutboundCallCompletedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnOutboundCallCompletedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnOutboundCallCompletedDto.ACTION_KEY = 'UpdateAgentCallLegOnOutboundCallCompleted';
48
+ UpdateAgentCallLegOnOutboundCallCompletedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnOutboundCallCompletedDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnOutboundCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted';
51
+ UpdateAgentCallLegOnOutboundCallCompletedDto.PERMISSION = 'schema.action.updateagentcalllegonoutboundcallcompleted.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_SCHEMA_ACTION_ID = '231be3cd-1ed9-40eb-937a-8cd1d7c0b983';
56
+ UpdateAgentCallLegOnOutboundCallCompletedDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * UpdateCallOnOutboundCallAnswered Action DTO
3
+ *
4
+ * Update call on outbound call answered
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallOnOutboundCallAnswered
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateCallOnOutboundCallAnswered updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
18
+ */
19
+ export interface UpdateCallOnOutboundCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateCallOnOutboundCallAnsweredDto, UpdateCallOnOutboundCallAnsweredProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallOnOutboundCallAnswered action
23
+ *
24
+ */
25
+ export interface UpdateCallOnOutboundCallAnsweredProperties {
26
+ }
27
+ /**
28
+ * UpdateCallOnOutboundCallAnswered
29
+ *
30
+ * Update call on outbound call answered
31
+ *
32
+ * @actionType UPDATE - Updates an existing Call record
33
+ * @module NotificationModule
34
+ * @entity Call
35
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
36
+ * @permission schema.action.updatecallonoutboundcallanswered.trigger
37
+ * @benchmark This action is tracked for performance benchmarks
38
+ */
39
+ export declare class UpdateCallOnOutboundCallAnsweredDto extends OdinRecordUpdateDto<UpdateCallOnOutboundCallAnsweredProperties> {
40
+ /** Used by SDK generators to identify action type */
41
+ static readonly ACTION_TYPE = "UPDATE";
42
+ static readonly ACTION_KEY = "UpdateCallOnOutboundCallAnswered";
43
+ static readonly MODULE_NAME = "NotificationModule";
44
+ static readonly ENTITIES: string[];
45
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered";
46
+ static readonly PERMISSION = "schema.action.updatecallonoutboundcallanswered.trigger";
47
+ /** Step metadata - entity this action targets */
48
+ static readonly STEP_ENTITY = "NotificationModule:Call";
49
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
50
+ static readonly STEP_SCHEMA_ACTION_ID = "fa60f842-a37d-4e30-8dee-cf6b178475b9";
51
+ static readonly AUTO_LINK_PARENT = false;
52
+ readonly actionName: string;
53
+ readonly schemaActionId: string;
54
+ readonly entity: string;
55
+ constructor(record: OdinRecord<any> | {
56
+ id: string;
57
+ entity: string;
58
+ type?: string;
59
+ }, properties: UpdateCallOnOutboundCallAnsweredProperties, options?: {
60
+ journeyId?: string;
61
+ stageKey?: string;
62
+ });
63
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallOnOutboundCallAnswered Action DTO
4
+ *
5
+ * Update call on outbound call answered
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey UpdateCallOnOutboundCallAnswered
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallOnOutboundCallAnsweredDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallOnOutboundCallAnswered
19
+ *
20
+ * Update call on outbound call answered
21
+ *
22
+ * @actionType UPDATE - Updates an existing Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
26
+ * @permission schema.action.updatecallonoutboundcallanswered.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallOnOutboundCallAnsweredDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateCallOnOutboundCallAnswered';
40
+ this.schemaActionId = 'fa60f842-a37d-4e30-8dee-cf6b178475b9';
41
+ this.entity = 'NotificationModule:Call';
42
+ }
43
+ }
44
+ exports.UpdateCallOnOutboundCallAnsweredDto = UpdateCallOnOutboundCallAnsweredDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCallOnOutboundCallAnsweredDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCallOnOutboundCallAnsweredDto.ACTION_KEY = 'UpdateCallOnOutboundCallAnswered';
48
+ UpdateCallOnOutboundCallAnsweredDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCallOnOutboundCallAnsweredDto.ENTITIES = ['Call'];
50
+ UpdateCallOnOutboundCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered';
51
+ UpdateCallOnOutboundCallAnsweredDto.PERMISSION = 'schema.action.updatecallonoutboundcallanswered.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCallOnOutboundCallAnsweredDto.STEP_ENTITY = 'NotificationModule:Call';
54
+ UpdateCallOnOutboundCallAnsweredDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
55
+ UpdateCallOnOutboundCallAnsweredDto.STEP_SCHEMA_ACTION_ID = 'fa60f842-a37d-4e30-8dee-cf6b178475b9';
56
+ UpdateCallOnOutboundCallAnsweredDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,121 @@
1
+ /**
2
+ * UpdateCallOnOutboundCallCompleted Action DTO
3
+ *
4
+ * Update call on outbound call completed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallOnOutboundCallCompleted
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateCallOnOutboundCallCompleted updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
18
+ */
19
+ export interface UpdateCallOnOutboundCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateCallOnOutboundCallCompletedDto, UpdateCallOnOutboundCallCompletedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallOnOutboundCallCompleted action
23
+ *
24
+ * @property Required fields: 7
25
+ * @property Optional fields: 0
26
+ */
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
+ /**
61
+ * RecordingSid
62
+ *
63
+ * Twilio ID for Recording (Communications - Call)
64
+ * @type {TEXT}
65
+ * @required
66
+ */
67
+ RecordingSid: string;
68
+ /**
69
+ * RecordingDuration
70
+ *
71
+ * RecordingDuration (Communications - Call)
72
+ * @type {NUMBER}
73
+ * @required
74
+ */
75
+ RecordingDuration: number;
76
+ /**
77
+ * RecordingUrl
78
+ *
79
+ * RecordingUrl (Communications - Call)
80
+ * @type {TEXT}
81
+ * @required
82
+ */
83
+ RecordingUrl: string;
84
+ }
85
+ /**
86
+ * UpdateCallOnOutboundCallCompleted
87
+ *
88
+ * Update call on outbound call completed
89
+ *
90
+ * @actionType UPDATE - Updates an existing Call record
91
+ * @module NotificationModule
92
+ * @entity Call
93
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
94
+ * @permission schema.action.updatecallonoutboundcallcompleted.trigger
95
+ * @benchmark This action is tracked for performance benchmarks
96
+ */
97
+ export declare class UpdateCallOnOutboundCallCompletedDto extends OdinRecordUpdateDto<UpdateCallOnOutboundCallCompletedProperties> {
98
+ /** Used by SDK generators to identify action type */
99
+ static readonly ACTION_TYPE = "UPDATE";
100
+ static readonly ACTION_KEY = "UpdateCallOnOutboundCallCompleted";
101
+ static readonly MODULE_NAME = "NotificationModule";
102
+ static readonly ENTITIES: string[];
103
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted";
104
+ static readonly PERMISSION = "schema.action.updatecallonoutboundcallcompleted.trigger";
105
+ /** Step metadata - entity this action targets */
106
+ static readonly STEP_ENTITY = "NotificationModule:Call";
107
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
108
+ static readonly STEP_SCHEMA_ACTION_ID = "87a396a9-9e82-494e-b3ad-643e0d1978c6";
109
+ static readonly AUTO_LINK_PARENT = false;
110
+ readonly actionName: string;
111
+ readonly schemaActionId: string;
112
+ readonly entity: string;
113
+ constructor(record: OdinRecord<any> | {
114
+ id: string;
115
+ entity: string;
116
+ type?: string;
117
+ }, properties: UpdateCallOnOutboundCallCompletedProperties, options?: {
118
+ journeyId?: string;
119
+ stageKey?: string;
120
+ });
121
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallOnOutboundCallCompleted Action DTO
4
+ *
5
+ * Update call on outbound call completed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey UpdateCallOnOutboundCallCompleted
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallOnOutboundCallCompletedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallOnOutboundCallCompleted
19
+ *
20
+ * Update call on outbound call completed
21
+ *
22
+ * @actionType UPDATE - Updates an existing Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
26
+ * @permission schema.action.updatecallonoutboundcallcompleted.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallOnOutboundCallCompletedDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateCallOnOutboundCallCompleted';
40
+ this.schemaActionId = '87a396a9-9e82-494e-b3ad-643e0d1978c6';
41
+ this.entity = 'NotificationModule:Call';
42
+ }
43
+ }
44
+ exports.UpdateCallOnOutboundCallCompletedDto = UpdateCallOnOutboundCallCompletedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCallOnOutboundCallCompletedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCallOnOutboundCallCompletedDto.ACTION_KEY = 'UpdateCallOnOutboundCallCompleted';
48
+ UpdateCallOnOutboundCallCompletedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCallOnOutboundCallCompletedDto.ENTITIES = ['Call'];
50
+ UpdateCallOnOutboundCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted';
51
+ UpdateCallOnOutboundCallCompletedDto.PERMISSION = 'schema.action.updatecallonoutboundcallcompleted.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCallOnOutboundCallCompletedDto.STEP_ENTITY = 'NotificationModule:Call';
54
+ UpdateCallOnOutboundCallCompletedDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
55
+ UpdateCallOnOutboundCallCompletedDto.STEP_SCHEMA_ACTION_ID = '87a396a9-9e82-494e-b3ad-643e0d1978c6';
56
+ UpdateCallOnOutboundCallCompletedDto.AUTO_LINK_PARENT = false;
@@ -29,6 +29,8 @@ import { UpdateAgentCallLegOnIncomingCallAnsweredProperties } from '../actions-v
29
29
  import { UpdateAgentCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto';
30
30
  import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto';
31
31
  import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
32
+ import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto';
33
+ import { UpdateAgentCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto';
32
34
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
33
35
  import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
34
36
  import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
@@ -382,6 +384,58 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
382
384
  journeyId?: string;
383
385
  stageKey?: string;
384
386
  }): ActionBuilder;
387
+ /**
388
+ * UpdateAgentCallLegOnOutboundCallAnswered
389
+ *
390
+ * Updates this CallLeg record with the specified properties.
391
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
392
+ *
393
+ * @param properties - Required properties for this action
394
+ * @param options - Optional settings
395
+ * @param options.journeyId - Associate with a journey
396
+ * @param options.stageKey - Transition to pipeline stage
397
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
398
+ * @throws Error if called on a new (unsaved) record
399
+ *
400
+ * @example
401
+ * ```typescript
402
+ * const record = await odinClient.callLegs.get(id);
403
+ * await record.updateAgentCallLegOnOutboundCallAnswered({ ... }).execute();
404
+ *
405
+ * // Dry run (for debugging)
406
+ * const payload = record.updateAgentCallLegOnOutboundCallAnswered({ ... }).dryRun();
407
+ * ```
408
+ */
409
+ updateAgentCallLegOnOutboundCallAnswered(properties: UpdateAgentCallLegOnOutboundCallAnsweredProperties, options?: {
410
+ journeyId?: string;
411
+ stageKey?: string;
412
+ }): ActionBuilder;
413
+ /**
414
+ * UpdateAgentCallLegOnOutboundCallCompleted
415
+ *
416
+ * Updates this CallLeg record with the specified properties.
417
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
418
+ *
419
+ * @param properties - Required properties for this action
420
+ * @param options - Optional settings
421
+ * @param options.journeyId - Associate with a journey
422
+ * @param options.stageKey - Transition to pipeline stage
423
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
424
+ * @throws Error if called on a new (unsaved) record
425
+ *
426
+ * @example
427
+ * ```typescript
428
+ * const record = await odinClient.callLegs.get(id);
429
+ * await record.updateAgentCallLegOnOutboundCallCompleted({ ... }).execute();
430
+ *
431
+ * // Dry run (for debugging)
432
+ * const payload = record.updateAgentCallLegOnOutboundCallCompleted({ ... }).dryRun();
433
+ * ```
434
+ */
435
+ updateAgentCallLegOnOutboundCallCompleted(properties: UpdateAgentCallLegOnOutboundCallCompletedProperties, options?: {
436
+ journeyId?: string;
437
+ stageKey?: string;
438
+ }): ActionBuilder;
385
439
  /**
386
440
  * UpdateCall
387
441
  *
@@ -483,6 +483,64 @@ class CallLegRecord {
483
483
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
484
484
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
485
485
  }
486
+ /**
487
+ * UpdateAgentCallLegOnOutboundCallAnswered
488
+ *
489
+ * Updates this CallLeg record with the specified properties.
490
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
491
+ *
492
+ * @param properties - Required properties for this action
493
+ * @param options - Optional settings
494
+ * @param options.journeyId - Associate with a journey
495
+ * @param options.stageKey - Transition to pipeline stage
496
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
497
+ * @throws Error if called on a new (unsaved) record
498
+ *
499
+ * @example
500
+ * ```typescript
501
+ * const record = await odinClient.callLegs.get(id);
502
+ * await record.updateAgentCallLegOnOutboundCallAnswered({ ... }).execute();
503
+ *
504
+ * // Dry run (for debugging)
505
+ * const payload = record.updateAgentCallLegOnOutboundCallAnswered({ ... }).dryRun();
506
+ * ```
507
+ */
508
+ updateAgentCallLegOnOutboundCallAnswered(properties, options) {
509
+ var _a;
510
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
511
+ throw new Error('updateAgentCallLegOnOutboundCallAnswered requires an existing record. Use accessor.get() first.');
512
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
513
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
514
+ }
515
+ /**
516
+ * UpdateAgentCallLegOnOutboundCallCompleted
517
+ *
518
+ * Updates this CallLeg record with the specified properties.
519
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
520
+ *
521
+ * @param properties - Required properties for this action
522
+ * @param options - Optional settings
523
+ * @param options.journeyId - Associate with a journey
524
+ * @param options.stageKey - Transition to pipeline stage
525
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
526
+ * @throws Error if called on a new (unsaved) record
527
+ *
528
+ * @example
529
+ * ```typescript
530
+ * const record = await odinClient.callLegs.get(id);
531
+ * await record.updateAgentCallLegOnOutboundCallCompleted({ ... }).execute();
532
+ *
533
+ * // Dry run (for debugging)
534
+ * const payload = record.updateAgentCallLegOnOutboundCallCompleted({ ... }).dryRun();
535
+ * ```
536
+ */
537
+ updateAgentCallLegOnOutboundCallCompleted(properties, options) {
538
+ var _a;
539
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
540
+ throw new Error('updateAgentCallLegOnOutboundCallCompleted requires an existing record. Use accessor.get() first.');
541
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
542
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
543
+ }
486
544
  /**
487
545
  * UpdateCall
488
546
  *
@@ -35,6 +35,8 @@ import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/Update
35
35
  import { UpdateCallOnInboundCallInitiatedProperties } from '../actions-v2/UpdateCallOnInboundCallInitiatedDto';
36
36
  import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCallOnInboundCallRingingDto';
37
37
  import { UpdateCallOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCallOnNumberCallStatusCompletedDto';
38
+ import { UpdateCallOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnOutboundCallAnsweredDto';
39
+ import { UpdateCallOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCallOnOutboundCallCompletedDto';
38
40
  import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
39
41
  import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
40
42
  import { LeadRecord } from './LeadRecord';
@@ -578,6 +580,59 @@ export declare class CallRecord<TProps = CallProperties> {
578
580
  journeyId?: string;
579
581
  stageKey?: string;
580
582
  }): ActionBuilder;
583
+ /**
584
+ * UpdateCallOnOutboundCallAnswered
585
+ *
586
+ * Updates this Call record.
587
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
588
+ *
589
+ * @param propertiesOrOptions - Properties to update, or options object
590
+ * @param options - Optional settings (journeyId, stageKey)
591
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
592
+ * @throws Error if called on a new (unsaved) record
593
+ *
594
+ * @example
595
+ * ```typescript
596
+ * const record = await odinClient.calls.get(id);
597
+ * await record.updateCallOnOutboundCallAnswered({ ... }).execute();
598
+ *
599
+ * // Dry run (for debugging)
600
+ * const payload = record.updateCallOnOutboundCallAnswered({ ... }).dryRun();
601
+ * ```
602
+ */
603
+ updateCallOnOutboundCallAnswered(propertiesOrOptions?: UpdateCallOnOutboundCallAnsweredProperties | {
604
+ journeyId?: string;
605
+ stageKey?: string;
606
+ }, options?: {
607
+ journeyId?: string;
608
+ stageKey?: string;
609
+ }): ActionBuilder;
610
+ /**
611
+ * UpdateCallOnOutboundCallCompleted
612
+ *
613
+ * Updates this Call record with the specified properties.
614
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
615
+ *
616
+ * @param properties - Required properties for this action
617
+ * @param options - Optional settings
618
+ * @param options.journeyId - Associate with a journey
619
+ * @param options.stageKey - Transition to pipeline stage
620
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
621
+ * @throws Error if called on a new (unsaved) record
622
+ *
623
+ * @example
624
+ * ```typescript
625
+ * const record = await odinClient.calls.get(id);
626
+ * await record.updateCallOnOutboundCallCompleted({ ... }).execute();
627
+ *
628
+ * // Dry run (for debugging)
629
+ * const payload = record.updateCallOnOutboundCallCompleted({ ... }).dryRun();
630
+ * ```
631
+ */
632
+ updateCallOnOutboundCallCompleted(properties: UpdateCallOnOutboundCallCompletedProperties, options?: {
633
+ journeyId?: string;
634
+ stageKey?: string;
635
+ }): ActionBuilder;
581
636
  /**
582
637
  * UpdateCallOnTaskRouterAssign
583
638
  *
@@ -754,6 +754,72 @@ class CallRecord {
754
754
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnNumberCallStatusCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
755
755
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
756
756
  }
757
+ /**
758
+ * UpdateCallOnOutboundCallAnswered
759
+ *
760
+ * Updates this Call record.
761
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
762
+ *
763
+ * @param propertiesOrOptions - Properties to update, or options object
764
+ * @param options - Optional settings (journeyId, stageKey)
765
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
766
+ * @throws Error if called on a new (unsaved) record
767
+ *
768
+ * @example
769
+ * ```typescript
770
+ * const record = await odinClient.calls.get(id);
771
+ * await record.updateCallOnOutboundCallAnswered({ ... }).execute();
772
+ *
773
+ * // Dry run (for debugging)
774
+ * const payload = record.updateCallOnOutboundCallAnswered({ ... }).dryRun();
775
+ * ```
776
+ */
777
+ updateCallOnOutboundCallAnswered(propertiesOrOptions, options) {
778
+ var _a;
779
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
780
+ throw new Error('updateCallOnOutboundCallAnswered requires an existing record. Use accessor.get() first.');
781
+ let properties = {};
782
+ let opts = options;
783
+ if (propertiesOrOptions) {
784
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
785
+ opts = propertiesOrOptions;
786
+ }
787
+ else {
788
+ properties = propertiesOrOptions;
789
+ }
790
+ }
791
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnOutboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
792
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
793
+ }
794
+ /**
795
+ * UpdateCallOnOutboundCallCompleted
796
+ *
797
+ * Updates this Call record with the specified properties.
798
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
799
+ *
800
+ * @param properties - Required properties for this action
801
+ * @param options - Optional settings
802
+ * @param options.journeyId - Associate with a journey
803
+ * @param options.stageKey - Transition to pipeline stage
804
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
805
+ * @throws Error if called on a new (unsaved) record
806
+ *
807
+ * @example
808
+ * ```typescript
809
+ * const record = await odinClient.calls.get(id);
810
+ * await record.updateCallOnOutboundCallCompleted({ ... }).execute();
811
+ *
812
+ * // Dry run (for debugging)
813
+ * const payload = record.updateCallOnOutboundCallCompleted({ ... }).dryRun();
814
+ * ```
815
+ */
816
+ updateCallOnOutboundCallCompleted(properties, options) {
817
+ var _a;
818
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
819
+ throw new Error('updateCallOnOutboundCallCompleted requires an existing record. Use accessor.get() first.');
820
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
821
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
822
+ }
757
823
  /**
758
824
  * UpdateCallOnTaskRouterAssign
759
825
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.119",
3
+ "version": "2.0.121",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",