@emilgroup/tenant-sdk 1.35.1-beta.8 → 1.36.1-beta.16

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