@equinor/roma-framework 0.0.10 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +30537 -18174
- package/index.d.ts +1 -1
- package/lib/api/roma/api/app-controller/app-controller.d.ts +14 -20
- package/lib/api/roma/api/category-controller/category-controller.d.ts +14 -20
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +6 -12
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +21 -27
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +6 -12
- package/lib/api/roma/api/service-controller/service-controller.d.ts +14 -20
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +30 -36
- package/lib/api/roma/model/appDto.d.ts +3 -9
- package/lib/api/roma/model/environmentDto.d.ts +2 -8
- package/lib/api/roma/model/romaConfigurationDto.d.ts +2 -8
- package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +1 -3
- package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +1 -3
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +1 -3
- package/lib/api/roma/model/settingDto.d.ts +2 -8
- package/lib/api/roma/model/settingDtoValue.d.ts +1 -3
- package/lib/app-provider.d.ts +3 -2
- package/lib/dev-portal/AppLoader.d.ts +4 -1
- package/lib/dev-portal/EquinorLoader.d.ts +2 -1
- package/lib/dev-portal/ErrorViewer.d.ts +9 -0
- package/lib/dev-portal/HttpErrorViewer.d.ts +1 -0
- package/lib/eds-event-provider.d.ts +1 -0
- package/lib/make-component.d.ts +2 -1
- package/lib/query/persister.d.ts +7 -0
- package/lib/style-provider.d.ts +1 -0
- package/package.json +1 -1
- package/roma-framework.mjs +96 -106
- package/dev-portal/index.d.ts +0 -12
- package/dev-portal/lib/api/fetcher.d.ts +0 -21
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +0 -100
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +0 -100
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +0 -33
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +0 -168
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +0 -27
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +0 -100
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +0 -267
- package/dev-portal/lib/api/roma/index.d.ts +0 -8
- package/dev-portal/lib/api/roma/model/appDto.d.ts +0 -26
- package/dev-portal/lib/api/roma/model/categoryDto.d.ts +0 -13
- package/dev-portal/lib/api/roma/model/environmentDto.d.ts +0 -16
- package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +0 -11
- package/dev-portal/lib/api/roma/model/index.d.ts +0 -19
- package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +0 -14
- package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +0 -10
- package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +0 -10
- package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +0 -10
- package/dev-portal/lib/api/roma/model/serviceDto.d.ts +0 -16
- package/dev-portal/lib/api/roma/model/settingDto.d.ts +0 -16
- package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +0 -10
- package/dev-portal/lib/api/roma/model/versionDto.d.ts +0 -12
- package/dev-portal/lib/api/roma/use-client.d.ts +0 -34
- package/dev-portal/lib/api/trade-recap/deal.d.ts +0 -160
- package/dev-portal/lib/api/trade-recap/download-recap.d.ts +0 -6
- package/dev-portal/lib/api/trade-recap/get-deals.d.ts +0 -15
- package/dev-portal/lib/api/trade-recap/get-recap.d.ts +0 -11
- package/dev-portal/lib/api/trade-recap/index.d.ts +0 -5
- package/dev-portal/lib/api/trade-recap/recap.d.ts +0 -22
- package/dev-portal/lib/api/util.d.ts +0 -1
- package/dev-portal/lib/app-provider.d.ts +0 -32
- package/dev-portal/lib/dev-portal/AppLoader.d.ts +0 -12
- package/dev-portal/lib/dev-portal/AppViewer.d.ts +0 -6
- package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +0 -12
- package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +0 -12
- package/dev-portal/lib/dev-portal/Header.d.ts +0 -2
- package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +0 -13
- package/dev-portal/lib/dev-portal/Navigation.d.ts +0 -5
- package/dev-portal/lib/dev-portal/Root.d.ts +0 -5
- package/dev-portal/lib/dev-portal/config.d.ts +0 -3
- package/dev-portal/lib/dev-portal/index.d.ts +0 -13
- package/dev-portal/lib/eds-event-provider.d.ts +0 -6
- package/dev-portal/lib/hooks/use-get-api-roles.d.ts +0 -14
- package/dev-portal/lib/hooks/use-has-api-role.d.ts +0 -7
- package/dev-portal/lib/make-component.d.ts +0 -12
- package/dev-portal/lib/style-provider.d.ts +0 -7
- package/lib/api/fetcher.d.ts +0 -21
- package/lib/api/trade-recap/deal.d.ts +0 -160
- package/lib/api/trade-recap/download-recap.d.ts +0 -6
- package/lib/api/trade-recap/get-deals.d.ts +0 -15
- package/lib/api/trade-recap/get-recap.d.ts +0 -11
- package/lib/api/trade-recap/index.d.ts +0 -5
- package/lib/api/trade-recap/recap.d.ts +0 -22
- package/lib/api/util.d.ts +0 -1
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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 { SettingDto } from '../../model';
|
|
10
|
-
import type { BodyType, ErrorType } from '../../use-client';
|
|
1
|
+
import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
|
|
2
|
+
import { SettingDto } from '../../model';
|
|
3
|
+
import { BodyType, ErrorType } from '../../use-client';
|
|
4
|
+
|
|
11
5
|
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
6
|
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
7
|
/**
|
|
@@ -15,7 +9,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
|
15
9
|
*/
|
|
16
10
|
export declare const useGetSettingByUserAndIdHook: () => (userId: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
17
11
|
export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
|
|
18
|
-
export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import(
|
|
12
|
+
export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import('../../use-client').HttpError>(userId: string, id: string, options?: {
|
|
19
13
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
20
14
|
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
21
15
|
queryKey: QueryKey;
|
|
@@ -25,7 +19,7 @@ export type GetSettingByUserAndIdQueryError = ErrorType<void>;
|
|
|
25
19
|
/**
|
|
26
20
|
* @summary Get a users private Setting by id
|
|
27
21
|
*/
|
|
28
|
-
export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import(
|
|
22
|
+
export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(userId: string, id: string, options?: {
|
|
29
23
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
30
24
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
25
|
queryKey: QueryKey;
|
|
@@ -34,7 +28,7 @@ export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = imp
|
|
|
34
28
|
* @summary Update a private Setting by id
|
|
35
29
|
*/
|
|
36
30
|
export declare const useUpdateByUserIdAndIdHook: () => (userId: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
37
|
-
export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import(
|
|
31
|
+
export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
38
32
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
39
33
|
userId: string;
|
|
40
34
|
id: string;
|
|
@@ -51,13 +45,13 @@ export type UpdateByUserIdAndIdMutationError = ErrorType<void>;
|
|
|
51
45
|
/**
|
|
52
46
|
* @summary Update a private Setting by id
|
|
53
47
|
*/
|
|
54
|
-
export declare const useUpdateByUserIdAndId: <TError = import(
|
|
48
|
+
export declare const useUpdateByUserIdAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
55
49
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
56
50
|
userId: string;
|
|
57
51
|
id: string;
|
|
58
52
|
data: BodyType<SettingDto>;
|
|
59
53
|
}, TContext> | undefined;
|
|
60
|
-
} | undefined) => import(
|
|
54
|
+
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
61
55
|
userId: string;
|
|
62
56
|
id: string;
|
|
63
57
|
data: BodyType<SettingDto>;
|
|
@@ -66,7 +60,7 @@ export declare const useUpdateByUserIdAndId: <TError = import("../../use-client"
|
|
|
66
60
|
* @summary Delete a private Setting by id
|
|
67
61
|
*/
|
|
68
62
|
export declare const useDeletePrivateSettingByIdHook: () => (userId: string, id: string) => Promise<SettingDto>;
|
|
69
|
-
export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import(
|
|
63
|
+
export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
70
64
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
71
65
|
userId: string;
|
|
72
66
|
id: string;
|
|
@@ -80,12 +74,12 @@ export type DeletePrivateSettingByIdMutationError = ErrorType<void>;
|
|
|
80
74
|
/**
|
|
81
75
|
* @summary Delete a private Setting by id
|
|
82
76
|
*/
|
|
83
|
-
export declare const useDeletePrivateSettingById: <TError = import(
|
|
77
|
+
export declare const useDeletePrivateSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
84
78
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
85
79
|
userId: string;
|
|
86
80
|
id: string;
|
|
87
81
|
}, TContext> | undefined;
|
|
88
|
-
} | undefined) => import(
|
|
82
|
+
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
89
83
|
userId: string;
|
|
90
84
|
id: string;
|
|
91
85
|
}, TContext>;
|
|
@@ -94,7 +88,7 @@ export declare const useDeletePrivateSettingById: <TError = import("../../use-cl
|
|
|
94
88
|
*/
|
|
95
89
|
export declare const useGetPublicSettingByUserAndIdHook: () => (appShortName: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
96
90
|
export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
|
|
97
|
-
export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import(
|
|
91
|
+
export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import('../../use-client').HttpError>(appShortName: string, id: string, options?: {
|
|
98
92
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
99
93
|
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
100
94
|
queryKey: QueryKey;
|
|
@@ -104,7 +98,7 @@ export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
|
|
|
104
98
|
/**
|
|
105
99
|
* @summary Get a users public Setting by id
|
|
106
100
|
*/
|
|
107
|
-
export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import(
|
|
101
|
+
export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(appShortName: string, id: string, options?: {
|
|
108
102
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
109
103
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
110
104
|
queryKey: QueryKey;
|
|
@@ -113,7 +107,7 @@ export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError
|
|
|
113
107
|
* @summary Update a public Setting for a given appShortName by id
|
|
114
108
|
*/
|
|
115
109
|
export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => (appShortName: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
116
|
-
export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import(
|
|
110
|
+
export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
117
111
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
118
112
|
appShortName: string;
|
|
119
113
|
id: string;
|
|
@@ -130,13 +124,13 @@ export type UpdatePublicSettingByAppShortNameAndIdMutationError = ErrorType<void
|
|
|
130
124
|
/**
|
|
131
125
|
* @summary Update a public Setting for a given appShortName by id
|
|
132
126
|
*/
|
|
133
|
-
export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import(
|
|
127
|
+
export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
134
128
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
135
129
|
appShortName: string;
|
|
136
130
|
id: string;
|
|
137
131
|
data: BodyType<SettingDto>;
|
|
138
132
|
}, TContext> | undefined;
|
|
139
|
-
} | undefined) => import(
|
|
133
|
+
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
140
134
|
appShortName: string;
|
|
141
135
|
id: string;
|
|
142
136
|
data: BodyType<SettingDto>;
|
|
@@ -145,7 +139,7 @@ export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import
|
|
|
145
139
|
* @summary Delete a public Setting for a appShortName by id
|
|
146
140
|
*/
|
|
147
141
|
export declare const useDeletePublicSettingByIdHook: () => (appShortName: string, id: string) => Promise<SettingDto>;
|
|
148
|
-
export declare const useDeletePublicSettingByIdMutationOptions: <TError = import(
|
|
142
|
+
export declare const useDeletePublicSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
149
143
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
150
144
|
appShortName: string;
|
|
151
145
|
id: string;
|
|
@@ -159,12 +153,12 @@ export type DeletePublicSettingByIdMutationError = ErrorType<void>;
|
|
|
159
153
|
/**
|
|
160
154
|
* @summary Delete a public Setting for a appShortName by id
|
|
161
155
|
*/
|
|
162
|
-
export declare const useDeletePublicSettingById: <TError = import(
|
|
156
|
+
export declare const useDeletePublicSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
163
157
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
164
158
|
appShortName: string;
|
|
165
159
|
id: string;
|
|
166
160
|
}, TContext> | undefined;
|
|
167
|
-
} | undefined) => import(
|
|
161
|
+
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
168
162
|
appShortName: string;
|
|
169
163
|
id: string;
|
|
170
164
|
}, TContext>;
|
|
@@ -173,7 +167,7 @@ export declare const useDeletePublicSettingById: <TError = import("../../use-cli
|
|
|
173
167
|
*/
|
|
174
168
|
export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<SettingDto[]>;
|
|
175
169
|
export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
|
|
176
|
-
export declare const useGetSettingsByUserIdQueryOptions: <TData = SettingDto[], TError = import(
|
|
170
|
+
export declare const useGetSettingsByUserIdQueryOptions: <TData = SettingDto[], TError = import('../../use-client').HttpError>(userId: string, options?: {
|
|
177
171
|
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
178
172
|
} | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
|
|
179
173
|
queryKey: QueryKey;
|
|
@@ -183,7 +177,7 @@ export type GetSettingsByUserIdQueryError = ErrorType<void>;
|
|
|
183
177
|
/**
|
|
184
178
|
* @summary Get all private Settings by userId
|
|
185
179
|
*/
|
|
186
|
-
export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = import(
|
|
180
|
+
export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = import('../../use-client').HttpError>(userId: string, options?: {
|
|
187
181
|
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
188
182
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
189
183
|
queryKey: QueryKey;
|
|
@@ -192,7 +186,7 @@ export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = imp
|
|
|
192
186
|
* @summary Create a private Setting for a given user
|
|
193
187
|
*/
|
|
194
188
|
export declare const useCreateSettingByUserIdHook: () => (userId: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
195
|
-
export declare const useCreateSettingByUserIdMutationOptions: <TError = import(
|
|
189
|
+
export declare const useCreateSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
196
190
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
197
191
|
userId: string;
|
|
198
192
|
data: BodyType<SettingDto>;
|
|
@@ -207,12 +201,12 @@ export type CreateSettingByUserIdMutationError = ErrorType<void>;
|
|
|
207
201
|
/**
|
|
208
202
|
* @summary Create a private Setting for a given user
|
|
209
203
|
*/
|
|
210
|
-
export declare const useCreateSettingByUserId: <TError = import(
|
|
204
|
+
export declare const useCreateSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
211
205
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
212
206
|
userId: string;
|
|
213
207
|
data: BodyType<SettingDto>;
|
|
214
208
|
}, TContext> | undefined;
|
|
215
|
-
} | undefined) => import(
|
|
209
|
+
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
216
210
|
userId: string;
|
|
217
211
|
data: BodyType<SettingDto>;
|
|
218
212
|
}, TContext>;
|
|
@@ -221,7 +215,7 @@ export declare const useCreateSettingByUserId: <TError = import("../../use-clien
|
|
|
221
215
|
*/
|
|
222
216
|
export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<SettingDto[]>;
|
|
223
217
|
export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
|
|
224
|
-
export declare const useGetSettingsByAppShortNameQueryOptions: <TData = SettingDto[], TError = import(
|
|
218
|
+
export declare const useGetSettingsByAppShortNameQueryOptions: <TData = SettingDto[], TError = import('../../use-client').HttpError>(appShortName: string, options?: {
|
|
225
219
|
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
226
220
|
} | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
|
|
227
221
|
queryKey: QueryKey;
|
|
@@ -231,7 +225,7 @@ export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
|
|
|
231
225
|
/**
|
|
232
226
|
* @summary Get all public or mine Settings by appShortName
|
|
233
227
|
*/
|
|
234
|
-
export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError = import(
|
|
228
|
+
export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError = import('../../use-client').HttpError>(appShortName: string, options?: {
|
|
235
229
|
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
236
230
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
237
231
|
queryKey: QueryKey;
|
|
@@ -240,7 +234,7 @@ export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError
|
|
|
240
234
|
* @summary Create a public Setting for a given appShortName
|
|
241
235
|
*/
|
|
242
236
|
export declare const useCreatePublicSettingByUserIdHook: () => (appShortName: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
243
|
-
export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import(
|
|
237
|
+
export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
244
238
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
245
239
|
appShortName: string;
|
|
246
240
|
data: BodyType<SettingDto>;
|
|
@@ -255,12 +249,12 @@ export type CreatePublicSettingByUserIdMutationError = ErrorType<void>;
|
|
|
255
249
|
/**
|
|
256
250
|
* @summary Create a public Setting for a given appShortName
|
|
257
251
|
*/
|
|
258
|
-
export declare const useCreatePublicSettingByUserId: <TError = import(
|
|
252
|
+
export declare const useCreatePublicSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
|
|
259
253
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
260
254
|
appShortName: string;
|
|
261
255
|
data: BodyType<SettingDto>;
|
|
262
256
|
}, TContext> | undefined;
|
|
263
|
-
} | undefined) => import(
|
|
257
|
+
} | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
|
|
264
258
|
appShortName: string;
|
|
265
259
|
data: BodyType<SettingDto>;
|
|
266
260
|
}, TContext>;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Tops Roma Rest API
|
|
5
|
-
* Tops Roma Rest API
|
|
6
|
-
* OpenAPI spec version: v1.0.0
|
|
7
|
-
*/
|
|
8
|
-
import type { CategoryDto } from './categoryDto';
|
|
9
|
-
import type { VersionDto } from './versionDto';
|
|
1
|
+
import { CategoryDto } from './categoryDto';
|
|
2
|
+
import { VersionDto } from './versionDto';
|
|
3
|
+
|
|
10
4
|
export interface AppDto {
|
|
11
5
|
accentColor?: string;
|
|
12
6
|
category?: CategoryDto;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ServiceDto } from './serviceDto';
|
|
1
|
+
import { ServiceDto } from './serviceDto';
|
|
2
|
+
|
|
9
3
|
export interface EnvironmentDto {
|
|
10
4
|
clientId?: string;
|
|
11
5
|
environmentName?: string;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { RomaConfigurationDtoValue } from './romaConfigurationDtoValue';
|
|
1
|
+
import { RomaConfigurationDtoValue } from './romaConfigurationDtoValue';
|
|
2
|
+
|
|
9
3
|
export interface RomaConfigurationDto {
|
|
10
4
|
id?: string;
|
|
11
5
|
name: string;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { SettingDtoValue } from './settingDtoValue';
|
|
1
|
+
import { SettingDtoValue } from './settingDtoValue';
|
|
2
|
+
|
|
9
3
|
export interface SettingDto {
|
|
10
4
|
appShortName?: string;
|
|
11
5
|
id?: string;
|
package/lib/app-provider.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
3
|
-
import
|
|
3
|
+
import { QueryClientError } from '@equinor/fusion-query/client';
|
|
4
|
+
|
|
4
5
|
type AppLoadError = QueryClientError & {
|
|
5
6
|
cause: {
|
|
6
7
|
data: unknown;
|
|
@@ -8,7 +9,7 @@ type AppLoadError = QueryClientError & {
|
|
|
8
9
|
response: Response;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
|
-
export declare const AppContext: import(
|
|
12
|
+
export declare const AppContext: import('react').Context<{
|
|
12
13
|
isLoading: boolean;
|
|
13
14
|
apps?: AppManifest[] | undefined;
|
|
14
15
|
error?: AppLoadError | undefined;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
|
+
|
|
2
3
|
/**
|
|
3
4
|
* Component that will render a Fusion application
|
|
4
5
|
*
|
|
5
6
|
* @param app the AppManifest for the application to render
|
|
6
7
|
* @param kind whether the app is a widget or an application
|
|
8
|
+
* @param props any props to pass to the loaded application
|
|
7
9
|
* @constructor
|
|
8
10
|
*/
|
|
9
|
-
export declare function AppLoader({ app, kind, }: {
|
|
11
|
+
export declare function AppLoader({ app, kind, props, }: {
|
|
10
12
|
app: AppManifest | null;
|
|
11
13
|
kind?: 'app' | 'widget';
|
|
14
|
+
props?: Record<string | number, any>;
|
|
12
15
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ReactElement, CSSProperties } from 'react';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Simple error display component.
|
|
3
5
|
* Does not create a pretty error, and should most likely be recreated for various error types (e.g. lack of access etc.)
|
|
@@ -9,4 +11,11 @@
|
|
|
9
11
|
export declare const ErrorViewer: ({ error }: {
|
|
10
12
|
readonly error: Error;
|
|
11
13
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
type ErrorProps = {
|
|
15
|
+
title?: string;
|
|
16
|
+
message: string;
|
|
17
|
+
style?: CSSProperties;
|
|
18
|
+
actions?: ReactElement;
|
|
19
|
+
};
|
|
20
|
+
export declare const RomaErrorViewer: ({ style, title, message, actions, }: ErrorProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
21
|
export default ErrorViewer;
|
package/lib/make-component.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AnyModule } from '@equinor/fusion-framework-module';
|
|
2
2
|
import { Fusion } from '@equinor/fusion-framework-react';
|
|
3
3
|
import { AppEnv, AppModuleInitiator } from '@equinor/fusion-framework-app';
|
|
4
|
-
import React,
|
|
4
|
+
import { default as React, ReactNode } from 'react';
|
|
5
5
|
import { ComponentRenderArgs as FusionComponentRenderArgs } from '@equinor/fusion-framework-react-app';
|
|
6
6
|
import { QueryClient } from '@tanstack/react-query';
|
|
7
|
+
|
|
7
8
|
export type RomaComponentRenderArgs<TRef extends Fusion = Fusion, TEnv = AppEnv> = FusionComponentRenderArgs<TRef, TEnv> & {
|
|
8
9
|
query?: QueryClient;
|
|
9
10
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Persister } from '@tanstack/react-query-persist-client';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Creates an Indexed DB persister
|
|
5
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API
|
|
6
|
+
*/
|
|
7
|
+
export declare function createIDBPersister(idbValidKey?: IDBValidKey): Persister;
|
package/lib/style-provider.d.ts
CHANGED