@emilgroup/insurance-sdk-node 1.2.0 → 1.4.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 (345) hide show
  1. package/.openapi-generator/FILES +18 -5
  2. package/README.md +2 -2
  3. package/api/insured-object-types-api.ts +29 -29
  4. package/api/insured-objects-api.ts +44 -33
  5. package/api/leads-api.ts +187 -7
  6. package/api/policies-api.ts +276 -41
  7. package/api/premium-formulas-api.ts +669 -0
  8. package/api/product-factors-api.ts +889 -0
  9. package/api/product-fields-api.ts +843 -0
  10. package/api/product-versions-api.ts +301 -0
  11. package/api/products-api.ts +201 -2665
  12. package/api.ts +9 -1
  13. package/base.ts +23 -33
  14. package/common.ts +62 -1
  15. package/configuration.ts +1 -1
  16. package/dist/api/insured-object-types-api.d.ts +29 -29
  17. package/dist/api/insured-object-types-api.js +25 -25
  18. package/dist/api/insured-objects-api.d.ts +38 -29
  19. package/dist/api/insured-objects-api.js +31 -27
  20. package/dist/api/leads-api.d.ts +114 -10
  21. package/dist/api/leads-api.js +125 -2
  22. package/dist/api/policies-api.d.ts +171 -41
  23. package/dist/api/policies-api.js +231 -34
  24. package/dist/api/premium-formulas-api.d.ts +376 -0
  25. package/dist/api/premium-formulas-api.js +634 -0
  26. package/dist/api/product-factors-api.d.ts +493 -0
  27. package/dist/api/product-factors-api.js +788 -0
  28. package/dist/api/product-fields-api.d.ts +477 -0
  29. package/dist/api/product-fields-api.js +757 -0
  30. package/dist/api/product-versions-api.d.ts +171 -0
  31. package/dist/api/product-versions-api.js +334 -0
  32. package/dist/api/products-api.d.ts +25 -1388
  33. package/dist/api/products-api.js +137 -2118
  34. package/dist/api.d.ts +5 -1
  35. package/dist/api.js +5 -1
  36. package/dist/base.d.ts +2 -3
  37. package/dist/base.js +20 -22
  38. package/dist/common.d.ts +27 -1
  39. package/dist/common.js +36 -3
  40. package/dist/configuration.d.ts +1 -1
  41. package/dist/configuration.js +1 -1
  42. package/dist/index.d.ts +1 -1
  43. package/dist/index.js +1 -1
  44. package/dist/models/calculate-custom-premium-request-dto.d.ts +4 -4
  45. package/dist/models/calculate-custom-premium-request-dto.js +1 -1
  46. package/dist/models/calculate-premium-request-dto.d.ts +9 -9
  47. package/dist/models/calculate-premium-request-dto.js +1 -1
  48. package/dist/models/create-account-request-dto.d.ts +26 -13
  49. package/dist/models/create-account-request-dto.js +8 -1
  50. package/dist/models/create-bank-account-request-dto.d.ts +3 -3
  51. package/dist/models/create-bank-account-request-dto.js +1 -1
  52. package/dist/models/create-custom-application-request-dto.d.ts +5 -5
  53. package/dist/models/create-custom-application-request-dto.js +1 -1
  54. package/dist/models/create-dummy-policy-request-dto.d.ts +4 -4
  55. package/dist/models/create-dummy-policy-request-dto.js +1 -1
  56. package/dist/models/create-insured-object-request-dto.d.ts +5 -5
  57. package/dist/models/create-insured-object-request-dto.js +1 -1
  58. package/dist/models/create-insured-object-response-class.d.ts +5 -5
  59. package/dist/models/create-insured-object-response-class.js +1 -1
  60. package/dist/models/create-lead-request-dto.d.ts +23 -23
  61. package/dist/models/create-lead-request-dto.js +1 -1
  62. package/dist/models/create-lead-response-class.d.ts +25 -0
  63. package/dist/models/{grpc-policy-object-dto.js → create-lead-response-class.js} +1 -1
  64. package/dist/models/create-policy-request-dto.d.ts +19 -7
  65. package/dist/models/create-policy-request-dto.js +1 -1
  66. package/dist/models/create-policy-response-class.d.ts +1 -1
  67. package/dist/models/create-policy-response-class.js +1 -1
  68. package/dist/models/create-premium-formula-request-dto.d.ts +10 -9
  69. package/dist/models/create-premium-formula-request-dto.js +3 -2
  70. package/dist/models/create-premium-formula-response-class.d.ts +2 -2
  71. package/dist/models/create-premium-formula-response-class.js +1 -1
  72. package/dist/models/create-product-field-request-dto.d.ts +2 -2
  73. package/dist/models/create-product-field-request-dto.js +1 -1
  74. package/dist/models/create-product-field-response-class.d.ts +2 -2
  75. package/dist/models/create-product-field-response-class.js +1 -1
  76. package/dist/models/create-product-request-dto.d.ts +6 -6
  77. package/dist/models/create-product-request-dto.js +1 -1
  78. package/dist/models/create-product-response-class.d.ts +1 -1
  79. package/dist/models/create-product-response-class.js +1 -1
  80. package/dist/models/csv-product-factor-dto.d.ts +6 -6
  81. package/dist/models/csv-product-factor-dto.js +1 -1
  82. package/dist/models/delete-request-dto.d.ts +2 -2
  83. package/dist/models/delete-request-dto.js +1 -1
  84. package/dist/models/{get-insured-object-request-dto.d.ts → delete-response-class.d.ts} +7 -7
  85. package/dist/models/{to-grpc-create-policy-request-dto.js → delete-response-class.js} +1 -1
  86. package/dist/models/get-insured-object-response-class.d.ts +2 -2
  87. package/dist/models/get-insured-object-response-class.js +1 -1
  88. package/dist/models/get-lead-response-class.d.ts +25 -0
  89. package/dist/models/{grpc-update-policy-request-dto.js → get-lead-response-class.js} +1 -1
  90. package/dist/models/{grpc-policy-object-dto.d.ts → get-policy-data-by-date-request-dto.d.ts} +11 -11
  91. package/dist/models/{get-insured-object-request-dto.js → get-policy-data-by-date-request-dto.js} +1 -1
  92. package/dist/models/get-policy-request-dto.d.ts +3 -3
  93. package/dist/models/get-policy-request-dto.js +1 -1
  94. package/dist/models/get-policy-response-class.d.ts +2 -2
  95. package/dist/models/get-policy-response-class.js +1 -1
  96. package/dist/models/get-premium-formula-request-dto.d.ts +2 -2
  97. package/dist/models/get-premium-formula-request-dto.js +1 -1
  98. package/dist/models/get-premium-formula-response-class.d.ts +2 -2
  99. package/dist/models/get-premium-formula-response-class.js +1 -1
  100. package/dist/models/get-product-factor-response-class.d.ts +2 -2
  101. package/dist/models/get-product-factor-response-class.js +1 -1
  102. package/dist/models/get-product-factor-value-request-dto.d.ts +1 -1
  103. package/dist/models/get-product-factor-value-request-dto.js +1 -1
  104. package/dist/models/get-product-factor-value-response-class.d.ts +2 -2
  105. package/dist/models/get-product-factor-value-response-class.js +1 -1
  106. package/dist/models/get-product-factors-for-version-request-dto.d.ts +4 -4
  107. package/dist/models/get-product-factors-for-version-request-dto.js +1 -1
  108. package/dist/models/get-product-factors-for-version-response-class.d.ts +1 -1
  109. package/dist/models/get-product-factors-for-version-response-class.js +1 -1
  110. package/dist/models/get-product-field-request-dto.d.ts +2 -2
  111. package/dist/models/get-product-field-request-dto.js +1 -1
  112. package/dist/models/get-product-field-response-class.d.ts +2 -2
  113. package/dist/models/get-product-field-response-class.js +1 -1
  114. package/dist/models/get-product-request-dto.d.ts +1 -1
  115. package/dist/models/get-product-request-dto.js +1 -1
  116. package/dist/models/get-product-response-class.d.ts +1 -1
  117. package/dist/models/get-product-response-class.js +1 -1
  118. package/dist/models/get-product-version-request-dto.d.ts +2 -2
  119. package/dist/models/get-product-version-request-dto.js +1 -1
  120. package/dist/models/get-product-version-response-class.d.ts +1 -1
  121. package/dist/models/get-product-version-response-class.js +1 -1
  122. package/dist/models/grouped-product-factor-class.d.ts +4 -4
  123. package/dist/models/grouped-product-factor-class.js +1 -1
  124. package/dist/models/grouped-product-factor-value-class.d.ts +10 -4
  125. package/dist/models/grouped-product-factor-value-class.js +1 -1
  126. package/dist/models/grouped-product-factors-response-class.d.ts +1 -1
  127. package/dist/models/grouped-product-factors-response-class.js +1 -1
  128. package/dist/models/index.d.ts +14 -5
  129. package/dist/models/index.js +14 -5
  130. package/dist/models/insured-object-class.d.ts +12 -12
  131. package/dist/models/insured-object-class.js +1 -1
  132. package/dist/models/insured-object-type-class.d.ts +6 -6
  133. package/dist/models/insured-object-type-class.js +1 -1
  134. package/dist/models/lead-bank-account-class.d.ts +30 -0
  135. package/dist/models/lead-bank-account-class.js +15 -0
  136. package/dist/models/lead-class.d.ts +95 -0
  137. package/dist/models/lead-class.js +15 -0
  138. package/dist/models/list-insured-object-types-response-class.d.ts +3 -3
  139. package/dist/models/list-insured-object-types-response-class.js +1 -1
  140. package/dist/models/list-insured-objects-response-class.d.ts +5 -4
  141. package/dist/models/list-insured-objects-response-class.js +1 -1
  142. package/dist/models/list-leads-response-class.d.ts +31 -0
  143. package/dist/models/list-leads-response-class.js +15 -0
  144. package/dist/models/list-policies-response-class.d.ts +2 -2
  145. package/dist/models/list-policies-response-class.js +1 -1
  146. package/dist/models/list-premium-formulas-response-class.d.ts +3 -3
  147. package/dist/models/list-premium-formulas-response-class.js +1 -1
  148. package/dist/models/list-product-factors-response-class.d.ts +7 -7
  149. package/dist/models/list-product-factors-response-class.js +1 -1
  150. package/dist/models/list-product-field-types-response-class.d.ts +6 -5
  151. package/dist/models/list-product-field-types-response-class.js +1 -1
  152. package/dist/models/list-product-fields-response-class.d.ts +3 -3
  153. package/dist/models/list-product-fields-response-class.js +1 -1
  154. package/dist/models/list-products-response-class.d.ts +3 -3
  155. package/dist/models/list-products-response-class.js +1 -1
  156. package/dist/models/list-request-dto.d.ts +6 -6
  157. package/dist/models/list-request-dto.js +1 -1
  158. package/dist/models/omit-type-class.d.ts +60 -0
  159. package/dist/models/omit-type-class.js +15 -0
  160. package/dist/models/policy-class.d.ts +32 -14
  161. package/dist/models/policy-class.js +1 -1
  162. package/dist/models/policy-object-class.d.ts +5 -5
  163. package/dist/models/policy-object-class.js +1 -1
  164. package/dist/models/policy-object-dto.d.ts +3 -3
  165. package/dist/models/policy-object-dto.js +1 -1
  166. package/dist/models/policy-premium-class.d.ts +5 -5
  167. package/dist/models/policy-premium-class.js +1 -1
  168. package/dist/models/policy-premium-item-class.d.ts +7 -7
  169. package/dist/models/policy-premium-item-class.js +1 -1
  170. package/dist/models/policy-version-class.d.ts +6 -6
  171. package/dist/models/policy-version-class.js +1 -1
  172. package/dist/models/premium-formula-class.d.ts +10 -17
  173. package/dist/models/premium-formula-class.js +1 -1
  174. package/dist/models/premium-override-dto.d.ts +7 -6
  175. package/dist/models/premium-override-dto.js +3 -2
  176. package/dist/models/premium-override-request-dto.d.ts +2 -2
  177. package/dist/models/premium-override-request-dto.js +1 -1
  178. package/dist/models/product-class.d.ts +10 -10
  179. package/dist/models/product-class.js +1 -1
  180. package/dist/models/product-factor-class.d.ts +9 -9
  181. package/dist/models/product-factor-class.js +1 -1
  182. package/dist/models/product-factor-value-class.d.ts +8 -28
  183. package/dist/models/product-factor-value-class.js +1 -1
  184. package/dist/models/product-field-class.d.ts +10 -10
  185. package/dist/models/product-field-class.js +1 -1
  186. package/dist/models/product-field-type-class.d.ts +48 -0
  187. package/dist/models/product-field-type-class.js +15 -0
  188. package/dist/models/product-version-class.d.ts +15 -8
  189. package/dist/models/product-version-class.js +8 -1
  190. package/dist/models/shared-product-field-class.d.ts +114 -0
  191. package/dist/models/shared-product-field-class.js +15 -0
  192. package/dist/models/shared-update-premium-formula-request-dto.d.ts +72 -0
  193. package/dist/models/{create-claim-request-dto.js → shared-update-premium-formula-request-dto.js} +10 -9
  194. package/dist/models/store-product-factors-request-dto.d.ts +2 -2
  195. package/dist/models/store-product-factors-request-dto.js +1 -1
  196. package/dist/models/store-product-factors-response-class.d.ts +1 -1
  197. package/dist/models/store-product-factors-response-class.js +1 -1
  198. package/dist/models/suspend-policy-request-dto.d.ts +24 -0
  199. package/dist/models/suspend-policy-request-dto.js +15 -0
  200. package/dist/models/suspend-policy-response-class.d.ts +25 -0
  201. package/dist/models/suspend-policy-response-class.js +15 -0
  202. package/dist/models/terminate-policy-request-dto.d.ts +3 -3
  203. package/dist/models/terminate-policy-request-dto.js +1 -1
  204. package/dist/models/terminate-policy-response-class.d.ts +1 -1
  205. package/dist/models/terminate-policy-response-class.js +1 -1
  206. package/dist/models/timeslice-class.d.ts +8 -8
  207. package/dist/models/timeslice-class.js +1 -1
  208. package/dist/models/update-insured-object-request-dto.d.ts +6 -6
  209. package/dist/models/update-insured-object-request-dto.js +1 -1
  210. package/dist/models/update-lead-request-dto.d.ts +8 -14
  211. package/dist/models/update-lead-request-dto.js +1 -1
  212. package/dist/models/update-lead-response-class.d.ts +25 -0
  213. package/dist/models/update-lead-response-class.js +15 -0
  214. package/dist/models/update-policy-request-dto.d.ts +24 -5
  215. package/dist/models/update-policy-request-dto.js +8 -1
  216. package/dist/models/update-policy-response-class.d.ts +1 -1
  217. package/dist/models/update-policy-response-class.js +1 -1
  218. package/dist/models/update-premium-formula-request-dto.d.ts +10 -15
  219. package/dist/models/update-premium-formula-request-dto.js +3 -2
  220. package/dist/models/update-premium-formula-response-class.d.ts +2 -2
  221. package/dist/models/update-premium-formula-response-class.js +1 -1
  222. package/dist/models/update-product-field-request-dto.d.ts +15 -15
  223. package/dist/models/update-product-field-request-dto.js +1 -1
  224. package/dist/models/update-product-field-response-class.d.ts +2 -2
  225. package/dist/models/update-product-field-response-class.js +1 -1
  226. package/dist/models/update-product-request-dto.d.ts +5 -5
  227. package/dist/models/update-product-request-dto.js +1 -1
  228. package/dist/models/update-product-response-class.d.ts +1 -1
  229. package/dist/models/update-product-response-class.js +1 -1
  230. package/dist/models/update-product-version-request-dto.d.ts +5 -5
  231. package/dist/models/update-product-version-request-dto.js +1 -1
  232. package/dist/models/update-product-version-response-class.d.ts +1 -1
  233. package/dist/models/update-product-version-response-class.js +1 -1
  234. package/dist/models/uploaded-document-dto.d.ts +2 -2
  235. package/dist/models/uploaded-document-dto.js +1 -1
  236. package/dist/models/validate-product-factors-request-dto.d.ts +2 -2
  237. package/dist/models/validate-product-factors-request-dto.js +1 -1
  238. package/dist/models/withdraw-policy-response-class.d.ts +1 -1
  239. package/dist/models/withdraw-policy-response-class.js +1 -1
  240. package/index.ts +1 -1
  241. package/models/calculate-custom-premium-request-dto.ts +3 -3
  242. package/models/calculate-premium-request-dto.ts +9 -9
  243. package/models/create-account-request-dto.ts +29 -13
  244. package/models/create-bank-account-request-dto.ts +3 -3
  245. package/models/create-custom-application-request-dto.ts +4 -4
  246. package/models/create-dummy-policy-request-dto.ts +4 -4
  247. package/models/create-insured-object-request-dto.ts +5 -5
  248. package/models/create-insured-object-response-class.ts +5 -5
  249. package/models/create-lead-request-dto.ts +22 -22
  250. package/models/create-lead-response-class.ts +31 -0
  251. package/models/create-policy-request-dto.ts +19 -7
  252. package/models/create-policy-response-class.ts +1 -1
  253. package/models/create-premium-formula-request-dto.ts +9 -8
  254. package/models/create-premium-formula-response-class.ts +2 -2
  255. package/models/create-product-field-request-dto.ts +1 -1
  256. package/models/create-product-field-response-class.ts +2 -2
  257. package/models/create-product-request-dto.ts +5 -5
  258. package/models/create-product-response-class.ts +1 -1
  259. package/models/csv-product-factor-dto.ts +6 -6
  260. package/models/delete-request-dto.ts +2 -2
  261. package/models/{get-insured-object-request-dto.ts → delete-response-class.ts} +7 -7
  262. package/models/get-insured-object-response-class.ts +2 -2
  263. package/models/get-lead-response-class.ts +31 -0
  264. package/models/{grpc-policy-object-dto.ts → get-policy-data-by-date-request-dto.ts} +11 -11
  265. package/models/get-policy-request-dto.ts +3 -3
  266. package/models/get-policy-response-class.ts +2 -2
  267. package/models/get-premium-formula-request-dto.ts +2 -2
  268. package/models/get-premium-formula-response-class.ts +2 -2
  269. package/models/get-product-factor-response-class.ts +2 -2
  270. package/models/get-product-factor-value-request-dto.ts +1 -1
  271. package/models/get-product-factor-value-response-class.ts +2 -2
  272. package/models/get-product-factors-for-version-request-dto.ts +4 -4
  273. package/models/get-product-factors-for-version-response-class.ts +1 -1
  274. package/models/get-product-field-request-dto.ts +2 -2
  275. package/models/get-product-field-response-class.ts +2 -2
  276. package/models/get-product-request-dto.ts +1 -1
  277. package/models/get-product-response-class.ts +1 -1
  278. package/models/get-product-version-request-dto.ts +2 -2
  279. package/models/get-product-version-response-class.ts +1 -1
  280. package/models/grouped-product-factor-class.ts +4 -4
  281. package/models/grouped-product-factor-value-class.ts +10 -4
  282. package/models/grouped-product-factors-response-class.ts +1 -1
  283. package/models/index.ts +14 -5
  284. package/models/insured-object-class.ts +12 -12
  285. package/models/insured-object-type-class.ts +6 -6
  286. package/models/lead-bank-account-class.ts +36 -0
  287. package/models/lead-class.ts +101 -0
  288. package/models/list-insured-object-types-response-class.ts +3 -3
  289. package/models/list-insured-objects-response-class.ts +5 -4
  290. package/models/list-leads-response-class.ts +37 -0
  291. package/models/list-policies-response-class.ts +2 -2
  292. package/models/list-premium-formulas-response-class.ts +3 -3
  293. package/models/list-product-factors-response-class.ts +7 -7
  294. package/models/list-product-field-types-response-class.ts +6 -5
  295. package/models/list-product-fields-response-class.ts +3 -3
  296. package/models/list-products-response-class.ts +3 -3
  297. package/models/list-request-dto.ts +6 -6
  298. package/models/omit-type-class.ts +66 -0
  299. package/models/policy-class.ts +32 -14
  300. package/models/policy-object-class.ts +5 -5
  301. package/models/policy-object-dto.ts +3 -3
  302. package/models/policy-premium-class.ts +5 -5
  303. package/models/policy-premium-item-class.ts +7 -7
  304. package/models/policy-version-class.ts +6 -6
  305. package/models/premium-formula-class.ts +10 -17
  306. package/models/premium-override-dto.ts +6 -5
  307. package/models/premium-override-request-dto.ts +2 -2
  308. package/models/product-class.ts +10 -10
  309. package/models/product-factor-class.ts +9 -9
  310. package/models/product-factor-value-class.ts +8 -28
  311. package/models/product-field-class.ts +10 -10
  312. package/models/product-field-type-class.ts +54 -0
  313. package/models/product-version-class.ts +18 -8
  314. package/models/shared-product-field-class.ts +120 -0
  315. package/models/shared-update-premium-formula-request-dto.ts +82 -0
  316. package/models/store-product-factors-request-dto.ts +2 -2
  317. package/models/store-product-factors-response-class.ts +1 -1
  318. package/models/suspend-policy-request-dto.ts +30 -0
  319. package/models/suspend-policy-response-class.ts +31 -0
  320. package/models/terminate-policy-request-dto.ts +3 -3
  321. package/models/terminate-policy-response-class.ts +1 -1
  322. package/models/timeslice-class.ts +8 -8
  323. package/models/update-insured-object-request-dto.ts +6 -6
  324. package/models/update-lead-request-dto.ts +7 -13
  325. package/models/update-lead-response-class.ts +31 -0
  326. package/models/update-policy-request-dto.ts +27 -5
  327. package/models/update-policy-response-class.ts +1 -1
  328. package/models/update-premium-formula-request-dto.ts +9 -14
  329. package/models/update-premium-formula-response-class.ts +2 -2
  330. package/models/update-product-field-request-dto.ts +14 -14
  331. package/models/update-product-field-response-class.ts +2 -2
  332. package/models/update-product-request-dto.ts +5 -5
  333. package/models/update-product-response-class.ts +1 -1
  334. package/models/update-product-version-request-dto.ts +4 -4
  335. package/models/update-product-version-response-class.ts +1 -1
  336. package/models/uploaded-document-dto.ts +2 -2
  337. package/models/validate-product-factors-request-dto.ts +2 -2
  338. package/models/withdraw-policy-response-class.ts +1 -1
  339. package/package.json +2 -3
  340. package/dist/models/create-claim-request-dto.d.ts +0 -83
  341. package/dist/models/grpc-update-policy-request-dto.d.ts +0 -50
  342. package/dist/models/to-grpc-create-policy-request-dto.d.ts +0 -44
  343. package/models/create-claim-request-dto.ts +0 -93
  344. package/models/grpc-update-policy-request-dto.ts +0 -56
  345. package/models/to-grpc-create-policy-request-dto.ts +0 -50
