@d19n/youfibre-odin-sdk 1.0.69 → 1.0.72
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/Makefile +1 -1
- package/dist/api-sdk-v2/MobileCdrApi.d.ts +35 -0
- package/dist/api-sdk-v2/MobileCdrApi.js +125 -0
- package/dist/api-sdk-v2/MobileEdrApi.d.ts +35 -0
- package/dist/api-sdk-v2/MobileEdrApi.js +125 -0
- package/dist/db-sdk-v2/ContactDb.d.ts +15 -15
- package/dist/db-sdk-v2/ContactDb.js +15 -15
- package/dist/db-sdk-v2/MobileCdrDb.d.ts +24 -0
- package/dist/db-sdk-v2/MobileCdrDb.js +102 -0
- package/dist/db-sdk-v2/MobileEdrDb.d.ts +24 -0
- package/dist/db-sdk-v2/MobileEdrDb.js +102 -0
- package/dist/entities-v2/BlockageA55.d.ts +36 -36
- package/dist/entities-v2/BlockageA55.js +36 -36
- package/dist/entities-v2/ChangeReason.d.ts +2 -0
- package/dist/entities-v2/ChangeReason.js +2 -0
- package/dist/entities-v2/MobileCdr.d.ts +111 -0
- package/dist/entities-v2/MobileCdr.js +56 -0
- package/dist/entities-v2/MobileCountryRate.d.ts +13 -13
- package/dist/entities-v2/MobileCountryRate.js +6 -6
- package/dist/entities-v2/MobileEdr.d.ts +59 -0
- package/dist/entities-v2/MobileEdr.js +30 -0
- package/dist/entities-v2/OntReplacementApproval.d.ts +1 -0
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.d.ts +6 -2
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.js +5 -1
- package/dist/entities-v2/OverlayRealA55.d.ts +40 -40
- package/dist/entities-v2/OverlayRealA55.js +38 -38
- package/dist/entities-v2/PermissionToFail.d.ts +3 -1
- package/dist/entities-v2/PermissionToFail.js +1 -0
- package/dist/entities-v2/RemediationRequiredReason.d.ts +6 -2
- package/dist/entities-v2/RemediationRequiredReason.js +5 -1
- package/dist/entities-v2/SaCancelChangeReason.d.ts +1 -0
- package/dist/entities-v2/SaCancelChangeReason.js +1 -0
- package/dist/entities-v2/SaRescheduleChangeReason.d.ts +1 -0
- package/dist/entities-v2/SaRescheduleChangeReason.js +1 -0
- package/dist/entities-v2/ServiceWorkOrder.d.ts +2 -0
- package/dist/entities-v2/ServiceWorkOrder.js +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +2 -0
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/types-v1/Types.d.ts +5 -3
- package/dist/types-v1/Types.js +5 -3
- package/package.json +1 -1
- package/src/api-sdk-v2/MobileCdrApi.ts +132 -0
- package/src/api-sdk-v2/MobileEdrApi.ts +132 -0
- package/src/db-sdk-v2/ContactDb.ts +87 -87
- package/src/db-sdk-v2/MobileCdrDb.ts +113 -0
- package/src/db-sdk-v2/MobileEdrDb.ts +113 -0
- package/src/entities-v2/BlockageA55.ts +45 -45
- package/src/entities-v2/ChangeReason.ts +2 -0
- package/src/entities-v2/MobileCdr.ts +146 -0
- package/src/entities-v2/MobileCountryRate.ts +18 -18
- package/src/entities-v2/MobileEdr.ts +68 -0
- package/src/entities-v2/OntReplacementApproval.ts +1 -0
- package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +5 -1
- package/src/entities-v2/OverlayRealA55.ts +51 -51
- package/src/entities-v2/PermissionToFail.ts +3 -0
- package/src/entities-v2/RemediationRequiredReason.ts +5 -1
- package/src/entities-v2/SaCancelChangeReason.ts +1 -0
- package/src/entities-v2/SaRescheduleChangeReason.ts +1 -0
- package/src/entities-v2/ServiceWorkOrder.ts +2 -0
- package/src/entities-v2/WorkOrder.ts +2 -0
- package/src/types-v1/Types.ts +5 -3
package/Makefile
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
release:
|
|
5
|
-
|
|
5
|
+
git pull && npm i @d19n/odin-sdk-generator@latest && npm i @d19n/odin-types@latest && cd src/generators && ts-node runner.ts && cd ../.. && git add . && git commit -m "Updated SDK" && npm run release
|
|
@@ -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 MobileCdrApi 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(mobileCdrId: string): Promise<any>;
|
|
20
|
+
getMany(mobileCdrIds: 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(mobileCdrId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
26
|
+
deleteMany(mobileCdrIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
27
|
+
restore(mobileCdrIds: 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.MobileCdrApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
class MobileCdrApi extends api_provider_1.ApiProvider {
|
|
15
|
+
constructor(authParams, authToken) {
|
|
16
|
+
super(authParams, authToken);
|
|
17
|
+
this.authToken = authToken;
|
|
18
|
+
this.moduleName = 'ServiceModule';
|
|
19
|
+
this.entityName = 'MobileCdr';
|
|
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(mobileCdrId) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileCdrId);
|
|
51
|
+
this.setRecord(res);
|
|
52
|
+
return res;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Use this function when you want to return many records by primaryKeys
|
|
56
|
+
getMany(mobileCdrIds) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileCdrIds);
|
|
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(mobileCdrId) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const res = yield this._delete(this.moduleName, this.entityName, [mobileCdrId]);
|
|
91
|
+
return res[0];
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
// Use this function when you want to delete many records
|
|
95
|
+
deleteMany(mobileCdrIds) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return yield this._delete(this.moduleName, this.entityName, mobileCdrIds);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
// Use this function when you want to restore one or many records
|
|
101
|
+
restore(mobileCdrIds) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return yield this._restore(this.moduleName, this.entityName, mobileCdrIds);
|
|
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.MobileCdrApi = MobileCdrApi;
|
|
@@ -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 MobileEdrApi 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(mobileEdrId: string): Promise<any>;
|
|
20
|
+
getMany(mobileEdrIds: 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(mobileEdrId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
26
|
+
deleteMany(mobileEdrIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
27
|
+
restore(mobileEdrIds: 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.MobileEdrApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
class MobileEdrApi extends api_provider_1.ApiProvider {
|
|
15
|
+
constructor(authParams, authToken) {
|
|
16
|
+
super(authParams, authToken);
|
|
17
|
+
this.authToken = authToken;
|
|
18
|
+
this.moduleName = 'ServiceModule';
|
|
19
|
+
this.entityName = 'MobileEdr';
|
|
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(mobileEdrId) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileEdrId);
|
|
51
|
+
this.setRecord(res);
|
|
52
|
+
return res;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Use this function when you want to return many records by primaryKeys
|
|
56
|
+
getMany(mobileEdrIds) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileEdrIds);
|
|
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(mobileEdrId) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const res = yield this._delete(this.moduleName, this.entityName, [mobileEdrId]);
|
|
91
|
+
return res[0];
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
// Use this function when you want to delete many records
|
|
95
|
+
deleteMany(mobileEdrIds) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return yield this._delete(this.moduleName, this.entityName, mobileEdrIds);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
// Use this function when you want to restore one or many records
|
|
101
|
+
restore(mobileEdrIds) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return yield this._restore(this.moduleName, this.entityName, mobileEdrIds);
|
|
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.MobileEdrApi = MobileEdrApi;
|
|
@@ -8,31 +8,31 @@ export declare class ContactDb extends DbProvider {
|
|
|
8
8
|
private readonly moduleName;
|
|
9
9
|
private readonly entityName;
|
|
10
10
|
private sourceRecord;
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
11
|
+
readonly organization__contact: DbRecordLinkManager;
|
|
12
|
+
readonly billingcontact: DbRecordLinkManager;
|
|
13
|
+
readonly workorder__contact: DbRecordLinkManager;
|
|
14
|
+
readonly order__contact: DbRecordLinkManager;
|
|
15
|
+
readonly lead__contact: DbRecordLinkManager;
|
|
16
|
+
readonly invoice__contact: DbRecordLinkManager;
|
|
17
|
+
readonly commission__contact: DbRecordLinkManager;
|
|
18
|
+
readonly contact__contact: DbRecordLinkManager;
|
|
19
|
+
readonly onetouchswitch__contact: DbRecordLinkManager;
|
|
20
|
+
readonly deactivationapproval__contact: DbRecordLinkManager;
|
|
21
|
+
readonly orderremediationtask__contact: DbRecordLinkManager;
|
|
22
|
+
readonly call__contact: DbRecordLinkManager;
|
|
23
|
+
readonly fingerprint__contact: DbRecordLinkManager;
|
|
24
|
+
readonly case__contact: DbRecordLinkManager;
|
|
25
|
+
readonly email_contact: DbRecordLinkManager;
|
|
13
26
|
readonly activity: DbRecordLinkManager;
|
|
14
27
|
readonly note: DbRecordLinkManager;
|
|
15
|
-
readonly workorder: DbRecordLinkManager;
|
|
16
|
-
readonly order: DbRecordLinkManager;
|
|
17
|
-
readonly lead: DbRecordLinkManager;
|
|
18
28
|
readonly address: DbRecordLinkManager;
|
|
19
29
|
readonly smsmessage: DbRecordLinkManager;
|
|
20
|
-
readonly invoice: DbRecordLinkManager;
|
|
21
30
|
readonly billingrequest: DbRecordLinkManager;
|
|
22
31
|
readonly file: DbRecordLinkManager;
|
|
23
|
-
readonly commission: DbRecordLinkManager;
|
|
24
|
-
readonly contact: DbRecordLinkManager;
|
|
25
|
-
readonly onetouchswitch: DbRecordLinkManager;
|
|
26
32
|
readonly contactidentity: DbRecordLinkManager;
|
|
27
33
|
readonly paymentmethodrefund: DbRecordLinkManager;
|
|
28
|
-
readonly deactivationapproval: DbRecordLinkManager;
|
|
29
34
|
readonly phonenumber: DbRecordLinkManager;
|
|
30
|
-
readonly orderremediationtask: DbRecordLinkManager;
|
|
31
35
|
readonly appointment: DbRecordLinkManager;
|
|
32
|
-
readonly call: DbRecordLinkManager;
|
|
33
|
-
readonly fingerprint: DbRecordLinkManager;
|
|
34
|
-
readonly case: DbRecordLinkManager;
|
|
35
|
-
readonly email: DbRecordLinkManager;
|
|
36
36
|
readonly paymentmethod: DbRecordLinkManager;
|
|
37
37
|
constructor(principal: any, dbService: any);
|
|
38
38
|
setRecord(sourceRecord: any): void;
|
|
@@ -19,31 +19,31 @@ class ContactDb extends db_provider_1.DbProvider {
|
|
|
19
19
|
this.entityName = 'Contact';
|
|
20
20
|
this.principal = principal;
|
|
21
21
|
this.dbService = dbService;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
22
|
+
this.organization__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Organization__Contact');
|
|
23
|
+
this.billingcontact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'BillingContact');
|
|
24
|
+
this.workorder__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'WorkOrder__Contact');
|
|
25
|
+
this.order__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Order__Contact');
|
|
26
|
+
this.lead__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Lead__Contact');
|
|
27
|
+
this.invoice__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Invoice__Contact');
|
|
28
|
+
this.commission__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Commission__Contact');
|
|
29
|
+
this.contact__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
|
|
30
|
+
this.onetouchswitch__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'OneTouchSwitch__Contact');
|
|
31
|
+
this.deactivationapproval__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'DeactivationApproval__Contact');
|
|
32
|
+
this.orderremediationtask__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'OrderRemediationTask__Contact');
|
|
33
|
+
this.call__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Call__Contact');
|
|
34
|
+
this.fingerprint__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Fingerprint__Contact');
|
|
35
|
+
this.case__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Case__Contact');
|
|
36
|
+
this.email_contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Email_Contact');
|
|
24
37
|
this.activity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SchemaModule:Activity', 'Contact__Activity');
|
|
25
38
|
this.note = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SupportModule:Note', 'Contact__Note');
|
|
26
|
-
this.workorder = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
|
|
27
|
-
this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
|
|
28
|
-
this.lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Lead', 'Lead__Contact');
|
|
29
39
|
this.address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
|
|
30
40
|
this.smsmessage = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:SmsMessage', 'Contact__SmsMessage');
|
|
31
|
-
this.invoice = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:Invoice', 'Invoice__Contact');
|
|
32
41
|
this.billingrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
|
|
33
42
|
this.file = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SchemaModule:File', 'Contact__File');
|
|
34
|
-
this.commission = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:Commission', 'Commission__Contact');
|
|
35
|
-
this.contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
|
|
36
|
-
this.onetouchswitch = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Contact');
|
|
37
43
|
this.contactidentity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
|
|
38
44
|
this.paymentmethodrefund = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:PaymentMethodRefund', 'Contact__PaymentMethodRefund');
|
|
39
|
-
this.deactivationapproval = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:DeactivationApproval', 'DeactivationApproval__Contact');
|
|
40
45
|
this.phonenumber = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:PhoneNumber', 'Contact__PhoneNumber');
|
|
41
|
-
this.orderremediationtask = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:OrderRemediationTask', 'OrderRemediationTask__Contact');
|
|
42
46
|
this.appointment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Appointment', 'Contact__Appointment');
|
|
43
|
-
this.call = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:Call', 'Call__Contact');
|
|
44
|
-
this.fingerprint = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Fingerprint', 'Fingerprint__Contact');
|
|
45
|
-
this.case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SupportModule:Case', 'Case__Contact');
|
|
46
|
-
this.email = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:Email', 'Email_Contact');
|
|
47
47
|
this.paymentmethod = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:PaymentMethod', 'Contact__PaymentMethod');
|
|
48
48
|
}
|
|
49
49
|
setRecord(sourceRecord) {
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DbProvider } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
3
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
4
|
+
export declare class MobileCdrDb extends DbProvider {
|
|
5
|
+
protected readonly principal: any;
|
|
6
|
+
protected readonly dbService: any;
|
|
7
|
+
private readonly moduleName;
|
|
8
|
+
private readonly entityName;
|
|
9
|
+
private sourceRecord;
|
|
10
|
+
constructor(principal: any, dbService: any);
|
|
11
|
+
setRecord(sourceRecord: any): void;
|
|
12
|
+
searchRecords(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/db.interfaces").OdinSearchResponse<any>>;
|
|
13
|
+
searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/db.interfaces").OdinSearchResponse<any>>;
|
|
14
|
+
getByPrimaryKey(mobileCdrId: string): Promise<any>;
|
|
15
|
+
getVersions(): Promise<any>;
|
|
16
|
+
getRevisionTimeline(): Promise<any>;
|
|
17
|
+
getManyByPrimaryKey(mobileCdrIds: string[]): Promise<any[]>;
|
|
18
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
|
|
19
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
|
|
20
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
|
|
21
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
|
|
22
|
+
delete(mobileCdrIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordDeleted[]>;
|
|
23
|
+
restore(mobileCdrIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordRestored[]>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.MobileCdrDb = void 0;
|
|
13
|
+
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
14
|
+
class MobileCdrDb extends db_provider_1.DbProvider {
|
|
15
|
+
constructor(principal, dbService) {
|
|
16
|
+
super(principal, dbService);
|
|
17
|
+
this.moduleName = 'ServiceModule';
|
|
18
|
+
this.entityName = 'MobileCdr';
|
|
19
|
+
this.principal = principal;
|
|
20
|
+
this.dbService = dbService;
|
|
21
|
+
}
|
|
22
|
+
setRecord(sourceRecord) {
|
|
23
|
+
this.sourceRecord = sourceRecord;
|
|
24
|
+
}
|
|
25
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
26
|
+
searchRecords(params) {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
// Use this function when you want paginating through the results to be handled
|
|
32
|
+
searchAllRecordsAndPaginate(params) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
// Use this function when you want to return a single record
|
|
38
|
+
getByPrimaryKey(mobileCdrId) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileCdrId);
|
|
41
|
+
this.setRecord(res);
|
|
42
|
+
return res;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
// Use this function when you want to return the versions for a single record
|
|
46
|
+
getVersions() {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
// Use this function when you want to return the change history for a single record
|
|
52
|
+
getRevisionTimeline() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
// Use this function when you want to return many records by primaryKeys
|
|
58
|
+
getManyByPrimaryKey(mobileCdrIds) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileCdrIds);
|
|
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 or many records
|
|
90
|
+
delete(mobileCdrIds) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return yield this._delete(this.moduleName, this.entityName, mobileCdrIds);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
// Use this function when you want to restore one or many records
|
|
96
|
+
restore(mobileCdrIds) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
return yield this._restore(this.moduleName, this.entityName, mobileCdrIds);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.MobileCdrDb = MobileCdrDb;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DbProvider } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
2
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
3
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
4
|
+
export declare class MobileEdrDb extends DbProvider {
|
|
5
|
+
protected readonly principal: any;
|
|
6
|
+
protected readonly dbService: any;
|
|
7
|
+
private readonly moduleName;
|
|
8
|
+
private readonly entityName;
|
|
9
|
+
private sourceRecord;
|
|
10
|
+
constructor(principal: any, dbService: any);
|
|
11
|
+
setRecord(sourceRecord: any): void;
|
|
12
|
+
searchRecords(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/db.interfaces").OdinSearchResponse<any>>;
|
|
13
|
+
searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/db.interfaces").OdinSearchResponse<any>>;
|
|
14
|
+
getByPrimaryKey(mobileEdrId: string): Promise<any>;
|
|
15
|
+
getVersions(): Promise<any>;
|
|
16
|
+
getRevisionTimeline(): Promise<any>;
|
|
17
|
+
getManyByPrimaryKey(mobileEdrIds: string[]): Promise<any[]>;
|
|
18
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
|
|
19
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
|
|
20
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
|
|
21
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
|
|
22
|
+
delete(mobileEdrIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordDeleted[]>;
|
|
23
|
+
restore(mobileEdrIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordRestored[]>;
|
|
24
|
+
}
|