@dative-gpi/foundation-shared-services 0.0.174 → 0.0.176
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/app/useAppTimeZone.ts +3 -2
- package/composables/services/useAuthTokens.ts +2 -1
- package/composables/services/useImages.ts +2 -1
- package/composables/services/useLanguages.ts +2 -1
- package/composables/services/useOrganisations.ts +2 -1
- package/composables/services/useTimeZones.ts +2 -1
- package/composables/services/useTranslations.ts +2 -1
- package/composables/services/useUsers.ts +3 -2
- package/package.json +3 -3
- package/tools/hubFactory.ts +3 -3
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { format, subDays, addDays, addMilliseconds, parse } from "date-fns";
|
|
2
|
-
import {
|
|
2
|
+
import type { Locale } from "date-fns/locale";
|
|
3
|
+
import { enUS, enGB, fr, it, es, de } from "date-fns/locale";
|
|
3
4
|
import { computed, ref } from "vue";
|
|
4
5
|
|
|
5
6
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
6
|
-
import { TimeZoneInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
7
|
+
import type { TimeZoneInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
7
8
|
import { isoTimeFormat } from "@dative-gpi/foundation-shared-domain/tools";
|
|
8
9
|
|
|
9
10
|
import { useAppLanguageCode } from "./useAppLanguageCode";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AuthTokenDetailsDTO, AuthTokenFilters, AuthTokenInfosDTO, CreateAuthTokenDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { AuthTokenDetails, AuthTokenInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { AUTH_TOKENS_URL, AUTH_TOKEN_URL } from "../../config/urls";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import {
|
|
2
|
+
import type { BlurHashDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
3
|
+
import { BlurHash } from "@dative-gpi/foundation-shared-domain/models";
|
|
3
4
|
|
|
4
5
|
import { IMAGE_BLURHASH_URL } from "../../config/urls";
|
|
5
6
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { LanguageDetailsDTO, LanguageFilters, LanguageInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { LanguageDetails, LanguageInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { LANGUAGES_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { OrganisationDetailsDTO, OrganisationFilters, OrganisationInfosDTO, UpdateOrganisationDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { OrganisationDetails, OrganisationInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { ORGANISATIONS_URL, ORGANISATION_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TimeZoneDetailsDTO, TimeZoneFilters, TimeZoneInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { TimeZoneDetails, TimeZoneInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { TIME_ZONES_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { TranslationInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { TranslationInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { TRANSLATIONS_LANGUAGE_URL } from "../../config/urls";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
2
|
|
|
3
|
-
import { UpdateCurrentUserDTO, UpdateCurrentUserEmailDTO,
|
|
3
|
+
import type { UpdateCurrentUserDTO, UpdateCurrentUserEmailDTO, UserDetailsDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
4
|
+
import { UserDetails } from "@dative-gpi/foundation-shared-domain/models";
|
|
4
5
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
5
6
|
|
|
6
7
|
import { USER_CURRENT_URL } from "../../config/urls";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-services",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.176",
|
|
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-shared-domain": "0.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "0.0.176"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@dative-gpi/bones-ui": "^0.0.75",
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"vue": "^3.4.29",
|
|
19
19
|
"vue-router": "^4.3.0"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "38e0b68ca0a4e09b8db0ace70a32bd254a3001fe"
|
|
22
22
|
}
|
package/tools/hubFactory.ts
CHANGED
|
@@ -11,7 +11,7 @@ export class HubFactory {
|
|
|
11
11
|
let connection: signalR.HubConnection | null = null;
|
|
12
12
|
let subscribed = false;
|
|
13
13
|
let watchManySubscribers = 0;
|
|
14
|
-
|
|
14
|
+
const watcheds = ref<string[]>([]);
|
|
15
15
|
|
|
16
16
|
return () => {
|
|
17
17
|
const connect = async () => {
|
|
@@ -59,7 +59,7 @@ export class HubFactory {
|
|
|
59
59
|
|
|
60
60
|
const unsubscribeFromOne = (alertId: string) => {
|
|
61
61
|
const index = watcheds.value.indexOf(alertId);
|
|
62
|
-
if (index > -1) watcheds.value = watcheds.value.splice(index, 1);
|
|
62
|
+
if (index > -1) {watcheds.value = watcheds.value.splice(index, 1);}
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
const subscribeToMany = () => {
|
|
@@ -90,7 +90,7 @@ export class HubFactory {
|
|
|
90
90
|
if (manySubscriptions.value) {
|
|
91
91
|
unsubscribeFromMany();
|
|
92
92
|
}
|
|
93
|
-
for (
|
|
93
|
+
for (const subscription of oneSubscriptions.value) {
|
|
94
94
|
unsubscribeFromOne(subscription);
|
|
95
95
|
}
|
|
96
96
|
})
|