@emilgroup/insurance-sdk-node 1.36.0 → 1.36.1

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 (310) hide show
  1. package/README.md +2 -2
  2. package/dist/api/default-api.d.ts +66 -0
  3. package/dist/api/default-api.js +200 -0
  4. package/dist/api/insured-object-types-api.d.ts +141 -0
  5. package/dist/api/insured-object-types-api.js +258 -0
  6. package/dist/api/insured-objects-api.d.ts +318 -0
  7. package/dist/api/insured-objects-api.js +539 -0
  8. package/dist/api/lead-statuses-api.d.ts +265 -0
  9. package/dist/api/lead-statuses-api.js +505 -0
  10. package/dist/api/leads-api.d.ts +626 -0
  11. package/dist/api/leads-api.js +1024 -0
  12. package/dist/api/named-ranges-api.d.ts +376 -0
  13. package/dist/api/named-ranges-api.js +634 -0
  14. package/dist/api/policies-api.d.ts +722 -0
  15. package/dist/api/policies-api.js +1141 -0
  16. package/dist/api/premium-formulas-api.d.ts +433 -0
  17. package/dist/api/premium-formulas-api.js +727 -0
  18. package/dist/api/product-factors-api.d.ts +493 -0
  19. package/dist/api/product-factors-api.js +788 -0
  20. package/dist/api/product-fields-api.d.ts +477 -0
  21. package/dist/api/product-fields-api.js +757 -0
  22. package/dist/api/product-versions-api.d.ts +189 -0
  23. package/dist/api/product-versions-api.js +346 -0
  24. package/dist/api/products-api.d.ts +485 -0
  25. package/dist/api/products-api.js +772 -0
  26. package/dist/api.d.ts +23 -0
  27. package/dist/api.js +41 -0
  28. package/dist/base.d.ts +78 -0
  29. package/dist/base.js +394 -0
  30. package/dist/common.d.ts +92 -0
  31. package/dist/common.js +277 -0
  32. package/dist/configuration.d.ts +90 -0
  33. package/dist/configuration.js +44 -0
  34. package/dist/index.d.ts +15 -0
  35. package/dist/index.js +36 -0
  36. package/dist/models/activate-policy-request-dto.d.ts +24 -0
  37. package/dist/models/activate-policy-request-dto.js +15 -0
  38. package/dist/models/activate-policy-response-class.d.ts +25 -0
  39. package/dist/models/activate-policy-response-class.js +15 -0
  40. package/dist/models/calculate-custom-premium-request-dto.d.ts +35 -0
  41. package/dist/models/calculate-custom-premium-request-dto.js +20 -0
  42. package/dist/models/calculate-premium-request-dto.d.ts +38 -0
  43. package/dist/models/calculate-premium-request-dto.js +15 -0
  44. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  45. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  46. package/dist/models/clone-product-version-request-dto.d.ts +36 -0
  47. package/dist/models/clone-product-version-request-dto.js +15 -0
  48. package/dist/models/create-account-request-dto.d.ts +120 -0
  49. package/dist/models/create-account-request-dto.js +26 -0
  50. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  51. package/dist/models/create-bank-account-request-dto.js +15 -0
  52. package/dist/models/create-custom-application-request-dto.d.ts +41 -0
  53. package/dist/models/create-custom-application-request-dto.js +20 -0
  54. package/dist/models/create-dummy-policy-request-dto.d.ts +44 -0
  55. package/dist/models/create-dummy-policy-request-dto.js +15 -0
  56. package/dist/models/create-insured-object-request-dto.d.ts +60 -0
  57. package/dist/models/create-insured-object-request-dto.js +15 -0
  58. package/dist/models/create-insured-object-response-class.d.ts +25 -0
  59. package/dist/models/create-insured-object-response-class.js +15 -0
  60. package/dist/models/create-lead-async-response-class.d.ts +24 -0
  61. package/dist/models/create-lead-async-response-class.js +15 -0
  62. package/dist/models/create-lead-policy-request-dto.d.ts +56 -0
  63. package/dist/models/create-lead-policy-request-dto.js +15 -0
  64. package/dist/models/create-lead-request-dto.d.ts +96 -0
  65. package/dist/models/create-lead-request-dto.js +15 -0
  66. package/dist/models/create-lead-response-class.d.ts +25 -0
  67. package/dist/models/create-lead-response-class.js +15 -0
  68. package/dist/models/create-lead-status-request-dto.d.ts +30 -0
  69. package/dist/models/create-lead-status-request-dto.js +15 -0
  70. package/dist/models/create-lead-status-response-class.d.ts +25 -0
  71. package/dist/models/create-lead-status-response-class.js +15 -0
  72. package/dist/models/create-named-range-request-dto.d.ts +55 -0
  73. package/dist/models/create-named-range-request-dto.js +15 -0
  74. package/dist/models/create-named-range-response-class.d.ts +25 -0
  75. package/dist/models/create-named-range-response-class.js +15 -0
  76. package/dist/models/create-named-request-s3-data-class.d.ts +30 -0
  77. package/dist/models/create-named-request-s3-data-class.js +15 -0
  78. package/dist/models/create-payment-method-request-dto.d.ts +31 -0
  79. package/dist/models/create-payment-method-request-dto.js +15 -0
  80. package/dist/models/create-policy-request-dto.d.ts +62 -0
  81. package/dist/models/create-policy-request-dto.js +15 -0
  82. package/dist/models/create-policy-response-class.d.ts +25 -0
  83. package/dist/models/create-policy-response-class.js +15 -0
  84. package/dist/models/create-premium-formula-request-dto.d.ts +105 -0
  85. package/dist/models/create-premium-formula-request-dto.js +39 -0
  86. package/dist/models/create-premium-formula-response-class.d.ts +25 -0
  87. package/dist/models/create-premium-formula-response-class.js +15 -0
  88. package/dist/models/create-product-field-request-dto.d.ts +137 -0
  89. package/dist/models/create-product-field-request-dto.js +20 -0
  90. package/dist/models/create-product-field-response-class.d.ts +25 -0
  91. package/dist/models/create-product-field-response-class.js +15 -0
  92. package/dist/models/create-product-request-dto.d.ts +85 -0
  93. package/dist/models/create-product-request-dto.js +51 -0
  94. package/dist/models/create-product-response-class.d.ts +25 -0
  95. package/dist/models/create-product-response-class.js +15 -0
  96. package/dist/models/csv-product-factor-dto.d.ts +48 -0
  97. package/dist/models/csv-product-factor-dto.js +15 -0
  98. package/dist/models/delete-request-dto.d.ts +24 -0
  99. package/dist/models/delete-request-dto.js +15 -0
  100. package/dist/models/delete-response-class.d.ts +24 -0
  101. package/dist/models/delete-response-class.js +15 -0
  102. package/dist/models/empty-response-class.d.ts +24 -0
  103. package/dist/models/empty-response-class.js +15 -0
  104. package/dist/models/get-insured-object-response-class.d.ts +25 -0
  105. package/dist/models/get-insured-object-response-class.js +15 -0
  106. package/dist/models/get-lead-response-class.d.ts +25 -0
  107. package/dist/models/get-lead-response-class.js +15 -0
  108. package/dist/models/get-lead-status-response-class.d.ts +25 -0
  109. package/dist/models/get-lead-status-response-class.js +15 -0
  110. package/dist/models/get-named-range-response-class.d.ts +25 -0
  111. package/dist/models/get-named-range-response-class.js +15 -0
  112. package/dist/models/get-policy-data-by-date-request-dto.d.ts +30 -0
  113. package/dist/models/get-policy-data-by-date-request-dto.js +15 -0
  114. package/dist/models/get-policy-request-dto.d.ts +30 -0
  115. package/dist/models/get-policy-request-dto.js +15 -0
  116. package/dist/models/get-policy-response-class.d.ts +25 -0
  117. package/dist/models/get-policy-response-class.js +15 -0
  118. package/dist/models/get-premium-formula-request-dto.d.ts +24 -0
  119. package/dist/models/get-premium-formula-request-dto.js +15 -0
  120. package/dist/models/get-premium-formula-response-class.d.ts +25 -0
  121. package/dist/models/get-premium-formula-response-class.js +15 -0
  122. package/dist/models/get-product-factor-response-class.d.ts +32 -0
  123. package/dist/models/get-product-factor-response-class.js +15 -0
  124. package/dist/models/get-product-factor-value-request-dto.d.ts +42 -0
  125. package/dist/models/get-product-factor-value-request-dto.js +15 -0
  126. package/dist/models/get-product-factor-value-response-class.d.ts +25 -0
  127. package/dist/models/get-product-factor-value-response-class.js +15 -0
  128. package/dist/models/get-product-factors-for-version-request-dto.d.ts +36 -0
  129. package/dist/models/get-product-factors-for-version-request-dto.js +15 -0
  130. package/dist/models/get-product-factors-for-version-response-class.d.ts +25 -0
  131. package/dist/models/get-product-factors-for-version-response-class.js +15 -0
  132. package/dist/models/get-product-field-request-dto.d.ts +24 -0
  133. package/dist/models/get-product-field-request-dto.js +15 -0
  134. package/dist/models/get-product-field-response-class.d.ts +25 -0
  135. package/dist/models/get-product-field-response-class.js +15 -0
  136. package/dist/models/get-product-request-dto.d.ts +42 -0
  137. package/dist/models/get-product-request-dto.js +15 -0
  138. package/dist/models/get-product-response-class.d.ts +25 -0
  139. package/dist/models/get-product-response-class.js +15 -0
  140. package/dist/models/get-product-version-request-dto.d.ts +36 -0
  141. package/dist/models/get-product-version-request-dto.js +15 -0
  142. package/dist/models/get-product-version-response-class.d.ts +25 -0
  143. package/dist/models/get-product-version-response-class.js +15 -0
  144. package/dist/models/grouped-product-factor-class.d.ts +37 -0
  145. package/dist/models/grouped-product-factor-class.js +15 -0
  146. package/dist/models/grouped-product-factor-value-class.d.ts +42 -0
  147. package/dist/models/grouped-product-factor-value-class.js +15 -0
  148. package/dist/models/grouped-product-factors-response-class.d.ts +25 -0
  149. package/dist/models/grouped-product-factors-response-class.js +15 -0
  150. package/dist/models/grpc-patch-lead-request-dto.d.ts +102 -0
  151. package/dist/models/grpc-patch-lead-request-dto.js +15 -0
  152. package/dist/models/grpc-update-lead-request-dto.d.ts +102 -0
  153. package/dist/models/grpc-update-lead-request-dto.js +15 -0
  154. package/dist/models/index.d.ts +136 -0
  155. package/dist/models/index.js +152 -0
  156. package/dist/models/inline-response200.d.ts +54 -0
  157. package/dist/models/inline-response200.js +15 -0
  158. package/dist/models/inline-response503.d.ts +54 -0
  159. package/dist/models/inline-response503.js +15 -0
  160. package/dist/models/insured-object-class.d.ts +85 -0
  161. package/dist/models/insured-object-class.js +15 -0
  162. package/dist/models/insured-object-type-class.d.ts +48 -0
  163. package/dist/models/insured-object-type-class.js +15 -0
  164. package/dist/models/invoice-item-class.d.ts +117 -0
  165. package/dist/models/invoice-item-class.js +24 -0
  166. package/dist/models/invoice-status-class.d.ts +47 -0
  167. package/dist/models/invoice-status-class.js +20 -0
  168. package/dist/models/lead-bank-account-class.d.ts +30 -0
  169. package/dist/models/lead-bank-account-class.js +15 -0
  170. package/dist/models/lead-class.d.ts +133 -0
  171. package/dist/models/lead-class.js +15 -0
  172. package/dist/models/lead-status-class.d.ts +36 -0
  173. package/dist/models/lead-status-class.js +15 -0
  174. package/dist/models/list-insured-object-types-response-class.d.ts +31 -0
  175. package/dist/models/list-insured-object-types-response-class.js +15 -0
  176. package/dist/models/list-insured-objects-response-class.d.ts +31 -0
  177. package/dist/models/list-insured-objects-response-class.js +15 -0
  178. package/dist/models/list-lead-statuses-response-class.d.ts +31 -0
  179. package/dist/models/list-lead-statuses-response-class.js +15 -0
  180. package/dist/models/list-leads-response-class.d.ts +43 -0
  181. package/dist/models/list-leads-response-class.js +15 -0
  182. package/dist/models/list-named-ranges-response-class.d.ts +30 -0
  183. package/dist/models/list-named-ranges-response-class.js +15 -0
  184. package/dist/models/list-policies-response-class.d.ts +43 -0
  185. package/dist/models/list-policies-response-class.js +15 -0
  186. package/dist/models/list-premium-formulas-response-class.d.ts +31 -0
  187. package/dist/models/list-premium-formulas-response-class.js +15 -0
  188. package/dist/models/list-product-factors-response-class.d.ts +31 -0
  189. package/dist/models/list-product-factors-response-class.js +15 -0
  190. package/dist/models/list-product-field-types-response-class.d.ts +31 -0
  191. package/dist/models/list-product-field-types-response-class.js +15 -0
  192. package/dist/models/list-product-fields-response-class.d.ts +31 -0
  193. package/dist/models/list-product-fields-response-class.js +15 -0
  194. package/dist/models/list-products-response-class.d.ts +31 -0
  195. package/dist/models/list-products-response-class.js +15 -0
  196. package/dist/models/list-request-dto.d.ts +54 -0
  197. package/dist/models/list-request-dto.js +15 -0
  198. package/dist/models/named-range-class.d.ts +78 -0
  199. package/dist/models/named-range-class.js +15 -0
  200. package/dist/models/patch-lead-request-dto.d.ts +90 -0
  201. package/dist/models/patch-lead-request-dto.js +15 -0
  202. package/dist/models/patch-lead-response-class.d.ts +25 -0
  203. package/dist/models/patch-lead-response-class.js +15 -0
  204. package/dist/models/patch-policy-request-dto.d.ts +50 -0
  205. package/dist/models/patch-policy-request-dto.js +15 -0
  206. package/dist/models/patch-policy-response-class.d.ts +25 -0
  207. package/dist/models/patch-policy-response-class.js +15 -0
  208. package/dist/models/policy-class.d.ts +128 -0
  209. package/dist/models/policy-class.js +15 -0
  210. package/dist/models/policy-object-class.d.ts +60 -0
  211. package/dist/models/policy-object-class.js +15 -0
  212. package/dist/models/policy-object-dto.d.ts +42 -0
  213. package/dist/models/policy-object-dto.js +15 -0
  214. package/dist/models/policy-premium-class.d.ts +49 -0
  215. package/dist/models/policy-premium-class.js +15 -0
  216. package/dist/models/policy-premium-item-class.d.ts +55 -0
  217. package/dist/models/policy-premium-item-class.js +15 -0
  218. package/dist/models/policy-version-class.d.ts +55 -0
  219. package/dist/models/policy-version-class.js +15 -0
  220. package/dist/models/premium-formula-class.d.ts +96 -0
  221. package/dist/models/premium-formula-class.js +15 -0
  222. package/dist/models/premium-override-dto.d.ts +55 -0
  223. package/dist/models/premium-override-dto.js +27 -0
  224. package/dist/models/premium-override-request-class.d.ts +25 -0
  225. package/dist/models/premium-override-request-class.js +15 -0
  226. package/dist/models/premium-override-request-dto.d.ts +25 -0
  227. package/dist/models/premium-override-request-dto.js +15 -0
  228. package/dist/models/product-class.d.ts +80 -0
  229. package/dist/models/product-class.js +15 -0
  230. package/dist/models/product-factor-class.d.ts +61 -0
  231. package/dist/models/product-factor-class.js +15 -0
  232. package/dist/models/product-factor-for-version-class.d.ts +61 -0
  233. package/dist/models/product-factor-for-version-class.js +15 -0
  234. package/dist/models/product-factor-value-class.d.ts +60 -0
  235. package/dist/models/product-factor-value-class.js +15 -0
  236. package/dist/models/product-factor-value-for-version-class.d.ts +42 -0
  237. package/dist/models/product-factor-value-for-version-class.js +15 -0
  238. package/dist/models/product-field-class.d.ts +132 -0
  239. package/dist/models/product-field-class.js +15 -0
  240. package/dist/models/product-field-type-class.d.ts +48 -0
  241. package/dist/models/product-field-type-class.js +15 -0
  242. package/dist/models/product-version-class.d.ts +61 -0
  243. package/dist/models/product-version-class.js +22 -0
  244. package/dist/models/sepa-dto.d.ts +30 -0
  245. package/dist/models/sepa-dto.js +15 -0
  246. package/dist/models/shared-create-lead-policy-request-dto.d.ts +56 -0
  247. package/dist/models/shared-create-lead-policy-request-dto.js +15 -0
  248. package/dist/models/shared-invoice-class.d.ts +150 -0
  249. package/dist/models/shared-invoice-class.js +30 -0
  250. package/dist/models/shared-lead-policy-object-dto.d.ts +42 -0
  251. package/dist/models/shared-lead-policy-object-dto.js +15 -0
  252. package/dist/models/shared-product-field-class.d.ts +132 -0
  253. package/dist/models/shared-product-field-class.js +15 -0
  254. package/dist/models/shared-update-named-range-request-dto.d.ts +42 -0
  255. package/dist/models/shared-update-named-range-request-dto.js +15 -0
  256. package/dist/models/shared-update-premium-formula-request-dto.d.ts +111 -0
  257. package/dist/models/shared-update-premium-formula-request-dto.js +39 -0
  258. package/dist/models/store-product-factors-request-dto.d.ts +31 -0
  259. package/dist/models/store-product-factors-request-dto.js +15 -0
  260. package/dist/models/store-product-factors-response-class.d.ts +25 -0
  261. package/dist/models/store-product-factors-response-class.js +15 -0
  262. package/dist/models/suspend-policy-request-dto.d.ts +24 -0
  263. package/dist/models/suspend-policy-request-dto.js +15 -0
  264. package/dist/models/suspend-policy-response-class.d.ts +25 -0
  265. package/dist/models/suspend-policy-response-class.js +15 -0
  266. package/dist/models/swap-premium-formulas-order-request-dto.d.ts +30 -0
  267. package/dist/models/swap-premium-formulas-order-request-dto.js +15 -0
  268. package/dist/models/terminate-policy-request-dto.d.ts +44 -0
  269. package/dist/models/terminate-policy-request-dto.js +29 -0
  270. package/dist/models/terminate-policy-response-class.d.ts +25 -0
  271. package/dist/models/terminate-policy-response-class.js +15 -0
  272. package/dist/models/timeslice-class.d.ts +62 -0
  273. package/dist/models/timeslice-class.js +15 -0
  274. package/dist/models/update-insured-object-request-dto.d.ts +66 -0
  275. package/dist/models/update-insured-object-request-dto.js +15 -0
  276. package/dist/models/update-lead-request-dto.d.ts +90 -0
  277. package/dist/models/update-lead-request-dto.js +15 -0
  278. package/dist/models/update-lead-response-class.d.ts +25 -0
  279. package/dist/models/update-lead-response-class.js +15 -0
  280. package/dist/models/update-named-range-request-dto.d.ts +36 -0
  281. package/dist/models/update-named-range-request-dto.js +15 -0
  282. package/dist/models/update-named-range-response-class.d.ts +25 -0
  283. package/dist/models/update-named-range-response-class.js +15 -0
  284. package/dist/models/update-policy-request-dto.d.ts +76 -0
  285. package/dist/models/update-policy-request-dto.js +23 -0
  286. package/dist/models/update-policy-response-class.d.ts +25 -0
  287. package/dist/models/update-policy-response-class.js +15 -0
  288. package/dist/models/update-premium-formula-request-dto.d.ts +105 -0
  289. package/dist/models/update-premium-formula-request-dto.js +39 -0
  290. package/dist/models/update-premium-formula-response-class.d.ts +25 -0
  291. package/dist/models/update-premium-formula-response-class.js +15 -0
  292. package/dist/models/update-product-field-request-dto.d.ts +143 -0
  293. package/dist/models/update-product-field-request-dto.js +20 -0
  294. package/dist/models/update-product-field-response-class.d.ts +25 -0
  295. package/dist/models/update-product-field-response-class.js +15 -0
  296. package/dist/models/update-product-request-dto.d.ts +42 -0
  297. package/dist/models/update-product-request-dto.js +15 -0
  298. package/dist/models/update-product-response-class.d.ts +25 -0
  299. package/dist/models/update-product-response-class.js +15 -0
  300. package/dist/models/update-product-version-request-dto.d.ts +43 -0
  301. package/dist/models/update-product-version-request-dto.js +22 -0
  302. package/dist/models/update-product-version-response-class.d.ts +25 -0
  303. package/dist/models/update-product-version-response-class.js +15 -0
  304. package/dist/models/uploaded-document-dto.d.ts +24 -0
  305. package/dist/models/uploaded-document-dto.js +15 -0
  306. package/dist/models/validate-product-factors-request-dto.d.ts +31 -0
  307. package/dist/models/validate-product-factors-request-dto.js +15 -0
  308. package/dist/models/withdraw-policy-response-class.d.ts +25 -0
  309. package/dist/models/withdraw-policy-response-class.js +15 -0
  310. package/package.json +2 -2
