@equinor/roma-framework 0.0.5-ALPHA.1 → 0.0.5-ALPHA.2
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/package.json +2 -2
- package/dev-portal/lib/dev-portal/AppLoader.d.ts +0 -12
- package/dev-portal/lib/dev-portal/AppViewer.d.ts +0 -6
- package/dev-portal/lib/dev-portal/EquinorLoader.d.ts +0 -12
- package/dev-portal/lib/dev-portal/ErrorViewer.d.ts +0 -12
- package/dev-portal/package.json +0 -17
- package/index.d.ts +0 -10
- package/lib/api/fetcher.d.ts +0 -21
- package/lib/api/roma/get-environment.d.ts +0 -7
- package/lib/api/roma/index.d.ts +0 -1
- package/lib/api/trade-recap/deal.d.ts +0 -160
- package/lib/api/trade-recap/download-recap.d.ts +0 -6
- package/lib/api/trade-recap/get-deals.d.ts +0 -15
- package/lib/api/trade-recap/get-recap.d.ts +0 -11
- package/lib/api/trade-recap/index.d.ts +0 -5
- package/lib/api/trade-recap/recap.d.ts +0 -22
- package/lib/api/util.d.ts +0 -1
- package/lib/dev-portal/HttpErrorViewer.d.ts +0 -13
- package/lib/eds-event-provider.d.ts +0 -6
- package/lib/make-component.d.ts +0 -11
- package/lib/sse/useSse.d.ts +0 -5
- package/lib/style-provider.d.ts +0 -7
- package/roma-framework.js +0 -153
- package/roma-framework.mjs +0 -21915
- /package/{dev-portal/index.html → index.html} +0 -0
- /package/{dev-portal/lib → lib}/dev-portal/Header.d.ts +0 -0
- /package/{dev-portal/lib → lib}/dev-portal/Navigation.d.ts +0 -0
- /package/{dev-portal/lib → lib}/dev-portal/Root.d.ts +0 -0
- /package/{dev-portal/lib → lib}/dev-portal/config.d.ts +0 -0
- /package/{dev-portal/lib → lib}/dev-portal/index.d.ts +0 -0
- /package/{dev-portal/roma-framework.umd.js → roma-framework.umd.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/roma-framework",
|
|
3
|
-
"version": "0.0.5-ALPHA.
|
|
3
|
+
"version": "0.0.5-ALPHA.2",
|
|
4
4
|
"repository": "https://github.com/equinor/tops-roma",
|
|
5
5
|
"main": "./roma-framework.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
"require": "./roma-framework.js"
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
}
|
|
17
|
+
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AppManifest } from '@equinor/fusion-framework-module-app';
|
|
2
|
-
/**
|
|
3
|
-
* Component that will render a Fusion application
|
|
4
|
-
*
|
|
5
|
-
* @param app the AppManifest for the application to render
|
|
6
|
-
* @param kind whether the app is a widget or an application
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
export declare function AppLoader({ app, kind, }: {
|
|
10
|
-
app: AppManifest | null;
|
|
11
|
-
kind?: 'app' | 'widget';
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Simple in-place loader for fusion apps
|
|
4
|
-
*
|
|
5
|
-
* @param children
|
|
6
|
-
* @param text
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
export declare const EquinorLoader: ({ children, text, }: React.PropsWithChildren<{
|
|
10
|
-
readonly text: string;
|
|
11
|
-
}>) => JSX.Element;
|
|
12
|
-
export default EquinorLoader;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Simple error display component.
|
|
3
|
-
* Does not create a pretty error, and should most likely be recreated for various error types (e.g. lack of access etc.)
|
|
4
|
-
* Reasonable to assume this will be a part of e.g. @equinor/roma-components in the future.
|
|
5
|
-
*
|
|
6
|
-
* @param error
|
|
7
|
-
* @constructor
|
|
8
|
-
*/
|
|
9
|
-
export declare const ErrorViewer: ({ error }: {
|
|
10
|
-
readonly error: Error;
|
|
11
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default ErrorViewer;
|
package/dev-portal/package.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@equinor/roma-framework",
|
|
3
|
-
"version": "0.0.5-ALPHA.1",
|
|
4
|
-
"repository": "https://github.com/equinor/tops-roma",
|
|
5
|
-
"main": "./roma-framework.js",
|
|
6
|
-
"types": "./index.d.ts",
|
|
7
|
-
"private": false,
|
|
8
|
-
"dependencies": {
|
|
9
|
-
"@tanstack/react-query": "^5.0.0"
|
|
10
|
-
},
|
|
11
|
-
"exports": {
|
|
12
|
-
".": {
|
|
13
|
-
"import": "./roma-framework.mjs",
|
|
14
|
-
"require": "./roma-framework.js"
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
package/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './lib/make-component';
|
|
2
|
-
export * from './lib/dev-portal/EquinorLoader';
|
|
3
|
-
export * from './lib/dev-portal/ErrorViewer';
|
|
4
|
-
export * from './lib/dev-portal/AppLoader';
|
|
5
|
-
export * from './lib/dev-portal/AppViewer';
|
|
6
|
-
export * from './lib/sse/useSse';
|
|
7
|
-
export * from './lib/style-provider';
|
|
8
|
-
export * from './lib/dev-portal/HttpErrorViewer';
|
|
9
|
-
export * from './lib/api/trade-recap';
|
|
10
|
-
export * from './lib/api/roma';
|
package/lib/api/fetcher.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type HttpErrorServerResponse = {
|
|
2
|
-
timestamp: string;
|
|
3
|
-
status: number;
|
|
4
|
-
error: string;
|
|
5
|
-
message: string;
|
|
6
|
-
path: string;
|
|
7
|
-
};
|
|
8
|
-
export type HttpErrorResponse = {
|
|
9
|
-
status: number;
|
|
10
|
-
statusText: string;
|
|
11
|
-
message: HttpErrorServerResponse;
|
|
12
|
-
ok: boolean;
|
|
13
|
-
headers: Headers;
|
|
14
|
-
url: string;
|
|
15
|
-
};
|
|
16
|
-
export declare class HttpError extends Error {
|
|
17
|
-
readonly message: string;
|
|
18
|
-
readonly response: HttpErrorResponse;
|
|
19
|
-
constructor(message: string, response: HttpErrorResponse);
|
|
20
|
-
}
|
|
21
|
-
export declare const handleJsonRequest: <T>(req: Response) => Promise<T>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { HttpResponseError } from '@equinor/fusion-framework-module-http';
|
|
2
|
-
import { EnvironmentResponse } from '@equinor/fusion-framework-module-service-discovery';
|
|
3
|
-
type Params = {
|
|
4
|
-
environment: 'current';
|
|
5
|
-
};
|
|
6
|
-
export declare const useGetEnvironment: (params: Params) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<EnvironmentResponse, HttpResponseError>;
|
|
7
|
-
export {};
|
package/lib/api/roma/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './get-environment';
|
|
@@ -1,160 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,6 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,15 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,11 +0,0 @@
|
|
|
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 {};
|
|
@@ -1,22 +0,0 @@
|
|
|
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
|
-
}
|
package/lib/api/util.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const createUrlParamsFromObject: (obj: Record<string, unknown>) => URLSearchParams;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpError } from '../api/fetcher';
|
|
2
|
-
/**
|
|
3
|
-
* Simple error display component.
|
|
4
|
-
* Does not create a pretty error, and should most likely be recreated for various error types (e.g. lack of access etc.)
|
|
5
|
-
* Reasonable to assume this will be a part of e.g. @equinor/roma-components in the future.
|
|
6
|
-
*
|
|
7
|
-
* @param error
|
|
8
|
-
* @constructor
|
|
9
|
-
*/
|
|
10
|
-
export declare const HttpErrorViewer: ({ error }: {
|
|
11
|
-
readonly error: HttpError;
|
|
12
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default HttpErrorViewer;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IEventModuleProvider } from '@equinor/fusion-framework-module-event';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
export declare const EdsEventProvider: ({ event, children }: {
|
|
4
|
-
event: IEventModuleProvider;
|
|
5
|
-
children: ReactNode;
|
|
6
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
package/lib/make-component.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AnyModule } from '@equinor/fusion-framework-module';
|
|
2
|
-
import { Fusion } from '@equinor/fusion-framework-react';
|
|
3
|
-
import { AppEnv, AppModuleInitiator } from '@equinor/fusion-framework-app';
|
|
4
|
-
import React, { ReactNode } from 'react';
|
|
5
|
-
import { ComponentRenderArgs } from '@equinor/fusion-framework-react-app';
|
|
6
|
-
type RomaEnv = AppEnv & {
|
|
7
|
-
density?: 'compact' | 'comfortable';
|
|
8
|
-
};
|
|
9
|
-
export declare const makeComponent: <TModules extends AnyModule[], TRef extends Fusion<unknown> = Fusion<unknown>, TEnv extends RomaEnv = RomaEnv>(Component: React.ReactNode, args: ComponentRenderArgs<TRef, TEnv>, configure?: AppModuleInitiator<TModules, TRef, TEnv> | undefined) => React.LazyExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
10
|
-
export declare const withStyleIsolation: (children: ReactNode, args: ComponentRenderArgs) => React.LazyExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
-
export {};
|
package/lib/sse/useSse.d.ts
DELETED