@emilgroup/tenant-sdk-node 1.0.0-beta.1 → 1.0.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 (357) hide show
  1. package/.openapi-generator/FILES +30 -56
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +77 -69
  4. package/api/data-report-api.ts +687 -0
  5. package/api/data-report-executor-api.ts +7 -21
  6. package/api/invite-organizations-api.ts +347 -0
  7. package/api/invite-users-api.ts +670 -0
  8. package/api/organizations-api.ts +343 -0
  9. package/api/users-api.ts +180 -720
  10. package/api.ts +9 -20
  11. package/base.ts +2 -1
  12. package/common.ts +2 -2
  13. package/configuration.ts +1 -1
  14. package/dist/api/custom-schema-api.d.ts +59 -59
  15. package/dist/api/custom-schema-api.js +51 -44
  16. package/dist/api/data-report-api.d.ts +380 -0
  17. package/dist/api/{dashboard-api.js → data-report-api.js} +162 -241
  18. package/dist/api/data-report-executor-api.d.ts +4 -13
  19. package/dist/api/data-report-executor-api.js +7 -13
  20. package/dist/api/invite-organizations-api.d.ts +198 -0
  21. package/dist/api/invite-organizations-api.js +354 -0
  22. package/dist/api/invite-users-api.d.ts +368 -0
  23. package/dist/api/{reports-api.js → invite-users-api.js} +178 -292
  24. package/dist/api/organizations-api.d.ts +197 -0
  25. package/dist/api/{tariff-comparisons-api.js → organizations-api.js} +104 -160
  26. package/dist/api/users-api.d.ts +138 -434
  27. package/dist/api/users-api.js +114 -567
  28. package/dist/api.d.ts +5 -12
  29. package/dist/api.js +5 -14
  30. package/dist/base.d.ts +3 -2
  31. package/dist/base.js +2 -1
  32. package/dist/common.d.ts +2 -2
  33. package/dist/common.js +1 -1
  34. package/dist/configuration.d.ts +1 -1
  35. package/dist/configuration.js +1 -1
  36. package/dist/index.d.ts +2 -2
  37. package/dist/index.js +3 -2
  38. package/dist/models/assign-user-roles-request-dto.d.ts +1 -1
  39. package/dist/models/assign-user-roles-request-dto.js +1 -1
  40. package/dist/models/assign-user-roles-response-class.d.ts +1 -1
  41. package/dist/models/assign-user-roles-response-class.js +1 -1
  42. package/dist/models/batch-delete-request-dto.d.ts +2 -2
  43. package/dist/models/batch-delete-request-dto.js +1 -1
  44. package/dist/models/{get-embedded-url-response-class.d.ts → batch-delete-response-class.d.ts} +7 -7
  45. package/dist/models/{alert-class.js → batch-delete-response-class.js} +1 -1
  46. package/dist/models/create-custom-schema-request-dto.d.ts +1 -1
  47. package/dist/models/create-custom-schema-request-dto.js +1 -1
  48. package/dist/models/create-custom-schema-response-class.d.ts +1 -1
  49. package/dist/models/create-custom-schema-response-class.js +1 -1
  50. package/dist/models/create-data-report-request-dto.d.ts +61 -0
  51. package/dist/models/{alert-history-class.js → create-data-report-request-dto.js} +1 -1
  52. package/dist/models/{channel-response-class.d.ts → create-data-report-response-class.d.ts} +8 -13
  53. package/dist/models/{compare-tariffs-response-class.js → create-data-report-response-class.js} +1 -1
  54. package/dist/models/create-permission-request-dto.d.ts +1 -7
  55. package/dist/models/create-permission-request-dto.js +1 -1
  56. package/dist/models/create-role-request-dto.d.ts +2 -2
  57. package/dist/models/create-role-request-dto.js +1 -1
  58. package/dist/models/create-tenant-request-dto.d.ts +1 -1
  59. package/dist/models/create-tenant-request-dto.js +1 -1
  60. package/dist/models/custom-field-dto.d.ts +1 -1
  61. package/dist/models/custom-field-dto.js +1 -1
  62. package/dist/models/custom-schema-class.d.ts +1 -1
  63. package/dist/models/custom-schema-class.js +1 -1
  64. package/dist/models/data-report-class.d.ts +79 -0
  65. package/dist/models/{channel-response-class.js → data-report-class.js} +1 -1
  66. package/dist/models/data-report-filter-class.d.ts +72 -0
  67. package/dist/models/data-report-filter-class.js +15 -0
  68. package/dist/models/data-report-filter-dto.d.ts +48 -0
  69. package/dist/models/data-report-filter-dto.js +15 -0
  70. package/dist/models/data-report-filter-single-value-dto.d.ts +5 -5
  71. package/dist/models/data-report-filter-single-value-dto.js +1 -1
  72. package/dist/models/data-report-filter-value-dto.d.ts +2 -2
  73. package/dist/models/data-report-filter-value-dto.js +1 -1
  74. package/dist/models/dbconfig-dto.d.ts +1 -1
  75. package/dist/models/dbconfig-dto.js +1 -1
  76. package/dist/models/{manage-subscription-request-dto.d.ts → delete-response-class.d.ts} +6 -6
  77. package/dist/models/delete-response-class.js +15 -0
  78. package/dist/models/disable-user-response-class.d.ts +1 -1
  79. package/dist/models/disable-user-response-class.js +1 -1
  80. package/dist/models/disable-users-request-dto.d.ts +1 -1
  81. package/dist/models/disable-users-request-dto.js +1 -1
  82. package/dist/models/{insurance-company-response-class.d.ts → disable-users-response-class.d.ts} +7 -7
  83. package/dist/models/disable-users-response-class.js +15 -0
  84. package/dist/models/enable-user-response-class.d.ts +1 -1
  85. package/dist/models/enable-user-response-class.js +1 -1
  86. package/dist/models/enable-users-request-dto.d.ts +1 -1
  87. package/dist/models/enable-users-request-dto.js +1 -1
  88. package/dist/models/{insurance-response-class.d.ts → enable-users-response-class.d.ts} +7 -7
  89. package/dist/models/enable-users-response-class.js +15 -0
  90. package/dist/models/get-custom-schema-response-class.d.ts +1 -1
  91. package/dist/models/get-custom-schema-response-class.js +1 -1
  92. package/dist/models/{create-alert-response-class.d.ts → get-data-report-response-class.d.ts} +8 -8
  93. package/dist/models/get-data-report-response-class.js +15 -0
  94. package/dist/models/{create-dashboard-response-class.d.ts → get-organization-response-class.d.ts} +8 -8
  95. package/dist/models/get-organization-response-class.js +15 -0
  96. package/dist/models/{get-alert-response-class.d.ts → get-settings-response-class.d.ts} +7 -8
  97. package/dist/models/get-settings-response-class.js +15 -0
  98. package/dist/models/get-user-response-class.d.ts +1 -1
  99. package/dist/models/get-user-response-class.js +1 -1
  100. package/dist/models/index.d.ts +26 -49
  101. package/dist/models/index.js +26 -49
  102. package/dist/models/invite-class.d.ts +10 -9
  103. package/dist/models/invite-class.js +1 -1
  104. package/dist/models/invite-org-request-dto.d.ts +90 -0
  105. package/dist/models/invite-org-request-dto.js +21 -0
  106. package/dist/models/invite-user-request-dto.d.ts +9 -3
  107. package/dist/models/invite-user-request-dto.js +1 -1
  108. package/dist/models/invite-user-response-class.d.ts +2 -2
  109. package/dist/models/invite-user-response-class.js +1 -1
  110. package/dist/models/invite-users-request-dto.d.ts +3 -3
  111. package/dist/models/invite-users-request-dto.js +1 -1
  112. package/dist/models/invite-users-response-class.d.ts +24 -0
  113. package/dist/models/invite-users-response-class.js +15 -0
  114. package/dist/models/list-custom-schemas-response-class.d.ts +1 -1
  115. package/dist/models/list-custom-schemas-response-class.js +1 -1
  116. package/dist/models/list-data-reports-response-class.d.ts +31 -0
  117. package/dist/models/list-data-reports-response-class.js +15 -0
  118. package/dist/models/list-invites-response-class.d.ts +3 -3
  119. package/dist/models/list-invites-response-class.js +1 -1
  120. package/dist/models/list-org-invitations-response-class.d.ts +31 -0
  121. package/dist/models/list-org-invitations-response-class.js +15 -0
  122. package/dist/models/list-organizations-response-class.d.ts +31 -0
  123. package/dist/models/list-organizations-response-class.js +15 -0
  124. package/dist/models/list-users-response-class.d.ts +1 -1
  125. package/dist/models/list-users-response-class.js +1 -1
  126. package/dist/models/org-invitation-class.d.ts +115 -0
  127. package/dist/models/{update-alert-request-dto.js → org-invitation-class.js} +6 -6
  128. package/dist/models/org-invitation-response-class.d.ts +25 -0
  129. package/dist/models/org-invitation-response-class.js +15 -0
  130. package/dist/models/organization-class.d.ts +90 -0
  131. package/dist/models/{condition-dto.js → organization-class.js} +6 -7
  132. package/dist/models/permission-class.d.ts +60 -0
  133. package/dist/models/permission-class.js +15 -0
  134. package/dist/models/role-class.d.ts +61 -0
  135. package/dist/models/role-class.js +15 -0
  136. package/dist/models/run-data-report-request-dto.d.ts +2 -2
  137. package/dist/models/run-data-report-request-dto.js +1 -1
  138. package/dist/models/run-data-report-response-class.d.ts +2 -2
  139. package/dist/models/run-data-report-response-class.js +1 -1
  140. package/dist/models/{set-user-setting-request-dto.d.ts → set-setting-request-dto.d.ts} +15 -9
  141. package/dist/models/set-setting-request-dto.js +15 -0
  142. package/dist/models/set-user-setting-response-class.d.ts +36 -0
  143. package/dist/models/set-user-setting-response-class.js +15 -0
  144. package/dist/models/subscription-class.d.ts +12 -5
  145. package/dist/models/subscription-class.js +1 -1
  146. package/dist/models/tenant-admin-user-dto.d.ts +1 -1
  147. package/dist/models/tenant-admin-user-dto.js +1 -1
  148. package/dist/models/update-custom-schema-request-dto.d.ts +1 -1
  149. package/dist/models/update-custom-schema-request-dto.js +1 -1
  150. package/dist/models/update-custom-schema-response-class.d.ts +1 -1
  151. package/dist/models/update-custom-schema-response-class.js +1 -1
  152. package/dist/models/update-data-report-request-dto.d.ts +61 -0
  153. package/dist/models/update-data-report-request-dto.js +15 -0
  154. package/dist/models/{create-report-response-class.d.ts → update-data-report-response-class.d.ts} +8 -8
  155. package/dist/models/update-data-report-response-class.js +15 -0
  156. package/dist/models/update-role-request-dto.d.ts +4 -4
  157. package/dist/models/update-role-request-dto.js +1 -1
  158. package/dist/models/user-class.d.ts +14 -6
  159. package/dist/models/user-class.js +1 -1
  160. package/index.ts +2 -2
  161. package/models/assign-user-roles-request-dto.ts +1 -1
  162. package/models/assign-user-roles-response-class.ts +1 -1
  163. package/models/batch-delete-request-dto.ts +2 -2
  164. package/models/{get-embedded-url-response-class.ts → batch-delete-response-class.ts} +7 -7
  165. package/models/create-custom-schema-request-dto.ts +1 -1
  166. package/models/create-custom-schema-response-class.ts +1 -1
  167. package/models/create-data-report-request-dto.ts +67 -0
  168. package/models/{create-dashboard-response-class.ts → create-data-report-response-class.ts} +8 -8
  169. package/models/create-permission-request-dto.ts +1 -7
  170. package/models/create-role-request-dto.ts +2 -2
  171. package/models/create-tenant-request-dto.ts +1 -1
  172. package/models/custom-field-dto.ts +1 -1
  173. package/models/custom-schema-class.ts +1 -1
  174. package/models/data-report-class.ts +85 -0
  175. package/models/data-report-filter-class.ts +78 -0
  176. package/models/data-report-filter-dto.ts +54 -0
  177. package/models/data-report-filter-single-value-dto.ts +5 -5
  178. package/models/data-report-filter-value-dto.ts +2 -2
  179. package/models/dbconfig-dto.ts +1 -1
  180. package/models/{manage-subscription-request-dto.ts → delete-response-class.ts} +6 -6
  181. package/models/disable-user-response-class.ts +1 -1
  182. package/models/disable-users-request-dto.ts +1 -1
  183. package/models/{insurance-company-response-class.ts → disable-users-response-class.ts} +7 -7
  184. package/models/enable-user-response-class.ts +1 -1
  185. package/models/enable-users-request-dto.ts +1 -1
  186. package/models/{insurance-response-class.ts → enable-users-response-class.ts} +7 -7
  187. package/models/get-custom-schema-response-class.ts +1 -1
  188. package/models/{channel-response-class.ts → get-data-report-response-class.ts} +8 -13
  189. package/models/{create-alert-response-class.ts → get-organization-response-class.ts} +8 -8
  190. package/models/{get-alert-response-class.ts → get-settings-response-class.ts} +7 -8
  191. package/models/get-user-response-class.ts +1 -1
  192. package/models/index.ts +26 -49
  193. package/models/invite-class.ts +10 -9
  194. package/models/invite-org-request-dto.ts +99 -0
  195. package/models/invite-user-request-dto.ts +9 -3
  196. package/models/invite-user-response-class.ts +2 -2
  197. package/models/invite-users-request-dto.ts +3 -3
  198. package/models/invite-users-response-class.ts +30 -0
  199. package/models/list-custom-schemas-response-class.ts +1 -1
  200. package/models/{list-dashboards-response-class.ts → list-data-reports-response-class.ts} +10 -10
  201. package/models/list-invites-response-class.ts +3 -3
  202. package/models/{list-alert-history-response-class.ts → list-org-invitations-response-class.ts} +10 -10
  203. package/models/{list-alerts-response-class.ts → list-organizations-response-class.ts} +10 -10
  204. package/models/list-users-response-class.ts +1 -1
  205. package/models/org-invitation-class.ts +124 -0
  206. package/models/org-invitation-response-class.ts +31 -0
  207. package/models/organization-class.ts +99 -0
  208. package/models/{report-class.ts → permission-class.ts} +20 -26
  209. package/models/role-class.ts +67 -0
  210. package/models/run-data-report-request-dto.ts +2 -2
  211. package/models/run-data-report-response-class.ts +3 -2
  212. package/models/{set-user-setting-request-dto.ts → set-setting-request-dto.ts} +15 -9
  213. package/models/set-user-setting-response-class.ts +42 -0
  214. package/models/subscription-class.ts +12 -5
  215. package/models/tenant-admin-user-dto.ts +1 -1
  216. package/models/update-custom-schema-request-dto.ts +1 -1
  217. package/models/update-custom-schema-response-class.ts +1 -1
  218. package/models/update-data-report-request-dto.ts +67 -0
  219. package/models/{create-report-response-class.ts → update-data-report-response-class.ts} +8 -8
  220. package/models/update-role-request-dto.ts +4 -4
  221. package/models/user-class.ts +14 -6
  222. package/package.json +2 -2
  223. package/api/alerts-api.ts +0 -860
  224. package/api/dashboard-api.ts +0 -792
  225. package/api/reports-api.ts +0 -860
  226. package/api/scenario-analysis-api.ts +0 -977
  227. package/api/settings-api.ts +0 -478
  228. package/api/tariff-comparisons-api.ts +0 -381
  229. package/api/user-subscription-api.ts +0 -191
  230. package/dist/api/alerts-api.d.ts +0 -479
  231. package/dist/api/alerts-api.js +0 -752
  232. package/dist/api/dashboard-api.d.ts +0 -434
  233. package/dist/api/reports-api.d.ts +0 -479
  234. package/dist/api/scenario-analysis-api.d.ts +0 -529
  235. package/dist/api/scenario-analysis-api.js +0 -895
  236. package/dist/api/settings-api.d.ts +0 -261
  237. package/dist/api/settings-api.js +0 -509
  238. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  239. package/dist/api/user-subscription-api.d.ts +0 -111
  240. package/dist/api/user-subscription-api.js +0 -236
  241. package/dist/models/alert-class.d.ts +0 -90
  242. package/dist/models/alert-history-class.d.ts +0 -108
  243. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  244. package/dist/models/compare-tariffs-request-dto.js +0 -22
  245. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  246. package/dist/models/condition-dto.d.ts +0 -43
  247. package/dist/models/create-alert-request-dto.d.ts +0 -79
  248. package/dist/models/create-alert-request-dto.js +0 -27
  249. package/dist/models/create-alert-response-class.js +0 -15
  250. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  251. package/dist/models/create-dashboard-request-dto.js +0 -29
  252. package/dist/models/create-dashboard-response-class.js +0 -15
  253. package/dist/models/create-report-request-dto.d.ts +0 -49
  254. package/dist/models/create-report-request-dto.js +0 -22
  255. package/dist/models/create-report-response-class.js +0 -15
  256. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  257. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  258. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  259. package/dist/models/create-scenario-analysis-response-class.js +0 -15
  260. package/dist/models/dashboard-class.d.ts +0 -78
  261. package/dist/models/dashboard-class.js +0 -15
  262. package/dist/models/get-alert-response-class.js +0 -15
  263. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  264. package/dist/models/get-dashboard-response-class.js +0 -15
  265. package/dist/models/get-embedded-url-response-class.js +0 -15
  266. package/dist/models/get-report-response-class.d.ts +0 -25
  267. package/dist/models/get-report-response-class.js +0 -15
  268. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  269. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  270. package/dist/models/grouped-tariff-class.d.ts +0 -30
  271. package/dist/models/grouped-tariff-class.js +0 -15
  272. package/dist/models/insurance-company-response-class.js +0 -15
  273. package/dist/models/insurance-response-class.js +0 -15
  274. package/dist/models/list-alert-history-response-class.d.ts +0 -31
  275. package/dist/models/list-alert-history-response-class.js +0 -15
  276. package/dist/models/list-alerts-response-class.d.ts +0 -31
  277. package/dist/models/list-alerts-response-class.js +0 -15
  278. package/dist/models/list-channels-response-class.d.ts +0 -25
  279. package/dist/models/list-channels-response-class.js +0 -15
  280. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  281. package/dist/models/list-dashboards-response-class.js +0 -15
  282. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  283. package/dist/models/list-insurance-companies-response-class.js +0 -15
  284. package/dist/models/list-report-history-response-class.d.ts +0 -31
  285. package/dist/models/list-report-history-response-class.js +0 -15
  286. package/dist/models/list-reports-response-class.d.ts +0 -31
  287. package/dist/models/list-reports-response-class.js +0 -15
  288. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  289. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  290. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  291. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  292. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  293. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  294. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  295. package/dist/models/list-tariffs-response-class.js +0 -15
  296. package/dist/models/manage-subscription-request-dto.js +0 -15
  297. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  298. package/dist/models/manage-subscription-response-class.js +0 -15
  299. package/dist/models/report-class.d.ts +0 -66
  300. package/dist/models/report-class.js +0 -15
  301. package/dist/models/report-history-class.d.ts +0 -48
  302. package/dist/models/report-history-class.js +0 -15
  303. package/dist/models/scenario-analysis-class.d.ts +0 -108
  304. package/dist/models/scenario-analysis-class.js +0 -15
  305. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  306. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  307. package/dist/models/set-user-setting-request-dto.js +0 -15
  308. package/dist/models/update-alert-request-dto.d.ts +0 -72
  309. package/dist/models/update-alert-response-class.d.ts +0 -25
  310. package/dist/models/update-alert-response-class.js +0 -15
  311. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  312. package/dist/models/update-dashboard-request-dto.js +0 -29
  313. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  314. package/dist/models/update-dashboard-response-class.js +0 -15
  315. package/dist/models/update-report-request-dto.d.ts +0 -55
  316. package/dist/models/update-report-request-dto.js +0 -22
  317. package/dist/models/update-report-response-class.d.ts +0 -25
  318. package/dist/models/update-report-response-class.js +0 -15
  319. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  320. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  321. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  322. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  323. package/models/alert-class.ts +0 -96
  324. package/models/alert-history-class.ts +0 -114
  325. package/models/compare-tariffs-request-dto.ts +0 -46
  326. package/models/compare-tariffs-response-class.ts +0 -37
  327. package/models/condition-dto.ts +0 -52
  328. package/models/create-alert-request-dto.ts +0 -89
  329. package/models/create-dashboard-request-dto.ts +0 -81
  330. package/models/create-report-request-dto.ts +0 -58
  331. package/models/create-scenario-analysis-request-dto.ts +0 -83
  332. package/models/create-scenario-analysis-response-class.ts +0 -31
  333. package/models/dashboard-class.ts +0 -84
  334. package/models/get-dashboard-response-class.ts +0 -31
  335. package/models/get-report-response-class.ts +0 -31
  336. package/models/get-scenario-analysis-response-class.ts +0 -31
  337. package/models/grouped-tariff-class.ts +0 -36
  338. package/models/list-channels-response-class.ts +0 -31
  339. package/models/list-insurance-companies-response-class.ts +0 -31
  340. package/models/list-report-history-response-class.ts +0 -37
  341. package/models/list-reports-response-class.ts +0 -37
  342. package/models/list-scenario-analyses-response-class.ts +0 -37
  343. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  344. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  345. package/models/list-tariffs-response-class.ts +0 -31
  346. package/models/manage-subscription-response-class.ts +0 -31
  347. package/models/report-history-class.ts +0 -54
  348. package/models/scenario-analysis-class.ts +0 -114
  349. package/models/scenario-analysis-date-response-class.ts +0 -42
  350. package/models/update-alert-request-dto.ts +0 -81
  351. package/models/update-alert-response-class.ts +0 -31
  352. package/models/update-dashboard-request-dto.ts +0 -87
  353. package/models/update-dashboard-response-class.ts +0 -31
  354. package/models/update-report-request-dto.ts +0 -64
  355. package/models/update-report-response-class.ts +0 -31
  356. package/models/update-scenario-analysis-request-dto.ts +0 -83
  357. package/models/update-scenario-analysis-response-class.ts +0 -31
