@equinor/roma-framework 5.0.1 → 6.0.1-beta.1

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.
Files changed (121) hide show
  1. package/_commonjsHelpers-CIHTj2Un.mjs +6997 -0
  2. package/cypress.mjs +31957 -49
  3. package/dev-portal/index.html +2 -1
  4. package/dev-portal/lib/api/roma/api/alarm-controller/alarm-controller.d.ts +97 -0
  5. package/dev-portal/lib/api/roma/api/alarm-group-controller/alarm-group-controller.d.ts +186 -0
  6. package/dev-portal/lib/api/roma/api/alarm-sse-controller/alarm-sse-controller.d.ts +36 -0
  7. package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +65 -31
  8. package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +57 -26
  9. package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +23 -10
  10. package/dev-portal/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +29 -13
  11. package/dev-portal/lib/api/roma/api/health-controller/health-controller.d.ts +38 -0
  12. package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +99 -41
  13. package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +23 -7
  14. package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +57 -26
  15. package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +114 -47
  16. package/dev-portal/lib/api/roma/index.d.ts +4 -0
  17. package/dev-portal/lib/api/roma/model/adminDto.d.ts +6 -0
  18. package/dev-portal/lib/api/roma/model/adminDtoAdminType.d.ts +12 -0
  19. package/dev-portal/lib/api/roma/model/alarmDto.d.ts +19 -0
  20. package/dev-portal/lib/api/roma/model/alarmDtoPayload.d.ts +10 -0
  21. package/dev-portal/lib/api/roma/model/alarmDtoSeverity.d.ts +14 -0
  22. package/dev-portal/lib/api/roma/model/alarmDtoState.d.ts +12 -0
  23. package/dev-portal/lib/api/roma/model/alarmGroupDto.d.ts +16 -0
  24. package/dev-portal/lib/api/roma/model/appDto.d.ts +36 -11
  25. package/dev-portal/lib/api/roma/model/buildDto.d.ts +14 -0
  26. package/dev-portal/lib/api/roma/model/categoryDto.d.ts +4 -3
  27. package/dev-portal/lib/api/roma/model/clearAlarmRequest.d.ts +13 -0
  28. package/dev-portal/lib/api/roma/model/configDto.d.ts +6 -0
  29. package/dev-portal/lib/api/roma/model/environmentDto.d.ts +4 -4
  30. package/dev-portal/lib/api/roma/model/feedbackDetailsDto.d.ts +6 -3
  31. package/dev-portal/lib/api/roma/model/feedbackDto.d.ts +1 -1
  32. package/dev-portal/lib/api/roma/model/feedbackExpandedResponseDetailsDto.d.ts +7 -3
  33. package/dev-portal/lib/api/roma/model/feedbackExpandedResponseIssueDto.d.ts +3 -1
  34. package/dev-portal/lib/api/roma/model/feedbackPage.d.ts +7 -7
  35. package/dev-portal/lib/api/roma/model/feedbackResponseIssueDto.d.ts +3 -1
  36. package/dev-portal/lib/api/roma/model/feedbackSolutionDto.d.ts +2 -1
  37. package/dev-portal/lib/api/roma/model/getAllParams.d.ts +14 -0
  38. package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +1 -1
  39. package/dev-portal/lib/api/roma/model/index.d.ts +17 -1
  40. package/dev-portal/lib/api/roma/model/listFeedbacksByCurrentUserParams.d.ts +1 -1
  41. package/dev-portal/lib/api/roma/model/pageableObject.d.ts +2 -2
  42. package/dev-portal/lib/api/roma/model/raiseAlarmRequest.d.ts +15 -0
  43. package/dev-portal/lib/api/roma/model/raiseAlarmRequestPayload.d.ts +10 -0
  44. package/dev-portal/lib/api/roma/model/raiseAlarmRequestSeverity.d.ts +14 -0
  45. package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +10 -2
  46. package/dev-portal/lib/api/roma/model/serverSentEventAlarmDto.d.ts +9 -0
  47. package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +1 -2
  48. package/dev-portal/lib/api/roma/model/serviceDto.d.ts +13 -4
  49. package/dev-portal/lib/api/roma/model/settingDto.d.ts +10 -4
  50. package/dev-portal/lib/api/roma/model/sortObject.d.ts +3 -3
  51. package/dev-portal/lib/api/roma/model/uploadBundleBody.d.ts +1 -1
  52. package/dev-portal/lib/api/roma/model/versionDto.d.ts +4 -4
  53. package/dev-portal/lib/api/roma/model/visualizationDto.d.ts +12 -0
  54. package/dev-portal/lib/api/roma/use-client.d.ts +7 -7
  55. package/dev-portal/lib/dev-portal/AppViewer.d.ts +10 -0
  56. package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +2 -2
  57. package/dev-portal/lib/dev-portal/PortalStyles.d.ts +8 -16
  58. package/dev-portal/lib/dev-portal/config/AppClient.d.ts +16 -15
  59. package/dev-portal/lib/style-provider.d.ts +2 -1
  60. package/dev-portal/package.json +41 -4
  61. package/dev-portal/roma-framework.css +478 -0
  62. package/dev-portal/roma-framework.umd.js +40191 -35344
  63. package/lib/api/roma/api/alarm-controller/alarm-controller.d.ts +97 -0
  64. package/lib/api/roma/api/alarm-group-controller/alarm-group-controller.d.ts +186 -0
  65. package/lib/api/roma/api/alarm-sse-controller/alarm-sse-controller.d.ts +36 -0
  66. package/lib/api/roma/api/app-controller/app-controller.d.ts +65 -31
  67. package/lib/api/roma/api/category-controller/category-controller.d.ts +57 -26
  68. package/lib/api/roma/api/environment-controller/environment-controller.d.ts +23 -10
  69. package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +29 -13
  70. package/lib/api/roma/api/health-controller/health-controller.d.ts +38 -0
  71. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +99 -41
  72. package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +23 -7
  73. package/lib/api/roma/api/service-controller/service-controller.d.ts +57 -26
  74. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +114 -47
  75. package/lib/api/roma/index.d.ts +4 -0
  76. package/lib/api/roma/model/adminDto.d.ts +6 -0
  77. package/lib/api/roma/model/adminDtoAdminType.d.ts +12 -0
  78. package/lib/api/roma/model/alarmDto.d.ts +19 -0
  79. package/lib/api/roma/model/alarmDtoPayload.d.ts +10 -0
  80. package/lib/api/roma/model/alarmDtoSeverity.d.ts +14 -0
  81. package/lib/api/roma/model/alarmDtoState.d.ts +12 -0
  82. package/lib/api/roma/model/alarmGroupDto.d.ts +16 -0
  83. package/lib/api/roma/model/appDto.d.ts +36 -11
  84. package/lib/api/roma/model/buildDto.d.ts +14 -0
  85. package/lib/api/roma/model/categoryDto.d.ts +4 -3
  86. package/lib/api/roma/model/clearAlarmRequest.d.ts +13 -0
  87. package/lib/api/roma/model/configDto.d.ts +6 -0
  88. package/lib/api/roma/model/environmentDto.d.ts +4 -4
  89. package/lib/api/roma/model/feedbackDetailsDto.d.ts +6 -3
  90. package/lib/api/roma/model/feedbackDto.d.ts +1 -1
  91. package/lib/api/roma/model/feedbackExpandedResponseDetailsDto.d.ts +7 -3
  92. package/lib/api/roma/model/feedbackExpandedResponseIssueDto.d.ts +3 -1
  93. package/lib/api/roma/model/feedbackPage.d.ts +7 -7
  94. package/lib/api/roma/model/feedbackResponseIssueDto.d.ts +3 -1
  95. package/lib/api/roma/model/feedbackSolutionDto.d.ts +2 -1
  96. package/lib/api/roma/model/getAllParams.d.ts +14 -0
  97. package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +1 -1
  98. package/lib/api/roma/model/index.d.ts +17 -1
  99. package/lib/api/roma/model/listFeedbacksByCurrentUserParams.d.ts +1 -1
  100. package/lib/api/roma/model/pageableObject.d.ts +2 -2
  101. package/lib/api/roma/model/raiseAlarmRequest.d.ts +15 -0
  102. package/lib/api/roma/model/raiseAlarmRequestPayload.d.ts +10 -0
  103. package/lib/api/roma/model/raiseAlarmRequestSeverity.d.ts +14 -0
  104. package/lib/api/roma/model/romaConfigurationDto.d.ts +10 -2
  105. package/lib/api/roma/model/serverSentEventAlarmDto.d.ts +9 -0
  106. package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +1 -2
  107. package/lib/api/roma/model/serviceDto.d.ts +13 -4
  108. package/lib/api/roma/model/settingDto.d.ts +10 -4
  109. package/lib/api/roma/model/sortObject.d.ts +3 -3
  110. package/lib/api/roma/model/uploadBundleBody.d.ts +1 -1
  111. package/lib/api/roma/model/versionDto.d.ts +4 -4
  112. package/lib/api/roma/model/visualizationDto.d.ts +12 -0
  113. package/lib/api/roma/use-client.d.ts +7 -7
  114. package/lib/dev-portal/AppViewer.d.ts +10 -0
  115. package/lib/dev-portal/EquinorLoader.d.ts +2 -2
  116. package/lib/dev-portal/PortalStyles.d.ts +8 -16
  117. package/lib/dev-portal/config/AppClient.d.ts +16 -15
  118. package/lib/style-provider.d.ts +2 -1
  119. package/package.json +41 -4
  120. package/roma-framework.mjs +1004 -1155
  121. package/router-BRrTrnno.mjs +0 -6322
@@ -1,22 +1,20 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useFramework, FrameworkProvider } from "@equinor/fusion-framework-react";
3
3
  import { configureModules } from "@equinor/fusion-framework-app";
4
- import * as React from "react";
5
4
  import { useState, useEffect, lazy, useRef, createContext, useContext, useMemo } from "react";
6
5
  import { ModuleProvider } from "@equinor/fusion-framework-react-module";
7
6
  import styled, { StyleSheetManager, keyframes } from "styled-components";
8
7
  import { EdsProvider, StarProgress, Typography, Card, Button, TopBar, Chip, SideSheet, Menu, Tooltip, Icon, List } from "@equinor/eds-core-react";
9
- import { E as EmptyError, o as operate, c as createOperatorSubscriber, i as innerFrom, a as identity, b as isFunction, I as IntlProvider, d as invariant, j as joinPaths, g as getResolveToMatches, r as resolveTo, w as warning, s as stripBasename, e as createPath, m as matchPath, B as BehaviorSubject, f as firstValueFrom, h as getDefaultExportFromCjs, k as of, l as from } from "./router-BRrTrnno.mjs";
8
+ import { E as EmptyError, o as operate, c as createOperatorSubscriber, i as innerFrom, a as identity, b as isFunction, I as IntlProvider, u as useParams, L as Link, B as BehaviorSubject, f as firstValueFrom, g as getDefaultExportFromCjs, d as of, e as from } from "./_commonjsHelpers-CIHTj2Un.mjs";
10
9
  import { QueryClient, QueryClientProvider, useQueryClient, useMutation, useQuery } from "@tanstack/react-query";
11
10
  import { useCurrentApp, useApps as useApps$1 } from "@equinor/fusion-framework-react/app";
12
11
  import { App } from "@equinor/fusion-framework-module-app/app";
13
12
  import { tokens } from "@equinor/eds-tokens";
14
- import "react-dom";
15
13
  import { comment_more, accessible, account_circle, help_outline } from "@equinor/eds-icons";
16
14
  import { enableAppModule } from "@equinor/fusion-framework-module-app";
17
15
  import { enableContext } from "@equinor/fusion-framework-module-context";
18
16
  import { enableNavigation } from "@equinor/fusion-framework-module-navigation";
19
- import { ModuleConfigBuilder } from "@equinor/fusion-framework-module";
17
+ import { ModuleConfigBuilder, SemanticVersion } from "@equinor/fusion-framework-module";
20
18
  import { enableServiceDiscovery } from "@equinor/fusion-framework-module-service-discovery";
21
19
  import { useHttpClient } from "@equinor/fusion-framework-react-module-http";
22
20
  const createExtraScopePlugin = (scope) => {
@@ -34,14 +32,14 @@ const createExtraScopePlugin = (scope) => {
34
32
  };
35
33
  return plugin;
36
34
  };
37
- const StyleProvider = ({ scope, children }) => {
35
+ const StyleProvider = ({ scope, children, version: version2 }) => {
38
36
  const stylisPlugins = [];
39
37
  if (scope) {
40
38
  const plugin = createExtraScopePlugin(`#${scope}`);
41
39
  Object.defineProperty(plugin, "name", { value: `style-scope-${scope}` });
42
40
  stylisPlugins.push(plugin);
43
41
  }
44
- return /* @__PURE__ */ jsx(StyleSheetManager, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, children }) });
42
+ return /* @__PURE__ */ jsx(StyleSheetManager, { stylisPlugins, children: /* @__PURE__ */ jsx("div", { id: scope, "data-roma-version": version2, children }) });
45
43
  };
