@d19n/youfibre-odin-sdk 2.0.86 → 2.0.87

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 (28) hide show
  1. package/README.md +5 -5
  2. package/dist/actions-v2/CaseTransitionBlockedToEscalatedDto.d.ts +17 -157
  3. package/dist/actions-v2/CaseTransitionBlockedToEscalatedDto.js +21 -101
  4. package/dist/actions-v2/CaseTransitionEscalatedToEscalatedDto.d.ts +17 -157
  5. package/dist/actions-v2/CaseTransitionEscalatedToEscalatedDto.js +21 -101
  6. package/dist/actions-v2/CaseTransitionPendingAgentToEscalatedDto.d.ts +17 -157
  7. package/dist/actions-v2/CaseTransitionPendingAgentToEscalatedDto.js +21 -101
  8. package/dist/actions-v2/CaseTransitionPendingReplyToEscalatedDto.d.ts +17 -157
  9. package/dist/actions-v2/CaseTransitionPendingReplyToEscalatedDto.js +21 -101
  10. package/dist/actions-v2/CasteTransitionOpenToEscalatedDto.d.ts +17 -157
  11. package/dist/actions-v2/CasteTransitionOpenToEscalatedDto.js +21 -101
  12. package/dist/actions-v2/CreateContactDto.d.ts +1 -1
  13. package/dist/actions-v2/CreateLeadFromAddressDto.d.ts +1 -1
  14. package/dist/actions-v2/UpdateContactDto.d.ts +1 -1
  15. package/dist/actions-v2/UpdateInstallScheduleDto.d.ts +9 -10
  16. package/dist/actions-v2/UpdateLeadDto.d.ts +8 -1
  17. package/dist/entities-v2/Call.d.ts +46 -1
  18. package/dist/entities-v2/Call.js +31 -1
  19. package/dist/entities-v2/Contact.d.ts +9 -9
  20. package/dist/entities-v2/Contact.js +2 -2
  21. package/dist/entities-v2/Lead.d.ts +8 -1
  22. package/dist/entities-v2/Lead.js +2 -0
  23. package/dist/entities-v2/Order.d.ts +36 -32
  24. package/dist/entities-v2/Order.js +29 -25
  25. package/dist/records-v2/CaseRecord.d.ts +98 -188
  26. package/dist/records-v2/CaseRecord.js +123 -333
  27. package/dist/runner.js +16 -16
  28. package/package.json +26 -26
@@ -510,56 +510,16 @@ class CaseTransitionBlockedToEscalatedFlowBuilder {
510
510
  return this;
511
511
  }
512
512
  /**
513
- * Add EscalateCaseActionBrsk step to the flow
514
- * @param id - ID of the record to update
515
- * @param properties - Properties for this step
516
- * @param options - Optional step settings
517
- * @returns this (for method chaining)
518
- */
519
- escalateCaseActionBrsk(id, properties, options) {
520
- var _a;
521
- this._steps.push({
522
- actionName: 'EscalateCaseActionBrsk',
523
- properties,
524
- id,
525
- entity: 'SupportModule:Case',
526
- autoLinkParent: false,
527
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
528
- groups: options === null || options === void 0 ? void 0 : options.groups,
529
- });
530
- return this;
531
- }
532
- /**
533
- * Add EscalateCaseActionYF step to the flow
534
- * @param id - ID of the record to update
535
- * @param properties - Properties for this step
536
- * @param options - Optional step settings
537
- * @returns this (for method chaining)
538
- */
539
- escalateCaseActionYf(id, properties, options) {
540
- var _a;
541
- this._steps.push({
542
- actionName: 'EscalateCaseActionYF',
543
- properties,
544
- id,
545
- entity: 'SupportModule:Case',
546
- autoLinkParent: false,
547
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
548
- groups: options === null || options === void 0 ? void 0 : options.groups,
549
- });
550
- return this;
551
- }
552
- /**
553
- * Add EscalateCaseActionYFCS step to the flow
513
+ * Add EscalateCaseAction step to the flow
554
514
  * @param id - ID of the record to update
555
515
  * @param properties - Properties for this step
556
516
  * @param options - Optional step settings
557
517
  * @returns this (for method chaining)
558
518
  */
559
- escalateCaseActionYfcs(id, properties, options) {
519
+ escalateCaseAction(id, properties, options) {
560
520
  var _a;
561
521
  this._steps.push({
562
- actionName: 'EscalateCaseActionYFCS',
522
+ actionName: 'EscalateCaseAction',
563
523
  properties,
564
524
  id,
565
525
  entity: 'SupportModule:Case',
@@ -765,56 +725,16 @@ class CaseTransitionEscalatedToEscalatedFlowBuilder {
765
725
  return this;
766
726
  }
767
727
  /**
768
- * Add EscalateCaseActionBrsk step to the flow
769
- * @param id - ID of the record to update
770
- * @param properties - Properties for this step
771
- * @param options - Optional step settings
772
- * @returns this (for method chaining)
773
- */
774
- escalateCaseActionBrsk(id, properties, options) {
775
- var _a;
776
- this._steps.push({
777
- actionName: 'EscalateCaseActionBrsk',
778
- properties,
779
- id,
780
- entity: 'SupportModule:Case',
781
- autoLinkParent: false,
782
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
783
- groups: options === null || options === void 0 ? void 0 : options.groups,
784
- });
785
- return this;
786
- }
787
- /**
788
- * Add EscalateCaseActionYF step to the flow
789
- * @param id - ID of the record to update
790
- * @param properties - Properties for this step
791
- * @param options - Optional step settings
792
- * @returns this (for method chaining)
793
- */
794
- escalateCaseActionYf(id, properties, options) {
795
- var _a;
796
- this._steps.push({
797
- actionName: 'EscalateCaseActionYF',
798
- properties,
799
- id,
800
- entity: 'SupportModule:Case',
801
- autoLinkParent: false,
802
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
803
- groups: options === null || options === void 0 ? void 0 : options.groups,
804
- });
805
- return this;
806
- }
807
- /**
808
- * Add EscalateCaseActionYFCS step to the flow
728
+ * Add EscalateCaseAction step to the flow
809
729
  * @param id - ID of the record to update
810
730
  * @param properties - Properties for this step
811
731
  * @param options - Optional step settings
812
732
  * @returns this (for method chaining)
813
733
  */
814
- escalateCaseActionYfcs(id, properties, options) {
734
+ escalateCaseAction(id, properties, options) {
815
735
  var _a;
816
736
  this._steps.push({
817
- actionName: 'EscalateCaseActionYFCS',
737
+ actionName: 'EscalateCaseAction',
818
738
  properties,
819
739
  id,
820
740
  entity: 'SupportModule:Case',
@@ -1128,56 +1048,16 @@ class CaseTransitionPendingAgentToEscalatedFlowBuilder {
1128
1048
  return this;
1129
1049
  }
1130
1050
  /**
1131
- * Add EscalateCaseActionBrsk step to the flow
1132
- * @param id - ID of the record to update
1133
- * @param properties - Properties for this step
1134
- * @param options - Optional step settings
1135
- * @returns this (for method chaining)
1136
- */
1137
- escalateCaseActionBrsk(id, properties, options) {
1138
- var _a;
1139
- this._steps.push({
1140
- actionName: 'EscalateCaseActionBrsk',
1141
- properties,
1142
- id,
1143
- entity: 'SupportModule:Case',
1144
- autoLinkParent: false,
1145
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1146
- groups: options === null || options === void 0 ? void 0 : options.groups,
1147
- });
1148
- return this;
1149
- }
1150
- /**
1151
- * Add EscalateCaseActionYF step to the flow
1152
- * @param id - ID of the record to update
1153
- * @param properties - Properties for this step
1154
- * @param options - Optional step settings
1155
- * @returns this (for method chaining)
1156
- */
1157
- escalateCaseActionYf(id, properties, options) {
1158
- var _a;
1159
- this._steps.push({
1160
- actionName: 'EscalateCaseActionYF',
1161
- properties,
1162
- id,
1163
- entity: 'SupportModule:Case',
1164
- autoLinkParent: false,
1165
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1166
- groups: options === null || options === void 0 ? void 0 : options.groups,
1167
- });
1168
- return this;
1169
- }
1170
- /**
1171
- * Add EscalateCaseActionYFCS step to the flow
1051
+ * Add EscalateCaseAction step to the flow
1172
1052
  * @param id - ID of the record to update
1173
1053
  * @param properties - Properties for this step
1174
1054
  * @param options - Optional step settings
1175
1055
  * @returns this (for method chaining)
1176
1056
  */
1177
- escalateCaseActionYfcs(id, properties, options) {
1057
+ escalateCaseAction(id, properties, options) {
1178
1058
  var _a;
1179
1059
  this._steps.push({
1180
- actionName: 'EscalateCaseActionYFCS',
1060
+ actionName: 'EscalateCaseAction',
1181
1061
  properties,
1182
1062
  id,
1183
1063
  entity: 'SupportModule:Case',
@@ -1402,56 +1282,16 @@ class CaseTransitionPendingReplyToEscalatedFlowBuilder {
1402
1282
  return this;
1403
1283
  }
1404
1284
  /**
1405
- * Add EscalateCaseActionBrsk step to the flow
1406
- * @param id - ID of the record to update
1407
- * @param properties - Properties for this step
1408
- * @param options - Optional step settings
1409
- * @returns this (for method chaining)
1410
- */
1411
- escalateCaseActionBrsk(id, properties, options) {
1412
- var _a;
1413
- this._steps.push({
1414
- actionName: 'EscalateCaseActionBrsk',
1415
- properties,
1416
- id,
1417
- entity: 'SupportModule:Case',
1418
- autoLinkParent: false,
1419
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1420
- groups: options === null || options === void 0 ? void 0 : options.groups,
1421
- });
1422
- return this;
1423
- }
1424
- /**
1425
- * Add EscalateCaseActionYF step to the flow
1426
- * @param id - ID of the record to update
1427
- * @param properties - Properties for this step
1428
- * @param options - Optional step settings
1429
- * @returns this (for method chaining)
1430
- */
1431
- escalateCaseActionYf(id, properties, options) {
1432
- var _a;
1433
- this._steps.push({
1434
- actionName: 'EscalateCaseActionYF',
1435
- properties,
1436
- id,
1437
- entity: 'SupportModule:Case',
1438
- autoLinkParent: false,
1439
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1440
- groups: options === null || options === void 0 ? void 0 : options.groups,
1441
- });
1442
- return this;
1443
- }
1444
- /**
1445
- * Add EscalateCaseActionYFCS step to the flow
1285
+ * Add EscalateCaseAction step to the flow
1446
1286
  * @param id - ID of the record to update
1447
1287
  * @param properties - Properties for this step
1448
1288
  * @param options - Optional step settings
1449
1289
  * @returns this (for method chaining)
1450
1290
  */
1451
- escalateCaseActionYfcs(id, properties, options) {
1291
+ escalateCaseAction(id, properties, options) {
1452
1292
  var _a;
1453
1293
  this._steps.push({
1454
- actionName: 'EscalateCaseActionYFCS',
1294
+ actionName: 'EscalateCaseAction',
1455
1295
  properties,
1456
1296
  id,
1457
1297
  entity: 'SupportModule:Case',
@@ -1694,56 +1534,16 @@ class CasteTransitionOpenToEscalatedFlowBuilder {
1694
1534
  return this;
1695
1535
  }
1696
1536
  /**
1697
- * Add EscalateCaseActionBrsk step to the flow
1698
- * @param id - ID of the record to update
1699
- * @param properties - Properties for this step
1700
- * @param options - Optional step settings
1701
- * @returns this (for method chaining)
1702
- */
1703
- escalateCaseActionBrsk(id, properties, options) {
1704
- var _a;
1705
- this._steps.push({
1706
- actionName: 'EscalateCaseActionBrsk',
1707
- properties,
1708
- id,
1709
- entity: 'SupportModule:Case',
1710
- autoLinkParent: false,
1711
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1712
- groups: options === null || options === void 0 ? void 0 : options.groups,
1713
- });
1714
- return this;
1715
- }
1716
- /**
1717
- * Add EscalateCaseActionYF step to the flow
1718
- * @param id - ID of the record to update
1719
- * @param properties - Properties for this step
1720
- * @param options - Optional step settings
1721
- * @returns this (for method chaining)
1722
- */
1723
- escalateCaseActionYf(id, properties, options) {
1724
- var _a;
1725
- this._steps.push({
1726
- actionName: 'EscalateCaseActionYF',
1727
- properties,
1728
- id,
1729
- entity: 'SupportModule:Case',
1730
- autoLinkParent: false,
1731
- associations: (_a = options === null || options === void 0 ? void 0 : options.associations) === null || _a === void 0 ? void 0 : _a.map(a => (Object.assign(Object.assign({}, a), { linkType: null, relationType: undefined }))),
1732
- groups: options === null || options === void 0 ? void 0 : options.groups,
1733
- });
1734
- return this;
1735
- }
1736
- /**
1737
- * Add EscalateCaseActionYFCS step to the flow
1537
+ * Add EscalateCaseAction step to the flow
1738
1538
  * @param id - ID of the record to update
1739
1539
  * @param properties - Properties for this step
1740
1540
  * @param options - Optional step settings
1741
1541
  * @returns this (for method chaining)
1742
1542
  */
1743
- escalateCaseActionYfcs(id, properties, options) {
1543
+ escalateCaseAction(id, properties, options) {
1744
1544
  var _a;
1745
1545
  this._steps.push({
1746
- actionName: 'EscalateCaseActionYFCS',
1546
+ actionName: 'EscalateCaseAction',
1747
1547
  properties,
1748
1548
  id,
1749
1549
  entity: 'SupportModule:Case',
@@ -3319,109 +3119,6 @@ class CaseRecord {
3319
3119
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CaseDefaultStageSolved', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CaseDefaultStageSolved' }, options);
3320
3120
  return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3321
3121
  }
3322
- /**
3323
- * EscalateCaseActionBrsk
3324
- *
3325
- * Updates this Case record with the specified properties.
3326
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3327
- *
3328
- * @param properties - Required properties for this action
3329
- * @param options - Optional settings
3330
- * @param options.journeyId - Associate with a journey
3331
- * @param options.stageKey - Transition to pipeline stage
3332
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3333
- * @throws Error if called on a new (unsaved) record
3334
- *
3335
- * @example
3336
- * ```typescript
3337
- * const record = await odinClient.cases.get(id);
3338
- * await record.escalateCaseActionBrsk({ ... }).execute();
3339
- *
3340
- * // Dry run (for debugging)
3341
- * const payload = record.escalateCaseActionBrsk({ ... }).dryRun();
3342
- * ```
3343
- */
3344
- escalateCaseActionBrsk(properties, options) {
3345
- var _a;
3346
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3347
- throw new Error('escalateCaseActionBrsk requires an existing record. Use accessor.get() first.');
3348
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseActionBrsk', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
3349
- return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3350
- }
3351
- /**
3352
- * EscalateCaseActionYF
3353
- *
3354
- * Updates this Case record.
3355
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3356
- *
3357
- * @param propertiesOrOptions - Properties to update, or options object
3358
- * @param options - Optional settings (journeyId, stageKey)
3359
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3360
- * @throws Error if called on a new (unsaved) record
3361
- *
3362
- * @example
3363
- * ```typescript
3364
- * const record = await odinClient.cases.get(id);
3365
- * await record.escalateCaseActionYf({ ... }).execute();
3366
- *
3367
- * // Dry run (for debugging)
3368
- * const payload = record.escalateCaseActionYf({ ... }).dryRun();
3369
- * ```
3370
- */
3371
- escalateCaseActionYf(propertiesOrOptions, options) {
3372
- var _a;
3373
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3374
- throw new Error('escalateCaseActionYf requires an existing record. Use accessor.get() first.');
3375
- let properties = {};
3376
- let opts = options;
3377
- if (propertiesOrOptions) {
3378
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
3379
- opts = propertiesOrOptions;
3380
- }
3381
- else {
3382
- properties = propertiesOrOptions;
3383
- }
3384
- }
3385
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseActionYF', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
3386
- return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3387
- }
3388
- /**
3389
- * EscalateCaseActionYFCS
3390
- *
3391
- * Updates this Case record.
3392
- * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3393
- *
3394
- * @param propertiesOrOptions - Properties to update, or options object
3395
- * @param options - Optional settings (journeyId, stageKey)
3396
- * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3397
- * @throws Error if called on a new (unsaved) record
3398
- *
3399
- * @example
3400
- * ```typescript
3401
- * const record = await odinClient.cases.get(id);
3402
- * await record.escalateCaseActionYfcs({ ... }).execute();
3403
- *
3404
- * // Dry run (for debugging)
3405
- * const payload = record.escalateCaseActionYfcs({ ... }).dryRun();
3406
- * ```
3407
- */
3408
- escalateCaseActionYfcs(propertiesOrOptions, options) {
3409
- var _a;
3410
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3411
- throw new Error('escalateCaseActionYfcs requires an existing record. Use accessor.get() first.');
3412
- let properties = {};
3413
- let opts = options;
3414
- if (propertiesOrOptions) {
3415
- if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
3416
- opts = propertiesOrOptions;
3417
- }
3418
- else {
3419
- properties = propertiesOrOptions;
3420
- }
3421
- }
3422
- const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseActionYFCS', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
3423
- return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3424
- }
3425
3122
  /**
3426
3123
  * CaseTransitionBlockedToEscalated
3427
3124
  *
@@ -3439,9 +3136,7 @@ class CaseRecord {
3439
3136
  * ```typescript
3440
3137
  * const record = await odinClient.cases.get(id);
3441
3138
  * await record.caseTransitionBlockedToEscalated()
3442
- * .escalateCaseActionBrsk(recordId, { ... })
3443
- * .escalateCaseActionYf(recordId, { ... })
3444
- * .escalateCaseActionYfcs(recordId, { ... })
3139
+ * .escalateCaseAction(recordId, { ... })
3445
3140
  * .execute();
3446
3141
  * ```
3447
3142
  */
@@ -3495,9 +3190,7 @@ class CaseRecord {
3495
3190
  * ```typescript
3496
3191
  * const record = await odinClient.cases.get(id);
3497
3192
  * await record.caseTransitionEscalatedToEscalated()
3498
- * .escalateCaseActionBrsk(recordId, { ... })
3499
- * .escalateCaseActionYf(recordId, { ... })
3500
- * .escalateCaseActionYfcs(recordId, { ... })
3193
+ * .escalateCaseAction(recordId, { ... })
3501
3194
  * .execute();
3502
3195
  * ```
3503
3196
  */
@@ -3578,9 +3271,7 @@ class CaseRecord {
3578
3271
  * ```typescript
3579
3272
  * const record = await odinClient.cases.get(id);
3580
3273
  * await record.caseTransitionPendingAgentToEscalated()
3581
- * .escalateCaseActionBrsk(recordId, { ... })
3582
- * .escalateCaseActionYf(recordId, { ... })
3583
- * .escalateCaseActionYfcs(recordId, { ... })
3274
+ * .escalateCaseAction(recordId, { ... })
3584
3275
  * .createNoteForCaseAssignment({ ... })
3585
3276
  * .execute();
3586
3277
  * ```
@@ -3635,9 +3326,7 @@ class CaseRecord {
3635
3326
  * ```typescript
3636
3327
  * const record = await odinClient.cases.get(id);
3637
3328
  * await record.caseTransitionPendingReplyToEscalated()
3638
- * .escalateCaseActionBrsk(recordId, { ... })
3639
- * .escalateCaseActionYf(recordId, { ... })
3640
- * .escalateCaseActionYfcs(recordId, { ... })
3329
+ * .escalateCaseAction(recordId, { ... })
3641
3330
  * .createNoteForCaseAssignment({ ... })
3642
3331
  * .execute();
3643
3332
  * ```
@@ -3693,9 +3382,7 @@ class CaseRecord {
3693
3382
  * ```typescript
3694
3383
  * const record = await odinClient.cases.get(id);
3695
3384
  * await record.casteTransitionOpenToEscalated()
3696
- * .escalateCaseActionBrsk(recordId, { ... })
3697
- * .escalateCaseActionYf(recordId, { ... })
3698
- * .escalateCaseActionYfcs(recordId, { ... })
3385
+ * .escalateCaseAction(recordId, { ... })
3699
3386
  * .createNoteForCaseAssignment({ ... })
3700
3387
  * .execute();
3701
3388
  * ```
@@ -3780,6 +3467,109 @@ class CaseRecord {
3780
3467
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EditCaseForm', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
3781
3468
  return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3782
3469
  }
3470
+ /**
3471
+ * EscalateCaseActionBrsk
3472
+ *
3473
+ * Updates this Case record with the specified properties.
3474
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3475
+ *
3476
+ * @param properties - Required properties for this action
3477
+ * @param options - Optional settings
3478
+ * @param options.journeyId - Associate with a journey
3479
+ * @param options.stageKey - Transition to pipeline stage
3480
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3481
+ * @throws Error if called on a new (unsaved) record
3482
+ *
3483
+ * @example
3484
+ * ```typescript
3485
+ * const record = await odinClient.cases.get(id);
3486
+ * await record.escalateCaseActionBrsk({ ... }).execute();
3487
+ *
3488
+ * // Dry run (for debugging)
3489
+ * const payload = record.escalateCaseActionBrsk({ ... }).dryRun();
3490
+ * ```
3491
+ */
3492
+ escalateCaseActionBrsk(properties, options) {
3493
+ var _a;
3494
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3495
+ throw new Error('escalateCaseActionBrsk requires an existing record. Use accessor.get() first.');
3496
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseActionBrsk', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
3497
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3498
+ }
3499
+ /**
3500
+ * EscalateCaseActionYFCS
3501
+ *
3502
+ * Updates this Case record.
3503
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3504
+ *
3505
+ * @param propertiesOrOptions - Properties to update, or options object
3506
+ * @param options - Optional settings (journeyId, stageKey)
3507
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3508
+ * @throws Error if called on a new (unsaved) record
3509
+ *
3510
+ * @example
3511
+ * ```typescript
3512
+ * const record = await odinClient.cases.get(id);
3513
+ * await record.escalateCaseActionYfcs({ ... }).execute();
3514
+ *
3515
+ * // Dry run (for debugging)
3516
+ * const payload = record.escalateCaseActionYfcs({ ... }).dryRun();
3517
+ * ```
3518
+ */
3519
+ escalateCaseActionYfcs(propertiesOrOptions, options) {
3520
+ var _a;
3521
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3522
+ throw new Error('escalateCaseActionYfcs requires an existing record. Use accessor.get() first.');
3523
+ let properties = {};
3524
+ let opts = options;
3525
+ if (propertiesOrOptions) {
3526
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
3527
+ opts = propertiesOrOptions;
3528
+ }
3529
+ else {
3530
+ properties = propertiesOrOptions;
3531
+ }
3532
+ }
3533
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseActionYFCS', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
3534
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3535
+ }
3536
+ /**
3537
+ * EscalateCaseActionYF
3538
+ *
3539
+ * Updates this Case record.
3540
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
3541
+ *
3542
+ * @param propertiesOrOptions - Properties to update, or options object
3543
+ * @param options - Optional settings (journeyId, stageKey)
3544
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
3545
+ * @throws Error if called on a new (unsaved) record
3546
+ *
3547
+ * @example
3548
+ * ```typescript
3549
+ * const record = await odinClient.cases.get(id);
3550
+ * await record.escalateCaseActionYf({ ... }).execute();
3551
+ *
3552
+ * // Dry run (for debugging)
3553
+ * const payload = record.escalateCaseActionYf({ ... }).dryRun();
3554
+ * ```
3555
+ */
3556
+ escalateCaseActionYf(propertiesOrOptions, options) {
3557
+ var _a;
3558
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
3559
+ throw new Error('escalateCaseActionYf requires an existing record. Use accessor.get() first.');
3560
+ let properties = {};
3561
+ let opts = options;
3562
+ if (propertiesOrOptions) {
3563
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
3564
+ opts = propertiesOrOptions;
3565
+ }
3566
+ else {
3567
+ properties = propertiesOrOptions;
3568
+ }
3569
+ }
3570
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'EscalateCaseActionYF', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
3571
+ return new ActionBuilder(this._provider, 'SupportModule', 'Case', payload, () => { this._pendingLinks = []; });
3572
+ }
3783
3573
  /**
3784
3574
  * EscalateCaseTransition
3785
3575
  *
package/dist/runner.js CHANGED
@@ -225,22 +225,22 @@ function generate() {
225
225
  console.log('\n' + '='.repeat(60));
226
226
  console.log('✓ Generation complete!');
227
227
  console.log('='.repeat(60));
228
- console.log(`
229
- Generated directories:
230
- ./actions-v2/ Action DTOs (with JSDoc documentation)
231
- ./entities-v2/ Property interfaces (with JSDoc documentation)
232
- ./api-sdk-v2/ Legacy API classes (DEPRECATED)
233
- ./db-sdk-v2/ Legacy DB classes (DEPRECATED)
234
- ./records-v2/ Typed record wrappers (with JSDoc documentation)
235
- ./accessors-v2/ API accessors
236
- ./db-accessors-v2/ DB accessors
237
-
238
- Generated files:
239
- ./OdinApiClient.ts Unified API client
240
- ./OdinDbClient.ts Unified DB client
241
- ./EntityRegistry.ts Entity metadata registry
242
- ./index.ts SDK barrel exports
243
- ./README.md SDK documentation
228
+ console.log(`
229
+ Generated directories:
230
+ ./actions-v2/ Action DTOs (with JSDoc documentation)
231
+ ./entities-v2/ Property interfaces (with JSDoc documentation)
232
+ ./api-sdk-v2/ Legacy API classes (DEPRECATED)
233
+ ./db-sdk-v2/ Legacy DB classes (DEPRECATED)
234
+ ./records-v2/ Typed record wrappers (with JSDoc documentation)
235
+ ./accessors-v2/ API accessors
236
+ ./db-accessors-v2/ DB accessors
237
+
238
+ Generated files:
239
+ ./OdinApiClient.ts Unified API client
240
+ ./OdinDbClient.ts Unified DB client
241
+ ./EntityRegistry.ts Entity metadata registry
242
+ ./index.ts SDK barrel exports
243
+ ./README.md SDK documentation
244
244
  `);
245
245
  });
246
246
  }
package/package.json CHANGED
@@ -1,26 +1,26 @@
1
- {
2
- "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.86",
4
- "description": "",
5
- "author": "@d19n",
6
- "license": "UNLICENSED",
7
- "main": "dist/index.js",
8
- "types": "dist/index.d.ts",
9
- "devDependencies": {
10
- "ts-node": "^10.9.2",
11
- "typescript": "4.8.4"
12
- },
13
- "dependencies": {
14
- "@d19n/odin-sdk-generator": "^3.0.243",
15
- "@d19n/odin-types": "^3.0.41"
16
- },
17
- "scripts": {
18
- "release:beta": "rm -rf dist && tsc && npm version prerelease --preid=beta && git push && npm publish --tag beta",
19
- "release:prod": "rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
20
- },
21
- "files": [
22
- "dist",
23
- "README.md",
24
- "LICENSE"
25
- ]
26
- }
1
+ {
2
+ "name": "@d19n/youfibre-odin-sdk",
3
+ "version": "2.0.87",
4
+ "description": "",
5
+ "author": "@d19n",
6
+ "license": "UNLICENSED",
7
+ "main": "dist/index.js",
8
+ "types": "dist/index.d.ts",
9
+ "devDependencies": {
10
+ "ts-node": "^10.9.2",
11
+ "typescript": "4.8.4"
12
+ },
13
+ "dependencies": {
14
+ "@d19n/odin-sdk-generator": "^3.0.243",
15
+ "@d19n/odin-types": "^3.0.41"
16
+ },
17
+ "scripts": {
18
+ "release:beta": "rm -rf dist && tsc && npm version prerelease --preid=beta && git push && npm publish --tag beta",
19
+ "release:prod": "rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
20
+ },
21
+ "files": [
22
+ "dist",
23
+ "README.md",
24
+ "LICENSE"
25
+ ]
26
+ }