@d19n/youfibre-odin-sdk 1.0.238 → 1.0.240

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 (33) hide show
  1. package/dist/actions-v2/CreatePaymentMethodRefundDto.d.ts +8 -1
  2. package/dist/records-v2/CaseRecord.d.ts +30 -30
  3. package/dist/records-v2/CaseRecord.js +50 -30
  4. package/dist/records-v2/ChurnRequestRecord.d.ts +3 -3
  5. package/dist/records-v2/ChurnRequestRecord.js +5 -3
  6. package/dist/records-v2/ContractBuyOutRecord.d.ts +21 -21
  7. package/dist/records-v2/ContractBuyOutRecord.js +35 -21
  8. package/dist/records-v2/LeadRecord.d.ts +12 -12
  9. package/dist/records-v2/LeadRecord.js +20 -12
  10. package/dist/records-v2/OrderRecord.d.ts +54 -54
  11. package/dist/records-v2/OrderRecord.js +90 -54
  12. package/dist/records-v2/OutageRecord.d.ts +3 -3
  13. package/dist/records-v2/OutageRecord.js +5 -3
  14. package/dist/records-v2/PICRequestRecord.d.ts +6 -6
  15. package/dist/records-v2/PICRequestRecord.js +10 -6
  16. package/dist/records-v2/PaymentMethodRefundRecord.d.ts +3 -3
  17. package/dist/records-v2/PaymentMethodRefundRecord.js +5 -3
  18. package/dist/records-v2/PaymentRecord.d.ts +18 -18
  19. package/dist/records-v2/PaymentRecord.js +30 -18
  20. package/dist/records-v2/WorkOrderRecord.d.ts +228 -228
  21. package/dist/records-v2/WorkOrderRecord.js +380 -228
  22. package/package.json +2 -2
  23. package/src/actions-v2/CreatePaymentMethodRefundDto.ts +8 -1
  24. package/src/records-v2/CaseRecord.ts +90 -60
  25. package/src/records-v2/ChurnRequestRecord.ts +9 -6
  26. package/src/records-v2/ContractBuyOutRecord.ts +63 -42
  27. package/src/records-v2/LeadRecord.ts +36 -24
  28. package/src/records-v2/OrderRecord.ts +162 -108
  29. package/src/records-v2/OutageRecord.ts +9 -6
  30. package/src/records-v2/PICRequestRecord.ts +18 -12
  31. package/src/records-v2/PaymentMethodRefundRecord.ts +9 -6
  32. package/src/records-v2/PaymentRecord.ts +54 -36
  33. package/src/records-v2/WorkOrderRecord.ts +684 -456
@@ -14,7 +14,7 @@ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/di
14
14
  * Properties for CreatePaymentMethodRefund action
15
15
  *
16
16
  * @property Required fields: 2
17
- * @property Optional fields: 0
17
+ * @property Optional fields: 1
18
18
  */
19
19
  export interface CreatePaymentMethodRefundProperties {
20
20
  /**
@@ -33,6 +33,13 @@ export interface CreatePaymentMethodRefundProperties {
33
33
  * @required
34
34
  */
35
35
  Description: string;
36
+ /**
37
+ * AuthorizedBy
38
+ *
39
+ * Authorized By (Finance - PaymentMethodRefund)
40
+ * @type {TEXT}
41
+ */
42
+ AuthorizedBy?: string;
36
43
  }
37
44
  /**
38
45
  * CreatePaymentMethodRefund
@@ -452,8 +452,10 @@ export declare class CaseRecord {
452
452
  *
453
453
  * Updates this Case record.
454
454
  *
455
+ * @remarks Transitions to stage: CaseDefaultStageEscalated
456
+ *
455
457
  * @param propertiesOrOptions - Properties to update, or options object
456
- * @param options - Optional settings (journeyId, stageKey)
458
+ * @param options - Optional settings (journeyId)
457
459
  * @returns The updated record(s)
458
460
  * @throws Error if called on a new (unsaved) record
459
461
  *
@@ -465,18 +467,18 @@ export declare class CaseRecord {
465
467
  */