46
44
  function lastValueFrom(source, config) {
47
45
  return new Promise(function(resolve, reject) {
@@ -198,8 +196,9 @@ const makeComponent = (Component, args, configure2) => lazy(async () => {
198
196
  source: Component
199
197
  });
200
198
  const queryClient = args.query ?? new QueryClient();
199
+ const version2 = "6.0.1-beta.1";
201
200
  return {
202
- default: () => /* @__PURE__ */ jsx(FrameworkProvider, { value: fusion, children: /* @__PURE__ */ jsx(IntlProvider, { locale: navigator.language, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(StyleProvider, { scope: `roma-${appKey}`, children: /* @__PURE__ */ jsx(
201
+ default: () => /* @__PURE__ */ jsx(FrameworkProvider, { value: fusion, children: /* @__PURE__ */ jsx(IntlProvider, { locale: navigator.language, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(StyleProvider, { scope: `roma-${appKey}`, version: version2, children: /* @__PURE__ */ jsx(
203
202
  EdsEventProvider,
204
203
  {
205
204
  portalContainer: `roma-${appKey}`,
@@ -359,717 +358,6 @@ function AppLoader({
359
358
  error && /* @__PURE__ */ jsx(ErrorViewer, { error })
360
359
  ] });
361
360
  }
362
- function _extends$1() {
363
- _extends$1 = Object.assign ? Object.assign.bind() : function(target) {
364
- for (var i = 1; i < arguments.length; i++) {
365
- var source = arguments[i];
366
- for (var key in source) {
367
- if (Object.prototype.hasOwnProperty.call(source, key)) {
368
- target[key] = source[key];
369
- }
370
- }
371
- }
372
- return target;
373
- };
374
- return _extends$1.apply(this, arguments);
375
- }
376
- const DataRouterContext = /* @__PURE__ */ React.createContext(null);
377
- if (process.env.NODE_ENV !== "production") {
378
- DataRouterContext.displayName = "DataRouter";
379
- }
380
- const DataRouterStateContext = /* @__PURE__ */ React.createContext(null);
381
- if (process.env.NODE_ENV !== "production") {
382
- DataRouterStateContext.displayName = "DataRouterState";
383
- }
384
- const AwaitContext = /* @__PURE__ */ React.createContext(null);
385
- if (process.env.NODE_ENV !== "production") {
386
- AwaitContext.displayName = "Await";
387
- }
388
- const NavigationContext = /* @__PURE__ */ React.createContext(null);
389
- if (process.env.NODE_ENV !== "production") {
390
- NavigationContext.displayName = "Navigation";
391
- }
392
- const LocationContext = /* @__PURE__ */ React.createContext(null);
393
- if (process.env.NODE_ENV !== "production") {
394
- LocationContext.displayName = "Location";
395
- }
396
- const RouteContext = /* @__PURE__ */ React.createContext({
397
- outlet: null,
398
- matches: [],
399
- isDataRoute: false
400
- });
401
- if (process.env.NODE_ENV !== "production") {
402
- RouteContext.displayName = "Route";
403
- }
404
- const RouteErrorContext = /* @__PURE__ */ React.createContext(null);
405
- if (process.env.NODE_ENV !== "production") {
406
- RouteErrorContext.displayName = "RouteError";
407
- }
408
- function useHref(to, _temp) {
409
- let {
410
- relative
411
- } = _temp === void 0 ? {} : _temp;
412
- !useInRouterContext() ? process.env.NODE_ENV !== "production" ? invariant(
413
- false,
414
- // TODO: This error is probably because they somehow have 2 versions of the
415
- // router loaded. We can help them understand how to avoid that.
416
- "useHref() may be used only in the context of a <Router> component."
417
- ) : invariant(false) : void 0;
418
- let {
419
- basename,
420
- navigator: navigator2
421
- } = React.useContext(NavigationContext);
422
- let {
423
- hash,
424
- pathname,
425
- search
426
- } = useResolvedPath(to, {
427
- relative
428
- });
429
- let joinedPathname = pathname;
430
- if (basename !== "/") {
431
- joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname]);
432
- }
433
- return navigator2.createHref({
434
- pathname: joinedPathname,
435
- search,
436
- hash
437
- });
438
- }
439
- function useInRouterContext() {
440
- return React.useContext(LocationContext) != null;
441
- }
442
- function useLocation() {
443
- !useInRouterContext() ? process.env.NODE_ENV !== "production" ? invariant(
444
- false,
445
- // TODO: This error is probably because they somehow have 2 versions of the
446
- // router loaded. We can help them understand how to avoid that.
447
- "useLocation() may be used only in the context of a <Router> component."
448
- ) : invariant(false) : void 0;
449
- return React.useContext(LocationContext).location;
450
- }
451
- const navigateEffectWarning = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
452
- function useIsomorphicLayoutEffect(cb) {
453
- let isStatic = React.useContext(NavigationContext).static;
454
- if (!isStatic) {
455
- React.useLayoutEffect(cb);
456
- }
457
- }
458
- function useNavigate() {
459
- let {
460
- isDataRoute
461
- } = React.useContext(RouteContext);
462
- return isDataRoute ? useNavigateStable() : useNavigateUnstable();
463
- }
464
- function useNavigateUnstable() {
465
- !useInRouterContext() ? process.env.NODE_ENV !== "production" ? invariant(
466
- false,
467
- // TODO: This error is probably because they somehow have 2 versions of the
468
- // router loaded. We can help them understand how to avoid that.
469
- "useNavigate() may be used only in the context of a <Router> component."
470
- ) : invariant(false) : void 0;
471
- let dataRouterContext = React.useContext(DataRouterContext);
472
- let {
473
- basename,
474
- future,
475
- navigator: navigator2
476
- } = React.useContext(NavigationContext);
477
- let {
478
- matches
479
- } = React.useContext(RouteContext);
480
- let {
481
- pathname: locationPathname
482
- } = useLocation();
483
- let routePathnamesJson = JSON.stringify(getResolveToMatches(matches, future.v7_relativeSplatPath));
484
- let activeRef = React.useRef(false);
485
- useIsomorphicLayoutEffect(() => {
486
- activeRef.current = true;
487
- });
488
- let navigate = React.useCallback(function(to, options) {
489
- if (options === void 0) {
490
- options = {};
491
- }
492
- process.env.NODE_ENV !== "production" ? warning(activeRef.current, navigateEffectWarning) : void 0;
493
- if (!activeRef.current) return;
494
- if (typeof to === "number") {
495
- navigator2.go(to);
496
- return;
497
- }
498
- let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path");
499
- if (dataRouterContext == null && basename !== "/") {
500
- path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
501
- }
502
- (!!options.replace ? navigator2.replace : navigator2.push)(path, options.state, options);
503
- }, [basename, navigator2, routePathnamesJson, locationPathname, dataRouterContext]);
504
- return navigate;
505
- }
506
- function useParams() {
507
- let {
508
- matches
509
- } = React.useContext(RouteContext);
510
- let routeMatch = matches[matches.length - 1];
511
- return routeMatch ? routeMatch.params : {};
512
- }
513
- function useResolvedPath(to, _temp2) {
514
- let {
515
- relative
516
- } = _temp2 === void 0 ? {} : _temp2;
517
- let {
518
- future
519
- } = React.useContext(NavigationContext);
520
- let {
521
- matches
522
- } = React.useContext(RouteContext);
523
- let {
524
- pathname: locationPathname
525
- } = useLocation();
526
- let routePathnamesJson = JSON.stringify(getResolveToMatches(matches, future.v7_relativeSplatPath));
527
- return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [to, routePathnamesJson, locationPathname, relative]);
528
- }
529
- var DataRouterHook$1 = /* @__PURE__ */ (function(DataRouterHook2) {
530
- DataRouterHook2["UseBlocker"] = "useBlocker";
531
- DataRouterHook2["UseRevalidator"] = "useRevalidator";
532
- DataRouterHook2["UseNavigateStable"] = "useNavigate";
533
- return DataRouterHook2;
534
- })(DataRouterHook$1 || {});
535
- var DataRouterStateHook$1 = /* @__PURE__ */ (function(DataRouterStateHook2) {
536
- DataRouterStateHook2["UseBlocker"] = "useBlocker";
537
- DataRouterStateHook2["UseLoaderData"] = "useLoaderData";
538
- DataRouterStateHook2["UseActionData"] = "useActionData";
539
- DataRouterStateHook2["UseRouteError"] = "useRouteError";
540
- DataRouterStateHook2["UseNavigation"] = "useNavigation";
541
- DataRouterStateHook2["UseRouteLoaderData"] = "useRouteLoaderData";
542
- DataRouterStateHook2["UseMatches"] = "useMatches";
543
- DataRouterStateHook2["UseRevalidator"] = "useRevalidator";
544
- DataRouterStateHook2["UseNavigateStable"] = "useNavigate";
545
- DataRouterStateHook2["UseRouteId"] = "useRouteId";
546
- return DataRouterStateHook2;
547
- })(DataRouterStateHook$1 || {});
548
- function getDataRouterConsoleError$1(hookName) {
549
- return hookName + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
550
- }
551
- function useDataRouterContext$1(hookName) {
552
- let ctx = React.useContext(DataRouterContext);
553
- !ctx ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError$1(hookName)) : invariant(false) : void 0;
554
- return ctx;
555
- }
556
- function useRouteContext(hookName) {
557
- let route = React.useContext(RouteContext);
558
- !route ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError$1(hookName)) : invariant(false) : void 0;
559
- return route;
560
- }
561
- function useCurrentRouteId(hookName) {
562
- let route = useRouteContext(hookName);
563
- let thisRoute = route.matches[route.matches.length - 1];
564
- !thisRoute.route.id ? process.env.NODE_ENV !== "production" ? invariant(false, hookName + ' can only be used on routes that contain a unique "id"') : invariant(false) : void 0;
565
- return thisRoute.route.id;
566
- }
567
- function useRouteId() {
568
- return useCurrentRouteId(DataRouterStateHook$1.UseRouteId);
569
- }
570
- function useNavigateStable() {
571
- let {
572
- router
573
- } = useDataRouterContext$1(DataRouterHook$1.UseNavigateStable);
574
- let id = useCurrentRouteId(DataRouterStateHook$1.UseNavigateStable);
575
- let activeRef = React.useRef(false);
576
- useIsomorphicLayoutEffect(() => {
577
- activeRef.current = true;
578
- });
579
- let navigate = React.useCallback(function(to, options) {
580
- if (options === void 0) {
581
- options = {};
582
- }
583
- process.env.NODE_ENV !== "production" ? warning(activeRef.current, navigateEffectWarning) : void 0;
584
- if (!activeRef.current) return;
585
- if (typeof to === "number") {
586
- router.navigate(to);
587
- } else {
588
- router.navigate(to, _extends$1({
589
- fromRouteId: id
590
- }, options));
591
- }
592
- }, [router, id]);
593
- return navigate;
594
- }
595
- new Promise(() => {
596
- });
597
- function _extends() {
598
- _extends = Object.assign ? Object.assign.bind() : function(target) {
599
- for (var i = 1; i < arguments.length; i++) {
600
- var source = arguments[i];
601
- for (var key in source) {
602
- if (Object.prototype.hasOwnProperty.call(source, key)) {
603
- target[key] = source[key];
604
- }
605
- }
606
- }
607
- return target;
608
- };
609
- return _extends.apply(this, arguments);
610
- }
611
- function _objectWithoutPropertiesLoose(source, excluded) {
612
- if (source == null) return {};
613
- var target = {};
614
- var sourceKeys = Object.keys(source);
615
- var key, i;
616
- for (i = 0; i < sourceKeys.length; i++) {
617
- key = sourceKeys[i];
618
- if (excluded.indexOf(key) >= 0) continue;
619
- target[key] = source[key];
620
- }
621
- return target;
622
- }
623
- const defaultMethod = "get";
624
- const defaultEncType = "application/x-www-form-urlencoded";
625
- function isHtmlElement(object2) {
626
- return object2 != null && typeof object2.tagName === "string";
627
- }
628
- function isButtonElement(object2) {
629
- return isHtmlElement(object2) && object2.tagName.toLowerCase() === "button";
630
- }
631
- function isFormElement(object2) {
632
- return isHtmlElement(object2) && object2.tagName.toLowerCase() === "form";
633
- }
634
- function isInputElement(object2) {
635
- return isHtmlElement(object2) && object2.tagName.toLowerCase() === "input";
636
- }
637
- function isModifiedEvent(event) {
638
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
639
- }
640
- function shouldProcessLinkClick(event, target) {
641
- return event.button === 0 && // Ignore everything but left clicks
642
- (!target || target === "_self") && // Let browser handle "target=_blank" etc.
643
- !isModifiedEvent(event);
644
- }
645
- let _formDataSupportsSubmitter = null;
646
- function isFormDataSubmitterSupported() {
647
- if (_formDataSupportsSubmitter === null) {
648
- try {
649
- new FormData(
650
- document.createElement("form"),
651
- // @ts-expect-error if FormData supports the submitter parameter, this will throw
652
- 0
653
- );
654
- _formDataSupportsSubmitter = false;
655
- } catch (e) {
656
- _formDataSupportsSubmitter = true;
657
- }
658
- }
659
- return _formDataSupportsSubmitter;
660
- }
661
- const supportedFormEncTypes = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
662
- function getFormEncType(encType) {
663
- if (encType != null && !supportedFormEncTypes.has(encType)) {
664
- process.env.NODE_ENV !== "production" ? warning(false, '"' + encType + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + defaultEncType + '"')) : void 0;
665
- return null;
666
- }
667
- return encType;
668
- }
669
- function getFormSubmissionInfo(target, basename) {
670
- let method;
671
- let action;
672
- let encType;
673
- let formData;
674
- let body;
675
- if (isFormElement(target)) {
676
- let attr = target.getAttribute("action");
677
- action = attr ? stripBasename(attr, basename) : null;
678
- method = target.getAttribute("method") || defaultMethod;
679
- encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
680
- formData = new FormData(target);
681
- } else if (isButtonElement(target) || isInputElement(target) && (target.type === "submit" || target.type === "image")) {
682
- let form = target.form;
683
- if (form == null) {
684
- throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
685
- }
686
- let attr = target.getAttribute("formaction") || form.getAttribute("action");
687
- action = attr ? stripBasename(attr, basename) : null;
688
- method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
689
- encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
690
- formData = new FormData(form, target);
691
- if (!isFormDataSubmitterSupported()) {
692
- let {
693
- name,
694
- type,
695
- value
696
- } = target;
697
- if (type === "image") {
698
- let prefix = name ? name + "." : "";
699
- formData.append(prefix + "x", "0");
700
- formData.append(prefix + "y", "0");
701
- } else if (name) {
702
- formData.append(name, value);
703
- }
704
- }
705
- } else if (isHtmlElement(target)) {
706
- throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
707
- } else {
708
- method = defaultMethod;
709
- action = null;
710
- encType = defaultEncType;
711
- body = target;
712
- }
713
- if (formData && encType === "text/plain") {
714
- body = formData;
715
- formData = void 0;
716
- }
717
- return {
718
- action,
719
- method: method.toLowerCase(),
720
- encType,
721
- formData,
722
- body
723
- };
724
- }
725
- const _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset", "viewTransition"], _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "viewTransition", "children"], _excluded3 = ["fetcherKey", "navigate", "reloadDocument", "replace", "state", "method", "action", "onSubmit", "relative", "preventScrollReset", "viewTransition"];
726
- const REACT_ROUTER_VERSION = "6";
727
- try {
728
- window.__reactRouterVersion = REACT_ROUTER_VERSION;
729
- } catch (e) {
730
- }
731
- const ViewTransitionContext = /* @__PURE__ */ React.createContext({
732
- isTransitioning: false
733
- });
734
- if (process.env.NODE_ENV !== "production") {
735
- ViewTransitionContext.displayName = "ViewTransition";
736
- }
737
- const FetchersContext = /* @__PURE__ */ React.createContext(/* @__PURE__ */ new Map());
738
- if (process.env.NODE_ENV !== "production") {
739
- FetchersContext.displayName = "Fetchers";
740
- }
741
- if (process.env.NODE_ENV !== "production") ;
742
- const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
743
- const ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
744
- const Link = /* @__PURE__ */ React.forwardRef(function LinkWithRef(_ref7, ref) {
745
- let {
746
- onClick,
747
- relative,
748
- reloadDocument,
749
- replace,
750
- state,
751
- target,
752
- to,
753
- preventScrollReset,
754
- viewTransition
755
- } = _ref7, rest = _objectWithoutPropertiesLoose(_ref7, _excluded);
756
- let {
757
- basename
758
- } = React.useContext(NavigationContext);
759
- let absoluteHref;
760
- let isExternal = false;
761
- if (typeof to === "string" && ABSOLUTE_URL_REGEX.test(to)) {
762
- absoluteHref = to;
763
- if (isBrowser) {
764
- try {
765
- let currentUrl = new URL(window.location.href);
766
- let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
767
- let path = stripBasename(targetUrl.pathname, basename);
768
- if (targetUrl.origin === currentUrl.origin && path != null) {
769
- to = path + targetUrl.search + targetUrl.hash;
770
- } else {
771
- isExternal = true;
772
- }
773
- } catch (e) {
774
- process.env.NODE_ENV !== "production" ? warning(false, '<Link to="' + to + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.') : void 0;
775
- }
776
- }
777
- }
778
- let href = useHref(to, {
779
- relative
780
- });
781
- let internalOnClick = useLinkClickHandler(to, {
782
- replace,
783
- state,
784
- target,
785
- preventScrollReset,
786
- relative,
787
- viewTransition
788
- });
789
- function handleClick(event) {
790
- if (onClick) onClick(event);
791
- if (!event.defaultPrevented) {
792
- internalOnClick(event);
793
- }
794
- }
795
- return (
796
- // eslint-disable-next-line jsx-a11y/anchor-has-content
797
- /* @__PURE__ */ React.createElement("a", _extends({}, rest, {
798
- href: absoluteHref || href,
799
- onClick: isExternal || reloadDocument ? onClick : handleClick,
800
- ref,
801
- target
802
- }))
803
- );
804
- });
805
- if (process.env.NODE_ENV !== "production") {
806
- Link.displayName = "Link";
807
- }
808
- const NavLink = /* @__PURE__ */ React.forwardRef(function NavLinkWithRef(_ref8, ref) {
809
- let {
810
- "aria-current": ariaCurrentProp = "page",
811
- caseSensitive = false,
812
- className: classNameProp = "",
813
- end = false,
814
- style: styleProp,
815
- to,
816
- viewTransition,
817
- children
818
- } = _ref8, rest = _objectWithoutPropertiesLoose(_ref8, _excluded2);
819
- let path = useResolvedPath(to, {
820
- relative: rest.relative
821
- });
822
- let location = useLocation();
823
- let routerState = React.useContext(DataRouterStateContext);
824
- let {
825
- navigator: navigator2,
826
- basename
827
- } = React.useContext(NavigationContext);
828
- let isTransitioning = routerState != null && // Conditional usage is OK here because the usage of a data router is static
829
- // eslint-disable-next-line react-hooks/rules-of-hooks
830
- useViewTransitionState(path) && viewTransition === true;
831
- let toPathname = navigator2.encodeLocation ? navigator2.encodeLocation(path).pathname : path.pathname;
832
- let locationPathname = location.pathname;
833
- let nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null;
834
- if (!caseSensitive) {
835
- locationPathname = locationPathname.toLowerCase();
836
- nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null;
837
- toPathname = toPathname.toLowerCase();
838
- }
839
- if (nextLocationPathname && basename) {
840
- nextLocationPathname = stripBasename(nextLocationPathname, basename) || nextLocationPathname;
841
- }
842
- const endSlashPosition = toPathname !== "/" && toPathname.endsWith("/") ? toPathname.length - 1 : toPathname.length;
843
- let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(endSlashPosition) === "/";
844
- let isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === "/");
845
- let renderProps = {
846
- isActive,
847
- isPending,
848
- isTransitioning
849
- };
850
- let ariaCurrent = isActive ? ariaCurrentProp : void 0;
851
- let className;
852
- if (typeof classNameProp === "function") {
853
- className = classNameProp(renderProps);
854
- } else {
855
- className = [classNameProp, isActive ? "active" : null, isPending ? "pending" : null, isTransitioning ? "transitioning" : null].filter(Boolean).join(" ");
856
- }
857
- let style = typeof styleProp === "function" ? styleProp(renderProps) : styleProp;
858
- return /* @__PURE__ */ React.createElement(Link, _extends({}, rest, {
859
- "aria-current": ariaCurrent,
860
- className,
861
- ref,
862
- style,
863
- to,
864
- viewTransition
865
- }), typeof children === "function" ? children(renderProps) : children);
866
- });
867
- if (process.env.NODE_ENV !== "production") {
868
- NavLink.displayName = "NavLink";
869
- }
870
- const Form = /* @__PURE__ */ React.forwardRef((_ref9, forwardedRef) => {
871
- let {
872
- fetcherKey,
873
- navigate,
874
- reloadDocument,
875
- replace,
876
- state,
877
- method = defaultMethod,
878
- action,
879
- onSubmit,
880
- relative,
881
- preventScrollReset,
882
- viewTransition
883
- } = _ref9, props = _objectWithoutPropertiesLoose(_ref9, _excluded3);
884
- let submit = useSubmit();
885
- let formAction = useFormAction(action, {
886
- relative
887
- });
888
- let formMethod = method.toLowerCase() === "get" ? "get" : "post";
889
- let submitHandler = (event) => {
890
- onSubmit && onSubmit(event);
891
- if (event.defaultPrevented) return;
892
- event.preventDefault();
893
- let submitter = event.nativeEvent.submitter;
894
- let submitMethod = (submitter == null ? void 0 : submitter.getAttribute("formmethod")) || method;
895
- submit(submitter || event.currentTarget, {
896
- fetcherKey,
897
- method: submitMethod,
898
- navigate,
899
- replace,
900
- state,
901
- relative,
902
- preventScrollReset,
903
- viewTransition
904
- });
905
- };
906
- return /* @__PURE__ */ React.createElement("form", _extends({
907
- ref: forwardedRef,
908
- method: formMethod,
909
- action: formAction,
910
- onSubmit: reloadDocument ? onSubmit : submitHandler
911
- }, props));
912
- });
913
- if (process.env.NODE_ENV !== "production") {
914
- Form.displayName = "Form";
915
- }
916
- if (process.env.NODE_ENV !== "production") ;
917
- var DataRouterHook;
918
- (function(DataRouterHook2) {
919
- DataRouterHook2["UseScrollRestoration"] = "useScrollRestoration";
920
- DataRouterHook2["UseSubmit"] = "useSubmit";
921
- DataRouterHook2["UseSubmitFetcher"] = "useSubmitFetcher";
922
- DataRouterHook2["UseFetcher"] = "useFetcher";
923
- DataRouterHook2["useViewTransitionState"] = "useViewTransitionState";
924
- })(DataRouterHook || (DataRouterHook = {}));
925
- var DataRouterStateHook;
926
- (function(DataRouterStateHook2) {
927
- DataRouterStateHook2["UseFetcher"] = "useFetcher";
928
- DataRouterStateHook2["UseFetchers"] = "useFetchers";
929
- DataRouterStateHook2["UseScrollRestoration"] = "useScrollRestoration";
930
- })(DataRouterStateHook || (DataRouterStateHook = {}));
931
- function getDataRouterConsoleError(hookName) {
932
- return hookName + " must be used within a data router. See https://reactrouter.com/v6/routers/picking-a-router.";
933
- }
934
- function useDataRouterContext(hookName) {
935
- let ctx = React.useContext(DataRouterContext);
936
- !ctx ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;
937
- return ctx;
938
- }
939
- function useLinkClickHandler(to, _temp) {
940
- let {
941
- target,
942
- replace: replaceProp,
943
- state,
944
- preventScrollReset,
945
- relative,
946
- viewTransition
947
- } = _temp === void 0 ? {} : _temp;
948
- let navigate = useNavigate();
949
- let location = useLocation();
950
- let path = useResolvedPath(to, {
951
- relative
952
- });
953
- return React.useCallback((event) => {
954
- if (shouldProcessLinkClick(event, target)) {
955
- event.preventDefault();
956
- let replace = replaceProp !== void 0 ? replaceProp : createPath(location) === createPath(path);
957
- navigate(to, {
958
- replace,
959
- state,
960
- preventScrollReset,
961
- relative,
962
- viewTransition
963
- });
964
- }
965
- }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative, viewTransition]);
966
- }
967
- function validateClientSideSubmission() {
968
- if (typeof document === "undefined") {
969
- throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
970
- }
971
- }
972
- let fetcherId = 0;
973
- let getUniqueFetcherId = () => "__" + String(++fetcherId) + "__";
974
- function useSubmit() {
975
- let {
976
- router
977
- } = useDataRouterContext(DataRouterHook.UseSubmit);
978
- let {
979
- basename
980
- } = React.useContext(NavigationContext);
981
- let currentRouteId = useRouteId();
982
- return React.useCallback(function(target, options) {
983
- if (options === void 0) {
984
- options = {};
985
- }
986
- validateClientSideSubmission();
987
- let {
988
- action,
989
- method,
990
- encType,
991
- formData,
992
- body
993
- } = getFormSubmissionInfo(target, basename);
994
- if (options.navigate === false) {
995
- let key = options.fetcherKey || getUniqueFetcherId();
996
- router.fetch(key, currentRouteId, options.action || action, {
997
- preventScrollReset: options.preventScrollReset,
998
- formData,
999
- body,
1000
- formMethod: options.method || method,
1001
- formEncType: options.encType || encType,
1002
- flushSync: options.flushSync
1003
- });
1004
- } else {
1005
- router.navigate(options.action || action, {
1006
- preventScrollReset: options.preventScrollReset,
1007
- formData,
1008
- body,
1009
- formMethod: options.method || method,
1010
- formEncType: options.encType || encType,
1011
- replace: options.replace,
1012
- state: options.state,
1013
- fromRouteId: currentRouteId,
1014
- flushSync: options.flushSync,
1015
- viewTransition: options.viewTransition
1016
- });
1017
- }
1018
- }, [router, basename, currentRouteId]);
1019
- }
1020
- function useFormAction(action, _temp2) {
1021
- let {
1022
- relative
1023
- } = _temp2 === void 0 ? {} : _temp2;
1024
- let {
1025
- basename
1026
- } = React.useContext(NavigationContext);
1027
- let routeContext = React.useContext(RouteContext);
1028
- !routeContext ? process.env.NODE_ENV !== "production" ? invariant(false, "useFormAction must be used inside a RouteContext") : invariant(false) : void 0;
1029
- let [match] = routeContext.matches.slice(-1);
1030
- let path = _extends({}, useResolvedPath(action ? action : ".", {
1031
- relative
1032
- }));
1033
- let location = useLocation();
1034
- if (action == null) {
1035
- path.search = location.search;
1036
- let params = new URLSearchParams(path.search);
1037
- let indexValues = params.getAll("index");
1038
- let hasNakedIndexParam = indexValues.some((v) => v === "");
1039
- if (hasNakedIndexParam) {
1040
- params.delete("index");
1041
- indexValues.filter((v) => v).forEach((v) => params.append("index", v));
1042
- let qs = params.toString();
1043
- path.search = qs ? "?" + qs : "";
1044
- }
1045
- }
1046
- if ((!action || action === ".") && match.route.index) {
1047
- path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index";
1048
- }
1049
- if (basename !== "/") {
1050
- path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
1051
- }
1052
- return createPath(path);
1053
- }
1054
- function useViewTransitionState(to, opts) {
1055
- if (opts === void 0) {
1056
- opts = {};
1057
- }
1058
- let vtContext = React.useContext(ViewTransitionContext);
1059
- !(vtContext != null) ? process.env.NODE_ENV !== "production" ? invariant(false, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?") : invariant(false) : void 0;
1060
- let {
1061
- basename
1062
- } = useDataRouterContext(DataRouterHook.useViewTransitionState);
1063
- let path = useResolvedPath(to, {
1064
- relative: opts.relative
1065
- });
1066
- if (!vtContext.isTransitioning) {
1067
- return false;
1068
- }
1069
- let currentPath = stripBasename(vtContext.currentLocation.pathname, basename) || vtContext.currentLocation.pathname;
1070
- let nextPath = stripBasename(vtContext.nextLocation.pathname, basename) || vtContext.nextLocation.pathname;
1071
- return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;
1072
- }
1073
361
  const AppContext = createContext({
1074
362
  isLoading: false,
1075
363
  apps: void 0
@@ -1122,6 +410,13 @@ const useApps = ({ includeHidden } = {}) => {
1122
410
  return { isLoading, apps, error };
1123
411
  }, [allApps, includeHidden, isLoading, error]);
1124
412
  };
413
+ const handle = {
414
+ route: {
415
+ description: "App Viewer",
416
+ params: { appKey: "The key of the app to view" },
417
+ search: {}
418
+ }
419
+ };
1125
420
  const AppViewer = () => {
1126
421
  const { appKey } = useParams();
1127
422
  const { apps } = useApps({ includeHidden: true });
@@ -1162,8 +457,9 @@ const slideLeft = keyframes`
1162
457
  const TopBarFadeIn = styled(TopBar)`
1163
458
  animation: ${fadeIn} 0.6s alternate ease-in-out;
1164
459
  padding-left: 0;
1165
- max-width: '100vw';
460
+ width: 100vw;
1166
461
  left: 0;
462
+ position: fixed;
1167
463
  `;
1168
464
  const Styled = {
1169
465
  Title: styled.div`
@@ -1234,7 +530,7 @@ const HeaderMenu = ({ menuState }) => {
1234
530
  const user = useMemo(() => {
1235
531
  return auth.account;
1236
532
  }, [auth]);
1237
- const roles = useMemo(() => {
533
+ useMemo(() => {
1238
534
  return user?.idTokenClaims?.roles ?? ["No access role"];
1239
535
  }, [user]);
1240
536
  const getFeedbackAreaFromTags = (currentApp2, applications2) => {
@@ -1317,27 +613,24 @@ const HeaderMenu = ({ menuState }) => {
1317
613
  children: /* @__PURE__ */ jsx(Icon, { data: account_circle })
1318
614
  }
1319
615
  ) }),
1320
- /* @__PURE__ */ jsxs(
616
+ /* @__PURE__ */ jsx(
1321
617
  StyledMenu,
1322
618
  {
1323
619
  onClose: () => menuState.setUserMenuOpen(false),
1324
620
  anchorEl: userRef.current,
1325
621
  open: menuState.userMenuOpen,
1326
- children: [
1327
- /* @__PURE__ */ jsxs(Menu.Section, { title: "Profile", children: [
1328
- /* @__PURE__ */ jsx(Menu.Item, { children: user.name }),
1329
- /* @__PURE__ */ jsx(
1330
- Menu.Item,
1331
- {
1332
- onClick: () => auth.logout({
1333
- redirectUri: window.location.origin
1334
- }),
1335
- children: "Sign out"
1336
- }
1337
- )
1338
- ] }),
1339
- /* @__PURE__ */ jsx(Menu.Section, { title: "Roles", children: roles.map((r) => /* @__PURE__ */ jsx(Menu.Item, { children: r }, r)) })
1340
- ]
622
+ children: /* @__PURE__ */ jsxs(Menu.Section, { title: "Profile", children: [
623
+ /* @__PURE__ */ jsx(Menu.Item, { children: user.name }),
624
+ /* @__PURE__ */ jsx(
625
+ Menu.Item,
626
+ {
627
+ onClick: () => auth.logout({
628
+ redirectUri: window.location.origin
629
+ }),
630
+ children: "Sign out"
631
+ }
632
+ )
633
+ ] })
1341
634
  }
1342
635
  ),
1343
636
  /* @__PURE__ */ jsx(Tooltip, { title: "Release notes", children: /* @__PURE__ */ jsx(
@@ -1382,7 +675,7 @@ const Header = () => {
1382
675
  });
1383
676
  }, []);
1384
677
  return /* @__PURE__ */ jsxs(Fragment, { children: [
1385
- /* @__PURE__ */ jsxs(
678
+ /* @__PURE__ */ jsx("div", { style: { width: "99vw", height: "64px" }, children: /* @__PURE__ */ jsxs(
1386
679
  TopBarFadeIn,
1387
680
  {
1388
681
  id: "cli-top-bar",
@@ -1399,7 +692,7 @@ const Header = () => {
1399
692
  /* @__PURE__ */ jsx(TopBar.Actions, { children: /* @__PURE__ */ jsx(HeaderMenu, { menuState: headerMenuState }) })
1400
693
  ]
1401
694
  }
1402
- ),
695
+ ) }),
1403
696
  /* @__PURE__ */ jsx(SideSheets, { apps: allApps, menuState: headerMenuState })
1404
697
  ] });
1405
698
  };
@@ -1749,6 +1042,7 @@ class Connection {
1749
1042
  }
1750
1043
  class SseModuleProvider {
1751
1044
  #config;
1045
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
1752
1046
  #connections = {};
1753
1047
  constructor(config) {
1754
1048
  this.#config = config;
@@ -1805,9 +1099,11 @@ class SseConfigurator {
1805
1099
  return { endpoints: this.#endpoints };
1806
1100
  }
1807
1101
  }
1102
+ const version = "0.0.2";
1808
1103
  const moduleKey = "sse";
1809
1104
  const module$1 = {
1810
1105
  name: moduleKey,
1106
+ version: new SemanticVersion(version),
1811
1107
  configure: () => new SseConfigurator(),
1812
1108
  initialize: async (init) => {
1813
1109
  const config = await init.config.createConfig(init);
@@ -4416,6 +3712,7 @@ ${error.join("\n")}`);
4416
3712
  });
4417
3713
  enableNavigation(config);
4418
3714
  enableSse(config, "activity");
3715
+ enableSse(config, "roma-alarm");
4419
3716
  config.onConfigured(() => {
4420
3717
  console.info("Fusion config done");
4421
3718
  });
@@ -4475,16 +3772,13 @@ const HttpErrorViewer = ({ error }) => {
4475
3772
  };
4476
3773
  const useCustomClient = () => {
4477
3774
  const client = useHttpClient("portal");
4478
- return async ({
4479
- url,
4480
- method,
4481
- params,
4482
- headers,
4483
- data,
4484
- signal
4485
- }) => {
3775
+ return async (uriOrOptions, options) => {
3776
+ const { url, method, params, headers, signal, body } = {
3777
+ url: uriOrOptions,
3778
+ ...options
3779
+ };
4486
3780
  const response = await client.fetch(
4487
- `${url}` + new URLSearchParams(params),
3781
+ `${url ?? uriOrOptions}` + new URLSearchParams(params),
4488
3782
  {
4489
3783
  method,
4490
3784
  // Request method
@@ -4492,8 +3786,7 @@ const useCustomClient = () => {
4492
3786
  // Abort signal
4493
3787
  headers,
4494
3788
  // Additional headers
4495
- ...data ? { body: JSON.stringify(data) } : {}
4496
- // Add body if data is provided
3789
+ body
4497
3790
  }
4498
3791
  );
4499
3792
  let value;
@@ -4526,13 +3819,15 @@ let HttpError$1 = class HttpError extends Error {
4526
3819
  this.response = response;
4527
3820
  }
4528
3821
  };
3822
+ const getGetSettingByUserAndIdUrl = (userId, id) => {
3823
+ return `/api/settings/user/${userId}/id/${id}`;
3824
+ };
4529
3825
  const useGetSettingByUserAndIdHook = () => {
4530
- const getSettingByUserAndId = useCustomClient();
4531
- return (userId, id, signal) => {
4532
- return getSettingByUserAndId({
4533
- url: `/api/settings/user/${userId}/id/${id}`,
4534
- method: "get",
4535
- signal
3826
+ const customFetcher = useCustomClient();
3827
+ return (userId, id, options) => {
3828
+ return customFetcher(getGetSettingByUserAndIdUrl(userId, id), {
3829
+ ...options,
3830
+ method: "GET"
4536
3831
  });
4537
3832
  };
4538
3833
  };
@@ -4540,10 +3835,10 @@ const getGetSettingByUserAndIdQueryKey = (userId, id) => {
4540
3835
  return [`/api/settings/user/${userId}/id/${id}`];
4541
3836
  };
4542
3837
  const useGetSettingByUserAndIdQueryOptions = (userId, id, options) => {
4543
- const { query: queryOptions } = options ?? {};
3838
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4544
3839
  const queryKey = queryOptions?.queryKey ?? getGetSettingByUserAndIdQueryKey(userId, id);
4545
3840
  const getSettingByUserAndId = useGetSettingByUserAndIdHook();
4546
- const queryFn = ({ signal }) => getSettingByUserAndId(userId, id, signal);
3841
+ const queryFn = ({ signal }) => getSettingByUserAndId(userId, id, { signal, ...requestOptions });
4547
3842
  return {
4548
3843
  queryKey,
4549
3844
  queryFn,
@@ -4551,69 +3846,82 @@ const useGetSettingByUserAndIdQueryOptions = (userId, id, options) => {
4551
3846
  ...queryOptions
4552
3847
  };
4553
3848
  };
4554
- const useGetSettingByUserAndId = (userId, id, options) => {
3849
+ function useGetSettingByUserAndId(userId, id, options, queryClient) {
4555
3850
  const queryOptions = useGetSettingByUserAndIdQueryOptions(
4556
3851
  userId,
4557
3852
  id,
4558
3853
  options
4559
3854
  );
4560
- const query = useQuery(queryOptions);
4561
- query.queryKey = queryOptions.queryKey;
4562
- return query;
3855
+ const query = useQuery(queryOptions, queryClient);
3856
+ return { ...query, queryKey: queryOptions.queryKey };
3857
+ }
3858
+ const getUpdateByUserIdAndIdUrl = (userId, id) => {
3859
+ return `/api/settings/user/${userId}/id/${id}`;
4563
3860
  };
4564
3861
  const useUpdateByUserIdAndIdHook = () => {
4565
- const updateByUserIdAndId = useCustomClient();
4566
- return (userId, id, settingDto) => {
4567
- return updateByUserIdAndId({
4568
- url: `/api/settings/user/${userId}/id/${id}`,
4569
- method: "put",
4570
- headers: { "Content-Type": "application/json" },
4571
- data: settingDto
3862
+ const customFetcher = useCustomClient();
3863
+ return (userId, id, settingDto, options) => {
3864
+ return customFetcher(getUpdateByUserIdAndIdUrl(userId, id), {
3865
+ ...options,
3866
+ method: "PUT",
3867
+ headers: { "Content-Type": "application/json", ...options?.headers },
3868
+ body: JSON.stringify(settingDto)
4572
3869
  });
4573
3870
  };
4574
3871
  };
4575
3872
  const useUpdateByUserIdAndIdMutationOptions = (options) => {
4576
- const { mutation: mutationOptions } = options ?? {};
3873
+ const mutationKey = ["updateByUserIdAndId"];
3874
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4577
3875
  const updateByUserIdAndId = useUpdateByUserIdAndIdHook();
4578
3876
  const mutationFn = (props) => {
4579
3877
  const { userId, id, data } = props ?? {};
4580
- return updateByUserIdAndId(userId, id, data);
3878
+ return updateByUserIdAndId(userId, id, data, requestOptions);
4581
3879
  };
4582
3880
  return { mutationFn, ...mutationOptions };
4583
3881
  };
4584
- const useUpdateByUserIdAndId = (options) => {
4585
- const mutationOptions = useUpdateByUserIdAndIdMutationOptions(options);
4586
- return useMutation(mutationOptions);
3882
+ const useUpdateByUserIdAndId = (options, queryClient) => {
3883
+ return useMutation(
3884
+ useUpdateByUserIdAndIdMutationOptions(options),
3885
+ queryClient
3886
+ );
3887
+ };
3888
+ const getDeletePrivateSettingByIdUrl = (userId, id) => {
3889
+ return `/api/settings/user/${userId}/id/${id}`;
4587
3890
  };
4588
3891
  const useDeletePrivateSettingByIdHook = () => {
4589
- const deletePrivateSettingById = useCustomClient();
4590
- return (userId, id) => {
4591
- return deletePrivateSettingById({
4592
- url: `/api/settings/user/${userId}/id/${id}`,
4593
- method: "delete"
3892
+ const customFetcher = useCustomClient();
3893
+ return (userId, id, options) => {
3894
+ return customFetcher(getDeletePrivateSettingByIdUrl(userId, id), {
3895
+ ...options,
3896
+ method: "DELETE"
4594
3897
  });
4595
3898
  };
4596
3899
  };
4597
3900
  const useDeletePrivateSettingByIdMutationOptions = (options) => {
4598
- const { mutation: mutationOptions } = options ?? {};
3901
+ const mutationKey = ["deletePrivateSettingById"];
3902
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4599
3903
  const deletePrivateSettingById = useDeletePrivateSettingByIdHook();
4600
3904
  const mutationFn = (props) => {
4601
3905
  const { userId, id } = props ?? {};
4602
- return deletePrivateSettingById(userId, id);
3906
+ return deletePrivateSettingById(userId, id, requestOptions);
4603
3907
  };
4604
3908
  return { mutationFn, ...mutationOptions };
4605
3909
  };
4606
- const useDeletePrivateSettingById = (options) => {
4607
- const mutationOptions = useDeletePrivateSettingByIdMutationOptions(options);
4608
- return useMutation(mutationOptions);
3910
+ const useDeletePrivateSettingById = (options, queryClient) => {
3911
+ return useMutation(
3912
+ useDeletePrivateSettingByIdMutationOptions(options),
3913
+ queryClient
3914
+ );
3915
+ };
3916
+ const getGetPublicSettingByUserAndIdUrl = (appShortName, id) => {
3917
+ return `/api/settings/application/${appShortName}/id/${id}`;
4609
3918
  };
4610
3919
  const useGetPublicSettingByUserAndIdHook = () => {
4611
- const getPublicSettingByUserAndId = useCustomClient();
4612
- return (appShortName, id, signal) => {
4613
- return getPublicSettingByUserAndId({
4614
- url: `/api/settings/application/${appShortName}/id/${id}`,
4615
- method: "get",
4616
- signal
3920
+ const customFetcher = useCustomClient();
3921
+ return (appShortName, id, options) => {
3922
+ return customFetcher(getGetPublicSettingByUserAndIdUrl(appShortName, id), {
3923
+ ...options,
3924
+ method: "GET"
4617
3925
  });
4618
3926
  };
4619
3927
  };
@@ -4621,10 +3929,13 @@ const getGetPublicSettingByUserAndIdQueryKey = (appShortName, id) => {
4621
3929
  return [`/api/settings/application/${appShortName}/id/${id}`];
4622
3930
  };
4623
3931
  const useGetPublicSettingByUserAndIdQueryOptions = (appShortName, id, options) => {
4624
- const { query: queryOptions } = options ?? {};
3932
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4625
3933
  const queryKey = queryOptions?.queryKey ?? getGetPublicSettingByUserAndIdQueryKey(appShortName, id);
4626
3934
  const getPublicSettingByUserAndId = useGetPublicSettingByUserAndIdHook();
4627
- const queryFn = ({ signal }) => getPublicSettingByUserAndId(appShortName, id, signal);
3935
+ const queryFn = ({ signal }) => getPublicSettingByUserAndId(appShortName, id, {
3936
+ signal,
3937
+ ...requestOptions
3938
+ });
4628
3939
  return {
4629
3940
  queryKey,
4630
3941
  queryFn,
@@ -4632,69 +3943,90 @@ const useGetPublicSettingByUserAndIdQueryOptions = (appShortName, id, options) =
4632
3943
  ...queryOptions
4633
3944
  };
4634
3945
  };
4635
- const useGetPublicSettingByUserAndId = (appShortName, id, options) => {
3946
+ function useGetPublicSettingByUserAndId(appShortName, id, options, queryClient) {
4636
3947
  const queryOptions = useGetPublicSettingByUserAndIdQueryOptions(
4637
3948
  appShortName,
4638
3949
  id,
4639
3950
  options
4640
3951
  );
4641
- const query = useQuery(queryOptions);
4642
- query.queryKey = queryOptions.queryKey;
4643
- return query;
3952
+ const query = useQuery(queryOptions, queryClient);
3953
+ return { ...query, queryKey: queryOptions.queryKey };
3954
+ }
3955
+ const getUpdatePublicSettingByAppShortNameAndIdUrl = (appShortName, id) => {
3956
+ return `/api/settings/application/${appShortName}/id/${id}`;
4644
3957
  };
4645
3958
  const useUpdatePublicSettingByAppShortNameAndIdHook = () => {
4646
- const updatePublicSettingByAppShortNameAndId = useCustomClient();
4647
- return (appShortName, id, settingDto) => {
4648
- return updatePublicSettingByAppShortNameAndId({
4649
- url: `/api/settings/application/${appShortName}/id/${id}`,
4650
- method: "put",
4651
- headers: { "Content-Type": "application/json" },
4652
- data: settingDto
4653
- });
3959
+ const customFetcher = useCustomClient();
3960
+ return (appShortName, id, settingDto, options) => {
3961
+ return customFetcher(
3962
+ getUpdatePublicSettingByAppShortNameAndIdUrl(appShortName, id),
3963
+ {
3964
+ ...options,
3965
+ method: "PUT",
3966
+ headers: { "Content-Type": "application/json", ...options?.headers },
3967
+ body: JSON.stringify(settingDto)
3968
+ }
3969
+ );
4654
3970
  };
4655
3971
  };
4656
3972
  const useUpdatePublicSettingByAppShortNameAndIdMutationOptions = (options) => {
4657
- const { mutation: mutationOptions } = options ?? {};
3973
+ const mutationKey = ["updatePublicSettingByAppShortNameAndId"];
3974
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4658
3975
  const updatePublicSettingByAppShortNameAndId = useUpdatePublicSettingByAppShortNameAndIdHook();
4659
3976
  const mutationFn = (props) => {
4660
3977
  const { appShortName, id, data } = props ?? {};
4661
- return updatePublicSettingByAppShortNameAndId(appShortName, id, data);
3978
+ return updatePublicSettingByAppShortNameAndId(
3979
+ appShortName,
3980
+ id,
3981
+ data,
3982
+ requestOptions
3983
+ );
4662
3984
  };
4663
3985
  return { mutationFn, ...mutationOptions };
4664
3986
  };
4665
- const useUpdatePublicSettingByAppShortNameAndId = (options) => {
4666
- const mutationOptions = useUpdatePublicSettingByAppShortNameAndIdMutationOptions(options);
4667
- return useMutation(mutationOptions);
3987
+ const useUpdatePublicSettingByAppShortNameAndId = (options, queryClient) => {
3988
+ return useMutation(
3989
+ useUpdatePublicSettingByAppShortNameAndIdMutationOptions(options),
3990
+ queryClient
3991
+ );
3992
+ };
3993
+ const getDeletePublicSettingByIdUrl = (appShortName, id) => {
3994
+ return `/api/settings/application/${appShortName}/id/${id}`;
4668
3995
  };
4669
3996
  const useDeletePublicSettingByIdHook = () => {
4670
- const deletePublicSettingById = useCustomClient();
4671
- return (appShortName, id) => {
4672
- return deletePublicSettingById({
4673
- url: `/api/settings/application/${appShortName}/id/${id}`,
4674
- method: "delete"
3997
+ const customFetcher = useCustomClient();
3998
+ return (appShortName, id, options) => {
3999
+ return customFetcher(getDeletePublicSettingByIdUrl(appShortName, id), {
4000
+ ...options,
4001
+ method: "DELETE"
4675
4002
  });
4676
4003
  };
4677
4004
  };
4678
4005
  const useDeletePublicSettingByIdMutationOptions = (options) => {
4679
- const { mutation: mutationOptions } = options ?? {};
4006
+ const mutationKey = ["deletePublicSettingById"];
4007
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4680
4008
  const deletePublicSettingById = useDeletePublicSettingByIdHook();
4681
4009
  const mutationFn = (props) => {
4682
4010
  const { appShortName, id } = props ?? {};
4683
- return deletePublicSettingById(appShortName, id);
4011
+ return deletePublicSettingById(appShortName, id, requestOptions);
4684
4012
  };
4685
4013
  return { mutationFn, ...mutationOptions };
4686
4014
  };
4687
- const useDeletePublicSettingById = (options) => {
4688
- const mutationOptions = useDeletePublicSettingByIdMutationOptions(options);
4689
- return useMutation(mutationOptions);
4015
+ const useDeletePublicSettingById = (options, queryClient) => {
4016
+ return useMutation(
4017
+ useDeletePublicSettingByIdMutationOptions(options),
4018
+ queryClient
4019
+ );
4020
+ };
4021
+ const getGetSettingsByUserIdUrl = (userId) => {
4022
+ return `/api/settings/user/${userId}`;
4690
4023
  };
4691
4024
  const useGetSettingsByUserIdHook = () => {
4692
- const getSettingsByUserId = useCustomClient();
4693
- return (userId, signal) => {
4694
- return getSettingsByUserId({
4695
- url: `/api/settings/user/${userId}`,
4696
- method: "get",
4697
- signal
4025
+ const customFetcher = useCustomClient();
4026
+ return (userId, options) => {
4027
+ return customFetcher(getGetSettingsByUserIdUrl(userId), {
4028
+ ...options,
4029
+ method: "GET"
4698
4030
  });
4699
4031
  };
4700
4032
  };
@@ -4702,10 +4034,10 @@ const getGetSettingsByUserIdQueryKey = (userId) => {
4702
4034
  return [`/api/settings/user/${userId}`];
4703
4035
  };
4704
4036
  const useGetSettingsByUserIdQueryOptions = (userId, options) => {
4705
- const { query: queryOptions } = options ?? {};
4037
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4706
4038
  const queryKey = queryOptions?.queryKey ?? getGetSettingsByUserIdQueryKey(userId);
4707
4039
  const getSettingsByUserId = useGetSettingsByUserIdHook();
4708
- const queryFn = ({ signal }) => getSettingsByUserId(userId, signal);
4040
+ const queryFn = ({ signal }) => getSettingsByUserId(userId, { signal, ...requestOptions });
4709
4041
  return {
4710
4042
  queryKey,
4711
4043
  queryFn,
@@ -4713,43 +4045,50 @@ const useGetSettingsByUserIdQueryOptions = (userId, options) => {
4713
4045
  ...queryOptions
4714
4046
  };
4715
4047
  };
4716
- const useGetSettingsByUserId = (userId, options) => {
4048
+ function useGetSettingsByUserId(userId, options, queryClient) {
4717
4049
  const queryOptions = useGetSettingsByUserIdQueryOptions(userId, options);
4718
- const query = useQuery(queryOptions);
4719
- query.queryKey = queryOptions.queryKey;
4720
- return query;
4050
+ const query = useQuery(queryOptions, queryClient);
4051
+ return { ...query, queryKey: queryOptions.queryKey };
4052
+ }
4053
+ const getCreateSettingByUserIdUrl = (userId) => {
4054
+ return `/api/settings/user/${userId}`;
4721
4055
  };
4722
4056
  const useCreateSettingByUserIdHook = () => {
4723
- const createSettingByUserId = useCustomClient();
4724
- return (userId, settingDto) => {
4725
- return createSettingByUserId({
4726
- url: `/api/settings/user/${userId}`,
4727
- method: "post",
4728
- headers: { "Content-Type": "application/json" },
4729
- data: settingDto
4057
+ const customFetcher = useCustomClient();
4058
+ return (userId, settingDto, options) => {
4059
+ return customFetcher(getCreateSettingByUserIdUrl(userId), {
4060
+ ...options,
4061
+ method: "POST",
4062
+ headers: { "Content-Type": "application/json", ...options?.headers },
4063
+ body: JSON.stringify(settingDto)
4730
4064
  });
4731
4065
  };
4732
4066
  };
4733
4067
  const useCreateSettingByUserIdMutationOptions = (options) => {
4734
- const { mutation: mutationOptions } = options ?? {};
4068
+ const mutationKey = ["createSettingByUserId"];
4069
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4735
4070
  const createSettingByUserId = useCreateSettingByUserIdHook();
4736
4071
  const mutationFn = (props) => {
4737
4072
  const { userId, data } = props ?? {};
4738
- return createSettingByUserId(userId, data);
4073
+ return createSettingByUserId(userId, data, requestOptions);
4739
4074
  };
4740
4075
  return { mutationFn, ...mutationOptions };
4741
4076
  };
4742
- const useCreateSettingByUserId = (options) => {
4743
- const mutationOptions = useCreateSettingByUserIdMutationOptions(options);
4744
- return useMutation(mutationOptions);
4077
+ const useCreateSettingByUserId = (options, queryClient) => {
4078
+ return useMutation(
4079
+ useCreateSettingByUserIdMutationOptions(options),
4080
+ queryClient
4081
+ );
4082
+ };
4083
+ const getGetSettingsByAppShortNameUrl = (appShortName) => {
4084
+ return `/api/settings/application/${appShortName}`;
4745
4085
  };
4746
4086
  const useGetSettingsByAppShortNameHook = () => {
4747
- const getSettingsByAppShortName = useCustomClient();
4748
- return (appShortName, signal) => {
4749
- return getSettingsByAppShortName({
4750
- url: `/api/settings/application/${appShortName}`,
4751
- method: "get",
4752
- signal
4087
+ const customFetcher = useCustomClient();
4088
+ return (appShortName, options) => {
4089
+ return customFetcher(getGetSettingsByAppShortNameUrl(appShortName), {
4090
+ ...options,
4091
+ method: "GET"
4753
4092
  });
4754
4093
  };
4755
4094
  };
@@ -4757,10 +4096,10 @@ const getGetSettingsByAppShortNameQueryKey = (appShortName) => {
4757
4096
  return [`/api/settings/application/${appShortName}`];
4758
4097
  };
4759
4098
  const useGetSettingsByAppShortNameQueryOptions = (appShortName, options) => {
4760
- const { query: queryOptions } = options ?? {};
4099
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4761
4100
  const queryKey = queryOptions?.queryKey ?? getGetSettingsByAppShortNameQueryKey(appShortName);
4762
4101
  const getSettingsByAppShortName = useGetSettingsByAppShortNameHook();
4763
- const queryFn = ({ signal }) => getSettingsByAppShortName(appShortName, signal);
4102
+ const queryFn = ({ signal }) => getSettingsByAppShortName(appShortName, { signal, ...requestOptions });
4764
4103
  return {
4765
4104
  queryKey,
4766
4105
  queryFn,
@@ -4768,125 +4107,146 @@ const useGetSettingsByAppShortNameQueryOptions = (appShortName, options) => {
4768
4107
  ...queryOptions
4769
4108
  };
4770
4109
  };
4771
- const useGetSettingsByAppShortName = (appShortName, options) => {
4110
+ function useGetSettingsByAppShortName(appShortName, options, queryClient) {
4772
4111
  const queryOptions = useGetSettingsByAppShortNameQueryOptions(
4773
4112
  appShortName,
4774
4113
  options
4775
4114
  );
4776
- const query = useQuery(queryOptions);
4777
- query.queryKey = queryOptions.queryKey;
4778
- return query;
4115
+ const query = useQuery(queryOptions, queryClient);
4116
+ return { ...query, queryKey: queryOptions.queryKey };
4117
+ }
4118
+ const getCreatePublicSettingByUserIdUrl = (appShortName) => {
4119
+ return `/api/settings/application/${appShortName}`;
4779
4120
  };
4780
4121
  const useCreatePublicSettingByUserIdHook = () => {
4781
- const createPublicSettingByUserId = useCustomClient();
4782
- return (appShortName, settingDto) => {
4783
- return createPublicSettingByUserId({
4784
- url: `/api/settings/application/${appShortName}`,
4785
- method: "post",
4786
- headers: { "Content-Type": "application/json" },
4787
- data: settingDto
4122
+ const customFetcher = useCustomClient();
4123
+ return (appShortName, settingDto, options) => {
4124
+ return customFetcher(getCreatePublicSettingByUserIdUrl(appShortName), {
4125
+ ...options,
4126
+ method: "POST",
4127
+ headers: { "Content-Type": "application/json", ...options?.headers },
4128
+ body: JSON.stringify(settingDto)
4788
4129
  });
4789
4130
  };
4790
4131
  };
4791
4132
  const useCreatePublicSettingByUserIdMutationOptions = (options) => {
4792
- const { mutation: mutationOptions } = options ?? {};
4133
+ const mutationKey = ["createPublicSettingByUserId"];
4134
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4793
4135
  const createPublicSettingByUserId = useCreatePublicSettingByUserIdHook();
4794
4136
  const mutationFn = (props) => {
4795
4137
  const { appShortName, data } = props ?? {};
4796
- return createPublicSettingByUserId(appShortName, data);
4138
+ return createPublicSettingByUserId(appShortName, data, requestOptions);
4797
4139
  };
4798
4140
  return { mutationFn, ...mutationOptions };
4799
4141
  };
4800
- const useCreatePublicSettingByUserId = (options) => {
4801
- const mutationOptions = useCreatePublicSettingByUserIdMutationOptions(options);
4802
- return useMutation(mutationOptions);
4142
+ const useCreatePublicSettingByUserId = (options, queryClient) => {
4143
+ return useMutation(
4144
+ useCreatePublicSettingByUserIdMutationOptions(options),
4145
+ queryClient
4146
+ );
4147
+ };
4148
+ const getUploadBundleUrl = (key) => {
4149
+ return `/api/apps/key/${key}/bundle`;
4803
4150
  };
4804
4151
  const useUploadBundleHook = () => {
4805
- const uploadBundle = useCustomClient();
4806
- return (key, uploadBundleBody) => {
4152
+ const customFetcher = useCustomClient();
4153
+ return (key, uploadBundleBody, options) => {
4807
4154
  const formData = new FormData();
4808
- formData.append("bundleFile", uploadBundleBody.bundleFile);
4809
- return uploadBundle({
4810
- url: `/api/apps/key/${key}/bundle`,
4811
- method: "put",
4812
- headers: { "Content-Type": "multipart/form-data" },
4813
- data: formData
4155
+ formData.append(`bundleFile`, uploadBundleBody.bundleFile);
4156
+ return customFetcher(getUploadBundleUrl(key), {
4157
+ ...options,
4158
+ method: "PUT",
4159
+ body: formData
4814
4160
  });
4815
4161
  };
4816
4162
  };
4817
4163
  const useUploadBundleMutationOptions = (options) => {
4818
- const { mutation: mutationOptions } = options ?? {};
4164
+ const mutationKey = ["uploadBundle"];
4165
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4819
4166
  const uploadBundle = useUploadBundleHook();
4820
4167
  const mutationFn = (props) => {
4821
4168
  const { key, data } = props ?? {};
4822
- return uploadBundle(key, data);
4169
+ return uploadBundle(key, data, requestOptions);
4823
4170
  };
4824
4171
  return { mutationFn, ...mutationOptions };
4825
4172
  };
4826
- const useUploadBundle = (options) => {
4827
- const mutationOptions = useUploadBundleMutationOptions(options);
4828
- return useMutation(mutationOptions);
4173
+ const useUploadBundle = (options, queryClient) => {
4174
+ return useMutation(useUploadBundleMutationOptions(options), queryClient);
4175
+ };
4176
+ const getGetAllAppsUrl = () => {
4177
+ return `/api/apps`;
4829
4178
  };
4830
4179
  const useGetAllAppsHook = () => {
4831
- const getAllApps = useCustomClient();
4832
- return (signal) => {
4833
- return getAllApps({ url: `/api/apps`, method: "get", signal });
4180
+ const customFetcher = useCustomClient();
4181
+ return (options) => {
4182
+ return customFetcher(getGetAllAppsUrl(), {
4183
+ ...options,
4184
+ method: "GET"
4185
+ });
4834
4186
  };
4835
4187
  };
4836
4188
  const getGetAllAppsQueryKey = () => {
4837
4189
  return [`/api/apps`];
4838
4190
  };
4839
4191
  const useGetAllAppsQueryOptions = (options) => {
4840
- const { query: queryOptions } = options ?? {};
4192
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4841
4193
  const queryKey = queryOptions?.queryKey ?? getGetAllAppsQueryKey();
4842
4194
  const getAllApps = useGetAllAppsHook();
4843
- const queryFn = ({ signal }) => getAllApps(signal);
4195
+ const queryFn = ({ signal }) => getAllApps({ signal, ...requestOptions });
4844
4196
  return { queryKey, queryFn, ...queryOptions };
4845
4197
  };
4846
- const useGetAllApps = (options) => {
4198
+ function useGetAllApps(options, queryClient) {
4847
4199
  const queryOptions = useGetAllAppsQueryOptions(options);
4848
- const query = useQuery(queryOptions);
4849
- query.queryKey = queryOptions.queryKey;
4850
- return query;
4200
+ const query = useQuery(queryOptions, queryClient);
4201
+ return { ...query, queryKey: queryOptions.queryKey };
4202
+ }
4203
+ const getCreateOrUpdateAppUrl = () => {
4204
+ return `/api/apps`;
4851
4205
  };
4852
4206
  const useCreateOrUpdateAppHook = () => {
4853
- const createOrUpdateApp = useCustomClient();
4854
- return (appDto) => {
4855
- return createOrUpdateApp({
4856
- url: `/api/apps`,
4857
- method: "post",
4858
- headers: { "Content-Type": "application/json" },
4859
- data: appDto
4207
+ const customFetcher = useCustomClient();
4208
+ return (appDto, options) => {
4209
+ return customFetcher(getCreateOrUpdateAppUrl(), {
4210
+ ...options,
4211
+ method: "POST",
4212
+ headers: { "Content-Type": "application/json", ...options?.headers },
4213
+ body: JSON.stringify(appDto)
4860
4214
  });
4861
4215
  };
4862
4216
  };
4863
4217
  const useCreateOrUpdateAppMutationOptions = (options) => {
4864
- const { mutation: mutationOptions } = options ?? {};
4218
+ const mutationKey = ["createOrUpdateApp"];
4219
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4865
4220
  const createOrUpdateApp = useCreateOrUpdateAppHook();
4866
4221
  const mutationFn = (props) => {
4867
4222
  const { data } = props ?? {};
4868
- return createOrUpdateApp(data);
4223
+ return createOrUpdateApp(data, requestOptions);
4869
4224
  };
4870
4225
  return { mutationFn, ...mutationOptions };
4871
4226
  };
4872
- const useCreateOrUpdateApp = (options) => {
4873
- const mutationOptions = useCreateOrUpdateAppMutationOptions(options);
4874
- return useMutation(mutationOptions);
4227
+ const useCreateOrUpdateApp = (options, queryClient) => {
4228
+ return useMutation(useCreateOrUpdateAppMutationOptions(options), queryClient);
4229
+ };
4230
+ const getGetAppByKeyUrl = (key) => {
4231
+ return `/api/apps/key/${key}`;
4875
4232
  };
4876
4233
  const useGetAppByKeyHook = () => {
4877
- const getAppByKey = useCustomClient();
4878
- return (key, signal) => {
4879
- return getAppByKey({ url: `/api/apps/key/${key}`, method: "get", signal });
4234
+ const customFetcher = useCustomClient();
4235
+ return (key, options) => {
4236
+ return customFetcher(getGetAppByKeyUrl(key), {
4237
+ ...options,
4238
+ method: "GET"
4239
+ });
4880
4240
  };
4881
4241
  };
4882
4242
  const getGetAppByKeyQueryKey = (key) => {
4883
4243
  return [`/api/apps/key/${key}`];
4884
4244
  };
4885
4245
  const useGetAppByKeyQueryOptions = (key, options) => {
4886
- const { query: queryOptions } = options ?? {};
4246
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4887
4247
  const queryKey = queryOptions?.queryKey ?? getGetAppByKeyQueryKey(key);
4888
4248
  const getAppByKey = useGetAppByKeyHook();
4889
- const queryFn = ({ signal }) => getAppByKey(key, signal);
4249
+ const queryFn = ({ signal }) => getAppByKey(key, { signal, ...requestOptions });
4890
4250
  return {
4891
4251
  queryKey,
4892
4252
  queryFn,
@@ -4894,84 +4254,102 @@ const useGetAppByKeyQueryOptions = (key, options) => {
4894
4254
  ...queryOptions
4895
4255
  };
4896
4256
  };
4897
- const useGetAppByKey = (key, options) => {
4257
+ function useGetAppByKey(key, options, queryClient) {
4898
4258
  const queryOptions = useGetAppByKeyQueryOptions(key, options);
4899
- const query = useQuery(queryOptions);
4900
- query.queryKey = queryOptions.queryKey;
4901
- return query;
4259
+ const query = useQuery(queryOptions, queryClient);
4260
+ return { ...query, queryKey: queryOptions.queryKey };
4261
+ }
4262
+ const getDeleteAppByKeyUrl = (key) => {
4263
+ return `/api/apps/key/${key}`;
4902
4264
  };
4903
4265
  const useDeleteAppByKeyHook = () => {
4904
- const deleteAppByKey = useCustomClient();
4905
- return (key) => {
4906
- return deleteAppByKey({ url: `/api/apps/key/${key}`, method: "delete" });
4266
+ const customFetcher = useCustomClient();
4267
+ return (key, options) => {
4268
+ return customFetcher(getDeleteAppByKeyUrl(key), {
4269
+ ...options,
4270
+ method: "DELETE"
4271
+ });
4907
4272
  };
4908
4273
  };
4909
4274
  const useDeleteAppByKeyMutationOptions = (options) => {
4910
- const { mutation: mutationOptions } = options ?? {};
4275
+ const mutationKey = ["deleteAppByKey"];
4276
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4911
4277
  const deleteAppByKey = useDeleteAppByKeyHook();
4912
4278
  const mutationFn = (props) => {
4913
4279
  const { key } = props ?? {};
4914
- return deleteAppByKey(key);
4280
+ return deleteAppByKey(key, requestOptions);
4915
4281
  };
4916
4282
  return { mutationFn, ...mutationOptions };
4917
4283
  };
4918
- const useDeleteAppByKey = (options) => {
4919
- const mutationOptions = useDeleteAppByKeyMutationOptions(options);
4920
- return useMutation(mutationOptions);
4284
+ const useDeleteAppByKey = (options, queryClient) => {
4285
+ return useMutation(useDeleteAppByKeyMutationOptions(options), queryClient);
4286
+ };
4287
+ const getGetAllServicesUrl = () => {
4288
+ return `/api/apps/services`;
4921
4289
  };
4922
4290
  const useGetAllServicesHook = () => {
4923
- const getAllServices = useCustomClient();
4924
- return (signal) => {
4925
- return getAllServices({ url: `/api/apps/services`, method: "get", signal });
4291
+ const customFetcher = useCustomClient();
4292
+ return (options) => {
4293
+ return customFetcher(getGetAllServicesUrl(), {
4294
+ ...options,
4295
+ method: "GET"
4296
+ });
4926
4297
  };
4927
4298
  };
4928
4299
  const getGetAllServicesQueryKey = () => {
4929
4300
  return [`/api/apps/services`];
4930
4301
  };
4931
4302
  const useGetAllServicesQueryOptions = (options) => {
4932
- const { query: queryOptions } = options ?? {};
4303
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4933
4304
  const queryKey = queryOptions?.queryKey ?? getGetAllServicesQueryKey();
4934
4305
  const getAllServices = useGetAllServicesHook();
4935
- const queryFn = ({ signal }) => getAllServices(signal);
4306
+ const queryFn = ({ signal }) => getAllServices({ signal, ...requestOptions });
4936
4307
  return { queryKey, queryFn, ...queryOptions };
4937
4308
  };
4938
- const useGetAllServices = (options) => {
4309
+ function useGetAllServices(options, queryClient) {
4939
4310
  const queryOptions = useGetAllServicesQueryOptions(options);
4940
- const query = useQuery(queryOptions);
4941
- query.queryKey = queryOptions.queryKey;
4942
- return query;
4311
+ const query = useQuery(queryOptions, queryClient);
4312
+ return { ...query, queryKey: queryOptions.queryKey };
4313
+ }
4314
+ const getCreateOrUpdateServiceUrl = () => {
4315
+ return `/api/apps/services`;
4943
4316
  };
4944
4317
  const useCreateOrUpdateServiceHook = () => {
4945
- const createOrUpdateService = useCustomClient();
4946
- return (serviceDto) => {
4947
- return createOrUpdateService({
4948
- url: `/api/apps/services`,
4949
- method: "post",
4950
- headers: { "Content-Type": "application/json" },
4951
- data: serviceDto
4318
+ const customFetcher = useCustomClient();
4319
+ return (serviceDto, options) => {
4320
+ return customFetcher(getCreateOrUpdateServiceUrl(), {
4321
+ ...options,
4322
+ method: "POST",
4323
+ headers: { "Content-Type": "application/json", ...options?.headers },
4324
+ body: JSON.stringify(serviceDto)
4952
4325
  });
4953
4326
  };
4954
4327
  };
4955
4328
  const useCreateOrUpdateServiceMutationOptions = (options) => {
4956
- const { mutation: mutationOptions } = options ?? {};
4329
+ const mutationKey = ["createOrUpdateService"];
4330
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4957
4331
  const createOrUpdateService = useCreateOrUpdateServiceHook();
4958
4332
  const mutationFn = (props) => {
4959
4333
  const { data } = props ?? {};
4960
- return createOrUpdateService(data);
4334
+ return createOrUpdateService(data, requestOptions);
4961
4335
  };
4962
4336
  return { mutationFn, ...mutationOptions };
4963
4337
  };
4964
- const useCreateOrUpdateService = (options) => {
4965
- const mutationOptions = useCreateOrUpdateServiceMutationOptions(options);
4966
- return useMutation(mutationOptions);
4338
+ const useCreateOrUpdateService = (options, queryClient) => {
4339
+ return useMutation(
4340
+ useCreateOrUpdateServiceMutationOptions(options),
4341
+ queryClient
4342
+ );
4343
+ };
4344
+ const getGetServiceByKeyUrl = (key) => {
4345
+ return `/api/apps/services/key/${key}`;
4967
4346
  };
4968
4347
  const useGetServiceByKeyHook = () => {
4969
- const getServiceByKey = useCustomClient();
4970
- return (key, signal) => {
4971
- return getServiceByKey({
4972
- url: `/api/apps/services/key/${key}`,
4973
- method: "get",
4974
- signal
4348
+ const customFetcher = useCustomClient();
4349
+ return (key, options) => {
4350
+ return customFetcher(getGetServiceByKeyUrl(key), {
4351
+ ...options,
4352
+ method: "GET"
4975
4353
  });
4976
4354
  };
4977
4355
  };
@@ -4979,10 +4357,10 @@ const getGetServiceByKeyQueryKey = (key) => {
4979
4357
  return [`/api/apps/services/key/${key}`];
4980
4358
  };
4981
4359
  const useGetServiceByKeyQueryOptions = (key, options) => {
4982
- const { query: queryOptions } = options ?? {};
4360
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4983
4361
  const queryKey = queryOptions?.queryKey ?? getGetServiceByKeyQueryKey(key);
4984
4362
  const getServiceByKey = useGetServiceByKeyHook();
4985
- const queryFn = ({ signal }) => getServiceByKey(key, signal);
4363
+ const queryFn = ({ signal }) => getServiceByKey(key, { signal, ...requestOptions });
4986
4364
  return {
4987
4365
  queryKey,
4988
4366
  queryFn,
@@ -4990,41 +4368,48 @@ const useGetServiceByKeyQueryOptions = (key, options) => {
4990
4368
  ...queryOptions
4991
4369
  };
4992
4370
  };
4993
- const useGetServiceByKey = (key, options) => {
4371
+ function useGetServiceByKey(key, options, queryClient) {
4994
4372
  const queryOptions = useGetServiceByKeyQueryOptions(key, options);
4995
- const query = useQuery(queryOptions);
4996
- query.queryKey = queryOptions.queryKey;
4997
- return query;
4373
+ const query = useQuery(queryOptions, queryClient);
4374
+ return { ...query, queryKey: queryOptions.queryKey };
4375
+ }
4376
+ const getDeleteServiceByKeyUrl = (key) => {
4377
+ return `/api/apps/services/key/${key}`;
4998
4378
  };
4999
4379
  const useDeleteServiceByKeyHook = () => {
5000
- const deleteServiceByKey = useCustomClient();
5001
- return (key) => {
5002
- return deleteServiceByKey({
5003
- url: `/api/apps/services/key/${key}`,
5004
- method: "delete"
4380
+ const customFetcher = useCustomClient();
4381
+ return (key, options) => {
4382
+ return customFetcher(getDeleteServiceByKeyUrl(key), {
4383
+ ...options,
4384
+ method: "DELETE"
5005
4385
  });
5006
4386
  };
5007
4387
  };
5008
4388
  const useDeleteServiceByKeyMutationOptions = (options) => {
5009
- const { mutation: mutationOptions } = options ?? {};
4389
+ const mutationKey = ["deleteServiceByKey"];
4390
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5010
4391
  const deleteServiceByKey = useDeleteServiceByKeyHook();
5011
4392
  const mutationFn = (props) => {
5012
4393
  const { key } = props ?? {};
5013
- return deleteServiceByKey(key);
4394
+ return deleteServiceByKey(key, requestOptions);
5014
4395
  };
5015
4396
  return { mutationFn, ...mutationOptions };
5016
4397
  };
5017
- const useDeleteServiceByKey = (options) => {
5018
- const mutationOptions = useDeleteServiceByKeyMutationOptions(options);
5019
- return useMutation(mutationOptions);
4398
+ const useDeleteServiceByKey = (options, queryClient) => {
4399
+ return useMutation(
4400
+ useDeleteServiceByKeyMutationOptions(options),
4401
+ queryClient
4402
+ );
4403
+ };
4404
+ const getGetAllCategoriesUrl = () => {
4405
+ return `/api/apps/categories`;
5020
4406
  };
5021
4407
  const useGetAllCategoriesHook = () => {
5022
- const getAllCategories = useCustomClient();
5023
- return (signal) => {
5024
- return getAllCategories({
5025
- url: `/api/apps/categories`,
5026
- method: "get",
5027
- signal
4408
+ const customFetcher = useCustomClient();
4409
+ return (options) => {
4410
+ return customFetcher(getGetAllCategoriesUrl(), {
4411
+ ...options,
4412
+ method: "GET"
5028
4413
  });
5029
4414
  };
5030
4415
  };
@@ -5032,49 +4417,56 @@ const getGetAllCategoriesQueryKey = () => {
5032
4417
  return [`/api/apps/categories`];
5033
4418
  };
5034
4419
  const useGetAllCategoriesQueryOptions = (options) => {
5035
- const { query: queryOptions } = options ?? {};
4420
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5036
4421
  const queryKey = queryOptions?.queryKey ?? getGetAllCategoriesQueryKey();
5037
4422
  const getAllCategories = useGetAllCategoriesHook();
5038
- const queryFn = ({ signal }) => getAllCategories(signal);
4423
+ const queryFn = ({ signal }) => getAllCategories({ signal, ...requestOptions });
5039
4424
  return { queryKey, queryFn, ...queryOptions };
5040
4425
  };
5041
- const useGetAllCategories = (options) => {
4426
+ function useGetAllCategories(options, queryClient) {
5042
4427
  const queryOptions = useGetAllCategoriesQueryOptions(options);
5043
- const query = useQuery(queryOptions);
5044
- query.queryKey = queryOptions.queryKey;
5045
- return query;
4428
+ const query = useQuery(queryOptions, queryClient);
4429
+ return { ...query, queryKey: queryOptions.queryKey };
4430
+ }
4431
+ const getCreateOrUpdateCategoryUrl = () => {
4432
+ return `/api/apps/categories`;
5046
4433
  };
5047
4434
  const useCreateOrUpdateCategoryHook = () => {
5048
- const createOrUpdateCategory = useCustomClient();
5049
- return (categoryDto) => {
5050
- return createOrUpdateCategory({
5051
- url: `/api/apps/categories`,
5052
- method: "post",
5053
- headers: { "Content-Type": "application/json" },
5054
- data: categoryDto
4435
+ const customFetcher = useCustomClient();
4436
+ return (categoryDto, options) => {
4437
+ return customFetcher(getCreateOrUpdateCategoryUrl(), {
4438
+ ...options,
4439
+ method: "POST",
4440
+ headers: { "Content-Type": "application/json", ...options?.headers },
4441
+ body: JSON.stringify(categoryDto)
5055
4442
  });
5056
4443
  };
5057
4444
  };
5058
4445
  const useCreateOrUpdateCategoryMutationOptions = (options) => {
5059
- const { mutation: mutationOptions } = options ?? {};
4446
+ const mutationKey = ["createOrUpdateCategory"];
4447
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5060
4448
  const createOrUpdateCategory = useCreateOrUpdateCategoryHook();
5061
4449
  const mutationFn = (props) => {
5062
4450
  const { data } = props ?? {};
5063
- return createOrUpdateCategory(data);
4451
+ return createOrUpdateCategory(data, requestOptions);
5064
4452
  };
5065
4453
  return { mutationFn, ...mutationOptions };
5066
4454
  };
5067
- const useCreateOrUpdateCategory = (options) => {
5068
- const mutationOptions = useCreateOrUpdateCategoryMutationOptions(options);
5069
- return useMutation(mutationOptions);
4455
+ const useCreateOrUpdateCategory = (options, queryClient) => {
4456
+ return useMutation(
4457
+ useCreateOrUpdateCategoryMutationOptions(options),
4458
+ queryClient
4459
+ );
4460
+ };
4461
+ const getGetCategoryByIdUrl = (id) => {
4462
+ return `/api/apps/categories/id/${id}`;
5070
4463
  };
5071
4464
  const useGetCategoryByIdHook = () => {
5072
- const getCategoryById = useCustomClient();
5073
- return (id, signal) => {
5074
- return getCategoryById({
5075
- url: `/api/apps/categories/id/${id}`,
5076
- method: "get",
5077
- signal
4465
+ const customFetcher = useCustomClient();
4466
+ return (id, options) => {
4467
+ return customFetcher(getGetCategoryByIdUrl(id), {
4468
+ ...options,
4469
+ method: "GET"
5078
4470
  });
5079
4471
  };
5080
4472
  };
@@ -5082,10 +4474,10 @@ const getGetCategoryByIdQueryKey = (id) => {
5082
4474
  return [`/api/apps/categories/id/${id}`];
5083
4475
  };
5084
4476
  const useGetCategoryByIdQueryOptions = (id, options) => {
5085
- const { query: queryOptions } = options ?? {};
4477
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5086
4478
  const queryKey = queryOptions?.queryKey ?? getGetCategoryByIdQueryKey(id);
5087
4479
  const getCategoryById = useGetCategoryByIdHook();
5088
- const queryFn = ({ signal }) => getCategoryById(id, signal);
4480
+ const queryFn = ({ signal }) => getCategoryById(id, { signal, ...requestOptions });
5089
4481
  return {
5090
4482
  queryKey,
5091
4483
  queryFn,
@@ -5093,41 +4485,48 @@ const useGetCategoryByIdQueryOptions = (id, options) => {
5093
4485
  ...queryOptions
5094
4486
  };
5095
4487
  };
5096
- const useGetCategoryById = (id, options) => {
4488
+ function useGetCategoryById(id, options, queryClient) {
5097
4489
  const queryOptions = useGetCategoryByIdQueryOptions(id, options);
5098
- const query = useQuery(queryOptions);
5099
- query.queryKey = queryOptions.queryKey;
5100
- return query;
4490
+ const query = useQuery(queryOptions, queryClient);
4491
+ return { ...query, queryKey: queryOptions.queryKey };
4492
+ }
4493
+ const getDeleteCategoryByIdUrl = (id) => {
4494
+ return `/api/apps/categories/id/${id}`;
5101
4495
  };
5102
4496
  const useDeleteCategoryByIdHook = () => {
5103
- const deleteCategoryById = useCustomClient();
5104
- return (id) => {
5105
- return deleteCategoryById({
5106
- url: `/api/apps/categories/id/${id}`,
5107
- method: "delete"
4497
+ const customFetcher = useCustomClient();
4498
+ return (id, options) => {
4499
+ return customFetcher(getDeleteCategoryByIdUrl(id), {
4500
+ ...options,
4501
+ method: "DELETE"
5108
4502
  });
5109
4503
  };
5110
4504
  };
5111
4505
  const useDeleteCategoryByIdMutationOptions = (options) => {
5112
- const { mutation: mutationOptions } = options ?? {};
4506
+ const mutationKey = ["deleteCategoryById"];
4507
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5113
4508
  const deleteCategoryById = useDeleteCategoryByIdHook();
5114
4509
  const mutationFn = (props) => {
5115
4510
  const { id } = props ?? {};
5116
- return deleteCategoryById(id);
4511
+ return deleteCategoryById(id, requestOptions);
5117
4512
  };
5118
4513
  return { mutationFn, ...mutationOptions };
5119
4514
  };
5120
- const useDeleteCategoryById = (options) => {
5121
- const mutationOptions = useDeleteCategoryByIdMutationOptions(options);
5122
- return useMutation(mutationOptions);
4515
+ const useDeleteCategoryById = (options, queryClient) => {
4516
+ return useMutation(
4517
+ useDeleteCategoryByIdMutationOptions(options),
4518
+ queryClient
4519
+ );
4520
+ };
4521
+ const getStreamEventsUrl = () => {
4522
+ return `/eventstream/activitylog`;
5123
4523
  };
5124
4524
  const useStreamEventsHook = () => {
5125
- const streamEvents = useCustomClient();
5126
- return (signal) => {
5127
- return streamEvents({
5128
- url: `/eventstream/activitylog`,
5129
- method: "get",
5130
- signal
4525
+ const customFetcher = useCustomClient();
4526
+ return (options) => {
4527
+ return customFetcher(getStreamEventsUrl(), {
4528
+ ...options,
4529
+ method: "GET"
5131
4530
  });
5132
4531
  };
5133
4532
  };
@@ -5135,25 +4534,26 @@ const getStreamEventsQueryKey = () => {
5135
4534
  return [`/eventstream/activitylog`];
5136
4535
  };
5137
4536
  const useStreamEventsQueryOptions = (options) => {
5138
- const { query: queryOptions } = options ?? {};
4537
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5139
4538
  const queryKey = queryOptions?.queryKey ?? getStreamEventsQueryKey();
5140
4539
  const streamEvents = useStreamEventsHook();
5141
- const queryFn = ({ signal }) => streamEvents(signal);
4540
+ const queryFn = ({ signal }) => streamEvents({ signal, ...requestOptions });
5142
4541
  return { queryKey, queryFn, ...queryOptions };
5143
4542
  };
5144
- const useStreamEvents = (options) => {
4543
+ function useStreamEvents(options, queryClient) {
5145
4544
  const queryOptions = useStreamEventsQueryOptions(options);
5146
- const query = useQuery(queryOptions);
5147
- query.queryKey = queryOptions.queryKey;
5148
- return query;
4545
+ const query = useQuery(queryOptions, queryClient);
4546
+ return { ...query, queryKey: queryOptions.queryKey };
4547
+ }
4548
+ const getGetCurrentEnvironmentUrl = () => {
4549
+ return `/_discovery/environments/current`;
5149
4550
  };
5150
4551
  const useGetCurrentEnvironmentHook = () => {
5151
- const getCurrentEnvironment = useCustomClient();
5152
- return (signal) => {
5153
- return getCurrentEnvironment({
5154
- url: `/_discovery/environments/current`,
5155
- method: "get",
5156
- signal
4552
+ const customFetcher = useCustomClient();
4553
+ return (options) => {
4554
+ return customFetcher(getGetCurrentEnvironmentUrl(), {
4555
+ ...options,
4556
+ method: "GET"
5157
4557
  });
5158
4558
  };
5159
4559
  };
@@ -5161,28 +4561,49 @@ const getGetCurrentEnvironmentQueryKey = () => {
5161
4561
  return [`/_discovery/environments/current`];
5162
4562
  };
5163
4563
  const useGetCurrentEnvironmentQueryOptions = (options) => {
5164
- const { query: queryOptions } = options ?? {};
4564
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5165
4565
  const queryKey = queryOptions?.queryKey ?? getGetCurrentEnvironmentQueryKey();
5166
4566
  const getCurrentEnvironment = useGetCurrentEnvironmentHook();
5167
- const queryFn = ({ signal }) => getCurrentEnvironment(signal);
4567
+ const queryFn = ({ signal }) => getCurrentEnvironment({ signal, ...requestOptions });
5168
4568
  return { queryKey, queryFn, ...queryOptions };
5169
4569
  };
5170
- const useGetCurrentEnvironment = (options) => {
4570
+ function useGetCurrentEnvironment(options, queryClient) {
5171
4571
  const queryOptions = useGetCurrentEnvironmentQueryOptions(options);
5172
- const query = useQuery(queryOptions);
5173
- query.queryKey = queryOptions.queryKey;
5174
- return query;
4572
+ const query = useQuery(queryOptions, queryClient);
4573
+ return { ...query, queryKey: queryOptions.queryKey };
4574
+ }
4575
+ const AdminDtoAdminType = {
4576
+ ServicePrincipal: "ServicePrincipal",
4577
+ User: "User"
4578
+ };
4579
+ const AlarmDtoSeverity = {
4580
+ LOW: "LOW",
4581
+ MEDIUM: "MEDIUM",
4582
+ HIGH: "HIGH",
4583
+ CRITICAL: "CRITICAL"
4584
+ };
4585
+ const AlarmDtoState = {
4586
+ ACTIVE: "ACTIVE",
4587
+ CLEARED: "CLEARED"
5175
4588
  };
5176
4589
  const GetAllRomaConfigurationTypes200Item = {
5177
4590
  servicebus: "servicebus"
5178
4591
  };
4592
+ const RaiseAlarmRequestSeverity = {
4593
+ LOW: "LOW",
4594
+ MEDIUM: "MEDIUM",
4595
+ HIGH: "HIGH",
4596
+ CRITICAL: "CRITICAL"
4597
+ };
4598
+ const getGetRomaConfigurationByIdUrl = (id) => {
4599
+ return `/api/configurations/id/${id}`;
4600
+ };
5179
4601
  const useGetRomaConfigurationByIdHook = () => {
5180
- const getRomaConfigurationById = useCustomClient();
5181
- return (id, signal) => {
5182
- return getRomaConfigurationById({
5183
- url: `/api/configurations/id/${id}`,
5184
- method: "get",
5185
- signal
4602
+ const customFetcher = useCustomClient();
4603
+ return (id, options) => {
4604
+ return customFetcher(getGetRomaConfigurationByIdUrl(id), {
4605
+ ...options,
4606
+ method: "GET"
5186
4607
  });
5187
4608
  };
5188
4609
  };
@@ -5190,10 +4611,10 @@ const getGetRomaConfigurationByIdQueryKey = (id) => {
5190
4611
  return [`/api/configurations/id/${id}`];
5191
4612
  };
5192
4613
  const useGetRomaConfigurationByIdQueryOptions = (id, options) => {
5193
- const { query: queryOptions } = options ?? {};
4614
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5194
4615
  const queryKey = queryOptions?.queryKey ?? getGetRomaConfigurationByIdQueryKey(id);
5195
4616
  const getRomaConfigurationById = useGetRomaConfigurationByIdHook();
5196
- const queryFn = ({ signal }) => getRomaConfigurationById(id, signal);
4617
+ const queryFn = ({ signal }) => getRomaConfigurationById(id, { signal, ...requestOptions });
5197
4618
  return {
5198
4619
  queryKey,
5199
4620
  queryFn,
@@ -5201,65 +4622,78 @@ const useGetRomaConfigurationByIdQueryOptions = (id, options) => {
5201
4622
  ...queryOptions
5202
4623
  };
5203
4624
  };
5204
- const useGetRomaConfigurationById = (id, options) => {
4625
+ function useGetRomaConfigurationById(id, options, queryClient) {
5205
4626
  const queryOptions = useGetRomaConfigurationByIdQueryOptions(id, options);
5206
- const query = useQuery(queryOptions);
5207
- query.queryKey = queryOptions.queryKey;
5208
- return query;
4627
+ const query = useQuery(queryOptions, queryClient);
4628
+ return { ...query, queryKey: queryOptions.queryKey };
4629
+ }
4630
+ const getUpdateRomaConfigurationUrl = (id) => {
4631
+ return `/api/configurations/id/${id}`;
5209
4632
  };
5210
4633
  const useUpdateRomaConfigurationHook = () => {
5211
- const updateRomaConfiguration = useCustomClient();
5212
- return (id, romaConfigurationDto) => {
5213
- return updateRomaConfiguration({
5214
- url: `/api/configurations/id/${id}`,
5215
- method: "put",
5216
- headers: { "Content-Type": "application/json" },
5217
- data: romaConfigurationDto
4634
+ const customFetcher = useCustomClient();
4635
+ return (id, romaConfigurationDto, options) => {
4636
+ return customFetcher(getUpdateRomaConfigurationUrl(id), {
4637
+ ...options,
4638
+ method: "PUT",
4639
+ headers: { "Content-Type": "application/json", ...options?.headers },
4640
+ body: JSON.stringify(romaConfigurationDto)
5218
4641
  });
5219
4642
  };
5220
4643
  };
5221
4644
  const useUpdateRomaConfigurationMutationOptions = (options) => {
5222
- const { mutation: mutationOptions } = options ?? {};
4645
+ const mutationKey = ["updateRomaConfiguration"];
4646
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5223
4647
  const updateRomaConfiguration = useUpdateRomaConfigurationHook();
5224
4648
  const mutationFn = (props) => {
5225
4649
  const { id, data } = props ?? {};
5226
- return updateRomaConfiguration(id, data);
4650
+ return updateRomaConfiguration(id, data, requestOptions);
5227
4651
  };
5228
4652
  return { mutationFn, ...mutationOptions };
5229
4653
  };
5230
- const useUpdateRomaConfiguration = (options) => {
5231
- const mutationOptions = useUpdateRomaConfigurationMutationOptions(options);
5232
- return useMutation(mutationOptions);
4654
+ const useUpdateRomaConfiguration = (options, queryClient) => {
4655
+ return useMutation(
4656
+ useUpdateRomaConfigurationMutationOptions(options),
4657
+ queryClient
4658
+ );
4659
+ };
4660
+ const getDeleteRomaConfigurationUrl = (id) => {
4661
+ return `/api/configurations/id/${id}`;
5233
4662
  };
5234
4663
  const useDeleteRomaConfigurationHook = () => {
5235
- const deleteRomaConfiguration = useCustomClient();
5236
- return (id) => {
5237
- return deleteRomaConfiguration({
5238
- url: `/api/configurations/id/${id}`,
5239
- method: "delete"
4664
+ const customFetcher = useCustomClient();
4665
+ return (id, options) => {
4666
+ return customFetcher(getDeleteRomaConfigurationUrl(id), {
4667
+ ...options,
4668
+ method: "DELETE"
5240
4669
  });
5241
4670
  };
5242
4671
  };
5243
4672
  const useDeleteRomaConfigurationMutationOptions = (options) => {
5244
- const { mutation: mutationOptions } = options ?? {};
4673
+ const mutationKey = ["deleteRomaConfiguration"];
4674
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5245
4675
  const deleteRomaConfiguration = useDeleteRomaConfigurationHook();
5246
4676
  const mutationFn = (props) => {
5247
4677
  const { id } = props ?? {};
5248
- return deleteRomaConfiguration(id);
4678
+ return deleteRomaConfiguration(id, requestOptions);
5249
4679
  };
5250
4680
  return { mutationFn, ...mutationOptions };
5251
4681
  };
5252
- const useDeleteRomaConfiguration = (options) => {
5253
- const mutationOptions = useDeleteRomaConfigurationMutationOptions(options);
5254
- return useMutation(mutationOptions);
4682
+ const useDeleteRomaConfiguration = (options, queryClient) => {
4683
+ return useMutation(
4684
+ useDeleteRomaConfigurationMutationOptions(options),
4685
+ queryClient
4686
+ );
4687
+ };
4688
+ const getGetAllRomaConfigurationUrl = () => {
4689
+ return `/api/configurations`;
5255
4690
  };
5256
4691
  const useGetAllRomaConfigurationHook = () => {
5257
- const getAllRomaConfiguration = useCustomClient();
5258
- return (signal) => {
5259
- return getAllRomaConfiguration({
5260
- url: `/api/configurations`,
5261
- method: "get",
5262
- signal
4692
+ const customFetcher = useCustomClient();
4693
+ return (options) => {
4694
+ return customFetcher(getGetAllRomaConfigurationUrl(), {
4695
+ ...options,
4696
+ method: "GET"
5263
4697
  });
5264
4698
  };
5265
4699
  };
@@ -5267,49 +4701,56 @@ const getGetAllRomaConfigurationQueryKey = () => {
5267
4701
  return [`/api/configurations`];
5268
4702
  };
5269
4703
  const useGetAllRomaConfigurationQueryOptions = (options) => {
5270
- const { query: queryOptions } = options ?? {};
4704
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5271
4705
  const queryKey = queryOptions?.queryKey ?? getGetAllRomaConfigurationQueryKey();
5272
4706
  const getAllRomaConfiguration = useGetAllRomaConfigurationHook();
5273
- const queryFn = ({ signal }) => getAllRomaConfiguration(signal);
4707
+ const queryFn = ({ signal }) => getAllRomaConfiguration({ signal, ...requestOptions });
5274
4708
  return { queryKey, queryFn, ...queryOptions };
5275
4709
  };
5276
- const useGetAllRomaConfiguration = (options) => {
4710
+ function useGetAllRomaConfiguration(options, queryClient) {
5277
4711
  const queryOptions = useGetAllRomaConfigurationQueryOptions(options);
5278
- const query = useQuery(queryOptions);
5279
- query.queryKey = queryOptions.queryKey;
5280
- return query;
4712
+ const query = useQuery(queryOptions, queryClient);
4713
+ return { ...query, queryKey: queryOptions.queryKey };
4714
+ }
4715
+ const getAddRomaConfigurationUrl = () => {
4716
+ return `/api/configurations`;
5281
4717
  };
5282
4718
  const useAddRomaConfigurationHook = () => {
5283
- const addRomaConfiguration = useCustomClient();
5284
- return (romaConfigurationDto) => {
5285
- return addRomaConfiguration({
5286
- url: `/api/configurations`,
5287
- method: "post",
5288
- headers: { "Content-Type": "application/json" },
5289
- data: romaConfigurationDto
4719
+ const customFetcher = useCustomClient();
4720
+ return (romaConfigurationDto, options) => {
4721
+ return customFetcher(getAddRomaConfigurationUrl(), {
4722
+ ...options,
4723
+ method: "POST",
4724
+ headers: { "Content-Type": "application/json", ...options?.headers },
4725
+ body: JSON.stringify(romaConfigurationDto)
5290
4726
  });
5291
4727
  };
5292
4728
  };
5293
4729
  const useAddRomaConfigurationMutationOptions = (options) => {
5294
- const { mutation: mutationOptions } = options ?? {};
4730
+ const mutationKey = ["addRomaConfiguration"];
4731
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5295
4732
  const addRomaConfiguration = useAddRomaConfigurationHook();
5296
4733
  const mutationFn = (props) => {
5297
4734
  const { data } = props ?? {};
5298
- return addRomaConfiguration(data);
4735
+ return addRomaConfiguration(data, requestOptions);
5299
4736
  };
5300
4737
  return { mutationFn, ...mutationOptions };
5301
4738
  };
5302
- const useAddRomaConfiguration = (options) => {
5303
- const mutationOptions = useAddRomaConfigurationMutationOptions(options);
5304
- return useMutation(mutationOptions);
4739
+ const useAddRomaConfiguration = (options, queryClient) => {
4740
+ return useMutation(
4741
+ useAddRomaConfigurationMutationOptions(options),
4742
+ queryClient
4743
+ );
4744
+ };
4745
+ const getGetAllRomaConfigurationTypesUrl = () => {
4746
+ return `/api/configurations/types`;
5305
4747
  };
5306
4748
  const useGetAllRomaConfigurationTypesHook = () => {
5307
- const getAllRomaConfigurationTypes = useCustomClient();
5308
- return (signal) => {
5309
- return getAllRomaConfigurationTypes({
5310
- url: `/api/configurations/types`,
5311
- method: "get",
5312
- signal
4749
+ const customFetcher = useCustomClient();
4750
+ return (options) => {
4751
+ return customFetcher(getGetAllRomaConfigurationTypesUrl(), {
4752
+ ...options,
4753
+ method: "GET"
5313
4754
  });
5314
4755
  };
5315
4756
  };
@@ -5317,25 +4758,26 @@ const getGetAllRomaConfigurationTypesQueryKey = () => {
5317
4758
  return [`/api/configurations/types`];
5318
4759
  };
5319
4760
  const useGetAllRomaConfigurationTypesQueryOptions = (options) => {
5320
- const { query: queryOptions } = options ?? {};
4761
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5321
4762
  const queryKey = queryOptions?.queryKey ?? getGetAllRomaConfigurationTypesQueryKey();
5322
4763
  const getAllRomaConfigurationTypes = useGetAllRomaConfigurationTypesHook();
5323
- const queryFn = ({ signal }) => getAllRomaConfigurationTypes(signal);
4764
+ const queryFn = ({ signal }) => getAllRomaConfigurationTypes({ signal, ...requestOptions });
5324
4765
  return { queryKey, queryFn, ...queryOptions };
5325
4766
  };
5326
- const useGetAllRomaConfigurationTypes = (options) => {
4767
+ function useGetAllRomaConfigurationTypes(options, queryClient) {
5327
4768
  const queryOptions = useGetAllRomaConfigurationTypesQueryOptions(options);
5328
- const query = useQuery(queryOptions);
5329
- query.queryKey = queryOptions.queryKey;
5330
- return query;
4769
+ const query = useQuery(queryOptions, queryClient);
4770
+ return { ...query, queryKey: queryOptions.queryKey };
4771
+ }
4772
+ const getGetAllRomaConfigurationByTypeUrl = (type) => {
4773
+ return `/api/configurations/types/type/${type}`;
5331
4774
  };
5332
4775
  const useGetAllRomaConfigurationByTypeHook = () => {
5333
- const getAllRomaConfigurationByType = useCustomClient();
5334
- return (type, signal) => {
5335
- return getAllRomaConfigurationByType({
5336
- url: `/api/configurations/types/type/${type}`,
5337
- method: "get",
5338
- signal
4776
+ const customFetcher = useCustomClient();
4777
+ return (type, options) => {
4778
+ return customFetcher(getGetAllRomaConfigurationByTypeUrl(type), {
4779
+ ...options,
4780
+ method: "GET"
5339
4781
  });
5340
4782
  };
5341
4783
  };
@@ -5343,10 +4785,10 @@ const getGetAllRomaConfigurationByTypeQueryKey = (type) => {
5343
4785
  return [`/api/configurations/types/type/${type}`];
5344
4786
  };
5345
4787
  const useGetAllRomaConfigurationByTypeQueryOptions = (type, options) => {
5346
- const { query: queryOptions } = options ?? {};
4788
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5347
4789
  const queryKey = queryOptions?.queryKey ?? getGetAllRomaConfigurationByTypeQueryKey(type);
5348
4790
  const getAllRomaConfigurationByType = useGetAllRomaConfigurationByTypeHook();
5349
- const queryFn = ({ signal }) => getAllRomaConfigurationByType(type, signal);
4791
+ const queryFn = ({ signal }) => getAllRomaConfigurationByType(type, { signal, ...requestOptions });
5350
4792
  return {
5351
4793
  queryKey,
5352
4794
  queryFn,
@@ -5354,47 +4796,57 @@ const useGetAllRomaConfigurationByTypeQueryOptions = (type, options) => {
5354
4796
  ...queryOptions
5355
4797
  };
5356
4798
  };
5357
- const useGetAllRomaConfigurationByType = (type, options) => {
4799
+ function useGetAllRomaConfigurationByType(type, options, queryClient) {
5358
4800
  const queryOptions = useGetAllRomaConfigurationByTypeQueryOptions(
5359
4801
  type,
5360
4802
  options
5361
4803
  );
5362
- const query = useQuery(queryOptions);
5363
- query.queryKey = queryOptions.queryKey;
5364
- return query;
4804
+ const query = useQuery(queryOptions, queryClient);
4805
+ return { ...query, queryKey: queryOptions.queryKey };
4806
+ }
4807
+ const getCreateFeedbackUrl = () => {
4808
+ return `/api/feedbacks`;
5365
4809
  };
5366
4810
  const useCreateFeedbackHook = () => {
5367
- const createFeedback = useCustomClient();
5368
- return (feedbackDto) => {
5369
- return createFeedback({
5370
- url: `/api/feedbacks`,
5371
- method: "post",
5372
- headers: { "Content-Type": "application/json" },
5373
- data: feedbackDto
4811
+ const customFetcher = useCustomClient();
4812
+ return (feedbackDto, options) => {
4813
+ return customFetcher(getCreateFeedbackUrl(), {
4814
+ ...options,
4815
+ method: "POST",
4816
+ headers: { "Content-Type": "application/json", ...options?.headers },
4817
+ body: JSON.stringify(feedbackDto)
5374
4818
  });
5375
4819
  };
5376
4820
  };
5377
4821
  const useCreateFeedbackMutationOptions = (options) => {
5378
- const { mutation: mutationOptions } = options ?? {};
4822
+ const mutationKey = ["createFeedback"];
4823
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5379
4824
  const createFeedback = useCreateFeedbackHook();
5380
4825
  const mutationFn = (props) => {
5381
4826
  const { data } = props ?? {};
5382
- return createFeedback(data);
4827
+ return createFeedback(data, requestOptions);
5383
4828
  };
5384
4829
  return { mutationFn, ...mutationOptions };
5385
4830
  };
5386
- const useCreateFeedback = (options) => {
5387
- const mutationOptions = useCreateFeedbackMutationOptions(options);
5388
- return useMutation(mutationOptions);
4831
+ const useCreateFeedback = (options, queryClient) => {
4832
+ return useMutation(useCreateFeedbackMutationOptions(options), queryClient);
4833
+ };
4834
+ const getListFeedbacksByCurrentUserUrl = (params) => {
4835
+ const normalizedParams = new URLSearchParams();
4836
+ Object.entries(params || {}).forEach(([key, value]) => {
4837
+ if (value !== void 0) {
4838
+ normalizedParams.append(key, value === null ? "null" : value.toString());
4839
+ }
4840
+ });
4841
+ const stringifiedParams = normalizedParams.toString();
4842
+ return stringifiedParams.length > 0 ? `/api/feedbacks/mine?${stringifiedParams}` : `/api/feedbacks/mine`;
5389
4843
  };
5390
4844
  const useListFeedbacksByCurrentUserHook = () => {
5391
- const listFeedbacksByCurrentUser = useCustomClient();
5392
- return (params, signal) => {
5393
- return listFeedbacksByCurrentUser({
5394
- url: `/api/feedbacks/mine`,
5395
- method: "get",
5396
- params,
5397
- signal
4845
+ const customFetcher = useCustomClient();
4846
+ return (params, options) => {
4847
+ return customFetcher(getListFeedbacksByCurrentUserUrl(params), {
4848
+ ...options,
4849
+ method: "GET"
5398
4850
  });
5399
4851
  };
5400
4852
  };
@@ -5402,21 +4854,327 @@ const getListFeedbacksByCurrentUserQueryKey = (params) => {
5402
4854
  return [`/api/feedbacks/mine`, ...params ? [params] : []];
5403
4855
  };
5404
4856
  const useListFeedbacksByCurrentUserQueryOptions = (params, options) => {
5405
- const { query: queryOptions } = options ?? {};
4857
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5406
4858
  const queryKey = queryOptions?.queryKey ?? getListFeedbacksByCurrentUserQueryKey(params);
5407
4859
  const listFeedbacksByCurrentUser = useListFeedbacksByCurrentUserHook();
5408
- const queryFn = ({ signal }) => listFeedbacksByCurrentUser(params, signal);
4860
+ const queryFn = ({ signal }) => listFeedbacksByCurrentUser(params, { signal, ...requestOptions });
5409
4861
  return { queryKey, queryFn, ...queryOptions };
5410
4862
  };
5411
- const useListFeedbacksByCurrentUser = (params, options) => {
4863
+ function useListFeedbacksByCurrentUser(params, options, queryClient) {
5412
4864
  const queryOptions = useListFeedbacksByCurrentUserQueryOptions(
5413
4865
  params,
5414
4866
  options
5415
4867
  );
5416
- const query = useQuery(queryOptions);
5417
- query.queryKey = queryOptions.queryKey;
5418
- return query;
4868
+ const query = useQuery(queryOptions, queryClient);
4869
+ return { ...query, queryKey: queryOptions.queryKey };
4870
+ }
4871
+ const getGetByIdUrl = (id) => {
4872
+ return `/api/alarm-groups/${id}`;
4873
+ };
4874
+ const useGetByIdHook = () => {
4875
+ const customFetcher = useCustomClient();
4876
+ return (id, options) => {
4877
+ return customFetcher(getGetByIdUrl(id), {
4878
+ ...options,
4879
+ method: "GET"
4880
+ });
4881
+ };
4882
+ };
4883
+ const getGetByIdQueryKey = (id) => {
4884
+ return [`/api/alarm-groups/${id}`];
4885
+ };
4886
+ const useGetByIdQueryOptions = (id, options) => {
4887
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4888
+ const queryKey = queryOptions?.queryKey ?? getGetByIdQueryKey(id);
4889
+ const getById = useGetByIdHook();
4890
+ const queryFn = ({ signal }) => getById(id, { signal, ...requestOptions });
4891
+ return {
4892
+ queryKey,
4893
+ queryFn,
4894
+ enabled: !!id,
4895
+ ...queryOptions
4896
+ };
4897
+ };
4898
+ function useGetById(id, options, queryClient) {
4899
+ const queryOptions = useGetByIdQueryOptions(id, options);
4900
+ const query = useQuery(queryOptions, queryClient);
4901
+ return { ...query, queryKey: queryOptions.queryKey };
4902
+ }
4903
+ const getUpdateUrl = (id) => {
4904
+ return `/api/alarm-groups/${id}`;
4905
+ };
4906
+ const useUpdateHook = () => {
4907
+ const customFetcher = useCustomClient();
4908
+ return (id, alarmGroupDto, options) => {
4909
+ return customFetcher(getUpdateUrl(id), {
4910
+ ...options,
4911
+ method: "PUT",
4912
+ headers: { "Content-Type": "application/json", ...options?.headers },
4913
+ body: JSON.stringify(alarmGroupDto)
4914
+ });
4915
+ };
4916
+ };
4917
+ const useUpdateMutationOptions = (options) => {
4918
+ const mutationKey = ["update"];
4919
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4920
+ const update = useUpdateHook();
4921
+ const mutationFn = (props) => {
4922
+ const { id, data } = props ?? {};
4923
+ return update(id, data, requestOptions);
4924
+ };
4925
+ return { mutationFn, ...mutationOptions };
4926
+ };
4927
+ const useUpdate = (options, queryClient) => {
4928
+ return useMutation(useUpdateMutationOptions(options), queryClient);
4929
+ };
4930
+ const getDeleteUrl = (id) => {
4931
+ return `/api/alarm-groups/${id}`;
4932
+ };
4933
+ const use_DeleteHook = () => {
4934
+ const customFetcher = useCustomClient();
4935
+ return (id, options) => {
4936
+ return customFetcher(getDeleteUrl(id), {
4937
+ ...options,
4938
+ method: "DELETE"
4939
+ });
4940
+ };
4941
+ };
4942
+ const useDeleteMutationOptions = (options) => {
4943
+ const mutationKey = ["_delete"];
4944
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4945
+ const _delete = use_DeleteHook();
4946
+ const mutationFn = (props) => {
4947
+ const { id } = props ?? {};
4948
+ return _delete(id, requestOptions);
4949
+ };
4950
+ return { mutationFn, ...mutationOptions };
4951
+ };
4952
+ const useDelete = (options, queryClient) => {
4953
+ return useMutation(useDeleteMutationOptions(options), queryClient);
4954
+ };
4955
+ const getReplaceMembersUrl = (id) => {
4956
+ return `/api/alarm-groups/${id}/members`;
4957
+ };
4958
+ const useReplaceMembersHook = () => {
4959
+ const customFetcher = useCustomClient();
4960
+ return (id, replaceMembersBody, options) => {
4961
+ return customFetcher(getReplaceMembersUrl(id), {
4962
+ ...options,
4963
+ method: "PUT",
4964
+ headers: { "Content-Type": "application/json", ...options?.headers },
4965
+ body: JSON.stringify(replaceMembersBody)
4966
+ });
4967
+ };
4968
+ };
4969
+ const useReplaceMembersMutationOptions = (options) => {
4970
+ const mutationKey = ["replaceMembers"];
4971
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
4972
+ const replaceMembers = useReplaceMembersHook();
4973
+ const mutationFn = (props) => {
4974
+ const { id, data } = props ?? {};
4975
+ return replaceMembers(id, data, requestOptions);
4976
+ };
4977
+ return { mutationFn, ...mutationOptions };
4978
+ };
4979
+ const useReplaceMembers = (options, queryClient) => {
4980
+ return useMutation(useReplaceMembersMutationOptions(options), queryClient);
4981
+ };
4982
+ const getGetAll1Url = () => {
4983
+ return `/api/alarm-groups`;
4984
+ };
4985
+ const useGetAll1Hook = () => {
4986
+ const customFetcher = useCustomClient();
4987
+ return (options) => {
4988
+ return customFetcher(getGetAll1Url(), {
4989
+ ...options,
4990
+ method: "GET"
4991
+ });
4992
+ };
4993
+ };
4994
+ const getGetAll1QueryKey = () => {
4995
+ return [`/api/alarm-groups`];
4996
+ };
4997
+ const useGetAll1QueryOptions = (options) => {
4998
+ const { query: queryOptions, request: requestOptions } = options ?? {};
4999
+ const queryKey = queryOptions?.queryKey ?? getGetAll1QueryKey();
5000
+ const getAll1 = useGetAll1Hook();
5001
+ const queryFn = ({ signal }) => getAll1({ signal, ...requestOptions });
5002
+ return { queryKey, queryFn, ...queryOptions };
5003
+ };
5004
+ function useGetAll1(options, queryClient) {
5005
+ const queryOptions = useGetAll1QueryOptions(options);
5006
+ const query = useQuery(queryOptions, queryClient);
5007
+ return { ...query, queryKey: queryOptions.queryKey };
5008
+ }
5009
+ const getCreateUrl = () => {
5010
+ return `/api/alarm-groups`;
5011
+ };
5012
+ const useCreateHook = () => {
5013
+ const customFetcher = useCustomClient();
5014
+ return (alarmGroupDto, options) => {
5015
+ return customFetcher(getCreateUrl(), {
5016
+ ...options,
5017
+ method: "POST",
5018
+ headers: { "Content-Type": "application/json", ...options?.headers },
5019
+ body: JSON.stringify(alarmGroupDto)
5020
+ });
5021
+ };
5022
+ };
5023
+ const useCreateMutationOptions = (options) => {
5024
+ const mutationKey = ["create"];
5025
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5026
+ const create = useCreateHook();
5027
+ const mutationFn = (props) => {
5028
+ const { data } = props ?? {};
5029
+ return create(data, requestOptions);
5030
+ };
5031
+ return { mutationFn, ...mutationOptions };
5032
+ };
5033
+ const useCreate = (options, queryClient) => {
5034
+ return useMutation(useCreateMutationOptions(options), queryClient);
5035
+ };
5036
+ const getGetAllUrl = (params) => {
5037
+ const normalizedParams = new URLSearchParams();
5038
+ Object.entries(params || {}).forEach(([key, value]) => {
5039
+ if (value !== void 0) {
5040
+ normalizedParams.append(key, value === null ? "null" : value.toString());
5041
+ }
5042
+ });
5043
+ const stringifiedParams = normalizedParams.toString();
5044
+ return stringifiedParams.length > 0 ? `/api/alarms?${stringifiedParams}` : `/api/alarms`;
5045
+ };
5046
+ const useGetAllHook = () => {
5047
+ const customFetcher = useCustomClient();
5048
+ return (params, options) => {
5049
+ return customFetcher(getGetAllUrl(params), {
5050
+ ...options,
5051
+ method: "GET"
5052
+ });
5053
+ };
5054
+ };
5055
+ const getGetAllQueryKey = (params) => {
5056
+ return [`/api/alarms`, ...params ? [params] : []];
5057
+ };
5058
+ const useGetAllQueryOptions = (params, options) => {
5059
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5060
+ const queryKey = queryOptions?.queryKey ?? getGetAllQueryKey(params);
5061
+ const getAll = useGetAllHook();
5062
+ const queryFn = ({ signal }) => getAll(params, { signal, ...requestOptions });
5063
+ return { queryKey, queryFn, ...queryOptions };
5064
+ };
5065
+ function useGetAll(params, options, queryClient) {
5066
+ const queryOptions = useGetAllQueryOptions(params, options);
5067
+ const query = useQuery(queryOptions, queryClient);
5068
+ return { ...query, queryKey: queryOptions.queryKey };
5069
+ }
5070
+ const getRaiseUrl = () => {
5071
+ return `/api/alarms`;
5072
+ };
5073
+ const useRaiseHook = () => {
5074
+ const customFetcher = useCustomClient();
5075
+ return (raiseAlarmRequest, options) => {
5076
+ return customFetcher(getRaiseUrl(), {
5077
+ ...options,
5078
+ method: "POST",
5079
+ headers: { "Content-Type": "application/json", ...options?.headers },
5080
+ body: JSON.stringify(raiseAlarmRequest)
5081
+ });
5082
+ };
5083
+ };
5084
+ const useRaiseMutationOptions = (options) => {
5085
+ const mutationKey = ["raise"];
5086
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5087
+ const raise = useRaiseHook();
5088
+ const mutationFn = (props) => {
5089
+ const { data } = props ?? {};
5090
+ return raise(data, requestOptions);
5091
+ };
5092
+ return { mutationFn, ...mutationOptions };
5093
+ };
5094
+ const useRaise = (options, queryClient) => {
5095
+ return useMutation(useRaiseMutationOptions(options), queryClient);
5096
+ };
5097
+ const getClearUrl = (id) => {
5098
+ return `/api/alarms/${id}/clear`;
5099
+ };
5100
+ const useClearHook = () => {
5101
+ const customFetcher = useCustomClient();
5102
+ return (id, clearAlarmRequest, options) => {
5103
+ return customFetcher(getClearUrl(id), {
5104
+ ...options,
5105
+ method: "POST",
5106
+ headers: { "Content-Type": "application/json", ...options?.headers },
5107
+ body: JSON.stringify(clearAlarmRequest)
5108
+ });
5109
+ };
5110
+ };
5111
+ const useClearMutationOptions = (options) => {
5112
+ const mutationKey = ["clear"];
5113
+ const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
5114
+ const clear = useClearHook();
5115
+ const mutationFn = (props) => {
5116
+ const { id, data } = props ?? {};
5117
+ return clear(id, data, requestOptions);
5118
+ };
5119
+ return { mutationFn, ...mutationOptions };
5120
+ };
5121
+ const useClear = (options, queryClient) => {
5122
+ return useMutation(useClearMutationOptions(options), queryClient);
5123
+ };
5124
+ const getStreamAlarmsUrl = () => {
5125
+ return `/eventstream/alarm`;
5419
5126
  };
5127
+ const useStreamAlarmsHook = () => {
5128
+ const customFetcher = useCustomClient();
5129
+ return (options) => {
5130
+ return customFetcher(getStreamAlarmsUrl(), {
5131
+ ...options,
5132
+ method: "GET"
5133
+ });
5134
+ };
5135
+ };
5136
+ const getStreamAlarmsQueryKey = () => {
5137
+ return [`/eventstream/alarm`];
5138
+ };
5139
+ const useStreamAlarmsQueryOptions = (options) => {
5140
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5141
+ const queryKey = queryOptions?.queryKey ?? getStreamAlarmsQueryKey();
5142
+ const streamAlarms = useStreamAlarmsHook();
5143
+ const queryFn = ({ signal }) => streamAlarms({ signal, ...requestOptions });
5144
+ return { queryKey, queryFn, ...queryOptions };
5145
+ };
5146
+ function useStreamAlarms(options, queryClient) {
5147
+ const queryOptions = useStreamAlarmsQueryOptions(options);
5148
+ const query = useQuery(queryOptions, queryClient);
5149
+ return { ...query, queryKey: queryOptions.queryKey };
5150
+ }
5151
+ const getGetStatusUrl = () => {
5152
+ return `/api/health/status`;
5153
+ };
5154
+ const useGetStatusHook = () => {
5155
+ const customFetcher = useCustomClient();
5156
+ return (options) => {
5157
+ return customFetcher(getGetStatusUrl(), {
5158
+ ...options,
5159
+ method: "GET"
5160
+ });
5161
+ };
5162
+ };
5163
+ const getGetStatusQueryKey = () => {
5164
+ return [`/api/health/status`];
5165
+ };
5166
+ const useGetStatusQueryOptions = (options) => {
5167
+ const { query: queryOptions, request: requestOptions } = options ?? {};
5168
+ const queryKey = queryOptions?.queryKey ?? getGetStatusQueryKey();
5169
+ const getStatus = useGetStatusHook();
5170
+ const queryFn = ({ signal }) => getStatus({ signal, ...requestOptions });
5171
+ return { queryKey, queryFn, ...queryOptions };
5172
+ };
5173
+ function useGetStatus(options, queryClient) {
5174
+ const queryOptions = useGetStatusQueryOptions(options);
5175
+ const query = useQuery(queryOptions, queryClient);
5176
+ return { ...query, queryKey: queryOptions.queryKey };
5177
+ }
5420
5178
  const findGroupMembers = async (client, groupId, query) => {
5421
5179
  const headers = {
5422
5180
  ConsistencyLevel: "eventual"
@@ -5898,26 +5656,29 @@ const useWatchDefaults = {
5898
5656
  }
5899
5657
  };
5900
5658
  const useManageWatchList = (system) => {
5901
- const { data: setting } = useGetSettingsByAppShortName("notifications", {
5902
- query: {
5903
- meta: {
5904
- persist: true
5905
- },
5906
- staleTime: 6e4 * 15,
5907
- // Skip re-fetching if data is less than 15 minutes old
5908
- select: (data) => {
5909
- const setting2 = (data ?? []).filter(
5910
- (f) => f.setting === "app-notifications"
5911
- );
5912
- return setting2 && setting2.length > 0 ? setting2[0] : {
5913
- appShortName: "notifications",
5914
- isPublic: false,
5915
- setting: "app-notifications",
5916
- value: rootSchema.cast(useWatchDefaults, { assert: false })
5917
- };
5659
+ const { data: setting } = useGetSettingsByAppShortName(
5660
+ "notifications",
5661
+ {
5662
+ query: {
5663
+ meta: {
5664
+ persist: true
5665
+ },
5666
+ staleTime: 6e4 * 15,
5667
+ // Skip re-fetching if data is less than 15 minutes old
5668
+ select: (data) => {
5669
+ const setting2 = (data ?? []).filter(
5670
+ (f) => f.setting === "app-notifications"
5671
+ );
5672
+ return setting2 && setting2.length > 0 ? setting2[0] : {
5673
+ appShortName: "notifications",
5674
+ isPublic: false,
5675
+ setting: "app-notifications",
5676
+ value: rootSchema.cast(useWatchDefaults, { assert: false })
5677
+ };
5678
+ }
5918
5679
  }
5919
5680
  }
5920
- });
5681
+ );
5921
5682
  const framework = useFramework();
5922
5683
  const user = framework.modules.auth.account;
5923
5684
  const userId = user?.username.split("@")[0].toLowerCase() ?? "MISSINGUSER";
@@ -5998,6 +5759,9 @@ const useManageWatchList = (system) => {
5998
5759
  };
5999
5760
  };
6000
5761
  export {
5762
+ AdminDtoAdminType,
5763
+ AlarmDtoSeverity,
5764
+ AlarmDtoState,
6001
5765
  AppContext,
6002
5766
  AppLoadError,
6003
5767
  AppLoader,
@@ -6009,29 +5773,81 @@ export {
6009
5773
  Header,
6010
5774
  HttpError2 as HttpError,
6011
5775
  HttpErrorViewer,
5776
+ RaiseAlarmRequestSeverity,
6012
5777
  RomaErrorViewer,
6013
5778
  StyleProvider,
6014
5779
  configure,
6015
5780
  createIDBPersister,
6016
5781
  findUserById,
6017
5782
  findUsersByMail,
5783
+ getAddRomaConfigurationUrl,
5784
+ getClearUrl,
5785
+ getCreateFeedbackUrl,
5786
+ getCreateOrUpdateAppUrl,
5787
+ getCreateOrUpdateCategoryUrl,
5788
+ getCreateOrUpdateServiceUrl,
5789
+ getCreatePublicSettingByUserIdUrl,
5790
+ getCreateSettingByUserIdUrl,
5791
+ getCreateUrl,
5792
+ getDeleteAppByKeyUrl,
5793
+ getDeleteCategoryByIdUrl,
5794
+ getDeletePrivateSettingByIdUrl,
5795
+ getDeletePublicSettingByIdUrl,
5796
+ getDeleteRomaConfigurationUrl,
5797
+ getDeleteServiceByKeyUrl,
5798
+ getDeleteUrl,
5799
+ getGetAll1QueryKey,
5800
+ getGetAll1Url,
6018
5801
  getGetAllAppsQueryKey,
5802
+ getGetAllAppsUrl,
6019
5803
  getGetAllCategoriesQueryKey,
5804
+ getGetAllCategoriesUrl,
5805
+ getGetAllQueryKey,
6020
5806
  getGetAllRomaConfigurationByTypeQueryKey,
5807
+ getGetAllRomaConfigurationByTypeUrl,
6021
5808
  getGetAllRomaConfigurationQueryKey,
6022
5809
  getGetAllRomaConfigurationTypesQueryKey,
5810
+ getGetAllRomaConfigurationTypesUrl,
5811
+ getGetAllRomaConfigurationUrl,
6023
5812
  getGetAllServicesQueryKey,
5813
+ getGetAllServicesUrl,
5814
+ getGetAllUrl,
6024
5815
  getGetAppByKeyQueryKey,
5816
+ getGetAppByKeyUrl,
5817
+ getGetByIdQueryKey,
5818
+ getGetByIdUrl,
6025
5819
  getGetCategoryByIdQueryKey,
5820
+ getGetCategoryByIdUrl,
6026
5821
  getGetCurrentEnvironmentQueryKey,
5822
+ getGetCurrentEnvironmentUrl,
6027
5823
  getGetPublicSettingByUserAndIdQueryKey,
5824
+ getGetPublicSettingByUserAndIdUrl,
6028
5825
  getGetRomaConfigurationByIdQueryKey,
5826
+ getGetRomaConfigurationByIdUrl,
6029
5827
  getGetServiceByKeyQueryKey,
5828
+ getGetServiceByKeyUrl,
6030
5829
  getGetSettingByUserAndIdQueryKey,
5830
+ getGetSettingByUserAndIdUrl,
6031
5831
  getGetSettingsByAppShortNameQueryKey,
5832
+ getGetSettingsByAppShortNameUrl,
6032
5833
  getGetSettingsByUserIdQueryKey,
5834
+ getGetSettingsByUserIdUrl,
5835
+ getGetStatusQueryKey,
5836
+ getGetStatusUrl,
6033
5837
  getListFeedbacksByCurrentUserQueryKey,
5838
+ getListFeedbacksByCurrentUserUrl,
5839
+ getRaiseUrl,
5840
+ getReplaceMembersUrl,
5841
+ getStreamAlarmsQueryKey,
5842
+ getStreamAlarmsUrl,
6034
5843
  getStreamEventsQueryKey,
5844
+ getStreamEventsUrl,
5845
+ getUpdateByUserIdAndIdUrl,
5846
+ getUpdatePublicSettingByAppShortNameAndIdUrl,
5847
+ getUpdateRomaConfigurationUrl,
5848
+ getUpdateUrl,
5849
+ getUploadBundleUrl,
5850
+ handle,
6035
5851
  handleError,
6036
5852
  makeComponent,
6037
5853
  parseJwt,
@@ -6040,9 +5856,15 @@ export {
6040
5856
  useAddRomaConfigurationHook,
6041
5857
  useAddRomaConfigurationMutationOptions,
6042
5858
  useApps,
5859
+ useClear,
5860
+ useClearHook,
5861
+ useClearMutationOptions,
5862
+ useCreate,
6043
5863
  useCreateFeedback,
6044
5864
  useCreateFeedbackHook,
6045
5865
  useCreateFeedbackMutationOptions,
5866
+ useCreateHook,
5867
+ useCreateMutationOptions,
6046
5868
  useCreateOrUpdateApp,
6047
5869
  useCreateOrUpdateAppHook,
6048
5870
  useCreateOrUpdateAppMutationOptions,
@@ -6058,12 +5880,14 @@ export {
6058
5880
  useCreateSettingByUserId,
6059
5881
  useCreateSettingByUserIdHook,
6060
5882
  useCreateSettingByUserIdMutationOptions,
5883
+ useDelete,
6061
5884
  useDeleteAppByKey,
6062
5885
  useDeleteAppByKeyHook,
6063
5886
  useDeleteAppByKeyMutationOptions,
6064
5887
  useDeleteCategoryById,
6065
5888
  useDeleteCategoryByIdHook,
6066
5889
  useDeleteCategoryByIdMutationOptions,
5890
+ useDeleteMutationOptions,
6067
5891
  useDeletePrivateSettingById,
6068
5892
  useDeletePrivateSettingByIdHook,
6069
5893
  useDeletePrivateSettingByIdMutationOptions,
@@ -6083,12 +5907,18 @@ export {
6083
5907
  useFindUserById,
6084
5908
  useFindUsersByMail,
6085
5909
  useFindUsersByShortname,
5910
+ useGetAll,
5911
+ useGetAll1,
5912
+ useGetAll1Hook,
5913
+ useGetAll1QueryOptions,
6086
5914
  useGetAllApps,
6087
5915
  useGetAllAppsHook,
6088
5916
  useGetAllAppsQueryOptions,
6089
5917
  useGetAllCategories,
6090
5918
  useGetAllCategoriesHook,
6091
5919
  useGetAllCategoriesQueryOptions,
5920
+ useGetAllHook,
5921
+ useGetAllQueryOptions,
6092
5922
  useGetAllRomaConfiguration,
6093
5923
  useGetAllRomaConfigurationByType,
6094
5924
  useGetAllRomaConfigurationByTypeHook,
@@ -6105,6 +5935,9 @@ export {
6105
5935
  useGetAppByKey,
6106
5936
  useGetAppByKeyHook,
6107
5937
  useGetAppByKeyQueryOptions,
5938
+ useGetById,
5939
+ useGetByIdHook,
5940
+ useGetByIdQueryOptions,
6108
5941
  useGetCategoryById,
6109
5942
  useGetCategoryByIdHook,
6110
5943
  useGetCategoryByIdQueryOptions,
@@ -6129,17 +5962,32 @@ export {
6129
5962
  useGetSettingsByUserId,
6130
5963
  useGetSettingsByUserIdHook,
6131
5964
  useGetSettingsByUserIdQueryOptions,
5965
+ useGetStatus,
5966
+ useGetStatusHook,
5967
+ useGetStatusQueryOptions,
6132
5968
  useHasApiRole,
6133
5969
  useListFeedbacksByCurrentUser,
6134
5970
  useListFeedbacksByCurrentUserHook,
6135
5971
  useListFeedbacksByCurrentUserQueryOptions,
6136
5972
  useManageWatchList,
5973
+ useRaise,
5974
+ useRaiseHook,
5975
+ useRaiseMutationOptions,
5976
+ useReplaceMembers,
5977
+ useReplaceMembersHook,
5978
+ useReplaceMembersMutationOptions,
5979
+ useStreamAlarms,
5980
+ useStreamAlarmsHook,
5981
+ useStreamAlarmsQueryOptions,
6137
5982
  useStreamEvents,
6138
5983
  useStreamEventsHook,
6139
5984
  useStreamEventsQueryOptions,
5985
+ useUpdate,
6140
5986
  useUpdateByUserIdAndId,
6141
5987
  useUpdateByUserIdAndIdHook,
6142
5988
  useUpdateByUserIdAndIdMutationOptions,
5989
+ useUpdateHook,
5990
+ useUpdateMutationOptions,
6143
5991
  useUpdatePublicSettingByAppShortNameAndId,
6144
5992
  useUpdatePublicSettingByAppShortNameAndIdHook,
6145
5993
  useUpdatePublicSettingByAppShortNameAndIdMutationOptions,
@@ -6149,5 +5997,6 @@ export {
6149
5997
  useUploadBundle,
6150
5998
  useUploadBundleHook,
6151
5999
  useUploadBundleMutationOptions,
6000
+ use_DeleteHook,
6152
6001
  withStyleIsolation
6153
6002
  };