@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
@@ -12,43 +12,6 @@
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
14
14
  import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
15
- declare type StepClassMap = {};
16
- /**
17
- * Link definition for connecting steps in MoveAccountCreditToVoid
18
- */
19
- export interface MoveAccountCreditToVoidStepLink {
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 MoveAccountCreditToVoid
34
- */
35
- export interface MoveAccountCreditToVoidStepDefinition {
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: MoveAccountCreditToVoidStepLink[] | null;
44
- }
45
- /**
46
- * Type-safe step keys for MoveAccountCreditToVoid
47
- */
48
- export declare const MoveAccountCreditToVoidSteps: {
49
- readonly step_1: "step_1";
50
- };
51
- export declare type MoveAccountCreditToVoidStepKey = typeof MoveAccountCreditToVoidSteps[keyof typeof MoveAccountCreditToVoidSteps];
52
15
  /**
53
16
  * RabbitMQ message payload for MoveAccountCreditToVoid step flow events
54
17
  *
@@ -88,15 +51,6 @@ export declare class MoveAccountCreditToVoidDto extends OdinRecordUpdateDto<Reco
88
51
  static readonly IS_STAGE_TRANSITION = true;
89
52
  static readonly IS_MULTI_STEP_FLOW = false;
90
53
  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: MoveAccountCreditToVoidStepDefinition[];
96
- /** Type-safe step key accessor */
97
- static readonly Steps: {
98
- readonly step_1: "step_1";
99
- };
100
54
  readonly actionName: string;
101
55
  readonly schemaActionId: string;
102
56
  readonly entity: string;
@@ -110,6 +64,5 @@ export declare class MoveAccountCreditToVoidDto extends OdinRecordUpdateDto<Reco
110
64
  });
111
65
  /** Step classes that can be used with this action */
112
66
  static readonly stepClasses: readonly [];
113
- steps: StepClassMap[(typeof MoveAccountCreditToVoidDto.stepClasses)[number]][];
67
+ steps: [];
114
68
  }
115
- export {};
@@ -13,14 +13,8 @@
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MoveAccountCreditToVoidDto = exports.MoveAccountCreditToVoidSteps = void 0;
16
+ exports.MoveAccountCreditToVoidDto = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
- /**
19
- * Type-safe step keys for MoveAccountCreditToVoid
20
- */
21
- exports.MoveAccountCreditToVoidSteps = {
22
- step_1: 'step_1',
23
- };
24
18
  /**
25
19
  * MoveAccountCreditToVoid
26
20
  *
@@ -62,19 +56,5 @@ MoveAccountCreditToVoidDto.TARGET_STAGES = ['AccountCreditStageVoid'];
62
56
  MoveAccountCreditToVoidDto.IS_STAGE_TRANSITION = true;
63
57
  MoveAccountCreditToVoidDto.IS_MULTI_STEP_FLOW = false;
64
58
  MoveAccountCreditToVoidDto.HAS_STEP_LINKS = false;
65
- /**
66
- * Step definitions with linking metadata
67
- * Used by SDK and backend for auto-linking after step execution
68
- */
69
- MoveAccountCreditToVoidDto.stepDefinitions = [
70
- {
71
- stepKey: 'step_1',
72
- dtoClass: 'unknown',
73
- entity: 'unknown',
74
- linksTo: null
75
- }
76
- ];
77
- /** Type-safe step key accessor */
78
- MoveAccountCreditToVoidDto.Steps = exports.MoveAccountCreditToVoidSteps;
79
59
  /** Step classes that can be used with this action */
80
60
  MoveAccountCreditToVoidDto.stepClasses = [];
@@ -895,6 +895,8 @@ export declare enum CasePropertyKeys {
895
895
  CCreatedAt = "C_CreatedAt",
896
896
  /** This id represents the id receved from social media platforms for a user (Customer Service - Case) */
897
897
  SocialMediaExternalId = "SocialMediaExternalId",
898
+ /** Case merged into */
899
+ CaseMergedInto = "CaseMergedInto",
898
900
  /** Data field for Case records. Used by Customer Service team. */
899
901
  Deprecated = "Deprecated"
900
902
  }