466
468
  caseDefaultStageEscalated(propertiesOrOptions?: CaseDefaultStageEscalatedProperties | {
467
469
  journeyId?: string;
468
- stageKey?: string;
469
470
  }, options?: {
470
471
  journeyId?: string;
471
- stageKey?: string;
472
472
  }): Promise<IDbRecordCreateUpdateRes[]>;
473
473
  /**
474
474
  * CaseDefaultStageSolved
475
475
  *
476
476
  * Updates this Case record.
477
477
  *
478
+ * @remarks Transitions to stage: CaseDefaultStageSolved
479
+ *
478
480
  * @param propertiesOrOptions - Properties to update, or options object
479
- * @param options - Optional settings (journeyId, stageKey)
481
+ * @param options - Optional settings (journeyId)
480
482
  * @returns The updated record(s)
481
483
  * @throws Error if called on a new (unsaved) record
482
484
  *
@@ -488,10 +490,8 @@ export declare class CaseRecord {
488
490
  */
489
491
  caseDefaultStageSolved(propertiesOrOptions?: CaseDefaultStageSolvedProperties | {
490
492
  journeyId?: string;
491
- stageKey?: string;
492
493
  }, options?: {
493
494
  journeyId?: string;
494
- stageKey?: string;
495
495
  }): Promise<IDbRecordCreateUpdateRes[]>;
496
496
  /**
497
497
  * MoveCaseToBlockedAction
@@ -520,8 +520,10 @@ export declare class CaseRecord {
520
520
  *
521
521
  * Updates this Case record.
522
522
  *
523
+ * @remarks Transitions to stage: CaseDefaultStageBlocked
524
+ *
523
525
  * @param propertiesOrOptions - Properties to update, or options object
524
- * @param options - Optional settings (journeyId, stageKey)
526
+ * @param options - Optional settings (journeyId)
525
527
  * @returns The updated record(s)
526
528
  * @throws Error if called on a new (unsaved) record
527
529
  *
@@ -533,10 +535,8 @@ export declare class CaseRecord {
533
535
  */
534
536
  casedefaultstageblocked(propertiesOrOptions?: CasedefaultstageblockedProperties | {
535
537
  journeyId?: string;
536
- stageKey?: string;
537
538
  }, options?: {
538
539
  journeyId?: string;
539
- stageKey?: string;
540
540
  }): Promise<IDbRecordCreateUpdateRes[]>;
541
541
  /**
542
542
  * ChangeCaseChannel
@@ -589,8 +589,10 @@ export declare class CaseRecord {
589
589
  *
590
590
  * Updates this Case record.
591
591
  *
592
+ * @remarks Transitions to stage: CaseDefaultStageEscalated
593
+ *
592
594
  * @param propertiesOrOptions - Properties to update, or options object
593
- * @param options - Optional settings (journeyId, stageKey)
595
+ * @param options - Optional settings (journeyId)
594
596
  * @returns The updated record(s)
595
597
  * @throws Error if called on a new (unsaved) record
596
598
  *
@@ -602,10 +604,8 @@ export declare class CaseRecord {
602
604
  */
603
605
  escalateCaseTransition(propertiesOrOptions?: EscalateCaseTransitionProperties | {
604
606
  journeyId?: string;
605
- stageKey?: string;
606
607
  }, options?: {
607
608
  journeyId?: string;
608
- stageKey?: string;
609
609
  }): Promise<IDbRecordCreateUpdateRes[]>;
610
610
  /**
611
611
  * MarkCaseClosed
@@ -700,8 +700,10 @@ export declare class CaseRecord {
700
700
  *
701
701
  * Updates this Case record.
702
702
  *
703
+ * @remarks Transitions to stage: OutagePipelineStageSolved
704
+ *
703
705
  * @param propertiesOrOptions - Properties to update, or options object
704
- * @param options - Optional settings (journeyId, stageKey)
706
+ * @param options - Optional settings (journeyId)
705
707
  * @returns The updated record(s)
706
708
  * @throws Error if called on a new (unsaved) record
707
709
  *
@@ -713,18 +715,18 @@ export declare class CaseRecord {
713
715
  */
