@emilgroup/tenant-sdk-node 1.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (313) hide show
  1. package/.openapi-generator/FILES +109 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +68 -0
  5. package/api/alerts-api.ts +860 -0
  6. package/api/custom-schema-api.ts +580 -0
  7. package/api/dashboard-api.ts +792 -0
  8. package/api/data-report-executor-api.ts +183 -0
  9. package/api/permissions-api.ts +307 -0
  10. package/api/reports-api.ts +860 -0
  11. package/api/roles-api.ts +564 -0
  12. package/api/scenario-analysis-api.ts +977 -0
  13. package/api/settings-api.ts +478 -0
  14. package/api/tariff-comparisons-api.ts +381 -0
  15. package/api/tenants-api.ts +514 -0
  16. package/api/user-subscription-api.ts +191 -0
  17. package/api/users-api.ts +1645 -0
  18. package/api.ts +60 -0
  19. package/base.ts +283 -0
  20. package/common.ts +199 -0
  21. package/configuration.ts +109 -0
  22. package/dist/api/alerts-api.d.ts +479 -0
  23. package/dist/api/alerts-api.js +752 -0
  24. package/dist/api/custom-schema-api.d.ts +329 -0
  25. package/dist/api/custom-schema-api.js +548 -0
  26. package/dist/api/dashboard-api.d.ts +434 -0
  27. package/dist/api/dashboard-api.js +724 -0
  28. package/dist/api/data-report-executor-api.d.ts +106 -0
  29. package/dist/api/data-report-executor-api.js +234 -0
  30. package/dist/api/permissions-api.d.ts +172 -0
  31. package/dist/api/permissions-api.js +331 -0
  32. package/dist/api/reports-api.d.ts +479 -0
  33. package/dist/api/reports-api.js +752 -0
  34. package/dist/api/roles-api.d.ts +301 -0
  35. package/dist/api/roles-api.js +578 -0
  36. package/dist/api/scenario-analysis-api.d.ts +529 -0
  37. package/dist/api/scenario-analysis-api.js +895 -0
  38. package/dist/api/settings-api.d.ts +261 -0
  39. package/dist/api/settings-api.js +509 -0
  40. package/dist/api/tariff-comparisons-api.d.ts +206 -0
  41. package/dist/api/tariff-comparisons-api.js +409 -0
  42. package/dist/api/tenants-api.d.ts +282 -0
  43. package/dist/api/tenants-api.js +514 -0
  44. package/dist/api/user-subscription-api.d.ts +111 -0
  45. package/dist/api/user-subscription-api.js +236 -0
  46. package/dist/api/users-api.d.ts +884 -0
  47. package/dist/api/users-api.js +1456 -0
  48. package/dist/api.d.ts +28 -0
  49. package/dist/api.js +48 -0
  50. package/dist/base.d.ts +76 -0
  51. package/dist/base.js +392 -0
  52. package/dist/common.d.ts +92 -0
  53. package/dist/common.js +277 -0
  54. package/dist/configuration.d.ts +90 -0
  55. package/dist/configuration.js +44 -0
  56. package/dist/index.d.ts +15 -0
  57. package/dist/index.js +35 -0
  58. package/dist/models/alert-class.d.ts +90 -0
  59. package/dist/models/alert-class.js +15 -0
  60. package/dist/models/assign-user-roles-request-dto.d.ts +30 -0
  61. package/dist/models/assign-user-roles-request-dto.js +15 -0
  62. package/dist/models/assign-user-roles-response-class.d.ts +25 -0
  63. package/dist/models/assign-user-roles-response-class.js +15 -0
  64. package/dist/models/batch-delete-request-dto.d.ts +24 -0
  65. package/dist/models/batch-delete-request-dto.js +15 -0
  66. package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
  67. package/dist/models/compare-tariffs-request-dto.js +22 -0
  68. package/dist/models/compare-tariffs-response-class.d.ts +30 -0
  69. package/dist/models/compare-tariffs-response-class.js +15 -0
  70. package/dist/models/condition-dto.d.ts +43 -0
  71. package/dist/models/condition-dto.js +22 -0
  72. package/dist/models/create-alert-request-dto.d.ts +79 -0
  73. package/dist/models/create-alert-request-dto.js +27 -0
  74. package/dist/models/create-alert-response-class.d.ts +25 -0
  75. package/dist/models/create-alert-response-class.js +15 -0
  76. package/dist/models/create-custom-schema-request-dto.d.ts +44 -0
  77. package/dist/models/create-custom-schema-request-dto.js +22 -0
  78. package/dist/models/create-custom-schema-response-class.d.ts +25 -0
  79. package/dist/models/create-custom-schema-response-class.js +15 -0
  80. package/dist/models/create-dashboard-request-dto.d.ts +70 -0
  81. package/dist/models/create-dashboard-request-dto.js +29 -0
  82. package/dist/models/create-dashboard-response-class.d.ts +25 -0
  83. package/dist/models/create-dashboard-response-class.js +15 -0
  84. package/dist/models/create-permission-request-dto.d.ts +48 -0
  85. package/dist/models/create-permission-request-dto.js +15 -0
  86. package/dist/models/create-permission-response-class.d.ts +25 -0
  87. package/dist/models/create-permission-response-class.js +15 -0
  88. package/dist/models/create-report-request-dto.d.ts +49 -0
  89. package/dist/models/create-report-request-dto.js +22 -0
  90. package/dist/models/create-report-response-class.d.ts +25 -0
  91. package/dist/models/create-report-response-class.js +15 -0
  92. package/dist/models/create-role-request-dto.d.ts +36 -0
  93. package/dist/models/create-role-request-dto.js +15 -0
  94. package/dist/models/create-role-response-class.d.ts +25 -0
  95. package/dist/models/create-role-response-class.js +15 -0
  96. package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
  97. package/dist/models/create-scenario-analysis-request-dto.js +22 -0
  98. package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
  99. package/dist/models/create-scenario-analysis-response-class.js +15 -0
  100. package/dist/models/create-tenant-request-dto.d.ts +56 -0
  101. package/dist/models/create-tenant-request-dto.js +15 -0
  102. package/dist/models/create-tenant-response-class.d.ts +42 -0
  103. package/dist/models/create-tenant-response-class.js +15 -0
  104. package/dist/models/custom-field-dto.d.ts +68 -0
  105. package/dist/models/custom-field-dto.js +23 -0
  106. package/dist/models/custom-schema-class.d.ts +66 -0
  107. package/dist/models/custom-schema-class.js +15 -0
  108. package/dist/models/dashboard-class.d.ts +78 -0
  109. package/dist/models/dashboard-class.js +15 -0
  110. package/dist/models/dbconfig-dto.d.ts +48 -0
  111. package/dist/models/dbconfig-dto.js +15 -0
  112. package/dist/models/disable-user-response-class.d.ts +25 -0
  113. package/dist/models/disable-user-response-class.js +15 -0
  114. package/dist/models/disable-users-request-dto.d.ts +24 -0
  115. package/dist/models/disable-users-request-dto.js +15 -0
  116. package/dist/models/enable-user-response-class.d.ts +25 -0
  117. package/dist/models/enable-user-response-class.js +15 -0
  118. package/dist/models/enable-users-request-dto.d.ts +24 -0
  119. package/dist/models/enable-users-request-dto.js +15 -0
  120. package/dist/models/get-alert-response-class.d.ts +25 -0
  121. package/dist/models/get-alert-response-class.js +15 -0
  122. package/dist/models/get-custom-schema-response-class.d.ts +25 -0
  123. package/dist/models/get-custom-schema-response-class.js +15 -0
  124. package/dist/models/get-dashboard-response-class.d.ts +25 -0
  125. package/dist/models/get-dashboard-response-class.js +15 -0
  126. package/dist/models/get-embedded-url-response-class.d.ts +24 -0
  127. package/dist/models/get-embedded-url-response-class.js +15 -0
  128. package/dist/models/get-report-response-class.d.ts +25 -0
  129. package/dist/models/get-report-response-class.js +15 -0
  130. package/dist/models/get-role-response-class.d.ts +25 -0
  131. package/dist/models/get-role-response-class.js +15 -0
  132. package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
  133. package/dist/models/get-scenario-analysis-response-class.js +15 -0
  134. package/dist/models/get-user-response-class.d.ts +25 -0
  135. package/dist/models/get-user-response-class.js +15 -0
  136. package/dist/models/index.d.ts +83 -0
  137. package/dist/models/index.js +99 -0
  138. package/dist/models/invite-class.d.ts +54 -0
  139. package/dist/models/invite-class.js +15 -0
  140. package/dist/models/invite-user-request-dto.d.ts +30 -0
  141. package/dist/models/invite-user-request-dto.js +15 -0
  142. package/dist/models/invite-user-response-class.d.ts +25 -0
  143. package/dist/models/invite-user-response-class.js +15 -0
  144. package/dist/models/invite-users-request-dto.d.ts +30 -0
  145. package/dist/models/invite-users-request-dto.js +15 -0
  146. package/dist/models/list-alert-history-response-class.d.ts +30 -0
  147. package/dist/models/list-alert-history-response-class.js +15 -0
  148. package/dist/models/list-alerts-response-class.d.ts +30 -0
  149. package/dist/models/list-alerts-response-class.js +15 -0
  150. package/dist/models/list-channels-response-class.d.ts +24 -0
  151. package/dist/models/list-channels-response-class.js +15 -0
  152. package/dist/models/list-custom-schemas-response-class.d.ts +30 -0
  153. package/dist/models/list-custom-schemas-response-class.js +15 -0
  154. package/dist/models/list-dashboards-response-class.d.ts +30 -0
  155. package/dist/models/list-dashboards-response-class.js +15 -0
  156. package/dist/models/list-insurance-companies-response-class.d.ts +24 -0
  157. package/dist/models/list-insurance-companies-response-class.js +15 -0
  158. package/dist/models/list-invites-response-class.d.ts +30 -0
  159. package/dist/models/list-invites-response-class.js +15 -0
  160. package/dist/models/list-permissions-response-class.d.ts +30 -0
  161. package/dist/models/list-permissions-response-class.js +15 -0
  162. package/dist/models/list-report-history-response-class.d.ts +30 -0
  163. package/dist/models/list-report-history-response-class.js +15 -0
  164. package/dist/models/list-reports-response-class.d.ts +30 -0
  165. package/dist/models/list-reports-response-class.js +15 -0
  166. package/dist/models/list-roles-response-class.d.ts +30 -0
  167. package/dist/models/list-roles-response-class.js +15 -0
  168. package/dist/models/list-scenario-analyses-response-class.d.ts +30 -0
  169. package/dist/models/list-scenario-analyses-response-class.js +15 -0
  170. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +24 -0
  171. package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
  172. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +24 -0
  173. package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
  174. package/dist/models/list-tariffs-response-class.d.ts +24 -0
  175. package/dist/models/list-tariffs-response-class.js +15 -0
  176. package/dist/models/list-users-response-class.d.ts +30 -0
  177. package/dist/models/list-users-response-class.js +15 -0
  178. package/dist/models/manage-subscription-request-dto.d.ts +24 -0
  179. package/dist/models/manage-subscription-request-dto.js +15 -0
  180. package/dist/models/manage-subscription-response-class.d.ts +25 -0
  181. package/dist/models/manage-subscription-response-class.js +15 -0
  182. package/dist/models/permission-class.d.ts +66 -0
  183. package/dist/models/permission-class.js +15 -0
  184. package/dist/models/report-class.d.ts +66 -0
  185. package/dist/models/report-class.js +15 -0
  186. package/dist/models/role-class.d.ts +60 -0
  187. package/dist/models/role-class.js +15 -0
  188. package/dist/models/run-data-report-request-dto.d.ts +30 -0
  189. package/dist/models/run-data-report-request-dto.js +15 -0
  190. package/dist/models/run-data-report-response-class.d.ts +24 -0
  191. package/dist/models/run-data-report-response-class.js +15 -0
  192. package/dist/models/scenario-analysis-class.d.ts +108 -0
  193. package/dist/models/scenario-analysis-class.js +15 -0
  194. package/dist/models/set-user-setting-request-dto.d.ts +30 -0
  195. package/dist/models/set-user-setting-request-dto.js +15 -0
  196. package/dist/models/subscription-class.d.ts +60 -0
  197. package/dist/models/subscription-class.js +15 -0
  198. package/dist/models/tenant-admin-user-dto.d.ts +42 -0
  199. package/dist/models/tenant-admin-user-dto.js +15 -0
  200. package/dist/models/update-alert-request-dto.d.ts +72 -0
  201. package/dist/models/update-alert-request-dto.js +21 -0
  202. package/dist/models/update-alert-response-class.d.ts +25 -0
  203. package/dist/models/update-alert-response-class.js +15 -0
  204. package/dist/models/update-custom-schema-request-dto.d.ts +44 -0
  205. package/dist/models/update-custom-schema-request-dto.js +22 -0
  206. package/dist/models/update-custom-schema-response-class.d.ts +25 -0
  207. package/dist/models/update-custom-schema-response-class.js +15 -0
  208. package/dist/models/update-dashboard-request-dto.d.ts +76 -0
  209. package/dist/models/update-dashboard-request-dto.js +29 -0
  210. package/dist/models/update-dashboard-response-class.d.ts +25 -0
  211. package/dist/models/update-dashboard-response-class.js +15 -0
  212. package/dist/models/update-report-request-dto.d.ts +55 -0
  213. package/dist/models/update-report-request-dto.js +22 -0
  214. package/dist/models/update-report-response-class.d.ts +25 -0
  215. package/dist/models/update-report-response-class.js +15 -0
  216. package/dist/models/update-role-request-dto.d.ts +42 -0
  217. package/dist/models/update-role-request-dto.js +15 -0
  218. package/dist/models/update-role-response-class.d.ts +25 -0
  219. package/dist/models/update-role-response-class.js +15 -0
  220. package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
  221. package/dist/models/update-scenario-analysis-request-dto.js +22 -0
  222. package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
  223. package/dist/models/update-scenario-analysis-response-class.js +15 -0
  224. package/dist/models/user-class.d.ts +90 -0
  225. package/dist/models/user-class.js +15 -0
  226. package/git_push.sh +57 -0
  227. package/index.ts +19 -0
  228. package/models/alert-class.ts +96 -0
  229. package/models/assign-user-roles-request-dto.ts +36 -0
  230. package/models/assign-user-roles-response-class.ts +31 -0
  231. package/models/batch-delete-request-dto.ts +30 -0
  232. package/models/compare-tariffs-request-dto.ts +46 -0
  233. package/models/compare-tariffs-response-class.ts +36 -0
  234. package/models/condition-dto.ts +52 -0
  235. package/models/create-alert-request-dto.ts +89 -0
  236. package/models/create-alert-response-class.ts +31 -0
  237. package/models/create-custom-schema-request-dto.ts +53 -0
  238. package/models/create-custom-schema-response-class.ts +31 -0
  239. package/models/create-dashboard-request-dto.ts +81 -0
  240. package/models/create-dashboard-response-class.ts +31 -0
  241. package/models/create-permission-request-dto.ts +54 -0
  242. package/models/create-permission-response-class.ts +31 -0
  243. package/models/create-report-request-dto.ts +58 -0
  244. package/models/create-report-response-class.ts +31 -0
  245. package/models/create-role-request-dto.ts +42 -0
  246. package/models/create-role-response-class.ts +31 -0
  247. package/models/create-scenario-analysis-request-dto.ts +83 -0
  248. package/models/create-scenario-analysis-response-class.ts +31 -0
  249. package/models/create-tenant-request-dto.ts +62 -0
  250. package/models/create-tenant-response-class.ts +48 -0
  251. package/models/custom-field-dto.ts +77 -0
  252. package/models/custom-schema-class.ts +72 -0
  253. package/models/dashboard-class.ts +84 -0
  254. package/models/dbconfig-dto.ts +54 -0
  255. package/models/disable-user-response-class.ts +31 -0
  256. package/models/disable-users-request-dto.ts +30 -0
  257. package/models/enable-user-response-class.ts +31 -0
  258. package/models/enable-users-request-dto.ts +30 -0
  259. package/models/get-alert-response-class.ts +31 -0
  260. package/models/get-custom-schema-response-class.ts +31 -0
  261. package/models/get-dashboard-response-class.ts +31 -0
  262. package/models/get-embedded-url-response-class.ts +30 -0
  263. package/models/get-report-response-class.ts +31 -0
  264. package/models/get-role-response-class.ts +31 -0
  265. package/models/get-scenario-analysis-response-class.ts +31 -0
  266. package/models/get-user-response-class.ts +31 -0
  267. package/models/index.ts +83 -0
  268. package/models/invite-class.ts +60 -0
  269. package/models/invite-user-request-dto.ts +36 -0
  270. package/models/invite-user-response-class.ts +31 -0
  271. package/models/invite-users-request-dto.ts +36 -0
  272. package/models/list-alert-history-response-class.ts +36 -0
  273. package/models/list-alerts-response-class.ts +36 -0
  274. package/models/list-channels-response-class.ts +30 -0
  275. package/models/list-custom-schemas-response-class.ts +36 -0
  276. package/models/list-dashboards-response-class.ts +36 -0
  277. package/models/list-insurance-companies-response-class.ts +30 -0
  278. package/models/list-invites-response-class.ts +36 -0
  279. package/models/list-permissions-response-class.ts +36 -0
  280. package/models/list-report-history-response-class.ts +36 -0
  281. package/models/list-reports-response-class.ts +36 -0
  282. package/models/list-roles-response-class.ts +36 -0
  283. package/models/list-scenario-analyses-response-class.ts +36 -0
  284. package/models/list-scenario-analysis-dates-response-class.ts +30 -0
  285. package/models/list-tariff-insurance-companies-response-class.ts +30 -0
  286. package/models/list-tariffs-response-class.ts +30 -0
  287. package/models/list-users-response-class.ts +36 -0
  288. package/models/manage-subscription-request-dto.ts +30 -0
  289. package/models/manage-subscription-response-class.ts +31 -0
  290. package/models/permission-class.ts +72 -0
  291. package/models/report-class.ts +72 -0
  292. package/models/role-class.ts +66 -0
  293. package/models/run-data-report-request-dto.ts +36 -0
  294. package/models/run-data-report-response-class.ts +30 -0
  295. package/models/scenario-analysis-class.ts +114 -0
  296. package/models/set-user-setting-request-dto.ts +36 -0
  297. package/models/subscription-class.ts +66 -0
  298. package/models/tenant-admin-user-dto.ts +48 -0
  299. package/models/update-alert-request-dto.ts +81 -0
  300. package/models/update-alert-response-class.ts +31 -0
  301. package/models/update-custom-schema-request-dto.ts +53 -0
  302. package/models/update-custom-schema-response-class.ts +31 -0
  303. package/models/update-dashboard-request-dto.ts +87 -0
  304. package/models/update-dashboard-response-class.ts +31 -0
  305. package/models/update-report-request-dto.ts +64 -0
  306. package/models/update-report-response-class.ts +31 -0
  307. package/models/update-role-request-dto.ts +48 -0
  308. package/models/update-role-response-class.ts +31 -0
  309. package/models/update-scenario-analysis-request-dto.ts +83 -0
  310. package/models/update-scenario-analysis-response-class.ts +31 -0
  311. package/models/user-class.ts +96 -0
  312. package/package.json +29 -0
  313. package/tsconfig.json +22 -0
