@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
package/api/users-api.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  * The EMIL TenantService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
- *
8
+ * Contact: kontakt@emil.de
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
11
  * https://openapi-generator.tech
@@ -27,23 +27,23 @@ import { AssignUserRolesResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { BatchDeleteRequestDto } from '../models';
29
29
  // @ts-ignore
30
+ import { BatchDeleteResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { DeleteResponseClass } from '../models';
33
+ // @ts-ignore
30
34
  import { DisableUserResponseClass } from '../models';
31
35
  // @ts-ignore
32
36
  import { DisableUsersRequestDto } from '../models';
33
37
  // @ts-ignore
38
+ import { DisableUsersResponseClass } from '../models';
39
+ // @ts-ignore
34
40
  import { EnableUserResponseClass } from '../models';
35
41
  // @ts-ignore
36
42
  import { EnableUsersRequestDto } from '../models';
37
43
  // @ts-ignore
38
- import { GetUserResponseClass } from '../models';
39
- // @ts-ignore
40
- import { InviteUserRequestDto } from '../models';
41
- // @ts-ignore
42
- import { InviteUserResponseClass } from '../models';
44
+ import { EnableUsersResponseClass } from '../models';
43
45
  // @ts-ignore
44
- import { InviteUsersRequestDto } from '../models';
45
- // @ts-ignore
46
- import { ListInvitesResponseClass } from '../models';
46
+ import { GetUserResponseClass } from '../models';
47
47
  // @ts-ignore
48
48
  import { ListUsersResponseClass } from '../models';
49
49
  // URLSearchParams not necessarily used
@@ -58,13 +58,15 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
58
58
  return {
59
59
  /**
60
60
  *
61
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
61
62
  * @param {number} id
62
63
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
63
- * @param {string} [authorization] Bearer Token
64
64
  * @param {*} [options] Override http request option.
65
65
  * @throws {RequiredError}
66
66
  */
67
- assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
67
+ assignUserRoles: async (authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
68
+ // verify required parameter 'authorization' is not null or undefined
69
+ assertParamExists('assignUserRoles', 'authorization', authorization)
68
70
  // verify required parameter 'id' is not null or undefined
69
71
  assertParamExists('assignUserRoles', 'id', id)
70
72
  // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
@@ -108,102 +110,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
108
110
  },
109
111
  /**
110
112
  *
113
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
111
114
  * @param {number} id
112
- * @param {string} [authorization] Bearer Token
113
- * @param {*} [options] Override http request option.
114
- * @throws {RequiredError}
115
- */
116
- deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
117
- // verify required parameter 'id' is not null or undefined
118
- assertParamExists('deleteInvite', 'id', id)
119
- const localVarPath = `/tenantservice/v1/users/invites/{id}`
120
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
121
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
122
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
123
- let baseOptions;
124
- let baseAccessToken;
125
- if (configuration) {
126
- baseOptions = configuration.baseOptions;
127
- baseAccessToken = configuration.accessToken;
128
- }
129
-
130
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
131
- const localVarHeaderParameter = {} as any;
132
- const localVarQueryParameter = {} as any;
133
-
134
- // authentication bearer required
135
- // http bearer authentication required
136
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
137
-
138
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
139
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
140
- }
141
-
142
-
143
-
144
- setSearchParams(localVarUrlObj, localVarQueryParameter);
145
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147
-
148
- return {
149
- url: toPathString(localVarUrlObj),
150
- options: localVarRequestOptions,
151
- };
152
- },
153
- /**
154
- *
155
- * @param {BatchDeleteRequestDto} batchDeleteRequestDto
156
- * @param {string} [authorization] Bearer Token
157
- * @param {*} [options] Override http request option.
158
- * @throws {RequiredError}
159
- */
160
- deleteInvites: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
161
- // verify required parameter 'batchDeleteRequestDto' is not null or undefined
162
- assertParamExists('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto)
163
- const localVarPath = `/tenantservice/v1/users/invites/delete-batch`;
164
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
165
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
166
- let baseOptions;
167
- let baseAccessToken;
168
- if (configuration) {
169
- baseOptions = configuration.baseOptions;
170
- baseAccessToken = configuration.accessToken;
171
- }
172
-
173
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
174
- const localVarHeaderParameter = {} as any;
175
- const localVarQueryParameter = {} as any;
176
-
177
- // authentication bearer required
178
- // http bearer authentication required
179
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
180
-
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
- }
184
-
185
-
186
-
187
- localVarHeaderParameter['Content-Type'] = 'application/json';
188
-
189
- setSearchParams(localVarUrlObj, localVarQueryParameter);
190
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
191
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
192
- localVarRequestOptions.data = serializeDataIfNeeded(batchDeleteRequestDto, localVarRequestOptions, configuration)
193
-
194
- return {
195
- url: toPathString(localVarUrlObj),
196
- options: localVarRequestOptions,
197
- };
198
- },
199
- /**
200
- *
201
- * @param {number} id
202
- * @param {string} [authorization] Bearer Token
203
115
  * @param {*} [options] Override http request option.
204
116
  * @throws {RequiredError}
205
117
  */
206
- deleteUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
118
+ deleteUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
119
+ // verify required parameter 'authorization' is not null or undefined
120
+ assertParamExists('deleteUser', 'authorization', authorization)
207
121
  // verify required parameter 'id' is not null or undefined
208
122
  assertParamExists('deleteUser', 'id', id)
209
123
  const localVarPath = `/tenantservice/v1/users/{id}`
@@ -242,12 +156,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
242
156
  },
243
157
  /**
244
158
  *
159
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
245
160
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
246
- * @param {string} [authorization] Bearer Token
247
161
  * @param {*} [options] Override http request option.
248
162
  * @throws {RequiredError}
249
163
  */
