@emilgroup/tenant-sdk-node 1.33.1-beta.8 → 1.34.1-beta.15

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 (81) hide show
  1. package/.openapi-generator/FILES +18 -0
  2. package/README.md +2 -2
  3. package/api/invitation-controller-rest-api.ts +561 -0
  4. package/api/invite-users-api.ts +12 -12
  5. package/api/settings-api.ts +304 -0
  6. package/api/user-controller-rest-api.ts +1413 -0
  7. package/api/user-group-api.ts +1090 -0
  8. package/api/users-api.ts +12 -12
  9. package/api.ts +6 -0
  10. package/base.ts +1 -0
  11. package/dist/api/invitation-controller-rest-api.d.ts +315 -0
  12. package/dist/api/invitation-controller-rest-api.js +538 -0
  13. package/dist/api/invite-users-api.d.ts +12 -12
  14. package/dist/api/invite-users-api.js +10 -10
  15. package/dist/api/settings-api.d.ts +156 -0
  16. package/dist/api/settings-api.js +268 -0
  17. package/dist/api/user-controller-rest-api.d.ts +777 -0
  18. package/dist/api/user-controller-rest-api.js +1227 -0
  19. package/dist/api/user-group-api.d.ts +603 -0
  20. package/dist/api/user-group-api.js +940 -0
  21. package/dist/api/users-api.d.ts +12 -12
  22. package/dist/api/users-api.js +10 -10
  23. package/dist/api.d.ts +3 -0
  24. package/dist/api.js +3 -0
  25. package/dist/base.d.ts +2 -1
  26. package/dist/base.js +1 -0
  27. package/dist/models/add-users-to-group-request-dto.d.ts +24 -0
  28. package/dist/models/add-users-to-group-request-dto.js +15 -0
  29. package/dist/models/add-users-to-group-response-class.d.ts +25 -0
  30. package/dist/models/add-users-to-group-response-class.js +15 -0
  31. package/dist/models/create-user-group-request-dto.d.ts +36 -0
  32. package/dist/models/create-user-group-request-dto.js +15 -0
  33. package/dist/models/create-user-group-response-class.d.ts +25 -0
  34. package/dist/models/create-user-group-response-class.js +15 -0
  35. package/dist/models/get-settings-response-class.d.ts +5 -3
  36. package/dist/models/get-user-group-response-class.d.ts +25 -0
  37. package/dist/models/get-user-group-response-class.js +15 -0
  38. package/dist/models/index.d.ts +15 -0
  39. package/dist/models/index.js +15 -0
  40. package/dist/models/list-user-group-members-response-class.d.ts +43 -0
  41. package/dist/models/list-user-group-members-response-class.js +15 -0
  42. package/dist/models/list-user-groups-response-class.d.ts +43 -0
  43. package/dist/models/list-user-groups-response-class.js +15 -0
  44. package/dist/models/remove-users-from-group-request-dto.d.ts +24 -0
  45. package/dist/models/remove-users-from-group-request-dto.js +15 -0
  46. package/dist/models/set-setting-grpc-request-dto.d.ts +42 -0
  47. package/dist/models/set-setting-grpc-request-dto.js +15 -0
  48. package/dist/models/set-setting-request-dto.d.ts +6 -6
  49. package/dist/models/set-tenant-setting-response-class.d.ts +36 -0
  50. package/dist/models/set-tenant-setting-response-class.js +15 -0
  51. package/dist/models/set-user-setting-response-class.d.ts +36 -0
  52. package/dist/models/set-user-setting-response-class.js +15 -0
  53. package/dist/models/tenant-settings-class.d.ts +6 -0
  54. package/dist/models/update-user-group-request-dto.d.ts +36 -0
  55. package/dist/models/update-user-group-request-dto.js +15 -0
  56. package/dist/models/update-user-group-response-class.d.ts +25 -0
  57. package/dist/models/update-user-group-response-class.js +15 -0
  58. package/dist/models/user-group-class.d.ts +72 -0
  59. package/dist/models/user-group-class.js +15 -0
  60. package/dist/models/user-group-member-class.d.ts +42 -0
  61. package/dist/models/user-group-member-class.js +15 -0
  62. package/models/add-users-to-group-request-dto.ts +30 -0
  63. package/models/add-users-to-group-response-class.ts +31 -0
  64. package/models/create-user-group-request-dto.ts +42 -0
  65. package/models/create-user-group-response-class.ts +31 -0
  66. package/models/get-settings-response-class.ts +3 -3
  67. package/models/get-user-group-response-class.ts +31 -0
  68. package/models/index.ts +15 -0
  69. package/models/list-user-group-members-response-class.ts +49 -0
  70. package/models/list-user-groups-response-class.ts +49 -0
  71. package/models/remove-users-from-group-request-dto.ts +30 -0
  72. package/models/set-setting-grpc-request-dto.ts +48 -0
  73. package/models/set-setting-request-dto.ts +6 -6
  74. package/models/set-tenant-setting-response-class.ts +42 -0
  75. package/models/set-user-setting-response-class.ts +42 -0
  76. package/models/tenant-settings-class.ts +6 -0
  77. package/models/update-user-group-request-dto.ts +42 -0
  78. package/models/update-user-group-response-class.ts +31 -0
  79. package/models/user-group-class.ts +78 -0
  80. package/models/user-group-member-class.ts +48 -0
  81. package/package.json +2 -2
