@d19n/youfibre-odin-sdk 2.0.104 → 2.0.106-beta.0
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 +9 -1
- package/dist/actions-v2/MoveBusinessInstallFromInProgressToPendingDto.d.ts +64 -0
- package/dist/actions-v2/MoveBusinessInstallFromInProgressToPendingDto.js +56 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromInProgressToPendingDto.d.ts +64 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromInProgressToPendingDto.js +56 -0
- package/dist/actions-v2/UpdateCallOnNumberCallStatusCompletedDto.d.ts +97 -0
- package/dist/actions-v2/UpdateCallOnNumberCallStatusCompletedDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto.d.ts +79 -0
- package/dist/actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto.js +56 -0
- package/dist/entities-v2/AddressInteraction.d.ts +4 -4
- package/dist/entities-v2/AddressInteraction.js +4 -4
- package/dist/entities-v2/WorkOrder.d.ts +4 -0
- package/dist/entities-v2/WorkOrder.js +4 -0
- package/dist/records-v2/CallLegRecord.d.ts +28 -0
- package/dist/records-v2/CallLegRecord.js +37 -0
- package/dist/records-v2/CallRecord.d.ts +27 -0
- package/dist/records-v2/CallRecord.js +29 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +50 -0
- package/dist/records-v2/WorkOrderRecord.js +58 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -352,7 +352,7 @@ This SDK includes **164** entities across **12** modules.
|
|
|
352
352
|
|
|
353
353
|
## Actions
|
|
354
354
|
|
|
355
|
-
This SDK includes **
|
|
355
|
+
This SDK includes **634** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -477,6 +477,7 @@ This SDK includes **630** actions.
|
|
|
477
477
|
| `FlowStepEnRouteCollectionConfirmation` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.FlowStepEnRouteCollectionConfirmation |
|
|
478
478
|
| `InProgressWorkOrderConfirmation` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.InProgressWorkOrderConfirmation |
|
|
479
479
|
| `ManageSla` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.ManageSLA |
|
|
480
|
+
| `MoveBusinessInstallFromInProgressToPending` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending |
|
|
480
481
|
| `MoveBusinessInstallToCancelled` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToCancelled |
|
|
481
482
|
| `MoveBusinessInstallToComplete` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToComplete |
|
|
482
483
|
| `MoveBusinessInstallToEnRoute` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallToEnRoute |
|
|
@@ -539,6 +540,7 @@ This SDK includes **630** actions.
|
|
|
539
540
|
| `MoveRemediationWorkOrderToEnRoute` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveRemediationWorkOrderToEnRoute |
|
|
540
541
|
| `MoveRemediationWorkOrderToInProgress` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveRemediationWorkOrderToInProgress |
|
|
541
542
|
| `MoveServiceWorkOrderFromAcceptedToScheduled` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromAcceptedToScheduled |
|
|
543
|
+
| `MoveServiceWorkOrderFromInProgressToPending` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending |
|
|
542
544
|
| `MoveServiceWorkOrderToCancelled` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderToCancelled |
|
|
543
545
|
| `MoveServiceWorkOrderToEnRoute` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderToEnRoute |
|
|
544
546
|
| `MoveServiceWorkOrderToInProgress` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderToInProgress |
|
|
@@ -568,6 +570,8 @@ This SDK includes **630** actions.
|
|
|
568
570
|
|
|
569
571
|
**CompleteServiceWorkOrderFlow Target Stages:** `WorkOrderStageDone`
|
|
570
572
|
|
|
573
|
+
**MoveBusinessInstallFromInProgressToPending Target Stages:** `BusinessInstallPipelineStagePending`
|
|
574
|
+
|
|
571
575
|
**MoveBusinessInstallToCancelled Target Stages:** `BusinessInstallPipelineStageCancelled`
|
|
572
576
|
|
|
573
577
|
**MoveBusinessInstallToComplete Target Stages:** `BusinessInstallPipelineStageComplete`
|
|
@@ -692,6 +696,8 @@ This SDK includes **630** actions.
|
|
|
692
696
|
|
|
693
697
|
**MoveServiceWorkOrderFromAcceptedToScheduled Target Stages:** `WorkOrderStageScheduled`
|
|
694
698
|
|
|
699
|
+
**MoveServiceWorkOrderFromInProgressToPending Target Stages:** `CustomerWorkOrdersStagePending`
|
|
700
|
+
|
|
695
701
|
**MoveServiceWorkOrderToCancelled Target Stages:** `WorkOrderStageCancelled`
|
|
696
702
|
|
|
697
703
|
**MoveServiceWorkOrderToEnRoute Target Stages:** `WorkOrderStageEnRoute`
|
|
@@ -1117,6 +1123,7 @@ This SDK includes **630** actions.
|
|
|
1117
1123
|
| `UpdateAgentCallLegOnIncomingCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateAgentCallLegOnIncomingCallRinging |
|
|
1118
1124
|
| `UpdateCall` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCall |
|
|
1119
1125
|
| `UpdateCustomerCallLegOnIncomingCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnIncomingCallAnswered |
|
|
1126
|
+
| `UpdateCustomerCallLegOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted |
|
|
1120
1127
|
|
|
1121
1128
|
#### Appointment
|
|
1122
1129
|
|
|
@@ -1179,6 +1186,7 @@ This SDK includes **630** actions.
|
|
|
1179
1186
|
| `UpdateCallOnInboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted |
|
|
1180
1187
|
| `UpdateCallOnInboundCallInitiated` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallInitiated |
|
|
1181
1188
|
| `UpdateCallOnInboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging |
|
|
1189
|
+
| `UpdateCallOnNumberCallStatusCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted |
|
|
1182
1190
|
| `UpdateCallOnTaskRouterAssign` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskRouterAssign |
|
|
1183
1191
|
| `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
|
|
1184
1192
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveBusinessInstallFromInProgressToPending Action DTO
|
|
3
|
+
*
|
|
4
|
+
* @module FieldServiceModule
|
|
5
|
+
* @entity WorkOrder
|
|
6
|
+
* @entityType INSTALL_BUSINESS
|
|
7
|
+
* @actionKey MoveBusinessInstallFromInProgressToPending
|
|
8
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending
|
|
9
|
+
*
|
|
10
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
11
|
+
*/
|
|
12
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
13
|
+
/**
|
|
14
|
+
* RabbitMQ message payload for MoveBusinessInstallFromInProgressToPending step flow events
|
|
15
|
+
*
|
|
16
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending
|
|
17
|
+
*/
|
|
18
|
+
export interface MoveBusinessInstallFromInProgressToPendingMessage extends OdinRecordUpdatedEvent<MoveBusinessInstallFromInProgressToPendingDto, {}> {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Properties for MoveBusinessInstallFromInProgressToPending action
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export interface MoveBusinessInstallFromInProgressToPendingProperties {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* MoveBusinessInstallFromInProgressToPending
|
|
28
|
+
*
|
|
29
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
30
|
+
* @module FieldServiceModule
|
|
31
|
+
* @entity WorkOrder
|
|
32
|
+
* @entityType INSTALL_BUSINESS (Business Install)
|
|
33
|
+
* @targetStages BusinessInstallPipelineStagePending
|
|
34
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending
|
|
35
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
36
|
+
*/
|
|
37
|
+
export declare class MoveBusinessInstallFromInProgressToPendingDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
38
|
+
/** Used by SDK generators to identify action type */
|
|
39
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
40
|
+
static readonly ACTION_KEY = "MoveBusinessInstallFromInProgressToPending";
|
|
41
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
42
|
+
static readonly ENTITIES: string[];
|
|
43
|
+
static readonly ENTITY_TYPE = "INSTALL_BUSINESS";
|
|
44
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending";
|
|
45
|
+
static readonly SCHEMA_ACTION_ID = "f4c0a871-ef72-4087-96bc-127909189a7a";
|
|
46
|
+
static readonly TARGET_STAGES: readonly ["BusinessInstallPipelineStagePending"];
|
|
47
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
48
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
49
|
+
static readonly HAS_STEP_LINKS = false;
|
|
50
|
+
readonly actionName: string;
|
|
51
|
+
readonly schemaActionId: string;
|
|
52
|
+
readonly entity: string;
|
|
53
|
+
readonly stageKey: string;
|
|
54
|
+
constructor(record: OdinRecord<any> | {
|
|
55
|
+
id: string;
|
|
56
|
+
entity: string;
|
|
57
|
+
type?: string;
|
|
58
|
+
}, options?: {
|
|
59
|
+
journeyId?: string;
|
|
60
|
+
});
|
|
61
|
+
/** Step classes that can be used with this action */
|
|
62
|
+
static readonly stepClasses: readonly [];
|
|
63
|
+
steps: [];
|
|
64
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveBusinessInstallFromInProgressToPending Action DTO
|
|
4
|
+
*
|
|
5
|
+
* @module FieldServiceModule
|
|
6
|
+
* @entity WorkOrder
|
|
7
|
+
* @entityType INSTALL_BUSINESS
|
|
8
|
+
* @actionKey MoveBusinessInstallFromInProgressToPending
|
|
9
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.MoveBusinessInstallFromInProgressToPendingDto = void 0;
|
|
15
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
16
|
+
/**
|
|
17
|
+
* MoveBusinessInstallFromInProgressToPending
|
|
18
|
+
*
|
|
19
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
20
|
+
* @module FieldServiceModule
|
|
21
|
+
* @entity WorkOrder
|
|
22
|
+
* @entityType INSTALL_BUSINESS (Business Install)
|
|
23
|
+
* @targetStages BusinessInstallPipelineStagePending
|
|
24
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class MoveBusinessInstallFromInProgressToPendingDto extends core_1.OdinRecordUpdateDto {
|
|
28
|
+
constructor(record, options) {
|
|
29
|
+
super({
|
|
30
|
+
id: record.id,
|
|
31
|
+
entity: record.entity,
|
|
32
|
+
type: record.type,
|
|
33
|
+
properties: {},
|
|
34
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
35
|
+
});
|
|
36
|
+
this.actionName = 'MoveBusinessInstallFromInProgressToPending';
|
|
37
|
+
this.schemaActionId = 'f4c0a871-ef72-4087-96bc-127909189a7a';
|
|
38
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
39
|
+
this.stageKey = 'BusinessInstallPipelineStagePending';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.MoveBusinessInstallFromInProgressToPendingDto = MoveBusinessInstallFromInProgressToPendingDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
MoveBusinessInstallFromInProgressToPendingDto.ACTION_TYPE = 'UPDATE';
|
|
45
|
+
MoveBusinessInstallFromInProgressToPendingDto.ACTION_KEY = 'MoveBusinessInstallFromInProgressToPending';
|
|
46
|
+
MoveBusinessInstallFromInProgressToPendingDto.MODULE_NAME = 'FieldServiceModule';
|
|
47
|
+
MoveBusinessInstallFromInProgressToPendingDto.ENTITIES = ['WorkOrder'];
|
|
48
|
+
MoveBusinessInstallFromInProgressToPendingDto.ENTITY_TYPE = 'INSTALL_BUSINESS';
|
|
49
|
+
MoveBusinessInstallFromInProgressToPendingDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveBusinessInstallFromInProgressToPending';
|
|
50
|
+
MoveBusinessInstallFromInProgressToPendingDto.SCHEMA_ACTION_ID = 'f4c0a871-ef72-4087-96bc-127909189a7a';
|
|
51
|
+
MoveBusinessInstallFromInProgressToPendingDto.TARGET_STAGES = ['BusinessInstallPipelineStagePending'];
|
|
52
|
+
MoveBusinessInstallFromInProgressToPendingDto.IS_STAGE_TRANSITION = true;
|
|
53
|
+
MoveBusinessInstallFromInProgressToPendingDto.IS_MULTI_STEP_FLOW = false;
|
|
54
|
+
MoveBusinessInstallFromInProgressToPendingDto.HAS_STEP_LINKS = false;
|
|
55
|
+
/** Step classes that can be used with this action */
|
|
56
|
+
MoveBusinessInstallFromInProgressToPendingDto.stepClasses = [];
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveServiceWorkOrderFromInProgressToPending Action DTO
|
|
3
|
+
*
|
|
4
|
+
* @module FieldServiceModule
|
|
5
|
+
* @entity WorkOrder
|
|
6
|
+
* @entityType SERVICE
|
|
7
|
+
* @actionKey MoveServiceWorkOrderFromInProgressToPending
|
|
8
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending
|
|
9
|
+
*
|
|
10
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
11
|
+
*/
|
|
12
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
13
|
+
/**
|
|
14
|
+
* RabbitMQ message payload for MoveServiceWorkOrderFromInProgressToPending step flow events
|
|
15
|
+
*
|
|
16
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending
|
|
17
|
+
*/
|
|
18
|
+
export interface MoveServiceWorkOrderFromInProgressToPendingMessage extends OdinRecordUpdatedEvent<MoveServiceWorkOrderFromInProgressToPendingDto, {}> {
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Properties for MoveServiceWorkOrderFromInProgressToPending action
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export interface MoveServiceWorkOrderFromInProgressToPendingProperties {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* MoveServiceWorkOrderFromInProgressToPending
|
|
28
|
+
*
|
|
29
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
30
|
+
* @module FieldServiceModule
|
|
31
|
+
* @entity WorkOrder
|
|
32
|
+
* @entityType SERVICE (service)
|
|
33
|
+
* @targetStages CustomerWorkOrdersStagePending
|
|
34
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending
|
|
35
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
36
|
+
*/
|
|
37
|
+
export declare class MoveServiceWorkOrderFromInProgressToPendingDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
38
|
+
/** Used by SDK generators to identify action type */
|
|
39
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
40
|
+
static readonly ACTION_KEY = "MoveServiceWorkOrderFromInProgressToPending";
|
|
41
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
42
|
+
static readonly ENTITIES: string[];
|
|
43
|
+
static readonly ENTITY_TYPE = "SERVICE";
|
|
44
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending";
|
|
45
|
+
static readonly SCHEMA_ACTION_ID = "1f8b1986-1b3d-4954-aa3a-97c2bdd73c05";
|
|
46
|
+
static readonly TARGET_STAGES: readonly ["CustomerWorkOrdersStagePending"];
|
|
47
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
48
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
49
|
+
static readonly HAS_STEP_LINKS = false;
|
|
50
|
+
readonly actionName: string;
|
|
51
|
+
readonly schemaActionId: string;
|
|
52
|
+
readonly entity: string;
|
|
53
|
+
readonly stageKey: string;
|
|
54
|
+
constructor(record: OdinRecord<any> | {
|
|
55
|
+
id: string;
|
|
56
|
+
entity: string;
|
|
57
|
+
type?: string;
|
|
58
|
+
}, options?: {
|
|
59
|
+
journeyId?: string;
|
|
60
|
+
});
|
|
61
|
+
/** Step classes that can be used with this action */
|
|
62
|
+
static readonly stepClasses: readonly [];
|
|
63
|
+
steps: [];
|
|
64
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveServiceWorkOrderFromInProgressToPending Action DTO
|
|
4
|
+
*
|
|
5
|
+
* @module FieldServiceModule
|
|
6
|
+
* @entity WorkOrder
|
|
7
|
+
* @entityType SERVICE
|
|
8
|
+
* @actionKey MoveServiceWorkOrderFromInProgressToPending
|
|
9
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.MoveServiceWorkOrderFromInProgressToPendingDto = void 0;
|
|
15
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
16
|
+
/**
|
|
17
|
+
* MoveServiceWorkOrderFromInProgressToPending
|
|
18
|
+
*
|
|
19
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
20
|
+
* @module FieldServiceModule
|
|
21
|
+
* @entity WorkOrder
|
|
22
|
+
* @entityType SERVICE (service)
|
|
23
|
+
* @targetStages CustomerWorkOrdersStagePending
|
|
24
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class MoveServiceWorkOrderFromInProgressToPendingDto extends core_1.OdinRecordUpdateDto {
|
|
28
|
+
constructor(record, options) {
|
|
29
|
+
super({
|
|
30
|
+
id: record.id,
|
|
31
|
+
entity: record.entity,
|
|
32
|
+
type: record.type,
|
|
33
|
+
properties: {},
|
|
34
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
35
|
+
});
|
|
36
|
+
this.actionName = 'MoveServiceWorkOrderFromInProgressToPending';
|
|
37
|
+
this.schemaActionId = '1f8b1986-1b3d-4954-aa3a-97c2bdd73c05';
|
|
38
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
39
|
+
this.stageKey = 'CustomerWorkOrdersStagePending';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.MoveServiceWorkOrderFromInProgressToPendingDto = MoveServiceWorkOrderFromInProgressToPendingDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.ACTION_TYPE = 'UPDATE';
|
|
45
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.ACTION_KEY = 'MoveServiceWorkOrderFromInProgressToPending';
|
|
46
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.MODULE_NAME = 'FieldServiceModule';
|
|
47
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.ENTITIES = ['WorkOrder'];
|
|
48
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.ENTITY_TYPE = 'SERVICE';
|
|
49
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveServiceWorkOrderFromInProgressToPending';
|
|
50
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.SCHEMA_ACTION_ID = '1f8b1986-1b3d-4954-aa3a-97c2bdd73c05';
|
|
51
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.TARGET_STAGES = ['CustomerWorkOrdersStagePending'];
|
|
52
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.IS_STAGE_TRANSITION = true;
|
|
53
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.IS_MULTI_STEP_FLOW = false;
|
|
54
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.HAS_STEP_LINKS = false;
|
|
55
|
+
/** Step classes that can be used with this action */
|
|
56
|
+
MoveServiceWorkOrderFromInProgressToPendingDto.stepClasses = [];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCallOnNumberCallStatusCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update call on number call status completed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity Call
|
|
8
|
+
* @actionKey UpdateCallOnNumberCallStatusCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCallOnNumberCallStatusCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCallOnNumberCallStatusCompletedMessage extends OdinRecordUpdatedEvent<UpdateCallOnNumberCallStatusCompletedDto, UpdateCallOnNumberCallStatusCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCallOnNumberCallStatusCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 4
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCallOnNumberCallStatusCompletedProperties {
|
|
28
|
+
/**
|
|
29
|
+
* CallEndReason
|
|
30
|
+
*
|
|
31
|
+
* CallEndReason
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
CallEndReason: string;
|
|
36
|
+
/**
|
|
37
|
+
* call status
|
|
38
|
+
*
|
|
39
|
+
* the status of the call (Communications - Call)
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
CallStatus: string;
|
|
44
|
+
/**
|
|
45
|
+
* Call stage
|
|
46
|
+
*
|
|
47
|
+
* The granular stage of a call, more extensive than CallStatus (Communications - Call)
|
|
48
|
+
* @type {ENUM}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
CallStage: string;
|
|
52
|
+
/**
|
|
53
|
+
* missed call reason
|
|
54
|
+
*
|
|
55
|
+
* reason for the call being missed (Communications - Call)
|
|
56
|
+
* @type {TEXT}
|
|
57
|
+
* @required
|
|
58
|
+
*/
|
|
59
|
+
MissedCallReason: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
63
|
+
*
|
|
64
|
+
* Update call on number call status completed
|
|
65
|
+
*
|
|
66
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
67
|
+
* @module NotificationModule
|
|
68
|
+
* @entity Call
|
|
69
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
70
|
+
* @permission schema.action.updatecallonnumbercallstatuscompleted.trigger
|
|
71
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
72
|
+
*/
|
|
73
|
+
export declare class UpdateCallOnNumberCallStatusCompletedDto extends OdinRecordUpdateDto<UpdateCallOnNumberCallStatusCompletedProperties> {
|
|
74
|
+
/** Used by SDK generators to identify action type */
|
|
75
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
76
|
+
static readonly ACTION_KEY = "UpdateCallOnNumberCallStatusCompleted";
|
|
77
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
78
|
+
static readonly ENTITIES: string[];
|
|
79
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted";
|
|
80
|
+
static readonly PERMISSION = "schema.action.updatecallonnumbercallstatuscompleted.trigger";
|
|
81
|
+
/** Step metadata - entity this action targets */
|
|
82
|
+
static readonly STEP_ENTITY = "NotificationModule:Call";
|
|
83
|
+
static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
|
|
84
|
+
static readonly STEP_SCHEMA_ACTION_ID = "16180a1f-2391-487e-8bc6-d6a212ac14e1";
|
|
85
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
86
|
+
readonly actionName: string;
|
|
87
|
+
readonly schemaActionId: string;
|
|
88
|
+
readonly entity: string;
|
|
89
|
+
constructor(record: OdinRecord<any> | {
|
|
90
|
+
id: string;
|
|
91
|
+
entity: string;
|
|
92
|
+
type?: string;
|
|
93
|
+
}, properties: UpdateCallOnNumberCallStatusCompletedProperties, options?: {
|
|
94
|
+
journeyId?: string;
|
|
95
|
+
stageKey?: string;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCallOnNumberCallStatusCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update call on number call status completed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity Call
|
|
9
|
+
* @actionKey UpdateCallOnNumberCallStatusCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCallOnNumberCallStatusCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update call on number call status completed
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Call record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity Call
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted
|
|
26
|
+
* @permission schema.action.updatecallonnumbercallstatuscompleted.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCallOnNumberCallStatusCompletedDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'UpdateCallOnNumberCallStatusCompleted';
|
|
40
|
+
this.schemaActionId = '16180a1f-2391-487e-8bc6-d6a212ac14e1';
|
|
41
|
+
this.entity = 'NotificationModule:Call';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCallOnNumberCallStatusCompletedDto = UpdateCallOnNumberCallStatusCompletedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCallOnNumberCallStatusCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCallOnNumberCallStatusCompletedDto.ACTION_KEY = 'UpdateCallOnNumberCallStatusCompleted';
|
|
48
|
+
UpdateCallOnNumberCallStatusCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCallOnNumberCallStatusCompletedDto.ENTITIES = ['Call'];
|
|
50
|
+
UpdateCallOnNumberCallStatusCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnNumberCallStatusCompleted';
|
|
51
|
+
UpdateCallOnNumberCallStatusCompletedDto.PERMISSION = 'schema.action.updatecallonnumbercallstatuscompleted.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCallOnNumberCallStatusCompletedDto.STEP_ENTITY = 'NotificationModule:Call';
|
|
54
|
+
UpdateCallOnNumberCallStatusCompletedDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
|
|
55
|
+
UpdateCallOnNumberCallStatusCompletedDto.STEP_SCHEMA_ACTION_ID = '16180a1f-2391-487e-8bc6-d6a212ac14e1';
|
|
56
|
+
UpdateCallOnNumberCallStatusCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Update customer call leg on number call status completed
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity CallLeg
|
|
8
|
+
* @actionKey UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
9
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateCustomerCallLegOnNumberCallStatusCompleted updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCustomerCallLegOnNumberCallStatusCompletedMessage extends OdinRecordUpdatedEvent<UpdateCustomerCallLegOnNumberCallStatusCompletedDto, UpdateCustomerCallLegOnNumberCallStatusCompletedProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCustomerCallLegOnNumberCallStatusCompleted action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 2
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCustomerCallLegOnNumberCallStatusCompletedProperties {
|
|
28
|
+
/**
|
|
29
|
+
* EndedAt
|
|
30
|
+
*
|
|
31
|
+
* Data field for CallLeg records. Used by Communications team.
|
|
32
|
+
* @type {DATE_TIME}
|
|
33
|
+
*/
|
|
34
|
+
EndedAt?: string | null;
|
|
35
|
+
/**
|
|
36
|
+
* Duration
|
|
37
|
+
*
|
|
38
|
+
* Duration of THIS leg only in seconds (Communications - CallLeg)
|
|
39
|
+
* @type {NUMBER}
|
|
40
|
+
*/
|
|
41
|
+
Duration?: number | null;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
45
|
+
*
|
|
46
|
+
* Update customer call leg on number call status completed
|
|
47
|
+
*
|
|
48
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
49
|
+
* @module NotificationModule
|
|
50
|
+
* @entity CallLeg
|
|
51
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
52
|
+
* @permission schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger
|
|
53
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
54
|
+
*/
|
|
55
|
+
export declare class UpdateCustomerCallLegOnNumberCallStatusCompletedDto extends OdinRecordUpdateDto<UpdateCustomerCallLegOnNumberCallStatusCompletedProperties> {
|
|
56
|
+
/** Used by SDK generators to identify action type */
|
|
57
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
58
|
+
static readonly ACTION_KEY = "UpdateCustomerCallLegOnNumberCallStatusCompleted";
|
|
59
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
60
|
+
static readonly ENTITIES: string[];
|
|
61
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted";
|
|
62
|
+
static readonly PERMISSION = "schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger";
|
|
63
|
+
/** Step metadata - entity this action targets */
|
|
64
|
+
static readonly STEP_ENTITY = "NotificationModule:CallLeg";
|
|
65
|
+
static readonly STEP_SCHEMA_ID = "75c59745-35fb-44b9-b3f2-7563101fdcec";
|
|
66
|
+
static readonly STEP_SCHEMA_ACTION_ID = "b6ce9396-ddd2-45ec-ae82-0e8e65b673ef";
|
|
67
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
68
|
+
readonly actionName: string;
|
|
69
|
+
readonly schemaActionId: string;
|
|
70
|
+
readonly entity: string;
|
|
71
|
+
constructor(record: OdinRecord<any> | {
|
|
72
|
+
id: string;
|
|
73
|
+
entity: string;
|
|
74
|
+
type?: string;
|
|
75
|
+
}, properties: UpdateCustomerCallLegOnNumberCallStatusCompletedProperties, options?: {
|
|
76
|
+
journeyId?: string;
|
|
77
|
+
stageKey?: string;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Update customer call leg on number call status completed
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity CallLeg
|
|
9
|
+
* @actionKey UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCustomerCallLegOnNumberCallStatusCompletedDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
19
|
+
*
|
|
20
|
+
* Update customer call leg on number call status completed
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing CallLeg record
|
|
23
|
+
* @module NotificationModule
|
|
24
|
+
* @entity CallLeg
|
|
25
|
+
* @event k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
26
|
+
* @permission schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCustomerCallLegOnNumberCallStatusCompletedDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'UpdateCustomerCallLegOnNumberCallStatusCompleted';
|
|
40
|
+
this.schemaActionId = 'b6ce9396-ddd2-45ec-ae82-0e8e65b673ef';
|
|
41
|
+
this.entity = 'NotificationModule:CallLeg';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCustomerCallLegOnNumberCallStatusCompletedDto = UpdateCustomerCallLegOnNumberCallStatusCompletedDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.ACTION_KEY = 'UpdateCustomerCallLegOnNumberCallStatusCompleted';
|
|
48
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.ENTITIES = ['CallLeg'];
|
|
50
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.CallLeg.Update.UpdateCustomerCallLegOnNumberCallStatusCompleted';
|
|
51
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.PERMISSION = 'schema.action.updatecustomercalllegonnumbercallstatuscompleted.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.STEP_ENTITY = 'NotificationModule:CallLeg';
|
|
54
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.STEP_SCHEMA_ID = '75c59745-35fb-44b9-b3f2-7563101fdcec';
|
|
55
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.STEP_SCHEMA_ACTION_ID = 'b6ce9396-ddd2-45ec-ae82-0e8e65b673ef';
|
|
56
|
+
UpdateCustomerCallLegOnNumberCallStatusCompletedDto.AUTO_LINK_PARENT = false;
|
|
@@ -16,7 +16,7 @@ import { AddressProperties } from './Address';
|
|
|
16
16
|
* Available types for AddressInteraction records
|
|
17
17
|
*/
|
|
18
18
|
export declare enum AddressInteractionEntityTypes {
|
|
19
|
-
/**
|
|
19
|
+
/** Default record type */
|
|
20
20
|
DEFAULT = "DEFAULT"
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
@@ -155,11 +155,11 @@ export declare const ROUTING_KEY_ADDRESS_INTERACTION_DELETED = "CrmModule.Addres
|
|
|
155
155
|
* Type-specific routing keys for AddressInteraction events
|
|
156
156
|
* Subscribe to these for events on specific entity types only
|
|
157
157
|
*/
|
|
158
|
-
/**
|
|
158
|
+
/** Default record type created */
|
|
159
159
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordCreated";
|
|
160
|
-
/**
|
|
160
|
+
/** Default record type updated */
|
|
161
161
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordUpdated";
|
|
162
|
-
/**
|
|
162
|
+
/** Default record type deleted */
|
|
163
163
|
export declare const ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = "CrmModule.AddressInteraction.DEFAULT.SubDbRecordDeleted";
|
|
164
164
|
/** Event: AddressInteraction__Address link created */
|
|
165
165
|
export declare const ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_CREATED = "CrmModule.AddressInteraction.Address.SubDbRecordAssociationCreated";
|
|
@@ -19,7 +19,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
|
|
|
19
19
|
*/
|
|
20
20
|
var AddressInteractionEntityTypes;
|
|
21
21
|
(function (AddressInteractionEntityTypes) {
|
|
22
|
-
/**
|
|
22
|
+
/** Default record type */
|
|
23
23
|
AddressInteractionEntityTypes["DEFAULT"] = "DEFAULT";
|
|
24
24
|
})(AddressInteractionEntityTypes = exports.AddressInteractionEntityTypes || (exports.AddressInteractionEntityTypes = {}));
|
|
25
25
|
/**
|
|
@@ -94,11 +94,11 @@ exports.ROUTING_KEY_ADDRESS_INTERACTION_DELETED = 'CrmModule.AddressInteraction.
|
|
|
94
94
|
* Type-specific routing keys for AddressInteraction events
|
|
95
95
|
* Subscribe to these for events on specific entity types only
|
|
96
96
|
*/
|
|
97
|
-
/**
|
|
97
|
+
/** Default record type created */
|
|
98
98
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_CREATED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordCreated';
|
|
99
|
-
/**
|
|
99
|
+
/** Default record type updated */
|
|
100
100
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_UPDATED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordUpdated';
|
|
101
|
-
/**
|
|
101
|
+
/** Default record type deleted */
|
|
102
102
|
exports.ROUTING_KEY_ADDRESS_INTERACTION_DEFAULT_DELETED = 'CrmModule.AddressInteraction.DEFAULT.SubDbRecordDeleted';
|
|
103
103
|
/** Event: AddressInteraction__Address link created */
|
|
104
104
|
exports.ROUTING_KEY_LINK_ADDRESS_INTERACTION_ADDRESS_CREATED = 'CrmModule.AddressInteraction.Address.SubDbRecordAssociationCreated';
|
|
@@ -382,6 +382,8 @@ export declare enum InstallBusinessWorkOrderStageNames {
|
|
|
382
382
|
RemediationRequired = "Remediation Required",
|
|
383
383
|
/** In-Progress */
|
|
384
384
|
InProgress = "In-Progress",
|
|
385
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
386
|
+
Pending = "Pending",
|
|
385
387
|
/** Complete (success) */
|
|
386
388
|
Complete = "Complete",
|
|
387
389
|
/** Cancelled (fail) */
|
|
@@ -406,6 +408,8 @@ export declare enum InstallBusinessWorkOrderStageKeys {
|
|
|
406
408
|
BusinessInstallPipelineStageRemediationRequired = "BusinessInstallPipelineStageRemediationRequired",
|
|
407
409
|
/** In-Progress */
|
|
408
410
|
BusinessInstallPipelineStageInProgress = "BusinessInstallPipelineStageInProgress",
|
|
411
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
412
|
+
BusinessInstallPipelineStagePending = "BusinessInstallPipelineStagePending",
|
|
409
413
|
/** Complete */
|
|
410
414
|
BusinessInstallPipelineStageComplete = "BusinessInstallPipelineStageComplete",
|
|
411
415
|
/** Cancelled */
|
|
@@ -345,6 +345,8 @@ var InstallBusinessWorkOrderStageNames;
|
|
|
345
345
|
InstallBusinessWorkOrderStageNames["RemediationRequired"] = "Remediation Required";
|
|
346
346
|
/** In-Progress */
|
|
347
347
|
InstallBusinessWorkOrderStageNames["InProgress"] = "In-Progress";
|
|
348
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
349
|
+
InstallBusinessWorkOrderStageNames["Pending"] = "Pending";
|
|
348
350
|
/** Complete (success) */
|
|
349
351
|
InstallBusinessWorkOrderStageNames["Complete"] = "Complete";
|
|
350
352
|
/** Cancelled (fail) */
|
|
@@ -370,6 +372,8 @@ var InstallBusinessWorkOrderStageKeys;
|
|
|
370
372
|
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStageRemediationRequired"] = "BusinessInstallPipelineStageRemediationRequired";
|
|
371
373
|
/** In-Progress */
|
|
372
374
|
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStageInProgress"] = "BusinessInstallPipelineStageInProgress";
|
|
375
|
+
/** Pending tenant action — supplier requires customer info / reappointment. Exits to Scheduled (REAPPOINTED) or Cancelled. */
|
|
376
|
+
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStagePending"] = "BusinessInstallPipelineStagePending";
|
|
373
377
|
/** Complete */
|
|
374
378
|
InstallBusinessWorkOrderStageKeys["BusinessInstallPipelineStageComplete"] = "BusinessInstallPipelineStageComplete";
|
|
375
379
|
/** Cancelled */
|
|
@@ -31,6 +31,7 @@ import { UpdateAgentCallLegOnIncomingCallCompletedProperties } from '../actions-
|
|
|
31
31
|
import { UpdateAgentCallLegOnIncomingCallRingingProperties } from '../actions-v2/UpdateAgentCallLegOnIncomingCallRingingDto';
|
|
32
32
|
import { UpdateCallProperties } from '../actions-v2/UpdateCallDto';
|
|
33
33
|
import { UpdateCustomerCallLegOnIncomingCallAnsweredProperties } from '../actions-v2/UpdateCustomerCallLegOnIncomingCallAnsweredDto';
|
|
34
|
+
import { UpdateCustomerCallLegOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCustomerCallLegOnNumberCallStatusCompletedDto';
|
|
34
35
|
import { CallRecord } from './CallRecord';
|
|
35
36
|
import { CallEventRecord } from './CallEventRecord';
|
|
36
37
|
import { CallTransferRecord } from './CallTransferRecord';
|
|
@@ -431,6 +432,33 @@ export declare class CallLegRecord<TProps = CallLegProperties> {
|
|
|
431
432
|
journeyId?: string;
|
|
432
433
|
stageKey?: string;
|
|
433
434
|
}): ActionBuilder;
|
|
435
|
+
/**
|
|
436
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
437
|
+
*
|
|
438
|
+
* Updates this CallLeg record.
|
|
439
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
440
|
+
*
|
|
441
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
442
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
443
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
444
|
+
* @throws Error if called on a new (unsaved) record
|
|
445
|
+
*
|
|
446
|
+
* @example
|
|
447
|
+
* ```typescript
|
|
448
|
+
* const record = await odinClient.callLegs.get(id);
|
|
449
|
+
* await record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).execute();
|
|
450
|
+
*
|
|
451
|
+
* // Dry run (for debugging)
|
|
452
|
+
* const payload = record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
453
|
+
* ```
|
|
454
|
+
*/
|
|
455
|
+
updateCustomerCallLegOnNumberCallStatusCompleted(propertiesOrOptions?: UpdateCustomerCallLegOnNumberCallStatusCompletedProperties | {
|
|
456
|
+
journeyId?: string;
|
|
457
|
+
stageKey?: string;
|
|
458
|
+
}, options?: {
|
|
459
|
+
journeyId?: string;
|
|
460
|
+
stageKey?: string;
|
|
461
|
+
}): ActionBuilder;
|
|
434
462
|
}
|
|
435
463
|
/** Type guard to check if an object is a CallLegRecord */
|
|
436
464
|
export declare function isCallLegRecord(obj: any): obj is CallLegRecord;
|
|
@@ -549,6 +549,43 @@ class CallLegRecord {
|
|
|
549
549
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnIncomingCallAnswered', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
550
550
|
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
551
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* UpdateCustomerCallLegOnNumberCallStatusCompleted
|
|
554
|
+
*
|
|
555
|
+
* Updates this CallLeg record.
|
|
556
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
557
|
+
*
|
|
558
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
559
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
560
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
561
|
+
* @throws Error if called on a new (unsaved) record
|
|
562
|
+
*
|
|
563
|
+
* @example
|
|
564
|
+
* ```typescript
|
|
565
|
+
* const record = await odinClient.callLegs.get(id);
|
|
566
|
+
* await record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).execute();
|
|
567
|
+
*
|
|
568
|
+
* // Dry run (for debugging)
|
|
569
|
+
* const payload = record.updateCustomerCallLegOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
570
|
+
* ```
|
|
571
|
+
*/
|
|
572
|
+
updateCustomerCallLegOnNumberCallStatusCompleted(propertiesOrOptions, options) {
|
|
573
|
+
var _a;
|
|
574
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
575
|
+
throw new Error('updateCustomerCallLegOnNumberCallStatusCompleted requires an existing record. Use accessor.get() first.');
|
|
576
|
+
let properties = {};
|
|
577
|
+
let opts = options;
|
|
578
|
+
if (propertiesOrOptions) {
|
|
579
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
580
|
+
opts = propertiesOrOptions;
|
|
581
|
+
}
|
|
582
|
+
else {
|
|
583
|
+
properties = propertiesOrOptions;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCustomerCallLegOnNumberCallStatusCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
587
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'CallLeg', payload, () => { this._pendingLinks = []; });
|
|
588
|
+
}
|
|
552
589
|
}
|
|
553
590
|
exports.CallLegRecord = CallLegRecord;
|
|
554
591
|
// ============================================
|
|
@@ -30,6 +30,7 @@ import { UpdateCallOnInboundCallCanceledProperties } from '../actions-v2/UpdateC
|
|
|
30
30
|
import { UpdateCallOnInboundCallCompletedProperties } from '../actions-v2/UpdateCallOnInboundCallCompletedDto';
|
|
31
31
|
import { UpdateCallOnInboundCallInitiatedProperties } from '../actions-v2/UpdateCallOnInboundCallInitiatedDto';
|
|
32
32
|
import { UpdateCallOnInboundCallRingingProperties } from '../actions-v2/UpdateCallOnInboundCallRingingDto';
|
|
33
|
+
import { UpdateCallOnNumberCallStatusCompletedProperties } from '../actions-v2/UpdateCallOnNumberCallStatusCompletedDto';
|
|
33
34
|
import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
|
|
34
35
|
import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
|
|
35
36
|
import { LeadRecord } from './LeadRecord';
|
|
@@ -497,6 +498,32 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
497
498
|
journeyId?: string;
|
|
498
499
|
stageKey?: string;
|
|
499
500
|
}): ActionBuilder;
|
|
501
|
+
/**
|
|
502
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
503
|
+
*
|
|
504
|
+
* Updates this Call record with the specified properties.
|
|
505
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
506
|
+
*
|
|
507
|
+
* @param properties - Required properties for this action
|
|
508
|
+
* @param options - Optional settings
|
|
509
|
+
* @param options.journeyId - Associate with a journey
|
|
510
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
511
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
512
|
+
* @throws Error if called on a new (unsaved) record
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```typescript
|
|
516
|
+
* const record = await odinClient.calls.get(id);
|
|
517
|
+
* await record.updateCallOnNumberCallStatusCompleted({ ... }).execute();
|
|
518
|
+
*
|
|
519
|
+
* // Dry run (for debugging)
|
|
520
|
+
* const payload = record.updateCallOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
521
|
+
* ```
|
|
522
|
+
*/
|
|
523
|
+
updateCallOnNumberCallStatusCompleted(properties: UpdateCallOnNumberCallStatusCompletedProperties, options?: {
|
|
524
|
+
journeyId?: string;
|
|
525
|
+
stageKey?: string;
|
|
526
|
+
}): ActionBuilder;
|
|
500
527
|
/**
|
|
501
528
|
* UpdateCallOnTaskRouterAssign
|
|
502
529
|
*
|
|
@@ -675,6 +675,35 @@ class CallRecord {
|
|
|
675
675
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnInboundCallRinging', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
676
676
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
677
677
|
}
|
|
678
|
+
/**
|
|
679
|
+
* UpdateCallOnNumberCallStatusCompleted
|
|
680
|
+
*
|
|
681
|
+
* Updates this Call record with the specified properties.
|
|
682
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
683
|
+
*
|
|
684
|
+
* @param properties - Required properties for this action
|
|
685
|
+
* @param options - Optional settings
|
|
686
|
+
* @param options.journeyId - Associate with a journey
|
|
687
|
+
* @param options.stageKey - Transition to pipeline stage
|
|
688
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
689
|
+
* @throws Error if called on a new (unsaved) record
|
|
690
|
+
*
|
|
691
|
+
* @example
|
|
692
|
+
* ```typescript
|
|
693
|
+
* const record = await odinClient.calls.get(id);
|
|
694
|
+
* await record.updateCallOnNumberCallStatusCompleted({ ... }).execute();
|
|
695
|
+
*
|
|
696
|
+
* // Dry run (for debugging)
|
|
697
|
+
* const payload = record.updateCallOnNumberCallStatusCompleted({ ... }).dryRun();
|
|
698
|
+
* ```
|
|
699
|
+
*/
|
|
700
|
+
updateCallOnNumberCallStatusCompleted(properties, options) {
|
|
701
|
+
var _a;
|
|
702
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
703
|
+
throw new Error('updateCallOnNumberCallStatusCompleted requires an existing record. Use accessor.get() first.');
|
|
704
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateCallOnNumberCallStatusCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
|
|
705
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
706
|
+
}
|
|
678
707
|
/**
|
|
679
708
|
* UpdateCallOnTaskRouterAssign
|
|
680
709
|
*
|
|
@@ -4531,6 +4531,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
4531
4531
|
journeyId?: string;
|
|
4532
4532
|
stageKey?: string;
|
|
4533
4533
|
}): ActionBuilder;
|
|
4534
|
+
/**
|
|
4535
|
+
* MoveBusinessInstallFromInProgressToPending
|
|
4536
|
+
*
|
|
4537
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
4538
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
4539
|
+
*
|
|
4540
|
+
* @remarks Transitions to stage: BusinessInstallPipelineStagePending
|
|
4541
|
+
*
|
|
4542
|
+
* @param options - Optional settings
|
|
4543
|
+
* @param options.journeyId - Associate with a journey
|
|
4544
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
4545
|
+
* @throws Error if called on a new (unsaved) record
|
|
4546
|
+
*
|
|
4547
|
+
* @example
|
|
4548
|
+
* ```typescript
|
|
4549
|
+
* const record = await odinClient.workOrders.get(id);
|
|
4550
|
+
* await record.moveBusinessInstallFromInProgressToPending().execute();
|
|
4551
|
+
*
|
|
4552
|
+
* // Dry run (for debugging)
|
|
4553
|
+
* const payload = record.moveBusinessInstallFromInProgressToPending().dryRun();
|
|
4554
|
+
* ```
|
|
4555
|
+
*/
|
|
4556
|
+
moveBusinessInstallFromInProgressToPending(options?: {
|
|
4557
|
+
journeyId?: string;
|
|
4558
|
+
}): ActionBuilder;
|
|
4534
4559
|
/**
|
|
4535
4560
|
* MoveBusinessInstallToCancelled
|
|
4536
4561
|
*
|
|
@@ -6247,6 +6272,31 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6247
6272
|
moveServiceWorkOrderFromAcceptedToScheduled(options?: {
|
|
6248
6273
|
journeyId?: string;
|
|
6249
6274
|
}): ActionBuilder;
|
|
6275
|
+
/**
|
|
6276
|
+
* MoveServiceWorkOrderFromInProgressToPending
|
|
6277
|
+
*
|
|
6278
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6279
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6280
|
+
*
|
|
6281
|
+
* @remarks Transitions to stage: CustomerWorkOrdersStagePending
|
|
6282
|
+
*
|
|
6283
|
+
* @param options - Optional settings
|
|
6284
|
+
* @param options.journeyId - Associate with a journey
|
|
6285
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6286
|
+
* @throws Error if called on a new (unsaved) record
|
|
6287
|
+
*
|
|
6288
|
+
* @example
|
|
6289
|
+
* ```typescript
|
|
6290
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6291
|
+
* await record.moveServiceWorkOrderFromInProgressToPending().execute();
|
|
6292
|
+
*
|
|
6293
|
+
* // Dry run (for debugging)
|
|
6294
|
+
* const payload = record.moveServiceWorkOrderFromInProgressToPending().dryRun();
|
|
6295
|
+
* ```
|
|
6296
|
+
*/
|
|
6297
|
+
moveServiceWorkOrderFromInProgressToPending(options?: {
|
|
6298
|
+
journeyId?: string;
|
|
6299
|
+
}): ActionBuilder;
|
|
6250
6300
|
/**
|
|
6251
6301
|
* MoveServiceWorkOrderToCancelled
|
|
6252
6302
|
*
|
|
@@ -6808,6 +6808,35 @@ class WorkOrderRecord {
|
|
|
6808
6808
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'ManageSLA', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
6809
6809
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
|
|
6810
6810
|
}
|
|
6811
|
+
/**
|
|
6812
|
+
* MoveBusinessInstallFromInProgressToPending
|
|
6813
|
+
*
|
|
6814
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
6815
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
6816
|
+
*
|
|
6817
|
+
* @remarks Transitions to stage: BusinessInstallPipelineStagePending
|
|
6818
|
+
*
|
|
6819
|
+
* @param options - Optional settings
|
|
6820
|
+
* @param options.journeyId - Associate with a journey
|
|
6821
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
6822
|
+
* @throws Error if called on a new (unsaved) record
|
|
6823
|
+
*
|
|
6824
|
+
* @example
|
|
6825
|
+
* ```typescript
|
|
6826
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6827
|
+
* await record.moveBusinessInstallFromInProgressToPending().execute();
|
|
6828
|
+
*
|
|
6829
|
+
* // Dry run (for debugging)
|
|
6830
|
+
* const payload = record.moveBusinessInstallFromInProgressToPending().dryRun();
|
|
6831
|
+
* ```
|
|
6832
|
+
*/
|
|
6833
|
+
moveBusinessInstallFromInProgressToPending(options) {
|
|
6834
|
+
var _a;
|
|
6835
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
6836
|
+
throw new Error('moveBusinessInstallFromInProgressToPending requires an existing record. Use accessor.get() first.');
|
|
6837
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveBusinessInstallFromInProgressToPending', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'BusinessInstallPipelineStagePending' }, options);
|
|
6838
|
+
return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
|
|
6839
|
+
}
|
|
6811
6840
|
/**
|
|
6812
6841
|
* MoveBusinessInstallToCancelled
|
|
6813
6842
|
*
|
|
@@ -8788,6 +8817,35 @@ class WorkOrderRecord {
|
|
|
8788
8817
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveServiceWorkOrderFromAcceptedToScheduled', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'WorkOrderStageScheduled' }, options);
|
|
8789
8818
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
|
|
8790
8819
|
}
|
|
8820
|
+
/**
|
|
8821
|
+
* MoveServiceWorkOrderFromInProgressToPending
|
|
8822
|
+
*
|
|
8823
|
+
* Transitions this WorkOrder record to a new pipeline stage.
|
|
8824
|
+
* Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
|
|
8825
|
+
*
|
|
8826
|
+
* @remarks Transitions to stage: CustomerWorkOrdersStagePending
|
|
8827
|
+
*
|
|
8828
|
+
* @param options - Optional settings
|
|
8829
|
+
* @param options.journeyId - Associate with a journey
|
|
8830
|
+
* @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
|
|
8831
|
+
* @throws Error if called on a new (unsaved) record
|
|
8832
|
+
*
|
|
8833
|
+
* @example
|
|
8834
|
+
* ```typescript
|
|
8835
|
+
* const record = await odinClient.workOrders.get(id);
|
|
8836
|
+
* await record.moveServiceWorkOrderFromInProgressToPending().execute();
|
|
8837
|
+
*
|
|
8838
|
+
* // Dry run (for debugging)
|
|
8839
|
+
* const payload = record.moveServiceWorkOrderFromInProgressToPending().dryRun();
|
|
8840
|
+
* ```
|
|
8841
|
+
*/
|
|
8842
|
+
moveServiceWorkOrderFromInProgressToPending(options) {
|
|
8843
|
+
var _a;
|
|
8844
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
8845
|
+
throw new Error('moveServiceWorkOrderFromInProgressToPending requires an existing record. Use accessor.get() first.');
|
|
8846
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveServiceWorkOrderFromInProgressToPending', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'CustomerWorkOrdersStagePending' }, options);
|
|
8847
|
+
return new ActionBuilder(this._provider, 'FieldServiceModule', 'WorkOrder', payload, () => { this._pendingLinks = []; });
|
|
8848
|
+
}
|
|
8791
8849
|
/**
|
|
8792
8850
|
* MoveServiceWorkOrderToCancelled
|
|
8793
8851
|
*
|