@d19n/youfibre-odin-sdk 2.0.129 → 2.0.130
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.
- package/README.md +25 -2
- package/dist/actions-v2/CancelServiceWorkOrderFlowSupplierDto.d.ts +3 -120
- package/dist/actions-v2/CancelServiceWorkOrderFlowSupplierDto.js +2 -64
- package/dist/actions-v2/CompleteServiceWorkOrderFlowSupplierDto.d.ts +68 -0
- package/dist/actions-v2/CompleteServiceWorkOrderFlowSupplierDto.js +60 -0
- package/dist/actions-v2/CreateAgentCallLegDto.d.ts +9 -1
- package/dist/actions-v2/CreateCustomerCallLegDto.d.ts +9 -1
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToPendingSupplierDto.d.ts +65 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToPendingSupplierDto.js +57 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromInProgressToPendingSupplierDto.d.ts +65 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromInProgressToPendingSupplierDto.js +57 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromRemediationRequiredToPendingSupplierDto.d.ts +65 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromRemediationRequiredToPendingSupplierDto.js +57 -0
- package/dist/actions-v2/MoveServiceWorkOrderToEnRouteSupplierDto.d.ts +65 -0
- package/dist/actions-v2/MoveServiceWorkOrderToEnRouteSupplierDto.js +57 -0
- package/dist/actions-v2/MoveServiceWorkOrderToInProgressSupplierDto.d.ts +65 -0
- package/dist/actions-v2/MoveServiceWorkOrderToInProgressSupplierDto.js +57 -0
- package/dist/actions-v2/MoveServiceWorkOrderToRemediationSupplierDto.d.ts +68 -0
- package/dist/actions-v2/MoveServiceWorkOrderToRemediationSupplierDto.js +60 -0
- package/dist/entities-v2/CallLeg.d.ts +8 -1
- package/dist/entities-v2/CallLeg.js +2 -0
- package/dist/records-v2/ChangeReasonRecord.d.ts +29 -29
- package/dist/records-v2/ChangeReasonRecord.js +36 -36
- package/dist/records-v2/WorkOrderRecord.d.ts +183 -70
- package/dist/records-v2/WorkOrderRecord.js +213 -113
- package/package.json +1 -1
|
@@ -26,7 +26,6 @@ import { ChangeReasonProperties, SaCancelChangeReasonProperties, SaDelayChangeRe
|
|
|
26
26
|
import { CreateInstallCancelledChangeReasonTenantProperties } from '../actions-v2/CancelInstallWorkOrderFlowTenantDto';
|
|
27
27
|
import { CreatePrePullCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelPrePullWorkOrderFlowSupplierDto';
|
|
28
28
|
import { CreateRemediationCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelRemediationWorkOrderSupplierDto';
|
|
29
|
-
import { CreateServiceCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelServiceWorkOrderFlowSupplierDto';
|
|
30
29
|
import { CreateServiceCancelledChangeReasonTenantProperties } from '../actions-v2/CancelServiceWorkOrderFlowTenantDto';
|
|
31
30
|
import { CancelServiceWorkOrderSupplierProperties } from '../actions-v2/CancelServiceWorkOrderSupplierDto';
|
|
32
31
|
import { CancelServiceWorkOrderTenantProperties } from '../actions-v2/CancelServiceWorkOrderTenantDto';
|
|
@@ -36,6 +35,7 @@ import { CreateInstallRescheduledChangeReasonSupplierProperties } from '../actio
|
|
|
36
35
|
import { CreateInstallRescheduledChangeReasonTenantProperties } from '../actions-v2/CreateInstallRescheduledChangeReasonTenantDto';
|
|
37
36
|
import { CreatePrePullRescheduledChangeReasonSupplierProperties } from '../actions-v2/CreatePrePullRescheduledChangeReasonSupplierDto';
|
|
38
37
|
import { CreateRemediationRescheduledChangeReasonSupplierProperties } from '../actions-v2/CreateRemediationRescheduledChangeReasonSupplierDto';
|
|
38
|
+
import { CreateServiceCancelledChangeReasonSupplierProperties } from '../actions-v2/CreateServiceCancelledChangeReasonSupplierDto';
|
|
39
39
|
import { CreateServiceRescheduledChangeReasonSupplierProperties } from '../actions-v2/CreateServiceRescheduledChangeReasonSupplierDto';
|
|
40
40
|
import { CreateServiceRescheduledChangeReasonTenantProperties } from '../actions-v2/CreateServiceRescheduledChangeReasonTenantDto';
|
|
41
41
|
import { UpdateCancellationReasonDefaultProperties } from '../actions-v2/UpdateCancellationReasonDefaultDto';
|
|
@@ -401,34 +401,6 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
401
401
|
journeyId?: string;
|
|
402
402
|
stageKey?: string;
|
|
403
403
|
}): ActionBuilder;
|
|
404
|
-
/**
|
|
405
|
-
* CreateServiceCancelledChangeReasonSupplier
|
|
406
|
-
*
|
|
407
|
-
* Creates a new ChangeReason record with the specified properties.
|
|
408
|
-
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
409
|
-
*
|
|
410
|
-
* @remarks Record type: SA_CANCEL
|
|
411
|
-
*
|
|
412
|
-
* @param properties - The properties for the new record
|
|
413
|
-
* @param options - Optional settings
|
|
414
|
-
* @param options.journeyId - Associate with a journey
|
|
415
|
-
* @param options.stageKey - Set initial pipeline stage
|
|
416
|
-
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
417
|
-
*
|
|
418
|
-
* @example
|
|
419
|
-
* ```typescript
|
|
420
|
-
* // Create with properties
|
|
421
|
-
* const record = odinClient.changeReasons.new();
|
|
422
|
-
* await record.createServiceCancelledChangeReasonSupplier({ ... }).execute();
|
|
423
|
-
*
|
|
424
|
-
* // Dry run (for debugging)
|
|
425
|
-
* const payload = record.createServiceCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
426
|
-
* ```
|
|
427
|
-
*/
|
|
428
|
-
createServiceCancelledChangeReasonSupplier(properties: CreateServiceCancelledChangeReasonSupplierProperties, options?: {
|
|
429
|
-
journeyId?: string;
|
|
430
|
-
stageKey?: string;
|
|
431
|
-
}): ActionBuilder;
|
|
432
404
|
/**
|
|
433
405
|
* CreateServiceCancelledChangeReasonTenant
|
|
434
406
|
*
|
|
@@ -681,6 +653,34 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
681
653
|
journeyId?: string;
|
|
682
654
|
stageKey?: string;
|
|
683
655
|
}): ActionBuilder;
|
|
656
|
+
/**
|
|
657
|
+
* CreateServiceCancelledChangeReasonSupplier
|
|
658
|
+
*
|
|
659
|
+
* Creates a new ChangeReason record with the specified properties.
|
|
660
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
661
|
+
*
|
|
662
|
+
* @remarks Record type: SA_CANCEL
|
|
663
|
+
*
|
|
664
|
+
* @param properties - The properties for the new record
|
|
665
|
+
* @param options - Optional settings
|
|
666
|
+
* @param options.journeyId - Associate with a journey
|
|
667
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
668
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
669
|
+
*
|
|
670
|
+
* @example
|
|
671
|
+
* ```typescript
|
|
672
|
+
* // Create with properties
|
|
673
|
+
* const record = odinClient.changeReasons.new();
|
|
674
|
+
* await record.createServiceCancelledChangeReasonSupplier({ ... }).execute();
|
|
675
|
+
*
|
|
676
|
+
* // Dry run (for debugging)
|
|
677
|
+
* const payload = record.createServiceCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
678
|
+
* ```
|
|
679
|
+
*/
|
|
680
|
+
createServiceCancelledChangeReasonSupplier(properties: CreateServiceCancelledChangeReasonSupplierProperties, options?: {
|
|
681
|
+
journeyId?: string;
|
|
682
|
+
stageKey?: string;
|
|
683
|
+
}): ActionBuilder;
|
|
684
684
|
/**
|
|
685
685
|
* CreateServiceRescheduledChangeReasonSupplier
|
|
686
686
|
*
|
|
@@ -510,42 +510,6 @@ class ChangeReasonRecord {
|
|
|
510
510
|
};
|
|
511
511
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
512
512
|
}
|
|
513
|
-
/**
|
|
514
|
-
* CreateServiceCancelledChangeReasonSupplier
|
|
515
|
-
*
|
|
516
|
-
* Creates a new ChangeReason record with the specified properties.
|
|
517
|
-
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
518
|
-
*
|
|
519
|
-
* @remarks Record type: SA_CANCEL
|
|
520
|
-
*
|
|
521
|
-
* @param properties - The properties for the new record
|
|
522
|
-
* @param options - Optional settings
|
|
523
|
-
* @param options.journeyId - Associate with a journey
|
|
524
|
-
* @param options.stageKey - Set initial pipeline stage
|
|
525
|
-
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
526
|
-
*
|
|
527
|
-
* @example
|
|
528
|
-
* ```typescript
|
|
529
|
-
* // Create with properties
|
|
530
|
-
* const record = odinClient.changeReasons.new();
|
|
531
|
-
* await record.createServiceCancelledChangeReasonSupplier({ ... }).execute();
|
|
532
|
-
*
|
|
533
|
-
* // Dry run (for debugging)
|
|
534
|
-
* const payload = record.createServiceCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
535
|
-
* ```
|
|
536
|
-
*/
|
|
537
|
-
createServiceCancelledChangeReasonSupplier(properties, options) {
|
|
538
|
-
const payload = {
|
|
539
|
-
entity: 'FieldServiceModule:ChangeReason',
|
|
540
|
-
type: 'SA_CANCEL',
|
|
541
|
-
actionName: 'CreateServiceCancelledChangeReasonSupplier',
|
|
542
|
-
properties: properties || {},
|
|
543
|
-
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
544
|
-
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
545
|
-
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
546
|
-
};
|
|
547
|
-
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
548
|
-
}
|
|
549
513
|
/**
|
|
550
514
|
* CreateServiceCancelledChangeReasonTenant
|
|
551
515
|
*
|
|
@@ -870,6 +834,42 @@ class ChangeReasonRecord {
|
|
|
870
834
|
};
|
|
871
835
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
872
836
|
}
|
|
837
|
+
/**
|
|
838
|
+
* CreateServiceCancelledChangeReasonSupplier
|
|
839
|
+
*
|
|
840
|
+
* Creates a new ChangeReason record with the specified properties.
|
|
841
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
842
|
+
*
|
|
843
|
+
* @remarks Record type: SA_CANCEL
|
|
844
|
+
*
|
|
845
|
+
* @param properties - The properties for the new record
|
|
846
|
+
* @param options - Optional settings
|
|
847
|
+
* @param options.journeyId - Associate with a journey
|
|
848
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
849
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
850
|
+
*
|
|
851
|
+
* @example
|
|
852
|
+
* ```typescript
|
|
853
|
+
* // Create with properties
|
|
854
|
+
* const record = odinClient.changeReasons.new();
|
|
855
|
+
* await record.createServiceCancelledChangeReasonSupplier({ ... }).execute();
|
|
856
|
+
*
|
|
857
|
+
* // Dry run (for debugging)
|
|
858
|
+
* const payload = record.createServiceCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
859
|
+
* ```
|
|
860
|
+
*/
|
|
861
|
+
createServiceCancelledChangeReasonSupplier(properties, options) {
|
|
862
|
+
const payload = {
|
|
863
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
864
|
+
type: 'SA_CANCEL',
|
|
865
|
+
actionName: 'CreateServiceCancelledChangeReasonSupplier',
|
|
866
|
+
properties: properties || {},
|
|
867
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
868
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
869
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
870
|
+
};
|
|
871
|
+
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
872
|
+
}
|
|
873
873
|
/**
|
|
874
874
|
* CreateServiceRescheduledChangeReasonSupplier
|
|
875
875
|
*
|
|
@@ -29,7 +29,6 @@ import { AssignWorkOrderProperties } from '../actions-v2/AssignWorkOrderDto';
|
|
|
29
29
|
import { CreateInstallCancelledChangeReasonTenantProperties } from '../actions-v2/CancelInstallWorkOrderFlowTenantDto';
|
|
30
30
|
import { CreatePrePullCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelPrePullWorkOrderFlowSupplierDto';
|
|
31
31
|
import { CreateRemediationCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelRemediationWorkOrderSupplierDto';
|
|
32
|
-
import { CreateServiceCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelServiceWorkOrderFlowSupplierDto';
|
|
33
32
|
import { CreateServiceCancelledChangeReasonTenantProperties } from '../actions-v2/CancelServiceWorkOrderFlowTenantDto';
|
|
34
33
|
import { ChangeWorkOrderStatusProperties } from '../actions-v2/ChangeWorkOrderStatusDto';
|
|
35
34
|
import { CompleteCollectionInspectionDetailsProperties } from '../actions-v2/CompleteCollectionInspectionDetailsDto';
|
|
@@ -371,68 +370,6 @@ export declare class CancelRemediationWorkOrderSupplierFlowBuilder {
|
|
|
371
370
|
private _buildRequestPayload;
|
|
372
371
|
}
|
|
373
372
|
/** Options for a flow step */
|
|
374
|
-
export interface CancelServiceWorkOrderFlowSupplierFlowBuilderStepOptions {
|
|
375
|
-
/** Associations to create with this step */
|
|
376
|
-
associations?: Array<{
|
|
377
|
-
recordId?: string;
|
|
378
|
-
entity?: string;
|
|
379
|
-
}>;
|
|
380
|
-
/** Groups for this step */
|
|
381
|
-
groups?: string[];
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* FlowBuilder for CancelServiceWorkOrderFlowSupplier multi-step action
|
|
385
|
-
*
|
|
386
|
-
* Use method chaining to add steps, then call execute() to run the flow.
|
|
387
|
-
* This is a CREATE flow - no existing record required.
|
|
388
|
-
* Transitions to stage: WorkOrderStageCancelled
|
|
389
|
-
*/
|
|
390
|
-
export declare class CancelServiceWorkOrderFlowSupplierFlowBuilder {
|
|
391
|
-
private _record;
|
|
392
|
-
private _provider;
|
|
393
|
-
private _pendingLinks;
|
|
394
|
-
private _options?;
|
|
395
|
-
private _groups;
|
|
396
|
-
private _steps;
|
|
397
|
-
constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
398
|
-
journeyId?: string;
|
|
399
|
-
});
|
|
400
|
-
/**
|
|
401
|
-
* Add a group to the main action
|
|
402
|
-
* @param group - Group name to add
|
|
403
|
-
* @returns this (for method chaining)
|
|
404
|
-
*/
|
|
405
|
-
addGroup(group: string): this;
|
|
406
|
-
/**
|
|
407
|
-
* Add CreateServiceCancelledChangeReasonSupplier step to the flow
|
|
408
|
-
* @param properties - Properties for this step
|
|
409
|
-
* @param options - Optional step settings
|
|
410
|
-
* @returns this (for method chaining)
|
|
411
|
-
*/
|
|
412
|
-
createServiceCancelledChangeReasonSupplier(properties: CreateServiceCancelledChangeReasonSupplierProperties, options?: CancelServiceWorkOrderFlowSupplierFlowBuilderStepOptions): this;
|
|
413
|
-
/**
|
|
414
|
-
* Execute the flow
|
|
415
|
-
* @returns The result from the API
|
|
416
|
-
*/
|
|
417
|
-
execute(): Promise<IDbRecordCreateUpdateRes[]>;
|
|
418
|
-
/**
|
|
419
|
-
* Returns the request payload without executing (for debugging)
|
|
420
|
-
* @returns The request payload that would be sent to the API
|
|
421
|
-
*/
|
|
422
|
-
dryRun(): Record<string, any>;
|
|
423
|
-
/**
|
|
424
|
-
* Prevents accidental `await flowBuilder` without .execute()
|
|
425
|
-
* Forces developers to explicitly call .execute()
|
|
426
|
-
* @throws Error always - use .execute() or .dryRun() instead
|
|
427
|
-
*/
|
|
428
|
-
then(): never;
|
|
429
|
-
/**
|
|
430
|
-
* Build the request payload for the action
|
|
431
|
-
* @private
|
|
432
|
-
*/
|
|
433
|
-
private _buildRequestPayload;
|
|
434
|
-
}
|
|
435
|
-
/** Options for a flow step */
|
|
436
373
|
export interface CancelServiceWorkOrderFlowTenantFlowBuilderStepOptions {
|
|
437
374
|
/** Associations to create with this step */
|
|
438
375
|
associations?: Array<{
|
|
@@ -4025,27 +3962,28 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
4025
3962
|
/**
|
|
4026
3963
|
* CancelServiceWorkOrderFlowSupplier
|
|
4027
3964
|
*
|
|
4028
|
-
*
|
|
4029
|
-
*
|
|
3965
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
3966
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
4030
3967
|
*
|
|
4031
3968
|
* @remarks Transitions to stage: WorkOrderStageCancelled
|
|
4032
3969
|
*
|
|
4033
3970
|
* @param options - Optional settings
|
|
4034
3971
|
* @param options.journeyId - Associate with a journey
|
|
4035
|
-
* @returns
|
|
3972
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
4036
3973
|
* @throws Error if called on a new (unsaved) record
|
|
4037
3974
|
*
|
|
4038
3975
|
* @example
|
|
4039
3976
|
* ```typescript
|
|
4040
3977
|
* const record = await odinClient.workOrders.get(id);
|
|
4041
|
-
* await record.cancelServiceWorkOrderFlowSupplier()
|
|
4042
|
-
*
|
|
4043
|
-
*
|
|
3978
|
+
* await record.cancelServiceWorkOrderFlowSupplier().execute();
|
|
3979
|
+
*
|
|
3980
|
+
* // Dry run (for debugging)
|
|
3981
|
+
* const payload = record.cancelServiceWorkOrderFlowSupplier().dryRun();
|
|
4044
3982
|
* ```
|
|
4045
3983
|
*/
|
|
4046
3984
|
cancelServiceWorkOrderFlowSupplier(options?: {
|
|
4047
3985
|
journeyId?: string;
|
|
4048
|
-
}):
|
|
3986
|
+
}): ActionBuilder;
|
|
4049
3987
|
/**
|
|
4050
3988
|
* CancelServiceWorkOrderFlowTenant
|
|
4051
3989
|
*
|
|
@@ -4331,6 +4269,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
4331
4269
|
completeServiceWorkOrderFlow(options?: {
|
|
4332
4270
|
journeyId?: string;
|
|
4333
4271
|
}): CompleteServiceWorkOrderFlowFlowBuilder;
|
|
4272
|
+
/**
|
|
4273
|
+
* CompleteServiceWorkOrderFlowSupplier
|
|
4274
|
+
*
|
|
4275
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
4276
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
4277
|
+
*
|
|
4278
|
+
* @remarks Transitions to stage: WorkOrderStageDone
|
|
4279
|
+
*
|
|
4280
|
+
* @param options - Optional settings
|
|
4281
|
+
* @param options.journeyId - Associate with a journey
|
|
4282
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
4283
|
+
* @throws Error if called on a new (unsaved) record
|
|
4284
|
+
*
|
|
4285
|
+
* @example
|
|
4286
|
+
* ```typescript
|
|
4287
|
+
* const record = await odinClient.workOrders.get(id);
|
|
4288
|
+
* await record.completeServiceWorkOrderFlowSupplier().execute();
|
|
4289
|
+
*
|
|
4290
|
+
* // Dry run (for debugging)
|
|
4291
|
+
* const payload = record.completeServiceWorkOrderFlowSupplier().dryRun();
|
|
4292
|
+
* ```
|
|
4293
|
+
*/
|
|
4294
|
+
completeServiceWorkOrderFlowSupplier(options?: {
|
|
4295
|
+
journeyId?: string;
|
|
4296
|
+
}): ActionBuilder;
|
|
4334
4297
|
/**
|
|
4335
4298
|
* CreateCollectionAmcoReplacementWorkOrderFromWorkOrder
|
|
4336
4299
|
*
|
|
@@ -6487,6 +6450,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6487
6450
|
moveServiceWorkOrderFromEnRouteToPending(options?: {
|
|
6488
6451
|
journeyId?: string;
|
|
6489
6452
|
}): ActionBuilder;
|
|
6453
|
+
/**
|
|
6454
|
+
* MoveServiceWorkOrderFromEnRouteToPendingSupplier
|
|
6455
|
+
*
|
|
6456
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6457
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6458
|
+
*
|
|
6459
|
+
* @remarks Transitions to stage: CustomerWorkOrdersStagePending
|
|
6460
|
+
*
|
|
6461
|
+
* @param options - Optional settings
|
|
6462
|
+
* @param options.journeyId - Associate with a journey
|
|
6463
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6464
|
+
* @throws Error if called on a new (unsaved) record
|
|
6465
|
+
*
|
|
6466
|
+
* @example
|
|
6467
|
+
* ```typescript
|
|
6468
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6469
|
+
* await record.moveServiceWorkOrderFromEnRouteToPendingSupplier().execute();
|
|
6470
|
+
*
|
|
6471
|
+
* // Dry run (for debugging)
|
|
6472
|
+
* const payload = record.moveServiceWorkOrderFromEnRouteToPendingSupplier().dryRun();
|
|
6473
|
+
* ```
|
|
6474
|
+
*/
|
|
6475
|
+
moveServiceWorkOrderFromEnRouteToPendingSupplier(options?: {
|
|
6476
|
+
journeyId?: string;
|
|
6477
|
+
}): ActionBuilder;
|
|
6490
6478
|
/**
|
|
6491
6479
|
* MoveServiceWorkOrderFromInProgressToPending
|
|
6492
6480
|
*
|
|
@@ -6512,6 +6500,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6512
6500
|
moveServiceWorkOrderFromInProgressToPending(options?: {
|
|
6513
6501
|
journeyId?: string;
|
|
6514
6502
|
}): ActionBuilder;
|
|
6503
|
+
/**
|
|
6504
|
+
* MoveServiceWorkOrderFromInProgressToPendingSupplier
|
|
6505
|
+
*
|
|
6506
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6507
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6508
|
+
*
|
|
6509
|
+
* @remarks Transitions to stage: CustomerWorkOrdersStagePending
|
|
6510
|
+
*
|
|
6511
|
+
* @param options - Optional settings
|
|
6512
|
+
* @param options.journeyId - Associate with a journey
|
|
6513
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6514
|
+
* @throws Error if called on a new (unsaved) record
|
|
6515
|
+
*
|
|
6516
|
+
* @example
|
|
6517
|
+
* ```typescript
|
|
6518
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6519
|
+
* await record.moveServiceWorkOrderFromInProgressToPendingSupplier().execute();
|
|
6520
|
+
*
|
|
6521
|
+
* // Dry run (for debugging)
|
|
6522
|
+
* const payload = record.moveServiceWorkOrderFromInProgressToPendingSupplier().dryRun();
|
|
6523
|
+
* ```
|
|
6524
|
+
*/
|
|
6525
|
+
moveServiceWorkOrderFromInProgressToPendingSupplier(options?: {
|
|
6526
|
+
journeyId?: string;
|
|
6527
|
+
}): ActionBuilder;
|
|
6515
6528
|
/**
|
|
6516
6529
|
* MoveServiceWorkOrderFromRemediationRequiredToPending
|
|
6517
6530
|
*
|
|
@@ -6537,6 +6550,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6537
6550
|
moveServiceWorkOrderFromRemediationRequiredToPending(options?: {
|
|
6538
6551
|
journeyId?: string;
|
|
6539
6552
|
}): ActionBuilder;
|
|
6553
|
+
/**
|
|
6554
|
+
* MoveServiceWorkOrderFromRemediationRequiredToPendingSupplier
|
|
6555
|
+
*
|
|
6556
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6557
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6558
|
+
*
|
|
6559
|
+
* @remarks Transitions to stage: CustomerWorkOrdersStagePending
|
|
6560
|
+
*
|
|
6561
|
+
* @param options - Optional settings
|
|
6562
|
+
* @param options.journeyId - Associate with a journey
|
|
6563
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6564
|
+
* @throws Error if called on a new (unsaved) record
|
|
6565
|
+
*
|
|
6566
|
+
* @example
|
|
6567
|
+
* ```typescript
|
|
6568
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6569
|
+
* await record.moveServiceWorkOrderFromRemediationRequiredToPendingSupplier().execute();
|
|
6570
|
+
*
|
|
6571
|
+
* // Dry run (for debugging)
|
|
6572
|
+
* const payload = record.moveServiceWorkOrderFromRemediationRequiredToPendingSupplier().dryRun();
|
|
6573
|
+
* ```
|
|
6574
|
+
*/
|
|
6575
|
+
moveServiceWorkOrderFromRemediationRequiredToPendingSupplier(options?: {
|
|
6576
|
+
journeyId?: string;
|
|
6577
|
+
}): ActionBuilder;
|
|
6540
6578
|
/**
|
|
6541
6579
|
* MoveServiceWorkOrderToCancelled
|
|
6542
6580
|
*
|
|
@@ -6587,6 +6625,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6587
6625
|
moveServiceWorkOrderToEnRoute(options?: {
|
|
6588
6626
|
journeyId?: string;
|
|
6589
6627
|
}): ActionBuilder;
|
|
6628
|
+
/**
|
|
6629
|
+
* MoveServiceWorkOrderToEnRouteSupplier
|
|
6630
|
+
*
|
|
6631
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6632
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6633
|
+
*
|
|
6634
|
+
* @remarks Transitions to stage: WorkOrderStageEnRoute
|
|
6635
|
+
*
|
|
6636
|
+
* @param options - Optional settings
|
|
6637
|
+
* @param options.journeyId - Associate with a journey
|
|
6638
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6639
|
+
* @throws Error if called on a new (unsaved) record
|
|
6640
|
+
*
|
|
6641
|
+
* @example
|
|
6642
|
+
* ```typescript
|
|
6643
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6644
|
+
* await record.moveServiceWorkOrderToEnRouteSupplier().execute();
|
|
6645
|
+
*
|
|
6646
|
+
* // Dry run (for debugging)
|
|
6647
|
+
* const payload = record.moveServiceWorkOrderToEnRouteSupplier().dryRun();
|
|
6648
|
+
* ```
|
|
6649
|
+
*/
|
|
6650
|
+
moveServiceWorkOrderToEnRouteSupplier(options?: {
|
|
6651
|
+
journeyId?: string;
|
|
6652
|
+
}): ActionBuilder;
|
|
6590
6653
|
/**
|
|
6591
6654
|
* MoveServiceWorkOrderToInProgress
|
|
6592
6655
|
*
|
|
@@ -6636,6 +6699,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6636
6699
|
moveServiceWorkOrderToInProgressSubstantial(options?: {
|
|
6637
6700
|
journeyId?: string;
|
|
6638
6701
|
}): MoveServiceWorkOrderToInProgressSubstantialFlowBuilder;
|
|
6702
|
+
/**
|
|
6703
|
+
* MoveServiceWorkOrderToInProgressSupplier
|
|
6704
|
+
*
|
|
6705
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6706
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6707
|
+
*
|
|
6708
|
+
* @remarks Transitions to stage: WorkOrderStageInProgress
|
|
6709
|
+
*
|
|
6710
|
+
* @param options - Optional settings
|
|
6711
|
+
* @param options.journeyId - Associate with a journey
|
|
6712
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6713
|
+
* @throws Error if called on a new (unsaved) record
|
|
6714
|
+
*
|
|
6715
|
+
* @example
|
|
6716
|
+
* ```typescript
|
|
6717
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6718
|
+
* await record.moveServiceWorkOrderToInProgressSupplier().execute();
|
|
6719
|
+
*
|
|
6720
|
+
* // Dry run (for debugging)
|
|
6721
|
+
* const payload = record.moveServiceWorkOrderToInProgressSupplier().dryRun();
|
|
6722
|
+
* ```
|
|
6723
|
+
*/
|
|
6724
|
+
moveServiceWorkOrderToInProgressSupplier(options?: {
|
|
6725
|
+
journeyId?: string;
|
|
6726
|
+
}): ActionBuilder;
|
|
6639
6727
|
/**
|
|
6640
6728
|
* MoveServiceWorkOrderToRemediation
|
|
6641
6729
|
*
|
|
@@ -6661,6 +6749,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6661
6749
|
moveServiceWorkOrderToRemediation(options?: {
|
|
6662
6750
|
journeyId?: string;
|
|
6663
6751
|
}): MoveServiceWorkOrderToRemediationFlowBuilder;
|
|
6752
|
+
/**
|
|
6753
|
+
* MoveServiceWorkOrderToRemediationSupplier
|
|
6754
|
+
*
|
|
6755
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6756
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6757
|
+
*
|
|
6758
|
+
* @remarks Transitions to stage: WorkOrderRemediationRequired
|
|
6759
|
+
*
|
|
6760
|
+
* @param options - Optional settings
|
|
6761
|
+
* @param options.journeyId - Associate with a journey
|
|
6762
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6763
|
+
* @throws Error if called on a new (unsaved) record
|
|
6764
|
+
*
|
|
6765
|
+
* @example
|
|
6766
|
+
* ```typescript
|
|
6767
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6768
|
+
* await record.moveServiceWorkOrderToRemediationSupplier().execute();
|
|
6769
|
+
*
|
|
6770
|
+
* // Dry run (for debugging)
|
|
6771
|
+
* const payload = record.moveServiceWorkOrderToRemediationSupplier().dryRun();
|
|
6772
|
+
* ```
|
|
6773
|
+
*/
|
|
6774
|
+
moveServiceWorkOrderToRemediationSupplier(options?: {
|
|
6775
|
+
journeyId?: string;
|
|
6776
|
+
}): ActionBuilder;
|
|
6664
6777
|
/**
|
|
6665
6778
|
* MoveWayleaveWorkOrderToAwaitingPtd
|
|
6666
6779
|
*
|