250
- deleteUsers: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
164
+ deleteUsers: async (authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
+ // verify required parameter 'authorization' is not null or undefined
166
+ assertParamExists('deleteUsers', 'authorization', authorization)
251
167
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
252
168
  assertParamExists('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto)
253
169
  const localVarPath = `/tenantservice/v1/users/delete-batch`;
@@ -288,12 +204,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
288
204
  },
289
205
  /**
290
206
  *
207
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
291
208
  * @param {number} id
292
- * @param {string} [authorization] Bearer Token
293
209
  * @param {*} [options] Override http request option.
294
210
  * @throws {RequiredError}
295
211
  */
296
- disableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
212
+ disableUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
213
+ // verify required parameter 'authorization' is not null or undefined
214
+ assertParamExists('disableUser', 'authorization', authorization)
297
215
  // verify required parameter 'id' is not null or undefined
298
216
  assertParamExists('disableUser', 'id', id)
299
217
  const localVarPath = `/tenantservice/v1/users/{id}/disable`
@@ -332,12 +250,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
332
250
  },
333
251
  /**
334
252
  *
253
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
335
254
  * @param {DisableUsersRequestDto} disableUsersRequestDto
336
- * @param {string} [authorization] Bearer Token
337
255
  * @param {*} [options] Override http request option.
338
256
  * @throws {RequiredError}
339
257
  */
340
- disableUsers: async (disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
258
+ disableUsers: async (authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ // verify required parameter 'authorization' is not null or undefined
260
+ assertParamExists('disableUsers', 'authorization', authorization)
341
261
  // verify required parameter 'disableUsersRequestDto' is not null or undefined
342
262
  assertParamExists('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto)
343
263
  const localVarPath = `/tenantservice/v1/users/disable-batch`;
@@ -378,12 +298,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
378
298
  },
379
299
  /**
380
300
  *
301
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
381
302
  * @param {number} id
382
- * @param {string} [authorization] Bearer Token
383
303
  * @param {*} [options] Override http request option.
384
304
  * @throws {RequiredError}
385
305
  */
386
- enableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
306
+ enableUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
307
+ // verify required parameter 'authorization' is not null or undefined
308
+ assertParamExists('enableUser', 'authorization', authorization)
387
309
  // verify required parameter 'id' is not null or undefined
388
310
  assertParamExists('enableUser', 'id', id)
389
311
  const localVarPath = `/tenantservice/v1/users/{id}/enable`
@@ -422,12 +344,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
422
344
  },
423
345
  /**
424
346
  *
347
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
425
348
  * @param {EnableUsersRequestDto} enableUsersRequestDto
426
- * @param {string} [authorization] Bearer Token
427
349
  * @param {*} [options] Override http request option.
428
350
  * @throws {RequiredError}
429
351
  */
430
- enableUsers: async (enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
352
+ enableUsers: async (authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
353
+ // verify required parameter 'authorization' is not null or undefined
354
+ assertParamExists('enableUsers', 'authorization', authorization)
431
355
  // verify required parameter 'enableUsersRequestDto' is not null or undefined
432
356
  assertParamExists('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto)
433
357
  const localVarPath = `/tenantservice/v1/users/enable-batch`;
@@ -468,14 +392,16 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
468
392
  },
469
393
  /**
470
394
  *
395
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
471
396
  * @param {string} code
472
397
  * @param {string} code2 code
473
- * @param {string} [authorization] Bearer Token
474
398
  * @param {string} [expand] Fields to expand response by
475
399
  * @param {*} [options] Override http request option.
476
400
  * @throws {RequiredError}
477
401
  */
478
- getUser: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
402
+ getUser: async (authorization: string, code: string, code2: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
403
+ // verify required parameter 'authorization' is not null or undefined
404
+ assertParamExists('getUser', 'authorization', authorization)
479
405
  // verify required parameter 'code' is not null or undefined
480
406
  assertParamExists('getUser', 'code', code)
481
407
  // verify required parameter 'code2' is not null or undefined
@@ -523,180 +449,21 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
523
449
  };
524
450
  },
525
451
  /**
526
- *
527
- * @param {InviteUserRequestDto} inviteUserRequestDto
528
- * @param {string} [authorization] Bearer Token
529
- * @param {*} [options] Override http request option.
530
- * @throws {RequiredError}
531
- */
532
- inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
533
- // verify required parameter 'inviteUserRequestDto' is not null or undefined
534
- assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
535
- const localVarPath = `/tenantservice/v1/users/invites`;
536
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
537
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
538
- let baseOptions;
539
- let baseAccessToken;
540
- if (configuration) {
541
- baseOptions = configuration.baseOptions;
542
- baseAccessToken = configuration.accessToken;
543
- }
544
-
545
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
546
- const localVarHeaderParameter = {} as any;
547
- const localVarQueryParameter = {} as any;
548
-
549
- // authentication bearer required
550
- // http bearer authentication required
551
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
552
-
553
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
554
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
555
- }
556
-
557
-
558
-
559
- localVarHeaderParameter['Content-Type'] = 'application/json';
560
-
561
- setSearchParams(localVarUrlObj, localVarQueryParameter);
562
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
563
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
564
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDto, localVarRequestOptions, configuration)
565
-
566
- return {
567
- url: toPathString(localVarUrlObj),
568
- options: localVarRequestOptions,
569
- };
570
- },
571
- /**
572
- *
573
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
574
- * @param {string} [authorization] Bearer Token
575
- * @param {*} [options] Override http request option.
576
- * @throws {RequiredError}
577
- */
578
- inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
579
- // verify required parameter 'inviteUsersRequestDto' is not null or undefined
580
- assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
581
- const localVarPath = `/tenantservice/v1/users/invites/batch`;
582
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
583
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
584
- let baseOptions;
585
- let baseAccessToken;
586
- if (configuration) {
587
- baseOptions = configuration.baseOptions;
588
- baseAccessToken = configuration.accessToken;
589
- }
590
-
591
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
592
- const localVarHeaderParameter = {} as any;
593
- const localVarQueryParameter = {} as any;
594
-
595
- // authentication bearer required
596
- // http bearer authentication required
597
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
598
-
599
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
600
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
601
- }
602
-
603
-
604
-
605
- localVarHeaderParameter['Content-Type'] = 'application/json';
606
-
607
- setSearchParams(localVarUrlObj, localVarQueryParameter);
608
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
609
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
610
- localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDto, localVarRequestOptions, configuration)
611
-
612
- return {
613
- url: toPathString(localVarUrlObj),
614
- options: localVarRequestOptions,
615
- };
616
- },
617
- /**
618
- *
619
- * @param {string} [authorization] Bearer Token
620
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
621
- * @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.
622
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
623
- * @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.
624
- * @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.
625
- * @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.
626
- * @param {*} [options] Override http request option.
627
- * @throws {RequiredError}
628
- */
629
- listInvites: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
630
- const localVarPath = `/tenantservice/v1/users/invites`;
631
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
632
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
633
- let baseOptions;
634
- let baseAccessToken;
635
- if (configuration) {
636
- baseOptions = configuration.baseOptions;
637
- baseAccessToken = configuration.accessToken;
638
- }
639
-
640
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
641
- const localVarHeaderParameter = {} as any;
642
- const localVarQueryParameter = {} as any;
643
-
644
- // authentication bearer required
645
- // http bearer authentication required
646
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
647
-
648
- if (pageSize !== undefined) {
649
- localVarQueryParameter['pageSize'] = pageSize;
650
- }
651
-
652
- if (pageToken !== undefined) {
653
- localVarQueryParameter['pageToken'] = pageToken;
654
- }
655
-
656
- if (filter !== undefined) {
657
- localVarQueryParameter['filter'] = filter;
658
- }
659
-
660
- if (search !== undefined) {
661
- localVarQueryParameter['search'] = search;
662
- }
663
-
664
- if (order !== undefined) {
665
- localVarQueryParameter['order'] = order;
666
- }
667
-
668
- if (expand !== undefined) {
669
- localVarQueryParameter['expand'] = expand;
670
- }
671
-
672
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
673
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
674
- }
675
-
676
-
677
-
678
- setSearchParams(localVarUrlObj, localVarQueryParameter);
679
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
680
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
681
-
682
- return {
683
- url: toPathString(localVarUrlObj),
684
- options: localVarRequestOptions,
685
- };
686
- },
687
- /**
688
- *
689
- * @param {string} [authorization] Bearer Token
690
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
691
- * @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.
452
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
453
+ * @summary List users
454
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
455
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
456
+ * @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.
692
457
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
693
458
  * @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.
694
- * @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.
695
- * @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.
459
+ * @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.
460
+ * @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.
696
461
  * @param {*} [options] Override http request option.
697
462
  * @throws {RequiredError}
698
463
  */
