@d19n/youfibre-odin-sdk 2.0.90 → 2.0.93

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.
@@ -1,195 +0,0 @@
1
- /**
2
- * CancelInstallWorkOrderFlowSupplier Action DTO
3
- *
4
- * supplier flow for cancelling installs
5
- *
6
- * @module FieldServiceModule
7
- * @entity WorkOrder
8
- * @entityType INSTALL
9
- * @actionKey CancelInstallWorkOrderFlowSupplier
10
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowSupplier
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 CreateInstallCancelledChangeReasonSupplier action
17
- *
18
- * @property Required fields: 1
19
- * @property Optional fields: 2
20
- */
21
- export interface CreateInstallCancelledChangeReasonSupplierProperties {
22
- /**
23
- * CancelReason
24
- *
25
- * The reason of the cancellation (Field Operations - ChangeReason)
26
- * @type {ENUM}
27
- * @required
28
- */
29
- CancelReason: string;
30
- /**
31
- * Owner
32
- *
33
- * Owner (Supplier or Tenant) (Field Operations - ChangeReason)
34
- * @type {ENUM}
35
- * @default SUPPLIER
36
- * @hidden This field is not visible in the UI
37
- */
38
- Owner?: string | null;
39
- /**
40
- * Description
41
- *
42
- * cancellation description (Field Operations - ChangeReason)
43
- * @type {TEXT_LONG}
44
- */
45
- Description?: string | null;
46
- }
47
- /**
48
- * CreateInstallCancelledChangeReasonSupplier
49
- *
50
- * used when a supplier needs to cancel an install work order
51
- *
52
- * @actionType CREATE - Creates a new ChangeReason record
53
- * @module FieldServiceModule
54
- * @entity ChangeReason
55
- * @entityType SA_CANCEL (Cancel)
56
- * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonSupplier
57
- * @permission schema.action.createinstallcancelledchangereasonsupplier.trigger
58
- * @category LIFECYCLE
59
- * @riskLevel HIGH
60
- * @decisionTier STRATEGIC
61
- * @benchmark This action is tracked for performance benchmarks
62
- * @benchmarkTags cancellation, changereason, entity:changereason, entity-type:sa_cancel, field-operations, record-creation
63
- */
64
- export declare class CreateInstallCancelledChangeReasonSupplierDto extends OdinRecordCreateDto<CreateInstallCancelledChangeReasonSupplierProperties> {
65
- /** Used by SDK generators to identify action type */
66
- static readonly ACTION_TYPE = "CREATE";
67
- static readonly ACTION_KEY = "CreateInstallCancelledChangeReasonSupplier";
68
- static readonly MODULE_NAME = "FieldServiceModule";
69
- static readonly ENTITIES: string[];
70
- static readonly ENTITY_TYPE = "SA_CANCEL";
71
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonSupplier";
72
- static readonly PERMISSION = "schema.action.createinstallcancelledchangereasonsupplier.trigger";
73
- /** Step metadata - entity this action targets */
74
- static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
75
- static readonly STEP_SCHEMA_ID = "650e647a-acdc-4baf-bd5a-edee5bf9759d";
76
- static readonly STEP_SCHEMA_ACTION_ID = "4f1d3ecd-ee9f-4ddb-b608-df096177fd73";
77
- static readonly STEP_SCHEMA_TYPE_ID = "46ed3613-c0d0-4124-8a38-1a2fa4a2bbb5";
78
- static readonly STEP_TYPE = "SA_CANCEL";
79
- static readonly AUTO_LINK_PARENT = true;
80
- readonly actionName: string;
81
- readonly schemaActionId: string;
82
- readonly entity: string;
83
- constructor(properties: CreateInstallCancelledChangeReasonSupplierProperties, options?: {
84
- journeyId?: string;
85
- });
86
- }
87
- declare type StepClassMap = {
88
- CreateInstallCancelledChangeReasonSupplierDto: CreateInstallCancelledChangeReasonSupplierDto;
89
- };
90
- /**
91
- * Link definition for connecting steps in CancelInstallWorkOrderFlowSupplier
92
- */
93
- export interface CancelInstallWorkOrderFlowSupplierStepLink {
94
- /**
95
- * The stepKey of the target step to link TO
96
- * Must reference another step's stepKey in the same flow
97
- */
98
- stepKey: string;
99
- /**
100
- * The schema association ID (UUID) defining the relationship
101
- * Use the association.id from the schema association definition
102
- * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
103
- */
104
- schemaAssociationId: string;
105
- }
106
- /**
107
- * Step definition with linking metadata for CancelInstallWorkOrderFlowSupplier
108
- */
109
- export interface CancelInstallWorkOrderFlowSupplierStepDefinition {
110
- /** Unique identifier for this step */
111
- stepKey: string;
112
- /** The DTO class name for this step */
113
- dtoClass: string;
114
- /** The entity this step creates (Module:Entity format) */
115
- entity: string;
116
- /** Links to create after this step executes */
117
- linksTo: CancelInstallWorkOrderFlowSupplierStepLink[] | null;
118
- }
119
- /**
120
- * Type-safe step keys for CancelInstallWorkOrderFlowSupplier
121
- */
122
- export declare const CancelInstallWorkOrderFlowSupplierSteps: {
123
- readonly step_1: "step_1";
124
- };
125
- export declare type CancelInstallWorkOrderFlowSupplierStepKey = typeof CancelInstallWorkOrderFlowSupplierSteps[keyof typeof CancelInstallWorkOrderFlowSupplierSteps];
126
- /**
127
- * RabbitMQ message payload for CancelInstallWorkOrderFlowSupplier step flow events
128
- *
129
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowSupplier
130
- */
131
- export interface CancelInstallWorkOrderFlowSupplierMessage extends OdinRecordUpdatedEvent<CancelInstallWorkOrderFlowSupplierDto, {}> {
132
- }
133
- /**
134
- * Properties for CancelInstallWorkOrderFlowSupplier action
135
- *
136
- */
137
- export interface CancelInstallWorkOrderFlowSupplierProperties {
138
- }
139
- /**
140
- * CancelInstallWorkOrderFlowSupplier
141
- *
142
- * supplier flow for cancelling installs
143
- *
144
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
145
- * @module FieldServiceModule
146
- * @entity WorkOrder
147
- * @entityType INSTALL (install)
148
- * @targetStages WorkOrderStageCancelled
149
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowSupplier
150
- * @permission schema.action.cancelinstallworkorderflowsupplier.trigger
151
- * @category LIFECYCLE
152
- * @riskLevel HIGH
153
- * @decisionTier STRATEGIC
154
- * @benchmark This action is tracked for performance benchmarks
155
- * @benchmarkTags cancellation, entity-type:install, entity:workorder, field-operations, reason:cancelled, workorder
156
- */
157
- export declare class CancelInstallWorkOrderFlowSupplierDto extends OdinRecordUpdateDto<Record<string, any>> {
158
- /** Used by SDK generators to identify action type */
159
- static readonly ACTION_TYPE = "UPDATE";
160
- static readonly ACTION_KEY = "CancelInstallWorkOrderFlowSupplier";
161
- static readonly MODULE_NAME = "FieldServiceModule";
162
- static readonly ENTITIES: string[];
163
- static readonly ENTITY_TYPE = "INSTALL";
164
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowSupplier";
165
- static readonly SCHEMA_ACTION_ID = "de11456b-f4b1-4822-85d5-d93f00783932";
166
- static readonly PERMISSION = "schema.action.cancelinstallworkorderflowsupplier.trigger";
167
- static readonly TARGET_STAGES: readonly ["WorkOrderStageCancelled"];
168
- static readonly IS_STAGE_TRANSITION = true;
169
- static readonly IS_MULTI_STEP_FLOW = false;
170
- static readonly HAS_STEP_LINKS = false;
171
- /**
172
- * Step definitions with linking metadata
173
- * Used by SDK and backend for auto-linking after step execution
174
- */
175
- static readonly stepDefinitions: CancelInstallWorkOrderFlowSupplierStepDefinition[];
176
- /** Type-safe step key accessor */
177
- static readonly Steps: {
178
- readonly step_1: "step_1";
179
- };
180
- readonly actionName: string;
181
- readonly schemaActionId: string;
182
- readonly entity: string;
183
- readonly stageKey: string;
184
- constructor(record: OdinRecord<any> | {
185
- id: string;
186
- entity: string;
187
- type?: string;
188
- }, options?: {
189
- journeyId?: string;
190
- });
191
- /** Step classes that can be used with this action */
192
- static readonly stepClasses: readonly ["CreateInstallCancelledChangeReasonSupplierDto"];
193
- steps: StepClassMap[(typeof CancelInstallWorkOrderFlowSupplierDto.stepClasses)[number]][];
194
- }
195
- export {};
@@ -1,132 +0,0 @@
1
- "use strict";
2
- /**
3
- * CancelInstallWorkOrderFlowSupplier Action DTO
4
- *
5
- * supplier flow for cancelling installs
6
- *
7
- * @module FieldServiceModule
8
- * @entity WorkOrder
9
- * @entityType INSTALL
10
- * @actionKey CancelInstallWorkOrderFlowSupplier
11
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowSupplier
12
- *
13
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CancelInstallWorkOrderFlowSupplierDto = exports.CancelInstallWorkOrderFlowSupplierSteps = exports.CreateInstallCancelledChangeReasonSupplierDto = void 0;
17
- const core_1 = require("@d19n/odin-types/dist/core");
18
- /**
19
- * CreateInstallCancelledChangeReasonSupplier
20
- *
21
- * used when a supplier needs to cancel an install work order
22
- *
23
- * @actionType CREATE - Creates a new ChangeReason record
24
- * @module FieldServiceModule
25
- * @entity ChangeReason
26
- * @entityType SA_CANCEL (Cancel)
27
- * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonSupplier
28
- * @permission schema.action.createinstallcancelledchangereasonsupplier.trigger
29
- * @category LIFECYCLE
30
- * @riskLevel HIGH
31
- * @decisionTier STRATEGIC
32
- * @benchmark This action is tracked for performance benchmarks
33
- * @benchmarkTags cancellation, changereason, entity:changereason, entity-type:sa_cancel, field-operations, record-creation
34
- */
35
- class CreateInstallCancelledChangeReasonSupplierDto extends core_1.OdinRecordCreateDto {
36
- constructor(properties, options) {
37
- super({
38
- entity: 'FieldServiceModule:ChangeReason',
39
- type: 'SA_CANCEL',
40
- properties,
41
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
42
- });
43
- this.actionName = 'CreateInstallCancelledChangeReasonSupplier';
44
- this.schemaActionId = '4f1d3ecd-ee9f-4ddb-b608-df096177fd73';
45
- this.entity = 'FieldServiceModule:ChangeReason';
46
- }
47
- }
48
- exports.CreateInstallCancelledChangeReasonSupplierDto = CreateInstallCancelledChangeReasonSupplierDto;
49
- /** Used by SDK generators to identify action type */
50
- CreateInstallCancelledChangeReasonSupplierDto.ACTION_TYPE = 'CREATE';
51
- CreateInstallCancelledChangeReasonSupplierDto.ACTION_KEY = 'CreateInstallCancelledChangeReasonSupplier';
52
- CreateInstallCancelledChangeReasonSupplierDto.MODULE_NAME = 'FieldServiceModule';
53
- CreateInstallCancelledChangeReasonSupplierDto.ENTITIES = ['ChangeReason'];
54
- CreateInstallCancelledChangeReasonSupplierDto.ENTITY_TYPE = 'SA_CANCEL';
55
- CreateInstallCancelledChangeReasonSupplierDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonSupplier';
56
- CreateInstallCancelledChangeReasonSupplierDto.PERMISSION = 'schema.action.createinstallcancelledchangereasonsupplier.trigger';
57
- /** Step metadata - entity this action targets */
58
- CreateInstallCancelledChangeReasonSupplierDto.STEP_ENTITY = 'FieldServiceModule:ChangeReason';
59
- CreateInstallCancelledChangeReasonSupplierDto.STEP_SCHEMA_ID = '650e647a-acdc-4baf-bd5a-edee5bf9759d';
60
- CreateInstallCancelledChangeReasonSupplierDto.STEP_SCHEMA_ACTION_ID = '4f1d3ecd-ee9f-4ddb-b608-df096177fd73';
61
- CreateInstallCancelledChangeReasonSupplierDto.STEP_SCHEMA_TYPE_ID = '46ed3613-c0d0-4124-8a38-1a2fa4a2bbb5';
62
- CreateInstallCancelledChangeReasonSupplierDto.STEP_TYPE = 'SA_CANCEL';
63
- CreateInstallCancelledChangeReasonSupplierDto.AUTO_LINK_PARENT = true;
64
- /**
65
- * Type-safe step keys for CancelInstallWorkOrderFlowSupplier
66
- */
67
- exports.CancelInstallWorkOrderFlowSupplierSteps = {
68
- step_1: 'step_1',
69
- };
70
- /**
71
- * CancelInstallWorkOrderFlowSupplier
72
- *
73
- * supplier flow for cancelling installs
74
- *
75
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
76
- * @module FieldServiceModule
77
- * @entity WorkOrder
78
- * @entityType INSTALL (install)
79
- * @targetStages WorkOrderStageCancelled
80
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowSupplier
81
- * @permission schema.action.cancelinstallworkorderflowsupplier.trigger
82
- * @category LIFECYCLE
83
- * @riskLevel HIGH
84
- * @decisionTier STRATEGIC
85
- * @benchmark This action is tracked for performance benchmarks
86
- * @benchmarkTags cancellation, entity-type:install, entity:workorder, field-operations, reason:cancelled, workorder
87
- */
88
- class CancelInstallWorkOrderFlowSupplierDto extends core_1.OdinRecordUpdateDto {
89
- constructor(record, options) {
90
- super({
91
- id: record.id,
92
- entity: record.entity,
93
- type: record.type,
94
- properties: {},
95
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
96
- });
97
- this.actionName = 'CancelInstallWorkOrderFlowSupplier';
98
- this.schemaActionId = 'de11456b-f4b1-4822-85d5-d93f00783932';
99
- this.entity = 'FieldServiceModule:WorkOrder';
100
- this.stageKey = 'WorkOrderStageCancelled';
101
- }
102
- }
103
- exports.CancelInstallWorkOrderFlowSupplierDto = CancelInstallWorkOrderFlowSupplierDto;
104
- /** Used by SDK generators to identify action type */
105
- CancelInstallWorkOrderFlowSupplierDto.ACTION_TYPE = 'UPDATE';
106
- CancelInstallWorkOrderFlowSupplierDto.ACTION_KEY = 'CancelInstallWorkOrderFlowSupplier';
107
- CancelInstallWorkOrderFlowSupplierDto.MODULE_NAME = 'FieldServiceModule';
108
- CancelInstallWorkOrderFlowSupplierDto.ENTITIES = ['WorkOrder'];
109
- CancelInstallWorkOrderFlowSupplierDto.ENTITY_TYPE = 'INSTALL';
110
- CancelInstallWorkOrderFlowSupplierDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowSupplier';
111
- CancelInstallWorkOrderFlowSupplierDto.SCHEMA_ACTION_ID = 'de11456b-f4b1-4822-85d5-d93f00783932';
112
- CancelInstallWorkOrderFlowSupplierDto.PERMISSION = 'schema.action.cancelinstallworkorderflowsupplier.trigger';
113
- CancelInstallWorkOrderFlowSupplierDto.TARGET_STAGES = ['WorkOrderStageCancelled'];
114
- CancelInstallWorkOrderFlowSupplierDto.IS_STAGE_TRANSITION = true;
115
- CancelInstallWorkOrderFlowSupplierDto.IS_MULTI_STEP_FLOW = false;
116
- CancelInstallWorkOrderFlowSupplierDto.HAS_STEP_LINKS = false;
117
- /**
118
- * Step definitions with linking metadata
119
- * Used by SDK and backend for auto-linking after step execution
120
- */
121
- CancelInstallWorkOrderFlowSupplierDto.stepDefinitions = [
122
- {
123
- stepKey: 'step_1',
124
- dtoClass: 'CreateInstallCancelledChangeReasonSupplierDto',
125
- entity: 'FieldServiceModule:ChangeReason',
126
- linksTo: null
127
- }
128
- ];
129
- /** Type-safe step key accessor */
130
- CancelInstallWorkOrderFlowSupplierDto.Steps = exports.CancelInstallWorkOrderFlowSupplierSteps;
131
- /** Step classes that can be used with this action */
132
- CancelInstallWorkOrderFlowSupplierDto.stepClasses = ['CreateInstallCancelledChangeReasonSupplierDto'];
@@ -1,195 +0,0 @@
1
- /**
2
- * CancelInstallWorkOrderFlowTenant Action DTO
3
- *
4
- * tenant moving an install work order to cancelled
5
- *
6
- * @module FieldServiceModule
7
- * @entity WorkOrder
8
- * @entityType INSTALL
9
- * @actionKey CancelInstallWorkOrderFlowTenant
10
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowTenant
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 CreateInstallCancelledChangeReasonTenant action
17
- *
18
- * @property Required fields: 1
19
- * @property Optional fields: 2
20
- */
21
- export interface CreateInstallCancelledChangeReasonTenantProperties {
22
- /**
23
- * CancelReason
24
- *
25
- * The reason of the cancellation (Field Operations - ChangeReason)
26
- * @type {ENUM}
27
- * @required
28
- */
29
- CancelReason: string;
30
- /**
31
- * Owner
32
- *
33
- * Owner (Supplier or Tenant) (Field Operations - ChangeReason)
34
- * @type {ENUM}
35
- * @default TENANT
36
- * @hidden This field is not visible in the UI
37
- */
38
- Owner?: string | null;
39
- /**
40
- * Description
41
- *
42
- * cancellation description (Field Operations - ChangeReason)
43
- * @type {TEXT_LONG}
44
- */
45
- Description?: string | null;
46
- }
47
- /**
48
- * CreateInstallCancelledChangeReasonTenant
49
- *
50
- * create install cancelled change reason as a tenant
51
- *
52
- * @actionType CREATE - Creates a new ChangeReason record
53
- * @module FieldServiceModule
54
- * @entity ChangeReason
55
- * @entityType SA_CANCEL (Cancel)
56
- * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonTenant
57
- * @permission schema.action.createinstallcancelledchangereasontenant.trigger
58
- * @category LIFECYCLE
59
- * @riskLevel HIGH
60
- * @decisionTier STRATEGIC
61
- * @benchmark This action is tracked for performance benchmarks
62
- * @benchmarkTags cancellation, changereason, entity:changereason, entity-type:sa_cancel, field-operations, record-creation
63
- */
64
- export declare class CreateInstallCancelledChangeReasonTenantDto extends OdinRecordCreateDto<CreateInstallCancelledChangeReasonTenantProperties> {
65
- /** Used by SDK generators to identify action type */
66
- static readonly ACTION_TYPE = "CREATE";
67
- static readonly ACTION_KEY = "CreateInstallCancelledChangeReasonTenant";
68
- static readonly MODULE_NAME = "FieldServiceModule";
69
- static readonly ENTITIES: string[];
70
- static readonly ENTITY_TYPE = "SA_CANCEL";
71
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonTenant";
72
- static readonly PERMISSION = "schema.action.createinstallcancelledchangereasontenant.trigger";
73
- /** Step metadata - entity this action targets */
74
- static readonly STEP_ENTITY = "FieldServiceModule:ChangeReason";
75
- static readonly STEP_SCHEMA_ID = "650e647a-acdc-4baf-bd5a-edee5bf9759d";
76
- static readonly STEP_SCHEMA_ACTION_ID = "b34b59be-a2ae-4f8f-8c4a-d273c0f33531";
77
- static readonly STEP_SCHEMA_TYPE_ID = "46ed3613-c0d0-4124-8a38-1a2fa4a2bbb5";
78
- static readonly STEP_TYPE = "SA_CANCEL";
79
- static readonly AUTO_LINK_PARENT = true;
80
- readonly actionName: string;
81
- readonly schemaActionId: string;
82
- readonly entity: string;
83
- constructor(properties: CreateInstallCancelledChangeReasonTenantProperties, options?: {
84
- journeyId?: string;
85
- });
86
- }
87
- declare type StepClassMap = {
88
- CreateInstallCancelledChangeReasonTenantDto: CreateInstallCancelledChangeReasonTenantDto;
89
- };
90
- /**
91
- * Link definition for connecting steps in CancelInstallWorkOrderFlowTenant
92
- */
93
- export interface CancelInstallWorkOrderFlowTenantStepLink {
94
- /**
95
- * The stepKey of the target step to link TO
96
- * Must reference another step's stepKey in the same flow
97
- */
98
- stepKey: string;
99
- /**
100
- * The schema association ID (UUID) defining the relationship
101
- * Use the association.id from the schema association definition
102
- * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
103
- */
104
- schemaAssociationId: string;
105
- }
106
- /**
107
- * Step definition with linking metadata for CancelInstallWorkOrderFlowTenant
108
- */
109
- export interface CancelInstallWorkOrderFlowTenantStepDefinition {
110
- /** Unique identifier for this step */
111
- stepKey: string;
112
- /** The DTO class name for this step */
113
- dtoClass: string;
114
- /** The entity this step creates (Module:Entity format) */
115
- entity: string;
116
- /** Links to create after this step executes */
117
- linksTo: CancelInstallWorkOrderFlowTenantStepLink[] | null;
118
- }
119
- /**
120
- * Type-safe step keys for CancelInstallWorkOrderFlowTenant
121
- */
122
- export declare const CancelInstallWorkOrderFlowTenantSteps: {
123
- readonly step_1: "step_1";
124
- };
125
- export declare type CancelInstallWorkOrderFlowTenantStepKey = typeof CancelInstallWorkOrderFlowTenantSteps[keyof typeof CancelInstallWorkOrderFlowTenantSteps];
126
- /**
127
- * RabbitMQ message payload for CancelInstallWorkOrderFlowTenant step flow events
128
- *
129
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowTenant
130
- */
131
- export interface CancelInstallWorkOrderFlowTenantMessage extends OdinRecordUpdatedEvent<CancelInstallWorkOrderFlowTenantDto, {}> {
132
- }
133
- /**
134
- * Properties for CancelInstallWorkOrderFlowTenant action
135
- *
136
- */
137
- export interface CancelInstallWorkOrderFlowTenantProperties {
138
- }
139
- /**
140
- * CancelInstallWorkOrderFlowTenant
141
- *
142
- * tenant moving an install work order to cancelled
143
- *
144
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
145
- * @module FieldServiceModule
146
- * @entity WorkOrder
147
- * @entityType INSTALL (install)
148
- * @targetStages WorkOrderStageCancelled
149
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowTenant
150
- * @permission schema.action.cancelinstallworkorderflowtenant.trigger
151
- * @category LIFECYCLE
152
- * @riskLevel HIGH
153
- * @decisionTier STRATEGIC
154
- * @benchmark This action is tracked for performance benchmarks
155
- * @benchmarkTags cancellation, entity-type:install, entity:workorder, field-operations, reason:cancelled, workorder
156
- */
157
- export declare class CancelInstallWorkOrderFlowTenantDto extends OdinRecordUpdateDto<Record<string, any>> {
158
- /** Used by SDK generators to identify action type */
159
- static readonly ACTION_TYPE = "UPDATE";
160
- static readonly ACTION_KEY = "CancelInstallWorkOrderFlowTenant";
161
- static readonly MODULE_NAME = "FieldServiceModule";
162
- static readonly ENTITIES: string[];
163
- static readonly ENTITY_TYPE = "INSTALL";
164
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowTenant";
165
- static readonly SCHEMA_ACTION_ID = "5901f51a-db84-4661-a352-c33ad2fe0d09";
166
- static readonly PERMISSION = "schema.action.cancelinstallworkorderflowtenant.trigger";
167
- static readonly TARGET_STAGES: readonly ["WorkOrderStageCancelled"];
168
- static readonly IS_STAGE_TRANSITION = true;
169
- static readonly IS_MULTI_STEP_FLOW = false;
170
- static readonly HAS_STEP_LINKS = false;
171
- /**
172
- * Step definitions with linking metadata
173
- * Used by SDK and backend for auto-linking after step execution
174
- */
175
- static readonly stepDefinitions: CancelInstallWorkOrderFlowTenantStepDefinition[];
176
- /** Type-safe step key accessor */
177
- static readonly Steps: {
178
- readonly step_1: "step_1";
179
- };
180
- readonly actionName: string;
181
- readonly schemaActionId: string;
182
- readonly entity: string;
183
- readonly stageKey: string;
184
- constructor(record: OdinRecord<any> | {
185
- id: string;
186
- entity: string;
187
- type?: string;
188
- }, options?: {
189
- journeyId?: string;
190
- });
191
- /** Step classes that can be used with this action */
192
- static readonly stepClasses: readonly ["CreateInstallCancelledChangeReasonTenantDto"];
193
- steps: StepClassMap[(typeof CancelInstallWorkOrderFlowTenantDto.stepClasses)[number]][];
194
- }
195
- export {};
@@ -1,132 +0,0 @@
1
- "use strict";
2
- /**
3
- * CancelInstallWorkOrderFlowTenant Action DTO
4
- *
5
- * tenant moving an install work order to cancelled
6
- *
7
- * @module FieldServiceModule
8
- * @entity WorkOrder
9
- * @entityType INSTALL
10
- * @actionKey CancelInstallWorkOrderFlowTenant
11
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowTenant
12
- *
13
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CancelInstallWorkOrderFlowTenantDto = exports.CancelInstallWorkOrderFlowTenantSteps = exports.CreateInstallCancelledChangeReasonTenantDto = void 0;
17
- const core_1 = require("@d19n/odin-types/dist/core");
18
- /**
19
- * CreateInstallCancelledChangeReasonTenant
20
- *
21
- * create install cancelled change reason as a tenant
22
- *
23
- * @actionType CREATE - Creates a new ChangeReason record
24
- * @module FieldServiceModule
25
- * @entity ChangeReason
26
- * @entityType SA_CANCEL (Cancel)
27
- * @event k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonTenant
28
- * @permission schema.action.createinstallcancelledchangereasontenant.trigger
29
- * @category LIFECYCLE
30
- * @riskLevel HIGH
31
- * @decisionTier STRATEGIC
32
- * @benchmark This action is tracked for performance benchmarks
33
- * @benchmarkTags cancellation, changereason, entity:changereason, entity-type:sa_cancel, field-operations, record-creation
34
- */
35
- class CreateInstallCancelledChangeReasonTenantDto extends core_1.OdinRecordCreateDto {
36
- constructor(properties, options) {
37
- super({
38
- entity: 'FieldServiceModule:ChangeReason',
39
- type: 'SA_CANCEL',
40
- properties,
41
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
42
- });
43
- this.actionName = 'CreateInstallCancelledChangeReasonTenant';
44
- this.schemaActionId = 'b34b59be-a2ae-4f8f-8c4a-d273c0f33531';
45
- this.entity = 'FieldServiceModule:ChangeReason';
46
- }
47
- }
48
- exports.CreateInstallCancelledChangeReasonTenantDto = CreateInstallCancelledChangeReasonTenantDto;
49
- /** Used by SDK generators to identify action type */
50
- CreateInstallCancelledChangeReasonTenantDto.ACTION_TYPE = 'CREATE';
51
- CreateInstallCancelledChangeReasonTenantDto.ACTION_KEY = 'CreateInstallCancelledChangeReasonTenant';
52
- CreateInstallCancelledChangeReasonTenantDto.MODULE_NAME = 'FieldServiceModule';
53
- CreateInstallCancelledChangeReasonTenantDto.ENTITIES = ['ChangeReason'];
54
- CreateInstallCancelledChangeReasonTenantDto.ENTITY_TYPE = 'SA_CANCEL';
55
- CreateInstallCancelledChangeReasonTenantDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.ChangeReason.Create.CreateInstallCancelledChangeReasonTenant';
56
- CreateInstallCancelledChangeReasonTenantDto.PERMISSION = 'schema.action.createinstallcancelledchangereasontenant.trigger';
57
- /** Step metadata - entity this action targets */
58
- CreateInstallCancelledChangeReasonTenantDto.STEP_ENTITY = 'FieldServiceModule:ChangeReason';
59
- CreateInstallCancelledChangeReasonTenantDto.STEP_SCHEMA_ID = '650e647a-acdc-4baf-bd5a-edee5bf9759d';
60
- CreateInstallCancelledChangeReasonTenantDto.STEP_SCHEMA_ACTION_ID = 'b34b59be-a2ae-4f8f-8c4a-d273c0f33531';
61
- CreateInstallCancelledChangeReasonTenantDto.STEP_SCHEMA_TYPE_ID = '46ed3613-c0d0-4124-8a38-1a2fa4a2bbb5';
62
- CreateInstallCancelledChangeReasonTenantDto.STEP_TYPE = 'SA_CANCEL';
63
- CreateInstallCancelledChangeReasonTenantDto.AUTO_LINK_PARENT = true;
64
- /**
65
- * Type-safe step keys for CancelInstallWorkOrderFlowTenant
66
- */
67
- exports.CancelInstallWorkOrderFlowTenantSteps = {
68
- step_1: 'step_1',
69
- };
70
- /**
71
- * CancelInstallWorkOrderFlowTenant
72
- *
73
- * tenant moving an install work order to cancelled
74
- *
75
- * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
76
- * @module FieldServiceModule
77
- * @entity WorkOrder
78
- * @entityType INSTALL (install)
79
- * @targetStages WorkOrderStageCancelled
80
- * @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowTenant
81
- * @permission schema.action.cancelinstallworkorderflowtenant.trigger
82
- * @category LIFECYCLE
83
- * @riskLevel HIGH
84
- * @decisionTier STRATEGIC
85
- * @benchmark This action is tracked for performance benchmarks
86
- * @benchmarkTags cancellation, entity-type:install, entity:workorder, field-operations, reason:cancelled, workorder
87
- */
88
- class CancelInstallWorkOrderFlowTenantDto extends core_1.OdinRecordUpdateDto {
89
- constructor(record, options) {
90
- super({
91
- id: record.id,
92
- entity: record.entity,
93
- type: record.type,
94
- properties: {},
95
- journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
96
- });
97
- this.actionName = 'CancelInstallWorkOrderFlowTenant';
98
- this.schemaActionId = '5901f51a-db84-4661-a352-c33ad2fe0d09';
99
- this.entity = 'FieldServiceModule:WorkOrder';
100
- this.stageKey = 'WorkOrderStageCancelled';
101
- }
102
- }
103
- exports.CancelInstallWorkOrderFlowTenantDto = CancelInstallWorkOrderFlowTenantDto;
104
- /** Used by SDK generators to identify action type */
105
- CancelInstallWorkOrderFlowTenantDto.ACTION_TYPE = 'UPDATE';
106
- CancelInstallWorkOrderFlowTenantDto.ACTION_KEY = 'CancelInstallWorkOrderFlowTenant';
107
- CancelInstallWorkOrderFlowTenantDto.MODULE_NAME = 'FieldServiceModule';
108
- CancelInstallWorkOrderFlowTenantDto.ENTITIES = ['WorkOrder'];
109
- CancelInstallWorkOrderFlowTenantDto.ENTITY_TYPE = 'INSTALL';
110
- CancelInstallWorkOrderFlowTenantDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.CancelInstallWorkOrderFlowTenant';
111
- CancelInstallWorkOrderFlowTenantDto.SCHEMA_ACTION_ID = '5901f51a-db84-4661-a352-c33ad2fe0d09';
112
- CancelInstallWorkOrderFlowTenantDto.PERMISSION = 'schema.action.cancelinstallworkorderflowtenant.trigger';
113
- CancelInstallWorkOrderFlowTenantDto.TARGET_STAGES = ['WorkOrderStageCancelled'];
114
- CancelInstallWorkOrderFlowTenantDto.IS_STAGE_TRANSITION = true;
115
- CancelInstallWorkOrderFlowTenantDto.IS_MULTI_STEP_FLOW = false;
116
- CancelInstallWorkOrderFlowTenantDto.HAS_STEP_LINKS = false;
117
- /**
118
- * Step definitions with linking metadata
119
- * Used by SDK and backend for auto-linking after step execution
120
- */
121
- CancelInstallWorkOrderFlowTenantDto.stepDefinitions = [
122
- {
123
- stepKey: 'step_1',
124
- dtoClass: 'CreateInstallCancelledChangeReasonTenantDto',
125
- entity: 'FieldServiceModule:ChangeReason',
126
- linksTo: null
127
- }
128
- ];
129
- /** Type-safe step key accessor */
130
- CancelInstallWorkOrderFlowTenantDto.Steps = exports.CancelInstallWorkOrderFlowTenantSteps;
131
- /** Step classes that can be used with this action */
132
- CancelInstallWorkOrderFlowTenantDto.stepClasses = ['CreateInstallCancelledChangeReasonTenantDto'];