@d19n/youfibre-odin-sdk 2.0.134 → 2.0.135

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 **682** actions.
356
+ This SDK includes **686** actions.
357
357
 
358
358
  ### Action Types
359
359
 
@@ -1206,9 +1206,13 @@ This SDK includes **682** actions.
1206
1206
  | `UpdateAgentCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted |
1207
1207
  | `UpdateAgentCallLegOnOutboundCallFailed` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallFailed |
1208
1208
  | `UpdateAgentCallLegOnOutboundCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallNoAnswer |
1209
+ | `UpdateAgentCallLegOnOutboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging |
1209
1210
  | `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
1210
1211
  | `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
1212
+ | `UpdateCustomerCallLegOnIncomingCallCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled |
1213
+ | `UpdateCustomerCallLegOnIncomingCallFailed` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed |
1211
1214
  | `UpdateCustomerCallLegOnIncomingCallNoAnswer` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallNoAnswer |
1215
+ | `UpdateCustomerCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging |
1212
1216
  | `UpdateCustomerCallLegOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted |
1213
1217
  | `UpdateCustomerCallLegOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallAnswered |
1214
1218
  | `UpdateCustomerCallLegOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnOutboundCallCompleted |
@@ -22,7 +22,7 @@ export interface EditFieldServiceProductMessage extends OdinRecordUpdatedEvent<E
22
22
  * Properties for EditFieldServiceProduct action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 6
25
+ * @property Optional fields: 7
26
26
  */
27
27
  export interface EditFieldServiceProductProperties {
28
28
  /**
@@ -60,6 +60,13 @@ export interface EditFieldServiceProductProperties {
60
60
  * @type {BOOLEAN}
61
61
  */
62
62
  Active?: boolean | null;
63
+ /**
64
+ * provider
65
+ *
66
+ * network provider (Sales - Order)
67
+ * @type {ENUM}
68
+ */
69
+ Provider?: string | null;
63
70
  }