699
- listUsers: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
464
+ listUsers: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
465
+ // verify required parameter 'authorization' is not null or undefined
466
+ assertParamExists('listUsers', 'authorization', authorization)
700
467
  const localVarPath = `/tenantservice/v1/users`;
701
468
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
702
469
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -766,168 +533,109 @@ export const UsersApiFp = function(configuration?: Configuration) {
766
533
  return {
767
534
  /**
768
535
  *
536
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
769
537
  * @param {number} id
770
538
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
771
- * @param {string} [authorization] Bearer Token
772
539
  * @param {*} [options] Override http request option.
773
540
  * @throws {RequiredError}
774
541
  */
775
- async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
776
- const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
542
+ async assignUserRoles(authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
543
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(authorization, id, assignUserRolesRequestDto, options);
777
544
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
778
545
  },
779
546
  /**
780
547
  *
548
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
781
549
  * @param {number} id
782
- * @param {string} [authorization] Bearer Token
783
550
  * @param {*} [options] Override http request option.
784
551
  * @throws {RequiredError}
785
552
  */
786
- async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
787
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
553
+ async deleteUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
554
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(authorization, id, options);
788
555
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
789
556
  },
790
557
  /**
791
558
  *
559
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
792
560
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
793
- * @param {string} [authorization] Bearer Token
794
561
  * @param {*} [options] Override http request option.
795
562
  * @throws {RequiredError}
796
563
  */
797
- async deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
798
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options);
564
+ async deleteUsers(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
565
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(authorization, batchDeleteRequestDto, options);
799
566
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
800
567
  },
801
568
  /**
802
569
  *
570
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
803
571
  * @param {number} id
804
- * @param {string} [authorization] Bearer Token
805
572
  * @param {*} [options] Override http request option.
806
573
  * @throws {RequiredError}
807
574
  */
808
- async deleteUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
809
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, authorization, options);
810
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
811
- },
812
- /**
813
- *
814
- * @param {BatchDeleteRequestDto} batchDeleteRequestDto
815
- * @param {string} [authorization] Bearer Token
816
- * @param {*} [options] Override http request option.
817
- * @throws {RequiredError}
818
- */
819
- async deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
820
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options);
821
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
822
- },
823
- /**
824
- *
825
- * @param {number} id
826
- * @param {string} [authorization] Bearer Token
827
- * @param {*} [options] Override http request option.
828
- * @throws {RequiredError}
829
- */
830
- async disableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
831
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(id, authorization, options);
575
+ async disableUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
576
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(authorization, id, options);
832
577
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
833
578
  },
834
579
  /**
835
580
  *
581
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
836
582
  * @param {DisableUsersRequestDto} disableUsersRequestDto
837
- * @param {string} [authorization] Bearer Token
838
583
  * @param {*} [options] Override http request option.
839
584
  * @throws {RequiredError}
840
585
  */
