@d19n/youfibre-odin-sdk 2.0.148 → 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 (50) 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 -31
  15. package/dist/actions-v2/CreateOutboundCallEventDto.js +14 -19
  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/{TwilioCallEvents.d.ts → TwilioCallEvent.d.ts} +91 -91
  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} +23 -23
  46. package/dist/records-v2/{TwilioCallEventsRecord.js → TwilioCallEventRecord.js} +30 -30
  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.js +0 -103
@@ -1,5 +1,5 @@
1
1
  /**
2
- * TwilioCallEvents Record Wrapper
2
+ * TwilioCallEvent Record Wrapper
3
3
  *
4
4
  * Provides typed action methods and link management.
5
5
  * Works with both ApiProvider and DbProvider.
@@ -9,8 +9,8 @@
9
9
  *
10
10
  * Can be instantiated with null record for create operations:
11
11
  * ```typescript
12
- * const record = odinClient.twilioCallEventss.new();
13
- * await record.createTwilioCallEvents({ ... }).execute();
12
+ * const record = odinClient.twilioCallEvents.new();
13
+ * await record.createTwilioCallEvent({ ... }).execute();
14
14
  * ```
15
15
  *
16
16
  * Entity Types: INBOUND_CALL_EVENT, OUTBOUND_CALL_EVENT
@@ -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, OutboundCallEventTwilioCallEventsProperties } from '../entities-v2/TwilioCallEvents';
25
+ import { TwilioCallEventProperties, InboundCallEventTwilioCallEventProperties, OutboundCallEventTwilioCallEventProperties } from '../entities-v2/TwilioCallEvent';
26
26
  import { CreateInboundCallEventProperties } from '../actions-v2/CreateInboundCallEventDto';
27
27
  import { CreateOutboundCallEventProperties } from '../actions-v2/CreateOutboundCallEventDto';
28
28
  import { CallRecord } from './CallRecord';
29
- /** Valid entity types for TwilioCallEvents */
30
- export declare type TwilioCallEventsType = 'INBOUND_CALL_EVENT' | 'OUTBOUND_CALL_EVENT';
29
+ /** Valid entity types for TwilioCallEvent */
30
+ export declare type TwilioCallEventType = 'INBOUND_CALL_EVENT' | 'OUTBOUND_CALL_EVENT';
31
31
  /**
32
32
  * Builder for action execution with dryRun support
33
33
  *
@@ -86,7 +86,7 @@ declare class ActionBuilder<T = IDbRecordCreateUpdateRes[]> {
86
86
  */
87
87
  then(): never;
88
88
  }
