@equinor/roma-framework 0.0.10-BETA.2 → 0.0.10

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 (52) hide show
  1. package/dev-portal/index.d.ts +12 -0
  2. package/dev-portal/lib/api/fetcher.d.ts +21 -0
  3. package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
  4. package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
  5. package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
  6. package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
  7. package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
  8. package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
  9. package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +267 -0
  10. package/dev-portal/lib/api/roma/index.d.ts +8 -0
  11. package/dev-portal/lib/api/roma/model/appDto.d.ts +26 -0
  12. package/dev-portal/lib/api/roma/model/categoryDto.d.ts +13 -0
  13. package/dev-portal/lib/api/roma/model/environmentDto.d.ts +16 -0
  14. package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
  15. package/dev-portal/lib/api/roma/model/index.d.ts +19 -0
  16. package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
  17. package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
  18. package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
  19. package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
  20. package/dev-portal/lib/api/roma/model/serviceDto.d.ts +16 -0
  21. package/dev-portal/lib/api/roma/model/settingDto.d.ts +16 -0
  22. package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +10 -0
  23. package/dev-portal/lib/api/roma/model/versionDto.d.ts +12 -0
  24. package/dev-portal/lib/api/roma/use-client.d.ts +34 -0
  25. package/dev-portal/lib/api/trade-recap/deal.d.ts +160 -0
  26. package/dev-portal/lib/api/trade-recap/download-recap.d.ts +6 -0
  27. package/dev-portal/lib/api/trade-recap/get-deals.d.ts +15 -0
  28. package/dev-portal/lib/api/trade-recap/get-recap.d.ts +11 -0
  29. package/dev-portal/lib/api/trade-recap/index.d.ts +5 -0
  30. package/dev-portal/lib/api/trade-recap/recap.d.ts +22 -0
  31. package/dev-portal/lib/api/util.d.ts +1 -0
  32. package/dev-portal/lib/app-provider.d.ts +32 -0
  33. package/dev-portal/lib/dev-portal/AppLoader.d.ts +12 -0
  34. package/dev-portal/lib/dev-portal/AppViewer.d.ts +6 -0
  35. package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +12 -0
  36. package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +12 -0
  37. package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
  38. package/dev-portal/lib/eds-event-provider.d.ts +6 -0
  39. package/dev-portal/lib/hooks/use-get-api-roles.d.ts +14 -0
  40. package/dev-portal/lib/hooks/use-has-api-role.d.ts +7 -0
  41. package/dev-portal/lib/make-component.d.ts +12 -0
  42. package/dev-portal/lib/style-provider.d.ts +7 -0
  43. package/dev-portal/package.json +16 -0
  44. package/package.json +1 -1
  45. package/roma-framework.mjs +6414 -0
  46. /package/{index.html → dev-portal/index.html} +0 -0
  47. /package/{lib → dev-portal/lib}/dev-portal/Header.d.ts +0 -0
  48. /package/{lib → dev-portal/lib}/dev-portal/Navigation.d.ts +0 -0
  49. /package/{lib → dev-portal/lib}/dev-portal/Root.d.ts +0 -0
  50. /package/{lib → dev-portal/lib}/dev-portal/config.d.ts +0 -0
  51. /package/{lib → dev-portal/lib}/dev-portal/index.d.ts +0 -0
  52. /package/{roma-framework.umd.js → dev-portal/roma-framework.umd.js} +0 -0
