@dative-gpi/foundation-core-services 1.0.157 → 1.0.158-groupings
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/composables/services/index.ts +3 -0
- package/composables/services/useGroupings.ts +23 -0
- package/composables/services/useSubGroupingDeviceOrganisations.ts +16 -0
- package/composables/services/useSubGroupings.ts +18 -0
- package/config/urls/groupings.ts +4 -0
- package/config/urls/index.ts +3 -0
- package/config/urls/subGroupingDeviceOrganisations.ts +4 -0
- package/config/urls/subGroupings.ts +4 -0
- package/package.json +3 -3
|
@@ -23,6 +23,7 @@ export * from "./useDeviceExplorerElements";
|
|
|
23
23
|
export * from "./useDeviceOrganisations";
|
|
24
24
|
export * from "./useDeviceStatuses";
|
|
25
25
|
export * from "./useFolders";
|
|
26
|
+
export * from "./useGroupings";
|
|
26
27
|
export * from "./useGroups";
|
|
27
28
|
export * from "./useLocations";
|
|
28
29
|
export * from "./useManufacturers";
|
|
@@ -38,6 +39,8 @@ export * from "./useScenarioOrganisationTypes";
|
|
|
38
39
|
export * from "./useServiceAccountOrganisationAuthTokens";
|
|
39
40
|
export * from "./useServiceAccountOrganisations";
|
|
40
41
|
export * from "./useServiceAccountRoleOrganisations";
|
|
42
|
+
export * from "./useSubGroupingDeviceOrganisations";
|
|
43
|
+
export * from "./useSubGroupings"
|
|
41
44
|
export * from "./useUserOrganisations";
|
|
42
45
|
export * from "./useUserOrganisationTables";
|
|
43
46
|
export * from "./useWidgetTemplates";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { GroupingDetails, type GroupingDetailsDTO, type GroupingFilters, GroupingInfos, type GroupingInfosDTO, type CreateGroupingDTO, type UpdateGroupingDTO } from "@dative-gpi/foundation-core-domain/models/groupings";
|
|
2
|
+
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
|
+
import { GROUPINGS_URL, GROUPING_URL } from "@dative-gpi/foundation-core-services/config/urls";
|
|
4
|
+
|
|
5
|
+
const GroupingServiceFactory = new ServiceFactory<GroupingDetailsDTO, GroupingDetails>(
|
|
6
|
+
"grouping",
|
|
7
|
+
GroupingDetails
|
|
8
|
+
).create(factory =>
|
|
9
|
+
factory.build(
|
|
10
|
+
factory.addGet(GROUPING_URL),
|
|
11
|
+
factory.addGetMany<GroupingInfosDTO, GroupingInfos, GroupingFilters>(GROUPINGS_URL, GroupingInfos),
|
|
12
|
+
factory.addCreate<CreateGroupingDTO>(GROUPINGS_URL),
|
|
13
|
+
factory.addUpdate<UpdateGroupingDTO>(GROUPING_URL),
|
|
14
|
+
factory.addRemove(GROUPING_URL),
|
|
15
|
+
factory.addNotify()
|
|
16
|
+
)
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
export const useGrouping = ComposableFactory.get(GroupingServiceFactory);
|
|
20
|
+
export const useGroupings = ComposableFactory.getMany(GroupingServiceFactory);
|
|
21
|
+
export const useCreateGrouping = ComposableFactory.create(GroupingServiceFactory);
|
|
22
|
+
export const useUpdateGrouping = ComposableFactory.update(GroupingServiceFactory);
|
|
23
|
+
export const useRemoveGrouping = ComposableFactory.remove(GroupingServiceFactory);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SubGroupingDeviceOrganisationDetails, type SubGroupingDeviceOrganisationDetailsDTO, type SubGroupingDeviceOrganisationFilters, SubGroupingDeviceOrganisationInfos, type SubGroupingDeviceOrganisationInfosDTO, type CreateSubGroupingDeviceOrganisationDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
|
+
import { SUB_GROUPING_DEVICE_ORGANISATIONS_URL, SUB_GROUPING_DEVICE_ORGANISATION_URL } from "../../config/urls";
|
|
4
|
+
|
|
5
|
+
const SubGroupingDeviceOrganisationServiceFactory = new ServiceFactory<SubGroupingDeviceOrganisationDetailsDTO, SubGroupingDeviceOrganisationDetails>("subGroupingDeviceOrganisation", SubGroupingDeviceOrganisationDetails).create(factory => factory.build(
|
|
6
|
+
factory.addGet(SUB_GROUPING_DEVICE_ORGANISATION_URL),
|
|
7
|
+
factory.addGetMany<SubGroupingDeviceOrganisationInfosDTO, SubGroupingDeviceOrganisationInfos, SubGroupingDeviceOrganisationFilters>(SUB_GROUPING_DEVICE_ORGANISATIONS_URL, SubGroupingDeviceOrganisationInfos),
|
|
8
|
+
factory.addCreate<CreateSubGroupingDeviceOrganisationDTO>(SUB_GROUPING_DEVICE_ORGANISATIONS_URL),
|
|
9
|
+
factory.addRemove(SUB_GROUPING_DEVICE_ORGANISATION_URL),
|
|
10
|
+
factory.addNotify()
|
|
11
|
+
));
|
|
12
|
+
|
|
13
|
+
export const useSubGroupingDeviceOrganisation = ComposableFactory.get(SubGroupingDeviceOrganisationServiceFactory);
|
|
14
|
+
export const useSubGroupingDeviceOrganisations = ComposableFactory.getMany(SubGroupingDeviceOrganisationServiceFactory);
|
|
15
|
+
export const useCreateSubGroupingDeviceOrganisation = ComposableFactory.create(SubGroupingDeviceOrganisationServiceFactory);
|
|
16
|
+
export const useRemoveSubGroupingDeviceOrganisation = ComposableFactory.remove(SubGroupingDeviceOrganisationServiceFactory);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SubGroupingDetails, type SubGroupingDetailsDTO, type SubGroupingFilters, SubGroupingInfos, type SubGroupingInfosDTO, type CreateSubGroupingDTO, type UpdateSubGroupingDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
|
+
import { SUB_GROUPINGS_URL, SUB_GROUPING_URL } from "../../config/urls";
|
|
4
|
+
|
|
5
|
+
const SubGroupingServiceFactory = new ServiceFactory<SubGroupingDetailsDTO, SubGroupingDetails>("subGrouping", SubGroupingDetails).create(factory => factory.build(
|
|
6
|
+
factory.addGet(SUB_GROUPING_URL),
|
|
7
|
+
factory.addGetMany<SubGroupingInfosDTO, SubGroupingInfos, SubGroupingFilters>(SUB_GROUPINGS_URL, SubGroupingInfos),
|
|
8
|
+
factory.addCreate<CreateSubGroupingDTO>(SUB_GROUPINGS_URL),
|
|
9
|
+
factory.addUpdate<UpdateSubGroupingDTO>(SUB_GROUPING_URL),
|
|
10
|
+
factory.addRemove(SUB_GROUPING_URL),
|
|
11
|
+
factory.addNotify()
|
|
12
|
+
));
|
|
13
|
+
|
|
14
|
+
export const useSubGrouping = ComposableFactory.get(SubGroupingServiceFactory);
|
|
15
|
+
export const useSubGroupings = ComposableFactory.getMany(SubGroupingServiceFactory);
|
|
16
|
+
export const useCreateSubGrouping = ComposableFactory.create(SubGroupingServiceFactory);
|
|
17
|
+
export const useUpdateSubGrouping = ComposableFactory.update(SubGroupingServiceFactory);
|
|
18
|
+
export const useRemoveSubGrouping = ComposableFactory.remove(SubGroupingServiceFactory);
|
package/config/urls/index.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from "./deviceExplorerElements";
|
|
|
22
22
|
export * from "./deviceStatuses";
|
|
23
23
|
export * from "./folders";
|
|
24
24
|
export * from "./groups";
|
|
25
|
+
export * from "./groupings";
|
|
25
26
|
export * from "./locations";
|
|
26
27
|
export * from "./manufacturers";
|
|
27
28
|
export * from "./models";
|
|
@@ -37,6 +38,8 @@ export * from "./scenarioOrganisationTypes";
|
|
|
37
38
|
export * from "./serviceAccountOrganisationAuthTokens";
|
|
38
39
|
export * from "./serviceAccountOrganisations";
|
|
39
40
|
export * from "./serviceAccountRoleOrganisations";
|
|
41
|
+
export * from "./subGroupingDeviceOrganisations";
|
|
42
|
+
export * from "./subGroupings";
|
|
40
43
|
export * from "./userOrganisations";
|
|
41
44
|
export * from "./userOrganisationTables";
|
|
42
45
|
export * from "./widgetTemplates";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CORE_URL } from "./base";
|
|
2
|
+
|
|
3
|
+
export const SUB_GROUPING_DEVICE_ORGANISATIONS_URL = () => `${CORE_URL()}/sub-grouping-device-organisations`;
|
|
4
|
+
export const SUB_GROUPING_DEVICE_ORGANISATION_URL = (id: string) => `${SUB_GROUPING_DEVICE_ORGANISATIONS_URL()}/${encodeURIComponent(id)}`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.158-groupings",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-core-domain": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-core-domain": "1.0.158-groupings"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"vue": "^3.4.38",
|
|
19
19
|
"vue-router": "^4.3.0"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "563e78c4a0b3e8f73fdf8576e9d8bc0b626bc095"
|
|
22
22
|
}
|