89
- export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties> {
89
+ export declare class TwilioCallEventRecord<TProps = TwilioCallEventProperties> {
90
90
  private _record;
91
91
  private _provider;
92
92
  private _pendingLinks;
@@ -104,7 +104,7 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
104
104
  /** Record ID - always available (pre-generated for new records) */
105
105
  get id(): string;
106
106
  get entity(): string;
107
- get type(): TwilioCallEventsType | undefined;
107
+ get type(): TwilioCallEventType | undefined;
108
108
  /** Record properties - empty object for new (unsaved) records */
109
109
  get properties(): TProps;
110
110
  get title(): string | undefined;
@@ -126,13 +126,13 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
126
126
  * @example
127
127
  * ```typescript
128
128
  * if (record.isInboundCallEvent()) {
129
- * // TypeScript knows record.properties is InboundCallEventTwilioCallEventsProperties
129
+ * // TypeScript knows record.properties is InboundCallEventTwilioCallEventProperties
130
130
  * console.log(record.properties.SomeTypeSpecificField);
131
131
  * }
132
132
  * ```
133
133
  * @remarks Inbound call webhook events
134
134
  */
135
- isInboundCallEvent(): this is TwilioCallEventsRecord<InboundCallEventTwilioCallEventsProperties>;
135
+ isInboundCallEvent(): this is TwilioCallEventRecord<InboundCallEventTwilioCallEventProperties>;
136
136
  /**
137
137
  * Type guard: check if this record is of type OUTBOUND_CALL_EVENT
138
138
  *
@@ -142,13 +142,13 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
142
142
  * @example
143
143
  * ```typescript
144
144
  * if (record.isOutboundCallEvent()) {
145
- * // TypeScript knows record.properties is OutboundCallEventTwilioCallEventsProperties
145
+ * // TypeScript knows record.properties is OutboundCallEventTwilioCallEventProperties
146
146
  * console.log(record.properties.SomeTypeSpecificField);
147
147
  * }
148
148
  * ```
149
149
  * @remarks Outbound call webhook events
150
150
  */
151
- isOutboundCallEvent(): this is TwilioCallEventsRecord<OutboundCallEventTwilioCallEventsProperties>;
151
+ isOutboundCallEvent(): this is TwilioCallEventRecord<OutboundCallEventTwilioCallEventProperties>;
152
152
  /** Valid labels for Call associations */
153
153
  static readonly callsLabels: readonly ["Call__TwilioCallEvents"];
154
154
  /**
@@ -166,7 +166,7 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
166
166
  * const specific = await record.calls.first({ label: 'Call__TwilioCallEvents' });
167
167
  * ```
168
168
  */
169
- get calls(): RecordLinkManager<CallRecord, typeof TwilioCallEventsRecord['callsLabels'][number]>;
169
+ get calls(): RecordLinkManager<CallRecord, typeof TwilioCallEventRecord['callsLabels'][number]>;
170
170
  /**
171
171
  * Queue a link to be created with the next action.
172
172
  * Works for both create and update actions.
@@ -191,13 +191,12 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
191
191
  /**
192
192
  * CreateInboundCallEvent
193
193
  *
194
- * Creates a new TwilioCallEvents record with the specified properties.
194
+ * Creates a new TwilioCallEvent record with the specified properties.
195
195
  * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
196
196
  *
197
- * @remarks Record type: INBOUND_CALL_EVENT
198
- *
199
197
  * @param properties - The properties for the new record
200
198
  * @param options - Optional settings
199
+ * @param options.type - Override the record type
201
200
  * @param options.journeyId - Associate with a journey
202
201
  * @param options.stageKey - Set initial pipeline stage
203
202
  * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
@@ -205,7 +204,7 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
205
204
  * @example
206
205
  * ```typescript
207
206
  * // Create with properties
208
- * const record = odinClient.twilioCallEventss.new();
207
+ * const record = odinClient.twilioCallEvents.new();
209
208
  * await record.createInboundCallEvent({ ... }).execute();
210
209
  *
211
210
  * // Dry run (for debugging)
@@ -213,19 +212,19 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
213
212
  * ```
214
213
  */
215
214
  createInboundCallEvent(properties: CreateInboundCallEventProperties, options?: {
215
+ type?: string;
216
216
  journeyId?: string;
217
217
  stageKey?: string;
218
218
  }): ActionBuilder;
219
219
  /**
220
220
  * CreateOutboundCallEvent
221
221
  *
222
- * Creates a new TwilioCallEvents record with the specified properties.
222
+ * Creates a new TwilioCallEvent record with the specified properties.
223
223
  * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
224
224
  *
225
- * @remarks Record type: OUTBOUND_CALL_EVENT
226
- *
227
225
  * @param properties - The properties for the new record
228
226
  * @param options - Optional settings
227
+ * @param options.type - Override the record type
229
228
  * @param options.journeyId - Associate with a journey
230
229
  * @param options.stageKey - Set initial pipeline stage
231
230
  * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
@@ -233,7 +232,7 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
233
232
  * @example
234
233
  * ```typescript
235
234
  * // Create with properties
236
- * const record = odinClient.twilioCallEventss.new();
235
+ * const record = odinClient.twilioCallEvents.new();
237
236
  * await record.createOutboundCallEvent({ ... }).execute();
238
237
  *
239
238
  * // Dry run (for debugging)
@@ -241,10 +240,11 @@ export declare class TwilioCallEventsRecord<TProps = TwilioCallEventsProperties>
241
240
  * ```
242
241
  */
243
242
  createOutboundCallEvent(properties: CreateOutboundCallEventProperties, options?: {
243
+ type?: string;
244
244
  journeyId?: string;
245
245
  stageKey?: string;
246
246
  }): ActionBuilder;
247
247
  }
248
- /** Type guard to check if an object is a TwilioCallEventsRecord */
249
- export declare function isTwilioCallEventsRecord(obj: any): obj is TwilioCallEventsRecord;
248
+ /** Type guard to check if an object is a TwilioCallEventRecord */
249
+ export declare function isTwilioCallEventRecord(obj: any): obj is TwilioCallEventRecord;
250
250
  export {};
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * TwilioCallEvents Record Wrapper
3
+ * TwilioCallEvent Record Wrapper
4
4
  *
5
5
  * Provides typed action methods and link management.
6
6
  * Works with both ApiProvider and DbProvider.
@@ -10,8 +10,8 @@
10
10
  *
11
11
  * Can be instantiated with null record for create operations:
12
12
  * ```typescript
13
- * const record = odinClient.twilioCallEventss.new();
14
- * await record.createTwilioCallEvents({ ... }).execute();
13
+ * const record = odinClient.twilioCallEvents.new();
14
+ * await record.createTwilioCallEvent({ ... }).execute();
15
15
  * ```
16
16
  *
17
17
  * Entity Types: INBOUND_CALL_EVENT, OUTBOUND_CALL_EVENT
@@ -28,7 +28,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
28
28
  });
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
- exports.isTwilioCallEventsRecord = exports.TwilioCallEventsRecord = void 0;
31
+ exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = void 0;
32
32
  const uuid_1 = require("uuid");
