@d19n/youfibre-odin-sdk 2.0.313 → 2.0.315

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.
Files changed (29) hide show
  1. package/README.md +8 -1
  2. package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.d.ts +86 -0
  3. package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.js +57 -0
  4. package/dist/actions-v2/CreateQaReportDto.d.ts +3 -3
  5. package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.d.ts +182 -0
  6. package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.js +120 -0
  7. package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.d.ts +182 -0
  8. package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.js +120 -0
  9. package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.d.ts +182 -0
  10. package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.js +120 -0
  11. package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.d.ts +182 -0
  12. package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.js +120 -0
  13. package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.d.ts +182 -0
  14. package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.js +120 -0
  15. package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.d.ts +182 -0
  16. package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.js +120 -0
  17. package/dist/entities-v2/ChangeReason.d.ts +53 -1
  18. package/dist/entities-v2/ChangeReason.js +19 -1
  19. package/dist/entities-v2/Config.d.ts +8 -8
  20. package/dist/entities-v2/Config.js +2 -2
  21. package/dist/entities-v2/QaReport.d.ts +9 -9
  22. package/dist/entities-v2/QaReport.js +2 -2
  23. package/dist/entities-v2/WorkOrder.d.ts +2 -0
  24. package/dist/entities-v2/WorkOrder.js +2 -0
  25. package/dist/records-v2/ChangeReasonRecord.d.ts +29 -0
  26. package/dist/records-v2/ChangeReasonRecord.js +36 -0
  27. package/dist/records-v2/WorkOrderRecord.d.ts +517 -0
  28. package/dist/records-v2/WorkOrderRecord.js +943 -151
  29. 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 **874** actions.
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,86 @@
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
+ * @benchmark This action is tracked for performance benchmarks
64
+ */
65
+ export declare class CreateEnRouteToScheduledChangeReasonDto extends OdinRecordCreateDto<CreateEnRouteToScheduledChangeReasonProperties> {
66
+ /** Used by SDK generators to identify action type */
67
+ static readonly ACTION_TYPE = "CREATE";
68
+ static readonly ACTION_KEY = "CreateEnRouteToScheduledChangeReason";
69
+ static readonly MODULE_NAME = "FieldServiceModule";
70
+ static readonly ENTITIES: string[];
71
+ static readonly ENTITY_TYPE = "SA_DELAY";
72
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason";
73
+ /** Step metadata - entity this action targets */
74
+ static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
75
+ static readonly STEP_SCHEMA_ID = "d411bca0-e0f3-437a-9886-2107cbb0b07d";
76
+ static readonly STEP_SCHEMA_ACTION_ID = "6a9206f9-52d7-4730-a956-ad9b3a1d1207";
77
+ static readonly STEP_SCHEMA_TYPE_ID = "baa0fa45-7576-4502-b0ea-5253e664722b";
78
+ static readonly STEP_TYPE = "SA_DELAY";
79
+ static readonly AUTO_LINK_PARENT = true;
80
+ readonly actionName: string;
81
+ readonly schemaActionId: string;
82
+ readonly entity: string;
83
+ constructor(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: {
84
+ journeyId?: string;
85
+ });
86
+ }
@@ -0,0 +1,57 @@
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
+ * @benchmark This action is tracked for performance benchmarks
29
+ */
30
+ class CreateEnRouteToScheduledChangeReasonDto extends core_1.OdinRecordCreateDto {
31
+ constructor(properties, options) {
32
+ super({
33
+ entity: 'FieldServiceModule:ChangeReason',
34
+ type: 'SA_DELAY',
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ });
38
+ this.actionName = 'CreateEnRouteToScheduledChangeReason';
39
+ this.schemaActionId = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
40
+ this.entity = 'FieldServiceModule:ChangeReason';
41
+ }
42
+ }
43
+ exports.CreateEnRouteToScheduledChangeReasonDto = CreateEnRouteToScheduledChangeReasonDto;
44
+ /** Used by SDK generators to identify action type */
45
+ CreateEnRouteToScheduledChangeReasonDto.ACTION_TYPE = 'CREATE';
46
+ CreateEnRouteToScheduledChangeReasonDto.ACTION_KEY = 'CreateEnRouteToScheduledChangeReason';
47
+ CreateEnRouteToScheduledChangeReasonDto.MODULE_NAME = 'FieldServiceModule';
48
+ CreateEnRouteToScheduledChangeReasonDto.ENTITIES = ['ChangeReason'];
49
+ CreateEnRouteToScheduledChangeReasonDto.ENTITY_TYPE = 'SA_DELAY';
50
+ CreateEnRouteToScheduledChangeReasonDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason';
51
+ /** Step metadata - entity this action targets */
52
+ CreateEnRouteToScheduledChangeReasonDto.STEP_ENTITY = 'FieldServiceModule:ChangeReason';
53
+ CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ID = 'd411bca0-e0f3-437a-9886-2107cbb0b07d';
54
+ CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ACTION_ID = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
55
+ CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_TYPE_ID = 'baa0fa45-7576-4502-b0ea-5253e664722b';
56
+ CreateEnRouteToScheduledChangeReasonDto.STEP_TYPE = 'SA_DELAY';
57
+ CreateEnRouteToScheduledChangeReasonDto.AUTO_LINK_PARENT = true;
@@ -37,11 +37,11 @@ export interface CreateQaReportProperties {
37
37
  /**
38
38
  * Report
39
39
  *
40
- * The scorecard as returned by the Databricks quality_assurance_report endpoint, sanitised HTML. Around 13KB in practice.
41
- * @type {TEXT_LONG}
40
+ * S3 URL of the scorecard HTML returned by the Databricks quality_assurance_report endpoint. Uploaded through Odin, so it lands in the org files bucket and also exists as a SchemaModule:File.
41
+ * @type {TEXT}
42
42
  * @required
43
43
  */
44
- ReportHtml: string;
44
+ ReportUrl: string;
45
45
  /**
46
46
  * Score %
47
47
  *
@@ -0,0 +1,182 @@
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
+ * @benchmark This action is tracked for performance benchmarks
57
+ */
58
+ export declare class CreateEnRouteToScheduledChangeReasonDto extends OdinRecordCreateDto<CreateEnRouteToScheduledChangeReasonProperties> {
59
+ /** Used by SDK generators to identify action type */
60
+ static readonly ACTION_TYPE = "CREATE";
61
+ static readonly ACTION_KEY = "CreateEnRouteToScheduledChangeReason";
62
+ static readonly MODULE_NAME = "FieldServiceModule";
63
+ static readonly ENTITIES: string[];
64
+ static readonly ENTITY_TYPE = "SA_DELAY";
65
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason";
66
+ /** Step metadata - entity this action targets */
67
+ static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
68
+ static readonly STEP_SCHEMA_ID = "d411bca0-e0f3-437a-9886-2107cbb0b07d";
69
+ static readonly STEP_SCHEMA_ACTION_ID = "6a9206f9-52d7-4730-a956-ad9b3a1d1207";
70
+ static readonly STEP_SCHEMA_TYPE_ID = "baa0fa45-7576-4502-b0ea-5253e664722b";
71
+ static readonly STEP_TYPE = "SA_DELAY";
72
+ static readonly AUTO_LINK_PARENT = true;
73
+ readonly actionName: string;
74
+ readonly schemaActionId: string;
75
+ readonly entity: string;
76
+ constructor(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: {
77
+ journeyId?: string;
78
+ });
79
+ }
80
+ declare type StepClassMap = {
81
+ CreateEnRouteToScheduledChangeReasonDto: CreateEnRouteToScheduledChangeReasonDto;
82
+ };
83
+ /**
84
+ * Link definition for connecting steps in MoveBusinessInstallFromEnRouteToScheduled
85
+ */
86
+ export interface MoveBusinessInstallFromEnRouteToScheduledStepLink {
87
+ /**
88
+ * The stepKey of the target step to link TO
89
+ * Must reference another step's stepKey in the same flow
90
+ */
91
+ stepKey: string;
92
+ /**
93
+ * The schema association ID (UUID) defining the relationship
94
+ * Use the association.id from the schema association definition
95
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
96
+ */
97
+ schemaAssociationId: string;
98
+ }
99
+ /**
100
+ * Step definition with linking metadata for MoveBusinessInstallFromEnRouteToScheduled
101
+ */
102
+ export interface MoveBusinessInstallFromEnRouteToScheduledStepDefinition {
103
+ /** Unique identifier for this step */
104
+ stepKey: string;
105
+ /** The DTO class name for this step */
106
+ dtoClass: string;
107
+ /** The entity this step creates (Module:Entity format) */
108
+ entity: string;
109
+ /** Links to create after this step executes */
110
+ linksTo: MoveBusinessInstallFromEnRouteToScheduledStepLink[] | null;
111
+ }
112
+ /**
113
+ * Type-safe step keys for MoveBusinessInstallFromEnRouteToScheduled
114
+ */
115
+ export declare const MoveBusinessInstallFromEnRouteToScheduledSteps: {
116
+ readonly reason: "reason";
117
+ };
118
+ export declare type MoveBusinessInstallFromEnRouteToScheduledStepKey = typeof MoveBusinessInstallFromEnRouteToScheduledSteps[keyof typeof MoveBusinessInstallFromEnRouteToScheduledSteps];
119
+ /**
120
+ * RabbitMQ message payload for MoveBusinessInstallFromEnRouteToScheduled step flow events
121
+ *
122
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
123
+ */
124
+ export interface MoveBusinessInstallFromEnRouteToScheduledMessage extends OdinRecordUpdatedEvent<MoveBusinessInstallFromEnRouteToScheduledDto, {}> {
125
+ }
126
+ /**
127
+ * Properties for MoveBusinessInstallFromEnRouteToScheduled action
128
+ *
129
+ */
130
+ export interface MoveBusinessInstallFromEnRouteToScheduledProperties {
131
+ }
132
+ /**
133
+ * Back to Scheduled
134
+ *
135
+ * Stand a dispatched business install back down to Scheduled, with a reason.
136
+ *
137
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
138
+ * @module FieldServiceModule
139
+ * @entity WorkOrder
140
+ * @entityType INSTALL_BUSINESS (Business Install)
141
+ * @targetStages BusinessInstallPipelineStageScheduled
142
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
143
+ * @benchmark This action is tracked for performance benchmarks
144
+ */
145
+ export declare class MoveBusinessInstallFromEnRouteToScheduledDto extends OdinRecordUpdateDto<Record<string, any>> {
146
+ /** Used by SDK generators to identify action type */
147
+ static readonly ACTION_TYPE = "UPDATE";
148
+ static readonly ACTION_KEY = "MoveBusinessInstallFromEnRouteToScheduled";
149
+ static readonly MODULE_NAME = "FieldServiceModule";
150
+ static readonly ENTITIES: string[];
151
+ static readonly ENTITY_TYPE = "INSTALL_BUSINESS";
152
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled";
153
+ static readonly SCHEMA_ACTION_ID = "040d14cd-b6cd-44e2-a94a-e7d825e076db";
154
+ static readonly TARGET_STAGES: readonly ["BusinessInstallPipelineStageScheduled"];
155
+ static readonly IS_STAGE_TRANSITION = true;
156
+ static readonly IS_MULTI_STEP_FLOW = false;
157
+ static readonly HAS_STEP_LINKS = false;
158
+ /**
159
+ * Step definitions with linking metadata
160
+ * Used by SDK and backend for auto-linking after step execution
161
+ */
162
+ static readonly stepDefinitions: MoveBusinessInstallFromEnRouteToScheduledStepDefinition[];
163
+ /** Type-safe step key accessor */
164
+ static readonly Steps: {
165
+ readonly reason: "reason";
166
+ };
167
+ readonly actionName: string;
168
+ readonly schemaActionId: string;
169
+ readonly entity: string;
170
+ readonly stageKey: string;
171
+ constructor(record: OdinRecord<any> | {
172
+ id: string;
173
+ entity: string;
174
+ type?: string;
175
+ }, options?: {
176
+ journeyId?: string;
177
+ });
178
+ /** Step classes that can be used with this action */
179
+ static readonly stepClasses: readonly ["CreateEnRouteToScheduledChangeReasonDto"];
180
+ steps: StepClassMap[(typeof MoveBusinessInstallFromEnRouteToScheduledDto.stepClasses)[number]][];
181
+ }
182
+ export {};
@@ -0,0 +1,120 @@
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
+ * @benchmark This action is tracked for performance benchmarks
29
+ */
30
+ class CreateEnRouteToScheduledChangeReasonDto extends core_1.OdinRecordCreateDto {
31
+ constructor(properties, options) {
32
+ super({
33
+ entity: 'FieldServiceModule:ChangeReason',
34
+ type: 'SA_DELAY',
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ });
38
+ this.actionName = 'CreateEnRouteToScheduledChangeReason';
39
+ this.schemaActionId = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
40
+ this.entity = 'FieldServiceModule:ChangeReason';
41
+ }
42
+ }
43
+ exports.CreateEnRouteToScheduledChangeReasonDto = CreateEnRouteToScheduledChangeReasonDto;
44
+ /** Used by SDK generators to identify action type */
45
+ CreateEnRouteToScheduledChangeReasonDto.ACTION_TYPE = 'CREATE';
46
+ CreateEnRouteToScheduledChangeReasonDto.ACTION_KEY = 'CreateEnRouteToScheduledChangeReason';
47
+ CreateEnRouteToScheduledChangeReasonDto.MODULE_NAME = 'FieldServiceModule';
48
+ CreateEnRouteToScheduledChangeReasonDto.ENTITIES = ['ChangeReason'];
49
+ CreateEnRouteToScheduledChangeReasonDto.ENTITY_TYPE = 'SA_DELAY';
50
+ CreateEnRouteToScheduledChangeReasonDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason';
51
+ /** Step metadata - entity this action targets */
52
+ CreateEnRouteToScheduledChangeReasonDto.STEP_ENTITY = 'FieldServiceModule:ChangeReason';
53
+ CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ID = 'd411bca0-e0f3-437a-9886-2107cbb0b07d';
54
+ CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_ACTION_ID = '6a9206f9-52d7-4730-a956-ad9b3a1d1207';
55
+ CreateEnRouteToScheduledChangeReasonDto.STEP_SCHEMA_TYPE_ID = 'baa0fa45-7576-4502-b0ea-5253e664722b';
56
+ CreateEnRouteToScheduledChangeReasonDto.STEP_TYPE = 'SA_DELAY';
57
+ CreateEnRouteToScheduledChangeReasonDto.AUTO_LINK_PARENT = true;
58
+ /**
59
+ * Type-safe step keys for MoveBusinessInstallFromEnRouteToScheduled
60
+ */
61
+ exports.MoveBusinessInstallFromEnRouteToScheduledSteps = {
62
+ reason: 'reason',
63
+ };
64
+ /**
65
+ * Back to Scheduled
66
+ *
67
+ * Stand a dispatched business install back down to Scheduled, with a reason.
68
+ *
69
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
70
+ * @module FieldServiceModule
71
+ * @entity WorkOrder
72
+ * @entityType INSTALL_BUSINESS (Business Install)
73
+ * @targetStages BusinessInstallPipelineStageScheduled
74
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled
75
+ * @benchmark This action is tracked for performance benchmarks
76
+ */
77
+ class MoveBusinessInstallFromEnRouteToScheduledDto extends core_1.OdinRecordUpdateDto {
78
+ constructor(record, options) {
79
+ super({
80
+ id: record.id,
81
+ entity: record.entity,
82
+ type: record.type,
83
+ properties: {},
84
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
85
+ });
86
+ this.actionName = 'MoveBusinessInstallFromEnRouteToScheduled';
87
+ this.schemaActionId = '040d14cd-b6cd-44e2-a94a-e7d825e076db';
88
+ this.entity = 'FieldServiceModule:WorkOrder';
89
+ this.stageKey = 'BusinessInstallPipelineStageScheduled';
90
+ }
91
+ }
92
+ exports.MoveBusinessInstallFromEnRouteToScheduledDto = MoveBusinessInstallFromEnRouteToScheduledDto;
93
+ /** Used by SDK generators to identify action type */
94
+ MoveBusinessInstallFromEnRouteToScheduledDto.ACTION_TYPE = 'UPDATE';
95
+ MoveBusinessInstallFromEnRouteToScheduledDto.ACTION_KEY = 'MoveBusinessInstallFromEnRouteToScheduled';
96
+ MoveBusinessInstallFromEnRouteToScheduledDto.MODULE_NAME = 'FieldServiceModule';
97
+ MoveBusinessInstallFromEnRouteToScheduledDto.ENTITIES = ['WorkOrder'];
98
+ MoveBusinessInstallFromEnRouteToScheduledDto.ENTITY_TYPE = 'INSTALL_BUSINESS';
99
+ MoveBusinessInstallFromEnRouteToScheduledDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromEnRouteToScheduled';
100
+ MoveBusinessInstallFromEnRouteToScheduledDto.SCHEMA_ACTION_ID = '040d14cd-b6cd-44e2-a94a-e7d825e076db';
101
+ MoveBusinessInstallFromEnRouteToScheduledDto.TARGET_STAGES = ['BusinessInstallPipelineStageScheduled'];
102
+ MoveBusinessInstallFromEnRouteToScheduledDto.IS_STAGE_TRANSITION = true;
103
+ MoveBusinessInstallFromEnRouteToScheduledDto.IS_MULTI_STEP_FLOW = false;
104
+ MoveBusinessInstallFromEnRouteToScheduledDto.HAS_STEP_LINKS = false;
105
+ /**
106
+ * Step definitions with linking metadata
107
+ * Used by SDK and backend for auto-linking after step execution
108
+ */
109
+ MoveBusinessInstallFromEnRouteToScheduledDto.stepDefinitions = [
110
+ {
111
+ stepKey: 'reason',
112
+ dtoClass: 'CreateEnRouteToScheduledChangeReasonDto',
113
+ entity: 'FieldServiceModule:ChangeReason',
114
+ linksTo: null
115
+ }
116
+ ];
117
+ /** Type-safe step key accessor */
118
+ MoveBusinessInstallFromEnRouteToScheduledDto.Steps = exports.MoveBusinessInstallFromEnRouteToScheduledSteps;
119
+ /** Step classes that can be used with this action */
120
+ MoveBusinessInstallFromEnRouteToScheduledDto.stepClasses = ['CreateEnRouteToScheduledChangeReasonDto'];
@@ -0,0 +1,182 @@
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
+ * @benchmark This action is tracked for performance benchmarks
57
+ */
58
+ export declare class CreateEnRouteToScheduledChangeReasonDto extends OdinRecordCreateDto<CreateEnRouteToScheduledChangeReasonProperties> {
59
+ /** Used by SDK generators to identify action type */
60
+ static readonly ACTION_TYPE = "CREATE";
61
+ static readonly ACTION_KEY = "CreateEnRouteToScheduledChangeReason";
62
+ static readonly MODULE_NAME = "FieldServiceModule";
63
+ static readonly ENTITIES: string[];
64
+ static readonly ENTITY_TYPE = "SA_DELAY";
65
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateEnRouteToScheduledChangeReason";
66
+ /** Step metadata - entity this action targets */
67
+ static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
68
+ static readonly STEP_SCHEMA_ID = "d411bca0-e0f3-437a-9886-2107cbb0b07d";
69
+ static readonly STEP_SCHEMA_ACTION_ID = "6a9206f9-52d7-4730-a956-ad9b3a1d1207";
70
+ static readonly STEP_SCHEMA_TYPE_ID = "baa0fa45-7576-4502-b0ea-5253e664722b";
71
+ static readonly STEP_TYPE = "SA_DELAY";
72
+ static readonly AUTO_LINK_PARENT = true;
73
+ readonly actionName: string;
74
+ readonly schemaActionId: string;
75
+ readonly entity: string;
76
+ constructor(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: {
77
+ journeyId?: string;
78
+ });
79
+ }
80
+ declare type StepClassMap = {
81
+ CreateEnRouteToScheduledChangeReasonDto: CreateEnRouteToScheduledChangeReasonDto;
82
+ };
83
+ /**
84
+ * Link definition for connecting steps in MoveInspectionWorkOrderFromEnRouteToScheduled
85
+ */
86
+ export interface MoveInspectionWorkOrderFromEnRouteToScheduledStepLink {
87
+ /**
88
+ * The stepKey of the target step to link TO
89
+ * Must reference another step's stepKey in the same flow
90
+ */
91
+ stepKey: string;
92
+ /**
93
+ * The schema association ID (UUID) defining the relationship
94
+ * Use the association.id from the schema association definition
95
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
96
+ */
97
+ schemaAssociationId: string;
98
+ }
99
+ /**
100
+ * Step definition with linking metadata for MoveInspectionWorkOrderFromEnRouteToScheduled
101
+ */
102
+ export interface MoveInspectionWorkOrderFromEnRouteToScheduledStepDefinition {
103
+ /** Unique identifier for this step */
104
+ stepKey: string;
105
+ /** The DTO class name for this step */
106
+ dtoClass: string;
107
+ /** The entity this step creates (Module:Entity format) */
108
+ entity: string;
109
+ /** Links to create after this step executes */
110
+ linksTo: MoveInspectionWorkOrderFromEnRouteToScheduledStepLink[] | null;
111
+ }
112
+ /**
113
+ * Type-safe step keys for MoveInspectionWorkOrderFromEnRouteToScheduled
114
+ */
115
+ export declare const MoveInspectionWorkOrderFromEnRouteToScheduledSteps: {
116
+ readonly reason: "reason";
117
+ };
118
+ export declare type MoveInspectionWorkOrderFromEnRouteToScheduledStepKey = typeof MoveInspectionWorkOrderFromEnRouteToScheduledSteps[keyof typeof MoveInspectionWorkOrderFromEnRouteToScheduledSteps];
119
+ /**
120
+ * RabbitMQ message payload for MoveInspectionWorkOrderFromEnRouteToScheduled step flow events
121
+ *
122
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveInspectionWorkOrderFromEnRouteToScheduled
123
+ */
124
+ export interface MoveInspectionWorkOrderFromEnRouteToScheduledMessage extends OdinRecordUpdatedEvent<MoveInspectionWorkOrderFromEnRouteToScheduledDto, {}> {
125
+ }
126
+ /**
127
+ * Properties for MoveInspectionWorkOrderFromEnRouteToScheduled action
128
+ *
129
+ */
130
+ export interface MoveInspectionWorkOrderFromEnRouteToScheduledProperties {
131
+ }
132
+ /**
133
+ * Back to Scheduled
134
+ *
135
+ * Stand a dispatched inspection visit back down to Scheduled, with a reason.
136
+ *
137
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
138
+ * @module FieldServiceModule
139
+ * @entity WorkOrder
140
+ * @entityType INSPECTION (inspection)
141
+ * @targetStages WorkOrderStageScheduled
142
+ * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveInspectionWorkOrderFromEnRouteToScheduled
143
+ * @benchmark This action is tracked for performance benchmarks
144
+ */
145
+ export declare class MoveInspectionWorkOrderFromEnRouteToScheduledDto extends OdinRecordUpdateDto<Record<string, any>> {
146
+ /** Used by SDK generators to identify action type */
147
+ static readonly ACTION_TYPE = "UPDATE";
148
+ static readonly ACTION_KEY = "MoveInspectionWorkOrderFromEnRouteToScheduled";
149
+ static readonly MODULE_NAME = "FieldServiceModule";
150
+ static readonly ENTITIES: string[];
151
+ static readonly ENTITY_TYPE = "INSPECTION";
152
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveInspectionWorkOrderFromEnRouteToScheduled";
153
+ static readonly SCHEMA_ACTION_ID = "b2c2b272-b6d4-47d5-9dd8-bf57eb8252ad";
154
+ static readonly TARGET_STAGES: readonly ["WorkOrderStageScheduled"];
155
+ static readonly IS_STAGE_TRANSITION = true;
156
+ static readonly IS_MULTI_STEP_FLOW = false;
157
+ static readonly HAS_STEP_LINKS = false;
158
+ /**
159
+ * Step definitions with linking metadata
160
+ * Used by SDK and backend for auto-linking after step execution
161
+ */
162
+ static readonly stepDefinitions: MoveInspectionWorkOrderFromEnRouteToScheduledStepDefinition[];
163
+ /** Type-safe step key accessor */
164
+ static readonly Steps: {
165
+ readonly reason: "reason";
166
+ };
167
+ readonly actionName: string;
168
+ readonly schemaActionId: string;
169
+ readonly entity: string;
170
+ readonly stageKey: string;
171
+ constructor(record: OdinRecord<any> | {
172
+ id: string;
173
+ entity: string;
174
+ type?: string;
175
+ }, options?: {
176
+ journeyId?: string;
177
+ });
178
+ /** Step classes that can be used with this action */
179
+ static readonly stepClasses: readonly ["CreateEnRouteToScheduledChangeReasonDto"];
180
+ steps: StepClassMap[(typeof MoveInspectionWorkOrderFromEnRouteToScheduledDto.stepClasses)[number]][];
181
+ }
182
+ export {};