@@ -10,6 +10,7 @@ api/data-report-api.ts
10
10
  api/data-report-executor-api.ts
11
11
  api/delete-organization-invitations-api.ts
12
12
  api/health-check-api.ts
13
+ api/invitation-controller-rest-api.ts
13
14
  api/invite-organizations-api.ts
14
15
  api/invite-users-api.ts
15
16
  api/list-organization-invitations-api.ts
@@ -18,12 +19,16 @@ api/organizations-api.ts
18
19
  api/re-invite-an-organization-api.ts
19
20
  api/roles-api.ts
20
21
  api/settings-api.ts
22
+ api/user-controller-rest-api.ts
23
+ api/user-group-api.ts
21
24
  api/users-api.ts
22
25
  base.ts
23
26
  common.ts
24
27
  configuration.ts
25
28
  git_push.sh
26
29
  index.ts
30
+ models/add-users-to-group-request-dto.ts
31
+ models/add-users-to-group-response-class.ts
27
32
  models/assign-user-roles-request-dto.ts
28
33
  models/assign-user-roles-response-class.ts
29
34
  models/batch-delete-request-dto.ts
@@ -42,6 +47,8 @@ models/create-organization-migration-request-dto.ts
42
47
  models/create-organization-migration-response-class.ts
43
48
  models/create-resources-migration-request-dto.ts
44
49
  models/create-tenant-request-dto.ts
50
+ models/create-user-group-request-dto.ts
51
+ models/create-user-group-response-class.ts
45
52
  models/custom-field-dto.ts
46
53
  models/custom-schema-class.ts
47
54
  models/dashboard-class.ts
@@ -67,6 +74,7 @@ models/get-embedded-url-response-class.ts
67
74
  models/get-organization-migration-response-class.ts
68
75
  models/get-organization-response-class.ts
69
76
  models/get-settings-response-class.ts
77
+ models/get-user-group-response-class.ts
70
78
  models/get-user-response-class.ts
71
79
  models/index.ts
72
80
  models/initial-tenant-config-class.ts
@@ -89,6 +97,8 @@ models/list-org-invitations-response-class.ts
89
97
  models/list-organization-migrations-response-class.ts
90
98
  models/list-organizations-response-class.ts
91
99
  models/list-roles-response-class.ts
100
+ models/list-user-group-members-response-class.ts
101
+ models/list-user-groups-response-class.ts
92
102
  models/list-users-response-class.ts
93
103
  models/org-invitation-class.ts
94
104
  models/org-invitation-response-class.ts
@@ -97,13 +107,17 @@ models/organization-migration-class.ts
97
107
  models/permission-class.ts
98
108
  models/publish-dashboard-request-dto.ts
99
109
  models/re-invite-org-request-dto.ts
110
+ models/remove-users-from-group-request-dto.ts
100
111
  models/revert-analysis-request-dto.ts
101
112
  models/revert-organization-migration-request-dto.ts
