@golemio/fypr 1.12.1-dev.2832960889 → 2.0.0-next.2849999746
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
package/README.md
CHANGED
|
@@ -29,6 +29,17 @@
|
|
|
29
29
|
|
|
30
30
|
This module is intended for use with Golemio services. Refer [here](https://gitlab.com/operator-ict/golemio/code/modules/core/-/blob/master/README.md) for further information on usage, local development and more.
|
|
31
31
|
|
|
32
|
+
## Requirements
|
|
33
|
+
|
|
34
|
+
- Node.js >= 24, TypeScript 6.
|
|
35
|
+
- Native ESM (`"type": "module"`) - built with `module`/`moduleResolution` set to `NodeNext`.
|
|
36
|
+
- `@golemio/core` >= 4.0.1 (peer dependency; core itself remains CommonJS - the ESM/CJS interop is handled internally).
|
|
37
|
+
|
|
38
|
+
## Import contract
|
|
39
|
+
|
|
40
|
+
- Public entry points: the package root (`@golemio/fypr`), `@golemio/fypr/dist/output-gateway`, `@golemio/fypr/dist/integration-engine`, `@golemio/fypr/dist/schema-definitions`. Supports static `import`, `import()`, and CommonJS `require()` (via Node's `require(esm)` support).
|
|
41
|
+
- Internal `#`-prefixed subpath imports (`#helpers`, `#ie`, `#og`, `#sch`) are an implementation detail (Node's native `imports` map) and not part of the public API.
|
|
42
|
+
|
|
32
43
|
## Installation
|
|
33
44
|
|
|
34
45
|
The APIs may be unstable. Therefore, we recommend to install this module as an exact version.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractGolemioError } from "@golemio/core/dist/shared/golemio-errors";
|
|
1
|
+
import type { AbstractGolemioError as TAbstractGolemioError } from "@golemio/core/dist/shared/golemio-errors.js";
|
|
2
2
|
export declare class ErrorHelper {
|
|
3
|
-
static ensureGolemioError(error: unknown, golemioError:
|
|
3
|
+
static ensureGolemioError(error: unknown, golemioError: TAbstractGolemioError): TAbstractGolemioError;
|
|
4
4
|
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
5
|
-
class ErrorHelper {
|
|
1
|
+
import GolemioErrors from "@golemio/core/dist/shared/golemio-errors.js";
|
|
2
|
+
const { AbstractGolemioError } = GolemioErrors;
|
|
3
|
+
export class ErrorHelper {
|
|
6
4
|
static ensureGolemioError(error, golemioError) {
|
|
7
|
-
return error instanceof
|
|
5
|
+
return error instanceof AbstractGolemioError ? error : golemioError;
|
|
8
6
|
}
|
|
9
7
|
}
|
|
10
|
-
exports.ErrorHelper = ErrorHelper;
|
|
11
8
|
//# sourceMappingURL=ErrorHelper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorHelper.js","sourceRoot":"","sources":["../../../src/helpers/errors/ErrorHelper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ErrorHelper.js","sourceRoot":"","sources":["../../../src/helpers/errors/ErrorHelper.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,6CAA6C,CAAC;AAExE,MAAM,EAAE,oBAAoB,EAAE,GAAG,aAAa,CAAC;AAE/C,MAAM,OAAO,WAAW;IACb,MAAM,CAAC,kBAAkB,CAAC,KAAc,EAAE,YAAmC;QAChF,OAAO,KAAK,YAAY,oBAAoB,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC;IACxE,CAAC;CACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * as IntegrationEngine from "
|
|
2
|
-
export * as OutputGateway from "
|
|
3
|
-
export * as SchemaDefinitions from "
|
|
1
|
+
export * as IntegrationEngine from "#ie/index";
|
|
2
|
+
export * as OutputGateway from "#og/index";
|
|
3
|
+
export * as SchemaDefinitions from "#sch/index";
|
package/dist/index.js
CHANGED
|
@@ -1,41 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.SchemaDefinitions = exports.OutputGateway = exports.IntegrationEngine = void 0;
|
|
37
1
|
// Library exports
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
2
|
+
export * as IntegrationEngine from "#ie/index";
|
|
3
|
+
export * as OutputGateway from "#og/index";
|
|
4
|
+
export * as SchemaDefinitions from "#sch/index";
|
|
41
5
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAClB,OAAO,KAAK,iBAAiB,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,aAAa,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,iBAAiB,MAAM,YAAY,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
2
|
-
import { IDataSource } from "@golemio/core/dist/integration-engine";
|
|
1
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
2
|
+
import type { IDataSource } from "@golemio/core/dist/integration-engine/index.js";
|
|
3
3
|
export declare abstract class AbstractDBFYPRDataSourceFactory<DataSourceItemType> {
|
|
4
4
|
private readonly config;
|
|
5
5
|
protected abstract readonly dataSourceName: string;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const golemio_validator_1 = require("@golemio/core/dist/shared/golemio-validator");
|
|
7
|
-
class AbstractDBFYPRDataSourceFactory {
|
|
1
|
+
import { StrapiPaginatedHTTPProtocolStrategy } from "#ie/data-sources/protocol-strategies/StrapiPaginatedHTTPProtocolStrategy";
|
|
2
|
+
import { DataSource, JSONDataTypeStrategy } from "@golemio/core/dist/integration-engine/index.js";
|
|
3
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
4
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
5
|
+
export class AbstractDBFYPRDataSourceFactory {
|
|
8
6
|
constructor(config) {
|
|
9
7
|
this.config = config;
|
|
10
8
|
// Empty
|
|
11
9
|
}
|
|
12
10
|
getDataSource() {
|
|
13
|
-
return new
|
|
11
|
+
return new DataSource(this.dataSourceName, this.getProtocolStrategy(), new JSONDataTypeStrategy({ resultsPath: "data" }), new JSONSchemaValidator(`${this.dataSourceName}Validator`, this.jsonSchema));
|
|
14
12
|
}
|
|
15
13
|
getProtocolStrategy() {
|
|
16
14
|
const baseUrl = this.config.getValue("module.fypr.dbfyprApi.baseUrl");
|
|
@@ -20,7 +18,7 @@ class AbstractDBFYPRDataSourceFactory {
|
|
|
20
18
|
...this.config.getValue("module.fypr.dbfyprApi.commonHeaders", {}),
|
|
21
19
|
...this.config.getValue(`module.fypr.dbfyprApi.${this.moduleConfigApiItem}.headers`, {}),
|
|
22
20
|
};
|
|
23
|
-
return new
|
|
21
|
+
return new StrapiPaginatedHTTPProtocolStrategy({
|
|
24
22
|
method: "GET",
|
|
25
23
|
url: new URL(urlPath, baseUrl).toString(),
|
|
26
24
|
headers,
|
|
@@ -28,5 +26,4 @@ class AbstractDBFYPRDataSourceFactory {
|
|
|
28
26
|
});
|
|
29
27
|
}
|
|
30
28
|
}
|
|
31
|
-
exports.AbstractDBFYPRDataSourceFactory = AbstractDBFYPRDataSourceFactory;
|
|
32
29
|
//# sourceMappingURL=AbstractDBFYPRDataSourceFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractDBFYPRDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AbstractDBFYPRDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/AbstractDBFYPRDataSourceFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,0EAA0E,CAAC;AAE/H,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAoB,MAAM,gDAAgD,CAAC;AAEpH,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAEjD,MAAM,OAAgB,+BAA+B;IAKjD,YAA6B,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;QAC9C,QAAQ;IACZ,CAAC;IAEM,aAAa;QAChB,OAAO,IAAI,UAAU,CACjB,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,mBAAmB,EAAE,EAC1B,IAAI,oBAAoB,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,EACjD,IAAI,mBAAmB,CAAC,GAAG,IAAI,CAAC,cAAc,WAAW,EAAE,IAAI,CAAC,UAAU,CAAC,CAC9E,CAAC;IACN,CAAC;IAEO,mBAAmB;QACvB,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,+BAA+B,CAAC,CAAC;QAC9E,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,8CAA8C,CAAW,CAAC;QAChH,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,yBAAyB,IAAI,CAAC,mBAAmB,OAAO,CAAC,CAAC;QAEvG,MAAM,OAAO,GAAgB;YACzB,GAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAc,qCAAqC,EAAE,EAAE,CAAiB;YAChG,GAAI,IAAI,CAAC,MAAM,CAAC,QAAQ,CACpB,yBAAyB,IAAI,CAAC,mBAAmB,UAAU,EAC3D,EAAE,CACW;SACpB,CAAC;QAEF,OAAO,IAAI,mCAAmC,CAAC;YAC3C,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,IAAI,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE;YACzC,OAAO;YACP,gBAAgB;SACnB,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDBFYPRDisplayCase } from "
|
|
2
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
3
|
-
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory";
|
|
1
|
+
import type { IDBFYPRDisplayCase } from "#sch/data-sources/interfaces/IDBFYPRDisplayCase";
|
|
2
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
3
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
4
4
|
export declare class DBFYPRDisplayCasesDataSourceFactory extends AbstractDBFYPRDataSourceFactory<IDBFYPRDisplayCase> {
|
|
5
5
|
protected readonly dataSourceName = "DBFYPRDisplayCasesDataSource";
|
|
6
6
|
protected readonly jsonSchema: object;
|
|
@@ -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,24 @@ 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
|
-
const AbstractDBFYPRDataSourceFactory_1 = require("./AbstractDBFYPRDataSourceFactory");
|
|
20
|
-
let DBFYPRDisplayCasesDataSourceFactory = class DBFYPRDisplayCasesDataSourceFactory extends AbstractDBFYPRDataSourceFactory_1.AbstractDBFYPRDataSourceFactory {
|
|
13
|
+
import { dbfyprDisplayCasesJSONSchema } from "#sch/data-sources/DBFYPRDisplayCasesJSONSchema";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
16
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
17
|
+
let DBFYPRDisplayCasesDataSourceFactory = class DBFYPRDisplayCasesDataSourceFactory extends AbstractDBFYPRDataSourceFactory {
|
|
21
18
|
constructor(config) {
|
|
22
19
|
super(config);
|
|
23
20
|
this.dataSourceName = "DBFYPRDisplayCasesDataSource";
|
|
24
21
|
// Without explicit object type, the following type error occurs:
|
|
25
22
|
// "The inferred type of 'jsonSchema' cannot be named without a reference to '@golemio/core/node_modules/ajv'."
|
|
26
|
-
this.jsonSchema =
|
|
23
|
+
this.jsonSchema = dbfyprDisplayCasesJSONSchema;
|
|
27
24
|
this.moduleConfigApiItem = "displayCases";
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
27
|
+
DBFYPRDisplayCasesDataSourceFactory = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject(CoreToken.SimpleConfig)),
|
|
34
30
|
__metadata("design:paramtypes", [Object])
|
|
35
31
|
], DBFYPRDisplayCasesDataSourceFactory);
|
|
32
|
+
export { DBFYPRDisplayCasesDataSourceFactory };
|
|
36
33
|
//# sourceMappingURL=DBFYPRDisplayCasesDataSourceFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DBFYPRDisplayCasesDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DBFYPRDisplayCasesDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRDisplayCasesDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAG9F,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAGhF,IAAM,mCAAmC,GAAzC,MAAM,mCAAoC,SAAQ,+BAAmD;IAOxG,YAA4C,MAAqB;QAC7D,KAAK,CAAC,MAAM,CAAC,CAAC;QAPU,mBAAc,GAAG,8BAA8B,CAAC;QAC5E,iEAAiE;QACjE,+GAA+G;QACnF,eAAU,GAAW,4BAA4B,CAAC;QAClD,wBAAmB,GAAG,cAAc,CAAC;IAIjE,CAAC;CACJ,CAAA;AAVY,mCAAmC;IAD/C,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;;GAPlC,mCAAmC,CAU/C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDBFYPRInformationPanel } from "
|
|
2
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
3
|
-
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory";
|
|
1
|
+
import type { IDBFYPRInformationPanel } from "#sch/data-sources/interfaces/IDBFYPRInformationPanel";
|
|
2
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
3
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
4
4
|
export declare class DBFYPRInformationPanelsDataSourceFactory extends AbstractDBFYPRDataSourceFactory<IDBFYPRInformationPanel> {
|
|
5
5
|
protected readonly dataSourceName = "DBFYPRInformationPanelsDataSource";
|
|
6
6
|
protected readonly jsonSchema: object;
|
|
@@ -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,24 @@ 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
|
-
const AbstractDBFYPRDataSourceFactory_1 = require("./AbstractDBFYPRDataSourceFactory");
|
|
20
|
-
let DBFYPRInformationPanelsDataSourceFactory = class DBFYPRInformationPanelsDataSourceFactory extends AbstractDBFYPRDataSourceFactory_1.AbstractDBFYPRDataSourceFactory {
|
|
13
|
+
import { dbfyprInformationPanelsJSONSchema } from "#sch/data-sources/DBFYPRInformationPanelsJSONSchema";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
16
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
17
|
+
let DBFYPRInformationPanelsDataSourceFactory = class DBFYPRInformationPanelsDataSourceFactory extends AbstractDBFYPRDataSourceFactory {
|
|
21
18
|
constructor(config) {
|
|
22
19
|
super(config);
|
|
23
20
|
this.dataSourceName = "DBFYPRInformationPanelsDataSource";
|
|
24
21
|
// Without explicit object type, the following type error occurs:
|
|
25
22
|
// "The inferred type of 'jsonSchema' cannot be named without a reference to '@golemio/core/node_modules/ajv'."
|
|
26
|
-
this.jsonSchema =
|
|
23
|
+
this.jsonSchema = dbfyprInformationPanelsJSONSchema;
|
|
27
24
|
this.moduleConfigApiItem = "informationPanels";
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
27
|
+
DBFYPRInformationPanelsDataSourceFactory = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject(CoreToken.SimpleConfig)),
|
|
34
30
|
__metadata("design:paramtypes", [Object])
|
|
35
31
|
], DBFYPRInformationPanelsDataSourceFactory);
|
|
32
|
+
export { DBFYPRInformationPanelsDataSourceFactory };
|
|
36
33
|
//# sourceMappingURL=DBFYPRInformationPanelsDataSourceFactory.js.map
|
package/dist/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DBFYPRInformationPanelsDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DBFYPRInformationPanelsDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRInformationPanelsDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,iCAAiC,EAAE,MAAM,qDAAqD,CAAC;AAGxG,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAGhF,IAAM,wCAAwC,GAA9C,MAAM,wCAAyC,SAAQ,+BAAwD;IAOlH,YAA4C,MAAqB;QAC7D,KAAK,CAAC,MAAM,CAAC,CAAC;QAPU,mBAAc,GAAG,mCAAmC,CAAC;QACjF,iEAAiE;QACjE,+GAA+G;QACnF,eAAU,GAAW,iCAAiC,CAAC;QACvD,wBAAmB,GAAG,mBAAmB,CAAC;IAItE,CAAC;CACJ,CAAA;AAVY,wCAAwC;IADpD,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;;GAPlC,wCAAwC,CAUpD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDBFYPRObelisk } from "
|
|
2
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
3
|
-
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory";
|
|
1
|
+
import type { IDBFYPRObelisk } from "#sch/data-sources/interfaces/IDBFYPRObelisk";
|
|
2
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
3
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
4
4
|
export declare class DBFYPRObelisksDataSourceFactory extends AbstractDBFYPRDataSourceFactory<IDBFYPRObelisk> {
|
|
5
5
|
protected readonly dataSourceName = "DBFYPRObelisksDataSource";
|
|
6
6
|
protected readonly jsonSchema: object;
|
|
@@ -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,24 @@ 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
|
-
const AbstractDBFYPRDataSourceFactory_1 = require("./AbstractDBFYPRDataSourceFactory");
|
|
20
|
-
let DBFYPRObelisksDataSourceFactory = class DBFYPRObelisksDataSourceFactory extends AbstractDBFYPRDataSourceFactory_1.AbstractDBFYPRDataSourceFactory {
|
|
13
|
+
import { dbfyprObelisksJSONSchema } from "#sch/data-sources/DBFYPRObelisksJSONSchema";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
16
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
17
|
+
let DBFYPRObelisksDataSourceFactory = class DBFYPRObelisksDataSourceFactory extends AbstractDBFYPRDataSourceFactory {
|
|
21
18
|
constructor(config) {
|
|
22
19
|
super(config);
|
|
23
20
|
this.dataSourceName = "DBFYPRObelisksDataSource";
|
|
24
21
|
// Without explicit object type, the following type error occurs:
|
|
25
22
|
// "The inferred type of 'jsonSchema' cannot be named without a reference to '@golemio/core/node_modules/ajv'."
|
|
26
|
-
this.jsonSchema =
|
|
23
|
+
this.jsonSchema = dbfyprObelisksJSONSchema;
|
|
27
24
|
this.moduleConfigApiItem = "obelisks";
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
27
|
+
DBFYPRObelisksDataSourceFactory = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject(CoreToken.SimpleConfig)),
|
|
34
30
|
__metadata("design:paramtypes", [Object])
|
|
35
31
|
], DBFYPRObelisksDataSourceFactory);
|
|
32
|
+
export { DBFYPRObelisksDataSourceFactory };
|
|
36
33
|
//# sourceMappingURL=DBFYPRObelisksDataSourceFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DBFYPRObelisksDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DBFYPRObelisksDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRObelisksDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAGtF,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAGhF,IAAM,+BAA+B,GAArC,MAAM,+BAAgC,SAAQ,+BAA+C;IAOhG,YAA4C,MAAqB;QAC7D,KAAK,CAAC,MAAM,CAAC,CAAC;QAPU,mBAAc,GAAG,0BAA0B,CAAC;QACxE,iEAAiE;QACjE,+GAA+G;QACnF,eAAU,GAAW,wBAAwB,CAAC;QAC9C,wBAAmB,GAAG,UAAU,CAAC;IAI7D,CAAC;CACJ,CAAA;AAVY,+BAA+B;IAD3C,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;;GAPlC,+BAA+B,CAU3C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDBFYPRSignpost } from "
|
|
2
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
3
|
-
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory";
|
|
1
|
+
import type { IDBFYPRSignpost } from "#sch/data-sources/interfaces/IDBFYPRSignpost";
|
|
2
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
3
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
4
4
|
export declare class DBFYPRSignpostsDataSourceFactory extends AbstractDBFYPRDataSourceFactory<IDBFYPRSignpost> {
|
|
5
5
|
protected readonly dataSourceName = "DBFYPRSignpostsDataSource";
|
|
6
6
|
protected readonly jsonSchema: object;
|
|
@@ -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,24 @@ 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
|
-
const AbstractDBFYPRDataSourceFactory_1 = require("./AbstractDBFYPRDataSourceFactory");
|
|
20
|
-
let DBFYPRSignpostsDataSourceFactory = class DBFYPRSignpostsDataSourceFactory extends AbstractDBFYPRDataSourceFactory_1.AbstractDBFYPRDataSourceFactory {
|
|
13
|
+
import { dbfyprSignpostsJSONSchema } from "#sch/data-sources/DBFYPRSignpostsJSONSchema";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
16
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
17
|
+
let DBFYPRSignpostsDataSourceFactory = class DBFYPRSignpostsDataSourceFactory extends AbstractDBFYPRDataSourceFactory {
|
|
21
18
|
constructor(config) {
|
|
22
19
|
super(config);
|
|
23
20
|
this.dataSourceName = "DBFYPRSignpostsDataSource";
|
|
24
21
|
// Without explicit object type, the following type error occurs:
|
|
25
22
|
// "The inferred type of 'jsonSchema' cannot be named without a reference to '@golemio/core/node_modules/ajv'."
|
|
26
|
-
this.jsonSchema =
|
|
23
|
+
this.jsonSchema = dbfyprSignpostsJSONSchema;
|
|
27
24
|
this.moduleConfigApiItem = "signposts";
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
27
|
+
DBFYPRSignpostsDataSourceFactory = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject(CoreToken.SimpleConfig)),
|
|
34
30
|
__metadata("design:paramtypes", [Object])
|
|
35
31
|
], DBFYPRSignpostsDataSourceFactory);
|
|
32
|
+
export { DBFYPRSignpostsDataSourceFactory };
|
|
36
33
|
//# sourceMappingURL=DBFYPRSignpostsDataSourceFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DBFYPRSignpostsDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DBFYPRSignpostsDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRSignpostsDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,6CAA6C,CAAC;AAGxF,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAGhF,IAAM,gCAAgC,GAAtC,MAAM,gCAAiC,SAAQ,+BAAgD;IAOlG,YAA4C,MAAqB;QAC7D,KAAK,CAAC,MAAM,CAAC,CAAC;QAPU,mBAAc,GAAG,2BAA2B,CAAC;QACzE,iEAAiE;QACjE,+GAA+G;QACnF,eAAU,GAAW,yBAAyB,CAAC;QAC/C,wBAAmB,GAAG,WAAW,CAAC;IAI9D,CAAC;CACJ,CAAA;AAVY,gCAAgC;IAD5C,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;;GAPlC,gCAAgC,CAU5C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDBFYPRTotem } from "
|
|
2
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
3
|
-
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory";
|
|
1
|
+
import type { IDBFYPRTotem } from "#sch/data-sources/interfaces/IDBFYPRTotem";
|
|
2
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
3
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
4
4
|
export declare class DBFYPRTotemsDataSourceFactory extends AbstractDBFYPRDataSourceFactory<IDBFYPRTotem> {
|
|
5
5
|
protected readonly dataSourceName = "DBFYPRTotemsDataSource";
|
|
6
6
|
protected readonly jsonSchema: object;
|
|
@@ -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,24 @@ 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
|
-
const AbstractDBFYPRDataSourceFactory_1 = require("./AbstractDBFYPRDataSourceFactory");
|
|
20
|
-
let DBFYPRTotemsDataSourceFactory = class DBFYPRTotemsDataSourceFactory extends AbstractDBFYPRDataSourceFactory_1.AbstractDBFYPRDataSourceFactory {
|
|
13
|
+
import { dbfyprTotemsJSONSchema } from "#sch/data-sources/DBFYPRTotemsJSONSchema";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
16
|
+
import { AbstractDBFYPRDataSourceFactory } from "./AbstractDBFYPRDataSourceFactory.js";
|
|
17
|
+
let DBFYPRTotemsDataSourceFactory = class DBFYPRTotemsDataSourceFactory extends AbstractDBFYPRDataSourceFactory {
|
|
21
18
|
constructor(config) {
|
|
22
19
|
super(config);
|
|
23
20
|
this.dataSourceName = "DBFYPRTotemsDataSource";
|
|
24
21
|
// Without explicit object type, the following type error occurs:
|
|
25
22
|
// "The inferred type of 'jsonSchema' cannot be named without a reference to '@golemio/core/node_modules/ajv'."
|
|
26
|
-
this.jsonSchema =
|
|
23
|
+
this.jsonSchema = dbfyprTotemsJSONSchema;
|
|
27
24
|
this.moduleConfigApiItem = "totems";
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
(0,
|
|
33
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
27
|
+
DBFYPRTotemsDataSourceFactory = __decorate([
|
|
28
|
+
injectable(),
|
|
29
|
+
__param(0, inject(CoreToken.SimpleConfig)),
|
|
34
30
|
__metadata("design:paramtypes", [Object])
|
|
35
31
|
], DBFYPRTotemsDataSourceFactory);
|
|
32
|
+
export { DBFYPRTotemsDataSourceFactory };
|
|
36
33
|
//# sourceMappingURL=DBFYPRTotemsDataSourceFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DBFYPRTotemsDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DBFYPRTotemsDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DBFYPRTotemsDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAGlF,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAGhF,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,+BAA6C;IAO5F,YAA4C,MAAqB;QAC7D,KAAK,CAAC,MAAM,CAAC,CAAC;QAPU,mBAAc,GAAG,wBAAwB,CAAC;QACtE,iEAAiE;QACjE,+GAA+G;QACnF,eAAU,GAAW,sBAAsB,CAAC;QAC5C,wBAAmB,GAAG,QAAQ,CAAC;IAI3D,CAAC;CACJ,CAAA;AAVY,6BAA6B;IADzC,UAAU,EAAE;IAQI,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;;GAPlC,6BAA6B,CAUzC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { IDCIPStatusOverview } from "
|
|
2
|
-
import { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig";
|
|
3
|
-
import { IDataSource } from "@golemio/core/dist/integration-engine";
|
|
1
|
+
import type { IDCIPStatusOverview } from "#sch/data-sources/interfaces/IDCIPStatusOverview";
|
|
2
|
+
import type { ISimpleConfig } from "@golemio/core/dist/helpers/configuration/ISimpleConfig.js";
|
|
3
|
+
import type { IDataSource } from "@golemio/core/dist/integration-engine/index.js";
|
|
4
4
|
export declare class DCIPStatusOverviewDataSourceFactory {
|
|
5
5
|
private readonly config;
|
|
6
6
|
constructor(config: ISimpleConfig);
|
|
@@ -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,14 +10,13 @@ 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
|
-
const tsyringe_1 = require("@golemio/core/dist/shared/tsyringe");
|
|
13
|
+
import { dcipStatusOverviewJSONSchema } from "#sch/data-sources/DCIPStatusOverviewJSONSchema";
|
|
14
|
+
import { CoreToken } from "@golemio/core/dist/helpers/ioc/CoreToken.js";
|
|
15
|
+
import { DataSource, JSONDataTypeStrategy } from "@golemio/core/dist/integration-engine/index.js";
|
|
16
|
+
import { HTTPFetchProtocolStrategy } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy.js";
|
|
17
|
+
import GolemioValidator from "@golemio/core/dist/shared/golemio-validator.js";
|
|
18
|
+
import { inject, injectable } from "@golemio/core/dist/shared/tsyringe.js";
|
|
19
|
+
const { JSONSchemaValidator } = GolemioValidator;
|
|
22
20
|
let DCIPStatusOverviewDataSourceFactory = class DCIPStatusOverviewDataSourceFactory {
|
|
23
21
|
constructor(config) {
|
|
24
22
|
this.config = config;
|
|
@@ -28,18 +26,18 @@ let DCIPStatusOverviewDataSourceFactory = class DCIPStatusOverviewDataSourceFact
|
|
|
28
26
|
const urlPath = this.config.getValue("module.fypr.dcipApi.statusOverviewPath", "/api/v1/status-overview");
|
|
29
27
|
const timeoutInSeconds = this.config.getValue("module.fypr.dcipApi.clientTimeoutInSeconds", 20);
|
|
30
28
|
const apiKey = this.config.getValue("module.fypr.dcipApi.apiKey", "");
|
|
31
|
-
return new
|
|
29
|
+
return new DataSource("DCIPStatusOverviewDataSource", new HTTPFetchProtocolStrategy({
|
|
32
30
|
method: "GET",
|
|
33
31
|
url: new URL(urlPath, baseUrl).toString(),
|
|
34
32
|
headers: { "X-Api-Key": apiKey },
|
|
35
33
|
timeoutInSeconds,
|
|
36
|
-
}), new
|
|
34
|
+
}), new JSONDataTypeStrategy({ resultsPath: "" }), new JSONSchemaValidator("DCIPStatusOverviewValidator", dcipStatusOverviewJSONSchema));
|
|
37
35
|
}
|
|
38
36
|
};
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
(0,
|
|
42
|
-
__param(0, (0, tsyringe_1.inject)(CoreToken_1.CoreToken.SimpleConfig)),
|
|
37
|
+
DCIPStatusOverviewDataSourceFactory = __decorate([
|
|
38
|
+
injectable(),
|
|
39
|
+
__param(0, inject(CoreToken.SimpleConfig)),
|
|
43
40
|
__metadata("design:paramtypes", [Object])
|
|
44
41
|
], DCIPStatusOverviewDataSourceFactory);
|
|
42
|
+
export { DCIPStatusOverviewDataSourceFactory };
|
|
45
43
|
//# sourceMappingURL=DCIPStatusOverviewDataSourceFactory.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DCIPStatusOverviewDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DCIPStatusOverviewDataSourceFactory.js","sourceRoot":"","sources":["../../../src/integration-engine/data-sources/DCIPStatusOverviewDataSourceFactory.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,gDAAgD,CAAC;AAG9F,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAElG,OAAO,EAAE,yBAAyB,EAAE,MAAM,kGAAkG,CAAC;AAC7I,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAE3E,MAAM,EAAE,mBAAmB,EAAE,GAAG,gBAAgB,CAAC;AAG1C,IAAM,mCAAmC,GAAzC,MAAM,mCAAmC;IAC5C,YAA6D,MAAqB;QAArB,WAAM,GAAN,MAAM,CAAe;IAAG,CAAC;IAE/E,aAAa;QAChB,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,6BAA6B,CAAC,CAAC;QAC5E,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,wCAAwC,EAAE,yBAAyB,CAAC,CAAC;QAClH,MAAM,gBAAgB,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,4CAA4C,EAAE,EAAE,CAAW,CAAC;QAClH,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAS,4BAA4B,EAAE,EAAE,CAAW,CAAC;QAExF,OAAO,IAAI,UAAU,CACjB,8BAA8B,EAC9B,IAAI,yBAAyB,CAAC;YAC1B,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,IAAI,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE;YACzC,OAAO,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE;YAChC,gBAAgB;SACnB,CAAC,EACF,IAAI,oBAAoB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,EAC7C,IAAI,mBAAmB,CAAC,6BAA6B,EAAE,4BAA4B,CAAC,CACvF,CAAC;IACN,CAAC;CACJ,CAAA;AArBY,mCAAmC;IAD/C,UAAU,EAAE;IAEI,WAAA,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,CAAA;;GADlC,mCAAmC,CAqB/C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HTTPFetchProtocolStrategy } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy";
|
|
2
|
-
import { IHTTPFetchSettings } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/interfaces/IHTTPFetchSettings";
|
|
3
|
-
import { IHTTPProtocolStrategyResult } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/interfaces/IHTTPProtocolStrategyResult";
|
|
1
|
+
import { HTTPFetchProtocolStrategy } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/HTTPFetchProtocolStrategy.js";
|
|
2
|
+
import type { IHTTPFetchSettings } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/interfaces/IHTTPFetchSettings.js";
|
|
3
|
+
import type { IHTTPProtocolStrategyResult } from "@golemio/core/dist/integration-engine/datasources/protocol-strategy/interfaces/IHTTPProtocolStrategyResult.js";
|
|
4
4
|
interface IPaginatedStrapiResponse<T> {
|
|
5
5
|
data: T[];
|
|
6
6
|
meta: {
|