@equinor/roma-framework 0.0.12 → 1.0.0-BETA.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/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +8277 -7225
- package/package.json +1 -1
- package/roma-framework.mjs +135 -8
- package/index.d.ts +0 -12
- package/lib/api/roma/api/app-controller/app-controller.d.ts +0 -94
- package/lib/api/roma/api/category-controller/category-controller.d.ts +0 -94
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +0 -27
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +0 -162
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +0 -21
- package/lib/api/roma/api/service-controller/service-controller.d.ts +0 -94
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +0 -261
- package/lib/api/roma/index.d.ts +0 -8
- package/lib/api/roma/model/appDto.d.ts +0 -20
- package/lib/api/roma/model/categoryDto.d.ts +0 -13
- package/lib/api/roma/model/environmentDto.d.ts +0 -10
- package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +0 -11
- package/lib/api/roma/model/index.d.ts +0 -19
- package/lib/api/roma/model/romaConfigurationDto.d.ts +0 -8
- package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +0 -8
- package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +0 -8
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +0 -8
- package/lib/api/roma/model/serviceDto.d.ts +0 -16
- package/lib/api/roma/model/settingDto.d.ts +0 -10
- package/lib/api/roma/model/settingDtoValue.d.ts +0 -8
- package/lib/api/roma/model/versionDto.d.ts +0 -12
- package/lib/api/roma/use-client.d.ts +0 -34
- package/lib/app-provider.d.ts +0 -33
- package/lib/dev-portal/AppLoader.d.ts +0 -15
- package/lib/dev-portal/AppViewer.d.ts +0 -6
- package/lib/dev-portal/EquinorLoader.d.ts +0 -13
- package/lib/dev-portal/ErrorViewer.d.ts +0 -21
- package/lib/dev-portal/HttpErrorViewer.d.ts +0 -14
- package/lib/eds-event-provider.d.ts +0 -7
- package/lib/hooks/use-get-api-roles.d.ts +0 -14
- package/lib/hooks/use-has-api-role.d.ts +0 -7
- package/lib/make-component.d.ts +0 -13
- package/lib/query/persister.d.ts +0 -7
- package/lib/style-provider.d.ts +0 -8
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { ServiceDto } from '../../model';
|
|
3
|
-
import { BodyType, ErrorType } from '../../use-client';
|
|
4
|
-
|
|
5
|
-
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
|
-
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
|
-
/**
|
|
8
|
-
* @summary List services for current environment
|
|
9
|
-
*/
|
|
10
|
-
export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<ServiceDto[]>;
|
|
11
|
-
export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
|
|
12
|
-
export declare const useGetAllServicesQueryOptions: <TData = ServiceDto[], TError = import('../../use-client').HttpError>(options?: {
|
|
13
|
-
query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
|
|
14
|
-
} | undefined) => UseQueryOptions<ServiceDto[], TError, TData, QueryKey> & {
|
|
15
|
-
queryKey: QueryKey;
|
|
16
|
-
};
|
|
17
|
-
export type GetAllServicesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>;
|
|
18
|
-
export type GetAllServicesQueryError = ErrorType<void>;
|
|
19
|
-
/**
|
|
20
|
-
* @summary List services for current environment
|
|
21
|
-
*/
|
|
22
|
-
export declare const useGetAllServices: <TData = ServiceDto[], TError = import('../../use-client').HttpError>(options?: {
|
|
23
|
-
query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
|
|
24
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
25
|
-
queryKey: QueryKey;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @summary Create or update service for current environment
|
|
29
|
-
*/
|
|
30
|
-
export declare const useCreateOrUpdateServiceHook: () => (serviceDto: BodyType<ServiceDto>) => Promise<ServiceDto>;
|
|
31
|
-
export declare const useCreateOrUpdateServiceMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
32
|
-
mutation?: UseMutationOptions<ServiceDto, TError, {
|
|
33
|
-
data: BodyType<ServiceDto>;
|
|
34
|
-
}, TContext> | undefined;
|
|
35
|
-
} | undefined) => UseMutationOptions<ServiceDto, TError, {
|
|
36
|
-
data: BodyType<ServiceDto>;
|
|
37
|
-
}, TContext>;
|
|
38
|
-
export type CreateOrUpdateServiceMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>>;
|
|
39
|
-
export type CreateOrUpdateServiceMutationBody = BodyType<ServiceDto>;
|
|
40
|
-
export type CreateOrUpdateServiceMutationError = ErrorType<void>;
|
|
41
|
-
/**
|
|
42
|
-
* @summary Create or update service for current environment
|
|
43
|
-
*/
|
|
44
|
-
export declare const useCreateOrUpdateService: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
45
|
-
mutation?: UseMutationOptions<ServiceDto, TError, {
|
|
46
|
-
data: BodyType<ServiceDto>;
|
|
47
|
-
}, TContext> | undefined;
|
|
48
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<ServiceDto, TError, {
|
|
49
|
-
data: BodyType<ServiceDto>;
|
|
50
|
-
}, TContext>;
|
|
51
|
-
/**
|
|
52
|
-
* @summary Get service by key
|
|
53
|
-
*/
|
|
54
|
-
export declare const useGetServiceByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<ServiceDto>;
|
|
55
|
-
export declare const getGetServiceByKeyQueryKey: (key: string) => readonly [`/api/apps/services/key/${string}`];
|
|
56
|
-
export declare const useGetServiceByKeyQueryOptions: <TData = ServiceDto, TError = import('../../use-client').HttpError>(key: string, options?: {
|
|
57
|
-
query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
|
|
58
|
-
} | undefined) => UseQueryOptions<ServiceDto, TError, TData, QueryKey> & {
|
|
59
|
-
queryKey: QueryKey;
|
|
60
|
-
};
|
|
61
|
-
export type GetServiceByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>>;
|
|
62
|
-
export type GetServiceByKeyQueryError = ErrorType<void>;
|
|
63
|
-
/**
|
|
64
|
-
* @summary Get service by key
|
|
65
|
-
*/
|
|
66
|
-
export declare const useGetServiceByKey: <TData = ServiceDto, TError = import('../../use-client').HttpError>(key: string, options?: {
|
|
67
|
-
query?: Partial<UseQueryOptions<ServiceDto, TError, TData, QueryKey>> | undefined;
|
|
68
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
69
|
-
queryKey: QueryKey;
|
|
70
|
-
};
|
|
71
|
-
/**
|
|
72
|
-
* @summary Delete service by key
|
|
73
|
-
*/
|
|
74
|
-
export declare const useDeleteServiceByKeyHook: () => (key: string) => Promise<void>;
|
|
75
|
-
export declare const useDeleteServiceByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
76
|
-
mutation?: UseMutationOptions<void, TError, {
|
|
77
|
-
key: string;
|
|
78
|
-
}, TContext> | undefined;
|
|
79
|
-
} | undefined) => UseMutationOptions<void, TError, {
|
|
80
|
-
key: string;
|
|
81
|
-
}, TContext>;
|
|
82
|
-
export type DeleteServiceByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>>;
|
|
83
|
-
export type DeleteServiceByKeyMutationError = ErrorType<unknown>;
|
|
84
|
-
/**
|
|
85
|
-
* @summary Delete service by key
|
|
86
|
-
*/
|
|
87
|
-
export declare const useDeleteServiceByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
88
|
-
mutation?: UseMutationOptions<void, TError, {
|
|
89
|
-
key: string;
|
|
90
|
-
}, TContext> | undefined;
|
|
91
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<void, TError, {
|
|
92
|
-
key: string;
|
|
93
|
-
}, TContext>;
|
|
94
|
-
export {};
|
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
-
import { SettingDto } from '../../model';
|
|
3
|
-
import { BodyType, ErrorType } from '../../use-client';
|
|
4
|
-
|
|
5
|
-
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
6
|
-
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
7
|
-
/**
|
|
8
|
-
* @summary Get a users private Setting by id
|
|
9
|
-
*/
|
|
10
|
-
export declare const useGetSettingByUserAndIdHook: () => (userId: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
11
|
-
export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
|
|
12
|
-
export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import('../../use-client').HttpError>(userId: string, id: string, options?: {
|
|
13
|
-
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
14
|
-
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
15
|
-
queryKey: QueryKey;
|
|
16
|
-
};
|
|
17
|
-
export type GetSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>;
|
|
18
|
-
export type GetSettingByUserAndIdQueryError = ErrorType<void>;
|
|
19
|
-
/**
|
|
20
|
-
* @summary Get a users private Setting by id
|
|
21
|
-
*/
|
|
22
|
-
export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(userId: string, id: string, options?: {
|
|
23
|
-
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
24
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
25
|
-
queryKey: QueryKey;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* @summary Update a private Setting by id
|
|
29
|
-
*/
|
|
30
|
-
export declare const useUpdateByUserIdAndIdHook: () => (userId: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
31
|
-
export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
32
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
33
|
-
userId: string;
|
|
34
|
-
id: string;
|
|
35
|
-
data: BodyType<SettingDto>;
|
|
36
|
-
}, TContext> | undefined;
|
|
37
|
-
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
38
|
-
userId: string;
|
|
39
|
-
id: string;
|
|
40
|
-
data: BodyType<SettingDto>;
|
|
41
|
-
}, TContext>;
|
|
42
|
-
export type UpdateByUserIdAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>>;
|
|
43
|
-
export type UpdateByUserIdAndIdMutationBody = BodyType<SettingDto>;
|
|
44
|
-
export type UpdateByUserIdAndIdMutationError = ErrorType<void>;
|
|
45
|
-
/**
|
|
46
|
-
* @summary Update a private Setting by id
|
|
47
|
-
*/
|
|
48
|
-
export declare const useUpdateByUserIdAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
49
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
50
|
-
userId: string;
|
|
51
|
-
id: string;
|
|
52
|
-
data: BodyType<SettingDto>;
|
|
53
|
-
}, TContext> | undefined;
|
|
54
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
55
|
-
userId: string;
|
|
56
|
-
id: string;
|
|
57
|
-
data: BodyType<SettingDto>;
|
|
58
|
-
}, TContext>;
|
|
59
|
-
/**
|
|
60
|
-
* @summary Delete a private Setting by id
|
|
61
|
-
*/
|
|
62
|
-
export declare const useDeletePrivateSettingByIdHook: () => (userId: string, id: string) => Promise<SettingDto>;
|
|
63
|
-
export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
64
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
65
|
-
userId: string;
|
|
66
|
-
id: string;
|
|
67
|
-
}, TContext> | undefined;
|
|
68
|
-
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
69
|
-
userId: string;
|
|
70
|
-
id: string;
|
|
71
|
-
}, TContext>;
|
|
72
|
-
export type DeletePrivateSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>>;
|
|
73
|
-
export type DeletePrivateSettingByIdMutationError = ErrorType<void>;
|
|
74
|
-
/**
|
|
75
|
-
* @summary Delete a private Setting by id
|
|
76
|
-
*/
|
|
77
|
-
export declare const useDeletePrivateSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
78
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
79
|
-
userId: string;
|
|
80
|
-
id: string;
|
|
81
|
-
}, TContext> | undefined;
|
|
82
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
83
|
-
userId: string;
|
|
84
|
-
id: string;
|
|
85
|
-
}, TContext>;
|
|
86
|
-
/**
|
|
87
|
-
* @summary Get a users public Setting by id
|
|
88
|
-
*/
|
|
89
|
-
export declare const useGetPublicSettingByUserAndIdHook: () => (appShortName: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
90
|
-
export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
|
|
91
|
-
export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import('../../use-client').HttpError>(appShortName: string, id: string, options?: {
|
|
92
|
-
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
93
|
-
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
94
|
-
queryKey: QueryKey;
|
|
95
|
-
};
|
|
96
|
-
export type GetPublicSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>;
|
|
97
|
-
export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
|
|
98
|
-
/**
|
|
99
|
-
* @summary Get a users public Setting by id
|
|
100
|
-
*/
|
|
101
|
-
export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(appShortName: string, id: string, options?: {
|
|
102
|
-
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
103
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
104
|
-
queryKey: QueryKey;
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* @summary Update a public Setting for a given appShortName by id
|
|
108
|
-
*/
|
|
109
|
-
export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => (appShortName: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
110
|
-
export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
111
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
112
|
-
appShortName: string;
|
|
113
|
-
id: string;
|
|
114
|
-
data: BodyType<SettingDto>;
|
|
115
|
-
}, TContext> | undefined;
|
|
116
|
-
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
117
|
-
appShortName: string;
|
|
118
|
-
id: string;
|
|
119
|
-
data: BodyType<SettingDto>;
|
|
120
|
-
}, TContext>;
|
|
121
|
-
export type UpdatePublicSettingByAppShortNameAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>>;
|
|
122
|
-
export type UpdatePublicSettingByAppShortNameAndIdMutationBody = BodyType<SettingDto>;
|
|
123
|
-
export type UpdatePublicSettingByAppShortNameAndIdMutationError = ErrorType<void>;
|
|
124
|
-
/**
|
|
125
|
-
* @summary Update a public Setting for a given appShortName by id
|
|
126
|
-
*/
|
|
127
|
-
export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
128
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
129
|
-
appShortName: string;
|
|
130
|
-
id: string;
|
|
131
|
-
data: BodyType<SettingDto>;
|
|
132
|
-
}, TContext> | undefined;
|
|
133
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
134
|
-
appShortName: string;
|
|
135
|
-
id: string;
|
|
136
|
-
data: BodyType<SettingDto>;
|
|
137
|
-
}, TContext>;
|
|
138
|
-
/**
|
|
139
|
-
* @summary Delete a public Setting for a appShortName by id
|
|
140
|
-
*/
|
|
141
|
-
export declare const useDeletePublicSettingByIdHook: () => (appShortName: string, id: string) => Promise<SettingDto>;
|
|
142
|
-
export declare const useDeletePublicSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
143
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
144
|
-
appShortName: string;
|
|
145
|
-
id: string;
|
|
146
|
-
}, TContext> | undefined;
|
|
147
|
-
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
148
|
-
appShortName: string;
|
|
149
|
-
id: string;
|
|
150
|
-
}, TContext>;
|
|
151
|
-
export type DeletePublicSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>>;
|
|
152
|
-
export type DeletePublicSettingByIdMutationError = ErrorType<void>;
|
|
153
|
-
/**
|
|
154
|
-
* @summary Delete a public Setting for a appShortName by id
|
|
155
|
-
*/
|
|
156
|
-
export declare const useDeletePublicSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
157
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
158
|
-
appShortName: string;
|
|
159
|
-
id: string;
|
|
160
|
-
}, TContext> | undefined;
|
|
161
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
162
|
-
appShortName: string;
|
|
163
|
-
id: string;
|
|
164
|
-
}, TContext>;
|
|
165
|
-
/**
|
|
166
|
-
* @summary Get all private Settings by userId
|
|
167
|
-
*/
|
|
168
|
-
export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<SettingDto[]>;
|
|
169
|
-
export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
|
|
170
|
-
export declare const useGetSettingsByUserIdQueryOptions: <TData = SettingDto[], TError = import('../../use-client').HttpError>(userId: string, options?: {
|
|
171
|
-
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
172
|
-
} | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
|
|
173
|
-
queryKey: QueryKey;
|
|
174
|
-
};
|
|
175
|
-
export type GetSettingsByUserIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>;
|
|
176
|
-
export type GetSettingsByUserIdQueryError = ErrorType<void>;
|
|
177
|
-
/**
|
|
178
|
-
* @summary Get all private Settings by userId
|
|
179
|
-
*/
|
|
180
|
-
export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = import('../../use-client').HttpError>(userId: string, options?: {
|
|
181
|
-
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
182
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
183
|
-
queryKey: QueryKey;
|
|
184
|
-
};
|
|
185
|
-
/**
|
|
186
|
-
* @summary Create a private Setting for a given user
|
|
187
|
-
*/
|
|
188
|
-
export declare const useCreateSettingByUserIdHook: () => (userId: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
189
|
-
export declare const useCreateSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
190
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
191
|
-
userId: string;
|
|
192
|
-
data: BodyType<SettingDto>;
|
|
193
|
-
}, TContext> | undefined;
|
|
194
|
-
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
195
|
-
userId: string;
|
|
196
|
-
data: BodyType<SettingDto>;
|
|
197
|
-
}, TContext>;
|
|
198
|
-
export type CreateSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>>;
|
|
199
|
-
export type CreateSettingByUserIdMutationBody = BodyType<SettingDto>;
|
|
200
|
-
export type CreateSettingByUserIdMutationError = ErrorType<void>;
|
|
201
|
-
/**
|
|
202
|
-
* @summary Create a private Setting for a given user
|
|
203
|
-
*/
|
|
204
|
-
export declare const useCreateSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
205
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
206
|
-
userId: string;
|
|
207
|
-
data: BodyType<SettingDto>;
|
|
208
|
-
}, TContext> | undefined;
|
|
209
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
210
|
-
userId: string;
|
|
211
|
-
data: BodyType<SettingDto>;
|
|
212
|
-
}, TContext>;
|
|
213
|
-
/**
|
|
214
|
-
* @summary Get all public or mine Settings by appShortName
|
|
215
|
-
*/
|
|
216
|
-
export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<SettingDto[]>;
|
|
217
|
-
export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
|
|
218
|
-
export declare const useGetSettingsByAppShortNameQueryOptions: <TData = SettingDto[], TError = import('../../use-client').HttpError>(appShortName: string, options?: {
|
|
219
|
-
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
220
|
-
} | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
|
|
221
|
-
queryKey: QueryKey;
|
|
222
|
-
};
|
|
223
|
-
export type GetSettingsByAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>;
|
|
224
|
-
export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
|
|
225
|
-
/**
|
|
226
|
-
* @summary Get all public or mine Settings by appShortName
|
|
227
|
-
*/
|
|
228
|
-
export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError = import('../../use-client').HttpError>(appShortName: string, options?: {
|
|
229
|
-
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
230
|
-
} | undefined) => UseQueryResult<TData, TError> & {
|
|
231
|
-
queryKey: QueryKey;
|
|
232
|
-
};
|
|
233
|
-
/**
|
|
234
|
-
* @summary Create a public Setting for a given appShortName
|
|
235
|
-
*/
|
|
236
|
-
export declare const useCreatePublicSettingByUserIdHook: () => (appShortName: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
237
|
-
export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
238
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
239
|
-
appShortName: string;
|
|
240
|
-
data: BodyType<SettingDto>;
|
|
241
|
-
}, TContext> | undefined;
|
|
242
|
-
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
243
|
-
appShortName: string;
|
|
244
|
-
data: BodyType<SettingDto>;
|
|
245
|
-
}, TContext>;
|
|
246
|
-
export type CreatePublicSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>>;
|
|
247
|
-
export type CreatePublicSettingByUserIdMutationBody = BodyType<SettingDto>;
|
|
248
|
-
export type CreatePublicSettingByUserIdMutationError = ErrorType<void>;
|
|
249
|
-
/**
|
|
250
|
-
* @summary Create a public Setting for a given appShortName
|
|
251
|
-
*/
|
|
252
|
-
export declare const useCreatePublicSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
253
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
254
|
-
appShortName: string;
|
|
255
|
-
data: BodyType<SettingDto>;
|
|
256
|
-
}, TContext> | undefined;
|
|
257
|
-
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
258
|
-
appShortName: string;
|
|
259
|
-
data: BodyType<SettingDto>;
|
|
260
|
-
}, TContext>;
|
|
261
|
-
export {};
|
package/lib/api/roma/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from './api/setting-controller/setting-controller';
|
|
2
|
-
export * from './api/app-controller/app-controller';
|
|
3
|
-
export * from './api/service-controller/service-controller';
|
|
4
|
-
export * from './api/category-controller/category-controller';
|
|
5
|
-
export * from './api/server-side-event-controller/server-side-event-controller';
|
|
6
|
-
export * from './api/environment-controller/environment-controller';
|
|
7
|
-
export * from './model';
|
|
8
|
-
export * from './api/roma-configuration-controller/roma-configuration-controller';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { CategoryDto } from './categoryDto';
|
|
2
|
-
import { VersionDto } from './versionDto';
|
|
3
|
-
|
|
4
|
-
export interface AppDto {
|
|
5
|
-
accentColor?: string;
|
|
6
|
-
category?: CategoryDto;
|
|
7
|
-
categoryId: string;
|
|
8
|
-
description: string;
|
|
9
|
-
entry: string;
|
|
10
|
-
hide?: boolean;
|
|
11
|
-
icon?: string;
|
|
12
|
-
key: string;
|
|
13
|
-
name: string;
|
|
14
|
-
order?: number;
|
|
15
|
-
publishedDate?: string;
|
|
16
|
-
shortName: string;
|
|
17
|
-
tags?: string[];
|
|
18
|
-
type: string;
|
|
19
|
-
version: VersionDto;
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v6.20.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Tops Roma Rest API
|
|
5
|
-
* Tops Roma Rest API
|
|
6
|
-
* OpenAPI spec version: v1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export interface CategoryDto {
|
|
9
|
-
color?: string;
|
|
10
|
-
defaultIcon?: string;
|
|
11
|
-
id: string;
|
|
12
|
-
name: string;
|
|
13
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v6.20.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Tops Roma Rest API
|
|
5
|
-
* Tops Roma Rest API
|
|
6
|
-
* OpenAPI spec version: v1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export type GetAllRomaConfigurationTypes200Item = (typeof GetAllRomaConfigurationTypes200Item)[keyof typeof GetAllRomaConfigurationTypes200Item];
|
|
9
|
-
export declare const GetAllRomaConfigurationTypes200Item: {
|
|
10
|
-
readonly servicebus: "servicebus";
|
|
11
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v6.20.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Tops Roma Rest API
|
|
5
|
-
* Tops Roma Rest API
|
|
6
|
-
* OpenAPI spec version: v1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export * from './appDto';
|
|
9
|
-
export * from './categoryDto';
|
|
10
|
-
export * from './environmentDto';
|
|
11
|
-
export * from './getAllRomaConfigurationTypes200Item';
|
|
12
|
-
export * from './romaConfigurationDto';
|
|
13
|
-
export * from './romaConfigurationDtoValue';
|
|
14
|
-
export * from './serverSentEventActivityLogDto';
|
|
15
|
-
export * from './serverSentEventStandardEventDto';
|
|
16
|
-
export * from './serviceDto';
|
|
17
|
-
export * from './settingDto';
|
|
18
|
-
export * from './settingDtoValue';
|
|
19
|
-
export * from './versionDto';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated by orval v6.20.0 🍺
|
|
3
|
-
* Do not edit manually.
|
|
4
|
-
* Tops Roma Rest API
|
|
5
|
-
* Tops Roma Rest API
|
|
6
|
-
* OpenAPI spec version: v1.0.0
|
|
7
|
-
*/
|
|
8
|
-
export interface ServiceDto {
|
|
9
|
-
defaultScopes: string[];
|
|
10
|
-
internal: boolean;
|
|
11
|
-
key: string;
|
|
12
|
-
name: string;
|
|
13
|
-
serviceName?: string;
|
|
14
|
-
type: string;
|
|
15
|
-
uri: string;
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
type CustomClient<T> = (data: {
|
|
2
|
-
url: string;
|
|
3
|
-
method: 'get' | 'post' | 'put' | 'delete' | 'patch';
|
|
4
|
-
params?: Record<string, any>;
|
|
5
|
-
headers?: Record<string, any>;
|
|
6
|
-
data?: BodyType<unknown>;
|
|
7
|
-
signal?: AbortSignal;
|
|
8
|
-
}) => Promise<T>;
|
|
9
|
-
export declare const useCustomClient: <T>() => CustomClient<T>;
|
|
10
|
-
export default useCustomClient;
|
|
11
|
-
export type HttpErrorServerResponse = {
|
|
12
|
-
timestamp: string;
|
|
13
|
-
status: number;
|
|
14
|
-
error: string;
|
|
15
|
-
message: string;
|
|
16
|
-
path: string;
|
|
17
|
-
};
|
|
18
|
-
export type HttpErrorResponse = {
|
|
19
|
-
status: number;
|
|
20
|
-
statusText: string;
|
|
21
|
-
message: unknown;
|
|
22
|
-
ok: boolean;
|
|
23
|
-
headers: Headers;
|
|
24
|
-
url: string;
|
|
25
|
-
};
|
|
26
|
-
export declare class HttpError extends Error {
|
|
27
|
-
readonly message: string;
|
|
28
|
-
readonly response: HttpErrorResponse;
|
|
29
|
-
constructor(message: string, response: HttpErrorResponse);
|
|
30
|
-
}
|
|
31
|
-
export type ErrorType<T> = HttpError;
|
|
32
|
-
export type BodyType<BodyData> = BodyData & {
|
|
33
|
-
headers?: any;
|
|
34
|
-
};
|
package/lib/app-provider.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
import { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
3
|
-
import { QueryClientError } from '@equinor/fusion-query/client';
|
|
4
|
-
|
|
5
|
-
type AppLoadError = QueryClientError & {
|
|
6
|
-
cause: {
|
|
7
|
-
data: unknown;
|
|
8
|
-
name: string;
|
|
9
|
-
response: Response;
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export declare const AppContext: import('react').Context<{
|
|
13
|
-
isLoading: boolean;
|
|
14
|
-
apps?: AppManifest[] | undefined;
|
|
15
|
-
error?: AppLoadError | undefined;
|
|
16
|
-
}>;
|
|
17
|
-
type ErrorPageProps = {
|
|
18
|
-
errorCode: number;
|
|
19
|
-
explanation: string;
|
|
20
|
-
solution: string;
|
|
21
|
-
};
|
|
22
|
-
export declare function AppLoadError({ errorCode, explanation, solution, }: ErrorPageProps): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export declare const AppProvider: ({ children }: {
|
|
24
|
-
children: ReactNode;
|
|
25
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export declare const useApps: ({ includeHidden, }?: {
|
|
27
|
-
includeHidden?: boolean | undefined;
|
|
28
|
-
}) => {
|
|
29
|
-
isLoading: boolean;
|
|
30
|
-
apps: AppManifest[];
|
|
31
|
-
error: AppLoadError | undefined;
|
|
32
|
-
};
|
|
33
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Component that will render a Fusion application
|
|
5
|
-
*
|
|
6
|
-
* @param app the AppManifest for the application to render
|
|
7
|
-
* @param kind whether the app is a widget or an application
|
|
8
|
-
* @param props any props to pass to the loaded application
|
|
9
|
-
* @constructor
|
|
10
|
-
*/
|
|
11
|
-
export declare function AppLoader({ app, kind, props, }: {
|
|
12
|
-
app: AppManifest | null;
|
|
13
|
-
kind?: 'app' | 'widget';
|
|
14
|
-
props?: Record<string | number, any>;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Simple in-place loader for fusion apps
|
|
5
|
-
*
|
|
6
|
-
* @param children
|
|
7
|
-
* @param text
|
|
8
|
-
* @constructor
|
|
9
|
-
*/
|
|
10
|
-
export declare const EquinorLoader: ({ children, text, }: React.PropsWithChildren<{
|
|
11
|
-
readonly text: string;
|
|
12
|
-
}>) => JSX.Element;
|
|
13
|
-
export default EquinorLoader;
|