@d19n/youfibre-odin-sdk 1.0.68 → 1.0.69
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/MobileCountryRateApi.d.ts +35 -0
- package/dist/api-sdk-v2/MobileCountryRateApi.js +125 -0
- package/dist/api-sdk-v2/OrderApi.d.ts +13 -13
- package/dist/api-sdk-v2/OrderApi.js +13 -13
- package/dist/api-sdk-v2/WorkOrderApi.d.ts +10 -10
- package/dist/api-sdk-v2/WorkOrderApi.js +10 -10
- package/dist/db-sdk-v2/ContactDb.d.ts +15 -15
- package/dist/db-sdk-v2/ContactDb.js +15 -15
- package/dist/db-sdk-v2/MobileCountryRateDb.d.ts +24 -0
- package/dist/db-sdk-v2/MobileCountryRateDb.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/BlockageA55.d.ts +36 -36
- package/dist/entities-v2/BlockageA55.js +36 -36
- package/dist/entities-v2/Call.d.ts +3 -3
- package/dist/entities-v2/Call.js +1 -1
- package/dist/entities-v2/Case.d.ts +2 -0
- package/dist/entities-v2/Case.js +2 -0
- package/dist/entities-v2/ChangeReason.d.ts +2 -0
- package/dist/entities-v2/ChangeReason.js +2 -0
- package/dist/entities-v2/CollectionWorkOrder.d.ts +8 -6
- package/dist/entities-v2/CollectionWorkOrder.js +4 -2
- package/dist/entities-v2/Contact.d.ts +77 -77
- package/dist/entities-v2/Contact.js +61 -61
- package/dist/entities-v2/Conversation.d.ts +5 -1
- package/dist/entities-v2/Conversation.js +2 -0
- package/dist/entities-v2/FinanceWorkOrder.d.ts +2 -2
- package/dist/entities-v2/InspectionWorkOrder.d.ts +8 -6
- package/dist/entities-v2/InspectionWorkOrder.js +4 -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 +8 -6
- package/dist/entities-v2/InstallWorkOrder.js +4 -2
- package/dist/entities-v2/InternalInstallAudit.d.ts +10 -10
- package/dist/entities-v2/InternalInstallAudit.js +9 -9
- package/dist/entities-v2/Lead.d.ts +53 -52
- package/dist/entities-v2/Lead.js +30 -30
- package/dist/entities-v2/MobileConfiguration.d.ts +2 -1
- package/dist/entities-v2/MobileConfiguration.js +1 -0
- package/dist/entities-v2/MobileCountryRate.d.ts +70 -0
- package/dist/entities-v2/MobileCountryRate.js +38 -0
- package/dist/entities-v2/NetworkAdjustmentWorkOrder.d.ts +2 -2
- package/dist/entities-v2/Order.d.ts +1 -1
- package/dist/entities-v2/OutageCase.d.ts +2 -0
- package/dist/entities-v2/OutageCase.js +2 -0
- package/dist/entities-v2/OutcomeFormOverlayRealA55.d.ts +40 -40
- package/dist/entities-v2/OutcomeFormOverlayRealA55.js +38 -38
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.d.ts +11 -10
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.js +11 -10
- package/dist/entities-v2/PermissionToFail.d.ts +5 -1
- package/dist/entities-v2/PermissionToFail.js +2 -0
- package/dist/entities-v2/PlanningWorkOrder.d.ts +2 -2
- package/dist/entities-v2/PrePullWorkOrder.d.ts +8 -6
- package/dist/entities-v2/PrePullWorkOrder.js +4 -2
- package/dist/entities-v2/RemediationRequiredReason.d.ts +11 -10
- package/dist/entities-v2/RemediationRequiredReason.js +11 -10
- package/dist/entities-v2/RemediationWorkOrder.d.ts +8 -6
- package/dist/entities-v2/RemediationWorkOrder.js +4 -2
- package/dist/entities-v2/SaCancelChangeReason.d.ts +1 -0
- package/dist/entities-v2/SaCancelChangeReason.js +1 -0
- package/dist/entities-v2/SaDelayChangeReason.d.ts +1 -0
- package/dist/entities-v2/SaDelayChangeReason.js +1 -0
- package/dist/entities-v2/ServiceWorkOrder.d.ts +8 -6
- package/dist/entities-v2/ServiceWorkOrder.js +4 -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 -4
- package/dist/types-v1/Types.js +5 -4
- package/package.json +2 -2
- package/src/api-sdk-v2/MobileCountryRateApi.ts +132 -0
- package/src/api-sdk-v2/OrderApi.ts +75 -75
- package/src/api-sdk-v2/WorkOrderApi.ts +54 -54
- package/src/db-sdk-v2/ContactDb.ts +87 -87
- package/src/db-sdk-v2/MobileCountryRateDb.ts +113 -0
- package/src/db-sdk-v2/WorkOrderDb.ts +69 -69
- package/src/entities-v2/BlockageA55.ts +45 -45
- package/src/entities-v2/Call.ts +3 -3
- package/src/entities-v2/Case.ts +2 -0
- package/src/entities-v2/ChangeReason.ts +2 -0
- package/src/entities-v2/CollectionWorkOrder.ts +6 -4
- package/src/entities-v2/Contact.ts +100 -100
- package/src/entities-v2/Conversation.ts +6 -0
- package/src/entities-v2/FinanceWorkOrder.ts +2 -2
- package/src/entities-v2/InspectionWorkOrder.ts +6 -4
- package/src/entities-v2/InstallBusinessWorkOrder.ts +2 -2
- package/src/entities-v2/InstallServiceWorkOrder.ts +2 -2
- package/src/entities-v2/InstallWorkOrder.ts +6 -4
- package/src/entities-v2/InternalInstallAudit.ts +12 -12
- package/src/entities-v2/Lead.ts +75 -74
- package/src/entities-v2/MobileConfiguration.ts +1 -0
- package/src/entities-v2/MobileCountryRate.ts +83 -0
- package/src/entities-v2/NetworkAdjustmentWorkOrder.ts +2 -2
- package/src/entities-v2/Order.ts +1 -1
- package/src/entities-v2/OutageCase.ts +2 -0
- package/src/entities-v2/OutcomeFormOverlayRealA55.ts +51 -51
- package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +11 -10
- package/src/entities-v2/PermissionToFail.ts +6 -0
- package/src/entities-v2/PlanningWorkOrder.ts +2 -2
- package/src/entities-v2/PrePullWorkOrder.ts +6 -4
- package/src/entities-v2/RemediationRequiredReason.ts +11 -10
- package/src/entities-v2/RemediationWorkOrder.ts +6 -4
- package/src/entities-v2/SaCancelChangeReason.ts +1 -0
- package/src/entities-v2/SaDelayChangeReason.ts +1 -0
- package/src/entities-v2/ServiceWorkOrder.ts +6 -4
- 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 -4
|
@@ -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 MobileCountryRateApi 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(mobileCountryRateId: string): Promise<any>;
|
|
20
|
+
getMany(mobileCountryRateIds: 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(mobileCountryRateId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
26
|
+
deleteMany(mobileCountryRateIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
27
|
+
restore(mobileCountryRateIds: 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.MobileCountryRateApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
class MobileCountryRateApi extends api_provider_1.ApiProvider {
|
|
15
|
+
constructor(authParams, authToken) {
|
|
16
|
+
super(authParams, authToken);
|
|
17
|
+
this.authToken = authToken;
|
|
18
|
+
this.moduleName = 'ServiceModule';
|
|
19
|
+
this.entityName = 'MobileCountryRate';
|
|
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(mobileCountryRateId) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateId);
|
|
51
|
+
this.setRecord(res);
|
|
52
|
+
return res;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Use this function when you want to return many records by primaryKeys
|
|
56
|
+
getMany(mobileCountryRateIds) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateIds);
|
|
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(mobileCountryRateId) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const res = yield this._delete(this.moduleName, this.entityName, [mobileCountryRateId]);
|
|
91
|
+
return res[0];
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
// Use this function when you want to delete many records
|
|
95
|
+
deleteMany(mobileCountryRateIds) {
|
|
96
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
97
|
+
return yield this._delete(this.moduleName, this.entityName, mobileCountryRateIds);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
// Use this function when you want to restore one or many records
|
|
101
|
+
restore(mobileCountryRateIds) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
return yield this._restore(this.moduleName, this.entityName, mobileCountryRateIds);
|
|
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.MobileCountryRateApi = MobileCountryRateApi;
|
|
@@ -8,38 +8,38 @@ export declare class OrderApi extends ApiProvider {
|
|
|
8
8
|
private readonly moduleName;
|
|
9
9
|
private readonly entityName;
|
|
10
10
|
private sourceRecord;
|
|
11
|
-
readonly
|
|
11
|
+
readonly returnorder__order: ApiRecordLinkManager;
|
|
12
|
+
readonly account__order: ApiRecordLinkManager;
|
|
13
|
+
readonly splitorder__order: ApiRecordLinkManager;
|
|
14
|
+
readonly churnrequest__order: ApiRecordLinkManager;
|
|
15
|
+
readonly order__order: ApiRecordLinkManager;
|
|
16
|
+
readonly picrequest__order: ApiRecordLinkManager;
|
|
17
|
+
readonly paymentmethodrefund__order: ApiRecordLinkManager;
|
|
18
|
+
readonly deactivationapproval__order: ApiRecordLinkManager;
|
|
19
|
+
readonly orderremediationtask__order: ApiRecordLinkManager;
|
|
20
|
+
readonly case__order: ApiRecordLinkManager;
|
|
21
|
+
readonly lead_order: ApiRecordLinkManager;
|
|
22
|
+
readonly onetouchswitch__order: ApiRecordLinkManager;
|
|
12
23
|
readonly address: ApiRecordLinkManager;
|
|
13
24
|
readonly note: ApiRecordLinkManager;
|
|
14
25
|
readonly contact: ApiRecordLinkManager;
|
|
15
|
-
readonly account: ApiRecordLinkManager;
|
|
16
26
|
readonly discount: ApiRecordLinkManager;
|
|
17
27
|
readonly orderitem: ApiRecordLinkManager;
|
|
18
28
|
readonly billingadjustment: ApiRecordLinkManager;
|
|
19
|
-
readonly splitorder__order: ApiRecordLinkManager;
|
|
20
|
-
readonly order__splitorder: ApiRecordLinkManager;
|
|
21
|
-
readonly churnrequest: ApiRecordLinkManager;
|
|
22
29
|
readonly commission: ApiRecordLinkManager;
|
|
23
30
|
readonly file: ApiRecordLinkManager;
|
|
24
31
|
readonly activity: ApiRecordLinkManager;
|
|
25
|
-
readonly order: ApiRecordLinkManager;
|
|
26
|
-
readonly picrequest: ApiRecordLinkManager;
|
|
27
32
|
readonly smsmessage: ApiRecordLinkManager;
|
|
28
|
-
readonly paymentmethodrefund: ApiRecordLinkManager;
|
|
29
33
|
readonly visit: ApiRecordLinkManager;
|
|
30
34
|
readonly workorder: ApiRecordLinkManager;
|
|
31
|
-
readonly deactivationapproval: ApiRecordLinkManager;
|
|
32
|
-
readonly orderremediationtask: ApiRecordLinkManager;
|
|
33
|
-
readonly case: ApiRecordLinkManager;
|
|
34
|
-
readonly lead: ApiRecordLinkManager;
|
|
35
35
|
readonly customerdeviceont: ApiRecordLinkManager;
|
|
36
36
|
readonly customerdevicerouter: ApiRecordLinkManager;
|
|
37
37
|
readonly appointment: ApiRecordLinkManager;
|
|
38
38
|
readonly ordercheck: ApiRecordLinkManager;
|
|
39
39
|
readonly invoice: ApiRecordLinkManager;
|
|
40
|
+
readonly splitorder: ApiRecordLinkManager;
|
|
40
41
|
readonly phonenumber: ApiRecordLinkManager;
|
|
41
42
|
readonly contactidentity: ApiRecordLinkManager;
|
|
42
|
-
readonly onetouchswitch: ApiRecordLinkManager;
|
|
43
43
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
44
44
|
setRecord(sourceRecord: any): void;
|
|
45
45
|
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
@@ -18,38 +18,38 @@ class OrderApi extends api_provider_1.ApiProvider {
|
|
|
18
18
|
this.authToken = authToken;
|
|
19
19
|
this.moduleName = 'OrderModule';
|
|
20
20
|
this.entityName = 'Order';
|
|
21
|
-
this.
|
|
21
|
+
this.returnorder__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'ReturnOrder__Order');
|
|
22
|
+
this.account__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Account__Order');
|
|
23
|
+
this.splitorder__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'SplitOrder__Order');
|
|
24
|
+
this.churnrequest__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'ChurnRequest__Order');
|
|
25
|
+
this.order__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Order__Order');
|
|
26
|
+
this.picrequest__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'PICRequest__Order');
|
|
27
|
+
this.paymentmethodrefund__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'PaymentMethodRefund__Order');
|
|
28
|
+
this.deactivationapproval__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'DeactivationApproval__Order');
|
|
29
|
+
this.orderremediationtask__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'OrderRemediationTask__Order');
|
|
30
|
+
this.case__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Case__Order');
|
|
31
|
+
this.lead_order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Lead_Order');
|
|
32
|
+
this.onetouchswitch__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'OneTouchSwitch__Order');
|
|
22
33
|
this.address = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Address', 'Order__Address');
|
|
23
34
|
this.note = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SupportModule:Note', 'Order__Note');
|
|
24
35
|
this.contact = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Contact', 'Order__Contact');
|
|
25
|
-
this.account = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Account', 'Account__Order');
|
|
26
36
|
this.discount = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ProductModule:Discount', 'Order__Discount');
|
|
27
37
|
this.orderitem = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:OrderItem', 'Order_OrderItem');
|
|
28
38
|
this.billingadjustment = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:BillingAdjustment', 'Order__BillingAdjustment');
|
|
29
|
-
this.splitorder__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:SplitOrder', 'SplitOrder__Order');
|
|
30
|
-
this.order__splitorder = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:SplitOrder', 'Order__SplitOrder');
|
|
31
|
-
this.churnrequest = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:ChurnRequest', 'ChurnRequest__Order');
|
|
32
39
|
this.commission = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'BillingModule:Commission', 'Order__Commission');
|
|
33
40
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SchemaModule:File', 'Order__File');
|
|
34
41
|
this.activity = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SchemaModule:Activity', 'Order__Activity');
|
|
35
|
-
this.order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Order__Order');
|
|
36
|
-
this.picrequest = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:PICRequest', 'PICRequest__Order');
|
|
37
42
|
this.smsmessage = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'NotificationModule:SmsMessage', 'Order__SmsMessage');
|
|
38
|
-
this.paymentmethodrefund = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'BillingModule:PaymentMethodRefund', 'PaymentMethodRefund__Order');
|
|
39
43
|
this.visit = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Visit', 'Order__Visit');
|
|
40
44
|
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'FieldServiceModule:WorkOrder', 'Order__WorkOrder');
|
|
41
|
-
this.deactivationapproval = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:DeactivationApproval', 'DeactivationApproval__Order');
|
|
42
|
-
this.orderremediationtask = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:OrderRemediationTask', 'OrderRemediationTask__Order');
|
|
43
|
-
this.case = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SupportModule:Case', 'Case__Order');
|
|
44
|
-
this.lead = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Lead', 'Lead_Order');
|
|
45
45
|
this.customerdeviceont = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ServiceModule:CustomerDeviceOnt', 'Order__CustomerDeviceOnt');
|
|
46
46
|
this.customerdevicerouter = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ServiceModule:CustomerDeviceRouter', 'Order__CustomerDeviceRouter');
|
|
47
47
|
this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Appointment', 'Order__Appointment');
|
|
48
48
|
this.ordercheck = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ServiceModule:OrderCheck', 'Order__OrderCheck');
|
|
49
49
|
this.invoice = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'BillingModule:Invoice', 'Order__Invoice');
|
|
50
|
+
this.splitorder = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:SplitOrder', 'Order__SplitOrder');
|
|
50
51
|
this.phonenumber = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:PhoneNumber', 'Order__PhoneNumber');
|
|
51
52
|
this.contactidentity = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:ContactIdentity', 'Order__ContactIdentity');
|
|
52
|
-
this.onetouchswitch = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Order');
|
|
53
53
|
}
|
|
54
54
|
setRecord(sourceRecord) {
|
|
55
55
|
this.sourceRecord = sourceRecord;
|
|
@@ -16,7 +16,15 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
16
16
|
readonly ugexternalaudit: ApiRecordLinkManager;
|
|
17
17
|
readonly ohretroaudit: ApiRecordLinkManager;
|
|
18
18
|
readonly orderitem: ApiRecordLinkManager;
|
|
19
|
-
readonly
|
|
19
|
+
readonly account__workorder: ApiRecordLinkManager;
|
|
20
|
+
readonly paymentmethodrefund__workorder: ApiRecordLinkManager;
|
|
21
|
+
readonly order__workorder: ApiRecordLinkManager;
|
|
22
|
+
readonly orderremediationtask__workorder: ApiRecordLinkManager;
|
|
23
|
+
readonly case__workorder: ApiRecordLinkManager;
|
|
24
|
+
readonly ontreplacementapproval_workorder: ApiRecordLinkManager;
|
|
25
|
+
readonly call__workorder: ApiRecordLinkManager;
|
|
26
|
+
readonly workorder__workorder: ApiRecordLinkManager;
|
|
27
|
+
readonly servicevisitaudit_workorder: ApiRecordLinkManager;
|
|
20
28
|
readonly changereason: ApiRecordLinkManager;
|
|
21
29
|
readonly file: ApiRecordLinkManager;
|
|
22
30
|
readonly invoice: ApiRecordLinkManager;
|
|
@@ -24,7 +32,6 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
24
32
|
readonly activity: ApiRecordLinkManager;
|
|
25
33
|
readonly smsmessage: ApiRecordLinkManager;
|
|
26
34
|
readonly internalinstallaudit: ApiRecordLinkManager;
|
|
27
|
-
readonly paymentmethodrefund: ApiRecordLinkManager;
|
|
28
35
|
readonly lead: ApiRecordLinkManager;
|
|
29
36
|
readonly noinstall3auditofinstallationsheet: ApiRecordLinkManager;
|
|
30
37
|
readonly netomniaftth1stageinstallaudit: ApiRecordLinkManager;
|
|
@@ -32,28 +39,21 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
32
39
|
readonly netomniaftth2stageinstallaudit: ApiRecordLinkManager;
|
|
33
40
|
readonly customerdeviceontremoval: ApiRecordLinkManager;
|
|
34
41
|
readonly yftoolaudit: ApiRecordLinkManager;
|
|
35
|
-
readonly order: ApiRecordLinkManager;
|
|
36
42
|
readonly serviceappointmentconfig: ApiRecordLinkManager;
|
|
37
43
|
readonly workorderengineer: ApiRecordLinkManager;
|
|
38
44
|
readonly workorderowner: ApiRecordLinkManager;
|
|
39
45
|
readonly remediationrequiredreason: ApiRecordLinkManager;
|
|
40
|
-
readonly orderremediationtask: ApiRecordLinkManager;
|
|
41
|
-
readonly case: ApiRecordLinkManager;
|
|
42
|
-
readonly ontreplacementapproval: ApiRecordLinkManager;
|
|
43
|
-
readonly call: ApiRecordLinkManager;
|
|
44
46
|
readonly permissiontofail: ApiRecordLinkManager;
|
|
45
47
|
readonly sweepermaintenanceaudit: ApiRecordLinkManager;
|
|
46
48
|
readonly blockagereporta55: ApiRecordLinkManager;
|
|
47
49
|
readonly uginstallationaudit: ApiRecordLinkManager;
|
|
48
50
|
readonly ohinstallationaudit: ApiRecordLinkManager;
|
|
49
|
-
readonly workorder: ApiRecordLinkManager;
|
|
50
51
|
readonly ohauditofinstallation: ApiRecordLinkManager;
|
|
51
52
|
readonly team: ApiRecordLinkManager;
|
|
52
53
|
readonly yfvanaudit: ApiRecordLinkManager;
|
|
53
54
|
readonly remediationoutcomeform: ApiRecordLinkManager;
|
|
54
55
|
readonly netomniaftthservicevisitsheet: ApiRecordLinkManager;
|
|
55
|
-
readonly
|
|
56
|
-
readonly servicevisitaudit_workorder: ApiRecordLinkManager;
|
|
56
|
+
readonly servicevisitaudit: ApiRecordLinkManager;
|
|
57
57
|
readonly yffieldservicevisit: ApiRecordLinkManager;
|
|
58
58
|
readonly uginprogressaudit: ApiRecordLinkManager;
|
|
59
59
|
readonly ohinprogressaudit: ApiRecordLinkManager;
|
|
@@ -26,7 +26,15 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
|
|
|
26
26
|
this.ugexternalaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:UgExternalAudit', 'WorkOrder_UgExternalAudit');
|
|
27
27
|
this.ohretroaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:OhRetroAudit', 'WorkOrder_OhRetroAudit');
|
|
28
28
|
this.orderitem = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'OrderModule:OrderItem', 'WorkOrder__OrderItem');
|
|
29
|
-
this.
|
|
29
|
+
this.account__workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'Account__WorkOrder');
|
|
30
|
+
this.paymentmethodrefund__workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'PaymentMethodRefund__WorkOrder');
|
|
31
|
+
this.order__workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'Order__WorkOrder');
|
|
32
|
+
this.orderremediationtask__workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'OrderRemediationTask__WorkOrder');
|
|
33
|
+
this.case__workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'Case__WorkOrder');
|
|
34
|
+
this.ontreplacementapproval_workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'OntReplacementApproval_WorkOrder');
|
|
35
|
+
this.call__workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'Call__WorkOrder');
|
|
36
|
+
this.workorder__workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'WorkOrder__WorkOrder');
|
|
37
|
+
this.servicevisitaudit_workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'ServiceVisitAudit_WorkOrder');
|
|
30
38
|
this.changereason = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:ChangeReason', 'WorkOrder__ChangeReason');
|
|
31
39
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'SchemaModule:File', 'WorkOrder__File');
|
|
32
40
|
this.invoice = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'BillingModule:Invoice', 'WorkOrder__Invoice');
|
|
@@ -34,7 +42,6 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
|
|
|
34
42
|
this.activity = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'SchemaModule:Activity', 'WorkOrder__Activity');
|
|
35
43
|
this.smsmessage = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'NotificationModule:SmsMessage', 'WorkOrder__SmsMessage');
|
|
36
44
|
this.internalinstallaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:InternalInstallAudit', 'WorkOrder_InternalInstallAudit');
|
|
37
|
-
this.paymentmethodrefund = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'BillingModule:PaymentMethodRefund', 'PaymentMethodRefund__WorkOrder');
|
|
38
45
|
this.lead = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'CrmModule:Lead', 'WorkOrder__Lead');
|
|
39
46
|
this.noinstall3auditofinstallationsheet = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:Noinstall3AuditOfInstallationSheet', 'WorkOrder__Noinstall3AuditOfInstallationSheet');
|
|
40
47
|
this.netomniaftth1stageinstallaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:NetomniaFtth1StageInstallAudit', 'WorkOrder__NetomniaFtth1StageInstallAudit');
|
|
@@ -42,28 +49,21 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
|
|
|
42
49
|
this.netomniaftth2stageinstallaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:NetomniaFtth2StageInstallAudit', 'WorkOrder__NetomniaFtth2StageInstallAudit');
|
|
43
50
|
this.customerdeviceontremoval = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'ServiceModule:CustomerDeviceOntRemoval', 'WorkOrder_CustomerDeviceOntRemoval');
|
|
44
51
|
this.yftoolaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:YfToolAudit', 'WorkOrder_YfToolAudit');
|
|
45
|
-
this.order = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'OrderModule:Order', 'Order__WorkOrder');
|
|
46
52
|
this.serviceappointmentconfig = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:ServiceAppointmentConfig', 'WorkOrder__ServiceAppointmentConfig');
|
|
47
53
|
this.workorderengineer = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'IdentityModule:User', 'WorkOrderEngineer');
|
|
48
54
|
this.workorderowner = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'IdentityModule:User', 'WorkOrderOwner');
|
|
49
55
|
this.remediationrequiredreason = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:RemediationRequiredReason', 'WorkOrder__RemediationRequiredReason');
|
|
50
|
-
this.orderremediationtask = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'OrderModule:OrderRemediationTask', 'OrderRemediationTask__WorkOrder');
|
|
51
|
-
this.case = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'SupportModule:Case', 'Case__WorkOrder');
|
|
52
|
-
this.ontreplacementapproval = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:OntReplacementApproval', 'OntReplacementApproval_WorkOrder');
|
|
53
|
-
this.call = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'NotificationModule:Call', 'Call__WorkOrder');
|
|
54
56
|
this.permissiontofail = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:PermissionToFail', 'WorkOrder__PermissionToFail');
|
|
55
57
|
this.sweepermaintenanceaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:SweeperMaintenanceAudit', 'WorkOrder__SweeperMaintenanceAudit');
|
|
56
58
|
this.blockagereporta55 = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:BlockageReportA55', 'WorkOrder__BlockageReportA55');
|
|
57
59
|
this.uginstallationaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:UgInstallationAudit', 'WorkOrder__UgInstallationAudit');
|
|
58
60
|
this.ohinstallationaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:OhInstallationAudit', 'WorkOrder_OhInstallationAudit');
|
|
59
|
-
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:WorkOrder', 'WorkOrder__WorkOrder');
|
|
60
61
|
this.ohauditofinstallation = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:OhAuditOfInstallation', 'WorkOrder_OhAuditOfInstallation');
|
|
61
62
|
this.team = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'IdentityModule:Team', 'WorkOrder_Team');
|
|
62
63
|
this.yfvanaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:YfVanAudit', 'WorkOrder_YfVanAudit');
|
|
63
64
|
this.remediationoutcomeform = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:RemediationOutcomeForm', 'WorkOrder_RemediationOutcomeForm');
|
|
64
65
|
this.netomniaftthservicevisitsheet = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:NetomniaFtthServiceVisitSheet', 'WorkOrder_NetomniaFtthServiceVisitSheet');
|
|
65
|
-
this.
|
|
66
|
-
this.servicevisitaudit_workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:ServiceVisitAudit', 'ServiceVisitAudit_WorkOrder');
|
|
66
|
+
this.servicevisitaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:ServiceVisitAudit', 'WorkOrder_ServiceVisitAudit');
|
|
67
67
|
this.yffieldservicevisit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:YfFieldServiceVisit', 'WorkOrder_YfFieldServiceVisit');
|
|
68
68
|
this.uginprogressaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:UgInProgressAudit', 'WorkOrder_UgInProgressAudit');
|
|
69
69
|
this.ohinprogressaudit = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:WorkOrder', 'FieldServiceModule:OhInProgressAudit', 'WorkOrder_OhInProgressAudit');
|
|
@@ -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
|
|
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;
|
|
11
|
+
readonly organization: DbRecordLinkManager;
|
|
12
|
+
readonly account: DbRecordLinkManager;
|
|
26
13
|
readonly activity: DbRecordLinkManager;
|
|
27
14
|
readonly note: DbRecordLinkManager;
|
|
15
|
+
readonly workorder: DbRecordLinkManager;
|
|
16
|
+
readonly order: DbRecordLinkManager;
|
|
17
|
+
readonly lead: DbRecordLinkManager;
|
|
28
18
|
readonly address: DbRecordLinkManager;
|
|
29
19
|
readonly smsmessage: DbRecordLinkManager;
|
|
20
|
+
readonly invoice: DbRecordLinkManager;
|
|
30
21
|
readonly billingrequest: DbRecordLinkManager;
|
|
31
22
|
readonly file: DbRecordLinkManager;
|
|
23
|
+
readonly commission: DbRecordLinkManager;
|
|
24
|
+
readonly contact: DbRecordLinkManager;
|
|
25
|
+
readonly onetouchswitch: DbRecordLinkManager;
|
|
32
26
|
readonly contactidentity: DbRecordLinkManager;
|
|
33
27
|
readonly paymentmethodrefund: DbRecordLinkManager;
|
|
28
|
+
readonly deactivationapproval: DbRecordLinkManager;
|
|
34
29
|
readonly phonenumber: DbRecordLinkManager;
|
|
30
|
+
readonly orderremediationtask: DbRecordLinkManager;
|
|
35
31
|
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.
|
|
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');
|
|
22
|
+
this.organization = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Organization', 'Organization__Contact');
|
|
23
|
+
this.account = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Account', 'BillingContact');
|
|
37
24
|
this.activity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SchemaModule:Activity', 'Contact__Activity');
|
|
38
25
|
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');
|
|
39
29
|
this.address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
|
|
40
30
|
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');
|
|
41
32
|
this.billingrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
|
|
42
33
|
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');
|
|
43
37
|
this.contactidentity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
|
|
44
38
|
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');
|
|
45
40
|
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');
|
|
46
42
|
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 MobileCountryRateDb 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(mobileCountryRateId: string): Promise<any>;
|
|
15
|
+
getVersions(): Promise<any>;
|
|
16
|
+
getRevisionTimeline(): Promise<any>;
|
|
17
|
+
getManyByPrimaryKey(mobileCountryRateIds: 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(mobileCountryRateIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordDeleted[]>;
|
|
23
|
+
restore(mobileCountryRateIds: 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.MobileCountryRateDb = void 0;
|
|
13
|
+
const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
|
|
14
|
+
class MobileCountryRateDb extends db_provider_1.DbProvider {
|
|
15
|
+
constructor(principal, dbService) {
|
|
16
|
+
super(principal, dbService);
|
|
17
|
+
this.moduleName = 'ServiceModule';
|
|
18
|
+
this.entityName = 'MobileCountryRate';
|
|
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(mobileCountryRateId) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateId);
|
|
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(mobileCountryRateIds) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateIds);
|
|
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(mobileCountryRateIds) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return yield this._delete(this.moduleName, this.entityName, mobileCountryRateIds);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
// Use this function when you want to restore one or many records
|
|
96
|
+
restore(mobileCountryRateIds) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
return yield this._restore(this.moduleName, this.entityName, mobileCountryRateIds);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.MobileCountryRateDb = MobileCountryRateDb;
|