@d19n/youfibre-odin-sdk 1.0.363 → 1.0.365
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 +8 -3
- package/dist/actions-v2/AssignCaseDto.d.ts +13 -5
- package/dist/actions-v2/AssignCaseTransitionDto.d.ts +109 -0
- package/dist/actions-v2/AssignCaseTransitionDto.js +74 -0
- package/dist/actions-v2/AssignCaseWithNoteFlowDto.d.ts +13 -5
- package/dist/actions-v2/CreateCaseFromContactDto.d.ts +13 -5
- package/dist/actions-v2/MoveDefaultCaseFromAnyStageToPendingReplyDto.d.ts +117 -0
- package/dist/actions-v2/MoveDefaultCaseFromAnyStageToPendingReplyDto.js +82 -0
- package/dist/actions-v2/MovetoClosedDto.d.ts +115 -0
- package/dist/actions-v2/MovetoClosedDto.js +80 -0
- package/dist/actions-v2/UpdateTeamDto.d.ts +8 -1
- package/dist/actions-v2/UpdateTestEntityForVisualBuilderDto.d.ts +15 -31
- package/dist/api-sdk-v2/TeamApi.d.ts +2 -0
- package/dist/api-sdk-v2/TeamApi.js +6 -0
- package/dist/api-sdk-v2/TestEntityForVisualBuilderApi.d.ts +2 -0
- package/dist/api-sdk-v2/TestEntityForVisualBuilderApi.js +6 -0
- package/dist/db-sdk-v2/TeamDb.d.ts +2 -0
- package/dist/db-sdk-v2/TeamDb.js +6 -0
- package/dist/db-sdk-v2/TestEntityForVisualBuilderDb.d.ts +2 -0
- package/dist/db-sdk-v2/TestEntityForVisualBuilderDb.js +6 -0
- package/dist/entities-v2/Case.d.ts +14 -14
- package/dist/entities-v2/Case.js +4 -2
- package/dist/entities-v2/PgDirectDebitFile.d.ts +2 -0
- package/dist/entities-v2/PgDirectDebitFile.js +2 -0
- package/dist/entities-v2/Team.d.ts +49 -4
- package/dist/entities-v2/Team.js +37 -5
- package/dist/entities-v2/TestEntityForVisualBuilder.d.ts +41 -0
- package/dist/entities-v2/TestEntityForVisualBuilder.js +9 -1
- package/dist/records-v2/CaseRecord.d.ts +50 -131
- package/dist/records-v2/CaseRecord.js +59 -214
- package/dist/records-v2/ContactRecord.js +0 -2
- package/dist/records-v2/ConversationRecord.d.ts +1 -1
- package/dist/records-v2/MessageRecord.d.ts +1 -1
- package/dist/records-v2/TeamRecord.d.ts +20 -0
- package/dist/records-v2/TeamRecord.js +33 -0
- package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +20 -0
- package/dist/records-v2/TestEntityForVisualBuilderRecord.js +33 -0
- package/dist/records-v2/index.d.ts +1 -1
- package/dist/records-v2/index.js +5 -5
- package/package.json +1 -1
- package/dist/actions-v2/CreateCaseForChatDto.d.ts +0 -381
- package/dist/actions-v2/CreateCaseForChatDto.js +0 -217
- package/dist/actions-v2/CreateSocialMediaCaseDto.d.ts +0 -104
- package/dist/actions-v2/CreateSocialMediaCaseDto.js +0 -59
package/README.md
CHANGED
|
@@ -351,7 +351,7 @@ This SDK includes **163** entities across **12** modules.
|
|
|
351
351
|
|
|
352
352
|
## Actions
|
|
353
353
|
|
|
354
|
-
This SDK includes **
|
|
354
|
+
This SDK includes **553** actions.
|
|
355
355
|
|
|
356
356
|
### Action Types
|
|
357
357
|
|
|
@@ -688,17 +688,16 @@ This SDK includes **552** actions.
|
|
|
688
688
|
| `AllowCsatForCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase |
|
|
689
689
|
| `AssignCaseByUser` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCaseByUser |
|
|
690
690
|
| `AssignCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase |
|
|
691
|
+
| `AssignCaseTransition` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition |
|
|
691
692
|
| `AssignCaseWithNoteFlow` | MULTI_STEP_FLOW | k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase |
|
|
692
693
|
| `Casedefaultstageblocked` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToBlockedAction |
|
|
693
694
|
| `CaseDefaultStageEscalated` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
|
|
694
695
|
| `CaseDefaultStageSolved` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.AllowCsatForCase |
|
|
695
696
|
| `ChangeCaseChannel` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ChangeCaseChannel |
|
|
696
697
|
| `CreateCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
|
|
697
|
-
| `CreateCaseForChat` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateSocialMediaCase |
|
|
698
698
|
| `CreateCaseFromCases` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases |
|
|
699
699
|
| `CreateCaseFromContact` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
|
|
700
700
|
| `CreateCaseWithDpa` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseWithDpa |
|
|
701
|
-
| `CreateSocialMediaCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateSocialMediaCase |
|
|
702
701
|
| `EditCaseForm` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.EditCaseForm |
|
|
703
702
|
| `EscalateCaseAction` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
|
|
704
703
|
| `EscalateCaseTransition` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
|
|
@@ -716,7 +715,9 @@ This SDK includes **552** actions.
|
|
|
716
715
|
| `MoveCaseToSolvedAction` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToSolvedAction |
|
|
717
716
|
| `MoveCaseToSolvedTransition` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveCaseToSolvedTransition |
|
|
718
717
|
| `MoveDefaultCaseFromAnyStageToPendingAgent` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingAgent |
|
|
718
|
+
| `MoveDefaultCaseFromAnyStageToPendingReply` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply |
|
|
719
719
|
| `MoveDefaultCaseFromOpenToClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MarkCaseClosed |
|
|
720
|
+
| `MovetoClosed` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed |
|
|
720
721
|
| `RemoveAssignmentFromCase` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.RemoveAssignmentFromCase |
|
|
721
722
|
| `UpdateFormalComplaint` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateFormalComplaint |
|
|
722
723
|
| `UpdateSentiment` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.UpdateSentiment |
|
|
@@ -742,8 +743,12 @@ This SDK includes **552** actions.
|
|
|
742
743
|
|
|
743
744
|
**MoveDefaultCaseFromAnyStageToPendingAgent Target Stages:** `CaseDefaultStagePendingAgent`
|
|
744
745
|
|
|
746
|
+
**MoveDefaultCaseFromAnyStageToPendingReply Target Stages:** `CaseDefaultStagePendingReply`
|
|
747
|
+
|
|
745
748
|
**MoveDefaultCaseFromOpenToClosed Target Stages:** `CaseDefaultStageClosed`
|
|
746
749
|
|
|
750
|
+
**MovetoClosed Target Stages:** `CaseDefaultStageClosed`
|
|
751
|
+
|
|
747
752
|
**AssignCaseWithNoteFlow Steps:**
|
|
748
753
|
|
|
749
754
|
| Step Method | Type | Signature |
|
|
@@ -23,23 +23,31 @@ export interface AssignCaseMessage extends OdinRecordUpdatedEvent<AssignCaseDto,
|
|
|
23
23
|
* Properties for AssignCase action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 0
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 3
|
|
27
27
|
*/
|
|
28
28
|
export interface AssignCaseProperties {
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Team
|
|
31
31
|
*
|
|
32
32
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
33
33
|
* @type {LOOKUP}
|
|
34
|
+
* @visibleWhen Channel = ["CALL","CUSTOMER_PORTAL","CUSTOMER_APP","EMAIL","FACEBOOK_MESSENGER","IN_APP_CHAT","INSTAGRAM_DM","SMS","TLOS_APP","TLOS_PORTAL","TRUSTPILOT_SERVICE_REVIEW","WEB_CHAT","WEB_FORM_BUSINESS","WHATSAPP"]
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
TeamId?: string | null;
|
|
36
37
|
/**
|
|
37
|
-
*
|
|
38
|
+
* Owner
|
|
38
39
|
*
|
|
39
40
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
40
41
|
* @type {LOOKUP}
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
OwnerId?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Channel
|
|
46
|
+
*
|
|
47
|
+
* the channel from the source (Customer Service - Case)
|
|
48
|
+
* @type {ENUM}
|
|
49
|
+
*/
|
|
50
|
+
Channel?: string | null;
|
|
43
51
|
}
|
|
44
52
|
/**
|
|
45
53
|
* Assign Owner
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AssignCaseTransition Action DTO
|
|
3
|
+
*
|
|
4
|
+
* AssignCaseTransition
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @actionKey AssignCaseTransition
|
|
9
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
declare type StepClassMap = {};
|
|
15
|
+
/**
|
|
16
|
+
* Link definition for connecting steps in AssignCaseTransition
|
|
17
|
+
*/
|
|
18
|
+
export interface AssignCaseTransitionStepLink {
|
|
19
|
+
/**
|
|
20
|
+
* The stepKey of the target step to link TO
|
|
21
|
+
* Must reference another step's stepKey in the same flow
|
|
22
|
+
*/
|
|
23
|
+
stepKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* The schema association ID (UUID) defining the relationship
|
|
26
|
+
* Use the association.id from the schema association definition
|
|
27
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
28
|
+
*/
|
|
29
|
+
schemaAssociationId: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Step definition with linking metadata for AssignCaseTransition
|
|
33
|
+
*/
|
|
34
|
+
export interface AssignCaseTransitionStepDefinition {
|
|
35
|
+
/** Unique identifier for this step */
|
|
36
|
+
stepKey: string;
|
|
37
|
+
/** The DTO class name for this step */
|
|
38
|
+
dtoClass: string;
|
|
39
|
+
/** The entity this step creates (Module:Entity format) */
|
|
40
|
+
entity: string;
|
|
41
|
+
/** Links to create after this step executes */
|
|
42
|
+
linksTo: AssignCaseTransitionStepLink[] | null;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Type-safe step keys for AssignCaseTransition
|
|
46
|
+
*/
|
|
47
|
+
export declare const AssignCaseTransitionSteps: {
|
|
48
|
+
readonly step_1: "step_1";
|
|
49
|
+
};
|
|
50
|
+
export declare type AssignCaseTransitionStepKey = typeof AssignCaseTransitionSteps[keyof typeof AssignCaseTransitionSteps];
|
|
51
|
+
/**
|
|
52
|
+
* RabbitMQ message payload for AssignCaseTransition step flow events
|
|
53
|
+
*
|
|
54
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition
|
|
55
|
+
*/
|
|
56
|
+
export interface AssignCaseTransitionMessage extends OdinRecordUpdatedEvent<AssignCaseTransitionDto, {}> {
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Properties for AssignCaseTransition action
|
|
60
|
+
*
|
|
61
|
+
*/
|
|
62
|
+
export interface AssignCaseTransitionProperties {
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* AssignCaseTransition
|
|
66
|
+
*
|
|
67
|
+
* @actionType MULTI_STEP_FLOW - Multi-step workflow action
|
|
68
|
+
* @module SupportModule
|
|
69
|
+
* @entity Case
|
|
70
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition
|
|
71
|
+
* @permission schema.action.assigncasetransition.trigger
|
|
72
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
73
|
+
*/
|
|
74
|
+
export declare class AssignCaseTransitionDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
75
|
+
/** Used by SDK generators to identify action type */
|
|
76
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
77
|
+
static readonly ACTION_KEY = "AssignCaseTransition";
|
|
78
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
79
|
+
static readonly ENTITIES: string[];
|
|
80
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition";
|
|
81
|
+
static readonly SCHEMA_ACTION_ID = "e38dcd68-c03e-4139-9afd-644744fe7ae6";
|
|
82
|
+
static readonly PERMISSION = "schema.action.assigncasetransition.trigger";
|
|
83
|
+
static readonly IS_STAGE_TRANSITION = false;
|
|
84
|
+
static readonly IS_MULTI_STEP_FLOW = true;
|
|
85
|
+
static readonly HAS_STEP_LINKS = false;
|
|
86
|
+
/**
|
|
87
|
+
* Step definitions with linking metadata
|
|
88
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
89
|
+
*/
|
|
90
|
+
static readonly stepDefinitions: AssignCaseTransitionStepDefinition[];
|
|
91
|
+
/** Type-safe step key accessor */
|
|
92
|
+
static readonly Steps: {
|
|
93
|
+
readonly step_1: "step_1";
|
|
94
|
+
};
|
|
95
|
+
readonly actionName: string;
|
|
96
|
+
readonly schemaActionId: string;
|
|
97
|
+
readonly entity: string;
|
|
98
|
+
constructor(record: OdinRecord<any> | {
|
|
99
|
+
id: string;
|
|
100
|
+
entity: string;
|
|
101
|
+
type?: string;
|
|
102
|
+
}, options?: {
|
|
103
|
+
journeyId?: string;
|
|
104
|
+
});
|
|
105
|
+
/** Step classes that can be used with this action */
|
|
106
|
+
static readonly stepClasses: readonly [];
|
|
107
|
+
steps: StepClassMap[(typeof AssignCaseTransitionDto.stepClasses)[number]][];
|
|
108
|
+
}
|
|
109
|
+
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* AssignCaseTransition Action DTO
|
|
4
|
+
*
|
|
5
|
+
* AssignCaseTransition
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @actionKey AssignCaseTransition
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AssignCaseTransitionDto = exports.AssignCaseTransitionSteps = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Type-safe step keys for AssignCaseTransition
|
|
19
|
+
*/
|
|
20
|
+
exports.AssignCaseTransitionSteps = {
|
|
21
|
+
step_1: 'step_1',
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* AssignCaseTransition
|
|
25
|
+
*
|
|
26
|
+
* @actionType MULTI_STEP_FLOW - Multi-step workflow action
|
|
27
|
+
* @module SupportModule
|
|
28
|
+
* @entity Case
|
|
29
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition
|
|
30
|
+
* @permission schema.action.assigncasetransition.trigger
|
|
31
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
32
|
+
*/
|
|
33
|
+
class AssignCaseTransitionDto extends core_1.OdinRecordUpdateDto {
|
|
34
|
+
constructor(record, options) {
|
|
35
|
+
super({
|
|
36
|
+
id: record.id,
|
|
37
|
+
entity: record.entity,
|
|
38
|
+
type: record.type,
|
|
39
|
+
properties: {},
|
|
40
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
41
|
+
});
|
|
42
|
+
this.actionName = 'AssignCaseTransition';
|
|
43
|
+
this.schemaActionId = 'e38dcd68-c03e-4139-9afd-644744fe7ae6';
|
|
44
|
+
this.entity = 'SupportModule:Case';
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.AssignCaseTransitionDto = AssignCaseTransitionDto;
|
|
48
|
+
/** Used by SDK generators to identify action type */
|
|
49
|
+
AssignCaseTransitionDto.ACTION_TYPE = 'UPDATE';
|
|
50
|
+
AssignCaseTransitionDto.ACTION_KEY = 'AssignCaseTransition';
|
|
51
|
+
AssignCaseTransitionDto.MODULE_NAME = 'SupportModule';
|
|
52
|
+
AssignCaseTransitionDto.ENTITIES = ['Case'];
|
|
53
|
+
AssignCaseTransitionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Flow.AssignCaseTransition';
|
|
54
|
+
AssignCaseTransitionDto.SCHEMA_ACTION_ID = 'e38dcd68-c03e-4139-9afd-644744fe7ae6';
|
|
55
|
+
AssignCaseTransitionDto.PERMISSION = 'schema.action.assigncasetransition.trigger';
|
|
56
|
+
AssignCaseTransitionDto.IS_STAGE_TRANSITION = false;
|
|
57
|
+
AssignCaseTransitionDto.IS_MULTI_STEP_FLOW = true;
|
|
58
|
+
AssignCaseTransitionDto.HAS_STEP_LINKS = false;
|
|
59
|
+
/**
|
|
60
|
+
* Step definitions with linking metadata
|
|
61
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
62
|
+
*/
|
|
63
|
+
AssignCaseTransitionDto.stepDefinitions = [
|
|
64
|
+
{
|
|
65
|
+
stepKey: 'step_1',
|
|
66
|
+
dtoClass: 'unknown',
|
|
67
|
+
entity: 'unknown',
|
|
68
|
+
linksTo: null
|
|
69
|
+
}
|
|
70
|
+
];
|
|
71
|
+
/** Type-safe step key accessor */
|
|
72
|
+
AssignCaseTransitionDto.Steps = exports.AssignCaseTransitionSteps;
|
|
73
|
+
/** Step classes that can be used with this action */
|
|
74
|
+
AssignCaseTransitionDto.stepClasses = [];
|
|
@@ -16,23 +16,31 @@ import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdated
|
|
|
16
16
|
* Properties for AssignCase action
|
|
17
17
|
*
|
|
18
18
|
* @property Required fields: 0
|
|
19
|
-
* @property Optional fields:
|
|
19
|
+
* @property Optional fields: 3
|
|
20
20
|
*/
|
|
21
21
|
export interface AssignCaseProperties {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Team
|
|
24
24
|
*
|
|
25
25
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
26
26
|
* @type {LOOKUP}
|
|
27
|
+
* @visibleWhen Channel = ["CALL","CUSTOMER_PORTAL","CUSTOMER_APP","EMAIL","FACEBOOK_MESSENGER","IN_APP_CHAT","INSTAGRAM_DM","SMS","TLOS_APP","TLOS_PORTAL","TRUSTPILOT_SERVICE_REVIEW","WEB_CHAT","WEB_FORM_BUSINESS","WHATSAPP"]
|
|
27
28
|
*/
|
|
28
|
-
|
|
29
|
+
TeamId?: string | null;
|
|
29
30
|
/**
|
|
30
|
-
*
|
|
31
|
+
* Owner
|
|
31
32
|
*
|
|
32
33
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
33
34
|
* @type {LOOKUP}
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
+
OwnerId?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
* Channel
|
|
39
|
+
*
|
|
40
|
+
* the channel from the source (Customer Service - Case)
|
|
41
|
+
* @type {ENUM}
|
|
42
|
+
*/
|
|
43
|
+
Channel?: string | null;
|
|
36
44
|
}
|
|
37
45
|
/**
|
|
38
46
|
* Assign Owner
|
|
@@ -90,23 +90,31 @@ export declare class CreateCaseDto extends OdinRecordCreateDto<CreateCasePropert
|
|
|
90
90
|
* Properties for AssignCase action
|
|
91
91
|
*
|
|
92
92
|
* @property Required fields: 0
|
|
93
|
-
* @property Optional fields:
|
|
93
|
+
* @property Optional fields: 3
|
|
94
94
|
*/
|
|
95
95
|
export interface AssignCaseProperties {
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Team
|
|
98
98
|
*
|
|
99
99
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
100
100
|
* @type {LOOKUP}
|
|
101
|
+
* @visibleWhen Channel = ["CALL","CUSTOMER_PORTAL","CUSTOMER_APP","EMAIL","FACEBOOK_MESSENGER","IN_APP_CHAT","INSTAGRAM_DM","SMS","TLOS_APP","TLOS_PORTAL","TRUSTPILOT_SERVICE_REVIEW","WEB_CHAT","WEB_FORM_BUSINESS","WHATSAPP"]
|
|
101
102
|
*/
|
|
102
|
-
|
|
103
|
+
TeamId?: string | null;
|
|
103
104
|
/**
|
|
104
|
-
*
|
|
105
|
+
* Owner
|
|
105
106
|
*
|
|
106
107
|
* Reference identifier for Case relationships. Used for data integrity.
|
|
107
108
|
* @type {LOOKUP}
|
|
108
109
|
*/
|
|
109
|
-
|
|
110
|
+
OwnerId?: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* Channel
|
|
113
|
+
*
|
|
114
|
+
* the channel from the source (Customer Service - Case)
|
|
115
|
+
* @type {ENUM}
|
|
116
|
+
*/
|
|
117
|
+
Channel?: string | null;
|
|
110
118
|
}
|
|
111
119
|
/**
|
|
112
120
|
* Assign Owner
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MoveDefaultCaseFromAnyStageToPendingReply Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Moves a case from any stage to pending reply
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey MoveDefaultCaseFromAnyStageToPendingReply
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
declare type StepClassMap = {};
|
|
16
|
+
/**
|
|
17
|
+
* Link definition for connecting steps in MoveDefaultCaseFromAnyStageToPendingReply
|
|
18
|
+
*/
|
|
19
|
+
export interface MoveDefaultCaseFromAnyStageToPendingReplyStepLink {
|
|
20
|
+
/**
|
|
21
|
+
* The stepKey of the target step to link TO
|
|
22
|
+
* Must reference another step's stepKey in the same flow
|
|
23
|
+
*/
|
|
24
|
+
stepKey: string;
|
|
25
|
+
/**
|
|
26
|
+
* The schema association ID (UUID) defining the relationship
|
|
27
|
+
* Use the association.id from the schema association definition
|
|
28
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
29
|
+
*/
|
|
30
|
+
schemaAssociationId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Step definition with linking metadata for MoveDefaultCaseFromAnyStageToPendingReply
|
|
34
|
+
*/
|
|
35
|
+
export interface MoveDefaultCaseFromAnyStageToPendingReplyStepDefinition {
|
|
36
|
+
/** Unique identifier for this step */
|
|
37
|
+
stepKey: string;
|
|
38
|
+
/** The DTO class name for this step */
|
|
39
|
+
dtoClass: string;
|
|
40
|
+
/** The entity this step creates (Module:Entity format) */
|
|
41
|
+
entity: string;
|
|
42
|
+
/** Links to create after this step executes */
|
|
43
|
+
linksTo: MoveDefaultCaseFromAnyStageToPendingReplyStepLink[] | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Type-safe step keys for MoveDefaultCaseFromAnyStageToPendingReply
|
|
47
|
+
*/
|
|
48
|
+
export declare const MoveDefaultCaseFromAnyStageToPendingReplySteps: {
|
|
49
|
+
readonly step_1: "step_1";
|
|
50
|
+
};
|
|
51
|
+
export declare type MoveDefaultCaseFromAnyStageToPendingReplyStepKey = typeof MoveDefaultCaseFromAnyStageToPendingReplySteps[keyof typeof MoveDefaultCaseFromAnyStageToPendingReplySteps];
|
|
52
|
+
/**
|
|
53
|
+
* RabbitMQ message payload for MoveDefaultCaseFromAnyStageToPendingReply step flow events
|
|
54
|
+
*
|
|
55
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply
|
|
56
|
+
*/
|
|
57
|
+
export interface MoveDefaultCaseFromAnyStageToPendingReplyMessage extends OdinRecordUpdatedEvent<MoveDefaultCaseFromAnyStageToPendingReplyDto, {}> {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Properties for MoveDefaultCaseFromAnyStageToPendingReply action
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export interface MoveDefaultCaseFromAnyStageToPendingReplyProperties {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* MoveDefaultCaseFromAnyStageToPendingReply
|
|
67
|
+
*
|
|
68
|
+
* Moves a case from any stage to pending reply
|
|
69
|
+
*
|
|
70
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
71
|
+
* @module SupportModule
|
|
72
|
+
* @entity Case
|
|
73
|
+
* @entityType DEFAULT (Default)
|
|
74
|
+
* @targetStages CaseDefaultStagePendingReply
|
|
75
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply
|
|
76
|
+
* @permission schema.action.movedefaultcasefromanystagetopendingreply.trigger
|
|
77
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
78
|
+
*/
|
|
79
|
+
export declare class MoveDefaultCaseFromAnyStageToPendingReplyDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
80
|
+
/** Used by SDK generators to identify action type */
|
|
81
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
82
|
+
static readonly ACTION_KEY = "MoveDefaultCaseFromAnyStageToPendingReply";
|
|
83
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
84
|
+
static readonly ENTITIES: string[];
|
|
85
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
86
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply";
|
|
87
|
+
static readonly SCHEMA_ACTION_ID = "f29ae701-558c-47cb-af47-294665c7d56b";
|
|
88
|
+
static readonly PERMISSION = "schema.action.movedefaultcasefromanystagetopendingreply.trigger";
|
|
89
|
+
static readonly TARGET_STAGES: readonly ["CaseDefaultStagePendingReply"];
|
|
90
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
91
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
92
|
+
static readonly HAS_STEP_LINKS = false;
|
|
93
|
+
/**
|
|
94
|
+
* Step definitions with linking metadata
|
|
95
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
96
|
+
*/
|
|
97
|
+
static readonly stepDefinitions: MoveDefaultCaseFromAnyStageToPendingReplyStepDefinition[];
|
|
98
|
+
/** Type-safe step key accessor */
|
|
99
|
+
static readonly Steps: {
|
|
100
|
+
readonly step_1: "step_1";
|
|
101
|
+
};
|
|
102
|
+
readonly actionName: string;
|
|
103
|
+
readonly schemaActionId: string;
|
|
104
|
+
readonly entity: string;
|
|
105
|
+
readonly stageKey: string;
|
|
106
|
+
constructor(record: OdinRecord<any> | {
|
|
107
|
+
id: string;
|
|
108
|
+
entity: string;
|
|
109
|
+
type?: string;
|
|
110
|
+
}, options?: {
|
|
111
|
+
journeyId?: string;
|
|
112
|
+
});
|
|
113
|
+
/** Step classes that can be used with this action */
|
|
114
|
+
static readonly stepClasses: readonly [];
|
|
115
|
+
steps: StepClassMap[(typeof MoveDefaultCaseFromAnyStageToPendingReplyDto.stepClasses)[number]][];
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* MoveDefaultCaseFromAnyStageToPendingReply Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Moves a case from any stage to pending reply
|
|
6
|
+
*
|
|
7
|
+
* @module SupportModule
|
|
8
|
+
* @entity Case
|
|
9
|
+
* @entityType DEFAULT
|
|
10
|
+
* @actionKey MoveDefaultCaseFromAnyStageToPendingReply
|
|
11
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply
|
|
12
|
+
*
|
|
13
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MoveDefaultCaseFromAnyStageToPendingReplyDto = exports.MoveDefaultCaseFromAnyStageToPendingReplySteps = void 0;
|
|
17
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
|
+
/**
|
|
19
|
+
* Type-safe step keys for MoveDefaultCaseFromAnyStageToPendingReply
|
|
20
|
+
*/
|
|
21
|
+
exports.MoveDefaultCaseFromAnyStageToPendingReplySteps = {
|
|
22
|
+
step_1: 'step_1',
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* MoveDefaultCaseFromAnyStageToPendingReply
|
|
26
|
+
*
|
|
27
|
+
* Moves a case from any stage to pending reply
|
|
28
|
+
*
|
|
29
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
30
|
+
* @module SupportModule
|
|
31
|
+
* @entity Case
|
|
32
|
+
* @entityType DEFAULT (Default)
|
|
33
|
+
* @targetStages CaseDefaultStagePendingReply
|
|
34
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply
|
|
35
|
+
* @permission schema.action.movedefaultcasefromanystagetopendingreply.trigger
|
|
36
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
37
|
+
*/
|
|
38
|
+
class MoveDefaultCaseFromAnyStageToPendingReplyDto extends core_1.OdinRecordUpdateDto {
|
|
39
|
+
constructor(record, options) {
|
|
40
|
+
super({
|
|
41
|
+
id: record.id,
|
|
42
|
+
entity: record.entity,
|
|
43
|
+
type: record.type,
|
|
44
|
+
properties: {},
|
|
45
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
46
|
+
});
|
|
47
|
+
this.actionName = 'MoveDefaultCaseFromAnyStageToPendingReply';
|
|
48
|
+
this.schemaActionId = 'f29ae701-558c-47cb-af47-294665c7d56b';
|
|
49
|
+
this.entity = 'SupportModule:Case';
|
|
50
|
+
this.stageKey = 'CaseDefaultStagePendingReply';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.MoveDefaultCaseFromAnyStageToPendingReplyDto = MoveDefaultCaseFromAnyStageToPendingReplyDto;
|
|
54
|
+
/** Used by SDK generators to identify action type */
|
|
55
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.ACTION_TYPE = 'UPDATE';
|
|
56
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.ACTION_KEY = 'MoveDefaultCaseFromAnyStageToPendingReply';
|
|
57
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.MODULE_NAME = 'SupportModule';
|
|
58
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.ENTITIES = ['Case'];
|
|
59
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.ENTITY_TYPE = 'DEFAULT';
|
|
60
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Transition.MoveDefaultCaseFromAnyStageToPendingReply';
|
|
61
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.SCHEMA_ACTION_ID = 'f29ae701-558c-47cb-af47-294665c7d56b';
|
|
62
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.PERMISSION = 'schema.action.movedefaultcasefromanystagetopendingreply.trigger';
|
|
63
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.TARGET_STAGES = ['CaseDefaultStagePendingReply'];
|
|
64
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.IS_STAGE_TRANSITION = true;
|
|
65
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.IS_MULTI_STEP_FLOW = false;
|
|
66
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.HAS_STEP_LINKS = false;
|
|
67
|
+
/**
|
|
68
|
+
* Step definitions with linking metadata
|
|
69
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
70
|
+
*/
|
|
71
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.stepDefinitions = [
|
|
72
|
+
{
|
|
73
|
+
stepKey: 'step_1',
|
|
74
|
+
dtoClass: 'unknown',
|
|
75
|
+
entity: 'unknown',
|
|
76
|
+
linksTo: null
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
/** Type-safe step key accessor */
|
|
80
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.Steps = exports.MoveDefaultCaseFromAnyStageToPendingReplySteps;
|
|
81
|
+
/** Step classes that can be used with this action */
|
|
82
|
+
MoveDefaultCaseFromAnyStageToPendingReplyDto.stepClasses = [];
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MovetoClosed Action DTO
|
|
3
|
+
*
|
|
4
|
+
* MovetoClosed
|
|
5
|
+
*
|
|
6
|
+
* @module SupportModule
|
|
7
|
+
* @entity Case
|
|
8
|
+
* @entityType DEFAULT
|
|
9
|
+
* @actionKey MovetoClosed
|
|
10
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
15
|
+
declare type StepClassMap = {};
|
|
16
|
+
/**
|
|
17
|
+
* Link definition for connecting steps in MovetoClosed
|
|
18
|
+
*/
|
|
19
|
+
export interface MovetoClosedStepLink {
|
|
20
|
+
/**
|
|
21
|
+
* The stepKey of the target step to link TO
|
|
22
|
+
* Must reference another step's stepKey in the same flow
|
|
23
|
+
*/
|
|
24
|
+
stepKey: string;
|
|
25
|
+
/**
|
|
26
|
+
* The schema association ID (UUID) defining the relationship
|
|
27
|
+
* Use the association.id from the schema association definition
|
|
28
|
+
* @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
|
|
29
|
+
*/
|
|
30
|
+
schemaAssociationId: string;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Step definition with linking metadata for MovetoClosed
|
|
34
|
+
*/
|
|
35
|
+
export interface MovetoClosedStepDefinition {
|
|
36
|
+
/** Unique identifier for this step */
|
|
37
|
+
stepKey: string;
|
|
38
|
+
/** The DTO class name for this step */
|
|
39
|
+
dtoClass: string;
|
|
40
|
+
/** The entity this step creates (Module:Entity format) */
|
|
41
|
+
entity: string;
|
|
42
|
+
/** Links to create after this step executes */
|
|
43
|
+
linksTo: MovetoClosedStepLink[] | null;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Type-safe step keys for MovetoClosed
|
|
47
|
+
*/
|
|
48
|
+
export declare const MovetoClosedSteps: {
|
|
49
|
+
readonly step_1: "step_1";
|
|
50
|
+
};
|
|
51
|
+
export declare type MovetoClosedStepKey = typeof MovetoClosedSteps[keyof typeof MovetoClosedSteps];
|
|
52
|
+
/**
|
|
53
|
+
* RabbitMQ message payload for MovetoClosed step flow events
|
|
54
|
+
*
|
|
55
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed
|
|
56
|
+
*/
|
|
57
|
+
export interface MovetoClosedMessage extends OdinRecordUpdatedEvent<MovetoClosedDto, {}> {
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Properties for MovetoClosed action
|
|
61
|
+
*
|
|
62
|
+
*/
|
|
63
|
+
export interface MovetoClosedProperties {
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* MovetoClosed
|
|
67
|
+
*
|
|
68
|
+
* @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
|
|
69
|
+
* @module SupportModule
|
|
70
|
+
* @entity Case
|
|
71
|
+
* @entityType DEFAULT (Default)
|
|
72
|
+
* @targetStages CaseDefaultStageClosed
|
|
73
|
+
* @event k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed
|
|
74
|
+
* @permission schema.action.movetoclosed.trigger
|
|
75
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
76
|
+
*/
|
|
77
|
+
export declare class MovetoClosedDto extends OdinRecordUpdateDto<Record<string, any>> {
|
|
78
|
+
/** Used by SDK generators to identify action type */
|
|
79
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
80
|
+
static readonly ACTION_KEY = "MovetoClosed";
|
|
81
|
+
static readonly MODULE_NAME = "SupportModule";
|
|
82
|
+
static readonly ENTITIES: string[];
|
|
83
|
+
static readonly ENTITY_TYPE = "DEFAULT";
|
|
84
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Transition.MovetoClosed";
|
|
85
|
+
static readonly SCHEMA_ACTION_ID = "e9c3af1c-d56e-42de-9321-a5a59b0ca188";
|
|
86
|
+
static readonly PERMISSION = "schema.action.movetoclosed.trigger";
|
|
87
|
+
static readonly TARGET_STAGES: readonly ["CaseDefaultStageClosed"];
|
|
88
|
+
static readonly IS_STAGE_TRANSITION = true;
|
|
89
|
+
static readonly IS_MULTI_STEP_FLOW = false;
|
|
90
|
+
static readonly HAS_STEP_LINKS = false;
|
|
91
|
+
/**
|
|
92
|
+
* Step definitions with linking metadata
|
|
93
|
+
* Used by SDK and backend for auto-linking after step execution
|
|
94
|
+
*/
|
|
95
|
+
static readonly stepDefinitions: MovetoClosedStepDefinition[];
|
|
96
|
+
/** Type-safe step key accessor */
|
|
97
|
+
static readonly Steps: {
|
|
98
|
+
readonly step_1: "step_1";
|
|
99
|
+
};
|
|
100
|
+
readonly actionName: string;
|
|
101
|
+
readonly schemaActionId: string;
|
|
102
|
+
readonly entity: string;
|
|
103
|
+
readonly stageKey: string;
|
|
104
|
+
constructor(record: OdinRecord<any> | {
|
|
105
|
+
id: string;
|
|
106
|
+
entity: string;
|
|
107
|
+
type?: string;
|
|
108
|
+
}, options?: {
|
|
109
|
+
journeyId?: string;
|
|
110
|
+
});
|
|
111
|
+
/** Step classes that can be used with this action */
|
|
112
|
+
static readonly stepClasses: readonly [];
|
|
113
|
+
steps: StepClassMap[(typeof MovetoClosedDto.stepClasses)[number]][];
|
|
114
|
+
}
|
|
115
|
+
export {};
|