@dative-gpi/foundation-core-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/services/index.ts +2 -0
- package/composables/services/useActions.ts +2 -1
- package/composables/services/useAlerts.ts +2 -1
- package/composables/services/useArticles.ts +2 -1
- package/composables/services/useChartCategories.ts +2 -1
- package/composables/services/useChartOrganisationTypes.ts +2 -1
- package/composables/services/useChartOrganisations.ts +2 -1
- package/composables/services/useCharts.ts +2 -1
- package/composables/services/useComments.ts +2 -1
- package/composables/services/useConnectivityAlerts.ts +3 -2
- package/composables/services/useConnectivityScenarios.ts +15 -0
- package/composables/services/useCustomProperties.ts +2 -1
- package/composables/services/useCustomPropertyValues.ts +2 -1
- package/composables/services/useDashboardOrganisationTypes.ts +2 -1
- package/composables/services/useDashboardOrganisations.ts +2 -1
- package/composables/services/useDashboardShallows.ts +2 -1
- package/composables/services/useDashboards.ts +2 -1
- package/composables/services/useDataCategories.ts +2 -1
- package/composables/services/useDataDefinitions.ts +2 -1
- package/composables/services/useDeviceConnectivities.ts +2 -1
- package/composables/services/useDeviceOrganisations.ts +3 -2
- package/composables/services/useDeviceStatuses.ts +2 -1
- package/composables/services/useFolders.ts +2 -1
- package/composables/services/useGroups.ts +2 -1
- package/composables/services/useLocations.ts +2 -1
- package/composables/services/useManufacturers.ts +2 -1
- package/composables/services/useModels.ts +2 -1
- package/composables/services/useOrganisationTypes.ts +2 -1
- package/composables/services/useOrganisations.ts +3 -2
- package/composables/services/usePermissionCategories.ts +2 -1
- package/composables/services/useRoleOrganisationTypes.ts +2 -1
- package/composables/services/useRoleOrganisations.ts +2 -1
- package/composables/services/useScenarioDeviceOrganisations.ts +15 -0
- package/composables/services/useScenarioOrganisationTypes.ts +2 -1
- package/composables/services/useScenarioOrganisations.ts +2 -1
- package/composables/services/useServiceAccountOrganisationAuthTokens.ts +2 -1
- package/composables/services/useServiceAccountOrganisations.ts +2 -1
- package/composables/services/useUserOrganisationTables.ts +2 -1
- package/composables/services/useUserOrganisations.ts +3 -2
- package/composables/services/useWidgetTemplates.ts +2 -1
- package/config/urls/connectivityScenarios.ts +4 -0
- package/config/urls/customPropertyValues.ts +1 -1
- package/config/urls/index.ts +2 -0
- package/config/urls/scenarioDeviceOrganisations.ts +4 -0
- package/package.json +3 -3
|
@@ -7,6 +7,7 @@ export * from "./useChartOrganisations";
|
|
|
7
7
|
export * from "./useCharts";
|
|
8
8
|
export * from "./useComments";
|
|
9
9
|
export * from "./useConnectivityAlerts";
|
|
10
|
+
export * from "./useConnectivityScenarios";
|
|
10
11
|
export * from "./useCustomProperties";
|
|
11
12
|
export * from "./useCustomPropertyValues";
|
|
12
13
|
export * from "./useDashboardOrganisations";
|
|
@@ -28,6 +29,7 @@ export * from "./useOrganisationTypes";
|
|
|
28
29
|
export * from "./usePermissionCategories";
|
|
29
30
|
export * from "./useRoleOrganisations";
|
|
30
31
|
export * from "./useRoleOrganisationTypes";
|
|
32
|
+
export * from "./useScenarioDeviceOrganisations";
|
|
31
33
|
export * from "./useScenarioOrganisations";
|
|
32
34
|
export * from "./useScenarioOrganisationTypes";
|
|
33
35
|
export * from "./useServiceAccountOrganisationAuthTokens";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ActionDetailsDTO, ActionFilters, ActionInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ActionDetails, ActionInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui";
|
|
3
4
|
|
|
4
5
|
import { ACTIONS_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { AlertDetailsDTO, AlertFilters, AlertInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { AlertDetails, AlertInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { HubFactory } from "@dative-gpi/foundation-shared-services/tools/hubFactory";
|
|
3
4
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
4
5
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ArticleDetailsDTO, ArticleFilters, ArticleInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ArticleDetails, ArticleInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { ARTICLES_URL, ARTICLE_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateChartCategoryDTO,
|
|
1
|
+
import type { CreateChartCategoryDTO, ChartCategoryDetailsDTO, ChartCategoryFilters, ChartCategoryInfosDTO, UpdateChartCategoryDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ChartCategoryDetails, ChartCategoryInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { CHART_CATEGORIES_URL, CHART_CATEGORY_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartOrganisationTypeDetailsDTO, ChartOrganisationTypeFilters, ChartOrganisationTypeInfosDTO, CreateChartOrganisationTypeDTO, UpdateChartOrganisationTypeDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ChartOrganisationTypeDetails, ChartOrganisationTypeInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { CHART_ORGANISATION_TYPE_URL, CHART_ORGANISATION_TYPES_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ChartOrganisationDetailsDTO, ChartOrganisationFilters, ChartOrganisationInfosDTO, CreateChartOrganisationDTO, UpdateChartOrganisationDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ChartOrganisationDetails, ChartOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { CHART_ORGANISATION_URL, CHART_ORGANISATIONS_URL } from "../../config/urls";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import type { ChartDetailsDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { ChartDetails } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
4
5
|
|
|
5
6
|
import { CHART_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateCommentDTO,
|
|
1
|
+
import type { CreateCommentDTO, CommentDetailsDTO, CommentFilters, CommentInfosDTO, UpdateCommentDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { CommentDetails, CommentInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { COMMENTS_URL, COMMENT_URL } from "../../config/urls";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import {
|
|
2
|
+
import type { ConnectivityAlertDetailsDTO, ConnectivityAlertFilters, ConnectivityAlertInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { ConnectivityAlertDetails, ConnectivityAlertInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
import { HubFactory } from "@dative-gpi/foundation-shared-services/tools/hubFactory";
|
|
4
5
|
|
|
5
6
|
import { CONNECTIVITY_ALERTS_HUB_URL, CONNECTIVITY_ALERTS_URL, CONNECTIVITY_ALERT_URL } from "../../config/urls";
|
|
@@ -44,7 +45,7 @@ export const useConnectivityAlert = ComposableFactory.get(ConnectivityAlertServi
|
|
|
44
45
|
|
|
45
46
|
export const useConnectivityAlerts = ComposableFactory.getMany(ConnectivityAlertServiceFactory, () => {
|
|
46
47
|
const { watchMany } = useWatchConnectivityAlerts();
|
|
47
|
-
return (
|
|
48
|
+
return () => {
|
|
48
49
|
watchMany();
|
|
49
50
|
}
|
|
50
51
|
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
+
import type { CreateConnectivityScenarioDTO, ConnectivityScenarioDetailsDTO, ConnectivityScenarioFilters, ConnectivityScenarioInfosDTO, UpdateConnectivityScenarioDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { ConnectivityScenarioDetails, ConnectivityScenarioInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
4
|
+
|
|
5
|
+
import { CONNECTIVITY_SCENARIOS_URL, CONNECTIVITY_SCENARIO_URL } from "../../config";
|
|
6
|
+
|
|
7
|
+
const ConnectivityScenarioServiceFactory = new ServiceFactory<ConnectivityScenarioDetailsDTO, ConnectivityScenarioDetails>("ConnectivityScenario", ConnectivityScenarioDetails)
|
|
8
|
+
.createComplete<ConnectivityScenarioInfos, ConnectivityScenarioInfosDTO, CreateConnectivityScenarioDTO, UpdateConnectivityScenarioDTO, ConnectivityScenarioFilters>(CONNECTIVITY_SCENARIOS_URL, CONNECTIVITY_SCENARIO_URL, ConnectivityScenarioInfos);
|
|
9
|
+
|
|
10
|
+
export const useConnectivityScenario = ComposableFactory.get(ConnectivityScenarioServiceFactory);
|
|
11
|
+
export const useConnectivityScenarios = ComposableFactory.getMany(ConnectivityScenarioServiceFactory);
|
|
12
|
+
export const useCreateConnectivityScenario = ComposableFactory.create(ConnectivityScenarioServiceFactory);
|
|
13
|
+
export const useUpdateConnectivityScenario = ComposableFactory.update(ConnectivityScenarioServiceFactory);
|
|
14
|
+
export const useRemoveConnectivityScenario = ComposableFactory.remove(ConnectivityScenarioServiceFactory);
|
|
15
|
+
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CustomPropertyDetailsDTO, CustomPropertyFilters, CustomPropertyInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { CustomPropertyDetails, CustomPropertyInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { CUSTOM_PROPERTIES_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { CustomPropertyValueInfosDTO, PropertyEntity } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { CustomPropertyValueInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { CUSTOM_PROPERTY_VALUES_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DashboardOrganisationTypeDetailsDTO, DashboardOrganisationTypeFilters, DashboardOrganisationTypeInfosDTO, LockDashboardOrganisationTypeDTO, PublishDashboardOrganisationTypeDTO, UpdateDashboardOrganisationTypeDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { DashboardOrganisationTypeDetails, DashboardOrganisationTypeInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { DASHBOARD_ORGANISATION_TYPE_LOCK_URL, DASHBOARD_ORGANISATION_TYPE_URL, DASHBOARD_ORGANISATION_TYPES_URL } from "../../config";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DashboardOrganisationDetailsDTO, DashboardOrganisationFilters, DashboardOrganisationInfosDTO, CreateDashboardOrganisationDTO, UpdateDashboardOrganisationDTO, LockDashboardOrganisationDTO, ChangeDashboardOrganisationFolderDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { DashboardOrganisationDetails, DashboardOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { DASHBOARD_ORGANISATION_FOLDER_URL, DASHBOARD_ORGANISATION_LOCK_URL, DASHBOARD_ORGANISATION_URL, DASHBOARD_ORGANISATIONS_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ChangeDashboardShallowFolderDTO, CreateDashboardShallowDTO,
|
|
1
|
+
import type { ChangeDashboardShallowFolderDTO, CreateDashboardShallowDTO, DashboardShallowDetailsDTO, DashboardShallowFilters, DashboardShallowInfosDTO, UpdateDashboardShallowDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { DashboardShallowDetails, DashboardShallowInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { DASHBOARD_SHALLOW_FOLDER_URL, DASHBOARD_SHALLOW_URL, DASHBOARD_SHALLOWS_URL } from "../../config/urls/dashboardShallows";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { DashboardDetailsDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
4
|
+
import { DashboardDetails } from "@dative-gpi/foundation-core-domain/models";
|
|
4
5
|
|
|
5
6
|
import { DASHBOARD_CURRENT_URL } from "../../config";
|
|
6
7
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DataCategoryDetailsDTO, DataCategoryFilters, DataCategoryInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { DataCategoryDetails, DataCategoryInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { DATA_CATEGORIES_URL, DATA_CATEGORY_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { DataDefinitionDetailsDTO, DataDefinitionFilters, DataDefinitionInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { DataDefinitionDetails, DataDefinitionInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { DATA_DEFINITIONS_URL, DATA_DEFINITION_URL } from "../../config/urls";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import {
|
|
2
|
+
import type { DeviceConnectivityDetailsDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { DeviceConnectivityDetails } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
import { HubFactory } from "@dative-gpi/foundation-shared-services/tools/hubFactory";
|
|
4
5
|
|
|
5
6
|
import { DEVICE_CONNECTIVITIES_HUB_URL, DEVICE_CONNECTIVITY_URL } from "../../config/urls";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
2
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
|
-
import { ChangeDeviceOrganisationGroupDTO, ChangeDeviceOrganisationLocationDTO, CreateDeviceOrganisationDTO,
|
|
3
|
+
import type { ChangeDeviceOrganisationGroupDTO, ChangeDeviceOrganisationLocationDTO, CreateDeviceOrganisationDTO, DeviceOrganisationDetailsDTO, DeviceOrganisationFilters, DeviceOrganisationInfosDTO, UpdateDeviceOrganisationDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
4
|
+
import { DeviceOrganisationDetails, DeviceOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
4
5
|
|
|
5
6
|
import { DEVICE_ORGANISATIONS_URL, DEVICE_ORGANISATION_URL, DEVICE_ORGANISATION_GROUP_URL, DEVICE_ORGANISATION_LOCATION_URL } from "../../config/urls";
|
|
6
7
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import {
|
|
2
|
+
import type { DeviceStatusDetailsDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { DeviceStatusDetails } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
import { HubFactory } from "@dative-gpi/foundation-shared-services/tools/hubFactory";
|
|
4
5
|
|
|
5
6
|
import { DEVICE_STATUSES_HUB_URL, DEVICE_STATUS_URL } from "../../config/urls";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import { CreateFolderDTO,
|
|
2
|
+
import type { CreateFolderDTO, FolderDetailsDTO, FolderFilters, FolderInfosDTO, UpdateFolderDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { FolderDetails, FolderInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
|
|
4
5
|
import { FOLDER_URL, FOLDERS_URL } from "../../config";
|
|
5
6
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ChangeGroupParentDTO, CreateGroupDTO,
|
|
1
|
+
import type { ChangeGroupParentDTO, CreateGroupDTO, GroupDetailsDTO, GroupFilters, GroupInfosDTO, UpdateGroupDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { GroupDetails, GroupInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { GROUPS_URL, GROUP_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateLocationDTO,
|
|
1
|
+
import type { CreateLocationDTO, LocationDetailsDTO, LocationFilters, LocationInfosDTO, UpdateLocationDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { LocationDetails, LocationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { LOCATIONS_URL, LOCATION_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ManufacturerDetailsDTO, ManufacturerFilters, ManufacturerInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ManufacturerDetails, ManufacturerInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { MANUFACTURERS_URL, MANUFACTURER_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ModelDetailsDTO, ModelFilters, ModelInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ModelDetails, ModelInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { MODELS_URL, MODEL_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { OrganisationTypeDetailsDTO, OrganisationTypeFilters, OrganisationTypeInfosDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { OrganisationTypeDetails, OrganisationTypeInfos } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { ORGANISATION_TYPES_URL, ORGANISATION_TYPE_URL } from "../../config/urls";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { OrganisationDetailsDTO } from "@dative-gpi/foundation-shared-domain/models";
|
|
2
|
+
import { OrganisationDetails } from "@dative-gpi/foundation-shared-domain/models";
|
|
3
|
+
import type { ChangeOrganisationDashboardDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
4
5
|
|
|
5
6
|
import { ORGANISATION_DASHBOARD_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { PermissionCategoryDetailsDTO, PermissionCategoryFilters, PermissionCategoryInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { PermissionCategoryDetails, PermissionCategoryInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { PERMISSION_CATEGORIES_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { RoleOrganisationTypeDetailsDTO, RoleOrganisationTypeFilters, RoleOrganisationTypeInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { RoleOrganisationTypeDetails, RoleOrganisationTypeInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { ROLE_ORGANISATION_TYPES_URL, ROLE_ORGANISATION_TYPE_URL } from "../../config/urls";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CreateRoleOrganisationDTO,
|
|
1
|
+
import type { CreateRoleOrganisationDTO, RoleOrganisationDetailsDTO, RoleOrganisationFilters, RoleOrganisationInfosDTO, UpdateRoleOrganisationDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { RoleOrganisationDetails, RoleOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { ROLE_ORGANISATIONS_URL, ROLE_ORGANISATION_URL } from "../../config/urls";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
+
import type { CreateScenarioDeviceOrganisationDTO, ScenarioDeviceOrganisationDetailsDTO, ScenarioDeviceOrganisationFilters, ScenarioDeviceOrganisationInfosDTO, UpdateScenarioDeviceOrganisationDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { ScenarioDeviceOrganisationDetails, ScenarioDeviceOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
4
|
+
|
|
5
|
+
import { SCENARIO_DEVICE_ORGANISATIONS_URL, SCENARIO_DEVICE_ORGANISATION_URL } from "../../config";
|
|
6
|
+
|
|
7
|
+
const ScenarioDeviceOrganisationServiceFactory = new ServiceFactory<ScenarioDeviceOrganisationDetailsDTO, ScenarioDeviceOrganisationDetails>("scenarioDeviceOrganisation", ScenarioDeviceOrganisationDetails)
|
|
8
|
+
.createComplete<ScenarioDeviceOrganisationInfos, ScenarioDeviceOrganisationInfosDTO, CreateScenarioDeviceOrganisationDTO, UpdateScenarioDeviceOrganisationDTO, ScenarioDeviceOrganisationFilters>(SCENARIO_DEVICE_ORGANISATIONS_URL, SCENARIO_DEVICE_ORGANISATION_URL, ScenarioDeviceOrganisationInfos);
|
|
9
|
+
|
|
10
|
+
export const useScenarioDeviceOrganisation = ComposableFactory.get(ScenarioDeviceOrganisationServiceFactory);
|
|
11
|
+
export const useScenarioDeviceOrganisations = ComposableFactory.getMany(ScenarioDeviceOrganisationServiceFactory);
|
|
12
|
+
export const useCreateScenarioDeviceOrganisation = ComposableFactory.create(ScenarioDeviceOrganisationServiceFactory);
|
|
13
|
+
export const useUpdateScenarioDeviceOrganisation = ComposableFactory.update(ScenarioDeviceOrganisationServiceFactory);
|
|
14
|
+
export const useRemoveScenarioDeviceOrganisation = ComposableFactory.remove(ScenarioDeviceOrganisationServiceFactory);
|
|
15
|
+
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import { CreateScenarioOrganisationTypeDTO,
|
|
2
|
+
import type { CreateScenarioOrganisationTypeDTO, ScenarioOrganisationTypeDetailsDTO, ScenarioOrganisationTypeFilters, ScenarioOrganisationTypeInfosDTO, UpdateScenarioOrganisationTypeDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { ScenarioOrganisationTypeDetails, ScenarioOrganisationTypeInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
import { SCENARIO_ORGANISATION_TYPE_URL, SCENARIO_ORGANISATION_TYPES_URL } from "../../config/urls/scenarioOrganisationTypes";
|
|
4
5
|
|
|
5
6
|
const ScenarioOrganisationTypeServiceFactory = new ServiceFactory<ScenarioOrganisationTypeDetailsDTO, ScenarioOrganisationTypeDetails>("scenarioOrganisationType", ScenarioOrganisationTypeDetails)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import { CreateScenarioOrganisationDTO,
|
|
2
|
+
import type { CreateScenarioOrganisationDTO, ScenarioOrganisationDetailsDTO, ScenarioOrganisationFilters, ScenarioOrganisationInfosDTO, UpdateScenarioOrganisationDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { ScenarioOrganisationDetails, ScenarioOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
import { SCENARIO_ORGANISATION_URL, SCENARIO_ORGANISATIONS_URL } from "../../config/urls/scenarioOrganisations";
|
|
4
5
|
|
|
5
6
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { ServiceAccountOrganisationAuthTokenDetailsDTO, ServiceAccountOrganisationAuthTokenFilters, CreateServiceAccountOrganisationAuthTokenDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { ServiceAccountOrganisationAuthTokenDetails } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { SERVICE_ACCOUNT_ORGANISATION_AUTH_TOKENS_URL, SERVICE_ACCOUNT_ORGANISATION_AUTH_TOKEN_URL } from "../../config/urls";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
2
|
-
import { CreateServiceAccountOrganisationDTO, UpdateServiceAccountOrganisationDTO,
|
|
2
|
+
import type { CreateServiceAccountOrganisationDTO, UpdateServiceAccountOrganisationDTO, ServiceAccountOrganisationDetailsDTO, ServiceAccountOrganisationFilters, ServiceAccountOrganisationInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
3
|
+
import { ServiceAccountOrganisationDetails, ServiceAccountOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
3
4
|
|
|
4
5
|
import { SERVICE_ACCOUNT_ORGANISATIONS_URL, SERVICE_ACCOUNT_ORGANISATION_URL } from "../../config/urls";
|
|
5
6
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { UserOrganisationTableDetailsDTO, UpdateUserOrganisationTableDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { UserOrganisationTableDetails } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { USER_ORGANISATION_TABLE_URL } from "../../config/urls";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
1
|
+
import type { Ref } from "vue";
|
|
2
2
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
|
-
import { ChangeCurrentUserOrganisationDashboardDTO, CreateUserOrganisationDTO, UpdateUserOrganisationDTO,
|
|
3
|
+
import type { ChangeCurrentUserOrganisationDashboardDTO, CreateUserOrganisationDTO, UpdateUserOrganisationDTO, UserOrganisationDetailsDTO, UserOrganisationFilters, UserOrganisationInfosDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
4
|
+
import { UserOrganisationDetails, UserOrganisationInfos } from "@dative-gpi/foundation-core-domain/models";
|
|
4
5
|
|
|
5
6
|
import { USER_ORGANISATIONS_URL, USER_ORGANISATION_CURRENT_DASHBOARD_URL, USER_ORGANISATION_CURRENT_URL, USER_ORGANISATION_URL } from "../../config/urls";
|
|
6
7
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { WidgetTemplateFilters,
|
|
1
|
+
import type { WidgetTemplateFilters, WidgetTemplateInfosDTO, WidgetTemplateDetailsDTO } from "@dative-gpi/foundation-core-domain/models";
|
|
2
|
+
import { WidgetTemplateInfos, WidgetTemplateDetails } from "@dative-gpi/foundation-core-domain/models";
|
|
2
3
|
import { ComposableFactory, ServiceFactory } from "@dative-gpi/bones-ui/core";
|
|
3
4
|
|
|
4
5
|
import { WIDGET_TEMPLATES_URL, WIDGET_TEMPLATE_URL } from "../../config/urls";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CORE_URL } from "./base";
|
|
2
|
+
|
|
3
|
+
export const CONNECTIVITY_SCENARIOS_URL = () => `${CORE_URL()}/connectivity-scenarios`;
|
|
4
|
+
export const CONNECTIVITY_SCENARIO_URL = (connectivityScenarioId: string) => `${CONNECTIVITY_SCENARIOS_URL()}/${encodeURIComponent(connectivityScenarioId)}`;
|
package/config/urls/index.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from "./chartOrganisations";
|
|
|
7
7
|
export * from "./chartOrganisationTypes";
|
|
8
8
|
export * from "./comments";
|
|
9
9
|
export * from "./connectivityAlerts";
|
|
10
|
+
export * from "./connectivityScenarios";
|
|
10
11
|
export * from "./customProperties";
|
|
11
12
|
export * from "./customPropertyValues";
|
|
12
13
|
export * from "./dashboardOrganisations";
|
|
@@ -28,6 +29,7 @@ export * from "./permissionCategories";
|
|
|
28
29
|
export * from "./permissions";
|
|
29
30
|
export * from "./roleOrganisations";
|
|
30
31
|
export * from "./roleOrganisationTypes";
|
|
32
|
+
export * from "./scenarioDeviceOrganisations";
|
|
31
33
|
export * from "./scenarioOrganisations";
|
|
32
34
|
export * from "./scenarioOrganisationTypes";
|
|
33
35
|
export * from "./serviceAccountOrganisationAuthTokens";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CORE_URL } from "./base";
|
|
2
|
+
|
|
3
|
+
export const SCENARIO_DEVICE_ORGANISATIONS_URL = () => `${CORE_URL()}/scenario-device-organisations`;
|
|
4
|
+
export const SCENARIO_DEVICE_ORGANISATION_URL = (scenarioDeviceOrganisation : string) => `${SCENARIO_DEVICE_ORGANISATIONS_URL()}/${encodeURIComponent(scenarioDeviceOrganisation)}`;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-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-core-domain": "0.0.
|
|
13
|
+
"@dative-gpi/foundation-core-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
|
}
|