@dative-gpi/foundation-core-services 1.0.65 → 1.0.67-map-edit

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.
@@ -18,6 +18,8 @@ export * from "./useDataCategories";
18
18
  export * from "./useDataDefinitions";
19
19
  export * from "./useDataTables";
20
20
  export * from "./useDeviceConnectivities";
21
+ export * from "./useDeviceDataDefinitions";
22
+ export * from "./useDeviceExplorerElements";
21
23
  export * from "./useDeviceOrganisations";
22
24
  export * from "./useDeviceStatuses";
23
25
  export * from "./useFolders";
@@ -28,6 +30,7 @@ export * from "./useModels";
28
30
  export * from "./useOrganisations";
29
31
  export * from "./useOrganisationTypes";
30
32
  export * from "./usePermissionCategories";
33
+ export * from "./usePlaylists";
31
34
  export * from "./useRoleOrganisations";
32
35
  export * from "./useRoleOrganisationTypes";
33
36
  export * from "./useScenarioDeviceOrganisations";
@@ -16,6 +16,7 @@ const AlertServiceFactory = new ServiceFactory<AlertDetailsDTO, AlertDetails>("a
16
16
  ...ServiceFactory.addCustom("acknowledge", (axios, alertId: string) => axios.patch(ALERT_URL(alertId)), (dto: AlertDetailsDTO) => {
17
17
  const result = new AlertDetails(dto);
18
18
  notifyService.notify("update", result);
19
+ notifyService.notify("reset");
19
20
  return result;
20
21
  })
21
22
  }))
@@ -1,14 +1,25 @@
1
- import { ConnectivityScenarioDetails, type ConnectivityScenarioDetailsDTO, type ConnectivityScenarioFilters, ConnectivityScenarioInfos, type ConnectivityScenarioInfosDTO, type CreateConnectivityScenarioDTO, type UpdateConnectivityScenarioDTO } from "@dative-gpi/foundation-core-domain/models";
1
+ import { ConnectivityScenarioDetails, type ConnectivityScenarioDetailsDTO, type ConnectivityScenarioFilters, ConnectivityScenarioInfos, type ConnectivityScenarioInfosDTO, type UpsertConnectivityScenarioDTO, type UpdateConnectivityScenarioDTO } from "@dative-gpi/foundation-core-domain/models";
2
2
  import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
3
3
 
4
4
  import { CONNECTIVITY_SCENARIOS_URL, CONNECTIVITY_SCENARIO_URL } from "../../config";
5
5
 
6
- const ConnectivityScenarioServiceFactory = new ServiceFactory<ConnectivityScenarioDetailsDTO, ConnectivityScenarioDetails>("ConnectivityScenario", ConnectivityScenarioDetails)
7
- .createComplete<ConnectivityScenarioInfos, ConnectivityScenarioInfosDTO, CreateConnectivityScenarioDTO, UpdateConnectivityScenarioDTO, ConnectivityScenarioFilters>(CONNECTIVITY_SCENARIOS_URL, CONNECTIVITY_SCENARIO_URL, ConnectivityScenarioInfos);
6
+
7
+ const ConnectivityScenarioServiceFactory = new ServiceFactory<ConnectivityScenarioDetailsDTO, ConnectivityScenarioDetails>("ConnectivityScenario", ConnectivityScenarioDetails).create(factory => factory.build(
8
+ factory.addGet(CONNECTIVITY_SCENARIO_URL),
9
+ factory.addGetMany<ConnectivityScenarioInfosDTO, ConnectivityScenarioInfos, ConnectivityScenarioFilters>(CONNECTIVITY_SCENARIOS_URL, ConnectivityScenarioInfos),
10
+ factory.addUpdate<UpdateConnectivityScenarioDTO>(CONNECTIVITY_SCENARIO_URL),
11
+ factory.addRemove(CONNECTIVITY_SCENARIO_URL),
12
+ factory.addNotify(notifyService => ({
13
+ ...ServiceFactory.addCustom("upsert", (axios, payload: UpsertConnectivityScenarioDTO) => axios.post(CONNECTIVITY_SCENARIOS_URL(), payload), () => {
14
+ notifyService.notify("reset");
15
+ })
16
+ }))
17
+ ));
18
+
8
19
 
9
20
  export const useConnectivityScenario = ComposableFactory.get(ConnectivityScenarioServiceFactory);
