@d19n/youfibre-odin-sdk 2.0.147 → 2.0.149

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 (51) hide show
  1. package/README.md +4 -4
  2. package/dist/EntityRegistry.d.ts +2 -2
  3. package/dist/EntityRegistry.js +2 -2
  4. package/dist/OdinApiClient.d.ts +4 -4
  5. package/dist/OdinApiClient.js +6 -6
  6. package/dist/OdinDbClient.d.ts +4 -4
  7. package/dist/OdinDbClient.js +6 -6
  8. package/dist/accessors-v2/{TwilioCallEventsAccessor.d.ts → TwilioCallEventAccessor.d.ts} +24 -24
  9. package/dist/accessors-v2/{TwilioCallEventsAccessor.js → TwilioCallEventAccessor.js} +21 -21
  10. package/dist/accessors-v2/index.d.ts +1 -1
  11. package/dist/accessors-v2/index.js +3 -3
  12. package/dist/actions-v2/CreateInboundCallEventDto.d.ts +18 -23
  13. package/dist/actions-v2/CreateInboundCallEventDto.js +14 -19
  14. package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +26 -26
  15. package/dist/actions-v2/CreateOutboundCallEventDto.js +13 -13
  16. package/dist/actions-v2/CreateVoiceConfigurationDto.d.ts +14 -14
  17. package/dist/api-sdk-v2/CallApi.d.ts +2 -2
  18. package/dist/api-sdk-v2/CallApi.js +4 -4
  19. package/dist/api-sdk-v2/OfferApi.d.ts +8 -8
  20. package/dist/api-sdk-v2/OfferApi.js +22 -22
  21. package/dist/api-sdk-v2/{TwilioCallEventsApi.d.ts → TwilioCallEventApi.d.ts} +11 -11
  22. package/dist/api-sdk-v2/{TwilioCallEventsApi.js → TwilioCallEventApi.js} +17 -17
  23. package/dist/db-accessors-v2/{TwilioCallEventsDbAccessor.d.ts → TwilioCallEventDbAccessor.d.ts} +22 -22
  24. package/dist/db-accessors-v2/{TwilioCallEventsDbAccessor.js → TwilioCallEventDbAccessor.js} +21 -21
  25. package/dist/db-accessors-v2/index.d.ts +1 -1
  26. package/dist/db-accessors-v2/index.js +3 -3
  27. package/dist/db-sdk-v2/CallDb.d.ts +2 -2
  28. package/dist/db-sdk-v2/CallDb.js +4 -4
  29. package/dist/db-sdk-v2/OfferDb.d.ts +8 -8
  30. package/dist/db-sdk-v2/OfferDb.js +22 -22
  31. package/dist/db-sdk-v2/{TwilioCallEventsDb.d.ts → TwilioCallEventDb.d.ts} +15 -15
  32. package/dist/db-sdk-v2/{TwilioCallEventsDb.js → TwilioCallEventDb.js} +20 -20
  33. package/dist/entities-v2/Call.d.ts +5 -5
  34. package/dist/entities-v2/Call.js +2 -2
  35. package/dist/entities-v2/Offer.d.ts +6 -6
  36. package/dist/entities-v2/Offer.js +5 -5
  37. package/dist/entities-v2/TwilioCallEvent.d.ts +229 -0
  38. package/dist/entities-v2/TwilioCallEvent.js +103 -0
  39. package/dist/records-v2/CallRecord.d.ts +10 -10
  40. package/dist/records-v2/CallRecord.js +15 -15
  41. package/dist/records-v2/OfferRecord.d.ts +10 -70
  42. package/dist/records-v2/OfferRecord.js +17 -116
  43. package/dist/records-v2/ProductRecord.d.ts +3 -103
  44. package/dist/records-v2/ProductRecord.js +4 -169
  45. package/dist/records-v2/{TwilioCallEventsRecord.d.ts → TwilioCallEventRecord.d.ts} +22 -86
  46. package/dist/records-v2/{TwilioCallEventsRecord.js → TwilioCallEventRecord.js} +28 -92
  47. package/dist/records-v2/index.d.ts +1 -1
  48. package/dist/records-v2/index.js +4 -4
  49. package/package.json +1 -1
  50. package/dist/entities-v2/TwilioCallEvents.d.ts +0 -433
  51. package/dist/entities-v2/TwilioCallEvents.js +0 -135
