@equinor/roma-framework 3.0.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/cypress.mjs +3 -112
  2. package/dev-portal/lib/api/ms-graph/api/group/find-group.d.ts +2 -0
  3. package/dev-portal/lib/api/ms-graph/api/group/get-groups-by-ids.d.ts +2 -0
  4. package/dev-portal/lib/api/ms-graph/api/user/get-user-by-id.d.ts +9 -0
  5. package/dev-portal/lib/api/ms-graph/api/user/search.d.ts +4 -0
  6. package/dev-portal/lib/api/ms-graph/index.d.ts +4 -0
  7. package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +10 -10
  8. package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +8 -8
  9. package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +2 -2
  10. package/dev-portal/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +4 -4
  11. package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +14 -14
  12. package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +2 -2
  13. package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +8 -8
  14. package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +20 -20
  15. package/dev-portal/lib/app-provider.d.ts +7 -1
  16. package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +2 -2
  17. package/dev-portal/lib/dev-portal/PortalStyles.d.ts +276 -0
  18. package/dev-portal/lib/dev-portal/config/AppClient.d.ts +62 -2
  19. package/dev-portal/lib/make-component.d.ts +1 -1
  20. package/dev-portal/lib/test-utils/roma-cypress-wrapper.d.ts +2 -2
  21. package/dev-portal/package.json +1 -1
  22. package/dev-portal/roma-framework.umd.js +4066 -3749
  23. package/lib/api/ms-graph/api/group/find-group.d.ts +2 -0
  24. package/lib/api/ms-graph/api/group/get-groups-by-ids.d.ts +2 -0
  25. package/lib/api/ms-graph/api/user/get-user-by-id.d.ts +9 -0
  26. package/lib/api/ms-graph/api/user/search.d.ts +4 -0
  27. package/lib/api/ms-graph/index.d.ts +4 -0
  28. package/lib/api/roma/api/app-controller/app-controller.d.ts +10 -10
  29. package/lib/api/roma/api/category-controller/category-controller.d.ts +8 -8
  30. package/lib/api/roma/api/environment-controller/environment-controller.d.ts +2 -2
  31. package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +4 -4
  32. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +14 -14
  33. package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +2 -2
  34. package/lib/api/roma/api/service-controller/service-controller.d.ts +8 -8
  35. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +20 -20
  36. package/lib/app-provider.d.ts +7 -1
  37. package/lib/dev-portal/ErrorViewer.d.ts +2 -2
  38. package/lib/dev-portal/PortalStyles.d.ts +276 -0
  39. package/lib/dev-portal/config/AppClient.d.ts +62 -2
  40. package/lib/make-component.d.ts +1 -1
  41. package/lib/test-utils/roma-cypress-wrapper.d.ts +2 -2
  42. package/package.json +1 -1
  43. package/roma-framework.mjs +308 -17
  44. package/{router-DDzmmkip.mjs → router-JkkLp8wN.mjs} +3 -3
@@ -0,0 +1,2 @@
1
+ import { AzureResponse } from '../../model/azure-response';
2
+ export declare const useFindGroup: (query: string) => import('@tanstack/react-query').UseQueryResult<AzureResponse<["displayName", "id"]>, Error>;
@@ -0,0 +1,2 @@
1
+ import { AzureResponse } from '../../model/azure-response';
2
+ export declare const useFindGroupById: (ids: Array<string>) => import('@tanstack/react-query').UseQueryResult<AzureResponse<["displayName", "id"]>, Error>;
@@ -0,0 +1,9 @@
1
+ import { IHttpClient } from '@equinor/fusion-framework-react-module-http';
2
+ export declare const findUserById: <T extends string>(client: IHttpClient, id: string, fields: ReadonlyArray<T>) => Promise<{
3
+ displayName: string;
4
+ mail: string;
5
+ }>;
6
+ export declare const useFindUserById: (id: string, fields?: readonly ["displayName", "mail", "givenName"]) => import('@tanstack/react-query').UseQueryResult<{
7
+ displayName: string;
8
+ mail: string;
9
+ }, Error>;
@@ -0,0 +1,4 @@
1
+ export declare const useFindUser: (query: string) => import('@tanstack/react-query').UseQueryResult<{
2
+ id: string;
3
+ displayName: string;
4
+ }[], Error>;
@@ -2,8 +2,12 @@
2
2
  * API Methods