64
71
  /**
65
72
  * EditFieldServiceProduct
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateAgentCallLegOnOutboundCallRinging Action DTO
3
+ *
4
+ * Update agent call leg on outbound call ringing
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateAgentCallLegOnOutboundCallRinging
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
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 UpdateAgentCallLegOnOutboundCallRinging updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
18
+ */
19
+ export interface UpdateAgentCallLegOnOutboundCallRingingMessage extends OdinRecordUpdatedEvent<UpdateAgentCallLegOnOutboundCallRingingDto, UpdateAgentCallLegOnOutboundCallRingingProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateAgentCallLegOnOutboundCallRinging action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateAgentCallLegOnOutboundCallRingingProperties {
28
+ /**
29
+ * RingingAt
30
+ *
31
+ * Data field for CallLeg records. Used by Communications team.
32
+ * @type {DATE_TIME}
33
+ * @required
34
+ */
35
+ RingingAt: 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
+ * UpdateAgentCallLegOnOutboundCallRinging
47
+ *
48
+ * Update agent call leg on outbound call ringing
49
+ *
50
+ * @actionType UPDATE - Updates an existing CallLeg record
51
+ * @module NotificationModule
52
+ * @entity CallLeg
53
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
54
+ * @permission schema.action.updateagentcalllegonoutboundcallringing.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateAgentCallLegOnOutboundCallRingingDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallRingingProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateAgentCallLegOnOutboundCallRinging";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging";
64
+ static readonly PERMISSION = "schema.action.updateagentcalllegonoutboundcallringing.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 = "10c0860c-a814-4879-b506-e718a2fd4b50";
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: UpdateAgentCallLegOnOutboundCallRingingProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateAgentCallLegOnOutboundCallRinging Action DTO
4
+ *
5
+ * Update agent call leg on outbound call ringing
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateAgentCallLegOnOutboundCallRinging
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateAgentCallLegOnOutboundCallRingingDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateAgentCallLegOnOutboundCallRinging
19
+ *
20
+ * Update agent call leg on outbound call ringing
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging
26
+ * @permission schema.action.updateagentcalllegonoutboundcallringing.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateAgentCallLegOnOutboundCallRingingDto 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 = 'UpdateAgentCallLegOnOutboundCallRinging';
40
+ this.schemaActionId = '10c0860c-a814-4879-b506-e718a2fd4b50';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateAgentCallLegOnOutboundCallRingingDto = UpdateAgentCallLegOnOutboundCallRingingDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateAgentCallLegOnOutboundCallRingingDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateAgentCallLegOnOutboundCallRingingDto.ACTION_KEY = 'UpdateAgentCallLegOnOutboundCallRinging';
48
+ UpdateAgentCallLegOnOutboundCallRingingDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateAgentCallLegOnOutboundCallRingingDto.ENTITIES = ['CallLeg'];
50
+ UpdateAgentCallLegOnOutboundCallRingingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallRinging';
51
+ UpdateAgentCallLegOnOutboundCallRingingDto.PERMISSION = 'schema.action.updateagentcalllegonoutboundcallringing.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateAgentCallLegOnOutboundCallRingingDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateAgentCallLegOnOutboundCallRingingDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateAgentCallLegOnOutboundCallRingingDto.STEP_SCHEMA_ACTION_ID = '10c0860c-a814-4879-b506-e718a2fd4b50';
56
+ UpdateAgentCallLegOnOutboundCallRingingDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateCustomerCallLegOnIncomingCallCanceled Action DTO
3
+ *
4
+ * Update customer call leg on incoming call canceled
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateCustomerCallLegOnIncomingCallCanceled
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled
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 UpdateCustomerCallLegOnIncomingCallCanceled updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled
18
+ */
19
+ export interface UpdateCustomerCallLegOnIncomingCallCanceledMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallCanceledDto, UpdateCustomerCallLegOnIncomingCallCanceledProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCustomerCallLegOnIncomingCallCanceled action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCustomerCallLegOnIncomingCallCanceledProperties {
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
+ * UpdateCustomerCallLegOnIncomingCallCanceled
47
+ *
48
+ * Update customer 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.UpdateCustomerCallLegOnIncomingCallCanceled
54
+ * @permission schema.action.updatecustomercalllegonincomingcallcanceled.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateCustomerCallLegOnIncomingCallCanceledDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallCanceledProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallCanceled";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled";
64
+ static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallcanceled.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 = "aa945ebd-fc99-473a-bd67-6651fb6b6350";
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: UpdateCustomerCallLegOnIncomingCallCanceledProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCustomerCallLegOnIncomingCallCanceled Action DTO
4
+ *
5
+ * Update customer call leg on incoming call canceled
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateCustomerCallLegOnIncomingCallCanceled
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCustomerCallLegOnIncomingCallCanceledDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCustomerCallLegOnIncomingCallCanceled
19
+ *
20
+ * Update customer 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.UpdateCustomerCallLegOnIncomingCallCanceled
26
+ * @permission schema.action.updatecustomercalllegonincomingcallcanceled.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCustomerCallLegOnIncomingCallCanceledDto 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 = 'UpdateCustomerCallLegOnIncomingCallCanceled';
40
+ this.schemaActionId = 'aa945ebd-fc99-473a-bd67-6651fb6b6350';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateCustomerCallLegOnIncomingCallCanceledDto = UpdateCustomerCallLegOnIncomingCallCanceledDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallCanceled';
48
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.ENTITIES = ['CallLeg'];
50
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallCanceled';
51
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallcanceled.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.STEP_SCHEMA_ACTION_ID = 'aa945ebd-fc99-473a-bd67-6651fb6b6350';
56
+ UpdateCustomerCallLegOnIncomingCallCanceledDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateCustomerCallLegOnIncomingCallFailed Action DTO
3
+ *
4
+ * Update agent call leg on incoming call failed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateCustomerCallLegOnIncomingCallFailed
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
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 UpdateCustomerCallLegOnIncomingCallFailed updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
18
+ */
19
+ export interface UpdateCustomerCallLegOnIncomingCallFailedMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallFailedDto, UpdateCustomerCallLegOnIncomingCallFailedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCustomerCallLegOnIncomingCallFailed action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCustomerCallLegOnIncomingCallFailedProperties {
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
+ * UpdateCustomerCallLegOnIncomingCallFailed
47
+ *
48
+ * Update agent call leg on incoming call failed
49
+ *
50
+ * @actionType UPDATE - Updates an existing CallLeg record
51
+ * @module NotificationModule
52
+ * @entity CallLeg
53
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
54
+ * @permission schema.action.updatecustomercalllegonincomingcallfailed.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateCustomerCallLegOnIncomingCallFailedDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallFailedProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallFailed";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed";
64
+ static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallfailed.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 = "9570a7ac-effe-4002-a933-6f92a3914321";
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: UpdateCustomerCallLegOnIncomingCallFailedProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCustomerCallLegOnIncomingCallFailed Action DTO
4
+ *
5
+ * Update agent call leg on incoming call failed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateCustomerCallLegOnIncomingCallFailed
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCustomerCallLegOnIncomingCallFailedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCustomerCallLegOnIncomingCallFailed
19
+ *
20
+ * Update agent call leg on incoming 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.UpdateCustomerCallLegOnIncomingCallFailed
26
+ * @permission schema.action.updatecustomercalllegonincomingcallfailed.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCustomerCallLegOnIncomingCallFailedDto 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 = 'UpdateCustomerCallLegOnIncomingCallFailed';
40
+ this.schemaActionId = '9570a7ac-effe-4002-a933-6f92a3914321';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateCustomerCallLegOnIncomingCallFailedDto = UpdateCustomerCallLegOnIncomingCallFailedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCustomerCallLegOnIncomingCallFailedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCustomerCallLegOnIncomingCallFailedDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallFailed';
48
+ UpdateCustomerCallLegOnIncomingCallFailedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCustomerCallLegOnIncomingCallFailedDto.ENTITIES = ['CallLeg'];
50
+ UpdateCustomerCallLegOnIncomingCallFailedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallFailed';
51
+ UpdateCustomerCallLegOnIncomingCallFailedDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallfailed.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCustomerCallLegOnIncomingCallFailedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateCustomerCallLegOnIncomingCallFailedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateCustomerCallLegOnIncomingCallFailedDto.STEP_SCHEMA_ACTION_ID = '9570a7ac-effe-4002-a933-6f92a3914321';
56
+ UpdateCustomerCallLegOnIncomingCallFailedDto.AUTO_LINK_PARENT = false;
@@ -21,8 +21,26 @@ export interface UpdateCustomerCallLegOnIncomingCallNoAnswerMessage extends Odin
21
21
  /**
22
22
  * Properties for UpdateCustomerCallLegOnIncomingCallNoAnswer action
23
23
  *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
24
26
  */
25
27
  export interface UpdateCustomerCallLegOnIncomingCallNoAnswerProperties {
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;
26
44
  }
27
45
  /**
28
46
  * UpdateCustomerCallLegOnIncomingCallNoAnswer
@@ -0,0 +1,81 @@
1
+ /**
2
+ * UpdateCustomerCallLegOnIncomingCallRinging Action DTO
3
+ *
4
+ * Update customer call leg on incoming call ringing
5
+ *
6
+ * @module NotificationModule
7
+ * @entity CallLeg
8
+ * @actionKey UpdateCustomerCallLegOnIncomingCallRinging
9
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
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 UpdateCustomerCallLegOnIncomingCallRinging updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
18
+ */
19
+ export interface UpdateCustomerCallLegOnIncomingCallRingingMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnIncomingCallRingingDto, UpdateCustomerCallLegOnIncomingCallRingingProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCustomerCallLegOnIncomingCallRinging action
23
+ *
24
+ * @property Required fields: 2
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCustomerCallLegOnIncomingCallRingingProperties {
28
+ /**
29
+ * RingingAt
30
+ *
31
+ * Data field for CallLeg records. Used by Communications team.
32
+ * @type {DATE_TIME}
33
+ * @required
34
+ */
35
+ RingingAt: 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
+ * UpdateCustomerCallLegOnIncomingCallRinging
47
+ *
48
+ * Update customer call leg on incoming call ringing
49
+ *
50
+ * @actionType UPDATE - Updates an existing CallLeg record
51
+ * @module NotificationModule
52
+ * @entity CallLeg
53
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
54
+ * @permission schema.action.updatecustomercalllegonincomingcallringing.trigger
55
+ * @benchmark This action is tracked for performance benchmarks
56
+ */
57
+ export declare class UpdateCustomerCallLegOnIncomingCallRingingDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnIncomingCallRingingProperties> {
58
+ /** Used by SDK generators to identify action type */
59
+ static readonly ACTION_TYPE = "UPDATE";
60
+ static readonly ACTION_KEY = "UpdateCustomerCallLegOnIncomingCallRinging";
61
+ static readonly MODULE_NAME = "NotificationModule";
62
+ static readonly ENTITIES: string[];
63
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging";
64
+ static readonly PERMISSION = "schema.action.updatecustomercalllegonincomingcallringing.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 = "e3ad4d61-d76c-4f5e-9fd9-a31f4ca97a15";
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: UpdateCustomerCallLegOnIncomingCallRingingProperties, options?: {
78
+ journeyId?: string;
79
+ stageKey?: string;
80
+ });
81
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCustomerCallLegOnIncomingCallRinging Action DTO
4
+ *
5
+ * Update customer call leg on incoming call ringing
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateCustomerCallLegOnIncomingCallRinging
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCustomerCallLegOnIncomingCallRingingDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCustomerCallLegOnIncomingCallRinging
19
+ *
20
+ * Update customer call leg on incoming call ringing
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging
26
+ * @permission schema.action.updatecustomercalllegonincomingcallringing.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCustomerCallLegOnIncomingCallRingingDto 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 = 'UpdateCustomerCallLegOnIncomingCallRinging';
40
+ this.schemaActionId = 'e3ad4d61-d76c-4f5e-9fd9-a31f4ca97a15';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateCustomerCallLegOnIncomingCallRingingDto = UpdateCustomerCallLegOnIncomingCallRingingDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCustomerCallLegOnIncomingCallRingingDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCustomerCallLegOnIncomingCallRingingDto.ACTION_KEY = 'UpdateCustomerCallLegOnIncomingCallRinging';
48
+ UpdateCustomerCallLegOnIncomingCallRingingDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCustomerCallLegOnIncomingCallRingingDto.ENTITIES = ['CallLeg'];
50
+ UpdateCustomerCallLegOnIncomingCallRingingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallRinging';
51
+ UpdateCustomerCallLegOnIncomingCallRingingDto.PERMISSION = 'schema.action.updatecustomercalllegonincomingcallringing.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCustomerCallLegOnIncomingCallRingingDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateCustomerCallLegOnIncomingCallRingingDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateCustomerCallLegOnIncomingCallRingingDto.STEP_SCHEMA_ACTION_ID = 'e3ad4d61-d76c-4f5e-9fd9-a31f4ca97a15';
56
+ UpdateCustomerCallLegOnIncomingCallRingingDto.AUTO_LINK_PARENT = false;
@@ -67,8 +67,22 @@ export declare enum FieldServiceProductVendor {
67
67
  * Valid values for FieldServiceProduct.Provider
68
68
  *
69
69
  * network provider (Sales - Order)
70
+ *
71
+ * @remarks Available options:
72
+ * - `BRSK` - Brsk
73
+ * - `CITYFIBRE` - CityFibre
74
+ * - `NETOMNIA` - Netomnia
75
+ * - `NETOMNIA_LEGACY` - Netomnia legacy
76
+ * - `OPENREACH` - Openreach
77
+ * - `PYOMNI` - PyOmni
70
78
  */
71
79
  export declare enum FieldServiceProductProvider {
80
+ BRSK = "BRSK",
81
+ CITY_FIBRE = "CITYFIBRE",
82
+ NETOMNIA = "NETOMNIA",
83
+ NETOMNIA_LEGACY = "NETOMNIA_LEGACY",
84
+ OPENREACH = "OPENREACH",
85
+ PY_OMNI = "PYOMNI"
72
86
  }
73
87
  /**
74
88
  * Property keys for FieldServiceProduct
@@ -125,6 +139,7 @@ export interface FieldServiceProductProperties {
125
139
  /** network provider (Sales - Order)
126
140
  *
127
141
  * @type {ENUM}
142
+ * @enum {FieldServiceProductProvider}
128
143
  */
129
144
  Provider: FieldServiceProductProvider;
130
145
  }
@@ -165,6 +180,7 @@ export interface CpeRouterFieldServiceProductProperties {
165
180
  /** network provider (Sales - Order)
166
181
  *
167
182
  * @type {ENUM}
183
+ * @enum {FieldServiceProductProvider}
168
184
  */
169
185
  Provider: FieldServiceProductProvider;
170
186
  }
@@ -205,6 +221,7 @@ export interface MeshFieldServiceProductProperties {
205
221
  /** network provider (Sales - Order)
206
222
  *
207
223
  * @type {ENUM}
224
+ * @enum {FieldServiceProductProvider}
208
225
  */
209
226
  Provider: FieldServiceProductProvider;
210
227
  }
@@ -245,6 +262,7 @@ export interface MiscFieldServiceProductProperties {
245
262
  /** network provider (Sales - Order)
246
263
  *
247
264
  * @type {ENUM}
265
+ * @enum {FieldServiceProductProvider}
248
266
  */
249
267
  Provider: FieldServiceProductProvider;
250
268
  }
@@ -70,9 +70,23 @@ var FieldServiceProductVendor;
70
70
  * Valid values for FieldServiceProduct.Provider
71
71
  *
72
72
  * network provider (Sales - Order)
73
+ *
74
+ * @remarks Available options:
75
+ * - `BRSK` - Brsk
76
+ * - `CITYFIBRE` - CityFibre
77
+ * - `NETOMNIA` - Netomnia
78
+ * - `NETOMNIA_LEGACY` - Netomnia legacy
79
+ * - `OPENREACH` - Openreach
80
+ * - `PYOMNI` - PyOmni
73
81
  */
74
82
  var FieldServiceProductProvider;
75
83
  (function (FieldServiceProductProvider) {
84
+ FieldServiceProductProvider["BRSK"] = "BRSK";
85
+ FieldServiceProductProvider["CITY_FIBRE"] = "CITYFIBRE";
86
+ FieldServiceProductProvider["NETOMNIA"] = "NETOMNIA";
87
+ FieldServiceProductProvider["NETOMNIA_LEGACY"] = "NETOMNIA_LEGACY";
88
+ FieldServiceProductProvider["OPENREACH"] = "OPENREACH";
89
+ FieldServiceProductProvider["PY_OMNI"] = "PYOMNI";
76
90
  })(FieldServiceProductProvider = exports.FieldServiceProductProvider || (exports.FieldServiceProductProvider = {}));
77
91
  /**
78
92
  * Property keys for FieldServiceProduct
@@ -35,9 +35,13 @@ import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v
35
35
  import { UpdateAgentCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto';
36
36
  import { UpdateAgentCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto';
37
37
  import { UpdateAgentCallLegOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallNoAnswerDto';
38
+ import { UpdateAgentCallLegOnOutboundCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallRingingDto';
38
39
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
39
40
  import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
41
+ import { UpdateCustomerCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallCanceledDto';
42
+ import { UpdateCustomerCallLegOnIncomingCallFailedProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallFailedDto';
40
43
  import { UpdateCustomerCallLegOnIncomingCallNoAnswerProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto';
44
+ import { UpdateCustomerCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallRingingDto';
41
45
  import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
42
46
  import { UpdateCustomerCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallAnsweredDto';
43
47
  import { UpdateCustomerCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallCompletedDto';
@@ -547,6 +551,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
547
551
  journeyId?: string;
548
552
  stageKey?: string;
549
553
  }): ActionBuilder;
554
+ /**
555
+ * UpdateAgentCallLegOnOutboundCallRinging
556
+ *
557
+ * Updates this CallLeg record with the specified properties.
558
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
559
+ *
560
+ * @param properties - Required properties for this action
561
+ * @param options - Optional settings
562
+ * @param options.journeyId - Associate with a journey
563
+ * @param options.stageKey - Transition to pipeline stage
564
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
565
+ * @throws Error if called on a new (unsaved) record
566
+ *
567
+ * @example
568
+ * ```typescript
569
+ * const record = await odinClient.callLegs.get(id);
570
+ * await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
571
+ *
572
+ * // Dry run (for debugging)
573
+ * const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
574
+ * ```
575
+ */
576
+ updateAgentCallLegOnOutboundCallRinging(properties: UpdateAgentCallLegOnOutboundCallRingingProperties, options?: {
577
+ journeyId?: string;
578
+ stageKey?: string;
579
+ }): ActionBuilder;
550
580
  /**
551
581
  * UpdateCall
552
582
  *
@@ -600,14 +630,68 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
600
630
  journeyId?: string;
601
631
  stageKey?: string;
602
632
  }): ActionBuilder;
633
+ /**
634
+ * UpdateCustomerCallLegOnIncomingCallCanceled
635
+ *
636
+ * Updates this CallLeg record with the specified properties.
637
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
638
+ *
639
+ * @param properties - Required properties for this action
640
+ * @param options - Optional settings
641
+ * @param options.journeyId - Associate with a journey
642
+ * @param options.stageKey - Transition to pipeline stage
643
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
644
+ * @throws Error if called on a new (unsaved) record
645
+ *
646
+ * @example
647
+ * ```typescript
648
+ * const record = await odinClient.callLegs.get(id);
649
+ * await record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).execute();
650
+ *
651
+ * // Dry run (for debugging)
652
+ * const payload = record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).dryRun();
653
+ * ```
654
+ */
655
+ updateCustomerCallLegOnIncomingCallCanceled(properties: UpdateCustomerCallLegOnIncomingCallCanceledProperties, options?: {
656
+ journeyId?: string;
657
+ stageKey?: string;
658
+ }): ActionBuilder;
659
+ /**
660
+ * UpdateCustomerCallLegOnIncomingCallFailed
661
+ *
662
+ * Updates this CallLeg record with the specified properties.
663
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
664
+ *
665
+ * @param properties - Required properties for this action
666
+ * @param options - Optional settings
667
+ * @param options.journeyId - Associate with a journey
668
+ * @param options.stageKey - Transition to pipeline stage
669
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
670
+ * @throws Error if called on a new (unsaved) record
671
+ *
672
+ * @example
673
+ * ```typescript
674
+ * const record = await odinClient.callLegs.get(id);
675
+ * await record.updateCustomerCallLegOnIncomingCallFailed({ ... }).execute();
676
+ *
677
+ * // Dry run (for debugging)
678
+ * const payload = record.updateCustomerCallLegOnIncomingCallFailed({ ... }).dryRun();
679
+ * ```
680
+ */
681
+ updateCustomerCallLegOnIncomingCallFailed(properties: UpdateCustomerCallLegOnIncomingCallFailedProperties, options?: {
682
+ journeyId?: string;
683
+ stageKey?: string;
684
+ }): ActionBuilder;
603
685
  /**
604
686
  * UpdateCustomerCallLegOnIncomingCallNoAnswer
605
687
  *
606
- * Updates this CallLeg record.
688
+ * Updates this CallLeg record with the specified properties.
607
689
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
608
690
  *
609
- * @param propertiesOrOptions - Properties to update, or options object
610
- * @param options - Optional settings (journeyId, stageKey)
691
+ * @param properties - Required properties for this action
692
+ * @param options - Optional settings
693
+ * @param options.journeyId - Associate with a journey
694
+ * @param options.stageKey - Transition to pipeline stage
611
695
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
612
696
  * @throws Error if called on a new (unsaved) record
613
697
  *
@@ -620,10 +704,33 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
620
704
  * const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
621
705
  * ```
622
706
  */
623
- updateCustomerCallLegOnIncomingCallNoAnswer(propertiesOrOptions?: UpdateCustomerCallLegOnIncomingCallNoAnswerProperties | {
707
+ updateCustomerCallLegOnIncomingCallNoAnswer(properties: UpdateCustomerCallLegOnIncomingCallNoAnswerProperties, options?: {
624
708
  journeyId?: string;
625
709
  stageKey?: string;
626
- }, options?: {
710
+ }): ActionBuilder;
711
+ /**
712
+ * UpdateCustomerCallLegOnIncomingCallRinging
713
+ *
714
+ * Updates this CallLeg record with the specified properties.
715
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
716
+ *
717
+ * @param properties - Required properties for this action
718
+ * @param options - Optional settings
719
+ * @param options.journeyId - Associate with a journey
720
+ * @param options.stageKey - Transition to pipeline stage
721
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
722
+ * @throws Error if called on a new (unsaved) record
723
+ *
724
+ * @example
725
+ * ```typescript
726
+ * const record = await odinClient.callLegs.get(id);
727
+ * await record.updateCustomerCallLegOnIncomingCallRinging({ ... }).execute();
728
+ *
729
+ * // Dry run (for debugging)
730
+ * const payload = record.updateCustomerCallLegOnIncomingCallRinging({ ... }).dryRun();
731
+ * ```
732
+ */
733
+ updateCustomerCallLegOnIncomingCallRinging(properties: UpdateCustomerCallLegOnIncomingCallRingingProperties, options?: {
627
734
  journeyId?: string;
628
735
  stageKey?: string;
629
736
  }): ActionBuilder;
@@ -657,6 +657,35 @@ class CallLegRecord {
657
657
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
658
658
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
659
659
  }
660
+ /**
661
+ * UpdateAgentCallLegOnOutboundCallRinging
662
+ *
663
+ * Updates this CallLeg record with the specified properties.
664
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
665
+ *
666
+ * @param properties - Required properties for this action
667
+ * @param options - Optional settings
668
+ * @param options.journeyId - Associate with a journey
669
+ * @param options.stageKey - Transition to pipeline stage
670
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
671
+ * @throws Error if called on a new (unsaved) record
672
+ *
673
+ * @example
674
+ * ```typescript
675
+ * const record = await odinClient.callLegs.get(id);
676
+ * await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
677
+ *
678
+ * // Dry run (for debugging)
679
+ * const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
680
+ * ```
681
+ */
682
+ updateAgentCallLegOnOutboundCallRinging(properties, options) {
683
+ var _a;
684
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
685
+ throw new Error('updateAgentCallLegOnOutboundCallRinging requires an existing record. Use accessor.get() first.');
686
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
687
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
688
+ }
660
689
  /**
661
690
  * UpdateCall
662
691
  *
@@ -723,14 +752,74 @@ class CallLegRecord {
723
752
  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);
724
753
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
725
754
  }
755
+ /**
756
+ * UpdateCustomerCallLegOnIncomingCallCanceled
757
+ *
758
+ * Updates this CallLeg record with the specified properties.
759
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
760
+ *
761
+ * @param properties - Required properties for this action
762
+ * @param options - Optional settings
763
+ * @param options.journeyId - Associate with a journey
764
+ * @param options.stageKey - Transition to pipeline stage
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.callLegs.get(id);
771
+ * await record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).execute();
772
+ *
773
+ * // Dry run (for debugging)
774
+ * const payload = record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).dryRun();
775
+ * ```
776
+ */
777
+ updateCustomerCallLegOnIncomingCallCanceled(properties, options) {
778
+ var _a;
779
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
780
+ throw new Error('updateCustomerCallLegOnIncomingCallCanceled requires an existing record. Use accessor.get() first.');
781
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallCanceled', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
782
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
783
+ }
784
+ /**
785
+ * UpdateCustomerCallLegOnIncomingCallFailed
786
+ *
787
+ * Updates this CallLeg record with the specified properties.
788
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
789
+ *
790
+ * @param properties - Required properties for this action
791
+ * @param options - Optional settings
792
+ * @param options.journeyId - Associate with a journey
793
+ * @param options.stageKey - Transition to pipeline stage
794
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
795
+ * @throws Error if called on a new (unsaved) record
796
+ *
797
+ * @example
798
+ * ```typescript
799
+ * const record = await odinClient.callLegs.get(id);
800
+ * await record.updateCustomerCallLegOnIncomingCallFailed({ ... }).execute();
801
+ *
802
+ * // Dry run (for debugging)
803
+ * const payload = record.updateCustomerCallLegOnIncomingCallFailed({ ... }).dryRun();
804
+ * ```
805
+ */
806
+ updateCustomerCallLegOnIncomingCallFailed(properties, options) {
807
+ var _a;
808
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
809
+ throw new Error('updateCustomerCallLegOnIncomingCallFailed requires an existing record. Use accessor.get() first.');
810
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
811
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
812
+ }
726
813
  /**
727
814
  * UpdateCustomerCallLegOnIncomingCallNoAnswer
728
815
  *
729
- * Updates this CallLeg record.
816
+ * Updates this CallLeg record with the specified properties.
730
817
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
731
818
  *
732
- * @param propertiesOrOptions - Properties to update, or options object
733
- * @param options - Optional settings (journeyId, stageKey)
819
+ * @param properties - Required properties for this action
820
+ * @param options - Optional settings
821
+ * @param options.journeyId - Associate with a journey
822
+ * @param options.stageKey - Transition to pipeline stage
734
823
  * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
735
824
  * @throws Error if called on a new (unsaved) record
736
825
  *
@@ -743,21 +832,40 @@ class CallLegRecord {
743
832
  * const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
744
833
  * ```
745
834
  */
746
- updateCustomerCallLegOnIncomingCallNoAnswer(propertiesOrOptions, options) {
835
+ updateCustomerCallLegOnIncomingCallNoAnswer(properties, options) {
747
836
  var _a;
748
837
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
749
838
  throw new Error('updateCustomerCallLegOnIncomingCallNoAnswer requires an existing record. Use accessor.get() first.');
750
- let properties = {};
751
- let opts = options;
752
- if (propertiesOrOptions) {
753
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
754
- opts = propertiesOrOptions;
755
- }
756
- else {
757
- properties = propertiesOrOptions;
758
- }
759
- }
760
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
839
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
840
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
841
+ }
842
+ /**
843
+ * UpdateCustomerCallLegOnIncomingCallRinging
844
+ *
845
+ * Updates this CallLeg record with the specified properties.
846
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
847
+ *
848
+ * @param properties - Required properties for this action
849
+ * @param options - Optional settings
850
+ * @param options.journeyId - Associate with a journey
851
+ * @param options.stageKey - Transition to pipeline stage
852
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
853
+ * @throws Error if called on a new (unsaved) record
854
+ *
855
+ * @example
856
+ * ```typescript
857
+ * const record = await odinClient.callLegs.get(id);
858
+ * await record.updateCustomerCallLegOnIncomingCallRinging({ ... }).execute();
859
+ *
860
+ * // Dry run (for debugging)
861
+ * const payload = record.updateCustomerCallLegOnIncomingCallRinging({ ... }).dryRun();
862
+ * ```
863
+ */
864
+ updateCustomerCallLegOnIncomingCallRinging(properties, options) {
865
+ var _a;
866
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
867
+ throw new Error('updateCustomerCallLegOnIncomingCallRinging requires an existing record. Use accessor.get() first.');
868
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
761
869
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
762
870
  }
763
871
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.134",
3
+ "version": "2.0.135",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",