@d19n/youfibre-odin-sdk 2.0.384 → 2.0.385

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.
@@ -27,6 +27,7 @@ import { CreateCustomerDeviceBatteryProperties } from '../actions-v2/CreateCusto
27
27
  import { CreateCustomerDeviceBatteryBuilder } from '../actions-v2/CreateCustomerDeviceBatteryDto';
28
28
  import { CreateCustomerDeviceTvDeviceProperties } from '../actions-v2/CreateCustomerDeviceTvDeviceDto';
29
29
  import { UpdateCustomerDeviceBatteryProperties } from '../actions-v2/UpdateCustomerDeviceBatteryDto';
30
+ import { UpdateCustomerDeviceTvDeviceProperties } from '../actions-v2/UpdateCustomerDeviceTvDeviceDto';
30
31
  import { FieldServiceDispatchedProductRecord } from './FieldServiceDispatchedProductRecord';
31
32
  import { OrderItemRecord } from './OrderItemRecord';
32
33
  import { WorkOrderRecord } from './WorkOrderRecord';
@@ -350,6 +351,33 @@ export declare class CustomerDeviceRecord<TProps = CustomerDeviceProperties> {
350
351
  journeyId?: string;
351
352
  stageKey?: string;
352
353
  }): ActionBuilder;
354
+ /**
355
+ * UpdateCustomerDeviceTvDevice
356
+ *
357
+ * Updates this CustomerDevice record.
358
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
359
+ *
360
+ * @param propertiesOrOptions - Properties to update, or options object
361
+ * @param options - Optional settings (journeyId, stageKey)
362
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
363
+ * @throws Error if called on a new (unsaved) record
364
+ *
365
+ * @example
366
+ * ```typescript
367
+ * const record = await odinClient.customerDevices.get(id);
368
+ * await record.updateCustomerDeviceTvDevice({ ... }).execute();
369
+ *
370
+ * // Dry run (for debugging)
371
+ * const payload = record.updateCustomerDeviceTvDevice({ ... }).dryRun();
372
+ * ```
373
+ */
374
+ updateCustomerDeviceTvDevice(propertiesOrOptions?: UpdateCustomerDeviceTvDeviceProperties | {
375
+ journeyId?: string;
376
+ stageKey?: string;
377
+ }, options?: {
378
+ journeyId?: string;
379
+ stageKey?: string;
380
+ }): ActionBuilder;
353
381
  }
354
382
  /** Type guard to check if an object is a CustomerDeviceRecord */
355
383
  export declare function isCustomerDeviceRecord(obj: any): obj is CustomerDeviceRecord;
@@ -460,6 +460,43 @@ class CustomerDeviceRecord {
460
460
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerDeviceBattery', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
461
461
  return new ActionBuilder(this._provider, 'ServiceModule', 'CustomerDevice', payload, () => { this._pendingLinks = []; });
462
462
  }
463
+ /**
464
+ * UpdateCustomerDeviceTvDevice
465
+ *
466
+ * Updates this CustomerDevice record.
467
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
468
+ *
469
+ * @param propertiesOrOptions - Properties to update, or options object
470
+ * @param options - Optional settings (journeyId, stageKey)
471
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
472
+ * @throws Error if called on a new (unsaved) record
473
+ *
474
+ * @example
475
+ * ```typescript
476
+ * const record = await odinClient.customerDevices.get(id);
477
+ * await record.updateCustomerDeviceTvDevice({ ... }).execute();
478
+ *
479
+ * // Dry run (for debugging)
480
+ * const payload = record.updateCustomerDeviceTvDevice({ ... }).dryRun();
481
+ * ```
482
+ */
483
+ updateCustomerDeviceTvDevice(propertiesOrOptions, options) {
484
+ var _a;
485
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
486
+ throw new Error('updateCustomerDeviceTvDevice requires an existing record. Use accessor.get() first.');
487
+ let properties = {};
488
+ let opts = options;
489
+ if (propertiesOrOptions) {
490
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
491
+ opts = propertiesOrOptions;
492
+ }
493
+ else {
494
+ properties = propertiesOrOptions;
495
+ }
496
+ }
497
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerDeviceTvDevice', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
498
+ return new ActionBuilder(this._provider, 'ServiceModule', 'CustomerDevice', payload, () => { this._pendingLinks = []; });
499
+ }
463
500
  }
464
501
  exports.CustomerDeviceRecord = CustomerDeviceRecord;
465
502
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.384",
3
+ "version": "2.0.385",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",