841
- async disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
842
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options);
586
+ async disableUsers(authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUsersResponseClass>> {
587
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(authorization, disableUsersRequestDto, options);
843
588
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
844
589
  },
845
590
  /**
846
591
  *
592
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
847
593
  * @param {number} id
848
- * @param {string} [authorization] Bearer Token
849
594
  * @param {*} [options] Override http request option.
850
595
  * @throws {RequiredError}
851
596
  */
852
- async enableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
853
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(id, authorization, options);
597
+ async enableUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
598
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(authorization, id, options);
854
599
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
855
600
  },
856
601
  /**
857
602
  *
603
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
858
604
  * @param {EnableUsersRequestDto} enableUsersRequestDto
859
- * @param {string} [authorization] Bearer Token
860
605
  * @param {*} [options] Override http request option.
861
606
  * @throws {RequiredError}
862
607
  */
863
- async enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
864
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(enableUsersRequestDto, authorization, options);
608
+ async enableUsers(authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUsersResponseClass>> {
609
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(authorization, enableUsersRequestDto, options);
865
610
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
866
611
  },
867
612
  /**
868
613
  *
614
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
869
615
  * @param {string} code
870
616
  * @param {string} code2 code
871
- * @param {string} [authorization] Bearer Token
872
617
  * @param {string} [expand] Fields to expand response by
873
618
  * @param {*} [options] Override http request option.
874
619
  * @throws {RequiredError}
875
620
  */
876
- async getUser(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
877
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, code2, authorization, expand, options);
878
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
879
- },
880
- /**
881
- *
882
- * @param {InviteUserRequestDto} inviteUserRequestDto
883
- * @param {string} [authorization] Bearer Token
884
- * @param {*} [options] Override http request option.
885
- * @throws {RequiredError}
886
- */
887
- async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
888
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
889
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
890
- },
891
- /**
892
- *
893
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
894
- * @param {string} [authorization] Bearer Token
895
- * @param {*} [options] Override http request option.
896
- * @throws {RequiredError}
897
- */
898
- async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
899
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
900
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
901
- },
902
- /**
903
- *
904
- * @param {string} [authorization] Bearer Token
905
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
906
- * @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.
907
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
908
- * @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.
909
- * @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.
910
- * @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.
911
- * @param {*} [options] Override http request option.
912
- * @throws {RequiredError}
913
- */
914
- async listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvitesResponseClass>> {
915
- const localVarAxiosArgs = await localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options);
621
+ async getUser(authorization: string, code: string, code2: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
622
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(authorization, code, code2, expand, options);
916
623
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
917
624
  },
918
625
  /**
919
- *
920
- * @param {string} [authorization] Bearer Token
921
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
922
- * @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.
626
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
627
+ * @summary List users
628
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
629
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
630
+ * @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.
923
631
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
924
632
  * @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.
925
- * @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.
926
- * @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.
633
+ * @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.
634
+ * @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.
927
635
  * @param {*} [options] Override http request option.
928
636
  * @throws {RequiredError}
929
637
  */
930
- async listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
638
+ async listUsers(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListUsersResponseClass>> {
931
639
  const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options);
932
640
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
933
641
  },
