@d19n/youfibre-odin-sdk 2.0.127 → 2.0.129

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 (36) hide show
  1. package/README.md +24 -1
  2. package/dist/actions-v2/MoveAccountCreditToCancelledDto.d.ts +115 -0
  3. package/dist/actions-v2/MoveAccountCreditToCancelledDto.js +80 -0
  4. package/dist/actions-v2/MoveAccountCreditToCompleteDto.d.ts +115 -0
  5. package/dist/actions-v2/MoveAccountCreditToCompleteDto.js +80 -0
  6. package/dist/actions-v2/MoveAccountCreditToInProgressDto.d.ts +115 -0
  7. package/dist/actions-v2/MoveAccountCreditToInProgressDto.js +80 -0
  8. package/dist/actions-v2/MoveAccountCreditToPendingDto.d.ts +115 -0
  9. package/dist/actions-v2/MoveAccountCreditToPendingDto.js +80 -0
  10. package/dist/actions-v2/MoveAccountCreditToVoidDto.d.ts +115 -0
  11. package/dist/actions-v2/MoveAccountCreditToVoidDto.js +80 -0
  12. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallFailedDto.d.ts +81 -0
  13. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallFailedDto.js +56 -0
  14. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallNoAnswerDto.d.ts +81 -0
  15. package/dist/actions-v2/UpdateAgentCallLegOnIncomingCallNoAnswerDto.js +56 -0
  16. package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto.d.ts +88 -0
  17. package/dist/actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto.js +56 -0
  18. package/dist/actions-v2/UpdateCallOnInboundCallFailedDto.d.ts +97 -0
  19. package/dist/actions-v2/UpdateCallOnInboundCallFailedDto.js +56 -0
  20. package/dist/actions-v2/UpdateCallOnInboundCallNoAnswerDto.d.ts +97 -0
  21. package/dist/actions-v2/UpdateCallOnInboundCallNoAnswerDto.js +56 -0
  22. package/dist/actions-v2/UpdateCallOnOutboundCallFailedDto.d.ts +97 -0
  23. package/dist/actions-v2/UpdateCallOnOutboundCallFailedDto.js +56 -0
  24. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto.d.ts +63 -0
  25. package/dist/actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto.js +56 -0
  26. package/dist/actions-v2/UpdateCustomerCallLegOnOutboundCallFailedDto.d.ts +88 -0
  27. package/dist/actions-v2/UpdateCustomerCallLegOnOutboundCallFailedDto.js +56 -0
  28. package/dist/entities-v2/AccountCredit.d.ts +1 -1
  29. package/dist/entities-v2/AccountCredit.js +1 -1
  30. package/dist/records-v2/AccountCreditRecord.d.ts +125 -0
  31. package/dist/records-v2/AccountCreditRecord.js +145 -0
  32. package/dist/records-v2/CallLegRecord.d.ts +136 -0
  33. package/dist/records-v2/CallLegRecord.js +153 -0
  34. package/dist/records-v2/CallRecord.d.ts +81 -0
  35. package/dist/records-v2/CallRecord.js +87 -0
  36. package/package.json +1 -1
