@equinor/roma-framework 1.0.0 → 1.0.1
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/dev-portal/package.json +1 -1
- package/index.d.ts +13 -0
- package/lib/api/fetcher.d.ts +21 -0
- package/lib/api/ms-graph/api/group/find-group-members.d.ts +2 -0
- package/lib/api/ms-graph/api/user/find-user-by-shortname.d.ts +1 -0
- package/lib/api/ms-graph/api/user/find-users-by-mail.d.ts +2 -0
- package/lib/api/ms-graph/index.d.ts +11 -0
- package/lib/api/ms-graph/model/error.d.ts +11 -0
- package/lib/api/ms-graph/model/group-membership.d.ts +8 -0
- package/lib/api/ms-graph/model/user.d.ts +18 -0
- package/lib/api/roma/api/app-controller/app-controller.d.ts +121 -0
- package/lib/api/roma/api/category-controller/category-controller.d.ts +93 -0
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +26 -0
- package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +30 -0
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +161 -0
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +20 -0
- package/lib/api/roma/api/service-controller/service-controller.d.ts +93 -0
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +260 -0
- package/lib/api/roma/index.d.ts +9 -0
- package/lib/api/roma/model/appDto.d.ts +19 -0
- package/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/lib/api/roma/model/environmentDto.d.ts +10 -0
- package/lib/api/roma/model/feedbackDetailsDto.d.ts +13 -0
- package/lib/api/roma/model/feedbackDto.d.ts +6 -0
- package/lib/api/roma/model/feedbackFeedbackDto.d.ts +13 -0
- package/lib/api/roma/model/feedbackResponseDto.d.ts +4 -0
- package/lib/api/roma/model/feedbackResponseIssueDto.d.ts +11 -0
- package/lib/api/roma/model/feedbackSolutionDto.d.ts +10 -0
- package/lib/api/roma/model/getAllApps200.d.ts +10 -0
- package/lib/api/roma/model/getAllCategories200.d.ts +10 -0
- package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/lib/api/roma/model/getAllServices200.d.ts +10 -0
- package/lib/api/roma/model/getSettingsByAppShortName200.d.ts +10 -0
- package/lib/api/roma/model/getSettingsByUserId200.d.ts +10 -0
- package/lib/api/roma/model/index.d.ts +31 -0
- package/lib/api/roma/model/romaConfigurationDto.d.ts +7 -0
- package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +8 -0
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/lib/api/roma/model/settingDto.d.ts +9 -0
- package/lib/api/roma/model/settingDtoValue.d.ts +10 -0
- package/lib/api/roma/model/uploadBundleBody.d.ts +10 -0
- package/lib/api/roma/model/versionDto.d.ts +12 -0
- package/lib/api/roma/use-client.d.ts +34 -0
- package/lib/api/util.d.ts +1 -0
- package/lib/app-provider.d.ts +32 -0
- package/lib/dev-portal/AppLoader.d.ts +14 -0
- package/lib/dev-portal/AppViewer.d.ts +6 -0
- package/lib/dev-portal/EquinorLoader.d.ts +12 -0
- package/lib/dev-portal/ErrorViewer.d.ts +20 -0
- package/lib/dev-portal/Header.d.ts +2 -0
- package/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
- package/lib/dev-portal/Navigation.d.ts +5 -0
- package/lib/dev-portal/Root.d.ts +5 -0
- package/lib/dev-portal/config.d.ts +3 -0
- package/lib/dev-portal/index.d.ts +13 -0
- package/lib/eds-event-provider.d.ts +6 -0
- package/lib/hooks/use-get-api-roles.d.ts +14 -0
- package/lib/hooks/use-has-api-role.d.ts +7 -0
- package/lib/make-component.d.ts +12 -0
- package/lib/query/persister.d.ts +6 -0
- package/lib/style-provider.d.ts +7 -0
- package/package.json +1 -1
- package/roma-framework.mjs +15 -11
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { GetAllServices200, ServiceDto } from '../../model';
|
|
3
|
+
import { ErrorType, BodyType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
/**
|
|
7
|
+
* @summary List services for current environment
|
|
8
|
+
*/
|
|
9
|
+
export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<GetAllServices200>;
|
|
10
|
+
export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
|
|
11
|
+
export declare const useGetAllServicesQueryOptions: <TData = GetAllServices200, TError = import('../../use-client').HttpError>(options?: {
|
|
12
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
|
|
13
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData> & {
|
|
14
|
+
queryKey: QueryKey;
|
|
15
|
+
};
|
|
16
|
+
export type GetAllServicesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>;
|
|
17
|
+
export type GetAllServicesQueryError = ErrorType<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @summary List services for current environment
|
|
20
|
+
*/
|
|
21
|
+
export declare const useGetAllServices: <TData = GetAllServices200, TError = import('../../use-client').HttpError>(options?: {
|
|
22
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
|
|
23
|
+
}) => UseQueryResult<TData, TError> & {
|
|
24
|
+
queryKey: QueryKey;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @summary Create or update service for current environment
|
|
28
|
+
*/
|
|
29
|
+
export declare const useCreateOrUpdateServiceHook: () => (serviceDto: BodyType<ServiceDto>) => Promise<ServiceDto>;
|
|
30
|
+
export declare const useCreateOrUpdateServiceMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
31
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
32
|
+
data: BodyType<ServiceDto>;
|
|
33
|
+
}, TContext>;
|
|
34
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
35
|
+
data: BodyType<ServiceDto>;
|
|
36
|
+
}, TContext>;
|
|
37
|
+
export type CreateOrUpdateServiceMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>>;
|
|
38
|
+
export type CreateOrUpdateServiceMutationBody = BodyType<ServiceDto>;
|
|
39
|
+
export type CreateOrUpdateServiceMutationError = ErrorType<void>;
|
|
40
|
+
/**
|
|
41
|
+
* @summary Create or update service for current environment
|
|
42
|
+
*/
|
|
43
|
+
export declare const useCreateOrUpdateService: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
44
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
45
|
+
data: BodyType<ServiceDto>;
|
|
46
|
+
}, TContext>;
|
|
47
|
+
}) => import('@tanstack/react-query').UseMutationResult<ServiceDto, TError, {
|
|
48
|
+
data: BodyType<ServiceDto>;
|
|
49
|
+
}, TContext>;
|
|
50
|
+
/**
|
|
51
|
+
* @summary Get service by key
|
|
52
|
+
*/
|
|
53
|
+
export declare const useGetServiceByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<ServiceDto>;
|
|
54
|
+
export declare const getGetServiceByKeyQueryKey: (key: string) => readonly [`/api/apps/services/key/${string}`];
|
|
55
|
+
export declare const useGetServiceByKeyQueryOptions: <TData = ServiceDto, TError = import('../../use-client').HttpError>(key: string, options?: {
|
|
56
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
|
|
57
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData> & {
|
|
58
|
+
queryKey: QueryKey;
|
|
59
|
+
};
|
|
60
|
+
export type GetServiceByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>>;
|
|
61
|
+
export type GetServiceByKeyQueryError = ErrorType<void>;
|
|
62
|
+
/**
|
|
63
|
+
* @summary Get service by key
|
|
64
|
+
*/
|
|
65
|
+
export declare const useGetServiceByKey: <TData = ServiceDto, TError = import('../../use-client').HttpError>(key: string, options?: {
|
|
66
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
|
|
67
|
+
}) => UseQueryResult<TData, TError> & {
|
|
68
|
+
queryKey: QueryKey;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* @summary Delete service by key
|
|
72
|
+
*/
|
|
73
|
+
export declare const useDeleteServiceByKeyHook: () => (key: string) => Promise<void>;
|
|
74
|
+
export declare const useDeleteServiceByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
75
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
76
|
+
key: string;
|
|
77
|
+
}, TContext>;
|
|
78
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
79
|
+
key: string;
|
|
80
|
+
}, TContext>;
|
|
81
|
+
export type DeleteServiceByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>>;
|
|
82
|
+
export type DeleteServiceByKeyMutationError = ErrorType<unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* @summary Delete service by key
|
|
85
|
+
*/
|
|
86
|
+
export declare const useDeleteServiceByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
87
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
88
|
+
key: string;
|
|
89
|
+
}, TContext>;
|
|
90
|
+
}) => import('@tanstack/react-query').UseMutationResult<void, TError, {
|
|
91
|
+
key: string;
|
|
92
|
+
}, TContext>;
|
|
93
|
+
export {};
|
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { GetSettingsByAppShortName200, GetSettingsByUserId200, SettingDto } from '../../model';
|
|
3
|
+
import { ErrorType, BodyType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
/**
|
|
7
|
+
* @summary Get a users Setting by id
|
|
8
|
+
*/
|
|
9
|
+
export declare const useGetSettingByUserAndIdHook: () => (userId: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
10
|
+
export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
|
|
11
|
+
export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import('../../use-client').HttpError>(userId: string, id: string, options?: {
|
|
12
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData>>;
|
|
13
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData> & {
|
|
14
|
+
queryKey: QueryKey;
|
|
15
|
+
};
|
|
16
|
+
export type GetSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>;
|
|
17
|
+
export type GetSettingByUserAndIdQueryError = ErrorType<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @summary Get a users Setting by id
|
|
20
|
+
*/
|
|
21
|
+
export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(userId: string, id: string, options?: {
|
|
22
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>, TError, TData>>;
|
|
23
|
+
}) => UseQueryResult<TData, TError> & {
|
|
24
|
+
queryKey: QueryKey;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @summary Update a Setting by id
|
|
28
|
+
*/
|
|
29
|
+
export declare const useUpdateByUserIdAndIdHook: () => (userId: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
30
|
+
export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
31
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>, TError, {
|
|
32
|
+
userId: string;
|
|
33
|
+
id: string;
|
|
34
|
+
data: BodyType<SettingDto>;
|
|
35
|
+
}, TContext>;
|
|
36
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>, TError, {
|
|
37
|
+
userId: string;
|
|
38
|
+
id: string;
|
|
39
|
+
data: BodyType<SettingDto>;
|
|
40
|
+
}, TContext>;
|
|
41
|
+
export type UpdateByUserIdAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>>;
|
|
42
|
+
export type UpdateByUserIdAndIdMutationBody = BodyType<SettingDto>;
|
|
43
|
+
export type UpdateByUserIdAndIdMutationError = ErrorType<void>;
|
|
44
|
+
/**
|
|
45
|
+
* @summary Update a Setting by id
|
|
46
|
+
*/
|
|
47
|
+
export declare const useUpdateByUserIdAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
48
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>, TError, {
|
|
49
|
+
userId: string;
|
|
50
|
+
id: string;
|
|
51
|
+
data: BodyType<SettingDto>;
|
|
52
|
+
}, TContext>;
|
|
53
|
+
}) => import('@tanstack/react-query').UseMutationResult<SettingDto, TError, {
|
|
54
|
+
userId: string;
|
|
55
|
+
id: string;
|
|
56
|
+
data: BodyType<SettingDto>;
|
|
57
|
+
}, TContext>;
|
|
58
|
+
/**
|
|
59
|
+
* @summary Delete a Setting by id
|
|
60
|
+
*/
|
|
61
|
+
export declare const useDeletePrivateSettingByIdHook: () => (userId: string, id: string) => Promise<SettingDto>;
|
|
62
|
+
export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
63
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>, TError, {
|
|
64
|
+
userId: string;
|
|
65
|
+
id: string;
|
|
66
|
+
}, TContext>;
|
|
67
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>, TError, {
|
|
68
|
+
userId: string;
|
|
69
|
+
id: string;
|
|
70
|
+
}, TContext>;
|
|
71
|
+
export type DeletePrivateSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>>;
|
|
72
|
+
export type DeletePrivateSettingByIdMutationError = ErrorType<void>;
|
|
73
|
+
/**
|
|
74
|
+
* @summary Delete a Setting by id
|
|
75
|
+
*/
|
|
76
|
+
export declare const useDeletePrivateSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
77
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>, TError, {
|
|
78
|
+
userId: string;
|
|
79
|
+
id: string;
|
|
80
|
+
}, TContext>;
|
|
81
|
+
}) => import('@tanstack/react-query').UseMutationResult<SettingDto, TError, {
|
|
82
|
+
userId: string;
|
|
83
|
+
id: string;
|
|
84
|
+
}, TContext>;
|
|
85
|
+
/**
|
|
86
|
+
* @summary Get a users Setting by id
|
|
87
|
+
*/
|
|
88
|
+
export declare const useGetPublicSettingByUserAndIdHook: () => (appShortName: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
89
|
+
export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
|
|
90
|
+
export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import('../../use-client').HttpError>(appShortName: string, id: string, options?: {
|
|
91
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData>>;
|
|
92
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData> & {
|
|
93
|
+
queryKey: QueryKey;
|
|
94
|
+
};
|
|
95
|
+
export type GetPublicSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>;
|
|
96
|
+
export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
|
|
97
|
+
/**
|
|
98
|
+
* @summary Get a users Setting by id
|
|
99
|
+
*/
|
|
100
|
+
export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(appShortName: string, id: string, options?: {
|
|
101
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>, TError, TData>>;
|
|
102
|
+
}) => UseQueryResult<TData, TError> & {
|
|
103
|
+
queryKey: QueryKey;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* @summary Update a Setting for a given appShortName by id
|
|
107
|
+
*/
|
|
108
|
+
export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => (appShortName: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
109
|
+
export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
110
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>, TError, {
|
|
111
|
+
appShortName: string;
|
|
112
|
+
id: string;
|
|
113
|
+
data: BodyType<SettingDto>;
|
|
114
|
+
}, TContext>;
|
|
115
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>, TError, {
|
|
116
|
+
appShortName: string;
|
|
117
|
+
id: string;
|
|
118
|
+
data: BodyType<SettingDto>;
|
|
119
|
+
}, TContext>;
|
|
120
|
+
export type UpdatePublicSettingByAppShortNameAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>>;
|
|
121
|
+
export type UpdatePublicSettingByAppShortNameAndIdMutationBody = BodyType<SettingDto>;
|
|
122
|
+
export type UpdatePublicSettingByAppShortNameAndIdMutationError = ErrorType<void>;
|
|
123
|
+
/**
|
|
124
|
+
* @summary Update a Setting for a given appShortName by id
|
|
125
|
+
*/
|
|
126
|
+
export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
127
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>, TError, {
|
|
128
|
+
appShortName: string;
|
|
129
|
+
id: string;
|
|
130
|
+
data: BodyType<SettingDto>;
|
|
131
|
+
}, TContext>;
|
|
132
|
+
}) => import('@tanstack/react-query').UseMutationResult<SettingDto, TError, {
|
|
133
|
+
appShortName: string;
|
|
134
|
+
id: string;
|
|
135
|
+
data: BodyType<SettingDto>;
|
|
136
|
+
}, TContext>;
|
|
137
|
+
/**
|
|
138
|
+
* @summary Delete a Setting for a appShortName by id
|
|
139
|
+
*/
|
|
140
|
+
export declare const useDeletePublicSettingByIdHook: () => (appShortName: string, id: string) => Promise<SettingDto>;
|
|
141
|
+
export declare const useDeletePublicSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
142
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>, TError, {
|
|
143
|
+
appShortName: string;
|
|
144
|
+
id: string;
|
|
145
|
+
}, TContext>;
|
|
146
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>, TError, {
|
|
147
|
+
appShortName: string;
|
|
148
|
+
id: string;
|
|
149
|
+
}, TContext>;
|
|
150
|
+
export type DeletePublicSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>>;
|
|
151
|
+
export type DeletePublicSettingByIdMutationError = ErrorType<void>;
|
|
152
|
+
/**
|
|
153
|
+
* @summary Delete a Setting for a appShortName by id
|
|
154
|
+
*/
|
|
155
|
+
export declare const useDeletePublicSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
156
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>, TError, {
|
|
157
|
+
appShortName: string;
|
|
158
|
+
id: string;
|
|
159
|
+
}, TContext>;
|
|
160
|
+
}) => import('@tanstack/react-query').UseMutationResult<SettingDto, TError, {
|
|
161
|
+
appShortName: string;
|
|
162
|
+
id: string;
|
|
163
|
+
}, TContext>;
|
|
164
|
+
/**
|
|
165
|
+
* @summary Get all Settings by userId
|
|
166
|
+
*/
|
|
167
|
+
export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<GetSettingsByUserId200>;
|
|
168
|
+
export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
|
|
169
|
+
export declare const useGetSettingsByUserIdQueryOptions: <TData = GetSettingsByUserId200, TError = import('../../use-client').HttpError>(userId: string, options?: {
|
|
170
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData>>;
|
|
171
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData> & {
|
|
172
|
+
queryKey: QueryKey;
|
|
173
|
+
};
|
|
174
|
+
export type GetSettingsByUserIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>;
|
|
175
|
+
export type GetSettingsByUserIdQueryError = ErrorType<void>;
|
|
176
|
+
/**
|
|
177
|
+
* @summary Get all Settings by userId
|
|
178
|
+
*/
|
|
179
|
+
export declare const useGetSettingsByUserId: <TData = GetSettingsByUserId200, TError = import('../../use-client').HttpError>(userId: string, options?: {
|
|
180
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>, TError, TData>>;
|
|
181
|
+
}) => UseQueryResult<TData, TError> & {
|
|
182
|
+
queryKey: QueryKey;
|
|
183
|
+
};
|
|
184
|
+
/**
|
|
185
|
+
* @summary Create a Setting for a given user
|
|
186
|
+
*/
|
|
187
|
+
export declare const useCreateSettingByUserIdHook: () => (userId: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
188
|
+
export declare const useCreateSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
189
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>, TError, {
|
|
190
|
+
userId: string;
|
|
191
|
+
data: BodyType<SettingDto>;
|
|
192
|
+
}, TContext>;
|
|
193
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>, TError, {
|
|
194
|
+
userId: string;
|
|
195
|
+
data: BodyType<SettingDto>;
|
|
196
|
+
}, TContext>;
|
|
197
|
+
export type CreateSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>>;
|
|
198
|
+
export type CreateSettingByUserIdMutationBody = BodyType<SettingDto>;
|
|
199
|
+
export type CreateSettingByUserIdMutationError = ErrorType<void>;
|
|
200
|
+
/**
|
|
201
|
+
* @summary Create a Setting for a given user
|
|
202
|
+
*/
|
|
203
|
+
export declare const useCreateSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
204
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>, TError, {
|
|
205
|
+
userId: string;
|
|
206
|
+
data: BodyType<SettingDto>;
|
|
207
|
+
}, TContext>;
|
|
208
|
+
}) => import('@tanstack/react-query').UseMutationResult<SettingDto, TError, {
|
|
209
|
+
userId: string;
|
|
210
|
+
data: BodyType<SettingDto>;
|
|
211
|
+
}, TContext>;
|
|
212
|
+
/**
|
|
213
|
+
* @summary Get all public or mine Settings by appShortName
|
|
214
|
+
*/
|
|
215
|
+
export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<GetSettingsByAppShortName200>;
|
|
216
|
+
export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
|
|
217
|
+
export declare const useGetSettingsByAppShortNameQueryOptions: <TData = GetSettingsByAppShortName200, TError = import('../../use-client').HttpError>(appShortName: string, options?: {
|
|
218
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData>>;
|
|
219
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData> & {
|
|
220
|
+
queryKey: QueryKey;
|
|
221
|
+
};
|
|
222
|
+
export type GetSettingsByAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>;
|
|
223
|
+
export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
|
|
224
|
+
/**
|
|
225
|
+
* @summary Get all public or mine Settings by appShortName
|
|
226
|
+
*/
|
|
227
|
+
export declare const useGetSettingsByAppShortName: <TData = GetSettingsByAppShortName200, TError = import('../../use-client').HttpError>(appShortName: string, options?: {
|
|
228
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>, TError, TData>>;
|
|
229
|
+
}) => UseQueryResult<TData, TError> & {
|
|
230
|
+
queryKey: QueryKey;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* @summary Create a Setting for a given appShortName
|
|
234
|
+
*/
|
|
235
|
+
export declare const useCreatePublicSettingByUserIdHook: () => (appShortName: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
236
|
+
export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
237
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>, TError, {
|
|
238
|
+
appShortName: string;
|
|
239
|
+
data: BodyType<SettingDto>;
|
|
240
|
+
}, TContext>;
|
|
241
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>, TError, {
|
|
242
|
+
appShortName: string;
|
|
243
|
+
data: BodyType<SettingDto>;
|
|
244
|
+
}, TContext>;
|
|
245
|
+
export type CreatePublicSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>>;
|
|
246
|
+
export type CreatePublicSettingByUserIdMutationBody = BodyType<SettingDto>;
|
|
247
|
+
export type CreatePublicSettingByUserIdMutationError = ErrorType<void>;
|
|
248
|
+
/**
|
|
249
|
+
* @summary Create a Setting for a given appShortName
|
|
250
|
+
*/
|
|
251
|
+
export declare const useCreatePublicSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
252
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>, TError, {
|
|
253
|
+
appShortName: string;
|
|
254
|
+
data: BodyType<SettingDto>;
|
|
255
|
+
}, TContext>;
|
|
256
|
+
}) => import('@tanstack/react-query').UseMutationResult<SettingDto, TError, {
|
|
257
|
+
appShortName: string;
|
|
258
|
+
data: BodyType<SettingDto>;
|
|
259
|
+
}, TContext>;
|
|
260
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './api/setting-controller/setting-controller';
|
|
2
|
+
export * from './api/app-controller/app-controller';
|
|
3
|
+
export * from './api/service-controller/service-controller';
|
|
4
|
+
export * from './api/category-controller/category-controller';
|
|
5
|
+
export * from './api/server-side-event-controller/server-side-event-controller';
|
|
6
|
+
export * from './api/environment-controller/environment-controller';
|
|
7
|
+
export * from './model';
|
|
8
|
+
export * from './api/roma-configuration-controller/roma-configuration-controller';
|
|
9
|
+
export * from './api/feedback-controller/feedback-controller';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CategoryDto } from './categoryDto';
|
|
2
|
+
import { VersionDto } from './versionDto';
|
|
3
|
+
export interface AppDto {
|
|
4
|
+
accentColor?: string;
|
|
5
|
+
category?: CategoryDto;
|
|
6
|
+
categoryId: string;
|
|
7
|
+
description: string;
|
|
8
|
+
entry: string;
|
|
9
|
+
hide?: boolean;
|
|
10
|
+
icon?: string;
|
|
11
|
+
key: string;
|
|
12
|
+
name: string;
|
|
13
|
+
order?: number;
|
|
14
|
+
publishedDate?: string;
|
|
15
|
+
shortName: string;
|
|
16
|
+
tags?: string[];
|
|
17
|
+
type: string;
|
|
18
|
+
version: VersionDto;
|
|
19
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
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 interface CategoryDto {
|
|
9
|
+
color?: string;
|
|
10
|
+
defaultIcon?: string;
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
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 interface FeedbackDetailsDto {
|
|
9
|
+
description: string;
|
|
10
|
+
includeUsername?: boolean;
|
|
11
|
+
title: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
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 interface FeedbackFeedbackDto {
|
|
9
|
+
description: string;
|
|
10
|
+
includeUsername?: boolean;
|
|
11
|
+
title: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
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 GetAllRomaConfigurationTypes200Item = (typeof GetAllRomaConfigurationTypes200Item)[keyof typeof GetAllRomaConfigurationTypes200Item];
|
|
9
|
+
export declare const GetAllRomaConfigurationTypes200Item: {
|
|
10
|
+
readonly servicebus: "servicebus";
|
|
11
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
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 * from './appDto';
|
|
9
|
+
export * from './categoryDto';
|
|
10
|
+
export * from './environmentDto';
|
|
11
|
+
export * from './feedbackDetailsDto';
|
|
12
|
+
export * from './feedbackDto';
|
|
13
|
+
export * from './feedbackFeedbackDto';
|
|
14
|
+
export * from './feedbackResponseDto';
|
|
15
|
+
export * from './feedbackResponseIssueDto';
|
|
16
|
+
export * from './feedbackSolutionDto';
|
|
17
|
+
export * from './getAllApps200';
|
|
18
|
+
export * from './getAllCategories200';
|
|
19
|
+
export * from './getAllRomaConfigurationTypes200Item';
|
|
20
|
+
export * from './getAllServices200';
|
|
21
|
+
export * from './getSettingsByAppShortName200';
|
|
22
|
+
export * from './getSettingsByUserId200';
|
|
23
|
+
export * from './romaConfigurationDto';
|
|
24
|
+
export * from './romaConfigurationDtoValue';
|
|
25
|
+
export * from './serverSentEventActivityLogDto';
|
|
26
|
+
export * from './serverSentEventStandardEventDto';
|
|
27
|
+
export * from './serviceDto';
|
|
28
|
+
export * from './settingDto';
|
|
29
|
+
export * from './settingDtoValue';
|
|
30
|
+
export * from './uploadBundleBody';
|
|
31
|
+
export * from './versionDto';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
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 interface ServiceDto {
|
|
9
|
+
defaultScopes: string[];
|
|
10
|
+
internal: boolean;
|
|
11
|
+
key: string;
|
|
12
|
+
name: string;
|
|
13
|
+
serviceName?: string;
|
|
14
|
+
type: string;
|
|
15
|
+
uri: string;
|
|
16
|
+
}
|