10
21
  export const useConnectivityScenarios = ComposableFactory.getMany(ConnectivityScenarioServiceFactory);
11
- export const useCreateConnectivityScenario = ComposableFactory.create(ConnectivityScenarioServiceFactory);
12
22
  export const useUpdateConnectivityScenario = ComposableFactory.update(ConnectivityScenarioServiceFactory);
13
23
  export const useRemoveConnectivityScenario = ComposableFactory.remove(ConnectivityScenarioServiceFactory);
24
+ export const useUpsertConnectivityScenario = ComposableFactory.custom(ConnectivityScenarioServiceFactory.upsert);
14
25
 
@@ -1,4 +1,5 @@
1
1
  import { ref, type Ref } from "vue";
2
+ import _ from "lodash";
2
3
 
3
4
  import { type UpdateUserOrganisationTableDTO, type UserOrganisationTableDetails } from "@dative-gpi/foundation-core-domain/models";
4
5
  import { type FSDataTable, type FSDataTableColumn } from "@dative-gpi/foundation-shared-components/models";
@@ -6,34 +7,34 @@ import { type FSDataTable, type FSDataTableColumn } from "@dative-gpi/foundation
6
7
  export const useDataTables = () => {
7
8
  const initialized = ref(false);
8
9
 
9
- const table = ref<FSDataTable>({
10
- headers: [],
11
- mode: "iterator",
12
- sortBy: null,
13
- rowsPerPage: 10,
14
- filters: {},
15
- page: 1
16
- });
10
+ const table = ref<FSDataTable | null>(null);
17
11
 
18
- const computeTable = ((headersOptions: { [key: string]: Partial<FSDataTableColumn> }) => ({
12
+ const computeTable = (
13
+ headersOptions: { [key: string]: Partial<FSDataTableColumn> },
14
+ defaultMode: "table" | "iterator" = "table",
15
+ extraHeaders: FSDataTableColumn[] = []
16
+ ) => ({
19
17
  ...table.value,
20
- headers: table.value.headers.map(header => ({
18
+ mode: table.value?.mode ?? defaultMode,
19
+ headers: _.sortBy(table.value?.headers.concat(extraHeaders.filter(e => !table.value?.headers.map(h => h.value).includes(e.value))), "index").map((header, i) => ({
21
20
  ...header,
21
+ index: i,
22
22
  fixedFilters: (header.value && headersOptions[header.value] && headersOptions[header.value].fixedFilters) || null,
23
23
  methodFilter: (header.value && headersOptions[header.value] && headersOptions[header.value].methodFilter) || null,
24
24
  methodFilterRaw: (header.value && headersOptions[header.value] && headersOptions[header.value].methodFilterRaw) || null,
25
25
  sort: (header.value && headersOptions[header.value] && headersOptions[header.value].sort) || null,
26
- sortRaw: (header.value && headersOptions[header.value] && headersOptions[header.value].sortRaw) || null ,
27
- innerValue: (header.value && headersOptions[header.value] && headersOptions[header.value].innerValue) || null
26
+ sortRaw: (header.value && headersOptions[header.value] && headersOptions[header.value].sortRaw) || null,
27
+ innerValue: (header.value && headersOptions[header.value] && headersOptions[header.value].innerValue) || null
28
28
  }))
29
- }));
29
+ });
30
30
 
31
31
  const updateTable = (
32
32
  updateUserOrganisationTable: (id: string, payload: UpdateUserOrganisationTableDTO) => Promise<Ref<UserOrganisationTableDetails>>,
33
33
  setTable: (tableCode: string, value: FSDataTable) => void,
34
- tableCode: string
34
+ tableCode: string,
35
+ defaultMode: "table" | "iterator" = "table"
35
36
  ): void => {
36
- if (table.value) {
37
+ if (tableCode && table.value) {
37
38
  setTable(tableCode, table.value);
38
39
  updateUserOrganisationTable(tableCode, {
39
40
  columns: table.value.headers.map(column => ({
@@ -44,7 +45,7 @@ export const useDataTables = () => {
44
45
  rowsPerPage: table.value.rowsPerPage,
45
46
  sortByKey: table.value.sortBy?.key ?? null,
46
47
  sortByOrder: table.value.sortBy?.order ?? null,
47
- mode: table.value.mode
48
+ mode: table.value.mode ?? defaultMode
48
49
  });
49
50
  }
50
51
  };
@@ -52,12 +53,16 @@ export const useDataTables = () => {
52
53
  const onTableCodeChange = async (
53
54
  getUserOrganisationTable: (id: string) => Promise<Ref<UserOrganisationTableDetails | null>>,
54
55
  getTable: (tableCode: string) => FSDataTable | null,
55
- tableCode: string
56
+ tableCode: string | null,
57
+ defaultMode: "table" | "iterator" = "table"
56
58
  ): Promise<void> => {
59
+ let done = false;
57
60
  if (tableCode) {
58
61
  const composableTable = getTable(tableCode);
62
+
59
63
  if (composableTable) {
60
64
  table.value = composableTable;
65
+ done = true;
61
66
  }
62
67
  else {
63
68
  try {
@@ -69,11 +74,13 @@ export const useDataTables = () => {
69
74
  key: userOrganisationTable.value.sortByKey,
70
75
  order: userOrganisationTable.value.sortByOrder
71
76
  },
72
- mode: userOrganisationTable.value.mode,
77
+ mode: userOrganisationTable.value.mode ?? defaultMode,
73
78
  rowsPerPage: userOrganisationTable.value.rowsPerPage,
79
+ showFilters: false,
74
80
  filters: {},
75
81
  page: 1
76
82
  }
83
+ done = true;
77
84
  }
78
85
  }
79
86
  catch {
@@ -81,6 +88,17 @@ export const useDataTables = () => {
81
88
  }
82
89
  }
83
90
  }
91
+ if (!done) {
92
+ table.value = {
93
+ headers: [],
94
+ mode: null,
95
+ sortBy: null,
96
+ rowsPerPage: 10,
97
+ showFilters: false,
98
+ filters: {},
99
+ page: 1
100
+ };
101
+ }
84
102
  initialized.value = true;
85
103
  };
86
104
 
@@ -0,0 +1,11 @@
1
+ import { DeviceDataDefinitionInfos, type DeviceDataDefinitionInfosDTO, type DeviceDataDefinitionFilters } from "@dative-gpi/foundation-core-domain/models";
2
+ import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui";
3
+
4
+ import { DEVICE_DATA_DEFINITIONS_URL } from "../../config";
5
+
6
+ const DeviceDataDefinitionServiceFactory = new ServiceFactory<DeviceDataDefinitionInfosDTO, DeviceDataDefinitionInfos>("deviceDataDefinition", DeviceDataDefinitionInfos).create(factory => factory.build(
7
+ factory.addGetMany<DeviceDataDefinitionInfosDTO, DeviceDataDefinitionInfos, DeviceDataDefinitionFilters>(DEVICE_DATA_DEFINITIONS_URL, DeviceDataDefinitionInfos),
8
+ factory.addNotify()
9
+ ));
10
+
11
+ export const useDeviceDataDefinitions = ComposableFactory.getMany(DeviceDataDefinitionServiceFactory);
@@ -0,0 +1,97 @@
1
+ import { ref } from "vue";
2
+
3
+ import { DeviceExplorerElementDetails, type DeviceExplorerElementDetailsDTO, type DeviceExplorerElementFilters, DeviceExplorerElementInfos, type DeviceExplorerElementInfosDTO, type DeviceOrganisationDetails, type GroupDetails } from "@dative-gpi/foundation-core-domain/models";
4
+ import { type AddOrUpdateCallback, type DeleteCallback, type NotifyEvent, onCollectionChanged } from "@dative-gpi/bones-ui";
5
+ import { ServiceFactory } from "@dative-gpi/bones-ui/core";
6
+
7
+ import { DEVICE_EXPLORER_ELEMENTS_URL } from "../../config/urls";
8
+
9
+ import { useTrackDeviceConnectivity, useWatchDeviceConnectivity } from "./useDeviceConnectivities";
10
+ import { useTrackDeviceStatuses, useWatchDeviceStatuses } from "./useDeviceStatuses";
11
+ import { useSubscribeToDeviceOrganisations } from "./useDeviceOrganisations";
12
+ import { useSubscribeToGroups } from "./useGroups";
13
+
14
+ const DeviceExplorerElementServiceFactory = new ServiceFactory<DeviceExplorerElementDetailsDTO, DeviceExplorerElementDetails>("deviceExplorerElement", DeviceExplorerElementDetails).create(factory => factory.build(
15
+ factory.addGetMany<DeviceExplorerElementInfosDTO, DeviceExplorerElementInfos, DeviceExplorerElementFilters>(DEVICE_EXPLORER_ELEMENTS_URL, DeviceExplorerElementInfos),
16
+ factory.addNotify()
17
+ ));
18
+
19
+ export const useDeviceExplorerElements = () => {
20
+ const { watchMany: watchDevicesConnectivity } = useWatchDeviceConnectivity();
21
+ const { watchMany: watchDevicesStatuses } = useWatchDeviceStatuses();
22
+
23
+ const { track: trackDeviceConnectivity } = useTrackDeviceConnectivity();
24
+ const { track: trackDeviceStatuses } = useTrackDeviceStatuses();
25
+
26
+ const { subscribe: subscribeToDeviceOrganisations } = useSubscribeToDeviceOrganisations();
27
+ const { subscribe: subscribeToGroups } = useSubscribeToGroups();
28
+
29
+ const fetching = ref(false);
30
+ const entities = ref<DeviceExplorerElementInfos[]>([]);
31
+ const filters = ref<DeviceExplorerElementFilters>();
32
+
33
+ const getMany = async (filter?: DeviceExplorerElementFilters) => {
34
+ fetching.value = true;
35
+ filters.value = filter;
36
+
37
+ const filterMethod = (el: DeviceExplorerElementInfos): boolean => {
38
+ if (!filters.value) {
39
+ return true;
40
+ }
41
+ if (!filters.value.search) {
42
+ return (filters.value.root && !el.parentId) || (!!filters.value.parentId && filters.value.parentId == el.parentId);
43
+ }
44
+
45
+ const fullText = `${el.label} ${el.code} ${el.tags.join(" ")}`;
46
+ return (!filters.value.parentId || el.path.some(p => p.id === filters.value!.parentId)) &&
47
+ (fullText.toLowerCase().includes(filters.value.search.toLowerCase()));
48
+ };
49
+
50
+ const onCollectionChangedCustom = onCollectionChanged(entities, filterMethod);
51
+
52
+ try {
53
+ entities.value = await DeviceExplorerElementServiceFactory.getMany(filters.value);
54
+
55
+ subscribeToDeviceOrganisations("all", (ev: NotifyEvent, el: DeviceOrganisationDetails | any) => {
56
+ switch(ev) {
57
+ case "add":
58
+ case "update":
59
+ (onCollectionChangedCustom as AddOrUpdateCallback<DeviceExplorerElementInfos>)(ev, DeviceExplorerElementInfos.fromDeviceOrganisation(el));
60
+ break;
61
+ case "delete":
62
+ (onCollectionChangedCustom as DeleteCallback)(ev, el);
63
+ break;
64
+ }
65
+ });
66
+
67
+ subscribeToGroups("all", (ev: NotifyEvent, el: GroupDetails | any) => {
68
+ switch(ev) {
69
+ case "add":
70
+ case "update":
71
+ (onCollectionChangedCustom as AddOrUpdateCallback<DeviceExplorerElementInfos>)(ev, DeviceExplorerElementInfos.fromGroup(el));
72
+ break;
73
+ case "delete":
74
+ (onCollectionChangedCustom as DeleteCallback)(ev, el);
75
+ break;
76
+ }
77
+ });
78
+
79
+ watchDevicesStatuses();
80
+ watchDevicesConnectivity();
81
+
82
+ for (const deviceExplorerElement of entities.value) {
83
+ trackDeviceStatuses(deviceExplorerElement.status!, s => deviceExplorerElement.status = s);
84
+ trackDeviceConnectivity(deviceExplorerElement.connectivity!, c => deviceExplorerElement.connectivity = c);
85
+ }
86
+ }
87
+ finally {
88
+ fetching.value = false;
89
+ }
90
+ }
91
+
92
+ return {
93
+ fetching,
94
+ getMany,
95
+ entities
96
+ }
97
+ };
@@ -24,7 +24,8 @@ const DeviceOrganisationServiceFactory = new ServiceFactory<DeviceOrganisationDe
24
24
  const result = new DeviceOrganisationDetails(dto);
25
25
  notifyService.notify("update", result);
26
26
  return result;
27
- })
27
+ }),
28
+ notifyReset: () => notifyService.notify("reset")
28
29
  }))
29
30
  ));
