@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.
@@ -1 +1,2 @@
1
+ export * from "./useApplicationLanguages";
1
2
  export * from "./useFamilies";
@@ -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 FamilieserviceFactory = new ServiceFactory<FamilyDetailsDTO, FamilyDetails>("family", FamilyDetails).create(factory => factory.build(
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(FamilieserviceFactory);
13
- export const useFamilies = ComposableFactory.getMany(FamilieserviceFactory);
12
+ export const useFamily = ComposableFactory.get(FamilyserviceFactory);
13
+ export const useFamilies = ComposableFactory.getMany(FamilyserviceFactory);
@@ -0,0 +1,4 @@
1
+ import { ADMIN_URL } from "./base";
2
+
3
+ export const APPLICATION_LANGUAGES_URL = () => `${ADMIN_URL()}/application-languages`;
4
+ export const APPLICATION_LANGUAGE_URL = (languageCode: string) => `${APPLICATION_LANGUAGES_URL()}/${encodeURIComponent(languageCode)}`;
@@ -1 +1,2 @@
1
+ export * from "./applicationLanguages";
1
2
  export * from "./families";
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.12",
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.12",
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": "73c686b3b0343ac4b42d34c2aa7cf7604ad0d298"
19
+ "gitHead": "e0e44041b264a555d7eccfb49ae4deaf933bd436"
20
20
  }
package/index.ts DELETED
File without changes