@d19n/youfibre-odin-sdk 2.0.138 → 2.0.140

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.
Files changed (27) hide show
  1. package/README.md +5 -9
  2. package/dist/actions-v2/{UpdateAgentCallLegOnOutboundCallFailedDto.d.ts → UpdateAgentCallLegOnOutboundDialActionDto.d.ts} +19 -19
  3. package/dist/actions-v2/UpdateAgentCallLegOnOutboundDialActionDto.js +56 -0
  4. package/dist/actions-v2/{UpdateCallOnNumberCallStatusCompletedDto.d.ts → UpdateCallOnNumberCallStatusDto.d.ts} +28 -36
  5. package/dist/actions-v2/UpdateCallOnNumberCallStatusDto.js +56 -0
  6. package/dist/actions-v2/UpdateCallOnOutboundDialActionDto.d.ts +89 -0
  7. package/dist/actions-v2/UpdateCallOnOutboundDialActionDto.js +56 -0
  8. package/dist/actions-v2/{UpdateCustomerCallLegOnNumberCallStatusCompletedDto.d.ts → UpdateCustomerCallLegOnNumberCallStatusDto.d.ts} +28 -29
  9. package/dist/actions-v2/UpdateCustomerCallLegOnNumberCallStatusDto.js +56 -0
  10. package/dist/records-v2/CallLegRecord.d.ts +14 -149
  11. package/dist/records-v2/CallLegRecord.js +18 -163
  12. package/dist/records-v2/CallRecord.d.ts +32 -5
  13. package/dist/records-v2/CallRecord.js +35 -6
  14. package/package.json +1 -1
  15. package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto.d.ts +0 -88
  16. package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto.js +0 -56
  17. package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto.js +0 -56
  18. package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallNoAnswerDto.d.ts +0 -88
  19. package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallNoAnswerDto.js +0 -56
  20. package/dist/actions-v2/UpdateCallOnNumberCallStatusCompletedDto.js +0 -56
  21. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCanceledDto.d.ts +0 -81
  22. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallCanceledDto.js +0 -56
  23. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallFailedDto.d.ts +0 -81
  24. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallFailedDto.js +0 -56
  25. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto.d.ts +0 -81
  26. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto.js +0 -56
  27. package/dist/actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto.js +0 -56
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCustomerCallLegOnNumberCallStatus Action DTO
4
+ *
5
+ * Update customer call leg on number call status
6
+ *
7
+ * @module NotificationModule
8
+ * @entity CallLeg
9
+ * @actionKey UpdateCustomerCallLegOnNumberCallStatus
10
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatus
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCustomerCallLegOnNumberCallStatusDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCustomerCallLegOnNumberCallStatus
19
+ *
20
+ * Update customer call leg on number call status
21
+ *
22
+ * @actionType UPDATE - Updates an existing CallLeg record
23
+ * @module NotificationModule
24
+ * @entity CallLeg
25
+ * @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatus
26
+ * @permission schema.action.updatecustomercalllegonnumbercallstatus.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCustomerCallLegOnNumberCallStatusDto 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 = 'UpdateCustomerCallLegOnNumberCallStatus';
40
+ this.schemaActionId = '7109ef7e-31e9-488c-a7f5-18427c7003d2';
41
+ this.entity = 'NotificationModule:CallLeg';
42
+ }
43
+ }
44
+ exports.UpdateCustomerCallLegOnNumberCallStatusDto = UpdateCustomerCallLegOnNumberCallStatusDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCustomerCallLegOnNumberCallStatusDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCustomerCallLegOnNumberCallStatusDto.ACTION_KEY = 'UpdateCustomerCallLegOnNumberCallStatus';
48
+ UpdateCustomerCallLegOnNumberCallStatusDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCustomerCallLegOnNumberCallStatusDto.ENTITIES = ['CallLeg'];
50
+ UpdateCustomerCallLegOnNumberCallStatusDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatus';
51
+ UpdateCustomerCallLegOnNumberCallStatusDto.PERMISSION = 'schema.action.updatecustomercalllegonnumbercallstatus.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCustomerCallLegOnNumberCallStatusDto.STEP_ENTITY = 'NotificationModule:CallLeg';
54
+ UpdateCustomerCallLegOnNumberCallStatusDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
55
+ UpdateCustomerCallLegOnNumberCallStatusDto.STEP_SCHEMA_ACTION_ID = '7109ef7e-31e9-488c-a7f5-18427c7003d2';
56
+ UpdateCustomerCallLegOnNumberCallStatusDto.AUTO_LINK_PARENT = false;
@@ -32,18 +32,13 @@ import { UpdateAgentCallLegOnIncomingCallFailedProperties } from '../actions-v2/
32
32
  import { UpdateAgentCallLegOnIncomingCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallNoAnswerDto';
33
33
  import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
34
34
  import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto';
35
- import { UpdateAgentCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto';
36
- import { UpdateAgentCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto';
37
- import { UpdateAgentCallLegOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallNoAnswerDto';
38
35
  import { UpdateAgentCallLegOnOutboundCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallRingingDto';
36
+ import { UpdateAgentCallLegOnOutboundDialActionProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundDialActionDto';
39
37
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
40
38
  import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
41
- import { UpdateCustomerCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallCanceledDto';
42
39
  import { UpdateCustomerCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallCompletedDto';
43
- import { UpdateCustomerCallLegOnIncomingCallFailedProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallFailedDto';
44
- import { UpdateCustomerCallLegOnIncomingCallNoAnswerProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto';
45
40
  import { UpdateCustomerCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallRingingDto';
46
- import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
41
+ import { UpdateCustomerCallLegOnNumberCallStatusProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusDto';
47
42
  import { UpdateCustomerCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallAnsweredDto';
48
43
  import { UpdateCustomerCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallCompletedDto';
49
44
  import { UpdateCustomerCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallFailedDto';
@@ -475,59 +470,7 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
475
470
  stageKey?: string;
476
471
  }): ActionBuilder;
477
472
  /**
478
- * UpdateAgentCallLegOnOutboundCallCompleted
479
- *
480
- * Updates this CallLeg record with the specified properties.
481
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
482
- *
483
- * @param properties - Required properties for this action
484
- * @param options - Optional settings
485
- * @param options.journeyId - Associate with a journey
486
- * @param options.stageKey - Transition to pipeline stage
487
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
488
- * @throws Error if called on a new (unsaved) record
489
- *
490
- * @example
491
- * ```typescript
492
- * const record = await odinClient.callLegs.get(id);
493
- * await record.updateAgentCallLegOnOutboundCallCompleted({ ... }).execute();
494
- *
495
- * // Dry run (for debugging)
496
- * const payload = record.updateAgentCallLegOnOutboundCallCompleted({ ... }).dryRun();
497
- * ```
498
- */
499
- updateAgentCallLegOnOutboundCallCompleted(properties: UpdateAgentCallLegOnOutboundCallCompletedProperties, options?: {
500
- journeyId?: string;
501
- stageKey?: string;
502
- }): ActionBuilder;
503
- /**
504
- * UpdateAgentCallLegOnOutboundCallFailed
505
- *
506
- * Updates this CallLeg record with the specified properties.
507
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
508
- *
509
- * @param properties - Required properties for this action
510
- * @param options - Optional settings
511
- * @param options.journeyId - Associate with a journey
512
- * @param options.stageKey - Transition to pipeline stage
513
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
514
- * @throws Error if called on a new (unsaved) record
515
- *
516
- * @example
517
- * ```typescript
518
- * const record = await odinClient.callLegs.get(id);
519
- * await record.updateAgentCallLegOnOutboundCallFailed({ ... }).execute();
520
- *
521
- * // Dry run (for debugging)
522
- * const payload = record.updateAgentCallLegOnOutboundCallFailed({ ... }).dryRun();
523
- * ```
524
- */
525
- updateAgentCallLegOnOutboundCallFailed(properties: UpdateAgentCallLegOnOutboundCallFailedProperties, options?: {
526
- journeyId?: string;
527
- stageKey?: string;
528
- }): ActionBuilder;
529
- /**
530
- * UpdateAgentCallLegOnOutboundCallNoAnswer
473
+ * UpdateAgentCallLegOnOutboundCallRinging
531
474
  *
532
475
  * Updates this CallLeg record with the specified properties.
533
476
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
@@ -542,18 +485,18 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
542
485
  * @example
543
486
  * ```typescript
544
487
  * const record = await odinClient.callLegs.get(id);
545
- * await record.updateAgentCallLegOnOutboundCallNoAnswer({ ... }).execute();
488
+ * await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
546
489
  *
547
490
  * // Dry run (for debugging)
548
- * const payload = record.updateAgentCallLegOnOutboundCallNoAnswer({ ... }).dryRun();
491
+ * const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
549
492
  * ```
550
493
  */
551
- updateAgentCallLegOnOutboundCallNoAnswer(properties: UpdateAgentCallLegOnOutboundCallNoAnswerProperties, options?: {
494
+ updateAgentCallLegOnOutboundCallRinging(properties: UpdateAgentCallLegOnOutboundCallRingingProperties, options?: {
552
495
  journeyId?: string;
553
496
  stageKey?: string;
554
497
  }): ActionBuilder;
555
498
  /**
556
- * UpdateAgentCallLegOnOutboundCallRinging
499
+ * UpdateAgentCallLegOnOutboundDialAction
557
500
  *
558
501
  * Updates this CallLeg record with the specified properties.
559
502
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
@@ -568,13 +511,13 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
568
511
  * @example
569
512
  * ```typescript
570
513
  * const record = await odinClient.callLegs.get(id);
571
- * await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
514
+ * await record.updateAgentCallLegOnOutboundDialAction({ ... }).execute();
572
515
  *
573
516
  * // Dry run (for debugging)
574
- * const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
517
+ * const payload = record.updateAgentCallLegOnOutboundDialAction({ ... }).dryRun();
575
518
  * ```
576
519
  */
577
- updateAgentCallLegOnOutboundCallRinging(properties: UpdateAgentCallLegOnOutboundCallRingingProperties, options?: {
520
+ updateAgentCallLegOnOutboundDialAction(properties: UpdateAgentCallLegOnOutboundDialActionProperties, options?: {
578
521
  journeyId?: string;
579
522
  stageKey?: string;
580
523
  }): ActionBuilder;
@@ -631,32 +574,6 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
631
574
  journeyId?: string;
632
575
  stageKey?: string;
633
576
  }): ActionBuilder;
634
- /**
635
- * UpdateCustomerCallLegOnIncomingCallCanceled
636
- *
637
- * Updates this CallLeg record with the specified properties.
638
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
639
- *
640
- * @param properties - Required properties for this action
641
- * @param options - Optional settings
642
- * @param options.journeyId - Associate with a journey
643
- * @param options.stageKey - Transition to pipeline stage
644
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
645
- * @throws Error if called on a new (unsaved) record
646
- *
647
- * @example
648
- * ```typescript
649
- * const record = await odinClient.callLegs.get(id);
650
- * await record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).execute();
651
- *
652
- * // Dry run (for debugging)
653
- * const payload = record.updateCustomerCallLegOnIncomingCallCanceled({ ... }).dryRun();
654
- * ```
655
- */
656
- updateCustomerCallLegOnIncomingCallCanceled(properties: UpdateCustomerCallLegOnIncomingCallCanceledProperties, options?: {
657
- journeyId?: string;
658
- stageKey?: string;
659
- }): ActionBuilder;
660
577
  /**
661
578
  * UpdateCustomerCallLegOnIncomingCallCompleted
662
579
  *
@@ -683,58 +600,6 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
683
600
  journeyId?: string;
684
601
  stageKey?: string;
685
602
  }): ActionBuilder;
686
- /**
687
- * UpdateCustomerCallLegOnIncomingCallFailed
688
- *
689
- * Updates this CallLeg record with the specified properties.
690
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
691
- *
692
- * @param properties - Required properties for this action
693
- * @param options - Optional settings
694
- * @param options.journeyId - Associate with a journey
695
- * @param options.stageKey - Transition to pipeline stage
696
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
697
- * @throws Error if called on a new (unsaved) record
698
- *
699
- * @example
700
- * ```typescript
701
- * const record = await odinClient.callLegs.get(id);
702
- * await record.updateCustomerCallLegOnIncomingCallFailed({ ... }).execute();
703
- *
704
- * // Dry run (for debugging)
705
- * const payload = record.updateCustomerCallLegOnIncomingCallFailed({ ... }).dryRun();
706
- * ```
707
- */
708
- updateCustomerCallLegOnIncomingCallFailed(properties: UpdateCustomerCallLegOnIncomingCallFailedProperties, options?: {
709
- journeyId?: string;
710
- stageKey?: string;
711
- }): ActionBuilder;
712
- /**
713
- * UpdateCustomerCallLegOnIncomingCallNoAnswer
714
- *
715
- * Updates this CallLeg record with the specified properties.
716
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
717
- *
718
- * @param properties - Required properties for this action
719
- * @param options - Optional settings
720
- * @param options.journeyId - Associate with a journey
721
- * @param options.stageKey - Transition to pipeline stage
722
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
723
- * @throws Error if called on a new (unsaved) record
724
- *
725
- * @example
726
- * ```typescript
727
- * const record = await odinClient.callLegs.get(id);
728
- * await record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).execute();
729
- *
730
- * // Dry run (for debugging)
731
- * const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
732
- * ```
733
- */
734
- updateCustomerCallLegOnIncomingCallNoAnswer(properties: UpdateCustomerCallLegOnIncomingCallNoAnswerProperties, options?: {
735
- journeyId?: string;
736
- stageKey?: string;
737
- }): ActionBuilder;
738
603
  /**
739
604
  * UpdateCustomerCallLegOnIncomingCallRinging
740
605
  *
@@ -762,7 +627,7 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
762
627
  stageKey?: string;
763
628
  }): ActionBuilder;
764
629
  /**
765
- * UpdateCustomerCallLegOnNumberCallStatusCompleted
630
+ * UpdateCustomerCallLegOnNumberCallStatus
766
631
  *
767
632
  * Updates this CallLeg record with the specified properties.
768
633
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
@@ -777,13 +642,13 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
777
642
  * @example
778
643
  * ```typescript
779
644
  * const record = await odinClient.callLegs.get(id);
780
- * await record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).execute();
645
+ * await record.updateCustomerCallLegOnNumberCallStatus({ ... }).execute();
781
646
  *
782
647
  * // Dry run (for debugging)
783
- * const payload = record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).dryRun();
648
+ * const payload = record.updateCustomerCallLegOnNumberCallStatus({ ... }).dryRun();
784
649
  * ```
785
650
  */
786
- updateCustomerCallLegOnNumberCallStatusCompleted(properties: UpdateCustomerCallLegOnNumberCallStatusCompletedProperties, options?: {
651
+ updateCustomerCallLegOnNumberCallStatus(properties: UpdateCustomerCallLegOnNumberCallStatusProperties, options?: {
787
652
  journeyId?: string;
788
653
  stageKey?: string;
789
654
  }): ActionBuilder;
@@ -571,65 +571,7 @@ class CallLegRecord {
571
571
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
572
572
  }
573
573
  /**
574
- * UpdateAgentCallLegOnOutboundCallCompleted
575
- *
576
- * Updates this CallLeg record with the specified properties.
577
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
578
- *
579
- * @param properties - Required properties for this action
580
- * @param options - Optional settings
581
- * @param options.journeyId - Associate with a journey
582
- * @param options.stageKey - Transition to pipeline stage
583
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
584
- * @throws Error if called on a new (unsaved) record
585
- *
586
- * @example
587
- * ```typescript
588
- * const record = await odinClient.callLegs.get(id);
589
- * await record.updateAgentCallLegOnOutboundCallCompleted({ ... }).execute();
590
- *
591
- * // Dry run (for debugging)
592
- * const payload = record.updateAgentCallLegOnOutboundCallCompleted({ ... }).dryRun();
593
- * ```
594
- */
595
- updateAgentCallLegOnOutboundCallCompleted(properties, options) {
596
- var _a;
597
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
598
- throw new Error('updateAgentCallLegOnOutboundCallCompleted requires an existing record. Use accessor.get() first.');
599
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
600
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
601
- }
602
- /**
603
- * UpdateAgentCallLegOnOutboundCallFailed
604
- *
605
- * Updates this CallLeg record with the specified properties.
606
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
607
- *
608
- * @param properties - Required properties for this action
609
- * @param options - Optional settings
610
- * @param options.journeyId - Associate with a journey
611
- * @param options.stageKey - Transition to pipeline stage
612
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
613
- * @throws Error if called on a new (unsaved) record
614
- *
615
- * @example
616
- * ```typescript
617
- * const record = await odinClient.callLegs.get(id);
618
- * await record.updateAgentCallLegOnOutboundCallFailed({ ... }).execute();
619
- *
620
- * // Dry run (for debugging)
621
- * const payload = record.updateAgentCallLegOnOutboundCallFailed({ ... }).dryRun();
622
- * ```
623
- */
624
- updateAgentCallLegOnOutboundCallFailed(properties, options) {
625
- var _a;
626
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
627
- throw new Error('updateAgentCallLegOnOutboundCallFailed requires an existing record. Use accessor.get() first.');
628
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
629
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
630
- }
631
- /**
632
- * UpdateAgentCallLegOnOutboundCallNoAnswer
574
+ * UpdateAgentCallLegOnOutboundCallRinging
633
575
  *
634
576
  * Updates this CallLeg record with the specified properties.
635
577
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
@@ -644,21 +586,21 @@ class CallLegRecord {
644
586
  * @example
645
587
  * ```typescript
646
588
  * const record = await odinClient.callLegs.get(id);
647
- * await record.updateAgentCallLegOnOutboundCallNoAnswer({ ... }).execute();
589
+ * await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
648
590
  *
649
591
  * // Dry run (for debugging)
650
- * const payload = record.updateAgentCallLegOnOutboundCallNoAnswer({ ... }).dryRun();
592
+ * const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
651
593
  * ```
652
594
  */
653
- updateAgentCallLegOnOutboundCallNoAnswer(properties, options) {
595
+ updateAgentCallLegOnOutboundCallRinging(properties, options) {
654
596
  var _a;
655
597
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
656
- throw new Error('updateAgentCallLegOnOutboundCallNoAnswer requires an existing record. Use accessor.get() first.');
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);
598
+ throw new Error('updateAgentCallLegOnOutboundCallRinging requires an existing record. Use accessor.get() first.');
599
+ 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);
658
600
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
659
601
  }
660
602
  /**
661
- * UpdateAgentCallLegOnOutboundCallRinging
603
+ * UpdateAgentCallLegOnOutboundDialAction
662
604
  *
663
605
  * Updates this CallLeg record with the specified properties.
664
606
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
@@ -673,17 +615,17 @@ class CallLegRecord {
673
615
  * @example
674
616
  * ```typescript
675
617
  * const record = await odinClient.callLegs.get(id);
676
- * await record.updateAgentCallLegOnOutboundCallRinging({ ... }).execute();
618
+ * await record.updateAgentCallLegOnOutboundDialAction({ ... }).execute();
677
619
  *
678
620
  * // Dry run (for debugging)
679
- * const payload = record.updateAgentCallLegOnOutboundCallRinging({ ... }).dryRun();
621
+ * const payload = record.updateAgentCallLegOnOutboundDialAction({ ... }).dryRun();
680
622
  * ```
681
623
  */
682
- updateAgentCallLegOnOutboundCallRinging(properties, options) {
624
+ updateAgentCallLegOnOutboundDialAction(properties, options) {
683
625
  var _a;
684
626
  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);
627
+ throw new Error('updateAgentCallLegOnOutboundDialAction requires an existing record. Use accessor.get() first.');
628
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnOutboundDialAction', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
687
629
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
688
630
  }
689
631
  /**
@@ -752,35 +694,6 @@ class CallLegRecord {
752
694
  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);
753
695
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
754
696
  }
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
697
  /**
785
698
  * UpdateCustomerCallLegOnIncomingCallCompleted
786
699
  *
@@ -810,64 +723,6 @@ class CallLegRecord {
810
723
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
811
724
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
812
725
  }
813
- /**
814
- * UpdateCustomerCallLegOnIncomingCallFailed
815
- *
816
- * Updates this CallLeg record with the specified properties.
817
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
818
- *
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
823
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
824
- * @throws Error if called on a new (unsaved) record
825
- *
826
- * @example
827
- * ```typescript
828
- * const record = await odinClient.callLegs.get(id);
829
- * await record.updateCustomerCallLegOnIncomingCallFailed({ ... }).execute();
830
- *
831
- * // Dry run (for debugging)
832
- * const payload = record.updateCustomerCallLegOnIncomingCallFailed({ ... }).dryRun();
833
- * ```
834
- */
835
- updateCustomerCallLegOnIncomingCallFailed(properties, options) {
836
- var _a;
837
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
838
- throw new Error('updateCustomerCallLegOnIncomingCallFailed requires an existing record. Use accessor.get() first.');
839
- 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);
840
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
841
- }
842
- /**
843
- * UpdateCustomerCallLegOnIncomingCallNoAnswer
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.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).execute();
859
- *
860
- * // Dry run (for debugging)
861
- * const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
862
- * ```
863
- */
864
- updateCustomerCallLegOnIncomingCallNoAnswer(properties, options) {
865
- var _a;
866
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
867
- throw new Error('updateCustomerCallLegOnIncomingCallNoAnswer 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: 'UpdateCustomerCallLegOnIncomingCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
869
- return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
870
- }
871
726
  /**
872
727
  * UpdateCustomerCallLegOnIncomingCallRinging
873
728
  *
@@ -898,7 +753,7 @@ class CallLegRecord {
898
753
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
899
754
  }
900
755
  /**
901
- * UpdateCustomerCallLegOnNumberCallStatusCompleted
756
+ * UpdateCustomerCallLegOnNumberCallStatus
902
757
  *
903
758
  * Updates this CallLeg record with the specified properties.
904
759
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
@@ -913,17 +768,17 @@ class CallLegRecord {
913
768
  * @example
914
769
  * ```typescript
915
770
  * const record = await odinClient.callLegs.get(id);
916
- * await record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).execute();
771
+ * await record.updateCustomerCallLegOnNumberCallStatus({ ... }).execute();
917
772
  *
918
773
  * // Dry run (for debugging)
919
- * const payload = record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).dryRun();
774
+ * const payload = record.updateCustomerCallLegOnNumberCallStatus({ ... }).dryRun();
920
775
  * ```
921
776
  */
922
- updateCustomerCallLegOnNumberCallStatusCompleted(properties, options) {
777
+ updateCustomerCallLegOnNumberCallStatus(properties, options) {
923
778
  var _a;
924
779
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
925
- throw new Error('updateCustomerCallLegOnNumberCallStatusCompleted requires an existing record. Use accessor.get() first.');
926
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnNumberCallStatusCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
780
+ throw new Error('updateCustomerCallLegOnNumberCallStatus 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: 'UpdateCustomerCallLegOnNumberCallStatus', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
927
782
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
928
783
  }
929
784
  /**
@@ -37,11 +37,12 @@ import { UpdateCallOnInboundCallFailedProperties } from '../actions-v2/UpdateCal
37
37
  import { UpdateCallOnInboundCallInitiatedProperties } from '../actions-v2/UpdateCallOnInboundCallInitiatedDto';
38
38
  import { UpdateCallOnInboundCallNoAnswerProperties } from '../actions-v2/UpdateCallOnInboundCallNoAnswerDto';
39
39
  import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCallOnInboundCallRingingDto';
40
- import { UpdateCallOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCallOnNumberCallStatusCompletedDto';
40
+ import { UpdateCallOnNumberCallStatusProperties } from '../actions-v2/UpdateCallOnNumberCallStatusDto';
41
41
  import { UpdateCallOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnOutboundCallAnsweredDto';
42
42
  import { UpdateCallOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCallOnOutboundCallCompletedDto';
43
43
  import { UpdateCallOnOutboundCallFailedProperties } from '../actions-v2/UpdateCallOnOutboundCallFailedDto';
44
44
  import { UpdateCallOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateCallOnOutboundCallNoAnswerDto';
45
+ import { UpdateCallOnOutboundDialActionProperties } from '../actions-v2/UpdateCallOnOutboundDialActionDto';
45
46
  import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
46
47
  import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
47
48
  import { LeadRecord } from './LeadRecord';
@@ -638,7 +639,7 @@ export declare class CallRecord<TProps = CallProperties> {
638
639
  stageKey?: string;
639
640
  }): ActionBuilder;
640
641
  /**
641
- * UpdateCallOnNumberCallStatusCompleted
642
+ * UpdateCallOnNumberCallStatus
642
643
  *
643
644
  * Updates this Call record with the specified properties.
644
645
  * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
@@ -653,13 +654,13 @@ export declare class CallRecord<TProps = CallProperties> {
653
654
  * @example
654
655
  * ```typescript
655
656
  * const record = await odinClient.calls.get(id);
656
- * await record.updateCallOnNumberCallStatusCompleted({ ... }).execute();
657
+ * await record.updateCallOnNumberCallStatus({ ... }).execute();
657
658
  *
658
659
  * // Dry run (for debugging)
659
- * const payload = record.updateCallOnNumberCallStatusCompleted({ ... }).dryRun();
660
+ * const payload = record.updateCallOnNumberCallStatus({ ... }).dryRun();
660
661
  * ```
661
662
  */
662
- updateCallOnNumberCallStatusCompleted(properties: UpdateCallOnNumberCallStatusCompletedProperties, options?: {
663
+ updateCallOnNumberCallStatus(properties: UpdateCallOnNumberCallStatusProperties, options?: {
663
664
  journeyId?: string;
664
665
  stageKey?: string;
665
666
  }): ActionBuilder;
@@ -768,6 +769,32 @@ export declare class CallRecord<TProps = CallProperties> {
768
769
  journeyId?: string;
769
770
  stageKey?: string;
770
771
  }): ActionBuilder;
772
+ /**
773
+ * UpdateCallOnOutboundDialAction
774
+ *
775
+ * Updates this Call record with the specified properties.
776
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
777
+ *
778
+ * @param properties - Required properties for this action
779
+ * @param options - Optional settings
780
+ * @param options.journeyId - Associate with a journey
781
+ * @param options.stageKey - Transition to pipeline stage
782
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
783
+ * @throws Error if called on a new (unsaved) record
784
+ *
785
+ * @example
786
+ * ```typescript
787
+ * const record = await odinClient.calls.get(id);
788
+ * await record.updateCallOnOutboundDialAction({ ... }).execute();
789
+ *
790
+ * // Dry run (for debugging)
791
+ * const payload = record.updateCallOnOutboundDialAction({ ... }).dryRun();
792
+ * ```
793
+ */
794
+ updateCallOnOutboundDialAction(properties: UpdateCallOnOutboundDialActionProperties, options?: {
795
+ journeyId?: string;
796
+ stageKey?: string;
797
+ }): ActionBuilder;
771
798
  /**
772
799
  * UpdateCallOnTaskRouterAssign
773
800
  *