102
113
  models/revert-organization-migration-response-class.ts
103
114
  models/role-class.ts
104
115
  models/run-data-report-request-dto.ts
105
116
  models/run-data-report-response-class.ts
117
+ models/set-setting-grpc-request-dto.ts
106
118
  models/set-setting-request-dto.ts
119
+ models/set-tenant-setting-response-class.ts
120
+ models/set-user-setting-response-class.ts
107
121
  models/subscription-class.ts
108
122
  models/tenant-admin-user-dto.ts
109
123
  models/tenant-settings-class.ts
@@ -117,6 +131,10 @@ models/update-data-report-request-dto.ts
117
131
  models/update-data-report-response-class.ts
118
132
  models/update-organization-request-dto-rest.ts
119
133
  models/update-organization-response-class.ts
134
+ models/update-user-group-request-dto.ts
135
+ models/update-user-group-response-class.ts
120
136
  models/user-class.ts
137
+ models/user-group-class.ts
138
+ models/user-group-member-class.ts
121
139
  package.json
122
140
  tsconfig.json
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/tenant-sdk-node@1.33.1-beta.8 --save
20
+ npm install @emilgroup/tenant-sdk-node@1.34.1-beta.15 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk-node@1.33.1-beta.8
24
+ yarn add @emilgroup/tenant-sdk-node@1.34.1-beta.15
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -0,0 +1,561 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL Tenant Service
5
+ * The EMIL TenantService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { DeleteResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { InviteOrgRequestDtoRest } from '../models';
27
+ // @ts-ignore
28
+ import { ListOrgInvitationsResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { OrgInvitationResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ReInviteOrgRequestDto } from '../models';
33
+ // URLSearchParams not necessarily used
34
+ // @ts-ignore
35
+ import { URL, URLSearchParams } from 'url';
36
+ const FormData = require('form-data');
37
+ /**
38
+ * InvitationControllerRestApi - axios parameter creator
39
+ * @export
40
+ */
41
+ export const InvitationControllerRestApiAxiosParamCreator = function (configuration?: Configuration) {
42
+ return {
43
+ /**
44
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it. **Required Permissions** \"tenant-management.organizations.delete\"
45
+ * @summary Delete the organization invitation
46
+ * @param {number} id
47
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ deleteOrgInvitation: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
52
+ // verify required parameter 'id' is not null or undefined
53
+ assertParamExists('deleteOrgInvitation', 'id', id)
54
+ const localVarPath = `/tenantservice/v1/invitations/organizations/{id}`
55
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
56
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
+ let baseOptions;
59
+ let baseAccessToken;
60
+ if (configuration) {
61
+ baseOptions = configuration.baseOptions;
62
+ baseAccessToken = configuration.accessToken;
63
+ }
64
+
65
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
66
+ const localVarHeaderParameter = {} as any;
67
+ const localVarQueryParameter = {} as any;
68
+
69
+ // authentication bearer required
70
+ // http bearer authentication required
71
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
72
+
73
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
74
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
75
+ }
76
+
77
+
78
+
79
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
80
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
81
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
90
+ * @summary Invite an organization
91
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {*} [options] Override http request option.
94
+ * @throws {RequiredError}
95
+ */
96
+ inviteOrg: async (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined
98
+ assertParamExists('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest)
99
+ const localVarPath = `/tenantservice/v1/invitations/organizations`;
100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
+ let baseOptions;
103
+ let baseAccessToken;
104
+ if (configuration) {
105
+ baseOptions = configuration.baseOptions;
106
+ baseAccessToken = configuration.accessToken;
107
+ }
108
+
109
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
110
+ const localVarHeaderParameter = {} as any;
111
+ const localVarQueryParameter = {} as any;
112
+
113
+ // authentication bearer required
114
+ // http bearer authentication required
115
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
+
117
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
118
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
119
+ }
120
+
121
+
122
+
123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
124
+
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
128
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDtoRest, localVarRequestOptions, configuration)
129
+
130
+ return {
131
+ url: toPathString(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ };
134
+ },
135
+ /**
136
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.organizations.view\"
137
+ * @summary List organization invitations
138
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
139
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
140
+ * @param {string} [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.
141
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
142
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
143
+ * @param {string} [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.
144
+ * @param {string} [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.
145
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ listOrgInvitations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ const localVarPath = `/tenantservice/v1/invitations/organizations`;
151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
153
+ let baseOptions;
154
+ let baseAccessToken;
155
+ if (configuration) {
156
+ baseOptions = configuration.baseOptions;
157
+ baseAccessToken = configuration.accessToken;
158
+ }
159
+
160
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
161
+ const localVarHeaderParameter = {} as any;
162
+ const localVarQueryParameter = {} as any;
163
+
164
+ // authentication bearer required
165
+ // http bearer authentication required
166
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
167
+
168
+ if (pageSize !== undefined) {
169
+ localVarQueryParameter['pageSize'] = pageSize;
170
+ }
171
+
172
+ if (pageToken !== undefined) {
173
+ localVarQueryParameter['pageToken'] = pageToken;
174
+ }
175
+
176
+ if (filter !== undefined) {
177
+ localVarQueryParameter['filter'] = filter;
178
+ }
179
+
180
+ if (search !== undefined) {
181
+ localVarQueryParameter['search'] = search;
182
+ }
183
+
184
+ if (order !== undefined) {
185
+ localVarQueryParameter['order'] = order;
186
+ }
187
+
188
+ if (expand !== undefined) {
189
+ localVarQueryParameter['expand'] = expand;
190
+ }
191
+
192
+ if (filters !== undefined) {
193
+ localVarQueryParameter['filters'] = filters;
194
+ }
195
+
196
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
197
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
198
+ }
199
+
200
+
201
+
202
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
203
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
204
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
205
+
206
+ return {
207
+ url: toPathString(localVarUrlObj),
208
+ options: localVarRequestOptions,
209
+ };
210
+ },
211
+ /**
212
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
213
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
214
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ reInviteOrganization: async (reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
219
+ // verify required parameter 'reInviteOrgRequestDto' is not null or undefined
220
+ assertParamExists('reInviteOrganization', 'reInviteOrgRequestDto', reInviteOrgRequestDto)
221
+ const localVarPath = `/tenantservice/v1/invitations/organizations`;
222
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
223
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
224
+ let baseOptions;
225
+ let baseAccessToken;
226
+ if (configuration) {
227
+ baseOptions = configuration.baseOptions;
228
+ baseAccessToken = configuration.accessToken;
229
+ }
230
+
231
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
232
+ const localVarHeaderParameter = {} as any;
233
+ const localVarQueryParameter = {} as any;
234
+
235
+ // authentication bearer required
236
+ // http bearer authentication required
237
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
238
+
239
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
240
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
+ }
242
+
243
+
244
+
245
+ localVarHeaderParameter['Content-Type'] = 'application/json';
246
+
247
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
248
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
249
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
250
+ localVarRequestOptions.data = serializeDataIfNeeded(reInviteOrgRequestDto, localVarRequestOptions, configuration)
251
+
252
+ return {
253
+ url: toPathString(localVarUrlObj),
254
+ options: localVarRequestOptions,
255
+ };
256
+ },
257
+ }
258
+ };
259
+
260
+ /**
261
+ * InvitationControllerRestApi - functional programming interface
262
+ * @export
263
+ */
264
+ export const InvitationControllerRestApiFp = function(configuration?: Configuration) {
265
+ const localVarAxiosParamCreator = InvitationControllerRestApiAxiosParamCreator(configuration)
266
+ return {
267
+ /**
268
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it. **Required Permissions** \"tenant-management.organizations.delete\"
269
+ * @summary Delete the organization invitation
270
+ * @param {number} id
271
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ async deleteOrgInvitation(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
276
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrgInvitation(id, authorization, options);
277
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
278
+ },
279
+ /**
280
+ * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
281
+ * @summary Invite an organization
282
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
283
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ async inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options);
289
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
290
+ },
291
+ /**
292
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.organizations.view\"
293
+ * @summary List organization invitations
294
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
296
+ * @param {string} [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.
297
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
298
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
299
+ * @param {string} [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.
300
+ * @param {string} [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.
301
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ async listOrgInvitations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>> {
306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
307
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
308
+ },
309
+ /**
310
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
311
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
312
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ async reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reInviteOrganization(reInviteOrgRequestDto, authorization, options);
318
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
+ },
320
+ }
321
+ };
322
+
323
+ /**
324
+ * InvitationControllerRestApi - factory interface
325
+ * @export
326
+ */
327
+ export const InvitationControllerRestApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
328
+ const localVarFp = InvitationControllerRestApiFp(configuration)
329
+ return {
330
+ /**
331
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it. **Required Permissions** \"tenant-management.organizations.delete\"
332
+ * @summary Delete the organization invitation
333
+ * @param {number} id
334
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
335
+ * @param {*} [options] Override http request option.
336
+ * @throws {RequiredError}
337
+ */
338
+ deleteOrgInvitation(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
339
+ return localVarFp.deleteOrgInvitation(id, authorization, options).then((request) => request(axios, basePath));
340
+ },
341
+ /**
342
+ * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
343
+ * @summary Invite an organization
344
+ * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
345
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
350
+ return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
351
+ },
352
+ /**
353
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.organizations.view\"
354
+ * @summary List organization invitations
355
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
357
+ * @param {string} [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.
358
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
359
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
360
+ * @param {string} [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.
361
+ * @param {string} [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.
362
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ listOrgInvitations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListOrgInvitationsResponseClass> {
367
+ return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
368
+ },
369
+ /**
370
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
371
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
372
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
373
+ * @param {*} [options] Override http request option.
374
+ * @throws {RequiredError}
375
+ */
376
+ reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
377
+ return localVarFp.reInviteOrganization(reInviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
378
+ },
379
+ };
380
+ };
381
+
382
+ /**
383
+ * Request parameters for deleteOrgInvitation operation in InvitationControllerRestApi.
384
+ * @export
385
+ * @interface InvitationControllerRestApiDeleteOrgInvitationRequest
386
+ */
387
+ export interface InvitationControllerRestApiDeleteOrgInvitationRequest {
388
+ /**
389
+ *
390
+ * @type {number}
391
+ * @memberof InvitationControllerRestApiDeleteOrgInvitation
392
+ */
393
+ readonly id: number
394
+
395
+ /**
396
+ * Bearer Token: provided by the login endpoint under the name accessToken.
397
+ * @type {string}
398
+ * @memberof InvitationControllerRestApiDeleteOrgInvitation
399
+ */
400
+ readonly authorization?: string
401
+ }
402
+
403
+ /**
404
+ * Request parameters for inviteOrg operation in InvitationControllerRestApi.
405
+ * @export
406
+ * @interface InvitationControllerRestApiInviteOrgRequest
407
+ */
408
+ export interface InvitationControllerRestApiInviteOrgRequest {
409
+ /**
410
+ *
411
+ * @type {InviteOrgRequestDtoRest}
412
+ * @memberof InvitationControllerRestApiInviteOrg
413
+ */
414
+ readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest
415
+
416
+ /**
417
+ * Bearer Token: provided by the login endpoint under the name accessToken.
418
+ * @type {string}
419
+ * @memberof InvitationControllerRestApiInviteOrg
420
+ */
421
+ readonly authorization?: string
422
+ }
423
+
424
+ /**
425
+ * Request parameters for listOrgInvitations operation in InvitationControllerRestApi.
426
+ * @export
427
+ * @interface InvitationControllerRestApiListOrgInvitationsRequest
428
+ */
429
+ export interface InvitationControllerRestApiListOrgInvitationsRequest {
430
+ /**
431
+ * Bearer Token: provided by the login endpoint under the name accessToken.
432
+ * @type {string}
433
+ * @memberof InvitationControllerRestApiListOrgInvitations
434
+ */
435
+ readonly authorization?: string
436
+
437
+ /**
438
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
439
+ * @type {number}
440
+ * @memberof InvitationControllerRestApiListOrgInvitations
441
+ */
442
+ readonly pageSize?: number
443
+
444
+ /**
445
+ * 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.
446
+ * @type {string}
447
+ * @memberof InvitationControllerRestApiListOrgInvitations
448
+ */
449
+ readonly pageToken?: string
450
+
451
+ /**
452
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
453
+ * @type {string}
454
+ * @memberof InvitationControllerRestApiListOrgInvitations
455
+ */
456
+ readonly filter?: string
457
+
458
+ /**
459
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
460
+ * @type {string}
461
+ * @memberof InvitationControllerRestApiListOrgInvitations
462
+ */
463
+ readonly search?: string
464
+
465
+ /**
466
+ * 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.
467
+ * @type {string}
468
+ * @memberof InvitationControllerRestApiListOrgInvitations
469
+ */
470
+ readonly order?: string
471
+
472
+ /**
473
+ * 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.
474
+ * @type {string}
475
+ * @memberof InvitationControllerRestApiListOrgInvitations
476
+ */
477
+ readonly expand?: string
478
+
479
+ /**
480
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
481
+ * @type {string}
482
+ * @memberof InvitationControllerRestApiListOrgInvitations
483
+ */
484
+ readonly filters?: string
485
+ }
486
+
487
+ /**
488
+ * Request parameters for reInviteOrganization operation in InvitationControllerRestApi.
489
+ * @export
490
+ * @interface InvitationControllerRestApiReInviteOrganizationRequest
491
+ */
492
+ export interface InvitationControllerRestApiReInviteOrganizationRequest {
493
+ /**
494
+ *
495
+ * @type {ReInviteOrgRequestDto}
496
+ * @memberof InvitationControllerRestApiReInviteOrganization
497
+ */
498
+ readonly reInviteOrgRequestDto: ReInviteOrgRequestDto
499
+
500
+ /**
501
+ * Bearer Token: provided by the login endpoint under the name accessToken.
502
+ * @type {string}
503
+ * @memberof InvitationControllerRestApiReInviteOrganization
504
+ */
505
+ readonly authorization?: string
506
+ }
507
+
508
+ /**
509
+ * InvitationControllerRestApi - object-oriented interface
510
+ * @export
511
+ * @class InvitationControllerRestApi
512
+ * @extends {BaseAPI}
513
+ */
514
+ export class InvitationControllerRestApi extends BaseAPI {
515
+ /**
516
+ * Permanently deletes the organization invitation. Supply the unique id that was returned when you created the organization invitation and this will delete it. **Required Permissions** \"tenant-management.organizations.delete\"
517
+ * @summary Delete the organization invitation
518
+ * @param {InvitationControllerRestApiDeleteOrgInvitationRequest} requestParameters Request parameters.
519
+ * @param {*} [options] Override http request option.
520
+ * @throws {RequiredError}
521
+ * @memberof InvitationControllerRestApi
522
+ */
523
+ public deleteOrgInvitation(requestParameters: InvitationControllerRestApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig) {
524
+ return InvitationControllerRestApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
525
+ }
526
+
527
+ /**
528
+ * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
529
+ * @summary Invite an organization
530
+ * @param {InvitationControllerRestApiInviteOrgRequest} requestParameters Request parameters.
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ * @memberof InvitationControllerRestApi
534
+ */
535
+ public inviteOrg(requestParameters: InvitationControllerRestApiInviteOrgRequest, options?: AxiosRequestConfig) {
536
+ return InvitationControllerRestApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
537
+ }
538
+
539
+ /**
540
+ * Returns a list of organization invitations you have previously created. The organization invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"tenant-management.organizations.view\"
541
+ * @summary List organization invitations
542
+ * @param {InvitationControllerRestApiListOrgInvitationsRequest} requestParameters Request parameters.
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ * @memberof InvitationControllerRestApi
546
+ */
547
+ public listOrgInvitations(requestParameters: InvitationControllerRestApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
548
+ return InvitationControllerRestApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
549
+ }
550
+
551
+ /**
552
+ * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\"
553
+ * @param {InvitationControllerRestApiReInviteOrganizationRequest} requestParameters Request parameters.
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ * @memberof InvitationControllerRestApi
557
+ */
558
+ public reInviteOrganization(requestParameters: InvitationControllerRestApiReInviteOrganizationRequest, options?: AxiosRequestConfig) {
559
+ return InvitationControllerRestApiFp(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
560
+ }
561
+ }