back-testing-react 2.1.2 → 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 +96 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/back-testing-hub/index.ts +3 -1
- package/src/components/back-testing-map/index.ts +4 -0
- package/src/components/back-testing-sidebar/index.ts +2 -0
- package/src/components/back-testing-stepper/index.ts +2 -0
- package/src/components/back-testing-wizard/index.ts +2 -5
- package/src/components/index.ts +4 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
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",
|
|
@@ -22,6 +34,37 @@ declare enum RadioChoice {
|
|
|
22
34
|
CUSTOM = "__custom"
|
|
23
35
|
}
|
|
24
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
|
+
}
|
|
25
68
|
interface CATShape {
|
|
26
69
|
refId: string;
|
|
27
70
|
type: ShapeType;
|
|
@@ -77,6 +120,9 @@ interface Coordinate {
|
|
|
77
120
|
latitude: number | undefined;
|
|
78
121
|
longitude: number | undefined;
|
|
79
122
|
}
|
|
123
|
+
interface BackTestingActions {
|
|
124
|
+
calculatePayouts: (locations: RiskLocation[], proxies: Proxy[], anemometers: Anemometer[], shapes: CATShape[]) => void;
|
|
125
|
+
}
|
|
80
126
|
|
|
81
127
|
interface WSPayoutRequest {
|
|
82
128
|
limit: number;
|
|
@@ -240,6 +286,51 @@ declare enum WeatherEventOption {
|
|
|
240
286
|
HAIL = "__hail"
|
|
241
287
|
}
|
|
242
288
|
|
|
289
|
+
interface BackTestingHubProps {
|
|
290
|
+
apiAccessToken: string;
|
|
291
|
+
mapAccessToken: string;
|
|
292
|
+
env: 'dev' | 'uat' | 'prod';
|
|
293
|
+
view?: WizardView;
|
|
294
|
+
limit?: number;
|
|
295
|
+
locations?: WizardLocation[];
|
|
296
|
+
proxies?: WizardProxy[];
|
|
297
|
+
anemometers?: WizardAnemometer[];
|
|
298
|
+
cias?: WizardCIAS[];
|
|
299
|
+
pgas?: WizardPGA[];
|
|
300
|
+
selectedProxyPayoutOptionIndex: number;
|
|
301
|
+
proxyPayoutOptions: {
|
|
302
|
+
key: string;
|
|
303
|
+
value: Payout[];
|
|
304
|
+
}[];
|
|
305
|
+
selectedAnemometerPayoutOptionIndex: number;
|
|
306
|
+
anemometerPayoutOptions: {
|
|
307
|
+
key: string;
|
|
308
|
+
value: Payout[];
|
|
309
|
+
}[];
|
|
310
|
+
selectedCiacPayoutOptionIndex: number;
|
|
311
|
+
ciacPayoutOptions: {
|
|
312
|
+
key: string;
|
|
313
|
+
value: Payout[];
|
|
314
|
+
}[];
|
|
315
|
+
selectedPgaPayoutOptionIndex: number;
|
|
316
|
+
pgaPayoutOptions: {
|
|
317
|
+
key: string;
|
|
318
|
+
value: Payout[];
|
|
319
|
+
}[];
|
|
320
|
+
displaySidebar?: boolean;
|
|
321
|
+
displaySidepanel?: boolean;
|
|
322
|
+
weatherEvent?: WeatherEventOption;
|
|
323
|
+
windstormEnabled?: boolean;
|
|
324
|
+
earthquakeEnabled?: boolean;
|
|
325
|
+
floodEnabled?: boolean;
|
|
326
|
+
fireEnabled?: boolean;
|
|
327
|
+
snowstormEnabled?: boolean;
|
|
328
|
+
onStormPayoutsCalculated?: (e: StormPayout[]) => void;
|
|
329
|
+
onPayoutDetailsGenerated?: (e: PayoutDetails) => void;
|
|
330
|
+
pdfOutputChanged?: (e: Blob) => void;
|
|
331
|
+
calculatePayouts?: boolean;
|
|
332
|
+
currentStep?: PayoutWizardStepType;
|
|
333
|
+
}
|
|
243
334
|
interface WizardLocation {
|
|
244
335
|
addressString?: string;
|
|
245
336
|
latitude: number;
|
|
@@ -325,4 +416,8 @@ interface BackTestingWizardProps {
|
|
|
325
416
|
|
|
326
417
|
declare function BackTestingWizard(props: BackTestingWizardProps): react_jsx_runtime.JSX.Element;
|
|
327
418
|
|
|
328
|
-
|
|
419
|
+
declare function BackTestingHub(props: BackTestingHubProps): react_jsx_runtime.JSX.Element;
|
|
420
|
+
|
|
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 };
|