30
31
 
@@ -62,6 +63,10 @@ const trackDeviceOrganisations = () => {
62
63
  }
63
64
  }
64
65
 
66
+ export const useSubscribeToDeviceOrganisations = ComposableFactory.subscribe(DeviceOrganisationServiceFactory);
67
+
68
+ export const resetDeviceOrganisations = DeviceOrganisationServiceFactory.notifyReset;
69
+
65
70
  export const useDeviceOrganisation = ComposableFactory.get(DeviceOrganisationServiceFactory, trackDeviceOrganisation);
66
71
  export const useDeviceOrganisations = ComposableFactory.getMany(DeviceOrganisationServiceFactory, trackDeviceOrganisations);
67
72
  export const useCreateDeviceOrganisation = ComposableFactory.create(DeviceOrganisationServiceFactory, trackDeviceOrganisation);
@@ -18,6 +18,8 @@ const GroupServiceFactory = new ServiceFactory<GroupDetailsDTO, GroupDetails>("g
18
18
  }))
19
19
  ));
20
20
 
21
+ export const useSubscribeToGroups = ComposableFactory.subscribe(GroupServiceFactory);
22
+
21
23
  export const useGroup = ComposableFactory.get(GroupServiceFactory);
22
24
  export const useGroups = ComposableFactory.getMany(GroupServiceFactory);
