@d19n/youfibre-odin-sdk 2.0.127 → 2.0.128

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 **658** actions.
356
+ This SDK includes **661** actions.
357
357
 
358
358
  ### Action Types
359
359
 
@@ -1152,12 +1152,14 @@ This SDK includes **658** actions.
1152
1152
  | `UpdateAgentCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinging |
1153
1153
  | `UpdateAgentCallLegOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallAnswered |
1154
1154
  | `UpdateAgentCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted |
1155
+ | `UpdateAgentCallLegOnOutboundCallFailed` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed |
1155
1156
  | `UpdateAgentCallLegOnOutboundCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallNoAnswer |
1156
1157
  | `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
1157
1158
  | `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
1158
1159
  | `UpdateCustomerCallLegOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted |
1159
1160
  | `UpdateCustomerCallLegOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallAnswered |
1160
1161
  | `UpdateCustomerCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallCompleted |
1162
+ | `UpdateCustomerCallLegOnOutboundCallFailed` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed |
1161
1163
  | `UpdateCustomerCallLegOnOutboundCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallNoAnswer |
1162
1164
  | `UpdateCustomerCallLegOnOutboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallRinging |
1163
1165
 
@@ -1228,6 +1230,7 @@ This SDK includes **658** actions.
1228
1230
  | `UpdateCallOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted |
1229
1231
  | `UpdateCallOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered |
1230
1232
  | `UpdateCallOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted |
1233
+ | `UpdateCallOnOutboundCallFailed` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed |
1231
1234
  | `UpdateCallOnOutboundCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallNoAnswer |
1232
1235
  | `UpdateCallOnTaskRouterAssign` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskRouterAssign |
1233
1236
  | `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