@@ -0,0 +1,772 @@
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 __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ 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;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * ProductsApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var ProductsApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
101
+ * @summary Create the product
102
+ * @param {CreateProductRequestDto} createProductRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createProduct: function (createProductRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createProductRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createProduct', 'createProductRequestDto', createProductRequestDto);
116
+ localVarPath = "/insuranceservice/v1/products";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProductRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
150
+ * @summary Delete the product
151
+ * @param {number} id
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ deleteProduct: function (id, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'id' is not null or undefined
164
+ (0, common_1.assertParamExists)('deleteProduct', 'id', id);
165
+ localVarPath = "/insuranceservice/v1/products/{id}"
166
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
167
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
173
+ localVarHeaderParameter = {};
174
+ localVarQueryParameter = {};
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
192
+ }
193
+ });
194
+ });
195
+ },
196
+ /**
197
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
198
+ * @summary Retrieve the product
199
+ * @param {string} code Unique identifier for the object.
200
+ * @param {number} id Unique identifier referencing the product.
201
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
+ * @param {string} [expand] Fields to expand response by
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ getProductByCode: function (code, id, slug, authorization, expand, options) {
208
+ if (options === void 0) { options = {}; }
209
+ return __awaiter(_this, void 0, void 0, function () {
210
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
+ return __generator(this, function (_a) {
212
+ switch (_a.label) {
213
+ case 0:
214
+ // verify required parameter 'code' is not null or undefined
215
+ (0, common_1.assertParamExists)('getProductByCode', 'code', code);
216
+ // verify required parameter 'id' is not null or undefined
217
+ (0, common_1.assertParamExists)('getProductByCode', 'id', id);
218
+ // verify required parameter 'slug' is not null or undefined
219
+ (0, common_1.assertParamExists)('getProductByCode', 'slug', slug);
220
+ localVarPath = "/insuranceservice/v1/products/code/{code}"
221
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
222
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
223
+ if (configuration) {
224
+ baseOptions = configuration.baseOptions;
225
+ baseAccessToken = configuration.accessToken;
226
+ }
227
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
228
+ localVarHeaderParameter = {};
229
+ localVarQueryParameter = {};
230
+ // authentication bearer required
231
+ // http bearer authentication required
232
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
233
+ case 1:
234
+ // authentication bearer required
235
+ // http bearer authentication required
236
+ _a.sent();
237
+ if (id !== undefined) {
238
+ localVarQueryParameter['id'] = id;
239
+ }
240
+ if (slug !== undefined) {
241
+ localVarQueryParameter['slug'] = slug;
242
+ }
243
+ if (expand !== undefined) {
244
+ localVarQueryParameter['expand'] = expand;
245
+ }
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
+ }
249
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
250
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
251
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
252
+ return [2 /*return*/, {
253
+ url: (0, common_1.toPathString)(localVarUrlObj),
254
+ options: localVarRequestOptions,
255
+ }];
256
+ }
257
+ });
258
+ });
259
+ },
260
+ /**
261
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
262
+ * @summary Retrieve the product
263
+ * @param {number} id Unique identifier referencing the product.
264
+ * @param {string} code Unique identifier of the product that this object belongs to.
265
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
266
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
267
+ * @param {string} [expand] Fields to expand response by
268
+ * @param {*} [options] Override http request option.
269
+ * @throws {RequiredError}
270
+ */
271
+ getProductByIdentifier: function (id, code, slug, authorization, expand, options) {
272
+ if (options === void 0) { options = {}; }
273
+ return __awaiter(_this, void 0, void 0, function () {
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
275
+ return __generator(this, function (_a) {
276
+ switch (_a.label) {
277
+ case 0:
278
+ // verify required parameter 'id' is not null or undefined
279
+ (0, common_1.assertParamExists)('getProductByIdentifier', 'id', id);
280
+ // verify required parameter 'code' is not null or undefined
281
+ (0, common_1.assertParamExists)('getProductByIdentifier', 'code', code);
282
+ // verify required parameter 'slug' is not null or undefined
283
+ (0, common_1.assertParamExists)('getProductByIdentifier', 'slug', slug);
284
+ localVarPath = "/insuranceservice/v1/products/get-by-identifier";
285
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
286
+ if (configuration) {
287
+ baseOptions = configuration.baseOptions;
288
+ baseAccessToken = configuration.accessToken;
289
+ }
290
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
291
+ localVarHeaderParameter = {};
292
+ localVarQueryParameter = {};
293
+ // authentication bearer required
294
+ // http bearer authentication required
295
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
296
+ case 1:
297
+ // authentication bearer required
298
+ // http bearer authentication required
299
+ _a.sent();
300
+ if (id !== undefined) {
301
+ localVarQueryParameter['id'] = id;
302
+ }
303
+ if (code !== undefined) {
304
+ localVarQueryParameter['code'] = code;
305
+ }
306
+ if (slug !== undefined) {
307
+ localVarQueryParameter['slug'] = slug;
308
+ }
309
+ if (expand !== undefined) {
310
+ localVarQueryParameter['expand'] = expand;
311
+ }
312
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
313
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
314
+ }
315
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
316
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
317
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
318
+ return [2 /*return*/, {
319
+ url: (0, common_1.toPathString)(localVarUrlObj),
320
+ options: localVarRequestOptions,
321
+ }];
322
+ }
323
+ });
324
+ });
325
+ },
326
+ /**
327
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
328
+ * @summary List products
329
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
+ * @param {number} [pageSize] Page size.
331
+ * @param {string} [pageToken] Page token.
332
+ * @param {string} [filter] List filter
333
+ * @param {string} [search] Search query.
334
+ * @param {string} [order] Ordering criteria.
335
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
340
+ if (options === void 0) { options = {}; }
341
+ return __awaiter(_this, void 0, void 0, function () {
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
343
+ return __generator(this, function (_a) {
344
+ switch (_a.label) {
345
+ case 0:
346
+ localVarPath = "/insuranceservice/v1/products";
347
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ baseAccessToken = configuration.accessToken;
351
+ }
352
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
353
+ localVarHeaderParameter = {};
354
+ localVarQueryParameter = {};
355
+ // authentication bearer required
356
+ // http bearer authentication required
357
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
358
+ case 1:
359
+ // authentication bearer required
360
+ // http bearer authentication required
361
+ _a.sent();
362
+ if (pageSize !== undefined) {
363
+ localVarQueryParameter['pageSize'] = pageSize;
364
+ }
365
+ if (pageToken !== undefined) {
366
+ localVarQueryParameter['pageToken'] = pageToken;
367
+ }
368
+ if (filter !== undefined) {
369
+ localVarQueryParameter['filter'] = filter;
370
+ }
371
+ if (search !== undefined) {
372
+ localVarQueryParameter['search'] = search;
373
+ }
374
+ if (order !== undefined) {
375
+ localVarQueryParameter['order'] = order;
376
+ }
377
+ if (expand !== undefined) {
378
+ localVarQueryParameter['expand'] = expand;
379
+ }
380
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
381
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
382
+ }
383
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
384
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
385
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
386
+ return [2 /*return*/, {
387
+ url: (0, common_1.toPathString)(localVarUrlObj),
388
+ options: localVarRequestOptions,
389
+ }];
390
+ }
391
+ });
392
+ });
393
+ },
394
+ /**
395
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
396
+ * @summary Update the product
397
+ * @param {number} id
398
+ * @param {UpdateProductRequestDto} updateProductRequestDto
399
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
400
+ * @param {*} [options] Override http request option.
401
+ * @throws {RequiredError}
402
+ */
403
+ updateProduct: function (id, updateProductRequestDto, authorization, options) {
404
+ if (options === void 0) { options = {}; }
405
+ return __awaiter(_this, void 0, void 0, function () {
406
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
407
+ return __generator(this, function (_a) {
408
+ switch (_a.label) {
409
+ case 0:
410
+ // verify required parameter 'id' is not null or undefined
411
+ (0, common_1.assertParamExists)('updateProduct', 'id', id);
412
+ // verify required parameter 'updateProductRequestDto' is not null or undefined
413
+ (0, common_1.assertParamExists)('updateProduct', 'updateProductRequestDto', updateProductRequestDto);
414
+ localVarPath = "/insuranceservice/v1/products/{id}"
415
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
416
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
417
+ if (configuration) {
418
+ baseOptions = configuration.baseOptions;
419
+ baseAccessToken = configuration.accessToken;
420
+ }
421
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
422
+ localVarHeaderParameter = {};
423
+ localVarQueryParameter = {};
424
+ // authentication bearer required
425
+ // http bearer authentication required
426
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
427
+ case 1:
428
+ // authentication bearer required
429
+ // http bearer authentication required
430
+ _a.sent();
431
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
432
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
433
+ }
434
+ localVarHeaderParameter['Content-Type'] = 'application/json';
435
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
436
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
437
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
438
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductRequestDto, localVarRequestOptions, configuration);
439
+ return [2 /*return*/, {
440
+ url: (0, common_1.toPathString)(localVarUrlObj),
441
+ options: localVarRequestOptions,
442
+ }];
443
+ }
444
+ });
445
+ });
446
+ },
447
+ };
448
+ };
449
+ exports.ProductsApiAxiosParamCreator = ProductsApiAxiosParamCreator;
450
+ /**
451
+ * ProductsApi - functional programming interface
452
+ * @export
453
+ */
454
+ var ProductsApiFp = function (configuration) {
455
+ var localVarAxiosParamCreator = (0, exports.ProductsApiAxiosParamCreator)(configuration);
456
+ return {
457
+ /**
458
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
459
+ * @summary Create the product
460
+ * @param {CreateProductRequestDto} createProductRequestDto
461
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ createProduct: function (createProductRequestDto, authorization, options) {
466
+ return __awaiter(this, void 0, void 0, function () {
467
+ var localVarAxiosArgs;
468
+ return __generator(this, function (_a) {
469
+ switch (_a.label) {
470
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProduct(createProductRequestDto, authorization, options)];
471
+ case 1:
472
+ localVarAxiosArgs = _a.sent();
473
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
474
+ }
475
+ });
476
+ });
477
+ },
478
+ /**
479
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
480
+ * @summary Delete the product
481
+ * @param {number} id
482
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ deleteProduct: function (id, authorization, options) {
487
+ return __awaiter(this, void 0, void 0, function () {
488
+ var localVarAxiosArgs;
489
+ return __generator(this, function (_a) {
490
+ switch (_a.label) {
491
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteProduct(id, authorization, options)];
492
+ case 1:
493
+ localVarAxiosArgs = _a.sent();
494
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
495
+ }
496
+ });
497
+ });
498
+ },
499
+ /**
500
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
501
+ * @summary Retrieve the product
502
+ * @param {string} code Unique identifier for the object.
503
+ * @param {number} id Unique identifier referencing the product.
504
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
505
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
506
+ * @param {string} [expand] Fields to expand response by
507
+ * @param {*} [options] Override http request option.
508
+ * @throws {RequiredError}
509
+ */
510
+ getProductByCode: function (code, id, slug, authorization, expand, options) {
511
+ return __awaiter(this, void 0, void 0, function () {
512
+ var localVarAxiosArgs;
513
+ return __generator(this, function (_a) {
514
+ switch (_a.label) {
515
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByCode(code, id, slug, authorization, expand, options)];
516
+ case 1:
517
+ localVarAxiosArgs = _a.sent();
518
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
519
+ }
520
+ });
521
+ });
522
+ },
523
+ /**
524
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
525
+ * @summary Retrieve the product
526
+ * @param {number} id Unique identifier referencing the product.
527
+ * @param {string} code Unique identifier of the product that this object belongs to.
528
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
529
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
530
+ * @param {string} [expand] Fields to expand response by
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ getProductByIdentifier: function (id, code, slug, authorization, expand, options) {
535
+ return __awaiter(this, void 0, void 0, function () {
536
+ var localVarAxiosArgs;
537
+ return __generator(this, function (_a) {
538
+ switch (_a.label) {
539
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductByIdentifier(id, code, slug, authorization, expand, options)];
540
+ case 1:
541
+ localVarAxiosArgs = _a.sent();
542
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
543
+ }
544
+ });
545
+ });
546
+ },
547
+ /**
548
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
549
+ * @summary List products
550
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
551
+ * @param {number} [pageSize] Page size.
552
+ * @param {string} [pageToken] Page token.
553
+ * @param {string} [filter] List filter
554
+ * @param {string} [search] Search query.
555
+ * @param {string} [order] Ordering criteria.
556
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ */
560
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
561
+ return __awaiter(this, void 0, void 0, function () {
562
+ var localVarAxiosArgs;
563
+ return __generator(this, function (_a) {
564
+ switch (_a.label) {
565
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options)];
566
+ case 1:
567
+ localVarAxiosArgs = _a.sent();
568
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
569
+ }
570
+ });
571
+ });
572
+ },
573
+ /**
574
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
575
+ * @summary Update the product
576
+ * @param {number} id
577
+ * @param {UpdateProductRequestDto} updateProductRequestDto
578
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ */
582
+ updateProduct: function (id, updateProductRequestDto, authorization, options) {
583
+ return __awaiter(this, void 0, void 0, function () {
584
+ var localVarAxiosArgs;
585
+ return __generator(this, function (_a) {
586
+ switch (_a.label) {
587
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProduct(id, updateProductRequestDto, authorization, options)];
588
+ case 1:
589
+ localVarAxiosArgs = _a.sent();
590
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
591
+ }
592
+ });
593
+ });
594
+ },
595
+ };
596
+ };
597
+ exports.ProductsApiFp = ProductsApiFp;
598
+ /**
599
+ * ProductsApi - factory interface
600
+ * @export
601
+ */
602
+ var ProductsApiFactory = function (configuration, basePath, axios) {
603
+ var localVarFp = (0, exports.ProductsApiFp)(configuration);
604
+ return {
605
+ /**
606
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
607
+ * @summary Create the product
608
+ * @param {CreateProductRequestDto} createProductRequestDto
609
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ */
613
+ createProduct: function (createProductRequestDto, authorization, options) {
614
+ return localVarFp.createProduct(createProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
615
+ },
616
+ /**
617
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
618
+ * @summary Delete the product
619
+ * @param {number} id
620
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ deleteProduct: function (id, authorization, options) {
625
+ return localVarFp.deleteProduct(id, authorization, options).then(function (request) { return request(axios, basePath); });
626
+ },
627
+ /**
628
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
629
+ * @summary Retrieve the product
630
+ * @param {string} code Unique identifier for the object.
631
+ * @param {number} id Unique identifier referencing the product.
632
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
633
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
634
+ * @param {string} [expand] Fields to expand response by
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ */
638
+ getProductByCode: function (code, id, slug, authorization, expand, options) {
639
+ return localVarFp.getProductByCode(code, id, slug, authorization, expand, options).then(function (request) { return request(axios, basePath); });
640
+ },
641
+ /**
642
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
643
+ * @summary Retrieve the product
644
+ * @param {number} id Unique identifier referencing the product.
645
+ * @param {string} code Unique identifier of the product that this object belongs to.
646
+ * @param {string} slug A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
647
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
648
+ * @param {string} [expand] Fields to expand response by
649
+ * @param {*} [options] Override http request option.
650
+ * @throws {RequiredError}
651
+ */
652
+ getProductByIdentifier: function (id, code, slug, authorization, expand, options) {
653
+ return localVarFp.getProductByIdentifier(id, code, slug, authorization, expand, options).then(function (request) { return request(axios, basePath); });
654
+ },
655
+ /**
656
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
657
+ * @summary List products
658
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
659
+ * @param {number} [pageSize] Page size.
660
+ * @param {string} [pageToken] Page token.
661
+ * @param {string} [filter] List filter
662
+ * @param {string} [search] Search query.
663
+ * @param {string} [order] Ordering criteria.
664
+ * @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions &amp; insuredObjectTypes will be an empty array.
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ listProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
669
+ return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
670
+ },
671
+ /**
672
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
673
+ * @summary Update the product
674
+ * @param {number} id
675
+ * @param {UpdateProductRequestDto} updateProductRequestDto
676
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
677
+ * @param {*} [options] Override http request option.
678
+ * @throws {RequiredError}
679
+ */
680
+ updateProduct: function (id, updateProductRequestDto, authorization, options) {
681
+ return localVarFp.updateProduct(id, updateProductRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
682
+ },
683
+ };
684
+ };
685
+ exports.ProductsApiFactory = ProductsApiFactory;
686
+ /**
687
+ * ProductsApi - object-oriented interface
688
+ * @export
689
+ * @class ProductsApi
690
+ * @extends {BaseAPI}
691
+ */
692
+ var ProductsApi = /** @class */ (function (_super) {
693
+ __extends(ProductsApi, _super);
694
+ function ProductsApi() {
695
+ return _super !== null && _super.apply(this, arguments) || this;
696
+ }
697
+ /**
698
+ * Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
699
+ * @summary Create the product
700
+ * @param {ProductsApiCreateProductRequest} requestParameters Request parameters.
701
+ * @param {*} [options] Override http request option.
702
+ * @throws {RequiredError}
703
+ * @memberof ProductsApi
704
+ */
705
+ ProductsApi.prototype.createProduct = function (requestParameters, options) {
706
+ var _this = this;
707
+ return (0, exports.ProductsApiFp)(this.configuration).createProduct(requestParameters.createProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
708
+ };
709
+ /**
710
+ * Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
711
+ * @summary Delete the product
712
+ * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters.
713
+ * @param {*} [options] Override http request option.
714
+ * @throws {RequiredError}
715
+ * @memberof ProductsApi
716
+ */
717
+ ProductsApi.prototype.deleteProduct = function (requestParameters, options) {
718
+ var _this = this;
719
+ return (0, exports.ProductsApiFp)(this.configuration).deleteProduct(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
720
+ };
721
+ /**
722
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
723
+ * @summary Retrieve the product
724
+ * @param {ProductsApiGetProductByCodeRequest} requestParameters Request parameters.
725
+ * @param {*} [options] Override http request option.
726
+ * @throws {RequiredError}
727
+ * @memberof ProductsApi
728
+ */
729
+ ProductsApi.prototype.getProductByCode = function (requestParameters, options) {
730
+ var _this = this;
731
+ return (0, exports.ProductsApiFp)(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
732
+ };
733
+ /**
734
+ * Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
735
+ * @summary Retrieve the product
736
+ * @param {ProductsApiGetProductByIdentifierRequest} requestParameters Request parameters.
737
+ * @param {*} [options] Override http request option.
738
+ * @throws {RequiredError}
739
+ * @memberof ProductsApi
740
+ */
741
+ ProductsApi.prototype.getProductByIdentifier = function (requestParameters, options) {
742
+ var _this = this;
743
+ return (0, exports.ProductsApiFp)(this.configuration).getProductByIdentifier(requestParameters.id, requestParameters.code, requestParameters.slug, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
744
+ };
745
+ /**
746
+ * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
747
+ * @summary List products
748
+ * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
749
+ * @param {*} [options] Override http request option.
750
+ * @throws {RequiredError}
751
+ * @memberof ProductsApi
752
+ */
753
+ ProductsApi.prototype.listProducts = function (requestParameters, options) {
754
+ var _this = this;
755
+ if (requestParameters === void 0) { requestParameters = {}; }
756
+ return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
757
+ };
758
+ /**
759
+ * Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
760
+ * @summary Update the product
761
+ * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters.
762
+ * @param {*} [options] Override http request option.
763
+ * @throws {RequiredError}
764
+ * @memberof ProductsApi
765
+ */
766
+ ProductsApi.prototype.updateProduct = function (requestParameters, options) {
767
+ var _this = this;
768
+ return (0, exports.ProductsApiFp)(this.configuration).updateProduct(requestParameters.id, requestParameters.updateProductRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
769
+ };
770
+ return ProductsApi;
771
+ }(base_1.BaseAPI));
772
+ exports.ProductsApi = ProductsApi;