@emilgroup/insurance-sdk-node 1.32.1 → 1.36.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.
Files changed (314) hide show
  1. package/README.md +2 -2
  2. package/models/product-field-class.ts +1 -1
  3. package/models/shared-product-field-class.ts +1 -1
  4. package/models/terminate-policy-request-dto.ts +23 -0
  5. package/models/update-policy-request-dto.ts +6 -0
  6. package/package.json +2 -2
  7. package/dist/api/default-api.d.ts +0 -66
  8. package/dist/api/default-api.js +0 -200
  9. package/dist/api/insured-object-types-api.d.ts +0 -141
  10. package/dist/api/insured-object-types-api.js +0 -258
  11. package/dist/api/insured-objects-api.d.ts +0 -318
  12. package/dist/api/insured-objects-api.js +0 -539
  13. package/dist/api/lead-statuses-api.d.ts +0 -265
  14. package/dist/api/lead-statuses-api.js +0 -505
  15. package/dist/api/leads-api.d.ts +0 -626
  16. package/dist/api/leads-api.js +0 -1024
  17. package/dist/api/named-ranges-api.d.ts +0 -376
  18. package/dist/api/named-ranges-api.js +0 -634
  19. package/dist/api/policies-api.d.ts +0 -722
  20. package/dist/api/policies-api.js +0 -1141
  21. package/dist/api/premium-formulas-api.d.ts +0 -433
  22. package/dist/api/premium-formulas-api.js +0 -727
  23. package/dist/api/product-factors-api.d.ts +0 -493
  24. package/dist/api/product-factors-api.js +0 -788
  25. package/dist/api/product-fields-api.d.ts +0 -477
  26. package/dist/api/product-fields-api.js +0 -757
  27. package/dist/api/product-versions-api.d.ts +0 -189
  28. package/dist/api/product-versions-api.js +0 -346
  29. package/dist/api/products-api.d.ts +0 -485
  30. package/dist/api/products-api.js +0 -772
  31. package/dist/api.d.ts +0 -23
  32. package/dist/api.js +0 -41
  33. package/dist/base.d.ts +0 -78
  34. package/dist/base.js +0 -394
  35. package/dist/common.d.ts +0 -92
  36. package/dist/common.js +0 -277
  37. package/dist/configuration.d.ts +0 -90
  38. package/dist/configuration.js +0 -44
  39. package/dist/index.d.ts +0 -15
  40. package/dist/index.js +0 -36
  41. package/dist/models/activate-policy-request-dto.d.ts +0 -24
  42. package/dist/models/activate-policy-request-dto.js +0 -15
  43. package/dist/models/activate-policy-response-class.d.ts +0 -25
  44. package/dist/models/activate-policy-response-class.js +0 -15
  45. package/dist/models/calculate-custom-premium-request-dto.d.ts +0 -35
  46. package/dist/models/calculate-custom-premium-request-dto.js +0 -20
  47. package/dist/models/calculate-premium-request-dto.d.ts +0 -38
  48. package/dist/models/calculate-premium-request-dto.js +0 -15
  49. package/dist/models/calculate-product-fields-request-dto.d.ts +0 -31
  50. package/dist/models/calculate-product-fields-request-dto.js +0 -15
  51. package/dist/models/clone-product-version-request-dto.d.ts +0 -36
  52. package/dist/models/clone-product-version-request-dto.js +0 -15
  53. package/dist/models/create-account-request-dto.d.ts +0 -120
  54. package/dist/models/create-account-request-dto.js +0 -26
  55. package/dist/models/create-bank-account-request-dto.d.ts +0 -30
  56. package/dist/models/create-bank-account-request-dto.js +0 -15
  57. package/dist/models/create-custom-application-request-dto.d.ts +0 -41
  58. package/dist/models/create-custom-application-request-dto.js +0 -20
  59. package/dist/models/create-dummy-policy-request-dto.d.ts +0 -44
  60. package/dist/models/create-dummy-policy-request-dto.js +0 -15
  61. package/dist/models/create-insured-object-request-dto.d.ts +0 -60
  62. package/dist/models/create-insured-object-request-dto.js +0 -15
  63. package/dist/models/create-insured-object-response-class.d.ts +0 -25
  64. package/dist/models/create-insured-object-response-class.js +0 -15
  65. package/dist/models/create-lead-async-response-class.d.ts +0 -24
  66. package/dist/models/create-lead-async-response-class.js +0 -15
  67. package/dist/models/create-lead-policy-request-dto.d.ts +0 -56
  68. package/dist/models/create-lead-policy-request-dto.js +0 -15
  69. package/dist/models/create-lead-request-dto.d.ts +0 -96
  70. package/dist/models/create-lead-request-dto.js +0 -15
  71. package/dist/models/create-lead-response-class.d.ts +0 -25
  72. package/dist/models/create-lead-response-class.js +0 -15
  73. package/dist/models/create-lead-status-request-dto.d.ts +0 -30
  74. package/dist/models/create-lead-status-request-dto.js +0 -15
  75. package/dist/models/create-lead-status-response-class.d.ts +0 -25
  76. package/dist/models/create-lead-status-response-class.js +0 -15
  77. package/dist/models/create-named-range-request-dto.d.ts +0 -55
  78. package/dist/models/create-named-range-request-dto.js +0 -15
  79. package/dist/models/create-named-range-response-class.d.ts +0 -25
  80. package/dist/models/create-named-range-response-class.js +0 -15
  81. package/dist/models/create-named-request-s3-data-class.d.ts +0 -30
  82. package/dist/models/create-named-request-s3-data-class.js +0 -15
  83. package/dist/models/create-payment-method-request-dto.d.ts +0 -31
  84. package/dist/models/create-payment-method-request-dto.js +0 -15
  85. package/dist/models/create-policy-request-dto.d.ts +0 -62
  86. package/dist/models/create-policy-request-dto.js +0 -15
  87. package/dist/models/create-policy-response-class.d.ts +0 -25
  88. package/dist/models/create-policy-response-class.js +0 -15
  89. package/dist/models/create-premium-formula-request-dto.d.ts +0 -105
  90. package/dist/models/create-premium-formula-request-dto.js +0 -39
  91. package/dist/models/create-premium-formula-response-class.d.ts +0 -25
  92. package/dist/models/create-premium-formula-response-class.js +0 -15
  93. package/dist/models/create-product-field-request-dto.d.ts +0 -137
  94. package/dist/models/create-product-field-request-dto.js +0 -20
  95. package/dist/models/create-product-field-response-class.d.ts +0 -25
  96. package/dist/models/create-product-field-response-class.js +0 -15
  97. package/dist/models/create-product-request-dto.d.ts +0 -85
  98. package/dist/models/create-product-request-dto.js +0 -51
  99. package/dist/models/create-product-response-class.d.ts +0 -25
  100. package/dist/models/create-product-response-class.js +0 -15
  101. package/dist/models/csv-product-factor-dto.d.ts +0 -48
  102. package/dist/models/csv-product-factor-dto.js +0 -15
  103. package/dist/models/delete-request-dto.d.ts +0 -24
  104. package/dist/models/delete-request-dto.js +0 -15
  105. package/dist/models/delete-response-class.d.ts +0 -24
  106. package/dist/models/delete-response-class.js +0 -15
  107. package/dist/models/empty-response-class.d.ts +0 -24
  108. package/dist/models/empty-response-class.js +0 -15
  109. package/dist/models/get-insured-object-response-class.d.ts +0 -25
  110. package/dist/models/get-insured-object-response-class.js +0 -15
  111. package/dist/models/get-lead-response-class.d.ts +0 -25
  112. package/dist/models/get-lead-response-class.js +0 -15
  113. package/dist/models/get-lead-status-response-class.d.ts +0 -25
  114. package/dist/models/get-lead-status-response-class.js +0 -15
  115. package/dist/models/get-named-range-response-class.d.ts +0 -25
  116. package/dist/models/get-named-range-response-class.js +0 -15
  117. package/dist/models/get-policy-data-by-date-request-dto.d.ts +0 -30
  118. package/dist/models/get-policy-data-by-date-request-dto.js +0 -15
  119. package/dist/models/get-policy-request-dto.d.ts +0 -30
  120. package/dist/models/get-policy-request-dto.js +0 -15
  121. package/dist/models/get-policy-response-class.d.ts +0 -25
  122. package/dist/models/get-policy-response-class.js +0 -15
  123. package/dist/models/get-premium-formula-request-dto.d.ts +0 -24
  124. package/dist/models/get-premium-formula-request-dto.js +0 -15
  125. package/dist/models/get-premium-formula-response-class.d.ts +0 -25
  126. package/dist/models/get-premium-formula-response-class.js +0 -15
  127. package/dist/models/get-product-factor-response-class.d.ts +0 -32
  128. package/dist/models/get-product-factor-response-class.js +0 -15
  129. package/dist/models/get-product-factor-value-request-dto.d.ts +0 -42
  130. package/dist/models/get-product-factor-value-request-dto.js +0 -15
  131. package/dist/models/get-product-factor-value-response-class.d.ts +0 -25
  132. package/dist/models/get-product-factor-value-response-class.js +0 -15
  133. package/dist/models/get-product-factors-for-version-request-dto.d.ts +0 -36
  134. package/dist/models/get-product-factors-for-version-request-dto.js +0 -15
  135. package/dist/models/get-product-factors-for-version-response-class.d.ts +0 -25
  136. package/dist/models/get-product-factors-for-version-response-class.js +0 -15
  137. package/dist/models/get-product-field-request-dto.d.ts +0 -24
  138. package/dist/models/get-product-field-request-dto.js +0 -15
  139. package/dist/models/get-product-field-response-class.d.ts +0 -25
  140. package/dist/models/get-product-field-response-class.js +0 -15
  141. package/dist/models/get-product-request-dto.d.ts +0 -42
  142. package/dist/models/get-product-request-dto.js +0 -15
  143. package/dist/models/get-product-response-class.d.ts +0 -25
  144. package/dist/models/get-product-response-class.js +0 -15
  145. package/dist/models/get-product-version-request-dto.d.ts +0 -36
  146. package/dist/models/get-product-version-request-dto.js +0 -15
  147. package/dist/models/get-product-version-response-class.d.ts +0 -25
  148. package/dist/models/get-product-version-response-class.js +0 -15
  149. package/dist/models/grouped-product-factor-class.d.ts +0 -37
  150. package/dist/models/grouped-product-factor-class.js +0 -15
  151. package/dist/models/grouped-product-factor-value-class.d.ts +0 -42
  152. package/dist/models/grouped-product-factor-value-class.js +0 -15
  153. package/dist/models/grouped-product-factors-response-class.d.ts +0 -25
  154. package/dist/models/grouped-product-factors-response-class.js +0 -15
  155. package/dist/models/grpc-patch-lead-request-dto.d.ts +0 -102
  156. package/dist/models/grpc-patch-lead-request-dto.js +0 -15
  157. package/dist/models/grpc-update-lead-request-dto.d.ts +0 -102
  158. package/dist/models/grpc-update-lead-request-dto.js +0 -15
  159. package/dist/models/index.d.ts +0 -136
  160. package/dist/models/index.js +0 -152
  161. package/dist/models/inline-response200.d.ts +0 -54
  162. package/dist/models/inline-response200.js +0 -15
  163. package/dist/models/inline-response503.d.ts +0 -54
  164. package/dist/models/inline-response503.js +0 -15
  165. package/dist/models/insured-object-class.d.ts +0 -85
  166. package/dist/models/insured-object-class.js +0 -15
  167. package/dist/models/insured-object-type-class.d.ts +0 -48
  168. package/dist/models/insured-object-type-class.js +0 -15
  169. package/dist/models/invoice-item-class.d.ts +0 -117
  170. package/dist/models/invoice-item-class.js +0 -24
  171. package/dist/models/invoice-status-class.d.ts +0 -47
  172. package/dist/models/invoice-status-class.js +0 -20
  173. package/dist/models/lead-bank-account-class.d.ts +0 -30
  174. package/dist/models/lead-bank-account-class.js +0 -15
  175. package/dist/models/lead-class.d.ts +0 -133
  176. package/dist/models/lead-class.js +0 -15
  177. package/dist/models/lead-status-class.d.ts +0 -36
  178. package/dist/models/lead-status-class.js +0 -15
  179. package/dist/models/list-insured-object-types-response-class.d.ts +0 -31
  180. package/dist/models/list-insured-object-types-response-class.js +0 -15
  181. package/dist/models/list-insured-objects-response-class.d.ts +0 -31
  182. package/dist/models/list-insured-objects-response-class.js +0 -15
  183. package/dist/models/list-lead-statuses-response-class.d.ts +0 -31
  184. package/dist/models/list-lead-statuses-response-class.js +0 -15
  185. package/dist/models/list-leads-response-class.d.ts +0 -43
  186. package/dist/models/list-leads-response-class.js +0 -15
  187. package/dist/models/list-named-ranges-response-class.d.ts +0 -30
  188. package/dist/models/list-named-ranges-response-class.js +0 -15
  189. package/dist/models/list-policies-response-class.d.ts +0 -43
  190. package/dist/models/list-policies-response-class.js +0 -15
  191. package/dist/models/list-premium-formulas-response-class.d.ts +0 -31
  192. package/dist/models/list-premium-formulas-response-class.js +0 -15
  193. package/dist/models/list-product-factors-response-class.d.ts +0 -31
  194. package/dist/models/list-product-factors-response-class.js +0 -15
  195. package/dist/models/list-product-field-types-response-class.d.ts +0 -31
  196. package/dist/models/list-product-field-types-response-class.js +0 -15
  197. package/dist/models/list-product-fields-response-class.d.ts +0 -31
  198. package/dist/models/list-product-fields-response-class.js +0 -15
  199. package/dist/models/list-products-response-class.d.ts +0 -31
  200. package/dist/models/list-products-response-class.js +0 -15
  201. package/dist/models/list-request-dto.d.ts +0 -54
  202. package/dist/models/list-request-dto.js +0 -15
  203. package/dist/models/named-range-class.d.ts +0 -78
  204. package/dist/models/named-range-class.js +0 -15
  205. package/dist/models/patch-lead-request-dto.d.ts +0 -90
  206. package/dist/models/patch-lead-request-dto.js +0 -15
  207. package/dist/models/patch-lead-response-class.d.ts +0 -25
  208. package/dist/models/patch-lead-response-class.js +0 -15
  209. package/dist/models/patch-policy-request-dto.d.ts +0 -50
  210. package/dist/models/patch-policy-request-dto.js +0 -15
  211. package/dist/models/patch-policy-response-class.d.ts +0 -25
  212. package/dist/models/patch-policy-response-class.js +0 -15
  213. package/dist/models/policy-class.d.ts +0 -128
  214. package/dist/models/policy-class.js +0 -15
  215. package/dist/models/policy-object-class.d.ts +0 -60
  216. package/dist/models/policy-object-class.js +0 -15
  217. package/dist/models/policy-object-dto.d.ts +0 -42
  218. package/dist/models/policy-object-dto.js +0 -15
  219. package/dist/models/policy-premium-class.d.ts +0 -49
  220. package/dist/models/policy-premium-class.js +0 -15
  221. package/dist/models/policy-premium-item-class.d.ts +0 -55
  222. package/dist/models/policy-premium-item-class.js +0 -15
  223. package/dist/models/policy-version-class.d.ts +0 -55
  224. package/dist/models/policy-version-class.js +0 -15
  225. package/dist/models/premium-formula-class.d.ts +0 -96
  226. package/dist/models/premium-formula-class.js +0 -15
  227. package/dist/models/premium-override-dto.d.ts +0 -55
  228. package/dist/models/premium-override-dto.js +0 -27
  229. package/dist/models/premium-override-request-class.d.ts +0 -25
  230. package/dist/models/premium-override-request-class.js +0 -15
  231. package/dist/models/premium-override-request-dto.d.ts +0 -25
  232. package/dist/models/premium-override-request-dto.js +0 -15
  233. package/dist/models/product-class.d.ts +0 -80
  234. package/dist/models/product-class.js +0 -15
  235. package/dist/models/product-factor-class.d.ts +0 -61
  236. package/dist/models/product-factor-class.js +0 -15
  237. package/dist/models/product-factor-for-version-class.d.ts +0 -61
  238. package/dist/models/product-factor-for-version-class.js +0 -15
  239. package/dist/models/product-factor-value-class.d.ts +0 -60
  240. package/dist/models/product-factor-value-class.js +0 -15
  241. package/dist/models/product-factor-value-for-version-class.d.ts +0 -42
  242. package/dist/models/product-factor-value-for-version-class.js +0 -15
  243. package/dist/models/product-field-class.d.ts +0 -132
  244. package/dist/models/product-field-class.js +0 -15
  245. package/dist/models/product-field-type-class.d.ts +0 -48
  246. package/dist/models/product-field-type-class.js +0 -15
  247. package/dist/models/product-version-class.d.ts +0 -61
  248. package/dist/models/product-version-class.js +0 -22
  249. package/dist/models/sepa-dto.d.ts +0 -30
  250. package/dist/models/sepa-dto.js +0 -15
  251. package/dist/models/shared-create-lead-policy-request-dto.d.ts +0 -56
  252. package/dist/models/shared-create-lead-policy-request-dto.js +0 -15
  253. package/dist/models/shared-invoice-class.d.ts +0 -150
  254. package/dist/models/shared-invoice-class.js +0 -30
  255. package/dist/models/shared-lead-policy-object-dto.d.ts +0 -42
  256. package/dist/models/shared-lead-policy-object-dto.js +0 -15
  257. package/dist/models/shared-product-field-class.d.ts +0 -132
  258. package/dist/models/shared-product-field-class.js +0 -15
  259. package/dist/models/shared-update-named-range-request-dto.d.ts +0 -42
  260. package/dist/models/shared-update-named-range-request-dto.js +0 -15
  261. package/dist/models/shared-update-premium-formula-request-dto.d.ts +0 -111
  262. package/dist/models/shared-update-premium-formula-request-dto.js +0 -39
  263. package/dist/models/store-product-factors-request-dto.d.ts +0 -31
  264. package/dist/models/store-product-factors-request-dto.js +0 -15
  265. package/dist/models/store-product-factors-response-class.d.ts +0 -25
  266. package/dist/models/store-product-factors-response-class.js +0 -15
  267. package/dist/models/suspend-policy-request-dto.d.ts +0 -24
  268. package/dist/models/suspend-policy-request-dto.js +0 -15
  269. package/dist/models/suspend-policy-response-class.d.ts +0 -25
  270. package/dist/models/suspend-policy-response-class.js +0 -15
  271. package/dist/models/swap-premium-formulas-order-request-dto.d.ts +0 -30
  272. package/dist/models/swap-premium-formulas-order-request-dto.js +0 -15
  273. package/dist/models/terminate-policy-request-dto.d.ts +0 -24
  274. package/dist/models/terminate-policy-request-dto.js +0 -15
  275. package/dist/models/terminate-policy-response-class.d.ts +0 -25
  276. package/dist/models/terminate-policy-response-class.js +0 -15
  277. package/dist/models/timeslice-class.d.ts +0 -62
  278. package/dist/models/timeslice-class.js +0 -15
  279. package/dist/models/update-insured-object-request-dto.d.ts +0 -66
  280. package/dist/models/update-insured-object-request-dto.js +0 -15
  281. package/dist/models/update-lead-request-dto.d.ts +0 -90
  282. package/dist/models/update-lead-request-dto.js +0 -15
  283. package/dist/models/update-lead-response-class.d.ts +0 -25
  284. package/dist/models/update-lead-response-class.js +0 -15
  285. package/dist/models/update-named-range-request-dto.d.ts +0 -36
  286. package/dist/models/update-named-range-request-dto.js +0 -15
  287. package/dist/models/update-named-range-response-class.d.ts +0 -25
  288. package/dist/models/update-named-range-response-class.js +0 -15
  289. package/dist/models/update-policy-request-dto.d.ts +0 -70
  290. package/dist/models/update-policy-request-dto.js +0 -23
  291. package/dist/models/update-policy-response-class.d.ts +0 -25
  292. package/dist/models/update-policy-response-class.js +0 -15
  293. package/dist/models/update-premium-formula-request-dto.d.ts +0 -105
  294. package/dist/models/update-premium-formula-request-dto.js +0 -39
  295. package/dist/models/update-premium-formula-response-class.d.ts +0 -25
  296. package/dist/models/update-premium-formula-response-class.js +0 -15
  297. package/dist/models/update-product-field-request-dto.d.ts +0 -143
  298. package/dist/models/update-product-field-request-dto.js +0 -20
  299. package/dist/models/update-product-field-response-class.d.ts +0 -25
  300. package/dist/models/update-product-field-response-class.js +0 -15
  301. package/dist/models/update-product-request-dto.d.ts +0 -42
  302. package/dist/models/update-product-request-dto.js +0 -15
  303. package/dist/models/update-product-response-class.d.ts +0 -25
  304. package/dist/models/update-product-response-class.js +0 -15
  305. package/dist/models/update-product-version-request-dto.d.ts +0 -43
  306. package/dist/models/update-product-version-request-dto.js +0 -22
  307. package/dist/models/update-product-version-response-class.d.ts +0 -25
  308. package/dist/models/update-product-version-response-class.js +0 -15
  309. package/dist/models/uploaded-document-dto.d.ts +0 -24
  310. package/dist/models/uploaded-document-dto.js +0 -15
  311. package/dist/models/validate-product-factors-request-dto.d.ts +0 -31
  312. package/dist/models/validate-product-factors-request-dto.js +0 -15
  313. package/dist/models/withdraw-policy-response-class.d.ts +0 -25
  314. package/dist/models/withdraw-policy-response-class.js +0 -15
