@d19n/youfibre-odin-sdk 2.0.90 → 2.0.93

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.
@@ -26,8 +26,6 @@ import { WorkOrderProperties, CollectionWorkOrderProperties, CollectionAmcoWorkO
26
26
  import { AddAmcoResponseDataProperties } from '../actions-v2/AddAmcoResponseDataDto';
27
27
  import { AssignEngineerProperties } from '../actions-v2/AssignEngineerDto';
28
28
  import { AssignWorkOrderProperties } from '../actions-v2/AssignWorkOrderDto';
29
- import { CreateInstallCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelInstallWorkOrderFlowSupplierDto';
30
- import { CreateInstallCancelledChangeReasonTenantProperties } from '../actions-v2/CancelInstallWorkOrderFlowTenantDto';
31
29
  import { CreatePrePullCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelPrePullWorkOrderFlowSupplierDto';
32
30
  import { CreateRemediationCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelRemediationWorkOrderSupplierDto';
33
31
  import { CreateServiceCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelServiceWorkOrderFlowSupplierDto';
@@ -209,130 +207,6 @@ declare class ActionBuilder<T = IDbRecordCreateUpdateRes[]> {
209
207
  then(): never;
210
208
  }
211
209
  /** Options for a flow step */
212
- export interface CancelInstallWorkOrderFlowSupplierFlowBuilderStepOptions {
213
- /** Associations to create with this step */
214
- associations?: Array<{
215
- recordId?: string;
216
- entity?: string;
217
- }>;
218
- /** Groups for this step */
219
- groups?: string[];
220
- }
221
- /**
222
- * FlowBuilder for CancelInstallWorkOrderFlowSupplier multi-step action
223
- *
224
- * Use method chaining to add steps, then call execute() to run the flow.
225
- * This is a CREATE flow - no existing record required.
226
- * Transitions to stage: WorkOrderStageCancelled
227
- */
228
- export declare class CancelInstallWorkOrderFlowSupplierFlowBuilder {
229
- private _record;
230
- private _provider;
231
- private _pendingLinks;
232
- private _options?;
233
- private _groups;
234
- private _steps;
235
- constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
236
- journeyId?: string;
237
- });
238
- /**
239
- * Add a group to the main action
240
- * @param group - Group name to add
241
- * @returns this (for method chaining)
242
- */
243
- addGroup(group: string): this;
244
- /**
245
- * Add CreateInstallCancelledChangeReasonSupplier step to the flow
246
- * @param properties - Properties for this step
247
- * @param options - Optional step settings
248
- * @returns this (for method chaining)
249
- */
250
- createInstallCancelledChangeReasonSupplier(properties: CreateInstallCancelledChangeReasonSupplierProperties, options?: CancelInstallWorkOrderFlowSupplierFlowBuilderStepOptions): this;
251
- /**
252
- * Execute the flow
253
- * @returns The result from the API
254
- */
255
- execute(): Promise<IDbRecordCreateUpdateRes[]>;
256
- /**
257
- * Returns the request payload without executing (for debugging)
258
- * @returns The request payload that would be sent to the API
259
- */
260
- dryRun(): Record<string, any>;
261
- /**
262
- * Prevents accidental `await flowBuilder` without .execute()
263
- * Forces developers to explicitly call .execute()
264
- * @throws Error always - use .execute() or .dryRun() instead
265
- */
266
- then(): never;
267
- /**
268
- * Build the request payload for the action
269
- * @private
270
- */
271
- private _buildRequestPayload;
272
- }
273
- /** Options for a flow step */
274
- export interface CancelInstallWorkOrderFlowTenantFlowBuilderStepOptions {
275
- /** Associations to create with this step */
276
- associations?: Array<{
277
- recordId?: string;
278
- entity?: string;
279
- }>;
280
- /** Groups for this step */
281
- groups?: string[];
282
- }
283
- /**
284
- * FlowBuilder for CancelInstallWorkOrderFlowTenant multi-step action
285
- *
286
- * Use method chaining to add steps, then call execute() to run the flow.
287
- * This is a CREATE flow - no existing record required.
288
- * Transitions to stage: WorkOrderStageCancelled
289
- */
290
- export declare class CancelInstallWorkOrderFlowTenantFlowBuilder {
291
- private _record;
292
- private _provider;
293
- private _pendingLinks;
294
- private _options?;
295
- private _groups;
296
- private _steps;
297
- constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
298
- journeyId?: string;
299
- });
300
- /**
301
- * Add a group to the main action
302
- * @param group - Group name to add
303
- * @returns this (for method chaining)
304
- */
305
- addGroup(group: string): this;
306
- /**
307
- * Add CreateInstallCancelledChangeReasonTenant step to the flow
308
- * @param properties - Properties for this step
309
- * @param options - Optional step settings
310
- * @returns this (for method chaining)
311
- */
312
- createInstallCancelledChangeReasonTenant(properties: CreateInstallCancelledChangeReasonTenantProperties, options?: CancelInstallWorkOrderFlowTenantFlowBuilderStepOptions): this;
313
- /**
314
- * Execute the flow
315
- * @returns The result from the API
316
- */
317
- execute(): Promise<IDbRecordCreateUpdateRes[]>;
318
- /**
319
- * Returns the request payload without executing (for debugging)
320
- * @returns The request payload that would be sent to the API
321
- */
322
- dryRun(): Record<string, any>;
323
- /**
324
- * Prevents accidental `await flowBuilder` without .execute()
325
- * Forces developers to explicitly call .execute()
326
- * @throws Error always - use .execute() or .dryRun() instead
327
- */
328
- then(): never;
329
- /**
330
- * Build the request payload for the action
331
- * @private
332
- */
333
- private _buildRequestPayload;
334
- }
335
- /** Options for a flow step */
336
210
  export interface CancelPrePullWorkOrderFlowSupplierFlowBuilderStepOptions {
337
211
  /** Associations to create with this step */
338
212
  associations?: Array<{
@@ -4684,54 +4558,6 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
4684
4558
  journeyId?: string;
4685
4559
  stageKey?: string;
4686
4560
  }): ActionBuilder;
4687
- /**
4688
- * CancelInstallWorkOrderFlowSupplier
4689
- *
4690
- * Starts a stage transition flow on this WorkOrder record.
4691
- * Chain step methods and call .execute() to run the flow.
4692
- *
4693
- * @remarks Transitions to stage: WorkOrderStageCancelled
4694
- *
4695
- * @param options - Optional settings
4696
- * @param options.journeyId - Associate with a journey
4697
- * @returns FlowBuilder for chaining step methods
4698
- * @throws Error if called on a new (unsaved) record
4699
- *
4700
- * @example
4701
- * ```typescript
4702
- * const record = await odinClient.workOrders.get(id);
4703
- * await record.cancelInstallWorkOrderFlowSupplier()
4704
- * .createInstallCancelledChangeReasonSupplier({ ... })
4705
- * .execute();
4706
- * ```
4707
- */
4708
- cancelInstallWorkOrderFlowSupplier(options?: {
4709
- journeyId?: string;
4710
- }): CancelInstallWorkOrderFlowSupplierFlowBuilder;
4711
- /**
4712
- * CancelInstallWorkOrderFlowTenant
4713
- *
4714
- * Starts a stage transition flow on this WorkOrder record.
4715
- * Chain step methods and call .execute() to run the flow.
4716
- *
4717
- * @remarks Transitions to stage: WorkOrderStageCancelled
4718
- *
4719
- * @param options - Optional settings
4720
- * @param options.journeyId - Associate with a journey
4721
- * @returns FlowBuilder for chaining step methods
4722
- * @throws Error if called on a new (unsaved) record
4723
- *
4724
- * @example
4725
- * ```typescript
4726
- * const record = await odinClient.workOrders.get(id);
4727
- * await record.cancelInstallWorkOrderFlowTenant()
4728
- * .createInstallCancelledChangeReasonTenant({ ... })
4729
- * .execute();
4730
- * ```
4731
- */
4732
- cancelInstallWorkOrderFlowTenant(options?: {
4733
- journeyId?: string;
4734
- }): CancelInstallWorkOrderFlowTenantFlowBuilder;
4735
4561
  /**
4736
4562
  * CancelPrePullWorkOrderFlowSupplier
4737
4563
  *
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28
28
  });
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.RescheduleServiceWorkOrderTenantFlowBuilder = exports.RescheduleServiceWorkOrderSupplierFlowBuilder = exports.RescheduleRemediationWorkOrderSupplierFlowBuilder = exports.ReschedulePrePullWorkOrderSupplierFlowBuilder = exports.RescheduleInstallWorkOrderTenantFlowBuilder = exports.RescheduleInstallWorkOrderSupplierFlowBuilder = exports.RescheduleInspectionWorkOrderSupplierFlowBuilder = exports.RescheduleCollectionWorkOrderTenantFlowBuilder = exports.RescheduleBusinessInstallWorkOrderTenantFlowBuilder = exports.RescheduleBusinessInstallWorkOrderSupplierFlowBuilder = exports.MoveServiceWorkOrderToRemediationFlowBuilder = exports.MoveServiceWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveServiceWorkOrderToInProgressFlowBuilder = exports.MoveRemediationWorkOrderToRemediationFlowBuilder = exports.MoveRemediationWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveRemediationWorkOrderToInProgressFlowBuilder = exports.MovePrePullWorkOrderToRemediationFlowBuilder = exports.MovePrePullWorkOrderToInProgressSubstantialFlowBuilder = exports.MovePrePullWorkOrderToInProgressFlowBuilder = exports.MoveInstallWorkOrderToRemediationFlowBuilder = exports.MoveInstallWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveInstallWorkOrderToInProgressFlowBuilder = exports.MoveInstallWorkOrderToEnRouteFlowBuilder = exports.MoveInspectionWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveInspectionWorkOrderToInProgressFlowBuilder = exports.MoveCollectionWorkOrderFromReceivedToCompleteFlowBuilder = exports.MoveCollectionWorkOrderFromAcceptedToEnRouteFlowBuilder = exports.MoveBusinessInstallToRemediationFlowBuilder = exports.CreateWayleaveWorkOrderFlowFlowBuilder = exports.CreateLinkedWorkOrderFlowFlowBuilder = exports.CreateCollectionAmcoReplacementWorkOrderFromWorkOrderFlowBuilder = exports.CompleteServiceWorkOrderFlowFlowBuilder = exports.CompleteRemediationWorkOrderFlowFlowBuilder = exports.CompletePrePullWorkOrderFlowFlowBuilder = exports.CompleteInstallWorkOrderFlowFlowBuilder = exports.CancelServiceWorkOrderFlowTenantFlowBuilder = exports.CancelServiceWorkOrderFlowSupplierFlowBuilder = exports.CancelRemediationWorkOrderSupplierFlowBuilder = exports.CancelPrePullWorkOrderFlowSupplierFlowBuilder = exports.CancelInstallWorkOrderFlowTenantFlowBuilder = exports.CancelInstallWorkOrderFlowSupplierFlowBuilder = void 0;
31
+ exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.RescheduleServiceWorkOrderTenantFlowBuilder = exports.RescheduleServiceWorkOrderSupplierFlowBuilder = exports.RescheduleRemediationWorkOrderSupplierFlowBuilder = exports.ReschedulePrePullWorkOrderSupplierFlowBuilder = exports.RescheduleInstallWorkOrderTenantFlowBuilder = exports.RescheduleInstallWorkOrderSupplierFlowBuilder = exports.RescheduleInspectionWorkOrderSupplierFlowBuilder = exports.RescheduleCollectionWorkOrderTenantFlowBuilder = exports.RescheduleBusinessInstallWorkOrderTenantFlowBuilder = exports.RescheduleBusinessInstallWorkOrderSupplierFlowBuilder = exports.MoveServiceWorkOrderToRemediationFlowBuilder = exports.MoveServiceWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveServiceWorkOrderToInProgressFlowBuilder = exports.MoveRemediationWorkOrderToRemediationFlowBuilder = exports.MoveRemediationWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveRemediationWorkOrderToInProgressFlowBuilder = exports.MovePrePullWorkOrderToRemediationFlowBuilder = exports.MovePrePullWorkOrderToInProgressSubstantialFlowBuilder = exports.MovePrePullWorkOrderToInProgressFlowBuilder = exports.MoveInstallWorkOrderToRemediationFlowBuilder = exports.MoveInstallWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveInstallWorkOrderToInProgressFlowBuilder = exports.MoveInstallWorkOrderToEnRouteFlowBuilder = exports.MoveInspectionWorkOrderToInProgressSubstantialFlowBuilder = exports.MoveInspectionWorkOrderToInProgressFlowBuilder = exports.MoveCollectionWorkOrderFromReceivedToCompleteFlowBuilder = exports.MoveCollectionWorkOrderFromAcceptedToEnRouteFlowBuilder = exports.MoveBusinessInstallToRemediationFlowBuilder = exports.CreateWayleaveWorkOrderFlowFlowBuilder = exports.CreateLinkedWorkOrderFlowFlowBuilder = exports.CreateCollectionAmcoReplacementWorkOrderFromWorkOrderFlowBuilder = exports.CompleteServiceWorkOrderFlowFlowBuilder = exports.CompleteRemediationWorkOrderFlowFlowBuilder = exports.CompletePrePullWorkOrderFlowFlowBuilder = exports.CompleteInstallWorkOrderFlowFlowBuilder = exports.CancelServiceWorkOrderFlowTenantFlowBuilder = exports.CancelServiceWorkOrderFlowSupplierFlowBuilder = exports.CancelRemediationWorkOrderSupplierFlowBuilder = exports.CancelPrePullWorkOrderFlowSupplierFlowBuilder = void 0;
32
32
  const uuid_1 = require("uuid");
33
33
  const core_1 = require("@d19n/odin-types/dist/core");
34
34
  const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
@@ -155,216 +155,6 @@ class ActionBuilder {
155
155
  throw new Error('ActionBuilder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
156
156
  }
157
157
  }
158
- /**
159
- * FlowBuilder for CancelInstallWorkOrderFlowSupplier multi-step action
160
- *
161
- * Use method chaining to add steps, then call execute() to run the flow.
162
- * This is a CREATE flow - no existing record required.
163
- * Transitions to stage: WorkOrderStageCancelled
164
- */
165
- class CancelInstallWorkOrderFlowSupplierFlowBuilder {
166
- constructor(record, provider, pendingLinks, options) {
167
- this._groups = [];
168
- this._steps = [];
169
- this._record = record;
170
- this._provider = provider;
171
- this._pendingLinks = pendingLinks;
172
- this._options = options;
173
- }
174
- /**
175
- * Add a group to the main action
176
- * @param group - Group name to add
177
- * @returns this (for method chaining)
178
- */
179
- addGroup(group) {
180
- this._groups.push(group);
181
- return this;
182
- }
183
- /**
184
- * Add CreateInstallCancelledChangeReasonSupplier step to the flow
185
- * @param properties - Properties for this step
186
- * @param options - Optional step settings
187
- * @returns this (for method chaining)
188
- */
189
- createInstallCancelledChangeReasonSupplier(properties, options) {
190
- var _a;
191
- this._steps.push({
192
- actionName: 'CreateInstallCancelledChangeReasonSupplier',
193
- properties,
194
- entity: 'FieldServiceModule:ChangeReason',
195
- type: 'SA_CANCEL',
196
- autoLinkParent: true,
197
- 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 }))),
198
- groups: options === null || options === void 0 ? void 0 : options.groups,
199
- });
200
- return this;
201
- }
202
- /**
203
- * Execute the flow
204
- * @returns The result from the API
205
- */
206
- execute() {
207
- return __awaiter(this, void 0, void 0, function* () {
208
- const payload = this._buildRequestPayload();
209
- const result = yield this._provider._applyAction('FieldServiceModule', 'WorkOrder', payload);
210
- // Clear pending links on the record after execution
211
- this._record.clearPendingLinks();
212
- return result;
213
- });
214
- }
215
- /**
216
- * Returns the request payload without executing (for debugging)
217
- * @returns The request payload that would be sent to the API
218
- */
219
- dryRun() {
220
- return this._buildRequestPayload();
221
- }
222
- /**
223
- * Prevents accidental `await flowBuilder` without .execute()
224
- * Forces developers to explicitly call .execute()
225
- * @throws Error always - use .execute() or .dryRun() instead
226
- */
227
- then() {
228
- throw new Error('FlowBuilder cannot be awaited directly. Call .execute() to run the flow or .dryRun() to get the payload.');
229
- }
230
- /**
231
- * Build the request payload for the action
232
- * @private
233
- */
234
- _buildRequestPayload() {
235
- const record = this._record.record;
236
- // Build steps with parent associations
237
- const stepsWithAssociations = this._steps.map(step => {
238
- const stepAssociations = [...(step.associations || [])];
239
- // Auto-add parent association if step requires it and we have a parent record
240
- if (step.autoLinkParent && (record === null || record === void 0 ? void 0 : record.id)) {
241
- stepAssociations.push({
242
- entity: record.entity,
243
- recordId: record.id,
244
- linkType: null,
245
- relationType: 'PARENT',
246
- });
247
- }
248
- return {
249
- entity: step.entity,
250
- type: step.type,
251
- actionName: step.actionName,
252
- properties: step.properties,
253
- title: step.title,
254
- id: step.id,
255
- associations: stepAssociations.length > 0 ? stepAssociations : undefined,
256
- groups: step.groups,
257
- };
258
- });
259
- return Object.assign(Object.assign(Object.assign({}, ((record === null || record === void 0 ? void 0 : record.id) && { id: record.id })), { entity: 'FieldServiceModule:WorkOrder', actionName: 'CancelInstallWorkOrderFlowSupplier', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'WorkOrderStageCancelled' }), this._options);
260
- }
261
- }
262
- exports.CancelInstallWorkOrderFlowSupplierFlowBuilder = CancelInstallWorkOrderFlowSupplierFlowBuilder;
263
- /**
264
- * FlowBuilder for CancelInstallWorkOrderFlowTenant multi-step action
265
- *
266
- * Use method chaining to add steps, then call execute() to run the flow.
267
- * This is a CREATE flow - no existing record required.
268
- * Transitions to stage: WorkOrderStageCancelled
269
- */
270
- class CancelInstallWorkOrderFlowTenantFlowBuilder {
271
- constructor(record, provider, pendingLinks, options) {
272
- this._groups = [];
273
- this._steps = [];
274
- this._record = record;
275
- this._provider = provider;
276
- this._pendingLinks = pendingLinks;
277
- this._options = options;
278
- }
279
- /**
280
- * Add a group to the main action
281
- * @param group - Group name to add
282
- * @returns this (for method chaining)
283
- */
284
- addGroup(group) {
285
- this._groups.push(group);
286
- return this;
287
- }
288
- /**
289
- * Add CreateInstallCancelledChangeReasonTenant step to the flow
290
- * @param properties - Properties for this step
291
- * @param options - Optional step settings
292
- * @returns this (for method chaining)
293
- */
294
- createInstallCancelledChangeReasonTenant(properties, options) {
295
- var _a;
296
- this._steps.push({
297
- actionName: 'CreateInstallCancelledChangeReasonTenant',
298
- properties,
299
- entity: 'FieldServiceModule:ChangeReason',
300
- type: 'SA_CANCEL',
301
- autoLinkParent: true,
302
- 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 }))),
303
- groups: options === null || options === void 0 ? void 0 : options.groups,
304
- });
305
- return this;
306
- }
307
- /**
308
- * Execute the flow
309
- * @returns The result from the API
310
- */
311
- execute() {
312
- return __awaiter(this, void 0, void 0, function* () {
313
- const payload = this._buildRequestPayload();
314
- const result = yield this._provider._applyAction('FieldServiceModule', 'WorkOrder', payload);
315
- // Clear pending links on the record after execution
316
- this._record.clearPendingLinks();
317
- return result;
318
- });
319
- }
320
- /**
321
- * Returns the request payload without executing (for debugging)
322
- * @returns The request payload that would be sent to the API
323
- */
324
- dryRun() {
325
- return this._buildRequestPayload();
326
- }
327
- /**
328
- * Prevents accidental `await flowBuilder` without .execute()
329
- * Forces developers to explicitly call .execute()
330
- * @throws Error always - use .execute() or .dryRun() instead
331
- */
332
- then() {
333
- throw new Error('FlowBuilder cannot be awaited directly. Call .execute() to run the flow or .dryRun() to get the payload.');
334
- }
335
- /**
336
- * Build the request payload for the action
337
- * @private
338
- */
339
- _buildRequestPayload() {
340
- const record = this._record.record;
341
- // Build steps with parent associations
342
- const stepsWithAssociations = this._steps.map(step => {
343
- const stepAssociations = [...(step.associations || [])];
344
- // Auto-add parent association if step requires it and we have a parent record
345
- if (step.autoLinkParent && (record === null || record === void 0 ? void 0 : record.id)) {
346
- stepAssociations.push({
347
- entity: record.entity,
348
- recordId: record.id,
349
- linkType: null,
350
- relationType: 'PARENT',
351
- });
352
- }
353
- return {
354
- entity: step.entity,
355
- type: step.type,
356
- actionName: step.actionName,
357
- properties: step.properties,
358
- title: step.title,
359
- id: step.id,
360
- associations: stepAssociations.length > 0 ? stepAssociations : undefined,
361
- groups: step.groups,
362
- };
363
- });
364
- return Object.assign(Object.assign(Object.assign({}, ((record === null || record === void 0 ? void 0 : record.id) && { id: record.id })), { entity: 'FieldServiceModule:WorkOrder', actionName: 'CancelInstallWorkOrderFlowTenant', steps: stepsWithAssociations, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, groups: this._groups.length > 0 ? this._groups : undefined, stageKey: 'WorkOrderStageCancelled' }), this._options);
365
- }
366
- }
367
- exports.CancelInstallWorkOrderFlowTenantFlowBuilder = CancelInstallWorkOrderFlowTenantFlowBuilder;
368
158
  /**
369
159
  * FlowBuilder for CancelPrePullWorkOrderFlowSupplier multi-step action
370
160
  *
@@ -7461,60 +7251,6 @@ class WorkOrderRecord {
7461
7251
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'AssignWorkOrder', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
7462
7252
  return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
7463
7253
  }
7464
- /**
7465
- * CancelInstallWorkOrderFlowSupplier
7466
- *
7467
- * Starts a stage transition flow on this WorkOrder record.
7468
- * Chain step methods and call .execute() to run the flow.
7469
- *
7470
- * @remarks Transitions to stage: WorkOrderStageCancelled
7471
- *
7472
- * @param options - Optional settings
7473
- * @param options.journeyId - Associate with a journey
7474
- * @returns FlowBuilder for chaining step methods
7475
- * @throws Error if called on a new (unsaved) record
7476
- *
7477
- * @example
7478
- * ```typescript
7479
- * const record = await odinClient.workOrders.get(id);
7480
- * await record.cancelInstallWorkOrderFlowSupplier()
7481
- * .createInstallCancelledChangeReasonSupplier({ ... })
7482
- * .execute();
7483
- * ```
7484
- */
7485
- cancelInstallWorkOrderFlowSupplier(options) {
7486
- var _a;
7487
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
7488
- throw new Error('cancelInstallWorkOrderFlowSupplier requires an existing record. Use accessor.get() first.');
7489
- return new CancelInstallWorkOrderFlowSupplierFlowBuilder(this, this._provider, this._pendingLinks, options);
7490
- }
7491
- /**
7492
- * CancelInstallWorkOrderFlowTenant
7493
- *
7494
- * Starts a stage transition flow on this WorkOrder record.
7495
- * Chain step methods and call .execute() to run the flow.
7496
- *
7497
- * @remarks Transitions to stage: WorkOrderStageCancelled
7498
- *
7499
- * @param options - Optional settings
7500
- * @param options.journeyId - Associate with a journey
7501
- * @returns FlowBuilder for chaining step methods
7502
- * @throws Error if called on a new (unsaved) record
7503
- *
7504
- * @example
7505
- * ```typescript
7506
- * const record = await odinClient.workOrders.get(id);
7507
- * await record.cancelInstallWorkOrderFlowTenant()
7508
- * .createInstallCancelledChangeReasonTenant({ ... })
7509
- * .execute();
7510
- * ```
7511
- */
7512
- cancelInstallWorkOrderFlowTenant(options) {
7513
- var _a;
7514
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
7515
- throw new Error('cancelInstallWorkOrderFlowTenant requires an existing record. Use accessor.get() first.');
7516
- return new CancelInstallWorkOrderFlowTenantFlowBuilder(this, this._provider, this._pendingLinks, options);
7517
- }
7518
7254
  /**
7519
7255
  * CancelPrePullWorkOrderFlowSupplier
7520
7256
  *
@@ -20,9 +20,9 @@ export { ServiceAppointmentConfigRecord, isServiceAppointmentConfigRecord } from
20
20
  export { BillingAdjustmentRecord, isBillingAdjustmentRecord } from './BillingAdjustmentRecord';
21
21
  export { BillingRequestRecord, isBillingRequestRecord } from './BillingRequestRecord';
22
22
  export { ChurnRequestRecord, isChurnRequestRecord } from './ChurnRequestRecord';
23
- export { ChangeReasonRecord, isChangeReasonRecord } from './ChangeReasonRecord';
24
23
  export { PICRequestRecord, isPICRequestRecord } from './PICRequestRecord';
25
24
  export { PaymentRecord, isPaymentRecord } from './PaymentRecord';
25
+ export { ChangeReasonRecord, isChangeReasonRecord } from './ChangeReasonRecord';
26
26
  export { TransactionRecord, isTransactionRecord } from './TransactionRecord';
27
27
  export { PermissionToFailRecord, isPermissionToFailRecord } from './PermissionToFailRecord';
28
28
  export { AccountRecord, isAccountRecord } from './AccountRecord';
@@ -11,7 +11,7 @@
11
11
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
12
  */
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.isOhInProgressAuditRecord = exports.OhInProgressAuditRecord = exports.isOhAuditOfInstallationRecord = exports.OhAuditOfInstallationRecord = exports.isUgRetroAuditRecord = exports.UgRetroAuditRecord = exports.isUgInProgressAuditRecord = exports.UgInProgressAuditRecord = exports.isUgInstallationAuditRecord = exports.UgInstallationAuditRecord = exports.isUgAuditOfInstallationRecord = exports.UgAuditOfInstallationRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isCaseRecord = exports.CaseRecord = exports.isAddressRecord = exports.AddressRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
14
+ exports.isOhInProgressAuditRecord = exports.OhInProgressAuditRecord = exports.isOhAuditOfInstallationRecord = exports.OhAuditOfInstallationRecord = exports.isUgRetroAuditRecord = exports.UgRetroAuditRecord = exports.isUgInProgressAuditRecord = exports.UgInProgressAuditRecord = exports.isUgInstallationAuditRecord = exports.UgInstallationAuditRecord = exports.isUgAuditOfInstallationRecord = exports.UgAuditOfInstallationRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isCaseRecord = exports.CaseRecord = exports.isAddressRecord = exports.AddressRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
15
15
  exports.isConfigRecord = exports.ConfigRecord = exports.isEmailRecord = exports.EmailRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallTransferRecord = exports.CallTransferRecord = exports.isCallEventRecord = exports.CallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = exports.isServiceVisitAuditRecord = exports.ServiceVisitAuditRecord = exports.isYfFieldServiceVisitRecord = exports.YfFieldServiceVisitRecord = exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isInternalInstallAuditRecord = exports.InternalInstallAuditRecord = exports.isSweeperMaintenanceAuditRecord = exports.SweeperMaintenanceAuditRecord = exports.isBlockageA55Record = exports.BlockageA55Record = exports.isOhRetroAuditRecord = exports.OhRetroAuditRecord = exports.isOhInstallationAuditRecord = exports.OhInstallationAuditRecord = void 0;
