@d19n/youfibre-odin-sdk 2.0.243-beta.0 → 2.0.243-beta.1
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 +3 -4
- package/dist/actions-v2/CreateCampaignOutboundCallDto.d.ts +1 -8
- package/dist/actions-v2/CreateCaseFromCallDto.d.ts +123 -0
- package/dist/actions-v2/CreateCaseFromCallDto.js +52 -0
- package/dist/actions-v2/CreateDispatchAmcoWorkOrderDto.d.ts +9 -1
- package/dist/actions-v2/CreateDispatchAmcoWorkOrderFromOrderDto.d.ts +9 -1
- package/dist/actions-v2/CreateMissedIncomingCallDto.d.ts +1 -9
- package/dist/actions-v2/CreateOutboundCallDto.d.ts +1 -8
- package/dist/actions-v2/UpdateCallAnalyticsDto.d.ts +1 -9
- package/dist/actions-v2/UpdateCaseChannelOnCallDto.d.ts +71 -0
- package/dist/actions-v2/UpdateCaseChannelOnCallDto.js +54 -0
- package/dist/api-sdk-v2/CallApi.d.ts +2 -2
- package/dist/api-sdk-v2/CallApi.js +6 -6
- package/dist/api-sdk-v2/CaseApi.d.ts +2 -2
- package/dist/api-sdk-v2/CaseApi.js +6 -6
- package/dist/db-sdk-v2/CallDb.d.ts +2 -2
- package/dist/db-sdk-v2/CallDb.js +6 -6
- package/dist/db-sdk-v2/CaseDb.d.ts +2 -2
- package/dist/db-sdk-v2/CaseDb.js +6 -6
- package/dist/entities-v2/Call.d.ts +7 -37
- package/dist/entities-v2/Call.js +5 -25
- package/dist/entities-v2/Case.d.ts +27 -3
- package/dist/entities-v2/Case.js +4 -0
- package/dist/entities-v2/WorkOrder.d.ts +135 -0
- package/dist/entities-v2/WorkOrder.js +44 -4
- package/dist/records-v2/CallRecord.d.ts +20 -20
- package/dist/records-v2/CallRecord.js +33 -33
- package/dist/records-v2/CaseRecord.d.ts +76 -20
- package/dist/records-v2/CaseRecord.js +98 -33
- package/dist/records-v2/WorkOrderRecord.d.ts +1 -26
- package/dist/records-v2/WorkOrderRecord.js +0 -29
- package/package.json +1 -1
- package/dist/actions-v2/MoveCollectionAmcoToNonReturnedDto.d.ts +0 -115
- package/dist/actions-v2/MoveCollectionAmcoToNonReturnedDto.js +0 -80
package/README.md
CHANGED
|
@@ -360,7 +360,7 @@ This SDK includes **172** entities across **12** modules.
|
|
|
360
360
|
|
|
361
361
|
## Actions
|
|
362
362
|
|
|
363
|
-
This SDK includes **
|
|
363
|
+
This SDK includes **753** actions.
|
|
364
364
|
|
|
365
365
|
### Action Types
|
|
366
366
|
|
|
@@ -508,7 +508,6 @@ This SDK includes **752** actions.
|
|
|
508
508
|
| `MoveCollectionAmcoToComplete` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToComplete |
|
|
509
509
|
| `MoveCollectionAmcoToError` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToError |
|
|
510
510
|
| `MoveCollectionAmcoToFailedInspection` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToFailedInspection |
|
|
511
|
-
| `MoveCollectionAmcoToNonReturned` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToNonReturned |
|
|
512
511
|
| `MoveCollectionAmcoToOverridden` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToOverridden |
|
|
513
512
|
| `MoveCollectionAmcoToPendingInspection` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingInspection |
|
|
514
513
|
| `MoveCollectionAmcoToPendingReturn` | STAGE_TRANSITION | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Transition.MoveCollectionAmcoToPendingReturn |
|
|
@@ -639,8 +638,6 @@ This SDK includes **752** actions.
|
|
|
639
638
|
|
|
640
639
|
**MoveCollectionAmcoToFailedInspection Target Stages:** `CollectionAmcoStageFailedInspection`
|
|
641
640
|
|
|
642
|
-
**MoveCollectionAmcoToNonReturned Target Stages:** `CollectionAmcoStageNonReturned`
|
|
643
|
-
|
|
644
641
|
**MoveCollectionAmcoToOverridden Target Stages:** `CollectionAmcoStageOverridden`
|
|
645
642
|
|
|
646
643
|
**MoveCollectionAmcoToPendingInspection Target Stages:** `CollectionAmcoStagePendingInspection`
|
|
@@ -824,6 +821,7 @@ This SDK includes **752** actions.
|
|
|
824
821
|
| `CasteTransitionOpenToEscalated` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
|
|
825
822
|
| `ChangeCaseChannel` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ChangeCaseChannel |
|
|
826
823
|
| `CreateCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
|
|
824
|
+
| `CreateCaseFromCall` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall |
|
|
827
825
|
| `CreateCaseFromCases` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases |
|
|
828
826
|
| `CreateCaseFromContact` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
|
|
829
827
|
| `CreateCaseWithDpa` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseWithDpa |
|
|
@@ -852,6 +850,7 @@ This SDK includes **752** actions.
|
|
|
852
850
|
| `RemoveAssignmentFromCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.RemoveAssignmentFromCase |
|
|
853
851
|
| `TestingCsatUpdateFlow` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase |
|
|
854
852
|
| `UpdateAdditionalNote` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateAdditionalNote |
|
|
853
|
+
| `UpdateCaseChannelOnCall` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall |
|
|
855
854
|
| `UpdateCaseCsat` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat |
|
|
856
855
|
| `UpdateCaseOnDialAttempt` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseOnDialAttempt |
|
|
857
856
|
| `UpdateCaseOnDialConnected` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseOnDialConnected |
|
|
@@ -22,7 +22,7 @@ export interface CreateCampaignOutboundCallMessage extends OdinRecordCreatedEven
|
|
|
22
22
|
* Properties for CreateCampaignOutboundCall action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 15
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 1
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateCampaignOutboundCallProperties {
|
|
28
28
|
/**
|
|
@@ -152,13 +152,6 @@ export interface CreateCampaignOutboundCallProperties {
|
|
|
152
152
|
* @type {ENUM}
|
|
153
153
|
*/
|
|
154
154
|
AmdResult?: string | null;
|
|
155
|
-
/**
|
|
156
|
-
* DialOrigin
|
|
157
|
-
*
|
|
158
|
-
* DialOrigin
|
|
159
|
-
* @type {ENUM}
|
|
160
|
-
*/
|
|
161
|
-
DialOrigin?: string | null;
|
|
162
155
|
}
|
|
163
156
|
/**
|
|
164
157
|
* Builder for CreateCampaignOutboundCall action
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateCaseFromCall Action DTO
|
|
3
|
+
*
|
|
4
|
+
* CreateCaseFromCall
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey CreateCaseFromCall
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateCaseFromCall created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateCaseFromCallMessage extends OdinRecordCreatedEvent<CreateCaseFromCallDto, CreateCaseFromCallProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateCaseFromCall action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 2
|
|
25
|
+
* @property Optional fields: 7
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateCaseFromCallProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Subject
|
|
30
|
+
*
|
|
31
|
+
* Data field for Case records. Used by Customer Service team.
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Subject: string;
|
|
36
|
+
/**
|
|
37
|
+
* Channel
|
|
38
|
+
*
|
|
39
|
+
* the channel from the source (Customer Service - Case)
|
|
40
|
+
* @type {ENUM}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Channel: string;
|
|
44
|
+
/**
|
|
45
|
+
* source
|
|
46
|
+
*
|
|
47
|
+
* source of the case (Customer Service - Case)
|
|
48
|
+
* @type {ENUM}
|
|
49
|
+
*/
|
|
50
|
+
Source?: string | null;
|
|
51
|
+
/**
|
|
52
|
+
* Allow CSAT communications
|
|
53
|
+
*
|
|
54
|
+
* Allow CSAT communications
|
|
55
|
+
* @type {BOOLEAN}
|
|
56
|
+
*/
|
|
57
|
+
CsatAllowed?: boolean | null;
|
|
58
|
+
/**
|
|
59
|
+
* Contact
|
|
60
|
+
*
|
|
61
|
+
* Reference identifier for Case relationships. Used for data integrity.
|
|
62
|
+
* @type {LOOKUP}
|
|
63
|
+
*/
|
|
64
|
+
ContactId?: string | null;
|
|
65
|
+
/**
|
|
66
|
+
* account
|
|
67
|
+
*
|
|
68
|
+
* Reference identifier for Case relationships. Used for data integrity.
|
|
69
|
+
* @type {LOOKUP}
|
|
70
|
+
*/
|
|
71
|
+
AccountId?: string | null;
|
|
72
|
+
/**
|
|
73
|
+
* Owner
|
|
74
|
+
*
|
|
75
|
+
* Reference identifier for Case relationships. Used for data integrity.
|
|
76
|
+
* @type {LOOKUP}
|
|
77
|
+
*/
|
|
78
|
+
OwnerId?: string | null;
|
|
79
|
+
/**
|
|
80
|
+
* Team
|
|
81
|
+
*
|
|
82
|
+
* Reference identifier for Case relationships. Used for data integrity.
|
|
83
|
+
* @type {LOOKUP}
|
|
84
|
+
*/
|
|
85
|
+
TeamId?: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Case ID
|
|
88
|
+
*
|
|
89
|
+
* Parent case (Customer Service - Case)
|
|
90
|
+
* @type {LOOKUP}
|
|
91
|
+
*/
|
|
92
|
+
CaseId?: string | null;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* CreateCaseFromCall
|
|
96
|
+
*
|
|
97
|
+
* @actionType CREATE - Creates a new Case record
|
|
98
|
+
* @module SupportModule
|
|
99
|
+
* @entity Case
|
|
100
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall
|
|
101
|
+
* @permission schema.action.createcasefromcall.trigger
|
|
102
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
103
|
+
*/
|
|
104
|
+
export declare class CreateCaseFromCallDto extends OdinRecordCreateDto<CreateCaseFromCallProperties> {
|
|
105
|
+
/** Used by SDK generators to identify action type */
|
|
106
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
107
|
+
static readonly ACTION_KEY = "CreateCaseFromCall";
|
|
108
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
109
|
+
static readonly ENTITIES: string[];
|
|
110
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall";
|
|
111
|
+
static readonly PERMISSION = "schema.action.createcasefromcall.trigger";
|
|
112
|
+
/** Step metadata - entity this action targets */
|
|
113
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
114
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
115
|
+
static readonly STEP_SCHEMA_ACTION_ID = "5eab080f-53dd-4317-8bf1-0067625bf74b";
|
|
116
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
117
|
+
readonly actionName: string;
|
|
118
|
+
readonly schemaActionId: string;
|
|
119
|
+
readonly entity: string;
|
|
120
|
+
constructor(properties: CreateCaseFromCallProperties, options?: {
|
|
121
|
+
journeyId?: string;
|
|
122
|
+
});
|
|
123
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateCaseFromCall Action DTO
|
|
4
|
+
*
|
|
5
|
+
* CreateCaseFromCall
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey CreateCaseFromCall
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateCaseFromCallDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateCaseFromCall
|
|
19
|
+
*
|
|
20
|
+
* @actionType CREATE - Creates a new Case record
|
|
21
|
+
* @module SupportModule
|
|
22
|
+
* @entity Case
|
|
23
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall
|
|
24
|
+
* @permission schema.action.createcasefromcall.trigger
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class CreateCaseFromCallDto extends core_1.OdinRecordCreateDto {
|
|
28
|
+
constructor(properties, options) {
|
|
29
|
+
super({
|
|
30
|
+
entity: 'SupportModule:Case',
|
|
31
|
+
type: undefined,
|
|
32
|
+
properties,
|
|
33
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
34
|
+
});
|
|
35
|
+
this.actionName = 'CreateCaseFromCall';
|
|
36
|
+
this.schemaActionId = '5eab080f-53dd-4317-8bf1-0067625bf74b';
|
|
37
|
+
this.entity = 'SupportModule:Case';
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.CreateCaseFromCallDto = CreateCaseFromCallDto;
|
|
41
|
+
/** Used by SDK generators to identify action type */
|
|
42
|
+
CreateCaseFromCallDto.ACTION_TYPE = 'CREATE';
|
|
43
|
+
CreateCaseFromCallDto.ACTION_KEY = 'CreateCaseFromCall';
|
|
44
|
+
CreateCaseFromCallDto.MODULE_NAME = 'SupportModule';
|
|
45
|
+
CreateCaseFromCallDto.ENTITIES = ['Case'];
|
|
46
|
+
CreateCaseFromCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCall';
|
|
47
|
+
CreateCaseFromCallDto.PERMISSION = 'schema.action.createcasefromcall.trigger';
|
|
48
|
+
/** Step metadata - entity this action targets */
|
|
49
|
+
CreateCaseFromCallDto.STEP_ENTITY = 'SupportModule:Case';
|
|
50
|
+
CreateCaseFromCallDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
51
|
+
CreateCaseFromCallDto.STEP_SCHEMA_ACTION_ID = '5eab080f-53dd-4317-8bf1-0067625bf74b';
|
|
52
|
+
CreateCaseFromCallDto.AUTO_LINK_PARENT = true;
|
|
@@ -22,10 +22,18 @@ export interface CreateDispatchAmcoWorkOrderMessage extends OdinRecordCreatedEve
|
|
|
22
22
|
/**
|
|
23
23
|
* Properties for CreateDispatchAmcoWorkOrder action
|
|
24
24
|
*
|
|
25
|
-
* @property Required fields:
|
|
25
|
+
* @property Required fields: 1
|
|
26
26
|
* @property Optional fields: 22
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateDispatchAmcoWorkOrderProperties {
|
|
29
|
+
/**
|
|
30
|
+
* Dispatch Reason
|
|
31
|
+
*
|
|
32
|
+
* Dispatch Reason
|
|
33
|
+
* @type {ENUM}
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
DispatchReason: string;
|
|
29
37
|
/**
|
|
30
38
|
* PendingAmcoOrder
|
|
31
39
|
*
|
|
@@ -14,10 +14,18 @@ import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdated
|
|
|
14
14
|
/**
|
|
15
15
|
* Properties for CreateDispatchAmcoWorkOrder action
|
|
16
16
|
*
|
|
17
|
-
* @property Required fields:
|
|
17
|
+
* @property Required fields: 1
|
|
18
18
|
* @property Optional fields: 22
|
|
19
19
|
*/
|
|
20
20
|
export interface CreateDispatchAmcoWorkOrderProperties {
|
|
21
|
+
/**
|
|
22
|
+
* Dispatch Reason
|
|
23
|
+
*
|
|
24
|
+
* Dispatch Reason
|
|
25
|
+
* @type {ENUM}
|
|
26
|
+
* @required
|
|
27
|
+
*/
|
|
28
|
+
DispatchReason: string;
|
|
21
29
|
/**
|
|
22
30
|
* PendingAmcoOrder
|
|
23
31
|
*
|
|
@@ -21,7 +21,7 @@ export interface CreateMissedIncomingCallMessage extends OdinRecordCreatedEvent<
|
|
|
21
21
|
/**
|
|
22
22
|
* Properties for CreateMissedIncomingCall action
|
|
23
23
|
*
|
|
24
|
-
* @property Required fields:
|
|
24
|
+
* @property Required fields: 9
|
|
25
25
|
* @property Optional fields: 0
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateMissedIncomingCallProperties {
|
|
@@ -97,14 +97,6 @@ export interface CreateMissedIncomingCallProperties {
|
|
|
97
97
|
* @required
|
|
98
98
|
*/
|
|
99
99
|
EndTime: string;
|
|
100
|
-
/**
|
|
101
|
-
* Duration
|
|
102
|
-
*
|
|
103
|
-
* Data field for Call records. Used by Communications team.
|
|
104
|
-
* @type {TEXT}
|
|
105
|
-
* @required
|
|
106
|
-
*/
|
|
107
|
-
Duration: string;
|
|
108
100
|
}
|
|
109
101
|
/**
|
|
110
102
|
* CreateMissedIncomingCall
|
|
@@ -22,7 +22,7 @@ export interface CreateOutboundCallMessage extends OdinRecordCreatedEvent<Create
|
|
|
22
22
|
* Properties for CreateOutboundCall action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 13
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 3
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateOutboundCallProperties {
|
|
28
28
|
/**
|
|
@@ -150,13 +150,6 @@ export interface CreateOutboundCallProperties {
|
|
|
150
150
|
* @type {LOOKUP}
|
|
151
151
|
*/
|
|
152
152
|
ContactId?: string | null;
|
|
153
|
-
/**
|
|
154
|
-
* DialOrigin
|
|
155
|
-
*
|
|
156
|
-
* DialOrigin
|
|
157
|
-
* @type {ENUM}
|
|
158
|
-
*/
|
|
159
|
-
DialOrigin?: string | null;
|
|
160
153
|
}
|
|
161
154
|
/**
|
|
162
155
|
* Builder for CreateOutboundCall action
|
|
@@ -21,18 +21,10 @@ export interface UpdateCallAnalyticsMessage extends OdinRecordUpdatedEvent<Updat
|
|
|
21
21
|
/**
|
|
22
22
|
* Properties for UpdateCallAnalytics action
|
|
23
23
|
*
|
|
24
|
-
* @property Required fields:
|
|
24
|
+
* @property Required fields: 3
|
|
25
25
|
* @property Optional fields: 1
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateCallAnalyticsProperties {
|
|
28
|
-
/**
|
|
29
|
-
* TimeInQueued
|
|
30
|
-
*
|
|
31
|
-
* TimeInQueued (Communications - Call)
|
|
32
|
-
* @type {TEXT}
|
|
33
|
-
* @required
|
|
34
|
-
*/
|
|
35
|
-
TimeInQueued: string;
|
|
36
28
|
/**
|
|
37
29
|
* TimeInProgress
|
|
38
30
|
*
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCaseChannelOnCall Action DTO
|
|
3
|
+
*
|
|
4
|
+
* UpdateCaseChannelOnCall
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey UpdateCaseChannelOnCall
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall
|
|
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 UpdateCaseChannelOnCall updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCaseChannelOnCallMessage extends OdinRecordUpdatedEvent<UpdateCaseChannelOnCallDto, UpdateCaseChannelOnCallProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCaseChannelOnCall action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCaseChannelOnCallProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Channel
|
|
30
|
+
*
|
|
31
|
+
* the channel from the source (Customer Service - Case)
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Channel: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* UpdateCaseChannelOnCall
|
|
39
|
+
*
|
|
40
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
41
|
+
* @module SupportModule
|
|
42
|
+
* @entity Case
|
|
43
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall
|
|
44
|
+
* @permission schema.action.updatecasechanneloncall.trigger
|
|
45
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
46
|
+
*/
|
|
47
|
+
export declare class UpdateCaseChannelOnCallDto extends OdinRecordUpdateDto<UpdateCaseChannelOnCallProperties> {
|
|
48
|
+
/** Used by SDK generators to identify action type */
|
|
49
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
50
|
+
static readonly ACTION_KEY = "UpdateCaseChannelOnCall";
|
|
51
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
52
|
+
static readonly ENTITIES: string[];
|
|
53
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall";
|
|
54
|
+
static readonly PERMISSION = "schema.action.updatecasechanneloncall.trigger";
|
|
55
|
+
/** Step metadata - entity this action targets */
|
|
56
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
57
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
58
|
+
static readonly STEP_SCHEMA_ACTION_ID = "8d8490b8-2721-4cd2-95c5-b63f91c04507";
|
|
59
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
60
|
+
readonly actionName: string;
|
|
61
|
+
readonly schemaActionId: string;
|
|
62
|
+
readonly entity: string;
|
|
63
|
+
constructor(record: OdinRecord<any> | {
|
|
64
|
+
id: string;
|
|
65
|
+
entity: string;
|
|
66
|
+
type?: string;
|
|
67
|
+
}, properties: UpdateCaseChannelOnCallProperties, options?: {
|
|
68
|
+
journeyId?: string;
|
|
69
|
+
stageKey?: string;
|
|
70
|
+
});
|
|
71
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCaseChannelOnCall Action DTO
|
|
4
|
+
*
|
|
5
|
+
* UpdateCaseChannelOnCall
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey UpdateCaseChannelOnCall
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCaseChannelOnCallDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCaseChannelOnCall
|
|
19
|
+
*
|
|
20
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
21
|
+
* @module SupportModule
|
|
22
|
+
* @entity Case
|
|
23
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall
|
|
24
|
+
* @permission schema.action.updatecasechanneloncall.trigger
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class UpdateCaseChannelOnCallDto extends core_1.OdinRecordUpdateDto {
|
|
28
|
+
constructor(record, properties, 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
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'UpdateCaseChannelOnCall';
|
|
38
|
+
this.schemaActionId = '8d8490b8-2721-4cd2-95c5-b63f91c04507';
|
|
39
|
+
this.entity = 'SupportModule:Case';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.UpdateCaseChannelOnCallDto = UpdateCaseChannelOnCallDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
UpdateCaseChannelOnCallDto.ACTION_TYPE = 'UPDATE';
|
|
45
|
+
UpdateCaseChannelOnCallDto.ACTION_KEY = 'UpdateCaseChannelOnCall';
|
|
46
|
+
UpdateCaseChannelOnCallDto.MODULE_NAME = 'SupportModule';
|
|
47
|
+
UpdateCaseChannelOnCallDto.ENTITIES = ['Case'];
|
|
48
|
+
UpdateCaseChannelOnCallDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseChannelOnCall';
|
|
49
|
+
UpdateCaseChannelOnCallDto.PERMISSION = 'schema.action.updatecasechanneloncall.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
UpdateCaseChannelOnCallDto.STEP_ENTITY = 'SupportModule:Case';
|
|
52
|
+
UpdateCaseChannelOnCallDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
53
|
+
UpdateCaseChannelOnCallDto.STEP_SCHEMA_ACTION_ID = '8d8490b8-2721-4cd2-95c5-b63f91c04507';
|
|
54
|
+
UpdateCaseChannelOnCallDto.AUTO_LINK_PARENT = false;
|
|
@@ -23,13 +23,13 @@ export declare class CallApi extends ApiProvider {
|
|
|
23
23
|
private _contact?;
|
|
24
24
|
private _call__callleg?;
|
|
25
25
|
private _callleg_call?;
|
|
26
|
-
private _case?;
|
|
27
26
|
private _workorder?;
|
|
28
27
|
private _twiliocallevent?;
|
|
29
28
|
private _outbounddialcampaign?;
|
|
30
29
|
private _outbounddialcampaigncase?;
|
|
31
30
|
private _outbounddialsession__call?;
|
|
32
31
|
private _call__outbounddialsession?;
|
|
32
|
+
private _case?;
|
|
33
33
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
34
34
|
get lead(): ApiRecordLinkManager;
|
|
35
35
|
get file(): ApiRecordLinkManager;
|
|
@@ -37,13 +37,13 @@ export declare class CallApi extends ApiProvider {
|
|
|
37
37
|
get contact(): ApiRecordLinkManager;
|
|
38
38
|
get call__callleg(): ApiRecordLinkManager;
|
|
39
39
|
get callleg_call(): ApiRecordLinkManager;
|
|
40
|
-
get case(): ApiRecordLinkManager;
|
|
41
40
|
get workorder(): ApiRecordLinkManager;
|
|
42
41
|
get twiliocallevent(): ApiRecordLinkManager;
|
|
43
42
|
get outbounddialcampaign(): ApiRecordLinkManager;
|
|
44
43
|
get outbounddialcampaigncase(): ApiRecordLinkManager;
|
|
45
44
|
get outbounddialsession__call(): ApiRecordLinkManager;
|
|
46
45
|
get call__outbounddialsession(): ApiRecordLinkManager;
|
|
46
|
+
get case(): ApiRecordLinkManager;
|
|
47
47
|
setRecord(sourceRecord: any): void;
|
|
48
48
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
49
49
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<CallProperties>>>;
|
|
@@ -69,12 +69,6 @@ class CallApi extends api_provider_1.ApiProvider {
|
|
|
69
69
|
}
|
|
70
70
|
return this._callleg_call;
|
|
71
71
|
}
|
|
72
|
-
get case() {
|
|
73
|
-
if (!this._case) {
|
|
74
|
-
this._case = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Call', 'SupportModule:Case', 'Call__Case');
|
|
75
|
-
}
|
|
76
|
-
return this._case;
|
|
77
|
-
}
|
|
78
72
|
get workorder() {
|
|
79
73
|
if (!this._workorder) {
|
|
80
74
|
this._workorder = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Call', 'FieldServiceModule:WorkOrder', 'Call__WorkOrder');
|
|
@@ -111,6 +105,12 @@ class CallApi extends api_provider_1.ApiProvider {
|
|
|
111
105
|
}
|
|
112
106
|
return this._call__outbounddialsession;
|
|
113
107
|
}
|
|
108
|
+
get case() {
|
|
109
|
+
if (!this._case) {
|
|
110
|
+
this._case = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Call', 'SupportModule:Case', 'Call__Case');
|
|
111
|
+
}
|
|
112
|
+
return this._case;
|
|
113
|
+
}
|
|
114
114
|
// ============================================
|
|
115
115
|
// STANDARD METHODS (Unchanged API)
|
|
116
116
|
// ============================================
|
|
@@ -26,7 +26,6 @@ export declare class CaseApi extends ApiProvider {
|
|
|
26
26
|
private _conversation?;
|
|
27
27
|
private _order?;
|
|
28
28
|
private _pushnotification?;
|
|
29
|
-
private _call?;
|
|
30
29
|
private _contact?;
|
|
31
30
|
private _email?;
|
|
32
31
|
private _workorder?;
|
|
@@ -45,6 +44,7 @@ export declare class CaseApi extends ApiProvider {
|
|
|
45
44
|
private _onetouchswitch?;
|
|
46
45
|
private _outbounddialcampaigncase?;
|
|
47
46
|
private _outbounddialsession?;
|
|
47
|
+
private _call?;
|
|
48
48
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
49
49
|
get activitylog(): ApiRecordLinkManager;
|
|
50
50
|
get caseaction(): ApiRecordLinkManager;
|
|
@@ -55,7 +55,6 @@ export declare class CaseApi extends ApiProvider {
|
|
|
55
55
|
get conversation(): ApiRecordLinkManager;
|
|
56
56
|
get order(): ApiRecordLinkManager;
|
|
57
57
|
get pushnotification(): ApiRecordLinkManager;
|
|
58
|
-
get call(): ApiRecordLinkManager;
|
|
59
58
|
get contact(): ApiRecordLinkManager;
|
|
60
59
|
get email(): ApiRecordLinkManager;
|
|
61
60
|
get workorder(): ApiRecordLinkManager;
|
|
@@ -74,6 +73,7 @@ export declare class CaseApi extends ApiProvider {
|
|
|
74
73
|
get onetouchswitch(): ApiRecordLinkManager;
|
|
75
74
|
get outbounddialcampaigncase(): ApiRecordLinkManager;
|
|
76
75
|
get outbounddialsession(): ApiRecordLinkManager;
|
|
76
|
+
get call(): ApiRecordLinkManager;
|
|
77
77
|
setRecord(sourceRecord: any): void;
|
|
78
78
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
79
79
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<CaseProperties>>>;
|
|
@@ -87,12 +87,6 @@ class CaseApi extends api_provider_1.ApiProvider {
|
|
|
87
87
|
}
|
|
88
88
|
return this._pushnotification;
|
|
89
89
|
}
|
|
90
|
-
get call() {
|
|
91
|
-
if (!this._call) {
|
|
92
|
-
this._call = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SupportModule:Case', 'NotificationModule:Call', 'Call__Case');
|
|
93
|
-
}
|
|
94
|
-
return this._call;
|
|
95
|
-
}
|
|
96
90
|
get contact() {
|
|
97
91
|
if (!this._contact) {
|
|
98
92
|
this._contact = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SupportModule:Case', 'CrmModule:Contact', 'Case__Contact');
|
|
@@ -201,6 +195,12 @@ class CaseApi extends api_provider_1.ApiProvider {
|
|
|
201
195
|
}
|
|
202
196
|
return this._outbounddialsession;
|
|
203
197
|
}
|
|
198
|
+
get call() {
|
|
199
|
+
if (!this._call) {
|
|
200
|
+
this._call = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SupportModule:Case', 'NotificationModule:Call', 'Call__Case');
|
|
201
|
+
}
|
|
202
|
+
return this._call;
|
|
203
|
+
}
|
|
204
204
|
// ============================================
|
|
205
205
|
// STANDARD METHODS (Unchanged API)
|
|
206
206
|
// ============================================
|
|
@@ -27,13 +27,13 @@ export declare class CallDb extends DbProvider {
|
|
|
27
27
|
private _contact?;
|
|
28
28
|
private _call__callleg?;
|
|
29
29
|
private _callleg_call?;
|
|
30
|
-
private _case?;
|
|
31
30
|
private _workorder?;
|
|
32
31
|
private _twiliocallevent?;
|
|
33
32
|
private _outbounddialcampaign?;
|
|
34
33
|
private _outbounddialcampaigncase?;
|
|
35
34
|
private _outbounddialsession__call?;
|
|
36
35
|
private _call__outbounddialsession?;
|
|
36
|
+
private _case?;
|
|
37
37
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
38
38
|
get lead(): DbRecordLinkManager;
|
|
39
39
|
get file(): DbRecordLinkManager;
|
|
@@ -41,13 +41,13 @@ export declare class CallDb extends DbProvider {
|
|
|
41
41
|
get contact(): DbRecordLinkManager;
|
|
42
42
|
get call__callleg(): DbRecordLinkManager;
|
|
43
43
|
get callleg_call(): DbRecordLinkManager;
|
|
44
|
-
get case(): DbRecordLinkManager;
|
|
45
44
|
get workorder(): DbRecordLinkManager;
|
|
46
45
|
get twiliocallevent(): DbRecordLinkManager;
|
|
47
46
|
get outbounddialcampaign(): DbRecordLinkManager;
|
|
48
47
|
get outbounddialcampaigncase(): DbRecordLinkManager;
|
|
49
48
|
get outbounddialsession__call(): DbRecordLinkManager;
|
|
50
49
|
get call__outbounddialsession(): DbRecordLinkManager;
|
|
50
|
+
get case(): DbRecordLinkManager;
|
|
51
51
|
setRecord(sourceRecord: any): void;
|
|
52
52
|
/**
|
|
53
53
|
* Search records with manual pagination control
|
package/dist/db-sdk-v2/CallDb.js
CHANGED
|
@@ -74,12 +74,6 @@ class CallDb extends db_provider_1.DbProvider {
|
|
|
74
74
|
}
|
|
75
75
|
return this._callleg_call;
|
|
76
76
|
}
|
|
77
|
-
get case() {
|
|
78
|
-
if (!this._case) {
|
|
79
|
-
this._case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Call', 'SupportModule:Case', 'Call__Case');
|
|
80
|
-
}
|
|
81
|
-
return this._case;
|
|
82
|
-
}
|
|
83
77
|
get workorder() {
|
|
84
78
|
if (!this._workorder) {
|
|
85
79
|
this._workorder = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Call', 'FieldServiceModule:WorkOrder', 'Call__WorkOrder');
|
|
@@ -116,6 +110,12 @@ class CallDb extends db_provider_1.DbProvider {
|
|
|
116
110
|
}
|
|
117
111
|
return this._call__outbounddialsession;
|
|
118
112
|
}
|
|
113
|
+
get case() {
|
|
114
|
+
if (!this._case) {
|
|
115
|
+
this._case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Call', 'SupportModule:Case', 'Call__Case');
|
|
116
|
+
}
|
|
117
|
+
return this._case;
|
|
118
|
+
}
|
|
119
119
|
// ============================================
|
|
120
120
|
// STANDARD METHODS
|
|
121
121
|
// ============================================
|