@@ -1381,6 +1383,11 @@ export interface CaseProperties {
1381
1383
  * @type {TEXT}
1382
1384
  */
1383
1385
  SocialMediaExternalId: string;
1386
+ /** Case merged into
1387
+ *
1388
+ * @type {LOOKUP}
1389
+ */
1390
+ CaseMergedInto: string;
1384
1391
  /** Data field for Case records. Used by Customer Service team.
1385
1392
  *
1386
1393
  * @type {ENUM}
@@ -1871,6 +1878,11 @@ export interface OutageCaseProperties {
1871
1878
  * @type {TEXT}
1872
1879
  */
1873
1880
  SocialMediaExternalId: string;
1881
+ /** Case merged into
1882
+ *
1883
+ * @type {LOOKUP}
1884
+ */
1885
+ CaseMergedInto: string;
1874
1886
  /** Data field for Case records. Used by Customer Service team.
1875
1887
  *
1876
1888
  * @type {ENUM}
@@ -908,6 +908,8 @@ var CasePropertyKeys;
908
908
  CasePropertyKeys["CCreatedAt"] = "C_CreatedAt";
909
909
  /** This id represents the id receved from social media platforms for a user (Customer Service - Case) */
910
910
  CasePropertyKeys["SocialMediaExternalId"] = "SocialMediaExternalId";
911
+ /** Case merged into */
912
+ CasePropertyKeys["CaseMergedInto"] = "CaseMergedInto";
911
913
  /** Data field for Case records. Used by Customer Service team. */
912
914
  CasePropertyKeys["Deprecated"] = "Deprecated";
913
915
  })(CasePropertyKeys = exports.CasePropertyKeys || (exports.CasePropertyKeys = {}));
@@ -16,24 +16,45 @@ import { CallProperties } from './Call';
16
16
  * Available types for TwilioCallEvents records
17
17
  */
18
18
  export declare enum TwilioCallEventsEntityTypes {
19
+ /** Inbound call webhook events */
20
+ INBOUND_CALL_EVENT = "INBOUND_CALL_EVENT",
19
21
  /** Callback containing incoming call status updates for agent */
20
22
  INBOUND_CALL_STATUS_UPDATE_EVENT = "INBOUND_CALL_STATUS_UPDATE_EVENT",
21
23
  /** Callback containing incoming call wrap up for customer */
22
24
  NUMBER_CALL_STATUS_EVENT = "NUMBER_CALL_STATUS_EVENT",
25
+ /** Outbound call webhook events */
26
+ OUTBOUND_CALL_EVENT = "OUTBOUND_CALL_EVENT",
23
27
  /** Callback containing outbound call status updates for customer */
24
28
  OUTBOUND_CALL_STATUS_UPDATE_EVENT = "OUTBOUND_CALL_STATUS_UPDATE_EVENT",
25
29
  /** Callback containing outbound call wrap up for agent */
26
30
  OUTBOUND_DIAL_ACTION_EVENT = "OUTBOUND_DIAL_ACTION_EVENT"
27
31
  }
32
+ /**
33
+ * Valid values for TwilioCallEvents.WebhookSource
34
+ *
35
+ * Source of the captured event
36
+ *
37
+ * @remarks Available options:
38
+ * - `InboundCallStatusUpdateEvent`
39
+ * - `NumberCallStatusEvent`
40
+ * - `OutboundCallStatusUpdateEvent`
41
+ * - `OutboundDialActionEvent`
42
+ */
43
+ export declare enum TwilioCallEventsWebhookSource {
44
+ INBOUND_CALL_STATUS_UPDATE_EVENT = "InboundCallStatusUpdateEvent",
45
+ NUMBER_CALL_STATUS_EVENT = "NumberCallStatusEvent",
46
+ OUTBOUND_CALL_STATUS_UPDATE_EVENT = "OutboundCallStatusUpdateEvent",
47
+ OUTBOUND_DIAL_ACTION_EVENT = "OutboundDialActionEvent"
48
+ }
28
49
  /**
29
50
  * Property keys for TwilioCallEvents
30
51
  * Use these constants instead of string literals for type safety
31
52
  */
