@equinor/roma-framework 0.0.10 → 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 (84) hide show
  1. package/dev-portal/package.json +1 -1
  2. package/dev-portal/roma-framework.umd.js +30537 -18174
  3. package/index.d.ts +1 -1
  4. package/lib/api/roma/api/app-controller/app-controller.d.ts +14 -20
  5. package/lib/api/roma/api/category-controller/category-controller.d.ts +14 -20
  6. package/lib/api/roma/api/environment-controller/environment-controller.d.ts +6 -12
  7. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +21 -27
  8. package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +6 -12
  9. package/lib/api/roma/api/service-controller/service-controller.d.ts +14 -20
  10. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +30 -36
  11. package/lib/api/roma/model/appDto.d.ts +3 -9
  12. package/lib/api/roma/model/environmentDto.d.ts +2 -8
  13. package/lib/api/roma/model/romaConfigurationDto.d.ts +2 -8
  14. package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +1 -3
  15. package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +1 -3
  16. package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +1 -3
  17. package/lib/api/roma/model/settingDto.d.ts +2 -8
  18. package/lib/api/roma/model/settingDtoValue.d.ts +1 -3
  19. package/lib/app-provider.d.ts +3 -2
  20. package/lib/dev-portal/AppLoader.d.ts +4 -1
  21. package/lib/dev-portal/EquinorLoader.d.ts +2 -1
  22. package/lib/dev-portal/ErrorViewer.d.ts +9 -0
  23. package/lib/dev-portal/HttpErrorViewer.d.ts +1 -0
  24. package/lib/eds-event-provider.d.ts +1 -0
  25. package/lib/make-component.d.ts +2 -1
  26. package/lib/query/persister.d.ts +7 -0
  27. package/lib/style-provider.d.ts +1 -0
  28. package/package.json +1 -1
  29. package/roma-framework.mjs +96 -106
  30. package/dev-portal/index.d.ts +0 -12
  31. package/dev-portal/lib/api/fetcher.d.ts +0 -21
  32. package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +0 -100
  33. package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +0 -100
  34. package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +0 -33
  35. package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +0 -168
  36. package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +0 -27
  37. package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +0 -100
  38. package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +0 -267
  39. package/dev-portal/lib/api/roma/index.d.ts +0 -8
  40. package/dev-portal/lib/api/roma/model/appDto.d.ts +0 -26
  41. package/dev-portal/lib/api/roma/model/categoryDto.d.ts +0 -13
  42. package/dev-portal/lib/api/roma/model/environmentDto.d.ts +0 -16
  43. package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +0 -11
  44. package/dev-portal/lib/api/roma/model/index.d.ts +0 -19
  45. package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +0 -14
  46. package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +0 -10
  47. package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +0 -10
  48. package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +0 -10
  49. package/dev-portal/lib/api/roma/model/serviceDto.d.ts +0 -16
  50. package/dev-portal/lib/api/roma/model/settingDto.d.ts +0 -16
  51. package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +0 -10
  52. package/dev-portal/lib/api/roma/model/versionDto.d.ts +0 -12
  53. package/dev-portal/lib/api/roma/use-client.d.ts +0 -34
  54. package/dev-portal/lib/api/trade-recap/deal.d.ts +0 -160
  55. package/dev-portal/lib/api/trade-recap/download-recap.d.ts +0 -6
  56. package/dev-portal/lib/api/trade-recap/get-deals.d.ts +0 -15
  57. package/dev-portal/lib/api/trade-recap/get-recap.d.ts +0 -11
  58. package/dev-portal/lib/api/trade-recap/index.d.ts +0 -5
  59. package/dev-portal/lib/api/trade-recap/recap.d.ts +0 -22
  60. package/dev-portal/lib/api/util.d.ts +0 -1
  61. package/dev-portal/lib/app-provider.d.ts +0 -32
  62. package/dev-portal/lib/dev-portal/AppLoader.d.ts +0 -12
  63. package/dev-portal/lib/dev-portal/AppViewer.d.ts +0 -6
  64. package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +0 -12
  65. package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +0 -12
  66. package/dev-portal/lib/dev-portal/Header.d.ts +0 -2
  67. package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +0 -13
  68. package/dev-portal/lib/dev-portal/Navigation.d.ts +0 -5
  69. package/dev-portal/lib/dev-portal/Root.d.ts +0 -5
  70. package/dev-portal/lib/dev-portal/config.d.ts +0 -3
  71. package/dev-portal/lib/dev-portal/index.d.ts +0 -13
  72. package/dev-portal/lib/eds-event-provider.d.ts +0 -6
  73. package/dev-portal/lib/hooks/use-get-api-roles.d.ts +0 -14
  74. package/dev-portal/lib/hooks/use-has-api-role.d.ts +0 -7
  75. package/dev-portal/lib/make-component.d.ts +0 -12
  76. package/dev-portal/lib/style-provider.d.ts +0 -7
  77. package/lib/api/fetcher.d.ts +0 -21
  78. package/lib/api/trade-recap/deal.d.ts +0 -160
  79. package/lib/api/trade-recap/download-recap.d.ts +0 -6
  80. package/lib/api/trade-recap/get-deals.d.ts +0 -15
  81. package/lib/api/trade-recap/get-recap.d.ts +0 -11
  82. package/lib/api/trade-recap/index.d.ts +0 -5
  83. package/lib/api/trade-recap/recap.d.ts +0 -22
  84. package/lib/api/util.d.ts +0 -1