714
716
  moveCaseOutageToSolvedTransition(propertiesOrOptions?: MoveCaseOutageToSolvedTransitionProperties | {
715
717
  journeyId?: string;
716
- stageKey?: string;
717
718
  }, options?: {
718
719
  journeyId?: string;
719
- stageKey?: string;
720
720
  }): Promise<IDbRecordCreateUpdateRes[]>;
721
721
  /**
722
722
  * MoveCaseToBlockedTransition
723
723
  *
724
724
  * Updates this Case record.
725
725
  *
726
+ * @remarks Transitions to stage: CaseDefaultStageBlocked
727
+ *
726
728
  * @param propertiesOrOptions - Properties to update, or options object
727
- * @param options - Optional settings (journeyId, stageKey)
729
+ * @param options - Optional settings (journeyId)
728
730
  * @returns The updated record(s)
729
731
  * @throws Error if called on a new (unsaved) record
730
732
  *
@@ -736,18 +738,18 @@ export declare class CaseRecord {
736
738
  */
737
739
  moveCaseToBlockedTransition(propertiesOrOptions?: MoveCaseToBlockedTransitionProperties | {
738
740
  journeyId?: string;
739
- stageKey?: string;
740
741
  }, options?: {
741
742
  journeyId?: string;
742
- stageKey?: string;
743
743
  }): Promise<IDbRecordCreateUpdateRes[]>;
744
744
  /**
745
745
  * MoveCaseToPendingAgentTransition
746
746
  *
747
747
  * Updates this Case record.
748
748
  *
749
+ * @remarks Transitions to stage: CaseDefaultStagePendingAgent
750
+ *
749
751
  * @param propertiesOrOptions - Properties to update, or options object
750
- * @param options - Optional settings (journeyId, stageKey)
752
+ * @param options - Optional settings (journeyId)
751
753
  * @returns The updated record(s)
752
754
  * @throws Error if called on a new (unsaved) record
753
755
  *
@@ -759,10 +761,8 @@ export declare class CaseRecord {
759
761
  */
760
762
  moveCaseToPendingAgentTransition(propertiesOrOptions?: MoveCaseToPendingAgentTransitionProperties | {
761
763
  journeyId?: string;
762
- stageKey?: string;
763
764
  }, options?: {
764
765
  journeyId?: string;
765
- stageKey?: string;
766
766
  }): Promise<IDbRecordCreateUpdateRes[]>;
767
767
  /**
768
768
  * MoveCaseToPendingReviewAction
@@ -791,8 +791,10 @@ export declare class CaseRecord {
791
791
  *
792
792
  * Updates this Case record.
793
793
  *
794
+ * @remarks Transitions to stage: CaseDefaultStagePendingReview
795
+ *
794
796
  * @param propertiesOrOptions - Properties to update, or options object
795
- * @param options - Optional settings (journeyId, stageKey)
797
+ * @param options - Optional settings (journeyId)
796
798
  * @returns The updated record(s)
797
799
  * @throws Error if called on a new (unsaved) record
798
800
  *
@@ -804,10 +806,8 @@ export declare class CaseRecord {
804
806
  */
805
807
  moveCaseToPendingReviewTransition(propertiesOrOptions?: MoveCaseToPendingReviewTransitionProperties | {
806
808
  journeyId?: string;
807
- stageKey?: string;
808
809
  }, options?: {
809
810
  journeyId?: string;
810
- stageKey?: string;
811
811
  }): Promise<IDbRecordCreateUpdateRes[]>;
812
812
  /**
813
813
  * MoveCaseToSolvedAction
@@ -836,8 +836,10 @@ export declare class CaseRecord {
836
836
  *
837
837
  * Updates this Case record.
838
838
  *
839
+ * @remarks Transitions to stage: CaseDefaultStageSolved
840
+ *
839
841
  * @param propertiesOrOptions - Properties to update, or options object
840
- * @param options - Optional settings (journeyId, stageKey)
842
+ * @param options - Optional settings (journeyId)
841
843
  * @returns The updated record(s)
842
844
  * @throws Error if called on a new (unsaved) record
843
845
  *
@@ -849,18 +851,18 @@ export declare class CaseRecord {
849
851
  */
