@d19n/youfibre-odin-sdk 2.0.144 → 2.0.145

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 (29) hide show
  1. package/README.md +8 -2
  2. package/dist/actions-v2/CloseAndMergeCaseActionDto.d.ts +92 -0
  3. package/dist/actions-v2/CloseAndMergeCaseActionDto.js +61 -0
  4. package/dist/actions-v2/CloseAndMergeCaseDto.d.ts +190 -0
  5. package/dist/actions-v2/CloseAndMergeCaseDto.js +126 -0
  6. package/dist/actions-v2/CreateCaseWithDpaDto.d.ts +16 -10
  7. package/dist/actions-v2/CreateInboundCallEventDto.d.ts +121 -0
  8. package/dist/actions-v2/CreateInboundCallEventDto.js +59 -0
  9. package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +116 -0
  10. package/dist/actions-v2/CreateOutboundCallEventDto.js +54 -0
  11. package/dist/actions-v2/MoveAccountCreditToCancelledDto.d.ts +1 -48
  12. package/dist/actions-v2/MoveAccountCreditToCancelledDto.js +1 -21
  13. package/dist/actions-v2/MoveAccountCreditToCompleteDto.d.ts +1 -48
  14. package/dist/actions-v2/MoveAccountCreditToCompleteDto.js +1 -21
  15. package/dist/actions-v2/MoveAccountCreditToInProgressDto.d.ts +1 -48
  16. package/dist/actions-v2/MoveAccountCreditToInProgressDto.js +1 -21
  17. package/dist/actions-v2/MoveAccountCreditToPendingDto.d.ts +1 -48
  18. package/dist/actions-v2/MoveAccountCreditToPendingDto.js +1 -21
  19. package/dist/actions-v2/MoveAccountCreditToVoidDto.d.ts +1 -48
  20. package/dist/actions-v2/MoveAccountCreditToVoidDto.js +1 -21
  21. package/dist/entities-v2/Case.d.ts +12 -0
  22. package/dist/entities-v2/Case.js +2 -0
  23. package/dist/entities-v2/TwilioCallEvents.d.ts +169 -18
  24. package/dist/entities-v2/TwilioCallEvents.js +39 -3
  25. package/dist/records-v2/CaseRecord.d.ts +114 -0
  26. package/dist/records-v2/CaseRecord.js +173 -1
  27. package/dist/records-v2/TwilioCallEventsRecord.d.ts +93 -3
  28. package/dist/records-v2/TwilioCallEventsRecord.js +105 -1
  29. 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
- | **TwilioCallEvents** | TwilioCallEvents Entity Definition | INBOUND_CALL_STATUS_UPDATE_EVENT, NUMBER_CALL_STATUS_EVENT, OUTBOUND_CALL_STATUS_UPDATE_EVENT... |
302
+ | **TwilioCallEvents** | TwilioCallEvents Entity Definition | INBOUND_CALL_EVENT, INBOUND_CALL_STATUS_UPDATE_EVENT, NUMBER_CALL_STATUS_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 **689** actions.
357
+ This SDK includes **693** actions.
358
358
 
359
359
  ### Action Types
360
360
 
@@ -810,6 +810,8 @@ This SDK includes **689** actions.
810
810
  | `Casedefaultstageblocked` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.MoveCaseToBlockedAction |
811
811
  | `CasteTransitionOpenToEscalated` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.EscalateCaseAction |
812
812
  | `ChangeCaseChannel` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.ChangeCaseChannel |
813
+ | `CloseAndMergeCaseAction` | UPDATE | k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction |
814
+ | `CloseAndMergeCase` | STAGE_TRANSITION | k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction |
813
815
  | `CreateCase` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
814
816
  | `CreateCaseFromCases` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCaseFromCases |
815
817
  | `CreateCaseFromContact` | CREATE | k1.t-hEOJjsDb.SupportModule.Case.Create.CreateCase |
@@ -869,6 +871,8 @@ This SDK includes **689** actions.
869
871
 
870
872
  **CasteTransitionOpenToEscalated Target Stages:** `CaseDefaultStageEscalated`
871
873
 
874
+ **CloseAndMergeCase Target Stages:** `CaseDefaultStageClosed`
875
+
872
876
  **EscalateCaseTransition Target Stages:** `CaseDefaultStageEscalated`
873
877
 
