@d19n/youfibre-odin-sdk 2.0.369 → 2.0.371
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 +5 -2
- package/dist/actions-v2/CreateNoteForCaseSalesAppDto.d.ts +73 -0
- package/dist/actions-v2/CreateNoteForCaseSalesAppDto.js +59 -0
- package/dist/actions-v2/MoveCaseToSolvedWithNoteSalesAppDto.d.ts +171 -0
- package/dist/actions-v2/MoveCaseToSolvedWithNoteSalesAppDto.js +124 -0
- package/dist/actions-v2/UpdateContactAppPreferencesDto.d.ts +6 -6
- package/dist/actions-v2/UpdateContactAppPreferencesDto.js +2 -2
- package/dist/actions-v2/UpdateOutboundDialCampaignCaseDto.d.ts +15 -1
- package/dist/actions-v2/UpdateOutboundDialCampaignCaseOnDialEndDto.d.ts +15 -1
- package/dist/api-sdk-v2/QaBatchApi.d.ts +48 -0
- package/dist/api-sdk-v2/QaBatchApi.js +155 -0
- package/dist/api-sdk-v2/QaReportApi.d.ts +2 -0
- package/dist/api-sdk-v2/QaReportApi.js +6 -0
- package/dist/db-sdk-v2/QaBatchDb.d.ts +120 -0
- package/dist/db-sdk-v2/QaBatchDb.js +204 -0
- package/dist/db-sdk-v2/QaReportDb.d.ts +2 -0
- package/dist/db-sdk-v2/QaReportDb.js +6 -0
- package/dist/entities-v2/AiRouteRequest.d.ts +2 -0
- package/dist/entities-v2/AiRouteRequest.js +2 -0
- package/dist/entities-v2/Contact.d.ts +5 -19
- package/dist/entities-v2/Contact.js +4 -18
- package/dist/entities-v2/EquipmentReturnItem.d.ts +6 -6
- package/dist/entities-v2/EquipmentReturnItem.js +6 -6
- package/dist/entities-v2/HomeMove.d.ts +23 -1
- package/dist/entities-v2/HomeMove.js +17 -1
- package/dist/entities-v2/Note.d.ts +18 -9
- package/dist/entities-v2/Note.js +4 -2
- package/dist/entities-v2/Order.d.ts +9 -1
- package/dist/entities-v2/Order.js +2 -0
- package/dist/entities-v2/OutboundDialCampaignCase.d.ts +17 -1
- package/dist/entities-v2/OutboundDialCampaignCase.js +4 -0
- package/dist/entities-v2/QaBatch.d.ts +235 -0
- package/dist/entities-v2/QaBatch.js +122 -0
- package/dist/entities-v2/QaReport.d.ts +12 -1
- package/dist/entities-v2/QaReport.js +2 -0
- package/dist/entities-v2/Recontract.d.ts +17 -1
- package/dist/entities-v2/Recontract.js +4 -0
- package/dist/entities-v2/Returns.d.ts +30 -30
- package/dist/entities-v2/Returns.js +30 -30
- package/dist/records-v2/CaseRecord.d.ts +87 -0
- package/dist/records-v2/CaseRecord.js +133 -1
- package/dist/records-v2/NoteRecord.d.ts +29 -0
- package/dist/records-v2/NoteRecord.js +36 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ await workOrder.completeWorkOrder({ ... });
|
|
|
124
124
|
|
|
125
125
|
## Entities
|
|
126
126
|
|
|
127
|
-
This SDK includes **
|
|
127
|
+
This SDK includes **205** entities across **13** modules.
|
|
128
128
|
|
|
129
129
|
### CrmModule
|
|
130
130
|
|
|
@@ -222,6 +222,7 @@ This SDK includes **204** entities across **13** modules.
|
|
|
222
222
|
| **OutboundDialCampaignCase** | OutboundDialCampaignCase Entity Definition | DEFAULT |
|
|
223
223
|
| **OutboundDialSession** | OutboundDialSession Entity Definition | DEFAULT |
|
|
224
224
|
| **QaAutoFail** | QaAutoFail Entity Definition | DEFAULT |
|
|
225
|
+
| **QaBatch** | QaBatch Entity Definition | DEFAULT |
|
|
225
226
|
| **QaEvaluation** | QaEvaluation Entity Definition | DEFAULT |
|
|
226
227
|
| **QaEvaluationAnswer** | QaEvaluationAnswer Entity Definition | DEFAULT |
|
|
227
228
|
| **QaReport** | QaReport Entity Definition | DEFAULT |
|
|
@@ -397,7 +398,7 @@ This SDK includes **204** entities across **13** modules.
|
|
|
397
398
|
|
|
398
399
|
## Actions
|
|
399
400
|
|
|
400
|
-
This SDK includes **
|
|
401
|
+
This SDK includes **934** actions.
|
|
401
402
|
|
|
402
403
|
### Action Types
|
|
403
404
|
|
|
@@ -1270,6 +1271,8 @@ This SDK includes **932** actions.
|
|
|
1270
1271
|
| `CaseCreateNote` | CREATE | k1.t-hEOJjsDb.SupportModule.Note.Create.CaseCreateNote |
|
|
1271
1272
|
| `CreateNote` | CREATE | k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNote |
|
|
1272
1273
|
| `CreateNoteForCaseAssignment` | CREATE | k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseAssignment |
|
|
1274
|
+
| `CreateNoteForCaseSalesApp` | CREATE | k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp |
|
|
1275
|
+
| `MoveCaseToSolvedWithNoteSalesApp` | CREATE | k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp |
|
|
1273
1276
|
| `UpdateNote` | UPDATE | k1.t-hEOJjsDb.SupportModule.Note.Update.UpdateNote |
|
|
1274
1277
|
|
|
1275
1278
|
#### PermissionToFail
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateNoteForCaseSalesApp Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Sales App: a required note on a case, left when resolving it or returning it to a manager
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Note
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey CreateNoteForCaseSalesApp
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* RabbitMQ message payload for CreateNoteForCaseSalesApp created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateNoteForCaseSalesAppMessage extends OdinRecordCreatedEvent<CreateNoteForCaseSalesAppDto, CreateNoteForCaseSalesAppProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateNoteForCaseSalesApp action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 1
|
|
26
|
+
* @property Optional fields: 0
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateNoteForCaseSalesAppProperties {
|
|
29
|
+
/**
|
|
30
|
+
* Add note
|
|
31
|
+
*
|
|
32
|
+
* body of the note (Customer Service - Note)
|
|
33
|
+
* @type {TEXT_LONG}
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
Body: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Add a note
|
|
40
|
+
*
|
|
41
|
+
* Sales App: a required note on a case, left when resolving it or returning it to a manager
|
|
42
|
+
*
|
|
43
|
+
* @actionType CREATE - Creates a new Note record
|
|
44
|
+
* @module SupportModule
|
|
45
|
+
* @entity Note
|
|
46
|
+
* @entityType DEFAULT (Default)
|
|
47
|
+
* @event k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp
|
|
48
|
+
* @permission schema.action.createnoteforcasesalesapp.trigger
|
|
49
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
50
|
+
*/
|
|
51
|
+
export declare class CreateNoteForCaseSalesAppDto extends OdinRecordCreateDto<CreateNoteForCaseSalesAppProperties> {
|
|
52
|
+
/** Used by SDK generators to identify action type */
|
|
53
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
54
|
+
static readonly ACTION_KEY = "CreateNoteForCaseSalesApp";
|
|
55
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
56
|
+
static readonly ENTITIES: string[];
|
|
57
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
58
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp";
|
|
59
|
+
static readonly PERMISSION = "schema.action.createnoteforcasesalesapp.trigger";
|
|
60
|
+
/** Step metadata - entity this action targets */
|
|
61
|
+
static readonly STEP_ENTITY = "SupportModule:Note";
|
|
62
|
+
static readonly STEP_SCHEMA_ID = "edce572c-c57f-4e29-ab99-7cf54001ebdf";
|
|
63
|
+
static readonly STEP_SCHEMA_ACTION_ID = "fe2e7406-1af7-42a2-815f-cfafe07113f3";
|
|
64
|
+
static readonly STEP_SCHEMA_TYPE_ID = "6b8ba290-25cd-4b73-a624-5005bed6afe6";
|
|
65
|
+
static readonly STEP_TYPE = "DEFAULT";
|
|
66
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
67
|
+
readonly actionName: string;
|
|
68
|
+
readonly schemaActionId: string;
|
|
69
|
+
readonly entity: string;
|
|
70
|
+
constructor(properties: CreateNoteForCaseSalesAppProperties, options?: {
|
|
71
|
+
journeyId?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateNoteForCaseSalesApp Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Sales App: a required note on a case, left when resolving it or returning it to a manager
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Note
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey CreateNoteForCaseSalesApp
|
|
11
|
+
* @event k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateNoteForCaseSalesAppDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Add a note
|
|
20
|
+
*
|
|
21
|
+
* Sales App: a required note on a case, left when resolving it or returning it to a manager
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new Note record
|
|
24
|
+
* @module SupportModule
|
|
25
|
+
* @entity Note
|
|
26
|
+
* @entityType DEFAULT (Default)
|
|
27
|
+
* @event k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp
|
|
28
|
+
* @permission schema.action.createnoteforcasesalesapp.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateNoteForCaseSalesAppDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'SupportModule:Note',
|
|
35
|
+
type: 'DEFAULT',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreateNoteForCaseSalesApp';
|
|
40
|
+
this.schemaActionId = 'fe2e7406-1af7-42a2-815f-cfafe07113f3';
|
|
41
|
+
this.entity = 'SupportModule:Note';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateNoteForCaseSalesAppDto = CreateNoteForCaseSalesAppDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateNoteForCaseSalesAppDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateNoteForCaseSalesAppDto.ACTION_KEY = 'CreateNoteForCaseSalesApp';
|
|
48
|
+
CreateNoteForCaseSalesAppDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
CreateNoteForCaseSalesAppDto.ENTITIES = ['Note'];
|
|
50
|
+
CreateNoteForCaseSalesAppDto.ENTITY_TYPE = 'DEFAULT';
|
|
51
|
+
CreateNoteForCaseSalesAppDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp';
|
|
52
|
+
CreateNoteForCaseSalesAppDto.PERMISSION = 'schema.action.createnoteforcasesalesapp.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateNoteForCaseSalesAppDto.STEP_ENTITY = 'SupportModule:Note';
|
|
55
|
+
CreateNoteForCaseSalesAppDto.STEP_SCHEMA_ID = 'edce572c-c57f-4e29-ab99-7cf54001ebdf';
|
|
56
|
+
CreateNoteForCaseSalesAppDto.STEP_SCHEMA_ACTION_ID = 'fe2e7406-1af7-42a2-815f-cfafe07113f3';
|
|
57
|
+
CreateNoteForCaseSalesAppDto.STEP_SCHEMA_TYPE_ID = '6b8ba290-25cd-4b73-a624-5005bed6afe6';
|
|
58
|
+
CreateNoteForCaseSalesAppDto.STEP_TYPE = 'DEFAULT';
|
|
59
|
+
CreateNoteForCaseSalesAppDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveCaseToSolvedWithNoteSalesApp Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Sales App: resolve a case — moves it to Solved with a required note
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey MoveCaseToSolvedWithNoteSalesApp
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedWithNoteSalesApp
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* Properties for CreateNoteForCaseSalesApp action
|
|
17
|
+
*
|
|
18
|
+
* @property Required fields: 1
|
|
19
|
+
* @property Optional fields: 0
|
|
20
|
+
*/
|
|
21
|
+
export interface CreateNoteForCaseSalesAppProperties {
|
|
22
|
+
/**
|
|
23
|
+
* Add note
|
|
24
|
+
*
|
|
25
|
+
* body of the note (Customer Service - Note)
|
|
26
|
+
* @type {TEXT_LONG}
|
|
27
|
+
* @required
|
|
28
|
+
*/
|
|
29
|
+
Body: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Add a note
|
|
33
|
+
*
|
|
34
|
+
* Sales App: a required note on a case, left when resolving it or returning it to a manager
|
|
35
|
+
*
|
|
36
|
+
* @actionType CREATE - Creates a new Note record
|
|
37
|
+
* @module SupportModule
|
|
38
|
+
* @entity Note
|
|
39
|
+
* @entityType DEFAULT (Default)
|
|
40
|
+
* @event k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp
|
|
41
|
+
* @permission schema.action.createnoteforcasesalesapp.trigger
|
|
42
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
43
|
+
*/
|
|
44
|
+
export declare class CreateNoteForCaseSalesAppDto extends OdinRecordCreateDto<CreateNoteForCaseSalesAppProperties> {
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
47
|
+
static readonly ACTION_KEY = "CreateNoteForCaseSalesApp";
|
|
48
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
49
|
+
static readonly ENTITIES: string[];
|
|
50
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
51
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp";
|
|
52
|
+
static readonly PERMISSION = "schema.action.createnoteforcasesalesapp.trigger";
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
static readonly STEP_ENTITY = "SupportModule:Note";
|
|
55
|
+
static readonly STEP_SCHEMA_ID = "edce572c-c57f-4e29-ab99-7cf54001ebdf";
|
|
56
|
+
static readonly STEP_SCHEMA_ACTION_ID = "fe2e7406-1af7-42a2-815f-cfafe07113f3";
|
|
57
|
+
static readonly STEP_SCHEMA_TYPE_ID = "6b8ba290-25cd-4b73-a624-5005bed6afe6";
|
|
58
|
+
static readonly STEP_TYPE = "DEFAULT";
|
|
59
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
60
|
+
readonly actionName: string;
|
|
61
|
+
readonly schemaActionId: string;
|
|
62
|
+
readonly entity: string;
|
|
63
|
+
constructor(properties: CreateNoteForCaseSalesAppProperties, options?: {
|
|
64
|
+
journeyId?: string;
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
declare type StepClassMap = {
|
|
68
|
+
CreateNoteForCaseSalesAppDto: CreateNoteForCaseSalesAppDto;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Link definition for connecting steps in MoveCaseToSolvedWithNoteSalesApp
|
|
72
|
+
*/
|
|
73
|
+
export interface MoveCaseToSolvedWithNoteSalesAppStepLink {
|
|
74
|
+
/**
|
|
75
|
+
* The stepKey of the target step to link TO
|
|
76
|
+
* Must reference another step's stepKey in the same flow
|
|
77
|
+
*/
|
|
78
|
+
stepKey: string;
|
|
79
|
+
/**
|
|
80
|
+
* The schema association ID (UUID) defining the relationship
|
|
81
|
+
* Use the association.id from the schema association definition
|
|
82
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
83
|
+
*/
|
|
84
|
+
schemaAssociationId: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Step definition with linking metadata for MoveCaseToSolvedWithNoteSalesApp
|
|
88
|
+
*/
|
|
89
|
+
export interface MoveCaseToSolvedWithNoteSalesAppStepDefinition {
|
|
90
|
+
/** Unique identifier for this step */
|
|
91
|
+
stepKey: string;
|
|
92
|
+
/** The DTO class name for this step */
|
|
93
|
+
dtoClass: string;
|
|
94
|
+
/** The entity this step creates (Module:Entity format) */
|
|
95
|
+
entity: string;
|
|
96
|
+
/** Links to create after this step executes */
|
|
97
|
+
linksTo: MoveCaseToSolvedWithNoteSalesAppStepLink[] | null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Type-safe step keys for MoveCaseToSolvedWithNoteSalesApp
|
|
101
|
+
*/
|
|
102
|
+
export declare const MoveCaseToSolvedWithNoteSalesAppSteps: {
|
|
103
|
+
readonly add_a_note: "add_a_note";
|
|
104
|
+
};
|
|
105
|
+
export declare type MoveCaseToSolvedWithNoteSalesAppStepKey = typeof MoveCaseToSolvedWithNoteSalesAppSteps[keyof typeof MoveCaseToSolvedWithNoteSalesAppSteps];
|
|
106
|
+
/**
|
|
107
|
+
* RabbitMQ message payload for MoveCaseToSolvedWithNoteSalesApp step flow events
|
|
108
|
+
*
|
|
109
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedWithNoteSalesApp
|
|
110
|
+
*/
|
|
111
|
+
export interface MoveCaseToSolvedWithNoteSalesAppMessage extends OdinRecordUpdatedEvent<MoveCaseToSolvedWithNoteSalesAppDto, {}> {
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Properties for MoveCaseToSolvedWithNoteSalesApp action
|
|
115
|
+
*
|
|
116
|
+
*/
|
|
117
|
+
export interface MoveCaseToSolvedWithNoteSalesAppProperties {
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Resolve
|
|
121
|
+
*
|
|
122
|
+
* Sales App: resolve a case — moves it to Solved with a required note
|
|
123
|
+
*
|
|
124
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
125
|
+
* @module SupportModule
|
|
126
|
+
* @entity Case
|
|
127
|
+
* @entityType DEFAULT (Default)
|
|
128
|
+
* @targetStages CaseDefaultStageSolved
|
|
129
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedWithNoteSalesApp
|
|
130
|
+
* @permission schema.action.movecasetosolvedwithnotesalesapp.trigger
|
|
131
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
132
|
+
*/
|
|
133
|
+
export declare class MoveCaseToSolvedWithNoteSalesAppDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
134
|
+
/** Used by SDK generators to identify action type */
|
|
135
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
136
|
+
static readonly ACTION_KEY = "MoveCaseToSolvedWithNoteSalesApp";
|
|
137
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
138
|
+
static readonly ENTITIES: string[];
|
|
139
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
140
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedWithNoteSalesApp";
|
|
141
|
+
static readonly SCHEMA_ACTION_ID = "b0255753-618d-40c7-9293-4f52dbf672d4";
|
|
142
|
+
static readonly PERMISSION = "schema.action.movecasetosolvedwithnotesalesapp.trigger";
|
|
143
|
+
static readonly TARGET_STAGES: readonly ["CaseDefaultStageSolved"];
|
|
144
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
145
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
146
|
+
static readonly HAS_STEP_LINKS = false;
|
|
147
|
+
/**
|
|
148
|
+
* Step definitions with linking metadata
|
|
149
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
150
|
+
*/
|
|
151
|
+
static readonly stepDefinitions: MoveCaseToSolvedWithNoteSalesAppStepDefinition[];
|
|
152
|
+
/** Type-safe step key accessor */
|
|
153
|
+
static readonly Steps: {
|
|
154
|
+
readonly add_a_note: "add_a_note";
|
|
155
|
+
};
|
|
156
|
+
readonly actionName: string;
|
|
157
|
+
readonly schemaActionId: string;
|
|
158
|
+
readonly entity: string;
|
|
159
|
+
readonly stageKey: string;
|
|
160
|
+
constructor(record: OdinRecord<any> | {
|
|
161
|
+
id: string;
|
|
162
|
+
entity: string;
|
|
163
|
+
type?: string;
|
|
164
|
+
}, options?: {
|
|
165
|
+
journeyId?: string;
|
|
166
|
+
});
|
|
167
|
+
/** Step classes that can be used with this action */
|
|
168
|
+
static readonly stepClasses: readonly ["CreateNoteForCaseSalesAppDto"];
|
|
169
|
+
steps: StepClassMap[(typeof MoveCaseToSolvedWithNoteSalesAppDto.stepClasses)[number]][];
|
|
170
|
+
}
|
|
171
|
+
export {};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveCaseToSolvedWithNoteSalesApp Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Sales App: resolve a case — moves it to Solved with a required note
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey MoveCaseToSolvedWithNoteSalesApp
|
|
11
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedWithNoteSalesApp
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoveCaseToSolvedWithNoteSalesAppDto = exports.MoveCaseToSolvedWithNoteSalesAppSteps = exports.CreateNoteForCaseSalesAppDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Add a note
|
|
20
|
+
*
|
|
21
|
+
* Sales App: a required note on a case, left when resolving it or returning it to a manager
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new Note record
|
|
24
|
+
* @module SupportModule
|
|
25
|
+
* @entity Note
|
|
26
|
+
* @entityType DEFAULT (Default)
|
|
27
|
+
* @event k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp
|
|
28
|
+
* @permission schema.action.createnoteforcasesalesapp.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateNoteForCaseSalesAppDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'SupportModule:Note',
|
|
35
|
+
type: 'DEFAULT',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreateNoteForCaseSalesApp';
|
|
40
|
+
this.schemaActionId = 'fe2e7406-1af7-42a2-815f-cfafe07113f3';
|
|
41
|
+
this.entity = 'SupportModule:Note';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateNoteForCaseSalesAppDto = CreateNoteForCaseSalesAppDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateNoteForCaseSalesAppDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateNoteForCaseSalesAppDto.ACTION_KEY = 'CreateNoteForCaseSalesApp';
|
|
48
|
+
CreateNoteForCaseSalesAppDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
CreateNoteForCaseSalesAppDto.ENTITIES = ['Note'];
|
|
50
|
+
CreateNoteForCaseSalesAppDto.ENTITY_TYPE = 'DEFAULT';
|
|
51
|
+
CreateNoteForCaseSalesAppDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Note.Create.CreateNoteForCaseSalesApp';
|
|
52
|
+
CreateNoteForCaseSalesAppDto.PERMISSION = 'schema.action.createnoteforcasesalesapp.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateNoteForCaseSalesAppDto.STEP_ENTITY = 'SupportModule:Note';
|
|
55
|
+
CreateNoteForCaseSalesAppDto.STEP_SCHEMA_ID = 'edce572c-c57f-4e29-ab99-7cf54001ebdf';
|
|
56
|
+
CreateNoteForCaseSalesAppDto.STEP_SCHEMA_ACTION_ID = 'fe2e7406-1af7-42a2-815f-cfafe07113f3';
|
|
57
|
+
CreateNoteForCaseSalesAppDto.STEP_SCHEMA_TYPE_ID = '6b8ba290-25cd-4b73-a624-5005bed6afe6';
|
|
58
|
+
CreateNoteForCaseSalesAppDto.STEP_TYPE = 'DEFAULT';
|
|
59
|
+
CreateNoteForCaseSalesAppDto.AUTO_LINK_PARENT = true;
|
|
60
|
+
/**
|
|
61
|
+
* Type-safe step keys for MoveCaseToSolvedWithNoteSalesApp
|
|
62
|
+
*/
|
|
63
|
+
exports.MoveCaseToSolvedWithNoteSalesAppSteps = {
|
|
64
|
+
add_a_note: 'add_a_note',
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Resolve
|
|
68
|
+
*
|
|
69
|
+
* Sales App: resolve a case — moves it to Solved with a required note
|
|
70
|
+
*
|
|
71
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
72
|
+
* @module SupportModule
|
|
73
|
+
* @entity Case
|
|
74
|
+
* @entityType DEFAULT (Default)
|
|
75
|
+
* @targetStages CaseDefaultStageSolved
|
|
76
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedWithNoteSalesApp
|
|
77
|
+
* @permission schema.action.movecasetosolvedwithnotesalesapp.trigger
|
|
78
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
79
|
+
*/
|
|
80
|
+
class MoveCaseToSolvedWithNoteSalesAppDto 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 = 'MoveCaseToSolvedWithNoteSalesApp';
|
|
90
|
+
this.schemaActionId = 'b0255753-618d-40c7-9293-4f52dbf672d4';
|
|
91
|
+
this.entity = 'SupportModule:Case';
|
|
92
|
+
this.stageKey = 'CaseDefaultStageSolved';
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
exports.MoveCaseToSolvedWithNoteSalesAppDto = MoveCaseToSolvedWithNoteSalesAppDto;
|
|
96
|
+
/** Used by SDK generators to identify action type */
|
|
97
|
+
MoveCaseToSolvedWithNoteSalesAppDto.ACTION_TYPE = 'UPDATE';
|
|
98
|
+
MoveCaseToSolvedWithNoteSalesAppDto.ACTION_KEY = 'MoveCaseToSolvedWithNoteSalesApp';
|
|
99
|
+
MoveCaseToSolvedWithNoteSalesAppDto.MODULE_NAME = 'SupportModule';
|
|
100
|
+
MoveCaseToSolvedWithNoteSalesAppDto.ENTITIES = ['Case'];
|
|
101
|
+
MoveCaseToSolvedWithNoteSalesAppDto.ENTITY_TYPE = 'DEFAULT';
|
|
102
|
+
MoveCaseToSolvedWithNoteSalesAppDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedWithNoteSalesApp';
|
|
103
|
+
MoveCaseToSolvedWithNoteSalesAppDto.SCHEMA_ACTION_ID = 'b0255753-618d-40c7-9293-4f52dbf672d4';
|
|
104
|
+
MoveCaseToSolvedWithNoteSalesAppDto.PERMISSION = 'schema.action.movecasetosolvedwithnotesalesapp.trigger';
|
|
105
|
+
MoveCaseToSolvedWithNoteSalesAppDto.TARGET_STAGES = ['CaseDefaultStageSolved'];
|
|
106
|
+
MoveCaseToSolvedWithNoteSalesAppDto.IS_STAGE_TRANSITION = true;
|
|
107
|
+
MoveCaseToSolvedWithNoteSalesAppDto.IS_MULTI_STEP_FLOW = false;
|
|
108
|
+
MoveCaseToSolvedWithNoteSalesAppDto.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
|
+
MoveCaseToSolvedWithNoteSalesAppDto.stepDefinitions = [
|
|
114
|
+
{
|
|
115
|
+
stepKey: 'add_a_note',
|
|
116
|
+
dtoClass: 'CreateNoteForCaseSalesAppDto',
|
|
117
|
+
entity: 'SupportModule:Note',
|
|
118
|
+
linksTo: null
|
|
119
|
+
}
|
|
120
|
+
];
|
|
121
|
+
/** Type-safe step key accessor */
|
|
122
|
+
MoveCaseToSolvedWithNoteSalesAppDto.Steps = exports.MoveCaseToSolvedWithNoteSalesAppSteps;
|
|
123
|
+
/** Step classes that can be used with this action */
|
|
124
|
+
MoveCaseToSolvedWithNoteSalesAppDto.stepClasses = ['CreateNoteForCaseSalesAppDto'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* UpdateContactAppPreferences Action DTO
|
|
3
3
|
*
|
|
4
|
-
* Record whether the customer has push notifications and biometric login turned on in the app,
|
|
4
|
+
* Record whether the customer has push notifications and biometric login turned on in the app, when each last changed, and the platforms they use the app on.
|
|
5
5
|
*
|
|
6
6
|
* @module CrmModule
|
|
7
7
|
* @entity Contact
|
|
@@ -54,17 +54,17 @@ export interface UpdateContactAppPreferencesProperties {
|
|
|
54
54
|
*/
|
|
55
55
|
AppBiometricLoginStatusDate?: string | null;
|
|
56
56
|
/**
|
|
57
|
-
*
|
|
57
|
+
* Mobile Device Platform
|
|
58
58
|
*
|
|
59
|
-
*
|
|
60
|
-
* @type {
|
|
59
|
+
* Every platform the customer has used the app on. A platform is added when the app first reports it and is never removed. Empty until the app reports one (PORTAPP-3483).
|
|
60
|
+
* @type {ENUM_MULTI_SELECT}
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
AppDevicePlatforms?: string | null;
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
* UpdateContactAppPreferences
|
|
66
66
|
*
|
|
67
|
-
* Record whether the customer has push notifications and biometric login turned on in the app,
|
|
67
|
+
* Record whether the customer has push notifications and biometric login turned on in the app, when each last changed, and the platforms they use the app on.
|
|
68
68
|
*
|
|
69
69
|
* @actionType UPDATE - Updates an existing Contact record
|
|
70
70
|
* @module CrmModule
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* UpdateContactAppPreferences Action DTO
|
|
4
4
|
*
|
|
5
|
-
* Record whether the customer has push notifications and biometric login turned on in the app,
|
|
5
|
+
* Record whether the customer has push notifications and biometric login turned on in the app, when each last changed, and the platforms they use the app on.
|
|
6
6
|
*
|
|
7
7
|
* @module CrmModule
|
|
8
8
|
* @entity Contact
|
|
@@ -17,7 +17,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
|
|
|
17
17
|
/**
|
|
18
18
|
* UpdateContactAppPreferences
|
|
19
19
|
*
|
|
20
|
-
* Record whether the customer has push notifications and biometric login turned on in the app,
|
|
20
|
+
* Record whether the customer has push notifications and biometric login turned on in the app, when each last changed, and the platforms they use the app on.
|
|
21
21
|
*
|
|
22
22
|
* @actionType UPDATE - Updates an existing Contact record
|
|
23
23
|
* @module CrmModule
|
|
@@ -22,7 +22,7 @@ export interface UpdateOutboundDialCampaignCaseMessage extends OdinRecordUpdated
|
|
|
22
22
|
* Properties for UpdateOutboundDialCampaignCase action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 9
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateOutboundDialCampaignCaseProperties {
|
|
28
28
|
/**
|
|
@@ -74,6 +74,20 @@ export interface UpdateOutboundDialCampaignCaseProperties {
|
|
|
74
74
|
* @type {TEXT}
|
|
75
75
|
*/
|
|
76
76
|
LastDialOutcome?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* AgentOutcome
|
|
79
|
+
*
|
|
80
|
+
* The call outcome the agent saved, e.g. "RET - Re-Contracted - Free MESH" (CASES-1993). Reporting only: LastDialOutcome is what drives retries.
|
|
81
|
+
* @type {TEXT}
|
|
82
|
+
*/
|
|
83
|
+
AgentOutcome?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* SkipReason
|
|
86
|
+
*
|
|
87
|
+
* Why the agent skipped this case before dialling: ALREADY_RECONTRACTED, OTS_OTHER_PROCESS, PENDING_CANCELLATION, or "OTHER: <note>" (CASES-1993).
|
|
88
|
+
* @type {TEXT}
|
|
89
|
+
*/
|
|
90
|
+
SkipReason?: string | null;
|
|
77
91
|
}
|
|
78
92
|
/**
|
|
79
93
|
* UpdateOutboundDialCampaignCase
|
|
@@ -22,7 +22,7 @@ export interface UpdateOutboundDialCampaignCaseOnDialEndMessage extends OdinReco
|
|
|
22
22
|
* Properties for UpdateOutboundDialCampaignCaseOnDialEnd action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 1
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 7
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateOutboundDialCampaignCaseOnDialEndProperties {
|
|
28
28
|
/**
|
|
@@ -68,6 +68,20 @@ export interface UpdateOutboundDialCampaignCaseOnDialEndProperties {
|
|
|
68
68
|
* @type {TEXT}
|
|
69
69
|
*/
|
|
70
70
|
LastDialOutcome?: string | null;
|
|
71
|
+
/**
|
|
72
|
+
* AgentOutcome
|
|
73
|
+
*
|
|
74
|
+
* The call outcome the agent saved, e.g. "RET - Re-Contracted - Free MESH" (CASES-1993). Reporting only: LastDialOutcome is what drives retries.
|
|
75
|
+
* @type {TEXT}
|
|
76
|
+
*/
|
|
77
|
+
AgentOutcome?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* SkipReason
|
|
80
|
+
*
|
|
81
|
+
* Why the agent skipped this case before dialling: ALREADY_RECONTRACTED, OTS_OTHER_PROCESS, PENDING_CANCELLATION, or "OTHER: <note>" (CASES-1993).
|
|
82
|
+
* @type {TEXT}
|
|
83
|
+
*/
|
|
84
|
+
SkipReason?: string | null;
|
|
71
85
|
}
|
|
72
86
|
/**
|
|
73
87
|
* UpdateOutboundDialCampaignCaseOnDialEnd
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
4
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
5
|
+
import { QaBatchProperties } from '../entities-v2/QaBatch';
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use OdinApiClient.
|
|
8
|
+
*
|
|
9
|
+
* Migration:
|
|
10
|
+
* - Old: new QaBatchApi(authParams).get(id)
|
|
11
|
+
* - New: new odin.qabatch.get(id)
|
|
12
|
+
*
|
|
13
|
+
* The new OdinApiClient returns typed record wrappers with action methods.
|
|
14
|
+
*/
|
|
15
|
+
export declare class QaBatchApi extends ApiProvider {
|
|
16
|
+
protected readonly authToken?: string;
|
|
17
|
+
private readonly moduleName;
|
|
18
|
+
private readonly entityName;
|
|
19
|
+
private sourceRecord;
|
|
20
|
+
private _qareport?;
|
|
21
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
22
|
+
get qareport(): ApiRecordLinkManager;
|
|
23
|
+
setRecord(sourceRecord: any): void;
|
|
24
|
+
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
25
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchProperties>>>;
|
|
26
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchProperties>>>;
|
|
27
|
+
reIndex(body: {
|
|
28
|
+
id: string;
|
|
29
|
+
schemaId: string;
|
|
30
|
+
}[]): Promise<any>;
|
|
31
|
+
get(qaBatchId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchProperties>>;
|
|
32
|
+
getMany(qaBatchIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<QaBatchProperties>[]>;
|
|
33
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
34
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
35
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
|
|
36
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
|
|
37
|
+
delete(qaBatchId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
38
|
+
deleteMany(qaBatchIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
|
|
39
|
+
restore(qaBatchIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
|
|
40
|
+
applyAction(dto: any): Promise<any[]>;
|
|
41
|
+
bulkApplyActions(dtos: any[]): Promise<any[]>;
|
|
42
|
+
getVersions(): Promise<{
|
|
43
|
+
[key: string]: Record<string, any>;
|
|
44
|
+
}>;
|
|
45
|
+
getRevisionTimeline(): Promise<{
|
|
46
|
+
[key: string]: Record<string, any>[];
|
|
47
|
+
}>;
|
|
48
|
+
}
|