@emilgroup/tenant-sdk 1.0.1 → 1.1.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 (223) hide show
  1. package/.openapi-generator/FILES +14 -57
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +52 -60
  4. package/api/data-report-api.ts +65 -75
  5. package/api/data-report-executor-api.ts +10 -26
  6. package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
  7. package/api/invite-users-api.ts +75 -79
  8. package/api/organizations-api.ts +455 -0
  9. package/api/users-api.ts +138 -148
  10. package/api.ts +4 -14
  11. package/dist/api/custom-schema-api.d.ts +42 -42
  12. package/dist/api/custom-schema-api.js +31 -38
  13. package/dist/api/data-report-api.d.ts +52 -52
  14. package/dist/api/data-report-api.js +40 -49
  15. package/dist/api/data-report-executor-api.d.ts +7 -16
  16. package/dist/api/data-report-executor-api.js +9 -17
  17. package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
  18. package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
  19. package/dist/api/invite-users-api.d.ts +63 -60
  20. package/dist/api/invite-users-api.js +40 -49
  21. package/dist/api/organizations-api.d.ts +261 -0
  22. package/dist/api/{settings-api.js → organizations-api.js} +135 -195
  23. package/dist/api/users-api.d.ts +113 -109
  24. package/dist/api/users-api.js +76 -93
  25. package/dist/api.d.ts +2 -7
  26. package/dist/api.js +2 -7
  27. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  28. package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
  29. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  30. package/dist/models/create-custom-schema-request-dto.js +2 -1
  31. package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
  32. package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
  33. package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
  34. package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
  35. package/dist/models/index.d.ts +12 -50
  36. package/dist/models/index.js +12 -50
  37. package/dist/models/invite-org-request-dto.d.ts +78 -0
  38. package/dist/models/invite-user-request-dto.d.ts +8 -2
  39. package/dist/models/invite-users-request-dto.d.ts +2 -2
  40. package/dist/models/invite-users-response-class.d.ts +24 -0
  41. package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
  42. package/dist/models/{list-alert-history-response-class.d.ts → list-organizations-response-class.d.ts} +9 -9
  43. package/dist/models/org-invitation-class.d.ts +103 -0
  44. package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
  45. package/dist/models/organization-class.d.ts +84 -0
  46. package/dist/models/set-setting-request-dto.d.ts +10 -4
  47. package/dist/models/subscription-class.d.ts +9 -2
  48. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  49. package/dist/models/update-custom-schema-request-dto.js +2 -1
  50. package/dist/models/user-class.d.ts +13 -5
  51. package/models/assign-user-roles-request-dto.ts +2 -2
  52. package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
  53. package/models/create-custom-schema-request-dto.ts +2 -1
  54. package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
  55. package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
  56. package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
  57. package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
  58. package/models/index.ts +12 -50
  59. package/models/invite-org-request-dto.ts +84 -0
  60. package/models/invite-user-request-dto.ts +8 -2
  61. package/models/invite-users-request-dto.ts +2 -2
  62. package/models/invite-users-response-class.ts +30 -0
  63. package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
  64. package/models/{list-alert-history-response-class.ts → list-organizations-response-class.ts} +9 -9
  65. package/models/org-invitation-class.ts +109 -0
  66. package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
  67. package/models/organization-class.ts +90 -0
  68. package/models/set-setting-request-dto.ts +10 -4
  69. package/models/subscription-class.ts +9 -2
  70. package/models/update-custom-schema-request-dto.ts +2 -1
  71. package/models/user-class.ts +13 -5
  72. package/package.json +1 -1
  73. package/api/alerts-api.ts +0 -860
  74. package/api/dashboard-api.ts +0 -792
  75. package/api/reports-api.ts +0 -860
  76. package/api/scenario-analysis-api.ts +0 -977
  77. package/api/settings-api.ts +0 -484
  78. package/api/tariff-comparisons-api.ts +0 -381
  79. package/dist/api/alerts-api.d.ts +0 -479
  80. package/dist/api/alerts-api.js +0 -752
  81. package/dist/api/dashboard-api.d.ts +0 -434
  82. package/dist/api/dashboard-api.js +0 -724
  83. package/dist/api/reports-api.d.ts +0 -479
  84. package/dist/api/reports-api.js +0 -752
  85. package/dist/api/scenario-analysis-api.d.ts +0 -529
  86. package/dist/api/scenario-analysis-api.js +0 -895
  87. package/dist/api/settings-api.d.ts +0 -264
  88. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  89. package/dist/api/tariff-comparisons-api.js +0 -409
  90. package/dist/models/alert-class.d.ts +0 -90
  91. package/dist/models/alert-history-class.d.ts +0 -108
  92. package/dist/models/channel-response-class.d.ts +0 -30
  93. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  94. package/dist/models/compare-tariffs-request-dto.js +0 -22
  95. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  96. package/dist/models/condition-dto.d.ts +0 -43
  97. package/dist/models/condition-dto.js +0 -22
  98. package/dist/models/create-alert-request-dto.d.ts +0 -79
  99. package/dist/models/create-alert-request-dto.js +0 -27
  100. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  101. package/dist/models/create-dashboard-request-dto.js +0 -29
  102. package/dist/models/create-report-request-dto.d.ts +0 -49
  103. package/dist/models/create-report-request-dto.js +0 -22
  104. package/dist/models/create-report-response-class.d.ts +0 -25
  105. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  106. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  107. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  108. package/dist/models/dashboard-class.d.ts +0 -78
  109. package/dist/models/get-alert-response-class.d.ts +0 -25
  110. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  111. package/dist/models/get-report-response-class.d.ts +0 -25
  112. package/dist/models/get-report-response-class.js +0 -15
  113. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  114. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  115. package/dist/models/grouped-tariff-class.d.ts +0 -30
  116. package/dist/models/grouped-tariff-class.js +0 -15
  117. package/dist/models/insurance-company-response-class.js +0 -15
  118. package/dist/models/insurance-response-class.js +0 -15
  119. package/dist/models/list-alert-history-response-class.js +0 -15
  120. package/dist/models/list-alerts-response-class.d.ts +0 -31
  121. package/dist/models/list-alerts-response-class.js +0 -15
  122. package/dist/models/list-channels-response-class.d.ts +0 -25
  123. package/dist/models/list-channels-response-class.js +0 -15
  124. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  125. package/dist/models/list-dashboards-response-class.js +0 -15
  126. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  127. package/dist/models/list-insurance-companies-response-class.js +0 -15
  128. package/dist/models/list-report-history-response-class.d.ts +0 -31
  129. package/dist/models/list-report-history-response-class.js +0 -15
  130. package/dist/models/list-reports-response-class.d.ts +0 -31
  131. package/dist/models/list-reports-response-class.js +0 -15
  132. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  133. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  134. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  135. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  136. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  137. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  138. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  139. package/dist/models/list-tariffs-response-class.js +0 -15
  140. package/dist/models/list-user-subscriptions-response-class.js +0 -15
  141. package/dist/models/manage-subscription-request-dto.js +0 -15
  142. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  143. package/dist/models/manage-subscription-response-class.js +0 -15
  144. package/dist/models/report-class.d.ts +0 -66
  145. package/dist/models/report-class.js +0 -15
  146. package/dist/models/report-history-class.d.ts +0 -48
  147. package/dist/models/report-history-class.js +0 -15
  148. package/dist/models/scenario-analysis-class.d.ts +0 -108
  149. package/dist/models/scenario-analysis-class.js +0 -15
  150. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  151. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  152. package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
  153. package/dist/models/set-tenant-setting-response-class.js +0 -15
  154. package/dist/models/update-alert-request-dto.d.ts +0 -72
  155. package/dist/models/update-alert-request-dto.js +0 -21
  156. package/dist/models/update-alert-response-class.d.ts +0 -25
  157. package/dist/models/update-alert-response-class.js +0 -15
  158. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  159. package/dist/models/update-dashboard-request-dto.js +0 -29
  160. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  161. package/dist/models/update-dashboard-response-class.js +0 -15
  162. package/dist/models/update-report-request-dto.d.ts +0 -55
  163. package/dist/models/update-report-request-dto.js +0 -22
  164. package/dist/models/update-report-response-class.d.ts +0 -25
  165. package/dist/models/update-report-response-class.js +0 -15
  166. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  167. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  168. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  169. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  170. package/models/alert-class.ts +0 -96
  171. package/models/alert-history-class.ts +0 -114
  172. package/models/compare-tariffs-request-dto.ts +0 -46
  173. package/models/compare-tariffs-response-class.ts +0 -37
  174. package/models/condition-dto.ts +0 -52
  175. package/models/create-alert-request-dto.ts +0 -89
  176. package/models/create-dashboard-request-dto.ts +0 -81
  177. package/models/create-dashboard-response-class.ts +0 -31
  178. package/models/create-report-request-dto.ts +0 -58
  179. package/models/create-report-response-class.ts +0 -31
  180. package/models/create-scenario-analysis-request-dto.ts +0 -83
  181. package/models/create-scenario-analysis-response-class.ts +0 -31
  182. package/models/dashboard-class.ts +0 -84
  183. package/models/get-alert-response-class.ts +0 -31
  184. package/models/get-dashboard-response-class.ts +0 -31
  185. package/models/get-report-response-class.ts +0 -31
  186. package/models/get-scenario-analysis-response-class.ts +0 -31
  187. package/models/grouped-tariff-class.ts +0 -36
  188. package/models/list-alerts-response-class.ts +0 -37
  189. package/models/list-channels-response-class.ts +0 -31
  190. package/models/list-dashboards-response-class.ts +0 -37
  191. package/models/list-insurance-companies-response-class.ts +0 -31
  192. package/models/list-report-history-response-class.ts +0 -37
  193. package/models/list-reports-response-class.ts +0 -37
  194. package/models/list-scenario-analyses-response-class.ts +0 -37
  195. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  196. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  197. package/models/list-tariffs-response-class.ts +0 -31
  198. package/models/manage-subscription-response-class.ts +0 -31
  199. package/models/report-class.ts +0 -72
  200. package/models/report-history-class.ts +0 -54
  201. package/models/scenario-analysis-class.ts +0 -114
  202. package/models/scenario-analysis-date-response-class.ts +0 -42
  203. package/models/set-tenant-setting-response-class.ts +0 -42
  204. package/models/update-alert-request-dto.ts +0 -81
  205. package/models/update-alert-response-class.ts +0 -31
  206. package/models/update-dashboard-request-dto.ts +0 -87
  207. package/models/update-dashboard-response-class.ts +0 -31
  208. package/models/update-report-request-dto.ts +0 -64
  209. package/models/update-report-response-class.ts +0 -31
  210. package/models/update-scenario-analysis-request-dto.ts +0 -83
  211. package/models/update-scenario-analysis-response-class.ts +0 -31
  212. /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
  213. /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
  214. /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
  215. /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
  216. /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
  217. /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
  218. /package/dist/models/{create-report-response-class.js → invite-users-response-class.js} +0 -0
  219. /package/dist/models/{create-scenario-analysis-response-class.js → list-org-invitations-response-class.js} +0 -0
  220. /package/dist/models/{dashboard-class.js → list-organizations-response-class.js} +0 -0
  221. /package/dist/models/{get-alert-response-class.js → org-invitation-class.js} +0 -0
  222. /package/dist/models/{get-dashboard-response-class.js → org-invitation-response-class.js} +0 -0
  223. /package/dist/models/{get-embedded-url-response-class.js → organization-class.js} +0 -0