874
878
  **MoveCaseOutageToSolvedTransition Target Stages:** `OutagePipelineStageSolved`
@@ -1441,8 +1445,10 @@ This SDK includes **689** actions.
1441
1445
 
1442
1446
  | Action | Type | Event |
1443
1447
  |--------|------|-------|
1448
+ | `CreateInboundCallEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent |
1444
1449
  | `CreateInboundCallStatusUpdateEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallStatusUpdateEvent |
1445
1450
  | `CreateNumberCallStatusEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateNumberCallStatusEvent |
1451
+ | `CreateOutboundCallEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent |
1446
1452
  | `CreateOutboundCallStatusUpdateEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallStatusUpdateEvent |
1447
1453
  | `CreateOutboundDialActionEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundDialActionEvent |
1448
1454
 
@@ -0,0 +1,92 @@
1
+ /**
2
+ * CloseAndMergeCaseAction Action DTO
3
+ *
4
+ * Close And Merge Case Action
5
+ *
6
+ * @module SupportModule
7
+ * @entity Case
8
+ * @entityType DEFAULT
9
+ * @actionKey CloseAndMergeCaseAction
10
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * RabbitMQ message payload for CloseAndMergeCaseAction updated events
17
+ *
18
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
19
+ */
20
+ export interface CloseAndMergeCaseActionMessage extends OdinRecordUpdatedEvent<CloseAndMergeCaseActionDto, CloseAndMergeCaseActionProperties> {
21
+ }
22
+ /**
23
+ * Properties for CloseAndMergeCaseAction action
24
+ *
25
+ * @property Required fields: 0
26
+ * @property Optional fields: 3
27
+ */
28
+ export interface CloseAndMergeCaseActionProperties {
29
+ /**
30
+ * Allow CSAT communications
31
+ *
32
+ * Allow CSAT communications
33
+ * @type {BOOLEAN}
34
+ * @default false
35
+ */
36
+ CsatAllowed?: boolean | null;
37
+ /**
38
+ * Contact
39
+ *
40
+ * Reference identifier for Case relationships. Used for data integrity.
41
+ * @type {LOOKUP}
42
+ */
43
+ ContactId?: string | null;
44
+ /**
45
+ * Case merged into
46
+ *
47
+ * Case merged into
48
+ * @type {LOOKUP}
49
+ */
50
+ CaseMergedInto?: string | null;
51
+ }
52
+ /**
53
+ * CloseAndMergeCaseAction
54
+ *
55
+ * Close And Merge Case Action
56
+ *
57
+ * @actionType UPDATE - Updates an existing Case record
58
+ * @module SupportModule
59
+ * @entity Case
60
+ * @entityType DEFAULT (Default)
61
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
62
+ * @permission schema.action.closeandmergecaseaction.trigger
63
+ * @benchmark This action is tracked for performance benchmarks
64
+ */
65
+ export declare class CloseAndMergeCaseActionDto extends OdinRecordUpdateDto<CloseAndMergeCaseActionProperties> {
66
+ /** Used by SDK generators to identify action type */
67
+ static readonly ACTION_TYPE = "UPDATE";
68
+ static readonly ACTION_KEY = "CloseAndMergeCaseAction";
69
+ static readonly MODULE_NAME = "SupportModule";
70
+ static readonly ENTITIES: string[];
71
+ static readonly ENTITY_TYPE = "DEFAULT";
72
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction";
73
+ static readonly PERMISSION = "schema.action.closeandmergecaseaction.trigger";
74
+ /** Step metadata - entity this action targets */
75
+ static readonly STEP_ENTITY = "SupportModule:Case";
76
+ static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
77
+ static readonly STEP_SCHEMA_ACTION_ID = "b41bfc98-62c7-4097-80c0-914e043777b3";
78
+ static readonly STEP_SCHEMA_TYPE_ID = "22b50598-66be-435c-bd61-4dcd7d0b3420";
79
+ static readonly STEP_TYPE = "DEFAULT";
80
+ static readonly AUTO_LINK_PARENT = false;
81
+ readonly actionName: string;
82
+ readonly schemaActionId: string;
83
+ readonly entity: string;
84
+ constructor(record: OdinRecord<any> | {
85
+ id: string;
86
+ entity: string;
87
+ type?: string;
88
+ }, properties: CloseAndMergeCaseActionProperties, options?: {
89
+ journeyId?: string;
90
+ stageKey?: string;
91
+ });
92
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /**
3
+ * CloseAndMergeCaseAction Action DTO
4
+ *
5
+ * Close And Merge Case Action
6
+ *
7
+ * @module SupportModule
8
+ * @entity Case
9
+ * @entityType DEFAULT
10
+ * @actionKey CloseAndMergeCaseAction
11
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CloseAndMergeCaseActionDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CloseAndMergeCaseAction
20
+ *
21
+ * Close And Merge Case Action
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.CloseAndMergeCaseAction
28
+ * @permission schema.action.closeandmergecaseaction.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CloseAndMergeCaseActionDto 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 = 'CloseAndMergeCaseAction';
42
+ this.schemaActionId = 'b41bfc98-62c7-4097-80c0-914e043777b3';
43
+ this.entity = 'SupportModule:Case';
44
+ }
45
+ }
46
+ exports.CloseAndMergeCaseActionDto = CloseAndMergeCaseActionDto;
47
+ /** Used by SDK generators to identify action type */
48
+ CloseAndMergeCaseActionDto.ACTION_TYPE = 'UPDATE';
49
+ CloseAndMergeCaseActionDto.ACTION_KEY = 'CloseAndMergeCaseAction';
50
+ CloseAndMergeCaseActionDto.MODULE_NAME = 'SupportModule';
51
+ CloseAndMergeCaseActionDto.ENTITIES = ['Case'];
52
+ CloseAndMergeCaseActionDto.ENTITY_TYPE = 'DEFAULT';
53
+ CloseAndMergeCaseActionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction';
54
+ CloseAndMergeCaseActionDto.PERMISSION = 'schema.action.closeandmergecaseaction.trigger';
55
+ /** Step metadata - entity this action targets */
56
+ CloseAndMergeCaseActionDto.STEP_ENTITY = 'SupportModule:Case';
57
+ CloseAndMergeCaseActionDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
58
+ CloseAndMergeCaseActionDto.STEP_SCHEMA_ACTION_ID = 'b41bfc98-62c7-4097-80c0-914e043777b3';
59
+ CloseAndMergeCaseActionDto.STEP_SCHEMA_TYPE_ID = '22b50598-66be-435c-bd61-4dcd7d0b3420';
60
+ CloseAndMergeCaseActionDto.STEP_TYPE = 'DEFAULT';
61
+ CloseAndMergeCaseActionDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,190 @@
1
+ /**
2
+ * CloseAndMergeCase Action DTO
3
+ *
4
+ * Close And Merge Case
5
+ *
6
+ * @module SupportModule
7
+ * @entity Case
8
+ * @entityType DEFAULT
9
+ * @actionKey CloseAndMergeCase
10
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * Properties for CloseAndMergeCaseAction action
17
+ *
18
+ * @property Required fields: 0
19
+ * @property Optional fields: 3
20
+ */
21
+ export interface CloseAndMergeCaseActionProperties {
22
+ /**
23
+ * Allow CSAT communications
24
+ *
25
+ * Allow CSAT communications
26
+ * @type {BOOLEAN}
27
+ * @default false
28
+ */
29
+ CsatAllowed?: boolean | null;
30
+ /**
31
+ * Contact
32
+ *
33
+ * Reference identifier for Case relationships. Used for data integrity.
34
+ * @type {LOOKUP}
35
+ */
36
+ ContactId?: string | null;
37
+ /**
38
+ * Case merged into
39
+ *
40
+ * Case merged into
41
+ * @type {LOOKUP}
42
+ */
43
+ CaseMergedInto?: string | null;
44
+ }
45
+ /**
46
+ * CloseAndMergeCaseAction
47
+ *
48
+ * Close And Merge Case Action
49
+ *
50
+ * @actionType UPDATE - Updates an existing Case record
51
+ * @module SupportModule
52
+ * @entity Case
53
+ * @entityType DEFAULT (Default)
54
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction
55
+ * @permission schema.action.closeandmergecaseaction.trigger
56
+ * @benchmark This action is tracked for performance benchmarks
57
+ */
58
+ export declare class CloseAndMergeCaseActionDto extends OdinRecordUpdateDto<CloseAndMergeCaseActionProperties> {
59
+ /** Used by SDK generators to identify action type */
60
+ static readonly ACTION_TYPE = "UPDATE";
61
+ static readonly ACTION_KEY = "CloseAndMergeCaseAction";
62
+ static readonly MODULE_NAME = "SupportModule";
63
+ static readonly ENTITIES: string[];
64
+ static readonly ENTITY_TYPE = "DEFAULT";
65
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction";
66
+ static readonly PERMISSION = "schema.action.closeandmergecaseaction.trigger";
67
+ /** Step metadata - entity this action targets */
68
+ static readonly STEP_ENTITY = "SupportModule:Case";
69
+ static readonly STEP_SCHEMA_ID = "bb540d25-53bf-491b-9d03-f3d42f755b3a";
70
+ static readonly STEP_SCHEMA_ACTION_ID = "b41bfc98-62c7-4097-80c0-914e043777b3";
71
+ static readonly STEP_SCHEMA_TYPE_ID = "22b50598-66be-435c-bd61-4dcd7d0b3420";
72
+ static readonly STEP_TYPE = "DEFAULT";
73
+ static readonly AUTO_LINK_PARENT = false;
74
+ readonly actionName: string;
75
+ readonly schemaActionId: string;
76
+ readonly entity: string;
77
+ constructor(record: OdinRecord<any> | {
78
+ id: string;
79
+ entity: string;
80
+ type?: string;
81
+ }, properties: CloseAndMergeCaseActionProperties, options?: {
82
+ journeyId?: string;
83
+ stageKey?: string;
84
+ });
85
+ }
86
+ declare type StepClassMap = {
87
+ CloseAndMergeCaseActionDto: CloseAndMergeCaseActionDto;
88
+ };
89
+ /**
90
+ * Link definition for connecting steps in CloseAndMergeCase
91
+ */
92
+ export interface CloseAndMergeCaseStepLink {
93
+ /**
94
+ * The stepKey of the target step to link TO
95
+ * Must reference another step's stepKey in the same flow
96
+ */
97
+ stepKey: string;
98
+ /**
99
+ * The schema association ID (UUID) defining the relationship
100
+ * Use the association.id from the schema association definition
101
+ * @example "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
102
+ */
103
+ schemaAssociationId: string;
104
+ }
105
+ /**
106
+ * Step definition with linking metadata for CloseAndMergeCase
107
+ */
108
+ export interface CloseAndMergeCaseStepDefinition {
109
+ /** Unique identifier for this step */
110
+ stepKey: string;
111
+ /** The DTO class name for this step */
112
+ dtoClass: string;
113
+ /** The entity this step creates (Module:Entity format) */
114
+ entity: string;
115
+ /** Links to create after this step executes */
116
+ linksTo: CloseAndMergeCaseStepLink[] | null;
117
+ }
118
+ /**
119
+ * Type-safe step keys for CloseAndMergeCase
120
+ */
121
+ export declare const CloseAndMergeCaseSteps: {
122
+ readonly step_1: "step_1";
123
+ };
124
+ export declare type CloseAndMergeCaseStepKey = typeof CloseAndMergeCaseSteps[keyof typeof CloseAndMergeCaseSteps];
125
+ /**
126
+ * RabbitMQ message payload for CloseAndMergeCase step flow events
127
+ *
128
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
129
+ */
130
+ export interface CloseAndMergeCaseMessage extends OdinRecordUpdatedEvent<CloseAndMergeCaseDto, {}> {
131
+ }
132
+ /**
133
+ * Properties for CloseAndMergeCase action
134
+ *
135
+ */
136
+ export interface CloseAndMergeCaseProperties {
137
+ }
138
+ /**
139
+ * CloseAndMergeCase
140
+ *
141
+ * Close And Merge Case
142
+ *
143
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
144
+ * @module SupportModule
145
+ * @entity Case
146
+ * @entityType DEFAULT (Default)
147
+ * @targetStages CaseDefaultStageClosed
148
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
149
+ * @permission schema.action.closeandmergecase.trigger
150
+ * @benchmark This action is tracked for performance benchmarks
151
+ */
152
+ export declare class CloseAndMergeCaseDto extends OdinRecordUpdateDto<Record<string, any>> {
153
+ /** Used by SDK generators to identify action type */
154
+ static readonly ACTION_TYPE = "UPDATE";
155
+ static readonly ACTION_KEY = "CloseAndMergeCase";
156
+ static readonly MODULE_NAME = "SupportModule";
157
+ static readonly ENTITIES: string[];
158
+ static readonly ENTITY_TYPE = "DEFAULT";
159
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase";
160
+ static readonly SCHEMA_ACTION_ID = "d3a1d71d-9690-4f6d-94ac-6f40c44a9c2f";
161
+ static readonly PERMISSION = "schema.action.closeandmergecase.trigger";
162
+ static readonly TARGET_STAGES: readonly ["CaseDefaultStageClosed"];
163
+ static readonly IS_STAGE_TRANSITION = true;
164
+ static readonly IS_MULTI_STEP_FLOW = false;
165
+ static readonly HAS_STEP_LINKS = false;
166
+ /**
167
+ * Step definitions with linking metadata
168
+ * Used by SDK and backend for auto-linking after step execution
169
+ */
170
+ static readonly stepDefinitions: CloseAndMergeCaseStepDefinition[];
171
+ /** Type-safe step key accessor */
172
+ static readonly Steps: {
173
+ readonly step_1: "step_1";
174
+ };
175
+ readonly actionName: string;
176
+ readonly schemaActionId: string;
177
+ readonly entity: string;
178
+ readonly stageKey: string;
179
+ constructor(record: OdinRecord<any> | {
180
+ id: string;
181
+ entity: string;
182
+ type?: string;
183
+ }, options?: {
184
+ journeyId?: string;
185
+ });
186
+ /** Step classes that can be used with this action */
187
+ static readonly stepClasses: readonly ["CloseAndMergeCaseActionDto"];
188
+ steps: StepClassMap[(typeof CloseAndMergeCaseDto.stepClasses)[number]][];
189
+ }
190
+ export {};
@@ -0,0 +1,126 @@
1
+ "use strict";
2
+ /**
3
+ * CloseAndMergeCase Action DTO
4
+ *
5
+ * Close And Merge Case
6
+ *
7
+ * @module SupportModule
8
+ * @entity Case
9
+ * @entityType DEFAULT
10
+ * @actionKey CloseAndMergeCase
11
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CloseAndMergeCaseDto = exports.CloseAndMergeCaseSteps = exports.CloseAndMergeCaseActionDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CloseAndMergeCaseAction
20
+ *
21
+ * Close And Merge Case Action
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.CloseAndMergeCaseAction
28
+ * @permission schema.action.closeandmergecaseaction.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CloseAndMergeCaseActionDto 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 = 'CloseAndMergeCaseAction';
42
+ this.schemaActionId = 'b41bfc98-62c7-4097-80c0-914e043777b3';
43
+ this.entity = 'SupportModule:Case';
44
+ }
45
+ }
46
+ exports.CloseAndMergeCaseActionDto = CloseAndMergeCaseActionDto;
47
+ /** Used by SDK generators to identify action type */
48
+ CloseAndMergeCaseActionDto.ACTION_TYPE = 'UPDATE';
49
+ CloseAndMergeCaseActionDto.ACTION_KEY = 'CloseAndMergeCaseAction';
50
+ CloseAndMergeCaseActionDto.MODULE_NAME = 'SupportModule';
51
+ CloseAndMergeCaseActionDto.ENTITIES = ['Case'];
52
+ CloseAndMergeCaseActionDto.ENTITY_TYPE = 'DEFAULT';
53
+ CloseAndMergeCaseActionDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Update.CloseAndMergeCaseAction';
54
+ CloseAndMergeCaseActionDto.PERMISSION = 'schema.action.closeandmergecaseaction.trigger';
55
+ /** Step metadata - entity this action targets */
56
+ CloseAndMergeCaseActionDto.STEP_ENTITY = 'SupportModule:Case';
57
+ CloseAndMergeCaseActionDto.STEP_SCHEMA_ID = 'bb540d25-53bf-491b-9d03-f3d42f755b3a';
58
+ CloseAndMergeCaseActionDto.STEP_SCHEMA_ACTION_ID = 'b41bfc98-62c7-4097-80c0-914e043777b3';
59
+ CloseAndMergeCaseActionDto.STEP_SCHEMA_TYPE_ID = '22b50598-66be-435c-bd61-4dcd7d0b3420';
60
+ CloseAndMergeCaseActionDto.STEP_TYPE = 'DEFAULT';
61
+ CloseAndMergeCaseActionDto.AUTO_LINK_PARENT = false;
62
+ /**
63
+ * Type-safe step keys for CloseAndMergeCase
64
+ */
65
+ exports.CloseAndMergeCaseSteps = {
66
+ step_1: 'step_1',
67
+ };
68
+ /**
69
+ * CloseAndMergeCase
70
+ *
71
+ * Close And Merge Case
72
+ *
73
+ * @actionType STAGE_TRANSITION - Transitions record to new pipeline stage
74
+ * @module SupportModule
75
+ * @entity Case
76
+ * @entityType DEFAULT (Default)
77
+ * @targetStages CaseDefaultStageClosed
78
+ * @event k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase
79
+ * @permission schema.action.closeandmergecase.trigger
80
+ * @benchmark This action is tracked for performance benchmarks
81
+ */
82
+ class CloseAndMergeCaseDto 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 = 'CloseAndMergeCase';
92
+ this.schemaActionId = 'd3a1d71d-9690-4f6d-94ac-6f40c44a9c2f';
93
+ this.entity = 'SupportModule:Case';
94
+ this.stageKey = 'CaseDefaultStageClosed';
95
+ }
96
+ }
97
+ exports.CloseAndMergeCaseDto = CloseAndMergeCaseDto;
98
+ /** Used by SDK generators to identify action type */
99
+ CloseAndMergeCaseDto.ACTION_TYPE = 'UPDATE';
100
+ CloseAndMergeCaseDto.ACTION_KEY = 'CloseAndMergeCase';
101
+ CloseAndMergeCaseDto.MODULE_NAME = 'SupportModule';
102
+ CloseAndMergeCaseDto.ENTITIES = ['Case'];
103
+ CloseAndMergeCaseDto.ENTITY_TYPE = 'DEFAULT';
104
+ CloseAndMergeCaseDto.EVENT_NAME = 'k1.t-hEOJjsDb.SupportModule.Case.Transition.CloseAndMergeCase';
105
+ CloseAndMergeCaseDto.SCHEMA_ACTION_ID = 'd3a1d71d-9690-4f6d-94ac-6f40c44a9c2f';
106
+ CloseAndMergeCaseDto.PERMISSION = 'schema.action.closeandmergecase.trigger';
107
+ CloseAndMergeCaseDto.TARGET_STAGES = ['CaseDefaultStageClosed'];
108
+ CloseAndMergeCaseDto.IS_STAGE_TRANSITION = true;
109
+ CloseAndMergeCaseDto.IS_MULTI_STEP_FLOW = false;
110
+ CloseAndMergeCaseDto.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
+ CloseAndMergeCaseDto.stepDefinitions = [
116
+ {
117
+ stepKey: 'step_1',
118
+ dtoClass: 'CloseAndMergeCaseActionDto',
119
+ entity: 'SupportModule:Case',
120
+ linksTo: null
121
+ }
122
+ ];
123
+ /** Type-safe step key accessor */
124
+ CloseAndMergeCaseDto.Steps = exports.CloseAndMergeCaseSteps;
125
+ /** Step classes that can be used with this action */
126
+ CloseAndMergeCaseDto.stepClasses = ['CloseAndMergeCaseActionDto'];
@@ -22,8 +22,8 @@ export interface CreateCaseWithDpaMessage extends OdinRecordCreatedEvent<CreateC
22
22
  /**
23
23
  * Properties for CreateCaseWithDpa action
24
24
  *
25
- * @property Required fields: 5
26
- * @property Optional fields: 9
25
+ * @property Required fields: 4
26
+ * @property Optional fields: 11
27
27
  */
