@equinor/roma-framework 0.0.12 → 0.1.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 (36) hide show
  1. package/dev-portal/package.json +1 -1
  2. package/dev-portal/roma-framework.umd.js +276 -191
  3. package/index.d.ts +1 -0
  4. package/lib/api/ms-graph/api/group/find-group-members.d.ts +3 -0
  5. package/lib/api/ms-graph/api/user/find-user-by-shortname.d.ts +1 -0
  6. package/lib/api/ms-graph/api/user/find-users-by-mail.d.ts +3 -0
  7. package/lib/api/ms-graph/index.d.ts +11 -0
  8. package/lib/api/ms-graph/model/group-membership.d.ts +8 -0
  9. package/lib/api/ms-graph/model/user.d.ts +18 -0
  10. package/lib/api/roma/api/app-controller/app-controller.d.ts +36 -8
  11. package/lib/api/roma/api/category-controller/category-controller.d.ts +8 -8
  12. package/lib/api/roma/api/feedback-controller/feedback-controller.d.ts +31 -0
  13. package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +1 -1
  14. package/lib/api/roma/api/service-controller/service-controller.d.ts +8 -8
  15. package/lib/api/roma/api/setting-controller/setting-controller.d.ts +32 -32
  16. package/lib/api/roma/index.d.ts +1 -0
  17. package/lib/api/roma/model/environmentDto.d.ts +1 -0
  18. package/lib/api/roma/model/feedbackDetailsDto.d.ts +13 -0
  19. package/lib/api/roma/model/feedbackDto.d.ts +7 -0
  20. package/lib/api/roma/model/feedbackFeedbackDto.d.ts +13 -0
  21. package/lib/api/roma/model/feedbackResponseDto.d.ts +5 -0
  22. package/lib/api/roma/model/feedbackResponseIssueDto.d.ts +11 -0
  23. package/lib/api/roma/model/feedbackSolutionDto.d.ts +10 -0
  24. package/lib/api/roma/model/getAllApps200.d.ts +10 -0
  25. package/lib/api/roma/model/getAllCategories200.d.ts +10 -0
  26. package/lib/api/roma/model/getAllServices200.d.ts +10 -0
  27. package/lib/api/roma/model/getSettingsByAppShortName200.d.ts +10 -0
  28. package/lib/api/roma/model/getSettingsByUserId200.d.ts +10 -0
  29. package/lib/api/roma/model/index.d.ts +12 -0
  30. package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +3 -1
  31. package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +3 -1
  32. package/lib/api/roma/model/settingDtoValue.d.ts +3 -1
  33. package/lib/api/roma/model/uploadBundleBody.d.ts +10 -0
  34. package/lib/api/roma/use-client.d.ts +1 -1
  35. package/package.json +1 -1
  36. package/roma-framework.mjs +132 -1
package/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './lib/dev-portal/AppViewer';
6
6
  export * from './lib/style-provider';
7
7
  export * from './lib/dev-portal/HttpErrorViewer';
8
8
  export * from './lib/api/roma';
9
+ export * from './lib/api/ms-graph';
9
10
  export * from './lib/app-provider';
10
11
  export * from './lib/query/persister';
11
12
  export * from './lib/hooks/use-get-api-roles';
@@ -0,0 +1,3 @@
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>;
@@ -0,0 +1 @@
1
+ export declare const useFindUsersByShortname: (shortnames: Array<string> | string, fields?: string[]) => import('@tanstack/react-query/build/legacy/types').UseQueryResult<import('../..').GroupMembership, Error>;
@@ -0,0 +1,3 @@
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>;
@@ -0,0 +1,11 @@
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';
@@ -0,0 +1,8 @@
1
+ export type GroupMembership = {
2
+ '@odata.context': string;
3
+ '@odata.number': number;
4
+ value: Array<{
5
+ displayName: string;
6
+ id: string;
7
+ }>;
8
+ };
@@ -0,0 +1,18 @@
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,17 +1,45 @@
1
1
  import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { AppDto } from '../../model';
3
- import { BodyType, ErrorType } from '../../use-client';
2
+ import { AppDto, GetAllApps200, UploadBundleBody } from '../../model';
3
+ import { ErrorType, BodyType } from '../../use-client';
4
4
 
5
5
  type AwaitedInput<T> = PromiseLike<T> | T;