@@ -943,155 +651,101 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
943
651
  return {
944
652
  /**
945
653
  *
654
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
946
655
  * @param {number} id
947
656
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
948
- * @param {string} [authorization] Bearer Token
949
657
  * @param {*} [options] Override http request option.
950
658
  * @throws {RequiredError}
951
659
  */
952
- assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
953
- return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
660
+ assignUserRoles(authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
661
+ return localVarFp.assignUserRoles(authorization, id, assignUserRolesRequestDto, options).then((request) => request(axios, basePath));
954
662
  },
955
663
  /**
956
664
  *
665
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
957
666
  * @param {number} id
958
- * @param {string} [authorization] Bearer Token
959
667
  * @param {*} [options] Override http request option.
960
668
  * @throws {RequiredError}
961
669
  */
962
- deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<object> {
963
- return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
670
+ deleteUser(authorization: string, id: number, options?: any): AxiosPromise<DeleteResponseClass> {
671
+ return localVarFp.deleteUser(authorization, id, options).then((request) => request(axios, basePath));
964
672
  },
965
673
  /**
966
674
  *
675
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
967
676
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
968
- * @param {string} [authorization] Bearer Token
969
677
  * @param {*} [options] Override http request option.
970
678
  * @throws {RequiredError}
971
679
  */
972
- deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
973
- return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
680
+ deleteUsers(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: any): AxiosPromise<BatchDeleteResponseClass> {
681
+ return localVarFp.deleteUsers(authorization, batchDeleteRequestDto, options).then((request) => request(axios, basePath));
974
682
  },
975
683
  /**
976
684
  *
685
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
977
686
  * @param {number} id
978
- * @param {string} [authorization] Bearer Token
979
- * @param {*} [options] Override http request option.
980
- * @throws {RequiredError}
981
- */
982
- deleteUser(id: number, authorization?: string, options?: any): AxiosPromise<object> {
983
- return localVarFp.deleteUser(id, authorization, options).then((request) => request(axios, basePath));
984
- },
985
- /**
986
- *
987
- * @param {BatchDeleteRequestDto} batchDeleteRequestDto
988
- * @param {string} [authorization] Bearer Token
989
687
  * @param {*} [options] Override http request option.
990
688
  * @throws {RequiredError}
991
689
  */
992
- deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
993
- return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
994
- },
995
- /**
996
- *
997
- * @param {number} id
998
- * @param {string} [authorization] Bearer Token
999
- * @param {*} [options] Override http request option.
1000
- * @throws {RequiredError}
1001
- */
1002
- disableUser(id: number, authorization?: string, options?: any): AxiosPromise<DisableUserResponseClass> {
1003
- return localVarFp.disableUser(id, authorization, options).then((request) => request(axios, basePath));
690
+ disableUser(authorization: string, id: number, options?: any): AxiosPromise<DisableUserResponseClass> {
691
+ return localVarFp.disableUser(authorization, id, options).then((request) => request(axios, basePath));
1004
692
  },
1005
693
  /**
1006
694
  *
695
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
1007
696
  * @param {DisableUsersRequestDto} disableUsersRequestDto
1008
- * @param {string} [authorization] Bearer Token
1009
697
  * @param {*} [options] Override http request option.
1010
698
  * @throws {RequiredError}
1011
699
  */
1012
- disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
1013
- return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
700
+ disableUsers(authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options?: any): AxiosPromise<DisableUsersResponseClass> {
701
+ return localVarFp.disableUsers(authorization, disableUsersRequestDto, options).then((request) => request(axios, basePath));
1014
702
  },
1015
703
  /**
1016
704
  *
705
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
1017
706
  * @param {number} id
1018
- * @param {string} [authorization] Bearer Token
1019
707
  * @param {*} [options] Override http request option.
1020
708
  * @throws {RequiredError}
1021
709
  */
1022
- enableUser(id: number, authorization?: string, options?: any): AxiosPromise<EnableUserResponseClass> {
1023
- return localVarFp.enableUser(id, authorization, options).then((request) => request(axios, basePath));
710
+ enableUser(authorization: string, id: number, options?: any): AxiosPromise<EnableUserResponseClass> {
711
+ return localVarFp.enableUser(authorization, id, options).then((request) => request(axios, basePath));
1024
712
  },
1025
713
  /**
1026
714
  *
715
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
1027
716
  * @param {EnableUsersRequestDto} enableUsersRequestDto
1028
- * @param {string} [authorization] Bearer Token
1029
717
  * @param {*} [options] Override http request option.
1030
718
  * @throws {RequiredError}
1031
719
  */
1032
- enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
1033
- return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
720
+ enableUsers(authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options?: any): AxiosPromise<EnableUsersResponseClass> {
721
+ return localVarFp.enableUsers(authorization, enableUsersRequestDto, options).then((request) => request(axios, basePath));
1034
722
  },
1035
723
  /**
1036
724
  *
725
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
1037
726
  * @param {string} code
1038
727
  * @param {string} code2 code
1039
- * @param {string} [authorization] Bearer Token
1040
728
  * @param {string} [expand] Fields to expand response by
1041
729
  * @param {*} [options] Override http request option.
1042
730
  * @throws {RequiredError}
1043
731
  */
1044
- getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
1045
- return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
1046
- },
1047
- /**
1048
- *
1049
- * @param {InviteUserRequestDto} inviteUserRequestDto
1050
- * @param {string} [authorization] Bearer Token
1051
- * @param {*} [options] Override http request option.
1052
- * @throws {RequiredError}
1053
- */
1054
- inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
1055
- return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
732
+ getUser(authorization: string, code: string, code2: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
733
+ return localVarFp.getUser(authorization, code, code2, expand, options).then((request) => request(axios, basePath));
1056
734
  },
1057
735
  /**
1058
- *
1059
- * @param {InviteUsersRequestDto} inviteUsersRequestDto
1060
- * @param {string} [authorization] Bearer Token
1061
- * @param {*} [options] Override http request option.
1062
- * @throws {RequiredError}
1063
- */
1064
- inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
1065
- return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
1066
- },
1067
- /**
1068
- *
1069
- * @param {string} [authorization] Bearer Token
1070
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1071
- * @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.
736
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
737
+ * @summary List users
738
+ * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
739
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
740
+ * @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.
1072
741
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1073
742
  * @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.
1074
- * @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.
1075
- * @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.
743
+ * @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.
744
+ * @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.
1076
745
  * @param {*} [options] Override http request option.
1077
746
  * @throws {RequiredError}
1078
747
  */
1079
- listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvitesResponseClass> {
1080
- return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1081
- },
1082
- /**
1083
- *
1084
- * @param {string} [authorization] Bearer Token
1085
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1086
- * @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.
1087
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1088
- * @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.
1089
- * @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.
1090
- * @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.
1091
- * @param {*} [options] Override http request option.
1092
- * @throws {RequiredError}
1093
- */
1094
- listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
748
+ listUsers(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
1095
749
  return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1096
750
  },
1097
751
  };
@@ -1104,67 +758,25 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
1104
758
  */
1105
759
  export interface UsersApiAssignUserRolesRequest {
1106
760
  /**
1107
- *
1108
- * @type {number}
1109
- * @memberof UsersApiAssignUserRoles
1110
- */
1111
- readonly id: number
1112
-
1113
- /**
1114
- *
1115
- * @type {AssignUserRolesRequestDto}
1116
- * @memberof UsersApiAssignUserRoles
1117
- */
1118
- readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
1119
-
1120
- /**
1121
- * Bearer Token
761
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1122
762
  * @type {string}
1123
763
  * @memberof UsersApiAssignUserRoles
1124
764
  */
1125
- readonly authorization?: string
1126
- }
765
+ readonly authorization: string
1127
766
 
1128
- /**
1129
- * Request parameters for deleteInvite operation in UsersApi.
1130
- * @export
1131
- * @interface UsersApiDeleteInviteRequest
1132
- */
1133
- export interface UsersApiDeleteInviteRequest {
1134
767
  /**
1135
768
  *
1136
769
  * @type {number}
1137
- * @memberof UsersApiDeleteInvite
770
+ * @memberof UsersApiAssignUserRoles
1138
771
  */
1139
772
  readonly id: number
1140
773
 
1141
- /**
1142
- * Bearer Token
1143
- * @type {string}
1144
- * @memberof UsersApiDeleteInvite
1145
- */
1146
- readonly authorization?: string
1147
- }
1148
-
1149
- /**
1150
- * Request parameters for deleteInvites operation in UsersApi.
1151
- * @export
1152
- * @interface UsersApiDeleteInvitesRequest
1153
- */
1154
- export interface UsersApiDeleteInvitesRequest {
1155
774
  /**
1156
775
  *
1157
- * @type {BatchDeleteRequestDto}
1158
- * @memberof UsersApiDeleteInvites
1159
- */
1160
- readonly batchDeleteRequestDto: BatchDeleteRequestDto
1161
-
1162
- /**
1163
- * Bearer Token
1164
- * @type {string}
1165
- * @memberof UsersApiDeleteInvites
776
+ * @type {AssignUserRolesRequestDto}
777
+ * @memberof UsersApiAssignUserRoles
1166
778
  */
1167
- readonly authorization?: string
779
+ readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
1168
780
  }
