@golemio/fypr 1.12.1-dev.2832960889 → 2.0.0-dev.2871273577
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/README.md +11 -0
- package/dist/helpers/errors/ErrorHelper.d.ts +2 -2
- package/dist/helpers/errors/ErrorHelper.js +4 -7
- package/dist/helpers/errors/ErrorHelper.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -39
- package/dist/index.js.map +1 -1
- package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.d.ts +2 -2
- package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.js +7 -10
- package/dist/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.js.map +1 -1
- package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.d.ts +3 -3
- package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.js +10 -13
- package/dist/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.js.map +1 -1
- package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.d.ts +3 -3
- package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.js +10 -13
- package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.js.map +1 -1
- package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.d.ts +3 -3
- package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.js +10 -13
- package/dist/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.js.map +1 -1
- package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.d.ts +3 -3
- package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.js +10 -13
- package/dist/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.js.map +1 -1
- package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.d.ts +3 -3
- package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.js +10 -13
- package/dist/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.js.map +1 -1
- package/dist/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.d.ts +3 -3
- package/dist/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.js +13 -15
- package/dist/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.js.map +1 -1
- package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.d.ts +3 -3
- package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.js +12 -15
- package/dist/integration-engine/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy.js.map +1 -1
- package/dist/integration-engine/helpers/StrapiPaginationHelper.js +5 -8
- package/dist/integration-engine/helpers/StrapiPaginationHelper.js.map +1 -1
- package/dist/integration-engine/index.d.ts +1 -1
- package/dist/integration-engine/index.js +2 -5
- package/dist/integration-engine/index.js.map +1 -1
- package/dist/integration-engine/ioc/Di.d.ts +1 -1
- package/dist/integration-engine/ioc/Di.js +63 -66
- package/dist/integration-engine/ioc/Di.js.map +1 -1
- package/dist/integration-engine/ioc/FYPRIEContainerTokens.js +1 -4
- package/dist/integration-engine/ioc/FYPRIEContainerTokens.js.map +1 -1
- package/dist/integration-engine/repositories/AbstractFyprRepository.d.ts +7 -7
- package/dist/integration-engine/repositories/AbstractFyprRepository.js +11 -13
- package/dist/integration-engine/repositories/AbstractFyprRepository.js.map +1 -1
- package/dist/integration-engine/repositories/DeviceStatusRepository.d.ts +7 -7
- package/dist/integration-engine/repositories/DeviceStatusRepository.js +22 -23
- package/dist/integration-engine/repositories/DeviceStatusRepository.js.map +1 -1
- package/dist/integration-engine/repositories/DisplayCaseRepository.d.ts +8 -8
- package/dist/integration-engine/repositories/DisplayCaseRepository.js +17 -19
- package/dist/integration-engine/repositories/DisplayCaseRepository.js.map +1 -1
- package/dist/integration-engine/repositories/InformationPanelPresetsRepository.d.ts +6 -6
- package/dist/integration-engine/repositories/InformationPanelPresetsRepository.js +28 -28
- package/dist/integration-engine/repositories/InformationPanelPresetsRepository.js.map +1 -1
- package/dist/integration-engine/repositories/InformationPanelPresetsRoutesRepository.d.ts +6 -6
- package/dist/integration-engine/repositories/InformationPanelPresetsRoutesRepository.js +24 -24
- package/dist/integration-engine/repositories/InformationPanelPresetsRoutesRepository.js.map +1 -1
- package/dist/integration-engine/repositories/InformationPanelPresetsStopsRepository.d.ts +6 -6
- package/dist/integration-engine/repositories/InformationPanelPresetsStopsRepository.js +24 -24
- package/dist/integration-engine/repositories/InformationPanelPresetsStopsRepository.js.map +1 -1
- package/dist/integration-engine/repositories/InformationPanelRepository.d.ts +8 -8
- package/dist/integration-engine/repositories/InformationPanelRepository.js +17 -19
- package/dist/integration-engine/repositories/InformationPanelRepository.js.map +1 -1
- package/dist/integration-engine/repositories/ObeliskRepository.d.ts +8 -8
- package/dist/integration-engine/repositories/ObeliskRepository.js +17 -19
- package/dist/integration-engine/repositories/ObeliskRepository.js.map +1 -1
- package/dist/integration-engine/repositories/SignpostRepository.d.ts +8 -8
- package/dist/integration-engine/repositories/SignpostRepository.js +17 -19
- package/dist/integration-engine/repositories/SignpostRepository.js.map +1 -1
- package/dist/integration-engine/repositories/TotemRepository.d.ts +8 -8
- package/dist/integration-engine/repositories/TotemRepository.js +17 -19
- package/dist/integration-engine/repositories/TotemRepository.js.map +1 -1
- package/dist/integration-engine/transformations/AbstractElementTransformation.d.ts +3 -3
- package/dist/integration-engine/transformations/AbstractElementTransformation.js +2 -6
- package/dist/integration-engine/transformations/AbstractElementTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/DisplayCasesTransformation.d.ts +3 -3
- package/dist/integration-engine/transformations/DisplayCasesTransformation.js +6 -9
- package/dist/integration-engine/transformations/DisplayCasesTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/InformationPanelsTransformation.d.ts +3 -3
- package/dist/integration-engine/transformations/InformationPanelsTransformation.js +6 -9
- package/dist/integration-engine/transformations/InformationPanelsTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/ObelisksTransformation.d.ts +3 -3
- package/dist/integration-engine/transformations/ObelisksTransformation.js +6 -9
- package/dist/integration-engine/transformations/ObelisksTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/SignpostsTransformation.d.ts +3 -3
- package/dist/integration-engine/transformations/SignpostsTransformation.js +6 -9
- package/dist/integration-engine/transformations/SignpostsTransformation.js.map +1 -1
- package/dist/integration-engine/transformations/TotemsTransformation.d.ts +3 -3
- package/dist/integration-engine/transformations/TotemsTransformation.js +6 -9
- package/dist/integration-engine/transformations/TotemsTransformation.js.map +1 -1
- package/dist/integration-engine/workers/FYPRWorker.d.ts +2 -2
- package/dist/integration-engine/workers/FYPRWorker.js +14 -18
- package/dist/integration-engine/workers/FYPRWorker.js.map +1 -1
- package/dist/integration-engine/workers/constants.js +1 -4
- package/dist/integration-engine/workers/constants.js.map +1 -1
- package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.d.ts +5 -5
- package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.js +8 -11
- package/dist/integration-engine/workers/tasks/AbstractUpdateElementsTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.d.ts +7 -7
- package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.js +31 -33
- package/dist/integration-engine/workers/tasks/FetchDBFYPRTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/FetchDCIPStatusTask.d.ts +3 -3
- package/dist/integration-engine/workers/tasks/FetchDCIPStatusTask.js +18 -20
- package/dist/integration-engine/workers/tasks/FetchDCIPStatusTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.d.ts +7 -7
- package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.js +17 -19
- package/dist/integration-engine/workers/tasks/UpdateDisplayCasesTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.d.ts +7 -7
- package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.js +17 -19
- package/dist/integration-engine/workers/tasks/UpdateInformationPanelsTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateObelisksTask.d.ts +7 -7
- package/dist/integration-engine/workers/tasks/UpdateObelisksTask.js +17 -19
- package/dist/integration-engine/workers/tasks/UpdateObelisksTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdatePresetsTask.d.ts +5 -5
- package/dist/integration-engine/workers/tasks/UpdatePresetsTask.js +29 -30
- package/dist/integration-engine/workers/tasks/UpdatePresetsTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.d.ts +7 -7
- package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.js +17 -19
- package/dist/integration-engine/workers/tasks/UpdateSignpostsTask.js.map +1 -1
- package/dist/integration-engine/workers/tasks/UpdateTotemsTask.d.ts +7 -7
- package/dist/integration-engine/workers/tasks/UpdateTotemsTask.js +17 -19
- package/dist/integration-engine/workers/tasks/UpdateTotemsTask.js.map +1 -1
- package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.d.ts +6 -6
- package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js +25 -25
- package/dist/output-gateway/fypr/controllers/v1/V1FyprElementKindsController.js.map +1 -1
- package/dist/output-gateway/fypr/controllers/v1/V1FyprMetadataController.d.ts +1 -1
- package/dist/output-gateway/fypr/controllers/v1/V1FyprMetadataController.js +11 -14
- package/dist/output-gateway/fypr/controllers/v1/V1FyprMetadataController.js.map +1 -1
- package/dist/output-gateway/fypr/data-access/FyprElementRepository.d.ts +5 -5
- package/dist/output-gateway/fypr/data-access/FyprElementRepository.js +9 -12
- package/dist/output-gateway/fypr/data-access/FyprElementRepository.js.map +1 -1
- package/dist/output-gateway/fypr/routers/index.d.ts +2 -2
- package/dist/output-gateway/fypr/routers/index.js +2 -7
- package/dist/output-gateway/fypr/routers/index.js.map +1 -1
- package/dist/output-gateway/fypr/routers/middlewares/cacheMiddleware.d.ts +3 -3
- package/dist/output-gateway/fypr/routers/middlewares/cacheMiddleware.js +1 -4
- package/dist/output-gateway/fypr/routers/middlewares/cacheMiddleware.js.map +1 -1
- package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.d.ts +3 -3
- package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js +41 -43
- package/dist/output-gateway/fypr/routers/v1/V1FyprElementKindsRouter.js.map +1 -1
- package/dist/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.d.ts +3 -3
- package/dist/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.js +15 -18
- package/dist/output-gateway/fypr/routers/v1/V1FyprMetadataRouter.js.map +1 -1
- package/dist/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.d.ts +1 -1
- package/dist/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.js +1 -5
- package/dist/output-gateway/fypr/routers/v1/validators/InformationPanelsOnlyValidator.js.map +1 -1
- package/dist/output-gateway/fypr/transformations/InformationPanelOutputTransformation.d.ts +3 -3
- package/dist/output-gateway/fypr/transformations/InformationPanelOutputTransformation.js +9 -12
- package/dist/output-gateway/fypr/transformations/InformationPanelOutputTransformation.js.map +1 -1
- package/dist/output-gateway/index.d.ts +1 -1
- package/dist/output-gateway/index.js +2 -5
- package/dist/output-gateway/index.js.map +1 -1
- package/dist/output-gateway/interfaces/IOGInformationPanel.d.ts +2 -2
- package/dist/output-gateway/interfaces/IOGInformationPanel.js +1 -2
- package/dist/output-gateway/interfaces/IOGInformationPanelScopes.d.ts +2 -2
- package/dist/output-gateway/interfaces/IOGInformationPanelScopes.js +1 -2
- package/dist/output-gateway/ioc/Di.d.ts +1 -1
- package/dist/output-gateway/ioc/Di.js +20 -23
- package/dist/output-gateway/ioc/Di.js.map +1 -1
- package/dist/output-gateway/ioc/FYPROGContainerTokens.js +1 -4
- package/dist/output-gateway/ioc/FYPROGContainerTokens.js.map +1 -1
- package/dist/output-gateway/shared/constants/element-kinds.d.ts +2 -1
- package/dist/output-gateway/shared/constants/element-kinds.js +1 -5
- package/dist/output-gateway/shared/constants/element-kinds.js.map +1 -1
- package/dist/output-gateway/shared/constants/index.d.ts +1 -1
- package/dist/output-gateway/shared/constants/index.js +1 -17
- package/dist/output-gateway/shared/constants/index.js.map +1 -1
- package/dist/schema-definitions/FyprElementTypes.d.ts +5 -5
- package/dist/schema-definitions/FyprElementTypes.js +1 -2
- package/dist/schema-definitions/const.js +11 -14
- package/dist/schema-definitions/const.js.map +1 -1
- package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js +22 -25
- package/dist/schema-definitions/data-sources/DBFYPRDisplayCasesJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js +15 -18
- package/dist/schema-definitions/data-sources/DBFYPRElementsJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js +83 -86
- package/dist/schema-definitions/data-sources/DBFYPRInformationPanelsJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js +17 -20
- package/dist/schema-definitions/data-sources/DBFYPRObelisksJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js +19 -22
- package/dist/schema-definitions/data-sources/DBFYPRSignpostsJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js +55 -58
- package/dist/schema-definitions/data-sources/DBFYPRTotemsJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/DCIPStatusOverviewJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/DCIPStatusOverviewJSONSchema.js +3 -6
- package/dist/schema-definitions/data-sources/DCIPStatusOverviewJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/GolemioPresetsJSONSchema.d.ts +2 -2
- package/dist/schema-definitions/data-sources/GolemioPresetsJSONSchema.js +1 -4
- package/dist/schema-definitions/data-sources/GolemioPresetsJSONSchema.js.map +1 -1
- package/dist/schema-definitions/data-sources/index.js +11 -14
- package/dist/schema-definitions/data-sources/index.js.map +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRDisplayCase.d.ts +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRDisplayCase.js +1 -2
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRElement.d.ts +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRElement.js +1 -2
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.d.ts +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRInformationPanel.js +1 -2
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRObelisk.d.ts +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRObelisk.js +1 -2
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRSignpost.d.ts +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRSignpost.js +1 -2
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.d.ts +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDBFYPRTotem.js +1 -2
- package/dist/schema-definitions/data-sources/interfaces/IDCIPStatusOverview.d.ts +1 -1
- package/dist/schema-definitions/data-sources/interfaces/IDCIPStatusOverview.js +1 -2
- package/dist/schema-definitions/data-sources/interfaces/IGolemioPresetsResponse.js +1 -2
- package/dist/schema-definitions/index.d.ts +4 -3
- package/dist/schema-definitions/index.js +29 -33
- package/dist/schema-definitions/index.js.map +1 -1
- package/dist/schema-definitions/models/AbstractElementModel.d.ts +6 -3
- package/dist/schema-definitions/models/AbstractElementModel.js +39 -42
- package/dist/schema-definitions/models/AbstractElementModel.js.map +1 -1
- package/dist/schema-definitions/models/DeviceStatusModel.d.ts +5 -2
- package/dist/schema-definitions/models/DeviceStatusModel.js +7 -10
- package/dist/schema-definitions/models/DeviceStatusModel.js.map +1 -1
- package/dist/schema-definitions/models/DisplayCaseModel.d.ts +4 -4
- package/dist/schema-definitions/models/DisplayCaseModel.js +46 -49
- package/dist/schema-definitions/models/DisplayCaseModel.js.map +1 -1
- package/dist/schema-definitions/models/InformationPanelModel.d.ts +4 -4
- package/dist/schema-definitions/models/InformationPanelModel.js +177 -180
- package/dist/schema-definitions/models/InformationPanelModel.js.map +1 -1
- package/dist/schema-definitions/models/InformationPanelPresetsModel.d.ts +6 -3
- package/dist/schema-definitions/models/InformationPanelPresetsModel.js +13 -16
- package/dist/schema-definitions/models/InformationPanelPresetsModel.js.map +1 -1
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesAggModel.d.ts +5 -2
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesAggModel.js +8 -11
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesAggModel.js.map +1 -1
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.d.ts +6 -3
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.js +10 -13
- package/dist/schema-definitions/models/InformationPanelPresetsRoutesModel.js.map +1 -1
- package/dist/schema-definitions/models/InformationPanelPresetsStopsModel.d.ts +6 -3
- package/dist/schema-definitions/models/InformationPanelPresetsStopsModel.js +7 -10
- package/dist/schema-definitions/models/InformationPanelPresetsStopsModel.js.map +1 -1
- package/dist/schema-definitions/models/ObeliskModel.d.ts +4 -4
- package/dist/schema-definitions/models/ObeliskModel.js +36 -39
- package/dist/schema-definitions/models/ObeliskModel.js.map +1 -1
- package/dist/schema-definitions/models/SignpostModel.d.ts +4 -4
- package/dist/schema-definitions/models/SignpostModel.js +40 -43
- package/dist/schema-definitions/models/SignpostModel.js.map +1 -1
- package/dist/schema-definitions/models/TotemModel.d.ts +4 -4
- package/dist/schema-definitions/models/TotemModel.js +110 -113
- package/dist/schema-definitions/models/TotemModel.js.map +1 -1
- package/dist/schema-definitions/models/interfaces/IDeviceStatus.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/IDeviceStatus.js +1 -2
- package/dist/schema-definitions/models/interfaces/IDisplayCase.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/IDisplayCase.js +1 -2
- package/dist/schema-definitions/models/interfaces/IElement.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/IElement.js +1 -2
- package/dist/schema-definitions/models/interfaces/IInformationPanel.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/IInformationPanel.js +1 -2
- package/dist/schema-definitions/models/interfaces/IInformationPanelPreset.js +1 -2
- package/dist/schema-definitions/models/interfaces/IInformationPanelPresetRoute.js +1 -2
- package/dist/schema-definitions/models/interfaces/IInformationPanelPresetStop.js +1 -2
- package/dist/schema-definitions/models/interfaces/IObelisk.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/IObelisk.js +1 -2
- package/dist/schema-definitions/models/interfaces/IPresetRouteAgg.js +1 -2
- package/dist/schema-definitions/models/interfaces/ISignpost.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/ISignpost.js +1 -2
- package/dist/schema-definitions/models/interfaces/ITotem.d.ts +1 -1
- package/dist/schema-definitions/models/interfaces/ITotem.js +1 -2
- package/dist/schema-definitions/models/interfaces/fyprElementStates.js +1 -4
- package/dist/schema-definitions/models/interfaces/fyprElementStates.js.map +1 -1
- package/dist/schema-definitions/translation/index.d.ts +1 -1
- package/dist/schema-definitions/translation/index.js +13 -19
- package/dist/schema-definitions/translation/index.js.map +1 -1
- package/package.json +42 -15
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const workers_1 = require("@golemio/core/dist/integration-engine/workers");
|
|
7
|
-
const constants_1 = require("./constants");
|
|
8
|
-
class FYPRWorker extends workers_1.AbstractWorker {
|
|
1
|
+
import { fyprIEContainer } from "#ie/ioc/Di";
|
|
2
|
+
import { fyprIEContainerTokens } from "#ie/ioc/FYPRIEContainerTokens";
|
|
3
|
+
import { AbstractWorker } from "@golemio/core/dist/integration-engine/workers/index.js";
|
|
4
|
+
import { FYPR_WORKER_NAME } from "./constants.js";
|
|
5
|
+
export class FYPRWorker extends AbstractWorker {
|
|
9
6
|
constructor() {
|
|
10
7
|
super();
|
|
11
|
-
this.name =
|
|
8
|
+
this.name = FYPR_WORKER_NAME.toLowerCase();
|
|
12
9
|
this.registerTasks();
|
|
13
10
|
}
|
|
14
11
|
registerTask(task) {
|
|
@@ -17,19 +14,18 @@ class FYPRWorker extends workers_1.AbstractWorker {
|
|
|
17
14
|
}
|
|
18
15
|
registerTasks() {
|
|
19
16
|
const tasks = [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
17
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.FetchDBFYPRTask),
|
|
18
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.UpdateDisplayCasesTask),
|
|
19
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.UpdateInformationPanelsTask),
|
|
20
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.UpdateObelisksTask),
|
|
21
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.UpdateSignpostsTask),
|
|
22
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.UpdateTotemsTask),
|
|
23
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.UpdatePresetsTask),
|
|
24
|
+
fyprIEContainer.resolve(fyprIEContainerTokens.FetchDCIPStatusTask),
|
|
28
25
|
];
|
|
29
26
|
for (const task of tasks) {
|
|
30
27
|
this.registerTask(task);
|
|
31
28
|
}
|
|
32
29
|
}
|
|
33
30
|
}
|
|
34
|
-
exports.FYPRWorker = FYPRWorker;
|
|
35
31
|
//# sourceMappingURL=FYPRWorker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FYPRWorker.js","sourceRoot":"","sources":["../../../src/integration-engine/workers/FYPRWorker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FYPRWorker.js","sourceRoot":"","sources":["../../../src/integration-engine/workers/FYPRWorker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,wDAAwD,CAAC;AAExF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAUlD,MAAM,OAAO,UAAW,SAAQ,cAAc;IAG1C;QACI,KAAK,EAAE,CAAC;QAHgB,SAAI,GAAG,gBAAgB,CAAC,WAAW,EAAE,CAAC;QAI9D,IAAI,CAAC,aAAa,EAAE,CAAC;IACzB,CAAC;IAEe,YAAY,CAAC,IAAW;QACpC,KAAK,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;IAC7C,CAAC;IAEO,aAAa;QACjB,MAAM,KAAK,GAAG;YACV,eAAe,CAAC,OAAO,CAAkB,qBAAqB,CAAC,eAAe,CAAC;YAC/E,eAAe,CAAC,OAAO,CAAyB,qBAAqB,CAAC,sBAAsB,CAAC;YAC7F,eAAe,CAAC,OAAO,CAA8B,qBAAqB,CAAC,2BAA2B,CAAC;YACvG,eAAe,CAAC,OAAO,CAAqB,qBAAqB,CAAC,kBAAkB,CAAC;YACrF,eAAe,CAAC,OAAO,CAAsB,qBAAqB,CAAC,mBAAmB,CAAC;YACvF,eAAe,CAAC,OAAO,CAAmB,qBAAqB,CAAC,gBAAgB,CAAC;YACjF,eAAe,CAAC,OAAO,CAAoB,qBAAqB,CAAC,iBAAiB,CAAC;YACnF,eAAe,CAAC,OAAO,CAAsB,qBAAqB,CAAC,mBAAmB,CAAC;SAC1F,CAAC;QACF,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;QAC5B,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/integration-engine/workers/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/integration-engine/workers/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { IDBFYPRElement } from "
|
|
2
|
-
import { IElement } from "
|
|
3
|
-
import { AbstractTaskJsonSchema } from "@golemio/core/dist/integration-engine/workers/AbstractTaskJsonSchema";
|
|
4
|
-
import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation";
|
|
5
|
-
import { AbstractFyprRepository } from "
|
|
1
|
+
import type { IDBFYPRElement } from "#sch/data-sources/interfaces/IDBFYPRElement";
|
|
2
|
+
import type { IElement } from "#sch/models/interfaces/IElement";
|
|
3
|
+
import { AbstractTaskJsonSchema } from "@golemio/core/dist/integration-engine/workers/AbstractTaskJsonSchema.js";
|
|
4
|
+
import { AbstractTransformation } from "@golemio/core/dist/helpers/transformation/AbstractTransformation.js";
|
|
5
|
+
import { AbstractFyprRepository } from "#ie/repositories/AbstractFyprRepository";
|
|
6
6
|
export declare abstract class AbstractUpdateElementsTask<InputElementType extends IDBFYPRElement, OutputElementType extends IElement> extends AbstractTaskJsonSchema<InputElementType[]> {
|
|
7
7
|
private readonly transformation;
|
|
8
8
|
private readonly repository;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
const constants_1 = require("../constants");
|
|
8
|
-
class AbstractUpdateElementsTask extends AbstractTaskJsonSchema_1.AbstractTaskJsonSchema {
|
|
1
|
+
import { ErrorHelper } from "#helpers/errors/ErrorHelper";
|
|
2
|
+
import { AbstractTaskJsonSchema } from "@golemio/core/dist/integration-engine/workers/AbstractTaskJsonSchema.js";
|
|
3
|
+
import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
|
|
4
|
+
import { FYPR_WORKER_NAME } from "../constants.js";
|
|
5
|
+
const { GeneralError } = GolemioErrors;
|
|
6
|
+
export class AbstractUpdateElementsTask extends AbstractTaskJsonSchema {
|
|
9
7
|
constructor(transformation, repository) {
|
|
10
|
-
super(
|
|
8
|
+
super(FYPR_WORKER_NAME.toLowerCase());
|
|
11
9
|
this.transformation = transformation;
|
|
12
10
|
this.repository = repository;
|
|
13
11
|
this.queueTtl = 60 * 1000; // 60 seconds
|
|
@@ -18,9 +16,8 @@ class AbstractUpdateElementsTask extends AbstractTaskJsonSchema_1.AbstractTaskJs
|
|
|
18
16
|
await this.repository.upsertAll(transformedData);
|
|
19
17
|
}
|
|
20
18
|
catch (err) {
|
|
21
|
-
throw
|
|
19
|
+
throw ErrorHelper.ensureGolemioError(err, new GeneralError("Error while updating elements.", this.constructor.name, err));
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
}
|
|
25
|
-
exports.AbstractUpdateElementsTask = AbstractUpdateElementsTask;
|
|
26
23
|
//# sourceMappingURL=AbstractUpdateElementsTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractUpdateElementsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/AbstractUpdateElementsTask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractUpdateElementsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/AbstractUpdateElementsTask.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,yEAAyE,CAAC;AACjH,OAAO,aAAa,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAInD,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC;AAEvC,MAAM,OAAgB,0BAGpB,SAAQ,sBAA0C;IAGhD,YACqB,cAA2E,EAC3E,UAAkC;QAEnD,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC;QAHrB,mBAAc,GAAd,cAAc,CAA6D;QAC3E,eAAU,GAAV,UAAU,CAAwB;QAJ9B,aAAQ,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;IAO5D,CAAC;IAEkB,KAAK,CAAC,OAAO,CAAC,IAAwB;QACrD,IAAI,CAAC;YACD,MAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;YACjE,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QACrD,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,WAAW,CAAC,kBAAkB,CAChC,GAAG,EACH,IAAI,YAAY,CAAC,gCAAgC,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CACjF,CAAC;QACN,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DBFYPRDisplayCasesDataSourceFactory } from "
|
|
2
|
-
import { DBFYPRInformationPanelsDataSourceFactory } from "
|
|
3
|
-
import { DBFYPRObelisksDataSourceFactory } from "
|
|
4
|
-
import { DBFYPRSignpostsDataSourceFactory } from "
|
|
5
|
-
import { DBFYPRTotemsDataSourceFactory } from "
|
|
6
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
7
|
-
import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine";
|
|
1
|
+
import { DBFYPRDisplayCasesDataSourceFactory } from "#ie/data-sources/DBFYPRDisplayCasesDataSourceFactory";
|
|
2
|
+
import { DBFYPRInformationPanelsDataSourceFactory } from "#ie/data-sources/DBFYPRInformationPanelsDataSourceFactory";
|
|
3
|
+
import { DBFYPRObelisksDataSourceFactory } from "#ie/data-sources/DBFYPRObelisksDataSourceFactory";
|
|
4
|
+
import { DBFYPRSignpostsDataSourceFactory } from "#ie/data-sources/DBFYPRSignpostsDataSourceFactory";
|
|
5
|
+
import { DBFYPRTotemsDataSourceFactory } from "#ie/data-sources/DBFYPRTotemsDataSourceFactory";
|
|
6
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
7
|
+
import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine/index.js";
|
|
8
8
|
export declare class FetchDBFYPRTask extends AbstractEmptyTask {
|
|
9
9
|
private readonly config;
|
|
10
10
|
private readonly dbfyprDisplayCasesDataSourceFactory;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,23 +10,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
let FetchDBFYPRTask = class FetchDBFYPRTask extends integration_engine_1.AbstractEmptyTask {
|
|
13
|
+
import { ErrorHelper } from "#helpers/errors/ErrorHelper";
|
|
14
|
+
import { DBFYPRDisplayCasesDataSourceFactory } from "#ie/data-sources/DBFYPRDisplayCasesDataSourceFactory";
|
|
15
|
+
import { DBFYPRInformationPanelsDataSourceFactory } from "#ie/data-sources/DBFYPRInformationPanelsDataSourceFactory";
|
|
16
|
+
import { DBFYPRObelisksDataSourceFactory } from "#ie/data-sources/DBFYPRObelisksDataSourceFactory";
|
|
17
|
+
import { DBFYPRSignpostsDataSourceFactory } from "#ie/data-sources/DBFYPRSignpostsDataSourceFactory";
|
|
18
|
+
import { DBFYPRTotemsDataSourceFactory } from "#ie/data-sources/DBFYPRTotemsDataSourceFactory";
|
|
19
|
+
import { fyprIEContainerTokens } from "#ie/ioc/FYPRIEContainerTokens";
|
|
20
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
21
|
+
import { AbstractEmptyTask, QueueManager } from "@golemio/core/dist/integration-engine/index.js";
|
|
22
|
+
import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
|
|
23
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
24
|
+
import { FYPR_WORKER_NAME } from "../constants.js";
|
|
25
|
+
const { GeneralError } = GolemioErrors;
|
|
26
|
+
let FetchDBFYPRTask = class FetchDBFYPRTask extends AbstractEmptyTask {
|
|
29
27
|
constructor(config, dbfyprDisplayCasesDataSourceFactory, dbfyprInformationPanelsDataSourceFactory, dbfyprObelisksDataSourceFactory, dbfyprSignpostsDataSourceFactory, dbfyprTotemsDataSourceFactory) {
|
|
30
|
-
super(
|
|
28
|
+
super(FYPR_WORKER_NAME.toLowerCase());
|
|
31
29
|
this.config = config;
|
|
32
30
|
this.dbfyprDisplayCasesDataSourceFactory = dbfyprDisplayCasesDataSourceFactory;
|
|
33
31
|
this.dbfyprInformationPanelsDataSourceFactory = dbfyprInformationPanelsDataSourceFactory;
|
|
@@ -72,28 +70,28 @@ let FetchDBFYPRTask = class FetchDBFYPRTask extends integration_engine_1.Abstrac
|
|
|
72
70
|
}
|
|
73
71
|
if (errors.length > 0) {
|
|
74
72
|
const combined = errors.length === 1 ? errors[0] : new AggregateError(errors, "One or more DBFYPR datasets failed.");
|
|
75
|
-
throw
|
|
73
|
+
throw ErrorHelper.ensureGolemioError(combined, new GeneralError("Error while fetching DBFYPR data.", this.constructor.name, combined));
|
|
76
74
|
}
|
|
77
75
|
}
|
|
78
76
|
async processDataset(dataset) {
|
|
79
77
|
const dataSource = dataset.dataSourceFactory.getDataSource();
|
|
80
78
|
const data = await dataSource.getAll();
|
|
81
|
-
await
|
|
79
|
+
await QueueManager.sendMessageToExchange(this.queuePrefix, dataset.queueRoutingKey, data);
|
|
82
80
|
}
|
|
83
81
|
};
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
(0,
|
|
87
|
-
__param(
|
|
88
|
-
__param(
|
|
89
|
-
__param(
|
|
90
|
-
__param(
|
|
91
|
-
__param(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
DBFYPRTotemsDataSourceFactory_1.DBFYPRTotemsDataSourceFactory])
|
|
82
|
+
FetchDBFYPRTask = __decorate([
|
|
83
|
+
injectable(),
|
|
84
|
+
__param(0, inject(CoreToken.SimpleConfig)),
|
|
85
|
+
__param(1, inject(fyprIEContainerTokens.DBFYPRDisplayCasesDataSourceFactory)),
|
|
86
|
+
__param(2, inject(fyprIEContainerTokens.DBFYPRInformationPanelsDataSourceFactory)),
|
|
87
|
+
__param(3, inject(fyprIEContainerTokens.DBFYPRObelisksDataSourceFactory)),
|
|
88
|
+
__param(4, inject(fyprIEContainerTokens.DBFYPRSignpostsDataSourceFactory)),
|
|
89
|
+
__param(5, inject(fyprIEContainerTokens.DBFYPRTotemsDataSourceFactory)),
|
|
90
|
+
__metadata("design:paramtypes", [Object, DBFYPRDisplayCasesDataSourceFactory,
|
|
91
|
+
DBFYPRInformationPanelsDataSourceFactory,
|
|
92
|
+
DBFYPRObelisksDataSourceFactory,
|
|
93
|
+
DBFYPRSignpostsDataSourceFactory,
|
|
94
|
+
DBFYPRTotemsDataSourceFactory])
|
|
98
95
|
], FetchDBFYPRTask);
|
|
96
|
+
export { FetchDBFYPRTask };
|
|
99
97
|
//# sourceMappingURL=FetchDBFYPRTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchDBFYPRTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/FetchDBFYPRTask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FetchDBFYPRTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/FetchDBFYPRTask.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DCIPStatusOverviewDataSourceFactory } from "
|
|
2
|
-
import { DeviceStatusRepository } from "
|
|
3
|
-
import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine";
|
|
1
|
+
import { DCIPStatusOverviewDataSourceFactory } from "#ie/data-sources/DCIPStatusOverviewDataSourceFactory";
|
|
2
|
+
import { DeviceStatusRepository } from "#ie/repositories/DeviceStatusRepository";
|
|
3
|
+
import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine/index.js";
|
|
4
4
|
export declare class FetchDCIPStatusTask extends AbstractEmptyTask {
|
|
5
5
|
private readonly dataSourceFactory;
|
|
6
6
|
private readonly deviceStatusRepository;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,18 +10,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
let FetchDCIPStatusTask = class FetchDCIPStatusTask extends integration_engine_1.AbstractEmptyTask {
|
|
13
|
+
import { DCIPStatusOverviewDataSourceFactory } from "#ie/data-sources/DCIPStatusOverviewDataSourceFactory";
|
|
14
|
+
import { DeviceStatusRepository } from "#ie/repositories/DeviceStatusRepository";
|
|
15
|
+
import { fyprIEContainerTokens } from "#ie/ioc/FYPRIEContainerTokens";
|
|
16
|
+
import { AbstractEmptyTask } from "@golemio/core/dist/integration-engine/index.js";
|
|
17
|
+
import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
|
|
18
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
19
|
+
import { FYPR_WORKER_NAME } from "../constants.js";
|
|
20
|
+
const { GeneralError } = GolemioErrors;
|
|
21
|
+
let FetchDCIPStatusTask = class FetchDCIPStatusTask extends AbstractEmptyTask {
|
|
24
22
|
constructor(dataSourceFactory, deviceStatusRepository) {
|
|
25
|
-
super(
|
|
23
|
+
super(FYPR_WORKER_NAME.toLowerCase());
|
|
26
24
|
this.dataSourceFactory = dataSourceFactory;
|
|
27
25
|
this.deviceStatusRepository = deviceStatusRepository;
|
|
28
26
|
this.queueName = "fetchDCIPStatus";
|
|
@@ -40,16 +38,16 @@ let FetchDCIPStatusTask = class FetchDCIPStatusTask extends integration_engine_1
|
|
|
40
38
|
}
|
|
41
39
|
catch (err) {
|
|
42
40
|
this.consecutiveFailures++;
|
|
43
|
-
throw new
|
|
41
|
+
throw new GeneralError(`DCIP_STATUS_IMPORT_FAILED (${this.consecutiveFailures} in a row): error while importing DCIP status overview`, this.constructor.name, err);
|
|
44
42
|
}
|
|
45
43
|
}
|
|
46
44
|
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
(0,
|
|
50
|
-
__param(
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
DeviceStatusRepository_1.DeviceStatusRepository])
|
|
45
|
+
FetchDCIPStatusTask = __decorate([
|
|
46
|
+
injectable(),
|
|
47
|
+
__param(0, inject(fyprIEContainerTokens.DCIPStatusOverviewDataSourceFactory)),
|
|
48
|
+
__param(1, inject(fyprIEContainerTokens.DeviceStatusRepository)),
|
|
49
|
+
__metadata("design:paramtypes", [DCIPStatusOverviewDataSourceFactory,
|
|
50
|
+
DeviceStatusRepository])
|
|
54
51
|
], FetchDCIPStatusTask);
|
|
52
|
+
export { FetchDCIPStatusTask };
|
|
55
53
|
//# sourceMappingURL=FetchDCIPStatusTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FetchDCIPStatusTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/FetchDCIPStatusTask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FetchDCIPStatusTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/FetchDCIPStatusTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,sDAAsD,CAAC;AAC3G,OAAO,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gDAAgD,CAAC;AACnF,OAAO,aAAa,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC;AAGhC,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,iBAAiB;IAStD,YAEI,iBAAuE,EAEvE,sBAA+D;QAE/D,KAAK,CAAC,gBAAgB,CAAC,WAAW,EAAE,CAAC,CAAC;QAJrB,sBAAiB,GAAjB,iBAAiB,CAAqC;QAEtD,2BAAsB,GAAtB,sBAAsB,CAAwB;QAZ1C,cAAS,GAAG,iBAAiB,CAAC;QAC9B,aAAQ,GAAG,EAAE,GAAG,IAAI,CAAC;QAE9C,yFAAyF;QACzF,wFAAwF;QACxF,mFAAmF;QAC3E,wBAAmB,GAAG,CAAC,CAAC;IAShC,CAAC;IAEkB,KAAK,CAAC,OAAO;QAC5B,IAAI,CAAC;YACD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,CAAC,MAAM,EAAE,CAAC;YACnE,MAAM,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;YACnD,IAAI,CAAC,mBAAmB,GAAG,CAAC,CAAC;QACjC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,IAAI,CAAC,mBAAmB,EAAE,CAAC;YAC3B,MAAM,IAAI,YAAY,CAClB,8BAA8B,IAAI,CAAC,mBAAmB,wDAAwD,EAC9G,IAAI,CAAC,WAAW,CAAC,IAAI,EACrB,GAAG,CACN,CAAC;QACN,CAAC;IACL,CAAC;CACJ,CAAA;AAhCY,mBAAmB;IAD/B,UAAU,EAAE;IAWJ,WAAA,MAAM,CAAC,qBAAqB,CAAC,mCAAmC,CAAC,CAAA;IAEjE,WAAA,MAAM,CAAC,qBAAqB,CAAC,sBAAsB,CAAC,CAAA;qCADjB,mCAAmC;QAE9B,sBAAsB;GAb1D,mBAAmB,CAgC/B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DisplayCasesTransformation } from "
|
|
2
|
-
import { IDBFYPRDisplayCase } from "
|
|
3
|
-
import { IDisplayCase } from "
|
|
4
|
-
import
|
|
5
|
-
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask";
|
|
6
|
-
import { DisplayCaseRepository } from "
|
|
1
|
+
import { DisplayCasesTransformation } from "#ie/transformations/DisplayCasesTransformation";
|
|
2
|
+
import type { IDBFYPRDisplayCase } from "#sch/data-sources/interfaces/IDBFYPRDisplayCase";
|
|
3
|
+
import type { IDisplayCase } from "#sch/models/interfaces/IDisplayCase";
|
|
4
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
5
|
+
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask.js";
|
|
6
|
+
import { DisplayCaseRepository } from "#ie/repositories/DisplayCaseRepository";
|
|
7
7
|
export declare class UpdateDisplayCasesTask extends AbstractUpdateElementsTask<IDBFYPRDisplayCase, IDisplayCase> {
|
|
8
8
|
readonly queueName = "updateDisplayCases";
|
|
9
|
-
readonly schema: JSONSchemaValidator;
|
|
9
|
+
readonly schema: GolemioValidator.JSONSchemaValidator;
|
|
10
10
|
constructor(transformation: DisplayCasesTransformation, repository: DisplayCaseRepository);
|
|
11
11
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,28 +10,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
let UpdateDisplayCasesTask = class UpdateDisplayCasesTask extends AbstractUpdateElementsTask_1.AbstractUpdateElementsTask {
|
|
13
|
+
import { fyprIEContainerTokens } from "#ie/ioc/FYPRIEContainerTokens";
|
|
14
|
+
import { DisplayCasesTransformation } from "#ie/transformations/DisplayCasesTransformation";
|
|
15
|
+
import { dbfyprDisplayCasesJSONSchema } from "#sch/data-sources/DBFYPRDisplayCasesJSONSchema";
|
|
16
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
17
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
18
|
+
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask.js";
|
|
19
|
+
import { DisplayCaseRepository } from "#ie/repositories/DisplayCaseRepository";
|
|
20
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
21
|
+
let UpdateDisplayCasesTask = class UpdateDisplayCasesTask extends AbstractUpdateElementsTask {
|
|
24
22
|
constructor(transformation, repository) {
|
|
25
23
|
super(transformation, repository);
|
|
26
24
|
this.queueName = "updateDisplayCases";
|
|
27
|
-
this.schema = new
|
|
25
|
+
this.schema = new JSONSchemaValidator("displayCasesDataValidation", dbfyprDisplayCasesJSONSchema);
|
|
28
26
|
}
|
|
29
27
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
DisplayCaseRepository_1.DisplayCaseRepository])
|
|
28
|
+
UpdateDisplayCasesTask = __decorate([
|
|
29
|
+
injectable(),
|
|
30
|
+
__param(0, inject(fyprIEContainerTokens.DisplayCasesTransformation)),
|
|
31
|
+
__param(1, inject(fyprIEContainerTokens.DisplayCaseRepository)),
|
|
32
|
+
__metadata("design:paramtypes", [DisplayCasesTransformation,
|
|
33
|
+
DisplayCaseRepository])
|
|
37
34
|
], UpdateDisplayCasesTask);
|
|
35
|
+
export { UpdateDisplayCasesTask };
|
|
38
36
|
//# sourceMappingURL=UpdateDisplayCasesTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDisplayCasesTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateDisplayCasesTask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateDisplayCasesTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateDisplayCasesTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAG9F,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,wCAAwC,CAAC;AAE/E,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAG1C,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,0BAA4D;IAIpG,YAEI,cAA0C,EACW,UAAiC;QAEtF,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QARb,cAAS,GAAG,oBAAoB,CAAC;QACjC,WAAM,GAAG,IAAI,mBAAmB,CAAC,4BAA4B,EAAE,4BAA4B,CAAC,CAAC;IAQtH,CAAC;CACJ,CAAA;AAXY,sBAAsB;IADlC,UAAU,EAAE;IAMJ,WAAA,MAAM,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,CAAA;IAExD,WAAA,MAAM,CAAC,qBAAqB,CAAC,qBAAqB,CAAC,CAAA;qCADpC,0BAA0B;QACuB,qBAAqB;GAPjF,sBAAsB,CAWlC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { InformationPanelsTransformation } from "
|
|
2
|
-
import { IDBFYPRInformationPanel } from "
|
|
3
|
-
import { IInformationPanel } from "
|
|
4
|
-
import
|
|
5
|
-
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask";
|
|
6
|
-
import { InformationPanelRepository } from "
|
|
1
|
+
import { InformationPanelsTransformation } from "#ie/transformations/InformationPanelsTransformation";
|
|
2
|
+
import type { IDBFYPRInformationPanel } from "#sch/data-sources/interfaces/IDBFYPRInformationPanel";
|
|
3
|
+
import type { IInformationPanel } from "#sch/models/interfaces/IInformationPanel";
|
|
4
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
5
|
+
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask.js";
|
|
6
|
+
import { InformationPanelRepository } from "#ie/repositories/InformationPanelRepository";
|
|
7
7
|
export declare class UpdateInformationPanelsTask extends AbstractUpdateElementsTask<IDBFYPRInformationPanel, IInformationPanel> {
|
|
8
8
|
readonly queueName = "updateInformationPanels";
|
|
9
|
-
readonly schema: JSONSchemaValidator;
|
|
9
|
+
readonly schema: GolemioValidator.JSONSchemaValidator;
|
|
10
10
|
constructor(transformation: InformationPanelsTransformation, repository: InformationPanelRepository);
|
|
11
11
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,28 +10,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
let UpdateInformationPanelsTask = class UpdateInformationPanelsTask extends AbstractUpdateElementsTask_1.AbstractUpdateElementsTask {
|
|
13
|
+
import { fyprIEContainerTokens } from "#ie/ioc/FYPRIEContainerTokens";
|
|
14
|
+
import { InformationPanelsTransformation } from "#ie/transformations/InformationPanelsTransformation";
|
|
15
|
+
import { dbfyprInformationPanelsJSONSchema } from "#sch/data-sources/DBFYPRInformationPanelsJSONSchema";
|
|
16
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
17
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
18
|
+
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask.js";
|
|
19
|
+
import { InformationPanelRepository } from "#ie/repositories/InformationPanelRepository";
|
|
20
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
21
|
+
let UpdateInformationPanelsTask = class UpdateInformationPanelsTask extends AbstractUpdateElementsTask {
|
|
24
22
|
constructor(transformation, repository) {
|
|
25
23
|
super(transformation, repository);
|
|
26
24
|
this.queueName = "updateInformationPanels";
|
|
27
|
-
this.schema = new
|
|
25
|
+
this.schema = new JSONSchemaValidator("informationPanelsDataValidation", dbfyprInformationPanelsJSONSchema);
|
|
28
26
|
}
|
|
29
27
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
InformationPanelRepository_1.InformationPanelRepository])
|
|
28
|
+
UpdateInformationPanelsTask = __decorate([
|
|
29
|
+
injectable(),
|
|
30
|
+
__param(0, inject(fyprIEContainerTokens.InformationPanelsTransformation)),
|
|
31
|
+
__param(1, inject(fyprIEContainerTokens.InformationPanelRepository)),
|
|
32
|
+
__metadata("design:paramtypes", [InformationPanelsTransformation,
|
|
33
|
+
InformationPanelRepository])
|
|
37
34
|
], UpdateInformationPanelsTask);
|
|
35
|
+
export { UpdateInformationPanelsTask };
|
|
38
36
|
//# sourceMappingURL=UpdateInformationPanelsTask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateInformationPanelsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateInformationPanelsTask.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UpdateInformationPanelsTask.js","sourceRoot":"","sources":["../../../../src/integration-engine/workers/tasks/UpdateInformationPanelsTask.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AACtG,OAAO,EAAE,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AAGxG,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6CAA6C,CAAC;AAEzF,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAG1C,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,0BAAsE;IAOnH,YAEI,cAA+C,EACW,UAAsC;QAEhG,KAAK,CAAC,cAAc,EAAE,UAAU,CAAC,CAAC;QAXb,cAAS,GAAG,yBAAyB,CAAC;QACtC,WAAM,GAAG,IAAI,mBAAmB,CACrD,iCAAiC,EACjC,iCAAiC,CACpC,CAAC;IAQF,CAAC;CACJ,CAAA;AAdY,2BAA2B;IADvC,UAAU,EAAE;IASJ,WAAA,MAAM,CAAC,qBAAqB,CAAC,+BAA+B,CAAC,CAAA;IAE7D,WAAA,MAAM,CAAC,qBAAqB,CAAC,0BAA0B,CAAC,CAAA;qCADzC,+BAA+B;QACuB,0BAA0B;GAV3F,2BAA2B,CAcvC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ObelisksTransformation } from "
|
|
2
|
-
import { IDBFYPRObelisk } from "
|
|
3
|
-
import { IObelisk } from "
|
|
4
|
-
import
|
|
5
|
-
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask";
|
|
6
|
-
import { ObeliskRepository } from "
|
|
1
|
+
import { ObelisksTransformation } from "#ie/transformations/ObelisksTransformation";
|
|
2
|
+
import type { IDBFYPRObelisk } from "#sch/data-sources/interfaces/IDBFYPRObelisk";
|
|
3
|
+
import type { IObelisk } from "#sch/models/interfaces/IObelisk";
|
|
4
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
5
|
+
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask.js";
|
|
6
|
+
import { ObeliskRepository } from "#ie/repositories/ObeliskRepository";
|
|
7
7
|
export declare class UpdateObelisksTask extends AbstractUpdateElementsTask<IDBFYPRObelisk, IObelisk> {
|
|
8
8
|
readonly queueName = "updateObelisks";
|
|
9
|
-
readonly schema: JSONSchemaValidator;
|
|
9
|
+
readonly schema: GolemioValidator.JSONSchemaValidator;
|
|
10
10
|
constructor(transformation: ObelisksTransformation, repository: ObeliskRepository);
|
|
11
11
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,28 +10,27 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
let UpdateObelisksTask = class UpdateObelisksTask extends AbstractUpdateElementsTask_1.AbstractUpdateElementsTask {
|
|
13
|
+
import { fyprIEContainerTokens } from "#ie/ioc/FYPRIEContainerTokens";
|
|
14
|
+
import { ObelisksTransformation } from "#ie/transformations/ObelisksTransformation";
|
|
15
|
+
import { dbfyprObelisksJSONSchema } from "#sch/data-sources/DBFYPRObelisksJSONSchema";
|
|
16
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
17
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
18
|
+
import { AbstractUpdateElementsTask } from "./AbstractUpdateElementsTask.js";
|
|
19
|
+
import { ObeliskRepository } from "#ie/repositories/ObeliskRepository";
|
|
20
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
21
|
+
let UpdateObelisksTask = class UpdateObelisksTask extends AbstractUpdateElementsTask {
|
|
24
22
|
constructor(transformation, repository) {
|
|
25
23
|
super(transformation, repository);
|
|
26
24
|
this.queueName = "updateObelisks";
|
|
27
|
-
this.schema = new
|
|
25
|
+
this.schema = new JSONSchemaValidator("obelisksDataValidation", dbfyprObelisksJSONSchema);
|
|
28
26
|
}
|
|
29
27
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
ObeliskRepository_1.ObeliskRepository])
|
|
28
|
+
UpdateObelisksTask = __decorate([
|
|
29
|
+
injectable(),
|
|
30
|
+
__param(0, inject(fyprIEContainerTokens.ObelisksTransformation)),
|
|
31
|
+
__param(1, inject(fyprIEContainerTokens.ObeliskRepository)),
|
|
32
|
+
__metadata("design:paramtypes", [ObelisksTransformation,
|
|
33
|
+
ObeliskRepository])
|
|
37
34
|
], UpdateObelisksTask);
|
|
35
|
+
export { UpdateObelisksTask };
|
|
38
36
|
//# sourceMappingURL=UpdateObelisksTask.js.map
|