@@ -0,0 +1,197 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetOrganizationResponseClass } from '../models';
16
+ import { ListOrganizationsResponseClass } from '../models';
17
+ /**
18
+ * OrganizationsApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * Get Organization by code
24
+ * @summary Retrieve the Organization
25
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
26
+ * @param {string} code
27
+ * @param {*} [options] Override http request option.
28
+ * @throws {RequiredError}
29
+ */
30
+ getOrganization: (authorization: string, code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ /**
32
+ * This will fetch list of organizations
33
+ * @summary List organizations
34
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
35
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
36
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
37
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
38
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
39
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
40
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ listOrganizations: (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ };
46
+ /**
47
+ * OrganizationsApi - functional programming interface
48
+ * @export
49
+ */
50
+ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
51
+ /**
52
+ * Get Organization by code
53
+ * @summary Retrieve the Organization
54
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
55
+ * @param {string} code
56
+ * @param {*} [options] Override http request option.
57
+ * @throws {RequiredError}
58
+ */
59
+ getOrganization(authorization: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>>;
60
+ /**
61
+ * This will fetch list of organizations
62
+ * @summary List organizations
63
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
64
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
65
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
66
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
67
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
68
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
69
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
70
+ * @param {*} [options] Override http request option.
71
+ * @throws {RequiredError}
72
+ */
73
+ listOrganizations(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
74
+ };
75
+ /**
76
+ * OrganizationsApi - factory interface
77
+ * @export
78
+ */
79
+ export declare const OrganizationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
80
+ /**
81
+ * Get Organization by code
82
+ * @summary Retrieve the Organization
83
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
84
+ * @param {string} code
85
+ * @param {*} [options] Override http request option.
86
+ * @throws {RequiredError}
87
+ */
88
+ getOrganization(authorization: string, code: string, options?: any): AxiosPromise<GetOrganizationResponseClass>;
89
+ /**
90
+ * This will fetch list of organizations
91
+ * @summary List organizations
92
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
94
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
95
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
96
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
97
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
98
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ listOrganizations(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
103
+ };
104
+ /**
105
+ * Request parameters for getOrganization operation in OrganizationsApi.
106
+ * @export
107
+ * @interface OrganizationsApiGetOrganizationRequest
108
+ */
109
+ export interface OrganizationsApiGetOrganizationRequest {
110
+ /**
111
+ * Bearer Token: provided by the login endpoint under the name accessToken.
112
+ * @type {string}
113
+ * @memberof OrganizationsApiGetOrganization
114
+ */
115
+ readonly authorization: string;
116
+ /**
117
+ *
118
+ * @type {string}
119
+ * @memberof OrganizationsApiGetOrganization
120
+ */
121
+ readonly code: string;
122
+ }
123
+ /**
124
+ * Request parameters for listOrganizations operation in OrganizationsApi.
125
+ * @export
126
+ * @interface OrganizationsApiListOrganizationsRequest
127
+ */
128
+ export interface OrganizationsApiListOrganizationsRequest {
129
+ /**
130
+ * Bearer Token: provided by the login endpoint under the name accessToken.
131
+ * @type {string}
132
+ * @memberof OrganizationsApiListOrganizations
133
+ */
134
+ readonly authorization: string;
135
+ /**
136
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
137
+ * @type {any}
138
+ * @memberof OrganizationsApiListOrganizations
139
+ */
140
+ readonly pageSize?: any;
141
+ /**
142
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
143
+ * @type {any}
144
+ * @memberof OrganizationsApiListOrganizations
145
+ */
146
+ readonly pageToken?: any;
147
+ /**
148
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
149
+ * @type {any}
150
+ * @memberof OrganizationsApiListOrganizations
151
+ */
152
+ readonly filter?: any;
153
+ /**
154
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
155
+ * @type {any}
156
+ * @memberof OrganizationsApiListOrganizations
157
+ */
158
+ readonly search?: any;
159
+ /**
160
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
161
+ * @type {any}
162
+ * @memberof OrganizationsApiListOrganizations
163
+ */
164
+ readonly order?: any;
165
+ /**
166
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
167
+ * @type {any}
168
+ * @memberof OrganizationsApiListOrganizations
169
+ */
170
+ readonly expand?: any;
171
+ }
172
+ /**
173
+ * OrganizationsApi - object-oriented interface
174
+ * @export
175
+ * @class OrganizationsApi
176
+ * @extends {BaseAPI}
177
+ */
178
+ export declare class OrganizationsApi extends BaseAPI {
179
+ /**
180
+ * Get Organization by code
181
+ * @summary Retrieve the Organization
182
+ * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
183
+ * @param {*} [options] Override http request option.
184
+ * @throws {RequiredError}
185
+ * @memberof OrganizationsApi
186
+ */
187
+ getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationResponseClass, any>>;
188
+ /**
189
+ * This will fetch list of organizations
190
+ * @summary List organizations
191
+ * @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ * @memberof OrganizationsApi
195
+ */
196
+ listOrganizations(requestParameters: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
197
+ }
@@ -6,7 +6,7 @@
6
6
  * The EMIL TenantService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
- *
9
+ * Contact: kontakt@emil.de
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
12
  * https://openapi-generator.tech
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.TariffComparisonsApi = exports.TariffComparisonsApiFactory = exports.TariffComparisonsApiFp = exports.TariffComparisonsApiAxiosParamCreator = void 0;
81
+ exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,35 +90,39 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * TariffComparisonsApi - axios parameter creator
93
+ * OrganizationsApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var TariffComparisonsApiAxiosParamCreator = function (configuration) {
96
+ var OrganizationsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
101
- * @param {CompareTariffsRequestDto} compareTariffsRequestDto
102
- * @param {string} [authorization] Bearer Token
100
+ * Get Organization by code
101
+ * @summary Retrieve the Organization
102
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {string} code
103
104
  * @param {*} [options] Override http request option.
104
105
  * @throws {RequiredError}
105
106
  */
106
- compareTariffs: function (compareTariffsRequestDto, authorization, options) {
107
+ getOrganization: function (authorization, code, options) {
107
108
  if (options === void 0) { options = {}; }
108
109
  return __awaiter(_this, void 0, void 0, function () {
109
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
111
  return __generator(this, function (_a) {
111
112
  switch (_a.label) {
112
113
  case 0:
113
- // verify required parameter 'compareTariffsRequestDto' is not null or undefined
114
- (0, common_1.assertParamExists)('compareTariffs', 'compareTariffsRequestDto', compareTariffsRequestDto);
115
- localVarPath = "/tenantservice/v1/tariff-comparisons";
114
+ // verify required parameter 'authorization' is not null or undefined
115
+ (0, common_1.assertParamExists)('getOrganization', 'authorization', authorization);
116
+ // verify required parameter 'code' is not null or undefined
117
+ (0, common_1.assertParamExists)('getOrganization', 'code', code);
118
+ localVarPath = "/tenantservice/v1/organizations/{code}"
119
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
116
120
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
117
121
  if (configuration) {
118
122
  baseOptions = configuration.baseOptions;
119
123
  baseAccessToken = configuration.accessToken;
120
124
  }
121
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
125
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
122
126
  localVarHeaderParameter = {};
123
127
  localVarQueryParameter = {};
124
128
  // authentication bearer required
@@ -131,11 +135,9 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
131
135
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
136
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
137
  }
134
- localVarHeaderParameter['Content-Type'] = 'application/json';
135
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
139
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
140
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(compareTariffsRequestDto, localVarRequestOptions, configuration);
139
141
  return [2 /*return*/, {
140
142
  url: (0, common_1.toPathString)(localVarUrlObj),
141
143
  options: localVarRequestOptions,
@@ -145,20 +147,28 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
145
147
  });
146
148
  },
147
149
  /**
148
- *
149
- * @param {string} [authorization] Bearer Token
150
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
150
+ * This will fetch list of organizations
151
+ * @summary List organizations
152
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
154
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
155
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
156
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
157
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
158
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
151
159
  * @param {*} [options] Override http request option.
152
160
  * @throws {RequiredError}
153
161
  */
154
- listTariffInsuranceCompanies: function (authorization, product, options) {
162
+ listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
155
163
  if (options === void 0) { options = {}; }
156
164
  return __awaiter(_this, void 0, void 0, function () {
157
165
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
158
166
  return __generator(this, function (_a) {
159
167
  switch (_a.label) {
160
168
  case 0:
161
- localVarPath = "/tenantservice/v1/tariff-comparisons/insurances";
169
+ // verify required parameter 'authorization' is not null or undefined
170
+ (0, common_1.assertParamExists)('listOrganizations', 'authorization', authorization);
171
+ localVarPath = "/tenantservice/v1/organizations";
162
172
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
163
173
  if (configuration) {
164
174
  baseOptions = configuration.baseOptions;
@@ -174,61 +184,23 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
174
184
  // authentication bearer required
175
185
  // http bearer authentication required
176
186
  _a.sent();
177
- if (product !== undefined) {
178
- localVarQueryParameter['product'] = product;
187
+ if (pageSize !== undefined) {
188
+ localVarQueryParameter['pageSize'] = pageSize;
179
189
  }
180
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
181
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
+ if (pageToken !== undefined) {
191
+ localVarQueryParameter['pageToken'] = pageToken;
182
192
  }
183
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
184
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
185
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
186
- return [2 /*return*/, {
187
- url: (0, common_1.toPathString)(localVarUrlObj),
188
- options: localVarRequestOptions,
189
- }];
190
- }
191
- });
192
- });
193
- },
194
- /**
195
- *
196
- * @param {string} insurerName Insurer name
197
- * @param {string} [authorization] Bearer Token
198
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
199
- * @param {*} [options] Override http request option.
200
- * @throws {RequiredError}
201
- */
202
- listTariffs: function (insurerName, authorization, product, options) {
203
- if (options === void 0) { options = {}; }
204
- return __awaiter(_this, void 0, void 0, function () {
205
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
- return __generator(this, function (_a) {
207
- switch (_a.label) {
208
- case 0:
209
- // verify required parameter 'insurerName' is not null or undefined
210
- (0, common_1.assertParamExists)('listTariffs', 'insurerName', insurerName);
211
- localVarPath = "/tenantservice/v1/tariff-comparisons/tariffs";
212
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
213
- if (configuration) {
214
- baseOptions = configuration.baseOptions;
215
- baseAccessToken = configuration.accessToken;
193
+ if (filter !== undefined) {
194
+ localVarQueryParameter['filter'] = filter;
216
195
  }
217
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
218
- localVarHeaderParameter = {};
219
- localVarQueryParameter = {};
220
- // authentication bearer required
221
- // http bearer authentication required
222
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
223
- case 1:
224
- // authentication bearer required
225
- // http bearer authentication required
226
- _a.sent();
227
- if (insurerName !== undefined) {
228
- localVarQueryParameter['insurerName'] = insurerName;
196
+ if (search !== undefined) {
197
+ localVarQueryParameter['search'] = search;
198
+ }
199
+ if (order !== undefined) {
200
+ localVarQueryParameter['order'] = order;
229
201
  }
230
- if (product !== undefined) {
231
- localVarQueryParameter['product'] = product;
202
+ if (expand !== undefined) {
203
+ localVarQueryParameter['expand'] = expand;
232
204
  }
233
205
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
206
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
@@ -246,27 +218,28 @@ var TariffComparisonsApiAxiosParamCreator = function (configuration) {
246
218
  },
247
219
  };
248
220
  };
249
- exports.TariffComparisonsApiAxiosParamCreator = TariffComparisonsApiAxiosParamCreator;
221
+ exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
250
222
  /**
251
- * TariffComparisonsApi - functional programming interface
223
+ * OrganizationsApi - functional programming interface
252
224
  * @export
253
225
  */
254
- var TariffComparisonsApiFp = function (configuration) {
255
- var localVarAxiosParamCreator = (0, exports.TariffComparisonsApiAxiosParamCreator)(configuration);
226
+ var OrganizationsApiFp = function (configuration) {
227
+ var localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
256
228
  return {
257
229
  /**
258
- *
259
- * @param {CompareTariffsRequestDto} compareTariffsRequestDto
260
- * @param {string} [authorization] Bearer Token
230
+ * Get Organization by code
231
+ * @summary Retrieve the Organization
232
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
233
+ * @param {string} code
261
234
  * @param {*} [options] Override http request option.
262
235
  * @throws {RequiredError}
263
236
  */
264
- compareTariffs: function (compareTariffsRequestDto, authorization, options) {
237
+ getOrganization: function (authorization, code, options) {
265
238
  return __awaiter(this, void 0, void 0, function () {
266
239
  var localVarAxiosArgs;
267
240
  return __generator(this, function (_a) {
268
241
  switch (_a.label) {
269
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.compareTariffs(compareTariffsRequestDto, authorization, options)];
242
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getOrganization(authorization, code, options)];
270
243
  case 1:
271
244
  localVarAxiosArgs = _a.sent();
272
245
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -275,39 +248,24 @@ var TariffComparisonsApiFp = function (configuration) {
275
248
  });
276
249
  },
277
250
  /**
278
- *
279
- * @param {string} [authorization] Bearer Token
280
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
251
+ * This will fetch list of organizations
252
+ * @summary List organizations
253
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
254
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
255
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
256
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
257
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
258
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
259
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
281
260
  * @param {*} [options] Override http request option.
282
261
  * @throws {RequiredError}
283
262
  */
284
- listTariffInsuranceCompanies: function (authorization, product, options) {
263
+ listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
285
264
  return __awaiter(this, void 0, void 0, function () {
286
265
  var localVarAxiosArgs;
287
266
  return __generator(this, function (_a) {
288
267
  switch (_a.label) {
289
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTariffInsuranceCompanies(authorization, product, options)];
290
- case 1:
291
- localVarAxiosArgs = _a.sent();
292
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
293
- }
294
- });
295
- });
296
- },
297
- /**
298
- *
299
- * @param {string} insurerName Insurer name
300
- * @param {string} [authorization] Bearer Token
301
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
302
- * @param {*} [options] Override http request option.
303
- * @throws {RequiredError}
304
- */
305
- listTariffs: function (insurerName, authorization, product, options) {
306
- return __awaiter(this, void 0, void 0, function () {
307
- var localVarAxiosArgs;
308
- return __generator(this, function (_a) {
309
- switch (_a.label) {
310
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTariffs(insurerName, authorization, product, options)];
268
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options)];
311
269
  case 1:
312
270
  localVarAxiosArgs = _a.sent();
313
271
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -317,93 +275,79 @@ var TariffComparisonsApiFp = function (configuration) {
317
275
  },
318
276
  };
319
277
  };
320
- exports.TariffComparisonsApiFp = TariffComparisonsApiFp;
278
+ exports.OrganizationsApiFp = OrganizationsApiFp;
321
279
  /**
322
- * TariffComparisonsApi - factory interface
280
+ * OrganizationsApi - factory interface
323
281
  * @export
324
282
  */
325
- var TariffComparisonsApiFactory = function (configuration, basePath, axios) {
326
- var localVarFp = (0, exports.TariffComparisonsApiFp)(configuration);
283
+ var OrganizationsApiFactory = function (configuration, basePath, axios) {
284
+ var localVarFp = (0, exports.OrganizationsApiFp)(configuration);
327
285
  return {
328
286
  /**
329
- *
330
- * @param {CompareTariffsRequestDto} compareTariffsRequestDto
331
- * @param {string} [authorization] Bearer Token
332
- * @param {*} [options] Override http request option.
333
- * @throws {RequiredError}
334
- */
335
- compareTariffs: function (compareTariffsRequestDto, authorization, options) {
336
- return localVarFp.compareTariffs(compareTariffsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
337
- },
338
- /**
339
- *
340
- * @param {string} [authorization] Bearer Token
341
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product type [ car | homeowner | household | private-liability ]
287
+ * Get Organization by code
288
+ * @summary Retrieve the Organization
289
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
290
+ * @param {string} code
342
291
  * @param {*} [options] Override http request option.
343
292
  * @throws {RequiredError}
344
293
  */
345
- listTariffInsuranceCompanies: function (authorization, product, options) {
346
- return localVarFp.listTariffInsuranceCompanies(authorization, product, options).then(function (request) { return request(axios, basePath); });
294
+ getOrganization: function (authorization, code, options) {
295
+ return localVarFp.getOrganization(authorization, code, options).then(function (request) { return request(axios, basePath); });
347
296
  },
348
297
  /**
349
- *
350
- * @param {string} insurerName Insurer name
351
- * @param {string} [authorization] Bearer Token
352
- * @param {'car' | 'homeowner' | 'household' | 'privateLiability'} [product] Product
298
+ * This will fetch list of organizations
299
+ * @summary List organizations
300
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
301
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
302
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
303
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
304
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
305
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
306
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
353
307
  * @param {*} [options] Override http request option.
354
308
  * @throws {RequiredError}
355
309
  */
356
- listTariffs: function (insurerName, authorization, product, options) {
357
- return localVarFp.listTariffs(insurerName, authorization, product, options).then(function (request) { return request(axios, basePath); });
310
+ listOrganizations: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
311
+ return localVarFp.listOrganizations(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
358
312
  },
359
313
  };
360
314
  };
361
- exports.TariffComparisonsApiFactory = TariffComparisonsApiFactory;
315
+ exports.OrganizationsApiFactory = OrganizationsApiFactory;
362
316
  /**
363
- * TariffComparisonsApi - object-oriented interface
317
+ * OrganizationsApi - object-oriented interface
364
318
  * @export
365
- * @class TariffComparisonsApi
319
+ * @class OrganizationsApi
366
320
  * @extends {BaseAPI}
367
321
  */
368
- var TariffComparisonsApi = /** @class */ (function (_super) {
369
- __extends(TariffComparisonsApi, _super);
370
- function TariffComparisonsApi() {
322
+ var OrganizationsApi = /** @class */ (function (_super) {
323
+ __extends(OrganizationsApi, _super);
324
+ function OrganizationsApi() {
371
325
  return _super !== null && _super.apply(this, arguments) || this;
372
326
  }
373
327
  /**
374
- *
375
- * @param {TariffComparisonsApiCompareTariffsRequest} requestParameters Request parameters.
376
- * @param {*} [options] Override http request option.
377
- * @throws {RequiredError}
378
- * @memberof TariffComparisonsApi
379
- */
380
- TariffComparisonsApi.prototype.compareTariffs = function (requestParameters, options) {
381
- var _this = this;
382
- return (0, exports.TariffComparisonsApiFp)(this.configuration).compareTariffs(requestParameters.compareTariffsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
383
- };
384
- /**
385
- *
386
- * @param {TariffComparisonsApiListTariffInsuranceCompaniesRequest} requestParameters Request parameters.
328
+ * Get Organization by code
329
+ * @summary Retrieve the Organization
330
+ * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
387
331
  * @param {*} [options] Override http request option.
388
332
  * @throws {RequiredError}
389
- * @memberof TariffComparisonsApi
333
+ * @memberof OrganizationsApi
390
334
  */
391
- TariffComparisonsApi.prototype.listTariffInsuranceCompanies = function (requestParameters, options) {
335
+ OrganizationsApi.prototype.getOrganization = function (requestParameters, options) {
392
336
  var _this = this;
393
- if (requestParameters === void 0) { requestParameters = {}; }
394
- return (0, exports.TariffComparisonsApiFp)(this.configuration).listTariffInsuranceCompanies(requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
337
+ return (0, exports.OrganizationsApiFp)(this.configuration).getOrganization(requestParameters.authorization, requestParameters.code, options).then(function (request) { return request(_this.axios, _this.basePath); });
395
338
  };
396
339
  /**
397
- *
398
- * @param {TariffComparisonsApiListTariffsRequest} requestParameters Request parameters.
340
+ * This will fetch list of organizations
341
+ * @summary List organizations
342
+ * @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
399
343
  * @param {*} [options] Override http request option.
400
344
  * @throws {RequiredError}
401
- * @memberof TariffComparisonsApi
345
+ * @memberof OrganizationsApi
402
346
  */
403
- TariffComparisonsApi.prototype.listTariffs = function (requestParameters, options) {
347
+ OrganizationsApi.prototype.listOrganizations = function (requestParameters, options) {
404
348
  var _this = this;
405
- return (0, exports.TariffComparisonsApiFp)(this.configuration).listTariffs(requestParameters.insurerName, requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
349
+ return (0, exports.OrganizationsApiFp)(this.configuration).listOrganizations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
406
350
  };
407
- return TariffComparisonsApi;
351
+ return OrganizationsApi;
408
352
  }(base_1.BaseAPI));
409
- exports.TariffComparisonsApi = TariffComparisonsApi;
353
+ exports.OrganizationsApi = OrganizationsApi;