1169
781
 
1170
782
  /**
@@ -1174,18 +786,18 @@ export interface UsersApiDeleteInvitesRequest {
1174
786
  */
1175
787
  export interface UsersApiDeleteUserRequest {
1176
788
  /**
1177
- *
1178
- * @type {number}
789
+ * Bearer Token: provided by the login endpoint under the name accessToken.
790
+ * @type {string}
1179
791
  * @memberof UsersApiDeleteUser
1180
792
  */
1181
- readonly id: number
793
+ readonly authorization: string
1182
794
 
1183
795
  /**
1184
- * Bearer Token
1185
- * @type {string}
796
+ *
797
+ * @type {number}
1186
798
  * @memberof UsersApiDeleteUser
1187
799
  */
1188
- readonly authorization?: string
800
+ readonly id: number
1189
801
  }
1190
802
 
1191
803
  /**
@@ -1195,18 +807,18 @@ export interface UsersApiDeleteUserRequest {
1195
807
  */
1196
808
  export interface UsersApiDeleteUsersRequest {
1197
809
  /**
1198
- *
1199
- * @type {BatchDeleteRequestDto}
810
+ * Bearer Token: provided by the login endpoint under the name accessToken.
811
+ * @type {string}
1200
812
  * @memberof UsersApiDeleteUsers
1201
813
  */
1202
- readonly batchDeleteRequestDto: BatchDeleteRequestDto
814
+ readonly authorization: string
1203
815
 
1204
816
  /**
1205
- * Bearer Token
1206
- * @type {string}
817
+ *
818
+ * @type {BatchDeleteRequestDto}
1207
819
  * @memberof UsersApiDeleteUsers
1208
820
  */
1209
- readonly authorization?: string
821
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
1210
822
  }
1211
823
 
1212
824
  /**
@@ -1216,18 +828,18 @@ export interface UsersApiDeleteUsersRequest {
1216
828
  */
1217
829
  export interface UsersApiDisableUserRequest {
1218
830
  /**
1219
- *
1220
- * @type {number}
831
+ * Bearer Token: provided by the login endpoint under the name accessToken.
832
+ * @type {string}
1221
833
  * @memberof UsersApiDisableUser
1222
834
  */
1223
- readonly id: number
835
+ readonly authorization: string
1224
836
 
1225
837
  /**
1226
- * Bearer Token
1227
- * @type {string}
838
+ *
839
+ * @type {number}
1228
840
  * @memberof UsersApiDisableUser
1229
841
  */
1230
- readonly authorization?: string
842
+ readonly id: number
1231
843
  }
1232
844
 
1233
845
  /**
@@ -1237,18 +849,18 @@ export interface UsersApiDisableUserRequest {
1237
849
  */
1238
850
  export interface UsersApiDisableUsersRequest {
1239
851
  /**
1240
- *
1241
- * @type {DisableUsersRequestDto}
852
+ * Bearer Token: provided by the login endpoint under the name accessToken.
853
+ * @type {string}
1242
854
  * @memberof UsersApiDisableUsers
1243
855
  */
1244
- readonly disableUsersRequestDto: DisableUsersRequestDto
856
+ readonly authorization: string
1245
857
 
1246
858
  /**
1247
- * Bearer Token
1248
- * @type {string}
859
+ *
860
+ * @type {DisableUsersRequestDto}
1249
861
  * @memberof UsersApiDisableUsers
1250
862
  */
1251
- readonly authorization?: string
863
+ readonly disableUsersRequestDto: DisableUsersRequestDto
1252
864
  }
1253
865
 
1254
866
  /**
@@ -1258,18 +870,18 @@ export interface UsersApiDisableUsersRequest {
1258
870
  */
1259
871
  export interface UsersApiEnableUserRequest {
1260
872
  /**
1261
- *
1262
- * @type {number}
873
+ * Bearer Token: provided by the login endpoint under the name accessToken.
874
+ * @type {string}
1263
875
  * @memberof UsersApiEnableUser
1264
876
  */
1265
- readonly id: number
877
+ readonly authorization: string
1266
878
 
1267
879
  /**
1268
- * Bearer Token
1269
- * @type {string}
880
+ *
881
+ * @type {number}
1270
882
  * @memberof UsersApiEnableUser
1271
883
  */
1272
- readonly authorization?: string
884
+ readonly id: number
1273
885
  }
1274
886
 
1275
887
  /**
@@ -1279,18 +891,18 @@ export interface UsersApiEnableUserRequest {
1279
891
  */
1280
892
  export interface UsersApiEnableUsersRequest {
1281
893
  /**
1282
- *
1283
- * @type {EnableUsersRequestDto}
894
+ * Bearer Token: provided by the login endpoint under the name accessToken.
895
+ * @type {string}
1284
896
  * @memberof UsersApiEnableUsers
1285
897
  */
1286
- readonly enableUsersRequestDto: EnableUsersRequestDto
898
+ readonly authorization: string
1287
899
 
1288
900
  /**
1289
- * Bearer Token
1290
- * @type {string}
901
+ *
902
+ * @type {EnableUsersRequestDto}
1291
903
  * @memberof UsersApiEnableUsers
1292
904
  */
1293
- readonly authorization?: string
905
+ readonly enableUsersRequestDto: EnableUsersRequestDto
1294
906
  }
1295
907
 
