stand_socotra_policy_transformer 3.0.11 → 3.0.13

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.
Files changed (71) hide show
  1. package/dist/stand_underwriter.js +1 -1
  2. package/package.json +8 -2
  3. package/__tests__/__utils__/load_payload.js +0 -16
  4. package/__tests__/__utils__/payloads/ai_additional_insured_new.json +0 -90
  5. package/__tests__/__utils__/payloads/ai_no_change_new_payload.json +0 -103
  6. package/__tests__/__utils__/payloads/ai_no_change_old_payload.json +0 -764
  7. package/__tests__/__utils__/payloads/ai_old_payload.json +0 -707
  8. package/__tests__/__utils__/payloads/claims_new_policy.json +0 -117
  9. package/__tests__/__utils__/payloads/claims_remove_new_payload.json +0 -68
  10. package/__tests__/__utils__/payloads/claims_remove_socotra_policy.json +0 -785
  11. package/__tests__/__utils__/payloads/claims_socotra_payload.json +0 -764
  12. package/__tests__/__utils__/payloads/minimal_change_base.json +0 -574
  13. package/__tests__/__utils__/payloads/minimal_change_base2.json +0 -574
  14. package/__tests__/__utils__/payloads/minimal_change_resulting_socotra.json +0 -17
  15. package/__tests__/__utils__/payloads/minimal_change_resulting_socotra2.json +0 -27
  16. package/__tests__/__utils__/payloads/minimal_change_retool.json +0 -37
  17. package/__tests__/__utils__/payloads/minimal_change_retool2.json +0 -27
  18. package/__tests__/__utils__/payloads/sample_minimal_retool.json +0 -33
  19. package/__tests__/__utils__/payloads/sample_minimal_socotra_payload.json +0 -116
  20. package/__tests__/__utils__/payloads/sample_new_policy_holder.json +0 -17
  21. package/__tests__/__utils__/payloads/sample_new_quote.json +0 -216
  22. package/__tests__/__utils__/payloads/sample_new_quote_retool.json +0 -93
  23. package/__tests__/__utils__/payloads/sample_retool.json +0 -157
  24. package/__tests__/__utils__/payloads/sample_retool_converted_quote.json +0 -54
  25. package/__tests__/__utils__/payloads/sample_retool_socotra_subset.json +0 -163
  26. package/__tests__/__utils__/payloads/sample_socotra_quote.json +0 -782
  27. package/__tests__/__utils__/payloads/sample_socotra_with_additional_insured.json +0 -764
  28. package/__tests__/__utils__/payloads/sample_update_quote.json +0 -18
  29. package/__tests__/__utils__/payloads/versions/v1/sample_new_quote.json +0 -211
  30. package/__tests__/__utils__/payloads/versions/v1/sample_retool.json +0 -160
  31. package/__tests__/__utils__/payloads/versions/v1/sample_retool_socotra_subset.json +0 -128
  32. package/__tests__/__utils__/payloads/versions/v1/sample_socotra_quote.json +0 -776
  33. package/__tests__/__utils__/payloads/versions/v1/sample_update_quote.json +0 -18
  34. package/__tests__/__utils__/payloads/versions/v2/sample_new_quote.json +0 -215
  35. package/__tests__/__utils__/payloads/versions/v2/sample_retool.json +0 -165
  36. package/__tests__/__utils__/payloads/versions/v2/sample_retool_socotra_subset.json +0 -159
  37. package/__tests__/__utils__/payloads/versions/v2/sample_socotra_quote.json +0 -779
  38. package/__tests__/__utils__/payloads/versions/v2/sample_update_quote.json +0 -18
  39. package/__tests__/basic_knockout.test.js +0 -113
  40. package/__tests__/claims_history_knockout.test.js +0 -56
  41. package/__tests__/exterior_knockout.test.js +0 -192
  42. package/__tests__/helpers/index.js +0 -10
  43. package/__tests__/home_owner_knockouts.js +0 -260
  44. package/__tests__/interior_knockout.test.js +0 -321
  45. package/__tests__/package_version.test.js +0 -7
  46. package/__tests__/rate_call_knockouts.test.js +0 -347
  47. package/__tests__/retool_utils/socotra_group_update.test.js +0 -563
  48. package/__tests__/retool_utils/socotra_payload.test.js +0 -270
  49. package/__tests__/retool_utils/socotra_structure_helper.test.js +0 -242
  50. package/__tests__/retool_utils/versions/entries_v1.test.js +0 -51
  51. package/__tests__/retool_utils/versions/entries_v2.test.js +0 -51
  52. package/__tests__/underwriter.test.js +0 -169
  53. package/__tests__/wf_knockout.test.js +0 -124
  54. package/src/index.js +0 -14
  55. package/src/knockouts/basic_knockouts.js +0 -66
  56. package/src/knockouts/claims_history_knockout.js +0 -24
  57. package/src/knockouts/exterior_knockouts.js +0 -97
  58. package/src/knockouts/home_owner_knockouts.js +0 -118
  59. package/src/knockouts/index.js +0 -83
  60. package/src/knockouts/interior_knockouts.js +0 -149
  61. package/src/knockouts/rate_call_knockouts.js +0 -155
  62. package/src/knockouts/wf_knockouts.js +0 -66
  63. package/src/retool_to_socotra.js +0 -18
  64. package/src/retool_utils/socotra_entries_helper_fuctions.js +0 -0
  65. package/src/retool_utils/socotra_payloads.js +0 -161
  66. package/src/retool_utils/socotra_structure_helper.js +0 -687
  67. package/src/retool_utils/versions/stand_v1_entries.js +0 -167
  68. package/src/retool_utils/versions/stand_v2_entries.js +0 -211
  69. package/src/retool_utils/versions/stand_v3_entries.js +0 -274
  70. package/src/underwriter.js +0 -86
  71. package/webpack.config.js +0 -14
