@equinor/roma-framework 0.0.11 → 0.0.12

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.
Files changed (61) hide show
  1. package/dev-portal/package.json +1 -1
  2. package/dev-portal/roma-framework.umd.js +29494 -12956
  3. package/lib/api/roma/api/app-controller/app-controller.d.ts +14 -20
  4. package/lib/api/roma/api/category-controller/category-controller.d.ts +14 -20
  5. package/lib/api/roma/api/environment-controller/environment-controller.d.ts +6 -12
  6. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +21 -27
  7. package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +6 -12
  8. package/lib/api/roma/api/service-controller/service-controller.d.ts +14 -20
  9. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +30 -36
  10. package/lib/api/roma/model/appDto.d.ts +3 -9
  11. package/lib/api/roma/model/environmentDto.d.ts +2 -8
  12. package/lib/api/roma/model/romaConfigurationDto.d.ts +2 -8
  13. package/lib/api/roma/model/settingDto.d.ts +2 -8
  14. package/lib/app-provider.d.ts +3 -2
  15. package/lib/dev-portal/AppLoader.d.ts +4 -1
  16. package/lib/dev-portal/EquinorLoader.d.ts +2 -1
  17. package/lib/dev-portal/ErrorViewer.d.ts +1 -0
  18. package/lib/dev-portal/HttpErrorViewer.d.ts +1 -0
  19. package/lib/eds-event-provider.d.ts +1 -0
  20. package/lib/make-component.d.ts +2 -1
  21. package/lib/query/persister.d.ts +1 -0
  22. package/lib/style-provider.d.ts +1 -0
  23. package/package.json +1 -1
  24. package/roma-framework.mjs +3 -4
  25. package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +0 -100
  26. package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +0 -100
  27. package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +0 -33
  28. package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +0 -168
  29. package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +0 -27
  30. package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +0 -100
  31. package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +0 -267
  32. package/dev-portal/lib/api/roma/index.d.ts +0 -8
  33. package/dev-portal/lib/api/roma/model/appDto.d.ts +0 -26
  34. package/dev-portal/lib/api/roma/model/categoryDto.d.ts +0 -13
  35. package/dev-portal/lib/api/roma/model/environmentDto.d.ts +0 -16
  36. package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +0 -11
  37. package/dev-portal/lib/api/roma/model/index.d.ts +0 -19
  38. package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +0 -14
  39. package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +0 -8
  40. package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +0 -8
  41. package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +0 -8
  42. package/dev-portal/lib/api/roma/model/serviceDto.d.ts +0 -16
  43. package/dev-portal/lib/api/roma/model/settingDto.d.ts +0 -16
  44. package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +0 -8
  45. package/dev-portal/lib/api/roma/model/versionDto.d.ts +0 -12
  46. package/dev-portal/lib/api/roma/use-client.d.ts +0 -34
  47. package/dev-portal/lib/app-provider.d.ts +0 -32
  48. package/dev-portal/lib/dev-portal/AppLoader.d.ts +0 -12
  49. package/dev-portal/lib/dev-portal/AppViewer.d.ts +0 -6
  50. package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +0 -12
  51. package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +0 -20
  52. package/dev-portal/lib/dev-portal/Header.d.ts +0 -2
  53. package/dev-portal/lib/dev-portal/Navigation.d.ts +0 -5
  54. package/dev-portal/lib/dev-portal/Root.d.ts +0 -5
  55. package/dev-portal/lib/dev-portal/config.d.ts +0 -3
  56. package/dev-portal/lib/dev-portal/index.d.ts +0 -13
  57. package/dev-portal/lib/eds-event-provider.d.ts +0 -6
  58. package/dev-portal/lib/make-component.d.ts +0 -12
  59. package/dev-portal/lib/query/persister.d.ts +0 -6
  60. package/dev-portal/lib/style-provider.d.ts +0 -7
  61. package/lib/api/fetcher.d.ts +0 -21
