@d19n/youfibre-odin-sdk 2.0.334 → 2.0.335

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.
@@ -7528,6 +7528,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
7528
7528
  moveReplacementAmcoToError(options?: {
7529
7529
  journeyId?: string;
7530
7530
  }): ActionBuilder;
7531
+ /**
7532
+ * MoveReplacementAmcoToFailedDelivery
7533
+ *
7534
+ * Transitions this WorkOrder record to a new pipeline stage.
7535
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
7536
+ *
7537
+ * @remarks Transitions to stage: ReplacementAmcoStageFailedDelivery
7538
+ *
7539
+ * @param options - Optional settings
7540
+ * @param options.journeyId - Associate with a journey
7541
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
7542
+ * @throws Error if called on a new (unsaved) record
7543
+ *
7544
+ * @example
7545
+ * ```typescript
7546
+ * const record = await odinClient.workOrders.get(id);
7547
+ * await record.moveReplacementAmcoToFailedDelivery().execute();
7548
+ *
7549
+ * // Dry run (for debugging)
7550
+ * const payload = record.moveReplacementAmcoToFailedDelivery().dryRun();
7551
+ * ```
7552
+ */
7553
+ moveReplacementAmcoToFailedDelivery(options?: {
7554
+ journeyId?: string;
7555
+ }): ActionBuilder;
7531
7556
  /**
7532
7557
  * MoveReplacementAmcoToFailedInspection
7533
7558
  *
@@ -10625,6 +10625,35 @@ class WorkOrderRecord {
10625
10625
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveReplacementAmcoToError', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ReplacementAmcoStageError' }, options);
10626
10626
  return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
10627
10627
  }
10628
+ /**
10629
+ * MoveReplacementAmcoToFailedDelivery
10630
+ *
10631
+ * Transitions this WorkOrder record to a new pipeline stage.
10632
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
10633
+ *
10634
+ * @remarks Transitions to stage: ReplacementAmcoStageFailedDelivery
10635
+ *
10636
+ * @param options - Optional settings
10637
+ * @param options.journeyId - Associate with a journey
10638
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
10639
+ * @throws Error if called on a new (unsaved) record
10640
+ *
10641
+ * @example
10642
+ * ```typescript
10643
+ * const record = await odinClient.workOrders.get(id);
10644
+ * await record.moveReplacementAmcoToFailedDelivery().execute();
10645
+ *
10646
+ * // Dry run (for debugging)
10647
+ * const payload = record.moveReplacementAmcoToFailedDelivery().dryRun();
10648
+ * ```
10649
+ */
10650
+ moveReplacementAmcoToFailedDelivery(options) {
10651
+ var _a;
10652
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
10653
+ throw new Error('moveReplacementAmcoToFailedDelivery requires an existing record. Use accessor.get() first.');
10654
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveReplacementAmcoToFailedDelivery', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ReplacementAmcoStageFailedDelivery' }, options);
10655
+ return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
10656
+ }
10628
10657
  /**
10629
10658
  * MoveReplacementAmcoToFailedInspection
10630
10659
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.334",
3
+ "version": "2.0.335",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",