16
16
  exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isMessageRecord = exports.MessageRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = void 0;
17
17
  exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceRouterRecord = exports.CustomerDeviceRouterRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = void 0;
@@ -49,15 +49,15 @@ Object.defineProperty(exports, "isBillingRequestRecord", { enumerable: true, get
49
49
  var ChurnRequestRecord_1 = require("./ChurnRequestRecord");
50
50
  Object.defineProperty(exports, "ChurnRequestRecord", { enumerable: true, get: function () { return ChurnRequestRecord_1.ChurnRequestRecord; } });
51
51
  Object.defineProperty(exports, "isChurnRequestRecord", { enumerable: true, get: function () { return ChurnRequestRecord_1.isChurnRequestRecord; } });
52
- var ChangeReasonRecord_1 = require("./ChangeReasonRecord");
53
- Object.defineProperty(exports, "ChangeReasonRecord", { enumerable: true, get: function () { return ChangeReasonRecord_1.ChangeReasonRecord; } });
54
- Object.defineProperty(exports, "isChangeReasonRecord", { enumerable: true, get: function () { return ChangeReasonRecord_1.isChangeReasonRecord; } });
55
52
  var PICRequestRecord_1 = require("./PICRequestRecord");
56
53
  Object.defineProperty(exports, "PICRequestRecord", { enumerable: true, get: function () { return PICRequestRecord_1.PICRequestRecord; } });
57
54
  Object.defineProperty(exports, "isPICRequestRecord", { enumerable: true, get: function () { return PICRequestRecord_1.isPICRequestRecord; } });
58
55
  var PaymentRecord_1 = require("./PaymentRecord");
59
56
  Object.defineProperty(exports, "PaymentRecord", { enumerable: true, get: function () { return PaymentRecord_1.PaymentRecord; } });
60
57
  Object.defineProperty(exports, "isPaymentRecord", { enumerable: true, get: function () { return PaymentRecord_1.isPaymentRecord; } });
58
+ var ChangeReasonRecord_1 = require("./ChangeReasonRecord");
59
+ Object.defineProperty(exports, "ChangeReasonRecord", { enumerable: true, get: function () { return ChangeReasonRecord_1.ChangeReasonRecord; } });
60
+ Object.defineProperty(exports, "isChangeReasonRecord", { enumerable: true, get: function () { return ChangeReasonRecord_1.isChangeReasonRecord; } });
61
61
  var TransactionRecord_1 = require("./TransactionRecord");
62
62
  Object.defineProperty(exports, "TransactionRecord", { enumerable: true, get: function () { return TransactionRecord_1.TransactionRecord; } });
63
63
  Object.defineProperty(exports, "isTransactionRecord", { enumerable: true, get: function () { return TransactionRecord_1.isTransactionRecord; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.90",
3
+ "version": "2.0.93",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",