@equinor/roma-framework 0.0.10-BETA.2 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev-portal/index.d.ts +12 -0
- package/dev-portal/lib/api/fetcher.d.ts +21 -0
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +267 -0
- package/dev-portal/lib/api/roma/index.d.ts +8 -0
- package/dev-portal/lib/api/roma/model/appDto.d.ts +26 -0
- package/dev-portal/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/environmentDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/dev-portal/lib/api/roma/model/index.d.ts +19 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -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 +16 -0
- package/dev-portal/lib/api/roma/model/settingDtoValue.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/trade-recap/deal.d.ts +160 -0
- package/dev-portal/lib/api/trade-recap/download-recap.d.ts +6 -0
- package/dev-portal/lib/api/trade-recap/get-deals.d.ts +15 -0
- package/dev-portal/lib/api/trade-recap/get-recap.d.ts +11 -0
- package/dev-portal/lib/api/trade-recap/index.d.ts +5 -0
- package/dev-portal/lib/api/trade-recap/recap.d.ts +22 -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 +12 -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 +12 -0
- package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
- package/dev-portal/lib/eds-event-provider.d.ts +6 -0
- package/dev-portal/lib/hooks/use-get-api-roles.d.ts +14 -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/style-provider.d.ts +7 -0
- package/dev-portal/package.json +16 -0
- package/package.json +1 -1
- package/roma-framework.mjs +6414 -0
- /package/{index.html → dev-portal/index.html} +0 -0
- /package/{lib → dev-portal/lib}/dev-portal/Header.d.ts +0 -0
- /package/{lib → dev-portal/lib}/dev-portal/Navigation.d.ts +0 -0
- /package/{lib → dev-portal/lib}/dev-portal/Root.d.ts +0 -0
- /package/{lib → dev-portal/lib}/dev-portal/config.d.ts +0 -0
- /package/{lib → dev-portal/lib}/dev-portal/index.d.ts +0 -0
- /package/{roma-framework.umd.js → dev-portal/roma-framework.umd.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
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/style-provider';
|
|
7
|
+
export * from './lib/dev-portal/HttpErrorViewer';
|
|
8
|
+
export * from './lib/api/trade-recap';
|
|
9
|
+
export * from './lib/api/roma';
|
|
10
|
+
export * from './lib/app-provider';
|
|
11
|
+
export * from './lib/hooks/use-get-api-roles';
|
|
12
|
+
export * from './lib/hooks/use-has-api-role';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type HttpErrorServerResponse = {
|
|
2
|
+
timestamp: string;
|
|
3
|
+
status: number;
|
|
4
|
+
error: string;
|
|
5
|
+
message: string;
|
|
6
|
+
path: string;
|
|
7
|
+
};
|
|
8
|
+
export type 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,100 @@
|
|
|
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';
|
|
11
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
|
+
/**
|
|
14
|
+
* @summary List apps
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<AppDto[]>;
|
|
17
|
+
export declare const getGetAllAppsQueryKey: () => readonly ["/api/apps"];
|
|
18
|
+
export declare const useGetAllAppsQueryOptions: <TData = AppDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
19
|
+
query?: Partial<UseQueryOptions<AppDto[], TError, TData, QueryKey>> | undefined;
|
|
20
|
+
} | undefined) => UseQueryOptions<AppDto[], TError, TData, QueryKey> & {
|
|
21
|
+
queryKey: QueryKey;
|
|
22
|
+
};
|
|
23
|
+
export type GetAllAppsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>>;
|
|
24
|
+
export type GetAllAppsQueryError = ErrorType<void>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary List apps
|
|
27
|
+
*/
|
|
28
|
+
export declare const useGetAllApps: <TData = AppDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
29
|
+
query?: Partial<UseQueryOptions<AppDto[], TError, TData, QueryKey>> | undefined;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @summary Create or update App
|
|
35
|
+
*/
|
|
36
|
+
export declare const useCreateOrUpdateAppHook: () => (appDto: BodyType<AppDto>) => Promise<AppDto>;
|
|
37
|
+
export declare const useCreateOrUpdateAppMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
38
|
+
mutation?: UseMutationOptions<AppDto, TError, {
|
|
39
|
+
data: BodyType<AppDto>;
|
|
40
|
+
}, TContext> | undefined;
|
|
41
|
+
} | undefined) => UseMutationOptions<AppDto, TError, {
|
|
42
|
+
data: BodyType<AppDto>;
|
|
43
|
+
}, TContext>;
|
|
44
|
+
export type CreateOrUpdateAppMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>>;
|
|
45
|
+
export type CreateOrUpdateAppMutationBody = BodyType<AppDto>;
|
|
46
|
+
export type CreateOrUpdateAppMutationError = ErrorType<void>;
|
|
47
|
+
/**
|
|
48
|
+
* @summary Create or update App
|
|
49
|
+
*/
|
|
50
|
+
export declare const useCreateOrUpdateApp: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
51
|
+
mutation?: UseMutationOptions<AppDto, TError, {
|
|
52
|
+
data: BodyType<AppDto>;
|
|
53
|
+
}, TContext> | undefined;
|
|
54
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<AppDto, TError, {
|
|
55
|
+
data: BodyType<AppDto>;
|
|
56
|
+
}, TContext>;
|
|
57
|
+
/**
|
|
58
|
+
* @summary Get app by key
|
|
59
|
+
*/
|
|
60
|
+
export declare const useGetAppByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<AppDto>;
|
|
61
|
+
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?: {
|
|
63
|
+
query?: Partial<UseQueryOptions<AppDto, TError, TData, QueryKey>> | undefined;
|
|
64
|
+
} | undefined) => UseQueryOptions<AppDto, TError, TData, QueryKey> & {
|
|
65
|
+
queryKey: QueryKey;
|
|
66
|
+
};
|
|
67
|
+
export type GetAppByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>>;
|
|
68
|
+
export type GetAppByKeyQueryError = ErrorType<void>;
|
|
69
|
+
/**
|
|
70
|
+
* @summary Get app by key
|
|
71
|
+
*/
|
|
72
|
+
export declare const useGetAppByKey: <TData = AppDto, TError = import("../../use-client").HttpError>(key: string, options?: {
|
|
73
|
+
query?: Partial<UseQueryOptions<AppDto, TError, TData, QueryKey>> | undefined;
|
|
74
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
75
|
+
queryKey: QueryKey;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @summary Delete app by key
|
|
79
|
+
*/
|
|
80
|
+
export declare const useDeleteAppByKeyHook: () => (key: string) => Promise<void>;
|
|
81
|
+
export declare const useDeleteAppByKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
82
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
83
|
+
key: string;
|
|
84
|
+
}, TContext> | undefined;
|
|
85
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
86
|
+
key: string;
|
|
87
|
+
}, TContext>;
|
|
88
|
+
export type DeleteAppByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>>;
|
|
89
|
+
export type DeleteAppByKeyMutationError = ErrorType<unknown>;
|
|
90
|
+
/**
|
|
91
|
+
* @summary Delete app by key
|
|
92
|
+
*/
|
|
93
|
+
export declare const useDeleteAppByKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
94
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
95
|
+
key: string;
|
|
96
|
+
}, TContext> | undefined;
|
|
97
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, TError, {
|
|
98
|
+
key: string;
|
|
99
|
+
}, TContext>;
|
|
100
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
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';
|
|
11
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
|
+
/**
|
|
14
|
+
* @summary List categories
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<CategoryDto[]>;
|
|
17
|
+
export declare const getGetAllCategoriesQueryKey: () => readonly ["/api/apps/categories"];
|
|
18
|
+
export declare const useGetAllCategoriesQueryOptions: <TData = CategoryDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
19
|
+
query?: Partial<UseQueryOptions<CategoryDto[], TError, TData, QueryKey>> | undefined;
|
|
20
|
+
} | undefined) => UseQueryOptions<CategoryDto[], TError, TData, QueryKey> & {
|
|
21
|
+
queryKey: QueryKey;
|
|
22
|
+
};
|
|
23
|
+
export type GetAllCategoriesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>>;
|
|
24
|
+
export type GetAllCategoriesQueryError = ErrorType<void>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary List categories
|
|
27
|
+
*/
|
|
28
|
+
export declare const useGetAllCategories: <TData = CategoryDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
29
|
+
query?: Partial<UseQueryOptions<CategoryDto[], TError, TData, QueryKey>> | undefined;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @summary Create or update category
|
|
35
|
+
*/
|
|
36
|
+
export declare const useCreateOrUpdateCategoryHook: () => (categoryDto: BodyType<CategoryDto>) => Promise<CategoryDto>;
|
|
37
|
+
export declare const useCreateOrUpdateCategoryMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
38
|
+
mutation?: UseMutationOptions<CategoryDto, TError, {
|
|
39
|
+
data: BodyType<CategoryDto>;
|
|
40
|
+
}, TContext> | undefined;
|
|
41
|
+
} | undefined) => UseMutationOptions<CategoryDto, TError, {
|
|
42
|
+
data: BodyType<CategoryDto>;
|
|
43
|
+
}, TContext>;
|
|
44
|
+
export type CreateOrUpdateCategoryMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>>;
|
|
45
|
+
export type CreateOrUpdateCategoryMutationBody = BodyType<CategoryDto>;
|
|
46
|
+
export type CreateOrUpdateCategoryMutationError = ErrorType<void>;
|
|
47
|
+
/**
|
|
48
|
+
* @summary Create or update category
|
|
49
|
+
*/
|
|
50
|
+
export declare const useCreateOrUpdateCategory: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
51
|
+
mutation?: UseMutationOptions<CategoryDto, TError, {
|
|
52
|
+
data: BodyType<CategoryDto>;
|
|
53
|
+
}, TContext> | undefined;
|
|
54
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<CategoryDto, TError, {
|
|
55
|
+
data: BodyType<CategoryDto>;
|
|
56
|
+
}, TContext>;
|
|
57
|
+
/**
|
|
58
|
+
* @summary Get category by id
|
|
59
|
+
*/
|
|
60
|
+
export declare const useGetCategoryByIdHook: () => (id: string, signal?: AbortSignal) => Promise<CategoryDto>;
|
|
61
|
+
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?: {
|
|
63
|
+
query?: Partial<UseQueryOptions<CategoryDto, TError, TData, QueryKey>> | undefined;
|
|
64
|
+
} | undefined) => UseQueryOptions<CategoryDto, TError, TData, QueryKey> & {
|
|
65
|
+
queryKey: QueryKey;
|
|
66
|
+
};
|
|
67
|
+
export type GetCategoryByIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>>;
|
|
68
|
+
export type GetCategoryByIdQueryError = ErrorType<void>;
|
|
69
|
+
/**
|
|
70
|
+
* @summary Get category by id
|
|
71
|
+
*/
|
|
72
|
+
export declare const useGetCategoryById: <TData = CategoryDto, TError = import("../../use-client").HttpError>(id: string, options?: {
|
|
73
|
+
query?: Partial<UseQueryOptions<CategoryDto, TError, TData, QueryKey>> | undefined;
|
|
74
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
75
|
+
queryKey: QueryKey;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @summary Delete category by id
|
|
79
|
+
*/
|
|
80
|
+
export declare const useDeleteCategoryByIdHook: () => (id: string) => Promise<void>;
|
|
81
|
+
export declare const useDeleteCategoryByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
82
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
83
|
+
id: string;
|
|
84
|
+
}, TContext> | undefined;
|
|
85
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
86
|
+
id: string;
|
|
87
|
+
}, TContext>;
|
|
88
|
+
export type DeleteCategoryByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>>;
|
|
89
|
+
export type DeleteCategoryByIdMutationError = ErrorType<unknown>;
|
|
90
|
+
/**
|
|
91
|
+
* @summary Delete category by id
|
|
92
|
+
*/
|
|
93
|
+
export declare const useDeleteCategoryById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
94
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
95
|
+
id: string;
|
|
96
|
+
}, TContext> | undefined;
|
|
97
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, TError, {
|
|
98
|
+
id: string;
|
|
99
|
+
}, TContext>;
|
|
100
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Tops Roma Rest API
|
|
5
|
+
* Tops Roma Rest API
|
|
6
|
+
* OpenAPI spec version: v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
9
|
+
import type { EnvironmentDto } from '../../model';
|
|
10
|
+
import type { ErrorType } from '../../use-client';
|
|
11
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
|
+
/**
|
|
14
|
+
* @summary Get current environment
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGetCurrentEnvironmentHook: () => (signal?: AbortSignal) => Promise<EnvironmentDto>;
|
|
17
|
+
export declare const getGetCurrentEnvironmentQueryKey: () => readonly ["/_discovery/environments/current"];
|
|
18
|
+
export declare const useGetCurrentEnvironmentQueryOptions: <TData = EnvironmentDto, TError = import("../../use-client").HttpError>(options?: {
|
|
19
|
+
query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
|
|
20
|
+
} | undefined) => UseQueryOptions<EnvironmentDto, TError, TData, QueryKey> & {
|
|
21
|
+
queryKey: QueryKey;
|
|
22
|
+
};
|
|
23
|
+
export type GetCurrentEnvironmentQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>>;
|
|
24
|
+
export type GetCurrentEnvironmentQueryError = ErrorType<void>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Get current environment
|
|
27
|
+
*/
|
|
28
|
+
export declare const useGetCurrentEnvironment: <TData = EnvironmentDto, TError = import("../../use-client").HttpError>(options?: {
|
|
29
|
+
query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
export {};
|
package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Tops Roma Rest API
|
|
5
|
+
* Tops Roma Rest API
|
|
6
|
+
* OpenAPI spec version: v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
9
|
+
import type { RomaConfigurationDto, SettingDto } from '../../model';
|
|
10
|
+
import type { BodyType, ErrorType } from '../../use-client';
|
|
11
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
|
+
/**
|
|
14
|
+
* @summary Get roma configuration by id
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGetRomaConfigurationByIdHook: () => (id: string, signal?: AbortSignal) => Promise<RomaConfigurationDto>;
|
|
17
|
+
export declare const getGetRomaConfigurationByIdQueryKey: (id: string) => readonly [`/api/configurations/id/${string}`];
|
|
18
|
+
export declare const useGetRomaConfigurationByIdQueryOptions: <TData = RomaConfigurationDto, TError = import("../../use-client").HttpError>(id: string, options?: {
|
|
19
|
+
query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
|
|
20
|
+
} | undefined) => UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey> & {
|
|
21
|
+
queryKey: QueryKey;
|
|
22
|
+
};
|
|
23
|
+
export type GetRomaConfigurationByIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>>;
|
|
24
|
+
export type GetRomaConfigurationByIdQueryError = ErrorType<void>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Get roma configuration by id
|
|
27
|
+
*/
|
|
28
|
+
export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto, TError = import("../../use-client").HttpError>(id: string, options?: {
|
|
29
|
+
query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @summary Update a roma configuration
|
|
35
|
+
*/
|
|
36
|
+
export declare const useUpdateRomaConfigurationHook: () => (id: string, romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
|
|
37
|
+
export declare const useUpdateRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
38
|
+
mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
|
|
39
|
+
id: string;
|
|
40
|
+
data: BodyType<RomaConfigurationDto>;
|
|
41
|
+
}, TContext> | undefined;
|
|
42
|
+
} | undefined) => UseMutationOptions<RomaConfigurationDto, TError, {
|
|
43
|
+
id: string;
|
|
44
|
+
data: BodyType<RomaConfigurationDto>;
|
|
45
|
+
}, TContext>;
|
|
46
|
+
export type UpdateRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>>;
|
|
47
|
+
export type UpdateRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
|
|
48
|
+
export type UpdateRomaConfigurationMutationError = ErrorType<void>;
|
|
49
|
+
/**
|
|
50
|
+
* @summary Update a roma configuration
|
|
51
|
+
*/
|
|
52
|
+
export declare const useUpdateRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
53
|
+
mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
|
|
54
|
+
id: string;
|
|
55
|
+
data: BodyType<RomaConfigurationDto>;
|
|
56
|
+
}, TContext> | undefined;
|
|
57
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<RomaConfigurationDto, TError, {
|
|
58
|
+
id: string;
|
|
59
|
+
data: BodyType<RomaConfigurationDto>;
|
|
60
|
+
}, TContext>;
|
|
61
|
+
/**
|
|
62
|
+
* @summary Delete a roma configuration by id
|
|
63
|
+
*/
|
|
64
|
+
export declare const useDeleteRomaConfigurationHook: () => (id: string) => Promise<SettingDto>;
|
|
65
|
+
export declare const useDeleteRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
66
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
67
|
+
id: string;
|
|
68
|
+
}, TContext> | undefined;
|
|
69
|
+
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
70
|
+
id: string;
|
|
71
|
+
}, TContext>;
|
|
72
|
+
export type DeleteRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>>;
|
|
73
|
+
export type DeleteRomaConfigurationMutationError = ErrorType<void>;
|
|
74
|
+
/**
|
|
75
|
+
* @summary Delete a roma configuration by id
|
|
76
|
+
*/
|
|
77
|
+
export declare const useDeleteRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
78
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
79
|
+
id: string;
|
|
80
|
+
}, TContext> | undefined;
|
|
81
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
82
|
+
id: string;
|
|
83
|
+
}, TContext>;
|
|
84
|
+
/**
|
|
85
|
+
* @summary Get all roma configurations
|
|
86
|
+
*/
|
|
87
|
+
export declare const useGetAllRomaConfigurationHook: () => (signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
|
|
88
|
+
export declare const getGetAllRomaConfigurationQueryKey: () => readonly ["/api/configurations"];
|
|
89
|
+
export declare const useGetAllRomaConfigurationQueryOptions: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
90
|
+
query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
|
|
91
|
+
} | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
|
|
92
|
+
queryKey: QueryKey;
|
|
93
|
+
};
|
|
94
|
+
export type GetAllRomaConfigurationQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>>;
|
|
95
|
+
export type GetAllRomaConfigurationQueryError = ErrorType<void>;
|
|
96
|
+
/**
|
|
97
|
+
* @summary Get all roma configurations
|
|
98
|
+
*/
|
|
99
|
+
export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
100
|
+
query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
|
|
101
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
102
|
+
queryKey: QueryKey;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @summary Create a new roma configuration
|
|
106
|
+
*/
|
|
107
|
+
export declare const useAddRomaConfigurationHook: () => (romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
|
|
108
|
+
export declare const useAddRomaConfigurationMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
109
|
+
mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
|
|
110
|
+
data: BodyType<RomaConfigurationDto>;
|
|
111
|
+
}, TContext> | undefined;
|
|
112
|
+
} | undefined) => UseMutationOptions<RomaConfigurationDto, TError, {
|
|
113
|
+
data: BodyType<RomaConfigurationDto>;
|
|
114
|
+
}, TContext>;
|
|
115
|
+
export type AddRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>>;
|
|
116
|
+
export type AddRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
|
|
117
|
+
export type AddRomaConfigurationMutationError = ErrorType<void>;
|
|
118
|
+
/**
|
|
119
|
+
* @summary Create a new roma configuration
|
|
120
|
+
*/
|
|
121
|
+
export declare const useAddRomaConfiguration: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
122
|
+
mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
|
|
123
|
+
data: BodyType<RomaConfigurationDto>;
|
|
124
|
+
}, TContext> | undefined;
|
|
125
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<RomaConfigurationDto, TError, {
|
|
126
|
+
data: BodyType<RomaConfigurationDto>;
|
|
127
|
+
}, TContext>;
|
|
128
|
+
/**
|
|
129
|
+
* @summary Get valid roma configuration types
|
|
130
|
+
*/
|
|
131
|
+
export declare const useGetAllRomaConfigurationTypesHook: () => (signal?: AbortSignal) => Promise<"servicebus"[]>;
|
|
132
|
+
export declare const getGetAllRomaConfigurationTypesQueryKey: () => readonly ["/api/configurations/types"];
|
|
133
|
+
export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = "servicebus"[], TError = import("../../use-client").HttpError>(options?: {
|
|
134
|
+
query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
|
|
135
|
+
} | undefined) => UseQueryOptions<"servicebus"[], TError, TData, QueryKey> & {
|
|
136
|
+
queryKey: QueryKey;
|
|
137
|
+
};
|
|
138
|
+
export type GetAllRomaConfigurationTypesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>>;
|
|
139
|
+
export type GetAllRomaConfigurationTypesQueryError = ErrorType<void>;
|
|
140
|
+
/**
|
|
141
|
+
* @summary Get valid roma configuration types
|
|
142
|
+
*/
|
|
143
|
+
export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], TError = import("../../use-client").HttpError>(options?: {
|
|
144
|
+
query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
|
|
145
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
146
|
+
queryKey: QueryKey;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* @summary Get all roma configurations for given type
|
|
150
|
+
*/
|
|
151
|
+
export declare const useGetAllRomaConfigurationByTypeHook: () => (type: string, signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
|
|
152
|
+
export declare const getGetAllRomaConfigurationByTypeQueryKey: (type: string) => readonly [`/api/configurations/types/type/${string}`];
|
|
153
|
+
export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(type: string, options?: {
|
|
154
|
+
query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
|
|
155
|
+
} | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
|
|
156
|
+
queryKey: QueryKey;
|
|
157
|
+
};
|
|
158
|
+
export type GetAllRomaConfigurationByTypeQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>>;
|
|
159
|
+
export type GetAllRomaConfigurationByTypeQueryError = ErrorType<void>;
|
|
160
|
+
/**
|
|
161
|
+
* @summary Get all roma configurations for given type
|
|
162
|
+
*/
|
|
163
|
+
export declare const useGetAllRomaConfigurationByType: <TData = RomaConfigurationDto[], TError = import("../../use-client").HttpError>(type: string, options?: {
|
|
164
|
+
query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
|
|
165
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
166
|
+
queryKey: QueryKey;
|
|
167
|
+
};
|
|
168
|
+
export {};
|
package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Tops Roma Rest API
|
|
5
|
+
* Tops Roma Rest API
|
|
6
|
+
* OpenAPI spec version: v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
9
|
+
import type { ServerSentEventStandardEventDto } from '../../model';
|
|
10
|
+
import type { ErrorType } from '../../use-client';
|
|
11
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
|
+
export declare const useStreamEventsHook: () => (signal?: AbortSignal) => Promise<ServerSentEventStandardEventDto[]>;
|
|
14
|
+
export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
|
|
15
|
+
export declare const useStreamEventsQueryOptions: <TData = ServerSentEventStandardEventDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
16
|
+
query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
|
|
17
|
+
} | undefined) => UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey> & {
|
|
18
|
+
queryKey: QueryKey;
|
|
19
|
+
};
|
|
20
|
+
export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
|
|
21
|
+
export type StreamEventsQueryError = ErrorType<unknown>;
|
|
22
|
+
export declare const useStreamEvents: <TData = ServerSentEventStandardEventDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
23
|
+
query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
|
|
24
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
25
|
+
queryKey: QueryKey;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v6.20.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Tops Roma Rest API
|
|
5
|
+
* Tops Roma Rest API
|
|
6
|
+
* OpenAPI spec version: v1.0.0
|
|
7
|
+
*/
|
|
8
|
+
import type { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
9
|
+
import type { ServiceDto } from '../../model';
|
|
10
|
+
import type { BodyType, ErrorType } from '../../use-client';
|
|
11
|
+
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
|
+
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
|
+
/**
|
|
14
|
+
* @summary List services for current environment
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<ServiceDto[]>;
|
|
17
|
+
export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
|
|
18
|
+
export declare const useGetAllServicesQueryOptions: <TData = ServiceDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
19
|
+
query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
|
|
20
|
+
} | undefined) => UseQueryOptions<ServiceDto[], TError, TData, QueryKey> & {
|
|
21
|
+
queryKey: QueryKey;
|
|
22
|
+
};
|
|
23
|
+
export type GetAllServicesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>;
|
|
24
|
+
export type GetAllServicesQueryError = ErrorType<void>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary List services for current environment
|
|
27
|
+
*/
|
|
28
|
+
export declare const useGetAllServices: <TData = ServiceDto[], TError = import("../../use-client").HttpError>(options?: {
|
|
29
|
+
query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @summary Create or update service for current environment
|
|
35
|
+
*/
|
|
36
|
+
export declare const useCreateOrUpdateServiceHook: () => (serviceDto: BodyType<ServiceDto>) => Promise<ServiceDto>;
|
|
37
|
+
export declare const useCreateOrUpdateServiceMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
38
|
+
mutation?: UseMutationOptions<ServiceDto, TError, {
|
|
39
|
+
data: BodyType<ServiceDto>;
|
|
40
|
+
}, TContext> | undefined;
|
|
41
|
+
} | undefined) => UseMutationOptions<ServiceDto, TError, {
|
|
42
|
+
data: BodyType<ServiceDto>;
|
|
43
|
+
}, TContext>;
|
|
44
|
+
export type CreateOrUpdateServiceMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>>;
|
|
45
|
+
export type CreateOrUpdateServiceMutationBody = BodyType<ServiceDto>;
|
|
46
|
+
export type CreateOrUpdateServiceMutationError = ErrorType<void>;
|
|
47
|
+
/**
|
|
48
|
+
* @summary Create or update service for current environment
|
|
49
|
+
*/
|
|
50
|
+
export declare const useCreateOrUpdateService: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
51
|
+
mutation?: UseMutationOptions<ServiceDto, TError, {
|
|
52
|
+
data: BodyType<ServiceDto>;
|
|
53
|
+
}, TContext> | undefined;
|
|
54
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<ServiceDto, TError, {
|
|
55
|
+
data: BodyType<ServiceDto>;
|
|
56
|
+
}, TContext>;
|
|
57
|
+
/**
|
|
58
|
+
* @summary Get service by key
|
|
59
|
+
*/
|
|
60
|
+
export declare const useGetServiceByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<ServiceDto>;
|
|
61
|
+
export declare const getGetServiceByKeyQueryKey: (key: string) => readonly [`/api/apps/services/key/${string}`];
|
|
62
|
+
export declare const useGetServiceByKeyQueryOptions: <TData = ServiceDto, TError = import("../../use-client").HttpError>(key: string, options?: {
|
|
63
|
+
query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
|
|
64
|
+
} | undefined) => UseQueryOptions<ServiceDto, TError, TData, QueryKey> & {
|
|
65
|
+
queryKey: QueryKey;
|
|
66
|
+
};
|
|
67
|
+
export type GetServiceByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>>;
|
|
68
|
+
export type GetServiceByKeyQueryError = ErrorType<void>;
|
|
69
|
+
/**
|
|
70
|
+
* @summary Get service by key
|
|
71
|
+
*/
|
|
72
|
+
export declare const useGetServiceByKey: <TData = ServiceDto, TError = import("../../use-client").HttpError>(key: string, options?: {
|
|
73
|
+
query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
|
|
74
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
75
|
+
queryKey: QueryKey;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @summary Delete service by key
|
|
79
|
+
*/
|
|
80
|
+
export declare const useDeleteServiceByKeyHook: () => (key: string) => Promise<void>;
|
|
81
|
+
export declare const useDeleteServiceByKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
82
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
83
|
+
key: string;
|
|
84
|
+
}, TContext> | undefined;
|
|
85
|
+
} | undefined) => UseMutationOptions<void, TError, {
|
|
86
|
+
key: string;
|
|
87
|
+
}, TContext>;
|
|
88
|
+
export type DeleteServiceByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>>;
|
|
89
|
+
export type DeleteServiceByKeyMutationError = ErrorType<unknown>;
|
|
90
|
+
/**
|
|
91
|
+
* @summary Delete service by key
|
|
92
|
+
*/
|
|
93
|
+
export declare const useDeleteServiceByKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
94
|
+
mutation?: UseMutationOptions<void, TError, {
|
|
95
|
+
key: string;
|
|
96
|
+
}, TContext> | undefined;
|
|
97
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<void, TError, {
|
|
98
|
+
key: string;
|
|
99
|
+
}, TContext>;
|
|
100
|
+
export {};
|