23
25
  export const useCreateGroup = ComposableFactory.create(GroupServiceFactory);
@@ -3,11 +3,30 @@ import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
3
3
 
4
4
  import { LOCATIONS_URL, LOCATION_URL } from "../../config/urls";
5
5
 
6
+ import { resetDeviceOrganisations } from "./useDeviceOrganisations";
7
+
6
8
  const LocationServiceFactory = new ServiceFactory<LocationDetailsDTO, LocationDetails>("location", LocationDetails)
7
9
  .createComplete<LocationInfos, LocationInfosDTO, CreateLocationDTO, UpdateLocationDTO, LocationFilters>(LOCATIONS_URL, LOCATION_URL, LocationInfos);
8
10
 
11
+ const updateLocation = ComposableFactory.update(LocationServiceFactory);
12
+
9
13
  export const useLocation = ComposableFactory.get(LocationServiceFactory);
10
14
  export const useLocations = ComposableFactory.getMany(LocationServiceFactory);
11
15
  export const useCreateLocation = ComposableFactory.create(LocationServiceFactory);
12
- export const useUpdateLocation = ComposableFactory.update(LocationServiceFactory);
13
- export const useRemoveLocation = ComposableFactory.remove(LocationServiceFactory);
16
+ export const useRemoveLocation = ComposableFactory.remove(LocationServiceFactory);
17
+
18
+ export const useUpdateLocation = () => {
19
+ const { update, updated, updating } = updateLocation();
20
+
21
+ const actualUpdate = async (...params: Parameters<typeof update>) => {
22
+ const result = await update(...params);
23
+ resetDeviceOrganisations();
24
+ return result;
25
+ }
26
+
27
+ return {
28
+ update: actualUpdate,
29
+ updated,
30
+ updating
31
+ }
32
+ }
@@ -0,0 +1,13 @@
1
+ import { PlaylistDetails, type PlaylistDetailsDTO, type PlaylistFilters, PlaylistInfos, type PlaylistInfosDTO, type CreatePlaylistDTO, type UpdatePlaylistDTO } from "@dative-gpi/foundation-core-domain/models";
2
+ import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
3
+
4
+ import { PLAYLISTS_URL, PLAYLIST_URL } from "../../config/urls";
5
+
6
+ const PlaylistServiceFactory = new ServiceFactory<PlaylistDetailsDTO, PlaylistDetails>("playlist", PlaylistDetails)
7
+ .createComplete<PlaylistInfos, PlaylistInfosDTO, CreatePlaylistDTO, UpdatePlaylistDTO, PlaylistFilters>(PLAYLISTS_URL, PLAYLIST_URL, PlaylistInfos);
8
+
9
+ export const usePlaylist = ComposableFactory.get(PlaylistServiceFactory);
10
+ export const usePlaylists = ComposableFactory.getMany(PlaylistServiceFactory);
11
+ export const useCreatePlaylist = ComposableFactory.create(PlaylistServiceFactory);
12
+ export const useUpdatePlaylist = ComposableFactory.update(PlaylistServiceFactory);
13
+ export const useRemovePlaylist = ComposableFactory.remove(PlaylistServiceFactory);
@@ -3,12 +3,15 @@ import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
3
3
 
