@equinor/roma-framework 0.1.0 → 1.0.0-BETA.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dev-portal/package.json +1 -1
  2. package/dev-portal/roma-framework.umd.js +8869 -7902
  3. package/package.json +1 -1
  4. package/roma-framework.mjs +3 -7
  5. package/index.d.ts +0 -13
  6. package/lib/api/ms-graph/api/group/find-group-members.d.ts +0 -3
  7. package/lib/api/ms-graph/api/user/find-user-by-shortname.d.ts +0 -1
  8. package/lib/api/ms-graph/api/user/find-users-by-mail.d.ts +0 -3
  9. package/lib/api/ms-graph/index.d.ts +0 -11
  10. package/lib/api/ms-graph/model/group-membership.d.ts +0 -8
  11. package/lib/api/ms-graph/model/user.d.ts +0 -18
  12. package/lib/api/roma/api/app-controller/app-controller.d.ts +0 -122
  13. package/lib/api/roma/api/category-controller/category-controller.d.ts +0 -94
  14. package/lib/api/roma/api/environment-controller/environment-controller.d.ts +0 -27
  15. package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +0 -31
  16. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +0 -162
  17. package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +0 -21
  18. package/lib/api/roma/api/service-controller/service-controller.d.ts +0 -94
  19. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +0 -261
  20. package/lib/api/roma/index.d.ts +0 -9
  21. package/lib/api/roma/model/appDto.d.ts +0 -20
  22. package/lib/api/roma/model/categoryDto.d.ts +0 -13
  23. package/lib/api/roma/model/environmentDto.d.ts +0 -11
  24. package/lib/api/roma/model/feedbackDetailsDto.d.ts +0 -13
  25. package/lib/api/roma/model/feedbackDto.d.ts +0 -7
  26. package/lib/api/roma/model/feedbackFeedbackDto.d.ts +0 -13
  27. package/lib/api/roma/model/feedbackResponseDto.d.ts +0 -5
  28. package/lib/api/roma/model/feedbackResponseIssueDto.d.ts +0 -11
  29. package/lib/api/roma/model/feedbackSolutionDto.d.ts +0 -10
  30. package/lib/api/roma/model/getAllApps200.d.ts +0 -10
  31. package/lib/api/roma/model/getAllCategories200.d.ts +0 -10
  32. package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +0 -11
  33. package/lib/api/roma/model/getAllServices200.d.ts +0 -10
  34. package/lib/api/roma/model/getSettingsByAppShortName200.d.ts +0 -10
  35. package/lib/api/roma/model/getSettingsByUserId200.d.ts +0 -10
  36. package/lib/api/roma/model/index.d.ts +0 -31
  37. package/lib/api/roma/model/romaConfigurationDto.d.ts +0 -8
  38. package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +0 -10
  39. package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +0 -8
  40. package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +0 -10
  41. package/lib/api/roma/model/serviceDto.d.ts +0 -16
  42. package/lib/api/roma/model/settingDto.d.ts +0 -10
  43. package/lib/api/roma/model/settingDtoValue.d.ts +0 -10
  44. package/lib/api/roma/model/uploadBundleBody.d.ts +0 -10
  45. package/lib/api/roma/model/versionDto.d.ts +0 -12
  46. package/lib/api/roma/use-client.d.ts +0 -34
  47. package/lib/app-provider.d.ts +0 -33
  48. package/lib/dev-portal/AppLoader.d.ts +0 -15
  49. package/lib/dev-portal/AppViewer.d.ts +0 -6
  50. package/lib/dev-portal/EquinorLoader.d.ts +0 -13
  51. package/lib/dev-portal/ErrorViewer.d.ts +0 -21
  52. package/lib/dev-portal/HttpErrorViewer.d.ts +0 -14
  53. package/lib/eds-event-provider.d.ts +0 -7
  54. package/lib/hooks/use-get-api-roles.d.ts +0 -14
  55. package/lib/hooks/use-has-api-role.d.ts +0 -7
  56. package/lib/make-component.d.ts +0 -13
  57. package/lib/query/persister.d.ts +0 -7
  58. package/lib/style-provider.d.ts +0 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/roma-framework",
