@dative-gpi/foundation-core-services 1.0.161 → 1.0.163-notification
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.
|
@@ -30,6 +30,7 @@ export * from "./useModels";
|
|
|
30
30
|
export * from "./useOrganisations";
|
|
31
31
|
export * from "./useOrganisationTypes";
|
|
32
32
|
export * from "./usePermissionCategories";
|
|
33
|
+
export * from "./usePlaylists";
|
|
33
34
|
export * from "./useRoleOrganisations";
|
|
34
35
|
export * from "./useRoleOrganisationTypes";
|
|
35
36
|
export * from "./useScenarioDeviceOrganisations";
|
|
@@ -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);
|
package/config/urls/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./organisations";
|
|
|
29
29
|
export * from "./organisationTypes";
|
|
30
30
|
export * from "./permissionCategories";
|
|
31
31
|
export * from "./permissions";
|
|
32
|
+
export * from "./playlists";
|
|
32
33
|
export * from "./roleOrganisations";
|
|
33
34
|
export * from "./roleOrganisationTypes";
|
|
34
35
|
export * from "./scenarioDeviceOrganisations";
|
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.163-notification",
|
|
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.163-notification"
|
|
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": "ba817255c72600f95a231534932c34cb648fd192"
|
|
22
22
|
}
|