@d19n/youfibre-odin-sdk 2.0.312 → 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 +14 -1
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/QaReportAccessor.d.ts +112 -0
- package/dist/accessors-v2/QaReportAccessor.js +191 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +4 -2
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.d.ts +88 -0
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.js +59 -0
- package/dist/actions-v2/CreateQaReportDto.d.ts +121 -0
- package/dist/actions-v2/CreateQaReportDto.js +57 -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/db-accessors-v2/QaReportDbAccessor.d.ts +180 -0
- package/dist/db-accessors-v2/QaReportDbAccessor.js +265 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +4 -2
- package/dist/entities-v2/ChangeReason.d.ts +53 -1
- package/dist/entities-v2/ChangeReason.js +19 -1
- package/dist/entities-v2/WorkOrder.d.ts +2 -0
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/records-v2/CaseRecord.d.ts +20 -0
- package/dist/records-v2/CaseRecord.js +33 -0
- package/dist/records-v2/ChangeReasonRecord.d.ts +29 -0
- package/dist/records-v2/ChangeReasonRecord.js +36 -0
- package/dist/records-v2/QaReportRecord.d.ts +207 -0
- package/dist/records-v2/QaReportRecord.js +282 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +517 -0
- package/dist/records-v2/WorkOrderRecord.js +943 -151
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +5 -2
- package/package.json +1 -1
|
@@ -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,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateQaReport Action DTO
|
|
3
|
+
*
|
|
4
|
+
* CreateQaReport
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity QaReport
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey CreateQaReport
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.QaReport.Create.CreateQaReport
|
|
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 CreateQaReport created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.SupportModule.QaReport.Create.CreateQaReport
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateQaReportMessage extends OdinRecordCreatedEvent<CreateQaReportDto, CreateQaReportProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateQaReport action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 2
|
|
26
|
+
* @property Optional fields: 6
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateQaReportProperties {
|
|
29
|
+
/**
|
|
30
|
+
* Case
|
|
31
|
+
*
|
|
32
|
+
* The case this report scores.
|
|
33
|
+
* @type {LOOKUP}
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
CaseId: string;
|
|
37
|
+
/**
|
|
38
|
+
* Report
|
|
39
|
+
*
|
|
40
|
+
* The scorecard as returned by the Databricks quality_assurance_report endpoint, sanitised HTML. Around 13KB in practice.
|
|
41
|
+
* @type {TEXT_LONG}
|
|
42
|
+
* @required
|
|
43
|
+
*/
|
|
44
|
+
ReportHtml: string;
|
|
45
|
+
/**
|
|
46
|
+
* Score %
|
|
47
|
+
*
|
|
48
|
+
* Total score the rubric awarded, 0-100, parsed out of the report. Stored separately so QA can be reported on without parsing HTML.
|
|
49
|
+
* @type {NUMBER}
|
|
50
|
+
*/
|
|
51
|
+
Score?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
* Agent ID
|
|
54
|
+
*
|
|
55
|
+
* Identity user id of the agent scored, from the case RAssignedOrgUserId. Not a LOOKUP: users live in IdentityModule and there is no association to bind to.
|
|
56
|
+
* @type {TEXT}
|
|
57
|
+
*/
|
|
58
|
+
AgentId?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Agent
|
|
61
|
+
*
|
|
62
|
+
* Display name of the agent at the time of scoring. Point-in-time on purpose, so the assessment still reads correctly if the person is renamed or leaves.
|
|
63
|
+
* @type {TEXT}
|
|
64
|
+
*/
|
|
65
|
+
AgentName?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Channel
|
|
68
|
+
*
|
|
69
|
+
* Channel of the scored case. Copied from the case so QA can be filtered by channel without joining back.
|
|
70
|
+
* @type {ENUM}
|
|
71
|
+
*/
|
|
72
|
+
Channel?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Correlation ID
|
|
75
|
+
*
|
|
76
|
+
* Returned by the Databricks endpoint. The only thread tying this record to the matching inference row on the Databricks side — without it you are matching on timestamp and hoping.
|
|
77
|
+
* @type {TEXT}
|
|
78
|
+
*/
|
|
79
|
+
CorrelationId?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* Model
|
|
82
|
+
*
|
|
83
|
+
* Which model produced the report, e.g. system.ai.gpt-5-4. Needed to compare scores once the rubric or the model changes.
|
|
84
|
+
* @type {TEXT}
|
|
85
|
+
*/
|
|
86
|
+
LlmEndpointUsed?: string | null;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* CreateQaReport
|
|
90
|
+
*
|
|
91
|
+
* @actionType CREATE - Creates a new QaReport record
|
|
92
|
+
* @module SupportModule
|
|
93
|
+
* @entity QaReport
|
|
94
|
+
* @entityType DEFAULT (Default)
|
|
95
|
+
* @event k1.t-hEOJjsDb.SupportModule.QaReport.Create.CreateQaReport
|
|
96
|
+
* @permission schema.action.createqareport.trigger
|
|
97
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
98
|
+
*/
|
|
99
|
+
export declare class CreateQaReportDto extends OdinRecordCreateDto<CreateQaReportProperties> {
|
|
100
|
+
/** Used by SDK generators to identify action type */
|
|
101
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
102
|
+
static readonly ACTION_KEY = "CreateQaReport";
|
|
103
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
104
|
+
static readonly ENTITIES: string[];
|
|
105
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
106
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.QaReport.Create.CreateQaReport";
|
|
107
|
+
static readonly PERMISSION = "schema.action.createqareport.trigger";
|
|
108
|
+
/** Step metadata - entity this action targets */
|
|
109
|
+
static readonly STEP_ENTITY = "SupportModule:QaReport";
|
|
110
|
+
static readonly STEP_SCHEMA_ID = "68057e56-74e5-4b9e-b4c2-6c3f46b000ad";
|
|
111
|
+
static readonly STEP_SCHEMA_ACTION_ID = "9a136420-f6ca-408a-8a25-9942955a761c";
|
|
112
|
+
static readonly STEP_SCHEMA_TYPE_ID = "d056f400-5301-4f7a-8655-4746e507ccd4";
|
|
113
|
+
static readonly STEP_TYPE = "DEFAULT";
|
|
114
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
115
|
+
readonly actionName: string;
|
|
116
|
+
readonly schemaActionId: string;
|
|
117
|
+
readonly entity: string;
|
|
118
|
+
constructor(properties: CreateQaReportProperties, options?: {
|
|
119
|
+
journeyId?: string;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateQaReport Action DTO
|
|
4
|
+
*
|
|
5
|
+
* CreateQaReport
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity QaReport
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey CreateQaReport
|
|
11
|
+
* @event k1.t-hEOJjsDb.SupportModule.QaReport.Create.CreateQaReport
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateQaReportDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreateQaReport
|
|
20
|
+
*
|
|
21
|
+
* @actionType CREATE - Creates a new QaReport record
|
|
22
|
+
* @module SupportModule
|
|
23
|
+
* @entity QaReport
|
|
24
|
+
* @entityType DEFAULT (Default)
|
|
25
|
+
* @event k1.t-hEOJjsDb.SupportModule.QaReport.Create.CreateQaReport
|
|
26
|
+
* @permission schema.action.createqareport.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class CreateQaReportDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'SupportModule:QaReport',
|
|
33
|
+
type: 'DEFAULT',
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'CreateQaReport';
|
|
38
|
+
this.schemaActionId = '9a136420-f6ca-408a-8a25-9942955a761c';
|
|
39
|
+
this.entity = 'SupportModule:QaReport';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CreateQaReportDto = CreateQaReportDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
CreateQaReportDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
CreateQaReportDto.ACTION_KEY = 'CreateQaReport';
|
|
46
|
+
CreateQaReportDto.MODULE_NAME = 'SupportModule';
|
|
47
|
+
CreateQaReportDto.ENTITIES = ['QaReport'];
|
|
48
|
+
CreateQaReportDto.ENTITY_TYPE = 'DEFAULT';
|
|
49
|
+
CreateQaReportDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.QaReport.Create.CreateQaReport';
|
|
50
|
+
CreateQaReportDto.PERMISSION = 'schema.action.createqareport.trigger';
|
|
51
|
+
/** Step metadata - entity this action targets */
|
|
52
|
+
CreateQaReportDto.STEP_ENTITY = 'SupportModule:QaReport';
|
|
53
|
+
CreateQaReportDto.STEP_SCHEMA_ID = '68057e56-74e5-4b9e-b4c2-6c3f46b000ad';
|
|
54
|
+
CreateQaReportDto.STEP_SCHEMA_ACTION_ID = '9a136420-f6ca-408a-8a25-9942955a761c';
|
|
55
|
+
CreateQaReportDto.STEP_SCHEMA_TYPE_ID = 'd056f400-5301-4f7a-8655-4746e507ccd4';
|
|
56
|
+
CreateQaReportDto.STEP_TYPE = 'DEFAULT';
|
|
57
|
+
CreateQaReportDto.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'];
|