@d19n/youfibre-odin-sdk 2.0.19-beta.0 → 2.0.20
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 +2 -1
- package/dist/actions-v2/UpdateCaseCsatDto.d.ts +135 -0
- package/dist/actions-v2/UpdateCaseCsatDto.js +56 -0
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +4 -4
- package/dist/entities-v2/Contact.d.ts +7 -0
- package/dist/entities-v2/Contact.js +2 -0
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +2 -0
- package/dist/entities-v2/CustomerDeviceOnt.js +2 -0
- package/dist/entities-v2/Order.d.ts +517 -517
- package/dist/entities-v2/Order.js +236 -236
- package/dist/entities-v2/WorkOrder.d.ts +246 -0
- package/dist/entities-v2/WorkOrder.js +6 -0
- package/dist/records-v2/CaseRecord.d.ts +28 -0
- package/dist/records-v2/CaseRecord.js +37 -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 **585** actions.
|
|
356
356
|
|
|
357
357
|
### Action Types
|
|
358
358
|
|
|
@@ -735,6 +735,7 @@ This SDK includes **584** actions.
|
|
|
735
735
|
| `MoveDefaultCaseFromOpenToClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MarkCaseClosed |
|
|
736
736
|
| `MovetoClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed |
|
|
737
737
|
| `RemoveAssignmentFromCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.RemoveAssignmentFromCase |
|
|
738
|
+
| `UpdateCaseCsat` | UPDATE | k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat |
|
|
738
739
|
| `UpdateFormalComplaint` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateFormalComplaint |
|
|
739
740
|
| `UpdateSentiment` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateSentiment |
|
|
740
741
|
| `UpdateTags` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateTags |
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateCaseCsat Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Updates the customer satisfaction fields
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey UpdateCaseCsat
|
|
9
|
+
* @event k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat
|
|
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 UpdateCaseCsat updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateCaseCsatMessage extends OdinRecordUpdatedEvent<UpdateCaseCsatDto, UpdateCaseCsatProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateCaseCsat action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 10
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateCaseCsatProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Resolution CSAT Score
|
|
30
|
+
*
|
|
31
|
+
* Customer satisfaction score for the resolution of the case.
|
|
32
|
+
* @type {NUMBER}
|
|
33
|
+
*/
|
|
34
|
+
CsatResolutionScore?: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* Resolution CSAT Reason
|
|
37
|
+
*
|
|
38
|
+
* Main reason for the resolution CSAT score.
|
|
39
|
+
* @type {ENUM}
|
|
40
|
+
*/
|
|
41
|
+
CsatResolutionReason?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Other Resolution CSAT Reason
|
|
44
|
+
*
|
|
45
|
+
* Reason when Resolution CSAT Reason is OTHER.
|
|
46
|
+
* @type {TEXT_LONG}
|
|
47
|
+
*/
|
|
48
|
+
CsatResolutionOtherReason?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
* Resolution CSAT Comment
|
|
51
|
+
*
|
|
52
|
+
* Optional customer comment about the resolution.
|
|
53
|
+
* @type {TEXT_LONG}
|
|
54
|
+
*/
|
|
55
|
+
CsatResolutionComment?: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* Agent CSAT Comment
|
|
58
|
+
*
|
|
59
|
+
* Optional customer comment about the agent.
|
|
60
|
+
* @type {TEXT_LONG}
|
|
61
|
+
*/
|
|
62
|
+
CsatAgentComment?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* Other Agent CSAT Reason
|
|
65
|
+
*
|
|
66
|
+
* Reason when Agent CSAT Reason is OTHER.
|
|
67
|
+
* @type {TEXT_LONG}
|
|
68
|
+
*/
|
|
69
|
+
CsatAgentOtherReason?: string | null;
|
|
70
|
+
/**
|
|
71
|
+
* Agent CSAT Reason
|
|
72
|
+
*
|
|
73
|
+
* Main reason for the agent CSAT score.
|
|
74
|
+
* @type {ENUM}
|
|
75
|
+
*/
|
|
76
|
+
CsatAgentReason?: string | null;
|
|
77
|
+
/**
|
|
78
|
+
* Agent CSAT Score
|
|
79
|
+
*
|
|
80
|
+
* Customer satisfaction score for the agent who handled the case.
|
|
81
|
+
* @type {NUMBER}
|
|
82
|
+
*/
|
|
83
|
+
CsatAgentScore?: number | null;
|
|
84
|
+
/**
|
|
85
|
+
* CSAT Response Date
|
|
86
|
+
*
|
|
87
|
+
* Timestamp of the CSAT response
|
|
88
|
+
* @type {DATE_TIME}
|
|
89
|
+
*/
|
|
90
|
+
CsatResponseAt?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* CSAT Sent At
|
|
93
|
+
*
|
|
94
|
+
* Indicates when the CSAT has been sent
|
|
95
|
+
* @type {DATE_TIME}
|
|
96
|
+
*/
|
|
97
|
+
CsatSentAt?: string | null;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* UpdateCaseCsat
|
|
101
|
+
*
|
|
102
|
+
* Updates the customer satisfaction fields
|
|
103
|
+
*
|
|
104
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
105
|
+
* @module SupportModule
|
|
106
|
+
* @entity Case
|
|
107
|
+
* @event k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat
|
|
108
|
+
* @permission schema.action.updatecasecsat.trigger
|
|
109
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
110
|
+
*/
|
|
111
|
+
export declare class UpdateCaseCsatDto extends OdinRecordUpdateDto<UpdateCaseCsatProperties> {
|
|
112
|
+
/** Used by SDK generators to identify action type */
|
|
113
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
114
|
+
static readonly ACTION_KEY = "UpdateCaseCsat";
|
|
115
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
116
|
+
static readonly ENTITIES: string[];
|
|
117
|
+
static readonly EVENT_NAME = "k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat";
|
|
118
|
+
static readonly PERMISSION = "schema.action.updatecasecsat.trigger";
|
|
119
|
+
/** Step metadata - entity this action targets */
|
|
120
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
121
|
+
static readonly STEP_SCHEMA_ID = "be8173eb-269b-4a67-be0c-11ce6af5d561";
|
|
122
|
+
static readonly STEP_SCHEMA_ACTION_ID = "69f8e454-d840-4dce-8484-321c2146f5f3";
|
|
123
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
124
|
+
readonly actionName: string;
|
|
125
|
+
readonly schemaActionId: string;
|
|
126
|
+
readonly entity: string;
|
|
127
|
+
constructor(record: OdinRecord<any> | {
|
|
128
|
+
id: string;
|
|
129
|
+
entity: string;
|
|
130
|
+
type?: string;
|
|
131
|
+
}, properties: UpdateCaseCsatProperties, options?: {
|
|
132
|
+
journeyId?: string;
|
|
133
|
+
stageKey?: string;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateCaseCsat Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Updates the customer satisfaction fields
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey UpdateCaseCsat
|
|
10
|
+
* @event k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateCaseCsatDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateCaseCsat
|
|
19
|
+
*
|
|
20
|
+
* Updates the customer satisfaction fields
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
23
|
+
* @module SupportModule
|
|
24
|
+
* @entity Case
|
|
25
|
+
* @event k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat
|
|
26
|
+
* @permission schema.action.updatecasecsat.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateCaseCsatDto 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 = 'UpdateCaseCsat';
|
|
40
|
+
this.schemaActionId = '69f8e454-d840-4dce-8484-321c2146f5f3';
|
|
41
|
+
this.entity = 'SupportModule:Case';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateCaseCsatDto = UpdateCaseCsatDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateCaseCsatDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateCaseCsatDto.ACTION_KEY = 'UpdateCaseCsat';
|
|
48
|
+
UpdateCaseCsatDto.MODULE_NAME = 'SupportModule';
|
|
49
|
+
UpdateCaseCsatDto.ENTITIES = ['Case'];
|
|
50
|
+
UpdateCaseCsatDto.EVENT_NAME = 'k1.t-t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat';
|
|
51
|
+
UpdateCaseCsatDto.PERMISSION = 'schema.action.updatecasecsat.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateCaseCsatDto.STEP_ENTITY = 'SupportModule:Case';
|
|
54
|
+
UpdateCaseCsatDto.STEP_SCHEMA_ID = 'be8173eb-269b-4a67-be0c-11ce6af5d561';
|
|
55
|
+
UpdateCaseCsatDto.STEP_SCHEMA_ACTION_ID = '69f8e454-d840-4dce-8484-321c2146f5f3';
|
|
56
|
+
UpdateCaseCsatDto.AUTO_LINK_PARENT = false;
|
|
@@ -23,12 +23,12 @@ export declare enum ConfigEntityTypes {
|
|
|
23
23
|
* Use these constants instead of string literals for type safety
|
|
24
24
|
*/
|
|
25
25
|
export declare enum ConfigPropertyKeys {
|
|
26
|
-
/**
|
|
27
|
-
|
|
26
|
+
/** Data field for Config records. Used by Platform team. */
|
|
27
|
+
Test = "Test",
|
|
28
28
|
/** object of { key: value } mappings (Platform - Config) */
|
|
29
29
|
Mappings = "Mappings",
|
|
30
|
-
/**
|
|
31
|
-
|
|
30
|
+
/** the name of the app this config relates to (Platform - Config) */
|
|
31
|
+
AppName = "AppName"
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* Properties for Config records
|
|
@@ -36,21 +36,21 @@ export declare enum ConfigPropertyKeys {
|
|
|
36
36
|
* @see SchemaModule:Config
|
|
37
37
|
*/
|
|
38
38
|
export interface ConfigProperties {
|
|
39
|
-
/**
|
|
39
|
+
/** Data field for Config records. Used by Platform team.
|
|
40
40
|
*
|
|
41
41
|
* @type {TEXT}
|
|
42
42
|
*/
|
|
43
|
-
|
|
43
|
+
Test: string;
|
|
44
44
|
/** object of { key: value } mappings (Platform - Config)
|
|
45
45
|
*
|
|
46
46
|
* @type {JSON}
|
|
47
47
|
*/
|
|
48
48
|
Mappings: string;
|
|
49
|
-
/**
|
|
49
|
+
/** the name of the app this config relates to (Platform - Config)
|
|
50
50
|
*
|
|
51
51
|
* @type {TEXT}
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
AppName: string;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
56
|
* Config entity from SchemaModule
|
|
@@ -28,12 +28,12 @@ var ConfigEntityTypes;
|
|
|
28
28
|
*/
|
|
29
29
|
var ConfigPropertyKeys;
|
|
30
30
|
(function (ConfigPropertyKeys) {
|
|
31
|
-
/** the name of the app this config relates to (Platform - Config) */
|
|
32
|
-
ConfigPropertyKeys["AppName"] = "AppName";
|
|
33
|
-
/** object of { key: value } mappings (Platform - Config) */
|
|
34
|
-
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
31
|
/** Data field for Config records. Used by Platform team. */
|
|
36
32
|
ConfigPropertyKeys["Test"] = "Test";
|
|
33
|
+
/** object of { key: value } mappings (Platform - Config) */
|
|
34
|
+
ConfigPropertyKeys["Mappings"] = "Mappings";
|
|
35
|
+
/** the name of the app this config relates to (Platform - Config) */
|
|
36
|
+
ConfigPropertyKeys["AppName"] = "AppName";
|
|
37
37
|
})(ConfigPropertyKeys = exports.ConfigPropertyKeys || (exports.ConfigPropertyKeys = {}));
|
|
38
38
|
/**
|
|
39
39
|
* Config entity from SchemaModule
|
|
@@ -361,6 +361,8 @@ export declare enum ContactPropertyKeys {
|
|
|
361
361
|
ActivationDate = "ActivationDate",
|
|
362
362
|
/** Is the customer medically dependant on their broadband (Sales - Contact) */
|
|
363
363
|
MedicallyDependant = "MedicallyDependant",
|
|
364
|
+
/** vulnerable customer */
|
|
365
|
+
VulnerableCustomer = "VulnerableCustomer",
|
|
364
366
|
/** Name */
|
|
365
367
|
Name = "Name",
|
|
366
368
|
/** External Reference */
|
|
@@ -683,6 +685,11 @@ export interface ContactProperties {
|
|
|
683
685
|
* @default FALSE
|
|
684
686
|
*/
|
|
685
687
|
MedicallyDependant: boolean;
|
|
688
|
+
/** vulnerable customer
|
|
689
|
+
*
|
|
690
|
+
* @type {BOOLEAN}
|
|
691
|
+
*/
|
|
692
|
+
VulnerableCustomer: boolean;
|
|
686
693
|
/** Name
|
|
687
694
|
*
|
|
688
695
|
* @type {TEXT}
|
|
@@ -344,6 +344,8 @@ var ContactPropertyKeys;
|
|
|
344
344
|
ContactPropertyKeys["ActivationDate"] = "ActivationDate";
|
|
345
345
|
/** Is the customer medically dependant on their broadband (Sales - Contact) */
|
|
346
346
|
ContactPropertyKeys["MedicallyDependant"] = "MedicallyDependant";
|
|
347
|
+
/** vulnerable customer */
|
|
348
|
+
ContactPropertyKeys["VulnerableCustomer"] = "VulnerableCustomer";
|
|
347
349
|
/** Name */
|
|
348
350
|
ContactPropertyKeys["Name"] = "Name";
|
|
349
351
|
/** External Reference */
|
|
@@ -38,8 +38,10 @@ export declare enum CustomerDeviceOntEntityTypes {
|
|
|
38
38
|
* - `621_X` - 621X
|
|
39
39
|
* - `622_V` - 622v
|
|
40
40
|
* - `631_Q` - 631q
|
|
41
|
+
* - `BRSK_OTHER`
|
|
41
42
|
*/
|
|
42
43
|
export declare enum CustomerDeviceOntModel {
|
|
44
|
+
BRSK_OTHER = "BRSK_OTHER"
|
|
43
45
|
}
|
|
44
46
|
/**
|
|
45
47
|
* Valid values for CustomerDeviceOnt.OltName
|
|
@@ -32,9 +32,11 @@ var CustomerDeviceOntEntityTypes;
|
|
|
32
32
|
* - `621_X` - 621X
|
|
33
33
|
* - `622_V` - 622v
|
|
34
34
|
* - `631_Q` - 631q
|
|
35
|
+
* - `BRSK_OTHER`
|
|
35
36
|
*/
|
|
36
37
|
var CustomerDeviceOntModel;
|
|
37
38
|
(function (CustomerDeviceOntModel) {
|
|
39
|
+
CustomerDeviceOntModel["BRSK_OTHER"] = "BRSK_OTHER";
|
|
38
40
|
})(CustomerDeviceOntModel = exports.CustomerDeviceOntModel || (exports.CustomerDeviceOntModel = {}));
|
|
39
41
|
/**
|
|
40
42
|
* Valid values for CustomerDeviceOnt.OltName
|