32
53
  export declare enum TwilioCallEventsPropertyKeys {
33
- /** Title of twilio call event record */
34
- Title = "Title",
35
54
  /** Moment of storing the event in odin */
36
55
  ReceivedAt = "ReceivedAt",
56
+ /** Source of the captured event */
57
+ WebhookSource = "WebhookSource",
37
58
  /** Twilio id of the call */
38
59
  CallSid = "CallSid",
39
60
  /** Query parameters of the request received from Twilio */
@@ -41,7 +62,9 @@ export declare enum TwilioCallEventsPropertyKeys {
41
62
  /** Body of the request received from Twilio */
42
63
  Body = "Body",
43
64
  /** Reference of the call record */
44
- CallId = "CallId"
65
+ CallId = "CallId",
66
+ /** Title of twilio call event record */
67
+ Title = "Title"
45
68
  }
46
69
  /**
47
70
  * Properties for TwilioCallEvents records
@@ -49,16 +72,60 @@ export declare enum TwilioCallEventsPropertyKeys {
49
72
  * @see NotificationModule:TwilioCallEvents
50
73
  */
51
74
  export interface TwilioCallEventsProperties {
75
+ /** Moment of storing the event in odin
76
+ *
77
+ * @type {DATE_TIME}
78
+ */
79
+ ReceivedAt: string;
80
+ /** Source of the captured event
81
+ *
82
+ * @type {ENUM}
83
+ * @enum {TwilioCallEventsWebhookSource}
84
+ */
85
+ WebhookSource: TwilioCallEventsWebhookSource;
86
+ /** Twilio id of the call
87
+ *
88
+ * @type {TEXT}
89
+ */
90
+ CallSid: string;
91
+ /** Query parameters of the request received from Twilio
92
+ *
93
+ * @type {JSON}
94
+ */
95
+ Query: string;
96
+ /** Body of the request received from Twilio
97
+ *
98
+ * @type {JSON}
99
+ */
100
+ Body: string;
101
+ /** Reference of the call record
102
+ *
103
+ * @type {LOOKUP}
104
+ */
105
+ CallId: string;
52
106
  /** Title of twilio call event record
53
107
  *
54
108
  * @type {TEXT}
55
109
  */
56
110
  Title: string;
111
+ }
112
+ /**
113
+ * Properties for INBOUND_CALL_EVENT TwilioCallEvents records
114
+ *
115
+ * @see NotificationModule:TwilioCallEvents
116
+ */
117
+ export interface InboundCallEventTwilioCallEventsProperties {
57
118
  /** Moment of storing the event in odin
58
119
  *
59
120
  * @type {DATE_TIME}
60
121
  */
61
122
  ReceivedAt: string;
123
+ /** Source of the captured event
124
+ *
125
+ * @type {ENUM}
126
+ * @enum {TwilioCallEventsWebhookSource}
127
+ */
128
+ WebhookSource: TwilioCallEventsWebhookSource;
62
129
  /** Twilio id of the call
63
130
  *
64
131
  * @type {TEXT}
@@ -79,6 +146,11 @@ export interface TwilioCallEventsProperties {
79
146
  * @type {LOOKUP}
80
147
  */
81
148
  CallId: string;
149
+ /** Title of twilio call event record
150
+ *
151
+ * @type {TEXT}
152
+ */
153
+ Title: string;
82
154
  }
83
155
  /**
84
156
  * Properties for INBOUND_CALL_STATUS_UPDATE_EVENT TwilioCallEvents records
@@ -86,16 +158,17 @@ export interface TwilioCallEventsProperties {
86
158
  * @see NotificationModule:TwilioCallEvents
87
159
  */
88
160
  export interface InboundCallStatusUpdateEventTwilioCallEventsProperties {
89
- /** Title of twilio call event record
90
- *
91
- * @type {TEXT}
92
- */
93
- Title: string;
94
161
  /** Moment of storing the event in odin
95
162
  *
96
163
  * @type {DATE_TIME}
97
164
  */
98
165
  ReceivedAt: string;
166
+ /** Source of the captured event
167
+ *
168
+ * @type {ENUM}
169
+ * @enum {TwilioCallEventsWebhookSource}
170
+ */
171
+ WebhookSource: TwilioCallEventsWebhookSource;
99
172
  /** Twilio id of the call
100
173
  *
101
174
  * @type {TEXT}
@@ -116,6 +189,11 @@ export interface InboundCallStatusUpdateEventTwilioCallEventsProperties {
116
189
  * @type {LOOKUP}
117
190
  */
118
191
  CallId: string;
192
+ /** Title of twilio call event record
193
+ *
194
+ * @type {TEXT}
195
+ */
196
+ Title: string;
119
197
  }
120
198
  /**
121
199
  * Properties for NUMBER_CALL_STATUS_EVENT TwilioCallEvents records
@@ -123,16 +201,60 @@ export interface InboundCallStatusUpdateEventTwilioCallEventsProperties {
123
201
  * @see NotificationModule:TwilioCallEvents
124
202
  */
125
203
  export interface NumberCallStatusEventTwilioCallEventsProperties {
204
+ /** Moment of storing the event in odin
205
+ *
206
+ * @type {DATE_TIME}
207
+ */
208
+ ReceivedAt: string;
209
+ /** Source of the captured event
210
+ *
211
+ * @type {ENUM}
212
+ * @enum {TwilioCallEventsWebhookSource}
213
+ */
214
+ WebhookSource: TwilioCallEventsWebhookSource;
215
+ /** Twilio id of the call
216
+ *
217
+ * @type {TEXT}
218
+ */
219
+ CallSid: string;
220
+ /** Query parameters of the request received from Twilio
221
+ *
222
+ * @type {JSON}
223
+ */
224
+ Query: string;
225
+ /** Body of the request received from Twilio
226
+ *
227
+ * @type {JSON}
228
+ */
229
+ Body: string;
230
+ /** Reference of the call record
231
+ *
232
+ * @type {LOOKUP}
233
+ */
234
+ CallId: string;
126
235
  /** Title of twilio call event record
127
236
  *
128
237
  * @type {TEXT}
129
238
  */
130
239
  Title: string;
240
+ }
241
+ /**
242
+ * Properties for OUTBOUND_CALL_EVENT TwilioCallEvents records
243
+ *
244
+ * @see NotificationModule:TwilioCallEvents
245
+ */
246
+ export interface OutboundCallEventTwilioCallEventsProperties {
131
247
  /** Moment of storing the event in odin
132
248
  *
133
249
  * @type {DATE_TIME}
134
250
  */
135
251
  ReceivedAt: string;
252
+ /** Source of the captured event
253
+ *
254
+ * @type {ENUM}
255
+ * @enum {TwilioCallEventsWebhookSource}
256
+ */
257
+ WebhookSource: TwilioCallEventsWebhookSource;
136
258
  /** Twilio id of the call
137
259
  *
138
260
  * @type {TEXT}
@@ -153,6 +275,11 @@ export interface NumberCallStatusEventTwilioCallEventsProperties {
153
275
  * @type {LOOKUP}
154
276
  */
155
277
  CallId: string;
278
+ /** Title of twilio call event record
279
+ *
280
+ * @type {TEXT}
281
+ */
282
+ Title: string;
156
283
  }
157
284
  /**
158
285
  * Properties for OUTBOUND_CALL_STATUS_UPDATE_EVENT TwilioCallEvents records
@@ -160,16 +287,17 @@ export interface NumberCallStatusEventTwilioCallEventsProperties {
160
287
  * @see NotificationModule:TwilioCallEvents
161
288
  */
162
289
  export interface OutboundCallStatusUpdateEventTwilioCallEventsProperties {
163
- /** Title of twilio call event record
164
- *
165
- * @type {TEXT}
166
- */
167
- Title: string;
168
290
  /** Moment of storing the event in odin
169
291
  *
170
292
  * @type {DATE_TIME}
171
293
  */
172
294
  ReceivedAt: string;
295
+ /** Source of the captured event
296
+ *
297
+ * @type {ENUM}
298
+ * @enum {TwilioCallEventsWebhookSource}
299
+ */
300
+ WebhookSource: TwilioCallEventsWebhookSource;
173
301
  /** Twilio id of the call
174
302
  *
175
303
  * @type {TEXT}
@@ -190,6 +318,11 @@ export interface OutboundCallStatusUpdateEventTwilioCallEventsProperties {
190
318
  * @type {LOOKUP}
191
319
  */
192
320
  CallId: string;
321
+ /** Title of twilio call event record
322
+ *
323
+ * @type {TEXT}
324
+ */
325
+ Title: string;
193
326
  }
194
327
  /**
195
328
  * Properties for OUTBOUND_DIAL_ACTION_EVENT TwilioCallEvents records
@@ -197,16 +330,17 @@ export interface OutboundCallStatusUpdateEventTwilioCallEventsProperties {
197
330
  * @see NotificationModule:TwilioCallEvents
198
331
  */
199
332
  export interface OutboundDialActionEventTwilioCallEventsProperties {
200
- /** Title of twilio call event record
201
- *
202
- * @type {TEXT}
203
- */
204
- Title: string;
205
333
  /** Moment of storing the event in odin
206
334
  *
207
335
  * @type {DATE_TIME}
208
336
  */
209
337
  ReceivedAt: string;
338
+ /** Source of the captured event
339
+ *
340
+ * @type {ENUM}
341
+ * @enum {TwilioCallEventsWebhookSource}
342
+ */
343
+ WebhookSource: TwilioCallEventsWebhookSource;
210
344
  /** Twilio id of the call
211
345
  *
212
346
  * @type {TEXT}
@@ -227,6 +361,11 @@ export interface OutboundDialActionEventTwilioCallEventsProperties {
227
361
  * @type {LOOKUP}
228
362
  */
229
363
  CallId: string;
364
+ /** Title of twilio call event record
365
+ *
366
+ * @type {TEXT}
367
+ */
368
+ Title: string;
230
369
  }
231
370
  /**
232
371
  * TwilioCallEvents entity from NotificationModule
@@ -256,6 +395,12 @@ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = "NotificationModul
256
395
  * Type-specific routing keys for TwilioCallEvents events
257
396
  * Subscribe to these for events on specific entity types only
258
397
  */
398
+ /** Inbound call webhook events created */
399
+ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_CREATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordCreated";
400
+ /** Inbound call webhook events updated */
401
+ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordUpdated";
402
+ /** Inbound call webhook events deleted */
403
+ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_DELETED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordDeleted";
259
404
  /** Callback containing incoming call status updates for agent created */
260
405
  export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated";
261
406
  /** Callback containing incoming call status updates for agent updated */
@@ -268,6 +413,12 @@ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CRE
268
413
  export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated";
269
414
  /** Callback containing incoming call wrap up for customer deleted */
270
415
  export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_DELETED = "NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordDeleted";
416
+ /** Outbound call webhook events created */
417
+ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_CREATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordCreated";
418
+ /** Outbound call webhook events updated */
419
+ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordUpdated";
420
+ /** Outbound call webhook events deleted */
421
+ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_DELETED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordDeleted";
271
422
  /** Callback containing outbound call status updates for customer created */
272
423
  export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated";
273
424
  /** Callback containing outbound call status updates for customer updated */
@@ -12,32 +12,54 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_CREATED = exports.TwilioCallEvents = exports.TwilioCallEventsPropertyKeys = exports.TwilioCallEventsEntityTypes = void 0;
15
+ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_CREATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_UPDATED = exports.ROUTING_KEY_TWILIO_CALL_EVENTS_CREATED = exports.TwilioCallEvents = exports.TwilioCallEventsPropertyKeys = exports.TwilioCallEventsWebhookSource = exports.TwilioCallEventsEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for TwilioCallEvents records
19
19
  */
20
20
  var TwilioCallEventsEntityTypes;
21
21
  (function (TwilioCallEventsEntityTypes) {
22
+ /** Inbound call webhook events */
23
+ TwilioCallEventsEntityTypes["INBOUND_CALL_EVENT"] = "INBOUND_CALL_EVENT";
22
24
  /** Callback containing incoming call status updates for agent */
23
25
  TwilioCallEventsEntityTypes["INBOUND_CALL_STATUS_UPDATE_EVENT"] = "INBOUND_CALL_STATUS_UPDATE_EVENT";
24
26
  /** Callback containing incoming call wrap up for customer */
25
27
  TwilioCallEventsEntityTypes["NUMBER_CALL_STATUS_EVENT"] = "NUMBER_CALL_STATUS_EVENT";
28
+ /** Outbound call webhook events */
29
+ TwilioCallEventsEntityTypes["OUTBOUND_CALL_EVENT"] = "OUTBOUND_CALL_EVENT";
26
30
  /** Callback containing outbound call status updates for customer */
27
31
  TwilioCallEventsEntityTypes["OUTBOUND_CALL_STATUS_UPDATE_EVENT"] = "OUTBOUND_CALL_STATUS_UPDATE_EVENT";
28
32
  /** Callback containing outbound call wrap up for agent */
29
33
  TwilioCallEventsEntityTypes["OUTBOUND_DIAL_ACTION_EVENT"] = "OUTBOUND_DIAL_ACTION_EVENT";
30
34
  })(TwilioCallEventsEntityTypes = exports.TwilioCallEventsEntityTypes || (exports.TwilioCallEventsEntityTypes = {}));
35
+ /**
36
+ * Valid values for TwilioCallEvents.WebhookSource
37
+ *
38
+ * Source of the captured event
39
+ *
40
+ * @remarks Available options:
41
+ * - `InboundCallStatusUpdateEvent`
42
+ * - `NumberCallStatusEvent`
43
+ * - `OutboundCallStatusUpdateEvent`
44
+ * - `OutboundDialActionEvent`
45
+ */
46
+ var TwilioCallEventsWebhookSource;
47
+ (function (TwilioCallEventsWebhookSource) {
48
+ TwilioCallEventsWebhookSource["INBOUND_CALL_STATUS_UPDATE_EVENT"] = "InboundCallStatusUpdateEvent";
49
+ TwilioCallEventsWebhookSource["NUMBER_CALL_STATUS_EVENT"] = "NumberCallStatusEvent";
50
+ TwilioCallEventsWebhookSource["OUTBOUND_CALL_STATUS_UPDATE_EVENT"] = "OutboundCallStatusUpdateEvent";
51
+ TwilioCallEventsWebhookSource["OUTBOUND_DIAL_ACTION_EVENT"] = "OutboundDialActionEvent";
52
+ })(TwilioCallEventsWebhookSource = exports.TwilioCallEventsWebhookSource || (exports.TwilioCallEventsWebhookSource = {}));
31
53
  /**
32
54
  * Property keys for TwilioCallEvents
33
55
  * Use these constants instead of string literals for type safety
34
56
  */
35
57
  var TwilioCallEventsPropertyKeys;
36
58
  (function (TwilioCallEventsPropertyKeys) {
37
- /** Title of twilio call event record */
38
- TwilioCallEventsPropertyKeys["Title"] = "Title";
39
59
  /** Moment of storing the event in odin */
40
60
  TwilioCallEventsPropertyKeys["ReceivedAt"] = "ReceivedAt";
61
+ /** Source of the captured event */
62
+ TwilioCallEventsPropertyKeys["WebhookSource"] = "WebhookSource";
41
63
  /** Twilio id of the call */
42
64
  TwilioCallEventsPropertyKeys["CallSid"] = "CallSid";
43
65
  /** Query parameters of the request received from Twilio */
@@ -46,6 +68,8 @@ var TwilioCallEventsPropertyKeys;
46
68
  TwilioCallEventsPropertyKeys["Body"] = "Body";
47
69
  /** Reference of the call record */
48
70
  TwilioCallEventsPropertyKeys["CallId"] = "CallId";
71
+ /** Title of twilio call event record */
72
+ TwilioCallEventsPropertyKeys["Title"] = "Title";
49
73
  })(TwilioCallEventsPropertyKeys = exports.TwilioCallEventsPropertyKeys || (exports.TwilioCallEventsPropertyKeys = {}));
50
74
  /**
51
75
  * TwilioCallEvents entity from NotificationModule
@@ -73,6 +97,12 @@ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = 'NotificationModule.TwilioCallE
73
97
  * Type-specific routing keys for TwilioCallEvents events
74
98
  * Subscribe to these for events on specific entity types only
75
99
  */
100
+ /** Inbound call webhook events created */
101
+ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordCreated';
102
+ /** Inbound call webhook events updated */
103
+ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordUpdated';
104
+ /** Inbound call webhook events deleted */
105
+ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordDeleted';
76
106
  /** Callback containing incoming call status updates for agent created */
77
107
  exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated';
78
108
  /** Callback containing incoming call status updates for agent updated */
@@ -85,6 +115,12 @@ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CREATED = 'Notif
85
115
  exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated';
86
116
  /** Callback containing incoming call wrap up for customer deleted */
87
117
  exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordDeleted';
118
+ /** Outbound call webhook events created */
119
+ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordCreated';
120
+ /** Outbound call webhook events updated */
121
+ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordUpdated';
122
+ /** Outbound call webhook events deleted */
123
+ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordDeleted';
88
124
  /** Callback containing outbound call status updates for customer created */
89
125
  exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated';
90
126
  /** Callback containing outbound call status updates for customer updated */