850
852
  moveCaseToSolvedTransition(propertiesOrOptions?: MoveCaseToSolvedTransitionProperties | {
851
853
  journeyId?: string;
852
- stageKey?: string;
853
854
  }, options?: {
854
855
  journeyId?: string;
855
- stageKey?: string;
856
856
  }): Promise<IDbRecordCreateUpdateRes[]>;
857
857
  /**
858
858
  * MoveDefaultCaseFromOpenToClosed
859
859
  *
860
860
  * Updates this Case record.
861
861
  *
862
+ * @remarks Transitions to stage: CaseDefaultStageClosed
863
+ *
862
864
  * @param propertiesOrOptions - Properties to update, or options object
863
- * @param options - Optional settings (journeyId, stageKey)
865
+ * @param options - Optional settings (journeyId)
864
866
  * @returns The updated record(s)
865
867
  * @throws Error if called on a new (unsaved) record
866
868
  *
@@ -872,10 +874,8 @@ export declare class CaseRecord {
872
874
  */
873
875
  moveDefaultCaseFromOpenToClosed(propertiesOrOptions?: MoveDefaultCaseFromOpenToClosedProperties | {
874
876
  journeyId?: string;
875
- stageKey?: string;
876
877
  }, options?: {
877
878
  journeyId?: string;
878
- stageKey?: string;
879
879
  }): Promise<IDbRecordCreateUpdateRes[]>;
