@d19n/youfibre-odin-sdk 1.0.336 → 1.0.337

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.
Files changed (35) hide show
  1. package/README.md +7 -4
  2. package/dist/actions-v2/AddressUpdateDto.d.ts +15 -1
  3. package/dist/actions-v2/CreateCaseDto.d.ts +1 -17
  4. package/dist/actions-v2/CreateCaseFromCasesDto.d.ts +81 -0
  5. package/dist/actions-v2/CreateCaseFromCasesDto.js +52 -0
  6. package/dist/actions-v2/CreateCaseFromCasesFlowsDto.d.ts +240 -0
  7. package/dist/actions-v2/CreateCaseFromCasesFlowsDto.js +163 -0
  8. package/dist/actions-v2/CreateCaseFromContactDto.d.ts +70 -18
  9. package/dist/actions-v2/CreateCaseFromContactDto.js +55 -2
  10. package/dist/actions-v2/{MovePgSubmissionToSucceededDto.d.ts → MovePgSubmissionToProcessedDto.d.ts} +20 -20
  11. package/dist/actions-v2/MovePgSubmissionToProcessedDto.js +62 -0
  12. package/dist/actions-v2/UpdateConversationSummaryDto.d.ts +78 -0
  13. package/dist/actions-v2/UpdateConversationSummaryDto.js +61 -0
  14. package/dist/entities-v2/CallLeg.d.ts +7 -0
  15. package/dist/entities-v2/CallLeg.js +2 -0
  16. package/dist/entities-v2/Conversation.d.ts +13 -6
  17. package/dist/entities-v2/Conversation.js +4 -2
  18. package/dist/entities-v2/ConversationFeedback.d.ts +23 -22
  19. package/dist/entities-v2/ConversationFeedback.js +7 -6
  20. package/dist/entities-v2/Order.d.ts +512 -512
  21. package/dist/entities-v2/Order.js +232 -232
  22. package/dist/entities-v2/PaymentMethodRefund.d.ts +26 -26
  23. package/dist/entities-v2/PaymentMethodRefund.js +8 -8
  24. package/dist/entities-v2/PgDirectDebitFile.d.ts +74 -0
  25. package/dist/entities-v2/PgDirectDebitFile.js +79 -1
  26. package/dist/records-v2/CaseRecord.d.ts +122 -0
  27. package/dist/records-v2/CaseRecord.js +194 -1
  28. package/dist/records-v2/ContactRecord.d.ts +10 -0
  29. package/dist/records-v2/ContactRecord.js +27 -0
  30. package/dist/records-v2/ConversationRecord.d.ts +27 -0
  31. package/dist/records-v2/ConversationRecord.js +29 -0
  32. package/dist/records-v2/PgDirectDebitFileRecord.d.ts +20 -20
  33. package/dist/records-v2/PgDirectDebitFileRecord.js +28 -28
  34. package/package.json +1 -1
  35. package/dist/actions-v2/MovePgSubmissionToSucceededDto.js +0 -62
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 **532** actions.
354
+ This SDK includes **535** actions.
355
355
 
356
356
  ### Action Types
357
357
 
@@ -729,6 +729,8 @@ This SDK includes **532** actions.
729
729
  | `ChangeCaseChannel` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ChangeCaseChannel |
730
730
  | `CreateCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
731
731
  | `CreateCaseForChat` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateSocialMediaCase |
732
+ | `CreateCaseFromCases` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases |
733
+ | `CreateCaseFromCasesFlows` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases |
732
734
  | `CreateCaseFromContact` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
733
735
  | `CreateCaseWithDpa` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseWithDpa |
734
736
  | `CreateSocialMediaCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateSocialMediaCase |
@@ -987,6 +989,7 @@ This SDK includes **532** actions.
987
989
  | `CreateConversation` | CREATE | k1.t-hEOJjsDb.NotificationModule.Conversation.Create.CreateConversation |
988
990
  | `ReopenConversation` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Conversation.Update.ReopenConversation |
989
991
  | `UpdateConversation` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Conversation.Update.UpdateConversation |
