@emilgroup/tenant-sdk 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (227) hide show
  1. package/.openapi-generator/FILES +57 -14
  2. package/README.md +2 -2
  3. package/api/alerts-api.ts +860 -0
  4. package/api/custom-schema-api.ts +60 -52
  5. package/api/dashboard-api.ts +792 -0
  6. package/api/data-report-api.ts +75 -65
  7. package/api/data-report-executor-api.ts +26 -10
  8. package/api/invite-users-api.ts +79 -75
  9. package/api/reports-api.ts +860 -0
  10. package/api/scenario-analysis-api.ts +977 -0
  11. package/api/settings-api.ts +484 -0
  12. package/api/tariff-comparisons-api.ts +381 -0
  13. package/api/{invite-organizations-api.ts → user-subscription-api.ts} +161 -139
  14. package/api/users-api.ts +148 -138
  15. package/api.ts +14 -4
  16. package/dist/api/alerts-api.d.ts +479 -0
  17. package/dist/api/alerts-api.js +752 -0
  18. package/dist/api/custom-schema-api.d.ts +42 -42
  19. package/dist/api/custom-schema-api.js +38 -31
  20. package/dist/api/dashboard-api.d.ts +434 -0
  21. package/dist/api/dashboard-api.js +724 -0
  22. package/dist/api/data-report-api.d.ts +52 -52
  23. package/dist/api/data-report-api.js +49 -40
  24. package/dist/api/data-report-executor-api.d.ts +16 -7
  25. package/dist/api/data-report-executor-api.js +17 -9
  26. package/dist/api/invite-users-api.d.ts +60 -63
  27. package/dist/api/invite-users-api.js +49 -40
  28. package/dist/api/reports-api.d.ts +479 -0
  29. package/dist/api/reports-api.js +752 -0
  30. package/dist/api/scenario-analysis-api.d.ts +529 -0
  31. package/dist/api/scenario-analysis-api.js +895 -0
  32. package/dist/api/settings-api.d.ts +264 -0
  33. package/dist/api/settings-api.js +509 -0
  34. package/dist/api/tariff-comparisons-api.d.ts +206 -0
  35. package/dist/api/{organizations-api.js → tariff-comparisons-api.js} +158 -99
  36. package/dist/api/{organizations-api.d.ts → user-subscription-api.d.ts} +103 -88
  37. package/dist/api/{invite-organizations-api.js → user-subscription-api.js} +114 -106
  38. package/dist/api/users-api.d.ts +109 -113
  39. package/dist/api/users-api.js +93 -76
  40. package/dist/api.d.ts +7 -2
  41. package/dist/api.js +7 -2
  42. package/dist/models/alert-class.d.ts +90 -0
  43. package/dist/models/alert-history-class.d.ts +108 -0
  44. package/dist/models/assign-user-roles-request-dto.d.ts +2 -2
  45. package/dist/models/channel-response-class.d.ts +30 -0
  46. package/dist/models/compare-tariffs-request-dto.d.ts +37 -0
  47. package/dist/models/compare-tariffs-request-dto.js +22 -0
  48. package/dist/models/compare-tariffs-response-class.d.ts +31 -0
  49. package/dist/models/condition-dto.d.ts +43 -0
  50. package/dist/models/condition-dto.js +22 -0
  51. package/dist/models/create-alert-request-dto.d.ts +79 -0
  52. package/dist/models/create-alert-request-dto.js +27 -0
  53. package/dist/models/create-alert-response-class.d.ts +25 -0
  54. package/dist/models/create-custom-schema-request-dto.d.ts +0 -1
  55. package/dist/models/create-custom-schema-request-dto.js +1 -2
  56. package/dist/models/create-dashboard-request-dto.d.ts +70 -0
  57. package/dist/models/create-dashboard-request-dto.js +29 -0
  58. package/dist/models/create-dashboard-response-class.d.ts +25 -0
  59. package/dist/models/create-report-request-dto.d.ts +49 -0
  60. package/dist/models/create-report-request-dto.js +22 -0
  61. package/dist/models/create-report-response-class.d.ts +25 -0
  62. package/dist/models/create-scenario-analysis-request-dto.d.ts +74 -0
  63. package/dist/models/create-scenario-analysis-request-dto.js +22 -0
  64. package/dist/models/create-scenario-analysis-response-class.d.ts +25 -0
  65. package/dist/models/dashboard-class.d.ts +78 -0
  66. package/dist/models/get-alert-response-class.d.ts +25 -0
  67. package/dist/models/get-dashboard-response-class.d.ts +25 -0
  68. package/dist/models/{delete-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -6
  69. package/dist/models/get-report-response-class.d.ts +25 -0
  70. package/dist/models/get-report-response-class.js +15 -0
  71. package/dist/models/get-scenario-analysis-response-class.d.ts +25 -0
  72. package/dist/models/get-scenario-analysis-response-class.js +15 -0
  73. package/dist/models/grouped-tariff-class.d.ts +30 -0
  74. package/dist/models/grouped-tariff-class.js +15 -0
  75. package/dist/models/index.d.ts +50 -12
  76. package/dist/models/index.js +50 -12
  77. package/dist/models/{enable-users-response-class.d.ts → insurance-company-response-class.d.ts} +6 -6
  78. package/dist/models/insurance-company-response-class.js +15 -0
  79. package/dist/models/{disable-users-response-class.d.ts → insurance-response-class.d.ts} +6 -6
  80. package/dist/models/insurance-response-class.js +15 -0
  81. package/dist/models/invite-user-request-dto.d.ts +2 -8
  82. package/dist/models/invite-users-request-dto.d.ts +2 -2
  83. package/dist/models/{list-organizations-response-class.d.ts → list-alert-history-response-class.d.ts} +9 -9
  84. package/dist/models/list-alert-history-response-class.js +15 -0
  85. package/dist/models/list-alerts-response-class.d.ts +31 -0
  86. package/dist/models/list-alerts-response-class.js +15 -0
  87. package/dist/models/list-channels-response-class.d.ts +25 -0
  88. package/dist/models/list-channels-response-class.js +15 -0
  89. package/dist/models/list-dashboards-response-class.d.ts +31 -0
  90. package/dist/models/list-dashboards-response-class.js +15 -0
  91. package/dist/models/list-insurance-companies-response-class.d.ts +25 -0
  92. package/dist/models/list-insurance-companies-response-class.js +15 -0
  93. package/dist/models/list-report-history-response-class.d.ts +31 -0
  94. package/dist/models/list-report-history-response-class.js +15 -0
  95. package/dist/models/list-reports-response-class.d.ts +31 -0
  96. package/dist/models/list-reports-response-class.js +15 -0
  97. package/dist/models/list-scenario-analyses-response-class.d.ts +31 -0
  98. package/dist/models/list-scenario-analyses-response-class.js +15 -0
  99. package/dist/models/list-scenario-analysis-dates-response-class.d.ts +25 -0
  100. package/dist/models/list-scenario-analysis-dates-response-class.js +15 -0
  101. package/dist/models/list-tariff-insurance-companies-response-class.d.ts +25 -0
  102. package/dist/models/list-tariff-insurance-companies-response-class.js +15 -0
  103. package/dist/models/list-tariffs-response-class.d.ts +25 -0
  104. package/dist/models/list-tariffs-response-class.js +15 -0
  105. package/dist/models/{list-org-invitations-response-class.d.ts → list-user-subscriptions-response-class.d.ts} +8 -8
  106. package/dist/models/list-user-subscriptions-response-class.js +15 -0
  107. package/dist/models/{batch-delete-response-class.d.ts → manage-subscription-request-dto.d.ts} +5 -5
  108. package/dist/models/manage-subscription-request-dto.js +15 -0
  109. package/dist/models/manage-subscription-response-class.d.ts +25 -0
  110. package/dist/models/manage-subscription-response-class.js +15 -0
  111. package/dist/models/report-class.d.ts +66 -0
  112. package/dist/models/report-class.js +15 -0
  113. package/dist/models/report-history-class.d.ts +48 -0
  114. package/dist/models/report-history-class.js +15 -0
  115. package/dist/models/scenario-analysis-class.d.ts +108 -0
  116. package/dist/models/scenario-analysis-class.js +15 -0
  117. package/dist/models/scenario-analysis-date-response-class.d.ts +36 -0
  118. package/dist/models/scenario-analysis-date-response-class.js +15 -0
  119. package/dist/models/set-setting-request-dto.d.ts +4 -10
  120. package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
  121. package/dist/models/set-tenant-setting-response-class.js +15 -0
  122. package/dist/models/subscription-class.d.ts +2 -9
  123. package/dist/models/update-alert-request-dto.d.ts +72 -0
  124. package/dist/models/update-alert-request-dto.js +21 -0
  125. package/dist/models/update-alert-response-class.d.ts +25 -0
  126. package/dist/models/update-alert-response-class.js +15 -0
  127. package/dist/models/update-custom-schema-request-dto.d.ts +0 -1
  128. package/dist/models/update-custom-schema-request-dto.js +1 -2
  129. package/dist/models/update-dashboard-request-dto.d.ts +76 -0
  130. package/dist/models/update-dashboard-request-dto.js +29 -0
  131. package/dist/models/update-dashboard-response-class.d.ts +25 -0
  132. package/dist/models/update-dashboard-response-class.js +15 -0
  133. package/dist/models/update-report-request-dto.d.ts +55 -0
  134. package/dist/models/update-report-request-dto.js +22 -0
  135. package/dist/models/update-report-response-class.d.ts +25 -0
  136. package/dist/models/update-report-response-class.js +15 -0
  137. package/dist/models/update-scenario-analysis-request-dto.d.ts +74 -0
  138. package/dist/models/update-scenario-analysis-request-dto.js +22 -0
  139. package/dist/models/update-scenario-analysis-response-class.d.ts +25 -0
  140. package/dist/models/update-scenario-analysis-response-class.js +15 -0
  141. package/dist/models/user-class.d.ts +5 -13
  142. package/models/alert-class.ts +96 -0
  143. package/models/alert-history-class.ts +114 -0
  144. package/models/assign-user-roles-request-dto.ts +2 -2
  145. package/models/channel-response-class.ts +36 -0
  146. package/models/compare-tariffs-request-dto.ts +46 -0
  147. package/models/compare-tariffs-response-class.ts +37 -0
  148. package/models/condition-dto.ts +52 -0
  149. package/models/create-alert-request-dto.ts +89 -0
  150. package/models/create-alert-response-class.ts +31 -0
  151. package/models/create-custom-schema-request-dto.ts +1 -2
  152. package/models/create-dashboard-request-dto.ts +81 -0
  153. package/models/create-dashboard-response-class.ts +31 -0
  154. package/models/create-report-request-dto.ts +58 -0
  155. package/models/create-report-response-class.ts +31 -0
  156. package/models/create-scenario-analysis-request-dto.ts +83 -0
  157. package/models/create-scenario-analysis-response-class.ts +31 -0
  158. package/models/dashboard-class.ts +84 -0
  159. package/models/get-alert-response-class.ts +31 -0
  160. package/models/get-dashboard-response-class.ts +31 -0
  161. package/models/{disable-users-response-class.ts → get-embedded-url-response-class.ts} +6 -6
  162. package/models/get-report-response-class.ts +31 -0
  163. package/models/get-scenario-analysis-response-class.ts +31 -0
  164. package/models/grouped-tariff-class.ts +36 -0
  165. package/models/index.ts +50 -12
  166. package/models/{enable-users-response-class.ts → insurance-company-response-class.ts} +6 -6
  167. package/models/{delete-response-class.ts → insurance-response-class.ts} +6 -6
  168. package/models/invite-user-request-dto.ts +2 -8
  169. package/models/invite-users-request-dto.ts +2 -2
  170. package/models/{list-organizations-response-class.ts → list-alert-history-response-class.ts} +9 -9
  171. package/models/list-alerts-response-class.ts +37 -0
  172. package/models/list-channels-response-class.ts +31 -0
  173. package/models/list-dashboards-response-class.ts +37 -0
  174. package/models/list-insurance-companies-response-class.ts +31 -0
  175. package/models/list-report-history-response-class.ts +37 -0
  176. package/models/list-reports-response-class.ts +37 -0
  177. package/models/list-scenario-analyses-response-class.ts +37 -0
  178. package/models/list-scenario-analysis-dates-response-class.ts +31 -0
  179. package/models/list-tariff-insurance-companies-response-class.ts +31 -0
  180. package/models/list-tariffs-response-class.ts +31 -0
  181. package/models/{list-org-invitations-response-class.ts → list-user-subscriptions-response-class.ts} +8 -8
  182. package/models/{batch-delete-response-class.ts → manage-subscription-request-dto.ts} +5 -5
  183. package/models/manage-subscription-response-class.ts +31 -0
  184. package/models/report-class.ts +72 -0
  185. package/models/report-history-class.ts +54 -0
  186. package/models/scenario-analysis-class.ts +114 -0
  187. package/models/scenario-analysis-date-response-class.ts +42 -0
  188. package/models/set-setting-request-dto.ts +4 -10
  189. package/models/set-tenant-setting-response-class.ts +42 -0
  190. package/models/subscription-class.ts +2 -9
  191. package/models/update-alert-request-dto.ts +81 -0
  192. package/models/update-alert-response-class.ts +31 -0
  193. package/models/update-custom-schema-request-dto.ts +1 -2
  194. package/models/update-dashboard-request-dto.ts +87 -0
  195. package/models/update-dashboard-response-class.ts +31 -0
  196. package/models/update-report-request-dto.ts +64 -0
  197. package/models/update-report-response-class.ts +31 -0
  198. package/models/update-scenario-analysis-request-dto.ts +83 -0
  199. package/models/update-scenario-analysis-response-class.ts +31 -0
  200. package/models/user-class.ts +5 -13
  201. package/package.json +1 -1
  202. package/api/organizations-api.ts +0 -339
  203. package/dist/api/invite-organizations-api.d.ts +0 -198
  204. package/dist/models/get-organization-response-class.d.ts +0 -25
  205. package/dist/models/invite-org-request-dto.d.ts +0 -78
  206. package/dist/models/invite-users-response-class.d.ts +0 -24
  207. package/dist/models/org-invitation-class.d.ts +0 -103
  208. package/dist/models/org-invitation-response-class.d.ts +0 -25
  209. package/dist/models/organization-class.d.ts +0 -84
  210. package/models/get-organization-response-class.ts +0 -31
  211. package/models/invite-org-request-dto.ts +0 -84
  212. package/models/invite-users-response-class.ts +0 -30
  213. package/models/org-invitation-class.ts +0 -109
  214. package/models/org-invitation-response-class.ts +0 -31
  215. package/models/organization-class.ts +0 -90
  216. /package/dist/models/{batch-delete-response-class.js → alert-class.js} +0 -0
  217. /package/dist/models/{delete-response-class.js → alert-history-class.js} +0 -0
  218. /package/dist/models/{disable-users-response-class.js → channel-response-class.js} +0 -0
  219. /package/dist/models/{enable-users-response-class.js → compare-tariffs-response-class.js} +0 -0
  220. /package/dist/models/{get-organization-response-class.js → create-alert-response-class.js} +0 -0
  221. /package/dist/models/{invite-org-request-dto.js → create-dashboard-response-class.js} +0 -0
  222. /package/dist/models/{invite-users-response-class.js → create-report-response-class.js} +0 -0
  223. /package/dist/models/{list-org-invitations-response-class.js → create-scenario-analysis-response-class.js} +0 -0
  224. /package/dist/models/{list-organizations-response-class.js → dashboard-class.js} +0 -0
  225. /package/dist/models/{org-invitation-class.js → get-alert-response-class.js} +0 -0
  226. /package/dist/models/{org-invitation-response-class.js → get-dashboard-response-class.js} +0 -0
  227. /package/dist/models/{organization-class.js → get-embedded-url-response-class.js} +0 -0
@@ -23,18 +23,12 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { BatchDeleteRequestDto } from '../models';
25
25
  // @ts-ignore
26
- import { BatchDeleteResponseClass } from '../models';
27
- // @ts-ignore
28
- import { DeleteResponseClass } from '../models';
29
- // @ts-ignore
30
26
  import { InviteUserRequestDto } from '../models';
31
27
  // @ts-ignore
32
28
  import { InviteUserResponseClass } from '../models';
33
29
  // @ts-ignore
34
30
  import { InviteUsersRequestDto } from '../models';
35
31
  // @ts-ignore
36
- import { InviteUsersResponseClass } from '../models';
37
- // @ts-ignore
38
32
  import { ListInvitesResponseClass } from '../models';
39
33
  // URLSearchParams not necessarily used
40
34
  // @ts-ignore
@@ -49,12 +43,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
49
43
  /**
50
44
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
51
45
  * @summary Delete the invited user
46
+ * @param {string} authorization Bearer Token
52
47
  * @param {number} id
53
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
48
  * @param {*} [options] Override http request option.
55
49
  * @throws {RequiredError}
56
50
  */
57
- deleteInvite: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
51
+ deleteInvite: async (authorization: string, id: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
52
+ // verify required parameter 'authorization' is not null or undefined
53
+ assertParamExists('deleteInvite', 'authorization', authorization)
58
54
  // verify required parameter 'id' is not null or undefined
59
55
  assertParamExists('deleteInvite', 'id', id)
60
56
  const localVarPath = `/tenantservice/v1/users/invites/{id}`
@@ -94,12 +90,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
94
90
  /**
95
91
  * 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.
96
92
  * @summary Delete invited users.
93
+ * @param {string} authorization Bearer Token
97
94
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
98
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
99
95
  * @param {*} [options] Override http request option.
100
96
  * @throws {RequiredError}
101
97
  */
102
- deleteInvites: async (batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
98
+ deleteInvites: async (authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
99
+ // verify required parameter 'authorization' is not null or undefined
100
+ assertParamExists('deleteInvites', 'authorization', authorization)
103
101
  // verify required parameter 'batchDeleteRequestDto' is not null or undefined
104
102
  assertParamExists('deleteInvites', 'batchDeleteRequestDto', batchDeleteRequestDto)
105
103
  const localVarPath = `/tenantservice/v1/users/invites/delete-batch`;
@@ -141,12 +139,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
141
139
  /**
142
140
  * This send an email to invite a user with the specific role/roles.
143
141
  * @summary Invite a user
142
+ * @param {string} authorization Bearer Token
144
143
  * @param {InviteUserRequestDto} inviteUserRequestDto
145
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
144
  * @param {*} [options] Override http request option.
147
145
  * @throws {RequiredError}
148
146
  */
149
- inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
+ inviteUser: async (authorization: string, inviteUserRequestDto: InviteUserRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
+ // verify required parameter 'authorization' is not null or undefined
149
+ assertParamExists('inviteUser', 'authorization', authorization)
150
150
  // verify required parameter 'inviteUserRequestDto' is not null or undefined
151
151
  assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
152
152
  const localVarPath = `/tenantservice/v1/users/invites`;
@@ -188,12 +188,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
188
188
  /**
189
189
  * This send bulk emails to invite users with the specific role/roles.
190
190
  * @summary Invite batch of users
191
+ * @param {string} authorization Bearer Token
191
192
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
192
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
193
  * @param {*} [options] Override http request option.
194
194
  * @throws {RequiredError}
195
195
  */
196
- inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
+ inviteUsers: async (authorization: string, inviteUsersRequestDto: InviteUsersRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ // verify required parameter 'authorization' is not null or undefined
198
+ assertParamExists('inviteUsers', 'authorization', authorization)
197
199
  // verify required parameter 'inviteUsersRequestDto' is not null or undefined
198
200
  assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
199
201
  const localVarPath = `/tenantservice/v1/users/invites/batch`;
@@ -235,7 +237,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
235
237
  /**
236
238
  * 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.
237
239
  * @summary List invited users
238
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
240
+ * @param {string} authorization Bearer Token
239
241
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
240
242
  * @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.
241
243
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -245,7 +247,9 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
245
247
  * @param {*} [options] Override http request option.
246
248
  * @throws {RequiredError}
247
249
  */
248
- listInvites: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
250
+ listInvites: async (authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
251
+ // verify required parameter 'authorization' is not null or undefined
252
+ assertParamExists('listInvites', 'authorization', authorization)
249
253
  const localVarPath = `/tenantservice/v1/users/invites`;
250
254
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
251
255
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -316,55 +320,55 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
316
320
  /**
317
321
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
318
322
  * @summary Delete the invited user
323
+ * @param {string} authorization Bearer Token
319
324
  * @param {number} id
320
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
321
325
  * @param {*} [options] Override http request option.
322
326
  * @throws {RequiredError}
323
327
  */
324
- async deleteInvite(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
325
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(id, authorization, options);
328
+ async deleteInvite(authorization: string, id: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
329
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvite(authorization, id, options);
326
330
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
327
331
  },
328
332
  /**
329
333
  * 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.
330
334
  * @summary Delete invited users.
335
+ * @param {string} authorization Bearer Token
331
336
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
332
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
333
337
  * @param {*} [options] Override http request option.
334
338
  * @throws {RequiredError}
335
339
  */
336
- async deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchDeleteResponseClass>> {
337
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(batchDeleteRequestDto, authorization, options);
340
+ async deleteInvites(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
341
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInvites(authorization, batchDeleteRequestDto, options);
338
342
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
343
  },
340
344
  /**
341
345
  * This send an email to invite a user with the specific role/roles.
342
346
  * @summary Invite a user
347
+ * @param {string} authorization Bearer Token
343
348
  * @param {InviteUserRequestDto} inviteUserRequestDto
344
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
345
349
  * @param {*} [options] Override http request option.
346
350
  * @throws {RequiredError}
347
351
  */
348
- async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
349
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
352
+ async inviteUser(authorization: string, inviteUserRequestDto: InviteUserRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
353
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(authorization, inviteUserRequestDto, options);
350
354
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
351
355
  },
352
356
  /**
353
357
  * This send bulk emails to invite users with the specific role/roles.
354
358
  * @summary Invite batch of users
359
+ * @param {string} authorization Bearer Token
355
360
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
356
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
361
  * @param {*} [options] Override http request option.
358
362
  * @throws {RequiredError}
359
363
  */
360
- async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
361
- const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
364
+ async inviteUsers(authorization: string, inviteUsersRequestDto: InviteUsersRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(authorization, inviteUsersRequestDto, options);
362
366
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
363
367
  },
364
368
  /**
365
369
  * 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.
366
370
  * @summary List invited users
367
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
+ * @param {string} authorization Bearer Token
368
372
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
369
373
  * @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.
370
374
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -374,7 +378,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
374
378
  * @param {*} [options] Override http request option.
375
379
  * @throws {RequiredError}
376
380
  */
377
- async listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvitesResponseClass>> {
381
+ async listInvites(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvitesResponseClass>> {
378
382
  const localVarAxiosArgs = await localVarAxiosParamCreator.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options);
379
383
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
384
  },
@@ -391,51 +395,51 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
391
395
  /**
392
396
  * Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
393
397
  * @summary Delete the invited user
398
+ * @param {string} authorization Bearer Token
394
399
  * @param {number} id
395
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
396
400
  * @param {*} [options] Override http request option.
397
401
  * @throws {RequiredError}
398
402
  */
399
- deleteInvite(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
400
- return localVarFp.deleteInvite(id, authorization, options).then((request) => request(axios, basePath));
403
+ deleteInvite(authorization: string, id: number, options?: any): AxiosPromise<object> {
404
+ return localVarFp.deleteInvite(authorization, id, options).then((request) => request(axios, basePath));
401
405
  },
402
406
  /**
403
407
  * 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.
404
408
  * @summary Delete invited users.
409
+ * @param {string} authorization Bearer Token
405
410
  * @param {BatchDeleteRequestDto} batchDeleteRequestDto
406
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
407
411
  * @param {*} [options] Override http request option.
408
412
  * @throws {RequiredError}
409
413
  */
410
- deleteInvites(batchDeleteRequestDto: BatchDeleteRequestDto, authorization?: string, options?: any): AxiosPromise<BatchDeleteResponseClass> {
411
- return localVarFp.deleteInvites(batchDeleteRequestDto, authorization, options).then((request) => request(axios, basePath));
414
+ deleteInvites(authorization: string, batchDeleteRequestDto: BatchDeleteRequestDto, options?: any): AxiosPromise<object> {
415
+ return localVarFp.deleteInvites(authorization, batchDeleteRequestDto, options).then((request) => request(axios, basePath));
412
416
  },
413
417
  /**
414
418
  * This send an email to invite a user with the specific role/roles.
415
419
  * @summary Invite a user
420
+ * @param {string} authorization Bearer Token
416
421
  * @param {InviteUserRequestDto} inviteUserRequestDto
417
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
418
422
  * @param {*} [options] Override http request option.
419
423
  * @throws {RequiredError}
420
424
  */
421
- inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
422
- return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
425
+ inviteUser(authorization: string, inviteUserRequestDto: InviteUserRequestDto, options?: any): AxiosPromise<InviteUserResponseClass> {
426
+ return localVarFp.inviteUser(authorization, inviteUserRequestDto, options).then((request) => request(axios, basePath));
423
427
  },
424
428
  /**
425
429
  * This send bulk emails to invite users with the specific role/roles.
426
430
  * @summary Invite batch of users
431
+ * @param {string} authorization Bearer Token
427
432
  * @param {InviteUsersRequestDto} inviteUsersRequestDto
428
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
429
433
  * @param {*} [options] Override http request option.
430
434
  * @throws {RequiredError}
431
435
  */
432
- inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
433
- return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
436
+ inviteUsers(authorization: string, inviteUsersRequestDto: InviteUsersRequestDto, options?: any): AxiosPromise<object> {
437
+ return localVarFp.inviteUsers(authorization, inviteUsersRequestDto, options).then((request) => request(axios, basePath));
434
438
  },
435
439
  /**
436
440
  * 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.
437
441
  * @summary List invited users
438
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
+ * @param {string} authorization Bearer Token
439
443
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
440
444
  * @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.
441
445
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
@@ -445,7 +449,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
445
449
  * @param {*} [options] Override http request option.
446
450
  * @throws {RequiredError}
447
451
  */
448
- listInvites(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvitesResponseClass> {
452
+ listInvites(authorization: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvitesResponseClass> {
449
453
  return localVarFp.listInvites(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
450
454
  },
451
455
  };
@@ -458,18 +462,18 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
458
462
  */
459
463
  export interface InviteUsersApiDeleteInviteRequest {
460
464
  /**
461
- *
462
- * @type {number}
465
+ * Bearer Token
466
+ * @type {string}
463
467
  * @memberof InviteUsersApiDeleteInvite
464
468
  */
465
- readonly id: number
469
+ readonly authorization: string
466
470
 
467
471
  /**
468
- * Bearer Token: provided by the login endpoint under the name accessToken.
469
- * @type {string}
472
+ *
473
+ * @type {number}
470
474
  * @memberof InviteUsersApiDeleteInvite
471
475
  */
472
- readonly authorization?: string
476
+ readonly id: number
473
477
  }
474
478
 
475
479
  /**
@@ -479,18 +483,18 @@ export interface InviteUsersApiDeleteInviteRequest {
479
483
  */
480
484
  export interface InviteUsersApiDeleteInvitesRequest {
481
485
  /**
482
- *
483
- * @type {BatchDeleteRequestDto}
486
+ * Bearer Token
487
+ * @type {string}
484
488
  * @memberof InviteUsersApiDeleteInvites
485
489
  */
486
- readonly batchDeleteRequestDto: BatchDeleteRequestDto
490
+ readonly authorization: string
487
491
 
488
492
  /**
489
- * Bearer Token: provided by the login endpoint under the name accessToken.
490
- * @type {string}
493
+ *
494
+ * @type {BatchDeleteRequestDto}
491
495
  * @memberof InviteUsersApiDeleteInvites
492
496
  */
493
- readonly authorization?: string
497
+ readonly batchDeleteRequestDto: BatchDeleteRequestDto
494
498
  }
495
499
 
496
500
  /**
@@ -500,18 +504,18 @@ export interface InviteUsersApiDeleteInvitesRequest {
500
504
  */
501
505
  export interface InviteUsersApiInviteUserRequest {
502
506
  /**
503
- *
504
- * @type {InviteUserRequestDto}
507
+ * Bearer Token
508
+ * @type {string}
505
509
  * @memberof InviteUsersApiInviteUser
506
510
  */
507
- readonly inviteUserRequestDto: InviteUserRequestDto
511
+ readonly authorization: string
508
512
 
509
513
  /**
510
- * Bearer Token: provided by the login endpoint under the name accessToken.
511
- * @type {string}
514
+ *
515
+ * @type {InviteUserRequestDto}
512
516
  * @memberof InviteUsersApiInviteUser
513
517
  */
514
- readonly authorization?: string
518
+ readonly inviteUserRequestDto: InviteUserRequestDto
515
519
  }
516
520
 
517
521
  /**
@@ -521,18 +525,18 @@ export interface InviteUsersApiInviteUserRequest {
521
525
  */
522
526
  export interface InviteUsersApiInviteUsersRequest {
523
527
  /**
524
- *
525
- * @type {InviteUsersRequestDto}
528
+ * Bearer Token
529
+ * @type {string}
526
530
  * @memberof InviteUsersApiInviteUsers
527
531
  */
528
- readonly inviteUsersRequestDto: InviteUsersRequestDto
532
+ readonly authorization: string
529
533
 
530
534
  /**
531
- * Bearer Token: provided by the login endpoint under the name accessToken.
532
- * @type {string}
535
+ *
536
+ * @type {InviteUsersRequestDto}
533
537
  * @memberof InviteUsersApiInviteUsers
534
538
  */
535
- readonly authorization?: string
539
+ readonly inviteUsersRequestDto: InviteUsersRequestDto
536
540
  }
537
541
 
538
542
  /**
@@ -542,11 +546,11 @@ export interface InviteUsersApiInviteUsersRequest {
542
546
  */
543
547
  export interface InviteUsersApiListInvitesRequest {
544
548
  /**
545
- * Bearer Token: provided by the login endpoint under the name accessToken.
549
+ * Bearer Token
546
550
  * @type {string}
547
551
  * @memberof InviteUsersApiListInvites
548
552
  */
549
- readonly authorization?: string
553
+ readonly authorization: string
550
554
 
551
555
  /**
552
556
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
@@ -607,7 +611,7 @@ export class InviteUsersApi extends BaseAPI {
607
611
  * @memberof InviteUsersApi
608
612
  */
609
613
  public deleteInvite(requestParameters: InviteUsersApiDeleteInviteRequest, options?: AxiosRequestConfig) {
610
- return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
614
+ return InviteUsersApiFp(this.configuration).deleteInvite(requestParameters.authorization, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
611
615
  }
612
616
 
613
617
  /**
@@ -619,7 +623,7 @@ export class InviteUsersApi extends BaseAPI {
619
623
  * @memberof InviteUsersApi
620
624
  */
621
625
  public deleteInvites(requestParameters: InviteUsersApiDeleteInvitesRequest, options?: AxiosRequestConfig) {
622
- return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
626
+ return InviteUsersApiFp(this.configuration).deleteInvites(requestParameters.authorization, requestParameters.batchDeleteRequestDto, options).then((request) => request(this.axios, this.basePath));
623
627
  }
624
628
 
625
629
  /**
@@ -631,7 +635,7 @@ export class InviteUsersApi extends BaseAPI {
631
635
  * @memberof InviteUsersApi
632
636
  */
633
637
  public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
634
- return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
638
+ return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.authorization, requestParameters.inviteUserRequestDto, options).then((request) => request(this.axios, this.basePath));
635
639
  }
636
640
 
637
641
  /**
@@ -643,7 +647,7 @@ export class InviteUsersApi extends BaseAPI {
643
647
  * @memberof InviteUsersApi
644
648
  */
645
649
  public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
646
- return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
650
+ return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.authorization, requestParameters.inviteUsersRequestDto, options).then((request) => request(this.axios, this.basePath));
647
651
  }
648
652
 
649
653
  /**
@@ -654,7 +658,7 @@ export class InviteUsersApi extends BaseAPI {
654
658
  * @throws {RequiredError}
655
659
  * @memberof InviteUsersApi
656
660
  */
657
- public listInvites(requestParameters: InviteUsersApiListInvitesRequest = {}, options?: AxiosRequestConfig) {
661
+ public listInvites(requestParameters: InviteUsersApiListInvitesRequest, options?: AxiosRequestConfig) {
658
662
  return InviteUsersApiFp(this.configuration).listInvites(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
659
663
  }
660
664
  }