28
28
  export interface CreateCaseWithDpaProperties {
29
29
  /**
@@ -42,14 +42,6 @@ export interface CreateCaseWithDpaProperties {
42
42
  * @required
43
43
  */
44
44
  Source: string;
45
- /**
46
- * Channel
47
- *
48
- * the channel from the source (Customer Service - Case)
49
- * @type {ENUM}
50
- * @required
51
- */
52
- Channel: string;
53
45
  /**
54
46
  * Category
55
47
  *
@@ -73,6 +65,13 @@ export interface CreateCaseWithDpaProperties {
73
65
  * @type {TEXT}
74
66
  */
75
67
  SocialMediaExternalId?: string | null;
68
+ /**
69
+ * Channel
70
+ *
71
+ * the channel from the source (Customer Service - Case)
72
+ * @type {ENUM}
73
+ */
74
+ Channel?: string | null;
76
75
  /**
77
76
  * AccountId
78
77
  *
@@ -130,6 +129,13 @@ export interface CreateCaseWithDpaProperties {
130
129
  * @type {LOOKUP}
131
130
  */
132
131
  ContactId?: string | null;
132
+ /**
133
+ * Team
134
+ *
135
+ * Reference identifier for Case relationships. Used for data integrity.
136
+ * @type {LOOKUP}
137
+ */
138
+ TeamId?: string | null;
133
139
  }
