@d19n/youfibre-odin-sdk 2.0.313 → 2.0.314
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 +8 -1
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.d.ts +88 -0
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.js +59 -0
- package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/entities-v2/ChangeReason.d.ts +53 -1
- package/dist/entities-v2/ChangeReason.js +19 -1
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +2 -2
- package/dist/entities-v2/WorkOrder.d.ts +2 -0
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/records-v2/ChangeReasonRecord.d.ts +29 -0
- package/dist/records-v2/ChangeReasonRecord.js +36 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +517 -0
- package/dist/records-v2/WorkOrderRecord.js +943 -151
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -370,7 +370,7 @@ This SDK includes **182** entities across **12** modules.
|
|
|
370
370
|
|
|
371
371
|
## Actions
|
|
372
372
|
|
|
373
|
-
This SDK includes **
|
|
373
|
+
This SDK includes **881** actions.
|
|
374
374
|
|
|
375
375
|
### Action Types
|
|
376
376
|
|
|
@@ -1122,6 +1122,7 @@ This SDK includes **874** actions.
|
|
|
1122
1122
|
| `CancelServiceWorkOrderSupplier` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CancelServiceWorkOrderSupplier |
|
|
1123
1123
|
| `CancelServiceWorkOrderTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CancelServiceWorkOrderTenant |
|
|
1124
1124
|
| `CreateCollectionRescheduledChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateCollectionRescheduledChangeReasonTenant |
|
|
1125
|
+
| `CreateEnRouteToScheduledChangeReason` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason |
|
|
1125
1126
|
| `CreateInstallCancelledChangeReasonSupplier` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonSupplier |
|
|
1126
1127
|
| `CreateInstallCancelledChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonTenant |
|
|
1127
1128
|
| `CreateInstallDelayedChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant |
|
|
@@ -1135,7 +1136,13 @@ This SDK includes **874** actions.
|
|
|
1135
1136
|
| `CreateServiceCancelledChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateServiceCancelledChangeReasonTenant |
|
|
1136
1137
|
| `CreateServiceRescheduledChangeReasonSupplier` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateServiceRescheduledChangeReasonSupplier |
|
|
1137
1138
|
| `CreateServiceRescheduledChangeReasonTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateServiceRescheduledChangeReasonTenant |
|
|
1139
|
+
| `MoveBusinessInstallFromEnRouteToScheduled` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason |
|
|
1140
|
+
| `MoveInspectionWorkOrderFromEnRouteToScheduled` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason |
|
|
1141
|
+
| `MoveInstallWorkOrderFromEnRouteToScheduled` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason |
|
|
1138
1142
|
| `MoveInstallWorkOrderFromScheduledToPending` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallDelayedChangeReasonTenant |
|
|
1143
|
+
| `MovePrePullWorkOrderFromEnRouteToScheduled` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason |
|
|
1144
|
+
| `MoveRemediationWorkOrderFromEnRouteToScheduled` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason |
|
|
1145
|
+
| `MoveServiceWorkOrderFromEnRouteToScheduled` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason |
|
|
1139
1146
|
| `RescheduleBusinessInstallWorkOrderSupplier` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallRescheduledChangeReasonSupplier |
|
|
1140
1147
|
| `RescheduleBusinessInstallWorkOrderTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallRescheduledChangeReasonTenant |
|
|
1141
1148
|
| `RescheduleCollectionWorkOrderTenant` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateCollectionRescheduledChangeReasonTenant |
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateEnRouteToScheduledChangeReason Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Records why an En Route work order stood down to Scheduled. Step of the FromEnRouteToScheduled transitions — the required reason is the audit control on the backward move.
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity ChangeReason
|
|
8
|
+
* @entityType SA_DELAY
|
|
9
|
+
* @actionKey CreateEnRouteToScheduledChangeReason
|
|
10
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* RabbitMQ message payload for CreateEnRouteToScheduledChangeReason created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateEnRouteToScheduledChangeReasonMessage extends OdinRecordCreatedEvent<CreateEnRouteToScheduledChangeReasonDto, CreateEnRouteToScheduledChangeReasonProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateEnRouteToScheduledChangeReason action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 1
|
|
26
|
+
* @property Optional fields: 2
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateEnRouteToScheduledChangeReasonProperties {
|
|
29
|
+
/**
|
|
30
|
+
* Reason
|
|
31
|
+
*
|
|
32
|
+
* why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
33
|
+
* @type {ENUM}
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
StandDownReason: string;
|
|
37
|
+
/**
|
|
38
|
+
* Additional detail
|
|
39
|
+
*
|
|
40
|
+
* cancellation description (Field Operations - ChangeReason)
|
|
41
|
+
* @type {TEXT_LONG}
|
|
42
|
+
*/
|
|
43
|
+
Description?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Owner
|
|
46
|
+
*
|
|
47
|
+
* Owner (Supplier or Tenant) (Field Operations - ChangeReason)
|
|
48
|
+
* @type {ENUM}
|
|
49
|
+
* @default TENANT
|
|
50
|
+
*/
|
|
51
|
+
Owner?: string | null;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Why is this going back to Scheduled?
|
|
55
|
+
*
|
|
56
|
+
* Records why an En Route work order stood down to Scheduled. Step of the FromEnRouteToScheduled transitions — the required reason is the audit control on the backward move.
|
|
57
|
+
*
|
|
58
|
+
* @actionType CREATE - Creates a new ChangeReason record
|
|
59
|
+
* @module FieldServiceModule
|
|
60
|
+
* @entity ChangeReason
|
|
61
|
+
* @entityType SA_DELAY (Delay)
|
|
62
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
63
|
+
* @permission schema.action.createenroutetoscheduledchangereason.trigger
|
|
64
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
65
|
+
*/
|
|
66
|
+
export declare class CreateEnRouteToScheduledChangeReasonDto extends OdinRecordCreateDto<CreateEnRouteToScheduledChangeReasonProperties> {
|
|
67
|
+
/** Used by SDK generators to identify action type */
|
|
68
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
69
|
+
static readonly ACTION_KEY = "CreateEnRouteToScheduledChangeReason";
|
|
70
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
71
|
+
static readonly ENTITIES: string[];
|
|
72
|
+
static readonly ENTITY_TYPE = "SA_DELAY";
|
|
73
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason";
|
|
74
|
+
static readonly PERMISSION = "schema.action.createenroutetoscheduledchangereason.trigger";
|
|
75
|
+
/** Step metadata - entity this action targets */
|
|
76
|
+
static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
|
|
77
|
+
static readonly STEP_SCHEMA_ID = "d411bca0-e0f3-437a-9886-2107cbb0b07d";
|
|
78
|
+
static readonly STEP_SCHEMA_ACTION_ID = "6a9206f9-52d7-4730-a956-ad9b3a1d1207";
|
|
79
|
+
static readonly STEP_SCHEMA_TYPE_ID = "baa0fa45-7576-4502-b0ea-5253e664722b";
|
|
80
|
+
static readonly STEP_TYPE = "SA_DELAY";
|
|
81
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
82
|
+
readonly actionName: string;
|
|
83
|
+
readonly schemaActionId: string;
|
|
84
|
+
readonly entity: string;
|
|
85
|
+
constructor(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: {
|
|
86
|
+
journeyId?: string;
|
|
87
|
+
});
|
|
88
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateEnRouteToScheduledChangeReason Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Records why an En Route work order stood down to Scheduled. Step of the FromEnRouteToScheduled transitions — the required reason is the audit control on the backward move.
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity ChangeReason
|
|
9
|
+
* @entityType SA_DELAY
|
|
10
|
+
* @actionKey CreateEnRouteToScheduledChangeReason
|
|
11
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateEnRouteToScheduledChangeReasonDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Why is this going back to Scheduled?
|
|
20
|
+
*
|
|
21
|
+
* Records why an En Route work order stood down to Scheduled. Step of the FromEnRouteToScheduled transitions — the required reason is the audit control on the backward move.
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new ChangeReason record
|
|
24
|
+
* @module FieldServiceModule
|
|
25
|
+
* @entity ChangeReason
|
|
26
|
+
* @entityType SA_DELAY (Delay)
|
|
27
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
28
|
+
* @permission schema.action.createenroutetoscheduledchangereason.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateEnRouteToScheduledChangeReasonDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
35
|
+
type: 'SA_DELAY',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreateEnRouteToScheduledChangeReason';
|
|
40
|
+
this.schemaActionId = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
|
|
41
|
+
this.entity = 'FieldServiceModule:ChangeReason';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateEnRouteToScheduledChangeReasonDto = CreateEnRouteToScheduledChangeReasonDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateEnRouteToScheduledChangeReasonDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateEnRouteToScheduledChangeReasonDto.ACTION_KEY = 'CreateEnRouteToScheduledChangeReason';
|
|
48
|
+
CreateEnRouteToScheduledChangeReasonDto.MODULE_NAME = 'FieldServiceModule';
|
|
49
|
+
CreateEnRouteToScheduledChangeReasonDto.ENTITIES = ['ChangeReason'];
|
|
50
|
+
CreateEnRouteToScheduledChangeReasonDto.ENTITY_TYPE = 'SA_DELAY';
|
|
51
|
+
CreateEnRouteToScheduledChangeReasonDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason';
|
|
52
|
+
CreateEnRouteToScheduledChangeReasonDto.PERMISSION = 'schema.action.createenroutetoscheduledchangereason.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_ENTITY = 'FieldServiceModule:ChangeReason';
|
|
55
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ID = 'd411bca0-e0f3-437a-9886-2107cbb0b07d';
|
|
56
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ACTION_ID = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
|
|
57
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_TYPE_ID = 'baa0fa45-7576-4502-b0ea-5253e664722b';
|
|
58
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_TYPE = 'SA_DELAY';
|
|
59
|
+
CreateEnRouteToScheduledChangeReasonDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveBusinessInstallFromEnRouteToScheduled Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Stand a dispatched business install back down to Scheduled, with a reason.
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity WorkOrder
|
|
8
|
+
* @entityType INSTALL_BUSINESS
|
|
9
|
+
* @actionKey MoveBusinessInstallFromEnRouteToScheduled
|
|
10
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* Properties for CreateEnRouteToScheduledChangeReason action
|
|
17
|
+
*
|
|
18
|
+
* @property Required fields: 1
|
|
19
|
+
* @property Optional fields: 2
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateEnRouteToScheduledChangeReasonProperties {
|
|
22
|
+
/**
|
|
23
|
+
* Reason
|
|
24
|
+
*
|
|
25
|
+
* why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
26
|
+
* @type {ENUM}
|
|
27
|
+
* @required
|
|
28
|
+
*/
|
|
29
|
+
StandDownReason: string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional detail
|
|
32
|
+
*
|
|
33
|
+
* cancellation description (Field Operations - ChangeReason)
|
|
34
|
+
* @type {TEXT_LONG}
|
|
35
|
+
*/
|
|
36
|
+
Description?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Owner
|
|
39
|
+
*
|
|
40
|
+
* Owner (Supplier or Tenant) (Field Operations - ChangeReason)
|
|
41
|
+
* @type {ENUM}
|
|
42
|
+
* @default TENANT
|
|
43
|
+
*/
|
|
44
|
+
Owner?: string | null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Why is this going back to Scheduled?
|
|
48
|
+
*
|
|
49
|
+
* Records why an En Route work order stood down to Scheduled. Step of the FromEnRouteToScheduled transitions — the required reason is the audit control on the backward move.
|
|
50
|
+
*
|
|
51
|
+
* @actionType CREATE - Creates a new ChangeReason record
|
|
52
|
+
* @module FieldServiceModule
|
|
53
|
+
* @entity ChangeReason
|
|
54
|
+
* @entityType SA_DELAY (Delay)
|
|
55
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
56
|
+
* @permission schema.action.createenroutetoscheduledchangereason.trigger
|
|
57
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
58
|
+
*/
|
|
59
|
+
export declare class CreateEnRouteToScheduledChangeReasonDto extends OdinRecordCreateDto<CreateEnRouteToScheduledChangeReasonProperties> {
|
|
60
|
+
/** Used by SDK generators to identify action type */
|
|
61
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
62
|
+
static readonly ACTION_KEY = "CreateEnRouteToScheduledChangeReason";
|
|
63
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
64
|
+
static readonly ENTITIES: string[];
|
|
65
|
+
static readonly ENTITY_TYPE = "SA_DELAY";
|
|
66
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason";
|
|
67
|
+
static readonly PERMISSION = "schema.action.createenroutetoscheduledchangereason.trigger";
|
|
68
|
+
/** Step metadata - entity this action targets */
|
|
69
|
+
static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
|
|
70
|
+
static readonly STEP_SCHEMA_ID = "d411bca0-e0f3-437a-9886-2107cbb0b07d";
|
|
71
|
+
static readonly STEP_SCHEMA_ACTION_ID = "6a9206f9-52d7-4730-a956-ad9b3a1d1207";
|
|
72
|
+
static readonly STEP_SCHEMA_TYPE_ID = "baa0fa45-7576-4502-b0ea-5253e664722b";
|
|
73
|
+
static readonly STEP_TYPE = "SA_DELAY";
|
|
74
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
75
|
+
readonly actionName: string;
|
|
76
|
+
readonly schemaActionId: string;
|
|
77
|
+
readonly entity: string;
|
|
78
|
+
constructor(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: {
|
|
79
|
+
journeyId?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
declare type StepClassMap = {
|
|
83
|
+
CreateEnRouteToScheduledChangeReasonDto: CreateEnRouteToScheduledChangeReasonDto;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Link definition for connecting steps in MoveBusinessInstallFromEnRouteToScheduled
|
|
87
|
+
*/
|
|
88
|
+
export interface MoveBusinessInstallFromEnRouteToScheduledStepLink {
|
|
89
|
+
/**
|
|
90
|
+
* The stepKey of the target step to link TO
|
|
91
|
+
* Must reference another step's stepKey in the same flow
|
|
92
|
+
*/
|
|
93
|
+
stepKey: string;
|
|
94
|
+
/**
|
|
95
|
+
* The schema association ID (UUID) defining the relationship
|
|
96
|
+
* Use the association.id from the schema association definition
|
|
97
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
98
|
+
*/
|
|
99
|
+
schemaAssociationId: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Step definition with linking metadata for MoveBusinessInstallFromEnRouteToScheduled
|
|
103
|
+
*/
|
|
104
|
+
export interface MoveBusinessInstallFromEnRouteToScheduledStepDefinition {
|
|
105
|
+
/** Unique identifier for this step */
|
|
106
|
+
stepKey: string;
|
|
107
|
+
/** The DTO class name for this step */
|
|
108
|
+
dtoClass: string;
|
|
109
|
+
/** The entity this step creates (Module:Entity format) */
|
|
110
|
+
entity: string;
|
|
111
|
+
/** Links to create after this step executes */
|
|
112
|
+
linksTo: MoveBusinessInstallFromEnRouteToScheduledStepLink[] | null;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Type-safe step keys for MoveBusinessInstallFromEnRouteToScheduled
|
|
116
|
+
*/
|
|
117
|
+
export declare const MoveBusinessInstallFromEnRouteToScheduledSteps: {
|
|
118
|
+
readonly reason: "reason";
|
|
119
|
+
};
|
|
120
|
+
export declare type MoveBusinessInstallFromEnRouteToScheduledStepKey = typeof MoveBusinessInstallFromEnRouteToScheduledSteps[keyof typeof MoveBusinessInstallFromEnRouteToScheduledSteps];
|
|
121
|
+
/**
|
|
122
|
+
* RabbitMQ message payload for MoveBusinessInstallFromEnRouteToScheduled step flow events
|
|
123
|
+
*
|
|
124
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
|
|
125
|
+
*/
|
|
126
|
+
export interface MoveBusinessInstallFromEnRouteToScheduledMessage extends OdinRecordUpdatedEvent<MoveBusinessInstallFromEnRouteToScheduledDto, {}> {
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Properties for MoveBusinessInstallFromEnRouteToScheduled action
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
export interface MoveBusinessInstallFromEnRouteToScheduledProperties {
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Back to Scheduled
|
|
136
|
+
*
|
|
137
|
+
* Stand a dispatched business install back down to Scheduled, with a reason.
|
|
138
|
+
*
|
|
139
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
140
|
+
* @module FieldServiceModule
|
|
141
|
+
* @entity WorkOrder
|
|
142
|
+
* @entityType INSTALL_BUSINESS (Business Install)
|
|
143
|
+
* @targetStages BusinessInstallPipelineStageScheduled
|
|
144
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
|
|
145
|
+
* @permission schema.action.movebusinessinstallfromenroutetoscheduled.trigger
|
|
146
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
147
|
+
*/
|
|
148
|
+
export declare class MoveBusinessInstallFromEnRouteToScheduledDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
149
|
+
/** Used by SDK generators to identify action type */
|
|
150
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
151
|
+
static readonly ACTION_KEY = "MoveBusinessInstallFromEnRouteToScheduled";
|
|
152
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
153
|
+
static readonly ENTITIES: string[];
|
|
154
|
+
static readonly ENTITY_TYPE = "INSTALL_BUSINESS";
|
|
155
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled";
|
|
156
|
+
static readonly SCHEMA_ACTION_ID = "040d14cd-b6cd-44e2-a94a-e7d825e076db";
|
|
157
|
+
static readonly PERMISSION = "schema.action.movebusinessinstallfromenroutetoscheduled.trigger";
|
|
158
|
+
static readonly TARGET_STAGES: readonly ["BusinessInstallPipelineStageScheduled"];
|
|
159
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
160
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
161
|
+
static readonly HAS_STEP_LINKS = false;
|
|
162
|
+
/**
|
|
163
|
+
* Step definitions with linking metadata
|
|
164
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
165
|
+
*/
|
|
166
|
+
static readonly stepDefinitions: MoveBusinessInstallFromEnRouteToScheduledStepDefinition[];
|
|
167
|
+
/** Type-safe step key accessor */
|
|
168
|
+
static readonly Steps: {
|
|
169
|
+
readonly reason: "reason";
|
|
170
|
+
};
|
|
171
|
+
readonly actionName: string;
|
|
172
|
+
readonly schemaActionId: string;
|
|
173
|
+
readonly entity: string;
|
|
174
|
+
readonly stageKey: string;
|
|
175
|
+
constructor(record: OdinRecord<any> | {
|
|
176
|
+
id: string;
|
|
177
|
+
entity: string;
|
|
178
|
+
type?: string;
|
|
179
|
+
}, options?: {
|
|
180
|
+
journeyId?: string;
|
|
181
|
+
});
|
|
182
|
+
/** Step classes that can be used with this action */
|
|
183
|
+
static readonly stepClasses: readonly ["CreateEnRouteToScheduledChangeReasonDto"];
|
|
184
|
+
steps: StepClassMap[(typeof MoveBusinessInstallFromEnRouteToScheduledDto.stepClasses)[number]][];
|
|
185
|
+
}
|
|
186
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveBusinessInstallFromEnRouteToScheduled Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Stand a dispatched business install back down to Scheduled, with a reason.
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity WorkOrder
|
|
9
|
+
* @entityType INSTALL_BUSINESS
|
|
10
|
+
* @actionKey MoveBusinessInstallFromEnRouteToScheduled
|
|
11
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoveBusinessInstallFromEnRouteToScheduledDto = exports.MoveBusinessInstallFromEnRouteToScheduledSteps = exports.CreateEnRouteToScheduledChangeReasonDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Why is this going back to Scheduled?
|
|
20
|
+
*
|
|
21
|
+
* Records why an En Route work order stood down to Scheduled. Step of the FromEnRouteToScheduled transitions — the required reason is the audit control on the backward move.
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new ChangeReason record
|
|
24
|
+
* @module FieldServiceModule
|
|
25
|
+
* @entity ChangeReason
|
|
26
|
+
* @entityType SA_DELAY (Delay)
|
|
27
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
28
|
+
* @permission schema.action.createenroutetoscheduledchangereason.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateEnRouteToScheduledChangeReasonDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
35
|
+
type: 'SA_DELAY',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreateEnRouteToScheduledChangeReason';
|
|
40
|
+
this.schemaActionId = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
|
|
41
|
+
this.entity = 'FieldServiceModule:ChangeReason';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateEnRouteToScheduledChangeReasonDto = CreateEnRouteToScheduledChangeReasonDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateEnRouteToScheduledChangeReasonDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateEnRouteToScheduledChangeReasonDto.ACTION_KEY = 'CreateEnRouteToScheduledChangeReason';
|
|
48
|
+
CreateEnRouteToScheduledChangeReasonDto.MODULE_NAME = 'FieldServiceModule';
|
|
49
|
+
CreateEnRouteToScheduledChangeReasonDto.ENTITIES = ['ChangeReason'];
|
|
50
|
+
CreateEnRouteToScheduledChangeReasonDto.ENTITY_TYPE = 'SA_DELAY';
|
|
51
|
+
CreateEnRouteToScheduledChangeReasonDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason';
|
|
52
|
+
CreateEnRouteToScheduledChangeReasonDto.PERMISSION = 'schema.action.createenroutetoscheduledchangereason.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_ENTITY = 'FieldServiceModule:ChangeReason';
|
|
55
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ID = 'd411bca0-e0f3-437a-9886-2107cbb0b07d';
|
|
56
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ACTION_ID = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
|
|
57
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_TYPE_ID = 'baa0fa45-7576-4502-b0ea-5253e664722b';
|
|
58
|
+
CreateEnRouteToScheduledChangeReasonDto.STEP_TYPE = 'SA_DELAY';
|
|
59
|
+
CreateEnRouteToScheduledChangeReasonDto.AUTO_LINK_PARENT = true;
|
|
60
|
+
/**
|
|
61
|
+
* Type-safe step keys for MoveBusinessInstallFromEnRouteToScheduled
|
|
62
|
+
*/
|
|
63
|
+
exports.MoveBusinessInstallFromEnRouteToScheduledSteps = {
|
|
64
|
+
reason: 'reason',
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Back to Scheduled
|
|
68
|
+
*
|
|
69
|
+
* Stand a dispatched business install back down to Scheduled, with a reason.
|
|
70
|
+
*
|
|
71
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
72
|
+
* @module FieldServiceModule
|
|
73
|
+
* @entity WorkOrder
|
|
74
|
+
* @entityType INSTALL_BUSINESS (Business Install)
|
|
75
|
+
* @targetStages BusinessInstallPipelineStageScheduled
|
|
76
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
|
|
77
|
+
* @permission schema.action.movebusinessinstallfromenroutetoscheduled.trigger
|
|
78
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
79
|
+
*/
|
|
80
|
+
class MoveBusinessInstallFromEnRouteToScheduledDto extends core_1.OdinRecordUpdateDto {
|
|
81
|
+
constructor(record, options) {
|
|
82
|
+
super({
|
|
83
|
+
id: record.id,
|
|
84
|
+
entity: record.entity,
|
|
85
|
+
type: record.type,
|
|
86
|
+
properties: {},
|
|
87
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
88
|
+
});
|
|
89
|
+
this.actionName = 'MoveBusinessInstallFromEnRouteToScheduled';
|
|
90
|
+
this.schemaActionId = '040d14cd-b6cd-44e2-a94a-e7d825e076db';
|
|
91
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
92
|
+
this.stageKey = 'BusinessInstallPipelineStageScheduled';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.MoveBusinessInstallFromEnRouteToScheduledDto = MoveBusinessInstallFromEnRouteToScheduledDto;
|
|
96
|
+
/** Used by SDK generators to identify action type */
|
|
97
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.ACTION_TYPE = 'UPDATE';
|
|
98
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.ACTION_KEY = 'MoveBusinessInstallFromEnRouteToScheduled';
|
|
99
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.MODULE_NAME = 'FieldServiceModule';
|
|
100
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.ENTITIES = ['WorkOrder'];
|
|
101
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.ENTITY_TYPE = 'INSTALL_BUSINESS';
|
|
102
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled';
|
|
103
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.SCHEMA_ACTION_ID = '040d14cd-b6cd-44e2-a94a-e7d825e076db';
|
|
104
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.PERMISSION = 'schema.action.movebusinessinstallfromenroutetoscheduled.trigger';
|
|
105
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.TARGET_STAGES = ['BusinessInstallPipelineStageScheduled'];
|
|
106
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.IS_STAGE_TRANSITION = true;
|
|
107
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.IS_MULTI_STEP_FLOW = false;
|
|
108
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.HAS_STEP_LINKS = false;
|
|
109
|
+
/**
|
|
110
|
+
* Step definitions with linking metadata
|
|
111
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
112
|
+
*/
|
|
113
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.stepDefinitions = [
|
|
114
|
+
{
|
|
115
|
+
stepKey: 'reason',
|
|
116
|
+
dtoClass: 'CreateEnRouteToScheduledChangeReasonDto',
|
|
117
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
118
|
+
linksTo: null
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
/** Type-safe step key accessor */
|
|
122
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.Steps = exports.MoveBusinessInstallFromEnRouteToScheduledSteps;
|
|
123
|
+
/** Step classes that can be used with this action */
|
|
124
|
+
MoveBusinessInstallFromEnRouteToScheduledDto.stepClasses = ['CreateEnRouteToScheduledChangeReasonDto'];
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveInspectionWorkOrderFromEnRouteToScheduled Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Stand a dispatched inspection visit back down to Scheduled, with a reason.
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity WorkOrder
|
|
8
|
+
* @entityType INSPECTION
|
|
9
|
+
* @actionKey MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
10
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* Properties for CreateEnRouteToScheduledChangeReason action
|
|
17
|
+
*
|
|
18
|
+
* @property Required fields: 1
|
|
19
|
+
* @property Optional fields: 2
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateEnRouteToScheduledChangeReasonProperties {
|
|
22
|
+
/**
|
|
23
|
+
* Reason
|
|
24
|
+
*
|
|
25
|
+
* why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
26
|
+
* @type {ENUM}
|
|
27
|
+
* @required
|
|
28
|
+
*/
|
|
29
|
+
StandDownReason: string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional detail
|
|
32
|
+
*
|
|
33
|
+
* cancellation description (Field Operations - ChangeReason)
|
|
34
|
+
* @type {TEXT_LONG}
|
|
35
|
+
*/
|
|
36
|
+
Description?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Owner
|
|
39
|
+
*
|
|
40
|
+
* Owner (Supplier or Tenant) (Field Operations - ChangeReason)
|
|
41
|
+
* @type {ENUM}
|
|
42
|
+
* @default TENANT
|
|
43
|
+
*/
|
|
44
|
+
Owner?: string | null;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Why is this going back to Scheduled?
|
|
48
|
+
*
|
|
49
|
+
* Records why an En Route work order stood down to Scheduled. Step of the FromEnRouteToScheduled transitions — the required reason is the audit control on the backward move.
|
|
50
|
+
*
|
|
51
|
+
* @actionType CREATE - Creates a new ChangeReason record
|
|
52
|
+
* @module FieldServiceModule
|
|
53
|
+
* @entity ChangeReason
|
|
54
|
+
* @entityType SA_DELAY (Delay)
|
|
55
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason
|
|
56
|
+
* @permission schema.action.createenroutetoscheduledchangereason.trigger
|
|
57
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
58
|
+
*/
|
|
59
|
+
export declare class CreateEnRouteToScheduledChangeReasonDto extends OdinRecordCreateDto<CreateEnRouteToScheduledChangeReasonProperties> {
|
|
60
|
+
/** Used by SDK generators to identify action type */
|
|
61
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
62
|
+
static readonly ACTION_KEY = "CreateEnRouteToScheduledChangeReason";
|
|
63
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
64
|
+
static readonly ENTITIES: string[];
|
|
65
|
+
static readonly ENTITY_TYPE = "SA_DELAY";
|
|
66
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason";
|
|
67
|
+
static readonly PERMISSION = "schema.action.createenroutetoscheduledchangereason.trigger";
|
|
68
|
+
/** Step metadata - entity this action targets */
|
|
69
|
+
static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
|
|
70
|
+
static readonly STEP_SCHEMA_ID = "d411bca0-e0f3-437a-9886-2107cbb0b07d";
|
|
71
|
+
static readonly STEP_SCHEMA_ACTION_ID = "6a9206f9-52d7-4730-a956-ad9b3a1d1207";
|
|
72
|
+
static readonly STEP_SCHEMA_TYPE_ID = "baa0fa45-7576-4502-b0ea-5253e664722b";
|
|
73
|
+
static readonly STEP_TYPE = "SA_DELAY";
|
|
74
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
75
|
+
readonly actionName: string;
|
|
76
|
+
readonly schemaActionId: string;
|
|
77
|
+
readonly entity: string;
|
|
78
|
+
constructor(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: {
|
|
79
|
+
journeyId?: string;
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
declare type StepClassMap = {
|
|
83
|
+
CreateEnRouteToScheduledChangeReasonDto: CreateEnRouteToScheduledChangeReasonDto;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Link definition for connecting steps in MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
87
|
+
*/
|
|
88
|
+
export interface MoveInspectionWorkOrderFromEnRouteToScheduledStepLink {
|
|
89
|
+
/**
|
|
90
|
+
* The stepKey of the target step to link TO
|
|
91
|
+
* Must reference another step's stepKey in the same flow
|
|
92
|
+
*/
|
|
93
|
+
stepKey: string;
|
|
94
|
+
/**
|
|
95
|
+
* The schema association ID (UUID) defining the relationship
|
|
96
|
+
* Use the association.id from the schema association definition
|
|
97
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
98
|
+
*/
|
|
99
|
+
schemaAssociationId: string;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Step definition with linking metadata for MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
103
|
+
*/
|
|
104
|
+
export interface MoveInspectionWorkOrderFromEnRouteToScheduledStepDefinition {
|
|
105
|
+
/** Unique identifier for this step */
|
|
106
|
+
stepKey: string;
|
|
107
|
+
/** The DTO class name for this step */
|
|
108
|
+
dtoClass: string;
|
|
109
|
+
/** The entity this step creates (Module:Entity format) */
|
|
110
|
+
entity: string;
|
|
111
|
+
/** Links to create after this step executes */
|
|
112
|
+
linksTo: MoveInspectionWorkOrderFromEnRouteToScheduledStepLink[] | null;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Type-safe step keys for MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
116
|
+
*/
|
|
117
|
+
export declare const MoveInspectionWorkOrderFromEnRouteToScheduledSteps: {
|
|
118
|
+
readonly reason: "reason";
|
|
119
|
+
};
|
|
120
|
+
export declare type MoveInspectionWorkOrderFromEnRouteToScheduledStepKey = typeof MoveInspectionWorkOrderFromEnRouteToScheduledSteps[keyof typeof MoveInspectionWorkOrderFromEnRouteToScheduledSteps];
|
|
121
|
+
/**
|
|
122
|
+
* RabbitMQ message payload for MoveInspectionWorkOrderFromEnRouteToScheduled step flow events
|
|
123
|
+
*
|
|
124
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
125
|
+
*/
|
|
126
|
+
export interface MoveInspectionWorkOrderFromEnRouteToScheduledMessage extends OdinRecordUpdatedEvent<MoveInspectionWorkOrderFromEnRouteToScheduledDto, {}> {
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Properties for MoveInspectionWorkOrderFromEnRouteToScheduled action
|
|
130
|
+
*
|
|
131
|
+
*/
|
|
132
|
+
export interface MoveInspectionWorkOrderFromEnRouteToScheduledProperties {
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Back to Scheduled
|
|
136
|
+
*
|
|
137
|
+
* Stand a dispatched inspection visit back down to Scheduled, with a reason.
|
|
138
|
+
*
|
|
139
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
140
|
+
* @module FieldServiceModule
|
|
141
|
+
* @entity WorkOrder
|
|
142
|
+
* @entityType INSPECTION (inspection)
|
|
143
|
+
* @targetStages WorkOrderStageScheduled
|
|
144
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
145
|
+
* @permission schema.action.moveinspectionworkorderfromenroutetoscheduled.trigger
|
|
146
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
147
|
+
*/
|
|
148
|
+
export declare class MoveInspectionWorkOrderFromEnRouteToScheduledDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
149
|
+
/** Used by SDK generators to identify action type */
|
|
150
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
151
|
+
static readonly ACTION_KEY = "MoveInspectionWorkOrderFromEnRouteToScheduled";
|
|
152
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
153
|
+
static readonly ENTITIES: string[];
|
|
154
|
+
static readonly ENTITY_TYPE = "INSPECTION";
|
|
155
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveInspectionWorkOrderFromEnRouteToScheduled";
|
|
156
|
+
static readonly SCHEMA_ACTION_ID = "b2c2b272-b6d4-47d5-9dd8-bf57eb8252ad";
|
|
157
|
+
static readonly PERMISSION = "schema.action.moveinspectionworkorderfromenroutetoscheduled.trigger";
|
|
158
|
+
static readonly TARGET_STAGES: readonly ["WorkOrderStageScheduled"];
|
|
159
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
160
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
161
|
+
static readonly HAS_STEP_LINKS = false;
|
|
162
|
+
/**
|
|
163
|
+
* Step definitions with linking metadata
|
|
164
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
165
|
+
*/
|
|
166
|
+
static readonly stepDefinitions: MoveInspectionWorkOrderFromEnRouteToScheduledStepDefinition[];
|
|
167
|
+
/** Type-safe step key accessor */
|
|
168
|
+
static readonly Steps: {
|
|
169
|
+
readonly reason: "reason";
|
|
170
|
+
};
|
|
171
|
+
readonly actionName: string;
|
|
172
|
+
readonly schemaActionId: string;
|
|
173
|
+
readonly entity: string;
|
|
174
|
+
readonly stageKey: string;
|
|
175
|
+
constructor(record: OdinRecord<any> | {
|
|
176
|
+
id: string;
|
|
177
|
+
entity: string;
|
|
178
|
+
type?: string;
|
|
179
|
+
}, options?: {
|
|
180
|
+
journeyId?: string;
|
|
181
|
+
});
|
|
182
|
+
/** Step classes that can be used with this action */
|
|
183
|
+
static readonly stepClasses: readonly ["CreateEnRouteToScheduledChangeReasonDto"];
|
|
184
|
+
steps: StepClassMap[(typeof MoveInspectionWorkOrderFromEnRouteToScheduledDto.stepClasses)[number]][];
|
|
185
|
+
}
|
|
186
|
+
export {};
|