back-testing-react 2.1.2 → 2.1.3
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 +49 -39
- 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 +3 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { Point, Geometry } from 'geojson';
|
|
3
3
|
|
|
4
4
|
interface BackTestingCatLegendProps {
|
|
5
5
|
className?: string;
|
|
@@ -17,44 +17,7 @@ declare enum PayoutWizardStepType {
|
|
|
17
17
|
DISPLAY_PAYOUTS = "__display_payouts",
|
|
18
18
|
SIMPLIFIED_INPUT_LOCATION = "__simplified_input_location"
|
|
19
19
|
}
|
|
20
|
-
declare enum RadioChoice {
|
|
21
|
-
DEFAULT = "__default",
|
|
22
|
-
CUSTOM = "__custom"
|
|
23
|
-
}
|
|
24
20
|
|
|
25
|
-
interface CATShape {
|
|
26
|
-
refId: string;
|
|
27
|
-
type: ShapeType;
|
|
28
|
-
payoutTableRefId: string | undefined;
|
|
29
|
-
file: File | undefined;
|
|
30
|
-
fileError: boolean;
|
|
31
|
-
fileErrorMsg: string;
|
|
32
|
-
customPayouts: Payout[] | undefined;
|
|
33
|
-
ciasChoice: RadioChoice;
|
|
34
|
-
}
|
|
35
|
-
interface CATCounty extends CATShape {
|
|
36
|
-
geometry: Geometry | undefined;
|
|
37
|
-
countyFIPSCode: string | undefined;
|
|
38
|
-
countyError: boolean;
|
|
39
|
-
countyErrorMsg: string;
|
|
40
|
-
}
|
|
41
|
-
interface CATCircle extends CATShape {
|
|
42
|
-
locationRefId: string | undefined;
|
|
43
|
-
radius: number;
|
|
44
|
-
radiusError: boolean;
|
|
45
|
-
radiusErrorMsg: string;
|
|
46
|
-
latitude: number | undefined;
|
|
47
|
-
latError: boolean;
|
|
48
|
-
latErrorMsg: string;
|
|
49
|
-
longitude: number | undefined;
|
|
50
|
-
lngError: boolean;
|
|
51
|
-
lngErrorMsg: string;
|
|
52
|
-
}
|
|
53
|
-
interface CATPolygon extends CATShape {
|
|
54
|
-
coords: Coordinate[];
|
|
55
|
-
coordsError: boolean;
|
|
56
|
-
coordsErrorMsg: string;
|
|
57
|
-
}
|
|
58
21
|
declare enum CATShapeType {
|
|
59
22
|
CIRCLE = "__circle",
|
|
60
23
|
POLYGON = "__polygon",
|
|
@@ -240,6 +203,51 @@ declare enum WeatherEventOption {
|
|
|
240
203
|
HAIL = "__hail"
|
|
241
204
|
}
|
|
242
205
|
|
|
206
|
+
interface BackTestingHubProps {
|
|
207
|
+
apiAccessToken: string;
|
|
208
|
+
mapAccessToken: string;
|
|
209
|
+
env: 'dev' | 'uat' | 'prod';
|
|
210
|
+
view?: WizardView;
|
|
211
|
+
limit?: number;
|
|
212
|
+
locations?: WizardLocation[];
|
|
213
|
+
proxies?: WizardProxy[];
|
|
214
|
+
anemometers?: WizardAnemometer[];
|
|
215
|
+
cias?: WizardCIAS[];
|
|
216
|
+
pgas?: WizardPGA[];
|
|
217
|
+
selectedProxyPayoutOptionIndex: number;
|
|
218
|
+
proxyPayoutOptions: {
|
|
219
|
+
key: string;
|
|
220
|
+
value: Payout[];
|
|
221
|
+
}[];
|
|
222
|
+
selectedAnemometerPayoutOptionIndex: number;
|
|
223
|
+
anemometerPayoutOptions: {
|
|
224
|
+
key: string;
|
|
225
|
+
value: Payout[];
|
|
226
|
+
}[];
|
|
227
|
+
selectedCiacPayoutOptionIndex: number;
|
|
228
|
+
ciacPayoutOptions: {
|
|
229
|
+
key: string;
|
|
230
|
+
value: Payout[];
|
|
231
|
+
}[];
|
|
232
|
+
selectedPgaPayoutOptionIndex: number;
|
|
233
|
+
pgaPayoutOptions: {
|
|
234
|
+
key: string;
|
|
235
|
+
value: Payout[];
|
|
236
|
+
}[];
|
|
237
|
+
displaySidebar?: boolean;
|
|
238
|
+
displaySidepanel?: boolean;
|
|
239
|
+
weatherEvent?: WeatherEventOption;
|
|
240
|
+
windstormEnabled?: boolean;
|
|
241
|
+
earthquakeEnabled?: boolean;
|
|
242
|
+
floodEnabled?: boolean;
|
|
243
|
+
fireEnabled?: boolean;
|
|
244
|
+
snowstormEnabled?: boolean;
|
|
245
|
+
onStormPayoutsCalculated?: (e: StormPayout[]) => void;
|
|
246
|
+
onPayoutDetailsGenerated?: (e: PayoutDetails) => void;
|
|
247
|
+
pdfOutputChanged?: (e: Blob) => void;
|
|
248
|
+
calculatePayouts?: boolean;
|
|
249
|
+
currentStep?: PayoutWizardStepType;
|
|
250
|
+
}
|
|
243
251
|
interface WizardLocation {
|
|
244
252
|
addressString?: string;
|
|
245
253
|
latitude: number;
|
|
@@ -325,4 +333,6 @@ interface BackTestingWizardProps {
|
|
|
325
333
|
|
|
326
334
|
declare function BackTestingWizard(props: BackTestingWizardProps): react_jsx_runtime.JSX.Element;
|
|
327
335
|
|
|
328
|
-
|
|
336
|
+
declare function BackTestingHub(props: BackTestingHubProps): react_jsx_runtime.JSX.Element;
|
|
337
|
+
|
|
338
|
+
export { type AnemometerRequest, BackTestingCatLegend, BackTestingHub, BackTestingWizard, 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 };
|