@equinor/roma-framework 0.0.7-BETA.3 → 0.0.7-BETA.5
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/lib/api/roma/api/setting-controller/setting-controller.d.ts +117 -148
- package/dev-portal/lib/api/roma/model/settingDto.d.ts +3 -0
- package/dev-portal/lib/api/roma/use-client.d.ts +1 -1
- package/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +12 -6
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +117 -148
- package/lib/api/roma/model/settingDto.d.ts +3 -0
- package/lib/api/roma/use-client.d.ts +1 -1
- package/package.json +1 -1
- package/roma-framework.mjs +195 -241
|
@@ -11,288 +11,257 @@ import type { BodyType, ErrorType } from '../../use-client';
|
|
|
11
11
|
type AwaitedInput<T> = PromiseLike<T> | T;
|
|
12
12
|
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
13
13
|
/**
|
|
14
|
-
* @summary Get a Setting by
|
|
14
|
+
* @summary Get a users private Setting by id
|
|
15
15
|
*/
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
16
|
+
export declare const useGetSettingByUserAndIdHook: () => (userId: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
17
|
+
export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
|
|
18
|
+
export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, id: string, options?: {
|
|
19
19
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
20
20
|
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
21
21
|
queryKey: QueryKey;
|
|
22
22
|
};
|
|
23
|
-
export type
|
|
24
|
-
export type
|
|
23
|
+
export type GetSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>;
|
|
24
|
+
export type GetSettingByUserAndIdQueryError = ErrorType<void>;
|
|
25
25
|
/**
|
|
26
|
-
* @summary Get a Setting by
|
|
26
|
+
* @summary Get a users private Setting by id
|
|
27
27
|
*/
|
|
28
|
-
export declare const
|
|
28
|
+
export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, id: string, options?: {
|
|
29
29
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
30
30
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
31
|
queryKey: QueryKey;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* @summary
|
|
34
|
+
* @summary Update a private Setting by id
|
|
35
35
|
*/
|
|
36
|
-
export declare const
|
|
37
|
-
export declare const
|
|
36
|
+
export declare const useUpdateByUserIdAndIdHook: () => (userId: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
37
|
+
export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
38
38
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
39
39
|
userId: string;
|
|
40
|
-
|
|
40
|
+
id: string;
|
|
41
41
|
data: BodyType<SettingDto>;
|
|
42
42
|
}, TContext> | undefined;
|
|
43
43
|
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
44
44
|
userId: string;
|
|
45
|
-
|
|
45
|
+
id: string;
|
|
46
46
|
data: BodyType<SettingDto>;
|
|
47
47
|
}, TContext>;
|
|
48
|
-
export type
|
|
49
|
-
export type
|
|
50
|
-
export type
|
|
48
|
+
export type UpdateByUserIdAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>>;
|
|
49
|
+
export type UpdateByUserIdAndIdMutationBody = BodyType<SettingDto>;
|
|
50
|
+
export type UpdateByUserIdAndIdMutationError = ErrorType<void>;
|
|
51
51
|
/**
|
|
52
|
-
* @summary
|
|
52
|
+
* @summary Update a private Setting by id
|
|
53
53
|
*/
|
|
54
|
-
export declare const
|
|
54
|
+
export declare const useUpdateByUserIdAndId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
55
55
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
56
56
|
userId: string;
|
|
57
|
-
|
|
57
|
+
id: string;
|
|
58
58
|
data: BodyType<SettingDto>;
|
|
59
59
|
}, TContext> | undefined;
|
|
60
60
|
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
61
61
|
userId: string;
|
|
62
|
-
|
|
62
|
+
id: string;
|
|
63
63
|
data: BodyType<SettingDto>;
|
|
64
64
|
}, TContext>;
|
|
65
65
|
/**
|
|
66
|
-
* @summary Delete a Setting by
|
|
66
|
+
* @summary Delete a private Setting by id
|
|
67
67
|
*/
|
|
68
|
-
export declare const
|
|
69
|
-
export declare const
|
|
68
|
+
export declare const useDeletePrivateSettingByIdHook: () => (userId: string, id: string) => Promise<SettingDto>;
|
|
69
|
+
export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
70
70
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
71
71
|
userId: string;
|
|
72
|
-
|
|
72
|
+
id: string;
|
|
73
73
|
}, TContext> | undefined;
|
|
74
74
|
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
75
75
|
userId: string;
|
|
76
|
-
|
|
76
|
+
id: string;
|
|
77
77
|
}, TContext>;
|
|
78
|
-
export type
|
|
79
|
-
export type
|
|
78
|
+
export type DeletePrivateSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>>;
|
|
79
|
+
export type DeletePrivateSettingByIdMutationError = ErrorType<void>;
|
|
80
80
|
/**
|
|
81
|
-
* @summary Delete a Setting by
|
|
81
|
+
* @summary Delete a private Setting by id
|
|
82
82
|
*/
|
|
83
|
-
export declare const
|
|
83
|
+
export declare const useDeletePrivateSettingById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
84
84
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
85
85
|
userId: string;
|
|
86
|
-
|
|
86
|
+
id: string;
|
|
87
87
|
}, TContext> | undefined;
|
|
88
88
|
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
89
89
|
userId: string;
|
|
90
|
-
|
|
90
|
+
id: string;
|
|
91
91
|
}, TContext>;
|
|
92
92
|
/**
|
|
93
|
-
* @summary Get Setting by
|
|
93
|
+
* @summary Get a users public Setting by id
|
|
94
94
|
*/
|
|
95
|
-
export declare const
|
|
96
|
-
export declare const
|
|
97
|
-
export declare const
|
|
95
|
+
export declare const useGetPublicSettingByUserAndIdHook: () => (appShortName: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
96
|
+
export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
|
|
97
|
+
export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(appShortName: string, id: string, options?: {
|
|
98
98
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
99
99
|
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
100
100
|
queryKey: QueryKey;
|
|
101
101
|
};
|
|
102
|
-
export type
|
|
103
|
-
export type
|
|
102
|
+
export type GetPublicSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>;
|
|
103
|
+
export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
|
|
104
104
|
/**
|
|
105
|
-
* @summary Get Setting by
|
|
105
|
+
* @summary Get a users public Setting by id
|
|
106
106
|
*/
|
|
107
|
-
export declare const
|
|
107
|
+
export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import("../../use-client").HttpError>(appShortName: string, id: string, options?: {
|
|
108
108
|
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
109
109
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
110
110
|
queryKey: QueryKey;
|
|
111
111
|
};
|
|
112
112
|
/**
|
|
113
|
-
* @summary
|
|
113
|
+
* @summary Update a public Setting for a given appShortName by id
|
|
114
114
|
*/
|
|
115
|
-
export declare const
|
|
116
|
-
export declare const
|
|
115
|
+
export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => (appShortName: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
116
|
+
export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
117
117
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
118
|
-
userId: string;
|
|
119
118
|
appShortName: string;
|
|
120
|
-
|
|
119
|
+
id: string;
|
|
121
120
|
data: BodyType<SettingDto>;
|
|
122
121
|
}, TContext> | undefined;
|
|
123
122
|
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
124
|
-
userId: string;
|
|
125
123
|
appShortName: string;
|
|
126
|
-
|
|
124
|
+
id: string;
|
|
127
125
|
data: BodyType<SettingDto>;
|
|
128
126
|
}, TContext>;
|
|
129
|
-
export type
|
|
130
|
-
export type
|
|
131
|
-
export type
|
|
127
|
+
export type UpdatePublicSettingByAppShortNameAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>>;
|
|
128
|
+
export type UpdatePublicSettingByAppShortNameAndIdMutationBody = BodyType<SettingDto>;
|
|
129
|
+
export type UpdatePublicSettingByAppShortNameAndIdMutationError = ErrorType<void>;
|
|
132
130
|
/**
|
|
133
|
-
* @summary
|
|
131
|
+
* @summary Update a public Setting for a given appShortName by id
|
|
134
132
|
*/
|
|
135
|
-
export declare const
|
|
133
|
+
export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
136
134
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
137
|
-
userId: string;
|
|
138
135
|
appShortName: string;
|
|
139
|
-
|
|
136
|
+
id: string;
|
|
140
137
|
data: BodyType<SettingDto>;
|
|
141
138
|
}, TContext> | undefined;
|
|
142
139
|
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
143
|
-
userId: string;
|
|
144
140
|
appShortName: string;
|
|
145
|
-
|
|
141
|
+
id: string;
|
|
146
142
|
data: BodyType<SettingDto>;
|
|
147
143
|
}, TContext>;
|
|
148
144
|
/**
|
|
149
|
-
* @summary Delete a Setting by
|
|
145
|
+
* @summary Delete a public Setting for a appShortName by id
|
|
150
146
|
*/
|
|
151
|
-
export declare const
|
|
152
|
-
export declare const
|
|
147
|
+
export declare const useDeletePublicSettingByIdHook: () => (appShortName: string, id: string) => Promise<SettingDto>;
|
|
148
|
+
export declare const useDeletePublicSettingByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
153
149
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
154
|
-
userId: string;
|
|
155
150
|
appShortName: string;
|
|
156
|
-
|
|
151
|
+
id: string;
|
|
157
152
|
}, TContext> | undefined;
|
|
158
153
|
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
159
|
-
userId: string;
|
|
160
154
|
appShortName: string;
|
|
161
|
-
|
|
155
|
+
id: string;
|
|
162
156
|
}, TContext>;
|
|
163
|
-
export type
|
|
164
|
-
export type
|
|
157
|
+
export type DeletePublicSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>>;
|
|
158
|
+
export type DeletePublicSettingByIdMutationError = ErrorType<void>;
|
|
165
159
|
/**
|
|
166
|
-
* @summary Delete a Setting by
|
|
160
|
+
* @summary Delete a public Setting for a appShortName by id
|
|
167
161
|
*/
|
|
168
|
-
export declare const
|
|
162
|
+
export declare const useDeletePublicSettingById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
169
163
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
170
|
-
userId: string;
|
|
171
164
|
appShortName: string;
|
|
172
|
-
|
|
165
|
+
id: string;
|
|
173
166
|
}, TContext> | undefined;
|
|
174
167
|
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
175
|
-
userId: string;
|
|
176
168
|
appShortName: string;
|
|
177
|
-
|
|
169
|
+
id: string;
|
|
178
170
|
}, TContext>;
|
|
179
171
|
/**
|
|
180
|
-
* @summary Get
|
|
172
|
+
* @summary Get all private Settings by userId
|
|
181
173
|
*/
|
|
182
|
-
export declare const
|
|
183
|
-
export declare const
|
|
184
|
-
export declare const
|
|
185
|
-
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
186
|
-
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
174
|
+
export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<SettingDto[]>;
|
|
175
|
+
export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
|
|
176
|
+
export declare const useGetSettingsByUserIdQueryOptions: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, options?: {
|
|
177
|
+
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
178
|
+
} | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
|
|
187
179
|
queryKey: QueryKey;
|
|
188
180
|
};
|
|
189
|
-
export type
|
|
190
|
-
export type
|
|
181
|
+
export type GetSettingsByUserIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>;
|
|
182
|
+
export type GetSettingsByUserIdQueryError = ErrorType<void>;
|
|
191
183
|
/**
|
|
192
|
-
* @summary Get
|
|
184
|
+
* @summary Get all private Settings by userId
|
|
193
185
|
*/
|
|
194
|
-
export declare const
|
|
195
|
-
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
186
|
+
export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, options?: {
|
|
187
|
+
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
196
188
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
197
189
|
queryKey: QueryKey;
|
|
198
190
|
};
|
|
199
191
|
/**
|
|
200
|
-
* @summary Create
|
|
192
|
+
* @summary Create a private Setting for a given user
|
|
201
193
|
*/
|
|
202
|
-
export declare const
|
|
203
|
-
export declare const
|
|
194
|
+
export declare const useCreateSettingByUserIdHook: () => (userId: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
195
|
+
export declare const useCreateSettingByUserIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
204
196
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
205
|
-
|
|
206
|
-
settingKey: string;
|
|
197
|
+
userId: string;
|
|
207
198
|
data: BodyType<SettingDto>;
|
|
208
199
|
}, TContext> | undefined;
|
|
209
200
|
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
210
|
-
|
|
211
|
-
settingKey: string;
|
|
201
|
+
userId: string;
|
|
212
202
|
data: BodyType<SettingDto>;
|
|
213
203
|
}, TContext>;
|
|
214
|
-
export type
|
|
215
|
-
export type
|
|
216
|
-
export type
|
|
204
|
+
export type CreateSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>>;
|
|
205
|
+
export type CreateSettingByUserIdMutationBody = BodyType<SettingDto>;
|
|
206
|
+
export type CreateSettingByUserIdMutationError = ErrorType<void>;
|
|
217
207
|
/**
|
|
218
|
-
* @summary Create
|
|
208
|
+
* @summary Create a private Setting for a given user
|
|
219
209
|
*/
|
|
220
|
-
export declare const
|
|
210
|
+
export declare const useCreateSettingByUserId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
221
211
|
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
222
|
-
|
|
223
|
-
settingKey: string;
|
|
212
|
+
userId: string;
|
|
224
213
|
data: BodyType<SettingDto>;
|
|
225
214
|
}, TContext> | undefined;
|
|
226
215
|
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
227
|
-
|
|
228
|
-
settingKey: string;
|
|
216
|
+
userId: string;
|
|
229
217
|
data: BodyType<SettingDto>;
|
|
230
218
|
}, TContext>;
|
|
231
219
|
/**
|
|
232
|
-
* @summary
|
|
233
|
-
*/
|
|
234
|
-
export declare const useDeleteAppShortNameAndSettingKeyHook: () => (appShortName: string, settingKey: string) => Promise<SettingDto>;
|
|
235
|
-
export declare const useDeleteAppShortNameAndSettingKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
236
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
237
|
-
appShortName: string;
|
|
238
|
-
settingKey: string;
|
|
239
|
-
}, TContext> | undefined;
|
|
240
|
-
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
241
|
-
appShortName: string;
|
|
242
|
-
settingKey: string;
|
|
243
|
-
}, TContext>;
|
|
244
|
-
export type DeleteAppShortNameAndSettingKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteAppShortNameAndSettingKeyHook>>>>;
|
|
245
|
-
export type DeleteAppShortNameAndSettingKeyMutationError = ErrorType<void>;
|
|
246
|
-
/**
|
|
247
|
-
* @summary Delete a Setting by appShortName/settingKey
|
|
248
|
-
*/
|
|
249
|
-
export declare const useDeleteAppShortNameAndSettingKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
250
|
-
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
251
|
-
appShortName: string;
|
|
252
|
-
settingKey: string;
|
|
253
|
-
}, TContext> | undefined;
|
|
254
|
-
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
255
|
-
appShortName: string;
|
|
256
|
-
settingKey: string;
|
|
257
|
-
}, TContext>;
|
|
258
|
-
/**
|
|
259
|
-
* @summary Get list of Settings by appShortName/userId
|
|
220
|
+
* @summary Get all public or mine Settings by appShortName
|
|
260
221
|
*/
|
|
261
|
-
export declare const
|
|
262
|
-
export declare const
|
|
263
|
-
export declare const
|
|
222
|
+
export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<SettingDto[]>;
|
|
223
|
+
export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
|
|
224
|
+
export declare const useGetSettingsByAppShortNameQueryOptions: <TData = SettingDto[], TError = import("../../use-client").HttpError>(appShortName: string, options?: {
|
|
264
225
|
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
265
226
|
} | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
|
|
266
227
|
queryKey: QueryKey;
|
|
267
228
|
};
|
|
268
|
-
export type
|
|
269
|
-
export type
|
|
229
|
+
export type GetSettingsByAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>;
|
|
230
|
+
export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
|
|
270
231
|
/**
|
|
271
|
-
* @summary Get
|
|
232
|
+
* @summary Get all public or mine Settings by appShortName
|
|
272
233
|
*/
|
|
273
|
-
export declare const
|
|
234
|
+
export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError = import("../../use-client").HttpError>(appShortName: string, options?: {
|
|
274
235
|
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
275
236
|
} | undefined) => UseQueryResult<TData, TError> & {
|
|
276
237
|
queryKey: QueryKey;
|
|
277
238
|
};
|
|
278
239
|
/**
|
|
279
|
-
* @summary
|
|
240
|
+
* @summary Create a public Setting for a given appShortName
|
|
280
241
|
*/
|
|
281
|
-
export declare const
|
|
282
|
-
export declare const
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
242
|
+
export declare const useCreatePublicSettingByUserIdHook: () => (appShortName: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
243
|
+
export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
244
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
245
|
+
appShortName: string;
|
|
246
|
+
data: BodyType<SettingDto>;
|
|
247
|
+
}, TContext> | undefined;
|
|
248
|
+
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
249
|
+
appShortName: string;
|
|
250
|
+
data: BodyType<SettingDto>;
|
|
251
|
+
}, TContext>;
|
|
252
|
+
export type CreatePublicSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>>;
|
|
253
|
+
export type CreatePublicSettingByUserIdMutationBody = BodyType<SettingDto>;
|
|
254
|
+
export type CreatePublicSettingByUserIdMutationError = ErrorType<void>;
|
|
290
255
|
/**
|
|
291
|
-
* @summary
|
|
256
|
+
* @summary Create a public Setting for a given appShortName
|
|
292
257
|
*/
|
|
293
|
-
export declare const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
};
|
|
258
|
+
export declare const useCreatePublicSettingByUserId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
259
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
260
|
+
appShortName: string;
|
|
261
|
+
data: BodyType<SettingDto>;
|
|
262
|
+
}, TContext> | undefined;
|
|
263
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
264
|
+
appShortName: string;
|
|
265
|
+
data: BodyType<SettingDto>;
|
|
266
|
+
}, TContext>;
|
|
298
267
|
export {};
|
package/dev-portal/package.json
CHANGED
|
@@ -59931,7 +59931,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
59931
59931
|
}
|
|
59932
59932
|
const CACHED_ITEMS_MAX = 300;
|
|
59933
59933
|
const setupEventSource = async (config2, subject, abort) => {
|
|
59934
|
-
|
|
59934
|
+
let token2 = await config2.options.accessTokenFactory();
|
|
59935
59935
|
fetchEventSource(config2.url, {
|
|
59936
59936
|
headers: {
|
|
59937
59937
|
Authorization: `Bearer ${token2}`
|
|
@@ -59942,6 +59942,8 @@ var __privateMethod = (obj, member, method) => {
|
|
|
59942
59942
|
const data = eventSourceMessage.data;
|
|
59943
59943
|
try {
|
|
59944
59944
|
const parsed = JSON.parse(data);
|
|
59945
|
+
if (parsed.subject === "keep-alive")
|
|
59946
|
+
return;
|
|
59945
59947
|
const values = subject.getValue();
|
|
59946
59948
|
subject.next(
|
|
59947
59949
|
[
|
|
@@ -59953,14 +59955,18 @@ var __privateMethod = (obj, member, method) => {
|
|
|
59953
59955
|
console.error("Failed to parse message: ", ex);
|
|
59954
59956
|
}
|
|
59955
59957
|
},
|
|
59956
|
-
|
|
59957
|
-
|
|
59958
|
-
throw new Error("Connection closed, reconnecting.");
|
|
59959
|
-
}
|
|
59958
|
+
onerror: (err) => {
|
|
59959
|
+
throw err;
|
|
59960
59960
|
}
|
|
59961
59961
|
}).then(() => {
|
|
59962
|
+
config2.options.accessTokenFactory().then((t2) => token2 = t2);
|
|
59963
|
+
if (config2.options.reconnect) {
|
|
59964
|
+
setTimeout(() => setupEventSource(config2, subject, abort), 200);
|
|
59965
|
+
}
|
|
59966
|
+
}).catch((err) => {
|
|
59967
|
+
config2.options.accessTokenFactory().then((t2) => token2 = t2);
|
|
59962
59968
|
if (config2.options.reconnect) {
|
|
59963
|
-
setTimeout(() => setupEventSource(config2, subject, abort),
|
|
59969
|
+
setTimeout(() => setupEventSource(config2, subject, abort), 200);
|
|
59964
59970
|
}
|
|
59965
59971
|
});
|
|
59966
59972
|
return {
|