@d19n/youfibre-odin-sdk 1.0.54 → 1.0.56
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/dist/api-sdk-v2/ContactApi.d.ts +15 -15
- package/dist/api-sdk-v2/ContactApi.js +15 -15
- package/dist/api-sdk-v2/McPendingEventApi.d.ts +37 -0
- package/dist/api-sdk-v2/McPendingEventApi.js +127 -0
- package/dist/api-sdk-v2/MobileConfigurationApi.d.ts +2 -0
- package/dist/api-sdk-v2/MobileConfigurationApi.js +2 -0
- package/dist/api-sdk-v2/MobileSubscriberApi.d.ts +35 -0
- package/dist/api-sdk-v2/MobileSubscriberApi.js +125 -0
- package/dist/api-sdk-v2/MsPendingEventApi.d.ts +35 -0
- package/dist/api-sdk-v2/MsPendingEventApi.js +125 -0
- package/dist/api-sdk-v2/WorkOrderApi.d.ts +10 -10
- package/dist/api-sdk-v2/WorkOrderApi.js +10 -10
- package/dist/db-sdk-v2/CaseDb.d.ts +3 -3
- package/dist/db-sdk-v2/CaseDb.js +3 -3
- package/dist/db-sdk-v2/McPendingEventDb.d.ts +26 -0
- package/dist/db-sdk-v2/McPendingEventDb.js +104 -0
- package/dist/db-sdk-v2/MobileConfigurationDb.d.ts +2 -0
- package/dist/db-sdk-v2/MobileConfigurationDb.js +2 -0
- package/dist/db-sdk-v2/MobileSubscriberDb.d.ts +24 -0
- package/dist/db-sdk-v2/MobileSubscriberDb.js +102 -0
- package/dist/db-sdk-v2/MsPendingEventDb.d.ts +24 -0
- package/dist/db-sdk-v2/MsPendingEventDb.js +102 -0
- package/dist/db-sdk-v2/WorkOrderDb.d.ts +10 -10
- package/dist/db-sdk-v2/WorkOrderDb.js +10 -10
- package/dist/entities-v2/BillingAdjustment.d.ts +12 -12
- package/dist/entities-v2/BillingAdjustment.js +10 -10
- package/dist/entities-v2/Case.d.ts +11 -4
- package/dist/entities-v2/Case.js +15 -8
- package/dist/entities-v2/CollectionWorkOrder.d.ts +2 -2
- package/dist/entities-v2/EventMessage.d.ts +3 -3
- package/dist/entities-v2/EventMessage.js +1 -1
- package/dist/entities-v2/File.d.ts +0 -1
- package/dist/entities-v2/FinanceWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InspectionWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InstallBusinessWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InstallServiceWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InstallWorkOrder.d.ts +2 -2
- package/dist/entities-v2/Lead.d.ts +52 -53
- package/dist/entities-v2/Lead.js +30 -30
- package/dist/entities-v2/McPendingEvent.d.ts +61 -0
- package/dist/entities-v2/McPendingEvent.js +33 -0
- package/dist/entities-v2/Message.d.ts +3 -3
- package/dist/entities-v2/Message.js +1 -1
- package/dist/entities-v2/MobileConfiguration.d.ts +3 -1
- package/dist/entities-v2/MobileSubscriber.d.ts +49 -0
- package/dist/entities-v2/MobileSubscriber.js +25 -0
- package/dist/entities-v2/MsPendingEvent.d.ts +49 -0
- package/dist/entities-v2/MsPendingEvent.js +25 -0
- package/dist/entities-v2/NetworkAdjustmentWorkOrder.d.ts +2 -2
- package/dist/entities-v2/OutageCase.d.ts +11 -4
- package/dist/entities-v2/OutageCase.js +15 -8
- package/dist/entities-v2/PlanningWorkOrder.d.ts +2 -2
- package/dist/entities-v2/PrePullWorkOrder.d.ts +2 -2
- package/dist/entities-v2/RemediationWorkOrder.d.ts +2 -2
- package/dist/entities-v2/ServiceWorkOrder.d.ts +2 -2
- package/dist/entities-v2/Visit.d.ts +60 -60
- package/dist/entities-v2/Visit.js +49 -49
- package/dist/entities-v2/WayleaveWorkOrder.d.ts +2 -2
- package/dist/entities-v2/WorkOrder.d.ts +1 -1
- package/dist/types-v1/Types.d.ts +5 -2
- package/dist/types-v1/Types.js +5 -2
- package/package.json +1 -1
- package/src/api-sdk-v2/ContactApi.ts +84 -84
- package/src/api-sdk-v2/McPendingEventApi.ts +138 -0
- package/src/api-sdk-v2/MobileConfigurationApi.ts +6 -0
- package/src/api-sdk-v2/MobileSubscriberApi.ts +132 -0
- package/src/api-sdk-v2/MsPendingEventApi.ts +132 -0
- package/src/api-sdk-v2/WorkOrderApi.ts +54 -54
- package/src/db-sdk-v2/CaseDb.ts +18 -18
- package/src/db-sdk-v2/McPendingEventDb.ts +121 -0
- package/src/db-sdk-v2/MobileConfigurationDb.ts +8 -0
- package/src/db-sdk-v2/MobileSubscriberDb.ts +113 -0
- package/src/db-sdk-v2/MsPendingEventDb.ts +113 -0
- package/src/db-sdk-v2/WorkOrderDb.ts +69 -69
- package/src/entities-v2/BillingAdjustment.ts +16 -16
- package/src/entities-v2/Case.ts +11 -3
- package/src/entities-v2/CollectionWorkOrder.ts +2 -2
- package/src/entities-v2/EventMessage.ts +3 -3
- package/src/entities-v2/File.ts +0 -1
- package/src/entities-v2/FinanceWorkOrder.ts +2 -2
- package/src/entities-v2/InspectionWorkOrder.ts +2 -2
- package/src/entities-v2/InstallBusinessWorkOrder.ts +2 -2
- package/src/entities-v2/InstallServiceWorkOrder.ts +2 -2
- package/src/entities-v2/InstallWorkOrder.ts +2 -2
- package/src/entities-v2/Lead.ts +74 -75
- package/src/entities-v2/McPendingEvent.ts +68 -0
- package/src/entities-v2/Message.ts +3 -3
- package/src/entities-v2/MobileConfiguration.ts +2 -0
- package/src/entities-v2/MobileSubscriber.ts +53 -0
- package/src/entities-v2/MsPendingEvent.ts +53 -0
- package/src/entities-v2/NetworkAdjustmentWorkOrder.ts +2 -2
- package/src/entities-v2/OutageCase.ts +11 -3
- package/src/entities-v2/PlanningWorkOrder.ts +2 -2
- package/src/entities-v2/PrePullWorkOrder.ts +2 -2
- package/src/entities-v2/RemediationWorkOrder.ts +2 -2
- package/src/entities-v2/ServiceWorkOrder.ts +2 -2
- package/src/entities-v2/Visit.ts +75 -75
- package/src/entities-v2/WayleaveWorkOrder.ts +2 -2
- package/src/entities-v2/WorkOrder.ts +1 -1
- package/src/types-v1/Types.ts +5 -2
|
@@ -8,32 +8,32 @@ export declare class ContactApi extends ApiProvider {
|
|
|
8
8
|
private readonly moduleName;
|
|
9
9
|
private readonly entityName;
|
|
10
10
|
private sourceRecord;
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly workorder__contact: ApiRecordLinkManager;
|
|
14
|
-
readonly order__contact: ApiRecordLinkManager;
|
|
15
|
-
readonly lead__contact: ApiRecordLinkManager;
|
|
16
|
-
readonly invoice__contact: ApiRecordLinkManager;
|
|
17
|
-
readonly commission__contact: ApiRecordLinkManager;
|
|
18
|
-
readonly contact__contact: ApiRecordLinkManager;
|
|
19
|
-
readonly onetouchswitch__contact: ApiRecordLinkManager;
|
|
20
|
-
readonly deactivationapproval__contact: ApiRecordLinkManager;
|
|
21
|
-
readonly orderremediationtask__contact: ApiRecordLinkManager;
|
|
22
|
-
readonly call__contact: ApiRecordLinkManager;
|
|
23
|
-
readonly fingerprint__contact: ApiRecordLinkManager;
|
|
24
|
-
readonly case__contact: ApiRecordLinkManager;
|
|
25
|
-
readonly email_contact: ApiRecordLinkManager;
|
|
11
|
+
readonly organization: ApiRecordLinkManager;
|
|
12
|
+
readonly account: ApiRecordLinkManager;
|
|
26
13
|
readonly activity: ApiRecordLinkManager;
|
|
27
14
|
readonly note: ApiRecordLinkManager;
|
|
15
|
+
readonly workorder: ApiRecordLinkManager;
|
|
16
|
+
readonly order: ApiRecordLinkManager;
|
|
17
|
+
readonly lead: ApiRecordLinkManager;
|
|
28
18
|
readonly address: ApiRecordLinkManager;
|
|
29
19
|
readonly smsmessage: ApiRecordLinkManager;
|
|
20
|
+
readonly invoice: ApiRecordLinkManager;
|
|
30
21
|
readonly billingrequest: ApiRecordLinkManager;
|
|
31
22
|
readonly file: ApiRecordLinkManager;
|
|
23
|
+
readonly commission: ApiRecordLinkManager;
|
|
24
|
+
readonly contact: ApiRecordLinkManager;
|
|
25
|
+
readonly onetouchswitch: ApiRecordLinkManager;
|
|
32
26
|
readonly contactidentity: ApiRecordLinkManager;
|
|
33
27
|
readonly paymentmethodrefund: ApiRecordLinkManager;
|
|
28
|
+
readonly deactivationapproval: ApiRecordLinkManager;
|
|
34
29
|
readonly phonenumber: ApiRecordLinkManager;
|
|
30
|
+
readonly orderremediationtask: ApiRecordLinkManager;
|
|
35
31
|
readonly appointment: ApiRecordLinkManager;
|
|
32
|
+
readonly call: ApiRecordLinkManager;
|
|
33
|
+
readonly fingerprint: ApiRecordLinkManager;
|
|
36
34
|
readonly paymentmethod: ApiRecordLinkManager;
|
|
35
|
+
readonly case: ApiRecordLinkManager;
|
|
36
|
+
readonly email: ApiRecordLinkManager;
|
|
37
37
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
38
38
|
setRecord(sourceRecord: any): void;
|
|
39
39
|
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
@@ -18,32 +18,32 @@ class ContactApi extends api_provider_1.ApiProvider {
|
|
|
18
18
|
this.authToken = authToken;
|
|
19
19
|
this.moduleName = 'CrmModule';
|
|
20
20
|
this.entityName = 'Contact';
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
this.workorder__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'WorkOrder__Contact');
|
|
24
|
-
this.order__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Order__Contact');
|
|
25
|
-
this.lead__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Lead__Contact');
|
|
26
|
-
this.invoice__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Invoice__Contact');
|
|
27
|
-
this.commission__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Commission__Contact');
|
|
28
|
-
this.contact__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
|
|
29
|
-
this.onetouchswitch__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'OneTouchSwitch__Contact');
|
|
30
|
-
this.deactivationapproval__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'DeactivationApproval__Contact');
|
|
31
|
-
this.orderremediationtask__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'OrderRemediationTask__Contact');
|
|
32
|
-
this.call__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Call__Contact');
|
|
33
|
-
this.fingerprint__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Fingerprint__Contact');
|
|
34
|
-
this.case__contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Case__Contact');
|
|
35
|
-
this.email_contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Email_Contact');
|
|
21
|
+
this.organization = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Organization', 'Organization__Contact');
|
|
22
|
+
this.account = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Account', 'BillingContact');
|
|
36
23
|
this.activity = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SchemaModule:Activity', 'Contact__Activity');
|
|
37
24
|
this.note = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SupportModule:Note', 'Contact__Note');
|
|
25
|
+
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
|
|
26
|
+
this.order = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
|
|
27
|
+
this.lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Lead', 'Lead__Contact');
|
|
38
28
|
this.address = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
|
|
39
29
|
this.smsmessage = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'NotificationModule:SmsMessage', 'Contact__SmsMessage');
|
|
30
|
+
this.invoice = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:Invoice', 'Invoice__Contact');
|
|
40
31
|
this.billingrequest = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
|
|
41
32
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SchemaModule:File', 'Contact__File');
|
|
33
|
+
this.commission = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:Commission', 'Commission__Contact');
|
|
34
|
+
this.contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
|
|
35
|
+
this.onetouchswitch = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Contact');
|
|
42
36
|
this.contactidentity = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
|
|
43
37
|
this.paymentmethodrefund = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:PaymentMethodRefund', 'Contact__PaymentMethodRefund');
|
|
38
|
+
this.deactivationapproval = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:DeactivationApproval', 'DeactivationApproval__Contact');
|
|
44
39
|
this.phonenumber = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:PhoneNumber', 'Contact__PhoneNumber');
|
|
40
|
+
this.orderremediationtask = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'OrderModule:OrderRemediationTask', 'OrderRemediationTask__Contact');
|
|
45
41
|
this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Appointment', 'Contact__Appointment');
|
|
42
|
+
this.call = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'NotificationModule:Call', 'Call__Contact');
|
|
43
|
+
this.fingerprint = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Fingerprint', 'Fingerprint__Contact');
|
|
46
44
|
this.paymentmethod = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:PaymentMethod', 'Contact__PaymentMethod');
|
|
45
|
+
this.case = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SupportModule:Case', 'Case__Contact');
|
|
46
|
+
this.email = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'NotificationModule:Email', 'Email_Contact');
|
|
47
47
|
}
|
|
48
48
|
setRecord(sourceRecord) {
|
|
49
49
|
this.sourceRecord = sourceRecord;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
6
|
+
export declare class McPendingEventApi extends ApiProvider {
|
|
7
|
+
protected readonly authToken?: string;
|
|
8
|
+
private readonly moduleName;
|
|
9
|
+
private readonly entityName;
|
|
10
|
+
private sourceRecord;
|
|
11
|
+
readonly mobileconfiguration: ApiRecordLinkManager;
|
|
12
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
13
|
+
setRecord(sourceRecord: any): void;
|
|
14
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
15
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
16
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
17
|
+
reIndex(body: {
|
|
18
|
+
id: string;
|
|
19
|
+
schemaId: string;
|
|
20
|
+
}[]): Promise<any>;
|
|
21
|
+
get(mcPendingEventId: string): Promise<any>;
|
|
22
|
+
getMany(mcPendingEventIds: string[]): Promise<any[]>;
|
|
23
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<any>;
|
|
24
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
|
|
25
|
+
update(updateDto: OdinRecordUpdateDto): Promise<any>;
|
|
26
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
27
|
+
delete(mcPendingEventId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
28
|
+
deleteMany(mcPendingEventIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
29
|
+
restore(mcPendingEventIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
30
|
+
applyAction(actionName: string, dtos: any[]): Promise<any[]>;
|
|
31
|
+
getVersions(): Promise<{
|
|
32
|
+
[key: string]: Record<string, any>;
|
|
33
|
+
}>;
|
|
34
|
+
getRevisionTimeline(): Promise<{
|
|
35
|
+
[key: string]: Record<string, any>[];
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
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.McPendingEventApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
class McPendingEventApi extends api_provider_1.ApiProvider {
|
|
16
|
+
constructor(authParams, authToken) {
|
|
17
|
+
super(authParams, authToken);
|
|
18
|
+
this.authToken = authToken;
|
|
19
|
+
this.moduleName = 'ServiceModule';
|
|
20
|
+
this.entityName = 'McPendingEvent';
|
|
21
|
+
this.mobileconfiguration = new api_record_link_manager_1.ApiRecordLinkManager('ServiceModule:McPendingEvent', 'ServiceModule:MobileConfiguration', 'MobileConfiguration__MCPendingEvent');
|
|
22
|
+
}
|
|
23
|
+
setRecord(sourceRecord) {
|
|
24
|
+
this.sourceRecord = sourceRecord;
|
|
25
|
+
}
|
|
26
|
+
schema() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
32
|
+
search(params) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
// Use this function when you want paginating through the results to be handled
|
|
38
|
+
searchAndPaginate(params) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
// Use this function to re-index records in elastic search
|
|
44
|
+
reIndex(body) {
|
|
45
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
return yield this._reIndexRecords(body);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
// Use this function when you want to return a single record
|
|
50
|
+
get(mcPendingEventId) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mcPendingEventId);
|
|
53
|
+
this.setRecord(res);
|
|
54
|
+
return res;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
// Use this function when you want to return many records by primaryKeys
|
|
58
|
+
getMany(mcPendingEventIds) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mcPendingEventIds);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
// Use this function when you want to upsert one record
|
|
64
|
+
upsert(upsertDto) {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
67
|
+
return res[0];
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
// Use this function when you want to upsert many records
|
|
71
|
+
upsertMany(upsertDtos) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
// Use this function when you want to update one record
|
|
77
|
+
update(updateDto) {
|
|
78
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
80
|
+
return res[0];
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
// Use this function when you want to update many records
|
|
84
|
+
updateMany(updateDtos) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
// Use this function when you want to delete one record
|
|
90
|
+
delete(mcPendingEventId) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const res = yield this._delete(this.moduleName, this.entityName, [mcPendingEventId]);
|
|
93
|
+
return res[0];
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
// Use this function when you want to delete many records
|
|
97
|
+
deleteMany(mcPendingEventIds) {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
return yield this._delete(this.moduleName, this.entityName, mcPendingEventIds);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
// Use this function when you want to restore one or many records
|
|
103
|
+
restore(mcPendingEventIds) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
return yield this._restore(this.moduleName, this.entityName, mcPendingEventIds);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
// Use this function when you want to apply actions
|
|
109
|
+
applyAction(actionName, dtos) {
|
|
110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
+
return yield this._applyAction(this.moduleName, this.entityName, actionName, dtos);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
// Use this function when you want to return the versions for a single record
|
|
115
|
+
getVersions() {
|
|
116
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
// Use this function when you want to return the change history for a single record
|
|
121
|
+
getRevisionTimeline() {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.McPendingEventApi = McPendingEventApi;
|
|
@@ -2,11 +2,13 @@ import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
|
2
2
|
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
3
|
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
4
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
5
6
|
export declare class MobileConfigurationApi extends ApiProvider {
|
|
6
7
|
protected readonly authToken?: string;
|
|
7
8
|
private readonly moduleName;
|
|
8
9
|
private readonly entityName;
|
|
9
10
|
private sourceRecord;
|
|
11
|
+
readonly mcpendingevent: ApiRecordLinkManager;
|
|
10
12
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
11
13
|
setRecord(sourceRecord: any): void;
|
|
12
14
|
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
@@ -11,12 +11,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.MobileConfigurationApi = void 0;
|
|
13
13
|
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
14
15
|
class MobileConfigurationApi extends api_provider_1.ApiProvider {
|
|
15
16
|
constructor(authParams, authToken) {
|
|
16
17
|
super(authParams, authToken);
|
|
17
18
|
this.authToken = authToken;
|
|
18
19
|
this.moduleName = 'ServiceModule';
|
|
19
20
|
this.entityName = 'MobileConfiguration';
|
|
21
|
+
this.mcpendingevent = new api_record_link_manager_1.ApiRecordLinkManager('ServiceModule:MobileConfiguration', 'ServiceModule:McPendingEvent', 'MobileConfiguration__MCPendingEvent');
|
|
20
22
|
}
|
|
21
23
|
setRecord(sourceRecord) {
|
|
22
24
|
this.sourceRecord = sourceRecord;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
export declare class MobileSubscriberApi extends ApiProvider {
|
|
6
|
+
protected readonly authToken?: string;
|
|
7
|
+
private readonly moduleName;
|
|
8
|
+
private readonly entityName;
|
|
9
|
+
private sourceRecord;
|
|
10
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
11
|
+
setRecord(sourceRecord: any): void;
|
|
12
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
13
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
14
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
15
|
+
reIndex(body: {
|
|
16
|
+
id: string;
|
|
17
|
+
schemaId: string;
|
|
18
|
+
}[]): Promise<any>;
|
|
19
|
+
get(mobileSubscriberId: string): Promise<any>;
|
|
20
|
+
getMany(mobileSubscriberIds: string[]): Promise<any[]>;
|
|
21
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<any>;
|
|
22
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
|
|
23
|
+
update(updateDto: OdinRecordUpdateDto): Promise<any>;
|
|
24
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
25
|
+
delete(mobileSubscriberId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
26
|
+
deleteMany(mobileSubscriberIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
27
|
+
restore(mobileSubscriberIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
28
|
+
applyAction(actionName: string, dtos: any[]): Promise<any[]>;
|
|
29
|
+
getVersions(): Promise<{
|
|
30
|
+
[key: string]: Record<string, any>;
|
|
31
|
+
}>;
|
|
32
|
+
getRevisionTimeline(): Promise<{
|
|
33
|
+
[key: string]: Record<string, any>[];
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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.MobileSubscriberApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
class MobileSubscriberApi extends api_provider_1.ApiProvider {
|
|
15
|
+
constructor(authParams, authToken) {
|
|
16
|
+
super(authParams, authToken);
|
|
17
|
+
this.authToken = authToken;
|
|
18
|
+
this.moduleName = 'ServiceModule';
|
|
19
|
+
this.entityName = 'MobileSubscriber';
|
|
20
|
+
}
|
|
21
|
+
setRecord(sourceRecord) {
|
|
22
|
+
this.sourceRecord = sourceRecord;
|
|
23
|
+
}
|
|
24
|
+
schema() {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
30
|
+
search(params) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// Use this function when you want paginating through the results to be handled
|
|
36
|
+
searchAndPaginate(params) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// Use this function to re-index records in elastic search
|
|
42
|
+
reIndex(body) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return yield this._reIndexRecords(body);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// Use this function when you want to return a single record
|
|
48
|
+
get(mobileSubscriberId) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileSubscriberId);
|
|
51
|
+
this.setRecord(res);
|
|
52
|
+
return res;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Use this function when you want to return many records by primaryKeys
|
|
56
|
+
getMany(mobileSubscriberIds) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileSubscriberIds);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// Use this function when you want to upsert one record
|
|
62
|
+
upsert(upsertDto) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
65
|
+
return res[0];
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
// Use this function when you want to upsert many records
|
|
69
|
+
upsertMany(upsertDtos) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
// Use this function when you want to update one record
|
|
75
|
+
update(updateDto) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
78
|
+
return res[0];
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
// Use this function when you want to update many records
|
|
82
|
+
updateMany(updateDtos) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
// Use this function when you want to delete one record
|
|
88
|
+
delete(mobileSubscriberId) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const res = yield this._delete(this.moduleName, this.entityName, [mobileSubscriberId]);
|
|
91
|
+
return res[0];
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
// Use this function when you want to delete many records
|
|
95
|
+
deleteMany(mobileSubscriberIds) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return yield this._delete(this.moduleName, this.entityName, mobileSubscriberIds);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
// Use this function when you want to restore one or many records
|
|
101
|
+
restore(mobileSubscriberIds) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return yield this._restore(this.moduleName, this.entityName, mobileSubscriberIds);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Use this function when you want to apply actions
|
|
107
|
+
applyAction(actionName, dtos) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._applyAction(this.moduleName, this.entityName, actionName, dtos);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// Use this function when you want to return the versions for a single record
|
|
113
|
+
getVersions() {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Use this function when you want to return the change history for a single record
|
|
119
|
+
getRevisionTimeline() {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.MobileSubscriberApi = MobileSubscriberApi;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
export declare class MsPendingEventApi extends ApiProvider {
|
|
6
|
+
protected readonly authToken?: string;
|
|
7
|
+
private readonly moduleName;
|
|
8
|
+
private readonly entityName;
|
|
9
|
+
private sourceRecord;
|
|
10
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
11
|
+
setRecord(sourceRecord: any): void;
|
|
12
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
13
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
14
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
15
|
+
reIndex(body: {
|
|
16
|
+
id: string;
|
|
17
|
+
schemaId: string;
|
|
18
|
+
}[]): Promise<any>;
|
|
19
|
+
get(msPendingEventId: string): Promise<any>;
|
|
20
|
+
getMany(msPendingEventIds: string[]): Promise<any[]>;
|
|
21
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<any>;
|
|
22
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
|
|
23
|
+
update(updateDto: OdinRecordUpdateDto): Promise<any>;
|
|
24
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
25
|
+
delete(msPendingEventId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
26
|
+
deleteMany(msPendingEventIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
27
|
+
restore(msPendingEventIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
28
|
+
applyAction(actionName: string, dtos: any[]): Promise<any[]>;
|
|
29
|
+
getVersions(): Promise<{
|
|
30
|
+
[key: string]: Record<string, any>;
|
|
31
|
+
}>;
|
|
32
|
+
getRevisionTimeline(): Promise<{
|
|
33
|
+
[key: string]: Record<string, any>[];
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
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.MsPendingEventApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
class MsPendingEventApi extends api_provider_1.ApiProvider {
|
|
15
|
+
constructor(authParams, authToken) {
|
|
16
|
+
super(authParams, authToken);
|
|
17
|
+
this.authToken = authToken;
|
|
18
|
+
this.moduleName = 'ServiceModule';
|
|
19
|
+
this.entityName = 'MsPendingEvent';
|
|
20
|
+
}
|
|
21
|
+
setRecord(sourceRecord) {
|
|
22
|
+
this.sourceRecord = sourceRecord;
|
|
23
|
+
}
|
|
24
|
+
schema() {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
30
|
+
search(params) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// Use this function when you want paginating through the results to be handled
|
|
36
|
+
searchAndPaginate(params) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// Use this function to re-index records in elastic search
|
|
42
|
+
reIndex(body) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return yield this._reIndexRecords(body);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// Use this function when you want to return a single record
|
|
48
|
+
get(msPendingEventId) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, msPendingEventId);
|
|
51
|
+
this.setRecord(res);
|
|
52
|
+
return res;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Use this function when you want to return many records by primaryKeys
|
|
56
|
+
getMany(msPendingEventIds) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, msPendingEventIds);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// Use this function when you want to upsert one record
|
|
62
|
+
upsert(upsertDto) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
|
|
65
|
+
return res[0];
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
// Use this function when you want to upsert many records
|
|
69
|
+
upsertMany(upsertDtos) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
// Use this function when you want to update one record
|
|
75
|
+
update(updateDto) {
|
|
76
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
77
|
+
const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
|
|
78
|
+
return res[0];
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
// Use this function when you want to update many records
|
|
82
|
+
updateMany(updateDtos) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
84
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
// Use this function when you want to delete one record
|
|
88
|
+
delete(msPendingEventId) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const res = yield this._delete(this.moduleName, this.entityName, [msPendingEventId]);
|
|
91
|
+
return res[0];
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
// Use this function when you want to delete many records
|
|
95
|
+
deleteMany(msPendingEventIds) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return yield this._delete(this.moduleName, this.entityName, msPendingEventIds);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
// Use this function when you want to restore one or many records
|
|
101
|
+
restore(msPendingEventIds) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return yield this._restore(this.moduleName, this.entityName, msPendingEventIds);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
// Use this function when you want to apply actions
|
|
107
|
+
applyAction(actionName, dtos) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
return yield this._applyAction(this.moduleName, this.entityName, actionName, dtos);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
// Use this function when you want to return the versions for a single record
|
|
113
|
+
getVersions() {
|
|
114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
115
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// Use this function when you want to return the change history for a single record
|
|
119
|
+
getRevisionTimeline() {
|
|
120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.MsPendingEventApi = MsPendingEventApi;
|