@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
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OfferTemplateDbAccessor = exports.OfferDbAccessor = exports.NoteDbAccessor = exports.NetworkDeviceDbAccessor = exports.MessageDbAccessor = exports.LeadDbAccessor = exports.KnowledgeArticleDbAccessor = exports.InvoiceDbAccessor = exports.InvoiceItemDbAccessor = exports.ImpersonationTrackerDbAccessor = exports.FileDbAccessor = exports.FieldServiceProductDbAccessor = exports.FieldServiceDispatchedProductDbAccessor = exports.ExchangeDbAccessor = exports.EmailTemplateDbAccessor = exports.EmailSenderDbAccessor = exports.EmailDbAccessor = exports.DiscountDbAccessor = exports.CustomerPhonePortingDbAccessor = exports.CustomerDeviceRouterDbAccessor = exports.CustomerDeviceOntDbAccessor = exports.CustomerDeviceConfigurationDbAccessor = exports.CustomerDeviceAtaDbAccessor = exports.CrmDatasetDbAccessor = exports.CreditNoteDbAccessor = exports.ConversationDbAccessor = exports.ContractBuyOutDbAccessor = exports.ContactDbAccessor = exports.ContactIdentityDbAccessor = exports.ConfigDbAccessor = exports.ChurnRequestDbAccessor = exports.ChangeReasonDbAccessor = exports.CaseDbAccessor = exports.CampaignDbAccessor = exports.CallTransferDbAccessor = exports.CallDbAccessor = exports.CallLegDbAccessor = exports.CallEventDbAccessor = exports.BrskEntityMigrationErrorDbAccessor = exports.BngProvisionDbAccessor = exports.BillingRequestDbAccessor = exports.BillingAdjustmentDbAccessor = exports.AppointmentDbAccessor = exports.AffiliateCodeDbAccessor = exports.AddressDbAccessor = exports.AddressInteractionDbAccessor = exports.ActivityDbAccessor = exports.ActivityLogDbAccessor = exports.AccountDbAccessor = exports.AccountCreditDbAccessor = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.YfFieldServiceVisitDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = void 0;
|
|
13
|
+
exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = exports.TwilioCallEventsDbAccessor = exports.TransactionDbAccessor = exports.TimeSlotDbAccessor = exports.TeamDbAccessor = exports.SmsMessageDbAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormDbAccessor = exports.ServiceDbAccessor = exports.ServiceAppointmentDbAccessor = exports.ServiceAppointmentConfigDbAccessor = exports.ScheduleSlotDbAccessor = exports.SalesTerritoryDbAccessor = exports.RewardDbAccessor = exports.ReturnsDbAccessor = exports.RemediationRequiredReasonDbAccessor = exports.RemediationOutcomeFormDbAccessor = exports.RegionDbAccessor = exports.ReferralDbAccessor = exports.PushNotificationDbAccessor = exports.ProductDbAccessor = exports.PriceBookDbAccessor = exports.PgWebhookDbAccessor = exports.PgWebhookAttemptDbAccessor = exports.PgVocalinkDbAccessor = exports.PgTransactionDbAccessor = exports.PgSortCodeSubstitutionDbAccessor = exports.PgPaymentMethodDbAccessor = exports.PgLogDbAccessor = exports.PgFileAllocationDbAccessor = exports.PgDisputeDbAccessor = exports.PgDirectDebitFileDbAccessor = exports.PgContactDbAccessor = exports.PgAccountValidationDbAccessor = exports.PermissionToFailDbAccessor = exports.PaymentDbAccessor = exports.PaymentMethodRefundDbAccessor = exports.PaymentMethodDbAccessor = exports.PICRequestDbAccessor = exports.OverlayRealA55DbAccessor = exports.OutageDbAccessor = exports.OrderDbAccessor = exports.OrderKciDbAccessor = exports.OrderItemDbAccessor = exports.OrderCheckDbAccessor = exports.OntReplacementApprovalDbAccessor = exports.OneTouchSwitchDbAccessor = exports.OhExternalAuditDbAccessor = void 0;
|
|
14
|
+
exports.YfFieldServiceVisitDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = void 0;
|
|
15
15
|
var AccountCreditDbAccessor_1 = require("./AccountCreditDbAccessor");
|
|
16
16
|
Object.defineProperty(exports, "AccountCreditDbAccessor", { enumerable: true, get: function () { return AccountCreditDbAccessor_1.AccountCreditDbAccessor; } });
|
|
17
17
|
var AccountDbAccessor_1 = require("./AccountDbAccessor");
|
|
@@ -202,6 +202,8 @@ var TimeSlotDbAccessor_1 = require("./TimeSlotDbAccessor");
|
|
|
202
202
|
Object.defineProperty(exports, "TimeSlotDbAccessor", { enumerable: true, get: function () { return TimeSlotDbAccessor_1.TimeSlotDbAccessor; } });
|
|
203
203
|
var TransactionDbAccessor_1 = require("./TransactionDbAccessor");
|
|
204
204
|
Object.defineProperty(exports, "TransactionDbAccessor", { enumerable: true, get: function () { return TransactionDbAccessor_1.TransactionDbAccessor; } });
|
|
205
|
+
var TwilioCallEventsDbAccessor_1 = require("./TwilioCallEventsDbAccessor");
|
|
206
|
+
Object.defineProperty(exports, "TwilioCallEventsDbAccessor", { enumerable: true, get: function () { return TwilioCallEventsDbAccessor_1.TwilioCallEventsDbAccessor; } });
|
|
205
207
|
var TwilioTaskQueueDbAccessor_1 = require("./TwilioTaskQueueDbAccessor");
|
|
206
208
|
Object.defineProperty(exports, "TwilioTaskQueueDbAccessor", { enumerable: true, get: function () { return TwilioTaskQueueDbAccessor_1.TwilioTaskQueueDbAccessor; } });
|
|
207
209
|
var TwilioUserUpdateDbAccessor_1 = require("./TwilioUserUpdateDbAccessor");
|
|
@@ -31,6 +31,7 @@ export declare class CallDb extends DbProvider {
|
|
|
31
31
|
private _callevent?;
|
|
32
32
|
private _case?;
|
|
33
33
|
private _workorder?;
|
|
34
|
+
private _twiliocallevents?;
|
|
34
35
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
35
36
|
get lead(): DbRecordLinkManager;
|
|
36
37
|
get file(): DbRecordLinkManager;
|
|
@@ -42,6 +43,7 @@ export declare class CallDb extends DbProvider {
|
|
|
42
43
|
get callevent(): DbRecordLinkManager;
|
|
43
44
|
get case(): DbRecordLinkManager;
|
|
44
45
|
get workorder(): DbRecordLinkManager;
|
|
46
|
+
get twiliocallevents(): DbRecordLinkManager;
|
|
45
47
|
setRecord(sourceRecord: any): void;
|
|
46
48
|
/**
|
|
47
49
|
* Search records with manual pagination control
|
package/dist/db-sdk-v2/CallDb.js
CHANGED
|
@@ -98,6 +98,12 @@ class CallDb extends db_provider_1.DbProvider {
|
|
|
98
98
|
}
|
|
99
99
|
return this._workorder;
|
|
100
100
|
}
|
|
101
|
+
get twiliocallevents() {
|
|
102
|
+
if (!this._twiliocallevents) {
|
|
103
|
+
this._twiliocallevents = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Call', 'NotificationModule:TwilioCallEvents', 'Call__TwilioCallEvents');
|
|
104
|
+
}
|
|
105
|
+
return this._twiliocallevents;
|
|
106
|
+
}
|
|
101
107
|
// ============================================
|
|
102
108
|
// STANDARD METHODS
|
|
103
109
|
// ============================================
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
|
+
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
3
|
+
import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
|
|
4
|
+
import { TwilioCallEventsProperties } from '../entities-v2/TwilioCallEvents';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use OdinDbClient.
|
|
7
|
+
*
|
|
8
|
+
* Migration:
|
|
9
|
+
* - Old: new TwilioCallEventsApi(authParams).get(id)
|
|
10
|
+
* - New: new odin.twiliocallevents.get(id)
|
|
11
|
+
*
|
|
12
|
+
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
13
|
+
*
|
|
14
|
+
* Supports separate query options and provider options:
|
|
15
|
+
* - Constructor level: new TwilioCallEventsDb(principal, dbService, { omitPermissionsCheck: true })
|
|
16
|
+
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
17
|
+
*/
|
|
18
|
+
export declare class TwilioCallEventsDb extends DbProvider {
|
|
19
|
+
protected readonly principal: any;
|
|
20
|
+
protected readonly dbService: any;
|
|
21
|
+
private readonly moduleName;
|
|
22
|
+
private readonly entityName;
|
|
23
|
+
private sourceRecord;
|
|
24
|
+
private _call?;
|
|
25
|
+
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
26
|
+
get call(): DbRecordLinkManager;
|
|
27
|
+
setRecord(sourceRecord: any): void;
|
|
28
|
+
/**
|
|
29
|
+
* Search records with manual pagination control
|
|
30
|
+
* @param params - Search parameters
|
|
31
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
32
|
+
*/
|
|
33
|
+
searchRecords(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>>>;
|
|
34
|
+
/**
|
|
35
|
+
* Search all records with automatic pagination
|
|
36
|
+
* @param params - Search parameters
|
|
37
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
38
|
+
*/
|
|
39
|
+
searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core/interfaces/v2.db.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>>>;
|
|
40
|
+
/**
|
|
41
|
+
* Get a single record by primary key
|
|
42
|
+
* @param twilioCallEventsId - Record ID
|
|
43
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
44
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* // Simple get
|
|
48
|
+
* const record = await db.getByPrimaryKey(id);
|
|
49
|
+
*
|
|
50
|
+
* // With related entities
|
|
51
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
|
|
52
|
+
*
|
|
53
|
+
* // With permissions bypass
|
|
54
|
+
* const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
|
|
55
|
+
*
|
|
56
|
+
* // Both options
|
|
57
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
58
|
+
*/
|
|
59
|
+
getByPrimaryKey(twilioCallEventsId: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>>;
|
|
60
|
+
/**
|
|
61
|
+
* Get multiple records by primary keys
|
|
62
|
+
* @param twilioCallEventsIds - Array of record IDs
|
|
63
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
64
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
65
|
+
*/
|
|
66
|
+
getManyByPrimaryKey(twilioCallEventsIds: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>[]>;
|
|
67
|
+
/**
|
|
68
|
+
* Upsert a single record
|
|
69
|
+
* @param upsertDto - Record to upsert
|
|
70
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
71
|
+
*/
|
|
72
|
+
upsert(upsertDto: OdinRecordCreateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
|
|
73
|
+
/**
|
|
74
|
+
* Upsert multiple records
|
|
75
|
+
* @param upsertDtos - Records to upsert
|
|
76
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
77
|
+
*/
|
|
78
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
79
|
+
/**
|
|
80
|
+
* Update a single record
|
|
81
|
+
* @param updateDto - Record to update
|
|
82
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
83
|
+
*/
|
|
84
|
+
update(updateDto: OdinRecordUpdateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
|
|
85
|
+
/**
|
|
86
|
+
* Update multiple records
|
|
87
|
+
* @param updateDtos - Records to update
|
|
88
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
89
|
+
*/
|
|
90
|
+
updateMany(updateDtos: OdinRecordUpdateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
91
|
+
/**
|
|
92
|
+
* Delete one or many records
|
|
93
|
+
* @param twilioCallEventsIds - Record IDs to delete
|
|
94
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
95
|
+
*/
|
|
96
|
+
delete(twilioCallEventsIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordDeleted[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Restore one or many deleted records
|
|
99
|
+
* @param twilioCallEventsIds - Record IDs to restore
|
|
100
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
101
|
+
*/
|
|
102
|
+
restore(twilioCallEventsIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordRestored[]>;
|
|
103
|
+
/**
|
|
104
|
+
* Apply an action to a record
|
|
105
|
+
* @param actionName - The action key
|
|
106
|
+
* @param dto - The action DTO
|
|
107
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
108
|
+
*/
|
|
109
|
+
applyAction(actionName: string, dto: any, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
110
|
+
/**
|
|
111
|
+
* Get version history for the current source record
|
|
112
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
113
|
+
*/
|
|
114
|
+
getVersions(providerOptions?: DbProviderOptions): Promise<any>;
|
|
115
|
+
/**
|
|
116
|
+
* Get revision timeline for the current source record
|
|
117
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
118
|
+
*/
|
|
119
|
+
getRevisionTimeline(providerOptions?: DbProviderOptions): Promise<any>;
|
|
120
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TwilioCallEventsDb = void 0;
|
|
13
|
+
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
14
|
+
const db_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/db.record.link.manager");
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Use OdinDbClient.
|
|
17
|
+
*
|
|
18
|
+
* Migration:
|
|
19
|
+
* - Old: new TwilioCallEventsApi(authParams).get(id)
|
|
20
|
+
* - New: new odin.twiliocallevents.get(id)
|
|
21
|
+
*
|
|
22
|
+
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
23
|
+
*
|
|
24
|
+
* Supports separate query options and provider options:
|
|
25
|
+
* - Constructor level: new TwilioCallEventsDb(principal, dbService, { omitPermissionsCheck: true })
|
|
26
|
+
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
27
|
+
*/
|
|
28
|
+
class TwilioCallEventsDb extends db_provider_1.DbProvider {
|
|
29
|
+
constructor(principal, dbService, defaultOptions) {
|
|
30
|
+
super(principal, dbService, defaultOptions);
|
|
31
|
+
this.moduleName = 'NotificationModule';
|
|
32
|
+
this.entityName = 'TwilioCallEvents';
|
|
33
|
+
this.principal = principal;
|
|
34
|
+
this.dbService = dbService;
|
|
35
|
+
// Link managers are lazy-loaded on first access
|
|
36
|
+
}
|
|
37
|
+
// ============================================
|
|
38
|
+
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
39
|
+
// ============================================
|
|
40
|
+
// Usage remains identical: db.address.list(recordId)
|
|
41
|
+
get call() {
|
|
42
|
+
if (!this._call) {
|
|
43
|
+
this._call = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:TwilioCallEvents', 'NotificationModule:Call', 'Call__TwilioCallEvents');
|
|
44
|
+
}
|
|
45
|
+
return this._call;
|
|
46
|
+
}
|
|
47
|
+
// ============================================
|
|
48
|
+
// STANDARD METHODS
|
|
49
|
+
// ============================================
|
|
50
|
+
// Methods support separate query options and provider options for clean API
|
|
51
|
+
setRecord(sourceRecord) {
|
|
52
|
+
this.sourceRecord = sourceRecord;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Search records with manual pagination control
|
|
56
|
+
* @param params - Search parameters
|
|
57
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
58
|
+
*/
|
|
59
|
+
searchRecords(params, providerOptions) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params, providerOptions);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Search all records with automatic pagination
|
|
66
|
+
* @param params - Search parameters
|
|
67
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
68
|
+
*/
|
|
69
|
+
searchAllRecordsAndPaginate(params, providerOptions) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params, 0, providerOptions);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get a single record by primary key
|
|
76
|
+
* @param twilioCallEventsId - Record ID
|
|
77
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
78
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* // Simple get
|
|
82
|
+
* const record = await db.getByPrimaryKey(id);
|
|
83
|
+
*
|
|
84
|
+
* // With related entities
|
|
85
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
|
|
86
|
+
*
|
|
87
|
+
* // With permissions bypass
|
|
88
|
+
* const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
|
|
89
|
+
*
|
|
90
|
+
* // Both options
|
|
91
|
+
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
92
|
+
*/
|
|
93
|
+
getByPrimaryKey(twilioCallEventsId, queryOptions, providerOptions) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, twilioCallEventsId, queryOptions, providerOptions);
|
|
96
|
+
if (res)
|
|
97
|
+
this.setRecord(res);
|
|
98
|
+
return res;
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Get multiple records by primary keys
|
|
103
|
+
* @param twilioCallEventsIds - Array of record IDs
|
|
104
|
+
* @param queryOptions - Query options (WHAT: entities to include)
|
|
105
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
106
|
+
*/
|
|
107
|
+
getManyByPrimaryKey(twilioCallEventsIds, queryOptions, providerOptions) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, twilioCallEventsIds, queryOptions, providerOptions);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Upsert a single record
|
|
114
|
+
* @param upsertDto - Record to upsert
|
|
115
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
116
|
+
*/
|
|
117
|
+
upsert(upsertDto, providerOptions) {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto], providerOptions);
|
|
120
|
+
return res[0];
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Upsert multiple records
|
|
125
|
+
* @param upsertDtos - Records to upsert
|
|
126
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
127
|
+
*/
|
|
128
|
+
upsertMany(upsertDtos, providerOptions) {
|
|
129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos, providerOptions);
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Update a single record
|
|
135
|
+
* @param updateDto - Record to update
|
|
136
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
137
|
+
*/
|
|
138
|
+
update(updateDto, providerOptions) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto], providerOptions);
|
|
141
|
+
return res[0];
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Update multiple records
|
|
146
|
+
* @param updateDtos - Records to update
|
|
147
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
148
|
+
*/
|
|
149
|
+
updateMany(updateDtos, providerOptions) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos, providerOptions);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Delete one or many records
|
|
156
|
+
* @param twilioCallEventsIds - Record IDs to delete
|
|
157
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
158
|
+
*/
|
|
159
|
+
delete(twilioCallEventsIds, providerOptions) {
|
|
160
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
+
return yield this._delete(this.moduleName, this.entityName, twilioCallEventsIds, providerOptions);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Restore one or many deleted records
|
|
166
|
+
* @param twilioCallEventsIds - Record IDs to restore
|
|
167
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
168
|
+
*/
|
|
169
|
+
restore(twilioCallEventsIds, providerOptions) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
return yield this._restore(this.moduleName, this.entityName, twilioCallEventsIds, providerOptions);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Apply an action to a record
|
|
176
|
+
* @param actionName - The action key
|
|
177
|
+
* @param dto - The action DTO
|
|
178
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
179
|
+
*/
|
|
180
|
+
applyAction(actionName, dto, providerOptions) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
return yield this._applyAction(this.moduleName, this.entityName, dto, providerOptions);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Get version history for the current source record
|
|
187
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
188
|
+
*/
|
|
189
|
+
getVersions(providerOptions) {
|
|
190
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Get revision timeline for the current source record
|
|
196
|
+
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
197
|
+
*/
|
|
198
|
+
getRevisionTimeline(providerOptions) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id, providerOptions);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
exports.TwilioCallEventsDb = TwilioCallEventsDb;
|
|
@@ -20,6 +20,7 @@ import { CallTransferProperties } from './CallTransfer';
|
|
|
20
20
|
import { CallEventProperties } from './CallEvent';
|
|
21
21
|
import { CaseProperties } from './Case';
|
|
22
22
|
import { WorkOrderProperties } from './WorkOrder';
|
|
23
|
+
import { TwilioCallEventsProperties } from './TwilioCallEvents';
|
|
23
24
|
/**
|
|
24
25
|
* Available types for Call records
|
|
25
26
|
*/
|
|
@@ -572,6 +573,8 @@ export declare class Call extends OdinRecord<CallProperties> {
|
|
|
572
573
|
Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
|
|
573
574
|
/** Linked WorkOrder records (Call__WorkOrder) */
|
|
574
575
|
WorkOrder: OdinLink<LinkedOdinRecord<WorkOrderProperties>>;
|
|
576
|
+
/** Linked TwilioCallEvents records (Call__TwilioCallEvents) */
|
|
577
|
+
TwilioCallEvents: OdinLink<LinkedOdinRecord<TwilioCallEventsProperties>>;
|
|
575
578
|
}
|
|
576
579
|
/**
|
|
577
580
|
* RabbitMQ routing keys for Call events
|
|
@@ -625,3 +628,7 @@ export declare const ROUTING_KEY_LINK_CALL_CASE_DELETED = "NotificationModule.Ca
|
|
|
625
628
|
export declare const ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = "NotificationModule.Call.WorkOrder.SubDbRecordAssociationCreated";
|
|
626
629
|
/** Event: Call__WorkOrder link deleted */
|
|
627
630
|
export declare const ROUTING_KEY_LINK_CALL_WORK_ORDER_DELETED = "NotificationModule.Call.WorkOrder.SubDbRecordAssociationDeleted";
|
|
631
|
+
/** Event: Call__TwilioCallEvents link created */
|
|
632
|
+
export declare const ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_CREATED = "NotificationModule.Call.TwilioCallEvents.SubDbRecordAssociationCreated";
|
|
633
|
+
/** Event: Call__TwilioCallEvents link deleted */
|
|
634
|
+
export declare const ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_DELETED = "NotificationModule.Call.TwilioCallEvents.SubDbRecordAssociationDeleted";
|
package/dist/entities-v2/Call.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_CALL_CASE_DELETED = exports.ROUTING_KEY_LINK_CALL_CASE_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_CREATED = exports.ROUTING_KEY_LINK_CALL_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CALL_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_CALL_FILE_DELETED = exports.ROUTING_KEY_LINK_CALL_FILE_CREATED = exports.ROUTING_KEY_LINK_CALL_LEAD_DELETED = exports.ROUTING_KEY_LINK_CALL_LEAD_CREATED = exports.ROUTING_KEY_CALL_DEFAULT_DELETED = exports.ROUTING_KEY_CALL_DEFAULT_UPDATED = exports.ROUTING_KEY_CALL_DEFAULT_CREATED = exports.ROUTING_KEY_CALL_DELETED = exports.ROUTING_KEY_CALL_UPDATED = exports.ROUTING_KEY_CALL_CREATED = exports.Call = exports.CallPropertyKeys = exports.CallCallEndReason = exports.CallWhoHungUp = exports.CallCallStage = exports.CallDirection = exports.CallCallType = exports.CallEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_DELETED = exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_CREATED = exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_CALL_CASE_DELETED = exports.ROUTING_KEY_LINK_CALL_CASE_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_EVENT_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_TRANSFER_CREATED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_DELETED = exports.ROUTING_KEY_LINK_CALL_CALL_LEG_CREATED = exports.ROUTING_KEY_LINK_CALL_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CALL_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CALL_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_CALL_FILE_DELETED = exports.ROUTING_KEY_LINK_CALL_FILE_CREATED = exports.ROUTING_KEY_LINK_CALL_LEAD_DELETED = exports.ROUTING_KEY_LINK_CALL_LEAD_CREATED = exports.ROUTING_KEY_CALL_DEFAULT_DELETED = exports.ROUTING_KEY_CALL_DEFAULT_UPDATED = exports.ROUTING_KEY_CALL_DEFAULT_CREATED = exports.ROUTING_KEY_CALL_DELETED = exports.ROUTING_KEY_CALL_UPDATED = exports.ROUTING_KEY_CALL_CREATED = exports.Call = exports.CallPropertyKeys = exports.CallCallEndReason = exports.CallWhoHungUp = exports.CallCallStage = exports.CallDirection = exports.CallCallType = exports.CallEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for Call records
|
|
@@ -311,3 +311,7 @@ exports.ROUTING_KEY_LINK_CALL_CASE_DELETED = 'NotificationModule.Call.Case.SubDb
|
|
|
311
311
|
exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = 'NotificationModule.Call.WorkOrder.SubDbRecordAssociationCreated';
|
|
312
312
|
/** Event: Call__WorkOrder link deleted */
|
|
313
313
|
exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_DELETED = 'NotificationModule.Call.WorkOrder.SubDbRecordAssociationDeleted';
|
|
314
|
+
/** Event: Call__TwilioCallEvents link created */
|
|
315
|
+
exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_CREATED = 'NotificationModule.Call.TwilioCallEvents.SubDbRecordAssociationCreated';
|
|
316
|
+
/** Event: Call__TwilioCallEvents link deleted */
|
|
317
|
+
exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_DELETED = 'NotificationModule.Call.TwilioCallEvents.SubDbRecordAssociationDeleted';
|
|
@@ -19,7 +19,9 @@ import { CallTransferProperties } from './CallTransfer';
|
|
|
19
19
|
*/
|
|
20
20
|
export declare enum CallEventEntityTypes {
|
|
21
21
|
/** This is the default record type */
|
|
22
|
-
DEFAULT = "DEFAULT"
|
|
22
|
+
DEFAULT = "DEFAULT",
|
|
23
|
+
/** Callback containing customer call wrap up details */
|
|
24
|
+
NUMBER_CALL_STATUS_EVENT = "NUMBER_CALL_STATUS_EVENT"
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Valid values for CallEvent.EventCategory
|
|
@@ -126,6 +128,64 @@ export interface CallEventProperties {
|
|
|
126
128
|
*/
|
|
127
129
|
Title: string;
|
|
128
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Properties for NUMBER_CALL_STATUS_EVENT CallEvent records
|
|
133
|
+
*
|
|
134
|
+
* @see NotificationModule:CallEvent
|
|
135
|
+
*/
|
|
136
|
+
export interface NumberCallStatusEventCallEventProperties {
|
|
137
|
+
/** UUID of agent who triggered/is involved in event (Communications - CallEvent)
|
|
138
|
+
*
|
|
139
|
+
* @type {TEXT}
|
|
140
|
+
*/
|
|
141
|
+
AgentId: string;
|
|
142
|
+
/** Data field for CallEvent records. Used by Communications team.
|
|
143
|
+
*
|
|
144
|
+
* @type {DATE_TIME}
|
|
145
|
+
*/
|
|
146
|
+
Timestamp: string;
|
|
147
|
+
/** Twilio Call ID (Communications - CallEvent)
|
|
148
|
+
*
|
|
149
|
+
* @type {TEXT}
|
|
150
|
+
*/
|
|
151
|
+
CallSid: string;
|
|
152
|
+
/** call_initiated, agent_joined, transfer_started, etc (Communications - CallEvent)
|
|
153
|
+
*
|
|
154
|
+
* @type {TEXT}
|
|
155
|
+
*/
|
|
156
|
+
EventType: string;
|
|
157
|
+
/** Reference identifier for CallEvent relationships. Used for data integrity.
|
|
158
|
+
*
|
|
159
|
+
* @type {LOOKUP}
|
|
160
|
+
*/
|
|
161
|
+
CallId: string;
|
|
162
|
+
/** UUID of transfer if event is transfer-related (Communications - CallEvent)
|
|
163
|
+
*
|
|
164
|
+
* @type {LOOKUP}
|
|
165
|
+
*/
|
|
166
|
+
TransferId: string;
|
|
167
|
+
/** EventCategory (Communications - CallEvent)
|
|
168
|
+
*
|
|
169
|
+
* @type {ENUM}
|
|
170
|
+
* @enum {CallEventEventCategory}
|
|
171
|
+
*/
|
|
172
|
+
EventCategory: CallEventEventCategory;
|
|
173
|
+
/** Data field for CallEvent records. Used by Communications team.
|
|
174
|
+
*
|
|
175
|
+
* @type {JSON}
|
|
176
|
+
*/
|
|
177
|
+
EventData: string;
|
|
178
|
+
/** UUID of specific call leg if event is leg-specific (Communications - CallEvent)
|
|
179
|
+
*
|
|
180
|
+
* @type {LOOKUP}
|
|
181
|
+
*/
|
|
182
|
+
CallLegId: string;
|
|
183
|
+
/** Title of the call event record
|
|
184
|
+
*
|
|
185
|
+
* @type {TEXT}
|
|
186
|
+
*/
|
|
187
|
+
Title: string;
|
|
188
|
+
}
|
|
129
189
|
/**
|
|
130
190
|
* CallEvent entity from NotificationModule
|
|
131
191
|
*
|
|
@@ -164,6 +224,12 @@ export declare const ROUTING_KEY_CALL_EVENT_DEFAULT_CREATED = "NotificationModul
|
|
|
164
224
|
export declare const ROUTING_KEY_CALL_EVENT_DEFAULT_UPDATED = "NotificationModule.CallEvent.DEFAULT.SubDbRecordUpdated";
|
|
165
225
|
/** This is the default record type deleted */
|
|
166
226
|
export declare const ROUTING_KEY_CALL_EVENT_DEFAULT_DELETED = "NotificationModule.CallEvent.DEFAULT.SubDbRecordDeleted";
|
|
227
|
+
/** Callback containing customer call wrap up details created */
|
|
228
|
+
export declare const ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_CREATED = "NotificationModule.CallEvent.NUMBER_CALL_STATUS_EVENT.SubDbRecordCreated";
|
|
229
|
+
/** Callback containing customer call wrap up details updated */
|
|
230
|
+
export declare const ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_UPDATED = "NotificationModule.CallEvent.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated";
|
|
231
|
+
/** Callback containing customer call wrap up details deleted */
|
|
232
|
+
export declare const ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_DELETED = "NotificationModule.CallEvent.NUMBER_CALL_STATUS_EVENT.SubDbRecordDeleted";
|
|
167
233
|
/** Event: CallEvent_CallTrasnfer link created */
|
|
168
234
|
export declare const ROUTING_KEY_LINK_CALL_EVENT_CALL_TRASNFER_CREATED = "NotificationModule.CallEvent.CallTransfer.SubDbRecordAssociationCreated";
|
|
169
235
|
/** Event: CallEvent_CallTrasnfer link deleted */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ROUTING_KEY_LINK_CALL_EVENT_CALL_TRASNFER_DELETED = exports.ROUTING_KEY_LINK_CALL_EVENT_CALL_TRASNFER_CREATED = exports.ROUTING_KEY_CALL_EVENT_DEFAULT_DELETED = exports.ROUTING_KEY_CALL_EVENT_DEFAULT_UPDATED = exports.ROUTING_KEY_CALL_EVENT_DEFAULT_CREATED = exports.ROUTING_KEY_CALL_EVENT_DELETED = exports.ROUTING_KEY_CALL_EVENT_UPDATED = exports.ROUTING_KEY_CALL_EVENT_CREATED = exports.CallEvent = exports.CallEventPropertyKeys = exports.CallEventEventCategory = exports.CallEventEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_CALL_EVENT_CALL_TRASNFER_DELETED = exports.ROUTING_KEY_LINK_CALL_EVENT_CALL_TRASNFER_CREATED = exports.ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_DELETED = exports.ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_UPDATED = exports.ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_CREATED = exports.ROUTING_KEY_CALL_EVENT_DEFAULT_DELETED = exports.ROUTING_KEY_CALL_EVENT_DEFAULT_UPDATED = exports.ROUTING_KEY_CALL_EVENT_DEFAULT_CREATED = exports.ROUTING_KEY_CALL_EVENT_DELETED = exports.ROUTING_KEY_CALL_EVENT_UPDATED = exports.ROUTING_KEY_CALL_EVENT_CREATED = exports.CallEvent = exports.CallEventPropertyKeys = exports.CallEventEventCategory = exports.CallEventEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for CallEvent records
|
|
@@ -21,6 +21,8 @@ var CallEventEntityTypes;
|
|
|
21
21
|
(function (CallEventEntityTypes) {
|
|
22
22
|
/** This is the default record type */
|
|
23
23
|
CallEventEntityTypes["DEFAULT"] = "DEFAULT";
|
|
24
|
+
/** Callback containing customer call wrap up details */
|
|
25
|
+
CallEventEntityTypes["NUMBER_CALL_STATUS_EVENT"] = "NUMBER_CALL_STATUS_EVENT";
|
|
24
26
|
})(CallEventEntityTypes = exports.CallEventEntityTypes || (exports.CallEventEntityTypes = {}));
|
|
25
27
|
/**
|
|
26
28
|
* Valid values for CallEvent.EventCategory
|
|
@@ -103,6 +105,12 @@ exports.ROUTING_KEY_CALL_EVENT_DEFAULT_CREATED = 'NotificationModule.CallEvent.D
|
|
|
103
105
|
exports.ROUTING_KEY_CALL_EVENT_DEFAULT_UPDATED = 'NotificationModule.CallEvent.DEFAULT.SubDbRecordUpdated';
|
|
104
106
|
/** This is the default record type deleted */
|
|
105
107
|
exports.ROUTING_KEY_CALL_EVENT_DEFAULT_DELETED = 'NotificationModule.CallEvent.DEFAULT.SubDbRecordDeleted';
|
|
108
|
+
/** Callback containing customer call wrap up details created */
|
|
109
|
+
exports.ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_CREATED = 'NotificationModule.CallEvent.NUMBER_CALL_STATUS_EVENT.SubDbRecordCreated';
|
|
110
|
+
/** Callback containing customer call wrap up details updated */
|
|
111
|
+
exports.ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_UPDATED = 'NotificationModule.CallEvent.NUMBER_CALL_STATUS_EVENT.SubDbRecordUpdated';
|
|
112
|
+
/** Callback containing customer call wrap up details deleted */
|
|
113
|
+
exports.ROUTING_KEY_CALL_EVENT_NUMBER_CALL_STATUS_EVENT_DELETED = 'NotificationModule.CallEvent.NUMBER_CALL_STATUS_EVENT.SubDbRecordDeleted';
|
|
106
114
|
/** Event: CallEvent_CallTrasnfer link created */
|
|
107
115
|
exports.ROUTING_KEY_LINK_CALL_EVENT_CALL_TRASNFER_CREATED = 'NotificationModule.CallEvent.CallTransfer.SubDbRecordAssociationCreated';
|
|
108
116
|
/** Event: CallEvent_CallTrasnfer link deleted */
|