@@ -1,433 +0,0 @@
1
- /**
2
- * TwilioCallEvents Entity Definition
3
- *
4
- * Twilio callback events - inbound and outbound call updates triggered on ringing, answered completed, etc
5
- *
6
- * @module NotificationModule
7
- * @entity TwilioCallEvents
8
- * @schemaId dff5448f-59f1-42dd-b6c8-f6ab4789b447
9
- *
10
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
11
- * Generated from Odin schema definition
12
- */
13
- import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/core';
14
- import { CallProperties } from './Call';
15
- /**
16
- * Available types for TwilioCallEvents records
17
- */
18
- export declare enum TwilioCallEventsEntityTypes {
19
- /** Inbound call webhook events */
20
- INBOUND_CALL_EVENT = "INBOUND_CALL_EVENT",
21
- /** Callback containing incoming call status updates for agent */
22
- INBOUND_CALL_STATUS_UPDATE_EVENT = "INBOUND_CALL_STATUS_UPDATE_EVENT",
23
- /** Callback containing incoming call wrap up for customer */
24
- NUMBER_CALL_STATUS_EVENT = "NUMBER_CALL_STATUS_EVENT",
25
- /** Outbound call webhook events */
26
- OUTBOUND_CALL_EVENT = "OUTBOUND_CALL_EVENT",
27
- /** Callback containing outbound call status updates for customer */
28
- OUTBOUND_CALL_STATUS_UPDATE_EVENT = "OUTBOUND_CALL_STATUS_UPDATE_EVENT",
29
- /** Callback containing outbound call wrap up for agent */
30
- OUTBOUND_DIAL_ACTION_EVENT = "OUTBOUND_DIAL_ACTION_EVENT"
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
- }
49
- /**
50
- * Property keys for TwilioCallEvents
51
- * Use these constants instead of string literals for type safety
52
- */
53
- export declare enum TwilioCallEventsPropertyKeys {
54
- /** Moment of storing the event in odin */
55
- ReceivedAt = "ReceivedAt",
56
- /** Source of the captured event */
57
- WebhookSource = "WebhookSource",
58
- /** Twilio id of the call */
59
- CallSid = "CallSid",
60
- /** Query parameters of the request received from Twilio */
61
- Query = "Query",
62
- /** Body of the request received from Twilio */
63
- Body = "Body",
64
- /** Reference of the call record */
65
- CallId = "CallId",
66
- /** Title of twilio call event record */
67
- Title = "Title"
68
- }
69
- /**
70
- * Properties for TwilioCallEvents records
71
- *
72
- * @see NotificationModule:TwilioCallEvents
73
- */
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;
106
- /** Title of twilio call event record
107
- *
108
- * @type {TEXT}
109
- */
110
- Title: string;
111
- }
112
- /**
113
- * Properties for INBOUND_CALL_EVENT TwilioCallEvents records
114
- *
115
- * @see NotificationModule:TwilioCallEvents
116
- */
117
- export interface InboundCallEventTwilioCallEventsProperties {
118
- /** Moment of storing the event in odin
119
- *
120
- * @type {DATE_TIME}
121
- */
122
- ReceivedAt: string;
123
- /** Source of the captured event
124
- *
125
- * @type {ENUM}
126
- * @enum {TwilioCallEventsWebhookSource}
127
- */
128
- WebhookSource: TwilioCallEventsWebhookSource;
129
- /** Twilio id of the call
130
- *
131
- * @type {TEXT}
132
- */
133
- CallSid: string;
134
- /** Query parameters of the request received from Twilio
135
- *
136
- * @type {JSON}
137
- */
138
- Query: string;
139
- /** Body of the request received from Twilio
140
- *
141
- * @type {JSON}
142
- */
143
- Body: string;
144
- /** Reference of the call record
145
- *
146
- * @type {LOOKUP}
147
- */
148
- CallId: string;
149
- /** Title of twilio call event record
150
- *
151
- * @type {TEXT}
152
- */
153
- Title: string;
154
- }
155
- /**
156
- * Properties for INBOUND_CALL_STATUS_UPDATE_EVENT TwilioCallEvents records
157
- *
158
- * @see NotificationModule:TwilioCallEvents
159
- */
160
- export interface InboundCallStatusUpdateEventTwilioCallEventsProperties {
161
- /** Moment of storing the event in odin
162
- *
163
- * @type {DATE_TIME}
164
- */
165
- ReceivedAt: string;
166
- /** Source of the captured event
167
- *
168
- * @type {ENUM}
169
- * @enum {TwilioCallEventsWebhookSource}
170
- */
171
- WebhookSource: TwilioCallEventsWebhookSource;
172
- /** Twilio id of the call
173
- *
174
- * @type {TEXT}
175
- */
176
- CallSid: string;
177
- /** Query parameters of the request received from Twilio
178
- *
179
- * @type {JSON}
180
- */
181
- Query: string;
182
- /** Body of the request received from Twilio
183
- *
184
- * @type {JSON}
185
- */
186
- Body: string;
187
- /** Reference of the call record
188
- *
189
- * @type {LOOKUP}
190
- */
191
- CallId: string;
192
- /** Title of twilio call event record
193
- *
194
- * @type {TEXT}
195
- */
196
- Title: string;
197
- }
198
- /**
199
- * Properties for NUMBER_CALL_STATUS_EVENT TwilioCallEvents records
200
- *
201
- * @see NotificationModule:TwilioCallEvents
202
- */
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;
235
- /** Title of twilio call event record
236
- *
237
- * @type {TEXT}
238
- */
239
- Title: string;
240
- }
241
- /**
242
- * Properties for OUTBOUND_CALL_EVENT TwilioCallEvents records
243
- *
244
- * @see NotificationModule:TwilioCallEvents
245
- */
246
- export interface OutboundCallEventTwilioCallEventsProperties {
247
- /** Moment of storing the event in odin
248
- *
249
- * @type {DATE_TIME}
250
- */
251
- ReceivedAt: string;
252
- /** Source of the captured event
253
- *
254
- * @type {ENUM}
255
- * @enum {TwilioCallEventsWebhookSource}
256
- */
257
- WebhookSource: TwilioCallEventsWebhookSource;
258
- /** Twilio id of the call
259
- *
260
- * @type {TEXT}
261
- */
262
- CallSid: string;
263
- /** Query parameters of the request received from Twilio
264
- *
265
- * @type {JSON}
266
- */
267
- Query: string;
268
- /** Body of the request received from Twilio
269
- *
270
- * @type {JSON}
271
- */
272
- Body: string;
273
- /** Reference of the call record
274
- *
275
- * @type {LOOKUP}
276
- */
277
- CallId: string;
278
- /** Title of twilio call event record
279
- *
280
- * @type {TEXT}
281
- */
282
- Title: string;
283
- }
284
- /**
285
- * Properties for OUTBOUND_CALL_STATUS_UPDATE_EVENT TwilioCallEvents records
286
- *
287
- * @see NotificationModule:TwilioCallEvents
288
- */
289
- export interface OutboundCallStatusUpdateEventTwilioCallEventsProperties {
290
- /** Moment of storing the event in odin
291
- *
292
- * @type {DATE_TIME}
293
- */
294
- ReceivedAt: string;
295
- /** Source of the captured event
296
- *
297
- * @type {ENUM}
298
- * @enum {TwilioCallEventsWebhookSource}
299
- */
300
- WebhookSource: TwilioCallEventsWebhookSource;
301
- /** Twilio id of the call
302
- *
303
- * @type {TEXT}
304
- */
305
- CallSid: string;
306
- /** Query parameters of the request received from Twilio
307
- *
308
- * @type {JSON}
309
- */
310
- Query: string;
311
- /** Body of the request received from Twilio
312
- *
313
- * @type {JSON}
314
- */
315
- Body: string;
316
- /** Reference of the call record
317
- *
318
- * @type {LOOKUP}
319
- */
320
- CallId: string;
321
- /** Title of twilio call event record
322
- *
323
- * @type {TEXT}
324
- */
325
- Title: string;
326
- }
327
- /**
328
- * Properties for OUTBOUND_DIAL_ACTION_EVENT TwilioCallEvents records
329
- *
330
- * @see NotificationModule:TwilioCallEvents
331
- */
332
- export interface OutboundDialActionEventTwilioCallEventsProperties {
333
- /** Moment of storing the event in odin
334
- *
335
- * @type {DATE_TIME}
336
- */
337
- ReceivedAt: string;
338
- /** Source of the captured event
339
- *
340
- * @type {ENUM}
341
- * @enum {TwilioCallEventsWebhookSource}
342
- */
343
- WebhookSource: TwilioCallEventsWebhookSource;
344
- /** Twilio id of the call
345
- *
346
- * @type {TEXT}
347
- */
348
- CallSid: string;
349
- /** Query parameters of the request received from Twilio
350
- *
351
- * @type {JSON}
352
- */
353
- Query: string;
354
- /** Body of the request received from Twilio
355
- *
356
- * @type {JSON}
357
- */
358
- Body: string;
359
- /** Reference of the call record
360
- *
361
- * @type {LOOKUP}
362
- */
363
- CallId: string;
364
- /** Title of twilio call event record
365
- *
366
- * @type {TEXT}
367
- */
368
- Title: string;
369
- }
370
- /**
371
- * TwilioCallEvents entity from NotificationModule
372
- *
373
- * Twilio callback events - inbound and outbound call updates triggered on ringing, answered completed, etc
374
- *
375
- * @module NotificationModule
376
- * @entity TwilioCallEvents
377
- * @schemaId dff5448f-59f1-42dd-b6c8-f6ab4789b447
378
- * @capabilities searchable, updateable, undeletable, triggerable
379
- */
380
- export declare class TwilioCallEvents extends OdinRecord<TwilioCallEventsProperties> {
381
- entity: 'NotificationModule:TwilioCallEvents';
382
- type: TwilioCallEventsEntityTypes;
383
- schemaId: 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
384
- properties: TwilioCallEventsProperties;
385
- /** Linked Call records (Call__TwilioCallEvents) */
386
- Call: OdinLink<LinkedOdinRecord<CallProperties>>;
387
- }
388
- /**
389
- * RabbitMQ routing keys for TwilioCallEvents events
390
- */
391
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_CREATED = "NotificationModule.TwilioCallEvents.SubDbRecordCreated";
392
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_UPDATED = "NotificationModule.TwilioCallEvents.SubDbRecordUpdated";
393
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = "NotificationModule.TwilioCallEvents.SubDbRecordDeleted";
394
- /**
395
- * Type-specific routing keys for TwilioCallEvents events
396
- * Subscribe to these for events on specific entity types only
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";
404
- /** Callback containing incoming call status updates for agent created */
405
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated";
406
- /** Callback containing incoming call status updates for agent updated */
407
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated";
408
- /** Callback containing incoming call status updates for agent deleted */
409
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted";
410
- /** Callback containing incoming call wrap up for customer created */
411
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CREATED = "NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordCreated";
412
- /** Callback containing incoming call wrap up for customer updated */
413
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated";
414
- /** Callback containing incoming call wrap up for customer deleted */
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";
422
- /** Callback containing outbound call status updates for customer created */
423
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated";
424
- /** Callback containing outbound call status updates for customer updated */
425
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated";
426
- /** Callback containing outbound call status updates for customer deleted */
427
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted";
428
- /** Callback containing outbound call wrap up for agent created */
429
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_CREATED = "NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordCreated";
430
- /** Callback containing outbound call wrap up for agent updated */
431
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordUpdated";
432
- /** Callback containing outbound call wrap up for agent deleted */
433
- export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_DELETED = "NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordDeleted";
@@ -1,135 +0,0 @@
1
- "use strict";
2
- /**
3
- * TwilioCallEvents Entity Definition
4
- *
5
- * Twilio callback events - inbound and outbound call updates triggered on ringing, answered completed, etc
6
- *
7
- * @module NotificationModule
8
- * @entity TwilioCallEvents
9
- * @schemaId dff5448f-59f1-42dd-b6c8-f6ab4789b447
10
- *
11
- * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
- * Generated from Odin schema definition
13
- */
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_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
- const core_1 = require("@d19n/odin-types/dist/core");
17
- /**
18
- * Available types for TwilioCallEvents records
19
- */
20
- var TwilioCallEventsEntityTypes;
21
- (function (TwilioCallEventsEntityTypes) {
22
- /** Inbound call webhook events */
23
- TwilioCallEventsEntityTypes["INBOUND_CALL_EVENT"] = "INBOUND_CALL_EVENT";
24
- /** Callback containing incoming call status updates for agent */
25
- TwilioCallEventsEntityTypes["INBOUND_CALL_STATUS_UPDATE_EVENT"] = "INBOUND_CALL_STATUS_UPDATE_EVENT";
26
- /** Callback containing incoming call wrap up for customer */
27
- TwilioCallEventsEntityTypes["NUMBER_CALL_STATUS_EVENT"] = "NUMBER_CALL_STATUS_EVENT";
28
- /** Outbound call webhook events */
29
- TwilioCallEventsEntityTypes["OUTBOUND_CALL_EVENT"] = "OUTBOUND_CALL_EVENT";
30
- /** Callback containing outbound call status updates for customer */
31
- TwilioCallEventsEntityTypes["OUTBOUND_CALL_STATUS_UPDATE_EVENT"] = "OUTBOUND_CALL_STATUS_UPDATE_EVENT";
32
- /** Callback containing outbound call wrap up for agent */
33
- TwilioCallEventsEntityTypes["OUTBOUND_DIAL_ACTION_EVENT"] = "OUTBOUND_DIAL_ACTION_EVENT";
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 = {}));
53
- /**
54
- * Property keys for TwilioCallEvents
55
- * Use these constants instead of string literals for type safety
56
- */
57
- var TwilioCallEventsPropertyKeys;
58
- (function (TwilioCallEventsPropertyKeys) {
59
- /** Moment of storing the event in odin */
60
- TwilioCallEventsPropertyKeys["ReceivedAt"] = "ReceivedAt";
61
- /** Source of the captured event */
62
- TwilioCallEventsPropertyKeys["WebhookSource"] = "WebhookSource";
63
- /** Twilio id of the call */
64
- TwilioCallEventsPropertyKeys["CallSid"] = "CallSid";
65
- /** Query parameters of the request received from Twilio */
66
- TwilioCallEventsPropertyKeys["Query"] = "Query";
67
- /** Body of the request received from Twilio */
68
- TwilioCallEventsPropertyKeys["Body"] = "Body";
69
- /** Reference of the call record */
70
- TwilioCallEventsPropertyKeys["CallId"] = "CallId";
71
- /** Title of twilio call event record */
72
- TwilioCallEventsPropertyKeys["Title"] = "Title";
73
- })(TwilioCallEventsPropertyKeys = exports.TwilioCallEventsPropertyKeys || (exports.TwilioCallEventsPropertyKeys = {}));
74
- /**
75
- * TwilioCallEvents entity from NotificationModule
76
- *
77
- * Twilio callback events - inbound and outbound call updates triggered on ringing, answered completed, etc
78
- *
79
- * @module NotificationModule
80
- * @entity TwilioCallEvents
81
- * @schemaId dff5448f-59f1-42dd-b6c8-f6ab4789b447
82
- * @capabilities searchable, updateable, undeletable, triggerable
83
- */
84
- class TwilioCallEvents extends core_1.OdinRecord {
85
- }
86
- exports.TwilioCallEvents = TwilioCallEvents;
87
- // ============================================
88
- // RABBITMQ EVENT ROUTING KEYS
89
- // ============================================
90
- /**
91
- * RabbitMQ routing keys for TwilioCallEvents events
92
- */
93
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_CREATED = 'NotificationModule.TwilioCallEvents.SubDbRecordCreated';
94
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_UPDATED = 'NotificationModule.TwilioCallEvents.SubDbRecordUpdated';
95
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = 'NotificationModule.TwilioCallEvents.SubDbRecordDeleted';
96
- /**
97
- * Type-specific routing keys for TwilioCallEvents events
98
- * Subscribe to these for events on specific entity types only
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';
106
- /** Callback containing incoming call status updates for agent created */
107
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated';
108
- /** Callback containing incoming call status updates for agent updated */
109
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated';
110
- /** Callback containing incoming call status updates for agent deleted */
111
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted';
112
- /** Callback containing incoming call wrap up for customer created */
113
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordCreated';
114
- /** Callback containing incoming call wrap up for customer updated */
115
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated';
116
- /** Callback containing incoming call wrap up for customer deleted */
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';
124
- /** Callback containing outbound call status updates for customer created */
125
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated';
126
- /** Callback containing outbound call status updates for customer updated */
127
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated';
128
- /** Callback containing outbound call status updates for customer deleted */
129
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted';
130
- /** Callback containing outbound call wrap up for agent created */
131
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordCreated';
132
- /** Callback containing outbound call wrap up for agent updated */
133
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordUpdated';
134
- /** Callback containing outbound call wrap up for agent deleted */
135
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordDeleted';