@emilgroup/tenant-sdk 1.0.1 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) hide show
  1. package/.openapi-generator/FILES +16 -72
  2. package/README.md +2 -2
  3. package/api/custom-schema-api.ts +52 -60
  4. package/api/{user-subscription-api.ts → invite-organizations-api.ts} +139 -161
  5. package/api/invite-users-api.ts +75 -79
  6. package/api/organizations-api.ts +459 -0
  7. package/api/users-api.ts +138 -148
  8. package/api.ts +4 -18
  9. package/dist/api/custom-schema-api.d.ts +42 -42
  10. package/dist/api/custom-schema-api.js +31 -38
  11. package/dist/api/{user-subscription-api.d.ts → invite-organizations-api.d.ts} +89 -103
  12. package/dist/api/{user-subscription-api.js → invite-organizations-api.js} +106 -114
  13. package/dist/api/invite-users-api.d.ts +63 -60
  14. package/dist/api/invite-users-api.js +40 -49
  15. package/dist/api/organizations-api.d.ts +263 -0
  16. package/dist/api/{settings-api.js → organizations-api.js} +135 -195
  17. package/dist/api/users-api.d.ts +113 -109
  18. package/dist/api/users-api.js +76 -93
  19. package/dist/api.d.ts +2 -9
  20. package/dist/api.js +2 -9
  21. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  22. package/dist/models/{manage-subscription-request-dto.d.ts → batch-delete-response-class.d.ts} +5 -5
  23. package/dist/models/create-custom-schema-request-dto.d.ts +1 -0
  24. package/dist/models/create-custom-schema-request-dto.js +2 -1
  25. package/dist/models/{insurance-response-class.d.ts → delete-response-class.d.ts} +6 -6
  26. package/dist/models/{get-embedded-url-response-class.d.ts → disable-users-response-class.d.ts} +6 -6
  27. package/dist/models/{insurance-company-response-class.d.ts → enable-users-response-class.d.ts} +6 -6
  28. package/dist/models/{create-alert-response-class.d.ts → get-organization-response-class.d.ts} +7 -7
  29. package/dist/models/index.d.ts +14 -63
  30. package/dist/models/index.js +14 -63
  31. package/dist/models/invite-org-request-dto.d.ts +78 -0
  32. package/dist/models/invite-user-request-dto.d.ts +8 -2
  33. package/dist/models/invite-users-request-dto.d.ts +2 -2
  34. package/dist/models/invite-users-response-class.d.ts +24 -0
  35. package/dist/models/{list-user-subscriptions-response-class.d.ts → list-org-invitations-response-class.d.ts} +8 -8
  36. package/dist/models/{list-data-reports-response-class.d.ts → list-organizations-response-class.d.ts} +8 -8
  37. package/dist/models/org-invitation-class.d.ts +103 -0
  38. package/dist/models/{create-dashboard-response-class.d.ts → org-invitation-response-class.d.ts} +7 -7
  39. package/dist/models/organization-class.d.ts +96 -0
  40. package/dist/models/set-setting-request-dto.d.ts +10 -4
  41. package/dist/models/subscription-class.d.ts +9 -2
  42. package/dist/models/update-custom-schema-request-dto.d.ts +1 -0
  43. package/dist/models/update-custom-schema-request-dto.js +2 -1
  44. package/dist/models/update-organization-request-dto-rest.d.ts +60 -0
  45. package/dist/models/{channel-response-class.d.ts → update-organization-response-class.d.ts} +7 -12
  46. package/dist/models/user-class.d.ts +13 -5
  47. package/models/assign-user-roles-request-dto.ts +2 -2
  48. package/models/{manage-subscription-request-dto.ts → batch-delete-response-class.ts} +5 -5
  49. package/models/create-custom-schema-request-dto.ts +2 -1
  50. package/models/{insurance-response-class.ts → delete-response-class.ts} +6 -6
  51. package/models/{get-embedded-url-response-class.ts → disable-users-response-class.ts} +6 -6
  52. package/models/{insurance-company-response-class.ts → enable-users-response-class.ts} +6 -6
  53. package/models/{channel-response-class.ts → get-organization-response-class.ts} +7 -12
  54. package/models/index.ts +14 -63
  55. package/models/invite-org-request-dto.ts +84 -0
  56. package/models/invite-user-request-dto.ts +8 -2
  57. package/models/invite-users-request-dto.ts +2 -2
  58. package/models/invite-users-response-class.ts +30 -0
  59. package/models/{list-user-subscriptions-response-class.ts → list-org-invitations-response-class.ts} +8 -8
  60. package/models/{list-data-reports-response-class.ts → list-organizations-response-class.ts} +8 -8
  61. package/models/org-invitation-class.ts +109 -0
  62. package/models/{create-alert-response-class.ts → org-invitation-response-class.ts} +7 -7
  63. package/models/organization-class.ts +102 -0
  64. package/models/set-setting-request-dto.ts +10 -4
  65. package/models/subscription-class.ts +9 -2
  66. package/models/update-custom-schema-request-dto.ts +2 -1
  67. package/models/update-organization-request-dto-rest.ts +66 -0
  68. package/models/{create-dashboard-response-class.ts → update-organization-response-class.ts} +7 -7
  69. package/models/user-class.ts +13 -5
  70. package/package.json +2 -2
  71. package/api/alerts-api.ts +0 -860
  72. package/api/dashboard-api.ts +0 -792
  73. package/api/data-report-api.ts +0 -687
  74. package/api/data-report-executor-api.ts +0 -181
  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/data-report-api.d.ts +0 -380
  84. package/dist/api/data-report-api.js +0 -645
  85. package/dist/api/data-report-executor-api.d.ts +0 -102
  86. package/dist/api/data-report-executor-api.js +0 -232
  87. package/dist/api/reports-api.d.ts +0 -479
  88. package/dist/api/reports-api.js +0 -752
  89. package/dist/api/scenario-analysis-api.d.ts +0 -529
  90. package/dist/api/scenario-analysis-api.js +0 -895
  91. package/dist/api/settings-api.d.ts +0 -264
  92. package/dist/api/tariff-comparisons-api.d.ts +0 -206
  93. package/dist/api/tariff-comparisons-api.js +0 -409
  94. package/dist/models/alert-class.d.ts +0 -90
  95. package/dist/models/alert-history-class.d.ts +0 -108
  96. package/dist/models/compare-tariffs-request-dto.d.ts +0 -37
  97. package/dist/models/compare-tariffs-request-dto.js +0 -22
  98. package/dist/models/compare-tariffs-response-class.d.ts +0 -31
  99. package/dist/models/condition-dto.d.ts +0 -43
  100. package/dist/models/condition-dto.js +0 -22
  101. package/dist/models/create-alert-request-dto.d.ts +0 -79
  102. package/dist/models/create-alert-request-dto.js +0 -27
  103. package/dist/models/create-dashboard-request-dto.d.ts +0 -70
  104. package/dist/models/create-dashboard-request-dto.js +0 -29
  105. package/dist/models/create-data-report-request-dto.d.ts +0 -61
  106. package/dist/models/create-data-report-response-class.d.ts +0 -25
  107. package/dist/models/create-report-request-dto.d.ts +0 -49
  108. package/dist/models/create-report-request-dto.js +0 -22
  109. package/dist/models/create-report-response-class.d.ts +0 -25
  110. package/dist/models/create-scenario-analysis-request-dto.d.ts +0 -74
  111. package/dist/models/create-scenario-analysis-request-dto.js +0 -22
  112. package/dist/models/create-scenario-analysis-response-class.d.ts +0 -25
  113. package/dist/models/dashboard-class.d.ts +0 -78
  114. package/dist/models/data-report-class.d.ts +0 -79
  115. package/dist/models/data-report-filter-class.d.ts +0 -72
  116. package/dist/models/data-report-filter-dto.d.ts +0 -48
  117. package/dist/models/data-report-filter-single-value-dto.d.ts +0 -42
  118. package/dist/models/data-report-filter-single-value-dto.js +0 -15
  119. package/dist/models/data-report-filter-value-dto.d.ts +0 -31
  120. package/dist/models/data-report-filter-value-dto.js +0 -15
  121. package/dist/models/get-alert-response-class.d.ts +0 -25
  122. package/dist/models/get-alert-response-class.js +0 -15
  123. package/dist/models/get-dashboard-response-class.d.ts +0 -25
  124. package/dist/models/get-dashboard-response-class.js +0 -15
  125. package/dist/models/get-data-report-response-class.d.ts +0 -25
  126. package/dist/models/get-data-report-response-class.js +0 -15
  127. package/dist/models/get-embedded-url-response-class.js +0 -15
  128. package/dist/models/get-report-response-class.d.ts +0 -25
  129. package/dist/models/get-report-response-class.js +0 -15
  130. package/dist/models/get-scenario-analysis-response-class.d.ts +0 -25
  131. package/dist/models/get-scenario-analysis-response-class.js +0 -15
  132. package/dist/models/grouped-tariff-class.d.ts +0 -30
  133. package/dist/models/grouped-tariff-class.js +0 -15
  134. package/dist/models/insurance-company-response-class.js +0 -15
  135. package/dist/models/insurance-response-class.js +0 -15
  136. package/dist/models/list-alert-history-response-class.d.ts +0 -31
  137. package/dist/models/list-alert-history-response-class.js +0 -15
  138. package/dist/models/list-alerts-response-class.d.ts +0 -31
  139. package/dist/models/list-alerts-response-class.js +0 -15
  140. package/dist/models/list-channels-response-class.d.ts +0 -25
  141. package/dist/models/list-channels-response-class.js +0 -15
  142. package/dist/models/list-dashboards-response-class.d.ts +0 -31
  143. package/dist/models/list-dashboards-response-class.js +0 -15
  144. package/dist/models/list-data-reports-response-class.js +0 -15
  145. package/dist/models/list-insurance-companies-response-class.d.ts +0 -25
  146. package/dist/models/list-insurance-companies-response-class.js +0 -15
  147. package/dist/models/list-report-history-response-class.d.ts +0 -31
  148. package/dist/models/list-report-history-response-class.js +0 -15
  149. package/dist/models/list-reports-response-class.d.ts +0 -31
  150. package/dist/models/list-reports-response-class.js +0 -15
  151. package/dist/models/list-scenario-analyses-response-class.d.ts +0 -31
  152. package/dist/models/list-scenario-analyses-response-class.js +0 -15
  153. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +0 -25
  154. package/dist/models/list-scenario-analysis-dates-response-class.js +0 -15
  155. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +0 -25
  156. package/dist/models/list-tariff-insurance-companies-response-class.js +0 -15
  157. package/dist/models/list-tariffs-response-class.d.ts +0 -25
  158. package/dist/models/list-tariffs-response-class.js +0 -15
  159. package/dist/models/list-user-subscriptions-response-class.js +0 -15
  160. package/dist/models/manage-subscription-request-dto.js +0 -15
  161. package/dist/models/manage-subscription-response-class.d.ts +0 -25
  162. package/dist/models/manage-subscription-response-class.js +0 -15
  163. package/dist/models/report-class.d.ts +0 -66
  164. package/dist/models/report-class.js +0 -15
  165. package/dist/models/report-history-class.d.ts +0 -48
  166. package/dist/models/report-history-class.js +0 -15
  167. package/dist/models/run-data-report-request-dto.d.ts +0 -31
  168. package/dist/models/run-data-report-request-dto.js +0 -15
  169. package/dist/models/run-data-report-response-class.d.ts +0 -24
  170. package/dist/models/run-data-report-response-class.js +0 -15
  171. package/dist/models/scenario-analysis-class.d.ts +0 -108
  172. package/dist/models/scenario-analysis-class.js +0 -15
  173. package/dist/models/scenario-analysis-date-response-class.d.ts +0 -36
  174. package/dist/models/scenario-analysis-date-response-class.js +0 -15
  175. package/dist/models/set-tenant-setting-response-class.d.ts +0 -36
  176. package/dist/models/set-tenant-setting-response-class.js +0 -15
  177. package/dist/models/update-alert-request-dto.d.ts +0 -72
  178. package/dist/models/update-alert-request-dto.js +0 -21
  179. package/dist/models/update-alert-response-class.d.ts +0 -25
  180. package/dist/models/update-alert-response-class.js +0 -15
  181. package/dist/models/update-dashboard-request-dto.d.ts +0 -76
  182. package/dist/models/update-dashboard-request-dto.js +0 -29
  183. package/dist/models/update-dashboard-response-class.d.ts +0 -25
  184. package/dist/models/update-dashboard-response-class.js +0 -15
  185. package/dist/models/update-data-report-request-dto.d.ts +0 -61
  186. package/dist/models/update-data-report-request-dto.js +0 -15
  187. package/dist/models/update-data-report-response-class.d.ts +0 -25
  188. package/dist/models/update-data-report-response-class.js +0 -15
  189. package/dist/models/update-report-request-dto.d.ts +0 -55
  190. package/dist/models/update-report-request-dto.js +0 -22
  191. package/dist/models/update-report-response-class.d.ts +0 -25
  192. package/dist/models/update-report-response-class.js +0 -15
  193. package/dist/models/update-scenario-analysis-request-dto.d.ts +0 -74
  194. package/dist/models/update-scenario-analysis-request-dto.js +0 -22
  195. package/dist/models/update-scenario-analysis-response-class.d.ts +0 -25
  196. package/dist/models/update-scenario-analysis-response-class.js +0 -15
  197. package/models/alert-class.ts +0 -96
  198. package/models/alert-history-class.ts +0 -114
  199. package/models/compare-tariffs-request-dto.ts +0 -46
  200. package/models/compare-tariffs-response-class.ts +0 -37
  201. package/models/condition-dto.ts +0 -52
  202. package/models/create-alert-request-dto.ts +0 -89
  203. package/models/create-dashboard-request-dto.ts +0 -81
  204. package/models/create-data-report-request-dto.ts +0 -67
  205. package/models/create-data-report-response-class.ts +0 -31
  206. package/models/create-report-request-dto.ts +0 -58
  207. package/models/create-report-response-class.ts +0 -31
  208. package/models/create-scenario-analysis-request-dto.ts +0 -83
  209. package/models/create-scenario-analysis-response-class.ts +0 -31
  210. package/models/dashboard-class.ts +0 -84
  211. package/models/data-report-class.ts +0 -85
  212. package/models/data-report-filter-class.ts +0 -78
  213. package/models/data-report-filter-dto.ts +0 -54
  214. package/models/data-report-filter-single-value-dto.ts +0 -48
  215. package/models/data-report-filter-value-dto.ts +0 -37
  216. package/models/get-alert-response-class.ts +0 -31
  217. package/models/get-dashboard-response-class.ts +0 -31
  218. package/models/get-data-report-response-class.ts +0 -31
  219. package/models/get-report-response-class.ts +0 -31
  220. package/models/get-scenario-analysis-response-class.ts +0 -31
  221. package/models/grouped-tariff-class.ts +0 -36
  222. package/models/list-alert-history-response-class.ts +0 -37
  223. package/models/list-alerts-response-class.ts +0 -37
  224. package/models/list-channels-response-class.ts +0 -31
  225. package/models/list-dashboards-response-class.ts +0 -37
  226. package/models/list-insurance-companies-response-class.ts +0 -31
  227. package/models/list-report-history-response-class.ts +0 -37
  228. package/models/list-reports-response-class.ts +0 -37
  229. package/models/list-scenario-analyses-response-class.ts +0 -37
  230. package/models/list-scenario-analysis-dates-response-class.ts +0 -31
  231. package/models/list-tariff-insurance-companies-response-class.ts +0 -31
  232. package/models/list-tariffs-response-class.ts +0 -31
  233. package/models/manage-subscription-response-class.ts +0 -31
  234. package/models/report-class.ts +0 -72
  235. package/models/report-history-class.ts +0 -54
  236. package/models/run-data-report-request-dto.ts +0 -37
  237. package/models/run-data-report-response-class.ts +0 -30
  238. package/models/scenario-analysis-class.ts +0 -114
  239. package/models/scenario-analysis-date-response-class.ts +0 -42
  240. package/models/set-tenant-setting-response-class.ts +0 -42
  241. package/models/update-alert-request-dto.ts +0 -81
  242. package/models/update-alert-response-class.ts +0 -31
  243. package/models/update-dashboard-request-dto.ts +0 -87
  244. package/models/update-dashboard-response-class.ts +0 -31
  245. package/models/update-data-report-request-dto.ts +0 -67
  246. package/models/update-data-report-response-class.ts +0 -31
  247. package/models/update-report-request-dto.ts +0 -64
  248. package/models/update-report-response-class.ts +0 -31
  249. package/models/update-scenario-analysis-request-dto.ts +0 -83
  250. package/models/update-scenario-analysis-response-class.ts +0 -31
  251. /package/dist/models/{alert-class.js → batch-delete-response-class.js} +0 -0
  252. /package/dist/models/{alert-history-class.js → delete-response-class.js} +0 -0
  253. /package/dist/models/{channel-response-class.js → disable-users-response-class.js} +0 -0
  254. /package/dist/models/{compare-tariffs-response-class.js → enable-users-response-class.js} +0 -0
  255. /package/dist/models/{create-alert-response-class.js → get-organization-response-class.js} +0 -0
  256. /package/dist/models/{create-dashboard-response-class.js → invite-org-request-dto.js} +0 -0
  257. /package/dist/models/{create-data-report-request-dto.js → invite-users-response-class.js} +0 -0
  258. /package/dist/models/{create-data-report-response-class.js → list-org-invitations-response-class.js} +0 -0
  259. /package/dist/models/{create-report-response-class.js → list-organizations-response-class.js} +0 -0
  260. /package/dist/models/{create-scenario-analysis-response-class.js → org-invitation-class.js} +0 -0
  261. /package/dist/models/{dashboard-class.js → org-invitation-response-class.js} +0 -0
  262. /package/dist/models/{data-report-class.js → organization-class.js} +0 -0
  263. /package/dist/models/{data-report-filter-class.js → update-organization-request-dto-rest.js} +0 -0
  264. /package/dist/models/{data-report-filter-dto.js → update-organization-response-class.js} +0 -0