6
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>;
7
35
  /**
8
36
  * @summary List apps
9
37
  */
10
- export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<AppDto[]>;
38
+ export declare const useGetAllAppsHook: () => (signal?: AbortSignal) => Promise<GetAllApps200>;
11
39
  export declare const getGetAllAppsQueryKey: () => readonly ["/api/apps"];
12
- export declare const useGetAllAppsQueryOptions: <TData = AppDto[], TError = import('../../use-client').HttpError>(options?: {
13
- query?: Partial<UseQueryOptions<AppDto[], TError, TData, QueryKey>> | undefined;
14
- } | undefined) => UseQueryOptions<AppDto[], TError, TData, QueryKey> & {
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> & {
15
43
  queryKey: QueryKey;
16
44
  };
17
45
  export type GetAllAppsQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllAppsHook>>>>;
@@ -19,8 +47,8 @@ export type GetAllAppsQueryError = ErrorType<void>;
19
47
  /**
20
48
  * @summary List apps
21
49
  */
22
- export declare const useGetAllApps: <TData = AppDto[], TError = import('../../use-client').HttpError>(options?: {
23
- query?: Partial<UseQueryOptions<AppDto[], TError, TData, QueryKey>> | undefined;
50
+ export declare const useGetAllApps: <TData = GetAllApps200, TError = import('../../use-client').HttpError>(options?: {
51
+ query?: Partial<UseQueryOptions<GetAllApps200, TError, TData, QueryKey>> | undefined;
24
52
  } | undefined) => UseQueryResult<TData, TError> & {
25
53
  queryKey: QueryKey;
26
54
  };
@@ -1,17 +1,17 @@
1
1
  import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { CategoryDto } from '../../model';
3
- import { BodyType, ErrorType } from '../../use-client';
2
+ import { CategoryDto, GetAllCategories200 } from '../../model';
3
+ import { ErrorType, BodyType } from '../../use-client';
4
4
 
5
5
  type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
8
8
  * @summary List categories
9
9
  */
10
- export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<CategoryDto[]>;
10
+ export declare const useGetAllCategoriesHook: () => (signal?: AbortSignal) => Promise<GetAllCategories200>;
11
11
  export declare const getGetAllCategoriesQueryKey: () => readonly ["/api/apps/categories"];
12
- export declare const useGetAllCategoriesQueryOptions: <TData = CategoryDto[], TError = import('../../use-client').HttpError>(options?: {
13
- query?: Partial<UseQueryOptions<CategoryDto[], TError, TData, QueryKey>> | undefined;
14
- } | undefined) => UseQueryOptions<CategoryDto[], TError, TData, QueryKey> & {
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
15
  queryKey: QueryKey;
16
16
  };
17
17
  export type GetAllCategoriesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllCategoriesHook>>>>;
@@ -19,8 +19,8 @@ export type GetAllCategoriesQueryError = ErrorType<void>;
19
19
  /**
20
20
  * @summary List categories
21
21
  */
22
- export declare const useGetAllCategories: <TData = CategoryDto[], TError = import('../../use-client').HttpError>(options?: {
23
- query?: Partial<UseQueryOptions<CategoryDto[], TError, TData, QueryKey>> | undefined;
22
+ export declare const useGetAllCategories: <TData = GetAllCategories200, TError = import('../../use-client').HttpError>(options?: {
23
+ query?: Partial<UseQueryOptions<GetAllCategories200, TError, TData, QueryKey>> | undefined;
24
24
  } | undefined) => UseQueryResult<TData, TError> & {
25
25
  queryKey: QueryKey;
26
26
  };
@@ -0,0 +1,31 @@
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,6 +1,6 @@
1
1
  import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
2
  import { RomaConfigurationDto, SettingDto } from '../../model';
3
- import { BodyType, ErrorType } from '../../use-client';
3
+ import { ErrorType, BodyType } from '../../use-client';
4
4
 
5
5
  type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
@@ -1,17 +1,17 @@
1
1
  import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { ServiceDto } from '../../model';
3
- import { BodyType, ErrorType } from '../../use-client';
2
+ import { GetAllServices200, ServiceDto } from '../../model';
3
+ import { ErrorType, BodyType } from '../../use-client';
4
4
 
5
5
  type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
8
8
  * @summary List services for current environment
9
9
  */
10
- export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<ServiceDto[]>;
10
+ export declare const useGetAllServicesHook: () => (signal?: AbortSignal) => Promise<GetAllServices200>;
11
11
  export declare const getGetAllServicesQueryKey: () => readonly ["/api/apps/services"];
12
- export declare const useGetAllServicesQueryOptions: <TData = ServiceDto[], TError = import('../../use-client').HttpError>(options?: {
13
- query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
14
- } | undefined) => UseQueryOptions<ServiceDto[], TError, TData, QueryKey> & {
12
+ export declare const useGetAllServicesQueryOptions: <TData = GetAllServices200, TError = import('../../use-client').HttpError>(options?: {
13
+ query?: Partial<UseQueryOptions<GetAllServices200, TError, TData, QueryKey>> | undefined;
14
+ } | undefined) => UseQueryOptions<GetAllServices200, TError, TData, QueryKey> & {
15
15
  queryKey: QueryKey;
16
16
  };
17
17
  export type GetAllServicesQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetAllServicesHook>>>>;
@@ -19,8 +19,8 @@ export type GetAllServicesQueryError = ErrorType<void>;
19
19
  /**
20
20
  * @summary List services for current environment
21
21
  */
22
- export declare const useGetAllServices: <TData = ServiceDto[], TError = import('../../use-client').HttpError>(options?: {
23
- query?: Partial<UseQueryOptions<ServiceDto[], TError, TData, QueryKey>> | undefined;
22
+ export declare const useGetAllServices: <TData = GetAllServices200, TError = import('../../use-client').HttpError>(options?: {
23
+ query?: Partial<UseQueryOptions<GetAllServices200, TError, TData, QueryKey>> | undefined;
24
24
  } | undefined) => UseQueryResult<TData, TError> & {
25
25
  queryKey: QueryKey;
26
26
  };
@@ -1,11 +1,11 @@
1
1
  import { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { SettingDto } from '../../model';
3
- import { BodyType, ErrorType } from '../../use-client';
2
+ import { GetSettingsByAppShortName200, GetSettingsByUserId200, SettingDto } from '../../model';
3
+ import { ErrorType, BodyType } from '../../use-client';
4
4
 
5
5
  type AwaitedInput<T> = PromiseLike<T> | T;
6
6
  type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
7
7
  /**
8
- * @summary Get a users private Setting by id
8
+ * @summary Get a users Setting by id
9
9
  */
10
10
  export declare const useGetSettingByUserAndIdHook: () => (userId: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
11
11
  export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
@@ -17,7 +17,7 @@ export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto,
17
17
  export type GetSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>;
18
18
  export type GetSettingByUserAndIdQueryError = ErrorType<void>;
19
19
  /**
20
- * @summary Get a users private Setting by id
20
+ * @summary Get a users Setting by id
21
21
  */
22
22
  export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(userId: string, id: string, options?: {
23
23
  query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
@@ -25,7 +25,7 @@ export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = imp
25
25
  queryKey: QueryKey;
26
26
  };
27
27
  /**
28
- * @summary Update a private Setting by id
28
+ * @summary Update a Setting by id
29
29
  */
30
30
  export declare const useUpdateByUserIdAndIdHook: () => (userId: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
31
31
  export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
@@ -43,7 +43,7 @@ export type UpdateByUserIdAndIdMutationResult = NonNullable<Awaited<ReturnType<R
43
43
  export type UpdateByUserIdAndIdMutationBody = BodyType<SettingDto>;
44
44
  export type UpdateByUserIdAndIdMutationError = ErrorType<void>;
45
45
  /**
46
- * @summary Update a private Setting by id
46
+ * @summary Update a Setting by id
47
47
  */
48
48
  export declare const useUpdateByUserIdAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
49
49
  mutation?: UseMutationOptions<SettingDto, TError, {
@@ -57,7 +57,7 @@ export declare const useUpdateByUserIdAndId: <TError = import('../../use-client'
57
57
  data: BodyType<SettingDto>;
58
58
  }, TContext>;
59
59
  /**
60
- * @summary Delete a private Setting by id
60
+ * @summary Delete a Setting by id
61
61
  */
62
62
  export declare const useDeletePrivateSettingByIdHook: () => (userId: string, id: string) => Promise<SettingDto>;
63
63
  export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
@@ -72,7 +72,7 @@ export declare const useDeletePrivateSettingByIdMutationOptions: <TError = impor
72
72
  export type DeletePrivateSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>>;
73
73
  export type DeletePrivateSettingByIdMutationError = ErrorType<void>;
74
74
  /**
75
- * @summary Delete a private Setting by id
75
+ * @summary Delete a Setting by id
76
76
  */
77
77
  export declare const useDeletePrivateSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
78
78
  mutation?: UseMutationOptions<SettingDto, TError, {
@@ -84,7 +84,7 @@ export declare const useDeletePrivateSettingById: <TError = import('../../use-cl
84
84
  id: string;
85
85
  }, TContext>;
86
86
  /**
87
- * @summary Get a users public Setting by id
87
+ * @summary Get a users Setting by id
88
88
  */
89
89
  export declare const useGetPublicSettingByUserAndIdHook: () => (appShortName: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
90
90
  export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
@@ -96,7 +96,7 @@ export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = Settin
96
96
  export type GetPublicSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>;
97
97
  export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
98
98
  /**
99
- * @summary Get a users public Setting by id
99
+ * @summary Get a users Setting by id
100
100
  */
101
101
  export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import('../../use-client').HttpError>(appShortName: string, id: string, options?: {
102
102
  query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
@@ -104,7 +104,7 @@ export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError
104
104
  queryKey: QueryKey;
105
105
  };
106
106
  /**
107
- * @summary Update a public Setting for a given appShortName by id
107
+ * @summary Update a Setting for a given appShortName by id
108
108
  */
109
109
  export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => (appShortName: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
110
110
  export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
@@ -122,7 +122,7 @@ export type UpdatePublicSettingByAppShortNameAndIdMutationResult = NonNullable<A
122
122
  export type UpdatePublicSettingByAppShortNameAndIdMutationBody = BodyType<SettingDto>;
123
123
  export type UpdatePublicSettingByAppShortNameAndIdMutationError = ErrorType<void>;
124
124
  /**
125
- * @summary Update a public Setting for a given appShortName by id
125
+ * @summary Update a Setting for a given appShortName by id
126
126
  */
127
127
  export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
128
128
  mutation?: UseMutationOptions<SettingDto, TError, {
@@ -136,7 +136,7 @@ export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import
136
136
  data: BodyType<SettingDto>;
137
137
  }, TContext>;
138
138
  /**
139
- * @summary Delete a public Setting for a appShortName by id
139
+ * @summary Delete a Setting for a appShortName by id
140
140
  */
141
141
  export declare const useDeletePublicSettingByIdHook: () => (appShortName: string, id: string) => Promise<SettingDto>;
142
142
  export declare const useDeletePublicSettingByIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
@@ -151,7 +151,7 @@ export declare const useDeletePublicSettingByIdMutationOptions: <TError = import
151
151
  export type DeletePublicSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>>;
152
152
  export type DeletePublicSettingByIdMutationError = ErrorType<void>;
153
153
  /**
154
- * @summary Delete a public Setting for a appShortName by id
154
+ * @summary Delete a Setting for a appShortName by id
155
155
  */
156
156
  export declare const useDeletePublicSettingById: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
157
157
  mutation?: UseMutationOptions<SettingDto, TError, {
@@ -163,27 +163,27 @@ export declare const useDeletePublicSettingById: <TError = import('../../use-cli
163
163
  id: string;
164
164
  }, TContext>;
165
165
  /**
166
- * @summary Get all private Settings by userId
166
+ * @summary Get all Settings by userId
167
167
  */
168
- export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<SettingDto[]>;
168
+ export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<GetSettingsByUserId200>;
169
169
  export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
170
- export declare const useGetSettingsByUserIdQueryOptions: <TData = SettingDto[], TError = import('../../use-client').HttpError>(userId: string, options?: {
171
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
172
- } | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
170
+ export declare const useGetSettingsByUserIdQueryOptions: <TData = GetSettingsByUserId200, TError = import('../../use-client').HttpError>(userId: string, options?: {
171
+ query?: Partial<UseQueryOptions<GetSettingsByUserId200, TError, TData, QueryKey>> | undefined;
172
+ } | undefined) => UseQueryOptions<GetSettingsByUserId200, TError, TData, QueryKey> & {
173
173
  queryKey: QueryKey;
174
174
  };
175
175
  export type GetSettingsByUserIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>;
176
176
  export type GetSettingsByUserIdQueryError = ErrorType<void>;
177
177
  /**
178
- * @summary Get all private Settings by userId
178
+ * @summary Get all Settings by userId
179
179
  */
180
- export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = import('../../use-client').HttpError>(userId: string, options?: {
181
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
180
+ export declare const useGetSettingsByUserId: <TData = GetSettingsByUserId200, TError = import('../../use-client').HttpError>(userId: string, options?: {
181
+ query?: Partial<UseQueryOptions<GetSettingsByUserId200, TError, TData, QueryKey>> | undefined;
182
182
  } | undefined) => UseQueryResult<TData, TError> & {
183
183
  queryKey: QueryKey;
184
184
  };
185
185
  /**
186
- * @summary Create a private Setting for a given user
186
+ * @summary Create a Setting for a given user
187
187
  */
188
188
  export declare const useCreateSettingByUserIdHook: () => (userId: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
189
189
  export declare const useCreateSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
@@ -199,7 +199,7 @@ export type CreateSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType
199
199
  export type CreateSettingByUserIdMutationBody = BodyType<SettingDto>;
200
200
  export type CreateSettingByUserIdMutationError = ErrorType<void>;
201
201
  /**
202
- * @summary Create a private Setting for a given user
202
+ * @summary Create a Setting for a given user
203
203
  */
204
204
  export declare const useCreateSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
205
205
  mutation?: UseMutationOptions<SettingDto, TError, {
@@ -213,11 +213,11 @@ export declare const useCreateSettingByUserId: <TError = import('../../use-clien
213
213
  /**
214
214
  * @summary Get all public or mine Settings by appShortName
215
215
  */
216
- export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<SettingDto[]>;
216
+ export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<GetSettingsByAppShortName200>;
217
217
  export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
218
- export declare const useGetSettingsByAppShortNameQueryOptions: <TData = SettingDto[], TError = import('../../use-client').HttpError>(appShortName: string, options?: {
219
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
220
- } | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
218
+ export declare const useGetSettingsByAppShortNameQueryOptions: <TData = GetSettingsByAppShortName200, TError = import('../../use-client').HttpError>(appShortName: string, options?: {
219
+ query?: Partial<UseQueryOptions<GetSettingsByAppShortName200, TError, TData, QueryKey>> | undefined;
220
+ } | undefined) => UseQueryOptions<GetSettingsByAppShortName200, TError, TData, QueryKey> & {
221
221
  queryKey: QueryKey;
222
222
  };
223
223
  export type GetSettingsByAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>;
@@ -225,13 +225,13 @@ export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
225
225
  /**
226
226
  * @summary Get all public or mine Settings by appShortName
227
227
  */
228
- export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError = import('../../use-client').HttpError>(appShortName: string, options?: {
229
- query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
228
+ export declare const useGetSettingsByAppShortName: <TData = GetSettingsByAppShortName200, TError = import('../../use-client').HttpError>(appShortName: string, options?: {
229
+ query?: Partial<UseQueryOptions<GetSettingsByAppShortName200, TError, TData, QueryKey>> | undefined;
230
230
  } | undefined) => UseQueryResult<TData, TError> & {
231
231
  queryKey: QueryKey;
232
232
  };
233
233
  /**
234
- * @summary Create a public Setting for a given appShortName
234
+ * @summary Create a Setting for a given appShortName
235
235
  */
236
236
  export declare const useCreatePublicSettingByUserIdHook: () => (appShortName: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
237
237
  export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
@@ -247,7 +247,7 @@ export type CreatePublicSettingByUserIdMutationResult = NonNullable<Awaited<Retu
247
247
  export type CreatePublicSettingByUserIdMutationBody = BodyType<SettingDto>;
248
248
  export type CreatePublicSettingByUserIdMutationError = ErrorType<void>;
249
249
  /**
250
- * @summary Create a public Setting for a given appShortName
250
+ * @summary Create a Setting for a given appShortName
251
251
  */
252
252
  export declare const useCreatePublicSettingByUserId: <TError = import('../../use-client').HttpError, TContext = unknown>(options?: {
253
253
  mutation?: UseMutationOptions<SettingDto, TError, {
@@ -6,3 +6,4 @@ export * from './api/server-side-event-controller/server-side-event-controller';
6
6
  export * from './api/environment-controller/environment-controller';
7
7
  export * from './model';
8
8
  export * from './api/roma-configuration-controller/roma-configuration-controller';
9
+ export * from './api/feedback-controller/feedback-controller';
@@ -3,6 +3,7 @@ import { ServiceDto } from './serviceDto';
3
3
  export interface EnvironmentDto {
4
4
  clientId?: string;
5
5
  environmentName?: string;
6
+ frontendClientId?: string;
6
7
  resourceV1?: string;
7
8
  resourceV2?: string;
8
9
  services?: ServiceDto[];
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export interface FeedbackDetailsDto {
9
+ description: string;
10
+ includeUsername?: boolean;
11
+ title: string;
12
+ type: string;
13
+ }
@@ -0,0 +1,7 @@
1
+ import { FeedbackDetailsDto } from './feedbackDetailsDto';
2
+ import { FeedbackSolutionDto } from './feedbackSolutionDto';
3
+
4
+ export interface FeedbackDto {
5
+ details: FeedbackDetailsDto;
6
+ solution: FeedbackSolutionDto;
7
+ }
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export interface FeedbackFeedbackDto {
9
+ description: string;
10
+ includeUsername?: boolean;
11
+ title: string;
12
+ type: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ import { FeedbackResponseIssueDto } from './feedbackResponseIssueDto';
2
+
3
+ export interface FeedbackResponseDto {
4
+ issue: FeedbackResponseIssueDto;
5
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export interface FeedbackResponseIssueDto {
9
+ area: string;
10
+ key: string;
11
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export interface FeedbackSolutionDto {
9
+ area: string;
10
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export type GetAllApps200 = {
9
+ [key: string]: any;
10
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export type GetAllCategories200 = {
9
+ [key: string]: any;
10
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export type GetAllServices200 = {
9
+ [key: string]: any;
10
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export type GetSettingsByAppShortName200 = {
9
+ [key: string]: any;
10
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Generated by orval v6.20.0 🍺
3
+ * Do not edit manually.
4
+ * Tops Roma Rest API
5
+ * Tops Roma Rest API
6
+ * OpenAPI spec version: v1.0.0
7
+ */
8
+ export type GetSettingsByUserId200 = {
9
+ [key: string]: any;
10
+ };
@@ -8,7 +8,18 @@
8
8
  export * from './appDto';
9
9
  export * from './categoryDto';
10
10
  export * from './environmentDto';
11
+ export * from './feedbackDetailsDto';
12
+ export * from './feedbackDto';
13
+ export * from './feedbackFeedbackDto';
14
+ export * from './feedbackResponseDto';
15
+ export * from './feedbackResponseIssueDto';
16
+ export * from './feedbackSolutionDto';
17
+ export * from './getAllApps200';
18
+ export * from './getAllCategories200';
11
19
  export * from './getAllRomaConfigurationTypes200Item';
20
+ export * from './getAllServices200';
21
+ export * from './getSettingsByAppShortName200';
22
+ export * from './getSettingsByUserId200';
12
23
  export * from './romaConfigurationDto';
13
24
  export * from './romaConfigurationDtoValue';
14
25
  export * from './serverSentEventActivityLogDto';
@@ -16,4 +27,5 @@ export * from './serverSentEventStandardEventDto';
16
27
  export * from './serviceDto';
17
28
  export * from './settingDto';
18
29
  export * from './settingDtoValue';
30
+ export * from './uploadBundleBody';
19
31
  export * from './versionDto';
@@ -5,4 +5,6 @@
5
5
  * Tops Roma Rest API
6
6
  * OpenAPI spec version: v1.0.0
7
7
  */
8
- export type RomaConfigurationDtoValue = Record<string, any>;
8
+ export type RomaConfigurationDtoValue = {
9
+ [key: string]: any;
10
+ };
@@ -5,4 +5,6 @@
5
5
  * Tops Roma Rest API
6
6
  * OpenAPI spec version: v1.0.0
7
7
  */
8
- export type ServerSentEventStandardEventDto = Record<string, any>;
8
+ export interface ServerSentEventStandardEventDto {
9
+ [key: string]: any;
10
+ }
@@ -5,4 +5,6 @@
5
5
  * Tops Roma Rest API
6
6
  * OpenAPI spec version: v1.0.0
7
7
  */
8
- export type SettingDtoValue = Record<string, any>;
8
+ export type SettingDtoValue = {
9
+ [key: string]: any;
10
+ };