@d19n/youfibre-odin-sdk 2.0.143 → 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 (69) hide show
  1. package/README.md +19 -3
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/TwilioCallEventsAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/TwilioCallEventsAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +4 -2
  12. package/dist/actions-v2/CloseAndMergeCaseActionDto.d.ts +92 -0
  13. package/dist/actions-v2/CloseAndMergeCaseActionDto.js +61 -0
  14. package/dist/actions-v2/CloseAndMergeCaseDto.d.ts +190 -0
  15. package/dist/actions-v2/CloseAndMergeCaseDto.js +126 -0
  16. package/dist/actions-v2/CreateCaseWithDpaDto.d.ts +16 -10
  17. package/dist/actions-v2/CreateInboundCallEventDto.d.ts +121 -0
  18. package/dist/actions-v2/CreateInboundCallEventDto.js +59 -0
  19. package/dist/actions-v2/CreateInboundCallStatusUpdateEventDto.d.ts +113 -0
  20. package/dist/actions-v2/CreateInboundCallStatusUpdateEventDto.js +59 -0
  21. package/dist/actions-v2/CreateNumberCallStatusEventDto.d.ts +105 -0
  22. package/dist/actions-v2/CreateNumberCallStatusEventDto.js +59 -0
  23. package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +116 -0
  24. package/dist/actions-v2/CreateOutboundCallEventDto.js +54 -0
  25. package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.d.ts +113 -0
  26. package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.js +59 -0
  27. package/dist/actions-v2/CreateOutboundDialActionEventDto.d.ts +113 -0
  28. package/dist/actions-v2/CreateOutboundDialActionEventDto.js +59 -0
  29. package/dist/actions-v2/MoveAccountCreditToCancelledDto.d.ts +1 -48
  30. package/dist/actions-v2/MoveAccountCreditToCancelledDto.js +1 -21
  31. package/dist/actions-v2/MoveAccountCreditToCompleteDto.d.ts +1 -48
  32. package/dist/actions-v2/MoveAccountCreditToCompleteDto.js +1 -21
  33. package/dist/actions-v2/MoveAccountCreditToInProgressDto.d.ts +1 -48
  34. package/dist/actions-v2/MoveAccountCreditToInProgressDto.js +1 -21
  35. package/dist/actions-v2/MoveAccountCreditToPendingDto.d.ts +1 -48
  36. package/dist/actions-v2/MoveAccountCreditToPendingDto.js +1 -21
  37. package/dist/actions-v2/MoveAccountCreditToVoidDto.d.ts +1 -48
  38. package/dist/actions-v2/MoveAccountCreditToVoidDto.js +1 -21
  39. package/dist/api-sdk-v2/CallApi.d.ts +2 -0
  40. package/dist/api-sdk-v2/CallApi.js +6 -0
  41. package/dist/api-sdk-v2/TwilioCallEventsApi.d.ts +48 -0
  42. package/dist/api-sdk-v2/TwilioCallEventsApi.js +155 -0
  43. package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.d.ts +149 -0
  44. package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.js +227 -0
  45. package/dist/db-accessors-v2/index.d.ts +1 -0
  46. package/dist/db-accessors-v2/index.js +4 -2
  47. package/dist/db-sdk-v2/CallDb.d.ts +2 -0
  48. package/dist/db-sdk-v2/CallDb.js +6 -0
  49. package/dist/db-sdk-v2/TwilioCallEventsDb.d.ts +120 -0
  50. package/dist/db-sdk-v2/TwilioCallEventsDb.js +204 -0
  51. package/dist/entities-v2/Call.d.ts +7 -0
  52. package/dist/entities-v2/Call.js +5 -1
  53. package/dist/entities-v2/CallEvent.d.ts +67 -1
  54. package/dist/entities-v2/CallEvent.js +9 -1
  55. package/dist/entities-v2/Case.d.ts +12 -0
  56. package/dist/entities-v2/Case.js +2 -0
  57. package/dist/entities-v2/TwilioCallEvents.d.ts +433 -0
  58. package/dist/entities-v2/TwilioCallEvents.js +135 -0
  59. package/dist/records-v2/CallEventRecord.d.ts +19 -3
  60. package/dist/records-v2/CallEventRecord.js +17 -1
  61. package/dist/records-v2/CallRecord.d.ts +20 -0
  62. package/dist/records-v2/CallRecord.js +33 -0
  63. package/dist/records-v2/CaseRecord.d.ts +114 -0
  64. package/dist/records-v2/CaseRecord.js +173 -1
  65. package/dist/records-v2/TwilioCallEventsRecord.d.ts +430 -0
  66. package/dist/records-v2/TwilioCallEventsRecord.js +540 -0
  67. package/dist/records-v2/index.d.ts +1 -0
  68. package/dist/records-v2/index.js +6 -3
  69. package/package.json +1 -1
@@ -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
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateInboundCallEvent Action DTO
4
+ *
5
+ * Create inbound call event
6
+ *
7
+ * @module NotificationModule
8
+ * @entity TwilioCallEvents
9
+ * @entityType INBOUND_CALL_EVENT
10
+ * @actionKey CreateInboundCallEvent
11
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateInboundCallEventDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateInboundCallEvent
20
+ *
21
+ * Create inbound call event
22
+ *
23
+ * @actionType CREATE - Creates a new TwilioCallEvents record
24
+ * @module NotificationModule
25
+ * @entity TwilioCallEvents
26
+ * @entityType INBOUND_CALL_EVENT (INBOUND_CALL_EVENT)
27
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent
28
+ * @permission schema.action.createinboundcallevent.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateInboundCallEventDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'NotificationModule:TwilioCallEvents',
35
+ type: 'INBOUND_CALL_EVENT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateInboundCallEvent';
40
+ this.schemaActionId = '6a930299-a9c8-4764-8be4-fc0dbd383d09';
41
+ this.entity = 'NotificationModule:TwilioCallEvents';
42
+ }
43
+ }
44
+ exports.CreateInboundCallEventDto = CreateInboundCallEventDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateInboundCallEventDto.ACTION_TYPE = 'CREATE';
47
+ CreateInboundCallEventDto.ACTION_KEY = 'CreateInboundCallEvent';
48
+ CreateInboundCallEventDto.MODULE_NAME = 'NotificationModule';
49
+ CreateInboundCallEventDto.ENTITIES = ['TwilioCallEvents'];
50
+ CreateInboundCallEventDto.ENTITY_TYPE = 'INBOUND_CALL_EVENT';
51
+ CreateInboundCallEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateInboundCallEvent';
52
+ CreateInboundCallEventDto.PERMISSION = 'schema.action.createinboundcallevent.trigger';
53
+ /** Step metadata - entity this action targets */
54
+ CreateInboundCallEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
55
+ CreateInboundCallEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
56
+ CreateInboundCallEventDto.STEP_SCHEMA_ACTION_ID = '6a930299-a9c8-4764-8be4-fc0dbd383d09';
57
+ CreateInboundCallEventDto.STEP_SCHEMA_TYPE_ID = 'c3470126-6e54-4a2a-906f-571eeca0d32b';
58
+ CreateInboundCallEventDto.STEP_TYPE = 'INBOUND_CALL_EVENT';
59
+ CreateInboundCallEventDto.AUTO_LINK_PARENT = true;