@@ -99,20 +99,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
99
99
  /**
100
100
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
101
101
  * @summary Delete the invited user
102
- * @param {string} authorization Bearer Token
103
102
  * @param {number} id
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- deleteInvite: function (authorization, id, options) {
107
+ deleteInvite: function (id, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'authorization' is not null or undefined
115
- (0, common_1.assertParamExists)('deleteInvite', 'authorization', authorization);
116
114
  // verify required parameter 'id' is not null or undefined
117
115
  (0, common_1.assertParamExists)('deleteInvite', 'id', id);
118
116
  localVarPath = "/tenantservice/v1/users/invites/{id}"
@@ -149,20 +147,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
149
147
  /**
150
148
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
151
149
  * @summary Delete invited users.
152
- * @param {string} authorization Bearer Token
153
150
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
152
  * @param {*} [options] Override http request option.
155
153
  * @throws {RequiredError}
156
154
  */
157
- deleteInvites: function (authorization, batchDeleteRequestDto, options) {
155
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
158
156
  if (options === void 0) { options = {}; }
159
157
  return __awaiter(_this, void 0, void 0, function () {
160
158
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
161
159
  return __generator(this, function (_a) {
162
160
  switch (_a.label) {
163
161
  case 0:
164
- // verify required parameter 'authorization' is not null or undefined
165
- (0, common_1.assertParamExists)('deleteInvites', 'authorization', authorization);
166
162
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
167
163
  (0, common_1.assertParamExists)('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto);
168
164
  localVarPath = "/tenantservice/v1/users/invites/delete-batch";
@@ -200,20 +196,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
200
196
  /**
201
197
  * This send an email to invite a user with the specific role/roles.
202
198
  * @summary Invite a user
203
- * @param {string} authorization Bearer Token
204
199
  * @param {InviteUserRequestDto} inviteUserRequestDto
200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
205
201
  * @param {*} [options] Override http request option.
206
202
  * @throws {RequiredError}
207
203
  */
208
- inviteUser: function (authorization, inviteUserRequestDto, options) {
204
+ inviteUser: function (inviteUserRequestDto, authorization, options) {
209
205
  if (options === void 0) { options = {}; }
210
206
  return __awaiter(_this, void 0, void 0, function () {
211
207
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
212
208
  return __generator(this, function (_a) {
213
209
  switch (_a.label) {
214
210
  case 0:
215
- // verify required parameter 'authorization' is not null or undefined
216
- (0, common_1.assertParamExists)('inviteUser', 'authorization', authorization);
217
211
  // verify required parameter 'inviteUserRequestDto' is not null or undefined
218
212
  (0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto);
219
213
  localVarPath = "/tenantservice/v1/users/invites";
@@ -251,20 +245,18 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
251
245
  /**
252
246
  * This send bulk emails to invite users with the specific role/roles.
253
247
  * @summary Invite batch of users
254
- * @param {string} authorization Bearer Token
255
248
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
250
  * @param {*} [options] Override http request option.
257
251
  * @throws {RequiredError}
258
252
  */
259
- inviteUsers: function (authorization, inviteUsersRequestDto, options) {
253
+ inviteUsers: function (inviteUsersRequestDto, authorization, options) {
260
254
  if (options === void 0) { options = {}; }
261
255
  return __awaiter(_this, void 0, void 0, function () {
262
256
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
263
257
  return __generator(this, function (_a) {
264
258
  switch (_a.label) {
265
259
  case 0:
266
- // verify required parameter 'authorization' is not null or undefined
267
- (0, common_1.assertParamExists)('inviteUsers', 'authorization', authorization);
268
260
  // verify required parameter 'inviteUsersRequestDto' is not null or undefined
269
261
  (0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto);
270
262
  localVarPath = "/tenantservice/v1/users/invites/batch";
@@ -302,7 +294,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
302
294
  /**
303
295
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
304
296
  * @summary List invited users
305
- * @param {string} authorization Bearer Token
297
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
298
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
307
299
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
308
300
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -319,8 +311,6 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
319
311
  return __generator(this, function (_a) {
320
312
  switch (_a.label) {
321
313
  case 0:
322
- // verify required parameter 'authorization' is not null or undefined
323
- (0, common_1.assertParamExists)('listInvites', 'authorization', authorization);
324
314
  localVarPath = "/tenantservice/v1/users/invites";
325
315
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
326
316
  if (configuration) {
@@ -382,17 +372,17 @@ var InviteUsersApiFp = function (configuration) {
382
372
  /**
383
373
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
384
374
  * @summary Delete the invited user
385
- * @param {string} authorization Bearer Token
386
375
  * @param {number} id
376
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
377
  * @param {*} [options] Override http request option.
388
378
  * @throws {RequiredError}
389
379
  */
390
- deleteInvite: function (authorization, id, options) {
380
+ deleteInvite: function (id, authorization, options) {
391
381
  return __awaiter(this, void 0, void 0, function () {
392
382
  var localVarAxiosArgs;
393
383
  return __generator(this, function (_a) {
394
384
  switch (_a.label) {
395
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvite(authorization, id, options)];
385
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvite(id, authorization, options)];
396
386
  case 1:
397
387
  localVarAxiosArgs = _a.sent();
398
388
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -403,17 +393,17 @@ var InviteUsersApiFp = function (configuration) {
403
393
  /**
404
394
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
405
395
  * @summary Delete invited users.
406
- * @param {string} authorization Bearer Token
407
396
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
397
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
398
  * @param {*} [options] Override http request option.
409
399
  * @throws {RequiredError}
410
400
  */
411
- deleteInvites: function (authorization, batchDeleteRequestDto, options) {
401
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
412
402
  return __awaiter(this, void 0, void 0, function () {
413
403
  var localVarAxiosArgs;
414
404
  return __generator(this, function (_a) {
415
405
  switch (_a.label) {
416
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvites(authorization, batchDeleteRequestDto, options)];
406
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options)];
417
407
  case 1:
418
408
  localVarAxiosArgs = _a.sent();
419
409
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -424,17 +414,17 @@ var InviteUsersApiFp = function (configuration) {
424
414
  /**
425
415
  * This send an email to invite a user with the specific role/roles.
426
416
  * @summary Invite a user
427
- * @param {string} authorization Bearer Token
428
417
  * @param {InviteUserRequestDto} inviteUserRequestDto
418
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
429
419
  * @param {*} [options] Override http request option.
430
420
  * @throws {RequiredError}
431
421
  */
432
- inviteUser: function (authorization, inviteUserRequestDto, options) {
422
+ inviteUser: function (inviteUserRequestDto, authorization, options) {
433
423
  return __awaiter(this, void 0, void 0, function () {
434
424
  var localVarAxiosArgs;
435
425
  return __generator(this, function (_a) {
436
426
  switch (_a.label) {
437
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(authorization, inviteUserRequestDto, options)];
427
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options)];
438
428
  case 1:
439
429
  localVarAxiosArgs = _a.sent();
440
430
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -445,17 +435,17 @@ var InviteUsersApiFp = function (configuration) {
445
435
  /**
446
436
  * This send bulk emails to invite users with the specific role/roles.
447
437
  * @summary Invite batch of users
448
- * @param {string} authorization Bearer Token
449
438
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
439
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
450
440
  * @param {*} [options] Override http request option.
451
441
  * @throws {RequiredError}
452
442
  */
453
- inviteUsers: function (authorization, inviteUsersRequestDto, options) {
443
+ inviteUsers: function (inviteUsersRequestDto, authorization, options) {
454
444
  return __awaiter(this, void 0, void 0, function () {
455
445
  var localVarAxiosArgs;
456
446
  return __generator(this, function (_a) {
457
447
  switch (_a.label) {
458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(authorization, inviteUsersRequestDto, options)];
448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options)];
459
449
  case 1:
460
450
  localVarAxiosArgs = _a.sent();
461
451
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -466,7 +456,7 @@ var InviteUsersApiFp = function (configuration) {
466
456
  /**
467
457
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
468
458
  * @summary List invited users
469
- * @param {string} authorization Bearer Token
459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
470
460
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
471
461
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
472
462
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -502,51 +492,51 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
502
492
  /**
503
493
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
504
494
  * @summary Delete the invited user
505
- * @param {string} authorization Bearer Token
506
495
  * @param {number} id
496
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
507
497
  * @param {*} [options] Override http request option.
508
498
  * @throws {RequiredError}
509
499
  */
510
- deleteInvite: function (authorization, id, options) {
511
- return localVarFp.deleteInvite(authorization, id, options).then(function (request) { return request(axios, basePath); });
500
+ deleteInvite: function (id, authorization, options) {
501
+ return localVarFp.deleteInvite(id, authorization, options).then(function (request) { return request(axios, basePath); });
512
502
  },
513
503
  /**
514
504
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
515
505
  * @summary Delete invited users.
516
- * @param {string} authorization Bearer Token
517
506
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
507
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
518
508
  * @param {*} [options] Override http request option.
519
509
  * @throws {RequiredError}
520
510
  */
521
- deleteInvites: function (authorization, batchDeleteRequestDto, options) {
522
- return localVarFp.deleteInvites(authorization, batchDeleteRequestDto, options).then(function (request) { return request(axios, basePath); });
511
+ deleteInvites: function (batchDeleteRequestDto, authorization, options) {
512
+ return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
523
513
  },
524
514
  /**
525
515
  * This send an email to invite a user with the specific role/roles.
526
516
  * @summary Invite a user
527
- * @param {string} authorization Bearer Token
528
517
  * @param {InviteUserRequestDto} inviteUserRequestDto
518
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
529
519
  * @param {*} [options] Override http request option.
530
520
  * @throws {RequiredError}
531
521
  */
532
- inviteUser: function (authorization, inviteUserRequestDto, options) {
533
- return localVarFp.inviteUser(authorization, inviteUserRequestDto, options).then(function (request) { return request(axios, basePath); });
522
+ inviteUser: function (inviteUserRequestDto, authorization, options) {
523
+ return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
534
524
  },
535
525
  /**
536
526
  * This send bulk emails to invite users with the specific role/roles.
537
527
  * @summary Invite batch of users
538
- * @param {string} authorization Bearer Token
539
528
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
529
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
540
530
  * @param {*} [options] Override http request option.
541
531
  * @throws {RequiredError}
542
532
  */
543
- inviteUsers: function (authorization, inviteUsersRequestDto, options) {
544
- return localVarFp.inviteUsers(authorization, inviteUsersRequestDto, options).then(function (request) { return request(axios, basePath); });
533
+ inviteUsers: function (inviteUsersRequestDto, authorization, options) {
534
+ return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
545
535
  },
546
536
  /**
547
537
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
548
538
  * @summary List invited users
549
- * @param {string} authorization Bearer Token
539
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
550
540
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
551
541
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
552
542
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -583,7 +573,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
583
573
  */
584
574
  InviteUsersApi.prototype.deleteInvite = function (requestParameters, options) {
585
575
  var _this = this;
586
- return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvite(requestParameters.authorization, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
576
+ return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
587
577
  };
588
578
  /**
589
579
  * This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
@@ -595,7 +585,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
595
585
  */
596
586
  InviteUsersApi.prototype.deleteInvites = function (requestParameters, options) {
597
587
  var _this = this;
598
- return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.authorization, requestParameters.batchDeleteRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
588
+ return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
599
589
  };
600
590
  /**
601
591
  * This send an email to invite a user with the specific role/roles.
@@ -607,7 +597,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
607
597
  */
608
598
  InviteUsersApi.prototype.inviteUser = function (requestParameters, options) {
609
599
  var _this = this;
610
- return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.authorization, requestParameters.inviteUserRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
600
+ return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
601
  };
612
602
  /**
613
603
  * This send bulk emails to invite users with the specific role/roles.
@@ -619,7 +609,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
619
609
  */
620
610
  InviteUsersApi.prototype.inviteUsers = function (requestParameters, options) {
621
611
  var _this = this;
622
- return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.authorization, requestParameters.inviteUsersRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
612
+ return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
623
613
  };
624
614
  /**
625
615
  * Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -631,6 +621,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
631
621
  */
632
622
  InviteUsersApi.prototype.listInvites = function (requestParameters, options) {
633
623
  var _this = this;
624
+ if (requestParameters === void 0) { requestParameters = {}; }
634
625
  return (0, exports.InviteUsersApiFp)(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
635
626
  };
636
627
  return InviteUsersApi;
@@ -0,0 +1,263 @@
1
+ /**
2
+ * EMIL Tenant Service
3
+ * The EMIL TenantService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { GetOrganizationResponseClass } from '../models';
16
+ import { ListOrganizationsResponseClass } from '../models';
17
+ import { UpdateOrganizationRequestDtoRest } from '../models';
18
+ import { UpdateOrganizationResponseClass } from '../models';
19
+ /**
20
+ * OrganizationsApi - axios parameter creator
21
+ * @export
22
+ */
23
+ export declare const OrganizationsApiAxiosParamCreator: (configuration?: Configuration) => {
24
+ /**
25
+ * Get Organization by code
26
+ * @summary Retrieve the Organization
27
+ * @param {string} code
28
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
29
+ * @param {*} [options] Override http request option.
30
+ * @throws {RequiredError}
31
+ */
32
+ getOrganization: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ /**
34
+ * This will fetch list of organizations
35
+ * @summary List organizations
36
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
37
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
38
+ * @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.
39
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
40
+ * @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.
41
+ * @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.
42
+ * @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.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ listOrganizations: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ /**
48
+ * Update organization data
49
+ * @summary Update the Organization
50
+ * @param {string} code
51
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
52
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ updateOrganization: (code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
+ };
58
+ /**
59
+ * OrganizationsApi - functional programming interface
60
+ * @export
61
+ */
62
+ export declare const OrganizationsApiFp: (configuration?: Configuration) => {
63
+ /**
64
+ * Get Organization by code
65
+ * @summary Retrieve the Organization
66
+ * @param {string} code
67
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ getOrganization(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetOrganizationResponseClass>>;
72
+ /**
73
+ * This will fetch list of organizations
74
+ * @summary List organizations
75
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
76
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
77
+ * @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.
78
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
79
+ * @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.
80
+ * @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.
81
+ * @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.
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrganizationsResponseClass>>;
86
+ /**
87
+ * Update organization data
88
+ * @summary Update the Organization
89
+ * @param {string} code
90
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
91
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateOrganizationResponseClass>>;
96
+ };
97
+ /**
98
+ * OrganizationsApi - factory interface
99
+ * @export
100
+ */
101
+ export declare const OrganizationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
102
+ /**
103
+ * Get Organization by code
104
+ * @summary Retrieve the Organization
105
+ * @param {string} code
106
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
107
+ * @param {*} [options] Override http request option.
108
+ * @throws {RequiredError}
109
+ */
110
+ getOrganization(code: string, authorization?: string, options?: any): AxiosPromise<GetOrganizationResponseClass>;
111
+ /**
112
+ * This will fetch list of organizations
113
+ * @summary List organizations
114
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
116
+ * @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.
117
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
118
+ * @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.
119
+ * @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.
120
+ * @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.
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ listOrganizations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrganizationsResponseClass>;
125
+ /**
126
+ * Update organization data
127
+ * @summary Update the Organization
128
+ * @param {string} code
129
+ * @param {UpdateOrganizationRequestDtoRest} updateOrganizationRequestDtoRest
130
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
131
+ * @param {*} [options] Override http request option.
132
+ * @throws {RequiredError}
133
+ */
134
+ updateOrganization(code: string, updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateOrganizationResponseClass>;
135
+ };
136
+ /**
137
+ * Request parameters for getOrganization operation in OrganizationsApi.
138
+ * @export
139
+ * @interface OrganizationsApiGetOrganizationRequest
140
+ */
141
+ export interface OrganizationsApiGetOrganizationRequest {
142
+ /**
143
+ *
144
+ * @type {string}
145
+ * @memberof OrganizationsApiGetOrganization
146
+ */
147
+ readonly code: string;
148
+ /**
149
+ * Bearer Token: provided by the login endpoint under the name accessToken.
150
+ * @type {string}
151
+ * @memberof OrganizationsApiGetOrganization
152
+ */
153
+ readonly authorization?: string;
154
+ }
155
+ /**
156
+ * Request parameters for listOrganizations operation in OrganizationsApi.
157
+ * @export
158
+ * @interface OrganizationsApiListOrganizationsRequest
159
+ */
160
+ export interface OrganizationsApiListOrganizationsRequest {
161
+ /**
162
+ * Bearer Token: provided by the login endpoint under the name accessToken.
163
+ * @type {string}
164
+ * @memberof OrganizationsApiListOrganizations
165
+ */
166
+ readonly authorization?: string;
167
+ /**
168
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
169
+ * @type {any}
170
+ * @memberof OrganizationsApiListOrganizations
171
+ */
172
+ readonly pageSize?: any;
173
+ /**
174
+ * 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.
175
+ * @type {any}
176
+ * @memberof OrganizationsApiListOrganizations
177
+ */
178
+ readonly pageToken?: any;
179
+ /**
180
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
181
+ * @type {any}
182
+ * @memberof OrganizationsApiListOrganizations
183
+ */
184
+ readonly filter?: any;
185
+ /**
186
+ * 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.
187
+ * @type {any}
188
+ * @memberof OrganizationsApiListOrganizations
189
+ */
190
+ readonly search?: any;
191
+ /**
192
+ * 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.
193
+ * @type {any}
194
+ * @memberof OrganizationsApiListOrganizations
195
+ */
196
+ readonly order?: any;
197
+ /**
198
+ * 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.
199
+ * @type {any}
200
+ * @memberof OrganizationsApiListOrganizations
201
+ */
202
+ readonly expand?: any;
203
+ }
204
+ /**
205
+ * Request parameters for updateOrganization operation in OrganizationsApi.
206
+ * @export
207
+ * @interface OrganizationsApiUpdateOrganizationRequest
208
+ */
209
+ export interface OrganizationsApiUpdateOrganizationRequest {
210
+ /**
211
+ *
212
+ * @type {string}
213
+ * @memberof OrganizationsApiUpdateOrganization
214
+ */
215
+ readonly code: string;
216
+ /**
217
+ *
218
+ * @type {UpdateOrganizationRequestDtoRest}
219
+ * @memberof OrganizationsApiUpdateOrganization
220
+ */
221
+ readonly updateOrganizationRequestDtoRest: UpdateOrganizationRequestDtoRest;
222
+ /**
223
+ * Bearer Token: provided by the login endpoint under the name accessToken.
224
+ * @type {string}
225
+ * @memberof OrganizationsApiUpdateOrganization
226
+ */
227
+ readonly authorization?: string;
228
+ }
229
+ /**
230
+ * OrganizationsApi - object-oriented interface
231
+ * @export
232
+ * @class OrganizationsApi
233
+ * @extends {BaseAPI}
234
+ */
235
+ export declare class OrganizationsApi extends BaseAPI {
236
+ /**
237
+ * Get Organization by code
238
+ * @summary Retrieve the Organization
239
+ * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters.
240
+ * @param {*} [options] Override http request option.
241
+ * @throws {RequiredError}
242
+ * @memberof OrganizationsApi
243
+ */
244
+ getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetOrganizationResponseClass, any>>;
245
+ /**
246
+ * This will fetch list of organizations
247
+ * @summary List organizations
248
+ * @param {OrganizationsApiListOrganizationsRequest} requestParameters Request parameters.
249
+ * @param {*} [options] Override http request option.
250
+ * @throws {RequiredError}
251
+ * @memberof OrganizationsApi
252
+ */
253
+ listOrganizations(requestParameters?: OrganizationsApiListOrganizationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListOrganizationsResponseClass, any>>;
254
+ /**
255
+ * Update organization data
256
+ * @summary Update the Organization
257
+ * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters.
258
+ * @param {*} [options] Override http request option.
259
+ * @throws {RequiredError}
260
+ * @memberof OrganizationsApi
261
+ */
262
+ updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateOrganizationResponseClass, any>>;
263
+ }