@equinor/roma-framework 5.0.0 → 6.0.1-beta.0
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/_commonjsHelpers-CIHTj2Un.mjs +6997 -0
- package/cypress.mjs +31957 -49
- package/dev-portal/lib/api/roma/api/alarm-controller/alarm-controller.d.ts +97 -0
- package/dev-portal/lib/api/roma/api/alarm-group-controller/alarm-group-controller.d.ts +186 -0
- package/dev-portal/lib/api/roma/api/alarm-sse-controller/alarm-sse-controller.d.ts +36 -0
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +65 -31
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +57 -26
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +23 -10
- package/dev-portal/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +29 -13
- package/dev-portal/lib/api/roma/api/health-controller/health-controller.d.ts +38 -0
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +99 -41
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +23 -7
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +57 -26
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +114 -47
- package/dev-portal/lib/api/roma/index.d.ts +4 -0
- package/dev-portal/lib/api/roma/model/adminDto.d.ts +6 -0
- package/dev-portal/lib/api/roma/model/adminDtoAdminType.d.ts +12 -0
- package/dev-portal/lib/api/roma/model/alarmDto.d.ts +19 -0
- package/dev-portal/lib/api/roma/model/alarmDtoPayload.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/alarmDtoSeverity.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/alarmDtoState.d.ts +12 -0
- package/dev-portal/lib/api/roma/model/alarmGroupDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/appDto.d.ts +36 -11
- package/dev-portal/lib/api/roma/model/buildDto.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/categoryDto.d.ts +4 -3
- package/dev-portal/lib/api/roma/model/clearAlarmRequest.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/configDto.d.ts +6 -0
- package/dev-portal/lib/api/roma/model/environmentDto.d.ts +4 -4
- package/dev-portal/lib/api/roma/model/feedbackDetailsDto.d.ts +6 -3
- package/dev-portal/lib/api/roma/model/feedbackDto.d.ts +1 -1
- package/dev-portal/lib/api/roma/model/feedbackExpandedResponseDetailsDto.d.ts +7 -3
- package/dev-portal/lib/api/roma/model/feedbackExpandedResponseIssueDto.d.ts +3 -1
- package/dev-portal/lib/api/roma/model/feedbackPage.d.ts +7 -7
- package/dev-portal/lib/api/roma/model/feedbackResponseIssueDto.d.ts +3 -1
- package/dev-portal/lib/api/roma/model/feedbackSolutionDto.d.ts +2 -1
- package/dev-portal/lib/api/roma/model/getAllParams.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +1 -1
- package/dev-portal/lib/api/roma/model/index.d.ts +17 -1
- package/dev-portal/lib/api/roma/model/listFeedbacksByCurrentUserParams.d.ts +1 -1
- package/dev-portal/lib/api/roma/model/pageableObject.d.ts +2 -2
- package/dev-portal/lib/api/roma/model/raiseAlarmRequest.d.ts +15 -0
- package/dev-portal/lib/api/roma/model/raiseAlarmRequestPayload.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/raiseAlarmRequestSeverity.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +10 -2
- package/dev-portal/lib/api/roma/model/serverSentEventAlarmDto.d.ts +9 -0
- package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +1 -2
- package/dev-portal/lib/api/roma/model/serviceDto.d.ts +13 -4
- package/dev-portal/lib/api/roma/model/settingDto.d.ts +10 -4
- package/dev-portal/lib/api/roma/model/sortObject.d.ts +3 -3
- package/dev-portal/lib/api/roma/model/uploadBundleBody.d.ts +1 -1
- package/dev-portal/lib/api/roma/model/versionDto.d.ts +4 -4
- package/dev-portal/lib/api/roma/model/visualizationDto.d.ts +12 -0
- package/dev-portal/lib/api/roma/use-client.d.ts +7 -7
- package/dev-portal/lib/dev-portal/AppViewer.d.ts +10 -0
- package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +2 -2
- package/dev-portal/lib/dev-portal/PortalStyles.d.ts +26 -1361
- package/dev-portal/lib/dev-portal/config/AppClient.d.ts +16 -15
- package/dev-portal/package.json +39 -3
- package/dev-portal/roma-framework.umd.js +76901 -70141
- package/lib/api/roma/api/alarm-controller/alarm-controller.d.ts +97 -0
- package/lib/api/roma/api/alarm-group-controller/alarm-group-controller.d.ts +186 -0
- package/lib/api/roma/api/alarm-sse-controller/alarm-sse-controller.d.ts +36 -0
- package/lib/api/roma/api/app-controller/app-controller.d.ts +65 -31
- package/lib/api/roma/api/category-controller/category-controller.d.ts +57 -26
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +23 -10
- package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +29 -13
- package/lib/api/roma/api/health-controller/health-controller.d.ts +38 -0
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +99 -41
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +23 -7
- package/lib/api/roma/api/service-controller/service-controller.d.ts +57 -26
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +114 -47
- package/lib/api/roma/index.d.ts +4 -0
- package/lib/api/roma/model/adminDto.d.ts +6 -0
- package/lib/api/roma/model/adminDtoAdminType.d.ts +12 -0
- package/lib/api/roma/model/alarmDto.d.ts +19 -0
- package/lib/api/roma/model/alarmDtoPayload.d.ts +10 -0
- package/lib/api/roma/model/alarmDtoSeverity.d.ts +14 -0
- package/lib/api/roma/model/alarmDtoState.d.ts +12 -0
- package/lib/api/roma/model/alarmGroupDto.d.ts +16 -0
- package/lib/api/roma/model/appDto.d.ts +36 -11
- package/lib/api/roma/model/buildDto.d.ts +14 -0
- package/lib/api/roma/model/categoryDto.d.ts +4 -3
- package/lib/api/roma/model/clearAlarmRequest.d.ts +13 -0
- package/lib/api/roma/model/configDto.d.ts +6 -0
- package/lib/api/roma/model/environmentDto.d.ts +4 -4
- package/lib/api/roma/model/feedbackDetailsDto.d.ts +6 -3
- package/lib/api/roma/model/feedbackDto.d.ts +1 -1
- package/lib/api/roma/model/feedbackExpandedResponseDetailsDto.d.ts +7 -3
- package/lib/api/roma/model/feedbackExpandedResponseIssueDto.d.ts +3 -1
- package/lib/api/roma/model/feedbackPage.d.ts +7 -7
- package/lib/api/roma/model/feedbackResponseIssueDto.d.ts +3 -1
- package/lib/api/roma/model/feedbackSolutionDto.d.ts +2 -1
- package/lib/api/roma/model/getAllParams.d.ts +14 -0
- package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +1 -1
- package/lib/api/roma/model/index.d.ts +17 -1
- package/lib/api/roma/model/listFeedbacksByCurrentUserParams.d.ts +1 -1
- package/lib/api/roma/model/pageableObject.d.ts +2 -2
- package/lib/api/roma/model/raiseAlarmRequest.d.ts +15 -0
- package/lib/api/roma/model/raiseAlarmRequestPayload.d.ts +10 -0
- package/lib/api/roma/model/raiseAlarmRequestSeverity.d.ts +14 -0
- package/lib/api/roma/model/romaConfigurationDto.d.ts +10 -2
- package/lib/api/roma/model/serverSentEventAlarmDto.d.ts +9 -0
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +1 -2
- package/lib/api/roma/model/serviceDto.d.ts +13 -4
- package/lib/api/roma/model/settingDto.d.ts +10 -4
- package/lib/api/roma/model/sortObject.d.ts +3 -3
- package/lib/api/roma/model/uploadBundleBody.d.ts +1 -1
- package/lib/api/roma/model/versionDto.d.ts +4 -4
- package/lib/api/roma/model/visualizationDto.d.ts +12 -0
- package/lib/api/roma/use-client.d.ts +7 -7
- package/lib/dev-portal/AppViewer.d.ts +10 -0
- package/lib/dev-portal/EquinorLoader.d.ts +2 -2
- package/lib/dev-portal/PortalStyles.d.ts +26 -1361
- package/lib/dev-portal/config/AppClient.d.ts +16 -15
- package/package.json +39 -3
- package/roma-framework.mjs +1325 -1243
- package/router-lZjM0_Ti.mjs +0 -6053
package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts
CHANGED
|
@@ -1,20 +1,36 @@
|
|
|
1
|
-
import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
1
|
+
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { ServerSentEventStandardEventDto } from '../../model';
|
|
3
|
-
import { ErrorType } from '../../use-client';
|
|
3
|
+
import { useCustomClient, ErrorType } from '../../use-client';
|
|
4
4
|
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
5
|
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
-
|
|
6
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
7
|
+
export declare const getStreamEventsUrl: () => string;
|
|
8
|
+
export declare const useStreamEventsHook: () => ((options?: RequestInit) => Promise<ServerSentEventStandardEventDto[]>);
|
|
7
9
|
export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
|
|
8
10
|
export declare const useStreamEventsQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options?: {
|
|
9
11
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
|
|
12
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
10
13
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData> & {
|
|
11
|
-
queryKey: QueryKey
|
|
14
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
12
15
|
};
|
|
13
16
|
export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
|
|
14
17
|
export type StreamEventsQueryError = ErrorType<unknown>;
|
|
15
|
-
export declare
|
|
18
|
+
export declare function useStreamEvents<TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options: {
|
|
19
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>, 'initialData'>;
|
|
20
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
21
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
22
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
23
|
+
};
|
|
24
|
+
export declare function useStreamEvents<TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options?: {
|
|
25
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>, 'initialData'>;
|
|
26
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
27
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
28
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
29
|
+
};
|
|
30
|
+
export declare function useStreamEvents<TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options?: {
|
|
16
31
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
|
|
17
|
-
|
|
18
|
-
|
|
32
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
33
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
34
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
19
35
|
};
|
|
20
36
|
export {};
|
|
@@ -1,36 +1,51 @@
|
|
|
1
|
-
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
import { ErrorType, BodyType } from '../../use-client';
|
|
1
|
+
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ServiceDto } from '../../model';
|
|
3
|
+
import { useCustomClient, ErrorType, BodyType } from '../../use-client';
|
|
4
4
|
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
5
|
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
6
7
|
/**
|
|
7
8
|
* @summary List services for current environment
|
|
8
9
|
*/
|
|
9
|
-
export declare const
|
|
10
|
+
export declare const getGetAllServicesUrl: () => string;
|
|
11
|
+
export declare const useGetAllServicesHook: () => ((options?: RequestInit) => Promise<ServiceDto[]>);
|
|
10
12
|
export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
|
|
11
13
|
export declare const useGetAllServicesQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options?: {
|
|
12
14
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
|
|
15
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
13
16
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData> & {
|
|
14
|
-
queryKey: QueryKey
|
|
17
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
15
18
|
};
|
|
16
19
|
export type GetAllServicesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>;
|
|
17
20
|
export type GetAllServicesQueryError = ErrorType<void>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
export declare function useGetAllServices<TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options: {
|
|
22
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>, 'initialData'>;
|
|
23
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
24
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
25
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
26
|
+
};
|
|
27
|
+
export declare function useGetAllServices<TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options?: {
|
|
28
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>, 'initialData'>;
|
|
29
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
30
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
32
|
+
};
|
|
33
|
+
export declare function useGetAllServices<TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options?: {
|
|
22
34
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
36
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
37
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
25
38
|
};
|
|
26
39
|
/**
|
|
27
40
|
* @summary Create or update service for current environment
|
|
28
41
|
*/
|
|
29
|
-
export declare const
|
|
42
|
+
export declare const getCreateOrUpdateServiceUrl: () => string;
|
|
43
|
+
export declare const useCreateOrUpdateServiceHook: () => ((serviceDto: ServiceDto, options?: RequestInit) => Promise<Blob>);
|
|
30
44
|
export declare const useCreateOrUpdateServiceMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
31
45
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
32
46
|
data: BodyType<ServiceDto>;
|
|
33
47
|
}, TContext>;
|
|
48
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
34
49
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
35
50
|
data: BodyType<ServiceDto>;
|
|
36
51
|
}, TContext>;
|
|
@@ -44,50 +59,66 @@ export declare const useCreateOrUpdateService: <TError = ErrorType<void>, TConte
|
|
|
44
59
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
45
60
|
data: BodyType<ServiceDto>;
|
|
46
61
|
}, TContext>;
|
|
47
|
-
|
|
62
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
63
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
48
64
|
data: BodyType<ServiceDto>;
|
|
49
65
|
}, TContext>;
|
|
50
66
|
/**
|
|
51
67
|
* @summary Get service by key
|
|
52
68
|
*/
|
|
53
|
-
export declare const
|
|
69
|
+
export declare const getGetServiceByKeyUrl: (key: string) => string;
|
|
70
|
+
export declare const useGetServiceByKeyHook: () => ((key: string, options?: RequestInit) => Promise<ServiceDto>);
|
|
54
71
|
export declare const getGetServiceByKeyQueryKey: (key: string) => readonly [`/api/apps/services/key/${string}`];
|
|
55
72
|
export declare const useGetServiceByKeyQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
|
|
56
73
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
|
|
74
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
57
75
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData> & {
|
|
58
|
-
queryKey: QueryKey
|
|
76
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
59
77
|
};
|
|
60
78
|
export type GetServiceByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>>;
|
|
61
79
|
export type GetServiceByKeyQueryError = ErrorType<void>;
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
80
|
+
export declare function useGetServiceByKey<TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options: {
|
|
81
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>>, 'initialData'>;
|
|
82
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
83
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
84
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
85
|
+
};
|
|
86
|
+
export declare function useGetServiceByKey<TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
|
|
87
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>>, 'initialData'>;
|
|
88
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
89
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
90
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
91
|
+
};
|
|
92
|
+
export declare function useGetServiceByKey<TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
|
|
66
93
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
|
|
67
|
-
|
|
68
|
-
|
|
94
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
95
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
96
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
69
97
|
};
|
|
70
98
|
/**
|
|
71
99
|
* @summary Delete service by key
|
|
72
100
|
*/
|
|
73
|
-
export declare const
|
|
74
|
-
export declare const
|
|
101
|
+
export declare const getDeleteServiceByKeyUrl: (key: string) => string;
|
|
102
|
+
export declare const useDeleteServiceByKeyHook: () => ((key: string, options?: RequestInit) => Promise<void>);
|
|
103
|
+
export declare const useDeleteServiceByKeyMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
75
104
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
76
105
|
key: string;
|
|
77
106
|
}, TContext>;
|
|
107
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
78
108
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
79
109
|
key: string;
|
|
80
110
|
}, TContext>;
|
|
81
111
|
export type DeleteServiceByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>>;
|
|
82
|
-
export type DeleteServiceByKeyMutationError = ErrorType<
|
|
112
|
+
export type DeleteServiceByKeyMutationError = ErrorType<void>;
|
|
83
113
|
/**
|
|
84
114
|
* @summary Delete service by key
|
|
85
115
|
*/
|
|
86
|
-
export declare const useDeleteServiceByKey: <TError = ErrorType<
|
|
116
|
+
export declare const useDeleteServiceByKey: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
87
117
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
88
118
|
key: string;
|
|
89
119
|
}, TContext>;
|
|
90
|
-
|
|
120
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
121
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
91
122
|
key: string;
|
|
92
123
|
}, TContext>;
|
|
93
124
|
export {};
|
|
@@ -1,38 +1,53 @@
|
|
|
1
|
-
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import {
|
|
3
|
-
import { ErrorType, BodyType } from '../../use-client';
|
|
1
|
+
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { SettingDto } from '../../model';
|
|
3
|
+
import { useCustomClient, ErrorType, BodyType } from '../../use-client';
|
|
4
4
|
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
5
|
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
6
7
|
/**
|
|
7
8
|
* @summary Get a users Setting by id
|
|
8
9
|
*/
|
|
9
|
-
export declare const
|
|
10
|
+
export declare const getGetSettingByUserAndIdUrl: (userId: string, id: string) => string;
|
|
11
|
+
export declare const useGetSettingByUserAndIdHook: () => ((userId: string, id: string, options?: RequestInit) => Promise<SettingDto>);
|
|
10
12
|
export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
|
|
11
13
|
export declare const useGetSettingByUserAndIdQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError = ErrorType<void>>(userId: string, id: string, options?: {
|
|
12
14
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData>>;
|
|
15
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
13
16
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData> & {
|
|
14
|
-
queryKey: QueryKey
|
|
17
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
15
18
|
};
|
|
16
19
|
export type GetSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>;
|
|
17
20
|
export type GetSettingByUserAndIdQueryError = ErrorType<void>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
export declare function useGetSettingByUserAndId<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError = ErrorType<void>>(userId: string, id: string, options: {
|
|
22
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>, 'initialData'>;
|
|
23
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
24
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
25
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
26
|
+
};
|
|
27
|
+
export declare function useGetSettingByUserAndId<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError = ErrorType<void>>(userId: string, id: string, options?: {
|
|
28
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>, 'initialData'>;
|
|
29
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
30
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
32
|
+
};
|
|
33
|
+
export declare function useGetSettingByUserAndId<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError = ErrorType<void>>(userId: string, id: string, options?: {
|
|
22
34
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData>>;
|
|
23
|
-
|
|
24
|
-
|
|
35
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
36
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
37
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
25
38
|
};
|
|
26
39
|
/**
|
|
27
40
|
* @summary Update a Setting by id
|
|
28
41
|
*/
|
|
29
|
-
export declare const
|
|
42
|
+
export declare const getUpdateByUserIdAndIdUrl: (userId: string, id: string) => string;
|
|
43
|
+
export declare const useUpdateByUserIdAndIdHook: () => ((userId: string, id: string, settingDto: SettingDto, options?: RequestInit) => Promise<SettingDto>);
|
|
30
44
|
export declare const useUpdateByUserIdAndIdMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
31
45
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>, TError, {
|
|
32
46
|
userId: string;
|
|
33
47
|
id: string;
|
|
34
48
|
data: BodyType<SettingDto>;
|
|
35
49
|
}, TContext>;
|
|
50
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
36
51
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>, TError, {
|
|
37
52
|
userId: string;
|
|
38
53
|
id: string;
|
|
@@ -50,7 +65,8 @@ export declare const useUpdateByUserIdAndId: <TError = ErrorType<void>, TContext
|
|
|
50
65
|
id: string;
|
|
51
66
|
data: BodyType<SettingDto>;
|
|
52
67
|
}, TContext>;
|
|
53
|
-
|
|
68
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
69
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>, TError, {
|
|
54
70
|
userId: string;
|
|
55
71
|
id: string;
|
|
56
72
|
data: BodyType<SettingDto>;
|
|
@@ -58,12 +74,14 @@ export declare const useUpdateByUserIdAndId: <TError = ErrorType<void>, TContext
|
|
|
58
74
|
/**
|
|
59
75
|
* @summary Delete a Setting by id
|
|
60
76
|
*/
|
|
61
|
-
export declare const
|
|
77
|
+
export declare const getDeletePrivateSettingByIdUrl: (userId: string, id: string) => string;
|
|
78
|
+
export declare const useDeletePrivateSettingByIdHook: () => ((userId: string, id: string, options?: RequestInit) => Promise<SettingDto>);
|
|
62
79
|
export declare const useDeletePrivateSettingByIdMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
63
80
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>, TError, {
|
|
64
81
|
userId: string;
|
|
65
82
|
id: string;
|
|
66
83
|
}, TContext>;
|
|
84
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
67
85
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>, TError, {
|
|
68
86
|
userId: string;
|
|
69
87
|
id: string;
|
|
@@ -78,40 +96,55 @@ export declare const useDeletePrivateSettingById: <TError = ErrorType<void>, TCo
|
|
|
78
96
|
userId: string;
|
|
79
97
|
id: string;
|
|
80
98
|
}, TContext>;
|
|
81
|
-
|
|
99
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
100
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>, TError, {
|
|
82
101
|
userId: string;
|
|
83
102
|
id: string;
|
|
84
103
|
}, TContext>;
|
|
85
104
|
/**
|
|
86
105
|
* @summary Get a users Setting by id
|
|
87
106
|
*/
|
|
88
|
-
export declare const
|
|
107
|
+
export declare const getGetPublicSettingByUserAndIdUrl: (appShortName: string, id: string) => string;
|
|
108
|
+
export declare const useGetPublicSettingByUserAndIdHook: () => ((appShortName: string, id: string, options?: RequestInit) => Promise<SettingDto>);
|
|
89
109
|
export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
|
|
90
110
|
export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError = ErrorType<void>>(appShortName: string, id: string, options?: {
|
|
91
111
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData>>;
|
|
112
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
92
113
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData> & {
|
|
93
|
-
queryKey: QueryKey
|
|
114
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
94
115
|
};
|
|
95
116
|
export type GetPublicSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>;
|
|
96
117
|
export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
118
|
+
export declare function useGetPublicSettingByUserAndId<TData = Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError = ErrorType<void>>(appShortName: string, id: string, options: {
|
|
119
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>, 'initialData'>;
|
|
120
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
121
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
122
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
123
|
+
};
|
|
124
|
+
export declare function useGetPublicSettingByUserAndId<TData = Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError = ErrorType<void>>(appShortName: string, id: string, options?: {
|
|
125
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>, 'initialData'>;
|
|
126
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
127
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
128
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
129
|
+
};
|
|
130
|
+
export declare function useGetPublicSettingByUserAndId<TData = Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError = ErrorType<void>>(appShortName: string, id: string, options?: {
|
|
101
131
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData>>;
|
|
102
|
-
|
|
103
|
-
|
|
132
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
133
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
134
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
104
135
|
};
|
|
105
136
|
/**
|
|
106
137
|
* @summary Update a Setting for a given appShortName by id
|
|
107
138
|
*/
|
|
108
|
-
export declare const
|
|
139
|
+
export declare const getUpdatePublicSettingByAppShortNameAndIdUrl: (appShortName: string, id: string) => string;
|
|
140
|
+
export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => ((appShortName: string, id: string, settingDto: SettingDto, options?: RequestInit) => Promise<SettingDto>);
|
|
109
141
|
export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
110
142
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>, TError, {
|
|
111
143
|
appShortName: string;
|
|
112
144
|
id: string;
|
|
113
145
|
data: BodyType<SettingDto>;
|
|
114
146
|
}, TContext>;
|
|
147
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
115
148
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>, TError, {
|
|
116
149
|
appShortName: string;
|
|
117
150
|
id: string;
|
|
@@ -129,7 +162,8 @@ export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = ErrorT
|
|
|
129
162
|
id: string;
|
|
130
163
|
data: BodyType<SettingDto>;
|
|
131
164
|
}, TContext>;
|
|
132
|
-
|
|
165
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
166
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>, TError, {
|
|
133
167
|
appShortName: string;
|
|
134
168
|
id: string;
|
|
135
169
|
data: BodyType<SettingDto>;
|
|
@@ -137,12 +171,14 @@ export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = ErrorT
|
|
|
137
171
|
/**
|
|
138
172
|
* @summary Delete a Setting for a appShortName by id
|
|
139
173
|
*/
|
|
140
|
-
export declare const
|
|
174
|
+
export declare const getDeletePublicSettingByIdUrl: (appShortName: string, id: string) => string;
|
|
175
|
+
export declare const useDeletePublicSettingByIdHook: () => ((appShortName: string, id: string, options?: RequestInit) => Promise<SettingDto>);
|
|
141
176
|
export declare const useDeletePublicSettingByIdMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
142
177
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>, TError, {
|
|
143
178
|
appShortName: string;
|
|
144
179
|
id: string;
|
|
145
180
|
}, TContext>;
|
|
181
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
146
182
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>, TError, {
|
|
147
183
|
appShortName: string;
|
|
148
184
|
id: string;
|
|
@@ -157,39 +193,54 @@ export declare const useDeletePublicSettingById: <TError = ErrorType<void>, TCon
|
|
|
157
193
|
appShortName: string;
|
|
158
194
|
id: string;
|
|
159
195
|
}, TContext>;
|
|
160
|
-
|
|
196
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
197
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>, TError, {
|
|
161
198
|
appShortName: string;
|
|
162
199
|
id: string;
|
|
163
200
|
}, TContext>;
|
|
164
201
|
/**
|
|
165
202
|
* @summary Get all Settings by userId
|
|
166
203
|
*/
|
|
167
|
-
export declare const
|
|
204
|
+
export declare const getGetSettingsByUserIdUrl: (userId: string) => string;
|
|
205
|
+
export declare const useGetSettingsByUserIdHook: () => ((userId: string, options?: RequestInit) => Promise<SettingDto[]>);
|
|
168
206
|
export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
|
|
169
207
|
export declare const useGetSettingsByUserIdQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError = ErrorType<void>>(userId: string, options?: {
|
|
170
208
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData>>;
|
|
209
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
171
210
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData> & {
|
|
172
|
-
queryKey: QueryKey
|
|
211
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
173
212
|
};
|
|
174
213
|
export type GetSettingsByUserIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>;
|
|
175
214
|
export type GetSettingsByUserIdQueryError = ErrorType<void>;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
215
|
+
export declare function useGetSettingsByUserId<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError = ErrorType<void>>(userId: string, options: {
|
|
216
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>, 'initialData'>;
|
|
217
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
218
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
219
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
220
|
+
};
|
|
221
|
+
export declare function useGetSettingsByUserId<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError = ErrorType<void>>(userId: string, options?: {
|
|
222
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>, 'initialData'>;
|
|
223
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
224
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
225
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
226
|
+
};
|
|
227
|
+
export declare function useGetSettingsByUserId<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError = ErrorType<void>>(userId: string, options?: {
|
|
180
228
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData>>;
|
|
181
|
-
|
|
182
|
-
|
|
229
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
230
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
231
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
183
232
|
};
|
|
184
233
|
/**
|
|
185
234
|
* @summary Create a Setting for a given user
|
|
186
235
|
*/
|
|
187
|
-
export declare const
|
|
236
|
+
export declare const getCreateSettingByUserIdUrl: (userId: string) => string;
|
|
237
|
+
export declare const useCreateSettingByUserIdHook: () => ((userId: string, settingDto: SettingDto, options?: RequestInit) => Promise<SettingDto>);
|
|
188
238
|
export declare const useCreateSettingByUserIdMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
189
239
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>, TError, {
|
|
190
240
|
userId: string;
|
|
191
241
|
data: BodyType<SettingDto>;
|
|
192
242
|
}, TContext>;
|
|
243
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
193
244
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>, TError, {
|
|
194
245
|
userId: string;
|
|
195
246
|
data: BodyType<SettingDto>;
|
|
@@ -205,39 +256,54 @@ export declare const useCreateSettingByUserId: <TError = ErrorType<void>, TConte
|
|
|
205
256
|
userId: string;
|
|
206
257
|
data: BodyType<SettingDto>;
|
|
207
258
|
}, TContext>;
|
|
208
|
-
|
|
259
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
260
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>, TError, {
|
|
209
261
|
userId: string;
|
|
210
262
|
data: BodyType<SettingDto>;
|
|
211
263
|
}, TContext>;
|
|
212
264
|
/**
|
|
213
265
|
* @summary Get all public or mine Settings by appShortName
|
|
214
266
|
*/
|
|
215
|
-
export declare const
|
|
267
|
+
export declare const getGetSettingsByAppShortNameUrl: (appShortName: string) => string;
|
|
268
|
+
export declare const useGetSettingsByAppShortNameHook: () => ((appShortName: string, options?: RequestInit) => Promise<SettingDto[]>);
|
|
216
269
|
export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
|
|
217
270
|
export declare const useGetSettingsByAppShortNameQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError = ErrorType<void>>(appShortName: string, options?: {
|
|
218
271
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData>>;
|
|
272
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
219
273
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData> & {
|
|
220
|
-
queryKey: QueryKey
|
|
274
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
221
275
|
};
|
|
222
276
|
export type GetSettingsByAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>;
|
|
223
277
|
export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
278
|
+
export declare function useGetSettingsByAppShortName<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError = ErrorType<void>>(appShortName: string, options: {
|
|
279
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>, 'initialData'>;
|
|
280
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
281
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
282
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
283
|
+
};
|
|
284
|
+
export declare function useGetSettingsByAppShortName<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError = ErrorType<void>>(appShortName: string, options?: {
|
|
285
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>, 'initialData'>;
|
|
286
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
287
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
288
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
289
|
+
};
|
|
290
|
+
export declare function useGetSettingsByAppShortName<TData = Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError = ErrorType<void>>(appShortName: string, options?: {
|
|
228
291
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData>>;
|
|
229
|
-
|
|
230
|
-
|
|
292
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
293
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
294
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
231
295
|
};
|
|
232
296
|
/**
|
|
233
297
|
* @summary Create a Setting for a given appShortName
|
|
234
298
|
*/
|
|
235
|
-
export declare const
|
|
299
|
+
export declare const getCreatePublicSettingByUserIdUrl: (appShortName: string) => string;
|
|
300
|
+
export declare const useCreatePublicSettingByUserIdHook: () => ((appShortName: string, settingDto: SettingDto, options?: RequestInit) => Promise<SettingDto>);
|
|
236
301
|
export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
237
302
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>, TError, {
|
|
238
303
|
appShortName: string;
|
|
239
304
|
data: BodyType<SettingDto>;
|
|
240
305
|
}, TContext>;
|
|
306
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
241
307
|
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>, TError, {
|
|
242
308
|
appShortName: string;
|
|
243
309
|
data: BodyType<SettingDto>;
|
|
@@ -253,7 +319,8 @@ export declare const useCreatePublicSettingByUserId: <TError = ErrorType<void>,
|
|
|
253
319
|
appShortName: string;
|
|
254
320
|
data: BodyType<SettingDto>;
|
|
255
321
|
}, TContext>;
|
|
256
|
-
|
|
322
|
+
request?: SecondParameter<ReturnType<typeof useCustomClient>>;
|
|
323
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>, TError, {
|
|
257
324
|
appShortName: string;
|
|
258
325
|
data: BodyType<SettingDto>;
|
|
259
326
|
}, TContext>;
|
|
@@ -7,3 +7,7 @@ export * from './api/environment-controller/environment-controller';
|
|
|
7
7
|
export * from './model';
|
|
8
8
|
export * from './api/roma-configuration-controller/roma-configuration-controller';
|
|
9
9
|
export * from './api/feedback-controller/feedback-controller';
|
|
10
|
+
export * from './api/alarm-group-controller/alarm-group-controller';
|
|
11
|
+
export * from './api/alarm-controller/alarm-controller';
|
|
12
|
+
export * from './api/alarm-sse-controller/alarm-sse-controller';
|
|
13
|
+
export * from './api/health-controller/health-controller';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Tops Roma Rest API
|
|
5
|
+
* Tops Roma Rest API
|
|
6
|
+
* OpenAPI spec version: v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export type AdminDtoAdminType = (typeof AdminDtoAdminType)[keyof typeof AdminDtoAdminType];
|
|
9
|
+
export declare const AdminDtoAdminType: {
|
|
10
|
+
readonly ServicePrincipal: "ServicePrincipal";
|
|
11
|
+
readonly User: "User";
|
|
12
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AlarmDtoPayload } from './alarmDtoPayload';
|
|
2
|
+
import { AlarmDtoSeverity } from './alarmDtoSeverity';
|
|
3
|
+
import { AlarmDtoState } from './alarmDtoState';
|
|
4
|
+
export interface AlarmDto {
|
|
5
|
+
id?: string;
|
|
6
|
+
source?: string;
|
|
7
|
+
subject?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
severity?: AlarmDtoSeverity;
|
|
10
|
+
state?: AlarmDtoState;
|
|
11
|
+
targetGroups?: string[];
|
|
12
|
+
targetUsers?: string[];
|
|
13
|
+
correlationId?: string;
|
|
14
|
+
payload?: AlarmDtoPayload;
|
|
15
|
+
raisedAt?: string;
|
|
16
|
+
clearedAt?: string;
|
|
17
|
+
clearedBy?: string;
|
|
18
|
+
clearedReason?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Tops Roma Rest API
|
|
5
|
+
* Tops Roma Rest API
|
|
6
|
+
* OpenAPI spec version: v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export type AlarmDtoSeverity = (typeof AlarmDtoSeverity)[keyof typeof AlarmDtoSeverity];
|
|
9
|
+
export declare const AlarmDtoSeverity: {
|
|
10
|
+
readonly LOW: "LOW";
|
|
11
|
+
readonly MEDIUM: "MEDIUM";
|
|
12
|
+
readonly HIGH: "HIGH";
|
|
13
|
+
readonly CRITICAL: "CRITICAL";
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.5.3 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Tops Roma Rest API
|
|
5
|
+
* Tops Roma Rest API
|
|
6
|
+
* OpenAPI spec version: v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
export type AlarmDtoState = (typeof AlarmDtoState)[keyof typeof AlarmDtoState];
|
|
9
|
+
export declare const AlarmDtoState: {
|
|
10
|
+
readonly ACTIVE: "ACTIVE";
|
|
11
|
+
readonly CLEARED: "CLEARED";
|
|
12
|
+
};
|