3
3
  */
4
4
  export * from './api/group/find-group-members';
5
+ export * from './api/group/find-group';
6
+ export * from './api/group/get-groups-by-ids';
5
7
  export * from './api/user/find-user-by-shortname';
6
8
  export * from './api/user/find-users-by-mail';
9
+ export * from './api/user/search';
10
+ export * from './api/user/get-user-by-id';
7
11
  /**
8
12
  * API Models
9
13
  */
@@ -7,7 +7,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  * @summary Upload an application bundle file
8
8
  */
9
9
  export declare const useUploadBundleHook: () => (key: string, uploadBundleBody: BodyType<UploadBundleBody>) => Promise<void>;
10
- export declare const useUploadBundleMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
10
+ export declare const useUploadBundleMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
11
11
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>, TError, {
12
12
  key: string;
13
13
  data: BodyType<UploadBundleBody>;
@@ -22,7 +22,7 @@ export type UploadBundleMutationError = ErrorType<unknown>;
22
22
  /**
23
23
  * @summary Upload an application bundle file
24
24
  */
25
- export declare const useUploadBundle: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
25
+ export declare const useUploadBundle: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
26
26
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>, TError, {
27
27
  key: string;
28
28
  data: BodyType<UploadBundleBody>;
@@ -36,7 +36,7 @@ export declare const useUploadBundle: <TError = import('../../use-client').HttpE
36
36
  */
37
37
  export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<GetAllApps200>;
38
38
  export declare const getGetAllAppsQueryKey: () => readonly ["/api/apps"];
39
- export declare const useGetAllAppsQueryOptions: <TData = GetAllApps200, TError = import('../../use-client').HttpError>(options?: {
39
+ export declare const useGetAllAppsQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError = ErrorType<void>>(options?: {
40
40
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData>>;
41
41
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData> & {
42
42
  queryKey: QueryKey;
@@ -46,7 +46,7 @@ export type GetAllAppsQueryError = ErrorType<void>;
46
46
  /**
47
47
  * @summary List apps
48
48
  */
49
- export declare const useGetAllApps: <TData = GetAllApps200, TError = import('../../use-client').HttpError>(options?: {
49
+ export declare const useGetAllApps: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError = ErrorType<void>>(options?: {
50
50
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData>>;
51
51
  }) => UseQueryResult<TData, TError> & {
52
52
  queryKey: QueryKey;
@@ -55,7 +55,7 @@ export declare const useGetAllApps: <TData = GetAllApps200, TError = import('../
55
55
  * @summary Create or update App
56
56
  */
57
57
  export declare const useCreateOrUpdateAppHook: () => (appDto: BodyType<AppDto>) => Promise<AppDto>;
58
- export declare const useCreateOrUpdateAppMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
58
+ export declare const useCreateOrUpdateAppMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
59
59
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>, TError, {
60
60
  data: BodyType<AppDto>;
61
61
  }, TContext>;
@@ -68,7 +68,7 @@ export type CreateOrUpdateAppMutationError = ErrorType<void>;
68
68
  /**
69
69
  * @summary Create or update App
70
70
  */
71
- export declare const useCreateOrUpdateApp: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
71
+ export declare const useCreateOrUpdateApp: <TError = ErrorType<void>, TContext = unknown>(options?: {
72
72
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>, TError, {
73
73
  data: BodyType<AppDto>;
74
74
  }, TContext>;
@@ -80,7 +80,7 @@ export declare const useCreateOrUpdateApp: <TError = import('../../use-client').
80
80
  */
81
81
  export declare const useGetAppByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<AppDto>;
82
82
  export declare const getGetAppByKeyQueryKey: (key: string) => readonly [`/api/apps/key/${string}`];
83
- export declare const useGetAppByKeyQueryOptions: <TData = AppDto, TError = import('../../use-client').HttpError>(key: string, options?: {
83
+ export declare const useGetAppByKeyQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
84
84
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData>>;
85
85
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData> & {
86
86
  queryKey: QueryKey;
@@ -90,7 +90,7 @@ export type GetAppByKeyQueryError = ErrorType<void>;
90
90
  /**
91
91
  * @summary Get app by key
92
92
  */
93
- export declare const useGetAppByKey: <TData = AppDto, TError = import('../../use-client').HttpError>(key: string, options?: {
93
+ export declare const useGetAppByKey: <TData = Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
94
94
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData>>;
95
95
  }) => UseQueryResult<TData, TError> & {
96
96
  queryKey: QueryKey;
@@ -99,7 +99,7 @@ export declare const useGetAppByKey: <TData = AppDto, TError = import('../../use
99
99
  * @summary Delete app by key
100
100
  */
101
101
  export declare const useDeleteAppByKeyHook: () => (key: string) => Promise<void>;
102
- export declare const useDeleteAppByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
102
+ export declare const useDeleteAppByKeyMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
103
103
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>, TError, {
104
104
  key: string;
105
105
  }, TContext>;
@@ -111,7 +111,7 @@ export type DeleteAppByKeyMutationError = ErrorType<unknown>;
111
111
  /**
112
112
  * @summary Delete app by key
113
113
  */
114
- export declare const useDeleteAppByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
114
+ export declare const useDeleteAppByKey: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
115
115
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>, TError, {
116
116
  key: string;
117
117
  }, TContext>;
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
8
8
  */
9
9
  export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<GetAllCategories200>;
10
10
  export declare const getGetAllCategoriesQueryKey: () => readonly ["/api/apps/categories"];
11
- export declare const useGetAllCategoriesQueryOptions: <TData = GetAllCategories200, TError = import('../../use-client').HttpError>(options?: {
11
+ export declare const useGetAllCategoriesQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError = ErrorType<void>>(options?: {
12
12
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData>>;
13
13
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData> & {
14
14
  queryKey: QueryKey;
@@ -18,7 +18,7 @@ export type GetAllCategoriesQueryError = ErrorType<void>;
18
18
  /**
19
19
  * @summary List categories
20
20
  */
21
- export declare const useGetAllCategories: <TData = GetAllCategories200, TError = import('../../use-client').HttpError>(options?: {
21
+ export declare const useGetAllCategories: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError = ErrorType<void>>(options?: {
22
22
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData>>;
23
23
  }) => UseQueryResult<TData, TError> & {
24
24
  queryKey: QueryKey;
@@ -27,7 +27,7 @@ export declare const useGetAllCategories: <TData = GetAllCategories200, TError =
27
27
  * @summary Create or update category
28
28
  */
29
29
  export declare const useCreateOrUpdateCategoryHook: () => (categoryDto: BodyType<CategoryDto>) => Promise<CategoryDto>;
30
- export declare const useCreateOrUpdateCategoryMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
30
+ export declare const useCreateOrUpdateCategoryMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
31
31
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>, TError, {
32
32
  data: BodyType<CategoryDto>;
33
33
  }, TContext>;
@@ -40,7 +40,7 @@ export type CreateOrUpdateCategoryMutationError = ErrorType<void>;
40
40
  /**
41
41
  * @summary Create or update category
42
42
  */
43
- export declare const useCreateOrUpdateCategory: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
43
+ export declare const useCreateOrUpdateCategory: <TError = ErrorType<void>, TContext = unknown>(options?: {
44
44
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>, TError, {
45
45
  data: BodyType<CategoryDto>;
46
46
  }, TContext>;
@@ -52,7 +52,7 @@ export declare const useCreateOrUpdateCategory: <TError = import('../../use-clie
52
52
  */
53
53
  export declare const useGetCategoryByIdHook: () => (id: string, signal?: AbortSignal) => Promise<CategoryDto>;
54
54
  export declare const getGetCategoryByIdQueryKey: (id: string) => readonly [`/api/apps/categories/id/${string}`];
55
- export declare const useGetCategoryByIdQueryOptions: <TData = CategoryDto, TError = import('../../use-client').HttpError>(id: string, options?: {
55
+ export declare const useGetCategoryByIdQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
56
56
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData>>;
57
57
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData> & {
58
58
  queryKey: QueryKey;
@@ -62,7 +62,7 @@ export type GetCategoryByIdQueryError = ErrorType<void>;
62
62
  /**
63
63
  * @summary Get category by id
64
64
  */
65
- export declare const useGetCategoryById: <TData = CategoryDto, TError = import('../../use-client').HttpError>(id: string, options?: {
65
+ export declare const useGetCategoryById: <TData = Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
66
66
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData>>;
67
67
  }) => UseQueryResult<TData, TError> & {
68
68
  queryKey: QueryKey;
@@ -71,7 +71,7 @@ export declare const useGetCategoryById: <TData = CategoryDto, TError = import('
71
71
  * @summary Delete category by id
72
72
  */
73
73
  export declare const useDeleteCategoryByIdHook: () => (id: string) => Promise<void>;
74
- export declare const useDeleteCategoryByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
74
+ export declare const useDeleteCategoryByIdMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
75
75
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>, TError, {
76
76
  id: string;
77
77
  }, TContext>;
@@ -83,7 +83,7 @@ export type DeleteCategoryByIdMutationError = ErrorType<unknown>;
83
83
  /**
84
84
  * @summary Delete category by id
85
85
  */
86
- export declare const useDeleteCategoryById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
86
+ export declare const useDeleteCategoryById: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
87
87
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>, TError, {
88
88
  id: string;
89
89
  }, TContext>;
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
8
8
  */
9
9
  export declare const useGetCurrentEnvironmentHook: () => (signal?: AbortSignal) => Promise<EnvironmentDto>;
10
10
  export declare const getGetCurrentEnvironmentQueryKey: () => readonly ["/_discovery/environments/current"];
11
- export declare const useGetCurrentEnvironmentQueryOptions: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
11
+ export declare const useGetCurrentEnvironmentQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError = ErrorType<void>>(options?: {
12
12
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData>>;
13
13
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData> & {
14
14
  queryKey: QueryKey;
@@ -18,7 +18,7 @@ export type GetCurrentEnvironmentQueryError = ErrorType<void>;
18
18
  /**
19
19
  * @summary Get current environment
20
20
  */
21
- export declare const useGetCurrentEnvironment: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
21
+ export declare const useGetCurrentEnvironment: <TData = Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError = ErrorType<void>>(options?: {
22
22
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData>>;
23
23
  }) => UseQueryResult<TData, TError> & {
24
24
  queryKey: QueryKey;
@@ -7,7 +7,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  * @summary Create feedback
8
8
  */
9
9
  export declare const useCreateFeedbackHook: () => (feedbackDto: BodyType<FeedbackDto>) => Promise<FeedbackResponseDto>;
10
- export declare const useCreateFeedbackMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
10
+ export declare const useCreateFeedbackMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
11
11
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>, TError, {
12
12
  data: BodyType<FeedbackDto>;
13
13
  }, TContext>;
@@ -20,7 +20,7 @@ export type CreateFeedbackMutationError = ErrorType<void>;
20
20
  /**
21
21
  * @summary Create feedback
22
22
  */
23
- export declare const useCreateFeedback: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
23
+ export declare const useCreateFeedback: <TError = ErrorType<void>, TContext = unknown>(options?: {
24
24
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>, TError, {
25
25
  data: BodyType<FeedbackDto>;
26
26
  }, TContext>;
@@ -32,7 +32,7 @@ export declare const useCreateFeedback: <TError = import('../../use-client').Htt
32
32
  */
33
33
  export declare const useListFeedbacksByCurrentUserHook: () => (params?: ListFeedbacksByCurrentUserParams, signal?: AbortSignal) => Promise<FeedbackPage>;
34
34
  export declare const getListFeedbacksByCurrentUserQueryKey: (params?: ListFeedbacksByCurrentUserParams) => readonly ["/api/feedbacks/mine", ...ListFeedbacksByCurrentUserParams[]];
35
- export declare const useListFeedbacksByCurrentUserQueryOptions: <TData = FeedbackPage, TError = import('../../use-client').HttpError>(params?: ListFeedbacksByCurrentUserParams, options?: {
35
+ export declare const useListFeedbacksByCurrentUserQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError = ErrorType<void>>(params?: ListFeedbacksByCurrentUserParams, options?: {
36
36
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData>>;
37
37
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData> & {
38
38
  queryKey: QueryKey;
@@ -42,7 +42,7 @@ export type ListFeedbacksByCurrentUserQueryError = ErrorType<void>;
42
42
  /**
43
43
  * @summary List feedbacks submitted by the current user
44
44
  */
45
- export declare const useListFeedbacksByCurrentUser: <TData = FeedbackPage, TError = import('../../use-client').HttpError>(params?: ListFeedbacksByCurrentUserParams, options?: {
45
+ export declare const useListFeedbacksByCurrentUser: <TData = Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError = ErrorType<void>>(params?: ListFeedbacksByCurrentUserParams, options?: {
46
46
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData>>;
47
47
  }) => UseQueryResult<TData, TError> & {
48
48
  queryKey: QueryKey;
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
8
8
  */
9
9
  export declare const useGetRomaConfigurationByIdHook: () => (id: string, signal?: AbortSignal) => Promise<RomaConfigurationDto>;
10
10
  export declare const getGetRomaConfigurationByIdQueryKey: (id: string) => readonly [`/api/configurations/id/${string}`];
11
- export declare const useGetRomaConfigurationByIdQueryOptions: <TData = RomaConfigurationDto, TError = import('../../use-client').HttpError>(id: string, options?: {
11
+ export declare const useGetRomaConfigurationByIdQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
12
12
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData>>;
13
13
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData> & {
14
14
  queryKey: QueryKey;
@@ -18,7 +18,7 @@ export type GetRomaConfigurationByIdQueryError = ErrorType<void>;
18
18
  /**
19
19
  * @summary Get roma configuration by id
20
20
  */
21
- export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto, TError = import('../../use-client').HttpError>(id: string, options?: {
21
+ export declare const useGetRomaConfigurationById: <TData = Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
22
22
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData>>;
23
23
  }) => UseQueryResult<TData, TError> & {
24
24
  queryKey: QueryKey;
@@ -27,7 +27,7 @@ export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto,
27
27
  * @summary Update a roma configuration
28
28
  */
29
29
  export declare const useUpdateRomaConfigurationHook: () => (id: string, romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
30
- export declare const useUpdateRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
30
+ export declare const useUpdateRomaConfigurationMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
31
31
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>, TError, {
32
32
  id: string;
33
33
  data: BodyType<RomaConfigurationDto>;
@@ -42,7 +42,7 @@ export type UpdateRomaConfigurationMutationError = ErrorType<void>;
42
42
  /**
43
43
  * @summary Update a roma configuration
44
44
  */
45
- export declare const useUpdateRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
45
+ export declare const useUpdateRomaConfiguration: <TError = ErrorType<void>, TContext = unknown>(options?: {
46
46
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>, TError, {
47
47
  id: string;
48
48
  data: BodyType<RomaConfigurationDto>;
@@ -55,7 +55,7 @@ export declare const useUpdateRomaConfiguration: <TError = import('../../use-cli
55
55
  * @summary Delete a roma configuration by id
56
56
  */
57
57
  export declare const useDeleteRomaConfigurationHook: () => (id: string) => Promise<SettingDto>;
58
- export declare const useDeleteRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
58
+ export declare const useDeleteRomaConfigurationMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
59
59
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>, TError, {
60
60
  id: string;
61
61
  }, TContext>;
@@ -67,7 +67,7 @@ export type DeleteRomaConfigurationMutationError = ErrorType<void>;
67
67
  /**
68
68
  * @summary Delete a roma configuration by id
69
69
  */
70
- export declare const useDeleteRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
70
+ export declare const useDeleteRomaConfiguration: <TError = ErrorType<void>, TContext = unknown>(options?: {
71
71
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>, TError, {
72
72
  id: string;
73
73
  }, TContext>;
@@ -79,7 +79,7 @@ export declare const useDeleteRomaConfiguration: <TError = import('../../use-cli
79
79
  */
80
80
  export declare const useGetAllRomaConfigurationHook: () => (signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
81
81
  export declare const getGetAllRomaConfigurationQueryKey: () => readonly ["/api/configurations"];
82
- export declare const useGetAllRomaConfigurationQueryOptions: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
82
+ export declare const useGetAllRomaConfigurationQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError = ErrorType<void>>(options?: {
83
83
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData>>;
84
84
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData> & {
85
85
  queryKey: QueryKey;
@@ -89,7 +89,7 @@ export type GetAllRomaConfigurationQueryError = ErrorType<void>;
89
89
  /**
90
90
  * @summary Get all roma configurations
91
91
  */
92
- export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
92
+ export declare const useGetAllRomaConfiguration: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError = ErrorType<void>>(options?: {
93
93
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData>>;
94
94
  }) => UseQueryResult<TData, TError> & {
95
95
  queryKey: QueryKey;
@@ -98,7 +98,7 @@ export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[]
98
98
  * @summary Create a new roma configuration
99
99
  */
100
100
  export declare const useAddRomaConfigurationHook: () => (romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
101
- export declare const useAddRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
101
+ export declare const useAddRomaConfigurationMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
102
102
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>, TError, {
103
103
  data: BodyType<RomaConfigurationDto>;
104
104
  }, TContext>;
@@ -111,7 +111,7 @@ export type AddRomaConfigurationMutationError = ErrorType<void>;
111
111
  /**
112
112
  * @summary Create a new roma configuration
113
113
  */
114
- export declare const useAddRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
114
+ export declare const useAddRomaConfiguration: <TError = ErrorType<void>, TContext = unknown>(options?: {
115
115
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>, TError, {
116
116
  data: BodyType<RomaConfigurationDto>;
117
117
  }, TContext>;
@@ -123,7 +123,7 @@ export declare const useAddRomaConfiguration: <TError = import('../../use-client
123
123
  */
124
124
  export declare const useGetAllRomaConfigurationTypesHook: () => (signal?: AbortSignal) => Promise<"servicebus"[]>;
125
125
  export declare const getGetAllRomaConfigurationTypesQueryKey: () => readonly ["/api/configurations/types"];
126
- export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
126
+ export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError = ErrorType<void>>(options?: {
127
127
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData>>;
128
128
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData> & {
129
129
  queryKey: QueryKey;
@@ -133,7 +133,7 @@ export type GetAllRomaConfigurationTypesQueryError = ErrorType<void>;
133
133
  /**
134
134
  * @summary Get valid roma configuration types
135
135
  */
136
- export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
136
+ export declare const useGetAllRomaConfigurationTypes: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError = ErrorType<void>>(options?: {
137
137
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData>>;
138
138
  }) => UseQueryResult<TData, TError> & {
139
139
  queryKey: QueryKey;
@@ -143,7 +143,7 @@ export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], T
143
143
  */
144
144
  export declare const useGetAllRomaConfigurationByTypeHook: () => (type: string, signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
145
145
  export declare const getGetAllRomaConfigurationByTypeQueryKey: (type: string) => readonly [`/api/configurations/types/type/${string}`];
146
- export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(type: string, options?: {
146
+ export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError = ErrorType<void>>(type: string, options?: {
147
147
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData>>;
148
148
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData> & {
149
149
  queryKey: QueryKey;
@@ -153,7 +153,7 @@ export type GetAllRomaConfigurationByTypeQueryError = ErrorType<void>;
153
153
  /**
154
154
  * @summary Get all roma configurations for given type
155
155
  */
156
- export declare const useGetAllRomaConfigurationByType: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(type: string, options?: {
156
+ export declare const useGetAllRomaConfigurationByType: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError = ErrorType<void>>(type: string, options?: {
157
157
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData>>;
158
158
  }) => UseQueryResult<TData, TError> & {
159
159
  queryKey: QueryKey;
@@ -5,14 +5,14 @@ type AwaitedInput<T> = PromiseLike<T> | T;
5
5
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
6
6
  export declare const useStreamEventsHook: () => (signal?: AbortSignal) => Promise<ServerSentEventStandardEventDto[]>;
7
7
  export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
8
- export declare const useStreamEventsQueryOptions: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
8
+ export declare const useStreamEventsQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options?: {
9
9
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
10
10
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData> & {
11
11
  queryKey: QueryKey;
12
12
  };
13
13
  export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
14
14
  export type StreamEventsQueryError = ErrorType<unknown>;
15
- export declare const useStreamEvents: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
15
+ export declare const useStreamEvents: <TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options?: {
16
16
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
17
17
  }) => UseQueryResult<TData, TError> & {
18
18
  queryKey: QueryKey;
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
8
8
  */
9
9
  export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<GetAllServices200>;
10
10
  export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
11
- export declare const useGetAllServicesQueryOptions: <TData = GetAllServices200, TError = import('../../use-client').HttpError>(options?: {
11
+ export declare const useGetAllServicesQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options?: {
12
12
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
13
13
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData> & {
14
14
  queryKey: QueryKey;
@@ -18,7 +18,7 @@ export type GetAllServicesQueryError = ErrorType<void>;
18
18
  /**
19
19
  * @summary List services for current environment
20
20
  */
21
- export declare const useGetAllServices: <TData = GetAllServices200, TError = import('../../use-client').HttpError>(options?: {
21
+ export declare const useGetAllServices: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options?: {
22
22
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
23
23
  }) => UseQueryResult<TData, TError> & {
24
24
  queryKey: QueryKey;
@@ -27,7 +27,7 @@ export declare const useGetAllServices: <TData = GetAllServices200, TError = imp
27
27
  * @summary Create or update service for current environment
28
28
  */
29
29
  export declare const useCreateOrUpdateServiceHook: () => (serviceDto: BodyType<ServiceDto>) => Promise<ServiceDto>;
30
- export declare const useCreateOrUpdateServiceMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
30
+ export declare const useCreateOrUpdateServiceMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
31
31
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
32
32
  data: BodyType<ServiceDto>;
33
33
  }, TContext>;
@@ -40,7 +40,7 @@ export type CreateOrUpdateServiceMutationError = ErrorType<void>;
40
40
  /**
41
41
  * @summary Create or update service for current environment
42
42
  */
43
- export declare const useCreateOrUpdateService: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
43
+ export declare const useCreateOrUpdateService: <TError = ErrorType<void>, TContext = unknown>(options?: {
44
44
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
45
45
  data: BodyType<ServiceDto>;
46
46
  }, TContext>;
@@ -52,7 +52,7 @@ export declare const useCreateOrUpdateService: <TError = import('../../use-clien
52
52
  */
53
53
  export declare const useGetServiceByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<ServiceDto>;
54
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?: {
55
+ export declare const useGetServiceByKeyQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
56
56
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
57
57
  }) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData> & {
58
58
  queryKey: QueryKey;
@@ -62,7 +62,7 @@ export type GetServiceByKeyQueryError = ErrorType<void>;
62
62
  /**
63
63
  * @summary Get service by key
64
64
  */
65
- export declare const useGetServiceByKey: <TData = ServiceDto, TError = import('../../use-client').HttpError>(key: string, options?: {
65
+ export declare const useGetServiceByKey: <TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
66
66
  query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
67
67
  }) => UseQueryResult<TData, TError> & {
68
68
  queryKey: QueryKey;
@@ -71,7 +71,7 @@ export declare const useGetServiceByKey: <TData = ServiceDto, TError = import('.
71
71
  * @summary Delete service by key
72
72
  */
73
73
  export declare const useDeleteServiceByKeyHook: () => (key: string) => Promise<void>;
74
- export declare const useDeleteServiceByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
74
+ export declare const useDeleteServiceByKeyMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
75
75
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
76
76
  key: string;
77
77
  }, TContext>;
@@ -83,7 +83,7 @@ export type DeleteServiceByKeyMutationError = ErrorType<unknown>;
83
83
  /**
84
84
  * @summary Delete service by key
85
85
  */
86
- export declare const useDeleteServiceByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
86
+ export declare const useDeleteServiceByKey: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
87
87
  mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
88
88
  key: string;
89
89
  }, TContext>;