@d19n/youfibre-odin-sdk 2.0.147 → 2.0.148
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.
- package/README.md +1 -1
- package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +5 -0
- package/dist/actions-v2/CreateOutboundCallEventDto.js +6 -1
- package/dist/entities-v2/TwilioCallEvents.d.ts +1 -205
- package/dist/entities-v2/TwilioCallEvents.js +1 -33
- package/dist/records-v2/TwilioCallEventsRecord.d.ts +5 -69
- package/dist/records-v2/TwilioCallEventsRecord.js +4 -68
- 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_EVENT,
|
|
302
|
+
| **TwilioCallEvents** | TwilioCallEvents Entity Definition | INBOUND_CALL_EVENT, OUTBOUND_CALL_EVENT |
|
|
303
303
|
| **TwilioUserUpdate** | TwilioUserUpdate Entity Definition | DEFAULT |
|
|
304
304
|
|
|
305
305
|
### SupportModule
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module NotificationModule
|
|
7
7
|
* @entity TwilioCallEvents
|
|
8
|
+
* @entityType OUTBOUND_CALL_EVENT
|
|
8
9
|
* @actionKey CreateOutboundCallEvent
|
|
9
10
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
|
|
10
11
|
*
|
|
@@ -90,6 +91,7 @@ export interface CreateOutboundCallEventProperties {
|
|
|
90
91
|
* @actionType CREATE - Creates a new TwilioCallEvents record
|
|
91
92
|
* @module NotificationModule
|
|
92
93
|
* @entity TwilioCallEvents
|
|
94
|
+
* @entityType OUTBOUND_CALL_EVENT (OUTBOUND_CALL_EVENT)
|
|
93
95
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
|
|
94
96
|
* @permission schema.action.createoutboundcallevent.trigger
|
|
95
97
|
* @benchmark This action is tracked for performance benchmarks
|
|
@@ -100,12 +102,15 @@ export declare class CreateOutboundCallEventDto extends OdinRecordCreateDto<Crea
|
|
|
100
102
|
static readonly ACTION_KEY = "CreateOutboundCallEvent";
|
|
101
103
|
static readonly MODULE_NAME = "NotificationModule";
|
|
102
104
|
static readonly ENTITIES: string[];
|
|
105
|
+
static readonly ENTITY_TYPE = "OUTBOUND_CALL_EVENT";
|
|
103
106
|
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent";
|
|
104
107
|
static readonly PERMISSION = "schema.action.createoutboundcallevent.trigger";
|
|
105
108
|
/** Step metadata - entity this action targets */
|
|
106
109
|
static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvents";
|
|
107
110
|
static readonly STEP_SCHEMA_ID = "dff5448f-59f1-42dd-b6c8-f6ab4789b447";
|
|
108
111
|
static readonly STEP_SCHEMA_ACTION_ID = "f8f154c3-505d-4dab-b982-4c62e3e393c9";
|
|
112
|
+
static readonly STEP_SCHEMA_TYPE_ID = "e91b42b4-3fd5-4c74-a2e3-59cebcbbe6af";
|
|
113
|
+
static readonly STEP_TYPE = "OUTBOUND_CALL_EVENT";
|
|
109
114
|
static readonly AUTO_LINK_PARENT = true;
|
|
110
115
|
readonly actionName: string;
|
|
111
116
|
readonly schemaActionId: string;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module NotificationModule
|
|
8
8
|
* @entity TwilioCallEvents
|
|
9
|
+
* @entityType OUTBOUND_CALL_EVENT
|
|
9
10
|
* @actionKey CreateOutboundCallEvent
|
|
10
11
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
|
|
11
12
|
*
|
|
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
|
|
|
22
23
|
* @actionType CREATE - Creates a new TwilioCallEvents record
|
|
23
24
|
* @module NotificationModule
|
|
24
25
|
* @entity TwilioCallEvents
|
|
26
|
+
* @entityType OUTBOUND_CALL_EVENT (OUTBOUND_CALL_EVENT)
|
|
25
27
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
|
|
26
28
|
* @permission schema.action.createoutboundcallevent.trigger
|
|
27
29
|
* @benchmark This action is tracked for performance benchmarks
|
|
@@ -30,7 +32,7 @@ class CreateOutboundCallEventDto extends core_1.OdinRecordCreateDto {
|
|
|
30
32
|
constructor(properties, options) {
|
|
31
33
|
super({
|
|
32
34
|
entity: 'NotificationModule:TwilioCallEvents',
|
|
33
|
-
type:
|
|
35
|
+
type: 'OUTBOUND_CALL_EVENT',
|
|
34
36
|
properties,
|
|
35
37
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
38
|
});
|
|
@@ -45,10 +47,13 @@ CreateOutboundCallEventDto.ACTION_TYPE = 'CREATE';
|
|
|
45
47
|
CreateOutboundCallEventDto.ACTION_KEY = 'CreateOutboundCallEvent';
|
|
46
48
|
CreateOutboundCallEventDto.MODULE_NAME = 'NotificationModule';
|
|
47
49
|
CreateOutboundCallEventDto.ENTITIES = ['TwilioCallEvents'];
|
|
50
|
+
CreateOutboundCallEventDto.ENTITY_TYPE = 'OUTBOUND_CALL_EVENT';
|
|
48
51
|
CreateOutboundCallEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent';
|
|
49
52
|
CreateOutboundCallEventDto.PERMISSION = 'schema.action.createoutboundcallevent.trigger';
|
|
50
53
|
/** Step metadata - entity this action targets */
|
|
51
54
|
CreateOutboundCallEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
|
|
52
55
|
CreateOutboundCallEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
|
|
53
56
|
CreateOutboundCallEventDto.STEP_SCHEMA_ACTION_ID = 'f8f154c3-505d-4dab-b982-4c62e3e393c9';
|
|
57
|
+
CreateOutboundCallEventDto.STEP_SCHEMA_TYPE_ID = 'e91b42b4-3fd5-4c74-a2e3-59cebcbbe6af';
|
|
58
|
+
CreateOutboundCallEventDto.STEP_TYPE = 'OUTBOUND_CALL_EVENT';
|
|
54
59
|
CreateOutboundCallEventDto.AUTO_LINK_PARENT = true;
|
|
@@ -18,16 +18,8 @@ import { CallProperties } from './Call';
|
|
|
18
18
|
export declare enum TwilioCallEventsEntityTypes {
|
|
19
19
|
/** Inbound call webhook events */
|
|
20
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
21
|
/** 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"
|
|
22
|
+
OUTBOUND_CALL_EVENT = "OUTBOUND_CALL_EVENT"
|
|
31
23
|
}
|
|
32
24
|
/**
|
|
33
25
|
* Valid values for TwilioCallEvents.WebhookSource
|
|
@@ -152,92 +144,6 @@ export interface InboundCallEventTwilioCallEventsProperties {
|
|
|
152
144
|
*/
|
|
153
145
|
Title: string;
|
|
154
146
|
}
|
|
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
147
|
/**
|
|
242
148
|
* Properties for OUTBOUND_CALL_EVENT TwilioCallEvents records
|
|
243
149
|
*
|
|
@@ -281,92 +187,6 @@ export interface OutboundCallEventTwilioCallEventsProperties {
|
|
|
281
187
|
*/
|
|
282
188
|
Title: string;
|
|
283
189
|
}
|
|
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
190
|
/**
|
|
371
191
|
* TwilioCallEvents entity from NotificationModule
|
|
372
192
|
*
|
|
@@ -401,33 +221,9 @@ export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_CREATED =
|
|
|
401
221
|
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordUpdated";
|
|
402
222
|
/** Inbound call webhook events deleted */
|
|
403
223
|
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
224
|
/** Outbound call webhook events created */
|
|
417
225
|
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_CREATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordCreated";
|
|
418
226
|
/** Outbound call webhook events updated */
|
|
419
227
|
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordUpdated";
|
|
420
228
|
/** Outbound call webhook events deleted */
|
|
421
229
|
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";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
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_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
|
|
@@ -21,16 +21,8 @@ var TwilioCallEventsEntityTypes;
|
|
|
21
21
|
(function (TwilioCallEventsEntityTypes) {
|
|
22
22
|
/** Inbound call webhook events */
|
|
23
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
24
|
/** Outbound call webhook events */
|
|
29
25
|
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
26
|
})(TwilioCallEventsEntityTypes = exports.TwilioCallEventsEntityTypes || (exports.TwilioCallEventsEntityTypes = {}));
|
|
35
27
|
/**
|
|
36
28
|
* Valid values for TwilioCallEvents.WebhookSource
|
|
@@ -103,33 +95,9 @@ exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_CREATED = 'Notificatio
|
|
|
103
95
|
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordUpdated';
|
|
104
96
|
/** Inbound call webhook events deleted */
|
|
105
97
|
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
98
|
/** Outbound call webhook events created */
|
|
119
99
|
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordCreated';
|
|
120
100
|
/** Outbound call webhook events updated */
|
|
121
101
|
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordUpdated';
|
|
122
102
|
/** Outbound call webhook events deleted */
|
|
123
103
|
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';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* await record.createTwilioCallEvents({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: INBOUND_CALL_EVENT,
|
|
16
|
+
* Entity Types: INBOUND_CALL_EVENT, OUTBOUND_CALL_EVENT
|
|
17
17
|
*
|
|
18
18
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
19
|
*/
|
|
@@ -22,12 +22,12 @@ import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
|
22
22
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
23
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
|
-
import { TwilioCallEventsProperties, InboundCallEventTwilioCallEventsProperties,
|
|
25
|
+
import { TwilioCallEventsProperties, InboundCallEventTwilioCallEventsProperties, OutboundCallEventTwilioCallEventsProperties } from '../entities-v2/TwilioCallEvents';
|
|
26
26
|
import { CreateInboundCallEventProperties } from '../actions-v2/CreateInboundCallEventDto';
|
|
27
27
|
import { CreateOutboundCallEventProperties } from '../actions-v2/CreateOutboundCallEventDto';
|
|
28
28
|
import { CallRecord } from './CallRecord';
|
|
29
29
|
/** Valid entity types for TwilioCallEvents */
|
|
30
|
-
export declare type TwilioCallEventsType = 'INBOUND_CALL_EVENT' | '
|
|
30
|
+
export declare type TwilioCallEventsType = 'INBOUND_CALL_EVENT' | 'OUTBOUND_CALL_EVENT';
|
|
31
31
|
/**
|
|
32
32
|
* Builder for action execution with dryRun support
|
|
33
33
|
*
|
|
@@ -133,38 +133,6 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
|
|
|
133
133
|
* @remarks Inbound call webhook events
|
|
134
134
|
*/
|
|
135
135
|
isInboundCallEvent(): this is TwilioCallEventsRecord<InboundCallEventTwilioCallEventsProperties>;
|
|
136
|
-
/**
|
|
137
|
-
* Type guard: check if this record is of type INBOUND_CALL_STATUS_UPDATE_EVENT
|
|
138
|
-
*
|
|
139
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
140
|
-
* giving you access to INBOUND_CALL_STATUS_UPDATE_EVENT-specific properties.
|
|
141
|
-
*
|
|
142
|
-
* @example
|
|
143
|
-
* ```typescript
|
|
144
|
-
* if (record.isInboundCallStatusUpdateEvent()) {
|
|
145
|
-
* // TypeScript knows record.properties is InboundCallStatusUpdateEventTwilioCallEventsProperties
|
|
146
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
147
|
-
* }
|
|
148
|
-
* ```
|
|
149
|
-
* @remarks Callback containing incoming call status updates for agent
|
|
150
|
-
*/
|
|
151
|
-
isInboundCallStatusUpdateEvent(): this is TwilioCallEventsRecord<InboundCallStatusUpdateEventTwilioCallEventsProperties>;
|
|
152
|
-
/**
|
|
153
|
-
* Type guard: check if this record is of type NUMBER_CALL_STATUS_EVENT
|
|
154
|
-
*
|
|
155
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
156
|
-
* giving you access to NUMBER_CALL_STATUS_EVENT-specific properties.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```typescript
|
|
160
|
-
* if (record.isNumberCallStatusEvent()) {
|
|
161
|
-
* // TypeScript knows record.properties is NumberCallStatusEventTwilioCallEventsProperties
|
|
162
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
* @remarks Callback containing incoming call wrap up for customer
|
|
166
|
-
*/
|
|
167
|
-
isNumberCallStatusEvent(): this is TwilioCallEventsRecord<NumberCallStatusEventTwilioCallEventsProperties>;
|
|
168
136
|
/**
|
|
169
137
|
* Type guard: check if this record is of type OUTBOUND_CALL_EVENT
|
|
170
138
|
*
|
|
@@ -181,38 +149,6 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
|
|
|
181
149
|
* @remarks Outbound call webhook events
|
|
182
150
|
*/
|
|
183
151
|
isOutboundCallEvent(): this is TwilioCallEventsRecord<OutboundCallEventTwilioCallEventsProperties>;
|
|
184
|
-
/**
|
|
185
|
-
* Type guard: check if this record is of type OUTBOUND_CALL_STATUS_UPDATE_EVENT
|
|
186
|
-
*
|
|
187
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
188
|
-
* giving you access to OUTBOUND_CALL_STATUS_UPDATE_EVENT-specific properties.
|
|
189
|
-
*
|
|
190
|
-
* @example
|
|
191
|
-
* ```typescript
|
|
192
|
-
* if (record.isOutboundCallStatusUpdateEvent()) {
|
|
193
|
-
* // TypeScript knows record.properties is OutboundCallStatusUpdateEventTwilioCallEventsProperties
|
|
194
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
195
|
-
* }
|
|
196
|
-
* ```
|
|
197
|
-
* @remarks Callback containing outbound call status updates for customer
|
|
198
|
-
*/
|
|
199
|
-
isOutboundCallStatusUpdateEvent(): this is TwilioCallEventsRecord<OutboundCallStatusUpdateEventTwilioCallEventsProperties>;
|
|
200
|
-
/**
|
|
201
|
-
* Type guard: check if this record is of type OUTBOUND_DIAL_ACTION_EVENT
|
|
202
|
-
*
|
|
203
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
204
|
-
* giving you access to OUTBOUND_DIAL_ACTION_EVENT-specific properties.
|
|
205
|
-
*
|
|
206
|
-
* @example
|
|
207
|
-
* ```typescript
|
|
208
|
-
* if (record.isOutboundDialActionEvent()) {
|
|
209
|
-
* // TypeScript knows record.properties is OutboundDialActionEventTwilioCallEventsProperties
|
|
210
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
211
|
-
* }
|
|
212
|
-
* ```
|
|
213
|
-
* @remarks Callback containing outbound call wrap up for agent
|
|
214
|
-
*/
|
|
215
|
-
isOutboundDialActionEvent(): this is TwilioCallEventsRecord<OutboundDialActionEventTwilioCallEventsProperties>;
|
|
216
152
|
/** Valid labels for Call associations */
|
|
217
153
|
static readonly callsLabels: readonly ["Call__TwilioCallEvents"];
|
|
218
154
|
/**
|
|
@@ -286,9 +222,10 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
|
|
|
286
222
|
* Creates a new TwilioCallEvents record with the specified properties.
|
|
287
223
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
288
224
|
*
|
|
225
|
+
* @remarks Record type: OUTBOUND_CALL_EVENT
|
|
226
|
+
*
|
|
289
227
|
* @param properties - The properties for the new record
|
|
290
228
|
* @param options - Optional settings
|
|
291
|
-
* @param options.type - Override the record type
|
|
292
229
|
* @param options.journeyId - Associate with a journey
|
|
293
230
|
* @param options.stageKey - Set initial pipeline stage
|
|
294
231
|
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
@@ -304,7 +241,6 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
|
|
|
304
241
|
* ```
|
|
305
242
|
*/
|
|
306
243
|
createOutboundCallEvent(properties: CreateOutboundCallEventProperties, options?: {
|
|
307
|
-
type?: string;
|
|
308
244
|
journeyId?: string;
|
|
309
245
|
stageKey?: string;
|
|
310
246
|
}): ActionBuilder;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* await record.createTwilioCallEvents({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: INBOUND_CALL_EVENT,
|
|
17
|
+
* Entity Types: INBOUND_CALL_EVENT, OUTBOUND_CALL_EVENT
|
|
18
18
|
*
|
|
19
19
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
20
|
*/
|
|
@@ -162,38 +162,6 @@ class TwilioCallEventsRecord {
|
|
|
162
162
|
* @remarks Inbound call webhook events
|
|
163
163
|
*/
|
|
164
164
|
isInboundCallEvent() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'INBOUND_CALL_EVENT'; }
|
|
165
|
-
/**
|
|
166
|
-
* Type guard: check if this record is of type INBOUND_CALL_STATUS_UPDATE_EVENT
|
|
167
|
-
*
|
|
168
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
169
|
-
* giving you access to INBOUND_CALL_STATUS_UPDATE_EVENT-specific properties.
|
|
170
|
-
*
|
|
171
|
-
* @example
|
|
172
|
-
* ```typescript
|
|
173
|
-
* if (record.isInboundCallStatusUpdateEvent()) {
|
|
174
|
-
* // TypeScript knows record.properties is InboundCallStatusUpdateEventTwilioCallEventsProperties
|
|
175
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
176
|
-
* }
|
|
177
|
-
* ```
|
|
178
|
-
* @remarks Callback containing incoming call status updates for agent
|
|
179
|
-
*/
|
|
180
|
-
isInboundCallStatusUpdateEvent() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'INBOUND_CALL_STATUS_UPDATE_EVENT'; }
|
|
181
|
-
/**
|
|
182
|
-
* Type guard: check if this record is of type NUMBER_CALL_STATUS_EVENT
|
|
183
|
-
*
|
|
184
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
185
|
-
* giving you access to NUMBER_CALL_STATUS_EVENT-specific properties.
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* if (record.isNumberCallStatusEvent()) {
|
|
190
|
-
* // TypeScript knows record.properties is NumberCallStatusEventTwilioCallEventsProperties
|
|
191
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
192
|
-
* }
|
|
193
|
-
* ```
|
|
194
|
-
* @remarks Callback containing incoming call wrap up for customer
|
|
195
|
-
*/
|
|
196
|
-
isNumberCallStatusEvent() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'NUMBER_CALL_STATUS_EVENT'; }
|
|
197
165
|
/**
|
|
198
166
|
* Type guard: check if this record is of type OUTBOUND_CALL_EVENT
|
|
199
167
|
*
|
|
@@ -210,38 +178,6 @@ class TwilioCallEventsRecord {
|
|
|
210
178
|
* @remarks Outbound call webhook events
|
|
211
179
|
*/
|
|
212
180
|
isOutboundCallEvent() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'OUTBOUND_CALL_EVENT'; }
|
|
213
|
-
/**
|
|
214
|
-
* Type guard: check if this record is of type OUTBOUND_CALL_STATUS_UPDATE_EVENT
|
|
215
|
-
*
|
|
216
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
217
|
-
* giving you access to OUTBOUND_CALL_STATUS_UPDATE_EVENT-specific properties.
|
|
218
|
-
*
|
|
219
|
-
* @example
|
|
220
|
-
* ```typescript
|
|
221
|
-
* if (record.isOutboundCallStatusUpdateEvent()) {
|
|
222
|
-
* // TypeScript knows record.properties is OutboundCallStatusUpdateEventTwilioCallEventsProperties
|
|
223
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
224
|
-
* }
|
|
225
|
-
* ```
|
|
226
|
-
* @remarks Callback containing outbound call status updates for customer
|
|
227
|
-
*/
|
|
228
|
-
isOutboundCallStatusUpdateEvent() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'OUTBOUND_CALL_STATUS_UPDATE_EVENT'; }
|
|
229
|
-
/**
|
|
230
|
-
* Type guard: check if this record is of type OUTBOUND_DIAL_ACTION_EVENT
|
|
231
|
-
*
|
|
232
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
233
|
-
* giving you access to OUTBOUND_DIAL_ACTION_EVENT-specific properties.
|
|
234
|
-
*
|
|
235
|
-
* @example
|
|
236
|
-
* ```typescript
|
|
237
|
-
* if (record.isOutboundDialActionEvent()) {
|
|
238
|
-
* // TypeScript knows record.properties is OutboundDialActionEventTwilioCallEventsProperties
|
|
239
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
240
|
-
* }
|
|
241
|
-
* ```
|
|
242
|
-
* @remarks Callback containing outbound call wrap up for agent
|
|
243
|
-
*/
|
|
244
|
-
isOutboundDialActionEvent() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'OUTBOUND_DIAL_ACTION_EVENT'; }
|
|
245
181
|
/**
|
|
246
182
|
* Access linked Call records
|
|
247
183
|
* @remarks Available labels: Call__TwilioCallEvents
|
|
@@ -352,9 +288,10 @@ class TwilioCallEventsRecord {
|
|
|
352
288
|
* Creates a new TwilioCallEvents record with the specified properties.
|
|
353
289
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
354
290
|
*
|
|
291
|
+
* @remarks Record type: OUTBOUND_CALL_EVENT
|
|
292
|
+
*
|
|
355
293
|
* @param properties - The properties for the new record
|
|
356
294
|
* @param options - Optional settings
|
|
357
|
-
* @param options.type - Override the record type
|
|
358
295
|
* @param options.journeyId - Associate with a journey
|
|
359
296
|
* @param options.stageKey - Set initial pipeline stage
|
|
360
297
|
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
@@ -370,10 +307,9 @@ class TwilioCallEventsRecord {
|
|
|
370
307
|
* ```
|
|
371
308
|
*/
|
|
372
309
|
createOutboundCallEvent(properties, options) {
|
|
373
|
-
var _a, _b;
|
|
374
310
|
const payload = {
|
|
375
311
|
entity: 'NotificationModule:TwilioCallEvents',
|
|
376
|
-
type:
|
|
312
|
+
type: 'OUTBOUND_CALL_EVENT',
|
|
377
313
|
actionName: 'CreateOutboundCallEvent',
|
|
378
314
|
properties: properties || {},
|
|
379
315
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|