@d19n/youfibre-odin-sdk 2.0.203 → 2.0.206
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 +24 -10
- package/dist/actions-v2/CreateCallRecordingEventDto.d.ts +116 -0
- package/dist/actions-v2/CreateCallRecordingEventDto.js +54 -0
- package/dist/actions-v2/MovePgPaymentMethodToCreatedDto.d.ts +70 -0
- package/dist/actions-v2/MovePgPaymentMethodToCreatedDto.js +62 -0
- package/dist/actions-v2/MovePgPaymentMethodToReallocatingDto.d.ts +70 -0
- package/dist/actions-v2/MovePgPaymentMethodToReallocatingDto.js +62 -0
- package/dist/actions-v2/MovePgTransactionChargeToReallocatingDto.d.ts +70 -0
- package/dist/actions-v2/MovePgTransactionChargeToReallocatingDto.js +62 -0
- package/dist/actions-v2/MovePgTransactionRefundToReallocatingDto.d.ts +70 -0
- package/dist/actions-v2/MovePgTransactionRefundToReallocatingDto.js +62 -0
- package/dist/actions-v2/UpdateCallRecordingDetailsDto.d.ts +89 -0
- package/dist/actions-v2/UpdateCallRecordingDetailsDto.js +56 -0
- package/dist/entities-v2/PgPaymentMethod.d.ts +20 -16
- package/dist/entities-v2/PgPaymentMethod.js +8 -4
- package/dist/entities-v2/PgTransaction.d.ts +12 -4
- package/dist/entities-v2/PgTransaction.js +8 -0
- package/dist/entities-v2/TwilioCallEvent.d.ts +5 -3
- package/dist/entities-v2/TwilioCallEvent.js +4 -2
- package/dist/records-v2/CallRecord.d.ts +27 -0
- package/dist/records-v2/CallRecord.js +29 -0
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +50 -0
- package/dist/records-v2/PgPaymentMethodRecord.js +58 -0
- package/dist/records-v2/PgTransactionRecord.d.ts +50 -0
- package/dist/records-v2/PgTransactionRecord.js +58 -0
- package/dist/records-v2/TwilioCallEventRecord.d.ts +29 -0
- package/dist/records-v2/TwilioCallEventRecord.js +36 -0
- package/dist/records-v2/index.d.ts +1 -1
- package/dist/records-v2/index.js +5 -5
- package/package.json +1 -1
|
@@ -902,6 +902,35 @@ class CallRecord {
|
|
|
902
902
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnTaskRouterAssign', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
903
903
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
904
904
|
}
|
|
905
|
+
/**
|
|
906
|
+
* UpdateCallRecordingDetails
|
|
907
|
+
*
|
|
908
|
+
* Updates this Call record with the specified properties.
|
|
909
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
910
|
+
*
|
|
911
|
+
* @param properties - Required properties for this action
|
|
912
|
+
* @param options - Optional settings
|
|
913
|
+
* @param options.journeyId - Associate with a journey
|
|
914
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
915
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
916
|
+
* @throws Error if called on a new (unsaved) record
|
|
917
|
+
*
|
|
918
|
+
* @example
|
|
919
|
+
* ```typescript
|
|
920
|
+
* const record = await odinClient.calls.get(id);
|
|
921
|
+
* await record.updateCallRecordingDetails({ ... }).execute();
|
|
922
|
+
*
|
|
923
|
+
* // Dry run (for debugging)
|
|
924
|
+
* const payload = record.updateCallRecordingDetails({ ... }).dryRun();
|
|
925
|
+
* ```
|
|
926
|
+
*/
|
|
927
|
+
updateCallRecordingDetails(properties, options) {
|
|
928
|
+
var _a;
|
|
929
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
930
|
+
throw new Error('updateCallRecordingDetails requires an existing record. Use accessor.get() first.');
|
|
931
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallRecordingDetails', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
932
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
933
|
+
}
|
|
905
934
|
/**
|
|
906
935
|
* UpdateCallTranscriptionUrl
|
|
907
936
|
*
|
|
@@ -417,6 +417,31 @@ export declare class PgPaymentMethodRecord<TProps = PgPaymentMethodProperties> {
|
|
|
417
417
|
movePgPaymentMethodToCancelled(options?: {
|
|
418
418
|
journeyId?: string;
|
|
419
419
|
}): ActionBuilder;
|
|
420
|
+
/**
|
|
421
|
+
* MovePgPaymentMethodToCreated
|
|
422
|
+
*
|
|
423
|
+
* Transitions this PgPaymentMethod record to a new pipeline stage.
|
|
424
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
425
|
+
*
|
|
426
|
+
* @remarks Transitions to stage: StatusStageCreated
|
|
427
|
+
*
|
|
428
|
+
* @param options - Optional settings
|
|
429
|
+
* @param options.journeyId - Associate with a journey
|
|
430
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
431
|
+
* @throws Error if called on a new (unsaved) record
|
|
432
|
+
*
|
|
433
|
+
* @example
|
|
434
|
+
* ```typescript
|
|
435
|
+
* const record = await odinClient.pgPaymentMethods.get(id);
|
|
436
|
+
* await record.movePgPaymentMethodToCreated().execute();
|
|
437
|
+
*
|
|
438
|
+
* // Dry run (for debugging)
|
|
439
|
+
* const payload = record.movePgPaymentMethodToCreated().dryRun();
|
|
440
|
+
* ```
|
|
441
|
+
*/
|
|
442
|
+
movePgPaymentMethodToCreated(options?: {
|
|
443
|
+
journeyId?: string;
|
|
444
|
+
}): ActionBuilder;
|
|
420
445
|
/**
|
|
421
446
|
* MovePgPaymentMethodToFileRejected
|
|
422
447
|
*
|
|
@@ -517,6 +542,31 @@ export declare class PgPaymentMethodRecord<TProps = PgPaymentMethodProperties> {
|
|
|
517
542
|
movePgPaymentMethodToProcessing(options?: {
|
|
518
543
|
journeyId?: string;
|
|
519
544
|
}): ActionBuilder;
|
|
545
|
+
/**
|
|
546
|
+
* MovePgPaymentMethodToReallocating
|
|
547
|
+
*
|
|
548
|
+
* Transitions this PgPaymentMethod record to a new pipeline stage.
|
|
549
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
550
|
+
*
|
|
551
|
+
* @remarks Transitions to stage: StatusStageReallocating
|
|
552
|
+
*
|
|
553
|
+
* @param options - Optional settings
|
|
554
|
+
* @param options.journeyId - Associate with a journey
|
|
555
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
556
|
+
* @throws Error if called on a new (unsaved) record
|
|
557
|
+
*
|
|
558
|
+
* @example
|
|
559
|
+
* ```typescript
|
|
560
|
+
* const record = await odinClient.pgPaymentMethods.get(id);
|
|
561
|
+
* await record.movePgPaymentMethodToReallocating().execute();
|
|
562
|
+
*
|
|
563
|
+
* // Dry run (for debugging)
|
|
564
|
+
* const payload = record.movePgPaymentMethodToReallocating().dryRun();
|
|
565
|
+
* ```
|
|
566
|
+
*/
|
|
567
|
+
movePgPaymentMethodToReallocating(options?: {
|
|
568
|
+
journeyId?: string;
|
|
569
|
+
}): ActionBuilder;
|
|
520
570
|
/**
|
|
521
571
|
* MovePgPaymentMethodToSubmissionFailed
|
|
522
572
|
*
|
|
@@ -544,6 +544,35 @@ class PgPaymentMethodRecord {
|
|
|
544
544
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToCancelled', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageCancelled' }, options);
|
|
545
545
|
return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
|
|
546
546
|
}
|
|
547
|
+
/**
|
|
548
|
+
* MovePgPaymentMethodToCreated
|
|
549
|
+
*
|
|
550
|
+
* Transitions this PgPaymentMethod record to a new pipeline stage.
|
|
551
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
552
|
+
*
|
|
553
|
+
* @remarks Transitions to stage: StatusStageCreated
|
|
554
|
+
*
|
|
555
|
+
* @param options - Optional settings
|
|
556
|
+
* @param options.journeyId - Associate with a journey
|
|
557
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
558
|
+
* @throws Error if called on a new (unsaved) record
|
|
559
|
+
*
|
|
560
|
+
* @example
|
|
561
|
+
* ```typescript
|
|
562
|
+
* const record = await odinClient.pgPaymentMethods.get(id);
|
|
563
|
+
* await record.movePgPaymentMethodToCreated().execute();
|
|
564
|
+
*
|
|
565
|
+
* // Dry run (for debugging)
|
|
566
|
+
* const payload = record.movePgPaymentMethodToCreated().dryRun();
|
|
567
|
+
* ```
|
|
568
|
+
*/
|
|
569
|
+
movePgPaymentMethodToCreated(options) {
|
|
570
|
+
var _a;
|
|
571
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
572
|
+
throw new Error('movePgPaymentMethodToCreated requires an existing record. Use accessor.get() first.');
|
|
573
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToCreated', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageCreated' }, options);
|
|
574
|
+
return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
|
|
575
|
+
}
|
|
547
576
|
/**
|
|
548
577
|
* MovePgPaymentMethodToFileRejected
|
|
549
578
|
*
|
|
@@ -660,6 +689,35 @@ class PgPaymentMethodRecord {
|
|
|
660
689
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToProcessing', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageProcessing' }, options);
|
|
661
690
|
return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
|
|
662
691
|
}
|
|
692
|
+
/**
|
|
693
|
+
* MovePgPaymentMethodToReallocating
|
|
694
|
+
*
|
|
695
|
+
* Transitions this PgPaymentMethod record to a new pipeline stage.
|
|
696
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
697
|
+
*
|
|
698
|
+
* @remarks Transitions to stage: StatusStageReallocating
|
|
699
|
+
*
|
|
700
|
+
* @param options - Optional settings
|
|
701
|
+
* @param options.journeyId - Associate with a journey
|
|
702
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
703
|
+
* @throws Error if called on a new (unsaved) record
|
|
704
|
+
*
|
|
705
|
+
* @example
|
|
706
|
+
* ```typescript
|
|
707
|
+
* const record = await odinClient.pgPaymentMethods.get(id);
|
|
708
|
+
* await record.movePgPaymentMethodToReallocating().execute();
|
|
709
|
+
*
|
|
710
|
+
* // Dry run (for debugging)
|
|
711
|
+
* const payload = record.movePgPaymentMethodToReallocating().dryRun();
|
|
712
|
+
* ```
|
|
713
|
+
*/
|
|
714
|
+
movePgPaymentMethodToReallocating(options) {
|
|
715
|
+
var _a;
|
|
716
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
717
|
+
throw new Error('movePgPaymentMethodToReallocating requires an existing record. Use accessor.get() first.');
|
|
718
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgPaymentMethodToReallocating', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'StatusStageReallocating' }, options);
|
|
719
|
+
return new ActionBuilder(this._provider, 'BillingModule', 'PgPaymentMethod', payload, () => { this._pendingLinks = []; });
|
|
720
|
+
}
|
|
663
721
|
/**
|
|
664
722
|
* MovePgPaymentMethodToSubmissionFailed
|
|
665
723
|
*
|
|
@@ -550,6 +550,31 @@ export declare class PgTransactionRecord<TProps = PgTransactionProperties> {
|
|
|
550
550
|
movePgTransactionChargeToReady(options?: {
|
|
551
551
|
journeyId?: string;
|
|
552
552
|
}): ActionBuilder;
|
|
553
|
+
/**
|
|
554
|
+
* MovePgTransactionChargeToReallocating
|
|
555
|
+
*
|
|
556
|
+
* Transitions this PgTransaction record to a new pipeline stage.
|
|
557
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
558
|
+
*
|
|
559
|
+
* @remarks Transitions to stage: ChargeStatusStageReallocating
|
|
560
|
+
*
|
|
561
|
+
* @param options - Optional settings
|
|
562
|
+
* @param options.journeyId - Associate with a journey
|
|
563
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
564
|
+
* @throws Error if called on a new (unsaved) record
|
|
565
|
+
*
|
|
566
|
+
* @example
|
|
567
|
+
* ```typescript
|
|
568
|
+
* const record = await odinClient.pgTransactions.get(id);
|
|
569
|
+
* await record.movePgTransactionChargeToReallocating().execute();
|
|
570
|
+
*
|
|
571
|
+
* // Dry run (for debugging)
|
|
572
|
+
* const payload = record.movePgTransactionChargeToReallocating().dryRun();
|
|
573
|
+
* ```
|
|
574
|
+
*/
|
|
575
|
+
movePgTransactionChargeToReallocating(options?: {
|
|
576
|
+
journeyId?: string;
|
|
577
|
+
}): ActionBuilder;
|
|
553
578
|
/**
|
|
554
579
|
* MovePgTransactionChargeToSubmissionFailed
|
|
555
580
|
*
|
|
@@ -850,6 +875,31 @@ export declare class PgTransactionRecord<TProps = PgTransactionProperties> {
|
|
|
850
875
|
movePgTransactionRefundToReady(options?: {
|
|
851
876
|
journeyId?: string;
|
|
852
877
|
}): ActionBuilder;
|
|
878
|
+
/**
|
|
879
|
+
* MovePgTransactionRefundToReallocating
|
|
880
|
+
*
|
|
881
|
+
* Transitions this PgTransaction record to a new pipeline stage.
|
|
882
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
883
|
+
*
|
|
884
|
+
* @remarks Transitions to stage: RefundStatusStageReallocating
|
|
885
|
+
*
|
|
886
|
+
* @param options - Optional settings
|
|
887
|
+
* @param options.journeyId - Associate with a journey
|
|
888
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
889
|
+
* @throws Error if called on a new (unsaved) record
|
|
890
|
+
*
|
|
891
|
+
* @example
|
|
892
|
+
* ```typescript
|
|
893
|
+
* const record = await odinClient.pgTransactions.get(id);
|
|
894
|
+
* await record.movePgTransactionRefundToReallocating().execute();
|
|
895
|
+
*
|
|
896
|
+
* // Dry run (for debugging)
|
|
897
|
+
* const payload = record.movePgTransactionRefundToReallocating().dryRun();
|
|
898
|
+
* ```
|
|
899
|
+
*/
|
|
900
|
+
movePgTransactionRefundToReallocating(options?: {
|
|
901
|
+
journeyId?: string;
|
|
902
|
+
}): ActionBuilder;
|
|
853
903
|
/**
|
|
854
904
|
* MovePgTransactionRefundToSubmissionFailed
|
|
855
905
|
*
|
|
@@ -691,6 +691,35 @@ class PgTransactionRecord {
|
|
|
691
691
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionChargeToReady', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ChargeStatusStageReady' }, options);
|
|
692
692
|
return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
|
|
693
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
* MovePgTransactionChargeToReallocating
|
|
696
|
+
*
|
|
697
|
+
* Transitions this PgTransaction record to a new pipeline stage.
|
|
698
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
699
|
+
*
|
|
700
|
+
* @remarks Transitions to stage: ChargeStatusStageReallocating
|
|
701
|
+
*
|
|
702
|
+
* @param options - Optional settings
|
|
703
|
+
* @param options.journeyId - Associate with a journey
|
|
704
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
705
|
+
* @throws Error if called on a new (unsaved) record
|
|
706
|
+
*
|
|
707
|
+
* @example
|
|
708
|
+
* ```typescript
|
|
709
|
+
* const record = await odinClient.pgTransactions.get(id);
|
|
710
|
+
* await record.movePgTransactionChargeToReallocating().execute();
|
|
711
|
+
*
|
|
712
|
+
* // Dry run (for debugging)
|
|
713
|
+
* const payload = record.movePgTransactionChargeToReallocating().dryRun();
|
|
714
|
+
* ```
|
|
715
|
+
*/
|
|
716
|
+
movePgTransactionChargeToReallocating(options) {
|
|
717
|
+
var _a;
|
|
718
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
719
|
+
throw new Error('movePgTransactionChargeToReallocating requires an existing record. Use accessor.get() first.');
|
|
720
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionChargeToReallocating', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ChargeStatusStageReallocating' }, options);
|
|
721
|
+
return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
|
|
722
|
+
}
|
|
694
723
|
/**
|
|
695
724
|
* MovePgTransactionChargeToSubmissionFailed
|
|
696
725
|
*
|
|
@@ -1039,6 +1068,35 @@ class PgTransactionRecord {
|
|
|
1039
1068
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionRefundToReady', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'RefundStatusStageReady' }, options);
|
|
1040
1069
|
return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
|
|
1041
1070
|
}
|
|
1071
|
+
/**
|
|
1072
|
+
* MovePgTransactionRefundToReallocating
|
|
1073
|
+
*
|
|
1074
|
+
* Transitions this PgTransaction record to a new pipeline stage.
|
|
1075
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
1076
|
+
*
|
|
1077
|
+
* @remarks Transitions to stage: RefundStatusStageReallocating
|
|
1078
|
+
*
|
|
1079
|
+
* @param options - Optional settings
|
|
1080
|
+
* @param options.journeyId - Associate with a journey
|
|
1081
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
1082
|
+
* @throws Error if called on a new (unsaved) record
|
|
1083
|
+
*
|
|
1084
|
+
* @example
|
|
1085
|
+
* ```typescript
|
|
1086
|
+
* const record = await odinClient.pgTransactions.get(id);
|
|
1087
|
+
* await record.movePgTransactionRefundToReallocating().execute();
|
|
1088
|
+
*
|
|
1089
|
+
* // Dry run (for debugging)
|
|
1090
|
+
* const payload = record.movePgTransactionRefundToReallocating().dryRun();
|
|
1091
|
+
* ```
|
|
1092
|
+
*/
|
|
1093
|
+
movePgTransactionRefundToReallocating(options) {
|
|
1094
|
+
var _a;
|
|
1095
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1096
|
+
throw new Error('movePgTransactionRefundToReallocating requires an existing record. Use accessor.get() first.');
|
|
1097
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MovePgTransactionRefundToReallocating', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'RefundStatusStageReallocating' }, options);
|
|
1098
|
+
return new ActionBuilder(this._provider, 'BillingModule', 'PgTransaction', payload, () => { this._pendingLinks = []; });
|
|
1099
|
+
}
|
|
1042
1100
|
/**
|
|
1043
1101
|
* MovePgTransactionRefundToSubmissionFailed
|
|
1044
1102
|
*
|
|
@@ -23,6 +23,7 @@ import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/
|
|
|
23
23
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { TwilioCallEventProperties, CallRecordingEventTwilioCallEventProperties, InboundCallEventTwilioCallEventProperties, OutboundCallEventTwilioCallEventProperties, VoiceInsightsEventTwilioCallEventProperties } from '../entities-v2/TwilioCallEvent';
|
|
26
|
+
import { CreateCallRecordingEventProperties } from '../actions-v2/CreateCallRecordingEventDto';
|
|
26
27
|
import { CreateInboundCallEventProperties } from '../actions-v2/CreateInboundCallEventDto';
|
|
27
28
|
import { CreateOutboundCallEventProperties } from '../actions-v2/CreateOutboundCallEventDto';
|
|
28
29
|
import { CreateVoiceInsightsEventProperties } from '../actions-v2/CreateVoiceInsightsEventDto';
|
|
@@ -222,6 +223,34 @@ export declare class TwilioCallEventRecord<TProps = TwilioCallEventProperties> {
|
|
|
222
223
|
unlink(target: OdinRecord<any> | {
|
|
223
224
|
id: string;
|
|
224
225
|
} | string): Promise<void>;
|
|
226
|
+
/**
|
|
227
|
+
* CreateCallRecordingEvent
|
|
228
|
+
*
|
|
229
|
+
* Creates a new TwilioCallEvent record with the specified properties.
|
|
230
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
231
|
+
*
|
|
232
|
+
* @param properties - The properties for the new record
|
|
233
|
+
* @param options - Optional settings
|
|
234
|
+
* @param options.type - Override the record type
|
|
235
|
+
* @param options.journeyId - Associate with a journey
|
|
236
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
237
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* ```typescript
|
|
241
|
+
* // Create with properties
|
|
242
|
+
* const record = odinClient.twilioCallEvents.new();
|
|
243
|
+
* await record.createCallRecordingEvent({ ... }).execute();
|
|
244
|
+
*
|
|
245
|
+
* // Dry run (for debugging)
|
|
246
|
+
* const payload = record.createCallRecordingEvent({ ... }).dryRun();
|
|
247
|
+
* ```
|
|
248
|
+
*/
|
|
249
|
+
createCallRecordingEvent(properties: CreateCallRecordingEventProperties, options?: {
|
|
250
|
+
type?: string;
|
|
251
|
+
journeyId?: string;
|
|
252
|
+
stageKey?: string;
|
|
253
|
+
}): ActionBuilder;
|
|
225
254
|
/**
|
|
226
255
|
* CreateInboundCallEvent
|
|
227
256
|
*
|
|
@@ -278,6 +278,42 @@ class TwilioCallEventRecord {
|
|
|
278
278
|
// ============================================
|
|
279
279
|
// CREATE ACTIONS (no existing record required)
|
|
280
280
|
// ============================================
|
|
281
|
+
/**
|
|
282
|
+
* CreateCallRecordingEvent
|
|
283
|
+
*
|
|
284
|
+
* Creates a new TwilioCallEvent record with the specified properties.
|
|
285
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
286
|
+
*
|
|
287
|
+
* @param properties - The properties for the new record
|
|
288
|
+
* @param options - Optional settings
|
|
289
|
+
* @param options.type - Override the record type
|
|
290
|
+
* @param options.journeyId - Associate with a journey
|
|
291
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
292
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
293
|
+
*
|
|
294
|
+
* @example
|
|
295
|
+
* ```typescript
|
|
296
|
+
* // Create with properties
|
|
297
|
+
* const record = odinClient.twilioCallEvents.new();
|
|
298
|
+
* await record.createCallRecordingEvent({ ... }).execute();
|
|
299
|
+
*
|
|
300
|
+
* // Dry run (for debugging)
|
|
301
|
+
* const payload = record.createCallRecordingEvent({ ... }).dryRun();
|
|
302
|
+
* ```
|
|
303
|
+
*/
|
|
304
|
+
createCallRecordingEvent(properties, options) {
|
|
305
|
+
var _a, _b;
|
|
306
|
+
const payload = {
|
|
307
|
+
entity: 'NotificationModule:TwilioCallEvent',
|
|
308
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
309
|
+
actionName: 'CreateCallRecordingEvent',
|
|
310
|
+
properties: properties || {},
|
|
311
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
312
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
313
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
314
|
+
};
|
|
315
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'TwilioCallEvent', payload, () => { this._pendingLinks = []; });
|
|
316
|
+
}
|
|
281
317
|
/**
|
|
282
318
|
* CreateInboundCallEvent
|
|
283
319
|
*
|
|
@@ -43,6 +43,7 @@ export { PgFileAllocationRecord, isPgFileAllocationRecord } from './PgFileAlloca
|
|
|
43
43
|
export { BngProvisionRecord, isBngProvisionRecord } from './BngProvisionRecord';
|
|
44
44
|
export { BrskEntityMigrationErrorRecord, isBrskEntityMigrationErrorRecord } from './BrskEntityMigrationErrorRecord';
|
|
45
45
|
export { ProductRecord, isProductRecord } from './ProductRecord';
|
|
46
|
+
export { TwilioCallEventRecord, isTwilioCallEventRecord } from './TwilioCallEventRecord';
|
|
46
47
|
export { CallTransferRecord, isCallTransferRecord } from './CallTransferRecord';
|
|
47
48
|
export { ContactRecord, isContactRecord } from './ContactRecord';
|
|
48
49
|
export { RewardRecord, isRewardRecord } from './RewardRecord';
|
|
@@ -60,7 +61,6 @@ export { FileRecord, isFileRecord } from './FileRecord';
|
|
|
60
61
|
export { ActivityRecord, isActivityRecord } from './ActivityRecord';
|
|
61
62
|
export { ImpersonationTrackerRecord, isImpersonationTrackerRecord } from './ImpersonationTrackerRecord';
|
|
62
63
|
export { CallRecord, isCallRecord } from './CallRecord';
|
|
63
|
-
export { TwilioCallEventRecord, isTwilioCallEventRecord } from './TwilioCallEventRecord';
|
|
64
64
|
export { InvoiceItemRecord, isInvoiceItemRecord } from './InvoiceItemRecord';
|
|
65
65
|
export { LeadRecord, isLeadRecord } from './LeadRecord';
|
|
66
66
|
export { MessageRecord, isMessageRecord } from './MessageRecord';
|
package/dist/records-v2/index.js
CHANGED
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.isYfFieldServiceVisitRecord = exports.YfFieldServiceVisitRecord = exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isCaseRecord = exports.CaseRecord = exports.isAddressInteractionRecord = exports.AddressInteractionRecord = exports.isAddressRecord = exports.AddressRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
|
|
15
|
-
exports.
|
|
16
|
-
exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isMessageRecord = exports.MessageRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.
|
|
15
|
+
exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isConfigRecord = exports.ConfigRecord = exports.isEmailRecord = exports.EmailRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallTransferRecord = exports.CallTransferRecord = exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = void 0;
|
|
16
|
+
exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isMessageRecord = exports.MessageRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isCallRecord = exports.CallRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = void 0;
|
|
17
17
|
exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceRouterRecord = exports.CustomerDeviceRouterRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isRegionRecord = exports.RegionRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = void 0;
|
|
18
18
|
exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = void 0;
|
|
19
19
|
var OrderRecord_1 = require("./OrderRecord");
|
|
@@ -118,6 +118,9 @@ Object.defineProperty(exports, "isBrskEntityMigrationErrorRecord", { enumerable:
|
|
|
118
118
|
var ProductRecord_1 = require("./ProductRecord");
|
|
119
119
|
Object.defineProperty(exports, "ProductRecord", { enumerable: true, get: function () { return ProductRecord_1.ProductRecord; } });
|
|
120
120
|
Object.defineProperty(exports, "isProductRecord", { enumerable: true, get: function () { return ProductRecord_1.isProductRecord; } });
|
|
121
|
+
var TwilioCallEventRecord_1 = require("./TwilioCallEventRecord");
|
|
122
|
+
Object.defineProperty(exports, "TwilioCallEventRecord", { enumerable: true, get: function () { return TwilioCallEventRecord_1.TwilioCallEventRecord; } });
|
|
123
|
+
Object.defineProperty(exports, "isTwilioCallEventRecord", { enumerable: true, get: function () { return TwilioCallEventRecord_1.isTwilioCallEventRecord; } });
|
|
121
124
|
var CallTransferRecord_1 = require("./CallTransferRecord");
|
|
122
125
|
Object.defineProperty(exports, "CallTransferRecord", { enumerable: true, get: function () { return CallTransferRecord_1.CallTransferRecord; } });
|
|
123
126
|
Object.defineProperty(exports, "isCallTransferRecord", { enumerable: true, get: function () { return CallTransferRecord_1.isCallTransferRecord; } });
|
|
@@ -169,9 +172,6 @@ Object.defineProperty(exports, "isImpersonationTrackerRecord", { enumerable: tru
|
|
|
169
172
|
var CallRecord_1 = require("./CallRecord");
|
|
170
173
|
Object.defineProperty(exports, "CallRecord", { enumerable: true, get: function () { return CallRecord_1.CallRecord; } });
|
|
171
174
|
Object.defineProperty(exports, "isCallRecord", { enumerable: true, get: function () { return CallRecord_1.isCallRecord; } });
|
|
172
|
-
var TwilioCallEventRecord_1 = require("./TwilioCallEventRecord");
|
|
173
|
-
Object.defineProperty(exports, "TwilioCallEventRecord", { enumerable: true, get: function () { return TwilioCallEventRecord_1.TwilioCallEventRecord; } });
|
|
174
|
-
Object.defineProperty(exports, "isTwilioCallEventRecord", { enumerable: true, get: function () { return TwilioCallEventRecord_1.isTwilioCallEventRecord; } });
|
|
175
175
|
var InvoiceItemRecord_1 = require("./InvoiceItemRecord");
|
|
176
176
|
Object.defineProperty(exports, "InvoiceItemRecord", { enumerable: true, get: function () { return InvoiceItemRecord_1.InvoiceItemRecord; } });
|
|
177
177
|
Object.defineProperty(exports, "isInvoiceItemRecord", { enumerable: true, get: function () { return InvoiceItemRecord_1.isInvoiceItemRecord; } });
|