package/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export * from './lib/dev-portal/AppLoader';
5
5
  export * from './lib/dev-portal/AppViewer';
6
6
  export * from './lib/style-provider';
7
7
  export * from './lib/dev-portal/HttpErrorViewer';
8
- export * from './lib/api/trade-recap';
9
8
  export * from './lib/api/roma';
10
9
  export * from './lib/app-provider';
10
+ export * from './lib/query/persister';
11
11
  export * from './lib/hooks/use-get-api-roles';
12
12
  export * from './lib/hooks/use-has-api-role';
@@ -1,13 +1,7 @@
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 { AppDto } from '../../model';
10
- import type { BodyType, ErrorType } from '../../use-client';
1
+ import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { AppDto } from '../../model';
3
+ import { BodyType, ErrorType } from '../../use-client';
4
+
11
5
  type AwaitedInput<T> = PromiseLike<T> | T;
12
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
7
  /**
@@ -15,7 +9,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
15
9
  */
16
10
  export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<AppDto[]>;
17
11
  export declare const getGetAllAppsQueryKey: () => readonly ["/api/apps"];
18
- export declare const useGetAllAppsQueryOptions: <TData = AppDto[], TError = import("../../use-client").HttpError>(options?: {
12
+ export declare const useGetAllAppsQueryOptions: <TData = AppDto[], TError = import('../../use-client').HttpError>(options?: {
19
13
  query?: Partial<UseQueryOptions<AppDto[], TError, TData, QueryKey>> | undefined;
20
14
  } | undefined) => UseQueryOptions<AppDto[], TError, TData, QueryKey> & {
21
15
  queryKey: QueryKey;
@@ -25,7 +19,7 @@ export type GetAllAppsQueryError = ErrorType<void>;
25
19
  /**
26
20
  * @summary List apps
27
21
  */
28
- export declare const useGetAllApps: <TData = AppDto[], TError = import("../../use-client").HttpError>(options?: {
22
+ export declare const useGetAllApps: <TData = AppDto[], TError = import('../../use-client').HttpError>(options?: {
29
23
  query?: Partial<UseQueryOptions<AppDto[], TError, TData, QueryKey>> | undefined;
30
24
  } | undefined) => UseQueryResult<TData, TError> & {
31
25
  queryKey: QueryKey;
@@ -34,7 +28,7 @@ export declare const useGetAllApps: <TData = AppDto[], TError = import("../../us
34
28
  * @summary Create or update App
35
29
  */
36
30
  export declare const useCreateOrUpdateAppHook: () => (appDto: BodyType<AppDto>) => Promise<AppDto>;
37
- export declare const useCreateOrUpdateAppMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
31
+ export declare const useCreateOrUpdateAppMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
38
32
  mutation?: UseMutationOptions<AppDto, TError, {
39
33
  data: BodyType<AppDto>;
40
34
  }, TContext> | undefined;
@@ -47,11 +41,11 @@ export type CreateOrUpdateAppMutationError = ErrorType<void>;
47
41
  /**
48
42
  * @summary Create or update App
49
43
  */
50
- export declare const useCreateOrUpdateApp: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
44
+ export declare const useCreateOrUpdateApp: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
51
45
  mutation?: UseMutationOptions<AppDto, TError, {
52
46
  data: BodyType<AppDto>;
53
47
  }, TContext> | undefined;
54
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<AppDto, TError, {
48
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<AppDto, TError, {
55
49
  data: BodyType<AppDto>;
56
50
  }, TContext>;
57
51
  /**
@@ -59,7 +53,7 @@ export declare const useCreateOrUpdateApp: <TError = import("../../use-client").
59
53
  */
60
54
  export declare const useGetAppByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<AppDto>;
61
55
  export declare const getGetAppByKeyQueryKey: (key: string) => readonly [`/api/apps/key/${string}`];
62
- export declare const useGetAppByKeyQueryOptions: <TData = AppDto, TError = import("../../use-client").HttpError>(key: string, options?: {
56
+ export declare const useGetAppByKeyQueryOptions: <TData = AppDto, TError = import('../../use-client').HttpError>(key: string, options?: {
63
57
  query?: Partial<UseQueryOptions<AppDto, TError, TData, QueryKey>> | undefined;
64
58
  } | undefined) => UseQueryOptions<AppDto, TError, TData, QueryKey> & {
65
59
  queryKey: QueryKey;
@@ -69,7 +63,7 @@ export type GetAppByKeyQueryError = ErrorType<void>;
69
63
  /**
70
64
  * @summary Get app by key
71
65
  */
72
- export declare const useGetAppByKey: <TData = AppDto, TError = import("../../use-client").HttpError>(key: string, options?: {
66
+ export declare const useGetAppByKey: <TData = AppDto, TError = import('../../use-client').HttpError>(key: string, options?: {
73
67
  query?: Partial<UseQueryOptions<AppDto, TError, TData, QueryKey>> | undefined;
74
68
  } | undefined) => UseQueryResult<TData, TError> & {
75
69
  queryKey: QueryKey;
@@ -78,7 +72,7 @@ export declare const useGetAppByKey: <TData = AppDto, TError = import("../../use
78
72
  * @summary Delete app by key
79
73
  */
80
74
  export declare const useDeleteAppByKeyHook: () => (key: string) => Promise<void>;
81
- export declare const useDeleteAppByKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
75
+ export declare const useDeleteAppByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
82
76
  mutation?: UseMutationOptions<void, TError, {
83
77
  key: string;
84
78
  }, TContext> | undefined;
@@ -90,11 +84,11 @@ export type DeleteAppByKeyMutationError = ErrorType<unknown>;
90
84
  /**
91
85
  * @summary Delete app by key
92
86
  */
93
- export declare const useDeleteAppByKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
87
+ export declare const useDeleteAppByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
94
88
  mutation?: UseMutationOptions<void, TError, {
95
89
  key: string;
96
90
  }, TContext> | undefined;
97
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, TError, {
91
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<void, TError, {
98
92
  key: string;
99
93
  }, TContext>;
100
94
  export {};
@@ -1,13 +1,7 @@
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 { CategoryDto } from '../../model';
10
- import type { BodyType, ErrorType } from '../../use-client';
1
+ import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { CategoryDto } from '../../model';
3
+ import { BodyType, ErrorType } from '../../use-client';
4
+
11
5
  type AwaitedInput<T> = PromiseLike<T> | T;
12
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
7
  /**
@@ -15,7 +9,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
15
9
  */
16
10
  export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<CategoryDto[]>;
17
11
  export declare const getGetAllCategoriesQueryKey: () => readonly ["/api/apps/categories"];
18
- export declare const useGetAllCategoriesQueryOptions: <TData = CategoryDto[], TError = import("../../use-client").HttpError>(options?: {
12
+ export declare const useGetAllCategoriesQueryOptions: <TData = CategoryDto[], TError = import('../../use-client').HttpError>(options?: {
19
13
  query?: Partial<UseQueryOptions<CategoryDto[], TError, TData, QueryKey>> | undefined;
20
14
  } | undefined) => UseQueryOptions<CategoryDto[], TError, TData, QueryKey> & {
21
15
  queryKey: QueryKey;
@@ -25,7 +19,7 @@ export type GetAllCategoriesQueryError = ErrorType<void>;
25
19
  /**
26
20
  * @summary List categories
27
21
  */
28
- export declare const useGetAllCategories: <TData = CategoryDto[], TError = import("../../use-client").HttpError>(options?: {
22
+ export declare const useGetAllCategories: <TData = CategoryDto[], TError = import('../../use-client').HttpError>(options?: {
29
23
  query?: Partial<UseQueryOptions<CategoryDto[], TError, TData, QueryKey>> | undefined;
30
24
  } | undefined) => UseQueryResult<TData, TError> & {
31
25
  queryKey: QueryKey;
@@ -34,7 +28,7 @@ export declare const useGetAllCategories: <TData = CategoryDto[], TError = impor
34
28
  * @summary Create or update category
35
29
  */
36
30
  export declare const useCreateOrUpdateCategoryHook: () => (categoryDto: BodyType<CategoryDto>) => Promise<CategoryDto>;
37
- export declare const useCreateOrUpdateCategoryMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
31
+ export declare const useCreateOrUpdateCategoryMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
38
32
  mutation?: UseMutationOptions<CategoryDto, TError, {
39
33
  data: BodyType<CategoryDto>;
40
34
  }, TContext> | undefined;
@@ -47,11 +41,11 @@ export type CreateOrUpdateCategoryMutationError = ErrorType<void>;
47
41
  /**
48
42
  * @summary Create or update category
49
43
  */
50
- export declare const useCreateOrUpdateCategory: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
44
+ export declare const useCreateOrUpdateCategory: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
51
45
  mutation?: UseMutationOptions<CategoryDto, TError, {
52
46
  data: BodyType<CategoryDto>;
53
47
  }, TContext> | undefined;
54
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<CategoryDto, TError, {
48
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<CategoryDto, TError, {
55
49
  data: BodyType<CategoryDto>;
56
50
  }, TContext>;
57
51
  /**
@@ -59,7 +53,7 @@ export declare const useCreateOrUpdateCategory: <TError = import("../../use-clie
59
53
  */
60
54
  export declare const useGetCategoryByIdHook: () => (id: string, signal?: AbortSignal) => Promise<CategoryDto>;
61
55
  export declare const getGetCategoryByIdQueryKey: (id: string) => readonly [`/api/apps/categories/id/${string}`];
62
- export declare const useGetCategoryByIdQueryOptions: <TData = CategoryDto, TError = import("../../use-client").HttpError>(id: string, options?: {
56
+ export declare const useGetCategoryByIdQueryOptions: <TData = CategoryDto, TError = import('../../use-client').HttpError>(id: string, options?: {
63
57
  query?: Partial<UseQueryOptions<CategoryDto, TError, TData, QueryKey>> | undefined;
64
58
  } | undefined) => UseQueryOptions<CategoryDto, TError, TData, QueryKey> & {
65
59
  queryKey: QueryKey;
@@ -69,7 +63,7 @@ export type GetCategoryByIdQueryError = ErrorType<void>;
69
63
  /**
70
64
  * @summary Get category by id
71
65
  */
72
- export declare const useGetCategoryById: <TData = CategoryDto, TError = import("../../use-client").HttpError>(id: string, options?: {
66
+ export declare const useGetCategoryById: <TData = CategoryDto, TError = import('../../use-client').HttpError>(id: string, options?: {
73
67
  query?: Partial<UseQueryOptions<CategoryDto, TError, TData, QueryKey>> | undefined;
74
68
  } | undefined) => UseQueryResult<TData, TError> & {
75
69
  queryKey: QueryKey;
@@ -78,7 +72,7 @@ export declare const useGetCategoryById: <TData = CategoryDto, TError = import("
78
72
  * @summary Delete category by id
79
73
  */
80
74
  export declare const useDeleteCategoryByIdHook: () => (id: string) => Promise<void>;
81
- export declare const useDeleteCategoryByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
75
+ export declare const useDeleteCategoryByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
82
76
  mutation?: UseMutationOptions<void, TError, {
83
77
  id: string;
84
78
  }, TContext> | undefined;
@@ -90,11 +84,11 @@ export type DeleteCategoryByIdMutationError = ErrorType<unknown>;
90
84
  /**
91
85
  * @summary Delete category by id
92
86
  */
93
- export declare const useDeleteCategoryById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
87
+ export declare const useDeleteCategoryById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
94
88
  mutation?: UseMutationOptions<void, TError, {
95
89
  id: string;
96
90
  }, TContext> | undefined;
97
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, TError, {
91
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<void, TError, {
98
92
  id: string;
99
93
  }, TContext>;
100
94
  export {};
@@ -1,13 +1,7 @@
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';
1
+ import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { EnvironmentDto } from '../../model';
3
+ import { ErrorType } from '../../use-client';
4
+
11
5
  type AwaitedInput<T> = PromiseLike<T> | T;
12
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
7
  /**
@@ -15,7 +9,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
15
9
  */
16
10
  export declare const useGetCurrentEnvironmentHook: () => (signal?: AbortSignal) => Promise<EnvironmentDto>;
17
11
  export declare const getGetCurrentEnvironmentQueryKey: () => readonly ["/_discovery/environments/current"];
18
- export declare const useGetCurrentEnvironmentQueryOptions: <TData = EnvironmentDto, TError = import("../../use-client").HttpError>(options?: {
12
+ export declare const useGetCurrentEnvironmentQueryOptions: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
19
13
  query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
20
14
  } | undefined) => UseQueryOptions<EnvironmentDto, TError, TData, QueryKey> & {
21
15
  queryKey: QueryKey;
@@ -25,7 +19,7 @@ export type GetCurrentEnvironmentQueryError = ErrorType<void>;
25
19
  /**
26
20
  * @summary Get current environment
27
21
  */
28
- export declare const useGetCurrentEnvironment: <TData = EnvironmentDto, TError = import("../../use-client").HttpError>(options?: {
22
+ export declare const useGetCurrentEnvironment: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
29
23
  query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
30
24
  } | undefined) => UseQueryResult<TData, TError> & {
31
25
  queryKey: QueryKey;
@@ -1,13 +1,7 @@
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';
1
+ import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { RomaConfigurationDto, SettingDto } from '../../model';
3
+ import { BodyType, ErrorType } from '../../use-client';
4
+
11
5
  type AwaitedInput<T> = PromiseLike<T> | T;
12
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
7
  /**
@@ -15,7 +9,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
15
9
  */
16
10
  export declare const useGetRomaConfigurationByIdHook: () => (id: string, signal?: AbortSignal) => Promise<RomaConfigurationDto>;
17
11
  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?: {
12
+ export declare const useGetRomaConfigurationByIdQueryOptions: <TData = RomaConfigurationDto, TError = import('../../use-client').HttpError>(id: string, options?: {
19
13
  query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
20
14
  } | undefined) => UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey> & {
21
15
  queryKey: QueryKey;
@@ -25,7 +19,7 @@ export type GetRomaConfigurationByIdQueryError = ErrorType<void>;
25
19
  /**
26
20
  * @summary Get roma configuration by id
27
21
  */
28
- export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto, TError = import("../../use-client").HttpError>(id: string, options?: {
22
+ export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto, TError = import('../../use-client').HttpError>(id: string, options?: {
29
23
  query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
30
24
  } | undefined) => UseQueryResult<TData, TError> & {
31
25
  queryKey: QueryKey;
@@ -34,7 +28,7 @@ export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto,
34
28
  * @summary Update a roma configuration
35
29
  */
36
30
  export declare const useUpdateRomaConfigurationHook: () => (id: string, romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
37
- export declare const useUpdateRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
31
+ export declare const useUpdateRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
38
32
  mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
39
33
  id: string;
40
34
  data: BodyType<RomaConfigurationDto>;
@@ -49,12 +43,12 @@ export type UpdateRomaConfigurationMutationError = ErrorType<void>;
49
43
  /**
50
44
  * @summary Update a roma configuration
51
45
  */
52
- export declare const useUpdateRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
46
+ export declare const useUpdateRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
53
47
  mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
54
48
  id: string;
55
49
  data: BodyType<RomaConfigurationDto>;
56
50
  }, TContext> | undefined;
57
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<RomaConfigurationDto, TError, {
51
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<RomaConfigurationDto, TError, {
58
52
  id: string;
59
53
  data: BodyType<RomaConfigurationDto>;
60
54
  }, TContext>;
@@ -62,7 +56,7 @@ export declare const useUpdateRomaConfiguration: <TError = import("../../use-cli
62
56
  * @summary Delete a roma configuration by id
63
57
  */
64
58
  export declare const useDeleteRomaConfigurationHook: () => (id: string) => Promise<SettingDto>;
65
- export declare const useDeleteRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
59
+ export declare const useDeleteRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
66
60
  mutation?: UseMutationOptions<SettingDto, TError, {
67
61
  id: string;
68
62
  }, TContext> | undefined;
@@ -74,11 +68,11 @@ export type DeleteRomaConfigurationMutationError = ErrorType<void>;
74
68
  /**
75
69
  * @summary Delete a roma configuration by id
76
70
  */
77
- export declare const useDeleteRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
71
+ export declare const useDeleteRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
78
72
  mutation?: UseMutationOptions<SettingDto, TError, {
79
73
  id: string;
80
74
  }, TContext> | undefined;
81
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
75
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
82
76
  id: string;
83
77
  }, TContext>;
84
78
  /**
@@ -86,7 +80,7 @@ export declare const useDeleteRomaConfiguration: <TError = import("../../use-cli
86
80
  */
87
81
  export declare const useGetAllRomaConfigurationHook: () => (signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
88
82
  export declare const getGetAllRomaConfigurationQueryKey: () => readonly ["/api/configurations"];
89
- export declare const useGetAllRomaConfigurationQueryOptions: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(options?: {
83
+ export declare const useGetAllRomaConfigurationQueryOptions: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
90
84
  query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
91
85
  } | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
92
86
  queryKey: QueryKey;
@@ -96,7 +90,7 @@ export type GetAllRomaConfigurationQueryError = ErrorType<void>;
96
90
  /**
97
91
  * @summary Get all roma configurations
98
92
  */
99
- export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(options?: {
93
+ export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
100
94
  query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
101
95
  } | undefined) => UseQueryResult<TData, TError> & {
102
96
  queryKey: QueryKey;
@@ -105,7 +99,7 @@ export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[]
105
99
  * @summary Create a new roma configuration
106
100
  */
107
101
  export declare const useAddRomaConfigurationHook: () => (romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
108
- export declare const useAddRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
102
+ export declare const useAddRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
109
103
  mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
110
104
  data: BodyType<RomaConfigurationDto>;
111
105
  }, TContext> | undefined;
@@ -118,11 +112,11 @@ export type AddRomaConfigurationMutationError = ErrorType<void>;
118
112
  /**
119
113
  * @summary Create a new roma configuration
120
114
  */
121
- export declare const useAddRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
115
+ export declare const useAddRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
122
116
  mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
123
117
  data: BodyType<RomaConfigurationDto>;
124
118
  }, TContext> | undefined;
125
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<RomaConfigurationDto, TError, {
119
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<RomaConfigurationDto, TError, {
126
120
  data: BodyType<RomaConfigurationDto>;
127
121
  }, TContext>;
128
122
  /**
@@ -130,7 +124,7 @@ export declare const useAddRomaConfiguration: <TError = import("../../use-client
130
124
  */
131
125
  export declare const useGetAllRomaConfigurationTypesHook: () => (signal?: AbortSignal) => Promise<"servicebus"[]>;
132
126
  export declare const getGetAllRomaConfigurationTypesQueryKey: () => readonly ["/api/configurations/types"];
133
- export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = "servicebus"[], TError = import("../../use-client").HttpError>(options?: {
127
+ export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
134
128
  query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
135
129
  } | undefined) => UseQueryOptions<"servicebus"[], TError, TData, QueryKey> & {
136
130
  queryKey: QueryKey;
@@ -140,7 +134,7 @@ export type GetAllRomaConfigurationTypesQueryError = ErrorType<void>;
140
134
  /**
141
135
  * @summary Get valid roma configuration types
142
136
  */
143
- export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], TError = import("../../use-client").HttpError>(options?: {
137
+ export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
144
138
  query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
145
139
  } | undefined) => UseQueryResult<TData, TError> & {
146
140
  queryKey: QueryKey;
@@ -150,7 +144,7 @@ export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], T
150
144
  */
151
145
  export declare const useGetAllRomaConfigurationByTypeHook: () => (type: string, signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
152
146
  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?: {
147
+ export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(type: string, options?: {
154
148
  query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
155
149
  } | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
156
150
  queryKey: QueryKey;
@@ -160,7 +154,7 @@ export type GetAllRomaConfigurationByTypeQueryError = ErrorType<void>;
160
154
  /**
161
155
  * @summary Get all roma configurations for given type
162
156
  */
163
- export declare const useGetAllRomaConfigurationByType: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(type: string, options?: {
157
+ export declare const useGetAllRomaConfigurationByType: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(type: string, options?: {
164
158
  query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
165
159
  } | undefined) => UseQueryResult<TData, TError> & {
166
160
  queryKey: QueryKey;
@@ -1,25 +1,19 @@
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';
1
+ import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { ServerSentEventStandardEventDto } from '../../model';
3
+ import { ErrorType } from '../../use-client';
4
+
11
5
  type AwaitedInput<T> = PromiseLike<T> | T;
12
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
7
  export declare const useStreamEventsHook: () => (signal?: AbortSignal) => Promise<ServerSentEventStandardEventDto[]>;
14
8
  export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
15
- export declare const useStreamEventsQueryOptions: <TData = ServerSentEventStandardEventDto[], TError = import("../../use-client").HttpError>(options?: {
9
+ export declare const useStreamEventsQueryOptions: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
16
10
  query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
17
11
  } | undefined) => UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey> & {
18
12
  queryKey: QueryKey;
19
13
  };
20
14
  export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
21
15
  export type StreamEventsQueryError = ErrorType<unknown>;
22
- export declare const useStreamEvents: <TData = ServerSentEventStandardEventDto[], TError = import("../../use-client").HttpError>(options?: {
16
+ export declare const useStreamEvents: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
23
17
  query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
24
18
  } | undefined) => UseQueryResult<TData, TError> & {
25
19
  queryKey: QueryKey;
@@ -1,13 +1,7 @@
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';
1
+ import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import { ServiceDto } from '../../model';
3
+ import { BodyType, ErrorType } from '../../use-client';
4
+
11
5
  type AwaitedInput<T> = PromiseLike<T> | T;
12
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
7
  /**
@@ -15,7 +9,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
15
9
  */
16
10
  export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<ServiceDto[]>;
17
11
  export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
18
- export declare const useGetAllServicesQueryOptions: <TData = ServiceDto[], TError = import("../../use-client").HttpError>(options?: {
12
+ export declare const useGetAllServicesQueryOptions: <TData = ServiceDto[], TError = import('../../use-client').HttpError>(options?: {
19
13
  query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
20
14
  } | undefined) => UseQueryOptions<ServiceDto[], TError, TData, QueryKey> & {
21
15
  queryKey: QueryKey;
@@ -25,7 +19,7 @@ export type GetAllServicesQueryError = ErrorType<void>;
25
19
  /**
26
20
  * @summary List services for current environment
27
21
  */
28
- export declare const useGetAllServices: <TData = ServiceDto[], TError = import("../../use-client").HttpError>(options?: {
22
+ export declare const useGetAllServices: <TData = ServiceDto[], TError = import('../../use-client').HttpError>(options?: {
29
23
  query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
30
24
  } | undefined) => UseQueryResult<TData, TError> & {
31
25
  queryKey: QueryKey;
@@ -34,7 +28,7 @@ export declare const useGetAllServices: <TData = ServiceDto[], TError = import("
34
28
  * @summary Create or update service for current environment
35
29
  */
36
30
  export declare const useCreateOrUpdateServiceHook: () => (serviceDto: BodyType<ServiceDto>) => Promise<ServiceDto>;
37
- export declare const useCreateOrUpdateServiceMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
31
+ export declare const useCreateOrUpdateServiceMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
38
32
  mutation?: UseMutationOptions<ServiceDto, TError, {
39
33
  data: BodyType<ServiceDto>;
40
34
  }, TContext> | undefined;
@@ -47,11 +41,11 @@ export type CreateOrUpdateServiceMutationError = ErrorType<void>;
47
41
  /**
48
42
  * @summary Create or update service for current environment
49
43
  */
50
- export declare const useCreateOrUpdateService: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
44
+ export declare const useCreateOrUpdateService: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
51
45
  mutation?: UseMutationOptions<ServiceDto, TError, {
52
46
  data: BodyType<ServiceDto>;
53
47
  }, TContext> | undefined;
54
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ServiceDto, TError, {
48
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<ServiceDto, TError, {
55
49
  data: BodyType<ServiceDto>;
56
50
  }, TContext>;
57
51
  /**
@@ -59,7 +53,7 @@ export declare const useCreateOrUpdateService: <TError = import("../../use-clien
59
53
  */
60
54
  export declare const useGetServiceByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<ServiceDto>;
61
55
  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?: {
56
+ export declare const useGetServiceByKeyQueryOptions: <TData = ServiceDto, TError = import('../../use-client').HttpError>(key: string, options?: {
63
57
  query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
64
58
  } | undefined) => UseQueryOptions<ServiceDto, TError, TData, QueryKey> & {
65
59
  queryKey: QueryKey;
@@ -69,7 +63,7 @@ export type GetServiceByKeyQueryError = ErrorType<void>;
69
63
  /**
70
64
  * @summary Get service by key
71
65
  */
72
- export declare const useGetServiceByKey: <TData = ServiceDto, TError = import("../../use-client").HttpError>(key: string, options?: {
66
+ export declare const useGetServiceByKey: <TData = ServiceDto, TError = import('../../use-client').HttpError>(key: string, options?: {
73
67
  query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
74
68
  } | undefined) => UseQueryResult<TData, TError> & {
75
69
  queryKey: QueryKey;
@@ -78,7 +72,7 @@ export declare const useGetServiceByKey: <TData = ServiceDto, TError = import(".
78
72
  * @summary Delete service by key
79
73
  */
80
74
  export declare const useDeleteServiceByKeyHook: () => (key: string) => Promise<void>;
81
- export declare const useDeleteServiceByKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
75
+ export declare const useDeleteServiceByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
82
76
  mutation?: UseMutationOptions<void, TError, {
83
77
  key: string;
84
78
  }, TContext> | undefined;
@@ -90,11 +84,11 @@ export type DeleteServiceByKeyMutationError = ErrorType<unknown>;
90
84
  /**
91
85
  * @summary Delete service by key
92
86
  */
93
- export declare const useDeleteServiceByKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
87
+ export declare const useDeleteServiceByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
94
88
  mutation?: UseMutationOptions<void, TError, {
95
89
  key: string;
96
90
  }, TContext> | undefined;
97
- } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, TError, {
91
+ } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<void, TError, {
98
92
  key: string;
99
93
  }, TContext>;
100
94
  export {};