@d19n/youfibre-odin-sdk 2.0.76 → 2.0.78
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 +10 -1
- 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/RegionAccessor.d.ts +111 -0
- package/dist/accessors-v2/RegionAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +4 -2
- package/dist/actions-v2/CaseCreateNoteDto.d.ts +7 -0
- package/dist/actions-v2/CreateActivityLogEntryDto.d.ts +8 -0
- package/dist/actions-v2/CreateAppointmentDto.d.ts +8 -0
- package/dist/actions-v2/CreateBillingRequestTransactionDto.d.ts +9 -0
- package/dist/actions-v2/CreateBundleProductActionDto.d.ts +8 -0
- package/dist/actions-v2/CreateInstallDto.d.ts +9 -10
- package/dist/actions-v2/CreateInternetProductActionDto.d.ts +8 -0
- package/dist/actions-v2/CreateLaborProductActionDto.d.ts +8 -0
- package/dist/actions-v2/CreateLandlineProductActionDto.d.ts +8 -0
- package/dist/actions-v2/CreateLeadDto.d.ts +8 -0
- package/dist/actions-v2/CreateLeadFromAddressDto.d.ts +8 -0
- package/dist/actions-v2/CreateMeshProductActionDto.d.ts +8 -0
- package/dist/actions-v2/CreateMessageDto.d.ts +8 -0
- package/dist/actions-v2/CreateMobileProductActionDto.d.ts +8 -0
- package/dist/actions-v2/CreateOtpTransactionDto.d.ts +9 -0
- package/dist/actions-v2/CreatePgContactDto.d.ts +1 -1
- package/dist/actions-v2/CreateRegionDto.d.ts +65 -0
- package/dist/actions-v2/CreateRegionDto.js +52 -0
- package/dist/actions-v2/CreateTelevisionProductActionDto.d.ts +8 -0
- package/dist/actions-v2/CreateTransactionalEmailDto.d.ts +14 -0
- package/dist/actions-v2/NewAppointmentDto.d.ts +8 -0
- package/dist/actions-v2/SendDirectDebitCreatedEmailDto.d.ts +114 -0
- package/dist/actions-v2/SendDirectDebitCreatedEmailDto.js +59 -0
- package/dist/actions-v2/SendDirectDebitSetupConfirmationEmailDto.d.ts +114 -0
- package/dist/actions-v2/SendDirectDebitSetupConfirmationEmailDto.js +59 -0
- package/dist/actions-v2/SendRefundTransactionEmailDto.d.ts +109 -0
- package/dist/actions-v2/SendRefundTransactionEmailDto.js +54 -0
- package/dist/actions-v2/SendTlosNinjaCaseEmailDto.d.ts +7 -0
- package/dist/actions-v2/TransactionCreateDto.d.ts +8 -0
- package/dist/actions-v2/UpdateBundleProductActionDto.d.ts +8 -0
- package/dist/actions-v2/UpdateEmailDto.d.ts +14 -0
- package/dist/actions-v2/UpdateInternetProductActionDto.d.ts +8 -0
- package/dist/actions-v2/UpdateLaborProductActionDto.d.ts +8 -0
- package/dist/actions-v2/UpdateLandlineProductActionDto.d.ts +8 -0
- package/dist/actions-v2/UpdateLeadDto.d.ts +8 -0
- package/dist/actions-v2/UpdateMeshProductActionDto.d.ts +8 -0
- package/dist/actions-v2/UpdateMobileProductActionDto.d.ts +8 -0
- package/dist/actions-v2/UpdatePgContactDto.d.ts +1 -1
- package/dist/actions-v2/UpdateServiceDto.d.ts +8 -0
- package/dist/actions-v2/UpdateSupportEmailDto.d.ts +7 -0
- package/dist/actions-v2/UpdateTelevisionProductActionDto.d.ts +8 -0
- package/dist/api-sdk-v2/TeamApi.d.ts +2 -2
- package/dist/api-sdk-v2/TeamApi.js +6 -6
- package/dist/api-sdk-v2/UserApi.d.ts +4 -4
- package/dist/api-sdk-v2/UserApi.js +12 -12
- package/dist/db-accessors-v2/RegionDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/RegionDbAccessor.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/TeamDb.d.ts +2 -2
- package/dist/db-sdk-v2/TeamDb.js +6 -6
- package/dist/db-sdk-v2/UserDb.d.ts +4 -4
- package/dist/db-sdk-v2/UserDb.js +12 -12
- package/dist/entities-v2/Account.d.ts +60 -1
- package/dist/entities-v2/Account.js +20 -2
- package/dist/entities-v2/ActivityLog.d.ts +26 -1
- package/dist/entities-v2/ActivityLog.js +21 -1
- package/dist/entities-v2/Address.d.ts +23 -1
- package/dist/entities-v2/Address.js +17 -1
- package/dist/entities-v2/Appointment.d.ts +22 -1
- package/dist/entities-v2/Appointment.js +17 -1
- package/dist/entities-v2/Call.d.ts +15 -1
- package/dist/entities-v2/Call.js +4 -0
- package/dist/entities-v2/ConsumptionSchedule.d.ts +23 -1
- package/dist/entities-v2/ConsumptionSchedule.js +17 -1
- package/dist/entities-v2/Email.d.ts +45 -1
- package/dist/entities-v2/Email.js +4 -0
- package/dist/entities-v2/InvoiceItem.d.ts +26 -1
- package/dist/entities-v2/InvoiceItem.js +19 -1
- package/dist/entities-v2/KnowledgeArticle.d.ts +3 -1
- package/dist/entities-v2/KnowledgeArticle.js +2 -0
- package/dist/entities-v2/Lead.d.ts +31 -1
- package/dist/entities-v2/Lead.js +21 -1
- package/dist/entities-v2/Message.d.ts +23 -1
- package/dist/entities-v2/Message.js +2 -0
- package/dist/entities-v2/Milestone.d.ts +15 -1
- package/dist/entities-v2/Milestone.js +11 -1
- package/dist/entities-v2/Note.d.ts +8 -1
- package/dist/entities-v2/Note.js +2 -0
- package/dist/entities-v2/PaymentMethod.d.ts +43 -1
- package/dist/entities-v2/PaymentMethod.js +31 -1
- package/dist/entities-v2/PgContact.d.ts +8 -8
- package/dist/entities-v2/PgContact.js +2 -2
- package/dist/entities-v2/Product.d.ts +118 -1
- package/dist/entities-v2/Product.js +24 -2
- package/dist/entities-v2/ProductComponent.d.ts +27 -1
- package/dist/entities-v2/ProductComponent.js +21 -1
- package/dist/entities-v2/Program.d.ts +15 -1
- package/dist/entities-v2/Program.js +11 -1
- package/dist/entities-v2/Project.d.ts +15 -1
- package/dist/entities-v2/Project.js +11 -1
- package/dist/entities-v2/Restriction.d.ts +23 -1
- package/dist/entities-v2/Restriction.js +17 -1
- package/dist/entities-v2/Service.d.ts +22 -1
- package/dist/entities-v2/Service.js +17 -1
- package/dist/entities-v2/ServiceAppointment.d.ts +8 -1
- package/dist/entities-v2/ServiceAppointment.js +2 -0
- package/dist/entities-v2/ServiceVisitAudit.d.ts +13 -13
- package/dist/entities-v2/ServiceVisitAudit.js +2 -2
- package/dist/entities-v2/SmsMessage.d.ts +18 -1
- package/dist/entities-v2/SmsMessage.js +2 -0
- package/dist/entities-v2/Subtask.d.ts +15 -1
- package/dist/entities-v2/Subtask.js +11 -1
- package/dist/entities-v2/Task.d.ts +15 -1
- package/dist/entities-v2/Task.js +11 -1
- package/dist/entities-v2/Team.d.ts +3 -3
- package/dist/entities-v2/Transaction.d.ts +27 -1
- package/dist/entities-v2/Transaction.js +21 -1
- package/dist/entities-v2/User.d.ts +6 -6
- package/dist/entities-v2/Vendor.d.ts +22 -1
- package/dist/entities-v2/Vendor.js +17 -1
- package/dist/entities-v2/WorkOrder.d.ts +99 -1
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/entities-v2/YfStockCount.d.ts +9 -1
- package/dist/entities-v2/YfStockCount.js +8 -0
- package/dist/records-v2/EmailRecord.d.ts +87 -0
- package/dist/records-v2/EmailRecord.js +108 -0
- package/dist/records-v2/ExchangeRecord.d.ts +20 -0
- package/dist/records-v2/ExchangeRecord.js +33 -0
- package/dist/records-v2/RegionRecord.d.ts +205 -0
- package/dist/records-v2/RegionRecord.js +292 -0
- package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +20 -0
- package/dist/records-v2/ServiceAppointmentConfigRecord.js +33 -0
- package/dist/records-v2/TeamRecord.d.ts +20 -20
- package/dist/records-v2/TeamRecord.js +33 -33
- package/dist/records-v2/UserRecord.d.ts +40 -40
- package/dist/records-v2/UserRecord.js +66 -66
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +5 -2
- package/package.json +2 -2
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Region DB Accessor
|
|
4
|
+
*
|
|
5
|
+
* Provides typed access to Region records via direct database access.
|
|
6
|
+
* For use in backend services with principal + dbService.
|
|
7
|
+
* Returns wrapped records with typed action methods.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```typescript
|
|
11
|
+
* // Simple get
|
|
12
|
+
* const record = await accessor.get(id);
|
|
13
|
+
*
|
|
14
|
+
* // With related entities
|
|
15
|
+
* const record = await accessor.get(id, { entities: ["Contact", "Address"] });
|
|
16
|
+
*
|
|
17
|
+
* // With permissions bypass (separate options)
|
|
18
|
+
* const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
|
|
19
|
+
*
|
|
20
|
+
* // Silent write (no RabbitMQ events)
|
|
21
|
+
* const result = await accessor.upsert([dto], { omitWriteEvents: true });
|
|
22
|
+
*
|
|
23
|
+
* // Constructor-level default (applies to all calls)
|
|
24
|
+
* const accessor = new RegionDbAccessor(principal, dbService, { omitPermissionsCheck: true });
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
28
|
+
*/
|
|
29
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
30
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
31
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
32
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
33
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
34
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
35
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
39
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
40
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
41
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
42
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
43
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
44
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
45
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
46
|
+
function fulfill(value) { resume("next", value); }
|
|
47
|
+
function reject(value) { resume("throw", value); }
|
|
48
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.RegionDbAccessor = void 0;
|
|
52
|
+
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
53
|
+
const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
|
|
54
|
+
const RegionRecord_1 = require("../records-v2/RegionRecord");
|
|
55
|
+
class RegionDbAccessor {
|
|
56
|
+
/**
|
|
57
|
+
* Create a new RegionDbAccessor
|
|
58
|
+
* @param principal - The authenticated principal
|
|
59
|
+
* @param dbService - The database service instance
|
|
60
|
+
* @param defaultOptions - Default provider options applied to all operations
|
|
61
|
+
*/
|
|
62
|
+
constructor(principal, dbService, defaultOptions) {
|
|
63
|
+
this._moduleName = 'ProjectModule';
|
|
64
|
+
this._entityName = 'Region';
|
|
65
|
+
this._provider = new db_provider_1.DbProvider(principal, dbService, defaultOptions);
|
|
66
|
+
this._defaultOptions = defaultOptions;
|
|
67
|
+
}
|
|
68
|
+
get moduleName() { return this._moduleName; }
|
|
69
|
+
get entityName() { return this._entityName; }
|
|
70
|
+
// ============================================
|
|
71
|
+
// RECORD CREATION
|
|
72
|
+
// ============================================
|
|
73
|
+
/**
|
|
74
|
+
* Create a new empty Region record instance for create operations.
|
|
75
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
76
|
+
*
|
|
77
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
78
|
+
* @returns A new record wrapper with pre-generated ID
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```typescript
|
|
82
|
+
* // Auto-generated ID
|
|
83
|
+
* const note = odinDb.notes.new();
|
|
84
|
+
* console.log(note.id); // UUID available immediately
|
|
85
|
+
*
|
|
86
|
+
* // Custom ID
|
|
87
|
+
* const order = odinDb.orders.new("custom-id-123");
|
|
88
|
+
*
|
|
89
|
+
* // Reference ID before save
|
|
90
|
+
* const account = odinDb.accounts.new();
|
|
91
|
+
* const contact = odinDb.contacts.new();
|
|
92
|
+
* await contact
|
|
93
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
94
|
+
* .createContact({ FirstName: "John" });
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
new(id) {
|
|
98
|
+
return new RegionRecord_1.RegionRecord(null, this._provider, id);
|
|
99
|
+
}
|
|
100
|
+
// ============================================
|
|
101
|
+
// RECORD RETRIEVAL
|
|
102
|
+
// ============================================
|
|
103
|
+
/**
|
|
104
|
+
* Get a single Region record by ID
|
|
105
|
+
*
|
|
106
|
+
* @param id - The record ID
|
|
107
|
+
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
108
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```typescript
|
|
112
|
+
* // Simple get
|
|
113
|
+
* const record = await accessor.get(id);
|
|
114
|
+
*
|
|
115
|
+
* // With related entities
|
|
116
|
+
* const record = await accessor.get(id, { entities: ["Contact", "Address"] });
|
|
117
|
+
*
|
|
118
|
+
* // With permissions bypass
|
|
119
|
+
* const record = await accessor.get(id, {}, { omitPermissionsCheck: true });
|
|
120
|
+
*
|
|
121
|
+
* // Both options
|
|
122
|
+
* const record = await accessor.get(id, { entities: ["Invoice"] }, { omitPermissionsCheck: true });
|
|
123
|
+
* ```
|
|
124
|
+
*/
|
|
125
|
+
get(id, queryOptions, providerOptions) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id, queryOptions, providerOptions);
|
|
128
|
+
return new RegionRecord_1.RegionRecord(record, this._provider);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Get multiple Region records by IDs
|
|
133
|
+
*
|
|
134
|
+
* @param ids - Array of record IDs
|
|
135
|
+
* @param queryOptions - Query options (WHAT to fetch: entities to include)
|
|
136
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
137
|
+
*/
|
|
138
|
+
getMany(ids, queryOptions, providerOptions) {
|
|
139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
140
|
+
if (ids.length === 0)
|
|
141
|
+
return [];
|
|
142
|
+
const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids, queryOptions, providerOptions);
|
|
143
|
+
return records.map((r) => new RegionRecord_1.RegionRecord(r, this._provider));
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
// ============================================
|
|
147
|
+
// SEARCH OPERATIONS
|
|
148
|
+
// ============================================
|
|
149
|
+
/**
|
|
150
|
+
* Search Region records
|
|
151
|
+
*
|
|
152
|
+
* @param params - Search parameters
|
|
153
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
154
|
+
*/
|
|
155
|
+
search(params, providerOptions) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params, providerOptions);
|
|
158
|
+
return {
|
|
159
|
+
records: result.records.map((r) => new RegionRecord_1.RegionRecord(r, this._provider)),
|
|
160
|
+
totalRecords: result.totalRecords,
|
|
161
|
+
hasMore: result.hasMore,
|
|
162
|
+
};
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Search all Region records with automatic pagination
|
|
167
|
+
*
|
|
168
|
+
* @param params - Search parameters
|
|
169
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
170
|
+
*/
|
|
171
|
+
searchAll(params, providerOptions) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
173
|
+
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params, 0, providerOptions);
|
|
174
|
+
return result.records.map((r) => new RegionRecord_1.RegionRecord(r, this._provider));
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Async generator for paginating through all matching records.
|
|
179
|
+
* Yields batches of wrapped records.
|
|
180
|
+
*
|
|
181
|
+
* @param params - Search parameters
|
|
182
|
+
* @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
|
|
183
|
+
*/
|
|
184
|
+
paginate(params, providerOptions) {
|
|
185
|
+
var _a;
|
|
186
|
+
return __asyncGenerator(this, arguments, function* paginate_1() {
|
|
187
|
+
let hasMore = true;
|
|
188
|
+
let searchAfter;
|
|
189
|
+
const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
|
|
190
|
+
while (hasMore) {
|
|
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
|
+
if (result.records.length > 0) {
|
|
193
|
+
yield yield __await(result.records.map((r) => new RegionRecord_1.RegionRecord(r, this._provider)));
|
|
194
|
+
const lastRecord = result.records[result.records.length - 1];
|
|
195
|
+
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
196
|
+
}
|
|
197
|
+
hasMore = result.hasMore && result.records.length >= query.pageSize;
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
// ============================================
|
|
202
|
+
// QUERY BUILDER
|
|
203
|
+
// ============================================
|
|
204
|
+
/**
|
|
205
|
+
* Create a fluent query builder for Region records
|
|
206
|
+
*
|
|
207
|
+
* @example
|
|
208
|
+
* ```typescript
|
|
209
|
+
* const results = await accessor
|
|
210
|
+
* .query()
|
|
211
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
212
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
213
|
+
* .select('id', 'title', 'properties.*')
|
|
214
|
+
* .sortBy('createdAt', 'desc')
|
|
215
|
+
* .limit(100)
|
|
216
|
+
* .execute();
|
|
217
|
+
* ```
|
|
218
|
+
*/
|
|
219
|
+
query() {
|
|
220
|
+
return (0, query_builder_1.createQueryBuilder)(this);
|
|
221
|
+
}
|
|
222
|
+
/** Access the underlying DbProvider */
|
|
223
|
+
get provider() {
|
|
224
|
+
return this._provider;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.RegionDbAccessor = RegionDbAccessor;
|
|
@@ -89,6 +89,7 @@ export { PriceBookDbAccessor, PriceBookDbSearchResponse } from './PriceBookDbAcc
|
|
|
89
89
|
export { ProductDbAccessor, ProductDbSearchResponse } from './ProductDbAccessor';
|
|
90
90
|
export { PushNotificationDbAccessor, PushNotificationDbSearchResponse } from './PushNotificationDbAccessor';
|
|
91
91
|
export { ReferralDbAccessor, ReferralDbSearchResponse } from './ReferralDbAccessor';
|
|
92
|
+
export { RegionDbAccessor, RegionDbSearchResponse } from './RegionDbAccessor';
|
|
92
93
|
export { RemediationOutcomeFormDbAccessor, RemediationOutcomeFormDbSearchResponse } from './RemediationOutcomeFormDbAccessor';
|
|
93
94
|
export { RemediationRequiredReasonDbAccessor, RemediationRequiredReasonDbSearchResponse } from './RemediationRequiredReasonDbAccessor';
|
|
94
95
|
export { ReturnsDbAccessor, ReturnsDbSearchResponse } from './ReturnsDbAccessor';
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OhExternalAuditDbAccessor = exports.OhAuditOfInstallationDbAccessor = exports.OfferDbAccessor = exports.NoteDbAccessor = exports.NetworkDeviceDbAccessor = exports.MessageDbAccessor = exports.LeadDbAccessor = exports.KnowledgeArticleDbAccessor = exports.InvoiceDbAccessor = exports.InvoiceItemDbAccessor = exports.InternalInstallAuditDbAccessor = exports.ImpersonationTrackerDbAccessor = 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.ConfigDbAccessor = exports.ChurnRequestDbAccessor = exports.ChangeReasonDbAccessor = exports.CaseDbAccessor = exports.CampaignDbAccessor = exports.CallTransferDbAccessor = exports.CallDbAccessor = exports.CallLegDbAccessor = exports.CallEventDbAccessor = exports.BrskEntityMigrationErrorDbAccessor = exports.BngProvisionDbAccessor = exports.BlockageA55DbAccessor = exports.BillingRequestDbAccessor = exports.BillingAdjustmentDbAccessor = exports.AppointmentDbAccessor = exports.AffiliateCodeDbAccessor = exports.AddressDbAccessor = exports.ActivityDbAccessor = exports.ActivityLogDbAccessor = exports.AccountDbAccessor = exports.AccountCreditDbAccessor = void 0;
|
|
13
|
-
exports.
|
|
14
|
-
exports.YfFieldServiceVisitDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgRetroAuditDbAccessor = exports.UgInstallationAuditDbAccessor = exports.UgInProgressAuditDbAccessor = exports.UgExternalAuditDbAccessor = void 0;
|
|
13
|
+
exports.TwilioTaskQueueDbAccessor = exports.TransactionDbAccessor = exports.TimeSlotDbAccessor = exports.TeamDbAccessor = exports.SweeperMaintenanceAuditDbAccessor = exports.SmsMessageDbAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormDbAccessor = exports.ServiceVisitAuditDbAccessor = 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.OhRetroAuditDbAccessor = exports.OhInstallationAuditDbAccessor = exports.OhInProgressAuditDbAccessor = void 0;
|
|
14
|
+
exports.YfFieldServiceVisitDbAccessor = exports.WorkOrderStatusUpdateDbAccessor = exports.WorkOrderDbAccessor = exports.WayleaveAuditDbAccessor = exports.VoiceConfigurationDbAccessor = exports.VisitDbAccessor = exports.UserDbAccessor = exports.UgRetroAuditDbAccessor = exports.UgInstallationAuditDbAccessor = exports.UgInProgressAuditDbAccessor = exports.UgExternalAuditDbAccessor = exports.UgAuditOfInstallationDbAccessor = 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");
|
|
@@ -176,6 +176,8 @@ var PushNotificationDbAccessor_1 = require("./PushNotificationDbAccessor");
|
|
|
176
176
|
Object.defineProperty(exports, "PushNotificationDbAccessor", { enumerable: true, get: function () { return PushNotificationDbAccessor_1.PushNotificationDbAccessor; } });
|
|
177
177
|
var ReferralDbAccessor_1 = require("./ReferralDbAccessor");
|
|
178
178
|
Object.defineProperty(exports, "ReferralDbAccessor", { enumerable: true, get: function () { return ReferralDbAccessor_1.ReferralDbAccessor; } });
|
|
179
|
+
var RegionDbAccessor_1 = require("./RegionDbAccessor");
|
|
180
|
+
Object.defineProperty(exports, "RegionDbAccessor", { enumerable: true, get: function () { return RegionDbAccessor_1.RegionDbAccessor; } });
|
|
179
181
|
var RemediationOutcomeFormDbAccessor_1 = require("./RemediationOutcomeFormDbAccessor");
|
|
180
182
|
Object.defineProperty(exports, "RemediationOutcomeFormDbAccessor", { enumerable: true, get: function () { return RemediationOutcomeFormDbAccessor_1.RemediationOutcomeFormDbAccessor; } });
|
|
181
183
|
var RemediationRequiredReasonDbAccessor_1 = require("./RemediationRequiredReasonDbAccessor");
|
|
@@ -22,14 +22,14 @@ export declare class TeamDb extends DbProvider {
|
|
|
22
22
|
private readonly entityName;
|
|
23
23
|
private sourceRecord;
|
|
24
24
|
private _case?;
|
|
25
|
-
private _user?;
|
|
26
25
|
private _workorder?;
|
|
27
26
|
private _crmdataset?;
|
|
27
|
+
private _user?;
|
|
28
28
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
29
29
|
get case(): DbRecordLinkManager;
|
|
30
|
-
get user(): DbRecordLinkManager;
|
|
31
30
|
get workorder(): DbRecordLinkManager;
|
|
32
31
|
get crmdataset(): DbRecordLinkManager;
|
|
32
|
+
get user(): DbRecordLinkManager;
|
|
33
33
|
setRecord(sourceRecord: any): void;
|
|
34
34
|
/**
|
|
35
35
|
* Search records with manual pagination control
|
package/dist/db-sdk-v2/TeamDb.js
CHANGED
|
@@ -44,12 +44,6 @@ class TeamDb extends db_provider_1.DbProvider {
|
|
|
44
44
|
}
|
|
45
45
|
return this._case;
|
|
46
46
|
}
|
|
47
|
-
get user() {
|
|
48
|
-
if (!this._user) {
|
|
49
|
-
this._user = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:Team', 'IdentityModule:User', 'Team_User');
|
|
50
|
-
}
|
|
51
|
-
return this._user;
|
|
52
|
-
}
|
|
53
47
|
get workorder() {
|
|
54
48
|
if (!this._workorder) {
|
|
55
49
|
this._workorder = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:Team', 'FieldServiceModule:WorkOrder', 'WorkOrder_Team');
|
|
@@ -62,6 +56,12 @@ class TeamDb extends db_provider_1.DbProvider {
|
|
|
62
56
|
}
|
|
63
57
|
return this._crmdataset;
|
|
64
58
|
}
|
|
59
|
+
get user() {
|
|
60
|
+
if (!this._user) {
|
|
61
|
+
this._user = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:Team', 'IdentityModule:User', 'Team_User');
|
|
62
|
+
}
|
|
63
|
+
return this._user;
|
|
64
|
+
}
|
|
65
65
|
// ============================================
|
|
66
66
|
// STANDARD METHODS
|
|
67
67
|
// ============================================
|
|
@@ -23,7 +23,6 @@ export declare class UserDb extends DbProvider {
|
|
|
23
23
|
private sourceRecord;
|
|
24
24
|
private _blockagea55?;
|
|
25
25
|
private _timeslot?;
|
|
26
|
-
private _team?;
|
|
27
26
|
private _returns?;
|
|
28
27
|
private _pushnotification?;
|
|
29
28
|
private _email?;
|
|
@@ -46,13 +45,13 @@ export declare class UserDb extends DbProvider {
|
|
|
46
45
|
private _crmdataset?;
|
|
47
46
|
private _customerdeviceconfiguration?;
|
|
48
47
|
private _twiliouserupdate?;
|
|
49
|
-
private _salesterritory?;
|
|
50
48
|
private _calltransfer_toagent?;
|
|
51
49
|
private _calltransfer_fromagent?;
|
|
50
|
+
private _team?;
|
|
51
|
+
private _salesterritory?;
|
|
52
52
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
53
53
|
get blockagea55(): DbRecordLinkManager;
|
|
54
54
|
get timeslot(): DbRecordLinkManager;
|
|
55
|
-
get team(): DbRecordLinkManager;
|
|
56
55
|
get returns(): DbRecordLinkManager;
|
|
57
56
|
get pushnotification(): DbRecordLinkManager;
|
|
58
57
|
get email(): DbRecordLinkManager;
|
|
@@ -75,9 +74,10 @@ export declare class UserDb extends DbProvider {
|
|
|
75
74
|
get crmdataset(): DbRecordLinkManager;
|
|
76
75
|
get customerdeviceconfiguration(): DbRecordLinkManager;
|
|
77
76
|
get twiliouserupdate(): DbRecordLinkManager;
|
|
78
|
-
get salesterritory(): DbRecordLinkManager;
|
|
79
77
|
get calltransfer_toagent(): DbRecordLinkManager;
|
|
80
78
|
get calltransfer_fromagent(): DbRecordLinkManager;
|
|
79
|
+
get team(): DbRecordLinkManager;
|
|
80
|
+
get salesterritory(): DbRecordLinkManager;
|
|
81
81
|
setRecord(sourceRecord: any): void;
|
|
82
82
|
/**
|
|
83
83
|
* Search records with manual pagination control
|
package/dist/db-sdk-v2/UserDb.js
CHANGED
|
@@ -50,12 +50,6 @@ class UserDb extends db_provider_1.DbProvider {
|
|
|
50
50
|
}
|
|
51
51
|
return this._timeslot;
|
|
52
52
|
}
|
|
53
|
-
get team() {
|
|
54
|
-
if (!this._team) {
|
|
55
|
-
this._team = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'IdentityModule:Team', 'Team_User');
|
|
56
|
-
}
|
|
57
|
-
return this._team;
|
|
58
|
-
}
|
|
59
53
|
get returns() {
|
|
60
54
|
if (!this._returns) {
|
|
61
55
|
this._returns = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'FieldServiceModule:Returns', 'Returns__Inspected_By');
|
|
@@ -188,12 +182,6 @@ class UserDb extends db_provider_1.DbProvider {
|
|
|
188
182
|
}
|
|
189
183
|
return this._twiliouserupdate;
|
|
190
184
|
}
|
|
191
|
-
get salesterritory() {
|
|
192
|
-
if (!this._salesterritory) {
|
|
193
|
-
this._salesterritory = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'CrmModule:SalesTerritory', 'SalesTerritory__User');
|
|
194
|
-
}
|
|
195
|
-
return this._salesterritory;
|
|
196
|
-
}
|
|
197
185
|
get calltransfer_toagent() {
|
|
198
186
|
if (!this._calltransfer_toagent) {
|
|
199
187
|
this._calltransfer_toagent = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'NotificationModule:CallTransfer', 'CallTransfer_ToAgent');
|
|
@@ -206,6 +194,18 @@ class UserDb extends db_provider_1.DbProvider {
|
|
|
206
194
|
}
|
|
207
195
|
return this._calltransfer_fromagent;
|
|
208
196
|
}
|
|
197
|
+
get team() {
|
|
198
|
+
if (!this._team) {
|
|
199
|
+
this._team = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'IdentityModule:Team', 'Team_User');
|
|
200
|
+
}
|
|
201
|
+
return this._team;
|
|
202
|
+
}
|
|
203
|
+
get salesterritory() {
|
|
204
|
+
if (!this._salesterritory) {
|
|
205
|
+
this._salesterritory = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'IdentityModule:User', 'CrmModule:SalesTerritory', 'SalesTerritory__User');
|
|
206
|
+
}
|
|
207
|
+
return this._salesterritory;
|
|
208
|
+
}
|
|
209
209
|
// ============================================
|
|
210
210
|
// STANDARD METHODS
|
|
211
211
|
// ============================================
|
|
@@ -229,6 +229,21 @@ export declare enum AccountPreviousProvider {
|
|
|
229
229
|
VIRGIN_MEDIA = "VIRGIN_MEDIA",
|
|
230
230
|
VODAFONE = "VODAFONE"
|
|
231
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* Valid values for Account.Type
|
|
234
|
+
*
|
|
235
|
+
* Type of accounts (Sales - Account)
|
|
236
|
+
*
|
|
237
|
+
* @remarks Available options:
|
|
238
|
+
* - `BUSINESS` - Business
|
|
239
|
+
* - `LANDLORD` - Landlord
|
|
240
|
+
* - `RESIDENTIAL` - Residential
|
|
241
|
+
*/
|
|
242
|
+
export declare enum AccountType {
|
|
243
|
+
BUSINESS = "BUSINESS",
|
|
244
|
+
LANDLORD = "LANDLORD",
|
|
245
|
+
RESIDENTIAL = "RESIDENTIAL"
|
|
246
|
+
}
|
|
232
247
|
/**
|
|
233
248
|
* Property keys for Account
|
|
234
249
|
* Use these constants instead of string literals for type safety
|
|
@@ -255,7 +270,9 @@ export declare enum AccountPropertyKeys {
|
|
|
255
270
|
/** the billing address (Sales - Account) */
|
|
256
271
|
AddressId = "AddressId",
|
|
257
272
|
/** Copy and paste address title please */
|
|
258
|
-
Name = "Name"
|
|
273
|
+
Name = "Name",
|
|
274
|
+
/** Type of accounts (Sales - Account) */
|
|
275
|
+
Type = "Type"
|
|
259
276
|
}
|
|
260
277
|
/**
|
|
261
278
|
* Properties for Account records
|
|
@@ -328,6 +345,13 @@ export interface AccountProperties {
|
|
|
328
345
|
* @hidden This field is hidden in the UI
|
|
329
346
|
*/
|
|
330
347
|
Name: string;
|
|
348
|
+
/** Type of accounts (Sales - Account)
|
|
349
|
+
*
|
|
350
|
+
* @type {ENUM}
|
|
351
|
+
* @enum {AccountType}
|
|
352
|
+
* @hidden This field is hidden in the UI
|
|
353
|
+
*/
|
|
354
|
+
Type: AccountType;
|
|
331
355
|
}
|
|
332
356
|
/**
|
|
333
357
|
* Properties for BUSINESS Account records
|
|
@@ -400,6 +424,13 @@ export interface BusinessAccountProperties {
|
|
|
400
424
|
* @hidden This field is hidden in the UI
|
|
401
425
|
*/
|
|
402
426
|
Name: string;
|
|
427
|
+
/** Type of accounts (Sales - Account)
|
|
428
|
+
*
|
|
429
|
+
* @type {ENUM}
|
|
430
|
+
* @enum {AccountType}
|
|
431
|
+
* @hidden This field is hidden in the UI
|
|
432
|
+
*/
|
|
433
|
+
Type: AccountType;
|
|
403
434
|
}
|
|
404
435
|
/**
|
|
405
436
|
* Properties for MULTIPLE Account records
|
|
@@ -472,6 +503,13 @@ export interface MultipleAccountProperties {
|
|
|
472
503
|
* @hidden This field is hidden in the UI
|
|
473
504
|
*/
|
|
474
505
|
Name: string;
|
|
506
|
+
/** Type of accounts (Sales - Account)
|
|
507
|
+
*
|
|
508
|
+
* @type {ENUM}
|
|
509
|
+
* @enum {AccountType}
|
|
510
|
+
* @hidden This field is hidden in the UI
|
|
511
|
+
*/
|
|
512
|
+
Type: AccountType;
|
|
475
513
|
}
|
|
476
514
|
/**
|
|
477
515
|
* Properties for PRIMARY Account records
|
|
@@ -544,6 +582,13 @@ export interface PrimaryAccountProperties {
|
|
|
544
582
|
* @hidden This field is hidden in the UI
|
|
545
583
|
*/
|
|
546
584
|
Name: string;
|
|
585
|
+
/** Type of accounts (Sales - Account)
|
|
586
|
+
*
|
|
587
|
+
* @type {ENUM}
|
|
588
|
+
* @enum {AccountType}
|
|
589
|
+
* @hidden This field is hidden in the UI
|
|
590
|
+
*/
|
|
591
|
+
Type: AccountType;
|
|
547
592
|
}
|
|
548
593
|
/**
|
|
549
594
|
* Properties for RESELLER Account records
|
|
@@ -616,6 +661,13 @@ export interface ResellerAccountProperties {
|
|
|
616
661
|
* @hidden This field is hidden in the UI
|
|
617
662
|
*/
|
|
618
663
|
Name: string;
|
|
664
|
+
/** Type of accounts (Sales - Account)
|
|
665
|
+
*
|
|
666
|
+
* @type {ENUM}
|
|
667
|
+
* @enum {AccountType}
|
|
668
|
+
* @hidden This field is hidden in the UI
|
|
669
|
+
*/
|
|
670
|
+
Type: AccountType;
|
|
619
671
|
}
|
|
620
672
|
/**
|
|
621
673
|
* Properties for SERVICE Account records
|
|
@@ -688,6 +740,13 @@ export interface ServiceAccountProperties {
|
|
|
688
740
|
* @hidden This field is hidden in the UI
|
|
689
741
|
*/
|
|
690
742
|
Name: string;
|
|
743
|
+
/** Type of accounts (Sales - Account)
|
|
744
|
+
*
|
|
745
|
+
* @type {ENUM}
|
|
746
|
+
* @enum {AccountType}
|
|
747
|
+
* @hidden This field is hidden in the UI
|
|
748
|
+
*/
|
|
749
|
+
Type: AccountType;
|
|
691
750
|
}
|
|
692
751
|
/**
|
|
693
752
|
* Account entity from CrmModule
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
16
|
-
exports.ROUTING_KEY_LINK_ACCOUNT_FILE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_FILE_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_MOBILE_CONFIGURATION_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_MOBILE_CONFIGURATION_CREATED = exports.ROUTING_KEY_LINK_BILLING_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_BILLING_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_CASE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_CASE_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_PAYMENT_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_PAYMENT_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_ACCOUNT_DELETED = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_ACCOUNT_ONE_TOUCH_SWITCH_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_ONE_TOUCH_SWITCH_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_ORDER_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_ORDER_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_INVOICE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_INVOICE_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_BILLING_CONTACT_DELETED = exports.ROUTING_KEY_LINK_BILLING_CONTACT_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_ORGANIZATION_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_ORGANIZATION_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_NOTE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_NOTE_CREATED = exports.ROUTING_KEY_ACCOUNT_SERVICE_DELETED = exports.ROUTING_KEY_ACCOUNT_SERVICE_UPDATED = exports.ROUTING_KEY_ACCOUNT_SERVICE_CREATED = exports.ROUTING_KEY_ACCOUNT_RESELLER_DELETED = exports.ROUTING_KEY_ACCOUNT_RESELLER_UPDATED = exports.ROUTING_KEY_ACCOUNT_RESELLER_CREATED = exports.ROUTING_KEY_ACCOUNT_PRIMARY_DELETED = exports.ROUTING_KEY_ACCOUNT_PRIMARY_UPDATED = exports.ROUTING_KEY_ACCOUNT_PRIMARY_CREATED = exports.ROUTING_KEY_ACCOUNT_MULTIPLE_DELETED = exports.ROUTING_KEY_ACCOUNT_MULTIPLE_UPDATED = exports.ROUTING_KEY_ACCOUNT_MULTIPLE_CREATED = exports.ROUTING_KEY_ACCOUNT_BUSINESS_DELETED = exports.ROUTING_KEY_ACCOUNT_BUSINESS_UPDATED = exports.ROUTING_KEY_ACCOUNT_BUSINESS_CREATED = exports.ROUTING_KEY_ACCOUNT_DELETED = exports.ROUTING_KEY_ACCOUNT_UPDATED = exports.ROUTING_KEY_ACCOUNT_CREATED = exports.Account = exports.AccountPropertyKeys = exports.AccountType = exports.AccountPreviousProvider = exports.AccountGroupBilling = exports.AccountStatus = exports.AccountBillingMode = exports.ServiceAccountStageKeys = exports.ServiceAccountStageNames = exports.ResellerAccountStageKeys = exports.ResellerAccountStageNames = exports.PrimaryAccountStageKeys = exports.PrimaryAccountStageNames = exports.MultipleAccountStageKeys = exports.MultipleAccountStageNames = exports.BusinessAccountStageKeys = exports.BusinessAccountStageNames = exports.AccountEntityTypes = void 0;
|
|
16
|
+
exports.ROUTING_KEY_LINK_ACCOUNT_FILE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_FILE_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_MOBILE_CONFIGURATION_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_MOBILE_CONFIGURATION_CREATED = exports.ROUTING_KEY_LINK_BILLING_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_BILLING_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_CASE_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_CASE_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_PAYMENT_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_PAYMENT_CREATED = exports.ROUTING_KEY_LINK_ACCOUNT_ACCOUNT_DELETED = exports.ROUTING_KEY_LINK_ACCOUNT_ACCOUNT_CREATED = void 0;
|
|
17
17
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
18
|
/**
|
|
19
19
|
* Available types for Account records
|
|
@@ -236,6 +236,22 @@ var AccountPreviousProvider;
|
|
|
236
236
|
AccountPreviousProvider["VIRGIN_MEDIA"] = "VIRGIN_MEDIA";
|
|
237
237
|
AccountPreviousProvider["VODAFONE"] = "VODAFONE";
|
|
238
238
|
})(AccountPreviousProvider = exports.AccountPreviousProvider || (exports.AccountPreviousProvider = {}));
|
|
239
|
+
/**
|
|
240
|
+
* Valid values for Account.Type
|
|
241
|
+
*
|
|
242
|
+
* Type of accounts (Sales - Account)
|
|
243
|
+
*
|
|
244
|
+
* @remarks Available options:
|
|
245
|
+
* - `BUSINESS` - Business
|
|
246
|
+
* - `LANDLORD` - Landlord
|
|
247
|
+
* - `RESIDENTIAL` - Residential
|
|
248
|
+
*/
|
|
249
|
+
var AccountType;
|
|
250
|
+
(function (AccountType) {
|
|
251
|
+
AccountType["BUSINESS"] = "BUSINESS";
|
|
252
|
+
AccountType["LANDLORD"] = "LANDLORD";
|
|
253
|
+
AccountType["RESIDENTIAL"] = "RESIDENTIAL";
|
|
254
|
+
})(AccountType = exports.AccountType || (exports.AccountType = {}));
|
|
239
255
|
/**
|
|
240
256
|
* Property keys for Account
|
|
241
257
|
* Use these constants instead of string literals for type safety
|
|
@@ -264,6 +280,8 @@ var AccountPropertyKeys;
|
|
|
264
280
|
AccountPropertyKeys["AddressId"] = "AddressId";
|
|
265
281
|
/** Copy and paste address title please */
|
|
266
282
|
AccountPropertyKeys["Name"] = "Name";
|
|
283
|
+
/** Type of accounts (Sales - Account) */
|
|
284
|
+
AccountPropertyKeys["Type"] = "Type";
|
|
267
285
|
})(AccountPropertyKeys = exports.AccountPropertyKeys || (exports.AccountPropertyKeys = {}));
|
|
268
286
|
/**
|
|
269
287
|
* Account entity from CrmModule
|
|
@@ -36,6 +36,23 @@ export declare enum ActivityLogPriority {
|
|
|
36
36
|
HIGH_PRIORITY = "HIGH_PRIORITY",
|
|
37
37
|
LOW_PRIORITY = "LOW_PRIORITY"
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Valid values for ActivityLog.Type
|
|
41
|
+
*
|
|
42
|
+
* the type of activity being recorded INFO, WARNING etc. (Compliance - ActivityLog)
|
|
43
|
+
*
|
|
44
|
+
* @remarks Available options:
|
|
45
|
+
* - `ERROR` - Error
|
|
46
|
+
* - `INFO` - Info
|
|
47
|
+
* - `SUCCESS` - Success
|
|
48
|
+
* - `WARNING` - Warning
|
|
49
|
+
*/
|
|
50
|
+
export declare enum ActivityLogType {
|
|
51
|
+
ERROR = "ERROR",
|
|
52
|
+
INFO = "INFO",
|
|
53
|
+
SUCCESS = "SUCCESS",
|
|
54
|
+
WARNING = "WARNING"
|
|
55
|
+
}
|
|
39
56
|
/**
|
|
40
57
|
* Property keys for ActivityLog
|
|
41
58
|
* Use these constants instead of string literals for type safety
|
|
@@ -46,7 +63,9 @@ export declare enum ActivityLogPropertyKeys {
|
|
|
46
63
|
/** summary of the activity (Compliance - ActivityLog) */
|
|
47
64
|
Summary = "Summary",
|
|
48
65
|
/** Store a JSON object with data (Compliance - ActivityLog) */
|
|
49
|
-
Data = "Data"
|
|
66
|
+
Data = "Data",
|
|
67
|
+
/** the type of activity being recorded INFO, WARNING etc. (Compliance - ActivityLog) */
|
|
68
|
+
Type = "Type"
|
|
50
69
|
}
|
|
51
70
|
/**
|
|
52
71
|
* Properties for ActivityLog records
|
|
@@ -71,6 +90,12 @@ export interface ActivityLogProperties {
|
|
|
71
90
|
* @type {JSON}
|
|
72
91
|
*/
|
|
73
92
|
Data: string;
|
|
93
|
+
/** the type of activity being recorded INFO, WARNING etc. (Compliance - ActivityLog)
|
|
94
|
+
*
|
|
95
|
+
* @type {ENUM}
|
|
96
|
+
* @enum {ActivityLogType}
|
|
97
|
+
*/
|
|
98
|
+
Type: ActivityLogType;
|
|
74
99
|
}
|
|
75
100
|
/**
|
|
76
101
|
* ActivityLog entity from AuditModule
|
|
@@ -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_ACTIVITY_LOG_DEFAULT_DELETED = exports.ROUTING_KEY_ACTIVITY_LOG_DEFAULT_UPDATED = exports.ROUTING_KEY_ACTIVITY_LOG_DEFAULT_CREATED = exports.ROUTING_KEY_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_ACTIVITY_LOG_UPDATED = exports.ROUTING_KEY_ACTIVITY_LOG_CREATED = exports.ActivityLog = exports.ActivityLogPropertyKeys = exports.ActivityLogPriority = exports.ActivityLogEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_ACTIVITY_LOG_DEFAULT_DELETED = exports.ROUTING_KEY_ACTIVITY_LOG_DEFAULT_UPDATED = exports.ROUTING_KEY_ACTIVITY_LOG_DEFAULT_CREATED = exports.ROUTING_KEY_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_ACTIVITY_LOG_UPDATED = exports.ROUTING_KEY_ACTIVITY_LOG_CREATED = exports.ActivityLog = exports.ActivityLogPropertyKeys = exports.ActivityLogType = exports.ActivityLogPriority = exports.ActivityLogEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for ActivityLog records
|
|
@@ -36,6 +36,24 @@ var ActivityLogPriority;
|
|
|
36
36
|
ActivityLogPriority["HIGH_PRIORITY"] = "HIGH_PRIORITY";
|
|
37
37
|
ActivityLogPriority["LOW_PRIORITY"] = "LOW_PRIORITY";
|
|
38
38
|
})(ActivityLogPriority = exports.ActivityLogPriority || (exports.ActivityLogPriority = {}));
|
|
39
|
+
/**
|
|
40
|
+
* Valid values for ActivityLog.Type
|
|
41
|
+
*
|
|
42
|
+
* the type of activity being recorded INFO, WARNING etc. (Compliance - ActivityLog)
|
|
43
|
+
*
|
|
44
|
+
* @remarks Available options:
|
|
45
|
+
* - `ERROR` - Error
|
|
46
|
+
* - `INFO` - Info
|
|
47
|
+
* - `SUCCESS` - Success
|
|
48
|
+
* - `WARNING` - Warning
|
|
49
|
+
*/
|
|
50
|
+
var ActivityLogType;
|
|
51
|
+
(function (ActivityLogType) {
|
|
52
|
+
ActivityLogType["ERROR"] = "ERROR";
|
|
53
|
+
ActivityLogType["INFO"] = "INFO";
|
|
54
|
+
ActivityLogType["SUCCESS"] = "SUCCESS";
|
|
55
|
+
ActivityLogType["WARNING"] = "WARNING";
|
|
56
|
+
})(ActivityLogType = exports.ActivityLogType || (exports.ActivityLogType = {}));
|
|
39
57
|
/**
|
|
40
58
|
* Property keys for ActivityLog
|
|
41
59
|
* Use these constants instead of string literals for type safety
|
|
@@ -48,6 +66,8 @@ var ActivityLogPropertyKeys;
|
|
|
48
66
|
ActivityLogPropertyKeys["Summary"] = "Summary";
|
|
49
67
|
/** Store a JSON object with data (Compliance - ActivityLog) */
|
|
50
68
|
ActivityLogPropertyKeys["Data"] = "Data";
|
|
69
|
+
/** the type of activity being recorded INFO, WARNING etc. (Compliance - ActivityLog) */
|
|
70
|
+
ActivityLogPropertyKeys["Type"] = "Type";
|
|
51
71
|
})(ActivityLogPropertyKeys = exports.ActivityLogPropertyKeys || (exports.ActivityLogPropertyKeys = {}));
|
|
52
72
|
/**
|
|
53
73
|
* ActivityLog entity from AuditModule
|