33
33
  const core_1 = require("@d19n/odin-types/dist/core");
34
34
  const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
@@ -109,7 +109,7 @@ class ActionBuilder {
109
109
  throw new Error('ActionBuilder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
110
110
  }
111
111
  }
112
- class TwilioCallEventsRecord {
112
+ class TwilioCallEventRecord {
113
113
  /**
114
114
  * Create a record wrapper.
115
115
  * @param record - The underlying record, or null for create operations
@@ -129,7 +129,7 @@ class TwilioCallEventsRecord {
129
129
  get isNew() { var _a; return !((_a = this._record) === null || _a === void 0 ? void 0 : _a.id); }
130
130
  /** Record ID - always available (pre-generated for new records) */
131
131
  get id() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : this._preGeneratedId; }
132
- get entity() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.entity) !== null && _b !== void 0 ? _b : 'NotificationModule:TwilioCallEvents'; }
132
+ get entity() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.entity) !== null && _b !== void 0 ? _b : 'NotificationModule:TwilioCallEvent'; }
133
133
  get type() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.type; }
134
134
  /** Record properties - empty object for new (unsaved) records */
135
135
  get properties() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.properties) || {}; }
@@ -155,7 +155,7 @@ class TwilioCallEventsRecord {
155
155
  * @example
156
156
  * ```typescript
157
157
  * if (record.isInboundCallEvent()) {
158
- * // TypeScript knows record.properties is InboundCallEventTwilioCallEventsProperties
158
+ * // TypeScript knows record.properties is InboundCallEventTwilioCallEventProperties
159
159
  * console.log(record.properties.SomeTypeSpecificField);
160
160
  * }
161
161
  * ```
@@ -171,7 +171,7 @@ class TwilioCallEventsRecord {
171
171
  * @example
172
172
  * ```typescript
173
173
  * if (record.isOutboundCallEvent()) {
174
- * // TypeScript knows record.properties is OutboundCallEventTwilioCallEventsProperties
174
+ * // TypeScript knows record.properties is OutboundCallEventTwilioCallEventProperties
175
175
  * console.log(record.properties.SomeTypeSpecificField);
176
176
  * }
177
177
  * ```
@@ -199,7 +199,7 @@ class TwilioCallEventsRecord {
199
199
  throw new Error('Cannot access links on a new (unsaved) record');
200
200
  if (!this._calls) {
201
201
  this._calls = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
202
- sourceEntity: 'NotificationModule:TwilioCallEvents',
202
+ sourceEntity: 'NotificationModule:TwilioCallEvent',
203
203
  targetEntity: 'NotificationModule:Call',
204
204
  targetModuleName: 'NotificationModule',
205
205
  targetEntityName: 'Call',
@@ -240,7 +240,7 @@ class TwilioCallEventsRecord {
240
240
  if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
241
241
  throw new Error('Cannot unlink from a new (unsaved) record');
242
242
  const targetId = typeof target === 'string' ? target : target.id;
243
- yield this._provider._deleteLinks('NotificationModule', 'TwilioCallEvents', this._record.id, targetId);
243
+ yield this._provider._deleteLinks('NotificationModule', 'TwilioCallEvent', this._record.id, targetId);
244
244
  });
245
245
  }
246
246
  // ============================================
@@ -249,13 +249,12 @@ class TwilioCallEventsRecord {
249
249
  /**
250
250
  * CreateInboundCallEvent
251
251
  *
252
- * Creates a new TwilioCallEvents record with the specified properties.
252
+ * Creates a new TwilioCallEvent record with the specified properties.
253
253
  * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
254
254
  *
255
- * @remarks Record type: INBOUND_CALL_EVENT
256
- *
257
255
  * @param properties - The properties for the new record
258
256
  * @param options - Optional settings
257
+ * @param options.type - Override the record type
259
258
  * @param options.journeyId - Associate with a journey
260
259
  * @param options.stageKey - Set initial pipeline stage
261
260
  * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
@@ -263,7 +262,7 @@ class TwilioCallEventsRecord {
263
262
  * @example
264
263
  * ```typescript
265
264
  * // Create with properties
266
- * const record = odinClient.twilioCallEventss.new();
265
+ * const record = odinClient.twilioCallEvents.new();
267
266
  * await record.createInboundCallEvent({ ... }).execute();
268
267
  *
269
268
  * // Dry run (for debugging)
@@ -271,27 +270,27 @@ class TwilioCallEventsRecord {
271
270
  * ```
272
271
  */
273
272
  createInboundCallEvent(properties, options) {
273
+ var _a, _b;
274
274
  const payload = {
275
- entity: 'NotificationModule:TwilioCallEvents',
276
- type: 'INBOUND_CALL_EVENT',
275
+ entity: 'NotificationModule:TwilioCallEvent',
276
+ 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,
277
277
  actionName: 'CreateInboundCallEvent',
278
278
  properties: properties || {},
279
279
  associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
280
280
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
281
281
  stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
282
282
  };
283
- return new ActionBuilder(this._provider, 'NotificationModule', 'TwilioCallEvents', payload, () => { this._pendingLinks = []; });
283
+ return new ActionBuilder(this._provider, 'NotificationModule', 'TwilioCallEvent', payload, () => { this._pendingLinks = []; });
284
284
  }
285
285
  /**
286
286
  * CreateOutboundCallEvent
287
287
  *
288
- * Creates a new TwilioCallEvents record with the specified properties.
288
+ * Creates a new TwilioCallEvent record with the specified properties.
289
289
  * Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
290
290
  *
291
- * @remarks Record type: OUTBOUND_CALL_EVENT
292
- *
293
291
  * @param properties - The properties for the new record
294
292
  * @param options - Optional settings
293
+ * @param options.type - Override the record type
295
294
  * @param options.journeyId - Associate with a journey
296
295
  * @param options.stageKey - Set initial pipeline stage
297
296
  * @returns ActionBuilder - call .execute() to create or .dryRun() for payload
@@ -299,7 +298,7 @@ class TwilioCallEventsRecord {
299
298
  * @example
300
299
  * ```typescript
301
300
  * // Create with properties
302
- * const record = odinClient.twilioCallEventss.new();
301
+ * const record = odinClient.twilioCallEvents.new();
303
302
  * await record.createOutboundCallEvent({ ... }).execute();
304
303
  *
305
304
  * // Dry run (for debugging)
@@ -307,26 +306,27 @@ class TwilioCallEventsRecord {
307
306
  * ```
308
307
  */
309
308
  createOutboundCallEvent(properties, options) {
309
+ var _a, _b;
310
310
  const payload = {
311
- entity: 'NotificationModule:TwilioCallEvents',
312
- type: 'OUTBOUND_CALL_EVENT',
311
+ entity: 'NotificationModule:TwilioCallEvent',
312
+ 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,
313
313
  actionName: 'CreateOutboundCallEvent',
314
314
  properties: properties || {},
315
315
  associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
316
316
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
317
317
  stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
318
318
  };
319
- return new ActionBuilder(this._provider, 'NotificationModule', 'TwilioCallEvents', payload, () => { this._pendingLinks = []; });
319
+ return new ActionBuilder(this._provider, 'NotificationModule', 'TwilioCallEvent', payload, () => { this._pendingLinks = []; });
320
320
  }
321
321
  }
322
- exports.TwilioCallEventsRecord = TwilioCallEventsRecord;
322
+ exports.TwilioCallEventRecord = TwilioCallEventRecord;
323
323
  // ============================================
324
324
  // TYPED LINK ACCESSORS
325
325
  // ============================================
326
326
  /** Valid labels for Call associations */
327
- TwilioCallEventsRecord.callsLabels = ['Call__TwilioCallEvents'];
328
- /** Type guard to check if an object is a TwilioCallEventsRecord */
329
- function isTwilioCallEventsRecord(obj) {
330
- return obj instanceof TwilioCallEventsRecord;
327
+ TwilioCallEventRecord.callsLabels = ['Call__TwilioCallEvents'];
328
+ /** Type guard to check if an object is a TwilioCallEventRecord */
329
+ function isTwilioCallEventRecord(obj) {
330
+ return obj instanceof TwilioCallEventRecord;
331
331
  }
332
- exports.isTwilioCallEventsRecord = isTwilioCallEventsRecord;
332
+ exports.isTwilioCallEventRecord = isTwilioCallEventRecord;
@@ -60,7 +60,7 @@ export { FileRecord, isFileRecord } from './FileRecord';
60
60
  export { ActivityRecord, isActivityRecord } from './ActivityRecord';
61
61
  export { ImpersonationTrackerRecord, isImpersonationTrackerRecord } from './ImpersonationTrackerRecord';
62
62
  export { CallRecord, isCallRecord } from './CallRecord';
63
- export { TwilioCallEventsRecord, isTwilioCallEventsRecord } from './TwilioCallEventsRecord';
63
+ export { TwilioCallEventRecord, isTwilioCallEventRecord } from './TwilioCallEventRecord';
64
64
  export { InvoiceItemRecord, isInvoiceItemRecord } from './InvoiceItemRecord';
65
65
  export { LeadRecord, isLeadRecord } from './LeadRecord';
66
66
  export { MessageRecord, isMessageRecord } from './MessageRecord';
@@ -13,7 +13,7 @@
13
13
  Object.defineProperty(exports, "__esModule", { value: true });
14
14
  exports.isYfFieldServiceVisitRecord = exports.YfFieldServiceVisitRecord = exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.isConversationRecord = exports.ConversationRecord = exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = exports.isAccountRecord = exports.AccountRecord = exports.isPermissionToFailRecord = exports.PermissionToFailRecord = exports.isTransactionRecord = exports.TransactionRecord = exports.isPaymentRecord = exports.PaymentRecord = exports.isPICRequestRecord = exports.PICRequestRecord = exports.isChangeReasonRecord = exports.ChangeReasonRecord = exports.isChurnRequestRecord = exports.ChurnRequestRecord = exports.isBillingRequestRecord = exports.BillingRequestRecord = exports.isBillingAdjustmentRecord = exports.BillingAdjustmentRecord = exports.isServiceAppointmentConfigRecord = exports.ServiceAppointmentConfigRecord = exports.isCrmDatasetRecord = exports.CrmDatasetRecord = exports.isNoteRecord = exports.NoteRecord = exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.isCaseRecord = exports.CaseRecord = exports.isAddressInteractionRecord = exports.AddressInteractionRecord = exports.isAddressRecord = exports.AddressRecord = exports.isWorkOrderRecord = exports.WorkOrderRecord = exports.isOrderRecord = exports.OrderRecord = void 0;
15
15
  exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isConfigRecord = exports.ConfigRecord = exports.isEmailRecord = exports.EmailRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallTransferRecord = exports.CallTransferRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = void 0;
16
- exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isMessageRecord = exports.MessageRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isTwilioCallEventsRecord = exports.TwilioCallEventsRecord = exports.isCallRecord = exports.CallRecord = void 0;
16
+ exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isPaymentMethodRecord = exports.PaymentMethodRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isReferralRecord = exports.ReferralRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isMessageRecord = exports.MessageRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = exports.isCallRecord = exports.CallRecord = void 0;
17
17
  exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceRouterRecord = exports.CustomerDeviceRouterRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isRegionRecord = exports.RegionRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = void 0;
18
18
  exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isServiceRecord = exports.ServiceRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = void 0;
19
19
  var OrderRecord_1 = require("./OrderRecord");
@@ -169,9 +169,9 @@ Object.defineProperty(exports, "isImpersonationTrackerRecord", { enumerable: tru
169
169
  var CallRecord_1 = require("./CallRecord");
170
170
  Object.defineProperty(exports, "CallRecord", { enumerable: true, get: function () { return CallRecord_1.CallRecord; } });
171
171
  Object.defineProperty(exports, "isCallRecord", { enumerable: true, get: function () { return CallRecord_1.isCallRecord; } });
172
- var TwilioCallEventsRecord_1 = require("./TwilioCallEventsRecord");
173
- Object.defineProperty(exports, "TwilioCallEventsRecord", { enumerable: true, get: function () { return TwilioCallEventsRecord_1.TwilioCallEventsRecord; } });
174
- Object.defineProperty(exports, "isTwilioCallEventsRecord", { enumerable: true, get: function () { return TwilioCallEventsRecord_1.isTwilioCallEventsRecord; } });
172
+ var TwilioCallEventRecord_1 = require("./TwilioCallEventRecord");
173
+ Object.defineProperty(exports, "TwilioCallEventRecord", { enumerable: true, get: function () { return TwilioCallEventRecord_1.TwilioCallEventRecord; } });
174
+ Object.defineProperty(exports, "isTwilioCallEventRecord", { enumerable: true, get: function () { return TwilioCallEventRecord_1.isTwilioCallEventRecord; } });
175
175
  var InvoiceItemRecord_1 = require("./InvoiceItemRecord");
176
176
  Object.defineProperty(exports, "InvoiceItemRecord", { enumerable: true, get: function () { return InvoiceItemRecord_1.InvoiceItemRecord; } });
177
177
  Object.defineProperty(exports, "isInvoiceItemRecord", { enumerable: true, get: function () { return InvoiceItemRecord_1.isInvoiceItemRecord; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.148",
3
+ "version": "2.0.149",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
@@ -1,103 +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_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
- 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
- /** Outbound call webhook events */
25
- TwilioCallEventsEntityTypes["OUTBOUND_CALL_EVENT"] = "OUTBOUND_CALL_EVENT";
26
- })(TwilioCallEventsEntityTypes = exports.TwilioCallEventsEntityTypes || (exports.TwilioCallEventsEntityTypes = {}));
27
- /**
28
- * Valid values for TwilioCallEvents.WebhookSource
29
- *
30
- * Source of the captured event
31
- *
32
- * @remarks Available options:
33
- * - `InboundCallStatusUpdateEvent`
34
- * - `NumberCallStatusEvent`
35
- * - `OutboundCallStatusUpdateEvent`
36
- * - `OutboundDialActionEvent`
37
- */
38
- var TwilioCallEventsWebhookSource;
39
- (function (TwilioCallEventsWebhookSource) {
40
- TwilioCallEventsWebhookSource["INBOUND_CALL_STATUS_UPDATE_EVENT"] = "InboundCallStatusUpdateEvent";
41
- TwilioCallEventsWebhookSource["NUMBER_CALL_STATUS_EVENT"] = "NumberCallStatusEvent";
42
- TwilioCallEventsWebhookSource["OUTBOUND_CALL_STATUS_UPDATE_EVENT"] = "OutboundCallStatusUpdateEvent";
43
- TwilioCallEventsWebhookSource["OUTBOUND_DIAL_ACTION_EVENT"] = "OutboundDialActionEvent";
44
- })(TwilioCallEventsWebhookSource = exports.TwilioCallEventsWebhookSource || (exports.TwilioCallEventsWebhookSource = {}));
45
- /**
46
- * Property keys for TwilioCallEvents
47
- * Use these constants instead of string literals for type safety
48
- */
49
- var TwilioCallEventsPropertyKeys;
50
- (function (TwilioCallEventsPropertyKeys) {
51
- /** Moment of storing the event in odin */
52
- TwilioCallEventsPropertyKeys["ReceivedAt"] = "ReceivedAt";
53
- /** Source of the captured event */
54
- TwilioCallEventsPropertyKeys["WebhookSource"] = "WebhookSource";
55
- /** Twilio id of the call */
56
- TwilioCallEventsPropertyKeys["CallSid"] = "CallSid";
57
- /** Query parameters of the request received from Twilio */
58
- TwilioCallEventsPropertyKeys["Query"] = "Query";
59
- /** Body of the request received from Twilio */
60
- TwilioCallEventsPropertyKeys["Body"] = "Body";
61
- /** Reference of the call record */
62
- TwilioCallEventsPropertyKeys["CallId"] = "CallId";
63
- /** Title of twilio call event record */
64
- TwilioCallEventsPropertyKeys["Title"] = "Title";
65
- })(TwilioCallEventsPropertyKeys = exports.TwilioCallEventsPropertyKeys || (exports.TwilioCallEventsPropertyKeys = {}));
66
- /**
67
- * TwilioCallEvents entity from NotificationModule
68
- *
69
- * Twilio callback events - inbound and outbound call updates triggered on ringing, answered completed, etc
70
- *
71
- * @module NotificationModule
72
- * @entity TwilioCallEvents
73
- * @schemaId dff5448f-59f1-42dd-b6c8-f6ab4789b447
74
- * @capabilities searchable, updateable, undeletable, triggerable
75
- */
76
- class TwilioCallEvents extends core_1.OdinRecord {
77
- }
78
- exports.TwilioCallEvents = TwilioCallEvents;
79
- // ============================================
80
- // RABBITMQ EVENT ROUTING KEYS
81
- // ============================================
82
- /**
83
- * RabbitMQ routing keys for TwilioCallEvents events
84
- */
85
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_CREATED = 'NotificationModule.TwilioCallEvents.SubDbRecordCreated';
86
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_UPDATED = 'NotificationModule.TwilioCallEvents.SubDbRecordUpdated';
87
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_DELETED = 'NotificationModule.TwilioCallEvents.SubDbRecordDeleted';
88
- /**
89
- * Type-specific routing keys for TwilioCallEvents events
90
- * Subscribe to these for events on specific entity types only
91
- */
92
- /** Inbound call webhook events created */
93
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordCreated';
94
- /** Inbound call webhook events updated */
95
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordUpdated';
96
- /** Inbound call webhook events deleted */
97
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_INBOUND_CALL_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.INBOUND_CALL_EVENT.SubDbRecordDeleted';
98
- /** Outbound call webhook events created */
99
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_CREATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordCreated';
100
- /** Outbound call webhook events updated */
101
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_UPDATED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordUpdated';
102
- /** Outbound call webhook events deleted */
103
- exports.ROUTING_KEY_TWILIO_CALL_EVENTS_OUTBOUND_CALL_EVENT_DELETED = 'NotificationModule.TwilioCallEvents.OUTBOUND_CALL_EVENT.SubDbRecordDeleted';