992
+ | `UpdateConversationSummary` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Conversation.Update.UpdateConversationSummary |
990
993
 
991
994
  #### UgAuditOfInstallation
992
995
 
@@ -1386,10 +1389,10 @@ This SDK includes **532** actions.
1386
1389
  | `MovePgSubmissionToFailedSubmission` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToFailedSubmission |
1387
1390
  | `MovePgSubmissionToFileAccepted` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToFileAccepted |
1388
1391
  | `MovePgSubmissionToFileRejected` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToFileRejected |
1392
+ | `MovePgSubmissionToProcessed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToProcessed |
1389
1393
  | `MovePgSubmissionToProcessing` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToProcessing |
1390
1394
  | `MovePgSubmissionToSubmissionFailed` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToSubmissionFailed |
1391
1395
  | `MovePgSubmissionToSubmitted` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToSubmitted |
1392
- | `MovePgSubmissionToSucceeded` | STAGE_TRANSITION | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Transition.MovePgSubmissionToSucceeded |
1393
1396
  | `UpdatePgResponse` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Update.UpdatePgResponse |
1394
1397
  | `UpdatePgSubmission` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgDirectDebitFile.Update.UpdatePgSubmission |
1395
1398
 
@@ -1409,14 +1412,14 @@ This SDK includes **532** actions.
1409
1412
 
1410
1413
  **MovePgSubmissionToFileRejected Target Stages:** `SubmissionStatusStageFileRejected`
1411
1414
 
1415
+ **MovePgSubmissionToProcessed Target Stages:** `SubmissionStatusStageProcessed`
1416
+
1412
1417
  **MovePgSubmissionToProcessing Target Stages:** `SubmissionStatusStageProcessing`
1413
1418
 
1414
1419
  **MovePgSubmissionToSubmissionFailed Target Stages:** `SubmissionStatusStageSubmissionFailed`
1415
1420
 
1416
1421
  **MovePgSubmissionToSubmitted Target Stages:** `SubmissionStatusStageSubmitted`
1417
1422
 
1418
- **MovePgSubmissionToSucceeded Target Stages:** `SubmissionStatusStageSucceeded`
1419
-
1420
1423
  #### PgVocalink
1421
1424
 
1422
1425
  | Action | Type | Event |
@@ -22,7 +22,7 @@ export interface AddressUpdateMessage extends OdinRecordUpdatedEvent<AddressUpda
22
22
  * Properties for AddressUpdate action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 3
25
+ * @property Optional fields: 5
26
26
  */
27
27
  export interface AddressUpdateProperties {
28
28
  /**
@@ -46,6 +46,20 @@ export interface AddressUpdateProperties {
46
46
  * @type {NUMBER}
47
47
  */
48
48
  ExPolygonId?: number | null;
49
+ /**
50
+ * city
51
+ *
52
+ * The city of the contacts address. (Sales - Address)
53
+ * @type {TEXT}
54
+ */
55
+ City?: string | null;
56
+ /**
57
+ * post town
58
+ *
59
+ * Data field for Address records. Used by Sales team.
60
+ * @type {TEXT}
61
+ */
62
+ PostTown?: string | null;
49
63
  }
50
64
  /**
51
65
  * AddressUpdate
@@ -21,7 +21,7 @@ export interface CreateCaseMessage extends OdinRecordCreatedEvent<CreateCaseDto,
21
21
  /**
22
22
  * Properties for CreateCase action
23
23
  *
24
- * @property Required fields: 3
24
+ * @property Required fields: 1
25
25
  * @property Optional fields: 1
26
26
  */
27
27
  export interface CreateCaseProperties {
@@ -33,22 +33,6 @@ export interface CreateCaseProperties {
33
33
  * @required
34
34
  */
35
35
  Subject: string;
36
- /**
37
- * Team
38
- *
39
- * Reference identifier for Case relationships. Used for data integrity.
40
- * @type {LOOKUP}
41
- * @required
42
- */
43
- TeamId: string;
44
- /**
45
- * Owner
46
- *
47
- * Reference identifier for Case relationships. Used for data integrity.
48
- * @type {LOOKUP}
49
- * @required
50
- */
51
- OwnerId: string;
52
36
  /**
53
37
  * Channel
54
38
  *
@@ -0,0 +1,81 @@
1
+ /**
2
+ * CreateCaseFromCases Action DTO
3
+ *
4
+ * CreateCaseFromCases
5
+ *
6
+ * @module SupportModule
7
+ * @entity Case
8
+ * @actionKey CreateCaseFromCases
9
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for CreateCaseFromCases created events
16
+ *
17
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases
18
+ */
19
+ export interface CreateCaseFromCasesMessage extends OdinRecordCreatedEvent<CreateCaseFromCasesDto, CreateCaseFromCasesProperties> {
20
+ }
21
+ /**
22
+ * Properties for CreateCaseFromCases action
23
+ *
24
+ * @property Required fields: 1
25
+ * @property Optional fields: 2
26
+ */
27
+ export interface CreateCaseFromCasesProperties {
28
+ /**
29
+ * Subject
30
+ *
31
+ * Data field for Case records. Used by Customer Service team.
32
+ * @type {TEXT}
33
+ * @required
34
+ */
35
+ Subject: string;
36
+ /**
37
+ * Contact
38
+ *
39
+ * Reference identifier for Case relationships. Used for data integrity.
40
+ * @type {LOOKUP}
41
+ */
42
+ ContactId?: string | null;
43
+ /**
44
+ * Channel
45
+ *
46
+ * the channel from the source (Customer Service - Case)
47
+ * @type {ENUM}
48
+ * @default EMAIL
49
+ */
50
+ Channel?: string | null;
51
+ }
52
+ /**
53
+ * CreateCaseFromCases
54
+ *
55
+ * @actionType CREATE - Creates a new Case record
56
+ * @module SupportModule
57
+ * @entity Case
58
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases
59
+ * @permission schema.action.createcasefromcases.trigger
60
+ * @benchmark This action is tracked for performance benchmarks
61
+ */
62
+ export declare class CreateCaseFromCasesDto extends OdinRecordCreateDto<CreateCaseFromCasesProperties> {
63
+ /** Used by SDK generators to identify action type */
64
+ static readonly ACTION_TYPE = "CREATE";
65
+ static readonly ACTION_KEY = "CreateCaseFromCases";
66
+ static readonly MODULE_NAME = "SupportModule";
67
+ static readonly ENTITIES: string[];
68
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases";
69
+ static readonly PERMISSION = "schema.action.createcasefromcases.trigger";
70
+ /** Step metadata - entity this action targets */
71
+ static readonly STEP_ENTITY = "SupportModule:Case";
72
+ static readonly STEP_SCHEMA_ID = "be8173eb-269b-4a67-be0c-11ce6af5d561";
73
+ static readonly STEP_SCHEMA_ACTION_ID = "9cc78815-c7a6-4dc0-bc73-3e69947a8265";
74
+ static readonly AUTO_LINK_PARENT = true;
75
+ readonly actionName: string;
76
+ readonly schemaActionId: string;
77
+ readonly entity: string;
78
+ constructor(properties: CreateCaseFromCasesProperties, options?: {
79
+ journeyId?: string;
80
+ });
81
+ }
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /**
3
+ * CreateCaseFromCases Action DTO
4
+ *
5
+ * CreateCaseFromCases
6
+ *
7
+ * @module SupportModule
8
+ * @entity Case
9
+ * @actionKey CreateCaseFromCases
10
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateCaseFromCasesDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateCaseFromCases
19
+ *
20
+ * @actionType CREATE - Creates a new Case record
21
+ * @module SupportModule
22
+ * @entity Case
23
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases
24
+ * @permission schema.action.createcasefromcases.trigger
25
+ * @benchmark This action is tracked for performance benchmarks
26
+ */
27
+ class CreateCaseFromCasesDto extends core_1.OdinRecordCreateDto {
28
+ constructor(properties, options) {
29
+ super({
30
+ entity: 'SupportModule:Case',
31
+ type: undefined,
32
+ properties,
33
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
34
+ });
35
+ this.actionName = 'CreateCaseFromCases';
36
+ this.schemaActionId = '9cc78815-c7a6-4dc0-bc73-3e69947a8265';
37
+ this.entity = 'SupportModule:Case';
38
+ }
39
+ }
40
+ exports.CreateCaseFromCasesDto = CreateCaseFromCasesDto;
41
+ /** Used by SDK generators to identify action type */
42
+ CreateCaseFromCasesDto.ACTION_TYPE = 'CREATE';
43
+ CreateCaseFromCasesDto.ACTION_KEY = 'CreateCaseFromCases';
44
+ CreateCaseFromCasesDto.MODULE_NAME = 'SupportModule';
45
+ CreateCaseFromCasesDto.ENTITIES = ['Case'];
46
+ CreateCaseFromCasesDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases';
47
+ CreateCaseFromCasesDto.PERMISSION = 'schema.action.createcasefromcases.trigger';
48
+ /** Step metadata - entity this action targets */
49
+ CreateCaseFromCasesDto.STEP_ENTITY = 'SupportModule:Case';
50
+ CreateCaseFromCasesDto.STEP_SCHEMA_ID = 'be8173eb-269b-4a67-be0c-11ce6af5d561';
51
+ CreateCaseFromCasesDto.STEP_SCHEMA_ACTION_ID = '9cc78815-c7a6-4dc0-bc73-3e69947a8265';
52
+ CreateCaseFromCasesDto.AUTO_LINK_PARENT = true;
@@ -0,0 +1,240 @@
1
+ /**
2
+ * CreateCaseFromCasesFlows Action DTO
3
+ *
4
+ * CreateCaseFromCasesFlows
5
+ *
6
+ * @module SupportModule
7
+ * @entity Case
8
+ * @actionKey CreateCaseFromCasesFlows
9
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Flow.CreateCaseFromCasesFlows
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * Properties for CreateCaseFromCases action
16
+ *
17
+ * @property Required fields: 1
18
+ * @property Optional fields: 2
19
+ */
20
+ export interface CreateCaseFromCasesProperties {
21
+ /**
22
+ * Subject
23
+ *
24
+ * Data field for Case records. Used by Customer Service team.
25
+ * @type {TEXT}
26
+ * @required
27
+ */
28
+ Subject: string;
29
+ /**
30
+ * Contact
31
+ *
32
+ * Reference identifier for Case relationships. Used for data integrity.
33
+ * @type {LOOKUP}
34
+ */
35
+ ContactId?: string | null;
36
+ /**
37
+ * Channel
38
+ *
39
+ * the channel from the source (Customer Service - Case)
40
+ * @type {ENUM}
41
+ * @default EMAIL
42
+ */
43
+ Channel?: string | null;
44
+ }
45
+ /**
46
+ * CreateCaseFromCases
47
+ *
48
+ * @actionType CREATE - Creates a new Case record
49
+ * @module SupportModule
50
+ * @entity Case
51
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases
52
+ * @permission schema.action.createcasefromcases.trigger
53
+ * @benchmark This action is tracked for performance benchmarks
54
+ */
55
+ export declare class CreateCaseFromCasesDto extends OdinRecordCreateDto<CreateCaseFromCasesProperties> {
56
+ /** Used by SDK generators to identify action type */
57
+ static readonly ACTION_TYPE = "CREATE";
58
+ static readonly ACTION_KEY = "CreateCaseFromCases";
59
+ static readonly MODULE_NAME = "SupportModule";
60
+ static readonly ENTITIES: string[];
61
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases";
62
+ static readonly PERMISSION = "schema.action.createcasefromcases.trigger";
63
+ /** Step metadata - entity this action targets */
64
+ static readonly STEP_ENTITY = "SupportModule:Case";
65
+ static readonly STEP_SCHEMA_ID = "be8173eb-269b-4a67-be0c-11ce6af5d561";
66
+ static readonly STEP_SCHEMA_ACTION_ID = "9cc78815-c7a6-4dc0-bc73-3e69947a8265";
67
+ static readonly AUTO_LINK_PARENT = true;
68
+ readonly actionName: string;
69
+ readonly schemaActionId: string;
70
+ readonly entity: string;
71
+ constructor(properties: CreateCaseFromCasesProperties, options?: {
72
+ journeyId?: string;
73
+ });
74
+ }
75
+ /**
76
+ * Properties for AssignCase action
77
+ *
78
+ * @property Required fields: 0
79
+ * @property Optional fields: 2
80
+ */
81
+ export interface AssignCaseProperties {
82
+ /**
83
+ * Owner
84
+ *
85
+ * Reference identifier for Case relationships. Used for data integrity.
86
+ * @type {LOOKUP}
87
+ */
88
+ OwnerId?: string | null;
89
+ /**
90
+ * Team
91
+ *
92
+ * Reference identifier for Case relationships. Used for data integrity.
93
+ * @type {LOOKUP}
94
+ */
95
+ TeamId?: string | null;
96
+ }
97
+ /**
98
+ * Assign Owner
99
+ *
100
+ * Assign the case to a User
101
+ *
102
+ * @actionType UPDATE - Updates an existing Case record
103
+ * @module SupportModule
104
+ * @entity Case
105
+ * @entityType DEFAULT (Default)
106
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase
107
+ * @permission schema.action.assigncase.trigger
108
+ * @category WORKFLOW
109
+ * @benchmark This action is tracked for performance benchmarks
110
+ * @benchmarkTags assignment, case, customer-service, entity:case
111
+ */
112
+ export declare class AssignCaseDto extends OdinRecordUpdateDto<AssignCaseProperties> {
113
+ /** Used by SDK generators to identify action type */
114
+ static readonly ACTION_TYPE = "UPDATE";
115
+ static readonly ACTION_KEY = "AssignCase";
116
+ static readonly MODULE_NAME = "SupportModule";
117
+ static readonly ENTITIES: string[];
118
+ static readonly ENTITY_TYPE = "DEFAULT";
119
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase";
120
+ static readonly PERMISSION = "schema.action.assigncase.trigger";
121
+ /** Step metadata - entity this action targets */
122
+ static readonly STEP_ENTITY = "SupportModule:Case";
123
+ static readonly STEP_SCHEMA_ID = "be8173eb-269b-4a67-be0c-11ce6af5d561";
124
+ static readonly STEP_SCHEMA_ACTION_ID = "1b9ad25e-fe28-42fd-8198-b89d9df26bb1";
125
+ static readonly STEP_SCHEMA_TYPE_ID = "2d18d4c3-b4f8-4633-bfb0-ff0d62fbaecf";
126
+ static readonly STEP_TYPE = "DEFAULT";
127
+ static readonly AUTO_LINK_PARENT = false;
128
+ readonly actionName: string;
129
+ readonly schemaActionId: string;
130
+ readonly entity: string;
131
+ constructor(record: OdinRecord<any> | {
132
+ id: string;
133
+ entity: string;
134
+ type?: string;
135
+ }, properties: AssignCaseProperties, options?: {
136
+ journeyId?: string;
137
+ stageKey?: string;
138
+ });
139
+ }
140
+ declare type StepClassMap = {
141
+ CreateCaseFromCasesDto: CreateCaseFromCasesDto;
142
+ AssignCaseDto: AssignCaseDto;
143
+ };
144
+ /**
145
+ * Link definition for connecting steps in CreateCaseFromCasesFlows
146
+ */
147
+ export interface CreateCaseFromCasesFlowsStepLink {
148
+ /**
149
+ * The stepKey of the target step to link TO
150
+ * Must reference another step's stepKey in the same flow
151
+ */
152
+ stepKey: string;
153
+ /**
154
+ * The schema association ID (UUID) defining the relationship
155
+ * Use the association.id from the schema association definition
156
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
157
+ */
158
+ schemaAssociationId: string;
159
+ }
160
+ /**
161
+ * Step definition with linking metadata for CreateCaseFromCasesFlows
162
+ */
163
+ export interface CreateCaseFromCasesFlowsStepDefinition {
164
+ /** Unique identifier for this step */
165
+ stepKey: string;
166
+ /** The DTO class name for this step */
167
+ dtoClass: string;
168
+ /** The entity this step creates (Module:Entity format) */
169
+ entity: string;
170
+ /** Links to create after this step executes */
171
+ linksTo: CreateCaseFromCasesFlowsStepLink[] | null;
172
+ }
173
+ /**
174
+ * Type-safe step keys for CreateCaseFromCasesFlows
175
+ */
176
+ export declare const CreateCaseFromCasesFlowsSteps: {
177
+ readonly step_1: "step_1";
178
+ readonly step_2: "step_2";
179
+ };
180
+ export declare type CreateCaseFromCasesFlowsStepKey = typeof CreateCaseFromCasesFlowsSteps[keyof typeof CreateCaseFromCasesFlowsSteps];
181
+ /**
182
+ * RabbitMQ message payload for CreateCaseFromCasesFlows step flow events
183
+ *
184
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Flow.CreateCaseFromCasesFlows
185
+ */
186
+ export interface CreateCaseFromCasesFlowsMessage extends OdinRecordUpdatedEvent<CreateCaseFromCasesFlowsDto, {}> {
187
+ }
188
+ /**
189
+ * Properties for CreateCaseFromCasesFlows action
190
+ *
191
+ */
192
+ export interface CreateCaseFromCasesFlowsProperties {
193
+ }
194
+ /**
195
+ * CreateCaseFromCasesFlows
196
+ *
197
+ * @actionType MULTI_STEP_FLOW - Multi-step workflow action
198
+ * @module SupportModule
199
+ * @entity Case
200
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Flow.CreateCaseFromCasesFlows
201
+ * @permission schema.action.createcasefromcasesflows.trigger
202
+ * @benchmark This action is tracked for performance benchmarks
203
+ */
204
+ export declare class CreateCaseFromCasesFlowsDto extends OdinRecordUpdateDto<Record<string, any>> {
205
+ /** Used by SDK generators to identify action type */
206
+ static readonly ACTION_TYPE = "UPDATE";
207
+ static readonly ACTION_KEY = "CreateCaseFromCasesFlows";
208
+ static readonly MODULE_NAME = "SupportModule";
209
+ static readonly ENTITIES: string[];
210
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Flow.CreateCaseFromCasesFlows";
211
+ static readonly SCHEMA_ACTION_ID = "42d6b68f-0d7e-426b-a6a7-038dcab4c216";
212
+ static readonly PERMISSION = "schema.action.createcasefromcasesflows.trigger";
213
+ static readonly IS_STAGE_TRANSITION = false;
214
+ static readonly IS_MULTI_STEP_FLOW = true;
215
+ static readonly HAS_STEP_LINKS = false;
216
+ /**
217
+ * Step definitions with linking metadata
218
+ * Used by SDK and backend for auto-linking after step execution
219
+ */
220
+ static readonly stepDefinitions: CreateCaseFromCasesFlowsStepDefinition[];
221
+ /** Type-safe step key accessor */
222
+ static readonly Steps: {
223
+ readonly step_1: "step_1";
224
+ readonly step_2: "step_2";
225
+ };
226
+ readonly actionName: string;
227
+ readonly schemaActionId: string;
228
+ readonly entity: string;
229
+ constructor(record: OdinRecord<any> | {
230
+ id: string;
231
+ entity: string;
232
+ type?: string;
233
+ }, options?: {
234
+ journeyId?: string;
235
+ });
236
+ /** Step classes that can be used with this action */
237
+ static readonly stepClasses: readonly ["CreateCaseFromCasesDto", "AssignCaseDto"];
238
+ steps: StepClassMap[(typeof CreateCaseFromCasesFlowsDto.stepClasses)[number]][];
239
+ }
240
+ export {};
@@ -0,0 +1,163 @@
1
+ "use strict";
2
+ /**
3
+ * CreateCaseFromCasesFlows Action DTO
4
+ *
5
+ * CreateCaseFromCasesFlows
6
+ *
7
+ * @module SupportModule
8
+ * @entity Case
9
+ * @actionKey CreateCaseFromCasesFlows
10
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Flow.CreateCaseFromCasesFlows
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateCaseFromCasesFlowsDto = exports.CreateCaseFromCasesFlowsSteps = exports.AssignCaseDto = exports.CreateCaseFromCasesDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * CreateCaseFromCases
19
+ *
20
+ * @actionType CREATE - Creates a new Case record
21
+ * @module SupportModule
22
+ * @entity Case
23
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases
24
+ * @permission schema.action.createcasefromcases.trigger
25
+ * @benchmark This action is tracked for performance benchmarks
26
+ */
27
+ class CreateCaseFromCasesDto extends core_1.OdinRecordCreateDto {
28
+ constructor(properties, options) {
29
+ super({
30
+ entity: 'SupportModule:Case',
31
+ type: undefined,
32
+ properties,
33
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
34
+ });
35
+ this.actionName = 'CreateCaseFromCases';
36
+ this.schemaActionId = '9cc78815-c7a6-4dc0-bc73-3e69947a8265';
37
+ this.entity = 'SupportModule:Case';
38
+ }
39
+ }
40
+ exports.CreateCaseFromCasesDto = CreateCaseFromCasesDto;
41
+ /** Used by SDK generators to identify action type */
42
+ CreateCaseFromCasesDto.ACTION_TYPE = 'CREATE';
43
+ CreateCaseFromCasesDto.ACTION_KEY = 'CreateCaseFromCases';
44
+ CreateCaseFromCasesDto.MODULE_NAME = 'SupportModule';
45
+ CreateCaseFromCasesDto.ENTITIES = ['Case'];
46
+ CreateCaseFromCasesDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases';
47
+ CreateCaseFromCasesDto.PERMISSION = 'schema.action.createcasefromcases.trigger';
48
+ /** Step metadata - entity this action targets */
49
+ CreateCaseFromCasesDto.STEP_ENTITY = 'SupportModule:Case';
50
+ CreateCaseFromCasesDto.STEP_SCHEMA_ID = 'be8173eb-269b-4a67-be0c-11ce6af5d561';
51
+ CreateCaseFromCasesDto.STEP_SCHEMA_ACTION_ID = '9cc78815-c7a6-4dc0-bc73-3e69947a8265';
52
+ CreateCaseFromCasesDto.AUTO_LINK_PARENT = true;
53
+ /**
54
+ * Assign Owner
55
+ *
56
+ * Assign the case to a User
57
+ *
58
+ * @actionType UPDATE - Updates an existing Case record
59
+ * @module SupportModule
60
+ * @entity Case
61
+ * @entityType DEFAULT (Default)
62
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase
63
+ * @permission schema.action.assigncase.trigger
64
+ * @category WORKFLOW
65
+ * @benchmark This action is tracked for performance benchmarks
66
+ * @benchmarkTags assignment, case, customer-service, entity:case
67
+ */
68
+ class AssignCaseDto extends core_1.OdinRecordUpdateDto {
69
+ constructor(record, properties, options) {
70
+ super({
71
+ id: record.id,
72
+ entity: record.entity,
73
+ type: record.type,
74
+ properties,
75
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
76
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
77
+ });
78
+ this.actionName = 'AssignCase';
79
+ this.schemaActionId = '1b9ad25e-fe28-42fd-8198-b89d9df26bb1';
80
+ this.entity = 'SupportModule:Case';
81
+ }
82
+ }
83
+ exports.AssignCaseDto = AssignCaseDto;
84
+ /** Used by SDK generators to identify action type */
85
+ AssignCaseDto.ACTION_TYPE = 'UPDATE';
86
+ AssignCaseDto.ACTION_KEY = 'AssignCase';
87
+ AssignCaseDto.MODULE_NAME = 'SupportModule';
88
+ AssignCaseDto.ENTITIES = ['Case'];
89
+ AssignCaseDto.ENTITY_TYPE = 'DEFAULT';
90
+ AssignCaseDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.AssignCase';
91
+ AssignCaseDto.PERMISSION = 'schema.action.assigncase.trigger';
92
+ /** Step metadata - entity this action targets */
93
+ AssignCaseDto.STEP_ENTITY = 'SupportModule:Case';
94
+ AssignCaseDto.STEP_SCHEMA_ID = 'be8173eb-269b-4a67-be0c-11ce6af5d561';
95
+ AssignCaseDto.STEP_SCHEMA_ACTION_ID = '1b9ad25e-fe28-42fd-8198-b89d9df26bb1';
96
+ AssignCaseDto.STEP_SCHEMA_TYPE_ID = '2d18d4c3-b4f8-4633-bfb0-ff0d62fbaecf';
97
+ AssignCaseDto.STEP_TYPE = 'DEFAULT';
98
+ AssignCaseDto.AUTO_LINK_PARENT = false;
99
+ /**
100
+ * Type-safe step keys for CreateCaseFromCasesFlows
101
+ */
102
+ exports.CreateCaseFromCasesFlowsSteps = {
103
+ step_1: 'step_1',
104
+ step_2: 'step_2',
105
+ };
106
+ /**
107
+ * CreateCaseFromCasesFlows
108
+ *
109
+ * @actionType MULTI_STEP_FLOW - Multi-step workflow action
110
+ * @module SupportModule
111
+ * @entity Case
112
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Flow.CreateCaseFromCasesFlows
113
+ * @permission schema.action.createcasefromcasesflows.trigger
114
+ * @benchmark This action is tracked for performance benchmarks
115
+ */
116
+ class CreateCaseFromCasesFlowsDto extends core_1.OdinRecordUpdateDto {
117
+ constructor(record, options) {
118
+ super({
119
+ id: record.id,
120
+ entity: record.entity,
121
+ type: record.type,
122
+ properties: {},
123
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
124
+ });
125
+ this.actionName = 'CreateCaseFromCasesFlows';
126
+ this.schemaActionId = '42d6b68f-0d7e-426b-a6a7-038dcab4c216';
127
+ this.entity = 'SupportModule:Case';
128
+ }
129
+ }
130
+ exports.CreateCaseFromCasesFlowsDto = CreateCaseFromCasesFlowsDto;
131
+ /** Used by SDK generators to identify action type */
132
+ CreateCaseFromCasesFlowsDto.ACTION_TYPE = 'UPDATE';
133
+ CreateCaseFromCasesFlowsDto.ACTION_KEY = 'CreateCaseFromCasesFlows';
134
+ CreateCaseFromCasesFlowsDto.MODULE_NAME = 'SupportModule';
135
+ CreateCaseFromCasesFlowsDto.ENTITIES = ['Case'];
136
+ CreateCaseFromCasesFlowsDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Flow.CreateCaseFromCasesFlows';
137
+ CreateCaseFromCasesFlowsDto.SCHEMA_ACTION_ID = '42d6b68f-0d7e-426b-a6a7-038dcab4c216';
138
+ CreateCaseFromCasesFlowsDto.PERMISSION = 'schema.action.createcasefromcasesflows.trigger';
139
+ CreateCaseFromCasesFlowsDto.IS_STAGE_TRANSITION = false;
140
+ CreateCaseFromCasesFlowsDto.IS_MULTI_STEP_FLOW = true;
141
+ CreateCaseFromCasesFlowsDto.HAS_STEP_LINKS = false;
142
+ /**
143
+ * Step definitions with linking metadata
144
+ * Used by SDK and backend for auto-linking after step execution
145
+ */
146
+ CreateCaseFromCasesFlowsDto.stepDefinitions = [
147
+ {
148
+ stepKey: 'step_1',
149
+ dtoClass: 'CreateCaseFromCasesDto',
150
+ entity: 'SupportModule:Case',
151
+ linksTo: null
152
+ },
153
+ {
154
+ stepKey: 'step_2',
155
+ dtoClass: 'AssignCaseDto',
156
+ entity: 'SupportModule:Case',
157
+ linksTo: null
158
+ }
159
+ ];
160
+ /** Type-safe step key accessor */
161
+ CreateCaseFromCasesFlowsDto.Steps = exports.CreateCaseFromCasesFlowsSteps;
162
+ /** Step classes that can be used with this action */
163
+ CreateCaseFromCasesFlowsDto.stepClasses = ['CreateCaseFromCasesDto', 'AssignCaseDto'];