@d19n/youfibre-odin-sdk 2.0.147 → 2.0.149
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/EntityRegistry.d.ts +2 -2
- package/dist/EntityRegistry.js +2 -2
- package/dist/OdinApiClient.d.ts +4 -4
- package/dist/OdinApiClient.js +6 -6
- package/dist/OdinDbClient.d.ts +4 -4
- package/dist/OdinDbClient.js +6 -6
- package/dist/accessors-v2/{TwilioCallEventsAccessor.d.ts → TwilioCallEventAccessor.d.ts} +24 -24
- package/dist/accessors-v2/{TwilioCallEventsAccessor.js → TwilioCallEventAccessor.js} +21 -21
- package/dist/accessors-v2/index.d.ts +1 -1
- package/dist/accessors-v2/index.js +3 -3
- package/dist/actions-v2/CreateInboundCallEventDto.d.ts +18 -23
- package/dist/actions-v2/CreateInboundCallEventDto.js +14 -19
- package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +26 -26
- package/dist/actions-v2/CreateOutboundCallEventDto.js +13 -13
- package/dist/actions-v2/CreateVoiceConfigurationDto.d.ts +14 -14
- package/dist/api-sdk-v2/CallApi.d.ts +2 -2
- package/dist/api-sdk-v2/CallApi.js +4 -4
- package/dist/api-sdk-v2/OfferApi.d.ts +8 -8
- package/dist/api-sdk-v2/OfferApi.js +22 -22
- package/dist/api-sdk-v2/{TwilioCallEventsApi.d.ts → TwilioCallEventApi.d.ts} +11 -11
- package/dist/api-sdk-v2/{TwilioCallEventsApi.js → TwilioCallEventApi.js} +17 -17
- package/dist/db-accessors-v2/{TwilioCallEventsDbAccessor.d.ts → TwilioCallEventDbAccessor.d.ts} +22 -22
- package/dist/db-accessors-v2/{TwilioCallEventsDbAccessor.js → TwilioCallEventDbAccessor.js} +21 -21
- package/dist/db-accessors-v2/index.d.ts +1 -1
- package/dist/db-accessors-v2/index.js +3 -3
- package/dist/db-sdk-v2/CallDb.d.ts +2 -2
- package/dist/db-sdk-v2/CallDb.js +4 -4
- package/dist/db-sdk-v2/OfferDb.d.ts +8 -8
- package/dist/db-sdk-v2/OfferDb.js +22 -22
- package/dist/db-sdk-v2/{TwilioCallEventsDb.d.ts → TwilioCallEventDb.d.ts} +15 -15
- package/dist/db-sdk-v2/{TwilioCallEventsDb.js → TwilioCallEventDb.js} +20 -20
- package/dist/entities-v2/Call.d.ts +5 -5
- package/dist/entities-v2/Call.js +2 -2
- package/dist/entities-v2/Offer.d.ts +6 -6
- package/dist/entities-v2/Offer.js +5 -5
- package/dist/entities-v2/TwilioCallEvent.d.ts +229 -0
- package/dist/entities-v2/TwilioCallEvent.js +103 -0
- package/dist/records-v2/CallRecord.d.ts +10 -10
- package/dist/records-v2/CallRecord.js +15 -15
- package/dist/records-v2/OfferRecord.d.ts +10 -70
- package/dist/records-v2/OfferRecord.js +17 -116
- package/dist/records-v2/ProductRecord.d.ts +3 -103
- package/dist/records-v2/ProductRecord.js +4 -169
- package/dist/records-v2/{TwilioCallEventsRecord.d.ts → TwilioCallEventRecord.d.ts} +22 -86
- package/dist/records-v2/{TwilioCallEventsRecord.js → TwilioCallEventRecord.js} +28 -92
- package/dist/records-v2/index.d.ts +1 -1
- package/dist/records-v2/index.js +4 -4
- package/package.json +1 -1
- package/dist/entities-v2/TwilioCallEvents.d.ts +0 -433
- package/dist/entities-v2/TwilioCallEvents.js +0 -135
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* TwilioCallEvent DB Accessor
|
|
4
4
|
*
|
|
5
|
-
* Provides typed access to
|
|
5
|
+
* Provides typed access to TwilioCallEvent records via direct database access.
|
|
6
6
|
* For use in backend services with principal + dbService.
|
|
7
7
|
* Returns wrapped records with typed action methods.
|
|
8
8
|
*
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* const result = await accessor.upsert([dto], { omitWriteEvents: true });
|
|
22
22
|
*
|
|
23
23
|
* // Constructor-level default (applies to all calls)
|
|
24
|
-
* const accessor = new
|
|
24
|
+
* const accessor = new TwilioCallEventDbAccessor(principal, dbService, { omitPermissionsCheck: true });
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
27
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
@@ -48,20 +48,20 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
48
48
|
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
49
49
|
};
|
|
50
50
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
-
exports.
|
|
51
|
+
exports.TwilioCallEventDbAccessor = void 0;
|
|
52
52
|
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
53
53
|
const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
|
|
54
|
-
const
|
|
55
|
-
class
|
|
54
|
+
const TwilioCallEventRecord_1 = require("../records-v2/TwilioCallEventRecord");
|
|
55
|
+
class TwilioCallEventDbAccessor {
|
|
56
56
|
/**
|
|
57
|
-
* Create a new
|
|
57
|
+
* Create a new TwilioCallEventDbAccessor
|
|
58
58
|
* @param principal - The authenticated principal
|
|
59
59
|
* @param dbService - The database service instance
|
|
60
60
|
* @param defaultOptions - Default provider options applied to all operations
|
|
61
61
|
*/
|
|
62
62
|
constructor(principal, dbService, defaultOptions) {
|
|
63
63
|
this._moduleName = 'NotificationModule';
|
|
64
|
-
this._entityName = '
|
|
64
|
+
this._entityName = 'TwilioCallEvent';
|
|
65
65
|
this._provider = new db_provider_1.DbProvider(principal, dbService, defaultOptions);
|
|
66
66
|
this._defaultOptions = defaultOptions;
|
|
67
67
|
}
|
|
@@ -71,7 +71,7 @@ class TwilioCallEventsDbAccessor {
|
|
|
71
71
|
// RECORD CREATION
|
|
72
72
|
// ============================================
|
|
73
73
|
/**
|
|
74
|
-
* Create a new empty
|
|
74
|
+
* Create a new empty TwilioCallEvent record instance for create operations.
|
|
75
75
|
* Pre-generates an ID that can be referenced before the record is saved.
|
|
76
76
|
*
|
|
77
77
|
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
@@ -95,13 +95,13 @@ class TwilioCallEventsDbAccessor {
|
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
97
|
new(id) {
|
|
98
|
-
return new
|
|
98
|
+
return new TwilioCallEventRecord_1.TwilioCallEventRecord(null, this._provider, id);
|
|
99
99
|
}
|
|
100
100
|
// ============================================
|
|
101
101
|
// RECORD RETRIEVAL
|
|
102
102
|
// ============================================
|
|
103
103
|
/**
|
|
104
|
-
* Get a single
|
|
104
|
+
* Get a single TwilioCallEvent record by ID
|
|
105
105
|
*
|
|
106
106
|
* @param id - The record ID
|
|
107
107
|
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
@@ -125,11 +125,11 @@ class TwilioCallEventsDbAccessor {
|
|
|
125
125
|
get(id, queryOptions, providerOptions) {
|
|
126
126
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
127
|
const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id, queryOptions, providerOptions);
|
|
128
|
-
return new
|
|
128
|
+
return new TwilioCallEventRecord_1.TwilioCallEventRecord(record, this._provider);
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
|
-
* Get multiple
|
|
132
|
+
* Get multiple TwilioCallEvent records by IDs
|
|
133
133
|
*
|
|
134
134
|
* @param ids - Array of record IDs
|
|
135
135
|
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
@@ -140,14 +140,14 @@ class TwilioCallEventsDbAccessor {
|
|
|
140
140
|
if (ids.length === 0)
|
|
141
141
|
return [];
|
|
142
142
|
const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids, queryOptions, providerOptions);
|
|
143
|
-
return records.map((r) => new
|
|
143
|
+
return records.map((r) => new TwilioCallEventRecord_1.TwilioCallEventRecord(r, this._provider));
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
// ============================================
|
|
147
147
|
// SEARCH OPERATIONS
|
|
148
148
|
// ============================================
|
|
149
149
|
/**
|
|
150
|
-
* Search
|
|
150
|
+
* Search TwilioCallEvent records
|
|
151
151
|
*
|
|
152
152
|
* @param params - Search parameters
|
|
153
153
|
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
@@ -156,14 +156,14 @@ class TwilioCallEventsDbAccessor {
|
|
|
156
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
157
|
const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params, providerOptions);
|
|
158
158
|
return {
|
|
159
|
-
records: result.records.map((r) => new
|
|
159
|
+
records: result.records.map((r) => new TwilioCallEventRecord_1.TwilioCallEventRecord(r, this._provider)),
|
|
160
160
|
totalRecords: result.totalRecords,
|
|
161
161
|
hasMore: result.hasMore,
|
|
162
162
|
};
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
/**
|
|
166
|
-
* Search all
|
|
166
|
+
* Search all TwilioCallEvent records with automatic pagination
|
|
167
167
|
*
|
|
168
168
|
* @param params - Search parameters
|
|
169
169
|
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
@@ -171,7 +171,7 @@ class TwilioCallEventsDbAccessor {
|
|
|
171
171
|
searchAll(params, providerOptions) {
|
|
172
172
|
return __awaiter(this, void 0, void 0, function* () {
|
|
173
173
|
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params, 0, providerOptions);
|
|
174
|
-
return result.records.map((r) => new
|
|
174
|
+
return result.records.map((r) => new TwilioCallEventRecord_1.TwilioCallEventRecord(r, this._provider));
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
/**
|
|
@@ -190,7 +190,7 @@ class TwilioCallEventsDbAccessor {
|
|
|
190
190
|
while (hasMore) {
|
|
191
191
|
const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) }), providerOptions));
|
|
192
192
|
if (result.records.length > 0) {
|
|
193
|
-
yield yield __await(result.records.map((r) => new
|
|
193
|
+
yield yield __await(result.records.map((r) => new TwilioCallEventRecord_1.TwilioCallEventRecord(r, this._provider)));
|
|
194
194
|
const lastRecord = result.records[result.records.length - 1];
|
|
195
195
|
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
196
196
|
}
|
|
@@ -202,7 +202,7 @@ class TwilioCallEventsDbAccessor {
|
|
|
202
202
|
// QUERY BUILDER
|
|
203
203
|
// ============================================
|
|
204
204
|
/**
|
|
205
|
-
* Create a fluent query builder for
|
|
205
|
+
* Create a fluent query builder for TwilioCallEvent records
|
|
206
206
|
*
|
|
207
207
|
* @example
|
|
208
208
|
* ```typescript
|
|
@@ -224,4 +224,4 @@ class TwilioCallEventsDbAccessor {
|
|
|
224
224
|
return this._provider;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
exports.
|
|
227
|
+
exports.TwilioCallEventDbAccessor = TwilioCallEventDbAccessor;
|
|
@@ -101,7 +101,7 @@ export { SmsMessageDbAccessor, SmsMessageDbSearchResponse } from './SmsMessageDb
|
|
|
101
101
|
export { TeamDbAccessor, TeamDbSearchResponse } from './TeamDbAccessor';
|
|
102
102
|
export { TimeSlotDbAccessor, TimeSlotDbSearchResponse } from './TimeSlotDbAccessor';
|
|
103
103
|
export { TransactionDbAccessor, TransactionDbSearchResponse } from './TransactionDbAccessor';
|
|
104
|
-
export {
|
|
104
|
+
export { TwilioCallEventDbAccessor, TwilioCallEventDbSearchResponse } from './TwilioCallEventDbAccessor';
|
|
105
105
|
export { TwilioTaskQueueDbAccessor, TwilioTaskQueueDbSearchResponse } from './TwilioTaskQueueDbAccessor';
|
|
106
106
|
export { TwilioUserUpdateDbAccessor, TwilioUserUpdateDbSearchResponse } from './TwilioUserUpdateDbAccessor';
|
|
107
107
|
export { UgExternalAuditDbAccessor, UgExternalAuditDbSearchResponse } from './UgExternalAuditDbAccessor';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OhExternalAuditDbAccessor = 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.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.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = exports.
|
|
13
|
+
exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgExternalAuditDbAccessor = exports.TwilioUserUpdateDbAccessor = exports.TwilioTaskQueueDbAccessor = exports.TwilioCallEventDbAccessor = 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 = void 0;
|
|
14
14
|
exports.YfFieldServiceVisitDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = void 0;
|
|
15
15
|
var AccountCreditDbAccessor_1 = require("./AccountCreditDbAccessor");
|
|
16
16
|
Object.defineProperty(exports, "AccountCreditDbAccessor", { enumerable: true, get: function () { return AccountCreditDbAccessor_1.AccountCreditDbAccessor; } });
|
|
@@ -200,8 +200,8 @@ var TimeSlotDbAccessor_1 = require("./TimeSlotDbAccessor");
|
|
|
200
200
|
Object.defineProperty(exports, "TimeSlotDbAccessor", { enumerable: true, get: function () { return TimeSlotDbAccessor_1.TimeSlotDbAccessor; } });
|
|
201
201
|
var TransactionDbAccessor_1 = require("./TransactionDbAccessor");
|
|
202
202
|
Object.defineProperty(exports, "TransactionDbAccessor", { enumerable: true, get: function () { return TransactionDbAccessor_1.TransactionDbAccessor; } });
|
|
203
|
-
var
|
|
204
|
-
Object.defineProperty(exports, "
|
|
203
|
+
var TwilioCallEventDbAccessor_1 = require("./TwilioCallEventDbAccessor");
|
|
204
|
+
Object.defineProperty(exports, "TwilioCallEventDbAccessor", { enumerable: true, get: function () { return TwilioCallEventDbAccessor_1.TwilioCallEventDbAccessor; } });
|
|
205
205
|
var TwilioTaskQueueDbAccessor_1 = require("./TwilioTaskQueueDbAccessor");
|
|
206
206
|
Object.defineProperty(exports, "TwilioTaskQueueDbAccessor", { enumerable: true, get: function () { return TwilioTaskQueueDbAccessor_1.TwilioTaskQueueDbAccessor; } });
|
|
207
207
|
var TwilioUserUpdateDbAccessor_1 = require("./TwilioUserUpdateDbAccessor");
|
|
@@ -31,7 +31,7 @@ export declare class CallDb extends DbProvider {
|
|
|
31
31
|
private _callevent?;
|
|
32
32
|
private _case?;
|
|
33
33
|
private _workorder?;
|
|
34
|
-
private
|
|
34
|
+
private _twiliocallevent?;
|
|
35
35
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
36
36
|
get lead(): DbRecordLinkManager;
|
|
37
37
|
get file(): DbRecordLinkManager;
|
|
@@ -43,7 +43,7 @@ export declare class CallDb extends DbProvider {
|
|
|
43
43
|
get callevent(): DbRecordLinkManager;
|
|
44
44
|
get case(): DbRecordLinkManager;
|
|
45
45
|
get workorder(): DbRecordLinkManager;
|
|
46
|
-
get
|
|
46
|
+
get twiliocallevent(): DbRecordLinkManager;
|
|
47
47
|
setRecord(sourceRecord: any): void;
|
|
48
48
|
/**
|
|
49
49
|
* Search records with manual pagination control
|
package/dist/db-sdk-v2/CallDb.js
CHANGED
|
@@ -98,11 +98,11 @@ class CallDb extends db_provider_1.DbProvider {
|
|
|
98
98
|
}
|
|
99
99
|
return this._workorder;
|
|
100
100
|
}
|
|
101
|
-
get
|
|
102
|
-
if (!this.
|
|
103
|
-
this.
|
|
101
|
+
get twiliocallevent() {
|
|
102
|
+
if (!this._twiliocallevent) {
|
|
103
|
+
this._twiliocallevent = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Call', 'NotificationModule:TwilioCallEvent', 'Call__TwilioCallEvents');
|
|
104
104
|
}
|
|
105
|
-
return this.
|
|
105
|
+
return this._twiliocallevent;
|
|
106
106
|
}
|
|
107
107
|
// ============================================
|
|
108
108
|
// STANDARD METHODS
|
|
@@ -21,19 +21,19 @@ export declare class OfferDb extends DbProvider {
|
|
|
21
21
|
private readonly moduleName;
|
|
22
22
|
private readonly entityName;
|
|
23
23
|
private sourceRecord;
|
|
24
|
-
private
|
|
24
|
+
private _lead__offer?;
|
|
25
|
+
private _orderitem__offer?;
|
|
26
|
+
private _offer__offer?;
|
|
27
|
+
private _pricebook__offer?;
|
|
25
28
|
private _discount?;
|
|
26
|
-
private _orderitem?;
|
|
27
29
|
private _product?;
|
|
28
|
-
private _offer?;
|
|
29
|
-
private _pricebook?;
|
|
30
30
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
31
|
-
get
|
|
31
|
+
get lead__offer(): DbRecordLinkManager;
|
|
32
|
+
get orderitem__offer(): DbRecordLinkManager;
|
|
33
|
+
get offer__offer(): DbRecordLinkManager;
|
|
34
|
+
get pricebook__offer(): DbRecordLinkManager;
|
|
32
35
|
get discount(): DbRecordLinkManager;
|
|
33
|
-
get orderitem(): DbRecordLinkManager;
|
|
34
36
|
get product(): DbRecordLinkManager;
|
|
35
|
-
get offer(): DbRecordLinkManager;
|
|
36
|
-
get pricebook(): DbRecordLinkManager;
|
|
37
37
|
setRecord(sourceRecord: any): void;
|
|
38
38
|
/**
|
|
39
39
|
* Search records with manual pagination control
|
|
@@ -38,11 +38,29 @@ class OfferDb extends db_provider_1.DbProvider {
|
|
|
38
38
|
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
39
39
|
// ============================================
|
|
40
40
|
// Usage remains identical: db.address.list(recordId)
|
|
41
|
-
get
|
|
42
|
-
if (!this.
|
|
43
|
-
this.
|
|
41
|
+
get lead__offer() {
|
|
42
|
+
if (!this._lead__offer) {
|
|
43
|
+
this._lead__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'ProductModule:Offer', 'Lead__Offer');
|
|
44
44
|
}
|
|
45
|
-
return this.
|
|
45
|
+
return this._lead__offer;
|
|
46
|
+
}
|
|
47
|
+
get orderitem__offer() {
|
|
48
|
+
if (!this._orderitem__offer) {
|
|
49
|
+
this._orderitem__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:OrderItem', 'ProductModule:Offer', 'OrderItem__Offer');
|
|
50
|
+
}
|
|
51
|
+
return this._orderitem__offer;
|
|
52
|
+
}
|
|
53
|
+
get offer__offer() {
|
|
54
|
+
if (!this._offer__offer) {
|
|
55
|
+
this._offer__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
|
|
56
|
+
}
|
|
57
|
+
return this._offer__offer;
|
|
58
|
+
}
|
|
59
|
+
get pricebook__offer() {
|
|
60
|
+
if (!this._pricebook__offer) {
|
|
61
|
+
this._pricebook__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:PriceBook', 'ProductModule:Offer', 'PriceBook__Offer');
|
|
62
|
+
}
|
|
63
|
+
return this._pricebook__offer;
|
|
46
64
|
}
|
|
47
65
|
get discount() {
|
|
48
66
|
if (!this._discount) {
|
|
@@ -50,30 +68,12 @@ class OfferDb extends db_provider_1.DbProvider {
|
|
|
50
68
|
}
|
|
51
69
|
return this._discount;
|
|
52
70
|
}
|
|
53
|
-
get orderitem() {
|
|
54
|
-
if (!this._orderitem) {
|
|
55
|
-
this._orderitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'OrderModule:OrderItem', 'OrderItem__Offer');
|
|
56
|
-
}
|
|
57
|
-
return this._orderitem;
|
|
58
|
-
}
|
|
59
71
|
get product() {
|
|
60
72
|
if (!this._product) {
|
|
61
73
|
this._product = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
|
|
62
74
|
}
|
|
63
75
|
return this._product;
|
|
64
76
|
}
|
|
65
|
-
get offer() {
|
|
66
|
-
if (!this._offer) {
|
|
67
|
-
this._offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
|
|
68
|
-
}
|
|
69
|
-
return this._offer;
|
|
70
|
-
}
|
|
71
|
-
get pricebook() {
|
|
72
|
-
if (!this._pricebook) {
|
|
73
|
-
this._pricebook = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:PriceBook', 'PriceBook__Offer');
|
|
74
|
-
}
|
|
75
|
-
return this._pricebook;
|
|
76
|
-
}
|
|
77
77
|
// ============================================
|
|
78
78
|
// STANDARD METHODS
|
|
79
79
|
// ============================================
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
2
|
import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
|
|
3
3
|
import { DbRecordLinkManager } from '@d19n/odin-sdk-generator/dist/db.record.link.manager';
|
|
4
|
-
import {
|
|
4
|
+
import { TwilioCallEventProperties } from '../entities-v2/TwilioCallEvent';
|
|
5
5
|
/**
|
|
6
6
|
* @deprecated Use OdinDbClient.
|
|
7
7
|
*
|
|
8
8
|
* Migration:
|
|
9
|
-
* - Old: new
|
|
10
|
-
* - New: new odin.
|
|
9
|
+
* - Old: new TwilioCallEventApi(authParams).get(id)
|
|
10
|
+
* - New: new odin.twiliocallevent.get(id)
|
|
11
11
|
*
|
|
12
12
|
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
13
13
|
*
|
|
14
14
|
* Supports separate query options and provider options:
|
|
15
|
-
* - Constructor level: new
|
|
15
|
+
* - Constructor level: new TwilioCallEventDb(principal, dbService, { omitPermissionsCheck: true })
|
|
16
16
|
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
18
|
+
export declare class TwilioCallEventDb extends DbProvider {
|
|
19
19
|
protected readonly principal: any;
|
|
20
20
|
protected readonly dbService: any;
|
|
21
21
|
private readonly moduleName;
|
|
@@ -30,16 +30,16 @@ export declare class TwilioCallEventsDb extends DbProvider {
|
|
|
30
30
|
* @param params - Search parameters
|
|
31
31
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
32
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<
|
|
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<TwilioCallEventProperties>>>;
|
|
34
34
|
/**
|
|
35
35
|
* Search all records with automatic pagination
|
|
36
36
|
* @param params - Search parameters
|
|
37
37
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
38
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<
|
|
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<TwilioCallEventProperties>>>;
|
|
40
40
|
/**
|
|
41
41
|
* Get a single record by primary key
|
|
42
|
-
* @param
|
|
42
|
+
* @param twilioCallEventId - Record ID
|
|
43
43
|
* @param queryOptions - Query options (WHAT: entities to include)
|
|
44
44
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
45
45
|
*
|
|
@@ -56,14 +56,14 @@ export declare class TwilioCallEventsDb extends DbProvider {
|
|
|
56
56
|
* // Both options
|
|
57
57
|
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
58
58
|
*/
|
|
59
|
-
getByPrimaryKey(
|
|
59
|
+
getByPrimaryKey(twilioCallEventId: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventProperties>>;
|
|
60
60
|
/**
|
|
61
61
|
* Get multiple records by primary keys
|
|
62
|
-
* @param
|
|
62
|
+
* @param twilioCallEventIds - Array of record IDs
|
|
63
63
|
* @param queryOptions - Query options (WHAT: entities to include)
|
|
64
64
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
65
65
|
*/
|
|
66
|
-
getManyByPrimaryKey(
|
|
66
|
+
getManyByPrimaryKey(twilioCallEventIds: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventProperties>[]>;
|
|
67
67
|
/**
|
|
68
68
|
* Upsert a single record
|
|
69
69
|
* @param upsertDto - Record to upsert
|
|
@@ -90,16 +90,16 @@ export declare class TwilioCallEventsDb extends DbProvider {
|
|
|
90
90
|
updateMany(updateDtos: OdinRecordUpdateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
|
|
91
91
|
/**
|
|
92
92
|
* Delete one or many records
|
|
93
|
-
* @param
|
|
93
|
+
* @param twilioCallEventIds - Record IDs to delete
|
|
94
94
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
95
95
|
*/
|
|
96
|
-
delete(
|
|
96
|
+
delete(twilioCallEventIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordDeleted[]>;
|
|
97
97
|
/**
|
|
98
98
|
* Restore one or many deleted records
|
|
99
|
-
* @param
|
|
99
|
+
* @param twilioCallEventIds - Record IDs to restore
|
|
100
100
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
101
101
|
*/
|
|
102
|
-
restore(
|
|
102
|
+
restore(twilioCallEventIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordRestored[]>;
|
|
103
103
|
/**
|
|
104
104
|
* Apply an action to a record
|
|
105
105
|
* @param actionName - The action key
|
|
@@ -9,27 +9,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.TwilioCallEventDb = void 0;
|
|
13
13
|
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
14
14
|
const db_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/db.record.link.manager");
|
|
15
15
|
/**
|
|
16
16
|
* @deprecated Use OdinDbClient.
|
|
17
17
|
*
|
|
18
18
|
* Migration:
|
|
19
|
-
* - Old: new
|
|
20
|
-
* - New: new odin.
|
|
19
|
+
* - Old: new TwilioCallEventApi(authParams).get(id)
|
|
20
|
+
* - New: new odin.twiliocallevent.get(id)
|
|
21
21
|
*
|
|
22
22
|
* The new OdinDbClient returns typed record wrappers with action methods.
|
|
23
23
|
*
|
|
24
24
|
* Supports separate query options and provider options:
|
|
25
|
-
* - Constructor level: new
|
|
25
|
+
* - Constructor level: new TwilioCallEventDb(principal, dbService, { omitPermissionsCheck: true })
|
|
26
26
|
* - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
|
|
27
27
|
*/
|
|
28
|
-
class
|
|
28
|
+
class TwilioCallEventDb extends db_provider_1.DbProvider {
|
|
29
29
|
constructor(principal, dbService, defaultOptions) {
|
|
30
30
|
super(principal, dbService, defaultOptions);
|
|
31
31
|
this.moduleName = 'NotificationModule';
|
|
32
|
-
this.entityName = '
|
|
32
|
+
this.entityName = 'TwilioCallEvent';
|
|
33
33
|
this.principal = principal;
|
|
34
34
|
this.dbService = dbService;
|
|
35
35
|
// Link managers are lazy-loaded on first access
|
|
@@ -40,7 +40,7 @@ class TwilioCallEventsDb extends db_provider_1.DbProvider {
|
|
|
40
40
|
// Usage remains identical: db.address.list(recordId)
|
|
41
41
|
get call() {
|
|
42
42
|
if (!this._call) {
|
|
43
|
-
this._call = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:
|
|
43
|
+
this._call = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:TwilioCallEvent', 'NotificationModule:Call', 'Call__TwilioCallEvents');
|
|
44
44
|
}
|
|
45
45
|
return this._call;
|
|
46
46
|
}
|
|
@@ -73,7 +73,7 @@ class TwilioCallEventsDb extends db_provider_1.DbProvider {
|
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Get a single record by primary key
|
|
76
|
-
* @param
|
|
76
|
+
* @param twilioCallEventId - Record ID
|
|
77
77
|
* @param queryOptions - Query options (WHAT: entities to include)
|
|
78
78
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
79
79
|
*
|
|
@@ -90,9 +90,9 @@ class TwilioCallEventsDb extends db_provider_1.DbProvider {
|
|
|
90
90
|
* // Both options
|
|
91
91
|
* const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
|
|
92
92
|
*/
|
|
93
|
-
getByPrimaryKey(
|
|
93
|
+
getByPrimaryKey(twilioCallEventId, queryOptions, providerOptions) {
|
|
94
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName,
|
|
95
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, twilioCallEventId, queryOptions, providerOptions);
|
|
96
96
|
if (res)
|
|
97
97
|
this.setRecord(res);
|
|
98
98
|
return res;
|
|
@@ -100,13 +100,13 @@ class TwilioCallEventsDb extends db_provider_1.DbProvider {
|
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* Get multiple records by primary keys
|
|
103
|
-
* @param
|
|
103
|
+
* @param twilioCallEventIds - Array of record IDs
|
|
104
104
|
* @param queryOptions - Query options (WHAT: entities to include)
|
|
105
105
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
106
106
|
*/
|
|
107
|
-
getManyByPrimaryKey(
|
|
107
|
+
getManyByPrimaryKey(twilioCallEventIds, queryOptions, providerOptions) {
|
|
108
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
-
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName,
|
|
109
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, twilioCallEventIds, queryOptions, providerOptions);
|
|
110
110
|
});
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
@@ -153,22 +153,22 @@ class TwilioCallEventsDb extends db_provider_1.DbProvider {
|
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
155
|
* Delete one or many records
|
|
156
|
-
* @param
|
|
156
|
+
* @param twilioCallEventIds - Record IDs to delete
|
|
157
157
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
158
158
|
*/
|
|
159
|
-
delete(
|
|
159
|
+
delete(twilioCallEventIds, providerOptions) {
|
|
160
160
|
return __awaiter(this, void 0, void 0, function* () {
|
|
161
|
-
return yield this._delete(this.moduleName, this.entityName,
|
|
161
|
+
return yield this._delete(this.moduleName, this.entityName, twilioCallEventIds, providerOptions);
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
165
|
* Restore one or many deleted records
|
|
166
|
-
* @param
|
|
166
|
+
* @param twilioCallEventIds - Record IDs to restore
|
|
167
167
|
* @param providerOptions - Provider options (HOW: omitPermissionsCheck)
|
|
168
168
|
*/
|
|
169
|
-
restore(
|
|
169
|
+
restore(twilioCallEventIds, providerOptions) {
|
|
170
170
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
-
return yield this._restore(this.moduleName, this.entityName,
|
|
171
|
+
return yield this._restore(this.moduleName, this.entityName, twilioCallEventIds, providerOptions);
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
@@ -201,4 +201,4 @@ class TwilioCallEventsDb extends db_provider_1.DbProvider {
|
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
exports.
|
|
204
|
+
exports.TwilioCallEventDb = TwilioCallEventDb;
|
|
@@ -20,7 +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 {
|
|
23
|
+
import { TwilioCallEventProperties } from './TwilioCallEvent';
|
|
24
24
|
/**
|
|
25
25
|
* Available types for Call records
|
|
26
26
|
*/
|
|
@@ -573,8 +573,8 @@ export declare class Call extends OdinRecord<CallProperties> {
|
|
|
573
573
|
Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
|
|
574
574
|
/** Linked WorkOrder records (Call__WorkOrder) */
|
|
575
575
|
WorkOrder: OdinLink<LinkedOdinRecord<WorkOrderProperties>>;
|
|
576
|
-
/** Linked
|
|
577
|
-
|
|
576
|
+
/** Linked TwilioCallEvent records (Call__TwilioCallEvents) */
|
|
577
|
+
TwilioCallEvent: OdinLink<LinkedOdinRecord<TwilioCallEventProperties>>;
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
580
|
* RabbitMQ routing keys for Call events
|
|
@@ -629,6 +629,6 @@ export declare const ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = "NotificationMod
|
|
|
629
629
|
/** Event: Call__WorkOrder link deleted */
|
|
630
630
|
export declare const ROUTING_KEY_LINK_CALL_WORK_ORDER_DELETED = "NotificationModule.Call.WorkOrder.SubDbRecordAssociationDeleted";
|
|
631
631
|
/** Event: Call__TwilioCallEvents link created */
|
|
632
|
-
export declare const ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_CREATED = "NotificationModule.Call.
|
|
632
|
+
export declare const ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_CREATED = "NotificationModule.Call.TwilioCallEvent.SubDbRecordAssociationCreated";
|
|
633
633
|
/** Event: Call__TwilioCallEvents link deleted */
|
|
634
|
-
export declare const ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_DELETED = "NotificationModule.Call.
|
|
634
|
+
export declare const ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_DELETED = "NotificationModule.Call.TwilioCallEvent.SubDbRecordAssociationDeleted";
|
package/dist/entities-v2/Call.js
CHANGED
|
@@ -312,6 +312,6 @@ exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_CREATED = 'NotificationModule.Call.Work
|
|
|
312
312
|
/** Event: Call__WorkOrder link deleted */
|
|
313
313
|
exports.ROUTING_KEY_LINK_CALL_WORK_ORDER_DELETED = 'NotificationModule.Call.WorkOrder.SubDbRecordAssociationDeleted';
|
|
314
314
|
/** Event: Call__TwilioCallEvents link created */
|
|
315
|
-
exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_CREATED = 'NotificationModule.Call.
|
|
315
|
+
exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_CREATED = 'NotificationModule.Call.TwilioCallEvent.SubDbRecordAssociationCreated';
|
|
316
316
|
/** Event: Call__TwilioCallEvents link deleted */
|
|
317
|
-
exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_DELETED = 'NotificationModule.Call.
|
|
317
|
+
exports.ROUTING_KEY_LINK_CALL_TWILIO_CALL_EVENTS_DELETED = 'NotificationModule.Call.TwilioCallEvent.SubDbRecordAssociationDeleted';
|
|
@@ -342,6 +342,8 @@ export declare class Offer extends OdinRecord<OfferProperties> {
|
|
|
342
342
|
type: OfferEntityTypes;
|
|
343
343
|
schemaId: '1ea8e52f-8029-4d49-862f-9c17413f9ca9';
|
|
344
344
|
properties: OfferProperties;
|
|
345
|
+
/** Linked Offer records (Lead__Offer) */
|
|
346
|
+
Offer: OdinLink<LinkedOdinRecord<OfferProperties>>;
|
|
345
347
|
/** Linked Lead records (Lead__Offer) */
|
|
346
348
|
Lead: OdinLink<LinkedOdinRecord<LeadProperties>>;
|
|
347
349
|
/** Linked Discount records (Offer__Discount) */
|
|
@@ -350,8 +352,6 @@ export declare class Offer extends OdinRecord<OfferProperties> {
|
|
|
350
352
|
OrderItem: OdinLink<LinkedOdinRecord<OrderItemProperties>>;
|
|
351
353
|
/** Linked Product records (Offer__Product) */
|
|
352
354
|
Product: OdinLink<LinkedOdinRecord<ProductProperties>>;
|
|
353
|
-
/** Linked Offer records (Offer__Offer) */
|
|
354
|
-
Offer: OdinLink<LinkedOdinRecord<OfferProperties>>;
|
|
355
355
|
/** Linked PriceBook records (PriceBook__Offer) */
|
|
356
356
|
PriceBook: OdinLink<LinkedOdinRecord<PriceBookProperties>>;
|
|
357
357
|
}
|
|
@@ -383,6 +383,10 @@ export declare const ROUTING_KEY_OFFER_STANDARD_CREATED = "ProductModule.Offer.S
|
|
|
383
383
|
export declare const ROUTING_KEY_OFFER_STANDARD_UPDATED = "ProductModule.Offer.STANDARD.SubDbRecordUpdated";
|
|
384
384
|
/** STANDARD deleted */
|
|
385
385
|
export declare const ROUTING_KEY_OFFER_STANDARD_DELETED = "ProductModule.Offer.STANDARD.SubDbRecordDeleted";
|
|
386
|
+
/** Event: Lead__Offer link created */
|
|
387
|
+
export declare const ROUTING_KEY_LINK_LEAD_OFFER_CREATED = "ProductModule.Offer.Offer.SubDbRecordAssociationCreated";
|
|
388
|
+
/** Event: Lead__Offer link deleted */
|
|
389
|
+
export declare const ROUTING_KEY_LINK_LEAD_OFFER_DELETED = "ProductModule.Offer.Offer.SubDbRecordAssociationDeleted";
|
|
386
390
|
/** Event: Offer__Discount link created */
|
|
387
391
|
export declare const ROUTING_KEY_LINK_OFFER_DISCOUNT_CREATED = "ProductModule.Offer.Discount.SubDbRecordAssociationCreated";
|
|
388
392
|
/** Event: Offer__Discount link deleted */
|
|
@@ -391,7 +395,3 @@ export declare const ROUTING_KEY_LINK_OFFER_DISCOUNT_DELETED = "ProductModule.Of
|
|
|
391
395
|
export declare const ROUTING_KEY_LINK_OFFER_PRODUCT_CREATED = "ProductModule.Offer.Product.SubDbRecordAssociationCreated";
|
|
392
396
|
/** Event: Offer__Product link deleted */
|
|
393
397
|
export declare const ROUTING_KEY_LINK_OFFER_PRODUCT_DELETED = "ProductModule.Offer.Product.SubDbRecordAssociationDeleted";
|
|
394
|
-
/** Event: Offer__Offer link created */
|
|
395
|
-
export declare const ROUTING_KEY_LINK_OFFER_OFFER_CREATED = "ProductModule.Offer.Offer.SubDbRecordAssociationCreated";
|
|
396
|
-
/** Event: Offer__Offer link deleted */
|
|
397
|
-
export declare const ROUTING_KEY_LINK_OFFER_OFFER_DELETED = "ProductModule.Offer.Offer.SubDbRecordAssociationDeleted";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.ROUTING_KEY_LINK_OFFER_PRODUCT_DELETED = exports.ROUTING_KEY_LINK_OFFER_PRODUCT_CREATED = exports.ROUTING_KEY_LINK_OFFER_DISCOUNT_DELETED = exports.ROUTING_KEY_LINK_OFFER_DISCOUNT_CREATED = exports.ROUTING_KEY_LINK_LEAD_OFFER_DELETED = exports.ROUTING_KEY_LINK_LEAD_OFFER_CREATED = exports.ROUTING_KEY_OFFER_STANDARD_DELETED = exports.ROUTING_KEY_OFFER_STANDARD_UPDATED = exports.ROUTING_KEY_OFFER_STANDARD_CREATED = exports.ROUTING_KEY_OFFER_RECONTRACT_DELETED = exports.ROUTING_KEY_OFFER_RECONTRACT_UPDATED = exports.ROUTING_KEY_OFFER_RECONTRACT_CREATED = exports.ROUTING_KEY_OFFER_DEFAULT_DELETED = exports.ROUTING_KEY_OFFER_DEFAULT_UPDATED = exports.ROUTING_KEY_OFFER_DEFAULT_CREATED = exports.ROUTING_KEY_OFFER_DELETED = exports.ROUTING_KEY_OFFER_UPDATED = exports.ROUTING_KEY_OFFER_CREATED = exports.Offer = exports.OfferPropertyKeys = exports.OfferChannel = exports.OfferContractType = exports.OfferCustomerType = exports.OfferEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for Offer records
|
|
@@ -149,6 +149,10 @@ exports.ROUTING_KEY_OFFER_STANDARD_CREATED = 'ProductModule.Offer.STANDARD.SubDb
|
|
|
149
149
|
exports.ROUTING_KEY_OFFER_STANDARD_UPDATED = 'ProductModule.Offer.STANDARD.SubDbRecordUpdated';
|
|
150
150
|
/** STANDARD deleted */
|
|
151
151
|
exports.ROUTING_KEY_OFFER_STANDARD_DELETED = 'ProductModule.Offer.STANDARD.SubDbRecordDeleted';
|
|
152
|
+
/** Event: Lead__Offer link created */
|
|
153
|
+
exports.ROUTING_KEY_LINK_LEAD_OFFER_CREATED = 'ProductModule.Offer.Offer.SubDbRecordAssociationCreated';
|
|
154
|
+
/** Event: Lead__Offer link deleted */
|
|
155
|
+
exports.ROUTING_KEY_LINK_LEAD_OFFER_DELETED = 'ProductModule.Offer.Offer.SubDbRecordAssociationDeleted';
|
|
152
156
|
/** Event: Offer__Discount link created */
|
|
153
157
|
exports.ROUTING_KEY_LINK_OFFER_DISCOUNT_CREATED = 'ProductModule.Offer.Discount.SubDbRecordAssociationCreated';
|
|
154
158
|
/** Event: Offer__Discount link deleted */
|
|
@@ -157,7 +161,3 @@ exports.ROUTING_KEY_LINK_OFFER_DISCOUNT_DELETED = 'ProductModule.Offer.Discount.
|
|
|
157
161
|
exports.ROUTING_KEY_LINK_OFFER_PRODUCT_CREATED = 'ProductModule.Offer.Product.SubDbRecordAssociationCreated';
|
|
158
162
|
/** Event: Offer__Product link deleted */
|
|
159
163
|
exports.ROUTING_KEY_LINK_OFFER_PRODUCT_DELETED = 'ProductModule.Offer.Product.SubDbRecordAssociationDeleted';
|
|
160
|
-
/** Event: Offer__Offer link created */
|
|
161
|
-
exports.ROUTING_KEY_LINK_OFFER_OFFER_CREATED = 'ProductModule.Offer.Offer.SubDbRecordAssociationCreated';
|
|
162
|
-
/** Event: Offer__Offer link deleted */
|
|
163
|
-
exports.ROUTING_KEY_LINK_OFFER_OFFER_DELETED = 'ProductModule.Offer.Offer.SubDbRecordAssociationDeleted';
|