package/api/users-api.ts CHANGED
@@ -27,14 +27,22 @@ import { AssignUserRolesResponseClass } from '../models';
27
27
  // @ts-ignore
28
28
  import { BatchDeleteRequestDto } from '../models';
29
29
  // @ts-ignore
30
+ import { BatchDeleteResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { DeleteResponseClass } from '../models';
33
+ // @ts-ignore
30
34
  import { DisableUserResponseClass } from '../models';
31
35
  // @ts-ignore
32
36
  import { DisableUsersRequestDto } from '../models';
33
37
  // @ts-ignore
38
+ import { DisableUsersResponseClass } from '../models';
39
+ // @ts-ignore
34
40
  import { EnableUserResponseClass } from '../models';
35
41
  // @ts-ignore
36
42
  import { EnableUsersRequestDto } from '../models';
37
43
  // @ts-ignore
44
+ import { EnableUsersResponseClass } from '../models';
45
+ // @ts-ignore
38
46
  import { GetUserResponseClass } from '../models';
39
47
  // @ts-ignore
40
48
  import { ListUsersResponseClass } from '../models';
@@ -50,15 +58,13 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
50
58
  return {
51
59
  /**
52
60
  *
53
- * @param {string} authorization Bearer Token
54
61
  * @param {number} id
55
62
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
63
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
56
64
  * @param {*} [options] Override http request option.
57
65
  * @throws {RequiredError}
58
66
  */
59
- assignUserRoles: async (authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
60
- // verify required parameter 'authorization' is not null or undefined
61
- assertParamExists('assignUserRoles', 'authorization', authorization)
67
+ assignUserRoles: async (id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
62
68
  // verify required parameter 'id' is not null or undefined
63
69
  assertParamExists('assignUserRoles', 'id', id)
64
70
  // verify required parameter 'assignUserRolesRequestDto' is not null or undefined
@@ -102,14 +108,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
102
108
  },
103
109
  /**
104
110
  *
105
- * @param {string} authorization Bearer Token
106
111
  * @param {number} id
112
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
107
113
  * @param {*} [options] Override http request option.
108
114
  * @throws {RequiredError}
109
115
  */
110
- deleteUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
111
- // verify required parameter 'authorization' is not null or undefined
112
- assertParamExists('deleteUser', 'authorization', authorization)
116
+ deleteUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
113
117
  // verify required parameter 'id' is not null or undefined
114
118
  assertParamExists('deleteUser', 'id', id)
115
119
  const localVarPath = `/tenantservice/v1/users/{id}`
@@ -148,14 +152,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
148
152
  },
149
153
  /**
150
154
  *
151
- * @param {string} authorization Bearer Token
152
155
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
157
  * @param {*} [options] Override http request option.
154
158
  * @throws {RequiredError}
155
159
  */
156
- deleteUsers: async (authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
157
- // verify required parameter 'authorization' is not null or undefined
158
- assertParamExists('deleteUsers', 'authorization', authorization)
160
+ deleteUsers: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
159
161
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
160
162
  assertParamExists('deleteUsers', 'batchDeleteRequestDto', batchDeleteRequestDto)
161
163
  const localVarPath = `/tenantservice/v1/users/delete-batch`;
@@ -196,14 +198,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
196
198
  },
197
199
  /**
198
200
  *
199
- * @param {string} authorization Bearer Token
200
201
  * @param {number} id
202
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
203
  * @param {*} [options] Override http request option.
202
204
  * @throws {RequiredError}
203
205
  */
204
- disableUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
205
- // verify required parameter 'authorization' is not null or undefined
206
- assertParamExists('disableUser', 'authorization', authorization)
206
+ disableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
207
207
  // verify required parameter 'id' is not null or undefined
208
208
  assertParamExists('disableUser', 'id', id)
209
209
  const localVarPath = `/tenantservice/v1/users/{id}/disable`
@@ -242,14 +242,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
242
242
  },
243
243
  /**
244
244
  *
245
- * @param {string} authorization Bearer Token
246
245
  * @param {DisableUsersRequestDto} disableUsersRequestDto
246
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
247
247
  * @param {*} [options] Override http request option.
248
248
  * @throws {RequiredError}
249
249
  */
250
- disableUsers: async (authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
251
- // verify required parameter 'authorization' is not null or undefined
252
- assertParamExists('disableUsers', 'authorization', authorization)
250
+ disableUsers: async (disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
253
251
  // verify required parameter 'disableUsersRequestDto' is not null or undefined
254
252
  assertParamExists('disableUsers', 'disableUsersRequestDto', disableUsersRequestDto)
255
253
  const localVarPath = `/tenantservice/v1/users/disable-batch`;
@@ -290,14 +288,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
290
288
  },
291
289
  /**
292
290
  *
293
- * @param {string} authorization Bearer Token
294
291
  * @param {number} id
292
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
293
  * @param {*} [options] Override http request option.
296
294
  * @throws {RequiredError}
297
295
  */
298
- enableUser: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
299
- // verify required parameter 'authorization' is not null or undefined
300
- assertParamExists('enableUser', 'authorization', authorization)
296
+ enableUser: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
301
297
  // verify required parameter 'id' is not null or undefined
302
298
  assertParamExists('enableUser', 'id', id)
303
299
  const localVarPath = `/tenantservice/v1/users/{id}/enable`
@@ -336,14 +332,12 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
336
332
  },
337
333
  /**
338
334
  *
339
- * @param {string} authorization Bearer Token
340
335
  * @param {EnableUsersRequestDto} enableUsersRequestDto
336
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
341
337
  * @param {*} [options] Override http request option.
342
338
  * @throws {RequiredError}
343
339
  */
344
- enableUsers: async (authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
345
- // verify required parameter 'authorization' is not null or undefined
346
- assertParamExists('enableUsers', 'authorization', authorization)
340
+ enableUsers: async (enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
347
341
  // verify required parameter 'enableUsersRequestDto' is not null or undefined
348
342
  assertParamExists('enableUsers', 'enableUsersRequestDto', enableUsersRequestDto)
349
343
  const localVarPath = `/tenantservice/v1/users/enable-batch`;
@@ -384,16 +378,14 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
384
378
  },
385
379
  /**
386
380
  *
387
- * @param {string} authorization Bearer Token
388
381
  * @param {string} code
389
382
  * @param {string} code2 code
383
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
390
384
  * @param {string} [expand] Fields to expand response by
391
385
  * @param {*} [options] Override http request option.
392
386
  * @throws {RequiredError}
393
387
  */
394
- getUser: async (authorization: string, code: string, code2: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
395
- // verify required parameter 'authorization' is not null or undefined
396
- assertParamExists('getUser', 'authorization', authorization)
388
+ getUser: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
397
389
  // verify required parameter 'code' is not null or undefined
398
390
  assertParamExists('getUser', 'code', code)
399
391
  // verify required parameter 'code2' is not null or undefined
@@ -443,7 +435,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
443
435
  /**
444
436
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
445
437
  * @summary List users
446
- * @param {string} authorization Bearer Token
438
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
439
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
448
440
  * @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.
449
441
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -453,9 +445,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
453
445
  * @param {*} [options] Override http request option.
454
446
  * @throws {RequiredError}
455
447
  */
456
- listUsers: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
457
- // verify required parameter 'authorization' is not null or undefined
458
- assertParamExists('listUsers', 'authorization', authorization)
448
+ listUsers: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
459
449
  const localVarPath = `/tenantservice/v1/users`;
460
450
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
461
451
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -525,99 +515,99 @@ export const UsersApiFp = function(configuration?: Configuration) {
525
515
  return {
526
516
  /**
527
517
  *
528
- * @param {string} authorization Bearer Token
529
518
  * @param {number} id
530
519
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
520
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
521
  * @param {*} [options] Override http request option.
532
522
  * @throws {RequiredError}
533
523
  */
534
- async assignUserRoles(authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
535
- const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(authorization, id, assignUserRolesRequestDto, options);
524
+ async assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AssignUserRolesResponseClass>> {
525
+ const localVarAxiosArgs = await localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options);
536
526
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
537
527
  },
538
528
  /**
539
529
  *
540
- * @param {string} authorization Bearer Token
541
530
  * @param {number} id
531
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
542
532
  * @param {*} [options] Override http request option.
543
533
  * @throws {RequiredError}
544
534
  */
545
- async deleteUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
546
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(authorization, id, options);
535
+ async deleteUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
536
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUser(id, authorization, options);
547
537
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
548
538
  },
549
539
  /**
550
540
  *
551
- * @param {string} authorization Bearer Token
552
541
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
542
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
553
543
  * @param {*} [options] Override http request option.
554
544
  * @throws {RequiredError}
555
545
  */
556
- async deleteUsers(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
557
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(authorization, batchDeleteRequestDto, options);
546
+ async deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
547
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUsers(batchDeleteRequestDto, authorization, options);
558
548
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
559
549
  },
560
550
  /**
561
551
  *
562
- * @param {string} authorization Bearer Token
563
552
  * @param {number} id
553
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
564
554
  * @param {*} [options] Override http request option.
565
555
  * @throws {RequiredError}
566
556
  */
567
- async disableUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
568
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(authorization, id, options);
557
+ async disableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUserResponseClass>> {
558
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableUser(id, authorization, options);
569
559
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
570
560
  },
571
561
  /**
572
562
  *
573
- * @param {string} authorization Bearer Token
574
563
  * @param {DisableUsersRequestDto} disableUsersRequestDto
564
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
575
565
  * @param {*} [options] Override http request option.
576
566
  * @throws {RequiredError}
577
567
  */
578
- async disableUsers(authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
579
- const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(authorization, disableUsersRequestDto, options);
568
+ async disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DisableUsersResponseClass>> {
569
+ const localVarAxiosArgs = await localVarAxiosParamCreator.disableUsers(disableUsersRequestDto, authorization, options);
580
570
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
581
571
  },
582
572
  /**
583
573
  *
584
- * @param {string} authorization Bearer Token
585
574
  * @param {number} id
575
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
586
576
  * @param {*} [options] Override http request option.
587
577
  * @throws {RequiredError}
588
578
  */
589
- async enableUser(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
590
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(authorization, id, options);
579
+ async enableUser(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUserResponseClass>> {
580
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableUser(id, authorization, options);
591
581
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
592
582
  },
593
583
  /**
594
584
  *
595
- * @param {string} authorization Bearer Token
596
585
  * @param {EnableUsersRequestDto} enableUsersRequestDto
586
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
597
587
  * @param {*} [options] Override http request option.
598
588
  * @throws {RequiredError}
599
589
  */
600
- async enableUsers(authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
601
- const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(authorization, enableUsersRequestDto, options);
590
+ async enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnableUsersResponseClass>> {
591
+ const localVarAxiosArgs = await localVarAxiosParamCreator.enableUsers(enableUsersRequestDto, authorization, options);
602
592
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
603
593
  },
604
594
  /**
605
595
  *
606
- * @param {string} authorization Bearer Token
607
596
  * @param {string} code
608
597
  * @param {string} code2 code
598
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
609
599
  * @param {string} [expand] Fields to expand response by
610
600
  * @param {*} [options] Override http request option.
611
601
  * @throws {RequiredError}
612
602
  */
613
- async getUser(authorization: string, code: string, code2: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
614
- const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(authorization, code, code2, expand, options);
603
+ async getUser(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetUserResponseClass>> {
604
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(code, code2, authorization, expand, options);
615
605
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
616
606
  },
617
607
  /**
618
608
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
619
609
  * @summary List users
620
- * @param {string} authorization Bearer Token
610
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
621
611
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
622
612
  * @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.
623
613
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -627,7 +617,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
627
617
  * @param {*} [options] Override http request option.
628
618
  * @throws {RequiredError}
629
619
  */
630
- 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>> {
620
+ 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>> {
631
621
  const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options);
632
622
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
633
623
  },
@@ -643,91 +633,91 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
643
633
  return {
644
634
  /**
645
635
  *
646
- * @param {string} authorization Bearer Token
647
636
  * @param {number} id
648
637
  * @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
638
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
649
639
  * @param {*} [options] Override http request option.
650
640
  * @throws {RequiredError}
651
641
  */
652
- assignUserRoles(authorization: string, id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
653
- return localVarFp.assignUserRoles(authorization, id, assignUserRolesRequestDto, options).then((request) => request(axios, basePath));
642
+ assignUserRoles(id: number, assignUserRolesRequestDto: AssignUserRolesRequestDto, authorization?: string, options?: any): AxiosPromise<AssignUserRolesResponseClass> {
643
+ return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then((request) => request(axios, basePath));
654
644
  },
655
645
  /**
656
646
  *
657
- * @param {string} authorization Bearer Token
658
647
  * @param {number} id
648
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
659
649
  * @param {*} [options] Override http request option.
660
650
  * @throws {RequiredError}
661
651
  */
662
- deleteUser(authorization: string, id: number, options?: any): AxiosPromise<object> {
663
- return localVarFp.deleteUser(authorization, id, options).then((request) => request(axios, basePath));
652
+ deleteUser(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
653
+ return localVarFp.deleteUser(id, authorization, options).then((request) => request(axios, basePath));
664
654
  },
665
655
  /**
666
656
  *
667
- * @param {string} authorization Bearer Token
668
657
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
658
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
669
659
  * @param {*} [options] Override http request option.
670
660
  * @throws {RequiredError}
671
661
  */
672
- deleteUsers(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: any): AxiosPromise<object> {
673
- return localVarFp.deleteUsers(authorization, batchDeleteRequestDto, options).then((request) => request(axios, basePath));
662
+ deleteUsers(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
663
+ return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
674
664
  },
675
665
  /**
676
666
  *
677
- * @param {string} authorization Bearer Token
678
667
  * @param {number} id
668
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
679
669
  * @param {*} [options] Override http request option.
680
670
  * @throws {RequiredError}
681
671
  */
682
- disableUser(authorization: string, id: number, options?: any): AxiosPromise<DisableUserResponseClass> {
683
- return localVarFp.disableUser(authorization, id, options).then((request) => request(axios, basePath));
672
+ disableUser(id: number, authorization?: string, options?: any): AxiosPromise<DisableUserResponseClass> {
673
+ return localVarFp.disableUser(id, authorization, options).then((request) => request(axios, basePath));
684
674
  },
685
675
  /**
686
676
  *
687
- * @param {string} authorization Bearer Token
688
677
  * @param {DisableUsersRequestDto} disableUsersRequestDto
678
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
689
679
  * @param {*} [options] Override http request option.
690
680
  * @throws {RequiredError}
691
681
  */
692
- disableUsers(authorization: string, disableUsersRequestDto: DisableUsersRequestDto, options?: any): AxiosPromise<object> {
693
- return localVarFp.disableUsers(authorization, disableUsersRequestDto, options).then((request) => request(axios, basePath));
682
+ disableUsers(disableUsersRequestDto: DisableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<DisableUsersResponseClass> {
683
+ return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
694
684
  },
695
685
  /**
696
686
  *
697
- * @param {string} authorization Bearer Token
698
687
  * @param {number} id
688
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
699
689
  * @param {*} [options] Override http request option.
700
690
  * @throws {RequiredError}
701
691
  */
702
- enableUser(authorization: string, id: number, options?: any): AxiosPromise<EnableUserResponseClass> {
703
- return localVarFp.enableUser(authorization, id, options).then((request) => request(axios, basePath));
692
+ enableUser(id: number, authorization?: string, options?: any): AxiosPromise<EnableUserResponseClass> {
693
+ return localVarFp.enableUser(id, authorization, options).then((request) => request(axios, basePath));
704
694
  },
705
695
  /**
706
696
  *
707
- * @param {string} authorization Bearer Token
708
697
  * @param {EnableUsersRequestDto} enableUsersRequestDto
698
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
709
699
  * @param {*} [options] Override http request option.
710
700
  * @throws {RequiredError}
711
701
  */
712
- enableUsers(authorization: string, enableUsersRequestDto: EnableUsersRequestDto, options?: any): AxiosPromise<object> {
713
- return localVarFp.enableUsers(authorization, enableUsersRequestDto, options).then((request) => request(axios, basePath));
702
+ enableUsers(enableUsersRequestDto: EnableUsersRequestDto, authorization?: string, options?: any): AxiosPromise<EnableUsersResponseClass> {
703
+ return localVarFp.enableUsers(enableUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
714
704
  },
715
705
  /**
716
706
  *
717
- * @param {string} authorization Bearer Token
718
707
  * @param {string} code
719
708
  * @param {string} code2 code
709
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
720
710
  * @param {string} [expand] Fields to expand response by
721
711
  * @param {*} [options] Override http request option.
722
712
  * @throws {RequiredError}
723
713
  */
724
- getUser(authorization: string, code: string, code2: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
725
- return localVarFp.getUser(authorization, code, code2, expand, options).then((request) => request(axios, basePath));
714
+ getUser(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetUserResponseClass> {
715
+ return localVarFp.getUser(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
726
716
  },
727
717
  /**
728
718
  * Returns a list of users you have previously created. The users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
729
719
  * @summary List users
730
- * @param {string} authorization Bearer Token
720
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
731
721
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
732
722
  * @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.
733
723
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -737,7 +727,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
737
727
  * @param {*} [options] Override http request option.
738
728
  * @throws {RequiredError}
739
729
  */
740
- listUsers(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
730
+ listUsers(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListUsersResponseClass> {
741
731
  return localVarFp.listUsers(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
742
732
  },
743
733
  };
@@ -749,13 +739,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
749
739
  * @interface UsersApiAssignUserRolesRequest
750
740
  */
751
741
  export interface UsersApiAssignUserRolesRequest {
752
- /**
753
- * Bearer Token
754
- * @type {string}
755
- * @memberof UsersApiAssignUserRoles
756
- */
757
- readonly authorization: string
758
-
759
742
  /**
760
743
  *
761
744
  * @type {number}
@@ -769,6 +752,13 @@ export interface UsersApiAssignUserRolesRequest {
769
752
  * @memberof UsersApiAssignUserRoles
770
753
  */
771
754
  readonly assignUserRolesRequestDto: AssignUserRolesRequestDto
755
+
756
+ /**
757
+ * Bearer Token: provided by the login endpoint under the name accessToken.
758
+ * @type {string}
759
+ * @memberof UsersApiAssignUserRoles
760
+ */
761
+ readonly authorization?: string
772
762
  }
773
763
 
774
764
  /**
@@ -778,18 +768,18 @@ export interface UsersApiAssignUserRolesRequest {
778
768
  */
779
769
  export interface UsersApiDeleteUserRequest {
780
770
  /**
781
- * Bearer Token
782
- * @type {string}
771
+ *
772
+ * @type {number}
783
773
  * @memberof UsersApiDeleteUser
784
774
  */
785
- readonly authorization: string
775
+ readonly id: number
786
776
 
787
777
  /**
788
- *
789
- * @type {number}
778
+ * Bearer Token: provided by the login endpoint under the name accessToken.
779
+ * @type {string}
790
780
  * @memberof UsersApiDeleteUser
791
781
  */
792
- readonly id: number
782
+ readonly authorization?: string
793
783
  }
794
784
 
795
785
  /**
@@ -799,18 +789,18 @@ export interface UsersApiDeleteUserRequest {
799
789
  */
800
790
  export interface UsersApiDeleteUsersRequest {
801
791
  /**
802
- * Bearer Token
803
- * @type {string}
792
+ *
793
+ * @type {BatchDeleteRequestDto}
804
794
  * @memberof UsersApiDeleteUsers
805
795
  */
806
- readonly authorization: string
796
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
807
797
 
808
798
  /**
809
- *
810
- * @type {BatchDeleteRequestDto}
799
+ * Bearer Token: provided by the login endpoint under the name accessToken.
800
+ * @type {string}
811
801
  * @memberof UsersApiDeleteUsers
812
802
  */
813
- readonly batchDeleteRequestDto: BatchDeleteRequestDto
803
+ readonly authorization?: string
814
804
  }
815
805
 
816
806
  /**
@@ -820,18 +810,18 @@ export interface UsersApiDeleteUsersRequest {
820
810
  */
821
811
  export interface UsersApiDisableUserRequest {
822
812
  /**
823
- * Bearer Token
824
- * @type {string}
813
+ *
814
+ * @type {number}
825
815
  * @memberof UsersApiDisableUser
826
816
  */
827
- readonly authorization: string
817
+ readonly id: number
828
818
 
829
819
  /**
830
- *
831
- * @type {number}
820
+ * Bearer Token: provided by the login endpoint under the name accessToken.
821
+ * @type {string}
832
822
  * @memberof UsersApiDisableUser
833
823
  */
834
- readonly id: number
824
+ readonly authorization?: string
835
825
  }
836
826
 
837
827
  /**
@@ -841,18 +831,18 @@ export interface UsersApiDisableUserRequest {
841
831
  */
842
832
  export interface UsersApiDisableUsersRequest {
843
833
  /**
844
- * Bearer Token
845
- * @type {string}
834
+ *
835
+ * @type {DisableUsersRequestDto}
846
836
  * @memberof UsersApiDisableUsers
847
837
  */
848
- readonly authorization: string
838
+ readonly disableUsersRequestDto: DisableUsersRequestDto
849
839
 
850
840
  /**
851
- *
852
- * @type {DisableUsersRequestDto}
841
+ * Bearer Token: provided by the login endpoint under the name accessToken.
842
+ * @type {string}
853
843
  * @memberof UsersApiDisableUsers
854
844
  */
855
- readonly disableUsersRequestDto: DisableUsersRequestDto
845
+ readonly authorization?: string
856
846
  }
857
847
 
858
848
  /**
@@ -862,18 +852,18 @@ export interface UsersApiDisableUsersRequest {
862
852
  */
863
853
  export interface UsersApiEnableUserRequest {
864
854
  /**
865
- * Bearer Token
866
- * @type {string}
855
+ *
856
+ * @type {number}
867
857
  * @memberof UsersApiEnableUser
868
858
  */
869
- readonly authorization: string
859
+ readonly id: number
870
860
 
871
861
  /**
872
- *
873
- * @type {number}
862
+ * Bearer Token: provided by the login endpoint under the name accessToken.
863
+ * @type {string}
874
864
  * @memberof UsersApiEnableUser
875
865
  */
876
- readonly id: number
866
+ readonly authorization?: string
877
867
  }
878
868
 
879
869
  /**
@@ -883,18 +873,18 @@ export interface UsersApiEnableUserRequest {
883
873
  */
884
874
  export interface UsersApiEnableUsersRequest {
885
875
  /**
886
- * Bearer Token
887
- * @type {string}
876
+ *
877
+ * @type {EnableUsersRequestDto}
888
878
  * @memberof UsersApiEnableUsers
889
879
  */
890
- readonly authorization: string
880
+ readonly enableUsersRequestDto: EnableUsersRequestDto
891
881
 
892
882
  /**
893
- *
894
- * @type {EnableUsersRequestDto}
883
+ * Bearer Token: provided by the login endpoint under the name accessToken.
884
+ * @type {string}
895
885
  * @memberof UsersApiEnableUsers
896
886
  */
897
- readonly enableUsersRequestDto: EnableUsersRequestDto
887
+ readonly authorization?: string
898
888
  }
899
889
 
900
890
  /**
@@ -904,25 +894,25 @@ export interface UsersApiEnableUsersRequest {
904
894
  */
905
895
  export interface UsersApiGetUserRequest {
906
896
  /**
907
- * Bearer Token
897
+ *
908
898
  * @type {string}
909
899
  * @memberof UsersApiGetUser
910
900
  */
911
- readonly authorization: string
901
+ readonly code: string
912
902
 
913
903
  /**
914
- *
904
+ * code
915
905
  * @type {string}
916
906
  * @memberof UsersApiGetUser
917
907
  */
918
- readonly code: string
908
+ readonly code2: string
919
909
 
920
910
  /**
921
- * code
911
+ * Bearer Token: provided by the login endpoint under the name accessToken.
922
912
  * @type {string}
923
913
  * @memberof UsersApiGetUser
924
914
  */
925
- readonly code2: string
915
+ readonly authorization?: string
926
916
 
927
917
  /**
928
918
  * Fields to expand response by
@@ -939,11 +929,11 @@ export interface UsersApiGetUserRequest {
939
929
  */
940
930
  export interface UsersApiListUsersRequest {
941
931
  /**
942
- * Bearer Token
932
+ * Bearer Token: provided by the login endpoint under the name accessToken.
943
933
  * @type {string}
944
934
  * @memberof UsersApiListUsers
945
935
  */
946
- readonly authorization: string
936
+ readonly authorization?: string
947
937
 
948
938
  /**
949
939
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -1003,7 +993,7 @@ export class UsersApi extends BaseAPI {
1003
993
  * @memberof UsersApi
1004
994
  */
1005
995
  public assignUserRoles(requestParameters: UsersApiAssignUserRolesRequest, options?: AxiosRequestConfig) {
1006
- return UsersApiFp(this.configuration).assignUserRoles(requestParameters.authorization, requestParameters.id, requestParameters.assignUserRolesRequestDto, options).then((request) => request(this.axios, this.basePath));
996
+ return UsersApiFp(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1007
997
  }
1008
998
 
1009
999
  /**
@@ -1014,7 +1004,7 @@ export class UsersApi extends BaseAPI {
1014
1004
  * @memberof UsersApi
1015
1005
  */
1016
1006
  public deleteUser(requestParameters: UsersApiDeleteUserRequest, options?: AxiosRequestConfig) {
1017
- return UsersApiFp(this.configuration).deleteUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1007
+ return UsersApiFp(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1018
1008
  }
1019
1009
 
1020
1010
  /**
@@ -1025,7 +1015,7 @@ export class UsersApi extends BaseAPI {
1025
1015
  * @memberof UsersApi
1026
1016
  */
1027
1017
  public deleteUsers(requestParameters: UsersApiDeleteUsersRequest, options?: AxiosRequestConfig) {
1028
- return UsersApiFp(this.configuration).deleteUsers(requestParameters.authorization, requestParameters.batchDeleteRequestDto, options).then((request) => request(this.axios, this.basePath));
1018
+ return UsersApiFp(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1029
1019
  }
1030
1020
 
1031
1021
  /**
@@ -1036,7 +1026,7 @@ export class UsersApi extends BaseAPI {
1036
1026
  * @memberof UsersApi
1037
1027
  */
1038
1028
  public disableUser(requestParameters: UsersApiDisableUserRequest, options?: AxiosRequestConfig) {
1039
- return UsersApiFp(this.configuration).disableUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1029
+ return UsersApiFp(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1040
1030
  }
1041
1031
 
1042
1032
  /**
@@ -1047,7 +1037,7 @@ export class UsersApi extends BaseAPI {
1047
1037
  * @memberof UsersApi
1048
1038
  */
1049
1039
  public disableUsers(requestParameters: UsersApiDisableUsersRequest, options?: AxiosRequestConfig) {
1050
- return UsersApiFp(this.configuration).disableUsers(requestParameters.authorization, requestParameters.disableUsersRequestDto, options).then((request) => request(this.axios, this.basePath));
1040
+ return UsersApiFp(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1051
1041
  }
1052
1042
 
1053
1043
  /**
@@ -1058,7 +1048,7 @@ export class UsersApi extends BaseAPI {
1058
1048
  * @memberof UsersApi
1059
1049
  */
1060
1050
  public enableUser(requestParameters: UsersApiEnableUserRequest, options?: AxiosRequestConfig) {
1061
- return UsersApiFp(this.configuration).enableUser(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1051
+ return UsersApiFp(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1062
1052
  }
1063
1053
 
1064
1054
  /**
@@ -1069,7 +1059,7 @@ export class UsersApi extends BaseAPI {
1069
1059
  * @memberof UsersApi
1070
1060
  */
1071
1061
  public enableUsers(requestParameters: UsersApiEnableUsersRequest, options?: AxiosRequestConfig) {
1072
- return UsersApiFp(this.configuration).enableUsers(requestParameters.authorization, requestParameters.enableUsersRequestDto, options).then((request) => request(this.axios, this.basePath));
1062
+ return UsersApiFp(this.configuration).enableUsers(requestParameters.enableUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1073
1063
  }
1074
1064
 
1075
1065
  /**
@@ -1080,7 +1070,7 @@ export class UsersApi extends BaseAPI {
1080
1070
  * @memberof UsersApi
1081
1071
  */
1082
1072
  public getUser(requestParameters: UsersApiGetUserRequest, options?: AxiosRequestConfig) {
1083
- return UsersApiFp(this.configuration).getUser(requestParameters.authorization, requestParameters.code, requestParameters.code2, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1073
+ return UsersApiFp(this.configuration).getUser(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
1084
1074
  }
1085
1075
 
1086
1076
  /**
@@ -1091,7 +1081,7 @@ export class UsersApi extends BaseAPI {
1091
1081
  * @throws {RequiredError}
1092
1082
  * @memberof UsersApi
1093
1083
  */
1094
- public listUsers(requestParameters: UsersApiListUsersRequest, options?: AxiosRequestConfig) {
1084
+ public listUsers(requestParameters: UsersApiListUsersRequest = {}, options?: AxiosRequestConfig) {
1095
1085
  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));
1096
1086
  }
1097
1087
  }