@@ -0,0 +1,267 @@
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
+ import type { QueryKey, UseMutationOptions, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
9
+ import type { SettingDto } from '../../model';
10
+ import type { BodyType, ErrorType } from '../../use-client';
11
+ type AwaitedInput<T> = PromiseLike<T> | T;
12
+ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
13
+ /**
14
+ * @summary Get a users private Setting by id
15
+ */
16
+ export declare const useGetSettingByUserAndIdHook: () => (userId: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
17
+ export declare const getGetSettingByUserAndIdQueryKey: (userId: string, id: string) => readonly [`/api/settings/user/${string}/id/${string}`];
18
+ export declare const useGetSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, id: string, options?: {
19
+ query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
20
+ } | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
21
+ queryKey: QueryKey;
22
+ };
23
+ export type GetSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndIdHook>>>>;
24
+ export type GetSettingByUserAndIdQueryError = ErrorType<void>;
25
+ /**
26
+ * @summary Get a users private Setting by id
27
+ */
28
+ export declare const useGetSettingByUserAndId: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, id: string, options?: {
29
+ query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
30
+ } | undefined) => UseQueryResult<TData, TError> & {
31
+ queryKey: QueryKey;
32
+ };
33
+ /**
34
+ * @summary Update a private Setting by id
35
+ */
36
+ export declare const useUpdateByUserIdAndIdHook: () => (userId: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
37
+ export declare const useUpdateByUserIdAndIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
38
+ mutation?: UseMutationOptions<SettingDto, TError, {
39
+ userId: string;
40
+ id: string;
41
+ data: BodyType<SettingDto>;
42
+ }, TContext> | undefined;
43
+ } | undefined) => UseMutationOptions<SettingDto, TError, {
44
+ userId: string;
45
+ id: string;
46
+ data: BodyType<SettingDto>;
47
+ }, TContext>;
48
+ export type UpdateByUserIdAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdateByUserIdAndIdHook>>>>;
49
+ export type UpdateByUserIdAndIdMutationBody = BodyType<SettingDto>;
50
+ export type UpdateByUserIdAndIdMutationError = ErrorType<void>;
51
+ /**
52
+ * @summary Update a private Setting by id
53
+ */
54
+ export declare const useUpdateByUserIdAndId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
55
+ mutation?: UseMutationOptions<SettingDto, TError, {
56
+ userId: string;
57
+ id: string;
58
+ data: BodyType<SettingDto>;
59
+ }, TContext> | undefined;
60
+ } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
61
+ userId: string;
62
+ id: string;
63
+ data: BodyType<SettingDto>;
64
+ }, TContext>;
65
+ /**
66
+ * @summary Delete a private Setting by id
67
+ */
68
+ export declare const useDeletePrivateSettingByIdHook: () => (userId: string, id: string) => Promise<SettingDto>;
69
+ export declare const useDeletePrivateSettingByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
70
+ mutation?: UseMutationOptions<SettingDto, TError, {
71
+ userId: string;
72
+ id: string;
73
+ }, TContext> | undefined;
74
+ } | undefined) => UseMutationOptions<SettingDto, TError, {
75
+ userId: string;
76
+ id: string;
77
+ }, TContext>;
78
+ export type DeletePrivateSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePrivateSettingByIdHook>>>>;
79
+ export type DeletePrivateSettingByIdMutationError = ErrorType<void>;
80
+ /**
81
+ * @summary Delete a private Setting by id
82
+ */
83
+ export declare const useDeletePrivateSettingById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
84
+ mutation?: UseMutationOptions<SettingDto, TError, {
85
+ userId: string;
86
+ id: string;
87
+ }, TContext> | undefined;
88
+ } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
89
+ userId: string;
90
+ id: string;
91
+ }, TContext>;
92
+ /**
93
+ * @summary Get a users public Setting by id
94
+ */
95
+ export declare const useGetPublicSettingByUserAndIdHook: () => (appShortName: string, id: string, signal?: AbortSignal) => Promise<SettingDto>;
96
+ export declare const getGetPublicSettingByUserAndIdQueryKey: (appShortName: string, id: string) => readonly [`/api/settings/application/${string}/id/${string}`];
97
+ export declare const useGetPublicSettingByUserAndIdQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(appShortName: string, id: string, options?: {
98
+ query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
99
+ } | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
100
+ queryKey: QueryKey;
101
+ };
102
+ export type GetPublicSettingByUserAndIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetPublicSettingByUserAndIdHook>>>>;
103
+ export type GetPublicSettingByUserAndIdQueryError = ErrorType<void>;
104
+ /**
105
+ * @summary Get a users public Setting by id
106
+ */
107
+ export declare const useGetPublicSettingByUserAndId: <TData = SettingDto, TError = import("../../use-client").HttpError>(appShortName: string, id: string, options?: {
108
+ query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
109
+ } | undefined) => UseQueryResult<TData, TError> & {
110
+ queryKey: QueryKey;
111
+ };
112
+ /**
113
+ * @summary Update a public Setting for a given appShortName by id
114
+ */
115
+ export declare const useUpdatePublicSettingByAppShortNameAndIdHook: () => (appShortName: string, id: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
116
+ export declare const useUpdatePublicSettingByAppShortNameAndIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
117
+ mutation?: UseMutationOptions<SettingDto, TError, {
118
+ appShortName: string;
119
+ id: string;
120
+ data: BodyType<SettingDto>;
121
+ }, TContext> | undefined;
122
+ } | undefined) => UseMutationOptions<SettingDto, TError, {
123
+ appShortName: string;
124
+ id: string;
125
+ data: BodyType<SettingDto>;
126
+ }, TContext>;
127
+ export type UpdatePublicSettingByAppShortNameAndIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useUpdatePublicSettingByAppShortNameAndIdHook>>>>;
128
+ export type UpdatePublicSettingByAppShortNameAndIdMutationBody = BodyType<SettingDto>;
129
+ export type UpdatePublicSettingByAppShortNameAndIdMutationError = ErrorType<void>;
130
+ /**
131
+ * @summary Update a public Setting for a given appShortName by id
132
+ */
133
+ export declare const useUpdatePublicSettingByAppShortNameAndId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
134
+ mutation?: UseMutationOptions<SettingDto, TError, {
135
+ appShortName: string;
136
+ id: string;
137
+ data: BodyType<SettingDto>;
138
+ }, TContext> | undefined;
139
+ } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
140
+ appShortName: string;
141
+ id: string;
142
+ data: BodyType<SettingDto>;
143
+ }, TContext>;
144
+ /**
145
+ * @summary Delete a public Setting for a appShortName by id
146
+ */
147
+ export declare const useDeletePublicSettingByIdHook: () => (appShortName: string, id: string) => Promise<SettingDto>;
148
+ export declare const useDeletePublicSettingByIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
149
+ mutation?: UseMutationOptions<SettingDto, TError, {
150
+ appShortName: string;
151
+ id: string;
152
+ }, TContext> | undefined;
153
+ } | undefined) => UseMutationOptions<SettingDto, TError, {
154
+ appShortName: string;
155
+ id: string;
156
+ }, TContext>;
157
+ export type DeletePublicSettingByIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeletePublicSettingByIdHook>>>>;
158
+ export type DeletePublicSettingByIdMutationError = ErrorType<void>;
159
+ /**
160
+ * @summary Delete a public Setting for a appShortName by id
161
+ */
162
+ export declare const useDeletePublicSettingById: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
163
+ mutation?: UseMutationOptions<SettingDto, TError, {
164
+ appShortName: string;
165
+ id: string;
166
+ }, TContext> | undefined;
167
+ } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
168
+ appShortName: string;
169
+ id: string;
170
+ }, TContext>;
171
+ /**
172
+ * @summary Get all private Settings by userId
173
+ */
174
+ export declare const useGetSettingsByUserIdHook: () => (userId: string, signal?: AbortSignal) => Promise<SettingDto[]>;
175
+ export declare const getGetSettingsByUserIdQueryKey: (userId: string) => readonly [`/api/settings/user/${string}`];
176
+ export declare const useGetSettingsByUserIdQueryOptions: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, options?: {
177
+ query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
178
+ } | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
179
+ queryKey: QueryKey;
180
+ };
181
+ export type GetSettingsByUserIdQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByUserIdHook>>>>;
182
+ export type GetSettingsByUserIdQueryError = ErrorType<void>;
183
+ /**
184
+ * @summary Get all private Settings by userId
185
+ */
186
+ export declare const useGetSettingsByUserId: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, options?: {
187
+ query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
188
+ } | undefined) => UseQueryResult<TData, TError> & {
189
+ queryKey: QueryKey;
190
+ };
191
+ /**
192
+ * @summary Create a private Setting for a given user
193
+ */
194
+ export declare const useCreateSettingByUserIdHook: () => (userId: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
195
+ export declare const useCreateSettingByUserIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
196
+ mutation?: UseMutationOptions<SettingDto, TError, {
197
+ userId: string;
198
+ data: BodyType<SettingDto>;
199
+ }, TContext> | undefined;
200
+ } | undefined) => UseMutationOptions<SettingDto, TError, {
201
+ userId: string;
202
+ data: BodyType<SettingDto>;
203
+ }, TContext>;
204
+ export type CreateSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateSettingByUserIdHook>>>>;
205
+ export type CreateSettingByUserIdMutationBody = BodyType<SettingDto>;
206
+ export type CreateSettingByUserIdMutationError = ErrorType<void>;
207
+ /**
208
+ * @summary Create a private Setting for a given user
209
+ */
210
+ export declare const useCreateSettingByUserId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
211
+ mutation?: UseMutationOptions<SettingDto, TError, {
212
+ userId: string;
213
+ data: BodyType<SettingDto>;
214
+ }, TContext> | undefined;
215
+ } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
216
+ userId: string;
217
+ data: BodyType<SettingDto>;
218
+ }, TContext>;
219
+ /**
220
+ * @summary Get all public or mine Settings by appShortName
221
+ */
222
+ export declare const useGetSettingsByAppShortNameHook: () => (appShortName: string, signal?: AbortSignal) => Promise<SettingDto[]>;
223
+ export declare const getGetSettingsByAppShortNameQueryKey: (appShortName: string) => readonly [`/api/settings/application/${string}`];
224
+ export declare const useGetSettingsByAppShortNameQueryOptions: <TData = SettingDto[], TError = import("../../use-client").HttpError>(appShortName: string, options?: {
225
+ query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
226
+ } | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
227
+ queryKey: QueryKey;
228
+ };
229
+ export type GetSettingsByAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingsByAppShortNameHook>>>>;
230
+ export type GetSettingsByAppShortNameQueryError = ErrorType<void>;
231
+ /**
232
+ * @summary Get all public or mine Settings by appShortName
233
+ */
234
+ export declare const useGetSettingsByAppShortName: <TData = SettingDto[], TError = import("../../use-client").HttpError>(appShortName: string, options?: {
235
+ query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
236
+ } | undefined) => UseQueryResult<TData, TError> & {
237
+ queryKey: QueryKey;
238
+ };
239
+ /**
240
+ * @summary Create a public Setting for a given appShortName
241
+ */
242
+ export declare const useCreatePublicSettingByUserIdHook: () => (appShortName: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
243
+ export declare const useCreatePublicSettingByUserIdMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
244
+ mutation?: UseMutationOptions<SettingDto, TError, {
245
+ appShortName: string;
246
+ data: BodyType<SettingDto>;
247
+ }, TContext> | undefined;
248
+ } | undefined) => UseMutationOptions<SettingDto, TError, {
249
+ appShortName: string;
250
+ data: BodyType<SettingDto>;
251
+ }, TContext>;
252
+ export type CreatePublicSettingByUserIdMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreatePublicSettingByUserIdHook>>>>;
253
+ export type CreatePublicSettingByUserIdMutationBody = BodyType<SettingDto>;
254
+ export type CreatePublicSettingByUserIdMutationError = ErrorType<void>;
255
+ /**
256
+ * @summary Create a public Setting for a given appShortName
257
+ */
258
+ export declare const useCreatePublicSettingByUserId: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
259
+ mutation?: UseMutationOptions<SettingDto, TError, {
260
+ appShortName: string;
261
+ data: BodyType<SettingDto>;
262
+ }, TContext> | undefined;
263
+ } | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
264
+ appShortName: string;
265
+ data: BodyType<SettingDto>;
266
+ }, TContext>;
267
+ export {};
@@ -0,0 +1,8 @@
1
+ export * from './api/setting-controller/setting-controller';
2
+ export * from './api/app-controller/app-controller';
3
+ export * from './api/service-controller/service-controller';
4
+ export * from './api/category-controller/category-controller';
5
+ export * from './api/server-side-event-controller/server-side-event-controller';
6
+ export * from './api/environment-controller/environment-controller';
7
+ export * from './model';
8
+ export * from './api/roma-configuration-controller/roma-configuration-controller';
@@ -0,0 +1,26 @@
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
+ import type { CategoryDto } from './categoryDto';
9
+ import type { VersionDto } from './versionDto';
10
+ export interface AppDto {
11
+ accentColor?: string;
12
+ category?: CategoryDto;
13
+ categoryId: string;
14
+ description: string;
15
+ entry: string;
16
+ hide?: boolean;
17
+ icon?: string;
18
+ key: string;
19
+ name: string;
20
+ order?: number;
21
+ publishedDate?: string;
22
+ shortName: string;
23
+ tags?: string[];
24
+ type: string;
25
+ version: VersionDto;
26
+ }
@@ -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 CategoryDto {
9
+ color?: string;
10
+ defaultIcon?: string;
11
+ id: string;
12
+ name: string;
13
+ }
@@ -0,0 +1,16 @@
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
+ import type { ServiceDto } from './serviceDto';
9
+ export interface EnvironmentDto {
10
+ clientId?: string;
11
+ environmentName?: string;
12
+ resourceV1?: string;
13
+ resourceV2?: string;
14
+ services?: ServiceDto[];
15
+ type?: string;
16
+ }
@@ -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 type GetAllRomaConfigurationTypes200Item = (typeof GetAllRomaConfigurationTypes200Item)[keyof typeof GetAllRomaConfigurationTypes200Item];
9
+ export declare const GetAllRomaConfigurationTypes200Item: {
10
+ readonly servicebus: "servicebus";
11
+ };
@@ -0,0 +1,19 @@
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 * from './appDto';
9
+ export * from './categoryDto';
10
+ export * from './environmentDto';
11
+ export * from './getAllRomaConfigurationTypes200Item';
12
+ export * from './romaConfigurationDto';
13
+ export * from './romaConfigurationDtoValue';
14
+ export * from './serverSentEventActivityLogDto';
15
+ export * from './serverSentEventStandardEventDto';
16
+ export * from './serviceDto';
17
+ export * from './settingDto';
18
+ export * from './settingDtoValue';
19
+ export * from './versionDto';
@@ -0,0 +1,14 @@
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
+ import type { RomaConfigurationDtoValue } from './romaConfigurationDtoValue';
9
+ export interface RomaConfigurationDto {
10
+ id?: string;
11
+ name: string;
12
+ type: string;
13
+ value: RomaConfigurationDtoValue;
14
+ }
@@ -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 RomaConfigurationDtoValue = {
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 interface ServerSentEventActivityLogDto {
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 interface ServerSentEventStandardEventDto {
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,16 @@
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 ServiceDto {
9
+ defaultScopes: string[];
10
+ internal: boolean;
11
+ key: string;
12
+ name: string;
13
+ serviceName?: string;
14
+ type: string;
15
+ uri: string;
16
+ }
@@ -0,0 +1,16 @@
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
+ import type { SettingDtoValue } from './settingDtoValue';
9
+ export interface SettingDto {
10
+ appShortName?: string;
11
+ id?: string;
12
+ isPublic?: boolean;
13
+ setting?: string;
14
+ userId?: string;
15
+ value: SettingDtoValue;
16
+ }
@@ -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 SettingDtoValue = {
9
+ [key: string]: any;
10
+ };
@@ -0,0 +1,12 @@
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 VersionDto {
9
+ major: number;
10
+ minor: number;
11
+ patch: number;
12
+ }
@@ -0,0 +1,34 @@
1
+ type CustomClient<T> = (data: {
2
+ url: string;
3
+ method: 'get' | 'post' | 'put' | 'delete' | 'patch';
4
+ params?: Record<string, any>;
5
+ headers?: Record<string, any>;
6
+ data?: BodyType<unknown>;
7
+ signal?: AbortSignal;
8
+ }) => Promise<T>;
9
+ export declare const useCustomClient: <T>() => CustomClient<T>;
10
+ export default useCustomClient;
11
+ export type HttpErrorServerResponse = {
12
+ timestamp: string;
13
+ status: number;
14
+ error: string;
15
+ message: string;
16
+ path: string;
17
+ };
18
+ export type HttpErrorResponse = {
19
+ status: number;
20
+ statusText: string;
21
+ message: unknown;
22
+ ok: boolean;
23
+ headers: Headers;
24
+ url: string;
25
+ };
26
+ export declare class HttpError extends Error {
27
+ readonly message: string;
28
+ readonly response: HttpErrorResponse;
29
+ constructor(message: string, response: HttpErrorResponse);
30
+ }
31
+ export type ErrorType<T> = HttpError;
32
+ export type BodyType<BodyData> = BodyData & {
33
+ headers?: any;
34
+ };
@@ -0,0 +1,160 @@
1
+ type Nullable<T> = T | null | undefined;
2
+ export type Response = {
3
+ items: Item[];
4
+ salesOfficeContext: string[];
5
+ page: number;
6
+ currentPage: number;
7
+ previousPage: Nullable<number>;
8
+ nextPage: Nullable<number>;
9
+ totalCount: number;
10
+ pageSize: number;
11
+ maxDeepSearch: number;
12
+ searchSuccessful: boolean;
13
+ errorMessage: Nullable<string>;
14
+ onRecapDataEnrichmentDisabledMessage: string;
15
+ last: boolean;
16
+ recapDataEnrichmentEnabled: boolean;
17
+ };
18
+ export type Item = {
19
+ dealId: number;
20
+ dealKey: DealKey;
21
+ salePurchaseInd: string;
22
+ typeOfTrade: string;
23
+ customer: Customer;
24
+ strategy: Strategy;
25
+ generalTermsAndConditions?: string;
26
+ tradeDate: string;
27
+ buyer: string;
28
+ buyerShortName?: string;
29
+ seller: string;
30
+ sellerShortName?: string;
31
+ law?: string;
32
+ arbitration: boolean;
33
+ inspectionCost?: string;
34
+ deliveryType: string;
35
+ deliveryYear: number;
36
+ deliveryMth: number;
37
+ creditTerms?: string;
38
+ location?: string;
39
+ grade: string;
40
+ quality: string;
41
+ vesselName?: string;
42
+ dealStatus: string;
43
+ cargoNo?: string;
44
+ sportNo?: string;
45
+ lastModifiedDate: string;
46
+ createdBy: string;
47
+ spotTermIndicator: string;
48
+ transportType?: string;
49
+ lcNumberExt?: string;
50
+ lcNumberInt: any;
51
+ blDate: string;
52
+ blDateIsActual: boolean;
53
+ norDate?: string;
54
+ norDateIsActual: boolean;
55
+ codDate?: string;
56
+ codDateIsActual: boolean;
57
+ blVolume?: number;
58
+ outturnVolume?: number;
59
+ contractualVolume: number;
60
+ volumeUnit: string;
61
+ gainLossPercentage?: number;
62
+ acceptUpdateFromSport: boolean;
63
+ titlePoint: string;
64
+ dischargePort?: string;
65
+ paymentDueDate?: string;
66
+ tolerance: string;
67
+ demurrage?: string;
68
+ laytime?: string;
69
+ contractualDateType: string;
70
+ contractualStartDate: string;
71
+ contractualEndDate: string;
72
+ volumeFrom: string;
73
+ status?: Status;
74
+ attentionRequired: boolean;
75
+ cargoStatusRats?: string;
76
+ bookoutSequence: any;
77
+ titleTransferDate: string;
78
+ broker?: Broker;
79
+ responsibleOps?: string;
80
+ mailSent: boolean;
81
+ pricingStartDate?: string;
82
+ pricingEndDate?: string;
83
+ priceDifferential: string;
84
+ typeOfPricing: string;
85
+ priceText: string;
86
+ priceIndicator: string;
87
+ counterpartyReferenceNumber: any;
88
+ counterpartyReferenceDate: any;
89
+ reference1?: string;
90
+ reference2?: string;
91
+ termDsYear?: number;
92
+ termDsNo?: number;
93
+ officialLoadingRangeFrom?: string;
94
+ officialLoadingRangeTo?: string;
95
+ pricingPeriodDescription?: string;
96
+ finalVolume: number;
97
+ paymentTerm?: string;
98
+ sportRemarks?: string;
99
+ imosVesselCode?: string;
100
+ imosVoyageNo?: string;
101
+ imosVoyageStatus?: string;
102
+ priceEscalated: boolean;
103
+ loadingPort?: string;
104
+ cargoStatusSport?: string;
105
+ priceBasis: string;
106
+ deliveryPeriod: string;
107
+ };
108
+ export type DealKey = {
109
+ companyId: string;
110
+ salesOffice: string;
111
+ dsYear: number;
112
+ dsNo: number;
113
+ dealNo: number;
114
+ lineItemNo: number;
115
+ dealKeyShort: string;
116
+ dealKeyFull: string;
117
+ };
118
+ export type Customer = {
119
+ custNo: string;
120
+ custName: string;
121
+ custFullName: string;
122
+ };
123
+ export type Strategy = {
124
+ id: number;
125
+ year: number;
126
+ no: number;
127
+ description: string;
128
+ reportingMonth: number;
129
+ strategyKey: string;
130
+ closed: boolean;
131
+ class1: string;
132
+ class2: string;
133
+ class3: string;
134
+ class4: string;
135
+ dateClosed: any;
136
+ dateOpened: string;
137
+ };
138
+ export type Status = {
139
+ statusLines: StatusLine[];
140
+ message: string;
141
+ statusType: string;
142
+ };
143
+ export type StatusLine = {
144
+ statusType: string;
145
+ propertyName: string;
146
+ propertyType: any;
147
+ displayName: string;
148
+ message: string;
149
+ source1: any;
150
+ value1: any;
151
+ source2: any;
152
+ value2: any;
153
+ };
154
+ export type Broker = {
155
+ brokerNo: string;
156
+ name: string;
157
+ fullName: string;
158
+ active: boolean;
159
+ };
160
+ export {};