@equinor/roma-framework 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress.mjs +1132 -0
- package/dev-portal/index.d.ts +15 -0
- package/dev-portal/lib/api/fetcher.d.ts +21 -0
- package/dev-portal/lib/api/ms-graph/api/group/find-group-members.d.ts +2 -0
- package/dev-portal/lib/api/ms-graph/api/user/find-user-by-shortname.d.ts +1 -0
- package/dev-portal/lib/api/ms-graph/api/user/find-users-by-mail.d.ts +2 -0
- package/dev-portal/lib/api/ms-graph/index.d.ts +10 -0
- package/dev-portal/lib/api/ms-graph/model/azure-response.d.ts +7 -0
- package/dev-portal/lib/api/ms-graph/model/error.d.ts +11 -0
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +121 -0
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +93 -0
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +26 -0
- package/dev-portal/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +50 -0
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +161 -0
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +20 -0
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +93 -0
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +260 -0
- package/dev-portal/lib/api/roma/index.d.ts +9 -0
- package/dev-portal/lib/api/roma/model/appDto.d.ts +19 -0
- package/dev-portal/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/environmentDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/feedbackDetailsDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/feedbackDto.d.ts +6 -0
- package/dev-portal/lib/api/roma/model/feedbackExpandedResponseDetailsDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/feedbackExpandedResponseDto.d.ts +4 -0
- package/dev-portal/lib/api/roma/model/feedbackExpandedResponseIssueDto.d.ts +6 -0
- package/dev-portal/lib/api/roma/model/feedbackFeedbackDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/feedbackPage.d.ts +19 -0
- package/dev-portal/lib/api/roma/model/feedbackResponseDto.d.ts +4 -0
- package/dev-portal/lib/api/roma/model/feedbackResponseIssueDto.d.ts +11 -0
- package/dev-portal/lib/api/roma/model/feedbackSolutionDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/getAllApps200.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/getAllCategories200.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/dev-portal/lib/api/roma/model/getAllServices200.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/getSettingsByAppShortName200.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/getSettingsByUserId200.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/index.d.ts +38 -0
- package/dev-portal/lib/api/roma/model/listFeedbacksByCurrentUserParams.d.ts +17 -0
- package/dev-portal/lib/api/roma/model/pageableObject.d.ts +9 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +7 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +8 -0
- package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/settingDto.d.ts +9 -0
- package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/sortObject.d.ts +12 -0
- package/dev-portal/lib/api/roma/model/uploadBundleBody.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/versionDto.d.ts +12 -0
- package/dev-portal/lib/api/roma/use-client.d.ts +34 -0
- package/dev-portal/lib/api/util.d.ts +1 -0
- package/dev-portal/lib/app-provider.d.ts +32 -0
- package/dev-portal/lib/dev-portal/AppLoader.d.ts +14 -0
- package/dev-portal/lib/dev-portal/AppViewer.d.ts +6 -0
- package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +12 -0
- package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +20 -0
- package/dev-portal/lib/dev-portal/Header.d.ts +2 -0
- package/dev-portal/lib/dev-portal/HeaderMenu.d.ts +4 -0
- package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
- package/dev-portal/lib/dev-portal/Navigation.d.ts +5 -0
- package/dev-portal/lib/dev-portal/PortalStyles.d.ts +1111 -0
- package/dev-portal/lib/dev-portal/PortalTypes.d.ts +13 -0
- package/dev-portal/lib/dev-portal/Root.d.ts +5 -0
- package/dev-portal/lib/dev-portal/SideSheets.d.ts +6 -0
- package/dev-portal/lib/dev-portal/config.d.ts +3 -0
- package/dev-portal/lib/dev-portal/index.d.ts +13 -0
- package/dev-portal/lib/dev-portal/logo.d.ts +2 -0
- package/dev-portal/lib/eds-event-provider.d.ts +6 -0
- package/dev-portal/lib/error-handlers/fallback-http-errors.d.ts +1 -0
- package/dev-portal/lib/error-handlers/http-error-handler.d.ts +11 -0
- package/dev-portal/lib/hooks/use-get-api-roles.d.ts +11 -0
- package/dev-portal/lib/hooks/use-has-api-role.d.ts +7 -0
- package/dev-portal/lib/make-component.d.ts +12 -0
- package/dev-portal/lib/query/persister.d.ts +6 -0
- package/dev-portal/lib/style-provider.d.ts +7 -0
- package/dev-portal/lib/test-utils/modules.d.ts +109 -0
- package/dev-portal/lib/test-utils/roma-cypress-wrapper.d.ts +3 -0
- package/dev-portal/package.json +5 -1
- package/dev-portal/roma-framework.umd.js +2787 -3311
- package/index.d.ts +15 -0
- package/lib/api/fetcher.d.ts +21 -0
- package/lib/api/ms-graph/api/group/find-group-members.d.ts +2 -0
- package/lib/api/ms-graph/api/user/find-user-by-shortname.d.ts +1 -0
- package/lib/api/ms-graph/api/user/find-users-by-mail.d.ts +2 -0
- package/lib/api/ms-graph/index.d.ts +10 -0
- package/lib/api/ms-graph/model/azure-response.d.ts +7 -0
- package/lib/api/ms-graph/model/error.d.ts +11 -0
- package/lib/api/roma/api/app-controller/app-controller.d.ts +121 -0
- package/lib/api/roma/api/category-controller/category-controller.d.ts +93 -0
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +26 -0
- package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +50 -0
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +161 -0
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +20 -0
- package/lib/api/roma/api/service-controller/service-controller.d.ts +93 -0
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +260 -0
- package/lib/api/roma/index.d.ts +9 -0
- package/lib/api/roma/model/appDto.d.ts +19 -0
- package/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/lib/api/roma/model/environmentDto.d.ts +10 -0
- package/lib/api/roma/model/feedbackDetailsDto.d.ts +13 -0
- package/lib/api/roma/model/feedbackDto.d.ts +6 -0
- package/lib/api/roma/model/feedbackExpandedResponseDetailsDto.d.ts +13 -0
- package/lib/api/roma/model/feedbackExpandedResponseDto.d.ts +4 -0
- package/lib/api/roma/model/feedbackExpandedResponseIssueDto.d.ts +6 -0
- package/lib/api/roma/model/feedbackFeedbackDto.d.ts +13 -0
- package/lib/api/roma/model/feedbackPage.d.ts +19 -0
- package/lib/api/roma/model/feedbackResponseDto.d.ts +4 -0
- package/lib/api/roma/model/feedbackResponseIssueDto.d.ts +11 -0
- package/lib/api/roma/model/feedbackSolutionDto.d.ts +10 -0
- package/lib/api/roma/model/getAllApps200.d.ts +10 -0
- package/lib/api/roma/model/getAllCategories200.d.ts +10 -0
- package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/lib/api/roma/model/getAllServices200.d.ts +10 -0
- package/lib/api/roma/model/getSettingsByAppShortName200.d.ts +10 -0
- package/lib/api/roma/model/getSettingsByUserId200.d.ts +10 -0
- package/lib/api/roma/model/index.d.ts +38 -0
- package/lib/api/roma/model/listFeedbacksByCurrentUserParams.d.ts +17 -0
- package/lib/api/roma/model/pageableObject.d.ts +9 -0
- package/lib/api/roma/model/romaConfigurationDto.d.ts +7 -0
- package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +8 -0
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/lib/api/roma/model/settingDto.d.ts +9 -0
- package/lib/api/roma/model/settingDtoValue.d.ts +10 -0
- package/lib/api/roma/model/sortObject.d.ts +12 -0
- package/lib/api/roma/model/uploadBundleBody.d.ts +10 -0
- package/lib/api/roma/model/versionDto.d.ts +12 -0
- package/lib/api/roma/use-client.d.ts +34 -0
- package/lib/api/util.d.ts +1 -0
- package/lib/app-provider.d.ts +32 -0
- package/lib/dev-portal/AppLoader.d.ts +14 -0
- package/lib/dev-portal/AppViewer.d.ts +6 -0
- package/lib/dev-portal/EquinorLoader.d.ts +12 -0
- package/lib/dev-portal/ErrorViewer.d.ts +20 -0
- package/lib/dev-portal/Header.d.ts +2 -0
- package/lib/dev-portal/HeaderMenu.d.ts +4 -0
- package/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
- package/lib/dev-portal/Navigation.d.ts +5 -0
- package/lib/dev-portal/PortalStyles.d.ts +1111 -0
- package/lib/dev-portal/PortalTypes.d.ts +13 -0
- package/lib/dev-portal/Root.d.ts +5 -0
- package/lib/dev-portal/SideSheets.d.ts +6 -0
- package/lib/dev-portal/config.d.ts +3 -0
- package/lib/dev-portal/index.d.ts +13 -0
- package/lib/dev-portal/logo.d.ts +2 -0
- package/lib/eds-event-provider.d.ts +6 -0
- package/lib/error-handlers/fallback-http-errors.d.ts +1 -0
- package/lib/error-handlers/http-error-handler.d.ts +11 -0
- package/lib/hooks/use-get-api-roles.d.ts +11 -0
- package/lib/hooks/use-has-api-role.d.ts +7 -0
- package/lib/make-component.d.ts +12 -0
- package/lib/query/persister.d.ts +6 -0
- package/lib/style-provider.d.ts +7 -0
- package/lib/test-utils/modules.d.ts +109 -0
- package/lib/test-utils/roma-cypress-wrapper.d.ts +3 -0
- package/package.json +6 -2
- package/roma-framework.mjs +1225 -4925
- package/router-CrMzSazo.mjs +5741 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './lib/make-component';
|
|
2
|
+
export * from './lib/dev-portal/EquinorLoader';
|
|
3
|
+
export * from './lib/dev-portal/ErrorViewer';
|
|
4
|
+
export * from './lib/dev-portal/AppLoader';
|
|
5
|
+
export * from './lib/dev-portal/AppViewer';
|
|
6
|
+
export * from './lib/dev-portal/Header';
|
|
7
|
+
export * from './lib/style-provider';
|
|
8
|
+
export * from './lib/dev-portal/HttpErrorViewer';
|
|
9
|
+
export * from './lib/api/roma';
|
|
10
|
+
export * from './lib/api/ms-graph';
|
|
11
|
+
export * from './lib/app-provider';
|
|
12
|
+
export * from './lib/query/persister';
|
|
13
|
+
export * from './lib/hooks/use-get-api-roles';
|
|
14
|
+
export * from './lib/hooks/use-has-api-role';
|
|
15
|
+
export * from './lib/error-handlers/http-error-handler';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface HttpErrorServerResponse {
|
|
2
|
+
timestamp: string;
|
|
3
|
+
status: number;
|
|
4
|
+
error: string;
|
|
5
|
+
message: string;
|
|
6
|
+
path: string;
|
|
7
|
+
}
|
|
8
|
+
export interface HttpErrorResponse {
|
|
9
|
+
status: number;
|
|
10
|
+
statusText: string;
|
|
11
|
+
message: HttpErrorServerResponse;
|
|
12
|
+
ok: boolean;
|
|
13
|
+
headers: Headers;
|
|
14
|
+
url: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class HttpError extends Error {
|
|
17
|
+
readonly message: string;
|
|
18
|
+
readonly response: HttpErrorResponse;
|
|
19
|
+
constructor(message: string, response: HttpErrorResponse);
|
|
20
|
+
}
|
|
21
|
+
export declare const handleJsonRequest: <T>(req: Response) => Promise<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useFindUsersByShortname: (shortnames: Array<string> | string, fields?: readonly ["displayName", "mail", "givenName"]) => import('@tanstack/react-query').UseQueryResult<import('../..').AzureResponse<readonly ("displayName" | "mail" | "givenName")[]>, Error>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { AzureResponse } from '../../model/azure-response';
|
|
2
|
+
export declare const useFindUsersByMail: (email: Array<string> | string, fields?: readonly ["displayName", "mail", "givenName"]) => import('@tanstack/react-query').UseQueryResult<AzureResponse<readonly ("displayName" | "mail" | "givenName")[]>, Error>;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { AppDto, GetAllApps200, UploadBundleBody } from '../../model';
|
|
3
|
+
import { ErrorType, BodyType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
/**
|
|
7
|
+
* @summary Upload an application bundle file
|
|
8
|
+
*/
|
|
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?: {
|
|
11
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>, TError, {
|
|
12
|
+
key: string;
|
|
13
|
+
data: BodyType<UploadBundleBody>;
|
|
14
|
+
}, TContext>;
|
|
15
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>, TError, {
|
|
16
|
+
key: string;
|
|
17
|
+
data: BodyType<UploadBundleBody>;
|
|
18
|
+
}, TContext>;
|
|
19
|
+
export type UploadBundleMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>>;
|
|
20
|
+
export type UploadBundleMutationBody = BodyType<UploadBundleBody>;
|
|
21
|
+
export type UploadBundleMutationError = ErrorType<unknown>;
|
|
22
|
+
/**
|
|
23
|
+
* @summary Upload an application bundle file
|
|
24
|
+
*/
|
|
25
|
+
export declare const useUploadBundle: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
26
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>, TError, {
|
|
27
|
+
key: string;
|
|
28
|
+
data: BodyType<UploadBundleBody>;
|
|
29
|
+
}, TContext>;
|
|
30
|
+
}) => import('@tanstack/react-query').UseMutationResult<void, TError, {
|
|
31
|
+
key: string;
|
|
32
|
+
data: BodyType<UploadBundleBody>;
|
|
33
|
+
}, TContext>;
|
|
34
|
+
/**
|
|
35
|
+
* @summary List apps
|
|
36
|
+
*/
|
|
37
|
+
export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<GetAllApps200>;
|
|
38
|
+
export declare const getGetAllAppsQueryKey: () => readonly ["/api/apps"];
|
|
39
|
+
export declare const useGetAllAppsQueryOptions: <TData = GetAllApps200, TError = import('../../use-client').HttpError>(options?: {
|
|
40
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData>>;
|
|
41
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData> & {
|
|
42
|
+
queryKey: QueryKey;
|
|
43
|
+
};
|
|
44
|
+
export type GetAllAppsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>>;
|
|
45
|
+
export type GetAllAppsQueryError = ErrorType<void>;
|
|
46
|
+
/**
|
|
47
|
+
* @summary List apps
|
|
48
|
+
*/
|
|
49
|
+
export declare const useGetAllApps: <TData = GetAllApps200, TError = import('../../use-client').HttpError>(options?: {
|
|
50
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData>>;
|
|
51
|
+
}) => UseQueryResult<TData, TError> & {
|
|
52
|
+
queryKey: QueryKey;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @summary Create or update App
|
|
56
|
+
*/
|
|
57
|
+
export declare const useCreateOrUpdateAppHook: () => (appDto: BodyType<AppDto>) => Promise<AppDto>;
|
|
58
|
+
export declare const useCreateOrUpdateAppMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
59
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>, TError, {
|
|
60
|
+
data: BodyType<AppDto>;
|
|
61
|
+
}, TContext>;
|
|
62
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>, TError, {
|
|
63
|
+
data: BodyType<AppDto>;
|
|
64
|
+
}, TContext>;
|
|
65
|
+
export type CreateOrUpdateAppMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>>;
|
|
66
|
+
export type CreateOrUpdateAppMutationBody = BodyType<AppDto>;
|
|
67
|
+
export type CreateOrUpdateAppMutationError = ErrorType<void>;
|
|
68
|
+
/**
|
|
69
|
+
* @summary Create or update App
|
|
70
|
+
*/
|
|
71
|
+
export declare const useCreateOrUpdateApp: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
72
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>, TError, {
|
|
73
|
+
data: BodyType<AppDto>;
|
|
74
|
+
}, TContext>;
|
|
75
|
+
}) => import('@tanstack/react-query').UseMutationResult<AppDto, TError, {
|
|
76
|
+
data: BodyType<AppDto>;
|
|
77
|
+
}, TContext>;
|
|
78
|
+
/**
|
|
79
|
+
* @summary Get app by key
|
|
80
|
+
*/
|
|
81
|
+
export declare const useGetAppByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<AppDto>;
|
|
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?: {
|
|
84
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData>>;
|
|
85
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData> & {
|
|
86
|
+
queryKey: QueryKey;
|
|
87
|
+
};
|
|
88
|
+
export type GetAppByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>>;
|
|
89
|
+
export type GetAppByKeyQueryError = ErrorType<void>;
|
|
90
|
+
/**
|
|
91
|
+
* @summary Get app by key
|
|
92
|
+
*/
|
|
93
|
+
export declare const useGetAppByKey: <TData = AppDto, TError = import('../../use-client').HttpError>(key: string, options?: {
|
|
94
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData>>;
|
|
95
|
+
}) => UseQueryResult<TData, TError> & {
|
|
96
|
+
queryKey: QueryKey;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* @summary Delete app by key
|
|
100
|
+
*/
|
|
101
|
+
export declare const useDeleteAppByKeyHook: () => (key: string) => Promise<void>;
|
|
102
|
+
export declare const useDeleteAppByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
103
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>, TError, {
|
|
104
|
+
key: string;
|
|
105
|
+
}, TContext>;
|
|
106
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>, TError, {
|
|
107
|
+
key: string;
|
|
108
|
+
}, TContext>;
|
|
109
|
+
export type DeleteAppByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>>;
|
|
110
|
+
export type DeleteAppByKeyMutationError = ErrorType<unknown>;
|
|
111
|
+
/**
|
|
112
|
+
* @summary Delete app by key
|
|
113
|
+
*/
|
|
114
|
+
export declare const useDeleteAppByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
115
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>, TError, {
|
|
116
|
+
key: string;
|
|
117
|
+
}, TContext>;
|
|
118
|
+
}) => import('@tanstack/react-query').UseMutationResult<void, TError, {
|
|
119
|
+
key: string;
|
|
120
|
+
}, TContext>;
|
|
121
|
+
export {};
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { CategoryDto, GetAllCategories200 } from '../../model';
|
|
3
|
+
import { ErrorType, BodyType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
/**
|
|
7
|
+
* @summary List categories
|
|
8
|
+
*/
|
|
9
|
+
export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<GetAllCategories200>;
|
|
10
|
+
export declare const getGetAllCategoriesQueryKey: () => readonly ["/api/apps/categories"];
|
|
11
|
+
export declare const useGetAllCategoriesQueryOptions: <TData = GetAllCategories200, TError = import('../../use-client').HttpError>(options?: {
|
|
12
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData>>;
|
|
13
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData> & {
|
|
14
|
+
queryKey: QueryKey;
|
|
15
|
+
};
|
|
16
|
+
export type GetAllCategoriesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>>;
|
|
17
|
+
export type GetAllCategoriesQueryError = ErrorType<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @summary List categories
|
|
20
|
+
*/
|
|
21
|
+
export declare const useGetAllCategories: <TData = GetAllCategories200, TError = import('../../use-client').HttpError>(options?: {
|
|
22
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData>>;
|
|
23
|
+
}) => UseQueryResult<TData, TError> & {
|
|
24
|
+
queryKey: QueryKey;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @summary Create or update category
|
|
28
|
+
*/
|
|
29
|
+
export declare const useCreateOrUpdateCategoryHook: () => (categoryDto: BodyType<CategoryDto>) => Promise<CategoryDto>;
|
|
30
|
+
export declare const useCreateOrUpdateCategoryMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
31
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>, TError, {
|
|
32
|
+
data: BodyType<CategoryDto>;
|
|
33
|
+
}, TContext>;
|
|
34
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>, TError, {
|
|
35
|
+
data: BodyType<CategoryDto>;
|
|
36
|
+
}, TContext>;
|
|
37
|
+
export type CreateOrUpdateCategoryMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>>;
|
|
38
|
+
export type CreateOrUpdateCategoryMutationBody = BodyType<CategoryDto>;
|
|
39
|
+
export type CreateOrUpdateCategoryMutationError = ErrorType<void>;
|
|
40
|
+
/**
|
|
41
|
+
* @summary Create or update category
|
|
42
|
+
*/
|
|
43
|
+
export declare const useCreateOrUpdateCategory: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
44
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>, TError, {
|
|
45
|
+
data: BodyType<CategoryDto>;
|
|
46
|
+
}, TContext>;
|
|
47
|
+
}) => import('@tanstack/react-query').UseMutationResult<CategoryDto, TError, {
|
|
48
|
+
data: BodyType<CategoryDto>;
|
|
49
|
+
}, TContext>;
|
|
50
|
+
/**
|
|
51
|
+
* @summary Get category by id
|
|
52
|
+
*/
|
|
53
|
+
export declare const useGetCategoryByIdHook: () => (id: string, signal?: AbortSignal) => Promise<CategoryDto>;
|
|
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?: {
|
|
56
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData>>;
|
|
57
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData> & {
|
|
58
|
+
queryKey: QueryKey;
|
|
59
|
+
};
|
|
60
|
+
export type GetCategoryByIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>>;
|
|
61
|
+
export type GetCategoryByIdQueryError = ErrorType<void>;
|
|
62
|
+
/**
|
|
63
|
+
* @summary Get category by id
|
|
64
|
+
*/
|
|
65
|
+
export declare const useGetCategoryById: <TData = CategoryDto, TError = import('../../use-client').HttpError>(id: string, options?: {
|
|
66
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData>>;
|
|
67
|
+
}) => UseQueryResult<TData, TError> & {
|
|
68
|
+
queryKey: QueryKey;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* @summary Delete category by id
|
|
72
|
+
*/
|
|
73
|
+
export declare const useDeleteCategoryByIdHook: () => (id: string) => Promise<void>;
|
|
74
|
+
export declare const useDeleteCategoryByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
75
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>, TError, {
|
|
76
|
+
id: string;
|
|
77
|
+
}, TContext>;
|
|
78
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>, TError, {
|
|
79
|
+
id: string;
|
|
80
|
+
}, TContext>;
|
|
81
|
+
export type DeleteCategoryByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>>;
|
|
82
|
+
export type DeleteCategoryByIdMutationError = ErrorType<unknown>;
|
|
83
|
+
/**
|
|
84
|
+
* @summary Delete category by id
|
|
85
|
+
*/
|
|
86
|
+
export declare const useDeleteCategoryById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
87
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>, TError, {
|
|
88
|
+
id: string;
|
|
89
|
+
}, TContext>;
|
|
90
|
+
}) => import('@tanstack/react-query').UseMutationResult<void, TError, {
|
|
91
|
+
id: string;
|
|
92
|
+
}, TContext>;
|
|
93
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { EnvironmentDto } from '../../model';
|
|
3
|
+
import { ErrorType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
/**
|
|
7
|
+
* @summary Get current environment
|
|
8
|
+
*/
|
|
9
|
+
export declare const useGetCurrentEnvironmentHook: () => (signal?: AbortSignal) => Promise<EnvironmentDto>;
|
|
10
|
+
export declare const getGetCurrentEnvironmentQueryKey: () => readonly ["/_discovery/environments/current"];
|
|
11
|
+
export declare const useGetCurrentEnvironmentQueryOptions: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
|
|
12
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData>>;
|
|
13
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData> & {
|
|
14
|
+
queryKey: QueryKey;
|
|
15
|
+
};
|
|
16
|
+
export type GetCurrentEnvironmentQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>>;
|
|
17
|
+
export type GetCurrentEnvironmentQueryError = ErrorType<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @summary Get current environment
|
|
20
|
+
*/
|
|
21
|
+
export declare const useGetCurrentEnvironment: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
|
|
22
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData>>;
|
|
23
|
+
}) => UseQueryResult<TData, TError> & {
|
|
24
|
+
queryKey: QueryKey;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { FeedbackDto, FeedbackPage, FeedbackResponseDto, ListFeedbacksByCurrentUserParams } from '../../model';
|
|
3
|
+
import { ErrorType, BodyType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
/**
|
|
7
|
+
* @summary Create feedback
|
|
8
|
+
*/
|
|
9
|
+
export declare const useCreateFeedbackHook: () => (feedbackDto: BodyType<FeedbackDto>) => Promise<FeedbackResponseDto>;
|
|
10
|
+
export declare const useCreateFeedbackMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
11
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>, TError, {
|
|
12
|
+
data: BodyType<FeedbackDto>;
|
|
13
|
+
}, TContext>;
|
|
14
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>, TError, {
|
|
15
|
+
data: BodyType<FeedbackDto>;
|
|
16
|
+
}, TContext>;
|
|
17
|
+
export type CreateFeedbackMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>>;
|
|
18
|
+
export type CreateFeedbackMutationBody = BodyType<FeedbackDto>;
|
|
19
|
+
export type CreateFeedbackMutationError = ErrorType<void>;
|
|
20
|
+
/**
|
|
21
|
+
* @summary Create feedback
|
|
22
|
+
*/
|
|
23
|
+
export declare const useCreateFeedback: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
24
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>, TError, {
|
|
25
|
+
data: BodyType<FeedbackDto>;
|
|
26
|
+
}, TContext>;
|
|
27
|
+
}) => import('@tanstack/react-query').UseMutationResult<FeedbackResponseDto, TError, {
|
|
28
|
+
data: BodyType<FeedbackDto>;
|
|
29
|
+
}, TContext>;
|
|
30
|
+
/**
|
|
31
|
+
* @summary List feedbacks submitted by the current user
|
|
32
|
+
*/
|
|
33
|
+
export declare const useListFeedbacksByCurrentUserHook: () => (params?: ListFeedbacksByCurrentUserParams, signal?: AbortSignal) => Promise<FeedbackPage>;
|
|
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?: {
|
|
36
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData>>;
|
|
37
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData> & {
|
|
38
|
+
queryKey: QueryKey;
|
|
39
|
+
};
|
|
40
|
+
export type ListFeedbacksByCurrentUserQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>>;
|
|
41
|
+
export type ListFeedbacksByCurrentUserQueryError = ErrorType<void>;
|
|
42
|
+
/**
|
|
43
|
+
* @summary List feedbacks submitted by the current user
|
|
44
|
+
*/
|
|
45
|
+
export declare const useListFeedbacksByCurrentUser: <TData = FeedbackPage, TError = import('../../use-client').HttpError>(params?: ListFeedbacksByCurrentUserParams, options?: {
|
|
46
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData>>;
|
|
47
|
+
}) => UseQueryResult<TData, TError> & {
|
|
48
|
+
queryKey: QueryKey;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { RomaConfigurationDto, SettingDto } from '../../model';
|
|
3
|
+
import { ErrorType, BodyType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
/**
|
|
7
|
+
* @summary Get roma configuration by id
|
|
8
|
+
*/
|
|
9
|
+
export declare const useGetRomaConfigurationByIdHook: () => (id: string, signal?: AbortSignal) => Promise<RomaConfigurationDto>;
|
|
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?: {
|
|
12
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData>>;
|
|
13
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData> & {
|
|
14
|
+
queryKey: QueryKey;
|
|
15
|
+
};
|
|
16
|
+
export type GetRomaConfigurationByIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>>;
|
|
17
|
+
export type GetRomaConfigurationByIdQueryError = ErrorType<void>;
|
|
18
|
+
/**
|
|
19
|
+
* @summary Get roma configuration by id
|
|
20
|
+
*/
|
|
21
|
+
export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto, TError = import('../../use-client').HttpError>(id: string, options?: {
|
|
22
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData>>;
|
|
23
|
+
}) => UseQueryResult<TData, TError> & {
|
|
24
|
+
queryKey: QueryKey;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* @summary Update a roma configuration
|
|
28
|
+
*/
|
|
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?: {
|
|
31
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>, TError, {
|
|
32
|
+
id: string;
|
|
33
|
+
data: BodyType<RomaConfigurationDto>;
|
|
34
|
+
}, TContext>;
|
|
35
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>, TError, {
|
|
36
|
+
id: string;
|
|
37
|
+
data: BodyType<RomaConfigurationDto>;
|
|
38
|
+
}, TContext>;
|
|
39
|
+
export type UpdateRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>>;
|
|
40
|
+
export type UpdateRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
|
|
41
|
+
export type UpdateRomaConfigurationMutationError = ErrorType<void>;
|
|
42
|
+
/**
|
|
43
|
+
* @summary Update a roma configuration
|
|
44
|
+
*/
|
|
45
|
+
export declare const useUpdateRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
46
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>, TError, {
|
|
47
|
+
id: string;
|
|
48
|
+
data: BodyType<RomaConfigurationDto>;
|
|
49
|
+
}, TContext>;
|
|
50
|
+
}) => import('@tanstack/react-query').UseMutationResult<RomaConfigurationDto, TError, {
|
|
51
|
+
id: string;
|
|
52
|
+
data: BodyType<RomaConfigurationDto>;
|
|
53
|
+
}, TContext>;
|
|
54
|
+
/**
|
|
55
|
+
* @summary Delete a roma configuration by id
|
|
56
|
+
*/
|
|
57
|
+
export declare const useDeleteRomaConfigurationHook: () => (id: string) => Promise<SettingDto>;
|
|
58
|
+
export declare const useDeleteRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
59
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>, TError, {
|
|
60
|
+
id: string;
|
|
61
|
+
}, TContext>;
|
|
62
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>, TError, {
|
|
63
|
+
id: string;
|
|
64
|
+
}, TContext>;
|
|
65
|
+
export type DeleteRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>>;
|
|
66
|
+
export type DeleteRomaConfigurationMutationError = ErrorType<void>;
|
|
67
|
+
/**
|
|
68
|
+
* @summary Delete a roma configuration by id
|
|
69
|
+
*/
|
|
70
|
+
export declare const useDeleteRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
71
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>, TError, {
|
|
72
|
+
id: string;
|
|
73
|
+
}, TContext>;
|
|
74
|
+
}) => import('@tanstack/react-query').UseMutationResult<SettingDto, TError, {
|
|
75
|
+
id: string;
|
|
76
|
+
}, TContext>;
|
|
77
|
+
/**
|
|
78
|
+
* @summary Get all roma configurations
|
|
79
|
+
*/
|
|
80
|
+
export declare const useGetAllRomaConfigurationHook: () => (signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
|
|
81
|
+
export declare const getGetAllRomaConfigurationQueryKey: () => readonly ["/api/configurations"];
|
|
82
|
+
export declare const useGetAllRomaConfigurationQueryOptions: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
|
|
83
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData>>;
|
|
84
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData> & {
|
|
85
|
+
queryKey: QueryKey;
|
|
86
|
+
};
|
|
87
|
+
export type GetAllRomaConfigurationQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>>;
|
|
88
|
+
export type GetAllRomaConfigurationQueryError = ErrorType<void>;
|
|
89
|
+
/**
|
|
90
|
+
* @summary Get all roma configurations
|
|
91
|
+
*/
|
|
92
|
+
export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
|
|
93
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData>>;
|
|
94
|
+
}) => UseQueryResult<TData, TError> & {
|
|
95
|
+
queryKey: QueryKey;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* @summary Create a new roma configuration
|
|
99
|
+
*/
|
|
100
|
+
export declare const useAddRomaConfigurationHook: () => (romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
|
|
101
|
+
export declare const useAddRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
102
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>, TError, {
|
|
103
|
+
data: BodyType<RomaConfigurationDto>;
|
|
104
|
+
}, TContext>;
|
|
105
|
+
}) => UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>, TError, {
|
|
106
|
+
data: BodyType<RomaConfigurationDto>;
|
|
107
|
+
}, TContext>;
|
|
108
|
+
export type AddRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>>;
|
|
109
|
+
export type AddRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
|
|
110
|
+
export type AddRomaConfigurationMutationError = ErrorType<void>;
|
|
111
|
+
/**
|
|
112
|
+
* @summary Create a new roma configuration
|
|
113
|
+
*/
|
|
114
|
+
export declare const useAddRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
115
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>, TError, {
|
|
116
|
+
data: BodyType<RomaConfigurationDto>;
|
|
117
|
+
}, TContext>;
|
|
118
|
+
}) => import('@tanstack/react-query').UseMutationResult<RomaConfigurationDto, TError, {
|
|
119
|
+
data: BodyType<RomaConfigurationDto>;
|
|
120
|
+
}, TContext>;
|
|
121
|
+
/**
|
|
122
|
+
* @summary Get valid roma configuration types
|
|
123
|
+
*/
|
|
124
|
+
export declare const useGetAllRomaConfigurationTypesHook: () => (signal?: AbortSignal) => Promise<"servicebus"[]>;
|
|
125
|
+
export declare const getGetAllRomaConfigurationTypesQueryKey: () => readonly ["/api/configurations/types"];
|
|
126
|
+
export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
|
|
127
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData>>;
|
|
128
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData> & {
|
|
129
|
+
queryKey: QueryKey;
|
|
130
|
+
};
|
|
131
|
+
export type GetAllRomaConfigurationTypesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>>;
|
|
132
|
+
export type GetAllRomaConfigurationTypesQueryError = ErrorType<void>;
|
|
133
|
+
/**
|
|
134
|
+
* @summary Get valid roma configuration types
|
|
135
|
+
*/
|
|
136
|
+
export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
|
|
137
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData>>;
|
|
138
|
+
}) => UseQueryResult<TData, TError> & {
|
|
139
|
+
queryKey: QueryKey;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* @summary Get all roma configurations for given type
|
|
143
|
+
*/
|
|
144
|
+
export declare const useGetAllRomaConfigurationByTypeHook: () => (type: string, signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
|
|
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?: {
|
|
147
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData>>;
|
|
148
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData> & {
|
|
149
|
+
queryKey: QueryKey;
|
|
150
|
+
};
|
|
151
|
+
export type GetAllRomaConfigurationByTypeQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>>;
|
|
152
|
+
export type GetAllRomaConfigurationByTypeQueryError = ErrorType<void>;
|
|
153
|
+
/**
|
|
154
|
+
* @summary Get all roma configurations for given type
|
|
155
|
+
*/
|
|
156
|
+
export declare const useGetAllRomaConfigurationByType: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(type: string, options?: {
|
|
157
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData>>;
|
|
158
|
+
}) => UseQueryResult<TData, TError> & {
|
|
159
|
+
queryKey: QueryKey;
|
|
160
|
+
};
|
|
161
|
+
export {};
|
package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { ServerSentEventStandardEventDto } from '../../model';
|
|
3
|
+
import { ErrorType } from '../../use-client';
|
|
4
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
5
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
|
+
export declare const useStreamEventsHook: () => (signal?: AbortSignal) => Promise<ServerSentEventStandardEventDto[]>;
|
|
7
|
+
export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
|
|
8
|
+
export declare const useStreamEventsQueryOptions: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
|
|
9
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
|
|
10
|
+
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData> & {
|
|
11
|
+
queryKey: QueryKey;
|
|
12
|
+
};
|
|
13
|
+
export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
|
|
14
|
+
export type StreamEventsQueryError = ErrorType<unknown>;
|
|
15
|
+
export declare const useStreamEvents: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
|
|
16
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
|
|
17
|
+
}) => UseQueryResult<TData, TError> & {
|
|
18
|
+
queryKey: QueryKey;
|
|
19
|
+
};
|
|
20
|
+
export {};
|