@d19n/youfibre-odin-sdk 2.0.355 → 2.0.357
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 +2 -1
- package/dist/actions-v2/CreateCollectionAmcoFollowOnWorkOrderDto.d.ts +68 -0
- package/dist/actions-v2/CreateCollectionAmcoFollowOnWorkOrderDto.js +61 -0
- package/dist/actions-v2/CreateEquipmentReturnItemDto.d.ts +8 -1
- package/dist/entities-v2/EquipmentReturnItem.d.ts +9 -1
- package/dist/entities-v2/EquipmentReturnItem.js +2 -0
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +45 -0
- package/dist/records-v2/OneTouchSwitchRecord.js +15 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +28 -0
- package/dist/records-v2/WorkOrderRecord.js +37 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -394,7 +394,7 @@ This SDK includes **201** entities across **13** modules.
|
|
|
394
394
|
|
|
395
395
|
## Actions
|
|
396
396
|
|
|
397
|
-
This SDK includes **
|
|
397
|
+
This SDK includes **933** actions.
|
|
398
398
|
|
|
399
399
|
### Action Types
|
|
400
400
|
|
|
@@ -502,6 +502,7 @@ This SDK includes **932** actions.
|
|
|
502
502
|
| `CompleteServiceWorkOrderFlow` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CompleteServiceWorkOrder |
|
|
503
503
|
| `CompleteServiceWorkOrderFlowSupplier` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CompleteServiceWorkOrderFlowSupplier |
|
|
504
504
|
| `CreateCancelCollectionAmco` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCancelCollectionAmco |
|
|
505
|
+
| `CreateCollectionAmcoFollowOnWorkOrder` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder |
|
|
505
506
|
| `CreateCollectionAmcoReplacementWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCollectionAmcoReplacementWorkOrder |
|
|
506
507
|
| `CreateCollectionAmcoReplacementWorkOrderFromWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCollectionAmcoReplacementWorkOrder |
|
|
507
508
|
| `CreateCollectionAmcoWorkOrder` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Create.CreateCollectionAmcoWorkOrder |
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateCollectionAmcoFollowOnWorkOrder Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity WorkOrder
|
|
8
|
+
* @entityType COLLECTION_AMCO
|
|
9
|
+
* @actionKey CreateCollectionAmcoFollowOnWorkOrder
|
|
10
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* RabbitMQ message payload for CreateCollectionAmcoFollowOnWorkOrder updated events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateCollectionAmcoFollowOnWorkOrderMessage extends OdinRecordUpdatedEvent<CreateCollectionAmcoFollowOnWorkOrderDto, CreateCollectionAmcoFollowOnWorkOrderProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateCollectionAmcoFollowOnWorkOrder action
|
|
24
|
+
*
|
|
25
|
+
*/
|
|
26
|
+
export interface CreateCollectionAmcoFollowOnWorkOrderProperties {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Send Another Bag
|
|
30
|
+
*
|
|
31
|
+
* Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
|
|
32
|
+
*
|
|
33
|
+
* @actionType UPDATE - Updates an existing WorkOrder record
|
|
34
|
+
* @module FieldServiceModule
|
|
35
|
+
* @entity WorkOrder
|
|
36
|
+
* @entityType COLLECTION_AMCO ( 3PL Collection)
|
|
37
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
|
|
38
|
+
* @permission schema.action.createcollectionamcofollowonworkorder.trigger
|
|
39
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
40
|
+
*/
|
|
41
|
+
export declare class CreateCollectionAmcoFollowOnWorkOrderDto extends OdinRecordUpdateDto<CreateCollectionAmcoFollowOnWorkOrderProperties> {
|
|
42
|
+
/** Used by SDK generators to identify action type */
|
|
43
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
44
|
+
static readonly ACTION_KEY = "CreateCollectionAmcoFollowOnWorkOrder";
|
|
45
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
46
|
+
static readonly ENTITIES: string[];
|
|
47
|
+
static readonly ENTITY_TYPE = "COLLECTION_AMCO";
|
|
48
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder";
|
|
49
|
+
static readonly PERMISSION = "schema.action.createcollectionamcofollowonworkorder.trigger";
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
|
|
52
|
+
static readonly STEP_SCHEMA_ID = "966bf5d9-163e-4132-85e2-56a5f801c9de";
|
|
53
|
+
static readonly STEP_SCHEMA_ACTION_ID = "faed01ae-c0e8-4c97-b439-edf71dbf492e";
|
|
54
|
+
static readonly STEP_SCHEMA_TYPE_ID = "0bf773b2-9054-457e-a282-5ae8fdfa7f7c";
|
|
55
|
+
static readonly STEP_TYPE = "COLLECTION_AMCO";
|
|
56
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
57
|
+
readonly actionName: string;
|
|
58
|
+
readonly schemaActionId: string;
|
|
59
|
+
readonly entity: string;
|
|
60
|
+
constructor(record: OdinRecord<any> | {
|
|
61
|
+
id: string;
|
|
62
|
+
entity: string;
|
|
63
|
+
type?: string;
|
|
64
|
+
}, properties: CreateCollectionAmcoFollowOnWorkOrderProperties, options?: {
|
|
65
|
+
journeyId?: string;
|
|
66
|
+
stageKey?: string;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateCollectionAmcoFollowOnWorkOrder Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity WorkOrder
|
|
9
|
+
* @entityType COLLECTION_AMCO
|
|
10
|
+
* @actionKey CreateCollectionAmcoFollowOnWorkOrder
|
|
11
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateCollectionAmcoFollowOnWorkOrderDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Send Another Bag
|
|
20
|
+
*
|
|
21
|
+
* Send the customer another bag for the devices a failed inspection found missing. Creates a linked 3PL collection for only those devices, then moves this one to Complete.
|
|
22
|
+
*
|
|
23
|
+
* @actionType UPDATE - Updates an existing WorkOrder record
|
|
24
|
+
* @module FieldServiceModule
|
|
25
|
+
* @entity WorkOrder
|
|
26
|
+
* @entityType COLLECTION_AMCO ( 3PL Collection)
|
|
27
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder
|
|
28
|
+
* @permission schema.action.createcollectionamcofollowonworkorder.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateCollectionAmcoFollowOnWorkOrderDto extends core_1.OdinRecordUpdateDto {
|
|
32
|
+
constructor(record, properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
id: record.id,
|
|
35
|
+
entity: record.entity,
|
|
36
|
+
type: record.type,
|
|
37
|
+
properties,
|
|
38
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
39
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
40
|
+
});
|
|
41
|
+
this.actionName = 'CreateCollectionAmcoFollowOnWorkOrder';
|
|
42
|
+
this.schemaActionId = 'faed01ae-c0e8-4c97-b439-edf71dbf492e';
|
|
43
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.CreateCollectionAmcoFollowOnWorkOrderDto = CreateCollectionAmcoFollowOnWorkOrderDto;
|
|
47
|
+
/** Used by SDK generators to identify action type */
|
|
48
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.ACTION_TYPE = 'UPDATE';
|
|
49
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.ACTION_KEY = 'CreateCollectionAmcoFollowOnWorkOrder';
|
|
50
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.MODULE_NAME = 'FieldServiceModule';
|
|
51
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.ENTITIES = ['WorkOrder'];
|
|
52
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.ENTITY_TYPE = 'COLLECTION_AMCO';
|
|
53
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.CreateCollectionAmcoFollowOnWorkOrder';
|
|
54
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.PERMISSION = 'schema.action.createcollectionamcofollowonworkorder.trigger';
|
|
55
|
+
/** Step metadata - entity this action targets */
|
|
56
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
|
|
57
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.STEP_SCHEMA_ID = '966bf5d9-163e-4132-85e2-56a5f801c9de';
|
|
58
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.STEP_SCHEMA_ACTION_ID = 'faed01ae-c0e8-4c97-b439-edf71dbf492e';
|
|
59
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.STEP_SCHEMA_TYPE_ID = '0bf773b2-9054-457e-a282-5ae8fdfa7f7c';
|
|
60
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.STEP_TYPE = 'COLLECTION_AMCO';
|
|
61
|
+
CreateCollectionAmcoFollowOnWorkOrderDto.AUTO_LINK_PARENT = false;
|
|
@@ -23,7 +23,7 @@ export interface CreateEquipmentReturnItemMessage extends OdinRecordCreatedEvent
|
|
|
23
23
|
* Properties for CreateEquipmentReturnItem action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 3
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 10
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateEquipmentReturnItemProperties {
|
|
29
29
|
/**
|
|
@@ -113,6 +113,13 @@ export interface CreateEquipmentReturnItemProperties {
|
|
|
113
113
|
* @type {ENUM}
|
|
114
114
|
*/
|
|
115
115
|
Grade?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* Stands In For Device Id
|
|
118
|
+
*
|
|
119
|
+
* On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row
|
|
120
|
+
* @type {TEXT}
|
|
121
|
+
*/
|
|
122
|
+
StandsInForDeviceId?: string | null;
|
|
116
123
|
}
|
|
117
124
|
/**
|
|
118
125
|
* Create Equipment Return Item
|
|
@@ -108,7 +108,9 @@ export declare enum EquipmentReturnItemPropertyKeys {
|
|
|
108
108
|
/** The tick. Always true on an additional row — it is in the box by definition */
|
|
109
109
|
Returned = "Returned",
|
|
110
110
|
/** Condition as inspected. Same option set as Returns.Cpe{n}Grade. Only meaningful when Returned is true */
|
|
111
|
-
Grade = "Grade"
|
|
111
|
+
Grade = "Grade",
|
|
112
|
+
/** On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row */
|
|
113
|
+
StandsInForDeviceId = "StandsInForDeviceId"
|
|
112
114
|
}
|
|
113
115
|
/**
|
|
114
116
|
* Properties for EquipmentReturnItem records
|
|
@@ -192,6 +194,12 @@ export interface EquipmentReturnItemProperties {
|
|
|
192
194
|
* @enum {EquipmentReturnItemGrade}
|
|
193
195
|
*/
|
|
194
196
|
Grade: EquipmentReturnItemGrade;
|
|
197
|
+
/** On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row
|
|
198
|
+
*
|
|
199
|
+
* @type {TEXT}
|
|
200
|
+
* @default
|
|
201
|
+
*/
|
|
202
|
+
StandsInForDeviceId: string;
|
|
195
203
|
}
|
|
196
204
|
/**
|
|
197
205
|
* EquipmentReturnItem entity from FieldServiceModule
|
|
@@ -114,6 +114,8 @@ var EquipmentReturnItemPropertyKeys;
|
|
|
114
114
|
EquipmentReturnItemPropertyKeys["Returned"] = "Returned";
|
|
115
115
|
/** Condition as inspected. Same option set as Returns.Cpe{n}Grade. Only meaningful when Returned is true */
|
|
116
116
|
EquipmentReturnItemPropertyKeys["Grade"] = "Grade";
|
|
117
|
+
/** On an ADDITIONAL row only: the expected device (DeviceId of an EXPECTED row on the same return) this item counted in place of, because that device was not returned and this item is the same kind. Serials are not rewritten; this marks the mismatch so it can be fixed deliberately. Null on every other row */
|
|
118
|
+
EquipmentReturnItemPropertyKeys["StandsInForDeviceId"] = "StandsInForDeviceId";
|
|
117
119
|
})(EquipmentReturnItemPropertyKeys = exports.EquipmentReturnItemPropertyKeys || (exports.EquipmentReturnItemPropertyKeys = {}));
|
|
118
120
|
/**
|
|
119
121
|
* EquipmentReturnItem entity from FieldServiceModule
|
|
@@ -24,6 +24,21 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { OneTouchSwitchProperties, GainingOneTouchSwitchProperties, LosingOneTouchSwitchProperties } from '../entities-v2/OneTouchSwitch';
|
|
26
26
|
import { CreateOneTouchSwitchOrderProperties } from '../actions-v2/CreateOneTouchSwitchOrderDto';
|
|
27
|
+
import { MoveGainingOneTouchSwitchToMatchRequestConfirmedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToMatchRequestConfirmedDto';
|
|
28
|
+
import { MoveGainingOneTouchSwitchToMatchRequestFailedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToMatchRequestFailedDto';
|
|
29
|
+
import { MoveGainingOneTouchSwitchToMatchRequestSentProperties } from '../actions-v2/MoveGainingOneTouchSwitchToMatchRequestSentDto';
|
|
30
|
+
import { MoveGainingOneTouchSwitchToOrderCancelConfirmedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderCancelConfirmedDto';
|
|
31
|
+
import { MoveGainingOneTouchSwitchToOrderCancelFailedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderCancelFailedDto';
|
|
32
|
+
import { MoveGainingOneTouchSwitchToOrderCancelSentProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderCancelSentDto';
|
|
33
|
+
import { MoveGainingOneTouchSwitchToOrderRequestConfirmedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderRequestConfirmedDto';
|
|
34
|
+
import { MoveGainingOneTouchSwitchToOrderRequestFailedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderRequestFailedDto';
|
|
35
|
+
import { MoveGainingOneTouchSwitchToOrderRequestSentProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderRequestSentDto';
|
|
36
|
+
import { MoveGainingOneTouchSwitchToOrderTriggerConfirmedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderTriggerConfirmedDto';
|
|
37
|
+
import { MoveGainingOneTouchSwitchToOrderTriggerFailedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderTriggerFailedDto';
|
|
38
|
+
import { MoveGainingOneTouchSwitchToOrderTriggerSentProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderTriggerSentDto';
|
|
39
|
+
import { MoveGainingOneTouchSwitchToOrderUpdateConfirmedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderUpdateConfirmedDto';
|
|
40
|
+
import { MoveGainingOneTouchSwitchToOrderUpdateFailedProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderUpdateFailedDto';
|
|
41
|
+
import { MoveGainingOneTouchSwitchToOrderUpdateSentProperties } from '../actions-v2/MoveGainingOneTouchSwitchToOrderUpdateSentDto';
|
|
27
42
|
import { UpdateLosingOneTouchSwitchOrderProperties } from '../actions-v2/UpdateLosingOneTouchSwitchOrderDto';
|
|
28
43
|
import { UpdateOneTouchSwitchOrderProperties } from '../actions-v2/UpdateOneTouchSwitchOrderDto';
|
|
29
44
|
import { ActivityLogRecord } from './ActivityLogRecord';
|
|
@@ -445,6 +460,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
445
460
|
*
|
|
446
461
|
* @param options - Optional settings
|
|
447
462
|
* @param options.journeyId - Associate with a journey
|
|
463
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
448
464
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
449
465
|
* @throws Error if called on a new (unsaved) record
|
|
450
466
|
*
|
|
@@ -459,6 +475,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
459
475
|
*/
|
|
460
476
|
moveGainingOneTouchSwitchToMatchRequestConfirmed(options?: {
|
|
461
477
|
journeyId?: string;
|
|
478
|
+
properties?: MoveGainingOneTouchSwitchToMatchRequestConfirmedProperties;
|
|
462
479
|
}): ActionBuilder;
|
|
463
480
|
/**
|
|
464
481
|
* MoveGainingOneTouchSwitchToMatchRequestFailed
|
|
@@ -470,6 +487,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
470
487
|
*
|
|
471
488
|
* @param options - Optional settings
|
|
472
489
|
* @param options.journeyId - Associate with a journey
|
|
490
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
473
491
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
474
492
|
* @throws Error if called on a new (unsaved) record
|
|
475
493
|
*
|
|
@@ -484,6 +502,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
484
502
|
*/
|
|
485
503
|
moveGainingOneTouchSwitchToMatchRequestFailed(options?: {
|
|
486
504
|
journeyId?: string;
|
|
505
|
+
properties?: MoveGainingOneTouchSwitchToMatchRequestFailedProperties;
|
|
487
506
|
}): ActionBuilder;
|
|
488
507
|
/**
|
|
489
508
|
* MoveGainingOneTouchSwitchToMatchRequestSent
|
|
@@ -495,6 +514,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
495
514
|
*
|
|
496
515
|
* @param options - Optional settings
|
|
497
516
|
* @param options.journeyId - Associate with a journey
|
|
517
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
498
518
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
499
519
|
* @throws Error if called on a new (unsaved) record
|
|
500
520
|
*
|
|
@@ -509,6 +529,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
509
529
|
*/
|
|
510
530
|
moveGainingOneTouchSwitchToMatchRequestSent(options?: {
|
|
511
531
|
journeyId?: string;
|
|
532
|
+
properties?: MoveGainingOneTouchSwitchToMatchRequestSentProperties;
|
|
512
533
|
}): ActionBuilder;
|
|
513
534
|
/**
|
|
514
535
|
* MoveGainingOneTouchSwitchToOrderCancelConfirmed
|
|
@@ -520,6 +541,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
520
541
|
*
|
|
521
542
|
* @param options - Optional settings
|
|
522
543
|
* @param options.journeyId - Associate with a journey
|
|
544
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
523
545
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
524
546
|
* @throws Error if called on a new (unsaved) record
|
|
525
547
|
*
|
|
@@ -534,6 +556,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
534
556
|
*/
|
|
535
557
|
moveGainingOneTouchSwitchToOrderCancelConfirmed(options?: {
|
|
536
558
|
journeyId?: string;
|
|
559
|
+
properties?: MoveGainingOneTouchSwitchToOrderCancelConfirmedProperties;
|
|
537
560
|
}): ActionBuilder;
|
|
538
561
|
/**
|
|
539
562
|
* MoveGainingOneTouchSwitchToOrderCancelFailed
|
|
@@ -545,6 +568,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
545
568
|
*
|
|
546
569
|
* @param options - Optional settings
|
|
547
570
|
* @param options.journeyId - Associate with a journey
|
|
571
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
548
572
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
549
573
|
* @throws Error if called on a new (unsaved) record
|
|
550
574
|
*
|
|
@@ -559,6 +583,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
559
583
|
*/
|
|
560
584
|
moveGainingOneTouchSwitchToOrderCancelFailed(options?: {
|
|
561
585
|
journeyId?: string;
|
|
586
|
+
properties?: MoveGainingOneTouchSwitchToOrderCancelFailedProperties;
|
|
562
587
|
}): ActionBuilder;
|
|
563
588
|
/**
|
|
564
589
|
* MoveGainingOneTouchSwitchToOrderCancelSent
|
|
@@ -570,6 +595,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
570
595
|
*
|
|
571
596
|
* @param options - Optional settings
|
|
572
597
|
* @param options.journeyId - Associate with a journey
|
|
598
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
573
599
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
574
600
|
* @throws Error if called on a new (unsaved) record
|
|
575
601
|
*
|
|
@@ -584,6 +610,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
584
610
|
*/
|
|
585
611
|
moveGainingOneTouchSwitchToOrderCancelSent(options?: {
|
|
586
612
|
journeyId?: string;
|
|
613
|
+
properties?: MoveGainingOneTouchSwitchToOrderCancelSentProperties;
|
|
587
614
|
}): ActionBuilder;
|
|
588
615
|
/**
|
|
589
616
|
* MoveGainingOneTouchSwitchToOrderRequestConfirmed
|
|
@@ -595,6 +622,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
595
622
|
*
|
|
596
623
|
* @param options - Optional settings
|
|
597
624
|
* @param options.journeyId - Associate with a journey
|
|
625
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
598
626
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
599
627
|
* @throws Error if called on a new (unsaved) record
|
|
600
628
|
*
|
|
@@ -609,6 +637,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
609
637
|
*/
|
|
610
638
|
moveGainingOneTouchSwitchToOrderRequestConfirmed(options?: {
|
|
611
639
|
journeyId?: string;
|
|
640
|
+
properties?: MoveGainingOneTouchSwitchToOrderRequestConfirmedProperties;
|
|
612
641
|
}): ActionBuilder;
|
|
613
642
|
/**
|
|
614
643
|
* MoveGainingOneTouchSwitchToOrderRequestFailed
|
|
@@ -620,6 +649,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
620
649
|
*
|
|
621
650
|
* @param options - Optional settings
|
|
622
651
|
* @param options.journeyId - Associate with a journey
|
|
652
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
623
653
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
624
654
|
* @throws Error if called on a new (unsaved) record
|
|
625
655
|
*
|
|
@@ -634,6 +664,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
634
664
|
*/
|
|
635
665
|
moveGainingOneTouchSwitchToOrderRequestFailed(options?: {
|
|
636
666
|
journeyId?: string;
|
|
667
|
+
properties?: MoveGainingOneTouchSwitchToOrderRequestFailedProperties;
|
|
637
668
|
}): ActionBuilder;
|
|
638
669
|
/**
|
|
639
670
|
* MoveGainingOneTouchSwitchToOrderRequestSent
|
|
@@ -645,6 +676,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
645
676
|
*
|
|
646
677
|
* @param options - Optional settings
|
|
647
678
|
* @param options.journeyId - Associate with a journey
|
|
679
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
648
680
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
649
681
|
* @throws Error if called on a new (unsaved) record
|
|
650
682
|
*
|
|
@@ -659,6 +691,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
659
691
|
*/
|
|
660
692
|
moveGainingOneTouchSwitchToOrderRequestSent(options?: {
|
|
661
693
|
journeyId?: string;
|
|
694
|
+
properties?: MoveGainingOneTouchSwitchToOrderRequestSentProperties;
|
|
662
695
|
}): ActionBuilder;
|
|
663
696
|
/**
|
|
664
697
|
* MoveGainingOneTouchSwitchToOrderTriggerConfirmed
|
|
@@ -670,6 +703,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
670
703
|
*
|
|
671
704
|
* @param options - Optional settings
|
|
672
705
|
* @param options.journeyId - Associate with a journey
|
|
706
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
673
707
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
674
708
|
* @throws Error if called on a new (unsaved) record
|
|
675
709
|
*
|
|
@@ -684,6 +718,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
684
718
|
*/
|
|
685
719
|
moveGainingOneTouchSwitchToOrderTriggerConfirmed(options?: {
|
|
686
720
|
journeyId?: string;
|
|
721
|
+
properties?: MoveGainingOneTouchSwitchToOrderTriggerConfirmedProperties;
|
|
687
722
|
}): ActionBuilder;
|
|
688
723
|
/**
|
|
689
724
|
* MoveGainingOneTouchSwitchToOrderTriggerFailed
|
|
@@ -695,6 +730,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
695
730
|
*
|
|
696
731
|
* @param options - Optional settings
|
|
697
732
|
* @param options.journeyId - Associate with a journey
|
|
733
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
698
734
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
699
735
|
* @throws Error if called on a new (unsaved) record
|
|
700
736
|
*
|
|
@@ -709,6 +745,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
709
745
|
*/
|
|
710
746
|
moveGainingOneTouchSwitchToOrderTriggerFailed(options?: {
|
|
711
747
|
journeyId?: string;
|
|
748
|
+
properties?: MoveGainingOneTouchSwitchToOrderTriggerFailedProperties;
|
|
712
749
|
}): ActionBuilder;
|
|
713
750
|
/**
|
|
714
751
|
* MoveGainingOneTouchSwitchToOrderTriggerSent
|
|
@@ -720,6 +757,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
720
757
|
*
|
|
721
758
|
* @param options - Optional settings
|
|
722
759
|
* @param options.journeyId - Associate with a journey
|
|
760
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
723
761
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
724
762
|
* @throws Error if called on a new (unsaved) record
|
|
725
763
|
*
|
|
@@ -734,6 +772,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
734
772
|
*/
|
|
735
773
|
moveGainingOneTouchSwitchToOrderTriggerSent(options?: {
|
|
736
774
|
journeyId?: string;
|
|
775
|
+
properties?: MoveGainingOneTouchSwitchToOrderTriggerSentProperties;
|
|
737
776
|
}): ActionBuilder;
|
|
738
777
|
/**
|
|
739
778
|
* MoveGainingOneTouchSwitchToOrderUpdateConfirmed
|
|
@@ -745,6 +784,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
745
784
|
*
|
|
746
785
|
* @param options - Optional settings
|
|
747
786
|
* @param options.journeyId - Associate with a journey
|
|
787
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
748
788
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
749
789
|
* @throws Error if called on a new (unsaved) record
|
|
750
790
|
*
|
|
@@ -759,6 +799,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
759
799
|
*/
|
|
760
800
|
moveGainingOneTouchSwitchToOrderUpdateConfirmed(options?: {
|
|
761
801
|
journeyId?: string;
|
|
802
|
+
properties?: MoveGainingOneTouchSwitchToOrderUpdateConfirmedProperties;
|
|
762
803
|
}): ActionBuilder;
|
|
763
804
|
/**
|
|
764
805
|
* MoveGainingOneTouchSwitchToOrderUpdateFailed
|
|
@@ -770,6 +811,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
770
811
|
*
|
|
771
812
|
* @param options - Optional settings
|
|
772
813
|
* @param options.journeyId - Associate with a journey
|
|
814
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
773
815
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
774
816
|
* @throws Error if called on a new (unsaved) record
|
|
775
817
|
*
|
|
@@ -784,6 +826,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
784
826
|
*/
|
|
785
827
|
moveGainingOneTouchSwitchToOrderUpdateFailed(options?: {
|
|
786
828
|
journeyId?: string;
|
|
829
|
+
properties?: MoveGainingOneTouchSwitchToOrderUpdateFailedProperties;
|
|
787
830
|
}): ActionBuilder;
|
|
788
831
|
/**
|
|
789
832
|
* MoveGainingOneTouchSwitchToOrderUpdateSent
|
|
@@ -795,6 +838,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
795
838
|
*
|
|
796
839
|
* @param options - Optional settings
|
|
797
840
|
* @param options.journeyId - Associate with a journey
|
|
841
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
798
842
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
799
843
|
* @throws Error if called on a new (unsaved) record
|
|
800
844
|
*
|
|
@@ -809,6 +853,7 @@ export declare class OneTouchSwitchRecord<TProps = OneTouchSwitchProperties> {
|
|
|
809
853
|
*/
|
|
810
854
|
moveGainingOneTouchSwitchToOrderUpdateSent(options?: {
|
|
811
855
|
journeyId?: string;
|
|
856
|
+
properties?: MoveGainingOneTouchSwitchToOrderUpdateSentProperties;
|
|
812
857
|
}): ActionBuilder;
|
|
813
858
|
/**
|
|
814
859
|
* UpdateLosingOneTouchSwitchOrder
|
|
@@ -623,6 +623,7 @@ class OneTouchSwitchRecord {
|
|
|
623
623
|
*
|
|
624
624
|
* @param options - Optional settings
|
|
625
625
|
* @param options.journeyId - Associate with a journey
|
|
626
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
626
627
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
627
628
|
* @throws Error if called on a new (unsaved) record
|
|
628
629
|
*
|
|
@@ -652,6 +653,7 @@ class OneTouchSwitchRecord {
|
|
|
652
653
|
*
|
|
653
654
|
* @param options - Optional settings
|
|
654
655
|
* @param options.journeyId - Associate with a journey
|
|
656
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
655
657
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
656
658
|
* @throws Error if called on a new (unsaved) record
|
|
657
659
|
*
|
|
@@ -681,6 +683,7 @@ class OneTouchSwitchRecord {
|
|
|
681
683
|
*
|
|
682
684
|
* @param options - Optional settings
|
|
683
685
|
* @param options.journeyId - Associate with a journey
|
|
686
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
684
687
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
685
688
|
* @throws Error if called on a new (unsaved) record
|
|
686
689
|
*
|
|
@@ -710,6 +713,7 @@ class OneTouchSwitchRecord {
|
|
|
710
713
|
*
|
|
711
714
|
* @param options - Optional settings
|
|
712
715
|
* @param options.journeyId - Associate with a journey
|
|
716
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
713
717
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
714
718
|
* @throws Error if called on a new (unsaved) record
|
|
715
719
|
*
|
|
@@ -739,6 +743,7 @@ class OneTouchSwitchRecord {
|
|
|
739
743
|
*
|
|
740
744
|
* @param options - Optional settings
|
|
741
745
|
* @param options.journeyId - Associate with a journey
|
|
746
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
742
747
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
743
748
|
* @throws Error if called on a new (unsaved) record
|
|
744
749
|
*
|
|
@@ -768,6 +773,7 @@ class OneTouchSwitchRecord {
|
|
|
768
773
|
*
|
|
769
774
|
* @param options - Optional settings
|
|
770
775
|
* @param options.journeyId - Associate with a journey
|
|
776
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
771
777
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
772
778
|
* @throws Error if called on a new (unsaved) record
|
|
773
779
|
*
|
|
@@ -797,6 +803,7 @@ class OneTouchSwitchRecord {
|
|
|
797
803
|
*
|
|
798
804
|
* @param options - Optional settings
|
|
799
805
|
* @param options.journeyId - Associate with a journey
|
|
806
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
800
807
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
801
808
|
* @throws Error if called on a new (unsaved) record
|
|
802
809
|
*
|
|
@@ -826,6 +833,7 @@ class OneTouchSwitchRecord {
|
|
|
826
833
|
*
|
|
827
834
|
* @param options - Optional settings
|
|
828
835
|
* @param options.journeyId - Associate with a journey
|
|
836
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
829
837
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
830
838
|
* @throws Error if called on a new (unsaved) record
|
|
831
839
|
*
|
|
@@ -855,6 +863,7 @@ class OneTouchSwitchRecord {
|
|
|
855
863
|
*
|
|
856
864
|
* @param options - Optional settings
|
|
857
865
|
* @param options.journeyId - Associate with a journey
|
|
866
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
858
867
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
859
868
|
* @throws Error if called on a new (unsaved) record
|
|
860
869
|
*
|
|
@@ -884,6 +893,7 @@ class OneTouchSwitchRecord {
|
|
|
884
893
|
*
|
|
885
894
|
* @param options - Optional settings
|
|
886
895
|
* @param options.journeyId - Associate with a journey
|
|
896
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
887
897
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
888
898
|
* @throws Error if called on a new (unsaved) record
|
|
889
899
|
*
|
|
@@ -913,6 +923,7 @@ class OneTouchSwitchRecord {
|
|
|
913
923
|
*
|
|
914
924
|
* @param options - Optional settings
|
|
915
925
|
* @param options.journeyId - Associate with a journey
|
|
926
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
916
927
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
917
928
|
* @throws Error if called on a new (unsaved) record
|
|
918
929
|
*
|
|
@@ -942,6 +953,7 @@ class OneTouchSwitchRecord {
|
|
|
942
953
|
*
|
|
943
954
|
* @param options - Optional settings
|
|
944
955
|
* @param options.journeyId - Associate with a journey
|
|
956
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
945
957
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
946
958
|
* @throws Error if called on a new (unsaved) record
|
|
947
959
|
*
|
|
@@ -971,6 +983,7 @@ class OneTouchSwitchRecord {
|
|
|
971
983
|
*
|
|
972
984
|
* @param options - Optional settings
|
|
973
985
|
* @param options.journeyId - Associate with a journey
|
|
986
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
974
987
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
975
988
|
* @throws Error if called on a new (unsaved) record
|
|
976
989
|
*
|
|
@@ -1000,6 +1013,7 @@ class OneTouchSwitchRecord {
|
|
|
1000
1013
|
*
|
|
1001
1014
|
* @param options - Optional settings
|
|
1002
1015
|
* @param options.journeyId - Associate with a journey
|
|
1016
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
1003
1017
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
1004
1018
|
* @throws Error if called on a new (unsaved) record
|
|
1005
1019
|
*
|
|
@@ -1029,6 +1043,7 @@ class OneTouchSwitchRecord {
|
|
|
1029
1043
|
*
|
|
1030
1044
|
* @param options - Optional settings
|
|
1031
1045
|
* @param options.journeyId - Associate with a journey
|
|
1046
|
+
* @param options.properties - Fields from this action's form, written with the move
|
|
1032
1047
|
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
1033
1048
|
* @throws Error if called on a new (unsaved) record
|
|
1034
1049
|
*
|
|
@@ -41,6 +41,7 @@ import { RemediationOutcomeFormProperties } from '../actions-v2/CompleteRemediat
|
|
|
41
41
|
import { CompleteServiceWorkOrderProperties } from '../actions-v2/CompleteServiceWorkOrderDto';
|
|
42
42
|
import { CreateYfFieldVisitOutcomeFormProperties } from '../actions-v2/CompleteServiceWorkOrderFlowDto';
|
|
43
43
|
import { CreateCancelCollectionAmcoProperties } from '../actions-v2/CreateCancelCollectionAmcoDto';
|
|
44
|
+
import { CreateCollectionAmcoFollowOnWorkOrderProperties } from '../actions-v2/CreateCollectionAmcoFollowOnWorkOrderDto';
|
|
44
45
|
import { CreateCollectionAmcoReplacementWorkOrderProperties } from '../actions-v2/CreateCollectionAmcoReplacementWorkOrderDto';
|
|
45
46
|
import { CreateCollectionAmcoReplacementWorkOrderBuilder } from '../actions-v2/CreateCollectionAmcoReplacementWorkOrderDto';
|
|
46
47
|
import { CreateCollectionAmcoWorkOrderProperties } from '../actions-v2/CreateCollectionAmcoWorkOrderDto';
|
|
@@ -5143,6 +5144,33 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
5143
5144
|
completeServiceWorkOrderFlowSupplier(options?: {
|
|
5144
5145
|
journeyId?: string;
|
|
5145
5146
|
}): ActionBuilder;
|
|
5147
|
+
/**
|
|
5148
|
+
* CreateCollectionAmcoFollowOnWorkOrder
|
|
5149
|
+
*
|
|
5150
|
+
* Updates this WorkOrder record.
|
|
5151
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
5152
|
+
*
|
|
5153
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
5154
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
5155
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
5156
|
+
* @throws Error if called on a new (unsaved) record
|
|
5157
|
+
*
|
|
5158
|
+
* @example
|
|
5159
|
+
* ```typescript
|
|
5160
|
+
* const record = await odinClient.workOrders.get(id);
|
|
5161
|
+
* await record.createCollectionAmcoFollowOnWorkOrder({ ... }).execute();
|
|
5162
|
+
*
|
|
5163
|
+
* // Dry run (for debugging)
|
|
5164
|
+
* const payload = record.createCollectionAmcoFollowOnWorkOrder({ ... }).dryRun();
|
|
5165
|
+
* ```
|
|
5166
|
+
*/
|
|
5167
|
+
createCollectionAmcoFollowOnWorkOrder(propertiesOrOptions?: CreateCollectionAmcoFollowOnWorkOrderProperties | {
|
|
5168
|
+
journeyId?: string;
|
|
5169
|
+
stageKey?: string;
|
|
5170
|
+
}, options?: {
|
|
5171
|
+
journeyId?: string;
|
|
5172
|
+
stageKey?: string;
|
|
5173
|
+
}): ActionBuilder;
|
|
5146
5174
|
/**
|
|
5147
5175
|
* CreateCollectionAmcoReplacementWorkOrderFromWorkOrder
|
|
5148
5176
|
*
|
|
@@ -7877,6 +7877,43 @@ class WorkOrderRecord {
|
|
|
7877
7877
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CompleteServiceWorkOrderFlowSupplier', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'WorkOrderStageDone' }, options);
|
|
7878
7878
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
|
|
7879
7879
|
}
|
|
7880
|
+
/**
|
|
7881
|
+
* CreateCollectionAmcoFollowOnWorkOrder
|
|
7882
|
+
*
|
|
7883
|
+
* Updates this WorkOrder record.
|
|
7884
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
7885
|
+
*
|
|
7886
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
7887
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
7888
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
7889
|
+
* @throws Error if called on a new (unsaved) record
|
|
7890
|
+
*
|
|
7891
|
+
* @example
|
|
7892
|
+
* ```typescript
|
|
7893
|
+
* const record = await odinClient.workOrders.get(id);
|
|
7894
|
+
* await record.createCollectionAmcoFollowOnWorkOrder({ ... }).execute();
|
|
7895
|
+
*
|
|
7896
|
+
* // Dry run (for debugging)
|
|
7897
|
+
* const payload = record.createCollectionAmcoFollowOnWorkOrder({ ... }).dryRun();
|
|
7898
|
+
* ```
|
|
7899
|
+
*/
|
|
7900
|
+
createCollectionAmcoFollowOnWorkOrder(propertiesOrOptions, options) {
|
|
7901
|
+
var _a;
|
|
7902
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
7903
|
+
throw new Error('createCollectionAmcoFollowOnWorkOrder requires an existing record. Use accessor.get() first.');
|
|
7904
|
+
let properties = {};
|
|
7905
|
+
let opts = options;
|
|
7906
|
+
if (propertiesOrOptions) {
|
|
7907
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
7908
|
+
opts = propertiesOrOptions;
|
|
7909
|
+
}
|
|
7910
|
+
else {
|
|
7911
|
+
properties = propertiesOrOptions;
|
|
7912
|
+
}
|
|
7913
|
+
}
|
|
7914
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'CreateCollectionAmcoFollowOnWorkOrder', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
7915
|
+
return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
|
|
7916
|
+
}
|
|
7880
7917
|
/**
|
|
7881
7918
|
* CreateCollectionAmcoReplacementWorkOrderFromWorkOrder
|
|
7882
7919
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.357",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"diff": "^4.0.4"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@d19n/odin-sdk-generator": "^3.0.
|
|
50
|
+
"@d19n/odin-sdk-generator": "^3.0.246",
|
|
51
51
|
"@d19n/odin-types": "^3.6.8"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|