@@ -28,15 +28,20 @@ import { CreateCustomerCallLegProperties } from '../actions-v2/CreateCustomerCal
28
28
  import { UpdateAgentCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallAnsweredDto';
29
29
  import { UpdateAgentCallLegOnIncomingCallCanceledProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCanceledDto';
30
30
  import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallCompletedDto';
31
+ import { UpdateAgentCallLegOnIncomingCallFailedProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallFailedDto';
32
+ import { UpdateAgentCallLegOnIncomingCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallNoAnswerDto';
31
33
  import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
32
34
  import { UpdateAgentCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallAnsweredDto';
33
35
  import { UpdateAgentCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallCompletedDto';
36
+ import { UpdateAgentCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallFailedDto';
34
37
  import { UpdateAgentCallLegOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateAgentCallLegOnOutboundCallNoAnswerDto';
35
38
  import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
36
39
  import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
40
+ import { UpdateCustomerCallLegOnIncomingCallNoAnswerProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallNoAnswerDto';
37
41
  import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
38
42
  import { UpdateCustomerCallLegOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallAnsweredDto';
39
43
  import { UpdateCustomerCallLegOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallCompletedDto';
44
+ import { UpdateCustomerCallLegOnOutboundCallFailedProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallFailedDto';
40
45
  import { UpdateCustomerCallLegOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallNoAnswerDto';
41
46
  import { UpdateCustomerCallLegOnOutboundCallRingingProperties } from '../actions-v2/UpdateCustomerCallLegOnOutboundCallRingingDto';
42
47
  import { CallRecord } from './CallRecord';
@@ -360,6 +365,58 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
360
365
  journeyId?: string;
361
366
  stageKey?: string;
362
367
  }): ActionBuilder;
368
+ /**
369
+ * UpdateAgentCallLegOnIncomingCallFailed
370
+ *
371
+ * Updates this CallLeg record with the specified properties.
372
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
373
+ *
374
+ * @param properties - Required properties for this action
375
+ * @param options - Optional settings
376
+ * @param options.journeyId - Associate with a journey
377
+ * @param options.stageKey - Transition to pipeline stage
378
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
379
+ * @throws Error if called on a new (unsaved) record
380
+ *
381
+ * @example
382
+ * ```typescript
383
+ * const record = await odinClient.callLegs.get(id);
384
+ * await record.updateAgentCallLegOnIncomingCallFailed({ ... }).execute();
385
+ *
386
+ * // Dry run (for debugging)
387
+ * const payload = record.updateAgentCallLegOnIncomingCallFailed({ ... }).dryRun();
388
+ * ```
389
+ */
390
+ updateAgentCallLegOnIncomingCallFailed(properties: UpdateAgentCallLegOnIncomingCallFailedProperties, options?: {
391
+ journeyId?: string;
392
+ stageKey?: string;
393
+ }): ActionBuilder;
394
+ /**
395
+ * UpdateAgentCallLegOnIncomingCallNoAnswer
396
+ *
397
+ * Updates this CallLeg record with the specified properties.
398
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
399
+ *
400
+ * @param properties - Required properties for this action
401
+ * @param options - Optional settings
402
+ * @param options.journeyId - Associate with a journey
403
+ * @param options.stageKey - Transition to pipeline stage
404
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
405
+ * @throws Error if called on a new (unsaved) record
406
+ *
407
+ * @example
408
+ * ```typescript
409
+ * const record = await odinClient.callLegs.get(id);
410
+ * await record.updateAgentCallLegOnIncomingCallNoAnswer({ ... }).execute();
411
+ *
412
+ * // Dry run (for debugging)
413
+ * const payload = record.updateAgentCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
414
+ * ```
415
+ */
416
+ updateAgentCallLegOnIncomingCallNoAnswer(properties: UpdateAgentCallLegOnIncomingCallNoAnswerProperties, options?: {
417
+ journeyId?: string;
418
+ stageKey?: string;
419
+ }): ActionBuilder;
363
420
  /**
364
421
  * UpdateAgentCallLegOnIncomingCallRinging
365
422
  *
@@ -438,6 +495,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
438
495
  journeyId?: string;
439
496
  stageKey?: string;
440
497
  }): ActionBuilder;
498
+ /**
499
+ * UpdateAgentCallLegOnOutboundCallFailed
500
+ *
501
+ * Updates this CallLeg record with the specified properties.
502
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
503
+ *
504
+ * @param properties - Required properties for this action
505
+ * @param options - Optional settings
506
+ * @param options.journeyId - Associate with a journey
507
+ * @param options.stageKey - Transition to pipeline stage
508
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
509
+ * @throws Error if called on a new (unsaved) record
510
+ *
511
+ * @example
512
+ * ```typescript
513
+ * const record = await odinClient.callLegs.get(id);
514
+ * await record.updateAgentCallLegOnOutboundCallFailed({ ... }).execute();
515
+ *
516
+ * // Dry run (for debugging)
517
+ * const payload = record.updateAgentCallLegOnOutboundCallFailed({ ... }).dryRun();
518
+ * ```
519
+ */
520
+ updateAgentCallLegOnOutboundCallFailed(properties: UpdateAgentCallLegOnOutboundCallFailedProperties, options?: {
521
+ journeyId?: string;
522
+ stageKey?: string;
523
+ }): ActionBuilder;
441
524
  /**
442
525
  * UpdateAgentCallLegOnOutboundCallNoAnswer
443
526
  *
@@ -517,6 +600,33 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
517
600
  journeyId?: string;
518
601
  stageKey?: string;
519
602
  }): ActionBuilder;
603
+ /**
604
+ * UpdateCustomerCallLegOnIncomingCallNoAnswer
605
+ *
606
+ * Updates this CallLeg record.
607
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
608
+ *
609
+ * @param propertiesOrOptions - Properties to update, or options object
610
+ * @param options - Optional settings (journeyId, stageKey)
611
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
612
+ * @throws Error if called on a new (unsaved) record
613
+ *
614
+ * @example
615
+ * ```typescript
616
+ * const record = await odinClient.callLegs.get(id);
617
+ * await record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).execute();
618
+ *
619
+ * // Dry run (for debugging)
620
+ * const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
621
+ * ```
622
+ */
623
+ updateCustomerCallLegOnIncomingCallNoAnswer(propertiesOrOptions?: UpdateCustomerCallLegOnIncomingCallNoAnswerProperties | {
624
+ journeyId?: string;
625
+ stageKey?: string;
626
+ }, options?: {
627
+ journeyId?: string;
628
+ stageKey?: string;
629
+ }): ActionBuilder;
520
630
  /**
521
631
  * UpdateCustomerCallLegOnNumberCallStatusCompleted
522
632
  *
@@ -596,6 +706,32 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
596
706
  journeyId?: string;
597
707
  stageKey?: string;
598
708
  }): ActionBuilder;
709
+ /**
710
+ * UpdateCustomerCallLegOnOutboundCallFailed
711
+ *
712
+ * Updates this CallLeg record with the specified properties.
713
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
714
+ *
715
+ * @param properties - Required properties for this action
716
+ * @param options - Optional settings
717
+ * @param options.journeyId - Associate with a journey
718
+ * @param options.stageKey - Transition to pipeline stage
719
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
720
+ * @throws Error if called on a new (unsaved) record
721
+ *
722
+ * @example
723
+ * ```typescript
724
+ * const record = await odinClient.callLegs.get(id);
725
+ * await record.updateCustomerCallLegOnOutboundCallFailed({ ... }).execute();
726
+ *
727
+ * // Dry run (for debugging)
728
+ * const payload = record.updateCustomerCallLegOnOutboundCallFailed({ ... }).dryRun();
729
+ * ```
730
+ */
731
+ updateCustomerCallLegOnOutboundCallFailed(properties: UpdateCustomerCallLegOnOutboundCallFailedProperties, options?: {
732
+ journeyId?: string;
733
+ stageKey?: string;
734
+ }): ActionBuilder;
599
735
  /**
600
736
  * UpdateCustomerCallLegOnOutboundCallNoAnswer
601
737
  *
@@ -454,6 +454,64 @@ class CallLegRecord {
454
454
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
455
455
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
456
456
  }
457
+ /**
458
+ * UpdateAgentCallLegOnIncomingCallFailed
459
+ *
460
+ * Updates this CallLeg record with the specified properties.
461
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
462
+ *
463
+ * @param properties - Required properties for this action
464
+ * @param options - Optional settings
465
+ * @param options.journeyId - Associate with a journey
466
+ * @param options.stageKey - Transition to pipeline stage
467
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
468
+ * @throws Error if called on a new (unsaved) record
469
+ *
470
+ * @example
471
+ * ```typescript
472
+ * const record = await odinClient.callLegs.get(id);
473
+ * await record.updateAgentCallLegOnIncomingCallFailed({ ... }).execute();
474
+ *
475
+ * // Dry run (for debugging)
476
+ * const payload = record.updateAgentCallLegOnIncomingCallFailed({ ... }).dryRun();
477
+ * ```
478
+ */
479
+ updateAgentCallLegOnIncomingCallFailed(properties, options) {
480
+ var _a;
481
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
482
+ throw new Error('updateAgentCallLegOnIncomingCallFailed requires an existing record. Use accessor.get() first.');
483
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
484
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
485
+ }
486
+ /**
487
+ * UpdateAgentCallLegOnIncomingCallNoAnswer
488
+ *
489
+ * Updates this CallLeg record with the specified properties.
490
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
491
+ *
492
+ * @param properties - Required properties for this action
493
+ * @param options - Optional settings
494
+ * @param options.journeyId - Associate with a journey
495
+ * @param options.stageKey - Transition to pipeline stage
496
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
497
+ * @throws Error if called on a new (unsaved) record
498
+ *
499
+ * @example
500
+ * ```typescript
501
+ * const record = await odinClient.callLegs.get(id);
502
+ * await record.updateAgentCallLegOnIncomingCallNoAnswer({ ... }).execute();
503
+ *
504
+ * // Dry run (for debugging)
505
+ * const payload = record.updateAgentCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
506
+ * ```
507
+ */
508
+ updateAgentCallLegOnIncomingCallNoAnswer(properties, options) {
509
+ var _a;
510
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
511
+ throw new Error('updateAgentCallLegOnIncomingCallNoAnswer requires an existing record. Use accessor.get() first.');
512
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAgentCallLegOnIncomingCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
513
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
514
+ }
457
515
  /**
458
516
  * UpdateAgentCallLegOnIncomingCallRinging
459
517
  *
@@ -541,6 +599,35 @@ class CallLegRecord {
541
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);
542
600
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
543
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
+ }
544
631
  /**
545
632
  * UpdateAgentCallLegOnOutboundCallNoAnswer
546
633
  *
@@ -636,6 +723,43 @@ class CallLegRecord {
636
723
  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);
637
724
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
638
725
  }
726
+ /**
727
+ * UpdateCustomerCallLegOnIncomingCallNoAnswer
728
+ *
729
+ * Updates this CallLeg record.
730
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
731
+ *
732
+ * @param propertiesOrOptions - Properties to update, or options object
733
+ * @param options - Optional settings (journeyId, stageKey)
734
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
735
+ * @throws Error if called on a new (unsaved) record
736
+ *
737
+ * @example
738
+ * ```typescript
739
+ * const record = await odinClient.callLegs.get(id);
740
+ * await record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).execute();
741
+ *
742
+ * // Dry run (for debugging)
743
+ * const payload = record.updateCustomerCallLegOnIncomingCallNoAnswer({ ... }).dryRun();
744
+ * ```
745
+ */
746
+ updateCustomerCallLegOnIncomingCallNoAnswer(propertiesOrOptions, options) {
747
+ var _a;
748
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
749
+ 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);
761
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
762
+ }
639
763
  /**
640
764
  * UpdateCustomerCallLegOnNumberCallStatusCompleted
641
765
  *
@@ -731,6 +855,35 @@ class CallLegRecord {
731
855
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
732
856
  return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
733
857
  }
858
+ /**
859
+ * UpdateCustomerCallLegOnOutboundCallFailed
860
+ *
861
+ * Updates this CallLeg record with the specified properties.
862
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
863
+ *
864
+ * @param properties - Required properties for this action
865
+ * @param options - Optional settings
866
+ * @param options.journeyId - Associate with a journey
867
+ * @param options.stageKey - Transition to pipeline stage
868
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
869
+ * @throws Error if called on a new (unsaved) record
870
+ *
871
+ * @example
872
+ * ```typescript
873
+ * const record = await odinClient.callLegs.get(id);
874
+ * await record.updateCustomerCallLegOnOutboundCallFailed({ ... }).execute();
875
+ *
876
+ * // Dry run (for debugging)
877
+ * const payload = record.updateCustomerCallLegOnOutboundCallFailed({ ... }).dryRun();
878
+ * ```
879
+ */
880
+ updateCustomerCallLegOnOutboundCallFailed(properties, options) {
881
+ var _a;
882
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
883
+ throw new Error('updateCustomerCallLegOnOutboundCallFailed requires an existing record. Use accessor.get() first.');
884
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnOutboundCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
885
+ return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
886
+ }
734
887
  /**
735
888
  * UpdateCustomerCallLegOnOutboundCallNoAnswer
736
889
  *
@@ -33,11 +33,14 @@ import { UpdateCallAnalyticsProperties } from '../actions-v2/UpdateCallAnalytics
33
33
  import { UpdateCallOnInboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnInboundCallAnsweredDto';
34
34
  import { UpdateCallOnInboundCallCanceledProperties } from '../actions-v2/UpdateCallOnInboundCallCanceledDto';
35
35
  import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
36
+ import { UpdateCallOnInboundCallFailedProperties } from '../actions-v2/UpdateCallOnInboundCallFailedDto';
36
37
  import { UpdateCallOnInboundCallInitiatedProperties } from '../actions-v2/UpdateCallOnInboundCallInitiatedDto';
38
+ import { UpdateCallOnInboundCallNoAnswerProperties } from '../actions-v2/UpdateCallOnInboundCallNoAnswerDto';
37
39
  import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCallOnInboundCallRingingDto';
38
40
  import { UpdateCallOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCallOnNumberCallStatusCompletedDto';
39
41
  import { UpdateCallOnOutboundCallAnsweredProperties } from '../actions-v2/UpdateCallOnOutboundCallAnsweredDto';
40
42
  import { UpdateCallOnOutboundCallCompletedProperties } from '../actions-v2/UpdateCallOnOutboundCallCompletedDto';
43
+ import { UpdateCallOnOutboundCallFailedProperties } from '../actions-v2/UpdateCallOnOutboundCallFailedDto';
41
44
  import { UpdateCallOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateCallOnOutboundCallNoAnswerDto';
42
45
  import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
43
46
  import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
@@ -529,6 +532,32 @@ export declare class CallRecord<TProps = CallProperties> {
529
532
  journeyId?: string;
530
533
  stageKey?: string;
531
534
  }): ActionBuilder;
535
+ /**
536
+ * UpdateCallOnInboundCallFailed
537
+ *
538
+ * Updates this Call record with the specified properties.
539
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
540
+ *
541
+ * @param properties - Required properties for this action
542
+ * @param options - Optional settings
543
+ * @param options.journeyId - Associate with a journey
544
+ * @param options.stageKey - Transition to pipeline stage
545
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
546
+ * @throws Error if called on a new (unsaved) record
547
+ *
548
+ * @example
549
+ * ```typescript
550
+ * const record = await odinClient.calls.get(id);
551
+ * await record.updateCallOnInboundCallFailed({ ... }).execute();
552
+ *
553
+ * // Dry run (for debugging)
554
+ * const payload = record.updateCallOnInboundCallFailed({ ... }).dryRun();
555
+ * ```
556
+ */
557
+ updateCallOnInboundCallFailed(properties: UpdateCallOnInboundCallFailedProperties, options?: {
558
+ journeyId?: string;
559
+ stageKey?: string;
560
+ }): ActionBuilder;
532
561
  /**
533
562
  * UpdateCallOnInboundCallInitiated
534
563
  *
@@ -556,6 +585,32 @@ export declare class CallRecord<TProps = CallProperties> {
556
585
  journeyId?: string;
557
586
  stageKey?: string;
558
587
  }): ActionBuilder;
588
+ /**
589
+ * UpdateCallOnInboundCallNoAnswer
590
+ *
591
+ * Updates this Call record with the specified properties.
592
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
593
+ *
594
+ * @param properties - Required properties for this action
595
+ * @param options - Optional settings
596
+ * @param options.journeyId - Associate with a journey
597
+ * @param options.stageKey - Transition to pipeline stage
598
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
599
+ * @throws Error if called on a new (unsaved) record
600
+ *
601
+ * @example
602
+ * ```typescript
603
+ * const record = await odinClient.calls.get(id);
604
+ * await record.updateCallOnInboundCallNoAnswer({ ... }).execute();
605
+ *
606
+ * // Dry run (for debugging)
607
+ * const payload = record.updateCallOnInboundCallNoAnswer({ ... }).dryRun();
608
+ * ```
609
+ */
610
+ updateCallOnInboundCallNoAnswer(properties: UpdateCallOnInboundCallNoAnswerProperties, options?: {
611
+ journeyId?: string;
612
+ stageKey?: string;
613
+ }): ActionBuilder;
559
614
  /**
560
615
  * UpdateCallOnInboundCallRinging
561
616
  *
@@ -661,6 +716,32 @@ export declare class CallRecord<TProps = CallProperties> {
661
716
  journeyId?: string;
662
717
  stageKey?: string;
663
718
  }): ActionBuilder;
719
+ /**
720
+ * UpdateCallOnOutboundCallFailed
721
+ *
722
+ * Updates this Call record with the specified properties.
723
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
724
+ *
725
+ * @param properties - Required properties for this action
726
+ * @param options - Optional settings
727
+ * @param options.journeyId - Associate with a journey
728
+ * @param options.stageKey - Transition to pipeline stage
729
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
730
+ * @throws Error if called on a new (unsaved) record
731
+ *
732
+ * @example
733
+ * ```typescript
734
+ * const record = await odinClient.calls.get(id);
735
+ * await record.updateCallOnOutboundCallFailed({ ... }).execute();
736
+ *
737
+ * // Dry run (for debugging)
738
+ * const payload = record.updateCallOnOutboundCallFailed({ ... }).dryRun();
739
+ * ```
740
+ */
741
+ updateCallOnOutboundCallFailed(properties: UpdateCallOnOutboundCallFailedProperties, options?: {
742
+ journeyId?: string;
743
+ stageKey?: string;
744
+ }): ActionBuilder;
664
745
  /**
665
746
  * UpdateCallOnOutboundCallNoAnswer
666
747
  *
@@ -688,6 +688,35 @@ class CallRecord {
688
688
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
689
689
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
690
690
  }
691
+ /**
692
+ * UpdateCallOnInboundCallFailed
693
+ *
694
+ * Updates this Call record with the specified properties.
695
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
696
+ *
697
+ * @param properties - Required properties for this action
698
+ * @param options - Optional settings
699
+ * @param options.journeyId - Associate with a journey
700
+ * @param options.stageKey - Transition to pipeline stage
701
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
702
+ * @throws Error if called on a new (unsaved) record
703
+ *
704
+ * @example
705
+ * ```typescript
706
+ * const record = await odinClient.calls.get(id);
707
+ * await record.updateCallOnInboundCallFailed({ ... }).execute();
708
+ *
709
+ * // Dry run (for debugging)
710
+ * const payload = record.updateCallOnInboundCallFailed({ ... }).dryRun();
711
+ * ```
712
+ */
713
+ updateCallOnInboundCallFailed(properties, options) {
714
+ var _a;
715
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
716
+ throw new Error('updateCallOnInboundCallFailed requires an existing record. Use accessor.get() first.');
717
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
718
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
719
+ }
691
720
  /**
692
721
  * UpdateCallOnInboundCallInitiated
693
722
  *
@@ -725,6 +754,35 @@ class CallRecord {
725
754
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallInitiated', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
726
755
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
727
756
  }
757
+ /**
758
+ * UpdateCallOnInboundCallNoAnswer
759
+ *
760
+ * Updates this Call record with the specified properties.
761
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
762
+ *
763
+ * @param properties - Required properties for this action
764
+ * @param options - Optional settings
765
+ * @param options.journeyId - Associate with a journey
766
+ * @param options.stageKey - Transition to pipeline stage
767
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
768
+ * @throws Error if called on a new (unsaved) record
769
+ *
770
+ * @example
771
+ * ```typescript
772
+ * const record = await odinClient.calls.get(id);
773
+ * await record.updateCallOnInboundCallNoAnswer({ ... }).execute();
774
+ *
775
+ * // Dry run (for debugging)
776
+ * const payload = record.updateCallOnInboundCallNoAnswer({ ... }).dryRun();
777
+ * ```
778
+ */
779
+ updateCallOnInboundCallNoAnswer(properties, options) {
780
+ var _a;
781
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
782
+ throw new Error('updateCallOnInboundCallNoAnswer requires an existing record. Use accessor.get() first.');
783
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallNoAnswer', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
784
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
785
+ }
728
786
  /**
729
787
  * UpdateCallOnInboundCallRinging
730
788
  *
@@ -849,6 +907,35 @@ class CallRecord {
849
907
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnOutboundCallCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
850
908
  return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
851
909
  }
910
+ /**
911
+ * UpdateCallOnOutboundCallFailed
912
+ *
913
+ * Updates this Call record with the specified properties.
914
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
915
+ *
916
+ * @param properties - Required properties for this action
917
+ * @param options - Optional settings
918
+ * @param options.journeyId - Associate with a journey
919
+ * @param options.stageKey - Transition to pipeline stage
920
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
921
+ * @throws Error if called on a new (unsaved) record
922
+ *
923
+ * @example
924
+ * ```typescript
925
+ * const record = await odinClient.calls.get(id);
926
+ * await record.updateCallOnOutboundCallFailed({ ... }).execute();
927
+ *
928
+ * // Dry run (for debugging)
929
+ * const payload = record.updateCallOnOutboundCallFailed({ ... }).dryRun();
930
+ * ```
931
+ */
932
+ updateCallOnOutboundCallFailed(properties, options) {
933
+ var _a;
934
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
935
+ throw new Error('updateCallOnOutboundCallFailed requires an existing record. Use accessor.get() first.');
936
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnOutboundCallFailed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
937
+ return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
938
+ }
852
939
  /**
853
940
  * UpdateCallOnOutboundCallNoAnswer
854
941
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.127",
3
+ "version": "2.0.129",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",