4
4
  import { SCENARIO_DEVICE_ORGANISATIONS_URL, SCENARIO_DEVICE_ORGANISATION_URL } from "../../config";
5
5
 
6
- const ScenarioDeviceOrganisationServiceFactory = new ServiceFactory<ScenarioDeviceOrganisationDetailsDTO, ScenarioDeviceOrganisationDetails>("scenarioDeviceOrganisation", ScenarioDeviceOrganisationDetails)
7
- .createComplete<ScenarioDeviceOrganisationInfos, ScenarioDeviceOrganisationInfosDTO, CreateScenarioDeviceOrganisationDTO, UpdateScenarioDeviceOrganisationDTO, ScenarioDeviceOrganisationFilters>(SCENARIO_DEVICE_ORGANISATIONS_URL, SCENARIO_DEVICE_ORGANISATION_URL, ScenarioDeviceOrganisationInfos);
8
-
9
- const ScenarioDeviceOrganisationServiceFactoryIncomplete = new ServiceFactory<ScenarioDeviceOrganisationInfosDTO, ScenarioDeviceOrganisationInfos>("notifications", ScenarioDeviceOrganisationDetails).create(factory => factory.build(
10
- factory.addNotify(() => ({
6
+ const ScenarioDeviceOrganisationServiceFactory = new ServiceFactory<ScenarioDeviceOrganisationDetailsDTO, ScenarioDeviceOrganisationDetails>("scenarioDeviceOrganisation", ScenarioDeviceOrganisationDetails).create(factory => factory.build(
7
+ factory.addCreate<CreateScenarioDeviceOrganisationDTO>(SCENARIO_DEVICE_ORGANISATIONS_URL),
8
+ factory.addGet(SCENARIO_DEVICE_ORGANISATION_URL),
9
+ factory.addGetMany<ScenarioDeviceOrganisationInfosDTO, ScenarioDeviceOrganisationInfos, ScenarioDeviceOrganisationFilters>(SCENARIO_DEVICE_ORGANISATIONS_URL, ScenarioDeviceOrganisationInfos),
10
+ factory.addUpdate<UpdateScenarioDeviceOrganisationDTO>(SCENARIO_DEVICE_ORGANISATION_URL),
11
+ factory.addRemove(SCENARIO_DEVICE_ORGANISATION_URL),
12
+ factory.addNotify(notifyService => ({
11
13
  ...ServiceFactory.addCustom("createMany", (axios, payload: CreateManyScenarioDeviceOrganisationDTO) => axios.put(SCENARIO_DEVICE_ORGANISATIONS_URL(), payload), () => {
14
+ notifyService.notify("reset");
12
15
  })
13
16
  }))
14
17
  ));
@@ -18,4 +21,4 @@ export const useScenarioDeviceOrganisations = ComposableFactory.getMany(Scenario
18
21
  export const useCreateScenarioDeviceOrganisation = ComposableFactory.create(ScenarioDeviceOrganisationServiceFactory);
19
22
  export const useUpdateScenarioDeviceOrganisation = ComposableFactory.update(ScenarioDeviceOrganisationServiceFactory);
20
23
  export const useRemoveScenarioDeviceOrganisation = ComposableFactory.remove(ScenarioDeviceOrganisationServiceFactory);
21
- export const useCreateManyScenarioDeviceOrganisation = ComposableFactory.custom(ScenarioDeviceOrganisationServiceFactoryIncomplete.createMany);
24
+ export const useCreateManyScenarioDeviceOrganisation = ComposableFactory.custom(ScenarioDeviceOrganisationServiceFactory.createMany);
@@ -3,7 +3,7 @@ import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
3
3
 
4
4
  import { SERVICE_ACCOUNT_ROLE_ORGANISATIONS_URL, SERVICE_ACCOUNT_ROLE_ORGANISATION_URL } from "../../config/urls";
5
5
 
6
- const ServiceAccountRoleOrganisationServiceFactory = new ServiceFactory<ServiceAccountRoleOrganisationDetailsDTO, ServiceAccountRoleOrganisationDetails>("serviceAccountOrganisation", ServiceAccountRoleOrganisationDetails)
6
+ const ServiceAccountRoleOrganisationServiceFactory = new ServiceFactory<ServiceAccountRoleOrganisationDetailsDTO, ServiceAccountRoleOrganisationDetails>("serviceAccountRoleOrganisation", ServiceAccountRoleOrganisationDetails)
7
7
  .createComplete<ServiceAccountRoleOrganisationInfos, ServiceAccountRoleOrganisationInfosDTO, CreateServiceAccountRoleOrganisationDTO, UpdateServiceAccountRoleOrganisationDTO, ServiceAccountRoleOrganisationFilters>(SERVICE_ACCOUNT_ROLE_ORGANISATIONS_URL, SERVICE_ACCOUNT_ROLE_ORGANISATION_URL, ServiceAccountRoleOrganisationInfos);
8
8
 
9
9
  export const useServiceAccountRoleOrganisation = ComposableFactory.get(ServiceAccountRoleOrganisationServiceFactory);
@@ -0,0 +1,3 @@
1
+ import { CORE_URL } from "./base";
2
+
3
+ export const DEVICE_DATA_DEFINITIONS_URL = () => `${CORE_URL()}/device-data-definitions`;
@@ -0,0 +1,3 @@
1
+ import { CORE_URL } from "./base";
2
+
3
+ export const DEVICE_EXPLORER_ELEMENTS_URL = () => `${CORE_URL()}/device-explorer-elements`;
@@ -16,7 +16,9 @@ export * from "./dashboards";
16
16
  export * from "./dataCategories";
17
17
  export * from "./dataDefinitions";
18
18
  export * from "./deviceConnectivities";
19
+ export * from "./deviceDataDefinitions";
19
20
  export * from "./deviceOrganisations";
21
+ export * from "./deviceExplorerElements";
20
22
  export * from "./deviceStatuses";
21
23
  export * from "./folders";
22
24
  export * from "./groups";
@@ -27,6 +29,7 @@ export * from "./organisations";
27
29
  export * from "./organisationTypes";
28
30
  export * from "./permissionCategories";
29
31
  export * from "./permissions";
32
+ export * from "./playlists";
30
33
  export * from "./roleOrganisations";
31
34
  export * from "./roleOrganisationTypes";
32
35
  export * from "./scenarioDeviceOrganisations";
@@ -0,0 +1,4 @@
1
+ import { CORE_URL } from "./base";
2
+
3
+ export const PLAYLISTS_URL = () => `${CORE_URL()}/playlists`;
4
+ export const PLAYLIST_URL = (playlistId: string) => `${PLAYLISTS_URL()}/${encodeURIComponent(playlistId)}`;
@@ -1,4 +1,4 @@
1
1
  import { CORE_URL } from "./base";
2
2
 
3
- export const SERVICE_ACCOUNT_ORGANISATION_AUTH_TOKENS_URL = () => `${CORE_URL()}/pats`;
3
+ export const SERVICE_ACCOUNT_ORGANISATION_AUTH_TOKENS_URL = () => `${CORE_URL()}/service-account-organisation-auth-tokens`;
4
4
  export const SERVICE_ACCOUNT_ORGANISATION_AUTH_TOKEN_URL = (authTokenId: string) => `${SERVICE_ACCOUNT_ORGANISATION_AUTH_TOKENS_URL()}/${encodeURIComponent(authTokenId)}`;
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.65",
4
+ "version": "1.0.67-map-edit",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,13 +10,13 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-core-domain": "1.0.65"
13
+ "@dative-gpi/foundation-core-domain": "1.0.67-map-edit"
14
14
  },
15
15
  "peerDependencies": {
16
- "@dative-gpi/bones-ui": "^0.0.75",
16
+ "@dative-gpi/bones-ui": "^1.0.0",
17
17
  "@microsoft/signalr": "^8.0.0",
18
- "vue": "^3.4.29",
18
+ "vue": "^3.4.38",
19
19
  "vue-router": "^4.3.0"
20
20
  },
21
- "gitHead": "942a36ea827fcf856d357a4ad826a6d4e3acf53c"
21
+ "gitHead": "725635256ebf2bb6450c38e5a3077fb907ea550c"
22
22
  }