stand_socotra_policy_transformer 1.0.0
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/__tests__/__utils__/load_payload.js +16 -0
- package/__tests__/__utils__/payloads/minimal_change_base.json +574 -0
- package/__tests__/__utils__/payloads/minimal_change_base2.json +574 -0
- package/__tests__/__utils__/payloads/minimal_change_resulting_socotra.json +17 -0
- package/__tests__/__utils__/payloads/minimal_change_resulting_socotra2.json +27 -0
- package/__tests__/__utils__/payloads/minimal_change_retool.json +37 -0
- package/__tests__/__utils__/payloads/minimal_change_retool2.json +27 -0
- package/__tests__/__utils__/payloads/sample_minimal_retool.json +33 -0
- package/__tests__/__utils__/payloads/sample_minimal_socotra_payload.json +116 -0
- package/__tests__/__utils__/payloads/sample_new_policy_holder.json +17 -0
- package/__tests__/__utils__/payloads/sample_new_quote.json +210 -0
- package/__tests__/__utils__/payloads/sample_new_quote_retool.json +93 -0
- package/__tests__/__utils__/payloads/sample_retool.json +160 -0
- package/__tests__/__utils__/payloads/sample_retool_converted_quote.json +54 -0
- package/__tests__/__utils__/payloads/sample_retool_socotra_subset.json +127 -0
- package/__tests__/__utils__/payloads/sample_socotra_quote.json +773 -0
- package/__tests__/__utils__/payloads/sample_update_quote.json +18 -0
- package/__tests__/basic_knockout.test.js +113 -0
- package/__tests__/claims_history_knockout.test.js +56 -0
- package/__tests__/exterior_knockout.test.js +192 -0
- package/__tests__/helpers/index.js +10 -0
- package/__tests__/home_owner_knockouts.js +260 -0
- package/__tests__/interior_knockout.test.js +321 -0
- package/__tests__/rate_call_knockouts.test.js +347 -0
- package/__tests__/retool_utils/socotra_payload.test.js +168 -0
- package/__tests__/retool_utils/socotra_structure_helper.test.js +129 -0
- package/__tests__/underwriter.test.js +169 -0
- package/__tests__/wf_knockout.test.js +124 -0
- package/package.json +17 -0
- package/src/index.js +3 -0
- package/src/knockouts/basic_knockouts.js +66 -0
- package/src/knockouts/claims_history_knockout.js +24 -0
- package/src/knockouts/exterior_knockouts.js +97 -0
- package/src/knockouts/home_owner_knockouts.js +118 -0
- package/src/knockouts/index.js +83 -0
- package/src/knockouts/interior_knockouts.js +149 -0
- package/src/knockouts/rate_call_knockouts.js +155 -0
- package/src/knockouts/wf_knockouts.js +66 -0
- package/src/retool_to_socotra.js +18 -0
- package/src/retool_utils/socotra_payloads.js +316 -0
- package/src/retool_utils/socotra_structure_helper.js +223 -0
- package/src/underwriter.js +86 -0
- package/webpack.config.js +25 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"owner_first_name": "Nico",
|
|
3
|
+
"zip": "94558",
|
|
4
|
+
"insured_dob": "1995-09-15",
|
|
5
|
+
"distance_to_fire_department": "05",
|
|
6
|
+
"owner_phone_number": "2153596443",
|
|
7
|
+
"presence_of_fence": "No",
|
|
8
|
+
"water_damage_limit": 0.03,
|
|
9
|
+
"lng": -122.311958,
|
|
10
|
+
"gre_arf": 0.45,
|
|
11
|
+
"cape_thumbnail": "https://flow.capeanalytics.com/api/v2/img/43dc82a0-5303-4b9b-a488-f8e0dafb0699/15",
|
|
12
|
+
"state": "CA",
|
|
13
|
+
"secondary_residence": "No",
|
|
14
|
+
"water_deductible": 500000,
|
|
15
|
+
"year_built": "2005",
|
|
16
|
+
"owner_last_name": "Gonzalez",
|
|
17
|
+
"replacement_cost": 2513000,
|
|
18
|
+
"cape_updated_at": "2024-09-05T23:47:15.252Z",
|
|
19
|
+
"coverage_e": "No Coverage",
|
|
20
|
+
"theft_alarm": "Central",
|
|
21
|
+
"coverage_d": 10000,
|
|
22
|
+
"coverage_c": 20000,
|
|
23
|
+
"coverage_b": 500000,
|
|
24
|
+
"street_address": "5870 Silverado Trail",
|
|
25
|
+
"coverage_a": 4000000,
|
|
26
|
+
"purchase_year": 0,
|
|
27
|
+
"construction_type": "Frame",
|
|
28
|
+
"smoke": "Yes",
|
|
29
|
+
"roof_material": "Concrete Tile",
|
|
30
|
+
"fire_alarm": "Central",
|
|
31
|
+
"fire_ext": "Yes",
|
|
32
|
+
"coverage_f": "No Coverage",
|
|
33
|
+
"property_id": "76aa4cb1-2d0e-4918-8170-32805812b2da",
|
|
34
|
+
"fire_deductible": 0.1,
|
|
35
|
+
"seasonal_residence": "No",
|
|
36
|
+
"core_logic_wf_score": 100,
|
|
37
|
+
"deadbolt": "Yes",
|
|
38
|
+
"first_street_score": 2,
|
|
39
|
+
"owner_email": "ngonzo95@gmail.com",
|
|
40
|
+
"city": "Napa",
|
|
41
|
+
"cape_uuid": "43dc82a0-5303-4b9b-a488-f8e0dafb0699",
|
|
42
|
+
"gre_wf_score": 2.75,
|
|
43
|
+
"claims_json": [],
|
|
44
|
+
"zesty_l2": null,
|
|
45
|
+
"other_deductible": 50000,
|
|
46
|
+
"zesty_l1": 8,
|
|
47
|
+
"count_of_solar_panels": 0,
|
|
48
|
+
"cape_review_url": "",
|
|
49
|
+
"presence_of_pool": "No",
|
|
50
|
+
"extended_dwelling_coverage": "1.25",
|
|
51
|
+
"protection_class": "4X",
|
|
52
|
+
"sprinkler": "No",
|
|
53
|
+
"lat": 38.409477
|
|
54
|
+
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"property_id": "18e23424-77fb-4bdc-b65f-6929122df7d1",
|
|
3
|
+
"payment_schedule": "quarterly",
|
|
4
|
+
"quote_name":"example name",
|
|
5
|
+
"attractive_nuisance": "No",
|
|
6
|
+
"chimney_spark_arrestors": "All",
|
|
7
|
+
"city": "Oakland",
|
|
8
|
+
"construction_type": "Frame",
|
|
9
|
+
"core_logic_wf_score": 64,
|
|
10
|
+
"county": "Alameda",
|
|
11
|
+
"count_of_solar_panels": "1+",
|
|
12
|
+
"coverage_a": 4000000,
|
|
13
|
+
"coverage_b": 400000,
|
|
14
|
+
"coverage_c": 100000,
|
|
15
|
+
"coverage_d": 300000,
|
|
16
|
+
"coverage_e": "500000",
|
|
17
|
+
"coverage_f": "10000",
|
|
18
|
+
"deadbolt": "Yes",
|
|
19
|
+
"degree_of_slope": "0",
|
|
20
|
+
"distance_to_fire_department": "03",
|
|
21
|
+
"distance_to_neighboring_home": "20",
|
|
22
|
+
"electrical_updated_year": "2005",
|
|
23
|
+
"ember_resistant_vents": "No",
|
|
24
|
+
"enclosed_eaves": "All",
|
|
25
|
+
"ensemble_mean": 0.48374,
|
|
26
|
+
"ensemble_variance": 0.019,
|
|
27
|
+
"extended_dwelling_coverage": "1.25",
|
|
28
|
+
"fireshed_ID": 1721,
|
|
29
|
+
"fireshed_code": "san_francisco_ca",
|
|
30
|
+
"fire_alarm": "Central",
|
|
31
|
+
"fire_deductible": 0.03,
|
|
32
|
+
"fire_ext": "Yes",
|
|
33
|
+
"first_street_score": 4,
|
|
34
|
+
"flood_score": "1",
|
|
35
|
+
"foundation_type": "Basement Finished",
|
|
36
|
+
"fuel_tank_distance": ">=30",
|
|
37
|
+
"gre_arf": 1.06,
|
|
38
|
+
"gre_wf_score": 2.38,
|
|
39
|
+
"ground_clearance": "All",
|
|
40
|
+
"has_additional_insured": "Yes",
|
|
41
|
+
"has_home_business": "yes - farming",
|
|
42
|
+
"has_steel_braided_hoses": "Yes",
|
|
43
|
+
"has_underground_fuel_tank": "No",
|
|
44
|
+
"home_heating_source": "thermostatically controlled electrical heat",
|
|
45
|
+
"home_heating_update_year": "2015",
|
|
46
|
+
"horses": "Yes",
|
|
47
|
+
"insured_dob": "1985-10-17",
|
|
48
|
+
"is_rental": "Short term rental",
|
|
49
|
+
"is_under_renovation": "No",
|
|
50
|
+
"lat": 37.8204616,
|
|
51
|
+
"lng": -122.1878753,
|
|
52
|
+
"metal_fittings_toilet_supply_line": "Yes",
|
|
53
|
+
"months_unoccupied": "0",
|
|
54
|
+
"multifamily_unit_count": "1",
|
|
55
|
+
"fireshed_capacity": 0.3,
|
|
56
|
+
"number_of_bankrupcies": "0",
|
|
57
|
+
"number_of_mortgages": "0",
|
|
58
|
+
"occupation": "Actor",
|
|
59
|
+
"other_deductible": 5000,
|
|
60
|
+
"past_liens": "0",
|
|
61
|
+
"plumbing_updated_year": "2000",
|
|
62
|
+
"pool_type": "None",
|
|
63
|
+
"presence_of_fence": "No",
|
|
64
|
+
"previous_insurance_company": "Allstate",
|
|
65
|
+
"previous_policy_expiration_date": "2024-11-03",
|
|
66
|
+
"previous_premium": "150000",
|
|
67
|
+
"primary_dwelling_insured": "Yes",
|
|
68
|
+
"protection_class": "2",
|
|
69
|
+
"purchase_year": "2015",
|
|
70
|
+
"replacement_cost": 2251000,
|
|
71
|
+
"residence_type": "Owner Occupied Single Family Residence",
|
|
72
|
+
"retrofitted": "No",
|
|
73
|
+
"roof_material": "Concrete Tile",
|
|
74
|
+
"roof_replacement_year": "2012",
|
|
75
|
+
"seismic_shutoff": "Yes",
|
|
76
|
+
"siding_material": "Adobe",
|
|
77
|
+
"slab_plumbing": "No",
|
|
78
|
+
"smoke": "Yes",
|
|
79
|
+
"spouse_email": "shmoe@joe.com",
|
|
80
|
+
"spouse_first_name": "joe",
|
|
81
|
+
"spouse_last_name": "shmoe",
|
|
82
|
+
"spouse_phone_number": "2153598888",
|
|
83
|
+
"sprinkler": "Partial",
|
|
84
|
+
"start_date": "2024-09-06",
|
|
85
|
+
"state": "CA",
|
|
86
|
+
"street_address": "9471 Skyline Blvd",
|
|
87
|
+
"theft_alarm": "Central",
|
|
88
|
+
"waterflow_alarm": "Yes",
|
|
89
|
+
"water_damage_limit": "0.05",
|
|
90
|
+
"water_deductible": 5000,
|
|
91
|
+
"water_heater_update_year": "2018",
|
|
92
|
+
"water_shutoff": "No",
|
|
93
|
+
"wildfire_category": "C",
|
|
94
|
+
"windows_frame_type": "Metal",
|
|
95
|
+
"windows_type": "Tempered Glass",
|
|
96
|
+
"year_built": "2000",
|
|
97
|
+
"producer_ascend_id": "e9d2140b-01fb-4ce1-98a9-f379f2cca132",
|
|
98
|
+
"producer_city": "San Francisco",
|
|
99
|
+
"producer_commission": "13",
|
|
100
|
+
"producer_email": "blah@example.com",
|
|
101
|
+
"producer_license_number": "12311",
|
|
102
|
+
"producer_name": "Da Broker",
|
|
103
|
+
"producer_phone_number": "2153596444",
|
|
104
|
+
"producer_state": "California",
|
|
105
|
+
"producer_street_address": "548 Market Street",
|
|
106
|
+
"producer_street_address2": "PMB 70879",
|
|
107
|
+
"producer_zip": "94104",
|
|
108
|
+
"broker_name": "The Distributor",
|
|
109
|
+
"broker_license_number": 55252,
|
|
110
|
+
"producer_id": 14,
|
|
111
|
+
"multi_policy_discount": "No",
|
|
112
|
+
"stand_protect_discount": "No",
|
|
113
|
+
"square_feet": "2000",
|
|
114
|
+
"withdrawal_reasons": ["pricing_disagreement"],
|
|
115
|
+
"premium_calculated": null,
|
|
116
|
+
"rejection_reasons": ["wood_shake_roof", "tiv_over_10m"],
|
|
117
|
+
"roof_rating": "Class A",
|
|
118
|
+
"zesty_l1": 3,
|
|
119
|
+
"zesty_l2": 9,
|
|
120
|
+
"zip": "94611",
|
|
121
|
+
"reinsurance_carrier_approved": null,
|
|
122
|
+
"reinsurance_rate": null,
|
|
123
|
+
"fronting_carrier_approval": null,
|
|
124
|
+
"stand_second_approval": null,
|
|
125
|
+
"competing_carrier": "Something",
|
|
126
|
+
"competing_pricing": 12500
|
|
127
|
+
}
|