@d19n/youfibre-odin-sdk 1.0.269 → 1.0.270
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/dist/actions-v2/CreateOverrideCollectionAmcoWorkOrderDto.d.ts +178 -0
- package/dist/actions-v2/CreateOverrideCollectionAmcoWorkOrderDto.js +57 -0
- package/dist/actions-v2/CreateOverrideDispatchAmcoWorkOrderDto.d.ts +58 -0
- package/dist/actions-v2/CreateOverrideDispatchAmcoWorkOrderDto.js +54 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +62 -0
- package/dist/records-v2/WorkOrderRecord.js +82 -0
- package/package.json +3 -3
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateOverrideCollectionAmcoWorkOrder Action DTO
|
|
3
|
+
*
|
|
4
|
+
* CreateOverrideCollectionAmcoWorkOrder
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity WorkOrder
|
|
8
|
+
* @entityType COLLECTION_AMCO
|
|
9
|
+
* @actionKey CreateOverrideCollectionAmcoWorkOrder
|
|
10
|
+
* @event CreateOverrideCollectionAmcoWorkOrder
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* Properties for CreateOverrideCollectionAmcoWorkOrder action
|
|
17
|
+
*
|
|
18
|
+
* @property Required fields: 0
|
|
19
|
+
* @property Optional fields: 15
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateOverrideCollectionAmcoWorkOrderProperties {
|
|
22
|
+
/**
|
|
23
|
+
* ReTriggerReason
|
|
24
|
+
*
|
|
25
|
+
* Re-Trigger Reason (Field Operations - WorkOrder)
|
|
26
|
+
* @type {ENUM}
|
|
27
|
+
*/
|
|
28
|
+
ReTriggerReason?: string;
|
|
29
|
+
/**
|
|
30
|
+
* ShippingMethod
|
|
31
|
+
*
|
|
32
|
+
* Shipping Method (Field Operations - WorkOrder)
|
|
33
|
+
* @type {ENUM}
|
|
34
|
+
* @default Royal Mail 48
|
|
35
|
+
* @hidden This field is not visible in the UI
|
|
36
|
+
*/
|
|
37
|
+
ShippingMethod?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Order
|
|
40
|
+
*
|
|
41
|
+
* Reference identifier for WorkOrder relationships. Used for data integrity.
|
|
42
|
+
* @type {LOOKUP}
|
|
43
|
+
* @default Dynamic: {source_record_id}
|
|
44
|
+
* @hidden This field is not visible in the UI
|
|
45
|
+
*/
|
|
46
|
+
OrderId?: string;
|
|
47
|
+
/**
|
|
48
|
+
* ContactId
|
|
49
|
+
*
|
|
50
|
+
* Associated contact ID (Field Operations - WorkOrder)
|
|
51
|
+
* @type {LOOKUP}
|
|
52
|
+
* @default Dynamic: {source_record_Contact_id}
|
|
53
|
+
* @hidden This field is not visible in the UI
|
|
54
|
+
*/
|
|
55
|
+
ContactId?: string;
|
|
56
|
+
/**
|
|
57
|
+
* AddressId
|
|
58
|
+
*
|
|
59
|
+
* Reference identifier for WorkOrder relationships. Used for data integrity.
|
|
60
|
+
* @type {LOOKUP}
|
|
61
|
+
* @default Dynamic: {source_record_Address_id}
|
|
62
|
+
* @hidden This field is not visible in the UI
|
|
63
|
+
*/
|
|
64
|
+
AddressId?: string;
|
|
65
|
+
/**
|
|
66
|
+
* UseAlternativeAddress
|
|
67
|
+
*
|
|
68
|
+
* Use an Alternative Address instead of the linked order's address (Field Operations - WorkOrder)
|
|
69
|
+
* @type {BOOLEAN}
|
|
70
|
+
* @hidden This field is not visible in the UI
|
|
71
|
+
*/
|
|
72
|
+
UseAlternativeAddress?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Alternative Address
|
|
75
|
+
*
|
|
76
|
+
* Alternative Address (Field Operations - WorkOrder)
|
|
77
|
+
* @type {LOOKUP}
|
|
78
|
+
* @hidden This field is not visible in the UI
|
|
79
|
+
*/
|
|
80
|
+
AlternativeAddress?: string;
|
|
81
|
+
/**
|
|
82
|
+
* UseAlternativeAddressManual
|
|
83
|
+
*
|
|
84
|
+
* UseAlternativeAddressManual (Field Operations - WorkOrder)
|
|
85
|
+
* @type {BOOLEAN}
|
|
86
|
+
* @hidden This field is not visible in the UI
|
|
87
|
+
*/
|
|
88
|
+
UseAlternativeAddressManual?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Line 1
|
|
91
|
+
*
|
|
92
|
+
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
93
|
+
* @type {TEXT}
|
|
94
|
+
* @hidden This field is not visible in the UI
|
|
95
|
+
*/
|
|
96
|
+
AlternativeAddressLine1?: string;
|
|
97
|
+
/**
|
|
98
|
+
* Line 2
|
|
99
|
+
*
|
|
100
|
+
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
101
|
+
* @type {TEXT}
|
|
102
|
+
* @hidden This field is not visible in the UI
|
|
103
|
+
*/
|
|
104
|
+
AlternativeAddressLine2?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Town
|
|
107
|
+
*
|
|
108
|
+
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
109
|
+
* @type {TEXT}
|
|
110
|
+
* @hidden This field is not visible in the UI
|
|
111
|
+
*/
|
|
112
|
+
AlternativeAddressCityTown?: string;
|
|
113
|
+
/**
|
|
114
|
+
* Postcode
|
|
115
|
+
*
|
|
116
|
+
* Contact information field for WorkOrder. Used by Field Operations team for communication.
|
|
117
|
+
* @type {TEXT}
|
|
118
|
+
* @hidden This field is not visible in the UI
|
|
119
|
+
*/
|
|
120
|
+
AlternativeAddressPostCode?: string;
|
|
121
|
+
/**
|
|
122
|
+
* UseAlternativeContact
|
|
123
|
+
*
|
|
124
|
+
* Use Alternative Contact (Field Operations - WorkOrder)
|
|
125
|
+
* @type {BOOLEAN}
|
|
126
|
+
* @hidden This field is not visible in the UI
|
|
127
|
+
*/
|
|
128
|
+
UseAlternativeContact?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Alternative Contact
|
|
131
|
+
*
|
|
132
|
+
* Alternative Contact (Field Operations - WorkOrder)
|
|
133
|
+
* @type {LOOKUP}
|
|
134
|
+
* @hidden This field is not visible in the UI
|
|
135
|
+
*/
|
|
136
|
+
AlternativeContact?: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Override 3PL Collection
|
|
140
|
+
*
|
|
141
|
+
* @actionType CREATE - Creates a new WorkOrder record
|
|
142
|
+
* @module FieldServiceModule
|
|
143
|
+
* @entity WorkOrder
|
|
144
|
+
* @entityType COLLECTION_AMCO (3PL Collection)
|
|
145
|
+
* @event CreateOverrideCollectionAmcoWorkOrder
|
|
146
|
+
* @permission schema.action.createoverridecollectionamcoworkorder.trigger
|
|
147
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
148
|
+
*/
|
|
149
|
+
export declare class CreateOverrideCollectionAmcoWorkOrderDto extends OdinRecordCreateDto<CreateOverrideCollectionAmcoWorkOrderProperties> {
|
|
150
|
+
/** Used by SDK generators to identify action type */
|
|
151
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
152
|
+
static readonly ACTION_KEY = "CreateOverrideCollectionAmcoWorkOrder";
|
|
153
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
154
|
+
static readonly ENTITIES: string[];
|
|
155
|
+
static readonly ENTITY_TYPE = "COLLECTION_AMCO";
|
|
156
|
+
static readonly EVENT_NAME = "CreateOverrideCollectionAmcoWorkOrder";
|
|
157
|
+
static readonly PERMISSION = "schema.action.createoverridecollectionamcoworkorder.trigger";
|
|
158
|
+
readonly actionName: string;
|
|
159
|
+
readonly schemaActionId: string;
|
|
160
|
+
readonly entity: string;
|
|
161
|
+
constructor(properties: CreateOverrideCollectionAmcoWorkOrderProperties, options?: {
|
|
162
|
+
journeyId?: string;
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* RabbitMQ message payload for CreateOverrideCollectionAmcoWorkOrder created events
|
|
167
|
+
*
|
|
168
|
+
* @event CreateOverrideCollectionAmcoWorkOrder
|
|
169
|
+
*/
|
|
170
|
+
export interface CreateOverrideCollectionAmcoWorkOrderMessage extends OdinRecordCreatedEvent<CreateOverrideCollectionAmcoWorkOrderDto, CreateOverrideCollectionAmcoWorkOrderProperties> {
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* RabbitMQ routing key for CreateOverrideCollectionAmcoWorkOrder events
|
|
174
|
+
*
|
|
175
|
+
* Subscribe to this key to receive notifications when this action completes.
|
|
176
|
+
* @event CreateOverrideCollectionAmcoWorkOrder
|
|
177
|
+
*/
|
|
178
|
+
export declare const ROUTING_KEY_CREATE_OVERRIDE_COLLECTION_AMCO_WORK_ORDER = "CreateOverrideCollectionAmcoWorkOrder";
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateOverrideCollectionAmcoWorkOrder Action DTO
|
|
4
|
+
*
|
|
5
|
+
* CreateOverrideCollectionAmcoWorkOrder
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity WorkOrder
|
|
9
|
+
* @entityType COLLECTION_AMCO
|
|
10
|
+
* @actionKey CreateOverrideCollectionAmcoWorkOrder
|
|
11
|
+
* @event CreateOverrideCollectionAmcoWorkOrder
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.ROUTING_KEY_CREATE_OVERRIDE_COLLECTION_AMCO_WORK_ORDER = exports.CreateOverrideCollectionAmcoWorkOrderDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Override 3PL Collection
|
|
20
|
+
*
|
|
21
|
+
* @actionType CREATE - Creates a new WorkOrder record
|
|
22
|
+
* @module FieldServiceModule
|
|
23
|
+
* @entity WorkOrder
|
|
24
|
+
* @entityType COLLECTION_AMCO (3PL Collection)
|
|
25
|
+
* @event CreateOverrideCollectionAmcoWorkOrder
|
|
26
|
+
* @permission schema.action.createoverridecollectionamcoworkorder.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class CreateOverrideCollectionAmcoWorkOrderDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
33
|
+
type: 'COLLECTION_AMCO',
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'CreateOverrideCollectionAmcoWorkOrder';
|
|
38
|
+
this.schemaActionId = '37273abc-f51e-428c-9844-18b476c4a97a';
|
|
39
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CreateOverrideCollectionAmcoWorkOrderDto = CreateOverrideCollectionAmcoWorkOrderDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
CreateOverrideCollectionAmcoWorkOrderDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
CreateOverrideCollectionAmcoWorkOrderDto.ACTION_KEY = 'CreateOverrideCollectionAmcoWorkOrder';
|
|
46
|
+
CreateOverrideCollectionAmcoWorkOrderDto.MODULE_NAME = 'FieldServiceModule';
|
|
47
|
+
CreateOverrideCollectionAmcoWorkOrderDto.ENTITIES = ['WorkOrder'];
|
|
48
|
+
CreateOverrideCollectionAmcoWorkOrderDto.ENTITY_TYPE = 'COLLECTION_AMCO';
|
|
49
|
+
CreateOverrideCollectionAmcoWorkOrderDto.EVENT_NAME = 'CreateOverrideCollectionAmcoWorkOrder';
|
|
50
|
+
CreateOverrideCollectionAmcoWorkOrderDto.PERMISSION = 'schema.action.createoverridecollectionamcoworkorder.trigger';
|
|
51
|
+
/**
|
|
52
|
+
* RabbitMQ routing key for CreateOverrideCollectionAmcoWorkOrder events
|
|
53
|
+
*
|
|
54
|
+
* Subscribe to this key to receive notifications when this action completes.
|
|
55
|
+
* @event CreateOverrideCollectionAmcoWorkOrder
|
|
56
|
+
*/
|
|
57
|
+
exports.ROUTING_KEY_CREATE_OVERRIDE_COLLECTION_AMCO_WORK_ORDER = 'CreateOverrideCollectionAmcoWorkOrder';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateOverrideDispatchAmcoWorkOrder Action DTO
|
|
3
|
+
*
|
|
4
|
+
* CreateOverrideDispatchAmcoWorkOrder
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity WorkOrder
|
|
8
|
+
* @actionKey CreateOverrideDispatchAmcoWorkOrder
|
|
9
|
+
* @event CreateOverrideDispatchAmcoWorkOrder
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* Properties for CreateOverrideDispatchAmcoWorkOrder action
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateOverrideDispatchAmcoWorkOrderProperties {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* CreateOverrideDispatchAmcoWorkOrder
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new WorkOrder record
|
|
24
|
+
* @module FieldServiceModule
|
|
25
|
+
* @entity WorkOrder
|
|
26
|
+
* @event CreateOverrideDispatchAmcoWorkOrder
|
|
27
|
+
* @permission schema.action.createoverridedispatchamcoworkorder.trigger
|
|
28
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
29
|
+
*/
|
|
30
|
+
export declare class CreateOverrideDispatchAmcoWorkOrderDto extends OdinRecordCreateDto<CreateOverrideDispatchAmcoWorkOrderProperties> {
|
|
31
|
+
/** Used by SDK generators to identify action type */
|
|
32
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
33
|
+
static readonly ACTION_KEY = "CreateOverrideDispatchAmcoWorkOrder";
|
|
34
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
35
|
+
static readonly ENTITIES: string[];
|
|
36
|
+
static readonly EVENT_NAME = "CreateOverrideDispatchAmcoWorkOrder";
|
|
37
|
+
static readonly PERMISSION = "schema.action.createoverridedispatchamcoworkorder.trigger";
|
|
38
|
+
readonly actionName: string;
|
|
39
|
+
readonly schemaActionId: string;
|
|
40
|
+
readonly entity: string;
|
|
41
|
+
constructor(properties: CreateOverrideDispatchAmcoWorkOrderProperties, options?: {
|
|
42
|
+
journeyId?: string;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* RabbitMQ message payload for CreateOverrideDispatchAmcoWorkOrder created events
|
|
47
|
+
*
|
|
48
|
+
* @event CreateOverrideDispatchAmcoWorkOrder
|
|
49
|
+
*/
|
|
50
|
+
export interface CreateOverrideDispatchAmcoWorkOrderMessage extends OdinRecordCreatedEvent<CreateOverrideDispatchAmcoWorkOrderDto, CreateOverrideDispatchAmcoWorkOrderProperties> {
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* RabbitMQ routing key for CreateOverrideDispatchAmcoWorkOrder events
|
|
54
|
+
*
|
|
55
|
+
* Subscribe to this key to receive notifications when this action completes.
|
|
56
|
+
* @event CreateOverrideDispatchAmcoWorkOrder
|
|
57
|
+
*/
|
|
58
|
+
export declare const ROUTING_KEY_CREATE_OVERRIDE_DISPATCH_AMCO_WORK_ORDER = "CreateOverrideDispatchAmcoWorkOrder";
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateOverrideDispatchAmcoWorkOrder Action DTO
|
|
4
|
+
*
|
|
5
|
+
* CreateOverrideDispatchAmcoWorkOrder
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity WorkOrder
|
|
9
|
+
* @actionKey CreateOverrideDispatchAmcoWorkOrder
|
|
10
|
+
* @event CreateOverrideDispatchAmcoWorkOrder
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ROUTING_KEY_CREATE_OVERRIDE_DISPATCH_AMCO_WORK_ORDER = exports.CreateOverrideDispatchAmcoWorkOrderDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateOverrideDispatchAmcoWorkOrder
|
|
19
|
+
*
|
|
20
|
+
* @actionType CREATE - Creates a new WorkOrder record
|
|
21
|
+
* @module FieldServiceModule
|
|
22
|
+
* @entity WorkOrder
|
|
23
|
+
* @event CreateOverrideDispatchAmcoWorkOrder
|
|
24
|
+
* @permission schema.action.createoverridedispatchamcoworkorder.trigger
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class CreateOverrideDispatchAmcoWorkOrderDto extends core_1.OdinRecordCreateDto {
|
|
28
|
+
constructor(properties, options) {
|
|
29
|
+
super({
|
|
30
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
31
|
+
type: undefined,
|
|
32
|
+
properties,
|
|
33
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
+
});
|
|
35
|
+
this.actionName = 'CreateOverrideDispatchAmcoWorkOrder';
|
|
36
|
+
this.schemaActionId = 'a262a769-f5b3-49eb-bbf5-91d3fa1c1e86';
|
|
37
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.CreateOverrideDispatchAmcoWorkOrderDto = CreateOverrideDispatchAmcoWorkOrderDto;
|
|
41
|
+
/** Used by SDK generators to identify action type */
|
|
42
|
+
CreateOverrideDispatchAmcoWorkOrderDto.ACTION_TYPE = 'CREATE';
|
|
43
|
+
CreateOverrideDispatchAmcoWorkOrderDto.ACTION_KEY = 'CreateOverrideDispatchAmcoWorkOrder';
|
|
44
|
+
CreateOverrideDispatchAmcoWorkOrderDto.MODULE_NAME = 'FieldServiceModule';
|
|
45
|
+
CreateOverrideDispatchAmcoWorkOrderDto.ENTITIES = ['WorkOrder'];
|
|
46
|
+
CreateOverrideDispatchAmcoWorkOrderDto.EVENT_NAME = 'CreateOverrideDispatchAmcoWorkOrder';
|
|
47
|
+
CreateOverrideDispatchAmcoWorkOrderDto.PERMISSION = 'schema.action.createoverridedispatchamcoworkorder.trigger';
|
|
48
|
+
/**
|
|
49
|
+
* RabbitMQ routing key for CreateOverrideDispatchAmcoWorkOrder events
|
|
50
|
+
*
|
|
51
|
+
* Subscribe to this key to receive notifications when this action completes.
|
|
52
|
+
* @event CreateOverrideDispatchAmcoWorkOrder
|
|
53
|
+
*/
|
|
54
|
+
exports.ROUTING_KEY_CREATE_OVERRIDE_DISPATCH_AMCO_WORK_ORDER = 'CreateOverrideDispatchAmcoWorkOrder';
|
|
@@ -64,6 +64,8 @@ import { CreateNetworkAdjustmentWorkOrderProperties } from '../actions-v2/Create
|
|
|
64
64
|
import { CreatePrePullWorkOrderProperties } from '../actions-v2/CreateLinkedWorkOrderFlowDto';
|
|
65
65
|
import { CreatePlanningWorkOrderProperties } from '../actions-v2/CreateLinkedWorkOrderFlowDto';
|
|
66
66
|
import { CreateRemediationWorkOrderProperties } from '../actions-v2/CreateLinkedWorkOrderFlowDto';
|
|
67
|
+
import { CreateOverrideCollectionAmcoWorkOrderProperties } from '../actions-v2/CreateOverrideCollectionAmcoWorkOrderDto';
|
|
68
|
+
import { CreateOverrideDispatchAmcoWorkOrderProperties } from '../actions-v2/CreateOverrideDispatchAmcoWorkOrderDto';
|
|
67
69
|
import { CreateServiceWorkOrderProperties } from '../actions-v2/CreateServiceWorkOrderDto';
|
|
68
70
|
import { CreateWayleaveWorkOrderProperties } from '../actions-v2/CreateWayleaveWorkOrderDto';
|
|
69
71
|
import { WayleaveAuditCreateProperties } from '../actions-v2/CreateWayleaveWorkOrderFlowDto';
|
|
@@ -3537,6 +3539,66 @@ export declare class WorkOrderRecord {
|
|
|
3537
3539
|
journeyId?: string;
|
|
3538
3540
|
stageKey?: string;
|
|
3539
3541
|
}): Promise<IDbRecordCreateUpdateRes[]>;
|
|
3542
|
+
/**
|
|
3543
|
+
* CreateOverrideCollectionAmcoWorkOrder
|
|
3544
|
+
*
|
|
3545
|
+
* Creates a new WorkOrder record with the specified properties.
|
|
3546
|
+
* Can be chained with .link() to create associations.
|
|
3547
|
+
*
|
|
3548
|
+
* @param properties - The properties for the new record
|
|
3549
|
+
* @param options - Optional settings
|
|
3550
|
+
* @param options.type - Override the record type
|
|
3551
|
+
* @param options.journeyId - Associate with a journey
|
|
3552
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
3553
|
+
* @returns The created record(s)
|
|
3554
|
+
*
|
|
3555
|
+
* @example
|
|
3556
|
+
* ```typescript
|
|
3557
|
+
* // Create with properties
|
|
3558
|
+
* const record = odinClient.workOrders.new();
|
|
3559
|
+
* await record.createOverrideCollectionAmcoWorkOrder({ ... });
|
|
3560
|
+
*
|
|
3561
|
+
* // Create with link to parent
|
|
3562
|
+
* await odinClient.workOrders.new()
|
|
3563
|
+
* .link({ id: parentId, entity: "Module:Entity" })
|
|
3564
|
+
* .createOverrideCollectionAmcoWorkOrder({ ... });
|
|
3565
|
+
* ```
|
|
3566
|
+
*/
|
|
3567
|
+
createOverrideCollectionAmcoWorkOrder(properties?: CreateOverrideCollectionAmcoWorkOrderProperties, options?: {
|
|
3568
|
+
type?: string;
|
|
3569
|
+
journeyId?: string;
|
|
3570
|
+
stageKey?: string;
|
|
3571
|
+
}): Promise<IDbRecordCreateUpdateRes[]>;
|
|
3572
|
+
/**
|
|
3573
|
+
* CreateOverrideDispatchAmcoWorkOrder
|
|
3574
|
+
*
|
|
3575
|
+
* Creates a new WorkOrder record with the specified properties.
|
|
3576
|
+
* Can be chained with .link() to create associations.
|
|
3577
|
+
*
|
|
3578
|
+
* @param properties - The properties for the new record
|
|
3579
|
+
* @param options - Optional settings
|
|
3580
|
+
* @param options.type - Override the record type
|
|
3581
|
+
* @param options.journeyId - Associate with a journey
|
|
3582
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
3583
|
+
* @returns The created record(s)
|
|
3584
|
+
*
|
|
3585
|
+
* @example
|
|
3586
|
+
* ```typescript
|
|
3587
|
+
* // Create with properties
|
|
3588
|
+
* const record = odinClient.workOrders.new();
|
|
3589
|
+
* await record.createOverrideDispatchAmcoWorkOrder({ ... });
|
|
3590
|
+
*
|
|
3591
|
+
* // Create with link to parent
|
|
3592
|
+
* await odinClient.workOrders.new()
|
|
3593
|
+
* .link({ id: parentId, entity: "Module:Entity" })
|
|
3594
|
+
* .createOverrideDispatchAmcoWorkOrder({ ... });
|
|
3595
|
+
* ```
|
|
3596
|
+
*/
|
|
3597
|
+
createOverrideDispatchAmcoWorkOrder(properties?: CreateOverrideDispatchAmcoWorkOrderProperties, options?: {
|
|
3598
|
+
type?: string;
|
|
3599
|
+
journeyId?: string;
|
|
3600
|
+
stageKey?: string;
|
|
3601
|
+
}): Promise<IDbRecordCreateUpdateRes[]>;
|
|
3540
3602
|
/**
|
|
3541
3603
|
* CreateServiceWorkOrder
|
|
3542
3604
|
*
|
|
@@ -4845,6 +4845,88 @@ class WorkOrderRecord {
|
|
|
4845
4845
|
return result;
|
|
4846
4846
|
});
|
|
4847
4847
|
}
|
|
4848
|
+
/**
|
|
4849
|
+
* CreateOverrideCollectionAmcoWorkOrder
|
|
4850
|
+
*
|
|
4851
|
+
* Creates a new WorkOrder record with the specified properties.
|
|
4852
|
+
* Can be chained with .link() to create associations.
|
|
4853
|
+
*
|
|
4854
|
+
* @param properties - The properties for the new record
|
|
4855
|
+
* @param options - Optional settings
|
|
4856
|
+
* @param options.type - Override the record type
|
|
4857
|
+
* @param options.journeyId - Associate with a journey
|
|
4858
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
4859
|
+
* @returns The created record(s)
|
|
4860
|
+
*
|
|
4861
|
+
* @example
|
|
4862
|
+
* ```typescript
|
|
4863
|
+
* // Create with properties
|
|
4864
|
+
* const record = odinClient.workOrders.new();
|
|
4865
|
+
* await record.createOverrideCollectionAmcoWorkOrder({ ... });
|
|
4866
|
+
*
|
|
4867
|
+
* // Create with link to parent
|
|
4868
|
+
* await odinClient.workOrders.new()
|
|
4869
|
+
* .link({ id: parentId, entity: "Module:Entity" })
|
|
4870
|
+
* .createOverrideCollectionAmcoWorkOrder({ ... });
|
|
4871
|
+
* ```
|
|
4872
|
+
*/
|
|
4873
|
+
createOverrideCollectionAmcoWorkOrder(properties, options) {
|
|
4874
|
+
var _a, _b;
|
|
4875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4876
|
+
const result = yield this._provider._applyAction('FieldServiceModule', 'WorkOrder', {
|
|
4877
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
4878
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
4879
|
+
actionName: 'CreateOverrideCollectionAmcoWorkOrder',
|
|
4880
|
+
properties: properties || {},
|
|
4881
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
4882
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
4883
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
4884
|
+
});
|
|
4885
|
+
this._pendingLinks = [];
|
|
4886
|
+
return result;
|
|
4887
|
+
});
|
|
4888
|
+
}
|
|
4889
|
+
/**
|
|
4890
|
+
* CreateOverrideDispatchAmcoWorkOrder
|
|
4891
|
+
*
|
|
4892
|
+
* Creates a new WorkOrder record with the specified properties.
|
|
4893
|
+
* Can be chained with .link() to create associations.
|
|
4894
|
+
*
|
|
4895
|
+
* @param properties - The properties for the new record
|
|
4896
|
+
* @param options - Optional settings
|
|
4897
|
+
* @param options.type - Override the record type
|
|
4898
|
+
* @param options.journeyId - Associate with a journey
|
|
4899
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
4900
|
+
* @returns The created record(s)
|
|
4901
|
+
*
|
|
4902
|
+
* @example
|
|
4903
|
+
* ```typescript
|
|
4904
|
+
* // Create with properties
|
|
4905
|
+
* const record = odinClient.workOrders.new();
|
|
4906
|
+
* await record.createOverrideDispatchAmcoWorkOrder({ ... });
|
|
4907
|
+
*
|
|
4908
|
+
* // Create with link to parent
|
|
4909
|
+
* await odinClient.workOrders.new()
|
|
4910
|
+
* .link({ id: parentId, entity: "Module:Entity" })
|
|
4911
|
+
* .createOverrideDispatchAmcoWorkOrder({ ... });
|
|
4912
|
+
* ```
|
|
4913
|
+
*/
|
|
4914
|
+
createOverrideDispatchAmcoWorkOrder(properties, options) {
|
|
4915
|
+
var _a, _b;
|
|
4916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4917
|
+
const result = yield this._provider._applyAction('FieldServiceModule', 'WorkOrder', {
|
|
4918
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
4919
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
4920
|
+
actionName: 'CreateOverrideDispatchAmcoWorkOrder',
|
|
4921
|
+
properties: properties || {},
|
|
4922
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
4923
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
4924
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
4925
|
+
});
|
|
4926
|
+
this._pendingLinks = [];
|
|
4927
|
+
return result;
|
|
4928
|
+
});
|
|
4929
|
+
}
|
|
4848
4930
|
/**
|
|
4849
4931
|
* CreateServiceWorkOrder
|
|
4850
4932
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.270",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"typescript": "4.8.4"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@d19n/odin-sdk-generator": "^3.0.
|
|
15
|
-
"@d19n/odin-types": "^3.0.
|
|
14
|
+
"@d19n/odin-sdk-generator": "^3.0.168",
|
|
15
|
+
"@d19n/odin-types": "^3.0.15",
|
|
16
16
|
"@d19n/youfibre-odin-sdk": "^1.0.219"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|