@dative-gpi/foundation-core-services 1.0.188 → 1.0.189

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.
@@ -44,4 +44,5 @@ export * from "./useSubgroupingDeviceOrganisations";
44
44
  export * from "./useSubgroupings"
45
45
  export * from "./useUserOrganisations";
46
46
  export * from "./useUserOrganisationTables";
47
+ export * from "./useV2Data";
47
48
  export * from "./useWidgetTemplates";
@@ -0,0 +1,13 @@
1
+ import type { AxiosInstance } from "axios";
2
+ import { ServiceFactory } from "@dative-gpi/bones-ui/core";
3
+ import { DATA_V2_RELOAD_URL } from "@dative-gpi/foundation-core-services/config/urls";
4
+ import type { DataFiltersDTO, DataSerieDTO } from "@dative-gpi/foundation-core-domain/models";
5
+
6
+
7
+ const DataServiceFactory = ServiceFactory.addCustom("getMany",(axios: AxiosInstance, filters: DataFiltersDTO) => {
8
+ return axios.post(DATA_V2_RELOAD_URL, filters);
9
+ },
10
+ (dtos: DataSerieDTO[]) => dtos
11
+ );
12
+
13
+ export const getManyDatas = DataServiceFactory.getMany;
@@ -0,0 +1 @@
1
+ export const DATA_V2_RELOAD_URL = "/api/data/v2/data";
@@ -13,6 +13,7 @@ export * from "./customPropertyValues";
13
13
  export * from "./dashboardOrganisations";
14
14
  export * from "./dashboardOrganisationTypes";
15
15
  export * from "./dashboards";
16
+ export * from "./data";
16
17
  export * from "./dataCategories";
17
18
  export * from "./dataDefinitions";
18
19
  export * from "./deviceConnectivities";
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
5
5
  },
6
6
  "sideEffects": false,
7
- "version": "1.0.188",
7
+ "version": "1.0.189",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -13,7 +13,7 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@dative-gpi/foundation-core-domain": "1.0.188"
16
+ "@dative-gpi/foundation-core-domain": "1.0.189"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -21,5 +21,5 @@
21
21
  "vue": "^3.4.38",
22
22
  "vue-router": "^4.3.0"
23
23
  },
24
- "gitHead": "5d77493228261fb2a57c5a2e233152715b9322e3"
24
+ "gitHead": "d8aba8b5dcb22f199fd7402816743f462d698299"
25
25
  }