@d19n/youfibre-odin-sdk 2.0.191 → 2.0.192-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 +6 -2
- package/dist/actions-v2/AllowCsatForCaseDto.d.ts +7 -0
- package/dist/actions-v2/CompleteChurnRequestDto.d.ts +2 -2
- package/dist/actions-v2/CompleteChurnRequestFlowDto.d.ts +2 -2
- package/dist/actions-v2/CreateVoiceInsightsEventDto.d.ts +129 -0
- package/dist/actions-v2/CreateVoiceInsightsEventDto.js +59 -0
- package/dist/actions-v2/ExceptionInputDto.d.ts +1 -1
- package/dist/actions-v2/TestingCsatUpdateFlowDto.d.ts +175 -0
- package/dist/actions-v2/TestingCsatUpdateFlowDto.js +126 -0
- package/dist/entities-v2/Contact.d.ts +29 -33
- package/dist/entities-v2/Contact.js +19 -19
- package/dist/entities-v2/TwilioCallEvent.d.ts +75 -1
- package/dist/entities-v2/TwilioCallEvent.js +11 -1
- package/dist/records-v2/CaseRecord.d.ts +86 -0
- package/dist/records-v2/CaseRecord.js +136 -1
- package/dist/records-v2/TwilioCallEventRecord.d.ts +48 -3
- package/dist/records-v2/TwilioCallEventRecord.js +53 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -299,7 +299,7 @@ This SDK includes **166** entities across **12** modules.
|
|
|
299
299
|
| **PushNotification** | PushNotification Entity Definition | DEFAULT |
|
|
300
300
|
| **SmsMessage** | SmsMessage Entity Definition | INBOUND, OUTBOUND |
|
|
301
301
|
| **SmsTemplate** | SmsTemplate Entity Definition | DEFAULT |
|
|
302
|
-
| **TwilioCallEvent** | TwilioCallEvent Entity Definition | INBOUND_CALL_EVENT, OUTBOUND_CALL_EVENT |
|
|
302
|
+
| **TwilioCallEvent** | TwilioCallEvent Entity Definition | INBOUND_CALL_EVENT, OUTBOUND_CALL_EVENT, VOICE_INSIGHTS_EVENT |
|
|
303
303
|
| **TwilioUserUpdate** | TwilioUserUpdate Entity Definition | DEFAULT |
|
|
304
304
|
|
|
305
305
|
### SupportModule
|
|
@@ -354,7 +354,7 @@ This SDK includes **166** entities across **12** modules.
|
|
|
354
354
|
|
|
355
355
|
## Actions
|
|
356
356
|
|
|
357
|
-
This SDK includes **
|
|
357
|
+
This SDK includes **686** actions.
|
|
358
358
|
|
|
359
359
|
### Action Types
|
|
360
360
|
|
|
@@ -831,6 +831,7 @@ This SDK includes **684** actions.
|
|
|
831
831
|
| `MoveDefaultCaseFromOpenToClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MarkCaseClosed |
|
|
832
832
|
| `MovetoClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed |
|
|
833
833
|
| `RemoveAssignmentFromCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.RemoveAssignmentFromCase |
|
|
834
|
+
| `TestingCsatUpdateFlow` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase |
|
|
834
835
|
| `UpdateAdditionalNote` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateAdditionalNote |
|
|
835
836
|
| `UpdateCaseCsat` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateCaseCsat |
|
|
836
837
|
| `UpdateFormalComplaint` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateFormalComplaint |
|
|
@@ -883,6 +884,8 @@ This SDK includes **684** actions.
|
|
|
883
884
|
|
|
884
885
|
**MovetoClosed Target Stages:** `CaseDefaultStageClosed`
|
|
885
886
|
|
|
887
|
+
**TestingCsatUpdateFlow Target Stages:** `CaseDefaultStageSolved`
|
|
888
|
+
|
|
886
889
|
**AssignCaseWithNoteFlow Steps:**
|
|
887
890
|
|
|
888
891
|
| Step Method | Type | Signature |
|
|
@@ -1428,6 +1431,7 @@ This SDK includes **684** actions.
|
|
|
1428
1431
|
|--------|------|-------|
|
|
1429
1432
|
| `CreateInboundCallEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent |
|
|
1430
1433
|
| `CreateOutboundCallEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent |
|
|
1434
|
+
| `CreateVoiceInsightsEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent |
|
|
1431
1435
|
| `UpdateCallEventAfterProcessing` | UPDATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing |
|
|
1432
1436
|
|
|
1433
1437
|
#### InvoiceItem
|
|
@@ -26,6 +26,13 @@ export interface AllowCsatForCaseMessage extends OdinRecordUpdatedEvent<AllowCsa
|
|
|
26
26
|
* @property Optional fields: 1
|
|
27
27
|
*/
|
|
28
28
|
export interface AllowCsatForCaseProperties {
|
|
29
|
+
/**
|
|
30
|
+
* Allow CSAT communications
|
|
31
|
+
*
|
|
32
|
+
* Allow CSAT communications
|
|
33
|
+
* @type {BOOLEAN}
|
|
34
|
+
*/
|
|
35
|
+
CsatAllowed?: boolean | null;
|
|
29
36
|
}
|
|
30
37
|
/**
|
|
31
38
|
* AllowCsatForCase
|
|
@@ -40,7 +40,7 @@ export interface CompleteChurnRequestProperties {
|
|
|
40
40
|
* Gaining Provider
|
|
41
41
|
* @type {ENUM}
|
|
42
42
|
* @required
|
|
43
|
-
* @visibleWhen Outcome = ["LOST"] AND Reason = ["TECHNICAL_ISSUE_YOUFIBRE","TECHNICAL_ISSUE_NETOMNIA","SALES_TRIAL","
|
|
43
|
+
* @visibleWhen Outcome = ["LOST"] AND Reason = ["TECHNICAL_ISSUE_YOUFIBRE","TECHNICAL_ISSUE_NETOMNIA","SALES_TRIAL","SALES_MISSELLING","SALES_LOST_TO_COMPETITION","CUSTOMER_SERVICE","BILLING"]
|
|
44
44
|
*/
|
|
45
45
|
GainingProvider: string;
|
|
46
46
|
/**
|
|
@@ -49,7 +49,7 @@ export interface CompleteChurnRequestProperties {
|
|
|
49
49
|
* Gaining Provider Package
|
|
50
50
|
* @type {TEXT}
|
|
51
51
|
* @required
|
|
52
|
-
* @visibleWhen Outcome = ["LOST"] AND Reason = ["BILLING","CUSTOMER_SERVICE","SALES_LOST_TO_COMPETITION","SALES_MISSELLING","
|
|
52
|
+
* @visibleWhen Outcome = ["LOST"] AND Reason = ["BILLING","CUSTOMER_SERVICE","SALES_LOST_TO_COMPETITION","SALES_MISSELLING","SALES_TRIAL","TECHNICAL_ISSUE_NETOMNIA","TECHNICAL_ISSUE_YOUFIBRE"]
|
|
53
53
|
*/
|
|
54
54
|
GainingProviderPackage: string;
|
|
55
55
|
/**
|
|
@@ -33,7 +33,7 @@ export interface CompleteChurnRequestProperties {
|
|
|
33
33
|
* Gaining Provider
|
|
34
34
|
* @type {ENUM}
|
|
35
35
|
* @required
|
|
36
|
-
* @visibleWhen Outcome = ["LOST"] AND Reason = ["TECHNICAL_ISSUE_YOUFIBRE","TECHNICAL_ISSUE_NETOMNIA","SALES_TRIAL","
|
|
36
|
+
* @visibleWhen Outcome = ["LOST"] AND Reason = ["TECHNICAL_ISSUE_YOUFIBRE","TECHNICAL_ISSUE_NETOMNIA","SALES_TRIAL","SALES_MISSELLING","SALES_LOST_TO_COMPETITION","CUSTOMER_SERVICE","BILLING"]
|
|
37
37
|
*/
|
|
38
38
|
GainingProvider: string;
|
|
39
39
|
/**
|
|
@@ -42,7 +42,7 @@ export interface CompleteChurnRequestProperties {
|
|
|
42
42
|
* Gaining Provider Package
|
|
43
43
|
* @type {TEXT}
|
|
44
44
|
* @required
|
|
45
|
-
* @visibleWhen Outcome = ["LOST"] AND Reason = ["BILLING","CUSTOMER_SERVICE","SALES_LOST_TO_COMPETITION","SALES_MISSELLING","
|
|
45
|
+
* @visibleWhen Outcome = ["LOST"] AND Reason = ["BILLING","CUSTOMER_SERVICE","SALES_LOST_TO_COMPETITION","SALES_MISSELLING","SALES_TRIAL","TECHNICAL_ISSUE_NETOMNIA","TECHNICAL_ISSUE_YOUFIBRE"]
|
|
46
46
|
*/
|
|
47
47
|
GainingProviderPackage: string;
|
|
48
48
|
/**
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateVoiceInsightsEvent Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Create voice insights event
|
|
5
|
+
*
|
|
6
|
+
* @module NotificationModule
|
|
7
|
+
* @entity TwilioCallEvent
|
|
8
|
+
* @entityType VOICE_INSIGHTS_EVENT
|
|
9
|
+
* @actionKey CreateVoiceInsightsEvent
|
|
10
|
+
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent
|
|
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 CreateVoiceInsightsEvent created events
|
|
17
|
+
*
|
|
18
|
+
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent
|
|
19
|
+
*/
|
|
20
|
+
export interface CreateVoiceInsightsEventMessage extends OdinRecordCreatedEvent<CreateVoiceInsightsEventDto, CreateVoiceInsightsEventProperties> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Properties for CreateVoiceInsightsEvent action
|
|
24
|
+
*
|
|
25
|
+
* @property Required fields: 8
|
|
26
|
+
* @property Optional fields: 0
|
|
27
|
+
*/
|
|
28
|
+
export interface CreateVoiceInsightsEventProperties {
|
|
29
|
+
/**
|
|
30
|
+
* WebhookSource
|
|
31
|
+
*
|
|
32
|
+
* Source of the captured event
|
|
33
|
+
* @type {ENUM}
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
WebhookSource: string;
|
|
37
|
+
/**
|
|
38
|
+
* ReceivedAt
|
|
39
|
+
*
|
|
40
|
+
* Moment of storing the event in odin
|
|
41
|
+
* @type {DATE_TIME}
|
|
42
|
+
* @required
|
|
43
|
+
*/
|
|
44
|
+
ReceivedAt: string;
|
|
45
|
+
/**
|
|
46
|
+
* Query
|
|
47
|
+
*
|
|
48
|
+
* Query parameters of the request received from Twilio
|
|
49
|
+
* @type {JSON}
|
|
50
|
+
* @required
|
|
51
|
+
*/
|
|
52
|
+
Query: string;
|
|
53
|
+
/**
|
|
54
|
+
* Body
|
|
55
|
+
*
|
|
56
|
+
* Body of the request received from Twilio
|
|
57
|
+
* @type {JSON}
|
|
58
|
+
* @required
|
|
59
|
+
*/
|
|
60
|
+
Body: string;
|
|
61
|
+
/**
|
|
62
|
+
* ProcessingStatus
|
|
63
|
+
*
|
|
64
|
+
* Processing status in background
|
|
65
|
+
* @type {ENUM}
|
|
66
|
+
* @required
|
|
67
|
+
*/
|
|
68
|
+
ProcessingStatus: string;
|
|
69
|
+
/**
|
|
70
|
+
* Title
|
|
71
|
+
*
|
|
72
|
+
* Title of twilio call event record
|
|
73
|
+
* @type {TEXT}
|
|
74
|
+
* @required
|
|
75
|
+
*/
|
|
76
|
+
Title: string;
|
|
77
|
+
/**
|
|
78
|
+
* CallId
|
|
79
|
+
*
|
|
80
|
+
* Reference of the call record
|
|
81
|
+
* @type {LOOKUP}
|
|
82
|
+
* @required
|
|
83
|
+
*/
|
|
84
|
+
CallId: string;
|
|
85
|
+
/**
|
|
86
|
+
* CallSid
|
|
87
|
+
*
|
|
88
|
+
* Twilio id of the call
|
|
89
|
+
* @type {TEXT}
|
|
90
|
+
* @required
|
|
91
|
+
*/
|
|
92
|
+
CallSid: string;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* CreateVoiceInsightsEvent
|
|
96
|
+
*
|
|
97
|
+
* Create voice insights event
|
|
98
|
+
*
|
|
99
|
+
* @actionType CREATE - Creates a new TwilioCallEvent record
|
|
100
|
+
* @module NotificationModule
|
|
101
|
+
* @entity TwilioCallEvent
|
|
102
|
+
* @entityType VOICE_INSIGHTS_EVENT (VOICE_INSIGHTS_EVENT)
|
|
103
|
+
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent
|
|
104
|
+
* @permission schema.action.createvoiceinsightsevent.trigger
|
|
105
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
106
|
+
*/
|
|
107
|
+
export declare class CreateVoiceInsightsEventDto extends OdinRecordCreateDto<CreateVoiceInsightsEventProperties> {
|
|
108
|
+
/** Used by SDK generators to identify action type */
|
|
109
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
110
|
+
static readonly ACTION_KEY = "CreateVoiceInsightsEvent";
|
|
111
|
+
static readonly MODULE_NAME = "NotificationModule";
|
|
112
|
+
static readonly ENTITIES: string[];
|
|
113
|
+
static readonly ENTITY_TYPE = "VOICE_INSIGHTS_EVENT";
|
|
114
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent";
|
|
115
|
+
static readonly PERMISSION = "schema.action.createvoiceinsightsevent.trigger";
|
|
116
|
+
/** Step metadata - entity this action targets */
|
|
117
|
+
static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvent";
|
|
118
|
+
static readonly STEP_SCHEMA_ID = "52cc16be-2010-453f-a1c9-142ca95f9a54";
|
|
119
|
+
static readonly STEP_SCHEMA_ACTION_ID = "a4a562ed-6466-45e5-bf08-bf727be4ab34";
|
|
120
|
+
static readonly STEP_SCHEMA_TYPE_ID = "eee29c8f-8f79-4795-bc34-86fbc5728409";
|
|
121
|
+
static readonly STEP_TYPE = "VOICE_INSIGHTS_EVENT";
|
|
122
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
123
|
+
readonly actionName: string;
|
|
124
|
+
readonly schemaActionId: string;
|
|
125
|
+
readonly entity: string;
|
|
126
|
+
constructor(properties: CreateVoiceInsightsEventProperties, options?: {
|
|
127
|
+
journeyId?: string;
|
|
128
|
+
});
|
|
129
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateVoiceInsightsEvent Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Create voice insights event
|
|
6
|
+
*
|
|
7
|
+
* @module NotificationModule
|
|
8
|
+
* @entity TwilioCallEvent
|
|
9
|
+
* @entityType VOICE_INSIGHTS_EVENT
|
|
10
|
+
* @actionKey CreateVoiceInsightsEvent
|
|
11
|
+
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CreateVoiceInsightsEventDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* CreateVoiceInsightsEvent
|
|
20
|
+
*
|
|
21
|
+
* Create voice insights event
|
|
22
|
+
*
|
|
23
|
+
* @actionType CREATE - Creates a new TwilioCallEvent record
|
|
24
|
+
* @module NotificationModule
|
|
25
|
+
* @entity TwilioCallEvent
|
|
26
|
+
* @entityType VOICE_INSIGHTS_EVENT (VOICE_INSIGHTS_EVENT)
|
|
27
|
+
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent
|
|
28
|
+
* @permission schema.action.createvoiceinsightsevent.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class CreateVoiceInsightsEventDto extends core_1.OdinRecordCreateDto {
|
|
32
|
+
constructor(properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
entity: 'NotificationModule:TwilioCallEvent',
|
|
35
|
+
type: 'VOICE_INSIGHTS_EVENT',
|
|
36
|
+
properties,
|
|
37
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'CreateVoiceInsightsEvent';
|
|
40
|
+
this.schemaActionId = 'a4a562ed-6466-45e5-bf08-bf727be4ab34';
|
|
41
|
+
this.entity = 'NotificationModule:TwilioCallEvent';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.CreateVoiceInsightsEventDto = CreateVoiceInsightsEventDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
CreateVoiceInsightsEventDto.ACTION_TYPE = 'CREATE';
|
|
47
|
+
CreateVoiceInsightsEventDto.ACTION_KEY = 'CreateVoiceInsightsEvent';
|
|
48
|
+
CreateVoiceInsightsEventDto.MODULE_NAME = 'NotificationModule';
|
|
49
|
+
CreateVoiceInsightsEventDto.ENTITIES = ['TwilioCallEvent'];
|
|
50
|
+
CreateVoiceInsightsEventDto.ENTITY_TYPE = 'VOICE_INSIGHTS_EVENT';
|
|
51
|
+
CreateVoiceInsightsEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateVoiceInsightsEvent';
|
|
52
|
+
CreateVoiceInsightsEventDto.PERMISSION = 'schema.action.createvoiceinsightsevent.trigger';
|
|
53
|
+
/** Step metadata - entity this action targets */
|
|
54
|
+
CreateVoiceInsightsEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvent';
|
|
55
|
+
CreateVoiceInsightsEventDto.STEP_SCHEMA_ID = '52cc16be-2010-453f-a1c9-142ca95f9a54';
|
|
56
|
+
CreateVoiceInsightsEventDto.STEP_SCHEMA_ACTION_ID = 'a4a562ed-6466-45e5-bf08-bf727be4ab34';
|
|
57
|
+
CreateVoiceInsightsEventDto.STEP_SCHEMA_TYPE_ID = 'eee29c8f-8f79-4795-bc34-86fbc5728409';
|
|
58
|
+
CreateVoiceInsightsEventDto.STEP_TYPE = 'VOICE_INSIGHTS_EVENT';
|
|
59
|
+
CreateVoiceInsightsEventDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TestingCsatUpdateFlow Action DTO
|
|
3
|
+
*
|
|
4
|
+
* DO NOT MOVE TO PRODUCTION PLEASE
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey TestingCsatUpdateFlow
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.TestingCsatUpdateFlow
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
/**
|
|
16
|
+
* Properties for AllowCsatForCase action
|
|
17
|
+
*
|
|
18
|
+
* @property Required fields: 0
|
|
19
|
+
* @property Optional fields: 1
|
|
20
|
+
*/
|
|
21
|
+
export interface AllowCsatForCaseProperties {
|
|
22
|
+
/**
|
|
23
|
+
* Allow CSAT communications
|
|
24
|
+
*
|
|
25
|
+
* Allow CSAT communications
|
|
26
|
+
* @type {BOOLEAN}
|
|
27
|
+
*/
|
|
28
|
+
CsatAllowed?: boolean | null;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* AllowCsatForCase
|
|
32
|
+
*
|
|
33
|
+
* Allows CSAT communications for a case
|
|
34
|
+
*
|
|
35
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
36
|
+
* @module SupportModule
|
|
37
|
+
* @entity Case
|
|
38
|
+
* @entityType DEFAULT (Default)
|
|
39
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase
|
|
40
|
+
* @permission schema.action.allowcsatforcase.trigger
|
|
41
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
42
|
+
*/
|
|
43
|
+
export declare class AllowCsatForCaseDto extends OdinRecordUpdateDto<AllowCsatForCaseProperties> {
|
|
44
|
+
/** Used by SDK generators to identify action type */
|
|
45
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
46
|
+
static readonly ACTION_KEY = "AllowCsatForCase";
|
|
47
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
48
|
+
static readonly ENTITIES: string[];
|
|
49
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
50
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase";
|
|
51
|
+
static readonly PERMISSION = "schema.action.allowcsatforcase.trigger";
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
static readonly STEP_ENTITY = "SupportModule:Case";
|
|
54
|
+
static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
|
|
55
|
+
static readonly STEP_SCHEMA_ACTION_ID = "fcb0cd5e-42f1-4de7-8746-8aa7793c815f";
|
|
56
|
+
static readonly STEP_SCHEMA_TYPE_ID = "22b50598-66be-435c-bd61-4dcd7d0b3420";
|
|
57
|
+
static readonly STEP_TYPE = "DEFAULT";
|
|
58
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
59
|
+
readonly actionName: string;
|
|
60
|
+
readonly schemaActionId: string;
|
|
61
|
+
readonly entity: string;
|
|
62
|
+
constructor(record: OdinRecord<any> | {
|
|
63
|
+
id: string;
|
|
64
|
+
entity: string;
|
|
65
|
+
type?: string;
|
|
66
|
+
}, properties: AllowCsatForCaseProperties, options?: {
|
|
67
|
+
journeyId?: string;
|
|
68
|
+
stageKey?: string;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
declare type StepClassMap = {
|
|
72
|
+
AllowCsatForCaseDto: AllowCsatForCaseDto;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Link definition for connecting steps in TestingCsatUpdateFlow
|
|
76
|
+
*/
|
|
77
|
+
export interface TestingCsatUpdateFlowStepLink {
|
|
78
|
+
/**
|
|
79
|
+
* The stepKey of the target step to link TO
|
|
80
|
+
* Must reference another step's stepKey in the same flow
|
|
81
|
+
*/
|
|
82
|
+
stepKey: string;
|
|
83
|
+
/**
|
|
84
|
+
* The schema association ID (UUID) defining the relationship
|
|
85
|
+
* Use the association.id from the schema association definition
|
|
86
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
87
|
+
*/
|
|
88
|
+
schemaAssociationId: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Step definition with linking metadata for TestingCsatUpdateFlow
|
|
92
|
+
*/
|
|
93
|
+
export interface TestingCsatUpdateFlowStepDefinition {
|
|
94
|
+
/** Unique identifier for this step */
|
|
95
|
+
stepKey: string;
|
|
96
|
+
/** The DTO class name for this step */
|
|
97
|
+
dtoClass: string;
|
|
98
|
+
/** The entity this step creates (Module:Entity format) */
|
|
99
|
+
entity: string;
|
|
100
|
+
/** Links to create after this step executes */
|
|
101
|
+
linksTo: TestingCsatUpdateFlowStepLink[] | null;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Type-safe step keys for TestingCsatUpdateFlow
|
|
105
|
+
*/
|
|
106
|
+
export declare const TestingCsatUpdateFlowSteps: {
|
|
107
|
+
readonly step_1: "step_1";
|
|
108
|
+
};
|
|
109
|
+
export declare type TestingCsatUpdateFlowStepKey = typeof TestingCsatUpdateFlowSteps[keyof typeof TestingCsatUpdateFlowSteps];
|
|
110
|
+
/**
|
|
111
|
+
* RabbitMQ message payload for TestingCsatUpdateFlow step flow events
|
|
112
|
+
*
|
|
113
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.TestingCsatUpdateFlow
|
|
114
|
+
*/
|
|
115
|
+
export interface TestingCsatUpdateFlowMessage extends OdinRecordUpdatedEvent<TestingCsatUpdateFlowDto, {}> {
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Properties for TestingCsatUpdateFlow action
|
|
119
|
+
*
|
|
120
|
+
*/
|
|
121
|
+
export interface TestingCsatUpdateFlowProperties {
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* TestingCsatUpdateFlow
|
|
125
|
+
*
|
|
126
|
+
* DO NOT MOVE TO PRODUCTION PLEASE
|
|
127
|
+
*
|
|
128
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
129
|
+
* @module SupportModule
|
|
130
|
+
* @entity Case
|
|
131
|
+
* @entityType DEFAULT (Default)
|
|
132
|
+
* @targetStages CaseDefaultStageSolved
|
|
133
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.TestingCsatUpdateFlow
|
|
134
|
+
* @permission schema.action.testingcsatupdateflow.trigger
|
|
135
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
136
|
+
*/
|
|
137
|
+
export declare class TestingCsatUpdateFlowDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
138
|
+
/** Used by SDK generators to identify action type */
|
|
139
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
140
|
+
static readonly ACTION_KEY = "TestingCsatUpdateFlow";
|
|
141
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
142
|
+
static readonly ENTITIES: string[];
|
|
143
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
144
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Transition.TestingCsatUpdateFlow";
|
|
145
|
+
static readonly SCHEMA_ACTION_ID = "8ffe186c-415a-41ee-90d8-81657e41a710";
|
|
146
|
+
static readonly PERMISSION = "schema.action.testingcsatupdateflow.trigger";
|
|
147
|
+
static readonly TARGET_STAGES: readonly ["CaseDefaultStageSolved"];
|
|
148
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
149
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
150
|
+
static readonly HAS_STEP_LINKS = false;
|
|
151
|
+
/**
|
|
152
|
+
* Step definitions with linking metadata
|
|
153
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
154
|
+
*/
|
|
155
|
+
static readonly stepDefinitions: TestingCsatUpdateFlowStepDefinition[];
|
|
156
|
+
/** Type-safe step key accessor */
|
|
157
|
+
static readonly Steps: {
|
|
158
|
+
readonly step_1: "step_1";
|
|
159
|
+
};
|
|
160
|
+
readonly actionName: string;
|
|
161
|
+
readonly schemaActionId: string;
|
|
162
|
+
readonly entity: string;
|
|
163
|
+
readonly stageKey: string;
|
|
164
|
+
constructor(record: OdinRecord<any> | {
|
|
165
|
+
id: string;
|
|
166
|
+
entity: string;
|
|
167
|
+
type?: string;
|
|
168
|
+
}, options?: {
|
|
169
|
+
journeyId?: string;
|
|
170
|
+
});
|
|
171
|
+
/** Step classes that can be used with this action */
|
|
172
|
+
static readonly stepClasses: readonly ["AllowCsatForCaseDto"];
|
|
173
|
+
steps: StepClassMap[(typeof TestingCsatUpdateFlowDto.stepClasses)[number]][];
|
|
174
|
+
}
|
|
175
|
+
export {};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* TestingCsatUpdateFlow Action DTO
|
|
4
|
+
*
|
|
5
|
+
* DO NOT MOVE TO PRODUCTION PLEASE
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey TestingCsatUpdateFlow
|
|
11
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.TestingCsatUpdateFlow
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.TestingCsatUpdateFlowDto = exports.TestingCsatUpdateFlowSteps = exports.AllowCsatForCaseDto = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* AllowCsatForCase
|
|
20
|
+
*
|
|
21
|
+
* Allows CSAT communications for a case
|
|
22
|
+
*
|
|
23
|
+
* @actionType UPDATE - Updates an existing Case record
|
|
24
|
+
* @module SupportModule
|
|
25
|
+
* @entity Case
|
|
26
|
+
* @entityType DEFAULT (Default)
|
|
27
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase
|
|
28
|
+
* @permission schema.action.allowcsatforcase.trigger
|
|
29
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
30
|
+
*/
|
|
31
|
+
class AllowCsatForCaseDto extends core_1.OdinRecordUpdateDto {
|
|
32
|
+
constructor(record, properties, options) {
|
|
33
|
+
super({
|
|
34
|
+
id: record.id,
|
|
35
|
+
entity: record.entity,
|
|
36
|
+
type: record.type,
|
|
37
|
+
properties,
|
|
38
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
39
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
40
|
+
});
|
|
41
|
+
this.actionName = 'AllowCsatForCase';
|
|
42
|
+
this.schemaActionId = 'fcb0cd5e-42f1-4de7-8746-8aa7793c815f';
|
|
43
|
+
this.entity = 'SupportModule:Case';
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.AllowCsatForCaseDto = AllowCsatForCaseDto;
|
|
47
|
+
/** Used by SDK generators to identify action type */
|
|
48
|
+
AllowCsatForCaseDto.ACTION_TYPE = 'UPDATE';
|
|
49
|
+
AllowCsatForCaseDto.ACTION_KEY = 'AllowCsatForCase';
|
|
50
|
+
AllowCsatForCaseDto.MODULE_NAME = 'SupportModule';
|
|
51
|
+
AllowCsatForCaseDto.ENTITIES = ['Case'];
|
|
52
|
+
AllowCsatForCaseDto.ENTITY_TYPE = 'DEFAULT';
|
|
53
|
+
AllowCsatForCaseDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase';
|
|
54
|
+
AllowCsatForCaseDto.PERMISSION = 'schema.action.allowcsatforcase.trigger';
|
|
55
|
+
/** Step metadata - entity this action targets */
|
|
56
|
+
AllowCsatForCaseDto.STEP_ENTITY = 'SupportModule:Case';
|
|
57
|
+
AllowCsatForCaseDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
|
|
58
|
+
AllowCsatForCaseDto.STEP_SCHEMA_ACTION_ID = 'fcb0cd5e-42f1-4de7-8746-8aa7793c815f';
|
|
59
|
+
AllowCsatForCaseDto.STEP_SCHEMA_TYPE_ID = '22b50598-66be-435c-bd61-4dcd7d0b3420';
|
|
60
|
+
AllowCsatForCaseDto.STEP_TYPE = 'DEFAULT';
|
|
61
|
+
AllowCsatForCaseDto.AUTO_LINK_PARENT = false;
|
|
62
|
+
/**
|
|
63
|
+
* Type-safe step keys for TestingCsatUpdateFlow
|
|
64
|
+
*/
|
|
65
|
+
exports.TestingCsatUpdateFlowSteps = {
|
|
66
|
+
step_1: 'step_1',
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* TestingCsatUpdateFlow
|
|
70
|
+
*
|
|
71
|
+
* DO NOT MOVE TO PRODUCTION PLEASE
|
|
72
|
+
*
|
|
73
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
74
|
+
* @module SupportModule
|
|
75
|
+
* @entity Case
|
|
76
|
+
* @entityType DEFAULT (Default)
|
|
77
|
+
* @targetStages CaseDefaultStageSolved
|
|
78
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.TestingCsatUpdateFlow
|
|
79
|
+
* @permission schema.action.testingcsatupdateflow.trigger
|
|
80
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
81
|
+
*/
|
|
82
|
+
class TestingCsatUpdateFlowDto extends core_1.OdinRecordUpdateDto {
|
|
83
|
+
constructor(record, options) {
|
|
84
|
+
super({
|
|
85
|
+
id: record.id,
|
|
86
|
+
entity: record.entity,
|
|
87
|
+
type: record.type,
|
|
88
|
+
properties: {},
|
|
89
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
90
|
+
});
|
|
91
|
+
this.actionName = 'TestingCsatUpdateFlow';
|
|
92
|
+
this.schemaActionId = '8ffe186c-415a-41ee-90d8-81657e41a710';
|
|
93
|
+
this.entity = 'SupportModule:Case';
|
|
94
|
+
this.stageKey = 'CaseDefaultStageSolved';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.TestingCsatUpdateFlowDto = TestingCsatUpdateFlowDto;
|
|
98
|
+
/** Used by SDK generators to identify action type */
|
|
99
|
+
TestingCsatUpdateFlowDto.ACTION_TYPE = 'UPDATE';
|
|
100
|
+
TestingCsatUpdateFlowDto.ACTION_KEY = 'TestingCsatUpdateFlow';
|
|
101
|
+
TestingCsatUpdateFlowDto.MODULE_NAME = 'SupportModule';
|
|
102
|
+
TestingCsatUpdateFlowDto.ENTITIES = ['Case'];
|
|
103
|
+
TestingCsatUpdateFlowDto.ENTITY_TYPE = 'DEFAULT';
|
|
104
|
+
TestingCsatUpdateFlowDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Transition.TestingCsatUpdateFlow';
|
|
105
|
+
TestingCsatUpdateFlowDto.SCHEMA_ACTION_ID = '8ffe186c-415a-41ee-90d8-81657e41a710';
|
|
106
|
+
TestingCsatUpdateFlowDto.PERMISSION = 'schema.action.testingcsatupdateflow.trigger';
|
|
107
|
+
TestingCsatUpdateFlowDto.TARGET_STAGES = ['CaseDefaultStageSolved'];
|
|
108
|
+
TestingCsatUpdateFlowDto.IS_STAGE_TRANSITION = true;
|
|
109
|
+
TestingCsatUpdateFlowDto.IS_MULTI_STEP_FLOW = false;
|
|
110
|
+
TestingCsatUpdateFlowDto.HAS_STEP_LINKS = false;
|
|
111
|
+
/**
|
|
112
|
+
* Step definitions with linking metadata
|
|
113
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
114
|
+
*/
|
|
115
|
+
TestingCsatUpdateFlowDto.stepDefinitions = [
|
|
116
|
+
{
|
|
117
|
+
stepKey: 'step_1',
|
|
118
|
+
dtoClass: 'AllowCsatForCaseDto',
|
|
119
|
+
entity: 'SupportModule:Case',
|
|
120
|
+
linksTo: null
|
|
121
|
+
}
|
|
122
|
+
];
|
|
123
|
+
/** Type-safe step key accessor */
|
|
124
|
+
TestingCsatUpdateFlowDto.Steps = exports.TestingCsatUpdateFlowSteps;
|
|
125
|
+
/** Step classes that can be used with this action */
|
|
126
|
+
TestingCsatUpdateFlowDto.stepClasses = ['AllowCsatForCaseDto'];
|