3
- "version": "0.1.0",
3
+ "version": "1.0.0-BETA.0",
4
4
  "repository": "https://github.com/equinor/tops-roma",
5
5
  "types": "./index.d.ts",
6
6
  "private": false,
@@ -549,7 +549,6 @@ var EmptyError = createErrorClass(function(_super) {
549
549
  };
550
550
  });
551
551
  function lastValueFrom(source, config2) {
552
- var hasConfig = typeof config2 === "object";
553
552
  return new Promise(function(resolve, reject) {
554
553
  var _hasValue = false;
555
554
  var _value;
@@ -562,8 +561,6 @@ function lastValueFrom(source, config2) {
562
561
  complete: function() {
563
562
  if (_hasValue) {
564
563
  resolve(_value);
565
- } else if (hasConfig) {
566
- resolve(config2.defaultValue);
567
564
  } else {
568
565
  reject(new EmptyError());
569
566
  }
@@ -4806,8 +4803,8 @@ function shallowEqual(objA, objB) {
4806
4803
  }
4807
4804
  var IntlContext = typeof window !== "undefined" && !window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__ ? window.__REACT_INTL_CONTEXT__ || (window.__REACT_INTL_CONTEXT__ = React.createContext(null)) : React.createContext(null);
4808
4805
  IntlContext.Consumer;
4809
- var IntlProvider$2 = IntlContext.Provider;
4810
- var Provider = IntlProvider$2;
4806
+ var IntlProvider$1 = IntlContext.Provider;
4807
+ var Provider = IntlProvider$1;
4811
4808
  var Context = IntlContext;
4812
4809
  function useIntl() {
4813
4810
  var intl = React.useContext(Context);
@@ -4956,7 +4953,6 @@ var IntlProvider = (
4956
4953
  return IntlProvider2;
4957
4954
  }(React.PureComponent)
4958
4955
  );
4959
- const IntlProvider$1 = IntlProvider;
4960
4956
  createFormattedComponent("formatDate");
4961
4957
  createFormattedComponent("formatTime");
4962
4958
  createFormattedComponent("formatNumber");
@@ -4976,7 +4972,7 @@ const makeComponent = (Component, args, configure) => lazy(async () => {
4976
4972
  });
4977
4973
  const queryClient = args.query ?? new QueryClient();
4978
4974
  return {
4979
- default: () => /* @__PURE__ */ jsx(FrameworkProvider, { value: fusion, children: /* @__PURE__ */ jsx(IntlProvider$1, { locale: navigator.language, children: /* @__PURE__ */ jsx(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx(StyleProvider, { scope: `roma-${appKey}`, children: /* @__PURE__ */ jsx(EdsEventProvider, { event: modules.event, children: /* @__PURE__ */ jsx(ModuleProvider, { value: modules, children: Component }) }) }) }) }) })
4975
+ 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(EdsEventProvider, { event: modules.event, children: /* @__PURE__ */ jsx(ModuleProvider, { value: modules, children: Component }) }) }) }) }) })
4980
4976
  };
4981
4977
  });
