@d19n/youfibre-odin-sdk 2.0.120 → 2.0.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -353,7 +353,7 @@ This SDK includes **165** entities across **12** modules.
353
353
 
354
354
  ## Actions
355
355
 
356
- This SDK includes **646** actions.
356
+ This SDK includes **648** actions.
357
357
 
358
358
  ### Action Types
359
359
 
@@ -1210,6 +1210,8 @@ This SDK includes **646** actions.
1210
1210
  | `UpdateCallOnInboundCallInitiated` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated |
1211
1211
  | `UpdateCallOnInboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging |
1212
1212
  | `UpdateCallOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted |
1213
+ | `UpdateCallOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered |
1214
+ | `UpdateCallOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted |
1213
1215
  | `UpdateCallOnTaskRouterAssign` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskRouterAssign |
1214
1216
  | `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
1215
1217
 
@@ -58,6 +58,7 @@ export interface UpdateAgentCallLegOnOutboundCallCompletedProperties {
58
58
  * @module NotificationModule
59
59
  * @entity CallLeg
60
60
  * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
61
+ * @permission schema.action.updateagentcalllegonoutboundcallcompleted.trigger
61
62
  * @benchmark This action is tracked for performance benchmarks
62
63
  */
63
64
  export declare class UpdateAgentCallLegOnOutboundCallCompletedDto extends OdinRecordUpdateDto<UpdateAgentCallLegOnOutboundCallCompletedProperties> {
@@ -67,6 +68,7 @@ export declare class UpdateAgentCallLegOnOutboundCallCompletedDto extends OdinRe
67
68
  static readonly MODULE_NAME = "NotificationModule";
68
69
  static readonly ENTITIES: string[];
69
70
  static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted";
71
+ static readonly PERMISSION = "schema.action.updateagentcalllegonoutboundcallcompleted.trigger";
70
72
  /** Step metadata - entity this action targets */
71
73
  static readonly STEP_ENTITY = "NotificationModule:CallLeg";
72
74
  static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
@@ -23,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
23
23
  * @module NotificationModule
24
24
  * @entity CallLeg
25
25
  * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted
26
+ * @permission schema.action.updateagentcalllegonoutboundcallcompleted.trigger
26
27
  * @benchmark This action is tracked for performance benchmarks
27
28
  */
28
29
  class UpdateAgentCallLegOnOutboundCallCompletedDto extends core_1.OdinRecordUpdateDto {
@@ -47,6 +48,7 @@ UpdateAgentCallLegOnOutboundCallCompletedDto.ACTION_KEY = 'UpdateAgentCallLegOnO
47
48
  UpdateAgentCallLegOnOutboundCallCompletedDto.MODULE_NAME = 'NotificationModule';
48
49
  UpdateAgentCallLegOnOutboundCallCompletedDto.ENTITIES = ['CallLeg'];
49
50
  UpdateAgentCallLegOnOutboundCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnOutboundCallCompleted';
51
+ UpdateAgentCallLegOnOutboundCallCompletedDto.PERMISSION = 'schema.action.updateagentcalllegonoutboundcallcompleted.trigger';
50
52
  /** Step metadata - entity this action targets */
51
53
  UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
52
54
  UpdateAgentCallLegOnOutboundCallCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
@@ -0,0 +1,63 @@
1
+ /**
2
+ * UpdateCallOnOutboundCallAnswered Action DTO
3
+ *
4
+ * Update call on outbound call answered
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallOnOutboundCallAnswered
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateCallOnOutboundCallAnswered updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
18
+ */
19
+ export interface UpdateCallOnOutboundCallAnsweredMessage extends OdinRecordUpdatedEvent<UpdateCallOnOutboundCallAnsweredDto, UpdateCallOnOutboundCallAnsweredProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallOnOutboundCallAnswered action
23
+ *
24
+ */
25
+ export interface UpdateCallOnOutboundCallAnsweredProperties {
26
+ }
27
+ /**
28
+ * UpdateCallOnOutboundCallAnswered
29
+ *
30
+ * Update call on outbound call answered
31
+ *
32
+ * @actionType UPDATE - Updates an existing Call record
33
+ * @module NotificationModule
34
+ * @entity Call
35
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
36
+ * @permission schema.action.updatecallonoutboundcallanswered.trigger
37
+ * @benchmark This action is tracked for performance benchmarks
38
+ */
39
+ export declare class UpdateCallOnOutboundCallAnsweredDto extends OdinRecordUpdateDto<UpdateCallOnOutboundCallAnsweredProperties> {
40
+ /** Used by SDK generators to identify action type */
41
+ static readonly ACTION_TYPE = "UPDATE";
42
+ static readonly ACTION_KEY = "UpdateCallOnOutboundCallAnswered";
43
+ static readonly MODULE_NAME = "NotificationModule";
44
+ static readonly ENTITIES: string[];
45
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered";
46
+ static readonly PERMISSION = "schema.action.updatecallonoutboundcallanswered.trigger";
47
+ /** Step metadata - entity this action targets */
48
+ static readonly STEP_ENTITY = "NotificationModule:Call";
49
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
50
+ static readonly STEP_SCHEMA_ACTION_ID = "fa60f842-a37d-4e30-8dee-cf6b178475b9";
51
+ static readonly AUTO_LINK_PARENT = false;
52
+ readonly actionName: string;
53
+ readonly schemaActionId: string;
54
+ readonly entity: string;
55
+ constructor(record: OdinRecord<any> | {
56
+ id: string;
57
+ entity: string;
58
+ type?: string;
59
+ }, properties: UpdateCallOnOutboundCallAnsweredProperties, options?: {
60
+ journeyId?: string;
61
+ stageKey?: string;
62
+ });
63
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallOnOutboundCallAnswered Action DTO
4
+ *
5
+ * Update call on outbound call answered
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey UpdateCallOnOutboundCallAnswered
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallOnOutboundCallAnsweredDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallOnOutboundCallAnswered
19
+ *
20
+ * Update call on outbound call answered
21
+ *
22
+ * @actionType UPDATE - Updates an existing Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered
26
+ * @permission schema.action.updatecallonoutboundcallanswered.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallOnOutboundCallAnsweredDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateCallOnOutboundCallAnswered';
40
+ this.schemaActionId = 'fa60f842-a37d-4e30-8dee-cf6b178475b9';
41
+ this.entity = 'NotificationModule:Call';
42
+ }
43
+ }
44
+ exports.UpdateCallOnOutboundCallAnsweredDto = UpdateCallOnOutboundCallAnsweredDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCallOnOutboundCallAnsweredDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCallOnOutboundCallAnsweredDto.ACTION_KEY = 'UpdateCallOnOutboundCallAnswered';
48
+ UpdateCallOnOutboundCallAnsweredDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCallOnOutboundCallAnsweredDto.ENTITIES = ['Call'];
50
+ UpdateCallOnOutboundCallAnsweredDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered';
51
+ UpdateCallOnOutboundCallAnsweredDto.PERMISSION = 'schema.action.updatecallonoutboundcallanswered.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCallOnOutboundCallAnsweredDto.STEP_ENTITY = 'NotificationModule:Call';
54
+ UpdateCallOnOutboundCallAnsweredDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
55
+ UpdateCallOnOutboundCallAnsweredDto.STEP_SCHEMA_ACTION_ID = 'fa60f842-a37d-4e30-8dee-cf6b178475b9';
56
+ UpdateCallOnOutboundCallAnsweredDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,121 @@
1
+ /**
2
+ * UpdateCallOnOutboundCallCompleted Action DTO
3
+ *
4
+ * Update call on outbound call completed
5
+ *
6
+ * @module NotificationModule
7
+ * @entity Call
8
+ * @actionKey UpdateCallOnOutboundCallCompleted
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdateCallOnOutboundCallCompleted updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
18
+ */
19
+ export interface UpdateCallOnOutboundCallCompletedMessage extends OdinRecordUpdatedEvent<UpdateCallOnOutboundCallCompletedDto, UpdateCallOnOutboundCallCompletedProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallOnOutboundCallCompleted action
23
+ *
24
+ * @property Required fields: 7
25
+ * @property Optional fields: 0
26
+ */
27
+ export interface UpdateCallOnOutboundCallCompletedProperties {
28
+ /**
29
+ * TotalDuration
30
+ *
31
+ * Total call duration in seconds from customer perspective (Communications - Call)
32
+ * @type {NUMBER}
33
+ * @required
34
+ */
35
+ TotalDuration: number;
36
+ /**
37
+ * call status
38
+ *
39
+ * the status of the call (Communications - Call)
40
+ * @type {TEXT}
41
+ * @required
42
+ */
43
+ CallStatus: string;
44
+ /**
45
+ * Call stage
46
+ *
47
+ * The granular stage of a call, more extensive than CallStatus (Communications - Call)
48
+ * @type {ENUM}
49
+ * @required
50
+ */
51
+ CallStage: string;
52
+ /**
53
+ * CallEndReason
54
+ *
55
+ * CallEndReason
56
+ * @type {ENUM}
57
+ * @required
58
+ */
59
+ CallEndReason: string;
60
+ /**
61
+ * RecordingSid
62
+ *
63
+ * Twilio ID for Recording (Communications - Call)
64
+ * @type {TEXT}
65
+ * @required
66
+ */
67
+ RecordingSid: string;
68
+ /**
69
+ * RecordingDuration
70
+ *
71
+ * RecordingDuration (Communications - Call)
72
+ * @type {NUMBER}
73
+ * @required
74
+ */
75
+ RecordingDuration: number;
76
+ /**
77
+ * RecordingUrl
78
+ *
79
+ * RecordingUrl (Communications - Call)
80
+ * @type {TEXT}
81
+ * @required
82
+ */
83
+ RecordingUrl: string;
84
+ }
85
+ /**
86
+ * UpdateCallOnOutboundCallCompleted
87
+ *
88
+ * Update call on outbound call completed
89
+ *
90
+ * @actionType UPDATE - Updates an existing Call record
91
+ * @module NotificationModule
92
+ * @entity Call
93
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
94
+ * @permission schema.action.updatecallonoutboundcallcompleted.trigger
95
+ * @benchmark This action is tracked for performance benchmarks
96
+ */
97
+ export declare class UpdateCallOnOutboundCallCompletedDto extends OdinRecordUpdateDto<UpdateCallOnOutboundCallCompletedProperties> {
98
+ /** Used by SDK generators to identify action type */
99
+ static readonly ACTION_TYPE = "UPDATE";
100
+ static readonly ACTION_KEY = "UpdateCallOnOutboundCallCompleted";
101
+ static readonly MODULE_NAME = "NotificationModule";
102
+ static readonly ENTITIES: string[];
103
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted";
104
+ static readonly PERMISSION = "schema.action.updatecallonoutboundcallcompleted.trigger";
105
+ /** Step metadata - entity this action targets */
106
+ static readonly STEP_ENTITY = "NotificationModule:Call";
107
+ static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
108
+ static readonly STEP_SCHEMA_ACTION_ID = "87a396a9-9e82-494e-b3ad-643e0d1978c6";
109
+ static readonly AUTO_LINK_PARENT = false;
110
+ readonly actionName: string;
111
+ readonly schemaActionId: string;
112
+ readonly entity: string;
113
+ constructor(record: OdinRecord<any> | {
114
+ id: string;
115
+ entity: string;
116
+ type?: string;
117
+ }, properties: UpdateCallOnOutboundCallCompletedProperties, options?: {
118
+ journeyId?: string;
119
+ stageKey?: string;
120
+ });
121
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallOnOutboundCallCompleted Action DTO
4
+ *
5
+ * Update call on outbound call completed
6
+ *
7
+ * @module NotificationModule
8
+ * @entity Call
9
+ * @actionKey UpdateCallOnOutboundCallCompleted
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallOnOutboundCallCompletedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallOnOutboundCallCompleted
19
+ *
20
+ * Update call on outbound call completed
21
+ *
22
+ * @actionType UPDATE - Updates an existing Call record
23
+ * @module NotificationModule
24
+ * @entity Call
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted
26
+ * @permission schema.action.updatecallonoutboundcallcompleted.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallOnOutboundCallCompletedDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdateCallOnOutboundCallCompleted';
40
+ this.schemaActionId = '87a396a9-9e82-494e-b3ad-643e0d1978c6';
41
+ this.entity = 'NotificationModule:Call';
42
+ }
43
+ }
44
+ exports.UpdateCallOnOutboundCallCompletedDto = UpdateCallOnOutboundCallCompletedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCallOnOutboundCallCompletedDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCallOnOutboundCallCompletedDto.ACTION_KEY = 'UpdateCallOnOutboundCallCompleted';
48
+ UpdateCallOnOutboundCallCompletedDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCallOnOutboundCallCompletedDto.ENTITIES = ['Call'];
50
+ UpdateCallOnOutboundCallCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted';
51
+ UpdateCallOnOutboundCallCompletedDto.PERMISSION = 'schema.action.updatecallonoutboundcallcompleted.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCallOnOutboundCallCompletedDto.STEP_ENTITY = 'NotificationModule:Call';
54
+ UpdateCallOnOutboundCallCompletedDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
55
+ UpdateCallOnOutboundCallCompletedDto.STEP_SCHEMA_ACTION_ID = '87a396a9-9e82-494e-b3ad-643e0d1978c6';
56
+ UpdateCallOnOutboundCallCompletedDto.AUTO_LINK_PARENT = false;
@@ -35,6 +35,8 @@ import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/Update
35
35
  import { UpdateCallOnInboundCallInitiatedProperties } from '../actions-v2/UpdateCallOnInboundCallInitiatedDto';
36
36
  import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCallOnInboundCallRingingDto';
37
37
  import { UpdateCallOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCallOnNumberCallStatusCompletedDto';
38
+ import { UpdateCallOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnOutboundCallAnsweredDto';
39
+ import { UpdateCallOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCallOnOutboundCallCompletedDto';
38
40
  import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
39
41
  import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
40
42
  import { LeadRecord } from './LeadRecord';
@@ -578,6 +580,59 @@ export declare class CallRecord<TProps = CallProperties> {
578
580
  journeyId?: string;
579
581
  stageKey?: string;
580
582
  }): ActionBuilder;
583
+ /**
584
+ * UpdateCallOnOutboundCallAnswered
585
+ *
586
+ * Updates this Call record.
587
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
588
+ *
589
+ * @param propertiesOrOptions - Properties to update, or options object
590
+ * @param options - Optional settings (journeyId, stageKey)
591
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
592
+ * @throws Error if called on a new (unsaved) record
593
+ *
594
+ * @example
595
+ * ```typescript
596
+ * const record = await odinClient.calls.get(id);
597
+ * await record.updateCallOnOutboundCallAnswered({ ... }).execute();
598
+ *
599
+ * // Dry run (for debugging)
600
+ * const payload = record.updateCallOnOutboundCallAnswered({ ... }).dryRun();
601
+ * ```
602
+ */
603
+ updateCallOnOutboundCallAnswered(propertiesOrOptions?: UpdateCallOnOutboundCallAnsweredProperties | {
604
+ journeyId?: string;
605
+ stageKey?: string;
606
+ }, options?: {
607
+ journeyId?: string;
608
+ stageKey?: string;
609
+ }): ActionBuilder;
610
+ /**
611
+ * UpdateCallOnOutboundCallCompleted
612
+ *
613
+ * Updates this Call record with the specified properties.
614
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
615
+ *
616
+ * @param properties - Required properties for this action
617
+ * @param options - Optional settings
618
+ * @param options.journeyId - Associate with a journey
619
+ * @param options.stageKey - Transition to pipeline stage
620
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
621
+ * @throws Error if called on a new (unsaved) record
622
+ *
623
+ * @example
624
+ * ```typescript
625
+ * const record = await odinClient.calls.get(id);
626
+ * await record.updateCallOnOutboundCallCompleted({ ... }).execute();
627
+ *
628
+ * // Dry run (for debugging)
629
+ * const payload = record.updateCallOnOutboundCallCompleted({ ... }).dryRun();
630
+ * ```
631
+ */
632
+ updateCallOnOutboundCallCompleted(properties: UpdateCallOnOutboundCallCompletedProperties, options?: {
633
+ journeyId?: string;
634
+ stageKey?: string;
635
+ }): ActionBuilder;
581
636
  /**
582
637
  * UpdateCallOnTaskRouterAssign
583
638
  *
@@ -754,6 +754,72 @@ class CallRecord {
754
754
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnNumberCallStatusCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
755
755
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
756
756
  }
757
+ /**
758
+ * UpdateCallOnOutboundCallAnswered
759
+ *
760
+ * Updates this Call record.
761
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
762
+ *
763
+ * @param propertiesOrOptions - Properties to update, or options object
764
+ * @param options - Optional settings (journeyId, stageKey)
765
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
766
+ * @throws Error if called on a new (unsaved) record
767
+ *
768
+ * @example
769
+ * ```typescript
770
+ * const record = await odinClient.calls.get(id);
771
+ * await record.updateCallOnOutboundCallAnswered({ ... }).execute();
772
+ *
773
+ * // Dry run (for debugging)
774
+ * const payload = record.updateCallOnOutboundCallAnswered({ ... }).dryRun();
775
+ * ```
776
+ */
777
+ updateCallOnOutboundCallAnswered(propertiesOrOptions, options) {
778
+ var _a;
779
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
780
+ throw new Error('updateCallOnOutboundCallAnswered requires an existing record. Use accessor.get() first.');
781
+ let properties = {};
782
+ let opts = options;
783
+ if (propertiesOrOptions) {
784
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
785
+ opts = propertiesOrOptions;
786
+ }
787
+ else {
788
+ properties = propertiesOrOptions;
789
+ }
790
+ }
791
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnOutboundCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
792
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
793
+ }
794
+ /**
795
+ * UpdateCallOnOutboundCallCompleted
796
+ *
797
+ * Updates this Call record with the specified properties.
798
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
799
+ *
800
+ * @param properties - Required properties for this action
801
+ * @param options - Optional settings
802
+ * @param options.journeyId - Associate with a journey
803
+ * @param options.stageKey - Transition to pipeline stage
804
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
805
+ * @throws Error if called on a new (unsaved) record
806
+ *
807
+ * @example
808
+ * ```typescript
809
+ * const record = await odinClient.calls.get(id);
810
+ * await record.updateCallOnOutboundCallCompleted({ ... }).execute();
811
+ *
812
+ * // Dry run (for debugging)
813
+ * const payload = record.updateCallOnOutboundCallCompleted({ ... }).dryRun();
814
+ * ```
815
+ */
816
+ updateCallOnOutboundCallCompleted(properties, options) {
817
+ var _a;
818
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
819
+ throw new Error('updateCallOnOutboundCallCompleted requires an existing record. Use accessor.get() first.');
820
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
821
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
822
+ }
757
823
  /**
758
824
  * UpdateCallOnTaskRouterAssign
759
825
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.120",
3
+ "version": "2.0.121",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",