880
880
  /**
881
881
  * RemoveAssignmentFromCase
@@ -739,8 +739,10 @@ class CaseRecord {
739
739
  *
740
740
  * Updates this Case record.
741
741
  *
742
+ * @remarks Transitions to stage: CaseDefaultStageEscalated
743
+ *
742
744
  * @param propertiesOrOptions - Properties to update, or options object
743
- * @param options - Optional settings (journeyId, stageKey)
745
+ * @param options - Optional settings (journeyId)
744
746
  * @returns The updated record(s)
745
747
  * @throws Error if called on a new (unsaved) record
746
748
  *
@@ -758,14 +760,14 @@ class CaseRecord {
758
760
  let properties = {};
759
761
  let opts = options;
760
762
  if (propertiesOrOptions) {
761
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
763
+ if ('journeyId' in propertiesOrOptions) {
762
764
  opts = propertiesOrOptions;
763
765
  }
764
766
  else {
765
767
  properties = propertiesOrOptions;
766
768
  }
767
769
  }
768
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CaseDefaultStageEscalated', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
770
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CaseDefaultStageEscalated', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageEscalated' }, opts));
769
771
  this._pendingLinks = [];
770
772
  return result;
771
773
  });
@@ -775,8 +777,10 @@ class CaseRecord {
775
777
  *
776
778
  * Updates this Case record.
777
779
  *
780
+ * @remarks Transitions to stage: CaseDefaultStageSolved
781
+ *
778
782
  * @param propertiesOrOptions - Properties to update, or options object
779
- * @param options - Optional settings (journeyId, stageKey)
783
+ * @param options - Optional settings (journeyId)
780
784
  * @returns The updated record(s)
781
785
  * @throws Error if called on a new (unsaved) record
782
786
  *
@@ -794,14 +798,14 @@ class CaseRecord {
794
798
  let properties = {};
795
799
  let opts = options;
796
800
  if (propertiesOrOptions) {
797
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
801
+ if ('journeyId' in propertiesOrOptions) {
798
802
  opts = propertiesOrOptions;
799
803
  }
800
804
  else {
801
805
  properties = propertiesOrOptions;
802
806
  }
803
807
  }
804
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CaseDefaultStageSolved', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
808
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CaseDefaultStageSolved', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageSolved' }, opts));
805
809
  this._pendingLinks = [];
806
810
  return result;
807
811
  });
@@ -839,8 +843,10 @@ class CaseRecord {
839
843
  *
840
844
  * Updates this Case record.
841
845
  *
846
+ * @remarks Transitions to stage: CaseDefaultStageBlocked
847
+ *
842
848
  * @param propertiesOrOptions - Properties to update, or options object
843
- * @param options - Optional settings (journeyId, stageKey)
849
+ * @param options - Optional settings (journeyId)
844
850
  * @returns The updated record(s)
845
851
  * @throws Error if called on a new (unsaved) record
846
852
  *
@@ -858,14 +864,14 @@ class CaseRecord {
858
864
  let properties = {};
859
865
  let opts = options;
860
866
  if (propertiesOrOptions) {
861
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
867
+ if ('journeyId' in propertiesOrOptions) {
862
868
  opts = propertiesOrOptions;
863
869
  }
864
870
  else {
865
871
  properties = propertiesOrOptions;
866
872
  }
867
873
  }
868
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'Casedefaultstageblocked', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
874
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'Casedefaultstageblocked', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageBlocked' }, opts));
869
875
  this._pendingLinks = [];
870
876
  return result;
871
877
  });
@@ -947,8 +953,10 @@ class CaseRecord {
947
953
  *
948
954
  * Updates this Case record.
949
955
  *
956
+ * @remarks Transitions to stage: CaseDefaultStageEscalated
957
+ *
950
958
  * @param propertiesOrOptions - Properties to update, or options object
951
- * @param options - Optional settings (journeyId, stageKey)
959
+ * @param options - Optional settings (journeyId)
952
960
  * @returns The updated record(s)
953
961
  * @throws Error if called on a new (unsaved) record
954
962
  *
@@ -966,14 +974,14 @@ class CaseRecord {
966
974
  let properties = {};
967
975
  let opts = options;
968
976
  if (propertiesOrOptions) {
969
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
977
+ if ('journeyId' in propertiesOrOptions) {
970
978
  opts = propertiesOrOptions;
971
979
  }
972
980
  else {
973
981
  properties = propertiesOrOptions;
974
982
  }
975
983
  }
976
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
984
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageEscalated' }, opts));
977
985
  this._pendingLinks = [];
978
986
  return result;
979
987
  });
@@ -1095,8 +1103,10 @@ class CaseRecord {
1095
1103
  *
1096
1104
  * Updates this Case record.
1097
1105
  *
1106
+ * @remarks Transitions to stage: OutagePipelineStageSolved
1107
+ *
1098
1108
  * @param propertiesOrOptions - Properties to update, or options object
1099
- * @param options - Optional settings (journeyId, stageKey)
1109
+ * @param options - Optional settings (journeyId)
1100
1110
  * @returns The updated record(s)
1101
1111
  * @throws Error if called on a new (unsaved) record
1102
1112
  *
@@ -1114,14 +1124,14 @@ class CaseRecord {
1114
1124
  let properties = {};
1115
1125
  let opts = options;
1116
1126
  if (propertiesOrOptions) {
1117
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
1127
+ if ('journeyId' in propertiesOrOptions) {
1118
1128
  opts = propertiesOrOptions;
1119
1129
  }
1120
1130
  else {
1121
1131
  properties = propertiesOrOptions;
1122
1132
  }
1123
1133
  }
1124
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseOutageToSolvedTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
1134
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseOutageToSolvedTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'OutagePipelineStageSolved' }, opts));
1125
1135
  this._pendingLinks = [];
1126
1136
  return result;
1127
1137
  });
@@ -1131,8 +1141,10 @@ class CaseRecord {
1131
1141
  *
1132
1142
  * Updates this Case record.
1133
1143
  *
1144
+ * @remarks Transitions to stage: CaseDefaultStageBlocked
1145
+ *
1134
1146
  * @param propertiesOrOptions - Properties to update, or options object
1135
- * @param options - Optional settings (journeyId, stageKey)
1147
+ * @param options - Optional settings (journeyId)
1136
1148
  * @returns The updated record(s)
1137
1149
  * @throws Error if called on a new (unsaved) record
1138
1150
  *
@@ -1150,14 +1162,14 @@ class CaseRecord {
1150
1162
  let properties = {};
1151
1163
  let opts = options;
1152
1164
  if (propertiesOrOptions) {
1153
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
1165
+ if ('journeyId' in propertiesOrOptions) {
1154
1166
  opts = propertiesOrOptions;
1155
1167
  }
1156
1168
  else {
1157
1169
  properties = propertiesOrOptions;
1158
1170
  }
1159
1171
  }
1160
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToBlockedTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
1172
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToBlockedTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageBlocked' }, opts));
1161
1173
  this._pendingLinks = [];
1162
1174
  return result;
1163
1175
  });
@@ -1167,8 +1179,10 @@ class CaseRecord {
1167
1179
  *
1168
1180
  * Updates this Case record.
1169
1181
  *
1182
+ * @remarks Transitions to stage: CaseDefaultStagePendingAgent
1183
+ *
1170
1184
  * @param propertiesOrOptions - Properties to update, or options object
1171
- * @param options - Optional settings (journeyId, stageKey)
1185
+ * @param options - Optional settings (journeyId)
1172
1186
  * @returns The updated record(s)
1173
1187
  * @throws Error if called on a new (unsaved) record
1174
1188
  *
@@ -1186,14 +1200,14 @@ class CaseRecord {
1186
1200
  let properties = {};
1187
1201
  let opts = options;
1188
1202
  if (propertiesOrOptions) {
1189
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
1203
+ if ('journeyId' in propertiesOrOptions) {
1190
1204
  opts = propertiesOrOptions;
1191
1205
  }
1192
1206
  else {
1193
1207
  properties = propertiesOrOptions;
1194
1208
  }
1195
1209
  }
1196
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToPendingAgentTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
1210
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToPendingAgentTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStagePendingAgent' }, opts));
1197
1211
  this._pendingLinks = [];
1198
1212
  return result;
1199
1213
  });
@@ -1231,8 +1245,10 @@ class CaseRecord {
1231
1245
  *
1232
1246
  * Updates this Case record.
1233
1247
  *
1248
+ * @remarks Transitions to stage: CaseDefaultStagePendingReview
1249
+ *
1234
1250
  * @param propertiesOrOptions - Properties to update, or options object
1235
- * @param options - Optional settings (journeyId, stageKey)
1251
+ * @param options - Optional settings (journeyId)
1236
1252
  * @returns The updated record(s)
1237
1253
  * @throws Error if called on a new (unsaved) record
1238
1254
  *
@@ -1250,14 +1266,14 @@ class CaseRecord {
1250
1266
  let properties = {};
1251
1267
  let opts = options;
1252
1268
  if (propertiesOrOptions) {
1253
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
1269
+ if ('journeyId' in propertiesOrOptions) {
1254
1270
  opts = propertiesOrOptions;
1255
1271
  }
1256
1272
  else {
1257
1273
  properties = propertiesOrOptions;
1258
1274
  }
1259
1275
  }
1260
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToPendingReviewTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
1276
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToPendingReviewTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStagePendingReview' }, opts));
1261
1277
  this._pendingLinks = [];
1262
1278
  return result;
1263
1279
  });
@@ -1295,8 +1311,10 @@ class CaseRecord {
1295
1311
  *
1296
1312
  * Updates this Case record.
1297
1313
  *
1314
+ * @remarks Transitions to stage: CaseDefaultStageSolved
1315
+ *
1298
1316
  * @param propertiesOrOptions - Properties to update, or options object
1299
- * @param options - Optional settings (journeyId, stageKey)
1317
+ * @param options - Optional settings (journeyId)
1300
1318
  * @returns The updated record(s)
1301
1319
  * @throws Error if called on a new (unsaved) record
1302
1320
  *
@@ -1314,14 +1332,14 @@ class CaseRecord {
1314
1332
  let properties = {};
1315
1333
  let opts = options;
1316
1334
  if (propertiesOrOptions) {
1317
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
1335
+ if ('journeyId' in propertiesOrOptions) {
1318
1336
  opts = propertiesOrOptions;
1319
1337
  }
1320
1338
  else {
1321
1339
  properties = propertiesOrOptions;
1322
1340
  }
1323
1341
  }
1324
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToSolvedTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
1342
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveCaseToSolvedTransition', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageSolved' }, opts));
1325
1343
  this._pendingLinks = [];
1326
1344
  return result;
1327
1345
  });
@@ -1331,8 +1349,10 @@ class CaseRecord {
1331
1349
  *
1332
1350
  * Updates this Case record.
1333
1351
  *
1352
+ * @remarks Transitions to stage: CaseDefaultStageClosed
1353
+ *
1334
1354
  * @param propertiesOrOptions - Properties to update, or options object
1335
- * @param options - Optional settings (journeyId, stageKey)
1355
+ * @param options - Optional settings (journeyId)
1336
1356
  * @returns The updated record(s)
1337
1357
  * @throws Error if called on a new (unsaved) record
1338
1358
  *
@@ -1350,14 +1370,14 @@ class CaseRecord {
1350
1370
  let properties = {};
1351
1371
  let opts = options;
1352
1372
  if (propertiesOrOptions) {
1353
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
1373
+ if ('journeyId' in propertiesOrOptions) {
1354
1374
  opts = propertiesOrOptions;
1355
1375
  }
1356
1376
  else {
1357
1377
  properties = propertiesOrOptions;
1358
1378
  }
1359
1379
  }
1360
- const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveDefaultCaseFromOpenToClosed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
1380
+ const result = yield this._provider._applyAction('SupportModule', 'Case', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveDefaultCaseFromOpenToClosed', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageClosed' }, opts));
1361
1381
  this._pendingLinks = [];
1362
1382
  return result;
1363
1383
  });
@@ -160,8 +160,10 @@ export declare class ChurnRequestRecord {
160
160
  *
161
161
  * Updates this ChurnRequest record.
162
162
  *
163
+ * @remarks Transitions to stage: ChurnRequestStageDone
164
+ *
163
165
  * @param propertiesOrOptions - Properties to update, or options object
164
- * @param options - Optional settings (journeyId, stageKey)
166
+ * @param options - Optional settings (journeyId)
165
167
  * @returns The updated record(s)
166
168
  * @throws Error if called on a new (unsaved) record
167
169
  *
@@ -173,10 +175,8 @@ export declare class ChurnRequestRecord {
173
175
  */
