@equinor/roma-framework 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cypress.mjs +3 -112
- package/dev-portal/lib/api/ms-graph/api/group/find-group.d.ts +2 -0
- package/dev-portal/lib/api/ms-graph/api/group/get-groups-by-ids.d.ts +2 -0
- package/dev-portal/lib/api/ms-graph/api/user/get-user-by-id.d.ts +9 -0
- package/dev-portal/lib/api/ms-graph/api/user/search.d.ts +4 -0
- package/dev-portal/lib/api/ms-graph/index.d.ts +4 -0
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +10 -10
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +8 -8
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +2 -2
- package/dev-portal/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +4 -4
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +14 -14
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +2 -2
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +8 -8
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +20 -20
- package/dev-portal/lib/app-provider.d.ts +7 -1
- package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +2 -2
- package/dev-portal/lib/dev-portal/PortalStyles.d.ts +291 -15
- package/dev-portal/lib/dev-portal/config/AppClient.d.ts +62 -2
- package/dev-portal/lib/eds-event-provider.d.ts +2 -1
- package/dev-portal/lib/make-component.d.ts +1 -1
- package/dev-portal/lib/test-utils/roma-cypress-wrapper.d.ts +2 -2
- package/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +4066 -3749
- package/lib/api/ms-graph/api/group/find-group.d.ts +2 -0
- package/lib/api/ms-graph/api/group/get-groups-by-ids.d.ts +2 -0
- package/lib/api/ms-graph/api/user/get-user-by-id.d.ts +9 -0
- package/lib/api/ms-graph/api/user/search.d.ts +4 -0
- package/lib/api/ms-graph/index.d.ts +4 -0
- package/lib/api/roma/api/app-controller/app-controller.d.ts +10 -10
- package/lib/api/roma/api/category-controller/category-controller.d.ts +8 -8
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +2 -2
- package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +4 -4
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +14 -14
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +2 -2
- package/lib/api/roma/api/service-controller/service-controller.d.ts +8 -8
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +20 -20
- package/lib/app-provider.d.ts +7 -1
- package/lib/dev-portal/ErrorViewer.d.ts +2 -2
- package/lib/dev-portal/PortalStyles.d.ts +291 -15
- package/lib/dev-portal/config/AppClient.d.ts +62 -2
- package/lib/eds-event-provider.d.ts +2 -1
- package/lib/make-component.d.ts +1 -1
- package/lib/test-utils/roma-cypress-wrapper.d.ts +2 -2
- package/package.json +1 -1
- package/roma-framework.mjs +338 -20
- package/{router-DDzmmkip.mjs → router-JkkLp8wN.mjs} +3 -3
package/cypress.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { FrameworkProvider } from "@equinor/fusion-framework-react";
|
|
3
3
|
import { ModuleProvider } from "@equinor/fusion-framework-react-module";
|
|
4
4
|
import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
|
|
5
|
-
import { _ as __extends, S as Subscription, m as __spreadArray, n as __read, p as arrRemove, q as isScheduler, O as Observable, h as getDefaultExportFromCjs, k as of, l as from, A as Action$2, B as BehaviorSubject, f as firstValueFrom, I as IntlProvider } from "./router-
|
|
6
|
-
import require$$0 from "react-dom";
|
|
5
|
+
import { _ as __extends, S as Subscription, m as __spreadArray, n as __read, p as arrRemove, q as isScheduler, O as Observable, h as getDefaultExportFromCjs, k as of, l as from, A as Action$2, B as BehaviorSubject, f as firstValueFrom, I as IntlProvider } from "./router-JkkLp8wN.mjs";
|
|
7
6
|
import * as React from "react";
|
|
7
|
+
import require$$0 from "react-dom";
|
|
8
8
|
var dateTimestampProvider = {
|
|
9
9
|
now: function() {
|
|
10
10
|
return Date.now();
|
|
@@ -277,13 +277,6 @@ const getContainerEl = () => {
|
|
|
277
277
|
}
|
|
278
278
|
throw Error(`No element found that matches selector ${ROOT_SELECTOR}. Please add a root element with data-cy-root attribute to your "component-index.html" file so that Cypress can attach your component to the DOM.`);
|
|
279
279
|
};
|
|
280
|
-
function checkForRemovedStyleOptions(mountingOptions) {
|
|
281
|
-
for (const key of ["cssFile", "cssFiles", "style", "styles", "stylesheet", "stylesheets"]) {
|
|
282
|
-
if (mountingOptions[key]) {
|
|
283
|
-
Cypress.utils.throwErrByPath("mount.removed_style_mounting_options", key);
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
280
|
function setupHooks(optionalCallback) {
|
|
288
281
|
if (Cypress.testingType !== "component") {
|
|
289
282
|
return;
|
|
@@ -306,10 +299,6 @@ const makeMountFn = (type, jsx2, options = {}, rerenderKey, internalMountOptions
|
|
|
306
299
|
if (!internalMountOptions) {
|
|
307
300
|
throw Error("internalMountOptions must be provided with `render` and `reactDom` parameters");
|
|
308
301
|
}
|
|
309
|
-
if (options.alias) {
|
|
310
|
-
Cypress.utils.throwErrByPath("mount.alias", options.alias);
|
|
311
|
-
}
|
|
312
|
-
checkForRemovedStyleOptions(options);
|
|
313
302
|
mountCleanup = internalMountOptions.cleanup;
|
|
314
303
|
return cy.then(() => {
|
|
315
304
|
var _a, _b, _c;
|
|
@@ -333,10 +322,7 @@ const makeMountFn = (type, jsx2, options = {}, rerenderKey, internalMountOptions
|
|
|
333
322
|
return cy.wrap(userComponent, { log: false }).then(() => {
|
|
334
323
|
return cy.wrap({
|
|
335
324
|
component: userComponent,
|
|
336
|
-
rerender: (newComponent) => makeMountFn("rerender", newComponent, options, key, internalMountOptions)
|
|
337
|
-
unmount: () => {
|
|
338
|
-
Cypress.utils.throwErrByPath("mount.unmount");
|
|
339
|
-
}
|
|
325
|
+
rerender: (newComponent) => makeMountFn("rerender", newComponent, options, key, internalMountOptions)
|
|
340
326
|
}, { log: false });
|
|
341
327
|
}).wait(0, { log: false }).then(() => {
|
|
342
328
|
if (options.log !== false) {
|
|
@@ -385,101 +371,6 @@ const preMountCleanup = () => {
|
|
|
385
371
|
mountCleanup === null || mountCleanup === void 0 ? void 0 : mountCleanup();
|
|
386
372
|
};
|
|
387
373
|
setupHooks(preMountCleanup);
|
|
388
|
-
const debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
|
389
|
-
};
|
|
390
|
-
var debug_1 = debug;
|
|
391
|
-
const MAX_LENGTH$1 = 256;
|
|
392
|
-
const MAX_SAFE_COMPONENT_LENGTH = 16;
|
|
393
|
-
const MAX_SAFE_BUILD_LENGTH = MAX_LENGTH$1 - 6;
|
|
394
|
-
var constants = {
|
|
395
|
-
MAX_LENGTH: MAX_LENGTH$1,
|
|
396
|
-
MAX_SAFE_COMPONENT_LENGTH,
|
|
397
|
-
MAX_SAFE_BUILD_LENGTH
|
|
398
|
-
};
|
|
399
|
-
function createCommonjsModule(fn) {
|
|
400
|
-
var module = { exports: {} };
|
|
401
|
-
return fn(module, module.exports), module.exports;
|
|
402
|
-
}
|
|
403
|
-
createCommonjsModule(function(module, exports) {
|
|
404
|
-
const {
|
|
405
|
-
MAX_SAFE_COMPONENT_LENGTH: MAX_SAFE_COMPONENT_LENGTH2,
|
|
406
|
-
MAX_SAFE_BUILD_LENGTH: MAX_SAFE_BUILD_LENGTH2,
|
|
407
|
-
MAX_LENGTH
|
|
408
|
-
} = constants;
|
|
409
|
-
exports = module.exports = {};
|
|
410
|
-
const re = exports.re = [];
|
|
411
|
-
const safeRe = exports.safeRe = [];
|
|
412
|
-
const src = exports.src = [];
|
|
413
|
-
const t = exports.t = {};
|
|
414
|
-
let R = 0;
|
|
415
|
-
const LETTERDASHNUMBER = "[a-zA-Z0-9-]";
|
|
416
|
-
const safeRegexReplacements = [
|
|
417
|
-
["\\s", 1],
|
|
418
|
-
["\\d", MAX_LENGTH],
|
|
419
|
-
[LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH2]
|
|
420
|
-
];
|
|
421
|
-
const makeSafeRegex = (value) => {
|
|
422
|
-
for (const [token, max] of safeRegexReplacements) {
|
|
423
|
-
value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
|
424
|
-
}
|
|
425
|
-
return value;
|
|
426
|
-
};
|
|
427
|
-
const createToken = (name, value, isGlobal) => {
|
|
428
|
-
const safe = makeSafeRegex(value);
|
|
429
|
-
const index = R++;
|
|
430
|
-
debug_1(name, index, value);
|
|
431
|
-
t[name] = index;
|
|
432
|
-
src[index] = value;
|
|
433
|
-
re[index] = new RegExp(value, isGlobal ? "g" : void 0);
|
|
434
|
-
safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
|
435
|
-
};
|
|
436
|
-
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
|
437
|
-
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
|
438
|
-
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
|
439
|
-
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
|
440
|
-
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
|
441
|
-
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
442
|
-
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
|
|
443
|
-
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
|
444
|
-
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
|
445
|
-
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
|
446
|
-
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
|
447
|
-
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
|
448
|
-
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
|
449
|
-
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
|
450
|
-
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
|
451
|
-
createToken("GTLT", "((?:<|>)?=?)");
|
|
452
|
-
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
|
453
|
-
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
|
454
|
-
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
|
455
|
-
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
|
456
|
-
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
|
457
|
-
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
|
458
|
-
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH2}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH2}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH2}}))?`);
|
|
459
|
-
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
|
460
|
-
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
|
461
|
-
createToken("COERCERTL", src[t.COERCE], true);
|
|
462
|
-
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
|
463
|
-
createToken("LONETILDE", "(?:~>?)");
|
|
464
|
-
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
|
465
|
-
exports.tildeTrimReplace = "$1~";
|
|
466
|
-
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
|
467
|
-
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
468
|
-
createToken("LONECARET", "(?:\\^)");
|
|
469
|
-
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
|
470
|
-
exports.caretTrimReplace = "$1^";
|
|
471
|
-
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
|
472
|
-
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
|
473
|
-
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
|
474
|
-
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
|
475
|
-
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
|
476
|
-
exports.comparatorTrimReplace = "$1$2$3";
|
|
477
|
-
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
|
478
|
-
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
|
479
|
-
createToken("STAR", "(<|>)?=?\\s*\\*");
|
|
480
|
-
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
|
481
|
-
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
482
|
-
});
|
|
483
374
|
let root;
|
|
484
375
|
const cleanup = () => {
|
|
485
376
|
if (root) {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IHttpClient } from '@equinor/fusion-framework-react-module-http';
|
|
2
|
+
export declare const findUserById: <T extends string>(client: IHttpClient, id: string, fields: ReadonlyArray<T>) => Promise<{
|
|
3
|
+
displayName: string;
|
|
4
|
+
mail: string;
|
|
5
|
+
}>;
|
|
6
|
+
export declare const useFindUserById: (id: string, fields?: readonly ["displayName", "mail", "givenName"]) => import('@tanstack/react-query').UseQueryResult<{
|
|
7
|
+
displayName: string;
|
|
8
|
+
mail: string;
|
|
9
|
+
}, Error>;
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
* API Methods
|
|
3
3
|
*/
|
|
4
4
|
export * from './api/group/find-group-members';
|
|
5
|
+
export * from './api/group/find-group';
|
|
6
|
+
export * from './api/group/get-groups-by-ids';
|
|
5
7
|
export * from './api/user/find-user-by-shortname';
|
|
6
8
|
export * from './api/user/find-users-by-mail';
|
|
9
|
+
export * from './api/user/search';
|
|
10
|
+
export * from './api/user/get-user-by-id';
|
|
7
11
|
/**
|
|
8
12
|
* API Models
|
|
9
13
|
*/
|
|
@@ -7,7 +7,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
|
7
7
|
* @summary Upload an application bundle file
|
|
8
8
|
*/
|
|
9
9
|
export declare const useUploadBundleHook: () => (key: string, uploadBundleBody: BodyType<UploadBundleBody>) => Promise<void>;
|
|
10
|
-
export declare const useUploadBundleMutationOptions: <TError =
|
|
10
|
+
export declare const useUploadBundleMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
11
11
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>, TError, {
|
|
12
12
|
key: string;
|
|
13
13
|
data: BodyType<UploadBundleBody>;
|
|
@@ -22,7 +22,7 @@ export type UploadBundleMutationError = ErrorType<unknown>;
|
|
|
22
22
|
/**
|
|
23
23
|
* @summary Upload an application bundle file
|
|
24
24
|
*/
|
|
25
|
-
export declare const useUploadBundle: <TError =
|
|
25
|
+
export declare const useUploadBundle: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
26
26
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>, TError, {
|
|
27
27
|
key: string;
|
|
28
28
|
data: BodyType<UploadBundleBody>;
|
|
@@ -36,7 +36,7 @@ export declare const useUploadBundle: <TError = import('../../use-client').HttpE
|
|
|
36
36
|
*/
|
|
37
37
|
export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<GetAllApps200>;
|
|
38
38
|
export declare const getGetAllAppsQueryKey: () => readonly ["/api/apps"];
|
|
39
|
-
export declare const useGetAllAppsQueryOptions: <TData =
|
|
39
|
+
export declare const useGetAllAppsQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError = ErrorType<void>>(options?: {
|
|
40
40
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData>>;
|
|
41
41
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData> & {
|
|
42
42
|
queryKey: QueryKey;
|
|
@@ -46,7 +46,7 @@ export type GetAllAppsQueryError = ErrorType<void>;
|
|
|
46
46
|
/**
|
|
47
47
|
* @summary List apps
|
|
48
48
|
*/
|
|
49
|
-
export declare const useGetAllApps: <TData =
|
|
49
|
+
export declare const useGetAllApps: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError = ErrorType<void>>(options?: {
|
|
50
50
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>, TError, TData>>;
|
|
51
51
|
}) => UseQueryResult<TData, TError> & {
|
|
52
52
|
queryKey: QueryKey;
|
|
@@ -55,7 +55,7 @@ export declare const useGetAllApps: <TData = GetAllApps200, TError = import('../
|
|
|
55
55
|
* @summary Create or update App
|
|
56
56
|
*/
|
|
57
57
|
export declare const useCreateOrUpdateAppHook: () => (appDto: BodyType<AppDto>) => Promise<AppDto>;
|
|
58
|
-
export declare const useCreateOrUpdateAppMutationOptions: <TError =
|
|
58
|
+
export declare const useCreateOrUpdateAppMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
59
59
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>, TError, {
|
|
60
60
|
data: BodyType<AppDto>;
|
|
61
61
|
}, TContext>;
|
|
@@ -68,7 +68,7 @@ export type CreateOrUpdateAppMutationError = ErrorType<void>;
|
|
|
68
68
|
/**
|
|
69
69
|
* @summary Create or update App
|
|
70
70
|
*/
|
|
71
|
-
export declare const useCreateOrUpdateApp: <TError =
|
|
71
|
+
export declare const useCreateOrUpdateApp: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
72
72
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>, TError, {
|
|
73
73
|
data: BodyType<AppDto>;
|
|
74
74
|
}, TContext>;
|
|
@@ -80,7 +80,7 @@ export declare const useCreateOrUpdateApp: <TError = import('../../use-client').
|
|
|
80
80
|
*/
|
|
81
81
|
export declare const useGetAppByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<AppDto>;
|
|
82
82
|
export declare const getGetAppByKeyQueryKey: (key: string) => readonly [`/api/apps/key/${string}`];
|
|
83
|
-
export declare const useGetAppByKeyQueryOptions: <TData =
|
|
83
|
+
export declare const useGetAppByKeyQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
|
|
84
84
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData>>;
|
|
85
85
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData> & {
|
|
86
86
|
queryKey: QueryKey;
|
|
@@ -90,7 +90,7 @@ export type GetAppByKeyQueryError = ErrorType<void>;
|
|
|
90
90
|
/**
|
|
91
91
|
* @summary Get app by key
|
|
92
92
|
*/
|
|
93
|
-
export declare const useGetAppByKey: <TData =
|
|
93
|
+
export declare const useGetAppByKey: <TData = Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
|
|
94
94
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>, TError, TData>>;
|
|
95
95
|
}) => UseQueryResult<TData, TError> & {
|
|
96
96
|
queryKey: QueryKey;
|
|
@@ -99,7 +99,7 @@ export declare const useGetAppByKey: <TData = AppDto, TError = import('../../use
|
|
|
99
99
|
* @summary Delete app by key
|
|
100
100
|
*/
|
|
101
101
|
export declare const useDeleteAppByKeyHook: () => (key: string) => Promise<void>;
|
|
102
|
-
export declare const useDeleteAppByKeyMutationOptions: <TError =
|
|
102
|
+
export declare const useDeleteAppByKeyMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
103
103
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>, TError, {
|
|
104
104
|
key: string;
|
|
105
105
|
}, TContext>;
|
|
@@ -111,7 +111,7 @@ export type DeleteAppByKeyMutationError = ErrorType<unknown>;
|
|
|
111
111
|
/**
|
|
112
112
|
* @summary Delete app by key
|
|
113
113
|
*/
|
|
114
|
-
export declare const useDeleteAppByKey: <TError =
|
|
114
|
+
export declare const useDeleteAppByKey: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
115
115
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>, TError, {
|
|
116
116
|
key: string;
|
|
117
117
|
}, TContext>;
|
|
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<GetAllCategories200>;
|
|
10
10
|
export declare const getGetAllCategoriesQueryKey: () => readonly ["/api/apps/categories"];
|
|
11
|
-
export declare const useGetAllCategoriesQueryOptions: <TData =
|
|
11
|
+
export declare const useGetAllCategoriesQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError = ErrorType<void>>(options?: {
|
|
12
12
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData>>;
|
|
13
13
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData> & {
|
|
14
14
|
queryKey: QueryKey;
|
|
@@ -18,7 +18,7 @@ export type GetAllCategoriesQueryError = ErrorType<void>;
|
|
|
18
18
|
/**
|
|
19
19
|
* @summary List categories
|
|
20
20
|
*/
|
|
21
|
-
export declare const useGetAllCategories: <TData =
|
|
21
|
+
export declare const useGetAllCategories: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError = ErrorType<void>>(options?: {
|
|
22
22
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>, TError, TData>>;
|
|
23
23
|
}) => UseQueryResult<TData, TError> & {
|
|
24
24
|
queryKey: QueryKey;
|
|
@@ -27,7 +27,7 @@ export declare const useGetAllCategories: <TData = GetAllCategories200, TError =
|
|
|
27
27
|
* @summary Create or update category
|
|
28
28
|
*/
|
|
29
29
|
export declare const useCreateOrUpdateCategoryHook: () => (categoryDto: BodyType<CategoryDto>) => Promise<CategoryDto>;
|
|
30
|
-
export declare const useCreateOrUpdateCategoryMutationOptions: <TError =
|
|
30
|
+
export declare const useCreateOrUpdateCategoryMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
31
31
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>, TError, {
|
|
32
32
|
data: BodyType<CategoryDto>;
|
|
33
33
|
}, TContext>;
|
|
@@ -40,7 +40,7 @@ export type CreateOrUpdateCategoryMutationError = ErrorType<void>;
|
|
|
40
40
|
/**
|
|
41
41
|
* @summary Create or update category
|
|
42
42
|
*/
|
|
43
|
-
export declare const useCreateOrUpdateCategory: <TError =
|
|
43
|
+
export declare const useCreateOrUpdateCategory: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
44
44
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>, TError, {
|
|
45
45
|
data: BodyType<CategoryDto>;
|
|
46
46
|
}, TContext>;
|
|
@@ -52,7 +52,7 @@ export declare const useCreateOrUpdateCategory: <TError = import('../../use-clie
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const useGetCategoryByIdHook: () => (id: string, signal?: AbortSignal) => Promise<CategoryDto>;
|
|
54
54
|
export declare const getGetCategoryByIdQueryKey: (id: string) => readonly [`/api/apps/categories/id/${string}`];
|
|
55
|
-
export declare const useGetCategoryByIdQueryOptions: <TData =
|
|
55
|
+
export declare const useGetCategoryByIdQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
|
|
56
56
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData>>;
|
|
57
57
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData> & {
|
|
58
58
|
queryKey: QueryKey;
|
|
@@ -62,7 +62,7 @@ export type GetCategoryByIdQueryError = ErrorType<void>;
|
|
|
62
62
|
/**
|
|
63
63
|
* @summary Get category by id
|
|
64
64
|
*/
|
|
65
|
-
export declare const useGetCategoryById: <TData =
|
|
65
|
+
export declare const useGetCategoryById: <TData = Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
|
|
66
66
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>, TError, TData>>;
|
|
67
67
|
}) => UseQueryResult<TData, TError> & {
|
|
68
68
|
queryKey: QueryKey;
|
|
@@ -71,7 +71,7 @@ export declare const useGetCategoryById: <TData = CategoryDto, TError = import('
|
|
|
71
71
|
* @summary Delete category by id
|
|
72
72
|
*/
|
|
73
73
|
export declare const useDeleteCategoryByIdHook: () => (id: string) => Promise<void>;
|
|
74
|
-
export declare const useDeleteCategoryByIdMutationOptions: <TError =
|
|
74
|
+
export declare const useDeleteCategoryByIdMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
75
75
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>, TError, {
|
|
76
76
|
id: string;
|
|
77
77
|
}, TContext>;
|
|
@@ -83,7 +83,7 @@ export type DeleteCategoryByIdMutationError = ErrorType<unknown>;
|
|
|
83
83
|
/**
|
|
84
84
|
* @summary Delete category by id
|
|
85
85
|
*/
|
|
86
|
-
export declare const useDeleteCategoryById: <TError =
|
|
86
|
+
export declare const useDeleteCategoryById: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
87
87
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>, TError, {
|
|
88
88
|
id: string;
|
|
89
89
|
}, TContext>;
|
|
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const useGetCurrentEnvironmentHook: () => (signal?: AbortSignal) => Promise<EnvironmentDto>;
|
|
10
10
|
export declare const getGetCurrentEnvironmentQueryKey: () => readonly ["/_discovery/environments/current"];
|
|
11
|
-
export declare const useGetCurrentEnvironmentQueryOptions: <TData =
|
|
11
|
+
export declare const useGetCurrentEnvironmentQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError = ErrorType<void>>(options?: {
|
|
12
12
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData>>;
|
|
13
13
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData> & {
|
|
14
14
|
queryKey: QueryKey;
|
|
@@ -18,7 +18,7 @@ export type GetCurrentEnvironmentQueryError = ErrorType<void>;
|
|
|
18
18
|
/**
|
|
19
19
|
* @summary Get current environment
|
|
20
20
|
*/
|
|
21
|
-
export declare const useGetCurrentEnvironment: <TData =
|
|
21
|
+
export declare const useGetCurrentEnvironment: <TData = Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError = ErrorType<void>>(options?: {
|
|
22
22
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>, TError, TData>>;
|
|
23
23
|
}) => UseQueryResult<TData, TError> & {
|
|
24
24
|
queryKey: QueryKey;
|
|
@@ -7,7 +7,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
|
7
7
|
* @summary Create feedback
|
|
8
8
|
*/
|
|
9
9
|
export declare const useCreateFeedbackHook: () => (feedbackDto: BodyType<FeedbackDto>) => Promise<FeedbackResponseDto>;
|
|
10
|
-
export declare const useCreateFeedbackMutationOptions: <TError =
|
|
10
|
+
export declare const useCreateFeedbackMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
11
11
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>, TError, {
|
|
12
12
|
data: BodyType<FeedbackDto>;
|
|
13
13
|
}, TContext>;
|
|
@@ -20,7 +20,7 @@ export type CreateFeedbackMutationError = ErrorType<void>;
|
|
|
20
20
|
/**
|
|
21
21
|
* @summary Create feedback
|
|
22
22
|
*/
|
|
23
|
-
export declare const useCreateFeedback: <TError =
|
|
23
|
+
export declare const useCreateFeedback: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
24
24
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>, TError, {
|
|
25
25
|
data: BodyType<FeedbackDto>;
|
|
26
26
|
}, TContext>;
|
|
@@ -32,7 +32,7 @@ export declare const useCreateFeedback: <TError = import('../../use-client').Htt
|
|
|
32
32
|
*/
|
|
33
33
|
export declare const useListFeedbacksByCurrentUserHook: () => (params?: ListFeedbacksByCurrentUserParams, signal?: AbortSignal) => Promise<FeedbackPage>;
|
|
34
34
|
export declare const getListFeedbacksByCurrentUserQueryKey: (params?: ListFeedbacksByCurrentUserParams) => readonly ["/api/feedbacks/mine", ...ListFeedbacksByCurrentUserParams[]];
|
|
35
|
-
export declare const useListFeedbacksByCurrentUserQueryOptions: <TData =
|
|
35
|
+
export declare const useListFeedbacksByCurrentUserQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError = ErrorType<void>>(params?: ListFeedbacksByCurrentUserParams, options?: {
|
|
36
36
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData>>;
|
|
37
37
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData> & {
|
|
38
38
|
queryKey: QueryKey;
|
|
@@ -42,7 +42,7 @@ export type ListFeedbacksByCurrentUserQueryError = ErrorType<void>;
|
|
|
42
42
|
/**
|
|
43
43
|
* @summary List feedbacks submitted by the current user
|
|
44
44
|
*/
|
|
45
|
-
export declare const useListFeedbacksByCurrentUser: <TData =
|
|
45
|
+
export declare const useListFeedbacksByCurrentUser: <TData = Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError = ErrorType<void>>(params?: ListFeedbacksByCurrentUserParams, options?: {
|
|
46
46
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useListFeedbacksByCurrentUserHook>>>, TError, TData>>;
|
|
47
47
|
}) => UseQueryResult<TData, TError> & {
|
|
48
48
|
queryKey: QueryKey;
|
package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const useGetRomaConfigurationByIdHook: () => (id: string, signal?: AbortSignal) => Promise<RomaConfigurationDto>;
|
|
10
10
|
export declare const getGetRomaConfigurationByIdQueryKey: (id: string) => readonly [`/api/configurations/id/${string}`];
|
|
11
|
-
export declare const useGetRomaConfigurationByIdQueryOptions: <TData =
|
|
11
|
+
export declare const useGetRomaConfigurationByIdQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
|
|
12
12
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData>>;
|
|
13
13
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData> & {
|
|
14
14
|
queryKey: QueryKey;
|
|
@@ -18,7 +18,7 @@ export type GetRomaConfigurationByIdQueryError = ErrorType<void>;
|
|
|
18
18
|
/**
|
|
19
19
|
* @summary Get roma configuration by id
|
|
20
20
|
*/
|
|
21
|
-
export declare const useGetRomaConfigurationById: <TData =
|
|
21
|
+
export declare const useGetRomaConfigurationById: <TData = Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError = ErrorType<void>>(id: string, options?: {
|
|
22
22
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>, TError, TData>>;
|
|
23
23
|
}) => UseQueryResult<TData, TError> & {
|
|
24
24
|
queryKey: QueryKey;
|
|
@@ -27,7 +27,7 @@ export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto,
|
|
|
27
27
|
* @summary Update a roma configuration
|
|
28
28
|
*/
|
|
29
29
|
export declare const useUpdateRomaConfigurationHook: () => (id: string, romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
|
|
30
|
-
export declare const useUpdateRomaConfigurationMutationOptions: <TError =
|
|
30
|
+
export declare const useUpdateRomaConfigurationMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
31
31
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>, TError, {
|
|
32
32
|
id: string;
|
|
33
33
|
data: BodyType<RomaConfigurationDto>;
|
|
@@ -42,7 +42,7 @@ export type UpdateRomaConfigurationMutationError = ErrorType<void>;
|
|
|
42
42
|
/**
|
|
43
43
|
* @summary Update a roma configuration
|
|
44
44
|
*/
|
|
45
|
-
export declare const useUpdateRomaConfiguration: <TError =
|
|
45
|
+
export declare const useUpdateRomaConfiguration: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
46
46
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>, TError, {
|
|
47
47
|
id: string;
|
|
48
48
|
data: BodyType<RomaConfigurationDto>;
|
|
@@ -55,7 +55,7 @@ export declare const useUpdateRomaConfiguration: <TError = import('../../use-cli
|
|
|
55
55
|
* @summary Delete a roma configuration by id
|
|
56
56
|
*/
|
|
57
57
|
export declare const useDeleteRomaConfigurationHook: () => (id: string) => Promise<SettingDto>;
|
|
58
|
-
export declare const useDeleteRomaConfigurationMutationOptions: <TError =
|
|
58
|
+
export declare const useDeleteRomaConfigurationMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
59
59
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>, TError, {
|
|
60
60
|
id: string;
|
|
61
61
|
}, TContext>;
|
|
@@ -67,7 +67,7 @@ export type DeleteRomaConfigurationMutationError = ErrorType<void>;
|
|
|
67
67
|
/**
|
|
68
68
|
* @summary Delete a roma configuration by id
|
|
69
69
|
*/
|
|
70
|
-
export declare const useDeleteRomaConfiguration: <TError =
|
|
70
|
+
export declare const useDeleteRomaConfiguration: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
71
71
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>, TError, {
|
|
72
72
|
id: string;
|
|
73
73
|
}, TContext>;
|
|
@@ -79,7 +79,7 @@ export declare const useDeleteRomaConfiguration: <TError = import('../../use-cli
|
|
|
79
79
|
*/
|
|
80
80
|
export declare const useGetAllRomaConfigurationHook: () => (signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
|
|
81
81
|
export declare const getGetAllRomaConfigurationQueryKey: () => readonly ["/api/configurations"];
|
|
82
|
-
export declare const useGetAllRomaConfigurationQueryOptions: <TData =
|
|
82
|
+
export declare const useGetAllRomaConfigurationQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError = ErrorType<void>>(options?: {
|
|
83
83
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData>>;
|
|
84
84
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData> & {
|
|
85
85
|
queryKey: QueryKey;
|
|
@@ -89,7 +89,7 @@ export type GetAllRomaConfigurationQueryError = ErrorType<void>;
|
|
|
89
89
|
/**
|
|
90
90
|
* @summary Get all roma configurations
|
|
91
91
|
*/
|
|
92
|
-
export declare const useGetAllRomaConfiguration: <TData =
|
|
92
|
+
export declare const useGetAllRomaConfiguration: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError = ErrorType<void>>(options?: {
|
|
93
93
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>, TError, TData>>;
|
|
94
94
|
}) => UseQueryResult<TData, TError> & {
|
|
95
95
|
queryKey: QueryKey;
|
|
@@ -98,7 +98,7 @@ export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[]
|
|
|
98
98
|
* @summary Create a new roma configuration
|
|
99
99
|
*/
|
|
100
100
|
export declare const useAddRomaConfigurationHook: () => (romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
|
|
101
|
-
export declare const useAddRomaConfigurationMutationOptions: <TError =
|
|
101
|
+
export declare const useAddRomaConfigurationMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
102
102
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>, TError, {
|
|
103
103
|
data: BodyType<RomaConfigurationDto>;
|
|
104
104
|
}, TContext>;
|
|
@@ -111,7 +111,7 @@ export type AddRomaConfigurationMutationError = ErrorType<void>;
|
|
|
111
111
|
/**
|
|
112
112
|
* @summary Create a new roma configuration
|
|
113
113
|
*/
|
|
114
|
-
export declare const useAddRomaConfiguration: <TError =
|
|
114
|
+
export declare const useAddRomaConfiguration: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
115
115
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>, TError, {
|
|
116
116
|
data: BodyType<RomaConfigurationDto>;
|
|
117
117
|
}, TContext>;
|
|
@@ -123,7 +123,7 @@ export declare const useAddRomaConfiguration: <TError = import('../../use-client
|
|
|
123
123
|
*/
|
|
124
124
|
export declare const useGetAllRomaConfigurationTypesHook: () => (signal?: AbortSignal) => Promise<"servicebus"[]>;
|
|
125
125
|
export declare const getGetAllRomaConfigurationTypesQueryKey: () => readonly ["/api/configurations/types"];
|
|
126
|
-
export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData =
|
|
126
|
+
export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError = ErrorType<void>>(options?: {
|
|
127
127
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData>>;
|
|
128
128
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData> & {
|
|
129
129
|
queryKey: QueryKey;
|
|
@@ -133,7 +133,7 @@ export type GetAllRomaConfigurationTypesQueryError = ErrorType<void>;
|
|
|
133
133
|
/**
|
|
134
134
|
* @summary Get valid roma configuration types
|
|
135
135
|
*/
|
|
136
|
-
export declare const useGetAllRomaConfigurationTypes: <TData =
|
|
136
|
+
export declare const useGetAllRomaConfigurationTypes: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError = ErrorType<void>>(options?: {
|
|
137
137
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>, TError, TData>>;
|
|
138
138
|
}) => UseQueryResult<TData, TError> & {
|
|
139
139
|
queryKey: QueryKey;
|
|
@@ -143,7 +143,7 @@ export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], T
|
|
|
143
143
|
*/
|
|
144
144
|
export declare const useGetAllRomaConfigurationByTypeHook: () => (type: string, signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
|
|
145
145
|
export declare const getGetAllRomaConfigurationByTypeQueryKey: (type: string) => readonly [`/api/configurations/types/type/${string}`];
|
|
146
|
-
export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData =
|
|
146
|
+
export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError = ErrorType<void>>(type: string, options?: {
|
|
147
147
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData>>;
|
|
148
148
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData> & {
|
|
149
149
|
queryKey: QueryKey;
|
|
@@ -153,7 +153,7 @@ export type GetAllRomaConfigurationByTypeQueryError = ErrorType<void>;
|
|
|
153
153
|
/**
|
|
154
154
|
* @summary Get all roma configurations for given type
|
|
155
155
|
*/
|
|
156
|
-
export declare const useGetAllRomaConfigurationByType: <TData =
|
|
156
|
+
export declare const useGetAllRomaConfigurationByType: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError = ErrorType<void>>(type: string, options?: {
|
|
157
157
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>, TError, TData>>;
|
|
158
158
|
}) => UseQueryResult<TData, TError> & {
|
|
159
159
|
queryKey: QueryKey;
|
package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ type AwaitedInput<T> = PromiseLike<T> | T;
|
|
|
5
5
|
type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
6
6
|
export declare const useStreamEventsHook: () => (signal?: AbortSignal) => Promise<ServerSentEventStandardEventDto[]>;
|
|
7
7
|
export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
|
|
8
|
-
export declare const useStreamEventsQueryOptions: <TData =
|
|
8
|
+
export declare const useStreamEventsQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options?: {
|
|
9
9
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
|
|
10
10
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData> & {
|
|
11
11
|
queryKey: QueryKey;
|
|
12
12
|
};
|
|
13
13
|
export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
|
|
14
14
|
export type StreamEventsQueryError = ErrorType<unknown>;
|
|
15
|
-
export declare const useStreamEvents: <TData =
|
|
15
|
+
export declare const useStreamEvents: <TData = Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError = ErrorType<unknown>>(options?: {
|
|
16
16
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>, TError, TData>>;
|
|
17
17
|
}) => UseQueryResult<TData, TError> & {
|
|
18
18
|
queryKey: QueryKey;
|
|
@@ -8,7 +8,7 @@ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<GetAllServices200>;
|
|
10
10
|
export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
|
|
11
|
-
export declare const useGetAllServicesQueryOptions: <TData =
|
|
11
|
+
export declare const useGetAllServicesQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options?: {
|
|
12
12
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
|
|
13
13
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData> & {
|
|
14
14
|
queryKey: QueryKey;
|
|
@@ -18,7 +18,7 @@ export type GetAllServicesQueryError = ErrorType<void>;
|
|
|
18
18
|
/**
|
|
19
19
|
* @summary List services for current environment
|
|
20
20
|
*/
|
|
21
|
-
export declare const useGetAllServices: <TData =
|
|
21
|
+
export declare const useGetAllServices: <TData = Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError = ErrorType<void>>(options?: {
|
|
22
22
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>, TError, TData>>;
|
|
23
23
|
}) => UseQueryResult<TData, TError> & {
|
|
24
24
|
queryKey: QueryKey;
|
|
@@ -27,7 +27,7 @@ export declare const useGetAllServices: <TData = GetAllServices200, TError = imp
|
|
|
27
27
|
* @summary Create or update service for current environment
|
|
28
28
|
*/
|
|
29
29
|
export declare const useCreateOrUpdateServiceHook: () => (serviceDto: BodyType<ServiceDto>) => Promise<ServiceDto>;
|
|
30
|
-
export declare const useCreateOrUpdateServiceMutationOptions: <TError =
|
|
30
|
+
export declare const useCreateOrUpdateServiceMutationOptions: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
31
31
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
32
32
|
data: BodyType<ServiceDto>;
|
|
33
33
|
}, TContext>;
|
|
@@ -40,7 +40,7 @@ export type CreateOrUpdateServiceMutationError = ErrorType<void>;
|
|
|
40
40
|
/**
|
|
41
41
|
* @summary Create or update service for current environment
|
|
42
42
|
*/
|
|
43
|
-
export declare const useCreateOrUpdateService: <TError =
|
|
43
|
+
export declare const useCreateOrUpdateService: <TError = ErrorType<void>, TContext = unknown>(options?: {
|
|
44
44
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateServiceHook>>>, TError, {
|
|
45
45
|
data: BodyType<ServiceDto>;
|
|
46
46
|
}, TContext>;
|
|
@@ -52,7 +52,7 @@ export declare const useCreateOrUpdateService: <TError = import('../../use-clien
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const useGetServiceByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<ServiceDto>;
|
|
54
54
|
export declare const getGetServiceByKeyQueryKey: (key: string) => readonly [`/api/apps/services/key/${string}`];
|
|
55
|
-
export declare const useGetServiceByKeyQueryOptions: <TData =
|
|
55
|
+
export declare const useGetServiceByKeyQueryOptions: <TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
|
|
56
56
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
|
|
57
57
|
}) => UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData> & {
|
|
58
58
|
queryKey: QueryKey;
|
|
@@ -62,7 +62,7 @@ export type GetServiceByKeyQueryError = ErrorType<void>;
|
|
|
62
62
|
/**
|
|
63
63
|
* @summary Get service by key
|
|
64
64
|
*/
|
|
65
|
-
export declare const useGetServiceByKey: <TData =
|
|
65
|
+
export declare const useGetServiceByKey: <TData = Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError = ErrorType<void>>(key: string, options?: {
|
|
66
66
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<ReturnType<typeof useGetServiceByKeyHook>>>, TError, TData>>;
|
|
67
67
|
}) => UseQueryResult<TData, TError> & {
|
|
68
68
|
queryKey: QueryKey;
|
|
@@ -71,7 +71,7 @@ export declare const useGetServiceByKey: <TData = ServiceDto, TError = import('.
|
|
|
71
71
|
* @summary Delete service by key
|
|
72
72
|
*/
|
|
73
73
|
export declare const useDeleteServiceByKeyHook: () => (key: string) => Promise<void>;
|
|
74
|
-
export declare const useDeleteServiceByKeyMutationOptions: <TError =
|
|
74
|
+
export declare const useDeleteServiceByKeyMutationOptions: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
75
75
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
76
76
|
key: string;
|
|
77
77
|
}, TContext>;
|
|
@@ -83,7 +83,7 @@ export type DeleteServiceByKeyMutationError = ErrorType<unknown>;
|
|
|
83
83
|
/**
|
|
84
84
|
* @summary Delete service by key
|
|
85
85
|
*/
|
|
86
|
-
export declare const useDeleteServiceByKey: <TError =
|
|
86
|
+
export declare const useDeleteServiceByKey: <TError = ErrorType<unknown>, TContext = unknown>(options?: {
|
|
87
87
|
mutation?: UseMutationOptions<Awaited<ReturnType<ReturnType<typeof useDeleteServiceByKeyHook>>>, TError, {
|
|
88
88
|
key: string;
|
|
89
89
|
}, TContext>;
|