@golemio/fypr 1.12.0 → 2.0.0-dev.2868130045
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,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,30 +10,29 @@ 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
|
-
const
|
|
21
|
-
|
|
22
|
-
let DisplayCaseRepository = class DisplayCaseRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
|
|
13
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
14
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
15
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
16
|
+
import { PG_SCHEMA } from "#sch/const";
|
|
17
|
+
import { DisplayCaseModel } from "#sch/models/DisplayCaseModel";
|
|
18
|
+
import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
|
|
19
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
20
|
+
let DisplayCaseRepository = class DisplayCaseRepository extends AbstractFyprRepository {
|
|
23
21
|
constructor(connector, logger) {
|
|
24
22
|
super(connector, logger);
|
|
25
|
-
this.tableName =
|
|
23
|
+
this.tableName = DisplayCaseModel.tableName;
|
|
26
24
|
this.entityLabel = "DisplayCases";
|
|
27
|
-
this.validator = new
|
|
28
|
-
this.sequelizeModel = connector.getConnection().define(this.tableName,
|
|
29
|
-
schema:
|
|
25
|
+
this.validator = new JSONSchemaValidator("DisplayCaseRepository", DisplayCaseModel.jsonSchema);
|
|
26
|
+
this.sequelizeModel = connector.getConnection().define(this.tableName, DisplayCaseModel.attributeModel, {
|
|
27
|
+
schema: PG_SCHEMA,
|
|
30
28
|
});
|
|
31
29
|
}
|
|
32
30
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
(0,
|
|
36
|
-
__param(
|
|
37
|
-
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
31
|
+
DisplayCaseRepository = __decorate([
|
|
32
|
+
injectable(),
|
|
33
|
+
__param(0, inject(CoreToken.PostgresConnector)),
|
|
34
|
+
__param(1, inject(CoreToken.Logger)),
|
|
38
35
|
__metadata("design:paramtypes", [Object, Object])
|
|
39
36
|
], DisplayCaseRepository);
|
|
37
|
+
export { DisplayCaseRepository };
|
|
40
38
|
//# sourceMappingURL=DisplayCaseRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisplayCaseRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/DisplayCaseRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DisplayCaseRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/DisplayCaseRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAG1C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,sBAAoC;IAO3E,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,gBAAgB,CAAC,SAAS,CAAC;QAGpC,gBAAW,GAAG,cAAc,CAAC;QAInC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CAAC,uBAAuB,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;QAC/F,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,gBAAgB,CAAC,cAAc,EAAE;YACpG,MAAM,EAAE,SAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,qBAAqB;IADjC,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,qBAAqB,CAcjC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ILogger } from "@golemio/core/dist/helpers";
|
|
2
|
-
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
3
|
-
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
|
|
4
|
-
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
5
|
-
import { IInformationPanelPreset } from "
|
|
1
|
+
import type { ILogger } from "@golemio/core/dist/helpers/index.js";
|
|
2
|
+
import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
|
|
3
|
+
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
|
|
4
|
+
import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
|
|
5
|
+
import type { IInformationPanelPreset } from "#sch/models/interfaces/IInformationPanelPreset";
|
|
6
6
|
export declare class InformationPanelPresetsRepository extends AbstractValidatableRepository {
|
|
7
7
|
schema: string;
|
|
8
8
|
tableName: string;
|
|
9
|
-
validator:
|
|
9
|
+
validator: TJSONSchemaValidator;
|
|
10
10
|
private sequelizeModel;
|
|
11
11
|
constructor(connector: IDatabaseConnector, log: ILogger);
|
|
12
12
|
/**
|
|
@@ -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,26 +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
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
13
|
+
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
|
|
16
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
17
|
+
import Sequelize from "@golemio/core/dist/shared/sequelize.js";
|
|
18
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
19
|
+
import { PG_SCHEMA, STALE_ROW_THRESHOLD } from "#sch/const";
|
|
20
|
+
import { InformationPanelModel } from "#sch/models/InformationPanelModel";
|
|
21
|
+
import { InformationPanelPresetsModel } from "#sch/models/InformationPanelPresetsModel";
|
|
22
|
+
const { GeneralError } = GolemioErrors;
|
|
23
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
24
|
+
const { Op, QueryTypes, literal } = Sequelize;
|
|
25
|
+
let InformationPanelPresetsRepository = class InformationPanelPresetsRepository extends AbstractValidatableRepository {
|
|
26
26
|
constructor(connector, log) {
|
|
27
27
|
super(connector, log);
|
|
28
|
-
this.schema =
|
|
29
|
-
this.tableName =
|
|
30
|
-
this.validator = new
|
|
28
|
+
this.schema = PG_SCHEMA;
|
|
29
|
+
this.tableName = InformationPanelPresetsModel.tableName;
|
|
30
|
+
this.validator = new JSONSchemaValidator("InformationPanelPresetsRepository", InformationPanelPresetsModel.jsonSchema);
|
|
31
31
|
this.sequelizeModel = connector
|
|
32
32
|
.getConnection()
|
|
33
|
-
.define(this.tableName,
|
|
33
|
+
.define(this.tableName, InformationPanelPresetsModel.attributeModel, { schema: this.schema });
|
|
34
34
|
}
|
|
35
35
|
/**
|
|
36
36
|
* Upserts presets and re-establishes panel links atomically — relink runs in the same transaction
|
|
@@ -42,36 +42,36 @@ let InformationPanelPresetsRepository = class InformationPanelPresetsRepository
|
|
|
42
42
|
let rows;
|
|
43
43
|
try {
|
|
44
44
|
rows = await this.sequelizeModel.bulkCreate(data, {
|
|
45
|
-
updateOnDuplicate:
|
|
45
|
+
updateOnDuplicate: InformationPanelPresetsModel.getUpdateAttributes(),
|
|
46
46
|
transaction,
|
|
47
47
|
});
|
|
48
48
|
await this.sequelizeModel.destroy({
|
|
49
|
-
where: { updated_at: { [
|
|
49
|
+
where: { updated_at: { [Op.lt]: literal(STALE_ROW_THRESHOLD) } },
|
|
50
50
|
transaction,
|
|
51
51
|
});
|
|
52
|
-
await this.connector.getConnection().query(`UPDATE ${
|
|
52
|
+
await this.connector.getConnection().query(`UPDATE ${PG_SCHEMA}.${InformationPanelPresetsModel.tableName} AS p
|
|
53
53
|
SET information_panel_document_id = mapping.document_id, updated_at = now()
|
|
54
54
|
FROM (
|
|
55
55
|
SELECT ip.document_id, trim(preset_name) AS route_name
|
|
56
|
-
FROM ${
|
|
56
|
+
FROM ${PG_SCHEMA}.${InformationPanelModel.tableName} AS ip,
|
|
57
57
|
regexp_split_to_table(ip.preset, '[\\s,]+') AS preset_name
|
|
58
58
|
WHERE ip.preset IS NOT NULL AND trim(preset_name) <> ''
|
|
59
59
|
) AS mapping
|
|
60
|
-
WHERE p.route_name = mapping.route_name`, { type:
|
|
60
|
+
WHERE p.route_name = mapping.route_name`, { type: QueryTypes.UPDATE, transaction });
|
|
61
61
|
await transaction.commit();
|
|
62
62
|
}
|
|
63
63
|
catch (err) {
|
|
64
64
|
await transaction.rollback();
|
|
65
|
-
throw new
|
|
65
|
+
throw new GeneralError("updateListAndRelink error", this.constructor.name, err);
|
|
66
66
|
}
|
|
67
67
|
return rows;
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
(0,
|
|
73
|
-
__param(
|
|
74
|
-
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
70
|
+
InformationPanelPresetsRepository = __decorate([
|
|
71
|
+
injectable(),
|
|
72
|
+
__param(0, inject(CoreToken.PostgresConnector)),
|
|
73
|
+
__param(1, inject(CoreToken.Logger)),
|
|
75
74
|
__metadata("design:paramtypes", [Object, Object])
|
|
76
75
|
], InformationPanelPresetsRepository);
|
|
76
|
+
export { InformationPanelPresetsRepository };
|
|
77
77
|
//# sourceMappingURL=InformationPanelPresetsRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InformationPanelPresetsRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InformationPanelPresetsRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,E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golemio/core/dist/helpers";
|
|
2
|
-
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
3
|
-
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
|
|
4
|
-
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
5
|
-
import { IInformationPanelPresetRoute } from "
|
|
1
|
+
import type { ILogger } from "@golemio/core/dist/helpers/index.js";
|
|
2
|
+
import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
|
|
3
|
+
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
|
|
4
|
+
import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
|
|
5
|
+
import type { IInformationPanelPresetRoute } from "#sch/models/interfaces/IInformationPanelPresetRoute";
|
|
6
6
|
export declare class InformationPanelPresetsRoutesRepository extends AbstractValidatableRepository {
|
|
7
7
|
schema: string;
|
|
8
8
|
tableName: string;
|
|
9
|
-
validator:
|
|
9
|
+
validator: TJSONSchemaValidator;
|
|
10
10
|
private sequelizeModel;
|
|
11
11
|
constructor(connector: IDatabaseConnector, log: ILogger);
|
|
12
12
|
updateList(data: IInformationPanelPresetRoute[]): Promise<void>;
|
|
@@ -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,25 +10,26 @@ 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
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
13
|
+
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
|
|
16
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
17
|
+
import Sequelize from "@golemio/core/dist/shared/sequelize.js";
|
|
18
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
19
|
+
import { PG_SCHEMA, STALE_ROW_THRESHOLD } from "#sch/const";
|
|
20
|
+
import { InformationPanelPresetsRoutesModel } from "#sch/models/InformationPanelPresetsRoutesModel";
|
|
21
|
+
const { GeneralError } = GolemioErrors;
|
|
22
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
23
|
+
const { Op, literal } = Sequelize;
|
|
24
|
+
let InformationPanelPresetsRoutesRepository = class InformationPanelPresetsRoutesRepository extends AbstractValidatableRepository {
|
|
25
25
|
constructor(connector, log) {
|
|
26
26
|
super(connector, log);
|
|
27
|
-
this.schema =
|
|
28
|
-
this.tableName =
|
|
29
|
-
this.validator = new
|
|
27
|
+
this.schema = PG_SCHEMA;
|
|
28
|
+
this.tableName = InformationPanelPresetsRoutesModel.tableName;
|
|
29
|
+
this.validator = new JSONSchemaValidator("InformationPanelPresetsRoutesRepository", InformationPanelPresetsRoutesModel.jsonSchema);
|
|
30
30
|
this.sequelizeModel = connector
|
|
31
31
|
.getConnection()
|
|
32
|
-
.define(this.tableName,
|
|
32
|
+
.define(this.tableName, InformationPanelPresetsRoutesModel.attributeModel, { schema: this.schema });
|
|
33
33
|
}
|
|
34
34
|
async updateList(data) {
|
|
35
35
|
this.validator.Validate(data);
|
|
@@ -38,26 +38,26 @@ let InformationPanelPresetsRoutesRepository = class InformationPanelPresetsRoute
|
|
|
38
38
|
const transaction = await this.sequelizeModel.sequelize.transaction();
|
|
39
39
|
try {
|
|
40
40
|
await this.sequelizeModel.bulkCreate(deduped, {
|
|
41
|
-
updateOnDuplicate:
|
|
41
|
+
updateOnDuplicate: InformationPanelPresetsRoutesModel.getUpdateAttributes(),
|
|
42
42
|
transaction,
|
|
43
43
|
});
|
|
44
44
|
await this.sequelizeModel.destroy({
|
|
45
|
-
where: { updated_at: { [
|
|
45
|
+
where: { updated_at: { [Op.lt]: literal(STALE_ROW_THRESHOLD) } },
|
|
46
46
|
transaction,
|
|
47
47
|
});
|
|
48
48
|
await transaction.commit();
|
|
49
49
|
}
|
|
50
50
|
catch (err) {
|
|
51
51
|
await transaction.rollback();
|
|
52
|
-
throw new
|
|
52
|
+
throw new GeneralError("updateList error", this.constructor.name, err);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
(0,
|
|
59
|
-
__param(
|
|
60
|
-
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
56
|
+
InformationPanelPresetsRoutesRepository = __decorate([
|
|
57
|
+
injectable(),
|
|
58
|
+
__param(0, inject(CoreToken.PostgresConnector)),
|
|
59
|
+
__param(1, inject(CoreToken.Logger)),
|
|
61
60
|
__metadata("design:paramtypes", [Object, Object])
|
|
62
61
|
], InformationPanelPresetsRoutesRepository);
|
|
62
|
+
export { InformationPanelPresetsRoutesRepository };
|
|
63
63
|
//# sourceMappingURL=InformationPanelPresetsRoutesRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InformationPanelPresetsRoutesRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRoutesRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InformationPanelPresetsRoutesRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsRoutesRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,6BAA6B,EAAE,MAAM,+FAA+F,CAAC;AAC9I,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,aAAa,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,SAAS,MAAM,wCAAwC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,kCAAkC,EAAE,MAAM,gDAAgD,CAAC;AAGpG,MAAM,EAAE,YAAY,EAAE,GAAG,aAAa,CAAC;AACvC,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AACjD,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;AAG3B,IAAM,uCAAuC,GAA7C,MAAM,uCAAwC,SAAQ,6BAA6B;IAOtF,YAAiD,SAA6B,EAA4B,GAAY;QAClH,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QAPnB,WAAM,GAAG,SAAS,CAAC;QACnB,cAAS,GAAG,kCAAkC,CAAC,SAAS,CAAC;QAO5D,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CACpC,yCAAyC,EACzC,kCAAkC,CAAC,UAAU,CAChD,CAAC;QACF,IAAI,CAAC,cAAc,GAAG,SAAS;aAC1B,aAAa,EAAE;aACf,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,cAAc,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5G,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,IAAoC;Q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uCAAuC,CA4CnD"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ILogger } from "@golemio/core/dist/helpers";
|
|
2
|
-
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
3
|
-
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository";
|
|
4
|
-
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
5
|
-
import { IInformationPanelPresetStop } from "
|
|
1
|
+
import type { ILogger } from "@golemio/core/dist/helpers/index.js";
|
|
2
|
+
import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
|
|
3
|
+
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
|
|
4
|
+
import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
|
|
5
|
+
import type { IInformationPanelPresetStop } from "#sch/models/interfaces/IInformationPanelPresetStop";
|
|
6
6
|
export declare class InformationPanelPresetsStopsRepository extends AbstractValidatableRepository {
|
|
7
7
|
schema: string;
|
|
8
8
|
tableName: string;
|
|
9
|
-
validator:
|
|
9
|
+
validator: TJSONSchemaValidator;
|
|
10
10
|
private sequelizeModel;
|
|
11
11
|
constructor(connector: IDatabaseConnector, log: ILogger);
|
|
12
12
|
updateList(data: IInformationPanelPresetStop[]): Promise<void>;
|
|
@@ -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,51 +10,52 @@ 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
|
-
const
|
|
23
|
-
const
|
|
24
|
-
|
|
13
|
+
import { AbstractValidatableRepository } from "@golemio/core/dist/helpers/data-access/postgres/repositories/AbstractValidatableRepository.js";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
|
|
16
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
17
|
+
import Sequelize from "@golemio/core/dist/shared/sequelize.js";
|
|
18
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
19
|
+
import { PG_SCHEMA, STALE_ROW_THRESHOLD } from "#sch/const";
|
|
20
|
+
import { InformationPanelPresetsStopsModel } from "#sch/models/InformationPanelPresetsStopsModel";
|
|
21
|
+
const { GeneralError } = GolemioErrors;
|
|
22
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
23
|
+
const { Op, literal } = Sequelize;
|
|
24
|
+
let InformationPanelPresetsStopsRepository = class InformationPanelPresetsStopsRepository extends AbstractValidatableRepository {
|
|
25
25
|
constructor(connector, log) {
|
|
26
26
|
super(connector, log);
|
|
27
|
-
this.schema =
|
|
28
|
-
this.tableName =
|
|
29
|
-
this.validator = new
|
|
27
|
+
this.schema = PG_SCHEMA;
|
|
28
|
+
this.tableName = InformationPanelPresetsStopsModel.tableName;
|
|
29
|
+
this.validator = new JSONSchemaValidator("InformationPanelPresetsStopsRepository", InformationPanelPresetsStopsModel.jsonSchema);
|
|
30
30
|
this.sequelizeModel = connector
|
|
31
31
|
.getConnection()
|
|
32
|
-
.define(this.tableName,
|
|
32
|
+
.define(this.tableName, InformationPanelPresetsStopsModel.attributeModel, { schema: this.schema });
|
|
33
33
|
}
|
|
34
34
|
async updateList(data) {
|
|
35
35
|
this.validator.Validate(data);
|
|
36
36
|
const transaction = await this.sequelizeModel.sequelize.transaction();
|
|
37
37
|
try {
|
|
38
38
|
await this.sequelizeModel.bulkCreate(data, {
|
|
39
|
-
updateOnDuplicate:
|
|
39
|
+
updateOnDuplicate: InformationPanelPresetsStopsModel.getUpdateAttributes(),
|
|
40
40
|
transaction,
|
|
41
41
|
});
|
|
42
42
|
await this.sequelizeModel.destroy({
|
|
43
|
-
where: { updated_at: { [
|
|
43
|
+
where: { updated_at: { [Op.lt]: literal(STALE_ROW_THRESHOLD) } },
|
|
44
44
|
transaction,
|
|
45
45
|
});
|
|
46
46
|
await transaction.commit();
|
|
47
47
|
}
|
|
48
48
|
catch (err) {
|
|
49
49
|
await transaction.rollback();
|
|
50
|
-
throw new
|
|
50
|
+
throw new GeneralError("updateList error", this.constructor.name, err);
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
(0,
|
|
57
|
-
__param(
|
|
58
|
-
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
54
|
+
InformationPanelPresetsStopsRepository = __decorate([
|
|
55
|
+
injectable(),
|
|
56
|
+
__param(0, inject(CoreToken.PostgresConnector)),
|
|
57
|
+
__param(1, inject(CoreToken.Logger)),
|
|
59
58
|
__metadata("design:paramtypes", [Object, Object])
|
|
60
59
|
], InformationPanelPresetsStopsRepository);
|
|
60
|
+
export { InformationPanelPresetsStopsRepository };
|
|
61
61
|
//# sourceMappingURL=InformationPanelPresetsStopsRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InformationPanelPresetsStopsRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelPresetsStopsRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InformationPanelPresetsStop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AC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC9B,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,SAAU,CAAC,WAAW,EAAE,CAAC;QACvE,IAAI,CAAC;YACD,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAW,EAAE;gBAC9C,iBAAiB,EAAE,iCAAiC,CAAC,mBAAmB,EAAS;gBACjF,WAAW;aACd,CAAC,CAAC;YAEH,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBAC9B,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,EAAE,EAAE;gBAChE,WAAW;aACd,CAAC,CAAC;YAEH,MAAM,WAAW,CAAC,MAAM,EAAE,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,MAAM,WAAW,CAAC,QAAQ,EAAE,CAAC;YAC7B,MAAM,IAAI,YAAY,CAAC,kBAAkB,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAC3E,CAAC;IACL,CAAC;CACJ,CAAA;AAtCY,sCAAsC;IADlD,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,sCAAsC,CAsClD"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ILogger } from "@golemio/core/dist/helpers";
|
|
2
|
-
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
3
|
-
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
4
|
-
import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
|
|
5
|
-
import { InformationPanelModel } from "
|
|
6
|
-
import { IInformationPanel } from "
|
|
7
|
-
import { AbstractFyprRepository } from "./AbstractFyprRepository";
|
|
1
|
+
import type { ILogger } from "@golemio/core/dist/helpers/index.js";
|
|
2
|
+
import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
|
|
3
|
+
import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
|
|
4
|
+
import type { ModelStatic } from "@golemio/core/dist/shared/sequelize.js";
|
|
5
|
+
import { InformationPanelModel } from "#sch/models/InformationPanelModel";
|
|
6
|
+
import type { IInformationPanel } from "#sch/models/interfaces/IInformationPanel";
|
|
7
|
+
import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
|
|
8
8
|
export declare class InformationPanelRepository extends AbstractFyprRepository<IInformationPanel> {
|
|
9
|
-
validator:
|
|
9
|
+
validator: TJSONSchemaValidator;
|
|
10
10
|
tableName: string;
|
|
11
11
|
protected sequelizeModel: ModelStatic<InformationPanelModel>;
|
|
12
12
|
protected entityLabel: string;
|
|
@@ -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,30 +10,29 @@ 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
|
-
const
|
|
21
|
-
|
|
22
|
-
let InformationPanelRepository = class InformationPanelRepository extends AbstractFyprRepository_1.AbstractFyprRepository {
|
|
13
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
14
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
15
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
16
|
+
import { PG_SCHEMA } from "#sch/const";
|
|
17
|
+
import { InformationPanelModel } from "#sch/models/InformationPanelModel";
|
|
18
|
+
import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
|
|
19
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
20
|
+
let InformationPanelRepository = class InformationPanelRepository extends AbstractFyprRepository {
|
|
23
21
|
constructor(connector, logger) {
|
|
24
22
|
super(connector, logger);
|
|
25
|
-
this.tableName =
|
|
23
|
+
this.tableName = InformationPanelModel.tableName;
|
|
26
24
|
this.entityLabel = "InformationPanels";
|
|
27
|
-
this.validator = new
|
|
28
|
-
this.sequelizeModel = connector.getConnection().define(this.tableName,
|
|
29
|
-
schema:
|
|
25
|
+
this.validator = new JSONSchemaValidator("InformationPanelRepository", InformationPanelModel.jsonSchema);
|
|
26
|
+
this.sequelizeModel = connector.getConnection().define(this.tableName, InformationPanelModel.attributeModel, {
|
|
27
|
+
schema: PG_SCHEMA,
|
|
30
28
|
});
|
|
31
29
|
}
|
|
32
30
|
};
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
(0,
|
|
36
|
-
__param(
|
|
37
|
-
__param(1, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.Logger)),
|
|
31
|
+
InformationPanelRepository = __decorate([
|
|
32
|
+
injectable(),
|
|
33
|
+
__param(0, inject(CoreToken.PostgresConnector)),
|
|
34
|
+
__param(1, inject(CoreToken.Logger)),
|
|
38
35
|
__metadata("design:paramtypes", [Object, Object])
|
|
39
36
|
], InformationPanelRepository);
|
|
37
|
+
export { InformationPanelRepository };
|
|
40
38
|
//# sourceMappingURL=InformationPanelRepository.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InformationPanelRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelRepository.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"InformationPanelRepository.js","sourceRoot":"","sources":["../../../src/integration-engine/repositories/InformationPanelRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AAExE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE1E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAG1C,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,sBAAyC;IAOrF,YAAiD,SAA6B,EAA4B,MAAe;QACrH,KAAK,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;QANtB,cAAS,GAAG,qBAAqB,CAAC,SAAS,CAAC;QAGzC,gBAAW,GAAG,mBAAmB,CAAC;QAIxC,IAAI,CAAC,SAAS,GAAG,IAAI,mBAAmB,CAAC,4BAA4B,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;QACzG,IAAI,CAAC,cAAc,GAAG,SAAS,CAAC,aAAa,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,qBAAqB,CAAC,cAAc,EAAE;YACzG,MAAM,EAAE,SAAS;SACpB,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAdY,0BAA0B;IADtC,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAA;IAAiC,WAAA,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAA;;GAPhG,0BAA0B,CActC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ILogger } from "@golemio/core/dist/helpers";
|
|
2
|
-
import { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector";
|
|
3
|
-
import { JSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator";
|
|
4
|
-
import { ModelStatic } from "@golemio/core/dist/shared/sequelize";
|
|
5
|
-
import { ObeliskModel } from "
|
|
6
|
-
import { IObelisk } from "
|
|
7
|
-
import { AbstractFyprRepository } from "./AbstractFyprRepository";
|
|
1
|
+
import type { ILogger } from "@golemio/core/dist/helpers/index.js";
|
|
2
|
+
import type { IDatabaseConnector } from "@golemio/core/dist/helpers/data-access/postgres/IDatabaseConnector.js";
|
|
3
|
+
import type { JSONSchemaValidator as TJSONSchemaValidator } from "@golemio/core/dist/shared/golemio-validator.js";
|
|
4
|
+
import type { ModelStatic } from "@golemio/core/dist/shared/sequelize.js";
|
|
5
|
+
import { ObeliskModel } from "#sch/models/ObeliskModel";
|
|
6
|
+
import type { IObelisk } from "#sch/models/interfaces/IObelisk";
|
|
7
|
+
import { AbstractFyprRepository } from "./AbstractFyprRepository.js";
|
|
8
8
|
export declare class ObeliskRepository extends AbstractFyprRepository<IObelisk> {
|
|
9
|
-
validator:
|
|
9
|
+
validator: TJSONSchemaValidator;
|
|
10
10
|
tableName: string;
|
|
11
11
|
protected sequelizeModel: ModelStatic<ObeliskModel>;
|
|
12
12
|
protected entityLabel: string;
|