@d19n/youfibre-odin-sdk 1.0.21 → 1.0.23
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-v1/BillingRequestApi.d.ts +7 -0
- package/dist/api-sdk-v1/BillingRequestApi.js +26 -0
- package/dist/api-sdk-v1/CaseApi.d.ts +7 -0
- package/dist/api-sdk-v1/CaseApi.js +26 -0
- package/dist/api-sdk-v1/ConsumptionRateApi.d.ts +7 -0
- package/dist/api-sdk-v1/ConsumptionRateApi.js +26 -0
- package/dist/api-sdk-v1/ConsumptionScheduleApi.d.ts +7 -0
- package/dist/api-sdk-v1/ConsumptionScheduleApi.js +26 -0
- package/dist/api-sdk-v1/ContactApi.d.ts +7 -0
- package/dist/api-sdk-v1/ContactApi.js +26 -0
- package/dist/api-sdk-v1/ContactIdentityApi.d.ts +7 -0
- package/dist/api-sdk-v1/ContactIdentityApi.js +26 -0
- package/dist/api-sdk-v1/CustomerDeviceOntRemovalApi.d.ts +7 -0
- package/dist/api-sdk-v1/CustomerDeviceOntRemovalApi.js +26 -0
- package/dist/api-sdk-v1/FileApi.d.ts +0 -49
- package/dist/api-sdk-v1/FileApi.js +0 -182
- package/dist/api-sdk-v1/InvoiceItemApi.d.ts +7 -0
- package/dist/api-sdk-v1/InvoiceItemApi.js +26 -0
- package/dist/api-sdk-v1/MilestoneApi.d.ts +7 -0
- package/dist/api-sdk-v1/MilestoneApi.js +26 -0
- package/dist/api-sdk-v1/NoteApi.d.ts +7 -0
- package/dist/api-sdk-v1/NoteApi.js +26 -0
- package/dist/api-sdk-v1/OfferApi.d.ts +7 -0
- package/dist/api-sdk-v1/OfferApi.js +26 -0
- package/dist/api-sdk-v1/OrderApi.d.ts +7 -0
- package/dist/api-sdk-v1/OrderApi.js +26 -0
- package/dist/api-sdk-v1/OrderItemApi.d.ts +7 -0
- package/dist/api-sdk-v1/OrderItemApi.js +26 -0
- package/dist/api-sdk-v1/OrganizationApi.d.ts +7 -0
- package/dist/api-sdk-v1/OrganizationApi.js +26 -0
- package/dist/api-sdk-v1/ProductApi.d.ts +9 -1
- package/dist/api-sdk-v1/ProductApi.js +31 -0
- package/dist/api-sdk-v1/ProductComponentApi.d.ts +7 -0
- package/dist/api-sdk-v1/ProductComponentApi.js +26 -0
- package/dist/api-sdk-v1/RestrictionApi.d.ts +7 -0
- package/dist/api-sdk-v1/RestrictionApi.js +26 -0
- package/dist/api-sdk-v1/ServiceApi.d.ts +7 -0
- package/dist/api-sdk-v1/ServiceApi.js +26 -0
- package/dist/api-sdk-v1/SplitOrderApi.d.ts +7 -0
- package/dist/api-sdk-v1/SplitOrderApi.js +26 -0
- package/dist/api-sdk-v1/TransactionApi.d.ts +7 -0
- package/dist/api-sdk-v1/TransactionApi.js +26 -0
- package/dist/api-sdk-v1/WorkOrderApi.d.ts +14 -0
- package/dist/api-sdk-v1/WorkOrderApi.js +52 -0
- package/dist/db-sdk-v1/BillingRequestDb.d.ts +7 -0
- package/dist/db-sdk-v1/BillingRequestDb.js +33 -0
- package/dist/db-sdk-v1/CaseDb.d.ts +7 -0
- package/dist/db-sdk-v1/CaseDb.js +33 -0
- package/dist/db-sdk-v1/ConsumptionRateDb.d.ts +7 -0
- package/dist/db-sdk-v1/ConsumptionRateDb.js +33 -0
- package/dist/db-sdk-v1/ConsumptionScheduleDb.d.ts +7 -0
- package/dist/db-sdk-v1/ConsumptionScheduleDb.js +33 -0
- package/dist/db-sdk-v1/ContactDb.d.ts +7 -0
- package/dist/db-sdk-v1/ContactDb.js +33 -0
- package/dist/db-sdk-v1/ContactIdentityDb.d.ts +7 -0
- package/dist/db-sdk-v1/ContactIdentityDb.js +33 -0
- package/dist/db-sdk-v1/FileDb.d.ts +0 -49
- package/dist/db-sdk-v1/FileDb.js +0 -231
- package/dist/db-sdk-v1/InvoiceItemDb.d.ts +7 -0
- package/dist/db-sdk-v1/InvoiceItemDb.js +33 -0
- package/dist/db-sdk-v1/MilestoneDb.d.ts +7 -0
- package/dist/db-sdk-v1/MilestoneDb.js +33 -0
- package/dist/db-sdk-v1/NoteDb.d.ts +7 -0
- package/dist/db-sdk-v1/NoteDb.js +33 -0
- package/dist/db-sdk-v1/OfferDb.d.ts +7 -0
- package/dist/db-sdk-v1/OfferDb.js +33 -0
- package/dist/db-sdk-v1/OrderDb.d.ts +7 -0
- package/dist/db-sdk-v1/OrderDb.js +33 -0
- package/dist/db-sdk-v1/OrderItemDb.d.ts +7 -0
- package/dist/db-sdk-v1/OrderItemDb.js +33 -0
- package/dist/db-sdk-v1/OrganizationDb.d.ts +7 -0
- package/dist/db-sdk-v1/OrganizationDb.js +33 -0
- package/dist/db-sdk-v1/ProductComponentDb.d.ts +7 -0
- package/dist/db-sdk-v1/ProductComponentDb.js +33 -0
- package/dist/db-sdk-v1/ProductDb.d.ts +9 -1
- package/dist/db-sdk-v1/ProductDb.js +38 -0
- package/dist/db-sdk-v1/RestrictionDb.d.ts +7 -0
- package/dist/db-sdk-v1/RestrictionDb.js +33 -0
- package/dist/db-sdk-v1/ServiceDb.d.ts +7 -0
- package/dist/db-sdk-v1/ServiceDb.js +33 -0
- package/dist/db-sdk-v1/SplitOrderDb.d.ts +7 -0
- package/dist/db-sdk-v1/SplitOrderDb.js +33 -0
- package/dist/db-sdk-v1/TransactionDb.d.ts +7 -0
- package/dist/db-sdk-v1/TransactionDb.js +33 -0
- package/dist/db-sdk-v1/WorkOrderDb.d.ts +14 -0
- package/dist/db-sdk-v1/WorkOrderDb.js +66 -0
- package/package.json +2 -2
- package/src/api-sdk-v1/BillingRequestApi.ts +27 -0
- package/src/api-sdk-v1/CaseApi.ts +27 -0
- package/src/api-sdk-v1/ConsumptionRateApi.ts +27 -0
- package/src/api-sdk-v1/ConsumptionScheduleApi.ts +27 -0
- package/src/api-sdk-v1/ContactApi.ts +27 -0
- package/src/api-sdk-v1/ContactIdentityApi.ts +27 -0
- package/src/api-sdk-v1/CustomerDeviceOntRemovalApi.ts +27 -0
- package/src/api-sdk-v1/FileApi.ts +0 -189
- package/src/api-sdk-v1/InvoiceItemApi.ts +27 -0
- package/src/api-sdk-v1/MilestoneApi.ts +27 -0
- package/src/api-sdk-v1/NoteApi.ts +27 -0
- package/src/api-sdk-v1/OfferApi.ts +27 -0
- package/src/api-sdk-v1/OrderApi.ts +27 -0
- package/src/api-sdk-v1/OrderItemApi.ts +27 -0
- package/src/api-sdk-v1/OrganizationApi.ts +27 -0
- package/src/api-sdk-v1/ProductApi.ts +31 -0
- package/src/api-sdk-v1/ProductComponentApi.ts +27 -0
- package/src/api-sdk-v1/RestrictionApi.ts +27 -0
- package/src/api-sdk-v1/ServiceApi.ts +27 -0
- package/src/api-sdk-v1/SplitOrderApi.ts +27 -0
- package/src/api-sdk-v1/TransactionApi.ts +27 -0
- package/src/api-sdk-v1/WorkOrderApi.ts +54 -0
- package/src/db-sdk-v1/BillingRequestDb.ts +35 -0
- package/src/db-sdk-v1/CaseDb.ts +35 -0
- package/src/db-sdk-v1/ConsumptionRateDb.ts +35 -0
- package/src/db-sdk-v1/ConsumptionScheduleDb.ts +35 -0
- package/src/db-sdk-v1/ContactDb.ts +35 -0
- package/src/db-sdk-v1/ContactIdentityDb.ts +35 -0
- package/src/db-sdk-v1/FileDb.ts +0 -245
- package/src/db-sdk-v1/InvoiceItemDb.ts +35 -0
- package/src/db-sdk-v1/MilestoneDb.ts +35 -0
- package/src/db-sdk-v1/NoteDb.ts +35 -0
- package/src/db-sdk-v1/OfferDb.ts +35 -0
- package/src/db-sdk-v1/OrderDb.ts +35 -0
- package/src/db-sdk-v1/OrderItemDb.ts +35 -0
- package/src/db-sdk-v1/OrganizationDb.ts +35 -0
- package/src/db-sdk-v1/ProductComponentDb.ts +35 -0
- package/src/db-sdk-v1/ProductDb.ts +39 -0
- package/src/db-sdk-v1/RestrictionDb.ts +35 -0
- package/src/db-sdk-v1/ServiceDb.ts +35 -0
- package/src/db-sdk-v1/SplitOrderDb.ts +35 -0
- package/src/db-sdk-v1/TransactionDb.ts +35 -0
- package/src/db-sdk-v1/WorkOrderDb.ts +70 -0
|
@@ -160,6 +160,13 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
160
160
|
relatedAssociationId?: string;
|
|
161
161
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
162
162
|
unLinkWorkOrderNetomniaInstallVerifications(workOrderId: string, linkedNetomniaInstallVerificationId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
163
|
+
getCustomerDeviceOntRemovals(workOrderId: string): Promise<any>;
|
|
164
|
+
linkWorkOrderCustomerDeviceOntRemovals(workOrderId: string, customerDeviceOntRemovalIds: {
|
|
165
|
+
id: string;
|
|
166
|
+
relationType?: RelationTypeEnum;
|
|
167
|
+
relatedAssociationId?: string;
|
|
168
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
169
|
+
unLinkWorkOrderCustomerDeviceOntRemovals(workOrderId: string, linkedCustomerDeviceOntRemovalId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
163
170
|
getYfEquipmentCollections(workOrderId: string): Promise<any>;
|
|
164
171
|
linkWorkOrderYfEquipmentCollections(workOrderId: string, yfEquipmentCollectionIds: {
|
|
165
172
|
id: string;
|
|
@@ -251,6 +258,13 @@ export declare class WorkOrderApi extends ApiProvider {
|
|
|
251
258
|
relatedAssociationId?: string;
|
|
252
259
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
253
260
|
unLinkWorkOrderOhInstallationAudits(workOrderId: string, linkedOhInstallationAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
261
|
+
getWorkOrders(workOrderId: string): Promise<any>;
|
|
262
|
+
linkWorkOrderWorkOrders(workOrderId: string, workOrderIds: {
|
|
263
|
+
id: string;
|
|
264
|
+
relationType?: RelationTypeEnum;
|
|
265
|
+
relatedAssociationId?: string;
|
|
266
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
267
|
+
unLinkWorkOrderWorkOrders(workOrderId: string, linkedWorkOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
254
268
|
getOhAuditOfInstallations(workOrderId: string): Promise<any>;
|
|
255
269
|
linkWorkOrderOhAuditOfInstallations(workOrderId: string, ohAuditOfInstallationIds: {
|
|
256
270
|
id: string;
|
|
@@ -585,6 +585,32 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
|
|
|
585
585
|
});
|
|
586
586
|
}
|
|
587
587
|
// Use this function when you want to return a single record
|
|
588
|
+
getCustomerDeviceOntRemovals(workOrderId) {
|
|
589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
+
return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'CustomerDeviceOntRemoval');
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
linkWorkOrderCustomerDeviceOntRemovals(workOrderId, customerDeviceOntRemovalIds) {
|
|
594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
595
|
+
const associationDtos = [];
|
|
596
|
+
for (const param of customerDeviceOntRemovalIds) {
|
|
597
|
+
associationDtos.push({
|
|
598
|
+
entity: 'ServiceModule:CustomerDeviceOntRemoval',
|
|
599
|
+
recordId: param.id,
|
|
600
|
+
linkType: 'WorkOrder_CustomerDeviceOntRemoval',
|
|
601
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
602
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
unLinkWorkOrderCustomerDeviceOntRemovals(workOrderId, linkedCustomerDeviceOntRemovalId) {
|
|
609
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
610
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedCustomerDeviceOntRemovalId);
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
// Use this function when you want to return a single record
|
|
588
614
|
getYfEquipmentCollections(workOrderId) {
|
|
589
615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
590
616
|
return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'YfEquipmentCollection');
|
|
@@ -923,6 +949,32 @@ class WorkOrderApi extends api_provider_1.ApiProvider {
|
|
|
923
949
|
});
|
|
924
950
|
}
|
|
925
951
|
// Use this function when you want to return a single record
|
|
952
|
+
getWorkOrders(workOrderId) {
|
|
953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
954
|
+
return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'WorkOrder');
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
linkWorkOrderWorkOrders(workOrderId, workOrderIds) {
|
|
958
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
959
|
+
const associationDtos = [];
|
|
960
|
+
for (const param of workOrderIds) {
|
|
961
|
+
associationDtos.push({
|
|
962
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
963
|
+
recordId: param.id,
|
|
964
|
+
linkType: 'WorkOrder__WorkOrder',
|
|
965
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
966
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
return yield this._createLinks(this.moduleName, this.entityName, workOrderId, associationDtos);
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
unLinkWorkOrderWorkOrders(workOrderId, linkedWorkOrderId) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, workOrderId, linkedWorkOrderId);
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
// Use this function when you want to return a single record
|
|
926
978
|
getOhAuditOfInstallations(workOrderId) {
|
|
927
979
|
return __awaiter(this, void 0, void 0, function* () {
|
|
928
980
|
return yield this._getLinks(this.moduleName, this.entityName, workOrderId, 'OhAuditOfInstallation');
|
|
@@ -24,6 +24,13 @@ export declare class BillingRequestDb extends DbProvider {
|
|
|
24
24
|
relatedAssociationId?: string;
|
|
25
25
|
}[]): Promise<any>;
|
|
26
26
|
unlinkContactBillingRequests(billingRequestId: string, linkedContactIds: string[]): Promise<any>;
|
|
27
|
+
getBillingRequests(billingRequestId: string): Promise<any>;
|
|
28
|
+
linkBillingRequestBillingRequests(billingRequestId: string, billingRequestIds: {
|
|
29
|
+
id: string;
|
|
30
|
+
relationType?: RelationTypeEnum;
|
|
31
|
+
relatedAssociationId?: string;
|
|
32
|
+
}[]): Promise<any>;
|
|
33
|
+
unlinkBillingRequestBillingRequests(billingRequestId: string, linkedBillingRequestIds: string[]): Promise<any>;
|
|
27
34
|
getFiles(billingRequestId: string): Promise<any>;
|
|
28
35
|
linkBillingRequestFiles(billingRequestId: string, fileIds: {
|
|
29
36
|
id: string;
|
|
@@ -113,6 +113,39 @@ class BillingRequestDb extends db_provider_1.DbProvider {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
// Use this function when you want to return a single record
|
|
116
|
+
getBillingRequests(billingRequestId) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this._getLinks(this.moduleName, this.entityName, billingRequestId, 'BillingRequest');
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
linkBillingRequestBillingRequests(billingRequestId, billingRequestIds) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const associationDtos = [];
|
|
124
|
+
for (const param of billingRequestIds) {
|
|
125
|
+
associationDtos.push({
|
|
126
|
+
entity: 'BillingModule:BillingRequest',
|
|
127
|
+
recordId: param.id,
|
|
128
|
+
linkType: 'BillingRequest__BillingRequest',
|
|
129
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
130
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return yield this._createLinks(this.moduleName, this.entityName, billingRequestId, associationDtos);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
unlinkBillingRequestBillingRequests(billingRequestId, linkedBillingRequestIds) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const associationDtos = [];
|
|
139
|
+
for (const pk of linkedBillingRequestIds) {
|
|
140
|
+
associationDtos.push({
|
|
141
|
+
primaryKey: billingRequestId,
|
|
142
|
+
linkedRecordPrimaryKey: pk,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, billingRequestId, associationDtos);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Use this function when you want to return a single record
|
|
116
149
|
getFiles(billingRequestId) {
|
|
117
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
151
|
return yield this._getLinks(this.moduleName, this.entityName, billingRequestId, 'File');
|
|
@@ -17,6 +17,13 @@ export declare class CaseDb extends DbProvider {
|
|
|
17
17
|
update(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
|
|
18
18
|
delete(caseIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordDeleted[]>;
|
|
19
19
|
restore(caseIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordRestored[]>;
|
|
20
|
+
getCases(caseId: string): Promise<any>;
|
|
21
|
+
linkCaseCases(caseId: string, caseIds: {
|
|
22
|
+
id: string;
|
|
23
|
+
relationType?: RelationTypeEnum;
|
|
24
|
+
relatedAssociationId?: string;
|
|
25
|
+
}[]): Promise<any>;
|
|
26
|
+
unlinkCaseCases(caseId: string, linkedCaseIds: string[]): Promise<any>;
|
|
20
27
|
getFiles(caseId: string): Promise<any>;
|
|
21
28
|
linkCaseFiles(caseId: string, fileIds: {
|
|
22
29
|
id: string;
|
package/dist/db-sdk-v1/CaseDb.js
CHANGED
|
@@ -80,6 +80,39 @@ class CaseDb extends db_provider_1.DbProvider {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
// Use this function when you want to return a single record
|
|
83
|
+
getCases(caseId) {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
return yield this._getLinks(this.moduleName, this.entityName, caseId, 'Case');
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
linkCaseCases(caseId, caseIds) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
const associationDtos = [];
|
|
91
|
+
for (const param of caseIds) {
|
|
92
|
+
associationDtos.push({
|
|
93
|
+
entity: 'SupportModule:Case',
|
|
94
|
+
recordId: param.id,
|
|
95
|
+
linkType: 'Case__Case',
|
|
96
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
97
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
return yield this._createLinks(this.moduleName, this.entityName, caseId, associationDtos);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
unlinkCaseCases(caseId, linkedCaseIds) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const associationDtos = [];
|
|
106
|
+
for (const pk of linkedCaseIds) {
|
|
107
|
+
associationDtos.push({
|
|
108
|
+
primaryKey: caseId,
|
|
109
|
+
linkedRecordPrimaryKey: pk,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, caseId, associationDtos);
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
// Use this function when you want to return a single record
|
|
83
116
|
getFiles(caseId) {
|
|
84
117
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
118
|
return yield this._getLinks(this.moduleName, this.entityName, caseId, 'File');
|
|
@@ -24,4 +24,11 @@ export declare class ConsumptionRateDb extends DbProvider {
|
|
|
24
24
|
relatedAssociationId?: string;
|
|
25
25
|
}[]): Promise<any>;
|
|
26
26
|
unlinkConsumptionScheduleConsumptionRates(consumptionRateId: string, linkedConsumptionScheduleIds: string[]): Promise<any>;
|
|
27
|
+
getConsumptionRates(consumptionRateId: string): Promise<any>;
|
|
28
|
+
linkConsumptionRateConsumptionRates(consumptionRateId: string, consumptionRateIds: {
|
|
29
|
+
id: string;
|
|
30
|
+
relationType?: RelationTypeEnum;
|
|
31
|
+
relatedAssociationId?: string;
|
|
32
|
+
}[]): Promise<any>;
|
|
33
|
+
unlinkConsumptionRateConsumptionRates(consumptionRateId: string, linkedConsumptionRateIds: string[]): Promise<any>;
|
|
27
34
|
}
|
|
@@ -112,5 +112,38 @@ class ConsumptionRateDb extends db_provider_1.DbProvider {
|
|
|
112
112
|
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionRateId, associationDtos);
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
|
+
// Use this function when you want to return a single record
|
|
116
|
+
getConsumptionRates(consumptionRateId) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this._getLinks(this.moduleName, this.entityName, consumptionRateId, 'ConsumptionRate');
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
linkConsumptionRateConsumptionRates(consumptionRateId, consumptionRateIds) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const associationDtos = [];
|
|
124
|
+
for (const param of consumptionRateIds) {
|
|
125
|
+
associationDtos.push({
|
|
126
|
+
entity: 'ProductModule:ConsumptionRate',
|
|
127
|
+
recordId: param.id,
|
|
128
|
+
linkType: 'ConsumptionRate__ConsumptionRate',
|
|
129
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
130
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return yield this._createLinks(this.moduleName, this.entityName, consumptionRateId, associationDtos);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
unlinkConsumptionRateConsumptionRates(consumptionRateId, linkedConsumptionRateIds) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const associationDtos = [];
|
|
139
|
+
for (const pk of linkedConsumptionRateIds) {
|
|
140
|
+
associationDtos.push({
|
|
141
|
+
primaryKey: consumptionRateId,
|
|
142
|
+
linkedRecordPrimaryKey: pk,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionRateId, associationDtos);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
115
148
|
}
|
|
116
149
|
exports.ConsumptionRateDb = ConsumptionRateDb;
|
|
@@ -31,4 +31,11 @@ export declare class ConsumptionScheduleDb extends DbProvider {
|
|
|
31
31
|
relatedAssociationId?: string;
|
|
32
32
|
}[]): Promise<any>;
|
|
33
33
|
unlinkProductConsumptionSchedules(consumptionScheduleId: string, linkedProductIds: string[]): Promise<any>;
|
|
34
|
+
getConsumptionSchedules(consumptionScheduleId: string): Promise<any>;
|
|
35
|
+
linkConsumptionScheduleConsumptionSchedules(consumptionScheduleId: string, consumptionScheduleIds: {
|
|
36
|
+
id: string;
|
|
37
|
+
relationType?: RelationTypeEnum;
|
|
38
|
+
relatedAssociationId?: string;
|
|
39
|
+
}[]): Promise<any>;
|
|
40
|
+
unlinkConsumptionScheduleConsumptionSchedules(consumptionScheduleId: string, linkedConsumptionScheduleIds: string[]): Promise<any>;
|
|
34
41
|
}
|
|
@@ -145,5 +145,38 @@ class ConsumptionScheduleDb extends db_provider_1.DbProvider {
|
|
|
145
145
|
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionScheduleId, associationDtos);
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
|
+
// Use this function when you want to return a single record
|
|
149
|
+
getConsumptionSchedules(consumptionScheduleId) {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
return yield this._getLinks(this.moduleName, this.entityName, consumptionScheduleId, 'ConsumptionSchedule');
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
linkConsumptionScheduleConsumptionSchedules(consumptionScheduleId, consumptionScheduleIds) {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
const associationDtos = [];
|
|
157
|
+
for (const param of consumptionScheduleIds) {
|
|
158
|
+
associationDtos.push({
|
|
159
|
+
entity: 'ProductModule:ConsumptionSchedule',
|
|
160
|
+
recordId: param.id,
|
|
161
|
+
linkType: 'ConsumptionSchedule__ConsumptionSchedule',
|
|
162
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
163
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
return yield this._createLinks(this.moduleName, this.entityName, consumptionScheduleId, associationDtos);
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
unlinkConsumptionScheduleConsumptionSchedules(consumptionScheduleId, linkedConsumptionScheduleIds) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
const associationDtos = [];
|
|
172
|
+
for (const pk of linkedConsumptionScheduleIds) {
|
|
173
|
+
associationDtos.push({
|
|
174
|
+
primaryKey: consumptionScheduleId,
|
|
175
|
+
linkedRecordPrimaryKey: pk,
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, consumptionScheduleId, associationDtos);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
148
181
|
}
|
|
149
182
|
exports.ConsumptionScheduleDb = ConsumptionScheduleDb;
|
|
@@ -108,6 +108,13 @@ export declare class ContactDb extends DbProvider {
|
|
|
108
108
|
relatedAssociationId?: string;
|
|
109
109
|
}[]): Promise<any>;
|
|
110
110
|
unlinkCommissionContacts(contactId: string, linkedCommissionIds: string[]): Promise<any>;
|
|
111
|
+
getContacts(contactId: string): Promise<any>;
|
|
112
|
+
linkContactContacts(contactId: string, contactIds: {
|
|
113
|
+
id: string;
|
|
114
|
+
relationType?: RelationTypeEnum;
|
|
115
|
+
relatedAssociationId?: string;
|
|
116
|
+
}[]): Promise<any>;
|
|
117
|
+
unlinkContactContacts(contactId: string, linkedContactIds: string[]): Promise<any>;
|
|
111
118
|
getOneTouchSwitchs(contactId: string): Promise<any>;
|
|
112
119
|
linkOneTouchSwitchContacts(contactId: string, oneTouchSwitchIds: {
|
|
113
120
|
id: string;
|
|
@@ -509,6 +509,39 @@ class ContactDb extends db_provider_1.DbProvider {
|
|
|
509
509
|
});
|
|
510
510
|
}
|
|
511
511
|
// Use this function when you want to return a single record
|
|
512
|
+
getContacts(contactId) {
|
|
513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
514
|
+
return yield this._getLinks(this.moduleName, this.entityName, contactId, 'Contact');
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
linkContactContacts(contactId, contactIds) {
|
|
518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
519
|
+
const associationDtos = [];
|
|
520
|
+
for (const param of contactIds) {
|
|
521
|
+
associationDtos.push({
|
|
522
|
+
entity: 'CrmModule:Contact',
|
|
523
|
+
recordId: param.id,
|
|
524
|
+
linkType: 'Contact__Contact',
|
|
525
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
526
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
return yield this._createLinks(this.moduleName, this.entityName, contactId, associationDtos);
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
unlinkContactContacts(contactId, linkedContactIds) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
534
|
+
const associationDtos = [];
|
|
535
|
+
for (const pk of linkedContactIds) {
|
|
536
|
+
associationDtos.push({
|
|
537
|
+
primaryKey: contactId,
|
|
538
|
+
linkedRecordPrimaryKey: pk,
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, contactId, associationDtos);
|
|
542
|
+
});
|
|
543
|
+
}
|
|
544
|
+
// Use this function when you want to return a single record
|
|
512
545
|
getOneTouchSwitchs(contactId) {
|
|
513
546
|
return __awaiter(this, void 0, void 0, function* () {
|
|
514
547
|
return yield this._getLinks(this.moduleName, this.entityName, contactId, 'OneTouchSwitch');
|
|
@@ -24,6 +24,13 @@ export declare class ContactIdentityDb extends DbProvider {
|
|
|
24
24
|
relatedAssociationId?: string;
|
|
25
25
|
}[]): Promise<any>;
|
|
26
26
|
unlinkContactIdentityPaymentMethods(contactIdentityId: string, linkedPaymentMethodIds: string[]): Promise<any>;
|
|
27
|
+
getContactIdentitys(contactIdentityId: string): Promise<any>;
|
|
28
|
+
linkContactIdentityContactIdentitys(contactIdentityId: string, contactIdentityIds: {
|
|
29
|
+
id: string;
|
|
30
|
+
relationType?: RelationTypeEnum;
|
|
31
|
+
relatedAssociationId?: string;
|
|
32
|
+
}[]): Promise<any>;
|
|
33
|
+
unlinkContactIdentityContactIdentitys(contactIdentityId: string, linkedContactIdentityIds: string[]): Promise<any>;
|
|
27
34
|
getContacts(contactIdentityId: string): Promise<any>;
|
|
28
35
|
linkContactContactIdentitys(contactIdentityId: string, contactIds: {
|
|
29
36
|
id: string;
|
|
@@ -113,6 +113,39 @@ class ContactIdentityDb extends db_provider_1.DbProvider {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
// Use this function when you want to return a single record
|
|
116
|
+
getContactIdentitys(contactIdentityId) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
118
|
+
return yield this._getLinks(this.moduleName, this.entityName, contactIdentityId, 'ContactIdentity');
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
linkContactIdentityContactIdentitys(contactIdentityId, contactIdentityIds) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
const associationDtos = [];
|
|
124
|
+
for (const param of contactIdentityIds) {
|
|
125
|
+
associationDtos.push({
|
|
126
|
+
entity: 'CrmModule:ContactIdentity',
|
|
127
|
+
recordId: param.id,
|
|
128
|
+
linkType: 'ContactIdentity__ContactIdentity',
|
|
129
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
130
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
return yield this._createLinks(this.moduleName, this.entityName, contactIdentityId, associationDtos);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
unlinkContactIdentityContactIdentitys(contactIdentityId, linkedContactIdentityIds) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const associationDtos = [];
|
|
139
|
+
for (const pk of linkedContactIdentityIds) {
|
|
140
|
+
associationDtos.push({
|
|
141
|
+
primaryKey: contactIdentityId,
|
|
142
|
+
linkedRecordPrimaryKey: pk,
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, contactIdentityId, associationDtos);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
// Use this function when you want to return a single record
|
|
116
149
|
getContacts(contactIdentityId) {
|
|
117
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
151
|
return yield this._getLinks(this.moduleName, this.entityName, contactIdentityId, 'Contact');
|
|
@@ -52,13 +52,6 @@ export declare class FileDb extends DbProvider {
|
|
|
52
52
|
relatedAssociationId?: string;
|
|
53
53
|
}[]): Promise<any>;
|
|
54
54
|
unlinkInternalInstallAuditFiles(fileId: string, linkedInternalInstallAuditIds: string[]): Promise<any>;
|
|
55
|
-
getKnowledgeArticles(fileId: string): Promise<any>;
|
|
56
|
-
linkKnowledgeArticleFiles(fileId: string, knowledgeArticleIds: {
|
|
57
|
-
id: string;
|
|
58
|
-
relationType?: RelationTypeEnum;
|
|
59
|
-
relatedAssociationId?: string;
|
|
60
|
-
}[]): Promise<any>;
|
|
61
|
-
unlinkKnowledgeArticleFiles(fileId: string, linkedKnowledgeArticleIds: string[]): Promise<any>;
|
|
62
55
|
getCases(fileId: string): Promise<any>;
|
|
63
56
|
linkCaseFiles(fileId: string, caseIds: {
|
|
64
57
|
id: string;
|
|
@@ -206,20 +199,6 @@ export declare class FileDb extends DbProvider {
|
|
|
206
199
|
relatedAssociationId?: string;
|
|
207
200
|
}[]): Promise<any>;
|
|
208
201
|
unlinkVisitFiles(fileId: string, linkedVisitIds: string[]): Promise<any>;
|
|
209
|
-
getNetomniaFtth2StageInstallAudits(fileId: string): Promise<any>;
|
|
210
|
-
linkNetomniaFtth2StageInstallAuditFiles(fileId: string, netomniaFtth2StageInstallAuditIds: {
|
|
211
|
-
id: string;
|
|
212
|
-
relationType?: RelationTypeEnum;
|
|
213
|
-
relatedAssociationId?: string;
|
|
214
|
-
}[]): Promise<any>;
|
|
215
|
-
unlinkNetomniaFtth2StageInstallAuditFiles(fileId: string, linkedNetomniaFtth2StageInstallAuditIds: string[]): Promise<any>;
|
|
216
|
-
getYfStockCounts(fileId: string): Promise<any>;
|
|
217
|
-
linkYfStockCountFiles(fileId: string, yfStockCountIds: {
|
|
218
|
-
id: string;
|
|
219
|
-
relationType?: RelationTypeEnum;
|
|
220
|
-
relatedAssociationId?: string;
|
|
221
|
-
}[]): Promise<any>;
|
|
222
|
-
unlinkYfStockCountFiles(fileId: string, linkedYfStockCountIds: string[]): Promise<any>;
|
|
223
202
|
getYfEquipmentCollections(fileId: string): Promise<any>;
|
|
224
203
|
linkYfEquipmentCollectionFiles(fileId: string, yfEquipmentCollectionIds: {
|
|
225
204
|
id: string;
|
|
@@ -310,27 +289,6 @@ export declare class FileDb extends DbProvider {
|
|
|
310
289
|
relatedAssociationId?: string;
|
|
311
290
|
}[]): Promise<any>;
|
|
312
291
|
unlinkUgAuditOfInstallationFiles(fileId: string, linkedUgAuditOfInstallationIds: string[]): Promise<any>;
|
|
313
|
-
getUgRetroAudits(fileId: string): Promise<any>;
|
|
314
|
-
linkUgRetroAuditFiles(fileId: string, ugRetroAuditIds: {
|
|
315
|
-
id: string;
|
|
316
|
-
relationType?: RelationTypeEnum;
|
|
317
|
-
relatedAssociationId?: string;
|
|
318
|
-
}[]): Promise<any>;
|
|
319
|
-
unlinkUgRetroAuditFiles(fileId: string, linkedUgRetroAuditIds: string[]): Promise<any>;
|
|
320
|
-
getOhRetroAudits(fileId: string): Promise<any>;
|
|
321
|
-
linkOhRetroAuditFiles(fileId: string, ohRetroAuditIds: {
|
|
322
|
-
id: string;
|
|
323
|
-
relationType?: RelationTypeEnum;
|
|
324
|
-
relatedAssociationId?: string;
|
|
325
|
-
}[]): Promise<any>;
|
|
326
|
-
unlinkOhRetroAuditFiles(fileId: string, linkedOhRetroAuditIds: string[]): Promise<any>;
|
|
327
|
-
getRemediationOutcomeForms(fileId: string): Promise<any>;
|
|
328
|
-
linkRemediationOutcomeFormFiles(fileId: string, remediationOutcomeFormIds: {
|
|
329
|
-
id: string;
|
|
330
|
-
relationType?: RelationTypeEnum;
|
|
331
|
-
relatedAssociationId?: string;
|
|
332
|
-
}[]): Promise<any>;
|
|
333
|
-
unlinkRemediationOutcomeFormFiles(fileId: string, linkedRemediationOutcomeFormIds: string[]): Promise<any>;
|
|
334
292
|
getUgInProgressAudits(fileId: string): Promise<any>;
|
|
335
293
|
linkUgInProgressAuditFiles(fileId: string, ugInProgressAuditIds: {
|
|
336
294
|
id: string;
|
|
@@ -345,13 +303,6 @@ export declare class FileDb extends DbProvider {
|
|
|
345
303
|
relatedAssociationId?: string;
|
|
346
304
|
}[]): Promise<any>;
|
|
347
305
|
unlinkOhInProgressAuditFiles(fileId: string, linkedOhInProgressAuditIds: string[]): Promise<any>;
|
|
348
|
-
getBlockageA55s(fileId: string): Promise<any>;
|
|
349
|
-
linkOverlayA55Files(fileId: string, blockageA55Ids: {
|
|
350
|
-
id: string;
|
|
351
|
-
relationType?: RelationTypeEnum;
|
|
352
|
-
relatedAssociationId?: string;
|
|
353
|
-
}[]): Promise<any>;
|
|
354
|
-
unlinkOverlayA55Files(fileId: string, linkedBlockageA55Ids: string[]): Promise<any>;
|
|
355
306
|
getOverlayRealA55s(fileId: string): Promise<any>;
|
|
356
307
|
linkOverlayRealA55Files(fileId: string, overlayRealA55Ids: {
|
|
357
308
|
id: string;
|