back-testing-react 2.1.3 → 2.1.4
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/dist/index.d.ts +87 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/index.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { Geometry, Point } from 'geojson';
|
|
3
|
+
import React$1 from 'react';
|
|
3
4
|
|
|
4
5
|
interface BackTestingCatLegendProps {
|
|
5
6
|
className?: string;
|
|
@@ -7,6 +8,17 @@ interface BackTestingCatLegendProps {
|
|
|
7
8
|
|
|
8
9
|
declare const BackTestingCatLegend: React.FC<BackTestingCatLegendProps>;
|
|
9
10
|
|
|
11
|
+
interface RiskLocation {
|
|
12
|
+
refId: string;
|
|
13
|
+
locationString: string;
|
|
14
|
+
latitude: number | undefined;
|
|
15
|
+
latError: boolean;
|
|
16
|
+
latErrorMsg: string;
|
|
17
|
+
longitude: number | undefined;
|
|
18
|
+
lngError: boolean;
|
|
19
|
+
lngErrorMsg: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
10
22
|
declare enum PayoutWizardStepType {
|
|
11
23
|
INPUT_LOCATION_DETAILS = "__input_location_details",
|
|
12
24
|
INPUT_PROXY_DETAILS = "__input_proxy_details",
|
|
@@ -17,7 +29,75 @@ declare enum PayoutWizardStepType {
|
|
|
17
29
|
DISPLAY_PAYOUTS = "__display_payouts",
|
|
18
30
|
SIMPLIFIED_INPUT_LOCATION = "__simplified_input_location"
|
|
19
31
|
}
|
|
32
|
+
declare enum RadioChoice {
|
|
33
|
+
DEFAULT = "__default",
|
|
34
|
+
CUSTOM = "__custom"
|
|
35
|
+
}
|
|
20
36
|
|
|
37
|
+
interface Proxy {
|
|
38
|
+
refId: string;
|
|
39
|
+
locationRefId: string | undefined;
|
|
40
|
+
latitude: number | undefined;
|
|
41
|
+
latError: boolean;
|
|
42
|
+
latErrorMsg: string;
|
|
43
|
+
longitude: number | undefined;
|
|
44
|
+
lngError: boolean;
|
|
45
|
+
lngErrorMsg: string;
|
|
46
|
+
proxyChoice: RadioChoice;
|
|
47
|
+
payoutTableRefId: string | undefined;
|
|
48
|
+
file: File | undefined;
|
|
49
|
+
fileError: boolean;
|
|
50
|
+
fileErrorMsg: string;
|
|
51
|
+
customPayouts: Payout[] | undefined;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface Anemometer {
|
|
55
|
+
refId: string;
|
|
56
|
+
code: string;
|
|
57
|
+
anemometerChoice: RadioChoice;
|
|
58
|
+
payoutTableRefId: string | undefined;
|
|
59
|
+
file: File | undefined;
|
|
60
|
+
fileError: boolean;
|
|
61
|
+
fileErrorMsg: string;
|
|
62
|
+
customPayouts: ProxyPayout[] | undefined;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
interface BackTestingMapProps {
|
|
66
|
+
onLoad?: (e: React.MutableRefObject<mapboxgl.Map | undefined>) => void;
|
|
67
|
+
}
|
|
68
|
+
interface CATShape {
|
|
69
|
+
refId: string;
|
|
70
|
+
type: ShapeType;
|
|
71
|
+
payoutTableRefId: string | undefined;
|
|
72
|
+
file: File | undefined;
|
|
73
|
+
fileError: boolean;
|
|
74
|
+
fileErrorMsg: string;
|
|
75
|
+
customPayouts: Payout[] | undefined;
|
|
76
|
+
ciasChoice: RadioChoice;
|
|
77
|
+
}
|
|
78
|
+
interface CATCounty extends CATShape {
|
|
79
|
+
geometry: Geometry | undefined;
|
|
80
|
+
countyFIPSCode: string | undefined;
|
|
81
|
+
countyError: boolean;
|
|
82
|
+
countyErrorMsg: string;
|
|
83
|
+
}
|
|
84
|
+
interface CATCircle extends CATShape {
|
|
85
|
+
locationRefId: string | undefined;
|
|
86
|
+
radius: number;
|
|
87
|
+
radiusError: boolean;
|
|
88
|
+
radiusErrorMsg: string;
|
|
89
|
+
latitude: number | undefined;
|
|
90
|
+
latError: boolean;
|
|
91
|
+
latErrorMsg: string;
|
|
92
|
+
longitude: number | undefined;
|
|
93
|
+
lngError: boolean;
|
|
94
|
+
lngErrorMsg: string;
|
|
95
|
+
}
|
|
96
|
+
interface CATPolygon extends CATShape {
|
|
97
|
+
coords: Coordinate[];
|
|
98
|
+
coordsError: boolean;
|
|
99
|
+
coordsErrorMsg: string;
|
|
100
|
+
}
|
|
21
101
|
declare enum CATShapeType {
|
|
22
102
|
CIRCLE = "__circle",
|
|
23
103
|
POLYGON = "__polygon",
|
|
@@ -40,6 +120,9 @@ interface Coordinate {
|
|
|
40
120
|
latitude: number | undefined;
|
|
41
121
|
longitude: number | undefined;
|
|
42
122
|
}
|
|
123
|
+
interface BackTestingActions {
|
|
124
|
+
calculatePayouts: (locations: RiskLocation[], proxies: Proxy[], anemometers: Anemometer[], shapes: CATShape[]) => void;
|
|
125
|
+
}
|
|
43
126
|
|
|
44
127
|
interface WSPayoutRequest {
|
|
45
128
|
limit: number;
|
|
@@ -335,4 +418,6 @@ declare function BackTestingWizard(props: BackTestingWizardProps): react_jsx_run
|
|
|
335
418
|
|
|
336
419
|
declare function BackTestingHub(props: BackTestingHubProps): react_jsx_runtime.JSX.Element;
|
|
337
420
|
|
|
338
|
-
|
|
421
|
+
declare const BackTestingMap: React$1.ForwardRefExoticComponent<BackTestingMapProps & React$1.RefAttributes<BackTestingActions>>;
|
|
422
|
+
|
|
423
|
+
export { type AnemometerRequest, BackTestingCatLegend, BackTestingHub, BackTestingMap, BackTestingWizard, type CATCircle, type CATCounty, type CATPolygon, type CATShape, CATShapeType, type CIASRequest, type EQPayoutDTO, type EQPayoutsRequest, type EQPayoutsResponse, type PGADTO, type Payout, type PayoutDetails, PayoutWizardStepType, type ProxyRequest, type StormPayout, type WSPayoutRequest, type WSPayoutResponse, type WizardAnemometer, type WizardCIAS, type WizardLocation, type WizardPGA, type WizardProxy, WizardView };
|