@@ -1,33 +0,0 @@
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
- import type { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
9
- import type { EnvironmentDto } from '../../model';
10
- import type { ErrorType } from '../../use-client';
11
- type AwaitedInput<T> = PromiseLike<T> | T;
12
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
- /**
14
- * @summary Get current environment
15
- */
16
- export declare const useGetCurrentEnvironmentHook: () => (signal?: AbortSignal) => Promise<EnvironmentDto>;
17
- export declare const getGetCurrentEnvironmentQueryKey: () => readonly ["/_discovery/environments/current"];
18
- export declare const useGetCurrentEnvironmentQueryOptions: <TData = EnvironmentDto, TError = import("../../use-client").HttpError>(options?: {
19
- query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
20
- } | undefined) => UseQueryOptions<EnvironmentDto, TError, TData, QueryKey> & {
21
- queryKey: QueryKey;
22
- };
23
- export type GetCurrentEnvironmentQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>>;
24
- export type GetCurrentEnvironmentQueryError = ErrorType<void>;
25
- /**
26
- * @summary Get current environment
27
- */
28
- export declare const useGetCurrentEnvironment: <TData = EnvironmentDto, TError = import("../../use-client").HttpError>(options?: {
29
- query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
30
- } | undefined) => UseQueryResult<TData, TError> & {
31
- queryKey: QueryKey;
32
- };
33
- export {};
@@ -1,168 +0,0 @@
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
- import type { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
9
- import type { RomaConfigurationDto, SettingDto } from '../../model';
10
- import type { BodyType, ErrorType } from '../../use-client';
11
- type AwaitedInput<T> = PromiseLike<T> | T;
12
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
- /**
14
- * @summary Get roma configuration by id
15
- */
16
- export declare const useGetRomaConfigurationByIdHook: () => (id: string, signal?: AbortSignal) => Promise<RomaConfigurationDto>;
17
- export declare const getGetRomaConfigurationByIdQueryKey: (id: string) => readonly [`/api/configurations/id/${string}`];
18
- export declare const useGetRomaConfigurationByIdQueryOptions: <TData = RomaConfigurationDto, TError = import("../../use-client").HttpError>(id: string, options?: {
19
- query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
20
- } | undefined) => UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey> & {
21
- queryKey: QueryKey;
22
- };
23
- export type GetRomaConfigurationByIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>>;
24
- export type GetRomaConfigurationByIdQueryError = ErrorType<void>;
25
- /**
26
- * @summary Get roma configuration by id
27
- */
28
- export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto, TError = import("../../use-client").HttpError>(id: string, options?: {
29
- query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
30
- } | undefined) => UseQueryResult<TData, TError> & {
31
- queryKey: QueryKey;
32
- };
33
- /**
34
- * @summary Update a roma configuration
35
- */
36
- export declare const useUpdateRomaConfigurationHook: () => (id: string, romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
37
- export declare const useUpdateRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
38
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
39
- id: string;
40
- data: BodyType<RomaConfigurationDto>;
41
- }, TContext> | undefined;
42
- } | undefined) => UseMutationOptions<RomaConfigurationDto, TError, {
43
- id: string;
44
- data: BodyType<RomaConfigurationDto>;
45
- }, TContext>;
46
- export type UpdateRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>>;
47
- export type UpdateRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
48
- export type UpdateRomaConfigurationMutationError = ErrorType<void>;
49
- /**
50
- * @summary Update a roma configuration
51
- */
52
- export declare const useUpdateRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
53
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
54
- id: string;
55
- data: BodyType<RomaConfigurationDto>;
56
- }, TContext> | undefined;
57
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<RomaConfigurationDto, TError, {
58
- id: string;
59
- data: BodyType<RomaConfigurationDto>;
60
- }, TContext>;
61
- /**
62
- * @summary Delete a roma configuration by id
63
- */
64
- export declare const useDeleteRomaConfigurationHook: () => (id: string) => Promise<SettingDto>;
65
- export declare const useDeleteRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
66
- mutation?: UseMutationOptions<SettingDto, TError, {
67
- id: string;
68
- }, TContext> | undefined;
69
- } | undefined) => UseMutationOptions<SettingDto, TError, {
70
- id: string;
71
- }, TContext>;
72
- export type DeleteRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>>;
73
- export type DeleteRomaConfigurationMutationError = ErrorType<void>;
74
- /**
75
- * @summary Delete a roma configuration by id
76
- */
77
- export declare const useDeleteRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
78
- mutation?: UseMutationOptions<SettingDto, TError, {
79
- id: string;
80
- }, TContext> | undefined;
81
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
82
- id: string;
83
- }, TContext>;
84
- /**
85
- * @summary Get all roma configurations
86
- */
87
- export declare const useGetAllRomaConfigurationHook: () => (signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
88
- export declare const getGetAllRomaConfigurationQueryKey: () => readonly ["/api/configurations"];
89
- export declare const useGetAllRomaConfigurationQueryOptions: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(options?: {
90
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
91
- } | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
92
- queryKey: QueryKey;
93
- };
94
- export type GetAllRomaConfigurationQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>>;
95
- export type GetAllRomaConfigurationQueryError = ErrorType<void>;
96
- /**
97
- * @summary Get all roma configurations
98
- */
99
- export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(options?: {
100
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
101
- } | undefined) => UseQueryResult<TData, TError> & {
102
- queryKey: QueryKey;
103
- };
104
- /**
105
- * @summary Create a new roma configuration
106
- */
107
- export declare const useAddRomaConfigurationHook: () => (romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
108
- export declare const useAddRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
109
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
110
- data: BodyType<RomaConfigurationDto>;
111
- }, TContext> | undefined;
112
- } | undefined) => UseMutationOptions<RomaConfigurationDto, TError, {
113
- data: BodyType<RomaConfigurationDto>;
114
- }, TContext>;
115
- export type AddRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>>;
116
- export type AddRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
117
- export type AddRomaConfigurationMutationError = ErrorType<void>;
118
- /**
119
- * @summary Create a new roma configuration
120
- */
121
- export declare const useAddRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
122
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
123
- data: BodyType<RomaConfigurationDto>;
124
- }, TContext> | undefined;
125
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<RomaConfigurationDto, TError, {
126
- data: BodyType<RomaConfigurationDto>;
127
- }, TContext>;
128
- /**
129
- * @summary Get valid roma configuration types
130
- */
131
- export declare const useGetAllRomaConfigurationTypesHook: () => (signal?: AbortSignal) => Promise<"servicebus"[]>;
132
- export declare const getGetAllRomaConfigurationTypesQueryKey: () => readonly ["/api/configurations/types"];
133
- export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = "servicebus"[], TError = import("../../use-client").HttpError>(options?: {
134
- query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
135
- } | undefined) => UseQueryOptions<"servicebus"[], TError, TData, QueryKey> & {
136
- queryKey: QueryKey;
137
- };
138
- export type GetAllRomaConfigurationTypesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>>;
139
- export type GetAllRomaConfigurationTypesQueryError = ErrorType<void>;
140
- /**
141
- * @summary Get valid roma configuration types
142
- */
143
- export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], TError = import("../../use-client").HttpError>(options?: {
144
- query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
145
- } | undefined) => UseQueryResult<TData, TError> & {
146
- queryKey: QueryKey;
147
- };
148
- /**
149
- * @summary Get all roma configurations for given type
150
- */
151
- export declare const useGetAllRomaConfigurationByTypeHook: () => (type: string, signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
152
- export declare const getGetAllRomaConfigurationByTypeQueryKey: (type: string) => readonly [`/api/configurations/types/type/${string}`];
153
- export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(type: string, options?: {
154
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
155
- } | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
156
- queryKey: QueryKey;
157
- };
158
- export type GetAllRomaConfigurationByTypeQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>>;
159
- export type GetAllRomaConfigurationByTypeQueryError = ErrorType<void>;
160
- /**
161
- * @summary Get all roma configurations for given type
162
- */
163
- export declare const useGetAllRomaConfigurationByType: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(type: string, options?: {
164
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
165
- } | undefined) => UseQueryResult<TData, TError> & {
166
- queryKey: QueryKey;
167
- };
168
- export {};
@@ -1,27 +0,0 @@
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
- import type { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
9
- import type { ServerSentEventStandardEventDto } from '../../model';
10
- import type { ErrorType } from '../../use-client';
11
- type AwaitedInput<T> = PromiseLike<T> | T;
12
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
- export declare const useStreamEventsHook: () => (signal?: AbortSignal) => Promise<ServerSentEventStandardEventDto[]>;
14
- export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
15
- export declare const useStreamEventsQueryOptions: <TData = ServerSentEventStandardEventDto[], TError = import("../../use-client").HttpError>(options?: {
16
- query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
17
- } | undefined) => UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey> & {
18
- queryKey: QueryKey;
19
- };
20
- export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
21
- export type StreamEventsQueryError = ErrorType<unknown>;
22
- export declare const useStreamEvents: <TData = ServerSentEventStandardEventDto[], TError = import("../../use-client").HttpError>(options?: {
23
- query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
24
- } | undefined) => UseQueryResult<TData, TError> & {
25
- queryKey: QueryKey;
26
- };
27
- export {};
@@ -1,100 +0,0 @@
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
- import type { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
9
- import type { ServiceDto } from '../../model';
10
- import type { BodyType, ErrorType } from '../../use-client';
11
- type AwaitedInput<T> = PromiseLike<T> | T;
12
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
- /**
14
- * @summary List services for current environment
15
- */
16
- export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<ServiceDto[]>;
17
- export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
18
- export declare const useGetAllServicesQueryOptions: <TData = ServiceDto[], TError = import("../../use-client").HttpError>(options?: {
19
- query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
20
- } | undefined) => UseQueryOptions<ServiceDto[], TError, TData, QueryKey> & {
21
- queryKey: QueryKey;
22
- };
23
- export type GetAllServicesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>;
24
- export type GetAllServicesQueryError = ErrorType<void>;
25
- /**
26
- * @summary List services for current environment
27
- */
28
- export declare const useGetAllServices: <TData = ServiceDto[], TError = import("../../use-client").HttpError>(options?: {
29
- query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
30
- } | undefined) => UseQueryResult<TData, TError> & {
31
- queryKey: QueryKey;
32
- };
33
- /**
34
- * @summary Create or update service for current environment
35
- */
36
- export declare const useCreateOrUpdateServiceHook: () => (serviceDto: BodyType<ServiceDto>) => Promise<ServiceDto>;
37
- export declare const useCreateOrUpdateServiceMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
38
- mutation?: UseMutationOptions<ServiceDto, TError, {
39
- data: BodyType<ServiceDto>;
40
- }, TContext> | undefined;
41
- } | undefined) => UseMutationOptions<ServiceDto, TError, {
42
- data: BodyType<ServiceDto>;
43
- }, TContext>;
44
- export type CreateOrUpdateServiceMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>>;
45
- export type CreateOrUpdateServiceMutationBody = BodyType<ServiceDto>;
46
- export type CreateOrUpdateServiceMutationError = ErrorType<void>;
47
- /**
48
- * @summary Create or update service for current environment
49
- */
50
- export declare const useCreateOrUpdateService: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
51
- mutation?: UseMutationOptions<ServiceDto, TError, {
52
- data: BodyType<ServiceDto>;
53
- }, TContext> | undefined;
54
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ServiceDto, TError, {
55
- data: BodyType<ServiceDto>;
56
- }, TContext>;
57
- /**
58
- * @summary Get service by key
59
- */
60
- export declare const useGetServiceByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<ServiceDto>;
61
- export declare const getGetServiceByKeyQueryKey: (key: string) => readonly [`/api/apps/services/key/${string}`];
62
- export declare const useGetServiceByKeyQueryOptions: <TData = ServiceDto, TError = import("../../use-client").HttpError>(key: string, options?: {
63
- query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
64
- } | undefined) => UseQueryOptions<ServiceDto, TError, TData, QueryKey> & {
65
- queryKey: QueryKey;
66
- };
67
- export type GetServiceByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>>;
68
- export type GetServiceByKeyQueryError = ErrorType<void>;
69
- /**
70
- * @summary Get service by key
71
- */
72
- export declare const useGetServiceByKey: <TData = ServiceDto, TError = import("../../use-client").HttpError>(key: string, options?: {
73
- query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
74
- } | undefined) => UseQueryResult<TData, TError> & {
75
- queryKey: QueryKey;
76
- };
77
- /**
78
- * @summary Delete service by key
79
- */
80
- export declare const useDeleteServiceByKeyHook: () => (key: string) => Promise<void>;
81
- export declare const useDeleteServiceByKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
82
- mutation?: UseMutationOptions<void, TError, {
83
- key: string;
84
- }, TContext> | undefined;
85
- } | undefined) => UseMutationOptions<void, TError, {
86
- key: string;
87
- }, TContext>;
88
- export type DeleteServiceByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>>;
89
- export type DeleteServiceByKeyMutationError = ErrorType<unknown>;
90
- /**
91
- * @summary Delete service by key
92
- */
93
- export declare const useDeleteServiceByKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
94
- mutation?: UseMutationOptions<void, TError, {
95
- key: string;
96
- }, TContext> | undefined;
97
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, TError, {
98
- key: string;
99
- }, TContext>;
100
- export {};
@@ -1,267 +0,0 @@
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
- import type { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
9
- import type { SettingDto } from '../../model';
10
- import type { BodyType, ErrorType } from '../../use-client';
11
- type AwaitedInput<T> = PromiseLike<T> | T;
12
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
- /**
14
- * @summary Get a users private Setting by id
15
- */
16
- export declare const useGetSettingByUserAndIdHook: () => (userId: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
17
- export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
18
- export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, id: string, options?: {
19
- query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
20
- } | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
21
- queryKey: QueryKey;
22
- };
23
- export type GetSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>;
24
- export type GetSettingByUserAndIdQueryError = ErrorType<void>;
25
- /**
26
- * @summary Get a users private Setting by id
27
- */
28
- export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, id: string, options?: {
29
- query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
30
- } | undefined) => UseQueryResult<TData, TError> & {
31
- queryKey: QueryKey;
32
- };
33
- /**
34
- * @summary Update a private Setting by id
35
- */
36
- export declare const useUpdateByUserIdAndIdHook: () => (userId: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
37
- export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
38
- mutation?: UseMutationOptions<SettingDto, TError, {
39
- userId: string;
40
- id: string;
41
- data: BodyType<SettingDto>;
42
- }, TContext> | undefined;
43
- } | undefined) => UseMutationOptions<SettingDto, TError, {
44
- userId: string;
45
- id: string;
46
- data: BodyType<SettingDto>;
47
- }, TContext>;
48
- export type UpdateByUserIdAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>>;
49
- export type UpdateByUserIdAndIdMutationBody = BodyType<SettingDto>;
50
- export type UpdateByUserIdAndIdMutationError = ErrorType<void>;
51
- /**
52
- * @summary Update a private Setting by id
53
- */
54
- export declare const useUpdateByUserIdAndId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
55
- mutation?: UseMutationOptions<SettingDto, TError, {
56
- userId: string;
57
- id: string;
58
- data: BodyType<SettingDto>;
59
- }, TContext> | undefined;
60
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
61
- userId: string;
62
- id: string;
63
- data: BodyType<SettingDto>;
64
- }, TContext>;
65
- /**
66
- * @summary Delete a private Setting by id
67
- */
68
- export declare const useDeletePrivateSettingByIdHook: () => (userId: string, id: string) => Promise<SettingDto>;
69
- export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
70
- mutation?: UseMutationOptions<SettingDto, TError, {
71
- userId: string;
72
- id: string;
73
- }, TContext> | undefined;
74
- } | undefined) => UseMutationOptions<SettingDto, TError, {
75
- userId: string;
76
- id: string;
77
- }, TContext>;
78
- export type DeletePrivateSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>>;
79
- export type DeletePrivateSettingByIdMutationError = ErrorType<void>;
80
- /**
81
- * @summary Delete a private Setting by id
82
- */
83
- export declare const useDeletePrivateSettingById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
84
- mutation?: UseMutationOptions<SettingDto, TError, {
85
- userId: string;
86
- id: string;
87
- }, TContext> | undefined;
88
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
89
- userId: string;
90
- id: string;
91
- }, TContext>;
92
- /**
93
- * @summary Get a users public Setting by id
94
- */
95
- export declare const useGetPublicSettingByUserAndIdHook: () => (appShortName: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
96
- export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
97
- export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(appShortName: string, id: string, options?: {
98
- query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
99
- } | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
100
- queryKey: QueryKey;
101
- };
102
- export type GetPublicSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>;
103
- export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
104
- /**
105
- * @summary Get a users public Setting by id
106
- */
107
- export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import("../../use-client").HttpError>(appShortName: string, id: string, options?: {
108
- query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
109
- } | undefined) => UseQueryResult<TData, TError> & {
110
- queryKey: QueryKey;
111
- };
112
- /**
113
- * @summary Update a public Setting for a given appShortName by id
114
- */
115
- export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => (appShortName: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
116
- export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
117
- mutation?: UseMutationOptions<SettingDto, TError, {
118
- appShortName: string;
119
- id: string;
120
- data: BodyType<SettingDto>;
121
- }, TContext> | undefined;
122
- } | undefined) => UseMutationOptions<SettingDto, TError, {
123
- appShortName: string;
124
- id: string;
125
- data: BodyType<SettingDto>;
126
- }, TContext>;
127
- export type UpdatePublicSettingByAppShortNameAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>>;
128
- export type UpdatePublicSettingByAppShortNameAndIdMutationBody = BodyType<SettingDto>;
129
- export type UpdatePublicSettingByAppShortNameAndIdMutationError = ErrorType<void>;
130
- /**
131
- * @summary Update a public Setting for a given appShortName by id
132
- */
133
- export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
134
- mutation?: UseMutationOptions<SettingDto, TError, {
135
- appShortName: string;
136
- id: string;
137
- data: BodyType<SettingDto>;
138
- }, TContext> | undefined;
139
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
140
- appShortName: string;
141
- id: string;
142
- data: BodyType<SettingDto>;
143
- }, TContext>;
144
- /**
145
- * @summary Delete a public Setting for a appShortName by id
146
- */
147
- export declare const useDeletePublicSettingByIdHook: () => (appShortName: string, id: string) => Promise<SettingDto>;
148
- export declare const useDeletePublicSettingByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
149
- mutation?: UseMutationOptions<SettingDto, TError, {
150
- appShortName: string;
151
- id: string;
152
- }, TContext> | undefined;
153
- } | undefined) => UseMutationOptions<SettingDto, TError, {
154
- appShortName: string;
155
- id: string;
156
- }, TContext>;
157
- export type DeletePublicSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>>;
158
- export type DeletePublicSettingByIdMutationError = ErrorType<void>;
159
- /**
160
- * @summary Delete a public Setting for a appShortName by id
161
- */
162
- export declare const useDeletePublicSettingById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
163
- mutation?: UseMutationOptions<SettingDto, TError, {
164
- appShortName: string;
165
- id: string;
166
- }, TContext> | undefined;
167
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
168
- appShortName: string;
169
- id: string;
170
- }, TContext>;
171
- /**
172
- * @summary Get all private Settings by userId
173
- */
174
- export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<SettingDto[]>;
175
- export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
176
- export declare const useGetSettingsByUserIdQueryOptions: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, options?: {
177
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
178
- } | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
179
- queryKey: QueryKey;
180
- };
181
- export type GetSettingsByUserIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>;
182
- export type GetSettingsByUserIdQueryError = ErrorType<void>;
183
- /**
184
- * @summary Get all private Settings by userId
185
- */
186
- export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, options?: {
187
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
188
- } | undefined) => UseQueryResult<TData, TError> & {
189
- queryKey: QueryKey;
190
- };
191
- /**
192
- * @summary Create a private Setting for a given user
193
- */
194
- export declare const useCreateSettingByUserIdHook: () => (userId: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
195
- export declare const useCreateSettingByUserIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
196
- mutation?: UseMutationOptions<SettingDto, TError, {
197
- userId: string;
198
- data: BodyType<SettingDto>;
199
- }, TContext> | undefined;
200
- } | undefined) => UseMutationOptions<SettingDto, TError, {
201
- userId: string;
202
- data: BodyType<SettingDto>;
203
- }, TContext>;
204
- export type CreateSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>>;
205
- export type CreateSettingByUserIdMutationBody = BodyType<SettingDto>;
206
- export type CreateSettingByUserIdMutationError = ErrorType<void>;
207
- /**
208
- * @summary Create a private Setting for a given user
209
- */
210
- export declare const useCreateSettingByUserId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
211
- mutation?: UseMutationOptions<SettingDto, TError, {
212
- userId: string;
213
- data: BodyType<SettingDto>;
214
- }, TContext> | undefined;
215
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
216
- userId: string;
217
- data: BodyType<SettingDto>;
218
- }, TContext>;
219
- /**
220
- * @summary Get all public or mine Settings by appShortName
221
- */
222
- export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<SettingDto[]>;
223
- export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
224
- export declare const useGetSettingsByAppShortNameQueryOptions: <TData = SettingDto[], TError = import("../../use-client").HttpError>(appShortName: string, options?: {
225
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
226
- } | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
227
- queryKey: QueryKey;
228
- };
229
- export type GetSettingsByAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>;
230
- export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
231
- /**
232
- * @summary Get all public or mine Settings by appShortName
233
- */
234
- export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError = import("../../use-client").HttpError>(appShortName: string, options?: {
235
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
236
- } | undefined) => UseQueryResult<TData, TError> & {
237
- queryKey: QueryKey;
238
- };
239
- /**
240
- * @summary Create a public Setting for a given appShortName
241
- */
242
- export declare const useCreatePublicSettingByUserIdHook: () => (appShortName: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
243
- export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
244
- mutation?: UseMutationOptions<SettingDto, TError, {
245
- appShortName: string;
246
- data: BodyType<SettingDto>;
247
- }, TContext> | undefined;
248
- } | undefined) => UseMutationOptions<SettingDto, TError, {
249
- appShortName: string;
250
- data: BodyType<SettingDto>;
251
- }, TContext>;
252
- export type CreatePublicSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>>;
253
- export type CreatePublicSettingByUserIdMutationBody = BodyType<SettingDto>;
254
- export type CreatePublicSettingByUserIdMutationError = ErrorType<void>;
255
- /**
256
- * @summary Create a public Setting for a given appShortName
257
- */
258
- export declare const useCreatePublicSettingByUserId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
259
- mutation?: UseMutationOptions<SettingDto, TError, {
260
- appShortName: string;
261
- data: BodyType<SettingDto>;
262
- }, TContext> | undefined;
263
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
264
- appShortName: string;
265
- data: BodyType<SettingDto>;
266
- }, TContext>;
267
- export {};
@@ -1,8 +0,0 @@
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';
@@ -1,26 +0,0 @@
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
- import type { CategoryDto } from './categoryDto';
9
- import type { VersionDto } from './versionDto';
10
- export interface AppDto {
11
- accentColor?: string;
12
- category?: CategoryDto;
13
- categoryId: string;
14
- description: string;
15
- entry: string;
16
- hide?: boolean;
17
- icon?: string;
18
- key: string;
19
- name: string;
20
- order?: number;
21
- publishedDate?: string;
22
- shortName: string;
23
- tags?: string[];
24
- type: string;
25
- version: VersionDto;
26
- }
@@ -1,13 +0,0 @@
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
- }