@dative-gpi/foundation-admin-services 0.0.12 → 0.0.14
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.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LanguageDetails, LanguageDetailsDTO, LanguageFilters, LanguageInfos, LanguageInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui";
|
|
3
|
+
|
|
4
|
+
import { APPLICATION_LANGUAGES_URL, APPLICATION_LANGUAGE_URL } from "../../config/urls";
|
|
5
|
+
|
|
6
|
+
const ApplicationLanguageServiceFactory = new ServiceFactory<LanguageDetailsDTO, LanguageDetails>("applicationLanguage", LanguageDetails).create(factory => factory.build(
|
|
7
|
+
factory.addGet(APPLICATION_LANGUAGE_URL),
|
|
8
|
+
factory.addGetMany<LanguageInfosDTO, LanguageInfos, LanguageFilters>(APPLICATION_LANGUAGES_URL, LanguageInfos),
|
|
9
|
+
factory.addNotify()
|
|
10
|
+
));
|
|
11
|
+
|
|
12
|
+
export const useApplicationLanguages = ComposableFactory.getMany(ApplicationLanguageServiceFactory);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FamilyDetails, FamilyDetailsDTO, FamilyFilters, FamilyInfos, FamilyInfosDTO } from "@dative-gpi/foundation-admin-domain";
|
|
1
|
+
import { FamilyDetails, FamilyDetailsDTO, FamilyFilters, FamilyInfos, FamilyInfosDTO } from "@dative-gpi/foundation-admin-domain/models";
|
|
2
2
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui";
|
|
3
3
|
|
|
4
4
|
import { FAMILIES_URL, FAMILY_URL } from "../../config/urls";
|
|
5
5
|
|
|
6
|
-
const
|
|
6
|
+
const FamilyserviceFactory = new ServiceFactory<FamilyDetailsDTO, FamilyDetails>("family", FamilyDetails).create(factory => factory.build(
|
|
7
7
|
factory.addGet(FAMILY_URL),
|
|
8
8
|
factory.addGetMany<FamilyInfosDTO, FamilyInfos, FamilyFilters>(FAMILIES_URL, FamilyInfos),
|
|
9
9
|
factory.addNotify()
|
|
10
10
|
));
|
|
11
11
|
|
|
12
|
-
export const useFamily = ComposableFactory.get(
|
|
13
|
-
export const useFamilies = ComposableFactory.getMany(
|
|
12
|
+
export const useFamily = ComposableFactory.get(FamilyserviceFactory);
|
|
13
|
+
export const useFamilies = ComposableFactory.getMany(FamilyserviceFactory);
|
package/config/urls/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-admin-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.14",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@dative-gpi/bones-ui": "^0.0.61",
|
|
14
|
-
"@dative-gpi/foundation-admin-domain": "0.0.
|
|
14
|
+
"@dative-gpi/foundation-admin-domain": "0.0.14",
|
|
15
15
|
"@microsoft/signalr": "^8.0.0",
|
|
16
16
|
"vue": "^3.2.0",
|
|
17
17
|
"vue-router": "^4.2.5"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "e0e44041b264a555d7eccfb49ae4deaf933bd436"
|
|
20
20
|
}
|
package/index.ts
DELETED
|
File without changes
|