@d19n/youfibre-odin-sdk 2.0.313 → 2.0.314
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.d.ts +88 -0
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.js +59 -0
- package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/entities-v2/ChangeReason.d.ts +53 -1
- package/dist/entities-v2/ChangeReason.js +19 -1
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +2 -2
- package/dist/entities-v2/WorkOrder.d.ts +2 -0
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/records-v2/ChangeReasonRecord.d.ts +29 -0
- package/dist/records-v2/ChangeReasonRecord.js +36 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +517 -0
- package/dist/records-v2/WorkOrderRecord.js +943 -151
- package/package.json +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveServiceWorkOrderFromEnRouteToScheduled Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Stand a dispatched service visit back down to Scheduled, with a reason.
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity WorkOrder
|
|
9
|
+
* @entityType SERVICE
|
|
10
|
+
* @actionKey MoveServiceWorkOrderFromEnRouteToScheduled
|
|
11
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromEnRouteToScheduled
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoveServiceWorkOrderFromEnRouteToScheduledDto = exports.MoveServiceWorkOrderFromEnRouteToScheduledSteps = 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 MoveServiceWorkOrderFromEnRouteToScheduled
|
|
62
|
+
*/
|
|
63
|
+
exports.MoveServiceWorkOrderFromEnRouteToScheduledSteps = {
|
|
64
|
+
reason: 'reason',
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Back to Scheduled
|
|
68
|
+
*
|
|
69
|
+
* Stand a dispatched service visit 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 SERVICE (service)
|
|
75
|
+
* @targetStages WorkOrderStageScheduled
|
|
76
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromEnRouteToScheduled
|
|
77
|
+
* @permission schema.action.moveserviceworkorderfromenroutetoscheduled.trigger
|
|
78
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
79
|
+
*/
|
|
80
|
+
class MoveServiceWorkOrderFromEnRouteToScheduledDto 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 = 'MoveServiceWorkOrderFromEnRouteToScheduled';
|
|
90
|
+
this.schemaActionId = '5f10f99c-2c7b-40e2-bbe4-f7320151b15b';
|
|
91
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
92
|
+
this.stageKey = 'WorkOrderStageScheduled';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.MoveServiceWorkOrderFromEnRouteToScheduledDto = MoveServiceWorkOrderFromEnRouteToScheduledDto;
|
|
96
|
+
/** Used by SDK generators to identify action type */
|
|
97
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.ACTION_TYPE = 'UPDATE';
|
|
98
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.ACTION_KEY = 'MoveServiceWorkOrderFromEnRouteToScheduled';
|
|
99
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.MODULE_NAME = 'FieldServiceModule';
|
|
100
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.ENTITIES = ['WorkOrder'];
|
|
101
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.ENTITY_TYPE = 'SERVICE';
|
|
102
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromEnRouteToScheduled';
|
|
103
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.SCHEMA_ACTION_ID = '5f10f99c-2c7b-40e2-bbe4-f7320151b15b';
|
|
104
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.PERMISSION = 'schema.action.moveserviceworkorderfromenroutetoscheduled.trigger';
|
|
105
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.TARGET_STAGES = ['WorkOrderStageScheduled'];
|
|
106
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.IS_STAGE_TRANSITION = true;
|
|
107
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.IS_MULTI_STEP_FLOW = false;
|
|
108
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.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
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.stepDefinitions = [
|
|
114
|
+
{
|
|
115
|
+
stepKey: 'reason',
|
|
116
|
+
dtoClass: 'CreateEnRouteToScheduledChangeReasonDto',
|
|
117
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
118
|
+
linksTo: null
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
/** Type-safe step key accessor */
|
|
122
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.Steps = exports.MoveServiceWorkOrderFromEnRouteToScheduledSteps;
|
|
123
|
+
/** Step classes that can be used with this action */
|
|
124
|
+
MoveServiceWorkOrderFromEnRouteToScheduledDto.stepClasses = ['CreateEnRouteToScheduledChangeReasonDto'];
|
|
@@ -328,6 +328,21 @@ export declare enum ChangeReasonRescheduleReason {
|
|
|
328
328
|
UNAWARE_OF_APPOINTMENT = "UNAWARE_OF_APPOINTMENT",
|
|
329
329
|
WEBSITE_RESCHEDULE = "INSTALL_REMINDER_RESCHEDULED"
|
|
330
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* Valid values for ChangeReason.StandDownReason
|
|
333
|
+
*
|
|
334
|
+
* why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
335
|
+
*
|
|
336
|
+
* @remarks Available options:
|
|
337
|
+
* - `CUSTOMER_UNAVAILABLE_RETRYING_LATER` - Customer Unavailable - Retrying Later
|
|
338
|
+
* - `EN_ROUTER_IN_ERROR` - En-Router in error
|
|
339
|
+
* - `MOVING_TO_ANOTHER_JOB_CUSTOMER_AWARE` - Moving to another job - Customer Aware
|
|
340
|
+
*/
|
|
341
|
+
export declare enum ChangeReasonStandDownReason {
|
|
342
|
+
CUSTOMER_UNAVAILABLE_RETRYING_LATER = "CUSTOMER_UNAVAILABLE_RETRYING_LATER",
|
|
343
|
+
EN_ROUTER_IN_ERROR = "EN_ROUTER_IN_ERROR",
|
|
344
|
+
MOVING_TO_ANOTHER_JOB_CUSTOMER_AWARE = "MOVING_TO_ANOTHER_JOB_CUSTOMER_AWARE"
|
|
345
|
+
}
|
|
331
346
|
/**
|
|
332
347
|
* Property keys for ChangeReason
|
|
333
348
|
* Use these constants instead of string literals for type safety
|
|
@@ -370,7 +385,9 @@ export declare enum ChangeReasonPropertyKeys {
|
|
|
370
385
|
/** reason for changing appointment date (Field Operations - ChangeReason) */
|
|
371
386
|
RescheduleReason = "RescheduleReason",
|
|
372
387
|
/** cancellation description (Field Operations - ChangeReason) */
|
|
373
|
-
Description = "Description"
|
|
388
|
+
Description = "Description",
|
|
389
|
+
/** why an En Route work order stood down to Scheduled (Field Operations - ChangeReason) */
|
|
390
|
+
StandDownReason = "StandDownReason"
|
|
374
391
|
}
|
|
375
392
|
/**
|
|
376
393
|
* Properties for ChangeReason records
|
|
@@ -492,6 +509,13 @@ export interface ChangeReasonProperties {
|
|
|
492
509
|
* @type {TEXT_LONG}
|
|
493
510
|
*/
|
|
494
511
|
Description: string;
|
|
512
|
+
/** why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
513
|
+
*
|
|
514
|
+
* @type {ENUM}
|
|
515
|
+
* @default
|
|
516
|
+
* @enum {ChangeReasonStandDownReason}
|
|
517
|
+
*/
|
|
518
|
+
StandDownReason: ChangeReasonStandDownReason;
|
|
495
519
|
}
|
|
496
520
|
/**
|
|
497
521
|
* Properties for SA_CANCEL ChangeReason records
|
|
@@ -613,6 +637,13 @@ export interface SaCancelChangeReasonProperties {
|
|
|
613
637
|
* @type {TEXT_LONG}
|
|
614
638
|
*/
|
|
615
639
|
Description: string;
|
|
640
|
+
/** why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
641
|
+
*
|
|
642
|
+
* @type {ENUM}
|
|
643
|
+
* @default
|
|
644
|
+
* @enum {ChangeReasonStandDownReason}
|
|
645
|
+
*/
|
|
646
|
+
StandDownReason: ChangeReasonStandDownReason;
|
|
616
647
|
}
|
|
617
648
|
/**
|
|
618
649
|
* Properties for SA_DELAY ChangeReason records
|
|
@@ -734,6 +765,13 @@ export interface SaDelayChangeReasonProperties {
|
|
|
734
765
|
* @type {TEXT_LONG}
|
|
735
766
|
*/
|
|
736
767
|
Description: string;
|
|
768
|
+
/** why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
769
|
+
*
|
|
770
|
+
* @type {ENUM}
|
|
771
|
+
* @default
|
|
772
|
+
* @enum {ChangeReasonStandDownReason}
|
|
773
|
+
*/
|
|
774
|
+
StandDownReason: ChangeReasonStandDownReason;
|
|
737
775
|
}
|
|
738
776
|
/**
|
|
739
777
|
* Properties for SA_INFORM ChangeReason records
|
|
@@ -855,6 +893,13 @@ export interface SaInformChangeReasonProperties {
|
|
|
855
893
|
* @type {TEXT_LONG}
|
|
856
894
|
*/
|
|
857
895
|
Description: string;
|
|
896
|
+
/** why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
897
|
+
*
|
|
898
|
+
* @type {ENUM}
|
|
899
|
+
* @default
|
|
900
|
+
* @enum {ChangeReasonStandDownReason}
|
|
901
|
+
*/
|
|
902
|
+
StandDownReason: ChangeReasonStandDownReason;
|
|
858
903
|
}
|
|
859
904
|
/**
|
|
860
905
|
* Properties for SA_RESCHEDULE ChangeReason records
|
|
@@ -976,6 +1021,13 @@ export interface SaRescheduleChangeReasonProperties {
|
|
|
976
1021
|
* @type {TEXT_LONG}
|
|
977
1022
|
*/
|
|
978
1023
|
Description: string;
|
|
1024
|
+
/** why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
1025
|
+
*
|
|
1026
|
+
* @type {ENUM}
|
|
1027
|
+
* @default
|
|
1028
|
+
* @enum {ChangeReasonStandDownReason}
|
|
1029
|
+
*/
|
|
1030
|
+
StandDownReason: ChangeReasonStandDownReason;
|
|
979
1031
|
}
|
|
980
1032
|
/**
|
|
981
1033
|
* ChangeReason entity from FieldServiceModule
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ROUTING_KEY_LINK_CHANGE_REASON_USER_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_USER_CREATED = exports.ROUTING_KEY_LINK_CHANGE_REASON_SERVICE_APPOINTMENT_CONFIG_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_SERVICE_APPOINTMENT_CONFIG_CREATED = exports.ROUTING_KEY_LINK_CHANGE_REASON_NOTE_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_NOTE_CREATED = exports.ROUTING_KEY_LINK_CHANGE_REASON_FILE_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_FILE_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_RESCHEDULE_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_RESCHEDULE_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_RESCHEDULE_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_INFORM_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_INFORM_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_INFORM_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_DELAY_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_DELAY_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_DELAY_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_CANCEL_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_CANCEL_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_CANCEL_CREATED = exports.ROUTING_KEY_CHANGE_REASON_DELETED = exports.ROUTING_KEY_CHANGE_REASON_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_CREATED = exports.ChangeReason = exports.ChangeReasonPropertyKeys = exports.ChangeReasonRescheduleReason = exports.ChangeReasonOwner = exports.ChangeReasonCancelReason = exports.ChangeReasonInformReason = exports.ChangeReasonDelayReason = exports.ChangeReasonTimeBlock = exports.ChangeReasonPreviousTimeBlock = exports.ChangeReasonRequestedBy = exports.ChangeReasonEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_CHANGE_REASON_USER_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_USER_CREATED = exports.ROUTING_KEY_LINK_CHANGE_REASON_SERVICE_APPOINTMENT_CONFIG_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_SERVICE_APPOINTMENT_CONFIG_CREATED = exports.ROUTING_KEY_LINK_CHANGE_REASON_NOTE_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_NOTE_CREATED = exports.ROUTING_KEY_LINK_CHANGE_REASON_FILE_DELETED = exports.ROUTING_KEY_LINK_CHANGE_REASON_FILE_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_RESCHEDULE_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_RESCHEDULE_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_RESCHEDULE_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_INFORM_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_INFORM_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_INFORM_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_DELAY_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_DELAY_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_DELAY_CREATED = exports.ROUTING_KEY_CHANGE_REASON_SA_CANCEL_DELETED = exports.ROUTING_KEY_CHANGE_REASON_SA_CANCEL_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_SA_CANCEL_CREATED = exports.ROUTING_KEY_CHANGE_REASON_DELETED = exports.ROUTING_KEY_CHANGE_REASON_UPDATED = exports.ROUTING_KEY_CHANGE_REASON_CREATED = exports.ChangeReason = exports.ChangeReasonPropertyKeys = exports.ChangeReasonStandDownReason = exports.ChangeReasonRescheduleReason = exports.ChangeReasonOwner = exports.ChangeReasonCancelReason = exports.ChangeReasonInformReason = exports.ChangeReasonDelayReason = exports.ChangeReasonTimeBlock = exports.ChangeReasonPreviousTimeBlock = exports.ChangeReasonRequestedBy = exports.ChangeReasonEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for ChangeReason records
|
|
@@ -335,6 +335,22 @@ var ChangeReasonRescheduleReason;
|
|
|
335
335
|
ChangeReasonRescheduleReason["UNAWARE_OF_APPOINTMENT"] = "UNAWARE_OF_APPOINTMENT";
|
|
336
336
|
ChangeReasonRescheduleReason["WEBSITE_RESCHEDULE"] = "INSTALL_REMINDER_RESCHEDULED";
|
|
337
337
|
})(ChangeReasonRescheduleReason = exports.ChangeReasonRescheduleReason || (exports.ChangeReasonRescheduleReason = {}));
|
|
338
|
+
/**
|
|
339
|
+
* Valid values for ChangeReason.StandDownReason
|
|
340
|
+
*
|
|
341
|
+
* why an En Route work order stood down to Scheduled (Field Operations - ChangeReason)
|
|
342
|
+
*
|
|
343
|
+
* @remarks Available options:
|
|
344
|
+
* - `CUSTOMER_UNAVAILABLE_RETRYING_LATER` - Customer Unavailable - Retrying Later
|
|
345
|
+
* - `EN_ROUTER_IN_ERROR` - En-Router in error
|
|
346
|
+
* - `MOVING_TO_ANOTHER_JOB_CUSTOMER_AWARE` - Moving to another job - Customer Aware
|
|
347
|
+
*/
|
|
348
|
+
var ChangeReasonStandDownReason;
|
|
349
|
+
(function (ChangeReasonStandDownReason) {
|
|
350
|
+
ChangeReasonStandDownReason["CUSTOMER_UNAVAILABLE_RETRYING_LATER"] = "CUSTOMER_UNAVAILABLE_RETRYING_LATER";
|
|
351
|
+
ChangeReasonStandDownReason["EN_ROUTER_IN_ERROR"] = "EN_ROUTER_IN_ERROR";
|
|
352
|
+
ChangeReasonStandDownReason["MOVING_TO_ANOTHER_JOB_CUSTOMER_AWARE"] = "MOVING_TO_ANOTHER_JOB_CUSTOMER_AWARE";
|
|
353
|
+
})(ChangeReasonStandDownReason = exports.ChangeReasonStandDownReason || (exports.ChangeReasonStandDownReason = {}));
|
|
338
354
|
/**
|
|
339
355
|
* Property keys for ChangeReason
|
|
340
356
|
* Use these constants instead of string literals for type safety
|
|
@@ -379,6 +395,8 @@ var ChangeReasonPropertyKeys;
|
|
|
379
395
|
ChangeReasonPropertyKeys["RescheduleReason"] = "RescheduleReason";
|
|
380
396
|
/** cancellation description (Field Operations - ChangeReason) */
|
|
381
397
|
ChangeReasonPropertyKeys["Description"] = "Description";
|
|
398
|
+
/** why an En Route work order stood down to Scheduled (Field Operations - ChangeReason) */
|
|
399
|
+
ChangeReasonPropertyKeys["StandDownReason"] = "StandDownReason";
|
|
382
400
|
})(ChangeReasonPropertyKeys = exports.ChangeReasonPropertyKeys || (exports.ChangeReasonPropertyKeys = {}));
|
|
383
401
|
/**
|
|
384
402
|
* ChangeReason entity from FieldServiceModule
|
|
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
|
|
|
23
23
|
* Use these constants instead of string literals for type safety
|
|
24
24
|
*/
|
|
25
25
|
export declare enum ConfigPropertyKeys {
|
|
26
|
-
/** Data field for Config records. Used by Platform team. */
|
|
27
|
-
Test = "Test",
|
|
28
26
|
/** the name of the app this config relates to (Platform - Config) */
|
|
29
27
|
AppName = "AppName",
|
|
30
28
|
/** object of { key: value } mappings (Platform - Config) */
|
|
31
|
-
Mappings = "Mappings"
|
|
29
|
+
Mappings = "Mappings",
|
|
30
|
+
/** Data field for Config records. Used by Platform team. */
|
|
31
|
+
Test = "Test"
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Properties for Config records
|
|
@@ -36,11 +36,6 @@ export declare enum ConfigPropertyKeys {
|
|
|
36
36
|
* @see SchemaModule:Config
|
|
37
37
|
*/
|
|
38
38
|
export interface ConfigProperties {
|
|
39
|
-
/** Data field for Config records. Used by Platform team.
|
|
40
|
-
*
|
|
41
|
-
* @type {TEXT}
|
|
42
|
-
*/
|
|
43
|
-
Test: string;
|
|
44
39
|
/** the name of the app this config relates to (Platform - Config)
|
|
45
40
|
*
|
|
46
41
|
* @type {TEXT}
|
|
@@ -51,6 +46,11 @@ export interface ConfigProperties {
|
|
|
51
46
|
* @type {JSON}
|
|
52
47
|
*/
|
|
53
48
|
Mappings: string;
|
|
49
|
+
/** Data field for Config records. Used by Platform team.
|
|
50
|
+
*
|
|
51
|
+
* @type {TEXT}
|
|
52
|
+
*/
|
|
53
|
+
Test: string;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Config entity from SchemaModule
|
|
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
|
|
|
28
28
|
*/
|
|
29
29
|
var ConfigPropertyKeys;
|
|
30
30
|
(function (ConfigPropertyKeys) {
|
|
31
|
-
/** Data field for Config records. Used by Platform team. */
|
|
32
|
-
ConfigPropertyKeys["Test"] = "Test";
|
|
33
31
|
/** the name of the app this config relates to (Platform - Config) */
|
|
34
32
|
ConfigPropertyKeys["AppName"] = "AppName";
|
|
35
33
|
/** object of { key: value } mappings (Platform - Config) */
|
|
36
34
|
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
|
+
/** Data field for Config records. Used by Platform team. */
|
|
36
|
+
ConfigPropertyKeys["Test"] = "Test";
|
|
37
37
|
})(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
|
|
38
38
|
/**
|
|
39
39
|
* Config entity from SchemaModule
|
|
@@ -998,6 +998,7 @@ export declare enum WorkOrderCpe3 {
|
|
|
998
998
|
* - `CITYFIBRE` - CityFibre
|
|
999
999
|
* - `NETOMNIA` - Netomnia
|
|
1000
1000
|
* - `NETOMNIA_LEGACY` - Netomnia (Legacy)
|
|
1001
|
+
* - `OPENREACH` - Openreach
|
|
1001
1002
|
* - `PYOMNI` - PyOmni
|
|
1002
1003
|
*/
|
|
1003
1004
|
export declare enum WorkOrderProvider {
|
|
@@ -1005,6 +1006,7 @@ export declare enum WorkOrderProvider {
|
|
|
1005
1006
|
CITY_FIBRE = "CITYFIBRE",
|
|
1006
1007
|
NETOMNIA = "NETOMNIA",
|
|
1007
1008
|
NETOMNIA_LEGACY = "NETOMNIA_LEGACY",
|
|
1009
|
+
OPENREACH = "OPENREACH",
|
|
1008
1010
|
PY_OMNI = "PYOMNI"
|
|
1009
1011
|
}
|
|
1010
1012
|
/**
|
|
@@ -983,6 +983,7 @@ var WorkOrderCpe3;
|
|
|
983
983
|
* - `CITYFIBRE` - CityFibre
|
|
984
984
|
* - `NETOMNIA` - Netomnia
|
|
985
985
|
* - `NETOMNIA_LEGACY` - Netomnia (Legacy)
|
|
986
|
+
* - `OPENREACH` - Openreach
|
|
986
987
|
* - `PYOMNI` - PyOmni
|
|
987
988
|
*/
|
|
988
989
|
var WorkOrderProvider;
|
|
@@ -991,6 +992,7 @@ var WorkOrderProvider;
|
|
|
991
992
|
WorkOrderProvider["CITY_FIBRE"] = "CITYFIBRE";
|
|
992
993
|
WorkOrderProvider["NETOMNIA"] = "NETOMNIA";
|
|
993
994
|
WorkOrderProvider["NETOMNIA_LEGACY"] = "NETOMNIA_LEGACY";
|
|
995
|
+
WorkOrderProvider["OPENREACH"] = "OPENREACH";
|
|
994
996
|
WorkOrderProvider["PY_OMNI"] = "PYOMNI";
|
|
995
997
|
})(WorkOrderProvider = exports.WorkOrderProvider || (exports.WorkOrderProvider = {}));
|
|
996
998
|
/**
|
|
@@ -30,6 +30,7 @@ import { CreateServiceCancelledChangeReasonTenantProperties } from '../actions-v
|
|
|
30
30
|
import { CancelServiceWorkOrderSupplierProperties } from '../actions-v2/CancelServiceWorkOrderSupplierDto';
|
|
31
31
|
import { CancelServiceWorkOrderTenantProperties } from '../actions-v2/CancelServiceWorkOrderTenantDto';
|
|
32
32
|
import { CreateCollectionRescheduledChangeReasonTenantProperties } from '../actions-v2/CreateCollectionRescheduledChangeReasonTenantDto';
|
|
33
|
+
import { CreateEnRouteToScheduledChangeReasonProperties } from '../actions-v2/CreateEnRouteToScheduledChangeReasonDto';
|
|
33
34
|
import { CreateInstallCancelledChangeReasonSupplierProperties } from '../actions-v2/CreateInstallCancelledChangeReasonSupplierDto';
|
|
34
35
|
import { CreateInstallDelayedChangeReasonTenantProperties } from '../actions-v2/CreateInstallDelayedChangeReasonTenantDto';
|
|
35
36
|
import { CreateInstallRescheduledChangeReasonSupplierProperties } from '../actions-v2/CreateInstallRescheduledChangeReasonSupplierDto';
|
|
@@ -516,6 +517,34 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
516
517
|
journeyId?: string;
|
|
517
518
|
stageKey?: string;
|
|
518
519
|
}): ActionBuilder;
|
|
520
|
+
/**
|
|
521
|
+
* CreateEnRouteToScheduledChangeReason
|
|
522
|
+
*
|
|
523
|
+
* Creates a new ChangeReason record with the specified properties.
|
|
524
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
525
|
+
*
|
|
526
|
+
* @remarks Record type: SA_DELAY
|
|
527
|
+
*
|
|
528
|
+
* @param properties - The properties for the new record
|
|
529
|
+
* @param options - Optional settings
|
|
530
|
+
* @param options.journeyId - Associate with a journey
|
|
531
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
532
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
533
|
+
*
|
|
534
|
+
* @example
|
|
535
|
+
* ```typescript
|
|
536
|
+
* // Create with properties
|
|
537
|
+
* const record = odinClient.changeReasons.new();
|
|
538
|
+
* await record.createEnRouteToScheduledChangeReason({ ... }).execute();
|
|
539
|
+
*
|
|
540
|
+
* // Dry run (for debugging)
|
|
541
|
+
* const payload = record.createEnRouteToScheduledChangeReason({ ... }).dryRun();
|
|
542
|
+
* ```
|
|
543
|
+
*/
|
|
544
|
+
createEnRouteToScheduledChangeReason(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: {
|
|
545
|
+
journeyId?: string;
|
|
546
|
+
stageKey?: string;
|
|
547
|
+
}): ActionBuilder;
|
|
519
548
|
/**
|
|
520
549
|
* CreateInstallCancelledChangeReasonSupplier
|
|
521
550
|
*
|
|
@@ -656,6 +656,42 @@ class ChangeReasonRecord {
|
|
|
656
656
|
};
|
|
657
657
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
658
658
|
}
|
|
659
|
+
/**
|
|
660
|
+
* CreateEnRouteToScheduledChangeReason
|
|
661
|
+
*
|
|
662
|
+
* Creates a new ChangeReason record with the specified properties.
|
|
663
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
664
|
+
*
|
|
665
|
+
* @remarks Record type: SA_DELAY
|
|
666
|
+
*
|
|
667
|
+
* @param properties - The properties for the new record
|
|
668
|
+
* @param options - Optional settings
|
|
669
|
+
* @param options.journeyId - Associate with a journey
|
|
670
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
671
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
672
|
+
*
|
|
673
|
+
* @example
|
|
674
|
+
* ```typescript
|
|
675
|
+
* // Create with properties
|
|
676
|
+
* const record = odinClient.changeReasons.new();
|
|
677
|
+
* await record.createEnRouteToScheduledChangeReason({ ... }).execute();
|
|
678
|
+
*
|
|
679
|
+
* // Dry run (for debugging)
|
|
680
|
+
* const payload = record.createEnRouteToScheduledChangeReason({ ... }).dryRun();
|
|
681
|
+
* ```
|
|
682
|
+
*/
|
|
683
|
+
createEnRouteToScheduledChangeReason(properties, options) {
|
|
684
|
+
const payload = {
|
|
685
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
686
|
+
type: 'SA_DELAY',
|
|
687
|
+
actionName: 'CreateEnRouteToScheduledChangeReason',
|
|
688
|
+
properties: properties || {},
|
|
689
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
690
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
691
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
692
|
+
};
|
|
693
|
+
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
694
|
+
}
|
|
659
695
|
/**
|
|
660
696
|
* CreateInstallCancelledChangeReasonSupplier
|
|
661
697
|
*
|