stand_socotra_policy_transformer 1.0.2 → 1.0.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.
@@ -5,6 +5,7 @@
5
5
  "policyEndTimestamp": 1763884800000,
6
6
  "finalize": false,
7
7
  "paymentScheduleName": "upfront",
8
+ "configVersion": 2,
8
9
  "exposures": [
9
10
  {
10
11
  "exposureName": "dwelling",
@@ -155,6 +155,6 @@
155
155
  "stand_second_approval": "Yes",
156
156
  "fronting_carrier_approval": "Yes",
157
157
  "reinsurance_carrier_approved": "Yes",
158
- "reinsurance_rate": "0.21"
159
-
158
+ "reinsurance_rate": "0.21",
159
+ "socotra_config_version": 2
160
160
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stand_socotra_policy_transformer",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Stands internal javscipt module for executing underwritting",
5
5
  "main": "dist/stand_underwriter.js",
6
6
  "scripts": {
@@ -147,6 +147,7 @@ function solar_panel_functions(){
147
147
 
148
148
  const entries = [
149
149
  new SocotraEntry("quote_name", "quote_name", "quote.name"),
150
+ new SocotraEntry("socotra_config_version", "config_version", "quote.version"),
150
151
  new SocotraEntry("fire_deductible", "wf_deductible", "exposure.dwelling.fields", parseFloat),
151
152
  new SocotraEntry("other_deductible", "aop_deductible", "exposure.dwelling.fields", parseInt),
152
153
  new SocotraEntry("water_deductible", "water_deductible", "exposure.dwelling.fields", parseInt),
@@ -8,6 +8,7 @@ const socotra_locations = Object.freeze([
8
8
  'quote.name',
9
9
  'effective_date',
10
10
  'payment_schedule',
11
+ "quote.version",
11
12
  ])
12
13
  class SocotraEntry {
13
14
  constructor(retool_id, socotra_id, socotra_location, to_retool_func = (x) => x, to_socotra_func = (x) => x) {
@@ -44,6 +45,8 @@ class SocotraEntry {
44
45
  if( ['upfront', 'quarterly'].includes(value)){
45
46
  socotra_response.paymentScheduleName = value
46
47
  }
48
+ } else if (this.socotra_location === 'quote.version'){
49
+ socotra_response.configVersion = value
47
50
  }
48
51
  else {
49
52
  throw new Error(`Location Not implemented: ${JSON.stringify(this)}`)
@@ -70,6 +73,8 @@ class SocotraEntry {
70
73
  } else if (this.socotra_location === 'payment_schedule'){
71
74
  retool_response[this.retool_id] = socotra_payload[this.socotra_id]
72
75
  return
76
+ } else if (this.socotra_location == 'quote.version'){
77
+ return
73
78
  }
74
79
 
75
80
  else {
@@ -200,7 +205,8 @@ class SocotraEntry {
200
205
  }
201
206
  ],
202
207
  "fieldValues": {},
203
- "fieldGroups": []
208
+ "fieldGroups": [],
209
+ "configVersion": -1
204
210
  }
205
211
  }
206
212
 
@@ -1,76 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <profile version="1.0">
3
- <option name="myName" value="Project Default" />
4
- <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
- <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
6
- <option name="ignoredPackages">
7
- <value>
8
- <list size="62">
9
- <item index="0" class="java.lang.String" itemvalue="typing_extensions" />
10
- <item index="1" class="java.lang.String" itemvalue="notebook_shim" />
11
- <item index="2" class="java.lang.String" itemvalue="jupyter_server_ydoc" />
12
- <item index="3" class="java.lang.String" itemvalue="jupyter_server" />
13
- <item index="4" class="java.lang.String" itemvalue="jupyterlab_pygments" />
14
- <item index="5" class="java.lang.String" itemvalue="jupyter_server_fileid" />
15
- <item index="6" class="java.lang.String" itemvalue="jupyter_client" />
16
- <item index="7" class="java.lang.String" itemvalue="jupyter_server_terminals" />
17
- <item index="8" class="java.lang.String" itemvalue="jupyter_core" />
18
- <item index="9" class="java.lang.String" itemvalue="jupyterlab_server" />
19
- <item index="10" class="java.lang.String" itemvalue="prompt_toolkit" />
20
- <item index="11" class="java.lang.String" itemvalue="traitlets" />
21
- <item index="12" class="java.lang.String" itemvalue="jupyterlab_widgets" />
22
- <item index="13" class="java.lang.String" itemvalue="pickleshare" />
23
- <item index="14" class="java.lang.String" itemvalue="nbclient" />
24
- <item index="15" class="java.lang.String" itemvalue="QtPy" />
25
- <item index="16" class="java.lang.String" itemvalue="pycparser" />
26
- <item index="17" class="java.lang.String" itemvalue="jupyter-server" />
27
- <item index="18" class="java.lang.String" itemvalue="tinycss2" />
28
- <item index="19" class="java.lang.String" itemvalue="ipython-genutils" />
29
- <item index="20" class="java.lang.String" itemvalue="unoconv" />
30
- <item index="21" class="java.lang.String" itemvalue="Pygments" />
31
- <item index="22" class="java.lang.String" itemvalue="pyzmq" />
32
- <item index="23" class="java.lang.String" itemvalue="bleach" />
33
- <item index="24" class="java.lang.String" itemvalue="anyio" />
34
- <item index="25" class="java.lang.String" itemvalue="soupsieve" />
35
- <item index="26" class="java.lang.String" itemvalue="entrypoints" />
36
- <item index="27" class="java.lang.String" itemvalue="jsonschema" />
37
- <item index="28" class="java.lang.String" itemvalue="notebook" />
38
- <item index="29" class="java.lang.String" itemvalue="qtconsole" />
39
- <item index="30" class="java.lang.String" itemvalue="terminado" />
40
- <item index="31" class="java.lang.String" itemvalue="comm" />
41
- <item index="32" class="java.lang.String" itemvalue="nbclassic" />
42
- <item index="33" class="java.lang.String" itemvalue="jupyterlab-pygments" />
43
- <item index="34" class="java.lang.String" itemvalue="ipykernel" />
44
- <item index="35" class="java.lang.String" itemvalue="nbconvert" />
45
- <item index="36" class="java.lang.String" itemvalue="attrs" />
46
- <item index="37" class="java.lang.String" itemvalue="psutil" />
47
- <item index="38" class="java.lang.String" itemvalue="backcall" />
48
- <item index="39" class="java.lang.String" itemvalue="widgetsnbextension" />
49
- <item index="40" class="java.lang.String" itemvalue="idna" />
50
- <item index="41" class="java.lang.String" itemvalue="matplotlib-inline" />
51
- <item index="42" class="java.lang.String" itemvalue="cffi" />
52
- <item index="43" class="java.lang.String" itemvalue="pkgutil_resolve_name" />
53
- <item index="44" class="java.lang.String" itemvalue="importlib-metadata" />
54
- <item index="45" class="java.lang.String" itemvalue="websocket-client" />
55
- <item index="46" class="java.lang.String" itemvalue="pyrsistent" />
56
- <item index="47" class="java.lang.String" itemvalue="exceptiongroup" />
57
- <item index="48" class="java.lang.String" itemvalue="jupyter" />
58
- <item index="49" class="java.lang.String" itemvalue="zipp" />
59
- <item index="50" class="java.lang.String" itemvalue="prompt-toolkit" />
60
- <item index="51" class="java.lang.String" itemvalue="Cython" />
61
- <item index="52" class="java.lang.String" itemvalue="ipywidgets" />
62
- <item index="53" class="java.lang.String" itemvalue="tornado" />
63
- <item index="54" class="java.lang.String" itemvalue="nbformat" />
64
- <item index="55" class="java.lang.String" itemvalue="ipython" />
65
- <item index="56" class="java.lang.String" itemvalue="packaging" />
66
- <item index="57" class="java.lang.String" itemvalue="fastjsonschema" />
67
- <item index="58" class="java.lang.String" itemvalue="prometheus-client" />
68
- <item index="59" class="java.lang.String" itemvalue="importlib-resources" />
69
- <item index="60" class="java.lang.String" itemvalue="debugpy" />
70
- <item index="61" class="java.lang.String" itemvalue="pure_eval" />
71
- </list>
72
- </value>
73
- </option>
74
- </inspection_tool>
75
- </profile>
76
- </component>
@@ -1,6 +0,0 @@
1
- <component name="InspectionProjectProfileManager">
2
- <settings>
3
- <option name="USE_PROJECT_PROFILE" value="false" />
4
- <version value="1.0" />
5
- </settings>
6
- </component>
package/.idea/misc.xml DELETED
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Black">
4
- <option name="sdkName" value="Python 3.11 (stand_portal_apis)" />
5
- </component>
6
- <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (stand_portal_apis)" project-jdk-type="Python SDK" />
7
- </project>
package/.idea/modules.xml DELETED
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/.idea/socotra_policy_transformer.iml" filepath="$PROJECT_DIR$/.idea/socotra_policy_transformer.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module type="PYTHON_MODULE" version="4">
3
- <component name="NewModuleRootManager">
4
- <content url="file://$MODULE_DIR$" />
5
- <orderEntry type="jdk" jdkName="Python 3.11 (stand_portal_apis)" jdkType="Python SDK" />
6
- <orderEntry type="sourceFolder" forTests="false" />
7
- </component>
8
- </module>
package/.idea/vcs.xml DELETED
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>