package/dist/common.js DELETED
@@ -1,277 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL InsuranceService
6
- * The EMIL InsuranceService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __assign = (this && this.__assign) || function () {
16
- __assign = Object.assign || function(t) {
17
- for (var s, i = 1, n = arguments.length; i < n; i++) {
18
- s = arguments[i];
19
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
- t[p] = s[p];
21
- }
22
- return t;
23
- };
24
- return __assign.apply(this, arguments);
25
- };
26
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28
- return new (P || (P = Promise))(function (resolve, reject) {
29
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32
- step((generator = generator.apply(thisArg, _arguments || [])).next());
33
- });
34
- };
35
- var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
- function verb(n) { return function (v) { return step([n, v]); }; }
39
- function step(op) {
40
- if (f) throw new TypeError("Generator is already executing.");
41
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
42
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
43
- if (y = 0, t) op = [op[0] & 2, t.value];
44
- switch (op[0]) {
45
- case 0: case 1: t = op; break;
46
- case 4: _.label++; return { value: op[1], done: false };
47
- case 5: _.label++; y = op[1]; op = [0]; continue;
48
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
49
- default:
50
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
51
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
52
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
53
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
54
- if (t[2]) _.ops.pop();
55
- _.trys.pop(); continue;
56
- }
57
- op = body.call(thisArg, _);
58
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
- }
61
- };
62
- Object.defineProperty(exports, "__esModule", { value: true });
63
- exports.defaultStorage = exports.LocalStorage = exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
64
- var base_1 = require("./base");
65
- var url_1 = require("url");
66
- /**
67
- *
68
- * @export
69
- */
70
- exports.DUMMY_BASE_URL = 'https://example.com';
71
- /**
72
- *
73
- * @throws {RequiredError}
74
- * @export
75
- */
76
- var assertParamExists = function (functionName, paramName, paramValue) {
77
- if (paramValue === null || paramValue === undefined) {
78
- throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
79
- }
80
- };
81
- exports.assertParamExists = assertParamExists;
82
- /**
83
- *
84
- * @export
85
- */
86
- var setApiKeyToObject = function (object, keyParamName, configuration) {
87
- return __awaiter(this, void 0, void 0, function () {
88
- var localVarApiKeyValue, _a;
89
- return __generator(this, function (_b) {
90
- switch (_b.label) {
91
- case 0:
92
- if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
93
- if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
94
- return [4 /*yield*/, configuration.apiKey(keyParamName)];
95
- case 1:
96
- _a = _b.sent();
97
- return [3 /*break*/, 4];
98
- case 2: return [4 /*yield*/, configuration.apiKey];
99
- case 3:
100
- _a = _b.sent();
101
- _b.label = 4;
102
- case 4:
103
- localVarApiKeyValue = _a;
104
- object[keyParamName] = localVarApiKeyValue;
105
- _b.label = 5;
106
- case 5: return [2 /*return*/];
107
- }
108
- });
109
- });
110
- };
111
- exports.setApiKeyToObject = setApiKeyToObject;
112
- /**
113
- *
114
- * @export
115
- */
116
- var setBasicAuthToObject = function (object, configuration) {
117
- if (configuration && (configuration.username || configuration.password)) {
118
- object["auth"] = { username: configuration.username, password: configuration.password };
119
- }
120
- };
121
- exports.setBasicAuthToObject = setBasicAuthToObject;
122
- /**
123
- *
124
- * @export
125
- */
126
- var setBearerAuthToObject = function (object, configuration) {
127
- return __awaiter(this, void 0, void 0, function () {
128
- var accessToken, _a;
129
- return __generator(this, function (_b) {
130
- switch (_b.label) {
131
- case 0:
132
- if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
133
- if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
134
- return [4 /*yield*/, configuration.accessToken()];
135
- case 1:
136
- _a = _b.sent();
137
- return [3 /*break*/, 4];
138
- case 2: return [4 /*yield*/, configuration.accessToken];
139
- case 3:
140
- _a = _b.sent();
141
- _b.label = 4;
142
- case 4:
143
- accessToken = _a;
144
- object["Authorization"] = "Bearer " + accessToken;
145
- _b.label = 5;
146
- case 5: return [2 /*return*/];
147
- }
148
- });
149
- });
150
- };
151
- exports.setBearerAuthToObject = setBearerAuthToObject;
152
- /**
153
- *
154
- * @export
155
- */
156
- var setOAuthToObject = function (object, name, scopes, configuration) {
157
- return __awaiter(this, void 0, void 0, function () {
158
- var localVarAccessTokenValue, _a;
159
- return __generator(this, function (_b) {
160
- switch (_b.label) {
161
- case 0:
162
- if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
163
- if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
164
- return [4 /*yield*/, configuration.accessToken(name, scopes)];
165
- case 1:
166
- _a = _b.sent();
167
- return [3 /*break*/, 4];
168
- case 2: return [4 /*yield*/, configuration.accessToken];
169
- case 3:
170
- _a = _b.sent();
171
- _b.label = 4;
172
- case 4:
173
- localVarAccessTokenValue = _a;
174
- object["Authorization"] = "Bearer " + localVarAccessTokenValue;
175
- _b.label = 5;
176
- case 5: return [2 /*return*/];
177
- }
178
- });
179
- });
180
- };
181
- exports.setOAuthToObject = setOAuthToObject;
182
- /**
183
- *
184
- * @export
185
- */
186
- var setSearchParams = function (url) {
187
- var objects = [];
188
- for (var _i = 1; _i < arguments.length; _i++) {
189
- objects[_i - 1] = arguments[_i];
190
- }
191
- var searchParams = new url_1.URLSearchParams(url.search);
192
- for (var _a = 0, objects_1 = objects; _a < objects_1.length; _a++) {
193
- var object = objects_1[_a];
194
- for (var key in object) {
195
- if (Array.isArray(object[key])) {
196
- searchParams.delete(key);
197
- for (var _b = 0, _c = object[key]; _b < _c.length; _b++) {
198
- var item = _c[_b];
199
- searchParams.append(key, item);
200
- }
201
- }
202
- else {
203
- searchParams.set(key, object[key]);
204
- }
205
- }
206
- }
207
- url.search = searchParams.toString();
208
- };
209
- exports.setSearchParams = setSearchParams;
210
- /**
211
- *
212
- * @export
213
- */
214
- var serializeDataIfNeeded = function (value, requestOptions, configuration) {
215
- var nonString = typeof value !== 'string';
216
- var needsSerialization = nonString && configuration && configuration.isJsonMime
217
- ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
218
- : nonString;
219
- return needsSerialization
220
- ? JSON.stringify(value !== undefined ? value : {})
221
- : (value || "");
222
- };
223
- exports.serializeDataIfNeeded = serializeDataIfNeeded;
224
- /**
225
- *
226
- * @export
227
- */
228
- var toPathString = function (url) {
229
- return url.pathname + url.search + url.hash;
230
- };
231
- exports.toPathString = toPathString;
232
- /**
233
- *
234
- * @export
235
- */
236
- var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
237
- return function (axios, basePath) {
238
- if (axios === void 0) { axios = globalAxios; }
239
- if (basePath === void 0) { basePath = BASE_PATH; }
240
- var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
241
- return axios.request(axiosRequestArgs);
242
- };
243
- };
244
- exports.createRequestFunction = createRequestFunction;
245
- var LocalStorage = /** @class */ (function () {
246
- function LocalStorage() {
247
- this.storage = localStorage;
248
- }
249
- LocalStorage.prototype.get = function (key, converter) {
250
- var jsonValue = this.storage.getItem(key);
251
- if (jsonValue === null) {
252
- return null;
253
- }
254
- var value = JSON.parse(jsonValue);
255
- if (converter !== undefined) {
256
- return converter.fromStorageData(value);
257
- }
258
- else {
259
- return value;
260
- }
261
- };
262
- LocalStorage.prototype.set = function (key, value, converter) {
263
- var valueToStore = value;
264
- if (converter !== undefined) {
265
- valueToStore = converter.toStorageData(value);
266
- }
267
- var jsonValue = JSON.stringify(valueToStore);
268
- this.storage.setItem(key, jsonValue);
269
- };
270
- return LocalStorage;
271
- }());
272
- exports.LocalStorage = LocalStorage;
273
- var _defaultStorage = null;
274
- var defaultStorage = function () {
275
- return _defaultStorage || (_defaultStorage = new LocalStorage());
276
- };
277
- exports.defaultStorage = defaultStorage;
@@ -1,90 +0,0 @@
1
- /**
2
- * EMIL InsuranceService
3
- * The EMIL InsuranceService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export interface ConfigurationParameters {
13
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
- username?: string;
15
- password?: string;
16
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
- basePath?: string;
18
- baseOptions?: any;
19
- formDataCtor?: new () => any;
20
- }
21
- export declare class Configuration {
22
- /**
23
- * parameter for apiKey security
24
- * @param name security name
25
- * @memberof Configuration
26
- */
27
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
28
- /**
29
- * parameter for basic security
30
- *
31
- * @type {string}
32
- * @memberof Configuration
33
- */
34
- username?: string;
35
- /**
36
- * parameter for basic security
37
- *
38
- * @type {string}
39
- * @memberof Configuration
40
- */
41
- password?: string;
42
- /**
43
- * parameter for oauth2 security
44
- * @param name security name
45
- * @param scopes oauth2 scope
46
- * @memberof Configuration
47
- */
48
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
49
- /**
50
- * override base path
51
- *
52
- * @type {string}
53
- * @memberof Configuration
54
- */
55
- basePath?: string;
56
- /**
57
- * base options for axios calls
58
- *
59
- * @type {any}
60
- * @memberof Configuration
61
- */
62
- baseOptions?: any;
63
- /**
64
- * The FormData constructor that will be used to create multipart form data
65
- * requests. You can inject this here so that execution environments that
66
- * do not support the FormData class can still run the generated client.
67
- *
68
- * @type {new () => FormData}
69
- */
70
- formDataCtor?: new () => any;
71
- /**
72
- * parameter for automatically refreshing access token for oauth2 security
73
- *
74
- * @type {string}
75
- * @memberof Configuration
76
- */
77
- refreshToken?: string;
78
- constructor(param?: ConfigurationParameters);
79
- /**
80
- * Check if the given MIME is a JSON MIME.
81
- * JSON MIME examples:
82
- * application/json
83
- * application/json; charset=UTF8
84
- * APPLICATION/JSON
85
- * application/vnd.company+json
86
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
87
- * @return True if the given MIME is JSON, false otherwise.
88
- */
89
- isJsonMime(mime: string): boolean;
90
- }
@@ -1,44 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL InsuranceService
6
- * The EMIL InsuranceService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.Configuration = void 0;
17
- var Configuration = /** @class */ (function () {
18
- function Configuration(param) {
19
- if (param === void 0) { param = {}; }
20
- this.apiKey = param.apiKey;
21
- this.username = param.username;
22
- this.password = param.password;
23
- this.accessToken = param.accessToken;
24
- this.basePath = param.basePath;
25
- this.baseOptions = param.baseOptions;
26
- this.formDataCtor = param.formDataCtor;
27
- }
28
- /**
29
- * Check if the given MIME is a JSON MIME.
30
- * JSON MIME examples:
31
- * application/json
32
- * application/json; charset=UTF8
33
- * APPLICATION/JSON
34
- * application/vnd.company+json
35
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
36
- * @return True if the given MIME is JSON, false otherwise.
37
- */
38
- Configuration.prototype.isJsonMime = function (mime) {
39
- var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
40
- return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
41
- };
42
- return Configuration;
43
- }());
44
- exports.Configuration = Configuration;
package/dist/index.d.ts DELETED
@@ -1,15 +0,0 @@
1
- /**
2
- * EMIL InsuranceService
3
- * The EMIL InsuranceService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- export { Environment, BaseAPI } from "./base";
13
- export * from "./api";
14
- export * from "./configuration";
15
- export * from "./models";
package/dist/index.js DELETED
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL InsuranceService
6
- * The EMIL InsuranceService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
- if (k2 === undefined) k2 = k;
17
- var desc = Object.getOwnPropertyDescriptor(m, k);
18
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
- desc = { enumerable: true, get: function() { return m[k]; } };
20
- }
21
- Object.defineProperty(o, k2, desc);
22
- }) : (function(o, m, k, k2) {
23
- if (k2 === undefined) k2 = k;
24
- o[k2] = m[k];
25
- }));
26
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
- };
29
- Object.defineProperty(exports, "__esModule", { value: true });
30
- exports.BaseAPI = exports.Environment = void 0;
31
- var base_1 = require("./base");
32
- Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
33
- Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
34
- __exportStar(require("./api"), exports);
35
- __exportStar(require("./configuration"), exports);
36
- __exportStar(require("./models"), exports);
@@ -1,24 +0,0 @@
1
- /**
2
- * EMIL InsuranceService
3
- * The EMIL InsuranceService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface ActivatePolicyRequestDto
16
- */
17
- export interface ActivatePolicyRequestDto {
18
- /**
19
- * Activate from.
20
- * @type {string}
21
- * @memberof ActivatePolicyRequestDto
22
- */
23
- 'from'?: string;
24
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL InsuranceService
6
- * The EMIL InsuranceService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,25 +0,0 @@
1
- /**
2
- * EMIL InsuranceService
3
- * The EMIL InsuranceService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { PolicyClass } from './policy-class';
13
- /**
14
- *
15
- * @export
16
- * @interface ActivatePolicyResponseClass
17
- */
18
- export interface ActivatePolicyResponseClass {
19
- /**
20
- * Policy.
21
- * @type {PolicyClass}
22
- * @memberof ActivatePolicyResponseClass
23
- */
24
- 'policy': PolicyClass;
25
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL InsuranceService
6
- * The EMIL InsuranceService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +0,0 @@
1
- /**
2
- * EMIL InsuranceService
3
- * The EMIL InsuranceService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface CalculateCustomPremiumRequestDto
16
- */
17
- export interface CalculateCustomPremiumRequestDto {
18
- /**
19
- * Custom premium data.
20
- * @type {object}
21
- * @memberof CalculateCustomPremiumRequestDto
22
- */
23
- 'data': object;
24
- /**
25
- * Custom provider name.
26
- * @type {string}
27
- * @memberof CalculateCustomPremiumRequestDto
28
- */
29
- 'provider': CalculateCustomPremiumRequestDtoProviderEnum;
30
- }
31
- export declare const CalculateCustomPremiumRequestDtoProviderEnum: {
32
- readonly Squarelife: "squarelife";
33
- readonly Janitos: "janitos";
34
- };
35
- export type CalculateCustomPremiumRequestDtoProviderEnum = typeof CalculateCustomPremiumRequestDtoProviderEnum[keyof typeof CalculateCustomPremiumRequestDtoProviderEnum];
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL InsuranceService
6
- * The EMIL InsuranceService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CalculateCustomPremiumRequestDtoProviderEnum = void 0;
17
- exports.CalculateCustomPremiumRequestDtoProviderEnum = {
18
- Squarelife: 'squarelife',
19
- Janitos: 'janitos'
20
- };
@@ -1,38 +0,0 @@
1
- /**
2
- * EMIL InsuranceService
3
- * The EMIL InsuranceService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { PolicyObjectDto } from './policy-object-dto';
13
- import { PremiumOverrideRequestDto } from './premium-override-request-dto';
14
- /**
15
- *
16
- * @export
17
- * @interface CalculatePremiumRequestDto
18
- */
19
- export interface CalculatePremiumRequestDto {
20
- /**
21
- * Unique identifier referencing the product version.
22
- * @type {number}
23
- * @memberof CalculatePremiumRequestDto
24
- */
25
- 'productVersionId': number;
26
- /**
27
- * Policy Objects.
28
- * @type {Array<PolicyObjectDto>}
29
- * @memberof CalculatePremiumRequestDto
30
- */
31
- 'policyObjects': Array<PolicyObjectDto>;
32
- /**
33
- * Premium Override request.
34
- * @type {PremiumOverrideRequestDto}
35
- * @memberof CalculatePremiumRequestDto
36
- */
37
- 'premiumOverride'?: PremiumOverrideRequestDto;
38
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL InsuranceService
6
- * The EMIL InsuranceService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });