@d19n/youfibre-odin-sdk 2.0.367 → 2.0.369

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.
@@ -4789,6 +4789,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
4789
4789
  cancelNotStartedDispatchAmcoWorkOrder(options?: {
4790
4790
  journeyId?: string;
4791
4791
  }): ActionBuilder;
4792
+ /**
4793
+ * CancelNotStartedReplacementAmcoWorkOrder
4794
+ *
4795
+ * Transitions this WorkOrder record to a new pipeline stage.
4796
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
4797
+ *
4798
+ * @remarks Transitions to stage: ReplacementAmcoStageCancelled
4799
+ *
4800
+ * @param options - Optional settings
4801
+ * @param options.journeyId - Associate with a journey
4802
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
4803
+ * @throws Error if called on a new (unsaved) record
4804
+ *
4805
+ * @example
4806
+ * ```typescript
4807
+ * const record = await odinClient.workOrders.get(id);
4808
+ * await record.cancelNotStartedReplacementAmcoWorkOrder().execute();
4809
+ *
4810
+ * // Dry run (for debugging)
4811
+ * const payload = record.cancelNotStartedReplacementAmcoWorkOrder().dryRun();
4812
+ * ```
4813
+ */
4814
+ cancelNotStartedReplacementAmcoWorkOrder(options?: {
4815
+ journeyId?: string;
4816
+ }): ActionBuilder;
4792
4817
  /**
4793
4818
  * CancelPrePullWorkOrderFlowSupplier
4794
4819
  *
@@ -7454,6 +7454,35 @@ class WorkOrderRecord {
7454
7454
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CancelNotStartedDispatchAmcoWorkOrder', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'DispatchAmcoStageCancelled' }, options);
7455
7455
  return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
7456
7456
  }
7457
+ /**
7458
+ * CancelNotStartedReplacementAmcoWorkOrder
7459
+ *
7460
+ * Transitions this WorkOrder record to a new pipeline stage.
7461
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
7462
+ *
7463
+ * @remarks Transitions to stage: ReplacementAmcoStageCancelled
7464
+ *
7465
+ * @param options - Optional settings
7466
+ * @param options.journeyId - Associate with a journey
7467
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
7468
+ * @throws Error if called on a new (unsaved) record
7469
+ *
7470
+ * @example
7471
+ * ```typescript
7472
+ * const record = await odinClient.workOrders.get(id);
7473
+ * await record.cancelNotStartedReplacementAmcoWorkOrder().execute();
7474
+ *
7475
+ * // Dry run (for debugging)
7476
+ * const payload = record.cancelNotStartedReplacementAmcoWorkOrder().dryRun();
7477
+ * ```
7478
+ */
7479
+ cancelNotStartedReplacementAmcoWorkOrder(options) {
7480
+ var _a;
7481
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
7482
+ throw new Error('cancelNotStartedReplacementAmcoWorkOrder requires an existing record. Use accessor.get() first.');
7483
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CancelNotStartedReplacementAmcoWorkOrder', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ReplacementAmcoStageCancelled' }, options);
7484
+ return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
7485
+ }
7457
7486
  /**
7458
7487
  * CancelPrePullWorkOrderFlowSupplier
7459
7488
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.367",
3
+ "version": "2.0.369",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",