@d19n/youfibre-odin-sdk 2.0.142 → 2.0.144
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 +14 -3
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/TwilioCallEventsAccessor.d.ts +111 -0
- package/dist/accessors-v2/TwilioCallEventsAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +4 -2
- package/dist/actions-v2/CreateInboundCallStatusUpdateEventDto.d.ts +113 -0
- package/dist/actions-v2/CreateInboundCallStatusUpdateEventDto.js +59 -0
- package/dist/actions-v2/CreateNumberCallStatusEventDto.d.ts +105 -0
- package/dist/actions-v2/CreateNumberCallStatusEventDto.js +59 -0
- package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.d.ts +113 -0
- package/dist/actions-v2/CreateOutboundCallStatusUpdateEventDto.js +59 -0
- package/dist/actions-v2/CreateOutboundDialActionEventDto.d.ts +113 -0
- package/dist/actions-v2/CreateOutboundDialActionEventDto.js +59 -0
- package/dist/actions-v2/UpdateCallOnTaskCanceledDto.d.ts +66 -0
- package/dist/actions-v2/UpdateCallOnTaskCanceledDto.js +52 -0
- package/dist/api-sdk-v2/CallApi.d.ts +2 -0
- package/dist/api-sdk-v2/CallApi.js +6 -0
- package/dist/api-sdk-v2/TwilioCallEventsApi.d.ts +48 -0
- package/dist/api-sdk-v2/TwilioCallEventsApi.js +155 -0
- package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/TwilioCallEventsDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +4 -2
- package/dist/db-sdk-v2/CallDb.d.ts +2 -0
- package/dist/db-sdk-v2/CallDb.js +6 -0
- package/dist/db-sdk-v2/TwilioCallEventsDb.d.ts +120 -0
- package/dist/db-sdk-v2/TwilioCallEventsDb.js +204 -0
- package/dist/entities-v2/Call.d.ts +7 -0
- package/dist/entities-v2/Call.js +5 -1
- package/dist/entities-v2/CallEvent.d.ts +67 -1
- package/dist/entities-v2/CallEvent.js +9 -1
- package/dist/entities-v2/TwilioCallEvents.d.ts +282 -0
- package/dist/entities-v2/TwilioCallEvents.js +99 -0
- package/dist/records-v2/CallEventRecord.d.ts +19 -3
- package/dist/records-v2/CallEventRecord.js +17 -1
- package/dist/records-v2/CallRecord.d.ts +49 -0
- package/dist/records-v2/CallRecord.js +69 -0
- package/dist/records-v2/TwilioCallEventsRecord.d.ts +340 -0
- package/dist/records-v2/TwilioCallEventsRecord.js +436 -0
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +6 -3
- package/package.json +1 -1
|
@@ -0,0 +1,282 @@
|
|
|
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
|
+
/** Callback containing incoming call status updates for agent */
|
|
20
|
+
INBOUND_CALL_STATUS_UPDATE_EVENT = "INBOUND_CALL_STATUS_UPDATE_EVENT",
|
|
21
|
+
/** Callback containing incoming call wrap up for customer */
|
|
22
|
+
NUMBER_CALL_STATUS_EVENT = "NUMBER_CALL_STATUS_EVENT",
|
|
23
|
+
/** Callback containing outbound call status updates for customer */
|
|
24
|
+
OUTBOUND_CALL_STATUS_UPDATE_EVENT = "OUTBOUND_CALL_STATUS_UPDATE_EVENT",
|
|
25
|
+
/** Callback containing outbound call wrap up for agent */
|
|
26
|
+
OUTBOUND_DIAL_ACTION_EVENT = "OUTBOUND_DIAL_ACTION_EVENT"
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Property keys for TwilioCallEvents
|
|
30
|
+
* Use these constants instead of string literals for type safety
|
|
31
|
+
*/
|
|
32
|
+
export declare enum TwilioCallEventsPropertyKeys {
|
|
33
|
+
/** Title of twilio call event record */
|
|
34
|
+
Title = "Title",
|
|
35
|
+
/** Moment of storing the event in odin */
|
|
36
|
+
ReceivedAt = "ReceivedAt",
|
|
37
|
+
/** Twilio id of the call */
|
|
38
|
+
CallSid = "CallSid",
|
|
39
|
+
/** Query parameters of the request received from Twilio */
|
|
40
|
+
Query = "Query",
|
|
41
|
+
/** Body of the request received from Twilio */
|
|
42
|
+
Body = "Body",
|
|
43
|
+
/** Reference of the call record */
|
|
44
|
+
CallId = "CallId"
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Properties for TwilioCallEvents records
|
|
48
|
+
*
|
|
49
|
+
* @see NotificationModule:TwilioCallEvents
|
|
50
|
+
*/
|
|
51
|
+
export interface TwilioCallEventsProperties {
|
|
52
|
+
/** Title of twilio call event record
|
|
53
|
+
*
|
|
54
|
+
* @type {TEXT}
|
|
55
|
+
*/
|
|
56
|
+
Title: string;
|
|
57
|
+
/** Moment of storing the event in odin
|
|
58
|
+
*
|
|
59
|
+
* @type {DATE_TIME}
|
|
60
|
+
*/
|
|
61
|
+
ReceivedAt: string;
|
|
62
|
+
/** Twilio id of the call
|
|
63
|
+
*
|
|
64
|
+
* @type {TEXT}
|
|
65
|
+
*/
|
|
66
|
+
CallSid: string;
|
|
67
|
+
/** Query parameters of the request received from Twilio
|
|
68
|
+
*
|
|
69
|
+
* @type {JSON}
|
|
70
|
+
*/
|
|
71
|
+
Query: string;
|
|
72
|
+
/** Body of the request received from Twilio
|
|
73
|
+
*
|
|
74
|
+
* @type {JSON}
|
|
75
|
+
*/
|
|
76
|
+
Body: string;
|
|
77
|
+
/** Reference of the call record
|
|
78
|
+
*
|
|
79
|
+
* @type {LOOKUP}
|
|
80
|
+
*/
|
|
81
|
+
CallId: string;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Properties for INBOUND_CALL_STATUS_UPDATE_EVENT TwilioCallEvents records
|
|
85
|
+
*
|
|
86
|
+
* @see NotificationModule:TwilioCallEvents
|
|
87
|
+
*/
|
|
88
|
+
export interface InboundCallStatusUpdateEventTwilioCallEventsProperties {
|
|
89
|
+
/** Title of twilio call event record
|
|
90
|
+
*
|
|
91
|
+
* @type {TEXT}
|
|
92
|
+
*/
|
|
93
|
+
Title: string;
|
|
94
|
+
/** Moment of storing the event in odin
|
|
95
|
+
*
|
|
96
|
+
* @type {DATE_TIME}
|
|
97
|
+
*/
|
|
98
|
+
ReceivedAt: string;
|
|
99
|
+
/** Twilio id of the call
|
|
100
|
+
*
|
|
101
|
+
* @type {TEXT}
|
|
102
|
+
*/
|
|
103
|
+
CallSid: string;
|
|
104
|
+
/** Query parameters of the request received from Twilio
|
|
105
|
+
*
|
|
106
|
+
* @type {JSON}
|
|
107
|
+
*/
|
|
108
|
+
Query: string;
|
|
109
|
+
/** Body of the request received from Twilio
|
|
110
|
+
*
|
|
111
|
+
* @type {JSON}
|
|
112
|
+
*/
|
|
113
|
+
Body: string;
|
|
114
|
+
/** Reference of the call record
|
|
115
|
+
*
|
|
116
|
+
* @type {LOOKUP}
|
|
117
|
+
*/
|
|
118
|
+
CallId: string;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Properties for NUMBER_CALL_STATUS_EVENT TwilioCallEvents records
|
|
122
|
+
*
|
|
123
|
+
* @see NotificationModule:TwilioCallEvents
|
|
124
|
+
*/
|
|
125
|
+
export interface NumberCallStatusEventTwilioCallEventsProperties {
|
|
126
|
+
/** Title of twilio call event record
|
|
127
|
+
*
|
|
128
|
+
* @type {TEXT}
|
|
129
|
+
*/
|
|
130
|
+
Title: string;
|
|
131
|
+
/** Moment of storing the event in odin
|
|
132
|
+
*
|
|
133
|
+
* @type {DATE_TIME}
|
|
134
|
+
*/
|
|
135
|
+
ReceivedAt: string;
|
|
136
|
+
/** Twilio id of the call
|
|
137
|
+
*
|
|
138
|
+
* @type {TEXT}
|
|
139
|
+
*/
|
|
140
|
+
CallSid: string;
|
|
141
|
+
/** Query parameters of the request received from Twilio
|
|
142
|
+
*
|
|
143
|
+
* @type {JSON}
|
|
144
|
+
*/
|
|
145
|
+
Query: string;
|
|
146
|
+
/** Body of the request received from Twilio
|
|
147
|
+
*
|
|
148
|
+
* @type {JSON}
|
|
149
|
+
*/
|
|
150
|
+
Body: string;
|
|
151
|
+
/** Reference of the call record
|
|
152
|
+
*
|
|
153
|
+
* @type {LOOKUP}
|
|
154
|
+
*/
|
|
155
|
+
CallId: string;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Properties for OUTBOUND_CALL_STATUS_UPDATE_EVENT TwilioCallEvents records
|
|
159
|
+
*
|
|
160
|
+
* @see NotificationModule:TwilioCallEvents
|
|
161
|
+
*/
|
|
162
|
+
export interface OutboundCallStatusUpdateEventTwilioCallEventsProperties {
|
|
163
|
+
/** Title of twilio call event record
|
|
164
|
+
*
|
|
165
|
+
* @type {TEXT}
|
|
166
|
+
*/
|
|
167
|
+
Title: string;
|
|
168
|
+
/** Moment of storing the event in odin
|
|
169
|
+
*
|
|
170
|
+
* @type {DATE_TIME}
|
|
171
|
+
*/
|
|
172
|
+
ReceivedAt: string;
|
|
173
|
+
/** Twilio id of the call
|
|
174
|
+
*
|
|
175
|
+
* @type {TEXT}
|
|
176
|
+
*/
|
|
177
|
+
CallSid: string;
|
|
178
|
+
/** Query parameters of the request received from Twilio
|
|
179
|
+
*
|
|
180
|
+
* @type {JSON}
|
|
181
|
+
*/
|
|
182
|
+
Query: string;
|
|
183
|
+
/** Body of the request received from Twilio
|
|
184
|
+
*
|
|
185
|
+
* @type {JSON}
|
|
186
|
+
*/
|
|
187
|
+
Body: string;
|
|
188
|
+
/** Reference of the call record
|
|
189
|
+
*
|
|
190
|
+
* @type {LOOKUP}
|
|
191
|
+
*/
|
|
192
|
+
CallId: string;
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Properties for OUTBOUND_DIAL_ACTION_EVENT TwilioCallEvents records
|
|
196
|
+
*
|
|
197
|
+
* @see NotificationModule:TwilioCallEvents
|
|
198
|
+
*/
|
|
199
|
+
export interface OutboundDialActionEventTwilioCallEventsProperties {
|
|
200
|
+
/** Title of twilio call event record
|
|
201
|
+
*
|
|
202
|
+
* @type {TEXT}
|
|
203
|
+
*/
|
|
204
|
+
Title: string;
|
|
205
|
+
/** Moment of storing the event in odin
|
|
206
|
+
*
|
|
207
|
+
* @type {DATE_TIME}
|
|
208
|
+
*/
|
|
209
|
+
ReceivedAt: string;
|
|
210
|
+
/** Twilio id of the call
|
|
211
|
+
*
|
|
212
|
+
* @type {TEXT}
|
|
213
|
+
*/
|
|
214
|
+
CallSid: string;
|
|
215
|
+
/** Query parameters of the request received from Twilio
|
|
216
|
+
*
|
|
217
|
+
* @type {JSON}
|
|
218
|
+
*/
|
|
219
|
+
Query: string;
|
|
220
|
+
/** Body of the request received from Twilio
|
|
221
|
+
*
|
|
222
|
+
* @type {JSON}
|
|
223
|
+
*/
|
|
224
|
+
Body: string;
|
|
225
|
+
/** Reference of the call record
|
|
226
|
+
*
|
|
227
|
+
* @type {LOOKUP}
|
|
228
|
+
*/
|
|
229
|
+
CallId: string;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* TwilioCallEvents entity from NotificationModule
|
|
233
|
+
*
|
|
234
|
+
* Twilio callback events - inbound and outbound call updates triggered on ringing, answered completed, etc
|
|
235
|
+
*
|
|
236
|
+
* @module NotificationModule
|
|
237
|
+
* @entity TwilioCallEvents
|
|
238
|
+
* @schemaId dff5448f-59f1-42dd-b6c8-f6ab4789b447
|
|
239
|
+
* @capabilities searchable, updateable, undeletable, triggerable
|
|
240
|
+
*/
|
|
241
|
+
export declare class TwilioCallEvents extends OdinRecord<TwilioCallEventsProperties> {
|
|
242
|
+
entity: 'NotificationModule:TwilioCallEvents';
|
|
243
|
+
type: TwilioCallEventsEntityTypes;
|
|
244
|
+
schemaId: 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
|
|
245
|
+
properties: TwilioCallEventsProperties;
|
|
246
|
+
/** Linked Call records (Call__TwilioCallEvents) */
|
|
247
|
+
Call: OdinLink<LinkedOdinRecord<CallProperties>>;
|
|
248
|
+
}
|
|
249
|
+
/**
|
|
250
|
+
* RabbitMQ routing keys for TwilioCallEvents events
|
|
251
|
+
*/
|
|
252
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_CREATED = "NotificationModule.TwilioCallEvents.SubDbRecordCreated";
|
|
253
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_UPDATED = "NotificationModule.TwilioCallEvents.SubDbRecordUpdated";
|
|
254
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = "NotificationModule.TwilioCallEvents.SubDbRecordDeleted";
|
|
255
|
+
/**
|
|
256
|
+
* Type-specific routing keys for TwilioCallEvents events
|
|
257
|
+
* Subscribe to these for events on specific entity types only
|
|
258
|
+
*/
|
|
259
|
+
/** Callback containing incoming call status updates for agent created */
|
|
260
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated";
|
|
261
|
+
/** Callback containing incoming call status updates for agent updated */
|
|
262
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated";
|
|
263
|
+
/** Callback containing incoming call status updates for agent deleted */
|
|
264
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = "NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted";
|
|
265
|
+
/** Callback containing incoming call wrap up for customer created */
|
|
266
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CREATED = "NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordCreated";
|
|
267
|
+
/** Callback containing incoming call wrap up for customer updated */
|
|
268
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated";
|
|
269
|
+
/** Callback containing incoming call wrap up for customer deleted */
|
|
270
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_DELETED = "NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordDeleted";
|
|
271
|
+
/** Callback containing outbound call status updates for customer created */
|
|
272
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated";
|
|
273
|
+
/** Callback containing outbound call status updates for customer updated */
|
|
274
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated";
|
|
275
|
+
/** Callback containing outbound call status updates for customer deleted */
|
|
276
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = "NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted";
|
|
277
|
+
/** Callback containing outbound call wrap up for agent created */
|
|
278
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_CREATED = "NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordCreated";
|
|
279
|
+
/** Callback containing outbound call wrap up for agent updated */
|
|
280
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_UPDATED = "NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordUpdated";
|
|
281
|
+
/** Callback containing outbound call wrap up for agent deleted */
|
|
282
|
+
export declare const ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_DELETED = "NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordDeleted";
|
|
@@ -0,0 +1,99 @@
|
|
|
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_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;
|
|
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
|
+
/** Callback containing incoming call status updates for agent */
|
|
23
|
+
TwilioCallEventsEntityTypes["INBOUND_CALL_STATUS_UPDATE_EVENT"] = "INBOUND_CALL_STATUS_UPDATE_EVENT";
|
|
24
|
+
/** Callback containing incoming call wrap up for customer */
|
|
25
|
+
TwilioCallEventsEntityTypes["NUMBER_CALL_STATUS_EVENT"] = "NUMBER_CALL_STATUS_EVENT";
|
|
26
|
+
/** Callback containing outbound call status updates for customer */
|
|
27
|
+
TwilioCallEventsEntityTypes["OUTBOUND_CALL_STATUS_UPDATE_EVENT"] = "OUTBOUND_CALL_STATUS_UPDATE_EVENT";
|
|
28
|
+
/** Callback containing outbound call wrap up for agent */
|
|
29
|
+
TwilioCallEventsEntityTypes["OUTBOUND_DIAL_ACTION_EVENT"] = "OUTBOUND_DIAL_ACTION_EVENT";
|
|
30
|
+
})(TwilioCallEventsEntityTypes = exports.TwilioCallEventsEntityTypes || (exports.TwilioCallEventsEntityTypes = {}));
|
|
31
|
+
/**
|
|
32
|
+
* Property keys for TwilioCallEvents
|
|
33
|
+
* Use these constants instead of string literals for type safety
|
|
34
|
+
*/
|
|
35
|
+
var TwilioCallEventsPropertyKeys;
|
|
36
|
+
(function (TwilioCallEventsPropertyKeys) {
|
|
37
|
+
/** Title of twilio call event record */
|
|
38
|
+
TwilioCallEventsPropertyKeys["Title"] = "Title";
|
|
39
|
+
/** Moment of storing the event in odin */
|
|
40
|
+
TwilioCallEventsPropertyKeys["ReceivedAt"] = "ReceivedAt";
|
|
41
|
+
/** Twilio id of the call */
|
|
42
|
+
TwilioCallEventsPropertyKeys["CallSid"] = "CallSid";
|
|
43
|
+
/** Query parameters of the request received from Twilio */
|
|
44
|
+
TwilioCallEventsPropertyKeys["Query"] = "Query";
|
|
45
|
+
/** Body of the request received from Twilio */
|
|
46
|
+
TwilioCallEventsPropertyKeys["Body"] = "Body";
|
|
47
|
+
/** Reference of the call record */
|
|
48
|
+
TwilioCallEventsPropertyKeys["CallId"] = "CallId";
|
|
49
|
+
})(TwilioCallEventsPropertyKeys = exports.TwilioCallEventsPropertyKeys || (exports.TwilioCallEventsPropertyKeys = {}));
|
|
50
|
+
/**
|
|
51
|
+
* TwilioCallEvents entity from NotificationModule
|
|
52
|
+
*
|
|
53
|
+
* Twilio callback events - inbound and outbound call updates triggered on ringing, answered completed, etc
|
|
54
|
+
*
|
|
55
|
+
* @module NotificationModule
|
|
56
|
+
* @entity TwilioCallEvents
|
|
57
|
+
* @schemaId dff5448f-59f1-42dd-b6c8-f6ab4789b447
|
|
58
|
+
* @capabilities searchable, updateable, undeletable, triggerable
|
|
59
|
+
*/
|
|
60
|
+
class TwilioCallEvents extends core_1.OdinRecord {
|
|
61
|
+
}
|
|
62
|
+
exports.TwilioCallEvents = TwilioCallEvents;
|
|
63
|
+
// ============================================
|
|
64
|
+
// RABBITMQ EVENT ROUTING KEYS
|
|
65
|
+
// ============================================
|
|
66
|
+
/**
|
|
67
|
+
* RabbitMQ routing keys for TwilioCallEvents events
|
|
68
|
+
*/
|
|
69
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_CREATED = 'NotificationModule.TwilioCallEvents.SubDbRecordCreated';
|
|
70
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_UPDATED = 'NotificationModule.TwilioCallEvents.SubDbRecordUpdated';
|
|
71
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = 'NotificationModule.TwilioCallEvents.SubDbRecordDeleted';
|
|
72
|
+
/**
|
|
73
|
+
* Type-specific routing keys for TwilioCallEvents events
|
|
74
|
+
* Subscribe to these for events on specific entity types only
|
|
75
|
+
*/
|
|
76
|
+
/** Callback containing incoming call status updates for agent created */
|
|
77
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated';
|
|
78
|
+
/** Callback containing incoming call status updates for agent updated */
|
|
79
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated';
|
|
80
|
+
/** Callback containing incoming call status updates for agent deleted */
|
|
81
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted';
|
|
82
|
+
/** Callback containing incoming call wrap up for customer created */
|
|
83
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordCreated';
|
|
84
|
+
/** Callback containing incoming call wrap up for customer updated */
|
|
85
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated';
|
|
86
|
+
/** Callback containing incoming call wrap up for customer deleted */
|
|
87
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_NUMBER_CALL_STATUS_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.NUMBER_CALL_STATUS_EVENT.SubDbRecordDeleted';
|
|
88
|
+
/** Callback containing outbound call status updates for customer created */
|
|
89
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordCreated';
|
|
90
|
+
/** Callback containing outbound call status updates for customer updated */
|
|
91
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordUpdated';
|
|
92
|
+
/** Callback containing outbound call status updates for customer deleted */
|
|
93
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_STATUS_UPDATE_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_STATUS_UPDATE_EVENT.SubDbRecordDeleted';
|
|
94
|
+
/** Callback containing outbound call wrap up for agent created */
|
|
95
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordCreated';
|
|
96
|
+
/** Callback containing outbound call wrap up for agent updated */
|
|
97
|
+
exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_DIAL_ACTION_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_DIAL_ACTION_EVENT.SubDbRecordUpdated';
|
|
98
|
+
/** Callback containing outbound call wrap up for agent deleted */
|
|
99
|
+
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.createCallEvent({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: DEFAULT
|
|
16
|
+
* Entity Types: DEFAULT, NUMBER_CALL_STATUS_EVENT
|
|
17
17
|
*
|
|
18
18
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
19
|
*/
|
|
@@ -22,13 +22,13 @@ 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 { CallEventProperties } from '../entities-v2/CallEvent';
|
|
25
|
+
import { CallEventProperties, NumberCallStatusEventCallEventProperties } from '../entities-v2/CallEvent';
|
|
26
26
|
import { CreateCallEventProperties } from '../actions-v2/CreateCallEventDto';
|
|
27
27
|
import { CallRecord } from './CallRecord';
|
|
28
28
|
import { CallLegRecord } from './CallLegRecord';
|
|
29
29
|
import { CallTransferRecord } from './CallTransferRecord';
|
|
30
30
|
/** Valid entity types for CallEvent */
|
|
31
|
-
export declare type CallEventType = 'DEFAULT';
|
|
31
|
+
export declare type CallEventType = 'DEFAULT' | 'NUMBER_CALL_STATUS_EVENT';
|
|
32
32
|
/**
|
|
33
33
|
* Builder for action execution with dryRun support
|
|
34
34
|
*
|
|
@@ -136,6 +136,22 @@ export declare class CallEventRecord<TProps = CallEventProperties> {
|
|
|
136
136
|
* @remarks This is the default record type
|
|
137
137
|
*/
|
|
138
138
|
isDefault(): this is CallEventRecord<CallEventProperties>;
|
|
139
|
+
/**
|
|
140
|
+
* Type guard: check if this record is of type NUMBER_CALL_STATUS_EVENT
|
|
141
|
+
*
|
|
142
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
143
|
+
* giving you access to NUMBER_CALL_STATUS_EVENT-specific properties.
|
|
144
|
+
*
|
|
145
|
+
* @example
|
|
146
|
+
* ```typescript
|
|
147
|
+
* if (record.isNumberCallStatusEvent()) {
|
|
148
|
+
* // TypeScript knows record.properties is NumberCallStatusEventCallEventProperties
|
|
149
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
150
|
+
* }
|
|
151
|
+
* ```
|
|
152
|
+
* @remarks Callback containing customer call wrap up details
|
|
153
|
+
*/
|
|
154
|
+
isNumberCallStatusEvent(): this is CallEventRecord<NumberCallStatusEventCallEventProperties>;
|
|
139
155
|
/** Valid labels for Call associations */
|
|
140
156
|
static readonly callsLabels: readonly ["Call_CallEvent"];
|
|
141
157
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* await record.createCallEvent({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: DEFAULT
|
|
17
|
+
* Entity Types: DEFAULT, NUMBER_CALL_STATUS_EVENT
|
|
18
18
|
*
|
|
19
19
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
20
|
*/
|
|
@@ -164,6 +164,22 @@ class CallEventRecord {
|
|
|
164
164
|
* @remarks This is the default record type
|
|
165
165
|
*/
|
|
166
166
|
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
167
|
+
/**
|
|
168
|
+
* Type guard: check if this record is of type NUMBER_CALL_STATUS_EVENT
|
|
169
|
+
*
|
|
170
|
+
* When this returns true, TypeScript automatically narrows the type,
|
|
171
|
+
* giving you access to NUMBER_CALL_STATUS_EVENT-specific properties.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```typescript
|
|
175
|
+
* if (record.isNumberCallStatusEvent()) {
|
|
176
|
+
* // TypeScript knows record.properties is NumberCallStatusEventCallEventProperties
|
|
177
|
+
* console.log(record.properties.SomeTypeSpecificField);
|
|
178
|
+
* }
|
|
179
|
+
* ```
|
|
180
|
+
* @remarks Callback containing customer call wrap up details
|
|
181
|
+
*/
|
|
182
|
+
isNumberCallStatusEvent() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'NUMBER_CALL_STATUS_EVENT'; }
|
|
167
183
|
/**
|
|
168
184
|
* Access linked Call records
|
|
169
185
|
* @remarks Available labels: Call_CallEvent
|
|
@@ -44,6 +44,7 @@ import { UpdateCallOnOutboundCallCompletedProperties } from '../actions-v2/Updat
|
|
|
44
44
|
import { UpdateCallOnOutboundCallFailedProperties } from '../actions-v2/UpdateCallOnOutboundCallFailedDto';
|
|
45
45
|
import { UpdateCallOnOutboundCallNoAnswerProperties } from '../actions-v2/UpdateCallOnOutboundCallNoAnswerDto';
|
|
46
46
|
import { UpdateCallOnOutboundDialActionProperties } from '../actions-v2/UpdateCallOnOutboundDialActionDto';
|
|
47
|
+
import { UpdateCallOnTaskCanceledProperties } from '../actions-v2/UpdateCallOnTaskCanceledDto';
|
|
47
48
|
import { UpdateCallOnTaskRouterAssignProperties } from '../actions-v2/UpdateCallOnTaskRouterAssignDto';
|
|
48
49
|
import { UpdateCallTranscriptionUrlProperties } from '../actions-v2/UpdateCallTranscriptionUrlDto';
|
|
49
50
|
import { LeadRecord } from './LeadRecord';
|
|
@@ -55,6 +56,7 @@ import { CallTransferRecord } from './CallTransferRecord';
|
|
|
55
56
|
import { CallEventRecord } from './CallEventRecord';
|
|
56
57
|
import { CaseRecord } from './CaseRecord';
|
|
57
58
|
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
59
|
+
import { TwilioCallEventsRecord } from './TwilioCallEventsRecord';
|
|
58
60
|
/** Valid entity types for Call */
|
|
59
61
|
export declare type CallType = 'DEFAULT';
|
|
60
62
|
/**
|
|
@@ -129,6 +131,7 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
129
131
|
private _callEvents?;
|
|
130
132
|
private _cases?;
|
|
131
133
|
private _workOrders?;
|
|
134
|
+
private _twilioCallEventses?;
|
|
132
135
|
/**
|
|
133
136
|
* Create a record wrapper.
|
|
134
137
|
* @param record - The underlying record, or null for create operations
|
|
@@ -332,6 +335,24 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
332
335
|
* ```
|
|
333
336
|
*/
|
|
334
337
|
get workOrders(): RecordLinkManager<WorkOrderRecord, typeof CallRecord['workOrdersLabels'][number]>;
|
|
338
|
+
/** Valid labels for TwilioCallEvents associations */
|
|
339
|
+
static readonly twilioCallEventsesLabels: readonly ["Call__TwilioCallEvents"];
|
|
340
|
+
/**
|
|
341
|
+
* Access linked TwilioCallEvents records
|
|
342
|
+
* @remarks Available labels: Call__TwilioCallEvents
|
|
343
|
+
* @throws Error if called on a new (unsaved) record
|
|
344
|
+
*
|
|
345
|
+
* @example
|
|
346
|
+
* ```typescript
|
|
347
|
+
* // Get all linked TwilioCallEvents records
|
|
348
|
+
* const items = await record.twilioCallEventses.list();
|
|
349
|
+
* const first = await record.twilioCallEventses.first();
|
|
350
|
+
*
|
|
351
|
+
* // Filter by label
|
|
352
|
+
* const specific = await record.twilioCallEventses.first({ label: 'Call__TwilioCallEvents' });
|
|
353
|
+
* ```
|
|
354
|
+
*/
|
|
355
|
+
get twilioCallEventses(): RecordLinkManager<TwilioCallEventsRecord, typeof CallRecord['twilioCallEventsesLabels'][number]>;
|
|
335
356
|
/**
|
|
336
357
|
* Queue a link to be created with the next action.
|
|
337
358
|
* Works for both create and update actions.
|
|
@@ -456,6 +477,34 @@ export declare class CallRecord<TProps = CallProperties> {
|
|
|
456
477
|
journeyId?: string;
|
|
457
478
|
stageKey?: string;
|
|
458
479
|
}): ActionBuilder;
|
|
480
|
+
/**
|
|
481
|
+
* UpdateCallOnTaskCanceled
|
|
482
|
+
*
|
|
483
|
+
* Creates a new Call record with the specified properties.
|
|
484
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
485
|
+
*
|
|
486
|
+
* @param properties - The properties for the new record
|
|
487
|
+
* @param options - Optional settings
|
|
488
|
+
* @param options.type - Override the record type
|
|
489
|
+
* @param options.journeyId - Associate with a journey
|
|
490
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
491
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
492
|
+
*
|
|
493
|
+
* @example
|
|
494
|
+
* ```typescript
|
|
495
|
+
* // Create with properties
|
|
496
|
+
* const record = odinClient.calls.new();
|
|
497
|
+
* await record.updateCallOnTaskCanceled({ ... }).execute();
|
|
498
|
+
*
|
|
499
|
+
* // Dry run (for debugging)
|
|
500
|
+
* const payload = record.updateCallOnTaskCanceled({ ... }).dryRun();
|
|
501
|
+
* ```
|
|
502
|
+
*/
|
|
503
|
+
updateCallOnTaskCanceled(properties: UpdateCallOnTaskCanceledProperties, options?: {
|
|
504
|
+
type?: string;
|
|
505
|
+
journeyId?: string;
|
|
506
|
+
stageKey?: string;
|
|
507
|
+
}): ActionBuilder;
|
|
459
508
|
/**
|
|
460
509
|
* UpdateCallAnalytics
|
|
461
510
|
*
|
|
@@ -44,6 +44,7 @@ const CallTransferRecord_1 = require("./CallTransferRecord");
|
|
|
44
44
|
const CallEventRecord_1 = require("./CallEventRecord");
|
|
45
45
|
const CaseRecord_1 = require("./CaseRecord");
|
|
46
46
|
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
47
|
+
const TwilioCallEventsRecord_1 = require("./TwilioCallEventsRecord");
|
|
47
48
|
/**
|
|
48
49
|
* Builder for action execution with dryRun support
|
|
49
50
|
*
|
|
@@ -443,6 +444,36 @@ class CallRecord {
|
|
|
443
444
|
}
|
|
444
445
|
return this._workOrders;
|
|
445
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* Access linked TwilioCallEvents records
|
|
449
|
+
* @remarks Available labels: Call__TwilioCallEvents
|
|
450
|
+
* @throws Error if called on a new (unsaved) record
|
|
451
|
+
*
|
|
452
|
+
* @example
|
|
453
|
+
* ```typescript
|
|
454
|
+
* // Get all linked TwilioCallEvents records
|
|
455
|
+
* const items = await record.twilioCallEventses.list();
|
|
456
|
+
* const first = await record.twilioCallEventses.first();
|
|
457
|
+
*
|
|
458
|
+
* // Filter by label
|
|
459
|
+
* const specific = await record.twilioCallEventses.first({ label: 'Call__TwilioCallEvents' });
|
|
460
|
+
* ```
|
|
461
|
+
*/
|
|
462
|
+
get twilioCallEventses() {
|
|
463
|
+
var _a;
|
|
464
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
465
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
466
|
+
if (!this._twilioCallEventses) {
|
|
467
|
+
this._twilioCallEventses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
468
|
+
sourceEntity: 'NotificationModule:Call',
|
|
469
|
+
targetEntity: 'NotificationModule:TwilioCallEvents',
|
|
470
|
+
targetModuleName: 'NotificationModule',
|
|
471
|
+
targetEntityName: 'TwilioCallEvents',
|
|
472
|
+
labels: ['Call__TwilioCallEvents'],
|
|
473
|
+
}, TwilioCallEventsRecord_1.TwilioCallEventsRecord);
|
|
474
|
+
}
|
|
475
|
+
return this._twilioCallEventses;
|
|
476
|
+
}
|
|
446
477
|
// ============================================
|
|
447
478
|
// LINK MANAGEMENT
|
|
448
479
|
// ============================================
|
|
@@ -589,6 +620,42 @@ class CallRecord {
|
|
|
589
620
|
};
|
|
590
621
|
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
591
622
|
}
|
|
623
|
+
/**
|
|
624
|
+
* UpdateCallOnTaskCanceled
|
|
625
|
+
*
|
|
626
|
+
* Creates a new Call record with the specified properties.
|
|
627
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
628
|
+
*
|
|
629
|
+
* @param properties - The properties for the new record
|
|
630
|
+
* @param options - Optional settings
|
|
631
|
+
* @param options.type - Override the record type
|
|
632
|
+
* @param options.journeyId - Associate with a journey
|
|
633
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
634
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* ```typescript
|
|
638
|
+
* // Create with properties
|
|
639
|
+
* const record = odinClient.calls.new();
|
|
640
|
+
* await record.updateCallOnTaskCanceled({ ... }).execute();
|
|
641
|
+
*
|
|
642
|
+
* // Dry run (for debugging)
|
|
643
|
+
* const payload = record.updateCallOnTaskCanceled({ ... }).dryRun();
|
|
644
|
+
* ```
|
|
645
|
+
*/
|
|
646
|
+
updateCallOnTaskCanceled(properties, options) {
|
|
647
|
+
var _a, _b;
|
|
648
|
+
const payload = {
|
|
649
|
+
entity: 'NotificationModule:Call',
|
|
650
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
651
|
+
actionName: 'UpdateCallOnTaskCanceled',
|
|
652
|
+
properties: properties || {},
|
|
653
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
654
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
655
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
656
|
+
};
|
|
657
|
+
return new ActionBuilder(this._provider, 'NotificationModule', 'Call', payload, () => { this._pendingLinks = []; });
|
|
658
|
+
}
|
|
592
659
|
// ============================================
|
|
593
660
|
// UPDATE ACTIONS (require existing record)
|
|
594
661
|
// ============================================
|
|
@@ -1095,6 +1162,8 @@ CallRecord.callEventsLabels = ['Call_CallEvent'];
|
|
|
1095
1162
|
CallRecord.casesLabels = ['Call__Case'];
|
|
1096
1163
|
/** Valid labels for WorkOrder associations */
|
|
1097
1164
|
CallRecord.workOrdersLabels = ['Call__WorkOrder'];
|
|
1165
|
+
/** Valid labels for TwilioCallEvents associations */
|
|
1166
|
+
CallRecord.twilioCallEventsesLabels = ['Call__TwilioCallEvents'];
|
|
1098
1167
|
/** Type guard to check if an object is a CallRecord */
|
|
1099
1168
|
function isCallRecord(obj) {
|
|
1100
1169
|
return obj instanceof CallRecord;
|