@@ -0,0 +1,889 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { GetProductFactorResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { GetProductFactorValueResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetProductFactorsForVersionResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GroupedProductFactorsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListProductFactorsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { StoreProductFactorsResponseClass } from '../models';
35
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * ProductFactorsApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const ProductFactorsApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
47
+ * @summary Retrieve the product factor
48
+ * @param {number} id
49
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
50
+ * @param {string} [authorization] Bearer Token
51
+ * @param {string} [expand] Fields to expand response by
52
+ * @param {*} [options] Override http request option.
53
+ * @throws {RequiredError}
54
+ */
55
+ getProductFactor: async (id: number, id2: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
56
+ // verify required parameter 'id' is not null or undefined
57
+ assertParamExists('getProductFactor', 'id', id)
58
+ // verify required parameter 'id2' is not null or undefined
59
+ assertParamExists('getProductFactor', 'id2', id2)
60
+ const localVarPath = `/insuranceservice/v1/product-factors/{id}`
61
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
62
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
+ let baseOptions;
65
+ let baseAccessToken;
66
+ if (configuration) {
67
+ baseOptions = configuration.baseOptions;
68
+ baseAccessToken = configuration.accessToken;
69
+ }
70
+
71
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
72
+ const localVarHeaderParameter = {} as any;
73
+ const localVarQueryParameter = {} as any;
74
+
75
+ // authentication bearer required
76
+ // http bearer authentication required
77
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
78
+
79
+ if (id2 !== undefined) {
80
+ localVarQueryParameter['id'] = id2;
81
+ }
82
+
83
+ if (expand !== undefined) {
84
+ localVarQueryParameter['expand'] = expand;
85
+ }
86
+
87
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
88
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
89
+ }
90
+
91
+
92
+
93
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
94
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
95
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
96
+
97
+ return {
98
+ url: toPathString(localVarUrlObj),
99
+ options: localVarRequestOptions,
100
+ };
101
+ },
102
+ /**
103
+ * Get the value corresponding to a specific product factor.
104
+ * @summary Get product factor value
105
+ * @param {number} productVersionId Product Version Id
106
+ * @param {string} label Product factor label
107
+ * @param {string} key Key for the product factor value
108
+ * @param {string} name Name for the product factor value
109
+ * @param {string} [authorization] Bearer Token
110
+ * @param {*} [options] Override http request option.
111
+ * @throws {RequiredError}
112
+ */
113
+ getProductFactorValue: async (productVersionId: number, label: string, key: string, name: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
114
+ // verify required parameter 'productVersionId' is not null or undefined
115
+ assertParamExists('getProductFactorValue', 'productVersionId', productVersionId)
116
+ // verify required parameter 'label' is not null or undefined
117
+ assertParamExists('getProductFactorValue', 'label', label)
118
+ // verify required parameter 'key' is not null or undefined
119
+ assertParamExists('getProductFactorValue', 'key', key)
120
+ // verify required parameter 'name' is not null or undefined
121
+ assertParamExists('getProductFactorValue', 'name', name)
122
+ const localVarPath = `/insuranceservice/v1/product-factors/values`;
123
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
124
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
125
+ let baseOptions;
126
+ let baseAccessToken;
127
+ if (configuration) {
128
+ baseOptions = configuration.baseOptions;
129
+ baseAccessToken = configuration.accessToken;
130
+ }
131
+
132
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
133
+ const localVarHeaderParameter = {} as any;
134
+ const localVarQueryParameter = {} as any;
135
+
136
+ // authentication bearer required
137
+ // http bearer authentication required
138
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
139
+
140
+ if (productVersionId !== undefined) {
141
+ localVarQueryParameter['productVersionId'] = productVersionId;
142
+ }
143
+
144
+ if (label !== undefined) {
145
+ localVarQueryParameter['label'] = label;
146
+ }
147
+
148
+ if (key !== undefined) {
149
+ localVarQueryParameter['key'] = key;
150
+ }
151
+
152
+ if (name !== undefined) {
153
+ localVarQueryParameter['name'] = name;
154
+ }
155
+
156
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
157
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
158
+ }
159
+
160
+
161
+
162
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
163
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
164
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
165
+
166
+ return {
167
+ url: toPathString(localVarUrlObj),
168
+ options: localVarRequestOptions,
169
+ };
170
+ },
171
+ /**
172
+ * Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
173
+ * @summary Returns all product factors for the product version.
174
+ * @param {number} productVersionId Unique identifier referencing the product Version.
175
+ * @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
176
+ * @param {string} [authorization] Bearer Token
177
+ * @param {boolean} [forPublic] true if this is a call from PublicAPI or false otherwise (default).
178
+ * @param {*} [options] Override http request option.
179
+ * @throws {RequiredError}
180
+ */
181
+ getProductFactorsForVersion: async (productVersionId: number, values: string, authorization?: string, forPublic?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
182
+ // verify required parameter 'productVersionId' is not null or undefined
183
+ assertParamExists('getProductFactorsForVersion', 'productVersionId', productVersionId)
184
+ // verify required parameter 'values' is not null or undefined
185
+ assertParamExists('getProductFactorsForVersion', 'values', values)
186
+ const localVarPath = `/insuranceservice/v1/product-factors/for-version`;
187
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
188
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
189
+ let baseOptions;
190
+ let baseAccessToken;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ baseAccessToken = configuration.accessToken;
194
+ }
195
+
196
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
197
+ const localVarHeaderParameter = {} as any;
198
+ const localVarQueryParameter = {} as any;
199
+
200
+ // authentication bearer required
201
+ // http bearer authentication required
202
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
203
+
204
+ if (productVersionId !== undefined) {
205
+ localVarQueryParameter['productVersionId'] = productVersionId;
206
+ }
207
+
208
+ if (values !== undefined) {
209
+ localVarQueryParameter['values'] = values;
210
+ }
211
+
212
+ if (forPublic !== undefined) {
213
+ localVarQueryParameter['forPublic'] = forPublic;
214
+ }
215
+
216
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
217
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
218
+ }
219
+
220
+
221
+
222
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
223
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
225
+
226
+ return {
227
+ url: toPathString(localVarUrlObj),
228
+ options: localVarRequestOptions,
229
+ };
230
+ },
231
+ /**
232
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
233
+ * @summary List product factors
234
+ * @param {string} [authorization] Bearer Token
235
+ * @param {number} [pageSize] Page size.
236
+ * @param {string} [pageToken] Page token.
237
+ * @param {string} [filter] List filter
238
+ * @param {string} [search] Search query.
239
+ * @param {string} [order] Ordering criteria.
240
+ * @param {string} [expand] Extra fields to fetch.
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ listProductFactors: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
245
+ const localVarPath = `/insuranceservice/v1/product-factors`;
246
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
247
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
248
+ let baseOptions;
249
+ let baseAccessToken;
250
+ if (configuration) {
251
+ baseOptions = configuration.baseOptions;
252
+ baseAccessToken = configuration.accessToken;
253
+ }
254
+
255
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
256
+ const localVarHeaderParameter = {} as any;
257
+ const localVarQueryParameter = {} as any;
258
+
259
+ // authentication bearer required
260
+ // http bearer authentication required
261
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
262
+
263
+ if (pageSize !== undefined) {
264
+ localVarQueryParameter['pageSize'] = pageSize;
265
+ }
266
+
267
+ if (pageToken !== undefined) {
268
+ localVarQueryParameter['pageToken'] = pageToken;
269
+ }
270
+
271
+ if (filter !== undefined) {
272
+ localVarQueryParameter['filter'] = filter;
273
+ }
274
+
275
+ if (search !== undefined) {
276
+ localVarQueryParameter['search'] = search;
277
+ }
278
+
279
+ if (order !== undefined) {
280
+ localVarQueryParameter['order'] = order;
281
+ }
282
+
283
+ if (expand !== undefined) {
284
+ localVarQueryParameter['expand'] = expand;
285
+ }
286
+
287
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
288
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
289
+ }
290
+
291
+
292
+
293
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
294
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
295
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
296
+
297
+ return {
298
+ url: toPathString(localVarUrlObj),
299
+ options: localVarRequestOptions,
300
+ };
301
+ },
302
+ /**
303
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
304
+ * @summary Upload product factors
305
+ * @param {string} [authorization] Bearer Token
306
+ * @param {number} [productVersionId]
307
+ * @param {any} [factors]
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ storeProductFactors: async (authorization?: string, productVersionId?: number, factors?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
312
+ const localVarPath = `/insuranceservice/v1/product-factors`;
313
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
314
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
315
+ let baseOptions;
316
+ let baseAccessToken;
317
+ if (configuration) {
318
+ baseOptions = configuration.baseOptions;
319
+ baseAccessToken = configuration.accessToken;
320
+ }
321
+
322
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
323
+ const localVarHeaderParameter = {} as any;
324
+ const localVarQueryParameter = {} as any;
325
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
326
+
327
+ // authentication bearer required
328
+ // http bearer authentication required
329
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
330
+
331
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
332
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
333
+ }
334
+
335
+
336
+ if (productVersionId !== undefined) {
337
+ localVarFormParams.append('productVersionId', productVersionId as any);
338
+ }
339
+
340
+ if (factors !== undefined) {
341
+ localVarFormParams.append('factors', factors as any);
342
+ }
343
+
344
+
345
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
346
+
347
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
348
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
349
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
350
+ localVarRequestOptions.data = localVarFormParams;
351
+
352
+ return {
353
+ url: toPathString(localVarUrlObj),
354
+ options: localVarRequestOptions,
355
+ };
356
+ },
357
+ /**
358
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
359
+ * @summary Validate product factors
360
+ * @param {string} [authorization] Bearer Token
361
+ * @param {any} [factors]
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ */
365
+ validateProductFactors: async (authorization?: string, factors?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
366
+ const localVarPath = `/insuranceservice/v1/product-factors/validate`;
367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
368
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
369
+ let baseOptions;
370
+ let baseAccessToken;
371
+ if (configuration) {
372
+ baseOptions = configuration.baseOptions;
373
+ baseAccessToken = configuration.accessToken;
374
+ }
375
+
376
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
377
+ const localVarHeaderParameter = {} as any;
378
+ const localVarQueryParameter = {} as any;
379
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
380
+
381
+ // authentication bearer required
382
+ // http bearer authentication required
383
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
384
+
385
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
386
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
387
+ }
388
+
389
+
390
+ if (factors !== undefined) {
391
+ localVarFormParams.append('factors', factors as any);
392
+ }
393
+
394
+
395
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
396
+
397
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
398
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
399
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
400
+ localVarRequestOptions.data = localVarFormParams;
401
+
402
+ return {
403
+ url: toPathString(localVarUrlObj),
404
+ options: localVarRequestOptions,
405
+ };
406
+ },
407
+ }
408
+ };
409
+
410
+ /**
411
+ * ProductFactorsApi - functional programming interface
412
+ * @export
413
+ */
414
+ export const ProductFactorsApiFp = function(configuration?: Configuration) {
415
+ const localVarAxiosParamCreator = ProductFactorsApiAxiosParamCreator(configuration)
416
+ return {
417
+ /**
418
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
419
+ * @summary Retrieve the product factor
420
+ * @param {number} id
421
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
422
+ * @param {string} [authorization] Bearer Token
423
+ * @param {string} [expand] Fields to expand response by
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ async getProductFactor(id: number, id2: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorResponseClass>> {
428
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactor(id, id2, authorization, expand, options);
429
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
430
+ },
431
+ /**
432
+ * Get the value corresponding to a specific product factor.
433
+ * @summary Get product factor value
434
+ * @param {number} productVersionId Product Version Id
435
+ * @param {string} label Product factor label
436
+ * @param {string} key Key for the product factor value
437
+ * @param {string} name Name for the product factor value
438
+ * @param {string} [authorization] Bearer Token
439
+ * @param {*} [options] Override http request option.
440
+ * @throws {RequiredError}
441
+ */
442
+ async getProductFactorValue(productVersionId: number, label: string, key: string, name: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorValueResponseClass>> {
443
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactorValue(productVersionId, label, key, name, authorization, options);
444
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
445
+ },
446
+ /**
447
+ * Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
448
+ * @summary Returns all product factors for the product version.
449
+ * @param {number} productVersionId Unique identifier referencing the product Version.
450
+ * @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
451
+ * @param {string} [authorization] Bearer Token
452
+ * @param {boolean} [forPublic] true if this is a call from PublicAPI or false otherwise (default).
453
+ * @param {*} [options] Override http request option.
454
+ * @throws {RequiredError}
455
+ */
456
+ async getProductFactorsForVersion(productVersionId: number, values: string, authorization?: string, forPublic?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorsForVersionResponseClass>> {
457
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options);
458
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
459
+ },
460
+ /**
461
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
462
+ * @summary List product factors
463
+ * @param {string} [authorization] Bearer Token
464
+ * @param {number} [pageSize] Page size.
465
+ * @param {string} [pageToken] Page token.
466
+ * @param {string} [filter] List filter
467
+ * @param {string} [search] Search query.
468
+ * @param {string} [order] Ordering criteria.
469
+ * @param {string} [expand] Extra fields to fetch.
470
+ * @param {*} [options] Override http request option.
471
+ * @throws {RequiredError}
472
+ */
473
+ async listProductFactors(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductFactorsResponseClass>> {
474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options);
475
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
476
+ },
477
+ /**
478
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
479
+ * @summary Upload product factors
480
+ * @param {string} [authorization] Bearer Token
481
+ * @param {number} [productVersionId]
482
+ * @param {any} [factors]
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ async storeProductFactors(authorization?: string, productVersionId?: number, factors?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StoreProductFactorsResponseClass>> {
487
+ const localVarAxiosArgs = await localVarAxiosParamCreator.storeProductFactors(authorization, productVersionId, factors, options);
488
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
489
+ },
490
+ /**
491
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
492
+ * @summary Validate product factors
493
+ * @param {string} [authorization] Bearer Token
494
+ * @param {any} [factors]
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ async validateProductFactors(authorization?: string, factors?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupedProductFactorsResponseClass>> {
499
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateProductFactors(authorization, factors, options);
500
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
501
+ },
502
+ }
503
+ };
504
+
505
+ /**
506
+ * ProductFactorsApi - factory interface
507
+ * @export
508
+ */
509
+ export const ProductFactorsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
510
+ const localVarFp = ProductFactorsApiFp(configuration)
511
+ return {
512
+ /**
513
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
514
+ * @summary Retrieve the product factor
515
+ * @param {number} id
516
+ * @param {number} id2 Internal unique identifier for the object. You should not have to use this, use code instead.
517
+ * @param {string} [authorization] Bearer Token
518
+ * @param {string} [expand] Fields to expand response by
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ */
522
+ getProductFactor(id: number, id2: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductFactorResponseClass> {
523
+ return localVarFp.getProductFactor(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
524
+ },
525
+ /**
526
+ * Get the value corresponding to a specific product factor.
527
+ * @summary Get product factor value
528
+ * @param {number} productVersionId Product Version Id
529
+ * @param {string} label Product factor label
530
+ * @param {string} key Key for the product factor value
531
+ * @param {string} name Name for the product factor value
532
+ * @param {string} [authorization] Bearer Token
533
+ * @param {*} [options] Override http request option.
534
+ * @throws {RequiredError}
535
+ */
536
+ getProductFactorValue(productVersionId: number, label: string, key: string, name: string, authorization?: string, options?: any): AxiosPromise<GetProductFactorValueResponseClass> {
537
+ return localVarFp.getProductFactorValue(productVersionId, label, key, name, authorization, options).then((request) => request(axios, basePath));
538
+ },
539
+ /**
540
+ * Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
541
+ * @summary Returns all product factors for the product version.
542
+ * @param {number} productVersionId Unique identifier referencing the product Version.
543
+ * @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
544
+ * @param {string} [authorization] Bearer Token
545
+ * @param {boolean} [forPublic] true if this is a call from PublicAPI or false otherwise (default).
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ getProductFactorsForVersion(productVersionId: number, values: string, authorization?: string, forPublic?: boolean, options?: any): AxiosPromise<GetProductFactorsForVersionResponseClass> {
550
+ return localVarFp.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options).then((request) => request(axios, basePath));
551
+ },
552
+ /**
553
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
554
+ * @summary List product factors
555
+ * @param {string} [authorization] Bearer Token
556
+ * @param {number} [pageSize] Page size.
557
+ * @param {string} [pageToken] Page token.
558
+ * @param {string} [filter] List filter
559
+ * @param {string} [search] Search query.
560
+ * @param {string} [order] Ordering criteria.
561
+ * @param {string} [expand] Extra fields to fetch.
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ */
565
+ listProductFactors(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductFactorsResponseClass> {
566
+ return localVarFp.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
567
+ },
568
+ /**
569
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
570
+ * @summary Upload product factors
571
+ * @param {string} [authorization] Bearer Token
572
+ * @param {number} [productVersionId]
573
+ * @param {any} [factors]
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ storeProductFactors(authorization?: string, productVersionId?: number, factors?: any, options?: any): AxiosPromise<StoreProductFactorsResponseClass> {
578
+ return localVarFp.storeProductFactors(authorization, productVersionId, factors, options).then((request) => request(axios, basePath));
579
+ },
580
+ /**
581
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
582
+ * @summary Validate product factors
583
+ * @param {string} [authorization] Bearer Token
584
+ * @param {any} [factors]
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ validateProductFactors(authorization?: string, factors?: any, options?: any): AxiosPromise<GroupedProductFactorsResponseClass> {
589
+ return localVarFp.validateProductFactors(authorization, factors, options).then((request) => request(axios, basePath));
590
+ },
591
+ };
592
+ };
593
+
594
+ /**
595
+ * Request parameters for getProductFactor operation in ProductFactorsApi.
596
+ * @export
597
+ * @interface ProductFactorsApiGetProductFactorRequest
598
+ */
599
+ export interface ProductFactorsApiGetProductFactorRequest {
600
+ /**
601
+ *
602
+ * @type {number}
603
+ * @memberof ProductFactorsApiGetProductFactor
604
+ */
605
+ readonly id: number
606
+
607
+ /**
608
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
609
+ * @type {number}
610
+ * @memberof ProductFactorsApiGetProductFactor
611
+ */
612
+ readonly id2: number
613
+
614
+ /**
615
+ * Bearer Token
616
+ * @type {string}
617
+ * @memberof ProductFactorsApiGetProductFactor
618
+ */
619
+ readonly authorization?: string
620
+
621
+ /**
622
+ * Fields to expand response by
623
+ * @type {string}
624
+ * @memberof ProductFactorsApiGetProductFactor
625
+ */
626
+ readonly expand?: string
627
+ }
628
+
629
+ /**
630
+ * Request parameters for getProductFactorValue operation in ProductFactorsApi.
631
+ * @export
632
+ * @interface ProductFactorsApiGetProductFactorValueRequest
633
+ */
634
+ export interface ProductFactorsApiGetProductFactorValueRequest {
635
+ /**
636
+ * Product Version Id
637
+ * @type {number}
638
+ * @memberof ProductFactorsApiGetProductFactorValue
639
+ */
640
+ readonly productVersionId: number
641
+
642
+ /**
643
+ * Product factor label
644
+ * @type {string}
645
+ * @memberof ProductFactorsApiGetProductFactorValue
646
+ */
647
+ readonly label: string
648
+
649
+ /**
650
+ * Key for the product factor value
651
+ * @type {string}
652
+ * @memberof ProductFactorsApiGetProductFactorValue
653
+ */
654
+ readonly key: string
655
+
656
+ /**
657
+ * Name for the product factor value
658
+ * @type {string}
659
+ * @memberof ProductFactorsApiGetProductFactorValue
660
+ */
661
+ readonly name: string
662
+
663
+ /**
664
+ * Bearer Token
665
+ * @type {string}
666
+ * @memberof ProductFactorsApiGetProductFactorValue
667
+ */
668
+ readonly authorization?: string
669
+ }
670
+
671
+ /**
672
+ * Request parameters for getProductFactorsForVersion operation in ProductFactorsApi.
673
+ * @export
674
+ * @interface ProductFactorsApiGetProductFactorsForVersionRequest
675
+ */
676
+ export interface ProductFactorsApiGetProductFactorsForVersionRequest {
677
+ /**
678
+ * Unique identifier referencing the product Version.
679
+ * @type {number}
680
+ * @memberof ProductFactorsApiGetProductFactorsForVersion
681
+ */
682
+ readonly productVersionId: number
683
+
684
+ /**
685
+ * Which values to return for every factor (None or Short for short value lists only or All).
686
+ * @type {string}
687
+ * @memberof ProductFactorsApiGetProductFactorsForVersion
688
+ */
689
+ readonly values: string
690
+
691
+ /**
692
+ * Bearer Token
693
+ * @type {string}
694
+ * @memberof ProductFactorsApiGetProductFactorsForVersion
695
+ */
696
+ readonly authorization?: string
697
+
698
+ /**
699
+ * true if this is a call from PublicAPI or false otherwise (default).
700
+ * @type {boolean}
701
+ * @memberof ProductFactorsApiGetProductFactorsForVersion
702
+ */
703
+ readonly forPublic?: boolean
704
+ }
705
+
706
+ /**
707
+ * Request parameters for listProductFactors operation in ProductFactorsApi.
708
+ * @export
709
+ * @interface ProductFactorsApiListProductFactorsRequest
710
+ */
711
+ export interface ProductFactorsApiListProductFactorsRequest {
712
+ /**
713
+ * Bearer Token
714
+ * @type {string}
715
+ * @memberof ProductFactorsApiListProductFactors
716
+ */
717
+ readonly authorization?: string
718
+
719
+ /**
720
+ * Page size.
721
+ * @type {number}
722
+ * @memberof ProductFactorsApiListProductFactors
723
+ */
724
+ readonly pageSize?: number
725
+
726
+ /**
727
+ * Page token.
728
+ * @type {string}
729
+ * @memberof ProductFactorsApiListProductFactors
730
+ */
731
+ readonly pageToken?: string
732
+
733
+ /**
734
+ * List filter
735
+ * @type {string}
736
+ * @memberof ProductFactorsApiListProductFactors
737
+ */
738
+ readonly filter?: string
739
+
740
+ /**
741
+ * Search query.
742
+ * @type {string}
743
+ * @memberof ProductFactorsApiListProductFactors
744
+ */
745
+ readonly search?: string
746
+
747
+ /**
748
+ * Ordering criteria.
749
+ * @type {string}
750
+ * @memberof ProductFactorsApiListProductFactors
751
+ */
752
+ readonly order?: string
753
+
754
+ /**
755
+ * Extra fields to fetch.
756
+ * @type {string}
757
+ * @memberof ProductFactorsApiListProductFactors
758
+ */
759
+ readonly expand?: string
760
+ }
761
+
762
+ /**
763
+ * Request parameters for storeProductFactors operation in ProductFactorsApi.
764
+ * @export
765
+ * @interface ProductFactorsApiStoreProductFactorsRequest
766
+ */
767
+ export interface ProductFactorsApiStoreProductFactorsRequest {
768
+ /**
769
+ * Bearer Token
770
+ * @type {string}
771
+ * @memberof ProductFactorsApiStoreProductFactors
772
+ */
773
+ readonly authorization?: string
774
+
775
+ /**
776
+ *
777
+ * @type {number}
778
+ * @memberof ProductFactorsApiStoreProductFactors
779
+ */
780
+ readonly productVersionId?: number
781
+
782
+ /**
783
+ *
784
+ * @type {any}
785
+ * @memberof ProductFactorsApiStoreProductFactors
786
+ */
787
+ readonly factors?: any
788
+ }
789
+
790
+ /**
791
+ * Request parameters for validateProductFactors operation in ProductFactorsApi.
792
+ * @export
793
+ * @interface ProductFactorsApiValidateProductFactorsRequest
794
+ */
795
+ export interface ProductFactorsApiValidateProductFactorsRequest {
796
+ /**
797
+ * Bearer Token
798
+ * @type {string}
799
+ * @memberof ProductFactorsApiValidateProductFactors
800
+ */
801
+ readonly authorization?: string
802
+
803
+ /**
804
+ *
805
+ * @type {any}
806
+ * @memberof ProductFactorsApiValidateProductFactors
807
+ */
808
+ readonly factors?: any
809
+ }
810
+
811
+ /**
812
+ * ProductFactorsApi - object-oriented interface
813
+ * @export
814
+ * @class ProductFactorsApi
815
+ * @extends {BaseAPI}
816
+ */
817
+ export class ProductFactorsApi extends BaseAPI {
818
+ /**
819
+ * Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
820
+ * @summary Retrieve the product factor
821
+ * @param {ProductFactorsApiGetProductFactorRequest} requestParameters Request parameters.
822
+ * @param {*} [options] Override http request option.
823
+ * @throws {RequiredError}
824
+ * @memberof ProductFactorsApi
825
+ */
826
+ public getProductFactor(requestParameters: ProductFactorsApiGetProductFactorRequest, options?: AxiosRequestConfig) {
827
+ return ProductFactorsApiFp(this.configuration).getProductFactor(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
828
+ }
829
+
830
+ /**
831
+ * Get the value corresponding to a specific product factor.
832
+ * @summary Get product factor value
833
+ * @param {ProductFactorsApiGetProductFactorValueRequest} requestParameters Request parameters.
834
+ * @param {*} [options] Override http request option.
835
+ * @throws {RequiredError}
836
+ * @memberof ProductFactorsApi
837
+ */
838
+ public getProductFactorValue(requestParameters: ProductFactorsApiGetProductFactorValueRequest, options?: AxiosRequestConfig) {
839
+ return ProductFactorsApiFp(this.configuration).getProductFactorValue(requestParameters.productVersionId, requestParameters.label, requestParameters.key, requestParameters.name, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
840
+ }
841
+
842
+ /**
843
+ * Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
844
+ * @summary Returns all product factors for the product version.
845
+ * @param {ProductFactorsApiGetProductFactorsForVersionRequest} requestParameters Request parameters.
846
+ * @param {*} [options] Override http request option.
847
+ * @throws {RequiredError}
848
+ * @memberof ProductFactorsApi
849
+ */
850
+ public getProductFactorsForVersion(requestParameters: ProductFactorsApiGetProductFactorsForVersionRequest, options?: AxiosRequestConfig) {
851
+ return ProductFactorsApiFp(this.configuration).getProductFactorsForVersion(requestParameters.productVersionId, requestParameters.values, requestParameters.authorization, requestParameters.forPublic, options).then((request) => request(this.axios, this.basePath));
852
+ }
853
+
854
+ /**
855
+ * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
856
+ * @summary List product factors
857
+ * @param {ProductFactorsApiListProductFactorsRequest} requestParameters Request parameters.
858
+ * @param {*} [options] Override http request option.
859
+ * @throws {RequiredError}
860
+ * @memberof ProductFactorsApi
861
+ */
862
+ public listProductFactors(requestParameters: ProductFactorsApiListProductFactorsRequest = {}, options?: AxiosRequestConfig) {
863
+ return ProductFactorsApiFp(this.configuration).listProductFactors(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
864
+ }
865
+
866
+ /**
867
+ * Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
868
+ * @summary Upload product factors
869
+ * @param {ProductFactorsApiStoreProductFactorsRequest} requestParameters Request parameters.
870
+ * @param {*} [options] Override http request option.
871
+ * @throws {RequiredError}
872
+ * @memberof ProductFactorsApi
873
+ */
874
+ public storeProductFactors(requestParameters: ProductFactorsApiStoreProductFactorsRequest = {}, options?: AxiosRequestConfig) {
875
+ return ProductFactorsApiFp(this.configuration).storeProductFactors(requestParameters.authorization, requestParameters.productVersionId, requestParameters.factors, options).then((request) => request(this.axios, this.basePath));
876
+ }
877
+
878
+ /**
879
+ * Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
880
+ * @summary Validate product factors
881
+ * @param {ProductFactorsApiValidateProductFactorsRequest} requestParameters Request parameters.
882
+ * @param {*} [options] Override http request option.
883
+ * @throws {RequiredError}
884
+ * @memberof ProductFactorsApi
885
+ */
886
+ public validateProductFactors(requestParameters: ProductFactorsApiValidateProductFactorsRequest = {}, options?: AxiosRequestConfig) {
887
+ return ProductFactorsApiFp(this.configuration).validateProductFactors(requestParameters.authorization, requestParameters.factors, options).then((request) => request(this.axios, this.basePath));
888
+ }
889
+ }