134
140
  /**
135
141
  * CreateCaseWithDpa
@@ -0,0 +1,121 @@
1
+ /**
2
+ * CreateInboundCallEvent Action DTO
3
+ *
4
+ * Create inbound call event
5
+ *
6
+ * @module NotificationModule
7
+ * @entity TwilioCallEvents
8
+ * @entityType INBOUND_CALL_EVENT
9
+ * @actionKey CreateInboundCallEvent
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent
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 CreateInboundCallEvent created events
17
+ *
18
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent
19
+ */
20
+ export interface CreateInboundCallEventMessage extends OdinRecordCreatedEvent<CreateInboundCallEventDto, CreateInboundCallEventProperties> {
21
+ }
22
+ /**
23
+ * Properties for CreateInboundCallEvent action
24
+ *
25
+ * @property Required fields: 7
26
+ * @property Optional fields: 0
27
+ */
28
+ export interface CreateInboundCallEventProperties {
29
+ /**
30
+ * CallId
31
+ *
32
+ * Reference of the call record
33
+ * @type {LOOKUP}
34
+ * @required
35
+ */
36
+ CallId: string;
37
+ /**
38
+ * CallSid
39
+ *
40
+ * Twilio id of the call
41
+ * @type {TEXT}
42
+ * @required
43
+ */
44
+ CallSid: 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
+ * ReceivedAt
63
+ *
64
+ * Moment of storing the event in odin
65
+ * @type {DATE_TIME}
66
+ * @required
67
+ */
68
+ ReceivedAt: string;
69
+ /**
70
+ * Title
71
+ *
72
+ * Title of twilio call event record
73
+ * @type {TEXT}
74
+ * @required
75
+ */
76
+ Title: string;
77
+ /**
78
+ * WebhookSource
79
+ *
80
+ * Source of the captured event
81
+ * @type {ENUM}
82
+ * @required
83
+ */
84
+ WebhookSource: string;
85
+ }
86
+ /**
87
+ * CreateInboundCallEvent
88
+ *
89
+ * Create inbound call event
90
+ *
91
+ * @actionType CREATE - Creates a new TwilioCallEvents record
92
+ * @module NotificationModule
93
+ * @entity TwilioCallEvents
94
+ * @entityType INBOUND_CALL_EVENT (INBOUND_CALL_EVENT)
95
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent
96
+ * @permission schema.action.createinboundcallevent.trigger
97
+ * @benchmark This action is tracked for performance benchmarks
98
+ */
99
+ export declare class CreateInboundCallEventDto extends OdinRecordCreateDto<CreateInboundCallEventProperties> {
100
+ /** Used by SDK generators to identify action type */
101
+ static readonly ACTION_TYPE = "CREATE";
102
+ static readonly ACTION_KEY = "CreateInboundCallEvent";
103
+ static readonly MODULE_NAME = "NotificationModule";
104
+ static readonly ENTITIES: string[];
105
+ static readonly ENTITY_TYPE = "INBOUND_CALL_EVENT";
106
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent";
107
+ static readonly PERMISSION = "schema.action.createinboundcallevent.trigger";
108
+ /** Step metadata - entity this action targets */
109
+ static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvents";
110
+ static readonly STEP_SCHEMA_ID = "dff5448f-59f1-42dd-b6c8-f6ab4789b447";
111
+ static readonly STEP_SCHEMA_ACTION_ID = "6a930299-a9c8-4764-8be4-fc0dbd383d09";
112
+ static readonly STEP_SCHEMA_TYPE_ID = "c3470126-6e54-4a2a-906f-571eeca0d32b";
113
+ static readonly STEP_TYPE = "INBOUND_CALL_EVENT";
114
+ static readonly AUTO_LINK_PARENT = true;
115
+ readonly actionName: string;
116
+ readonly schemaActionId: string;
117
+ readonly entity: string;
118
+ constructor(properties: CreateInboundCallEventProperties, options?: {
119
+ journeyId?: string;
120
+ });
121
+ }