174
176
  completeChurnRequestFlow(propertiesOrOptions?: CompleteChurnRequestFlowProperties | {
175
177
  journeyId?: string;
176
- stageKey?: string;
177
178
  }, options?: {
178
179
  journeyId?: string;
179
- stageKey?: string;
180
180
  }): Promise<IDbRecordCreateUpdateRes[]>;
181
181
  /**
182
182
  * DefaultUpdateChurnRequest
@@ -235,8 +235,10 @@ class ChurnRequestRecord {
235
235
  *
236
236
  * Updates this ChurnRequest record.
237
237
  *
238
+ * @remarks Transitions to stage: ChurnRequestStageDone
239
+ *
238
240
  * @param propertiesOrOptions - Properties to update, or options object
239
- * @param options - Optional settings (journeyId, stageKey)
241
+ * @param options - Optional settings (journeyId)
240
242
  * @returns The updated record(s)
241
243
  * @throws Error if called on a new (unsaved) record
242
244
  *
@@ -254,14 +256,14 @@ class ChurnRequestRecord {
254
256
  let properties = {};
255
257
  let opts = options;
256
258
  if (propertiesOrOptions) {
257
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
259
+ if ('journeyId' in propertiesOrOptions) {
258
260
  opts = propertiesOrOptions;
259
261
  }
260
262
  else {
261
263
  properties = propertiesOrOptions;
262
264
  }
263
265
  }
264
- const result = yield this._provider._applyAction('OrderModule', 'ChurnRequest', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CompleteChurnRequestFlow', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts));
266
+ const result = yield this._provider._applyAction('OrderModule', 'ChurnRequest', Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CompleteChurnRequestFlow', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ChurnRequestStageDone' }, opts));
265
267
  this._pendingLinks = [];
266
268
  return result;
267
269
  });