@@ -1,117 +0,0 @@
1
- {
2
- "owner_first_name": "Molly",
3
- "seasonal": "No",
4
- "zip": 92067,
5
- "ensemble_mean": 0.66562,
6
- "insured_dob": "1982-06-03",
7
- "distance_to_fire_department": 2,
8
- "presence_of_fence": "Yes - wood fence",
9
- "water_damage_limit": 0.03,
10
- "lng": -117.1739189,
11
- "claims_data": {
12
- "claims": [
13
- {
14
- "date": "2025-06-24",
15
- "description": "It was a crazy Quake",
16
- "amount": 500,
17
- "type": "Earth Movement"
18
- },
19
- {
20
- "date": "2020-11-12",
21
- "description": "Someone slipped on my bannana tree",
22
- "amount": 5000,
23
- "type": "Liability"
24
- }
25
- ]
26
- },
27
- "gre_arf": 11.542,
28
- "claims": [],
29
- "is_pay_in_full": true,
30
- "state": "CA",
31
- "premium_initial_indication": 51731.54,
32
- "num_stories": "2",
33
- "secondary_residence": "No",
34
- "stand_protect_discount": "No",
35
- "water_deductible": 25000,
36
- "year_built": "1964",
37
- "fireshed_capacity": 1,
38
- "is_agreed_value": "No",
39
- "owner_last_name": "Moon",
40
- "replacement_cost": 2482000,
41
- "mitigation_category": "ember_and_fire",
42
- "county": "San Diego",
43
- "residence_type": "Owner Occupied Single Family Residence",
44
- "distributor_notes": "lkjlkjlkjlk",
45
- "wildfire_category": "A",
46
- "is_difference_in_condition": "No",
47
- "coverage_e": 500000,
48
- "months_unoccupied": 0,
49
- "theft_alarm": "Central",
50
- "coverage_d": 500000,
51
- "coverage_c": 1360000,
52
- "num_bath": 4,
53
- "coverage_b": 340000,
54
- "coverage_a": 3400000,
55
- "street_address": "17401 Via Cuatro Caminos",
56
- "purchase_year": 2020,
57
- "construction_type": "Frame",
58
- "smoke": "Yes",
59
- "fire_alarm": "Central",
60
- "roof_material": "Masonry",
61
- "fire_ext": "Yes",
62
- "coverage_f": 25000,
63
- "fire_deductible": 0.1,
64
- "property_id": "3946f204-f17a-49e9-9084-9cbdfc12e3c5",
65
- "additional_insured_data": {
66
- "additionalInterest": [
67
- {
68
- "zip": "94104",
69
- "commercial_exposure": "No",
70
- "street_address": "548 Market Street",
71
- "loan_number": "123122",
72
- "city": "San Francisco",
73
- "entity_details": "Estate Planning",
74
- "name": "Nicks LLC",
75
- "street_address2": "PMB 70879",
76
- "state": "California",
77
- "type": "LLC Name"
78
- },
79
- {
80
- "street_address2": "PMB 70879",
81
- "zip": "94104",
82
- "street_address": "548 Market Street",
83
- "state": "California",
84
- "type": "Other Additional Interest",
85
- "city": "San Francisco"
86
- }
87
- ]
88
- },
89
- "core_logic_wf_score": 71,
90
- "deadbolt": "Yes",
91
- "norm_zesty": "20%",
92
- "norm_bellweather": "110%",
93
- "owner_email": "nick+pdfsl231@getstand.com",
94
- "multi_policy_discount": "No",
95
- "norm_core_logic": "71%",
96
- "city": "Rancho Santa Fe",
97
- "fence": "Yes - wood fence",
98
- "gre_wf_score": 2.61,
99
- "square_feet": "2934",
100
- "claims_json": [],
101
- "norm_gre": "65%",
102
- "zesty_l2": 9,
103
- "bellweather_wf_score": 0.017033,
104
- "other_deductible": 25000,
105
- "zesty_l1": 2,
106
- "count_of_solar_panels": 0,
107
- "mean_level": "High",
108
- "presence_of_pool": "No",
109
- "retrofitted": "No",
110
- "extended_dwelling_coverage": "1.0",
111
- "protection_class": "2",
112
- "ensemble_variance": 0.102,
113
- "sprinkler": "No",
114
- "form": "Modified HO-5",
115
- "lat": 33.0307821,
116
- "premium_calculated": 59456.63
117
- }
@@ -1,68 +0,0 @@
1
- {
2
- "socotra_config_version": 11,
3
- "owner_first_name": "Molly",
4
- "seasonal": "No",
5
- "zip": 92067,
6
- "distance_to_fire_department": 2,
7
- "water_damage_limit": 0.03,
8
- "claims_data": {
9
- "claims": [
10
- {
11
- "date": "2020-11-12",
12
- "description": "Someone slipped on my bannana tree",
13
- "amount": 5000,
14
- "type": "Liability"
15
- }
16
- ]
17
- },
18
- "claims": [],
19
- "is_pay_in_full": true,
20
- "premium_initial_indication": 51731.54,
21
- "secondary_residence": "No",
22
- "owner_last_name": "Moon",
23
- "mitigation_category": "ember_and_fire",
24
- "distributor_notes": "lkjlkjlkjlk",
25
- "coverage_e": 500000,
26
- "months_unoccupied": 0,
27
- "num_bath": 4,
28
- "purchase_year": 2020,
29
- "coverage_f": 25000,
30
- "additional_insured_data": {
31
- "additionalInterest": [
32
- {
33
- "zip": "94104",
34
- "commercial_exposure": "No",
35
- "street_address": "548 Market Street",
36
- "loan_number": "123122",
37
- "city": "San Francisco",
38
- "entity_details": "Estate Planning",
39
- "name": "Nicks LLC",
40
- "street_address2": "PMB 70879",
41
- "state": "California",
42
- "type": "LLC Name"
43
- },
44
- {
45
- "street_address2": "PMB 70879",
46
- "zip": "94104",
47
- "street_address": "548 Market Street",
48
- "state": "California",
49
- "type": "Other Additional Interest",
50
- "city": "San Francisco"
51
- }
52
- ]
53
- },
54
- "norm_zesty": "20%",
55
- "norm_bellweather": "110%",
56
- "owner_email": "nick+pdfsl231@getstand.com",
57
- "norm_core_logic": "71%",
58
- "fence": "Yes - wood fence",
59
- "claims_json": [],
60
- "norm_gre": "65%",
61
- "bellweather_wf_score": 0.017033,
62
- "mean_level": "High",
63
- "presence_of_pool": "No",
64
- "form": "Modified HO-5",
65
- "premium_calculated": 52891.29,
66
- "lead_source": "Distributor",
67
- "producer_id": 15
68
- }