@d19n/youfibre-odin-sdk 1.0.22 → 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/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/WorkOrderApi.d.ts +7 -0
- package/dist/api-sdk-v1/WorkOrderApi.js +26 -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/WorkOrderDb.d.ts +7 -0
- package/dist/db-sdk-v1/WorkOrderDb.js +33 -0
- package/package.json +1 -1
- package/src/api-sdk-v1/CustomerDeviceOntRemovalApi.ts +27 -0
- package/src/api-sdk-v1/FileApi.ts +0 -189
- package/src/api-sdk-v1/WorkOrderApi.ts +27 -0
- package/src/db-sdk-v1/FileDb.ts +0 -245
- package/src/db-sdk-v1/WorkOrderDb.ts +35 -0
|
@@ -34,4 +34,11 @@ export declare class CustomerDeviceOntRemovalApi extends ApiProvider {
|
|
|
34
34
|
relatedAssociationId?: string;
|
|
35
35
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
36
36
|
unLinkCustomerDeviceOntCustomerDeviceOntRemovals(customerDeviceOntRemovalId: string, linkedCustomerDeviceOntId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
|
+
getWorkOrders(customerDeviceOntRemovalId: string): Promise<any>;
|
|
38
|
+
linkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId: string, workOrderIds: {
|
|
39
|
+
id: string;
|
|
40
|
+
relationType?: RelationTypeEnum;
|
|
41
|
+
relatedAssociationId?: string;
|
|
42
|
+
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
43
|
+
unLinkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId: string, linkedWorkOrderId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
37
44
|
}
|
|
@@ -116,5 +116,31 @@ class CustomerDeviceOntRemovalApi extends api_provider_1.ApiProvider {
|
|
|
116
116
|
return yield this._deleteLinks(this.moduleName, this.entityName, customerDeviceOntRemovalId, linkedCustomerDeviceOntId);
|
|
117
117
|
});
|
|
118
118
|
}
|
|
119
|
+
// Use this function when you want to return a single record
|
|
120
|
+
getWorkOrders(customerDeviceOntRemovalId) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
return yield this._getLinks(this.moduleName, this.entityName, customerDeviceOntRemovalId, 'WorkOrder');
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
linkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId, workOrderIds) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const associationDtos = [];
|
|
128
|
+
for (const param of workOrderIds) {
|
|
129
|
+
associationDtos.push({
|
|
130
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
131
|
+
recordId: param.id,
|
|
132
|
+
linkType: 'WorkOrder_CustomerDeviceOntRemoval',
|
|
133
|
+
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
134
|
+
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
return yield this._createLinks(this.moduleName, this.entityName, customerDeviceOntRemovalId, associationDtos);
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
unLinkWorkOrderCustomerDeviceOntRemovals(customerDeviceOntRemovalId, linkedWorkOrderId) {
|
|
141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
142
|
+
return yield this._deleteLinks(this.moduleName, this.entityName, customerDeviceOntRemovalId, linkedWorkOrderId);
|
|
143
|
+
});
|
|
144
|
+
}
|
|
119
145
|
}
|
|
120
146
|
exports.CustomerDeviceOntRemovalApi = CustomerDeviceOntRemovalApi;
|
|
@@ -62,13 +62,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
62
62
|
relatedAssociationId?: string;
|
|
63
63
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
64
64
|
unLinkInternalInstallAuditFiles(fileId: string, linkedInternalInstallAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
65
|
-
getKnowledgeArticles(fileId: string): Promise<any>;
|
|
66
|
-
linkKnowledgeArticleFiles(fileId: string, knowledgeArticleIds: {
|
|
67
|
-
id: string;
|
|
68
|
-
relationType?: RelationTypeEnum;
|
|
69
|
-
relatedAssociationId?: string;
|
|
70
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
71
|
-
unLinkKnowledgeArticleFiles(fileId: string, linkedKnowledgeArticleId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
72
65
|
getCases(fileId: string): Promise<any>;
|
|
73
66
|
linkCaseFiles(fileId: string, caseIds: {
|
|
74
67
|
id: string;
|
|
@@ -216,20 +209,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
216
209
|
relatedAssociationId?: string;
|
|
217
210
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
218
211
|
unLinkVisitFiles(fileId: string, linkedVisitId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
219
|
-
getNetomniaFtth2StageInstallAudits(fileId: string): Promise<any>;
|
|
220
|
-
linkNetomniaFtth2StageInstallAuditFiles(fileId: string, netomniaFtth2StageInstallAuditIds: {
|
|
221
|
-
id: string;
|
|
222
|
-
relationType?: RelationTypeEnum;
|
|
223
|
-
relatedAssociationId?: string;
|
|
224
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
225
|
-
unLinkNetomniaFtth2StageInstallAuditFiles(fileId: string, linkedNetomniaFtth2StageInstallAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
226
|
-
getYfStockCounts(fileId: string): Promise<any>;
|
|
227
|
-
linkYfStockCountFiles(fileId: string, yfStockCountIds: {
|
|
228
|
-
id: string;
|
|
229
|
-
relationType?: RelationTypeEnum;
|
|
230
|
-
relatedAssociationId?: string;
|
|
231
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
232
|
-
unLinkYfStockCountFiles(fileId: string, linkedYfStockCountId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
233
212
|
getYfEquipmentCollections(fileId: string): Promise<any>;
|
|
234
213
|
linkYfEquipmentCollectionFiles(fileId: string, yfEquipmentCollectionIds: {
|
|
235
214
|
id: string;
|
|
@@ -320,27 +299,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
320
299
|
relatedAssociationId?: string;
|
|
321
300
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
322
301
|
unLinkUgAuditOfInstallationFiles(fileId: string, linkedUgAuditOfInstallationId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
323
|
-
getUgRetroAudits(fileId: string): Promise<any>;
|
|
324
|
-
linkUgRetroAuditFiles(fileId: string, ugRetroAuditIds: {
|
|
325
|
-
id: string;
|
|
326
|
-
relationType?: RelationTypeEnum;
|
|
327
|
-
relatedAssociationId?: string;
|
|
328
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
329
|
-
unLinkUgRetroAuditFiles(fileId: string, linkedUgRetroAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
330
|
-
getOhRetroAudits(fileId: string): Promise<any>;
|
|
331
|
-
linkOhRetroAuditFiles(fileId: string, ohRetroAuditIds: {
|
|
332
|
-
id: string;
|
|
333
|
-
relationType?: RelationTypeEnum;
|
|
334
|
-
relatedAssociationId?: string;
|
|
335
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
336
|
-
unLinkOhRetroAuditFiles(fileId: string, linkedOhRetroAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
337
|
-
getRemediationOutcomeForms(fileId: string): Promise<any>;
|
|
338
|
-
linkRemediationOutcomeFormFiles(fileId: string, remediationOutcomeFormIds: {
|
|
339
|
-
id: string;
|
|
340
|
-
relationType?: RelationTypeEnum;
|
|
341
|
-
relatedAssociationId?: string;
|
|
342
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
343
|
-
unLinkRemediationOutcomeFormFiles(fileId: string, linkedRemediationOutcomeFormId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
344
302
|
getUgInProgressAudits(fileId: string): Promise<any>;
|
|
345
303
|
linkUgInProgressAuditFiles(fileId: string, ugInProgressAuditIds: {
|
|
346
304
|
id: string;
|
|
@@ -355,13 +313,6 @@ export declare class FileApi extends ApiProvider {
|
|
|
355
313
|
relatedAssociationId?: string;
|
|
356
314
|
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
357
315
|
unLinkOhInProgressAuditFiles(fileId: string, linkedOhInProgressAuditId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
358
|
-
getBlockageA55s(fileId: string): Promise<any>;
|
|
359
|
-
linkOverlayA55Files(fileId: string, blockageA55Ids: {
|
|
360
|
-
id: string;
|
|
361
|
-
relationType?: RelationTypeEnum;
|
|
362
|
-
relatedAssociationId?: string;
|
|
363
|
-
}[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinAssociationMetaData[]>;
|
|
364
|
-
unLinkOverlayA55Files(fileId: string, linkedBlockageA55Id: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinLinkDeleteResponse[]>;
|
|
365
316
|
getOverlayRealA55s(fileId: string): Promise<any>;
|
|
366
317
|
linkOverlayRealA55Files(fileId: string, overlayRealA55Ids: {
|
|
367
318
|
id: string;
|
|
@@ -221,32 +221,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
221
221
|
});
|
|
222
222
|
}
|
|
223
223
|
// Use this function when you want to return a single record
|
|
224
|
-
getKnowledgeArticles(fileId) {
|
|
225
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'KnowledgeArticle');
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
linkKnowledgeArticleFiles(fileId, knowledgeArticleIds) {
|
|
230
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
-
const associationDtos = [];
|
|
232
|
-
for (const param of knowledgeArticleIds) {
|
|
233
|
-
associationDtos.push({
|
|
234
|
-
entity: 'SupportModule:KnowledgeArticle',
|
|
235
|
-
recordId: param.id,
|
|
236
|
-
linkType: 'KnowledgeArticle__File',
|
|
237
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
238
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
242
|
-
});
|
|
243
|
-
}
|
|
244
|
-
unLinkKnowledgeArticleFiles(fileId, linkedKnowledgeArticleId) {
|
|
245
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
246
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedKnowledgeArticleId);
|
|
247
|
-
});
|
|
248
|
-
}
|
|
249
|
-
// Use this function when you want to return a single record
|
|
250
224
|
getCases(fileId) {
|
|
251
225
|
return __awaiter(this, void 0, void 0, function* () {
|
|
252
226
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'Case');
|
|
@@ -793,58 +767,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
793
767
|
});
|
|
794
768
|
}
|
|
795
769
|
// Use this function when you want to return a single record
|
|
796
|
-
getNetomniaFtth2StageInstallAudits(fileId) {
|
|
797
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
798
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'NetomniaFtth2StageInstallAudit');
|
|
799
|
-
});
|
|
800
|
-
}
|
|
801
|
-
linkNetomniaFtth2StageInstallAuditFiles(fileId, netomniaFtth2StageInstallAuditIds) {
|
|
802
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
803
|
-
const associationDtos = [];
|
|
804
|
-
for (const param of netomniaFtth2StageInstallAuditIds) {
|
|
805
|
-
associationDtos.push({
|
|
806
|
-
entity: 'FieldServiceModule:NetomniaFtth2StageInstallAudit',
|
|
807
|
-
recordId: param.id,
|
|
808
|
-
linkType: 'NetomniaFtth2StageInstallAudit__File',
|
|
809
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
810
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
814
|
-
});
|
|
815
|
-
}
|
|
816
|
-
unLinkNetomniaFtth2StageInstallAuditFiles(fileId, linkedNetomniaFtth2StageInstallAuditId) {
|
|
817
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
818
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedNetomniaFtth2StageInstallAuditId);
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
// Use this function when you want to return a single record
|
|
822
|
-
getYfStockCounts(fileId) {
|
|
823
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
824
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'YfStockCount');
|
|
825
|
-
});
|
|
826
|
-
}
|
|
827
|
-
linkYfStockCountFiles(fileId, yfStockCountIds) {
|
|
828
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
829
|
-
const associationDtos = [];
|
|
830
|
-
for (const param of yfStockCountIds) {
|
|
831
|
-
associationDtos.push({
|
|
832
|
-
entity: 'FieldServiceModule:YfStockCount',
|
|
833
|
-
recordId: param.id,
|
|
834
|
-
linkType: 'YfStockCount__File',
|
|
835
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
836
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
837
|
-
});
|
|
838
|
-
}
|
|
839
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
unLinkYfStockCountFiles(fileId, linkedYfStockCountId) {
|
|
843
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
844
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedYfStockCountId);
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
// Use this function when you want to return a single record
|
|
848
770
|
getYfEquipmentCollections(fileId) {
|
|
849
771
|
return __awaiter(this, void 0, void 0, function* () {
|
|
850
772
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'YfEquipmentCollection');
|
|
@@ -1177,84 +1099,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
1177
1099
|
});
|
|
1178
1100
|
}
|
|
1179
1101
|
// Use this function when you want to return a single record
|
|
1180
|
-
getUgRetroAudits(fileId) {
|
|
1181
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1182
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'UgRetroAudit');
|
|
1183
|
-
});
|
|
1184
|
-
}
|
|
1185
|
-
linkUgRetroAuditFiles(fileId, ugRetroAuditIds) {
|
|
1186
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1187
|
-
const associationDtos = [];
|
|
1188
|
-
for (const param of ugRetroAuditIds) {
|
|
1189
|
-
associationDtos.push({
|
|
1190
|
-
entity: 'FieldServiceModule:UgRetroAudit',
|
|
1191
|
-
recordId: param.id,
|
|
1192
|
-
linkType: 'UgRetroAudit__File',
|
|
1193
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1194
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1195
|
-
});
|
|
1196
|
-
}
|
|
1197
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1198
|
-
});
|
|
1199
|
-
}
|
|
1200
|
-
unLinkUgRetroAuditFiles(fileId, linkedUgRetroAuditId) {
|
|
1201
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1202
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedUgRetroAuditId);
|
|
1203
|
-
});
|
|
1204
|
-
}
|
|
1205
|
-
// Use this function when you want to return a single record
|
|
1206
|
-
getOhRetroAudits(fileId) {
|
|
1207
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1208
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'OhRetroAudit');
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
linkOhRetroAuditFiles(fileId, ohRetroAuditIds) {
|
|
1212
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1213
|
-
const associationDtos = [];
|
|
1214
|
-
for (const param of ohRetroAuditIds) {
|
|
1215
|
-
associationDtos.push({
|
|
1216
|
-
entity: 'FieldServiceModule:OhRetroAudit',
|
|
1217
|
-
recordId: param.id,
|
|
1218
|
-
linkType: 'OhRetroAudit__File',
|
|
1219
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1220
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1221
|
-
});
|
|
1222
|
-
}
|
|
1223
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1224
|
-
});
|
|
1225
|
-
}
|
|
1226
|
-
unLinkOhRetroAuditFiles(fileId, linkedOhRetroAuditId) {
|
|
1227
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1228
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedOhRetroAuditId);
|
|
1229
|
-
});
|
|
1230
|
-
}
|
|
1231
|
-
// Use this function when you want to return a single record
|
|
1232
|
-
getRemediationOutcomeForms(fileId) {
|
|
1233
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1234
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'RemediationOutcomeForm');
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
linkRemediationOutcomeFormFiles(fileId, remediationOutcomeFormIds) {
|
|
1238
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1239
|
-
const associationDtos = [];
|
|
1240
|
-
for (const param of remediationOutcomeFormIds) {
|
|
1241
|
-
associationDtos.push({
|
|
1242
|
-
entity: 'FieldServiceModule:RemediationOutcomeForm',
|
|
1243
|
-
recordId: param.id,
|
|
1244
|
-
linkType: 'RemediationOutcomeForm_File',
|
|
1245
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1246
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1250
|
-
});
|
|
1251
|
-
}
|
|
1252
|
-
unLinkRemediationOutcomeFormFiles(fileId, linkedRemediationOutcomeFormId) {
|
|
1253
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1254
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedRemediationOutcomeFormId);
|
|
1255
|
-
});
|
|
1256
|
-
}
|
|
1257
|
-
// Use this function when you want to return a single record
|
|
1258
1102
|
getUgInProgressAudits(fileId) {
|
|
1259
1103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1260
1104
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'UgInProgressAudit');
|
|
@@ -1307,32 +1151,6 @@ class FileApi extends api_provider_1.ApiProvider {
|
|
|
1307
1151
|
});
|
|
1308
1152
|
}
|
|
1309
1153
|
// Use this function when you want to return a single record
|
|
1310
|
-
getBlockageA55s(fileId) {
|
|
1311
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1312
|
-
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'BlockageA55');
|
|
1313
|
-
});
|
|
1314
|
-
}
|
|
1315
|
-
linkOverlayA55Files(fileId, blockageA55Ids) {
|
|
1316
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1317
|
-
const associationDtos = [];
|
|
1318
|
-
for (const param of blockageA55Ids) {
|
|
1319
|
-
associationDtos.push({
|
|
1320
|
-
entity: 'FieldServiceModule:BlockageA55',
|
|
1321
|
-
recordId: param.id,
|
|
1322
|
-
linkType: 'OverlayA55_File',
|
|
1323
|
-
relationType: param === null || param === void 0 ? void 0 : param.relationType,
|
|
1324
|
-
relatedAssociationId: param === null || param === void 0 ? void 0 : param.relatedAssociationId
|
|
1325
|
-
});
|
|
1326
|
-
}
|
|
1327
|
-
return yield this._createLinks(this.moduleName, this.entityName, fileId, associationDtos);
|
|
1328
|
-
});
|
|
1329
|
-
}
|
|
1330
|
-
unLinkOverlayA55Files(fileId, linkedBlockageA55Id) {
|
|
1331
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1332
|
-
return yield this._deleteLinks(this.moduleName, this.entityName, fileId, linkedBlockageA55Id);
|
|
1333
|
-
});
|
|
1334
|
-
}
|
|
1335
|
-
// Use this function when you want to return a single record
|
|
1336
1154
|
getOverlayRealA55s(fileId) {
|
|
1337
1155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1338
1156
|
return yield this._getLinks(this.moduleName, this.entityName, fileId, 'OverlayRealA55');
|
|
@@ -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;
|
|
@@ -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');
|
|
@@ -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;
|