1296
908
  /**
@@ -1300,25 +912,25 @@ export interface UsersApiEnableUsersRequest {
1300
912
  */
1301
913
  export interface UsersApiGetUserRequest {
1302
914
  /**
1303
- *
915
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1304
916
  * @type {string}
1305
917
  * @memberof UsersApiGetUser
1306
918
  */
1307
- readonly code: string
919
+ readonly authorization: string
1308
920
 
1309
921
  /**
1310
- * code
922
+ *
1311
923
  * @type {string}
1312
924
  * @memberof UsersApiGetUser
1313
925
  */
1314
- readonly code2: string
926
+ readonly code: string
1315
927
 
1316
928
  /**
1317
- * Bearer Token
929
+ * code
1318
930
  * @type {string}
1319
931
  * @memberof UsersApiGetUser
1320
932
  */
1321
- readonly authorization?: string
933
+ readonly code2: string
1322
934
 
1323
935
  /**
1324
936
  * Fields to expand response by
@@ -1328,104 +940,6 @@ export interface UsersApiGetUserRequest {
1328
940
  readonly expand?: string
1329
941
  }
1330
942
 
1331
- /**
1332
- * Request parameters for inviteUser operation in UsersApi.
1333
- * @export
1334
- * @interface UsersApiInviteUserRequest
1335
- */
1336
- export interface UsersApiInviteUserRequest {
1337
- /**
1338
- *
1339
- * @type {InviteUserRequestDto}
1340
- * @memberof UsersApiInviteUser
1341
- */
1342
- readonly inviteUserRequestDto: InviteUserRequestDto
1343
-
1344
- /**
1345
- * Bearer Token
1346
- * @type {string}
1347
- * @memberof UsersApiInviteUser
1348
- */
1349
- readonly authorization?: string
1350
- }
1351
-
1352
- /**
1353
- * Request parameters for inviteUsers operation in UsersApi.
1354
- * @export
1355
- * @interface UsersApiInviteUsersRequest
1356
- */
1357
- export interface UsersApiInviteUsersRequest {
1358
- /**
1359
- *
1360
- * @type {InviteUsersRequestDto}
1361
- * @memberof UsersApiInviteUsers
1362
- */
1363
- readonly inviteUsersRequestDto: InviteUsersRequestDto
1364
-
1365
- /**
1366
- * Bearer Token
1367
- * @type {string}
1368
- * @memberof UsersApiInviteUsers
1369
- */
1370
- readonly authorization?: string
1371
- }
1372
-
1373
- /**
1374
- * Request parameters for listInvites operation in UsersApi.
1375
- * @export
1376
- * @interface UsersApiListInvitesRequest
1377
- */
1378
- export interface UsersApiListInvitesRequest {
1379
- /**
1380
- * Bearer Token
1381
- * @type {string}
1382
- * @memberof UsersApiListInvites
1383
- */
1384
- readonly authorization?: string
1385
-
1386
- /**
1387
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1388
- * @type {any}
1389
- * @memberof UsersApiListInvites
1390
- */
1391
- readonly pageSize?: any
1392
-
1393
- /**
1394
- * 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.
1395
- * @type {any}
1396
- * @memberof UsersApiListInvites
1397
- */
1398
- readonly pageToken?: any
1399
-
1400
- /**
1401
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1402
- * @type {any}
1403
- * @memberof UsersApiListInvites
1404
- */
1405
- readonly filter?: any
1406
-
1407
- /**
1408
- * 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.
1409
- * @type {any}
1410
- * @memberof UsersApiListInvites
1411
- */
1412
- readonly search?: any
1413
-
1414
- /**
1415
- * 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.
1416
- * @type {any}
1417
- * @memberof UsersApiListInvites
1418
- */
1419
- readonly order?: any
1420
-
1421
- /**
1422
- * 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.
1423
- * @type {any}
1424
- * @memberof UsersApiListInvites
1425
- */
1426
- readonly expand?: any
1427
- }
1428
-
1429
943
  /**
1430
944
  * Request parameters for listUsers operation in UsersApi.
1431
945
  * @export
@@ -1433,21 +947,21 @@ export interface UsersApiListInvitesRequest {
1433
947
  */
1434
948
  export interface UsersApiListUsersRequest {
1435
949
  /**
1436
- * Bearer Token
950
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1437
951
  * @type {string}
1438
952
  * @memberof UsersApiListUsers
1439
953
  */
1440
- readonly authorization?: string
954
+ readonly authorization: string
1441
955
 
1442
956
  /**
1443
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
957
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1444
958
  * @type {any}
1445
959
  * @memberof UsersApiListUsers
1446
960
  */
1447
961
  readonly pageSize?: any
1448
962
 
1449
963
  /**
1450
- * 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.
964
+ * 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.
1451
965
  * @type {any}
1452
966
  * @memberof UsersApiListUsers
1453
967
  */
@@ -1468,14 +982,14 @@ export interface UsersApiListUsersRequest {
1468
982
  readonly search?: any
1469
983
 
1470
984
  /**
1471
- * 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.
985
+ * 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.
1472
986
  * @type {any}
1473
987
  * @memberof UsersApiListUsers
1474
988
  */
1475
989
  readonly order?: any
1476
990
 
1477
991
  /**
1478
- * 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.
992
+ * 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.
1479
993
  * @type {any}
1480
994
  * @memberof UsersApiListUsers
1481
995
  */
@@ -1497,29 +1011,7 @@ export class UsersApi extends BaseAPI {
1497
1011
  * @memberof UsersApi
1498
1012
  */
1499
1013
  public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
1500
- return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1501
- }
1502
-
1503
- /**
1504
- *
1505
- * @param {UsersApiDeleteInviteRequest} requestParameters Request parameters.
1506
- * @param {*} [options] Override http request option.
1507
- * @throws {RequiredError}
1508
- * @memberof UsersApi
1509
- */
1510
- public deleteInvite(requestParameters: UsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
1511
- return UsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1512
- }
1513
-
1514
- /**
1515
- *
1516
- * @param {UsersApiDeleteInvitesRequest} requestParameters Request parameters.
1517
- * @param {*} [options] Override http request option.
1518
- * @throws {RequiredError}
1519
- * @memberof UsersApi
1520
- */
1521
- public deleteInvites(requestParameters: UsersApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
1522
- return UsersApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1014
+ return UsersApiFp(this.configuration).assignUserRoles(requestParameters.authorization, requestParameters.id, requestParameters.assignUserRolesRequestDto, options).then((request) => request(this.axios, this.basePath));
1523
1015
  }
1524
1016
 
1525
1017
  /**
@@ -1530,7 +1022,7 @@ export class UsersApi extends BaseAPI {
1530
1022
  * @memberof UsersApi
1531
1023
  */
1532
1024
  public deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig) {
1533
- return UsersApiFp(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1025
+ return UsersApiFp(this.configuration).deleteUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1534
1026
  }
1535
1027
 
1536
1028
  /**
@@ -1541,7 +1033,7 @@ export class UsersApi extends BaseAPI {
1541
1033
  * @memberof UsersApi
1542
1034
  */
1543
1035
  public deleteUsers(requestParameters: UsersApiDeleteUsersRequest, options?: AxiosRequestConfig) {
1544
- return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1036
+ return UsersApiFp(this.configuration).deleteUsers(requestParameters.authorization, requestParameters.batchDeleteRequestDto, options).then((request) => request(this.axios, this.basePath));
1545
1037
  }
1546
1038
 
1547
1039
  /**
@@ -1552,7 +1044,7 @@ export class UsersApi extends BaseAPI {
1552
1044
  * @memberof UsersApi
1553
1045
  */
1554
1046
  public disableUser(requestParameters: UsersApiDisableUserRequest, options?: AxiosRequestConfig) {
1555
- return UsersApiFp(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1047
+ return UsersApiFp(this.configuration).disableUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1556
1048
  }
1557
1049
 
1558
1050
  /**
@@ -1563,7 +1055,7 @@ export class UsersApi extends BaseAPI {
1563
1055
  * @memberof UsersApi
1564
1056
  */
1565
1057
  public disableUsers(requestParameters: UsersApiDisableUsersRequest, options?: AxiosRequestConfig) {
1566
- return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1058
+ return UsersApiFp(this.configuration).disableUsers(requestParameters.authorization, requestParameters.disableUsersRequestDto, options).then((request) => request(this.axios, this.basePath));
1567
1059
  }
1568
1060
 
1569
1061
  /**
@@ -1574,7 +1066,7 @@ export class UsersApi extends BaseAPI {
1574
1066
  * @memberof UsersApi
1575
1067
  */
1576
1068
  public enableUser(requestParameters: UsersApiEnableUserRequest, options?: AxiosRequestConfig) {
1577
- return UsersApiFp(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1069
+ return UsersApiFp(this.configuration).enableUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1578
1070
  }
1579
1071
 
1580
1072
  /**
@@ -1585,7 +1077,7 @@ export class UsersApi extends BaseAPI {
1585
1077
  * @memberof UsersApi
1586
1078
  */
1587
1079
  public enableUsers(requestParameters: UsersApiEnableUsersRequest, options?: AxiosRequestConfig) {
1588
- return UsersApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1080
+ return UsersApiFp(this.configuration).enableUsers(requestParameters.authorization, requestParameters.enableUsersRequestDto, options).then((request) => request(this.axios, this.basePath));
1589
1081
  }
1590
1082
 
1591
1083
  /**
@@ -1596,50 +1088,18 @@ export class UsersApi extends BaseAPI {
1596
1088
  * @memberof UsersApi
1597
1089
  */
1598
1090
  public getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig) {
1599
- return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1600
- }
1601
-
1602
- /**
1603
- *
1604
- * @param {UsersApiInviteUserRequest} requestParameters Request parameters.
1605
- * @param {*} [options] Override http request option.
1606
- * @throws {RequiredError}
1607
- * @memberof UsersApi
1608
- */
1609
- public inviteUser(requestParameters: UsersApiInviteUserRequest, options?: AxiosRequestConfig) {
1610
- return UsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1091
+ return UsersApiFp(this.configuration).getUser(requestParameters.authorization, requestParameters.code, requestParameters.code2, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1611
1092
  }
1612
1093
 
1613
1094
  /**
1614
- *
1615
- * @param {UsersApiInviteUsersRequest} requestParameters Request parameters.
1616
- * @param {*} [options] Override http request option.
1617
- * @throws {RequiredError}
1618
- * @memberof UsersApi
1619
- */
1620
- public inviteUsers(requestParameters: UsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
1621
- return UsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1622
- }
1623
-
1624
- /**
1625
- *
1626
- * @param {UsersApiListInvitesRequest} requestParameters Request parameters.
1627
- * @param {*} [options] Override http request option.
1628
- * @throws {RequiredError}
1629
- * @memberof UsersApi
1630
- */
1631
- public listInvites(requestParameters: UsersApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
1632
- return UsersApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1633
- }
1634
-
1635
- /**
1636
- *
1095
+ * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
1096
+ * @summary List users
1637
1097
  * @param {UsersApiListUsersRequest} requestParameters Request parameters.
1638
1098
  * @param {*} [options] Override http request option.
1639
1099
  * @throws {RequiredError}
1640
1100
  * @memberof UsersApi
1641
1101
  */
1642
- public listUsers(requestParameters: UsersApiListUsersRequest = {}, options?: AxiosRequestConfig) {
1102
+ public listUsers(requestParameters: UsersApiListUsersRequest, options?: AxiosRequestConfig) {
1643
1103
  return UsersApiFp(this.configuration).listUsers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1644
1104
  }
1645
1105
  }