@@ -0,0 +1,88 @@
1
+ /**
2
+ * UpdateAgentCallLegOnOutboundCallFailed Action DTO
3
+ *
4
+ * Update agent call leg on outbound call failed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnOutboundCallFailed
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed
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 UpdateAgentCallLegOnOutboundCallFailed updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed
18
+ */
19
+ export interface UpdateAgentCallLegOnOutboundCallFailedMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnOutboundCallFailedDto, UpdateAgentCallLegOnOutboundCallFailedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnOutboundCallFailed action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 1
26
+ */
27
+ export interface UpdateAgentCallLegOnOutboundCallFailedProperties {
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
+ * UpdateAgentCallLegOnOutboundCallFailed
54
+ *
55
+ * Update agent call leg on outbound call failed
56
+ *
57
+ * @actionType UPDATE - Updates an existing CallLeg record
58
+ * @module NotificationModule
59
+ * @entity CallLeg
60
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed
61
+ * @permission schema.action.updateagentcalllegonoutboundcallfailed.trigger
62
+ * @benchmark This action is tracked for performance benchmarks
63
+ */
64
+ export declare class UpdateAgentCallLegOnOutboundCallFailedDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallFailedProperties> {
65
+ /** Used by SDK generators to identify action type */
66
+ static readonly ACTION_TYPE = "UPDATE";
67
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnOutboundCallFailed";
68
+ static readonly MODULE_NAME = "NotificationModule";
69
+ static readonly ENTITIES: string[];
70
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed";
71
+ static readonly PERMISSION = "schema.action.updateagentcalllegonoutboundcallfailed.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 = "50ce49f0-76da-4a67-a743-e88145a52ce5";
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: UpdateAgentCallLegOnOutboundCallFailedProperties, options?: {
85
+ journeyId?: string;
86
+ stageKey?: string;
87
+ });
88
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnOutboundCallFailed Action DTO
4
+ *
5
+ * Update agent call leg on outbound call failed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnOutboundCallFailed
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnOutboundCallFailedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnOutboundCallFailed
19
+ *
20
+ * Update agent call leg on outbound call failed
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed
26
+ * @permission schema.action.updateagentcalllegonoutboundcallfailed.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnOutboundCallFailedDto 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 = 'UpdateAgentCallLegOnOutboundCallFailed';
40
+ this.schemaActionId = '50ce49f0-76da-4a67-a743-e88145a52ce5';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnOutboundCallFailedDto = UpdateAgentCallLegOnOutboundCallFailedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnOutboundCallFailedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnOutboundCallFailedDto.ACTION_KEY = 'UpdateAgentCallLegOnOutboundCallFailed';
48
+ UpdateAgentCallLegOnOutboundCallFailedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnOutboundCallFailedDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnOutboundCallFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed';
51
+ UpdateAgentCallLegOnOutboundCallFailedDto.PERMISSION = 'schema.action.updateagentcalllegonoutboundcallfailed.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnOutboundCallFailedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnOutboundCallFailedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnOutboundCallFailedDto.STEP_SCHEMA_ACTION_ID = '50ce49f0-76da-4a67-a743-e88145a52ce5';
56
+ UpdateAgentCallLegOnOutboundCallFailedDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,97 @@
1
+ /**
2
+ * UpdateCallOnOutboundCallFailed Action DTO
3
+ *
4
+ * Update call on outbound call failed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallOnOutboundCallFailed
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed
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 UpdateCallOnOutboundCallFailed updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed
18
+ */
19
+ export interface UpdateCallOnOutboundCallFailedMessage extends OdinRecordUpdatedEvent<UpdateCallOnOutboundCallFailedDto, UpdateCallOnOutboundCallFailedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallOnOutboundCallFailed action
23
+ *
24
+ * @property Required fields: 4
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCallOnOutboundCallFailedProperties {
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
+ /**
62
+ * UpdateCallOnOutboundCallFailed
63
+ *
64
+ * Update call on outbound call failed
65
+ *
66
+ * @actionType UPDATE - Updates an existing Call record
67
+ * @module NotificationModule
68
+ * @entity Call
69
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed
70
+ * @permission schema.action.updatecallonoutboundcallfailed.trigger
71
+ * @benchmark This action is tracked for performance benchmarks
72
+ */
73
+ export declare class UpdateCallOnOutboundCallFailedDto extends OdinRecordUpdateDto<UpdateCallOnOutboundCallFailedProperties> {
74
+ /** Used by SDK generators to identify action type */
75
+ static readonly ACTION_TYPE = "UPDATE";
76
+ static readonly ACTION_KEY = "UpdateCallOnOutboundCallFailed";
77
+ static readonly MODULE_NAME = "NotificationModule";
78
+ static readonly ENTITIES: string[];
79
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed";
80
+ static readonly PERMISSION = "schema.action.updatecallonoutboundcallfailed.trigger";
81
+ /** Step metadata - entity this action targets */
82
+ static readonly STEP_ENTITY = "NotificationModule:Call";
83
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
84
+ static readonly STEP_SCHEMA_ACTION_ID = "3f82f95e-7a83-4312-83c9-7590c768610b";
85
+ static readonly AUTO_LINK_PARENT = false;
86
+ readonly actionName: string;
87
+ readonly schemaActionId: string;
88
+ readonly entity: string;
89
+ constructor(record: OdinRecord<any> | {
90
+ id: string;
91
+ entity: string;
92
+ type?: string;
93
+ }, properties: UpdateCallOnOutboundCallFailedProperties, options?: {
94
+ journeyId?: string;
95
+ stageKey?: string;
96
+ });
97
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallOnOutboundCallFailed Action DTO
4
+ *
5
+ * Update call on outbound call failed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey UpdateCallOnOutboundCallFailed
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallOnOutboundCallFailedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallOnOutboundCallFailed
19
+ *
20
+ * Update call on outbound call failed
21
+ *
22
+ * @actionType UPDATE - Updates an existing Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed
26
+ * @permission schema.action.updatecallonoutboundcallfailed.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallOnOutboundCallFailedDto 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 = 'UpdateCallOnOutboundCallFailed';
40
+ this.schemaActionId = '3f82f95e-7a83-4312-83c9-7590c768610b';
41
+ this.entity = 'NotificationModule:Call';
42
+ }
43
+ }
44
+ exports.UpdateCallOnOutboundCallFailedDto = UpdateCallOnOutboundCallFailedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCallOnOutboundCallFailedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCallOnOutboundCallFailedDto.ACTION_KEY = 'UpdateCallOnOutboundCallFailed';
48
+ UpdateCallOnOutboundCallFailedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCallOnOutboundCallFailedDto.ENTITIES = ['Call'];
50
+ UpdateCallOnOutboundCallFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallFailed';
51
+ UpdateCallOnOutboundCallFailedDto.PERMISSION = 'schema.action.updatecallonoutboundcallfailed.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCallOnOutboundCallFailedDto.STEP_ENTITY = 'NotificationModule:Call';
54
+ UpdateCallOnOutboundCallFailedDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
55
+ UpdateCallOnOutboundCallFailedDto.STEP_SCHEMA_ACTION_ID = '3f82f95e-7a83-4312-83c9-7590c768610b';
56
+ UpdateCallOnOutboundCallFailedDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,88 @@
1
+ /**
2
+ * UpdateCustomerCallLegOnOutboundCallFailed Action DTO
3
+ *
4
+ * Update customer call leg on outbound call failed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateCustomerCallLegOnOutboundCallFailed
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed
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 UpdateCustomerCallLegOnOutboundCallFailed updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed
18
+ */
19
+ export interface UpdateCustomerCallLegOnOutboundCallFailedMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnOutboundCallFailedDto, UpdateCustomerCallLegOnOutboundCallFailedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCustomerCallLegOnOutboundCallFailed action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 1
26
+ */
27
+ export interface UpdateCustomerCallLegOnOutboundCallFailedProperties {
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
+ * UpdateCustomerCallLegOnOutboundCallFailed
54
+ *
55
+ * Update customer call leg on outbound call failed
56
+ *
57
+ * @actionType UPDATE - Updates an existing CallLeg record
58
+ * @module NotificationModule
59
+ * @entity CallLeg
60
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed
61
+ * @permission schema.action.updatecustomercalllegonoutboundcallfailed.trigger
62
+ * @benchmark This action is tracked for performance benchmarks
63
+ */
64
+ export declare class UpdateCustomerCallLegOnOutboundCallFailedDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnOutboundCallFailedProperties> {
65
+ /** Used by SDK generators to identify action type */
66
+ static readonly ACTION_TYPE = "UPDATE";
67
+ static readonly ACTION_KEY = "UpdateCustomerCallLegOnOutboundCallFailed";
68
+ static readonly MODULE_NAME = "NotificationModule";
69
+ static readonly ENTITIES: string[];
70
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed";
71
+ static readonly PERMISSION = "schema.action.updatecustomercalllegonoutboundcallfailed.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 = "a6942c53-b14b-4862-b52c-c7a80a5e59b8";
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: UpdateCustomerCallLegOnOutboundCallFailedProperties, options?: {
85
+ journeyId?: string;
86
+ stageKey?: string;
87
+ });
88
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCustomerCallLegOnOutboundCallFailed Action DTO
4
+ *
5
+ * Update customer call leg on outbound call failed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateCustomerCallLegOnOutboundCallFailed
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCustomerCallLegOnOutboundCallFailedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCustomerCallLegOnOutboundCallFailed
19
+ *
20
+ * Update customer call leg on outbound call failed
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed
26
+ * @permission schema.action.updatecustomercalllegonoutboundcallfailed.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCustomerCallLegOnOutboundCallFailedDto 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 = 'UpdateCustomerCallLegOnOutboundCallFailed';
40
+ this.schemaActionId = 'a6942c53-b14b-4862-b52c-c7a80a5e59b8';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateCustomerCallLegOnOutboundCallFailedDto = UpdateCustomerCallLegOnOutboundCallFailedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCustomerCallLegOnOutboundCallFailedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCustomerCallLegOnOutboundCallFailedDto.ACTION_KEY = 'UpdateCustomerCallLegOnOutboundCallFailed';
48
+ UpdateCustomerCallLegOnOutboundCallFailedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCustomerCallLegOnOutboundCallFailedDto.ENTITIES = ['CallLeg'];
50
+ UpdateCustomerCallLegOnOutboundCallFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallFailed';
51
+ UpdateCustomerCallLegOnOutboundCallFailedDto.PERMISSION = 'schema.action.updatecustomercalllegonoutboundcallfailed.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCustomerCallLegOnOutboundCallFailedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateCustomerCallLegOnOutboundCallFailedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateCustomerCallLegOnOutboundCallFailedDto.STEP_SCHEMA_ACTION_ID = 'a6942c53-b14b-4862-b52c-c7a80a5e59b8';
56
+ UpdateCustomerCallLegOnOutboundCallFailedDto.AUTO_LINK_PARENT = false;
@@ -31,12 +31,14 @@ import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-
31
31
  import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
32
32
  import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto';
33
33
  import { UpdateAgentCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto';
34
+ import { UpdateAgentCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto';
34
35
  import { UpdateAgentCallLegOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallNoAnswerDto';
35
36
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
36
37
  import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
37
38
  import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
38
39
  import { UpdateCustomerCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallAnsweredDto';
39
40
  import { UpdateCustomerCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallCompletedDto';
41
+ import { UpdateCustomerCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallFailedDto';
40
42
  import { UpdateCustomerCallLegOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallNoAnswerDto';
41
43
  import { UpdateCustomerCallLegOnOutboundCallRingingProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallRingingDto';
42
44
  import { CallRecord } from './CallRecord';
@@ -438,6 +440,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
438
440
  journeyId?: string;
439
441
  stageKey?: string;
440
442
  }): ActionBuilder;
443
+ /**
444
+ * UpdateAgentCallLegOnOutboundCallFailed
445
+ *
446
+ * Updates this CallLeg record with the specified properties.
447
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
448
+ *
449
+ * @param properties - Required properties for this action
450
+ * @param options - Optional settings
451
+ * @param options.journeyId - Associate with a journey
452
+ * @param options.stageKey - Transition to pipeline stage
453
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
454
+ * @throws Error if called on a new (unsaved) record
455
+ *
456
+ * @example
457
+ * ```typescript
458
+ * const record = await odinClient.callLegs.get(id);
459
+ * await record.updateAgentCallLegOnOutboundCallFailed({ ... }).execute();
460
+ *
461
+ * // Dry run (for debugging)
462
+ * const payload = record.updateAgentCallLegOnOutboundCallFailed({ ... }).dryRun();
463
+ * ```
464
+ */
465
+ updateAgentCallLegOnOutboundCallFailed(properties: UpdateAgentCallLegOnOutboundCallFailedProperties, options?: {
466
+ journeyId?: string;
467
+ stageKey?: string;
468
+ }): ActionBuilder;
441
469
  /**
442
470
  * UpdateAgentCallLegOnOutboundCallNoAnswer
443
471
  *
@@ -596,6 +624,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
596
624
  journeyId?: string;
597
625
  stageKey?: string;
598
626
  }): ActionBuilder;
627
+ /**
628
+ * UpdateCustomerCallLegOnOutboundCallFailed
629
+ *
630
+ * Updates this CallLeg record with the specified properties.
631
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
632
+ *
633
+ * @param properties - Required properties for this action
634
+ * @param options - Optional settings
635
+ * @param options.journeyId - Associate with a journey
636
+ * @param options.stageKey - Transition to pipeline stage
637
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
638
+ * @throws Error if called on a new (unsaved) record
639
+ *
640
+ * @example
641
+ * ```typescript
642
+ * const record = await odinClient.callLegs.get(id);
643
+ * await record.updateCustomerCallLegOnOutboundCallFailed({ ... }).execute();
644
+ *
645
+ * // Dry run (for debugging)
646
+ * const payload = record.updateCustomerCallLegOnOutboundCallFailed({ ... }).dryRun();
647
+ * ```
648
+ */
649
+ updateCustomerCallLegOnOutboundCallFailed(properties: UpdateCustomerCallLegOnOutboundCallFailedProperties, options?: {
650
+ journeyId?: string;
651
+ stageKey?: string;
652
+ }): ActionBuilder;
599
653
  /**
600
654
  * UpdateCustomerCallLegOnOutboundCallNoAnswer
601
655
  *
@@ -541,6 +541,35 @@ class CallLegRecord {
541
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
542
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
543
543
  }
544
+ /**
545
+ * UpdateAgentCallLegOnOutboundCallFailed
546
+ *
547
+ * Updates this CallLeg record with the specified properties.
548
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
549
+ *
550
+ * @param properties - Required properties for this action
551
+ * @param options - Optional settings
552
+ * @param options.journeyId - Associate with a journey
553
+ * @param options.stageKey - Transition to pipeline stage
554
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
555
+ * @throws Error if called on a new (unsaved) record
556
+ *
557
+ * @example
558
+ * ```typescript
559
+ * const record = await odinClient.callLegs.get(id);
560
+ * await record.updateAgentCallLegOnOutboundCallFailed({ ... }).execute();
561
+ *
562
+ * // Dry run (for debugging)
563
+ * const payload = record.updateAgentCallLegOnOutboundCallFailed({ ... }).dryRun();
564
+ * ```
565
+ */
566
+ updateAgentCallLegOnOutboundCallFailed(properties, options) {
567
+ var _a;
568
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
569
+ throw new Error('updateAgentCallLegOnOutboundCallFailed requires an existing record. Use accessor.get() first.');
570
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
571
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
572
+ }
544
573
  /**
545
574
  * UpdateAgentCallLegOnOutboundCallNoAnswer
546
575
  *
@@ -731,6 +760,35 @@ class CallLegRecord {
731
760
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
732
761
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
733
762
  }
763
+ /**
764
+ * UpdateCustomerCallLegOnOutboundCallFailed
765
+ *
766
+ * Updates this CallLeg record with the specified properties.
767
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
768
+ *
769
+ * @param properties - Required properties for this action
770
+ * @param options - Optional settings
771
+ * @param options.journeyId - Associate with a journey
772
+ * @param options.stageKey - Transition to pipeline stage
773
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
774
+ * @throws Error if called on a new (unsaved) record
775
+ *
776
+ * @example
777
+ * ```typescript
778
+ * const record = await odinClient.callLegs.get(id);
779
+ * await record.updateCustomerCallLegOnOutboundCallFailed({ ... }).execute();
780
+ *
781
+ * // Dry run (for debugging)
782
+ * const payload = record.updateCustomerCallLegOnOutboundCallFailed({ ... }).dryRun();
783
+ * ```
784
+ */
785
+ updateCustomerCallLegOnOutboundCallFailed(properties, options) {
786
+ var _a;
787
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
788
+ throw new Error('updateCustomerCallLegOnOutboundCallFailed requires an existing record. Use accessor.get() first.');
789
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnOutboundCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
790
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
791
+ }
734
792
  /**
735
793
  * UpdateCustomerCallLegOnOutboundCallNoAnswer
736
794
  *
@@ -38,6 +38,7 @@ import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCa
38
38
  import { UpdateCallOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCallOnNumberCallStatusCompletedDto';
39
39
  import { UpdateCallOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnOutboundCallAnsweredDto';
40
40
  import { UpdateCallOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCallOnOutboundCallCompletedDto';
41
+ import { UpdateCallOnOutboundCallFailedProperties } from '../actions-v2/UpdateCallOnOutboundCallFailedDto';
41
42
  import { UpdateCallOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateCallOnOutboundCallNoAnswerDto';
42
43
  import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
43
44
  import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
@@ -661,6 +662,32 @@ export declare class CallRecord<TProps = CallProperties> {
661
662
  journeyId?: string;
662
663
  stageKey?: string;
663
664
  }): ActionBuilder;
665
+ /**
666
+ * UpdateCallOnOutboundCallFailed
667
+ *
668
+ * Updates this Call record with the specified properties.
669
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
670
+ *
671
+ * @param properties - Required properties for this action
672
+ * @param options - Optional settings
673
+ * @param options.journeyId - Associate with a journey
674
+ * @param options.stageKey - Transition to pipeline stage
675
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
676
+ * @throws Error if called on a new (unsaved) record
677
+ *
678
+ * @example
679
+ * ```typescript
680
+ * const record = await odinClient.calls.get(id);
681
+ * await record.updateCallOnOutboundCallFailed({ ... }).execute();
682
+ *
683
+ * // Dry run (for debugging)
684
+ * const payload = record.updateCallOnOutboundCallFailed({ ... }).dryRun();
685
+ * ```
686
+ */
687
+ updateCallOnOutboundCallFailed(properties: UpdateCallOnOutboundCallFailedProperties, options?: {
688
+ journeyId?: string;
689
+ stageKey?: string;
690
+ }): ActionBuilder;
664
691
  /**
665
692
  * UpdateCallOnOutboundCallNoAnswer
666
693
  *
@@ -849,6 +849,35 @@ class CallRecord {
849
849
  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);
850
850
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
851
851
  }
852
+ /**
853
+ * UpdateCallOnOutboundCallFailed
854
+ *
855
+ * Updates this Call record with the specified properties.
856
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
857
+ *
858
+ * @param properties - Required properties for this action
859
+ * @param options - Optional settings
860
+ * @param options.journeyId - Associate with a journey
861
+ * @param options.stageKey - Transition to pipeline stage
862
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
863
+ * @throws Error if called on a new (unsaved) record
864
+ *
865
+ * @example
866
+ * ```typescript
867
+ * const record = await odinClient.calls.get(id);
868
+ * await record.updateCallOnOutboundCallFailed({ ... }).execute();
869
+ *
870
+ * // Dry run (for debugging)
871
+ * const payload = record.updateCallOnOutboundCallFailed({ ... }).dryRun();
872
+ * ```
873
+ */
874
+ updateCallOnOutboundCallFailed(properties, options) {
875
+ var _a;
876
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
877
+ throw new Error('updateCallOnOutboundCallFailed requires an existing record. Use accessor.get() first.');
878
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnOutboundCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
879
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
880
+ }
852
881
  /**
853
882
  * UpdateCallOnOutboundCallNoAnswer
854
883
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.127",
3
+ "version": "2.0.128",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",