@equinor/roma-framework 0.0.5 → 0.0.7-BETA.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dev-portal/index.d.ts +10 -0
- package/dev-portal/index.html +2 -2
- package/dev-portal/lib/api/fetcher.d.ts +21 -0
- package/dev-portal/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
- package/dev-portal/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
- package/dev-portal/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
- package/dev-portal/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
- package/dev-portal/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
- package/dev-portal/lib/api/roma/index.d.ts +8 -0
- package/dev-portal/lib/api/roma/model/appDto.d.ts +26 -0
- package/dev-portal/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/environmentDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/dev-portal/lib/api/roma/model/index.d.ts +19 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
- package/dev-portal/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/dev-portal/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/dev-portal/lib/api/roma/model/settingDto.d.ts +13 -0
- package/dev-portal/lib/api/roma/model/settingDtoValue.d.ts +12 -0
- package/dev-portal/lib/api/roma/model/versionDto.d.ts +12 -0
- package/dev-portal/lib/api/roma/use-client.d.ts +34 -0
- package/dev-portal/lib/api/trade-recap/deal.d.ts +160 -0
- package/dev-portal/lib/api/trade-recap/download-recap.d.ts +6 -0
- package/dev-portal/lib/api/trade-recap/get-deals.d.ts +15 -0
- package/dev-portal/lib/api/trade-recap/get-recap.d.ts +11 -0
- package/dev-portal/lib/api/trade-recap/index.d.ts +5 -0
- package/dev-portal/lib/api/trade-recap/recap.d.ts +22 -0
- package/dev-portal/lib/api/util.d.ts +1 -0
- package/dev-portal/lib/app-provider.d.ts +15 -0
- package/dev-portal/lib/dev-portal/HttpErrorViewer.d.ts +13 -0
- package/dev-portal/lib/eds-event-provider.d.ts +6 -0
- package/dev-portal/lib/make-component.d.ts +12 -0
- package/dev-portal/lib/style-provider.d.ts +7 -0
- package/dev-portal/package.json +1 -1
- package/dev-portal/roma-framework.umd.js +611 -121
- package/index.d.ts +1 -1
- package/lib/api/roma/api/app-controller/app-controller.d.ts +100 -0
- package/lib/api/roma/api/category-controller/category-controller.d.ts +100 -0
- package/lib/api/roma/api/environment-controller/environment-controller.d.ts +33 -0
- package/lib/api/roma/api/roma-configuration-controller/roma-configuration-controller.d.ts +168 -0
- package/lib/api/roma/api/server-side-event-controller/server-side-event-controller.d.ts +27 -0
- package/lib/api/roma/api/service-controller/service-controller.d.ts +100 -0
- package/lib/api/roma/api/setting-controller/setting-controller.d.ts +193 -0
- package/lib/api/roma/index.d.ts +8 -1
- package/lib/api/roma/model/appDto.d.ts +26 -0
- package/lib/api/roma/model/categoryDto.d.ts +13 -0
- package/lib/api/roma/model/environmentDto.d.ts +16 -0
- package/lib/api/roma/model/getAllRomaConfigurationTypes200Item.d.ts +11 -0
- package/lib/api/roma/model/index.d.ts +19 -0
- package/lib/api/roma/model/romaConfigurationDto.d.ts +14 -0
- package/lib/api/roma/model/romaConfigurationDtoValue.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventActivityLogDto.d.ts +10 -0
- package/lib/api/roma/model/serverSentEventStandardEventDto.d.ts +10 -0
- package/lib/api/roma/model/serviceDto.d.ts +16 -0
- package/lib/api/roma/model/settingDto.d.ts +13 -0
- package/lib/api/roma/model/settingDtoValue.d.ts +12 -0
- package/lib/api/roma/model/versionDto.d.ts +12 -0
- package/lib/api/roma/use-client.d.ts +34 -0
- package/lib/app-provider.d.ts +15 -0
- package/package.json +1 -1
- package/roma-framework.mjs +1105 -3232
- package/lib/api/roma/get-environment.d.ts +0 -7
- package/lib/sse/useSse.d.ts +0 -5
|
@@ -0,0 +1,193 @@
|
|
|
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 an application default Settings
|
|
15
|
+
*/
|
|
16
|
+
export declare const useGetSettingByUserAndSettingKeyHook: () => (userId: string, settingKey: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
17
|
+
export declare const getGetSettingByUserAndSettingKeyQueryKey: (userId: string, settingKey: string) => readonly [`/api/settings/user/${string}/setting/${string}`];
|
|
18
|
+
export declare const useGetSettingByUserAndSettingKeyQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, settingKey: 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 GetSettingByUserAndSettingKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndSettingKeyHook>>>>;
|
|
24
|
+
export type GetSettingByUserAndSettingKeyQueryError = ErrorType<void>;
|
|
25
|
+
/**
|
|
26
|
+
* @summary Get an application default Settings
|
|
27
|
+
*/
|
|
28
|
+
export declare const useGetSettingByUserAndSettingKey: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, settingKey: string, options?: {
|
|
29
|
+
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
30
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
31
|
+
queryKey: QueryKey;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @summary Create or update an application default Settings
|
|
35
|
+
*/
|
|
36
|
+
export declare const useCreateOrUpdateSettingByUserAndSettingKeyHook: () => (userId: string, settingKey: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
37
|
+
export declare const useCreateOrUpdateSettingByUserAndSettingKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
38
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
39
|
+
userId: string;
|
|
40
|
+
settingKey: string;
|
|
41
|
+
data: BodyType<SettingDto>;
|
|
42
|
+
}, TContext> | undefined;
|
|
43
|
+
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
44
|
+
userId: string;
|
|
45
|
+
settingKey: string;
|
|
46
|
+
data: BodyType<SettingDto>;
|
|
47
|
+
}, TContext>;
|
|
48
|
+
export type CreateOrUpdateSettingByUserAndSettingKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateSettingByUserAndSettingKeyHook>>>>;
|
|
49
|
+
export type CreateOrUpdateSettingByUserAndSettingKeyMutationBody = BodyType<SettingDto>;
|
|
50
|
+
export type CreateOrUpdateSettingByUserAndSettingKeyMutationError = ErrorType<void>;
|
|
51
|
+
/**
|
|
52
|
+
* @summary Create or update an application default Settings
|
|
53
|
+
*/
|
|
54
|
+
export declare const useCreateOrUpdateSettingByUserAndSettingKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
55
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
56
|
+
userId: string;
|
|
57
|
+
settingKey: string;
|
|
58
|
+
data: BodyType<SettingDto>;
|
|
59
|
+
}, TContext> | undefined;
|
|
60
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
61
|
+
userId: string;
|
|
62
|
+
settingKey: string;
|
|
63
|
+
data: BodyType<SettingDto>;
|
|
64
|
+
}, TContext>;
|
|
65
|
+
/**
|
|
66
|
+
* @summary Delete an application default Settings
|
|
67
|
+
*/
|
|
68
|
+
export declare const useDeleteSettingByUserAndSettingKeyHook: () => (userId: string, settingKey: string) => Promise<SettingDto>;
|
|
69
|
+
export declare const useDeleteSettingByUserAndSettingKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
70
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
71
|
+
userId: string;
|
|
72
|
+
settingKey: string;
|
|
73
|
+
}, TContext> | undefined;
|
|
74
|
+
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
75
|
+
userId: string;
|
|
76
|
+
settingKey: string;
|
|
77
|
+
}, TContext>;
|
|
78
|
+
export type DeleteSettingByUserAndSettingKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteSettingByUserAndSettingKeyHook>>>>;
|
|
79
|
+
export type DeleteSettingByUserAndSettingKeyMutationError = ErrorType<void>;
|
|
80
|
+
/**
|
|
81
|
+
* @summary Delete an application default Settings
|
|
82
|
+
*/
|
|
83
|
+
export declare const useDeleteSettingByUserAndSettingKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
84
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
85
|
+
userId: string;
|
|
86
|
+
settingKey: string;
|
|
87
|
+
}, TContext> | undefined;
|
|
88
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
89
|
+
userId: string;
|
|
90
|
+
settingKey: string;
|
|
91
|
+
}, TContext>;
|
|
92
|
+
export declare const useGetSettingByUserAndAppShortNameAndSetttingKeyHook: () => (userId: string, appShortName: string, settingKey: string, signal?: AbortSignal) => Promise<SettingDto>;
|
|
93
|
+
export declare const getGetSettingByUserAndAppShortNameAndSetttingKeyQueryKey: (userId: string, appShortName: string, settingKey: string) => readonly [`/api/settings/user/${string}/application/${string}/setting/${string}`];
|
|
94
|
+
export declare const useGetSettingByUserAndAppShortNameAndSetttingKeyQueryOptions: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, appShortName: string, settingKey: string, options?: {
|
|
95
|
+
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
96
|
+
} | undefined) => UseQueryOptions<SettingDto, TError, TData, QueryKey> & {
|
|
97
|
+
queryKey: QueryKey;
|
|
98
|
+
};
|
|
99
|
+
export type GetSettingByUserAndAppShortNameAndSetttingKeyQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndAppShortNameAndSetttingKeyHook>>>>;
|
|
100
|
+
export type GetSettingByUserAndAppShortNameAndSetttingKeyQueryError = ErrorType<void>;
|
|
101
|
+
export declare const useGetSettingByUserAndAppShortNameAndSetttingKey: <TData = SettingDto, TError = import("../../use-client").HttpError>(userId: string, appShortName: string, settingKey: string, options?: {
|
|
102
|
+
query?: Partial<UseQueryOptions<SettingDto, TError, TData, QueryKey>> | undefined;
|
|
103
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
104
|
+
queryKey: QueryKey;
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* @summary Create or update a users ApplicationSettings for given app
|
|
108
|
+
*/
|
|
109
|
+
export declare const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook: () => (userId: string, appShortName: string, settingKey: string, settingDto: BodyType<SettingDto>) => Promise<SettingDto>;
|
|
110
|
+
export declare const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
111
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
112
|
+
userId: string;
|
|
113
|
+
appShortName: string;
|
|
114
|
+
settingKey: string;
|
|
115
|
+
data: BodyType<SettingDto>;
|
|
116
|
+
}, TContext> | undefined;
|
|
117
|
+
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
118
|
+
userId: string;
|
|
119
|
+
appShortName: string;
|
|
120
|
+
settingKey: string;
|
|
121
|
+
data: BodyType<SettingDto>;
|
|
122
|
+
}, TContext>;
|
|
123
|
+
export type CreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyHook>>>>;
|
|
124
|
+
export type CreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationBody = BodyType<SettingDto>;
|
|
125
|
+
export type CreateOrUpdateSettingByUserAndAppShortNameAndSettingKeyMutationError = ErrorType<void>;
|
|
126
|
+
/**
|
|
127
|
+
* @summary Create or update a users ApplicationSettings for given app
|
|
128
|
+
*/
|
|
129
|
+
export declare const useCreateOrUpdateSettingByUserAndAppShortNameAndSettingKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
130
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
131
|
+
userId: string;
|
|
132
|
+
appShortName: string;
|
|
133
|
+
settingKey: string;
|
|
134
|
+
data: BodyType<SettingDto>;
|
|
135
|
+
}, TContext> | undefined;
|
|
136
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
137
|
+
userId: string;
|
|
138
|
+
appShortName: string;
|
|
139
|
+
settingKey: string;
|
|
140
|
+
data: BodyType<SettingDto>;
|
|
141
|
+
}, TContext>;
|
|
142
|
+
/**
|
|
143
|
+
* @summary Delete an ApplicationSetting for given app
|
|
144
|
+
*/
|
|
145
|
+
export declare const useDeleteSettingByUserAndAppShortNameAndSettingKeyHook: () => (userId: string, appShortName: string, settingKey: string) => Promise<SettingDto>;
|
|
146
|
+
export declare const useDeleteSettingByUserAndAppShortNameAndSettingKeyMutationOptions: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
147
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
148
|
+
userId: string;
|
|
149
|
+
appShortName: string;
|
|
150
|
+
settingKey: string;
|
|
151
|
+
}, TContext> | undefined;
|
|
152
|
+
} | undefined) => UseMutationOptions<SettingDto, TError, {
|
|
153
|
+
userId: string;
|
|
154
|
+
appShortName: string;
|
|
155
|
+
settingKey: string;
|
|
156
|
+
}, TContext>;
|
|
157
|
+
export type DeleteSettingByUserAndAppShortNameAndSettingKeyMutationResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useDeleteSettingByUserAndAppShortNameAndSettingKeyHook>>>>;
|
|
158
|
+
export type DeleteSettingByUserAndAppShortNameAndSettingKeyMutationError = ErrorType<void>;
|
|
159
|
+
/**
|
|
160
|
+
* @summary Delete an ApplicationSetting for given app
|
|
161
|
+
*/
|
|
162
|
+
export declare const useDeleteSettingByUserAndAppShortNameAndSettingKey: <TError = import("../../use-client").HttpError, TContext = unknown>(options?: {
|
|
163
|
+
mutation?: UseMutationOptions<SettingDto, TError, {
|
|
164
|
+
userId: string;
|
|
165
|
+
appShortName: string;
|
|
166
|
+
settingKey: string;
|
|
167
|
+
}, TContext> | undefined;
|
|
168
|
+
} | undefined) => import("@tanstack/react-query/build/legacy/types").UseMutationResult<SettingDto, TError, {
|
|
169
|
+
userId: string;
|
|
170
|
+
appShortName: string;
|
|
171
|
+
settingKey: string;
|
|
172
|
+
}, TContext>;
|
|
173
|
+
/**
|
|
174
|
+
* @summary Get Setting
|
|
175
|
+
*/
|
|
176
|
+
export declare const useGetSettingByUserAndAppShortNameHook: () => (userId: string, appShortName: string, signal?: AbortSignal) => Promise<SettingDto[]>;
|
|
177
|
+
export declare const getGetSettingByUserAndAppShortNameQueryKey: (userId: string, appShortName: string) => readonly [`/api/settings/user/${string}/application/${string}`];
|
|
178
|
+
export declare const useGetSettingByUserAndAppShortNameQueryOptions: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, appShortName: string, options?: {
|
|
179
|
+
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
180
|
+
} | undefined) => UseQueryOptions<SettingDto[], TError, TData, QueryKey> & {
|
|
181
|
+
queryKey: QueryKey;
|
|
182
|
+
};
|
|
183
|
+
export type GetSettingByUserAndAppShortNameQueryResult = NonNullable<Awaited<ReturnType<ReturnType<typeof useGetSettingByUserAndAppShortNameHook>>>>;
|
|
184
|
+
export type GetSettingByUserAndAppShortNameQueryError = ErrorType<void>;
|
|
185
|
+
/**
|
|
186
|
+
* @summary Get Setting
|
|
187
|
+
*/
|
|
188
|
+
export declare const useGetSettingByUserAndAppShortName: <TData = SettingDto[], TError = import("../../use-client").HttpError>(userId: string, appShortName: string, options?: {
|
|
189
|
+
query?: Partial<UseQueryOptions<SettingDto[], TError, TData, QueryKey>> | undefined;
|
|
190
|
+
} | undefined) => UseQueryResult<TData, TError> & {
|
|
191
|
+
queryKey: QueryKey;
|
|
192
|
+
};
|
|
193
|
+
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,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,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
|
+
import type { SettingDtoValue } from './settingDtoValue';
|
|
9
|
+
export interface SettingDto {
|
|
10
|
+
appShortName?: string;
|
|
11
|
+
setting?: string;
|
|
12
|
+
value: SettingDtoValue;
|
|
13
|
+
}
|
|
@@ -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: HttpErrorServerResponse;
|
|
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 {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HttpResponseError } from '@equinor/fusion-framework-module-http';
|
|
2
|
+
type Params = Partial<{
|
|
3
|
+
dealId: number;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const useDownloadRecap: (params: Params) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<Blob, HttpResponseError>;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Response } from './deal';
|
|
2
|
+
import { HttpError } from '../fetcher';
|
|
3
|
+
type Params = {
|
|
4
|
+
dsYears: Array<number>;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
bolDateFrom: string;
|
|
7
|
+
bolDateTo: string;
|
|
8
|
+
typeOfTrade: string;
|
|
9
|
+
traders: Array<string>;
|
|
10
|
+
sort: string;
|
|
11
|
+
page: number;
|
|
12
|
+
salesOffices: Array<string>;
|
|
13
|
+
};
|
|
14
|
+
export declare const useGetDeals: (params: Params) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<Response, HttpError>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { HttpResponseError } from '@equinor/fusion-framework-module-http';
|
|
2
|
+
import { TradeRecap } from './recap';
|
|
3
|
+
type Params = Partial<{
|
|
4
|
+
companyId: string;
|
|
5
|
+
so: string;
|
|
6
|
+
dsYear: string;
|
|
7
|
+
dsId: string;
|
|
8
|
+
dsNo: string;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const useGetRecap: (params: Params) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TradeRecap, HttpResponseError>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DealKey } from './deal';
|
|
2
|
+
export interface TradeRecap {
|
|
3
|
+
dealKey: DealKey;
|
|
4
|
+
strategy: string;
|
|
5
|
+
typeOfTrade: string;
|
|
6
|
+
priceIndicator: string;
|
|
7
|
+
dealDate: string;
|
|
8
|
+
trader: string;
|
|
9
|
+
brokerName: string;
|
|
10
|
+
seller: string;
|
|
11
|
+
buyer: string;
|
|
12
|
+
generalTermsAndConditions: string;
|
|
13
|
+
law: string;
|
|
14
|
+
arbitration: boolean;
|
|
15
|
+
inspectionCost: string;
|
|
16
|
+
operational: Operational;
|
|
17
|
+
salePurchaseIndicator: string;
|
|
18
|
+
dealId: number;
|
|
19
|
+
}
|
|
20
|
+
export interface Operational {
|
|
21
|
+
lastUpdate: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createUrlParamsFromObject: (obj: Record<string, unknown>) => URLSearchParams;
|