@@ -0,0 +1,1645 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Tenant Service
5
+ * The EMIL TenantService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { AssignUserRolesRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { AssignUserRolesResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { BatchDeleteRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { DisableUserResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { DisableUsersRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { EnableUserResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { EnableUsersRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { GetUserResponseClass } from '../models';
39
+ // @ts-ignore
40
+ import { InviteUserRequestDto } from '../models';
41
+ // @ts-ignore
42
+ import { InviteUserResponseClass } from '../models';
43
+ // @ts-ignore
44
+ import { InviteUsersRequestDto } from '../models';
45
+ // @ts-ignore
46
+ import { ListInvitesResponseClass } from '../models';
47
+ // @ts-ignore
48
+ import { ListUsersResponseClass } from '../models';
49
+ // URLSearchParams not necessarily used
50
+ // @ts-ignore
51
+ import { URL, URLSearchParams } from 'url';
52
+ const FormData = require('form-data');
53
+ /**
54
+ * UsersApi - axios parameter creator
55
+ * @export
56
+ */
57
+ export const UsersApiAxiosParamCreator = function (configuration?: Configuration) {
58
+ return {
59
+ /**
60
+ *
61
+ * @param {number} id
62
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
63
+ * @param {string} [authorization] Bearer Token
64
+ * @param {*} [options] Override http request option.
65
+ * @throws {RequiredError}
66
+ */
67
+ assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
68
+ // verify required parameter 'id' is not null or undefined
69
+ assertParamExists('assignUserRoles', 'id', id)
70
+ // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
71
+ assertParamExists('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto)
72
+ const localVarPath = `/tenantservice/v1/users/{id}/assign-roles`
73
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
74
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
75
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
76
+ let baseOptions;
77
+ let baseAccessToken;
78
+ if (configuration) {
79
+ baseOptions = configuration.baseOptions;
80
+ baseAccessToken = configuration.accessToken;
81
+ }
82
+
83
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
84
+ const localVarHeaderParameter = {} as any;
85
+ const localVarQueryParameter = {} as any;
86
+
87
+ // authentication bearer required
88
+ // http bearer authentication required
89
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
90
+
91
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
92
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
93
+ }
94
+
95
+
96
+
97
+ localVarHeaderParameter['Content-Type'] = 'application/json';
98
+
99
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
102
+ localVarRequestOptions.data = serializeDataIfNeeded(assignUserRolesRequestDto, localVarRequestOptions, configuration)
103
+
104
+ return {
105
+ url: toPathString(localVarUrlObj),
106
+ options: localVarRequestOptions,
107
+ };
108
+ },
109
+ /**
110
+ *
111
+ * @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
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ deleteUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
207
+ // verify required parameter 'id' is not null or undefined
208
+ assertParamExists('deleteUser', 'id', id)
209
+ const localVarPath = `/tenantservice/v1/users/{id}`
210
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ let baseAccessToken;
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+
220
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
221
+ const localVarHeaderParameter = {} as any;
222
+ const localVarQueryParameter = {} as any;
223
+
224
+ // authentication bearer required
225
+ // http bearer authentication required
226
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
227
+
228
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
229
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
230
+ }
231
+
232
+
233
+
234
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
235
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
236
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
237
+
238
+ return {
239
+ url: toPathString(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ };
242
+ },
243
+ /**
244
+ *
245
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
246
+ * @param {string} [authorization] Bearer Token
247
+ * @param {*} [options] Override http request option.
248
+ * @throws {RequiredError}
249
+ */
250
+ deleteUsers: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
251
+ // verify required parameter 'batchDeleteRequestDto' is not null or undefined
252
+ assertParamExists('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto)
253
+ const localVarPath = `/tenantservice/v1/users/delete-batch`;
254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
256
+ let baseOptions;
257
+ let baseAccessToken;
258
+ if (configuration) {
259
+ baseOptions = configuration.baseOptions;
260
+ baseAccessToken = configuration.accessToken;
261
+ }
262
+
263
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
264
+ const localVarHeaderParameter = {} as any;
265
+ const localVarQueryParameter = {} as any;
266
+
267
+ // authentication bearer required
268
+ // http bearer authentication required
269
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
270
+
271
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
272
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
273
+ }
274
+
275
+
276
+
277
+ localVarHeaderParameter['Content-Type'] = 'application/json';
278
+
279
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
281
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
282
+ localVarRequestOptions.data = serializeDataIfNeeded(batchDeleteRequestDto, localVarRequestOptions, configuration)
283
+
284
+ return {
285
+ url: toPathString(localVarUrlObj),
286
+ options: localVarRequestOptions,
287
+ };
288
+ },
289
+ /**
290
+ *
291
+ * @param {number} id
292
+ * @param {string} [authorization] Bearer Token
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ disableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
297
+ // verify required parameter 'id' is not null or undefined
298
+ assertParamExists('disableUser', 'id', id)
299
+ const localVarPath = `/tenantservice/v1/users/{id}/disable`
300
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
301
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
302
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
303
+ let baseOptions;
304
+ let baseAccessToken;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ baseAccessToken = configuration.accessToken;
308
+ }
309
+
310
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
311
+ const localVarHeaderParameter = {} as any;
312
+ const localVarQueryParameter = {} as any;
313
+
314
+ // authentication bearer required
315
+ // http bearer authentication required
316
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
317
+
318
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
319
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
320
+ }
321
+
322
+
323
+
324
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
325
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
327
+
328
+ return {
329
+ url: toPathString(localVarUrlObj),
330
+ options: localVarRequestOptions,
331
+ };
332
+ },
333
+ /**
334
+ *
335
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
336
+ * @param {string} [authorization] Bearer Token
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ disableUsers: async (disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
341
+ // verify required parameter 'disableUsersRequestDto' is not null or undefined
342
+ assertParamExists('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto)
343
+ const localVarPath = `/tenantservice/v1/users/disable-batch`;
344
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
345
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
346
+ let baseOptions;
347
+ let baseAccessToken;
348
+ if (configuration) {
349
+ baseOptions = configuration.baseOptions;
350
+ baseAccessToken = configuration.accessToken;
351
+ }
352
+
353
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
354
+ const localVarHeaderParameter = {} as any;
355
+ const localVarQueryParameter = {} as any;
356
+
357
+ // authentication bearer required
358
+ // http bearer authentication required
359
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
360
+
361
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
362
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
363
+ }
364
+
365
+
366
+
367
+ localVarHeaderParameter['Content-Type'] = 'application/json';
368
+
369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
371
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
372
+ localVarRequestOptions.data = serializeDataIfNeeded(disableUsersRequestDto, localVarRequestOptions, configuration)
373
+
374
+ return {
375
+ url: toPathString(localVarUrlObj),
376
+ options: localVarRequestOptions,
377
+ };
378
+ },
379
+ /**
380
+ *
381
+ * @param {number} id
382
+ * @param {string} [authorization] Bearer Token
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ enableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
387
+ // verify required parameter 'id' is not null or undefined
388
+ assertParamExists('enableUser', 'id', id)
389
+ const localVarPath = `/tenantservice/v1/users/{id}/enable`
390
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
391
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
392
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
393
+ let baseOptions;
394
+ let baseAccessToken;
395
+ if (configuration) {
396
+ baseOptions = configuration.baseOptions;
397
+ baseAccessToken = configuration.accessToken;
398
+ }
399
+
400
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
401
+ const localVarHeaderParameter = {} as any;
402
+ const localVarQueryParameter = {} as any;
403
+
404
+ // authentication bearer required
405
+ // http bearer authentication required
406
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
407
+
408
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
409
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
410
+ }
411
+
412
+
413
+
414
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
415
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
416
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
417
+
418
+ return {
419
+ url: toPathString(localVarUrlObj),
420
+ options: localVarRequestOptions,
421
+ };
422
+ },
423
+ /**
424
+ *
425
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
426
+ * @param {string} [authorization] Bearer Token
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ enableUsers: async (enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
431
+ // verify required parameter 'enableUsersRequestDto' is not null or undefined
432
+ assertParamExists('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto)
433
+ const localVarPath = `/tenantservice/v1/users/enable-batch`;
434
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
435
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
436
+ let baseOptions;
437
+ let baseAccessToken;
438
+ if (configuration) {
439
+ baseOptions = configuration.baseOptions;
440
+ baseAccessToken = configuration.accessToken;
441
+ }
442
+
443
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
444
+ const localVarHeaderParameter = {} as any;
445
+ const localVarQueryParameter = {} as any;
446
+
447
+ // authentication bearer required
448
+ // http bearer authentication required
449
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
450
+
451
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
452
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
453
+ }
454
+
455
+
456
+
457
+ localVarHeaderParameter['Content-Type'] = 'application/json';
458
+
459
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
460
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
461
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
462
+ localVarRequestOptions.data = serializeDataIfNeeded(enableUsersRequestDto, localVarRequestOptions, configuration)
463
+
464
+ return {
465
+ url: toPathString(localVarUrlObj),
466
+ options: localVarRequestOptions,
467
+ };
468
+ },
469
+ /**
470
+ *
471
+ * @param {string} code
472
+ * @param {string} code2 code
473
+ * @param {string} [authorization] Bearer Token
474
+ * @param {string} [expand] Fields to expand response by
475
+ * @param {*} [options] Override http request option.
476
+ * @throws {RequiredError}
477
+ */
478
+ getUser: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
479
+ // verify required parameter 'code' is not null or undefined
480
+ assertParamExists('getUser', 'code', code)
481
+ // verify required parameter 'code2' is not null or undefined
482
+ assertParamExists('getUser', 'code2', code2)
483
+ const localVarPath = `/tenantservice/v1/users/{code}`
484
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
485
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
486
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
487
+ let baseOptions;
488
+ let baseAccessToken;
489
+ if (configuration) {
490
+ baseOptions = configuration.baseOptions;
491
+ baseAccessToken = configuration.accessToken;
492
+ }
493
+
494
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
495
+ const localVarHeaderParameter = {} as any;
496
+ const localVarQueryParameter = {} as any;
497
+
498
+ // authentication bearer required
499
+ // http bearer authentication required
500
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
501
+
502
+ if (code2 !== undefined) {
503
+ localVarQueryParameter['code'] = code2;
504
+ }
505
+
506
+ if (expand !== undefined) {
507
+ localVarQueryParameter['expand'] = expand;
508
+ }
509
+
510
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
511
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
512
+ }
513
+
514
+
515
+
516
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
517
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
518
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
519
+
520
+ return {
521
+ url: toPathString(localVarUrlObj),
522
+ options: localVarRequestOptions,
523
+ };
524
+ },
525
+ /**
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.
692
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
693
+ * @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.
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ listUsers: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
700
+ const localVarPath = `/tenantservice/v1/users`;
701
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
703
+ let baseOptions;
704
+ let baseAccessToken;
705
+ if (configuration) {
706
+ baseOptions = configuration.baseOptions;
707
+ baseAccessToken = configuration.accessToken;
708
+ }
709
+
710
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
711
+ const localVarHeaderParameter = {} as any;
712
+ const localVarQueryParameter = {} as any;
713
+
714
+ // authentication bearer required
715
+ // http bearer authentication required
716
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
717
+
718
+ if (pageSize !== undefined) {
719
+ localVarQueryParameter['pageSize'] = pageSize;
720
+ }
721
+
722
+ if (pageToken !== undefined) {
723
+ localVarQueryParameter['pageToken'] = pageToken;
724
+ }
725
+
726
+ if (filter !== undefined) {
727
+ localVarQueryParameter['filter'] = filter;
728
+ }
729
+
730
+ if (search !== undefined) {
731
+ localVarQueryParameter['search'] = search;
732
+ }
733
+
734
+ if (order !== undefined) {
735
+ localVarQueryParameter['order'] = order;
736
+ }
737
+
738
+ if (expand !== undefined) {
739
+ localVarQueryParameter['expand'] = expand;
740
+ }
741
+
742
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
743
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
744
+ }
745
+
746
+
747
+
748
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
749
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
750
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
751
+
752
+ return {
753
+ url: toPathString(localVarUrlObj),
754
+ options: localVarRequestOptions,
755
+ };
756
+ },
757
+ }
758
+ };
759
+
760
+ /**
761
+ * UsersApi - functional programming interface
762
+ * @export
763
+ */
764
+ export const UsersApiFp = function(configuration?: Configuration) {
765
+ const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration)
766
+ return {
767
+ /**
768
+ *
769
+ * @param {number} id
770
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
771
+ * @param {string} [authorization] Bearer Token
772
+ * @param {*} [options] Override http request option.
773
+ * @throws {RequiredError}
774
+ */
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);
777
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
778
+ },
779
+ /**
780
+ *
781
+ * @param {number} id
782
+ * @param {string} [authorization] Bearer Token
783
+ * @param {*} [options] Override http request option.
784
+ * @throws {RequiredError}
785
+ */
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);
788
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
789
+ },
790
+ /**
791
+ *
792
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
793
+ * @param {string} [authorization] Bearer Token
794
+ * @param {*} [options] Override http request option.
795
+ * @throws {RequiredError}
796
+ */
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);
799
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
800
+ },
801
+ /**
802
+ *
803
+ * @param {number} id
804
+ * @param {string} [authorization] Bearer Token
805
+ * @param {*} [options] Override http request option.
806
+ * @throws {RequiredError}
807
+ */
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);
832
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
833
+ },
834
+ /**
835
+ *
836
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
837
+ * @param {string} [authorization] Bearer Token
838
+ * @param {*} [options] Override http request option.
839
+ * @throws {RequiredError}
840
+ */
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);
843
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
844
+ },
845
+ /**
846
+ *
847
+ * @param {number} id
848
+ * @param {string} [authorization] Bearer Token
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ */
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);
854
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
855
+ },
856
+ /**
857
+ *
858
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
859
+ * @param {string} [authorization] Bearer Token
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ */
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);
865
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
866
+ },
867
+ /**
868
+ *
869
+ * @param {string} code
870
+ * @param {string} code2 code
871
+ * @param {string} [authorization] Bearer Token
872
+ * @param {string} [expand] Fields to expand response by
873
+ * @param {*} [options] Override http request option.
874
+ * @throws {RequiredError}
875
+ */
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);
916
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
917
+ },
918
+ /**
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.
923
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
924
+ * @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.
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ */
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>> {
931
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options);
932
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
933
+ },
934
+ }
935
+ };
936
+
937
+ /**
938
+ * UsersApi - factory interface
939
+ * @export
940
+ */
941
+ export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
942
+ const localVarFp = UsersApiFp(configuration)
943
+ return {
944
+ /**
945
+ *
946
+ * @param {number} id
947
+ * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
948
+ * @param {string} [authorization] Bearer Token
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
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));
954
+ },
955
+ /**
956
+ *
957
+ * @param {number} id
958
+ * @param {string} [authorization] Bearer Token
959
+ * @param {*} [options] Override http request option.
960
+ * @throws {RequiredError}
961
+ */
962
+ deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<object> {
963
+ return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
964
+ },
965
+ /**
966
+ *
967
+ * @param {BatchDeleteRequestDto} batchDeleteRequestDto
968
+ * @param {string} [authorization] Bearer Token
969
+ * @param {*} [options] Override http request option.
970
+ * @throws {RequiredError}
971
+ */
972
+ deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
973
+ return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
974
+ },
975
+ /**
976
+ *
977
+ * @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
+ * @param {*} [options] Override http request option.
990
+ * @throws {RequiredError}
991
+ */
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));
1004
+ },
1005
+ /**
1006
+ *
1007
+ * @param {DisableUsersRequestDto} disableUsersRequestDto
1008
+ * @param {string} [authorization] Bearer Token
1009
+ * @param {*} [options] Override http request option.
1010
+ * @throws {RequiredError}
1011
+ */
1012
+ disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
1013
+ return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
1014
+ },
1015
+ /**
1016
+ *
1017
+ * @param {number} id
1018
+ * @param {string} [authorization] Bearer Token
1019
+ * @param {*} [options] Override http request option.
1020
+ * @throws {RequiredError}
1021
+ */
1022
+ enableUser(id: number, authorization?: string, options?: any): AxiosPromise<EnableUserResponseClass> {
1023
+ return localVarFp.enableUser(id, authorization, options).then((request) => request(axios, basePath));
1024
+ },
1025
+ /**
1026
+ *
1027
+ * @param {EnableUsersRequestDto} enableUsersRequestDto
1028
+ * @param {string} [authorization] Bearer Token
1029
+ * @param {*} [options] Override http request option.
1030
+ * @throws {RequiredError}
1031
+ */
1032
+ enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
1033
+ return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
1034
+ },
1035
+ /**
1036
+ *
1037
+ * @param {string} code
1038
+ * @param {string} code2 code
1039
+ * @param {string} [authorization] Bearer Token
1040
+ * @param {string} [expand] Fields to expand response by
1041
+ * @param {*} [options] Override http request option.
1042
+ * @throws {RequiredError}
1043
+ */
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));
1056
+ },
1057
+ /**
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.
1072
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1073
+ * @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.
1076
+ * @param {*} [options] Override http request option.
1077
+ * @throws {RequiredError}
1078
+ */
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> {
1095
+ return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
1096
+ },
1097
+ };
1098
+ };
1099
+
1100
+ /**
1101
+ * Request parameters for assignUserRoles operation in UsersApi.
1102
+ * @export
1103
+ * @interface UsersApiAssignUserRolesRequest
1104
+ */
1105
+ export interface UsersApiAssignUserRolesRequest {
1106
+ /**
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
1122
+ * @type {string}
1123
+ * @memberof UsersApiAssignUserRoles
1124
+ */
1125
+ readonly authorization?: string
1126
+ }
1127
+
1128
+ /**
1129
+ * Request parameters for deleteInvite operation in UsersApi.
1130
+ * @export
1131
+ * @interface UsersApiDeleteInviteRequest
1132
+ */
1133
+ export interface UsersApiDeleteInviteRequest {
1134
+ /**
1135
+ *
1136
+ * @type {number}
1137
+ * @memberof UsersApiDeleteInvite
1138
+ */
1139
+ readonly id: number
1140
+
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
+ /**
1156
+ *
1157
+ * @type {BatchDeleteRequestDto}
1158
+ * @memberof UsersApiDeleteInvites
1159
+ */
1160
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
1161
+
1162
+ /**
1163
+ * Bearer Token
1164
+ * @type {string}
1165
+ * @memberof UsersApiDeleteInvites
1166
+ */
1167
+ readonly authorization?: string
1168
+ }
1169
+
1170
+ /**
1171
+ * Request parameters for deleteUser operation in UsersApi.
1172
+ * @export
1173
+ * @interface UsersApiDeleteUserRequest
1174
+ */
1175
+ export interface UsersApiDeleteUserRequest {
1176
+ /**
1177
+ *
1178
+ * @type {number}
1179
+ * @memberof UsersApiDeleteUser
1180
+ */
1181
+ readonly id: number
1182
+
1183
+ /**
1184
+ * Bearer Token
1185
+ * @type {string}
1186
+ * @memberof UsersApiDeleteUser
1187
+ */
1188
+ readonly authorization?: string
1189
+ }
1190
+
1191
+ /**
1192
+ * Request parameters for deleteUsers operation in UsersApi.
1193
+ * @export
1194
+ * @interface UsersApiDeleteUsersRequest
1195
+ */
1196
+ export interface UsersApiDeleteUsersRequest {
1197
+ /**
1198
+ *
1199
+ * @type {BatchDeleteRequestDto}
1200
+ * @memberof UsersApiDeleteUsers
1201
+ */
1202
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
1203
+
1204
+ /**
1205
+ * Bearer Token
1206
+ * @type {string}
1207
+ * @memberof UsersApiDeleteUsers
1208
+ */
1209
+ readonly authorization?: string
1210
+ }
1211
+
1212
+ /**
1213
+ * Request parameters for disableUser operation in UsersApi.
1214
+ * @export
1215
+ * @interface UsersApiDisableUserRequest
1216
+ */
1217
+ export interface UsersApiDisableUserRequest {
1218
+ /**
1219
+ *
1220
+ * @type {number}
1221
+ * @memberof UsersApiDisableUser
1222
+ */
1223
+ readonly id: number
1224
+
1225
+ /**
1226
+ * Bearer Token
1227
+ * @type {string}
1228
+ * @memberof UsersApiDisableUser
1229
+ */
1230
+ readonly authorization?: string
1231
+ }
1232
+
1233
+ /**
1234
+ * Request parameters for disableUsers operation in UsersApi.
1235
+ * @export
1236
+ * @interface UsersApiDisableUsersRequest
1237
+ */
1238
+ export interface UsersApiDisableUsersRequest {
1239
+ /**
1240
+ *
1241
+ * @type {DisableUsersRequestDto}
1242
+ * @memberof UsersApiDisableUsers
1243
+ */
1244
+ readonly disableUsersRequestDto: DisableUsersRequestDto
1245
+
1246
+ /**
1247
+ * Bearer Token
1248
+ * @type {string}
1249
+ * @memberof UsersApiDisableUsers
1250
+ */
1251
+ readonly authorization?: string
1252
+ }
1253
+
1254
+ /**
1255
+ * Request parameters for enableUser operation in UsersApi.
1256
+ * @export
1257
+ * @interface UsersApiEnableUserRequest
1258
+ */
1259
+ export interface UsersApiEnableUserRequest {
1260
+ /**
1261
+ *
1262
+ * @type {number}
1263
+ * @memberof UsersApiEnableUser
1264
+ */
1265
+ readonly id: number
1266
+
1267
+ /**
1268
+ * Bearer Token
1269
+ * @type {string}
1270
+ * @memberof UsersApiEnableUser
1271
+ */
1272
+ readonly authorization?: string
1273
+ }
1274
+
1275
+ /**
1276
+ * Request parameters for enableUsers operation in UsersApi.
1277
+ * @export
1278
+ * @interface UsersApiEnableUsersRequest
1279
+ */
1280
+ export interface UsersApiEnableUsersRequest {
1281
+ /**
1282
+ *
1283
+ * @type {EnableUsersRequestDto}
1284
+ * @memberof UsersApiEnableUsers
1285
+ */
1286
+ readonly enableUsersRequestDto: EnableUsersRequestDto
1287
+
1288
+ /**
1289
+ * Bearer Token
1290
+ * @type {string}
1291
+ * @memberof UsersApiEnableUsers
1292
+ */
1293
+ readonly authorization?: string
1294
+ }
1295
+
1296
+ /**
1297
+ * Request parameters for getUser operation in UsersApi.
1298
+ * @export
1299
+ * @interface UsersApiGetUserRequest
1300
+ */
1301
+ export interface UsersApiGetUserRequest {
1302
+ /**
1303
+ *
1304
+ * @type {string}
1305
+ * @memberof UsersApiGetUser
1306
+ */
1307
+ readonly code: string
1308
+
1309
+ /**
1310
+ * code
1311
+ * @type {string}
1312
+ * @memberof UsersApiGetUser
1313
+ */
1314
+ readonly code2: string
1315
+
1316
+ /**
1317
+ * Bearer Token
1318
+ * @type {string}
1319
+ * @memberof UsersApiGetUser
1320
+ */
1321
+ readonly authorization?: string
1322
+
1323
+ /**
1324
+ * Fields to expand response by
1325
+ * @type {string}
1326
+ * @memberof UsersApiGetUser
1327
+ */
1328
+ readonly expand?: string
1329
+ }
1330
+
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
+ /**
1430
+ * Request parameters for listUsers operation in UsersApi.
1431
+ * @export
1432
+ * @interface UsersApiListUsersRequest
1433
+ */
1434
+ export interface UsersApiListUsersRequest {
1435
+ /**
1436
+ * Bearer Token
1437
+ * @type {string}
1438
+ * @memberof UsersApiListUsers
1439
+ */
1440
+ readonly authorization?: string
1441
+
1442
+ /**
1443
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
1444
+ * @type {any}
1445
+ * @memberof UsersApiListUsers
1446
+ */
1447
+ readonly pageSize?: any
1448
+
1449
+ /**
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.
1451
+ * @type {any}
1452
+ * @memberof UsersApiListUsers
1453
+ */
1454
+ readonly pageToken?: any
1455
+
1456
+ /**
1457
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1458
+ * @type {any}
1459
+ * @memberof UsersApiListUsers
1460
+ */
1461
+ readonly filter?: any
1462
+
1463
+ /**
1464
+ * 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.
1465
+ * @type {any}
1466
+ * @memberof UsersApiListUsers
1467
+ */
1468
+ readonly search?: any
1469
+
1470
+ /**
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.
1472
+ * @type {any}
1473
+ * @memberof UsersApiListUsers
1474
+ */
1475
+ readonly order?: any
1476
+
1477
+ /**
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.
1479
+ * @type {any}
1480
+ * @memberof UsersApiListUsers
1481
+ */
1482
+ readonly expand?: any
1483
+ }
1484
+
1485
+ /**
1486
+ * UsersApi - object-oriented interface
1487
+ * @export
1488
+ * @class UsersApi
1489
+ * @extends {BaseAPI}
1490
+ */
1491
+ export class UsersApi extends BaseAPI {
1492
+ /**
1493
+ *
1494
+ * @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
1495
+ * @param {*} [options] Override http request option.
1496
+ * @throws {RequiredError}
1497
+ * @memberof UsersApi
1498
+ */
1499
+ 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));
1523
+ }
1524
+
1525
+ /**
1526
+ *
1527
+ * @param {UsersApiDeleteUserRequest} requestParameters Request parameters.
1528
+ * @param {*} [options] Override http request option.
1529
+ * @throws {RequiredError}
1530
+ * @memberof UsersApi
1531
+ */
1532
+ public deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig) {
1533
+ return UsersApiFp(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1534
+ }
1535
+
1536
+ /**
1537
+ *
1538
+ * @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
1539
+ * @param {*} [options] Override http request option.
1540
+ * @throws {RequiredError}
1541
+ * @memberof UsersApi
1542
+ */
1543
+ public deleteUsers(requestParameters: UsersApiDeleteUsersRequest, options?: AxiosRequestConfig) {
1544
+ return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1545
+ }
1546
+
1547
+ /**
1548
+ *
1549
+ * @param {UsersApiDisableUserRequest} requestParameters Request parameters.
1550
+ * @param {*} [options] Override http request option.
1551
+ * @throws {RequiredError}
1552
+ * @memberof UsersApi
1553
+ */
1554
+ public disableUser(requestParameters: UsersApiDisableUserRequest, options?: AxiosRequestConfig) {
1555
+ return UsersApiFp(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1556
+ }
1557
+
1558
+ /**
1559
+ *
1560
+ * @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
1561
+ * @param {*} [options] Override http request option.
1562
+ * @throws {RequiredError}
1563
+ * @memberof UsersApi
1564
+ */
1565
+ public disableUsers(requestParameters: UsersApiDisableUsersRequest, options?: AxiosRequestConfig) {
1566
+ return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1567
+ }
1568
+
1569
+ /**
1570
+ *
1571
+ * @param {UsersApiEnableUserRequest} requestParameters Request parameters.
1572
+ * @param {*} [options] Override http request option.
1573
+ * @throws {RequiredError}
1574
+ * @memberof UsersApi
1575
+ */
1576
+ public enableUser(requestParameters: UsersApiEnableUserRequest, options?: AxiosRequestConfig) {
1577
+ return UsersApiFp(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1578
+ }
1579
+
1580
+ /**
1581
+ *
1582
+ * @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
1583
+ * @param {*} [options] Override http request option.
1584
+ * @throws {RequiredError}
1585
+ * @memberof UsersApi
1586
+ */
1587
+ public enableUsers(requestParameters: UsersApiEnableUsersRequest, options?: AxiosRequestConfig) {
1588
+ return UsersApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1589
+ }
1590
+
1591
+ /**
1592
+ *
1593
+ * @param {UsersApiGetUserRequest} requestParameters Request parameters.
1594
+ * @param {*} [options] Override http request option.
1595
+ * @throws {RequiredError}
1596
+ * @memberof UsersApi
1597
+ */
1598
+ 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));
1611
+ }
1612
+
1613
+ /**
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
+ *
1637
+ * @param {UsersApiListUsersRequest} requestParameters Request parameters.
1638
+ * @param {*} [options] Override http request option.
1639
+ * @throws {RequiredError}
1640
+ * @memberof UsersApi
1641
+ */
1642
+ public listUsers(requestParameters: UsersApiListUsersRequest = {}, options?: AxiosRequestConfig) {
1643
+ 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
+ }
1645
+ }