@d19n/youfibre-odin-sdk 2.0.103-beta.2 → 2.0.103-beta.3

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
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
352
352
 
353
353
  ## Actions
354
354
 
355
- This SDK includes **625** actions.
355
+ This SDK includes **629** actions.
356
356
 
357
357
  ### Action Types
358
358
 
@@ -1113,7 +1113,11 @@ This SDK includes **625** actions.
1113
1113
  |--------|------|-------|
1114
1114
  | `CreateAgentCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateAgentCallLeg |
1115
1115
  | `CreateCustomerCallLeg` | CREATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Create.CreateCustomerCallLeg |
1116
+ | `UpdateAgentCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered |
1117
+ | `UpdateAgentCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled |
1118
+ | `UpdateAgentCallLegOnIncomingCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted |
1116
1119
  | `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
1120
+ | `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
1117
1121
 
1118
1122
  #### Appointment
1119
1123
 
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateAgentCallLegOnIncomingCallAnswered Action DTO
3
+ *
4
+ * Update agent call leg on incoming call answered
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnIncomingCallAnswered
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
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 UpdateAgentCallLegOnIncomingCallAnswered updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
18
+ */
19
+ export interface UpdateAgentCallLegOnIncomingCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallAnsweredDto, UpdateAgentCallLegOnIncomingCallAnsweredProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnIncomingCallAnswered action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateAgentCallLegOnIncomingCallAnsweredProperties {
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
+ * UpdateAgentCallLegOnIncomingCallAnswered
47
+ *
48
+ * Update agent call leg on incoming 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.UpdateAgentCallLegOnIncomingCallAnswered
54
+ * @permission schema.action.updateagentcalllegonincomingcallanswered.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateAgentCallLegOnIncomingCallAnsweredDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallAnsweredProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallAnswered";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered";
64
+ static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallanswered.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 = "7b941398-8279-400c-b752-b4c72ed46007";
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: UpdateAgentCallLegOnIncomingCallAnsweredProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnIncomingCallAnswered Action DTO
4
+ *
5
+ * Update agent call leg on incoming call answered
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnIncomingCallAnswered
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnIncomingCallAnsweredDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnIncomingCallAnswered
19
+ *
20
+ * Update agent call leg on incoming 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.UpdateAgentCallLegOnIncomingCallAnswered
26
+ * @permission schema.action.updateagentcalllegonincomingcallanswered.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnIncomingCallAnsweredDto 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 = 'UpdateAgentCallLegOnIncomingCallAnswered';
40
+ this.schemaActionId = '7b941398-8279-400c-b752-b4c72ed46007';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnIncomingCallAnsweredDto = UpdateAgentCallLegOnIncomingCallAnsweredDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallAnswered';
48
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallAnswered';
51
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallanswered.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ACTION_ID = '7b941398-8279-400c-b752-b4c72ed46007';
56
+ UpdateAgentCallLegOnIncomingCallAnsweredDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateAgentCallLegOnIncomingCallCanceled Action DTO
3
+ *
4
+ * Update agent call leg on incoming call canceled
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnIncomingCallCanceled
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
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 UpdateAgentCallLegOnIncomingCallCanceled updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
18
+ */
19
+ export interface UpdateAgentCallLegOnIncomingCallCanceledMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallCanceledDto, UpdateAgentCallLegOnIncomingCallCanceledProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnIncomingCallCanceled action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateAgentCallLegOnIncomingCallCanceledProperties {
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
+ /**
46
+ * UpdateAgentCallLegOnIncomingCallCanceled
47
+ *
48
+ * Update agent call leg on incoming call canceled
49
+ *
50
+ * @actionType UPDATE - Updates an existing CallLeg record
51
+ * @module NotificationModule
52
+ * @entity CallLeg
53
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
54
+ * @permission schema.action.updateagentcalllegonincomingcallcanceled.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateAgentCallLegOnIncomingCallCanceledDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallCanceledProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallCanceled";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled";
64
+ static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallcanceled.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 = "2c07942e-ade3-4060-9eb9-33832f38b14c";
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: UpdateAgentCallLegOnIncomingCallCanceledProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnIncomingCallCanceled Action DTO
4
+ *
5
+ * Update agent call leg on incoming call canceled
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnIncomingCallCanceled
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnIncomingCallCanceledDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnIncomingCallCanceled
19
+ *
20
+ * Update agent call leg on incoming call canceled
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled
26
+ * @permission schema.action.updateagentcalllegonincomingcallcanceled.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnIncomingCallCanceledDto 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 = 'UpdateAgentCallLegOnIncomingCallCanceled';
40
+ this.schemaActionId = '2c07942e-ade3-4060-9eb9-33832f38b14c';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnIncomingCallCanceledDto = UpdateAgentCallLegOnIncomingCallCanceledDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnIncomingCallCanceledDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnIncomingCallCanceledDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallCanceled';
48
+ UpdateAgentCallLegOnIncomingCallCanceledDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnIncomingCallCanceledDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnIncomingCallCanceledDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCanceled';
51
+ UpdateAgentCallLegOnIncomingCallCanceledDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallcanceled.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnIncomingCallCanceledDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ACTION_ID = '2c07942e-ade3-4060-9eb9-33832f38b14c';
56
+ UpdateAgentCallLegOnIncomingCallCanceledDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,89 @@
1
+ /**
2
+ * UpdateAgentCallLegOnIncomingCallCompleted Action DTO
3
+ *
4
+ * Update agent call leg on incoming call completed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnIncomingCallCompleted
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
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 UpdateAgentCallLegOnIncomingCallCompleted updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
18
+ */
19
+ export interface UpdateAgentCallLegOnIncomingCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnIncomingCallCompletedDto, UpdateAgentCallLegOnIncomingCallCompletedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnIncomingCallCompleted action
23
+ *
24
+ * @property Required fields: 3
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateAgentCallLegOnIncomingCallCompletedProperties {
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
+ * @required
50
+ */
51
+ Duration: number;
52
+ }
53
+ /**
54
+ * UpdateAgentCallLegOnIncomingCallCompleted
55
+ *
56
+ * Update agent call leg on incoming call completed
57
+ *
58
+ * @actionType UPDATE - Updates an existing CallLeg record
59
+ * @module NotificationModule
60
+ * @entity CallLeg
61
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
62
+ * @permission schema.action.updateagentcalllegonincomingcallcompleted.trigger
63
+ * @benchmark This action is tracked for performance benchmarks
64
+ */
65
+ export declare class UpdateAgentCallLegOnIncomingCallCompletedDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnIncomingCallCompletedProperties> {
66
+ /** Used by SDK generators to identify action type */
67
+ static readonly ACTION_TYPE = "UPDATE";
68
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnIncomingCallCompleted";
69
+ static readonly MODULE_NAME = "NotificationModule";
70
+ static readonly ENTITIES: string[];
71
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted";
72
+ static readonly PERMISSION = "schema.action.updateagentcalllegonincomingcallcompleted.trigger";
73
+ /** Step metadata - entity this action targets */
74
+ static readonly STEP_ENTITY = "NotificationModule:CallLeg";
75
+ static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
76
+ static readonly STEP_SCHEMA_ACTION_ID = "6d3ee2f2-a677-43c8-8cdd-14f6c5a376cf";
77
+ static readonly AUTO_LINK_PARENT = false;
78
+ readonly actionName: string;
79
+ readonly schemaActionId: string;
80
+ readonly entity: string;
81
+ constructor(record: OdinRecord<any> | {
82
+ id: string;
83
+ entity: string;
84
+ type?: string;
85
+ }, properties: UpdateAgentCallLegOnIncomingCallCompletedProperties, options?: {
86
+ journeyId?: string;
87
+ stageKey?: string;
88
+ });
89
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnIncomingCallCompleted Action DTO
4
+ *
5
+ * Update agent call leg on incoming call completed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnIncomingCallCompleted
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnIncomingCallCompletedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnIncomingCallCompleted
19
+ *
20
+ * Update agent call leg on incoming 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.UpdateAgentCallLegOnIncomingCallCompleted
26
+ * @permission schema.action.updateagentcalllegonincomingcallcompleted.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnIncomingCallCompletedDto 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 = 'UpdateAgentCallLegOnIncomingCallCompleted';
40
+ this.schemaActionId = '6d3ee2f2-a677-43c8-8cdd-14f6c5a376cf';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnIncomingCallCompletedDto = UpdateAgentCallLegOnIncomingCallCompletedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnIncomingCallCompletedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnIncomingCallCompletedDto.ACTION_KEY = 'UpdateAgentCallLegOnIncomingCallCompleted';
48
+ UpdateAgentCallLegOnIncomingCallCompletedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnIncomingCallCompletedDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnIncomingCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallCompleted';
51
+ UpdateAgentCallLegOnIncomingCallCompletedDto.PERMISSION = 'schema.action.updateagentcalllegonincomingcallcompleted.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnIncomingCallCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnIncomingCallCompletedDto.STEP_SCHEMA_ACTION_ID = '6d3ee2f2-a677-43c8-8cdd-14f6c5a376cf';
56
+ UpdateAgentCallLegOnIncomingCallCompletedDto.AUTO_LINK_PARENT = false;
@@ -21,8 +21,8 @@ export interface UpdateCallOnInboundCallCanceledMessage extends OdinRecordUpdate
21
21
  /**
22
22
  * Properties for UpdateCallOnInboundCallCanceled action
23
23
  *
24
- * @property Required fields: 0
25
- * @property Optional fields: 4
24
+ * @property Required fields: 4
25
+ * @property Optional fields: 0
26
26
  */
27
27
  export interface UpdateCallOnInboundCallCanceledProperties {
28
28
  /**
@@ -30,29 +30,33 @@ export interface UpdateCallOnInboundCallCanceledProperties {
30
30
  *
31
31
  * The granular stage of a call, more extensive than CallStatus (Communications - Call)
32
32
  * @type {ENUM}
33
+ * @required
33
34
  */
34
- CallStage?: string | null;
35
+ CallStage: string;
35
36
  /**
36
37
  * call status
37
38
  *
38
39
  * the status of the call (Communications - Call)
39
40
  * @type {TEXT}
41
+ * @required
40
42
  */
41
- CallStatus?: string | null;
43
+ CallStatus: string;
42
44
  /**
43
45
  * EndTime
44
46
  *
45
47
  * Data field for Call records. Used by Communications team.
46
48
  * @type {DATE_TIME}
49
+ * @required
47
50
  */
48
- EndTime?: string | null;
51
+ EndTime: string;
49
52
  /**
50
53
  * CallEndReason
51
54
  *
52
55
  * CallEndReason
53
56
  * @type {ENUM}
57
+ * @required
54
58
  */
55
- CallEndReason?: string | null;
59
+ CallEndReason: string;
56
60
  }
57
61
  /**
58
62
  * UpdateCallOnInboundCallCanceled
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateCustomerCallLegOnIncomingCallAnswered Action DTO
3
+ *
4
+ * Update customer call leg on incoming call answered
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateCustomerCallLegOnIncomingCallAnswered
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
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 UpdateCustomerCallLegOnIncomingCallAnswered updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
18
+ */
19
+ export interface UpdateCustomerCallLegOnIncomingCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallAnsweredDto, UpdateCustomerCallLegOnIncomingCallAnsweredProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCustomerCallLegOnIncomingCallAnswered action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCustomerCallLegOnIncomingCallAnsweredProperties {
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
+ * UpdateCustomerCallLegOnIncomingCallAnswered
47
+ *
48
+ * Update customer call leg on incoming 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.UpdateCustomerCallLegOnIncomingCallAnswered
54
+ * @permission schema.action.updatecustomercalllegonincomingcallanswered.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateCustomerCallLegOnIncomingCallAnsweredDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallAnsweredProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallAnswered";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered";
64
+ static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallanswered.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 = "99b2a2f3-33b6-4772-845d-e5a607f4d83d";
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: UpdateCustomerCallLegOnIncomingCallAnsweredProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCustomerCallLegOnIncomingCallAnswered Action DTO
4
+ *
5
+ * Update customer call leg on incoming call answered
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateCustomerCallLegOnIncomingCallAnswered
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCustomerCallLegOnIncomingCallAnsweredDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCustomerCallLegOnIncomingCallAnswered
19
+ *
20
+ * Update customer call leg on incoming 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.UpdateCustomerCallLegOnIncomingCallAnswered
26
+ * @permission schema.action.updatecustomercalllegonincomingcallanswered.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCustomerCallLegOnIncomingCallAnsweredDto 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 = 'UpdateCustomerCallLegOnIncomingCallAnswered';
40
+ this.schemaActionId = '99b2a2f3-33b6-4772-845d-e5a607f4d83d';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateCustomerCallLegOnIncomingCallAnsweredDto = UpdateCustomerCallLegOnIncomingCallAnsweredDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallAnswered';
48
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.ENTITIES = ['CallLeg'];
50
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered';
51
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallanswered.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.STEP_SCHEMA_ACTION_ID = '99b2a2f3-33b6-4772-845d-e5a607f4d83d';
56
+ UpdateCustomerCallLegOnIncomingCallAnsweredDto.AUTO_LINK_PARENT = false;
@@ -25,7 +25,11 @@ import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-man
25
25
  import { CallLegProperties } from '../entities-v2/CallLeg';
26
26
  import { CreateAgentCallLegProperties } from '../actions-v2/CreateAgentCallLegDto';
27
27
  import { CreateCustomerCallLegProperties } from '../actions-v2/CreateCustomerCallLegDto';
28
+ import { UpdateAgentCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto';
29
+ import { UpdateAgentCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto';
30
+ import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto';
28
31
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
32
+ import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
29
33
  import { CallRecord } from './CallRecord';
30
34
  import { CallEventRecord } from './CallEventRecord';
31
35
  import { CallTransferRecord } from './CallTransferRecord';
@@ -269,6 +273,84 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
269
273
  journeyId?: string;
270
274
  stageKey?: string;
271
275
  }): ActionBuilder;
276
+ /**
277
+ * UpdateAgentCallLegOnIncomingCallAnswered
278
+ *
279
+ * Updates this CallLeg record with the specified properties.
280
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
281
+ *
282
+ * @param properties - Required properties for this action
283
+ * @param options - Optional settings
284
+ * @param options.journeyId - Associate with a journey
285
+ * @param options.stageKey - Transition to pipeline stage
286
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
287
+ * @throws Error if called on a new (unsaved) record
288
+ *
289
+ * @example
290
+ * ```typescript
291
+ * const record = await odinClient.callLegs.get(id);
292
+ * await record.updateAgentCallLegOnIncomingCallAnswered({ ... }).execute();
293
+ *
294
+ * // Dry run (for debugging)
295
+ * const payload = record.updateAgentCallLegOnIncomingCallAnswered({ ... }).dryRun();
296
+ * ```
297
+ */
298
+ updateAgentCallLegOnIncomingCallAnswered(properties: UpdateAgentCallLegOnIncomingCallAnsweredProperties, options?: {
299
+ journeyId?: string;
300
+ stageKey?: string;
301
+ }): ActionBuilder;
302
+ /**
303
+ * UpdateAgentCallLegOnIncomingCallCanceled
304
+ *
305
+ * Updates this CallLeg record with the specified properties.
306
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
307
+ *
308
+ * @param properties - Required properties for this action
309
+ * @param options - Optional settings
310
+ * @param options.journeyId - Associate with a journey
311
+ * @param options.stageKey - Transition to pipeline stage
312
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
313
+ * @throws Error if called on a new (unsaved) record
314
+ *
315
+ * @example
316
+ * ```typescript
317
+ * const record = await odinClient.callLegs.get(id);
318
+ * await record.updateAgentCallLegOnIncomingCallCanceled({ ... }).execute();
319
+ *
320
+ * // Dry run (for debugging)
321
+ * const payload = record.updateAgentCallLegOnIncomingCallCanceled({ ... }).dryRun();
322
+ * ```
323
+ */
324
+ updateAgentCallLegOnIncomingCallCanceled(properties: UpdateAgentCallLegOnIncomingCallCanceledProperties, options?: {
325
+ journeyId?: string;
326
+ stageKey?: string;
327
+ }): ActionBuilder;
328
+ /**
329
+ * UpdateAgentCallLegOnIncomingCallCompleted
330
+ *
331
+ * Updates this CallLeg record with the specified properties.
332
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
333
+ *
334
+ * @param properties - Required properties for this action
335
+ * @param options - Optional settings
336
+ * @param options.journeyId - Associate with a journey
337
+ * @param options.stageKey - Transition to pipeline stage
338
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
339
+ * @throws Error if called on a new (unsaved) record
340
+ *
341
+ * @example
342
+ * ```typescript
343
+ * const record = await odinClient.callLegs.get(id);
344
+ * await record.updateAgentCallLegOnIncomingCallCompleted({ ... }).execute();
345
+ *
346
+ * // Dry run (for debugging)
347
+ * const payload = record.updateAgentCallLegOnIncomingCallCompleted({ ... }).dryRun();
348
+ * ```
349
+ */
350
+ updateAgentCallLegOnIncomingCallCompleted(properties: UpdateAgentCallLegOnIncomingCallCompletedProperties, options?: {
351
+ journeyId?: string;
352
+ stageKey?: string;
353
+ }): ActionBuilder;
272
354
  /**
273
355
  * UpdateCall
274
356
  *
@@ -296,6 +378,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
296
378
  journeyId?: string;
297
379
  stageKey?: string;
298
380
  }): ActionBuilder;
381
+ /**
382
+ * UpdateCustomerCallLegOnIncomingCallAnswered
383
+ *
384
+ * Updates this CallLeg record with the specified properties.
385
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
386
+ *
387
+ * @param properties - Required properties for this action
388
+ * @param options - Optional settings
389
+ * @param options.journeyId - Associate with a journey
390
+ * @param options.stageKey - Transition to pipeline stage
391
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
392
+ * @throws Error if called on a new (unsaved) record
393
+ *
394
+ * @example
395
+ * ```typescript
396
+ * const record = await odinClient.callLegs.get(id);
397
+ * await record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).execute();
398
+ *
399
+ * // Dry run (for debugging)
400
+ * const payload = record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).dryRun();
401
+ * ```
402
+ */
403
+ updateCustomerCallLegOnIncomingCallAnswered(properties: UpdateCustomerCallLegOnIncomingCallAnsweredProperties, options?: {
404
+ journeyId?: string;
405
+ stageKey?: string;
406
+ }): ActionBuilder;
299
407
  }
300
408
  /** Type guard to check if an object is a CallLegRecord */
301
409
  export declare function isCallLegRecord(obj: any): obj is CallLegRecord;
@@ -367,6 +367,93 @@ class CallLegRecord {
367
367
  // ============================================
368
368
  // UPDATE ACTIONS (require existing record)
369
369
  // ============================================
370
+ /**
371
+ * UpdateAgentCallLegOnIncomingCallAnswered
372
+ *
373
+ * Updates this CallLeg record with the specified properties.
374
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
375
+ *
376
+ * @param properties - Required properties for this action
377
+ * @param options - Optional settings
378
+ * @param options.journeyId - Associate with a journey
379
+ * @param options.stageKey - Transition to pipeline stage
380
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
381
+ * @throws Error if called on a new (unsaved) record
382
+ *
383
+ * @example
384
+ * ```typescript
385
+ * const record = await odinClient.callLegs.get(id);
386
+ * await record.updateAgentCallLegOnIncomingCallAnswered({ ... }).execute();
387
+ *
388
+ * // Dry run (for debugging)
389
+ * const payload = record.updateAgentCallLegOnIncomingCallAnswered({ ... }).dryRun();
390
+ * ```
391
+ */
392
+ updateAgentCallLegOnIncomingCallAnswered(properties, options) {
393
+ var _a;
394
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
395
+ throw new Error('updateAgentCallLegOnIncomingCallAnswered requires an existing record. Use accessor.get() first.');
396
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
397
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
398
+ }
399
+ /**
400
+ * UpdateAgentCallLegOnIncomingCallCanceled
401
+ *
402
+ * Updates this CallLeg record with the specified properties.
403
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
404
+ *
405
+ * @param properties - Required properties for this action
406
+ * @param options - Optional settings
407
+ * @param options.journeyId - Associate with a journey
408
+ * @param options.stageKey - Transition to pipeline stage
409
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
410
+ * @throws Error if called on a new (unsaved) record
411
+ *
412
+ * @example
413
+ * ```typescript
414
+ * const record = await odinClient.callLegs.get(id);
415
+ * await record.updateAgentCallLegOnIncomingCallCanceled({ ... }).execute();
416
+ *
417
+ * // Dry run (for debugging)
418
+ * const payload = record.updateAgentCallLegOnIncomingCallCanceled({ ... }).dryRun();
419
+ * ```
420
+ */
421
+ updateAgentCallLegOnIncomingCallCanceled(properties, options) {
422
+ var _a;
423
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
424
+ throw new Error('updateAgentCallLegOnIncomingCallCanceled requires an existing record. Use accessor.get() first.');
425
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
426
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
427
+ }
428
+ /**
429
+ * UpdateAgentCallLegOnIncomingCallCompleted
430
+ *
431
+ * Updates this CallLeg record with the specified properties.
432
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
433
+ *
434
+ * @param properties - Required properties for this action
435
+ * @param options - Optional settings
436
+ * @param options.journeyId - Associate with a journey
437
+ * @param options.stageKey - Transition to pipeline stage
438
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
439
+ * @throws Error if called on a new (unsaved) record
440
+ *
441
+ * @example
442
+ * ```typescript
443
+ * const record = await odinClient.callLegs.get(id);
444
+ * await record.updateAgentCallLegOnIncomingCallCompleted({ ... }).execute();
445
+ *
446
+ * // Dry run (for debugging)
447
+ * const payload = record.updateAgentCallLegOnIncomingCallCompleted({ ... }).dryRun();
448
+ * ```
449
+ */
450
+ updateAgentCallLegOnIncomingCallCompleted(properties, options) {
451
+ var _a;
452
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
453
+ throw new Error('updateAgentCallLegOnIncomingCallCompleted requires an existing record. Use accessor.get() first.');
454
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
455
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
456
+ }
370
457
  /**
371
458
  * UpdateCall
372
459
  *
@@ -404,6 +491,35 @@ class CallLegRecord {
404
491
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCall', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
405
492
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
406
493
  }
494
+ /**
495
+ * UpdateCustomerCallLegOnIncomingCallAnswered
496
+ *
497
+ * Updates this CallLeg record with the specified properties.
498
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
499
+ *
500
+ * @param properties - Required properties for this action
501
+ * @param options - Optional settings
502
+ * @param options.journeyId - Associate with a journey
503
+ * @param options.stageKey - Transition to pipeline stage
504
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
505
+ * @throws Error if called on a new (unsaved) record
506
+ *
507
+ * @example
508
+ * ```typescript
509
+ * const record = await odinClient.callLegs.get(id);
510
+ * await record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).execute();
511
+ *
512
+ * // Dry run (for debugging)
513
+ * const payload = record.updateCustomerCallLegOnIncomingCallAnswered({ ... }).dryRun();
514
+ * ```
515
+ */
516
+ updateCustomerCallLegOnIncomingCallAnswered(properties, options) {
517
+ var _a;
518
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
519
+ throw new Error('updateCustomerCallLegOnIncomingCallAnswered requires an existing record. Use accessor.get() first.');
520
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
521
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
522
+ }
407
523
  }
408
524
  exports.CallLegRecord = CallLegRecord;
409
525
  // ============================================
@@ -394,11 +394,13 @@ export declare class CallRecord<TProps = CallProperties> {
394
394
  /**
395
395
  * UpdateCallOnInboundCallCanceled
396
396
  *
397
- * Updates this Call record.
397
+ * Updates this Call record with the specified properties.
398
398
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
399
399
  *
400
- * @param propertiesOrOptions - Properties to update, or options object
401
- * @param options - Optional settings (journeyId, stageKey)
400
+ * @param properties - Required properties for this action
401
+ * @param options - Optional settings
402
+ * @param options.journeyId - Associate with a journey
403
+ * @param options.stageKey - Transition to pipeline stage
402
404
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
403
405
  * @throws Error if called on a new (unsaved) record
404
406
  *
@@ -411,10 +413,7 @@ export declare class CallRecord<TProps = CallProperties> {
411
413
  * const payload = record.updateCallOnInboundCallCanceled({ ... }).dryRun();
412
414
  * ```
413
415
  */
414
- updateCallOnInboundCallCanceled(propertiesOrOptions?: UpdateCallOnInboundCallCanceledProperties | {
415
- journeyId?: string;
416
- stageKey?: string;
417
- }, options?: {
416
+ updateCallOnInboundCallCanceled(properties: UpdateCallOnInboundCallCanceledProperties, options?: {
418
417
  journeyId?: string;
419
418
  stageKey?: string;
420
419
  }): ActionBuilder;
@@ -546,11 +546,13 @@ class CallRecord {
546
546
  /**
547
547
  * UpdateCallOnInboundCallCanceled
548
548
  *
549
- * Updates this Call record.
549
+ * Updates this Call record with the specified properties.
550
550
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
551
551
  *
552
- * @param propertiesOrOptions - Properties to update, or options object
553
- * @param options - Optional settings (journeyId, stageKey)
552
+ * @param properties - Required properties for this action
553
+ * @param options - Optional settings
554
+ * @param options.journeyId - Associate with a journey
555
+ * @param options.stageKey - Transition to pipeline stage
554
556
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
555
557
  * @throws Error if called on a new (unsaved) record
556
558
  *
@@ -563,21 +565,11 @@ class CallRecord {
563
565
  * const payload = record.updateCallOnInboundCallCanceled({ ... }).dryRun();
564
566
  * ```
565
567
  */
566
- updateCallOnInboundCallCanceled(propertiesOrOptions, options) {
568
+ updateCallOnInboundCallCanceled(properties, options) {
567
569
  var _a;
568
570
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
569
571
  throw new Error('updateCallOnInboundCallCanceled requires an existing record. Use accessor.get() first.');
570
- let properties = {};
571
- let opts = options;
572
- if (propertiesOrOptions) {
573
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
574
- opts = propertiesOrOptions;
575
- }
576
- else {
577
- properties = propertiesOrOptions;
578
- }
579
- }
580
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
572
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
581
573
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
582
574
  }
583
575
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.103-beta.2",
3
+ "version": "2.0.103-beta.3",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",