4982
4978
  const withStyleIsolation = (children, args) => lazy(async () => {
package/index.d.ts DELETED
@@ -1,13 +0,0 @@
1
- export * from './lib/make-component';
2
- export * from './lib/dev-portal/EquinorLoader';
3
- export * from './lib/dev-portal/ErrorViewer';
4
- export * from './lib/dev-portal/AppLoader';
5
- export * from './lib/dev-portal/AppViewer';
6
- export * from './lib/style-provider';
7
- export * from './lib/dev-portal/HttpErrorViewer';
8
- export * from './lib/api/roma';
9
- export * from './lib/api/ms-graph';
10
- export * from './lib/app-provider';
11
- export * from './lib/query/persister';
12
- export * from './lib/hooks/use-get-api-roles';
13
- export * from './lib/hooks/use-has-api-role';
@@ -1,3 +0,0 @@
1
- import { GroupMembership } from '../../model/group-membership';
2
-
3
- export declare const useFindGroupMembers: (groupId: string, query?: string) => import('@tanstack/react-query/build/legacy/types').UseQueryResult<GroupMembership, Error>;
@@ -1 +0,0 @@
1
- export declare const useFindUsersByShortname: (shortnames: Array<string> | string, fields?: string[]) => import('@tanstack/react-query/build/legacy/types').UseQueryResult<import('../..').GroupMembership, Error>;
@@ -1,3 +0,0 @@
1
- import { GroupMembership } from '../../model/group-membership';
2
-
3
- export declare const useFindUsersByMail: (email: Array<string> | string, fields?: string[]) => import('@tanstack/react-query/build/legacy/types').UseQueryResult<GroupMembership, Error>;
@@ -1,11 +0,0 @@
1
- /**
2
- * API Methods
3
- */
4
- export * from './api/group/find-group-members';
5
- export * from './api/user/find-user-by-shortname';
6
- export * from './api/user/find-users-by-mail';
7
- /**
8
- * API Models
9
- */
10
- export * from './model/user';
11
- export * from './model/group-membership';
@@ -1,8 +0,0 @@
1
- export type GroupMembership = {
2
- '@odata.context': string;
3
- '@odata.number': number;
4
- value: Array<{
5
- displayName: string;
6
- id: string;
7
- }>;
8
- };
@@ -1,18 +0,0 @@
1
- export type User = {
2
- '@odata.context': string;
3
- '@odata.count': number;
4
- '@microsoft.graph.tips': string;
5
- value: Array<{
6
- businessPhones: Array<string>;
7
- displayName: string;
8
- givenName: string;
9
- jobTitle: string | null;
10
- mail: string;
11
- mobilePhone: string | null;
12
- officeLocation: string | null;
13
- preferredLanguage: string | null;
14
- surname: string | null;
15
- userPrincipalName: string;
16
- id: string;
17
- }>;
18
- };
@@ -1,122 +0,0 @@
1
- import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { AppDto, GetAllApps200, UploadBundleBody } from '../../model';
3
- import { ErrorType, BodyType } from '../../use-client';
4
-
5
- type AwaitedInput<T> = PromiseLike<T> | T;
6
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
- /**
8
- * @summary Upload an application bundle file
9
- */
10
- export declare const useUploadBundleHook: () => (key: string, uploadBundleBody: BodyType<UploadBundleBody>) => Promise<void>;
11
- export declare const useUploadBundleMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
12
- mutation?: UseMutationOptions<void, TError, {
13
- key: string;
14
- data: BodyType<UploadBundleBody>;
15
- }, TContext> | undefined;
16
- } | undefined) => UseMutationOptions<void, TError, {
17
- key: string;
18
- data: BodyType<UploadBundleBody>;
19
- }, TContext>;
20
- export type UploadBundleMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUploadBundleHook>>>>;
21
- export type UploadBundleMutationBody = BodyType<UploadBundleBody>;
22
- export type UploadBundleMutationError = ErrorType<unknown>;
23
- /**
24
- * @summary Upload an application bundle file
25
- */
26
- export declare const useUploadBundle: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
27
- mutation?: UseMutationOptions<void, TError, {
28
- key: string;
29
- data: BodyType<UploadBundleBody>;
30
- }, TContext> | undefined;
31
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<void, TError, {
32
- key: string;
33
- data: BodyType<UploadBundleBody>;
34
- }, TContext>;
35
- /**
36
- * @summary List apps
37
- */
38
- export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<GetAllApps200>;
39
- export declare const getGetAllAppsQueryKey: () => readonly ["/api/apps"];
40
- export declare const useGetAllAppsQueryOptions: <TData = GetAllApps200, TError = import('../../use-client').HttpError>(options?: {
41
- query?: Partial<UseQueryOptions<GetAllApps200, TError, TData, QueryKey>> | undefined;
42
- } | undefined) => UseQueryOptions<GetAllApps200, TError, TData, QueryKey> & {
43
- queryKey: QueryKey;
44
- };
45
- export type GetAllAppsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>>;
46
- export type GetAllAppsQueryError = ErrorType<void>;
47
- /**
48
- * @summary List apps
49
- */
50
- export declare const useGetAllApps: <TData = GetAllApps200, TError = import('../../use-client').HttpError>(options?: {
51
- query?: Partial<UseQueryOptions<GetAllApps200, TError, TData, QueryKey>> | undefined;
52
- } | undefined) => UseQueryResult<TData, TError> & {
53
- queryKey: QueryKey;
54
- };
55
- /**
56
- * @summary Create or update App
57
- */
58
- export declare const useCreateOrUpdateAppHook: () => (appDto: BodyType<AppDto>) => Promise<AppDto>;
59
- export declare const useCreateOrUpdateAppMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
60
- mutation?: UseMutationOptions<AppDto, TError, {
61
- data: BodyType<AppDto>;
62
- }, TContext> | undefined;
63
- } | undefined) => UseMutationOptions<AppDto, TError, {
64
- data: BodyType<AppDto>;
65
- }, TContext>;
66
- export type CreateOrUpdateAppMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateAppHook>>>>;
67
- export type CreateOrUpdateAppMutationBody = BodyType<AppDto>;
68
- export type CreateOrUpdateAppMutationError = ErrorType<void>;
69
- /**
70
- * @summary Create or update App
71
- */
72
- export declare const useCreateOrUpdateApp: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
73
- mutation?: UseMutationOptions<AppDto, TError, {
74
- data: BodyType<AppDto>;
75
- }, TContext> | undefined;
76
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<AppDto, TError, {
77
- data: BodyType<AppDto>;
78
- }, TContext>;
79
- /**
80
- * @summary Get app by key
81
- */
82
- export declare const useGetAppByKeyHook: () => (key: string, signal?: AbortSignal) => Promise<AppDto>;
83
- export declare const getGetAppByKeyQueryKey: (key: string) => readonly [`/api/apps/key/${string}`];
84
- export declare const useGetAppByKeyQueryOptions: <TData = AppDto, TError = import('../../use-client').HttpError>(key: string, options?: {
85
- query?: Partial<UseQueryOptions<AppDto, TError, TData, QueryKey>> | undefined;
86
- } | undefined) => UseQueryOptions<AppDto, TError, TData, QueryKey> & {
87
- queryKey: QueryKey;
88
- };
89
- export type GetAppByKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAppByKeyHook>>>>;
90
- export type GetAppByKeyQueryError = ErrorType<void>;
91
- /**
92
- * @summary Get app by key
93
- */
94
- export declare const useGetAppByKey: <TData = AppDto, TError = import('../../use-client').HttpError>(key: string, options?: {
95
- query?: Partial<UseQueryOptions<AppDto, TError, TData, QueryKey>> | undefined;
96
- } | undefined) => UseQueryResult<TData, TError> & {
97
- queryKey: QueryKey;
98
- };
99
- /**
100
- * @summary Delete app by key
101
- */
102
- export declare const useDeleteAppByKeyHook: () => (key: string) => Promise<void>;
103
- export declare const useDeleteAppByKeyMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
104
- mutation?: UseMutationOptions<void, TError, {
105
- key: string;
106
- }, TContext> | undefined;
107
- } | undefined) => UseMutationOptions<void, TError, {
108
- key: string;
109
- }, TContext>;
110
- export type DeleteAppByKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteAppByKeyHook>>>>;
111
- export type DeleteAppByKeyMutationError = ErrorType<unknown>;
112
- /**
113
- * @summary Delete app by key
114
- */
115
- export declare const useDeleteAppByKey: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
116
- mutation?: UseMutationOptions<void, TError, {
117
- key: string;
118
- }, TContext> | undefined;
119
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<void, TError, {
120
- key: string;
121
- }, TContext>;
122
- export {};
@@ -1,94 +0,0 @@
1
- import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { CategoryDto, GetAllCategories200 } from '../../model';
3
- import { ErrorType, BodyType } from '../../use-client';
4
-
5
- type AwaitedInput<T> = PromiseLike<T> | T;
6
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
- /**
8
- * @summary List categories
9
- */
10
- export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<GetAllCategories200>;
11
- export declare const getGetAllCategoriesQueryKey: () => readonly ["/api/apps/categories"];
12
- export declare const useGetAllCategoriesQueryOptions: <TData = GetAllCategories200, TError = import('../../use-client').HttpError>(options?: {
13
- query?: Partial<UseQueryOptions<GetAllCategories200, TError, TData, QueryKey>> | undefined;
14
- } | undefined) => UseQueryOptions<GetAllCategories200, TError, TData, QueryKey> & {
15
- queryKey: QueryKey;
16
- };
17
- export type GetAllCategoriesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>>;
18
- export type GetAllCategoriesQueryError = ErrorType<void>;
19
- /**
20
- * @summary List categories
21
- */
22
- export declare const useGetAllCategories: <TData = GetAllCategories200, TError = import('../../use-client').HttpError>(options?: {
23
- query?: Partial<UseQueryOptions<GetAllCategories200, TError, TData, QueryKey>> | undefined;
24
- } | undefined) => UseQueryResult<TData, TError> & {
25
- queryKey: QueryKey;
26
- };
27
- /**
28
- * @summary Create or update category
29
- */
30
- export declare const useCreateOrUpdateCategoryHook: () => (categoryDto: BodyType<CategoryDto>) => Promise<CategoryDto>;
31
- export declare const useCreateOrUpdateCategoryMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
32
- mutation?: UseMutationOptions<CategoryDto, TError, {
33
- data: BodyType<CategoryDto>;
34
- }, TContext> | undefined;
35
- } | undefined) => UseMutationOptions<CategoryDto, TError, {
36
- data: BodyType<CategoryDto>;
37
- }, TContext>;
38
- export type CreateOrUpdateCategoryMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateCategoryHook>>>>;
39
- export type CreateOrUpdateCategoryMutationBody = BodyType<CategoryDto>;
40
- export type CreateOrUpdateCategoryMutationError = ErrorType<void>;
41
- /**
42
- * @summary Create or update category
43
- */
44
- export declare const useCreateOrUpdateCategory: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
45
- mutation?: UseMutationOptions<CategoryDto, TError, {
46
- data: BodyType<CategoryDto>;
47
- }, TContext> | undefined;
48
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<CategoryDto, TError, {
49
- data: BodyType<CategoryDto>;
50
- }, TContext>;
51
- /**
52
- * @summary Get category by id
53
- */
54
- export declare const useGetCategoryByIdHook: () => (id: string, signal?: AbortSignal) => Promise<CategoryDto>;
55
- export declare const getGetCategoryByIdQueryKey: (id: string) => readonly [`/api/apps/categories/id/${string}`];
56
- export declare const useGetCategoryByIdQueryOptions: <TData = CategoryDto, TError = import('../../use-client').HttpError>(id: string, options?: {
57
- query?: Partial<UseQueryOptions<CategoryDto, TError, TData, QueryKey>> | undefined;
58
- } | undefined) => UseQueryOptions<CategoryDto, TError, TData, QueryKey> & {
59
- queryKey: QueryKey;
60
- };
61
- export type GetCategoryByIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetCategoryByIdHook>>>>;
62
- export type GetCategoryByIdQueryError = ErrorType<void>;
63
- /**
64
- * @summary Get category by id
65
- */
66
- export declare const useGetCategoryById: <TData = CategoryDto, TError = import('../../use-client').HttpError>(id: string, options?: {
67
- query?: Partial<UseQueryOptions<CategoryDto, TError, TData, QueryKey>> | undefined;
68
- } | undefined) => UseQueryResult<TData, TError> & {
69
- queryKey: QueryKey;
70
- };
71
- /**
72
- * @summary Delete category by id
73
- */
74
- export declare const useDeleteCategoryByIdHook: () => (id: string) => Promise<void>;
75
- export declare const useDeleteCategoryByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
76
- mutation?: UseMutationOptions<void, TError, {
77
- id: string;
78
- }, TContext> | undefined;
79
- } | undefined) => UseMutationOptions<void, TError, {
80
- id: string;
81
- }, TContext>;
82
- export type DeleteCategoryByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteCategoryByIdHook>>>>;
83
- export type DeleteCategoryByIdMutationError = ErrorType<unknown>;
84
- /**
85
- * @summary Delete category by id
86
- */
87
- export declare const useDeleteCategoryById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
88
- mutation?: UseMutationOptions<void, TError, {
89
- id: string;
90
- }, TContext> | undefined;
91
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<void, TError, {
92
- id: string;
93
- }, TContext>;
94
- export {};
@@ -1,27 +0,0 @@
1
- import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { EnvironmentDto } from '../../model';
3
- import { ErrorType } from '../../use-client';
4
-
5
- type AwaitedInput<T> = PromiseLike<T> | T;
6
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
- /**
8
- * @summary Get current environment
9
- */
10
- export declare const useGetCurrentEnvironmentHook: () => (signal?: AbortSignal) => Promise<EnvironmentDto>;
11
- export declare const getGetCurrentEnvironmentQueryKey: () => readonly ["/_discovery/environments/current"];
12
- export declare const useGetCurrentEnvironmentQueryOptions: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
13
- query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
14
- } | undefined) => UseQueryOptions<EnvironmentDto, TError, TData, QueryKey> & {
15
- queryKey: QueryKey;
16
- };
17
- export type GetCurrentEnvironmentQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetCurrentEnvironmentHook>>>>;
18
- export type GetCurrentEnvironmentQueryError = ErrorType<void>;
19
- /**
20
- * @summary Get current environment
21
- */
22
- export declare const useGetCurrentEnvironment: <TData = EnvironmentDto, TError = import('../../use-client').HttpError>(options?: {
23
- query?: Partial<UseQueryOptions<EnvironmentDto, TError, TData, QueryKey>> | undefined;
24
- } | undefined) => UseQueryResult<TData, TError> & {
25
- queryKey: QueryKey;
26
- };
27
- export {};
@@ -1,31 +0,0 @@
1
- import { UseMutationOptions } from '@tanstack/react-query';
2
- import { FeedbackDto, FeedbackResponseDto } from '../../model';
3
- import { ErrorType, BodyType } from '../../use-client';
4
-
5
- type AwaitedInput<T> = PromiseLike<T> | T;
6
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
- /**
8
- * @summary Create feedback
9
- */
10
- export declare const useCreateFeedbackHook: () => (feedbackDto: BodyType<FeedbackDto>) => Promise<FeedbackResponseDto>;
11
- export declare const useCreateFeedbackMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
12
- mutation?: UseMutationOptions<FeedbackResponseDto, TError, {
13
- data: BodyType<FeedbackDto>;
14
- }, TContext> | undefined;
15
- } | undefined) => UseMutationOptions<FeedbackResponseDto, TError, {
16
- data: BodyType<FeedbackDto>;
17
- }, TContext>;
18
- export type CreateFeedbackMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateFeedbackHook>>>>;
19
- export type CreateFeedbackMutationBody = BodyType<FeedbackDto>;
20
- export type CreateFeedbackMutationError = ErrorType<void>;
21
- /**
22
- * @summary Create feedback
23
- */
24
- export declare const useCreateFeedback: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
25
- mutation?: UseMutationOptions<FeedbackResponseDto, TError, {
26
- data: BodyType<FeedbackDto>;
27
- }, TContext> | undefined;
28
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<FeedbackResponseDto, TError, {
29
- data: BodyType<FeedbackDto>;
30
- }, TContext>;
31
- export {};
@@ -1,162 +0,0 @@
1
- import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { RomaConfigurationDto, SettingDto } from '../../model';
3
- import { ErrorType, BodyType } from '../../use-client';
4
-
5
- type AwaitedInput<T> = PromiseLike<T> | T;
6
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
- /**
8
- * @summary Get roma configuration by id
9
- */
10
- export declare const useGetRomaConfigurationByIdHook: () => (id: string, signal?: AbortSignal) => Promise<RomaConfigurationDto>;
11
- export declare const getGetRomaConfigurationByIdQueryKey: (id: string) => readonly [`/api/configurations/id/${string}`];
12
- export declare const useGetRomaConfigurationByIdQueryOptions: <TData = RomaConfigurationDto, TError = import('../../use-client').HttpError>(id: string, options?: {
13
- query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
14
- } | undefined) => UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey> & {
15
- queryKey: QueryKey;
16
- };
17
- export type GetRomaConfigurationByIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetRomaConfigurationByIdHook>>>>;
18
- export type GetRomaConfigurationByIdQueryError = ErrorType<void>;
19
- /**
20
- * @summary Get roma configuration by id
21
- */
22
- export declare const useGetRomaConfigurationById: <TData = RomaConfigurationDto, TError = import('../../use-client').HttpError>(id: string, options?: {
23
- query?: Partial<UseQueryOptions<RomaConfigurationDto, TError, TData, QueryKey>> | undefined;
24
- } | undefined) => UseQueryResult<TData, TError> & {
25
- queryKey: QueryKey;
26
- };
27
- /**
28
- * @summary Update a roma configuration
29
- */
30
- export declare const useUpdateRomaConfigurationHook: () => (id: string, romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
31
- export declare const useUpdateRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
32
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
33
- id: string;
34
- data: BodyType<RomaConfigurationDto>;
35
- }, TContext> | undefined;
36
- } | undefined) => UseMutationOptions<RomaConfigurationDto, TError, {
37
- id: string;
38
- data: BodyType<RomaConfigurationDto>;
39
- }, TContext>;
40
- export type UpdateRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateRomaConfigurationHook>>>>;
41
- export type UpdateRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
42
- export type UpdateRomaConfigurationMutationError = ErrorType<void>;
43
- /**
44
- * @summary Update a roma configuration
45
- */
46
- export declare const useUpdateRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
47
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
48
- id: string;
49
- data: BodyType<RomaConfigurationDto>;
50
- }, TContext> | undefined;
51
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<RomaConfigurationDto, TError, {
52
- id: string;
53
- data: BodyType<RomaConfigurationDto>;
54
- }, TContext>;
55
- /**
56
- * @summary Delete a roma configuration by id
57
- */
58
- export declare const useDeleteRomaConfigurationHook: () => (id: string) => Promise<SettingDto>;
59
- export declare const useDeleteRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
60
- mutation?: UseMutationOptions<SettingDto, TError, {
61
- id: string;
62
- }, TContext> | undefined;
63
- } | undefined) => UseMutationOptions<SettingDto, TError, {
64
- id: string;
65
- }, TContext>;
66
- export type DeleteRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteRomaConfigurationHook>>>>;
67
- export type DeleteRomaConfigurationMutationError = ErrorType<void>;
68
- /**
69
- * @summary Delete a roma configuration by id
70
- */
71
- export declare const useDeleteRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
72
- mutation?: UseMutationOptions<SettingDto, TError, {
73
- id: string;
74
- }, TContext> | undefined;
75
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<SettingDto, TError, {
76
- id: string;
77
- }, TContext>;
78
- /**
79
- * @summary Get all roma configurations
80
- */
81
- export declare const useGetAllRomaConfigurationHook: () => (signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
82
- export declare const getGetAllRomaConfigurationQueryKey: () => readonly ["/api/configurations"];
83
- export declare const useGetAllRomaConfigurationQueryOptions: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
84
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
85
- } | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
86
- queryKey: QueryKey;
87
- };
88
- export type GetAllRomaConfigurationQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationHook>>>>;
89
- export type GetAllRomaConfigurationQueryError = ErrorType<void>;
90
- /**
91
- * @summary Get all roma configurations
92
- */
93
- export declare const useGetAllRomaConfiguration: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(options?: {
94
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
95
- } | undefined) => UseQueryResult<TData, TError> & {
96
- queryKey: QueryKey;
97
- };
98
- /**
99
- * @summary Create a new roma configuration
100
- */
101
- export declare const useAddRomaConfigurationHook: () => (romaConfigurationDto: BodyType<RomaConfigurationDto>) => Promise<RomaConfigurationDto>;
102
- export declare const useAddRomaConfigurationMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
103
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
104
- data: BodyType<RomaConfigurationDto>;
105
- }, TContext> | undefined;
106
- } | undefined) => UseMutationOptions<RomaConfigurationDto, TError, {
107
- data: BodyType<RomaConfigurationDto>;
108
- }, TContext>;
109
- export type AddRomaConfigurationMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useAddRomaConfigurationHook>>>>;
110
- export type AddRomaConfigurationMutationBody = BodyType<RomaConfigurationDto>;
111
- export type AddRomaConfigurationMutationError = ErrorType<void>;
112
- /**
113
- * @summary Create a new roma configuration
114
- */
115
- export declare const useAddRomaConfiguration: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
116
- mutation?: UseMutationOptions<RomaConfigurationDto, TError, {
117
- data: BodyType<RomaConfigurationDto>;
118
- }, TContext> | undefined;
119
- } | undefined) => import('@tanstack/react-query/build/legacy/types').UseMutationResult<RomaConfigurationDto, TError, {
120
- data: BodyType<RomaConfigurationDto>;
121
- }, TContext>;
122
- /**
123
- * @summary Get valid roma configuration types
124
- */
125
- export declare const useGetAllRomaConfigurationTypesHook: () => (signal?: AbortSignal) => Promise<"servicebus"[]>;
126
- export declare const getGetAllRomaConfigurationTypesQueryKey: () => readonly ["/api/configurations/types"];
127
- export declare const useGetAllRomaConfigurationTypesQueryOptions: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
128
- query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
129
- } | undefined) => UseQueryOptions<"servicebus"[], TError, TData, QueryKey> & {
130
- queryKey: QueryKey;
131
- };
132
- export type GetAllRomaConfigurationTypesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationTypesHook>>>>;
133
- export type GetAllRomaConfigurationTypesQueryError = ErrorType<void>;
134
- /**
135
- * @summary Get valid roma configuration types
136
- */
137
- export declare const useGetAllRomaConfigurationTypes: <TData = "servicebus"[], TError = import('../../use-client').HttpError>(options?: {
138
- query?: Partial<UseQueryOptions<"servicebus"[], TError, TData, QueryKey>> | undefined;
139
- } | undefined) => UseQueryResult<TData, TError> & {
140
- queryKey: QueryKey;
141
- };
142
- /**
143
- * @summary Get all roma configurations for given type
144
- */
145
- export declare const useGetAllRomaConfigurationByTypeHook: () => (type: string, signal?: AbortSignal) => Promise<RomaConfigurationDto[]>;
146
- export declare const getGetAllRomaConfigurationByTypeQueryKey: (type: string) => readonly [`/api/configurations/types/type/${string}`];
147
- export declare const useGetAllRomaConfigurationByTypeQueryOptions: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(type: string, options?: {
148
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
149
- } | undefined) => UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey> & {
150
- queryKey: QueryKey;
151
- };
152
- export type GetAllRomaConfigurationByTypeQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllRomaConfigurationByTypeHook>>>>;
153
- export type GetAllRomaConfigurationByTypeQueryError = ErrorType<void>;
154
- /**
155
- * @summary Get all roma configurations for given type
156
- */
157
- export declare const useGetAllRomaConfigurationByType: <TData = RomaConfigurationDto[], TError = import('../../use-client').HttpError>(type: string, options?: {
158
- query?: Partial<UseQueryOptions<RomaConfigurationDto[], TError, TData, QueryKey>> | undefined;
159
- } | undefined) => UseQueryResult<TData, TError> & {
160
- queryKey: QueryKey;
161
- };
162
- export {};
@@ -1,21 +0,0 @@
1
- import { QueryKey, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { ServerSentEventStandardEventDto } from '../../model';
3
- import { ErrorType } from '../../use-client';
4
-
5
- type AwaitedInput<T> = PromiseLike<T> | T;
6
- type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
- export declare const useStreamEventsHook: () => (signal?: AbortSignal) => Promise<ServerSentEventStandardEventDto[]>;
8
- export declare const getStreamEventsQueryKey: () => readonly ["/eventstream/activitylog"];
9
- export declare const useStreamEventsQueryOptions: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
10
- query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
11
- } | undefined) => UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey> & {
12
- queryKey: QueryKey;
13
- };
14
- export type StreamEventsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useStreamEventsHook>>>>;
15
- export type StreamEventsQueryError = ErrorType<unknown>;
16
- export declare const useStreamEvents: <TData = ServerSentEventStandardEventDto[], TError = import('../../use-client').HttpError>(options?: {
17
- query?: Partial<UseQueryOptions<ServerSentEventStandardEventDto[], TError, TData, QueryKey>> | undefined;
18
- } | undefined) => UseQueryResult<TData, TError> & {
19
- queryKey: QueryKey;
20
- };
21
- export {};