@emilgroup/tenant-sdk 1.2.1 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,9 @@ api.ts
6
6
  api/custom-schema-api.ts
7
7
  api/invite-organizations-api.ts
8
8
  api/invite-users-api.ts
9
+ api/list-organization-invitations-api.ts
9
10
  api/organizations-api.ts
11
+ api/re-invite-an-organization-api.ts
10
12
  api/users-api.ts
11
13
  base.ts
12
14
  common.ts
@@ -52,6 +54,7 @@ models/org-invitation-class.ts
52
54
  models/org-invitation-response-class.ts
53
55
  models/organization-class.ts
54
56
  models/permission-class.ts
57
+ models/re-invite-org-request-dto.ts
55
58
  models/role-class.ts
56
59
  models/set-setting-request-dto.ts
57
60
  models/set-user-setting-response-class.ts
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.2.1 --save
20
+ npm install @emilgroup/tenant-sdk@1.3.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/tenant-sdk@1.2.1
24
+ yarn add @emilgroup/tenant-sdk@1.3.0
25
25
  ```
26
26
 
27
27
  And then you can import `UsersApi`.
@@ -23,8 +23,6 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { InviteOrgRequestDto } from '../models';
25
25
  // @ts-ignore
26
- import { ListOrgInvitationsResponseClass } from '../models';
27
- // @ts-ignore
28
26
  import { OrgInvitationResponseClass } from '../models';
29
27
  // URLSearchParams not necessarily used
30
28
  // @ts-ignore
@@ -78,77 +76,6 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
78
76
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
79
77
  localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDto, localVarRequestOptions, configuration)
80
78
 
81
- return {
82
- url: toPathString(localVarUrlObj),
83
- options: localVarRequestOptions,
84
- };
85
- },
86
- /**
87
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
88
- * @summary List org invitations
89
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
91
- * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
92
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
93
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
94
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
95
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
96
- * @param {*} [options] Override http request option.
97
- * @throws {RequiredError}
98
- */
99
- listOrgInvitations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
- const localVarPath = `/tenantservice/v1/invitations/organizations`;
101
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
102
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
103
- let baseOptions;
104
- let baseAccessToken;
105
- if (configuration) {
106
- baseOptions = configuration.baseOptions;
107
- baseAccessToken = configuration.accessToken;
108
- }
109
-
110
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
111
- const localVarHeaderParameter = {} as any;
112
- const localVarQueryParameter = {} as any;
113
-
114
- // authentication bearer required
115
- // http bearer authentication required
116
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
117
-
118
- if (pageSize !== undefined) {
119
- localVarQueryParameter['pageSize'] = pageSize;
120
- }
121
-
122
- if (pageToken !== undefined) {
123
- localVarQueryParameter['pageToken'] = pageToken;
124
- }
125
-
126
- if (filter !== undefined) {
127
- localVarQueryParameter['filter'] = filter;
128
- }
129
-
130
- if (search !== undefined) {
131
- localVarQueryParameter['search'] = search;
132
- }
133
-
134
- if (order !== undefined) {
135
- localVarQueryParameter['order'] = order;
136
- }
137
-
138
- if (expand !== undefined) {
139
- localVarQueryParameter['expand'] = expand;
140
- }
141
-
142
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
143
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
144
- }
145
-
146
-
147
-
148
- setSearchParams(localVarUrlObj, localVarQueryParameter);
149
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
151
-
152
79
  return {
153
80
  url: toPathString(localVarUrlObj),
154
81
  options: localVarRequestOptions,
@@ -176,23 +103,6 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
176
103
  const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
177
104
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
178
105
  },
179
- /**
180
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
181
- * @summary List org invitations
182
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
183
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
184
- * @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.
185
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
186
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
187
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
188
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
189
- * @param {*} [options] Override http request option.
190
- * @throws {RequiredError}
191
- */
192
- async listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>> {
193
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options);
194
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
195
- },
196
106
  }
197
107
  };
198
108
 
@@ -214,22 +124,6 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
214
124
  inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
215
125
  return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
216
126
  },
217
- /**
218
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
219
- * @summary List org invitations
220
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
221
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
222
- * @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.
223
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
224
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
225
- * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
226
- * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
227
- * @param {*} [options] Override http request option.
228
- * @throws {RequiredError}
229
- */
230
- listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass> {
231
- return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
232
- },
233
127
  };
234
128
  };
235
129
 
@@ -254,62 +148,6 @@ export interface InviteOrganizationsApiInviteOrgRequest {
254
148
  readonly authorization?: string
255
149
  }
256
150
 
257
- /**
258
- * Request parameters for listOrgInvitations operation in InviteOrganizationsApi.
259
- * @export
260
- * @interface InviteOrganizationsApiListOrgInvitationsRequest
261
- */
262
- export interface InviteOrganizationsApiListOrgInvitationsRequest {
263
- /**
264
- * Bearer Token: provided by the login endpoint under the name accessToken.
265
- * @type {string}
266
- * @memberof InviteOrganizationsApiListOrgInvitations
267
- */
268
- readonly authorization?: string
269
-
270
- /**
271
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
272
- * @type {any}
273
- * @memberof InviteOrganizationsApiListOrgInvitations
274
- */
275
- readonly pageSize?: any
276
-
277
- /**
278
- * 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.
279
- * @type {any}
280
- * @memberof InviteOrganizationsApiListOrgInvitations
281
- */
282
- readonly pageToken?: any
283
-
284
- /**
285
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
286
- * @type {any}
287
- * @memberof InviteOrganizationsApiListOrgInvitations
288
- */
289
- readonly filter?: any
290
-
291
- /**
292
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
293
- * @type {any}
294
- * @memberof InviteOrganizationsApiListOrgInvitations
295
- */
296
- readonly search?: any
297
-
298
- /**
299
- * 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
- * @type {any}
301
- * @memberof InviteOrganizationsApiListOrgInvitations
302
- */
303
- readonly order?: any
304
-
305
- /**
306
- * 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.
307
- * @type {any}
308
- * @memberof InviteOrganizationsApiListOrgInvitations
309
- */
310
- readonly expand?: any
311
- }
312
-
313
151
  /**
314
152
  * InviteOrganizationsApi - object-oriented interface
315
153
  * @export
@@ -328,16 +166,4 @@ export class InviteOrganizationsApi extends BaseAPI {
328
166
  public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
329
167
  return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
330
168
  }
331
-
332
- /**
333
- * Returns a list of org invitations you have previously created. The org invitations are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
334
- * @summary List org invitations
335
- * @param {InviteOrganizationsApiListOrgInvitationsRequest} requestParameters Request parameters.
336
- * @param {*} [options] Override http request option.
337
- * @throws {RequiredError}
338
- * @memberof InviteOrganizationsApi
339
- */
340
- public listOrgInvitations(requestParameters: InviteOrganizationsApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
341
- return InviteOrganizationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
342
- }
343
169
  }
@@ -0,0 +1,236 @@
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 { ListOrgInvitationsResponseClass } from '../models';
25
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * ListOrganizationInvitationsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const ListOrganizationInvitationsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * 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.
37
+ * @summary List organization invitations
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
40
+ * @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.
41
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
42
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
43
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
44
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
45
+ * @param {*} [options] Override http request option.
46
+ * @throws {RequiredError}
47
+ */
48
+ listOrgInvitations: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
49
+ const localVarPath = `/tenantservice/v1/invitations/organizations`;
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ let baseAccessToken;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ baseAccessToken = configuration.accessToken;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication bearer required
64
+ // http bearer authentication required
65
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
+
67
+ if (pageSize !== undefined) {
68
+ localVarQueryParameter['pageSize'] = pageSize;
69
+ }
70
+
71
+ if (pageToken !== undefined) {
72
+ localVarQueryParameter['pageToken'] = pageToken;
73
+ }
74
+
75
+ if (filter !== undefined) {
76
+ localVarQueryParameter['filter'] = filter;
77
+ }
78
+
79
+ if (search !== undefined) {
80
+ localVarQueryParameter['search'] = search;
81
+ }
82
+
83
+ if (order !== undefined) {
84
+ localVarQueryParameter['order'] = order;
85
+ }
86
+
87
+ if (expand !== undefined) {
88
+ localVarQueryParameter['expand'] = expand;
89
+ }
90
+
91
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
92
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
93
+ }
94
+
95
+
96
+
97
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
98
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
99
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
100
+
101
+ return {
102
+ url: toPathString(localVarUrlObj),
103
+ options: localVarRequestOptions,
104
+ };
105
+ },
106
+ }
107
+ };
108
+
109
+ /**
110
+ * ListOrganizationInvitationsApi - functional programming interface
111
+ * @export
112
+ */
113
+ export const ListOrganizationInvitationsApiFp = function(configuration?: Configuration) {
114
+ const localVarAxiosParamCreator = ListOrganizationInvitationsApiAxiosParamCreator(configuration)
115
+ return {
116
+ /**
117
+ * 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.
118
+ * @summary List organization invitations
119
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
120
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
121
+ * @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.
122
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
123
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
124
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
125
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
126
+ * @param {*} [options] Override http request option.
127
+ * @throws {RequiredError}
128
+ */
129
+ async listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListOrgInvitationsResponseClass>> {
130
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options);
131
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
132
+ },
133
+ }
134
+ };
135
+
136
+ /**
137
+ * ListOrganizationInvitationsApi - factory interface
138
+ * @export
139
+ */
140
+ export const ListOrganizationInvitationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
141
+ const localVarFp = ListOrganizationInvitationsApiFp(configuration)
142
+ return {
143
+ /**
144
+ * 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.
145
+ * @summary List organization invitations
146
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
148
+ * @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.
149
+ * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
150
+ * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
151
+ * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
152
+ * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ listOrgInvitations(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListOrgInvitationsResponseClass> {
157
+ return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
158
+ },
159
+ };
160
+ };
161
+
162
+ /**
163
+ * Request parameters for listOrgInvitations operation in ListOrganizationInvitationsApi.
164
+ * @export
165
+ * @interface ListOrganizationInvitationsApiListOrgInvitationsRequest
166
+ */
167
+ export interface ListOrganizationInvitationsApiListOrgInvitationsRequest {
168
+ /**
169
+ * Bearer Token: provided by the login endpoint under the name accessToken.
170
+ * @type {string}
171
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
172
+ */
173
+ readonly authorization?: string
174
+
175
+ /**
176
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
177
+ * @type {any}
178
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
179
+ */
180
+ readonly pageSize?: any
181
+
182
+ /**
183
+ * 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.
184
+ * @type {any}
185
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
186
+ */
187
+ readonly pageToken?: any
188
+
189
+ /**
190
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
191
+ * @type {any}
192
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
193
+ */
194
+ readonly filter?: any
195
+
196
+ /**
197
+ * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
198
+ * @type {any}
199
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
200
+ */
201
+ readonly search?: any
202
+
203
+ /**
204
+ * 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.
205
+ * @type {any}
206
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
207
+ */
208
+ readonly order?: any
209
+
210
+ /**
211
+ * 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.
212
+ * @type {any}
213
+ * @memberof ListOrganizationInvitationsApiListOrgInvitations
214
+ */
215
+ readonly expand?: any
216
+ }
217
+
218
+ /**
219
+ * ListOrganizationInvitationsApi - object-oriented interface
220
+ * @export
221
+ * @class ListOrganizationInvitationsApi
222
+ * @extends {BaseAPI}
223
+ */
224
+ export class ListOrganizationInvitationsApi extends BaseAPI {
225
+ /**
226
+ * 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.
227
+ * @summary List organization invitations
228
+ * @param {ListOrganizationInvitationsApiListOrgInvitationsRequest} requestParameters Request parameters.
229
+ * @param {*} [options] Override http request option.
230
+ * @throws {RequiredError}
231
+ * @memberof ListOrganizationInvitationsApi
232
+ */
233
+ public listOrgInvitations(requestParameters: ListOrganizationInvitationsApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) {
234
+ return ListOrganizationInvitationsApiFp(this.configuration).listOrgInvitations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
235
+ }
236
+ }
@@ -0,0 +1,165 @@
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 { OrgInvitationResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ReInviteOrgRequestDto } from '../models';
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * ReInviteAnOrganizationApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const ReInviteAnOrganizationApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * This re-sends an email to invite an organization.
39
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
40
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
41
+ * @param {*} [options] Override http request option.
42
+ * @throws {RequiredError}
43
+ */
44
+ reInviteOrganization: async (reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
45
+ // verify required parameter 'reInviteOrgRequestDto' is not null or undefined
46
+ assertParamExists('reInviteOrganization', 'reInviteOrgRequestDto', reInviteOrgRequestDto)
47
+ const localVarPath = `/tenantservice/v1/invitations/organizations`;
48
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
49
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
50
+ let baseOptions;
51
+ let baseAccessToken;
52
+ if (configuration) {
53
+ baseOptions = configuration.baseOptions;
54
+ baseAccessToken = configuration.accessToken;
55
+ }
56
+
57
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
58
+ const localVarHeaderParameter = {} as any;
59
+ const localVarQueryParameter = {} as any;
60
+
61
+ // authentication bearer required
62
+ // http bearer authentication required
63
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
64
+
65
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
66
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
+ }
68
+
69
+
70
+
71
+ localVarHeaderParameter['Content-Type'] = 'application/json';
72
+
73
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
+ localVarRequestOptions.data = serializeDataIfNeeded(reInviteOrgRequestDto, localVarRequestOptions, configuration)
77
+
78
+ return {
79
+ url: toPathString(localVarUrlObj),
80
+ options: localVarRequestOptions,
81
+ };
82
+ },
83
+ }
84
+ };
85
+
86
+ /**
87
+ * ReInviteAnOrganizationApi - functional programming interface
88
+ * @export
89
+ */
90
+ export const ReInviteAnOrganizationApiFp = function(configuration?: Configuration) {
91
+ const localVarAxiosParamCreator = ReInviteAnOrganizationApiAxiosParamCreator(configuration)
92
+ return {
93
+ /**
94
+ * This re-sends an email to invite an organization.
95
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ async reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
101
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reInviteOrganization(reInviteOrgRequestDto, authorization, options);
102
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
103
+ },
104
+ }
105
+ };
106
+
107
+ /**
108
+ * ReInviteAnOrganizationApi - factory interface
109
+ * @export
110
+ */
111
+ export const ReInviteAnOrganizationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
112
+ const localVarFp = ReInviteAnOrganizationApiFp(configuration)
113
+ return {
114
+ /**
115
+ * This re-sends an email to invite an organization.
116
+ * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto
117
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
122
+ return localVarFp.reInviteOrganization(reInviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
123
+ },
124
+ };
125
+ };
126
+
127
+ /**
128
+ * Request parameters for reInviteOrganization operation in ReInviteAnOrganizationApi.
129
+ * @export
130
+ * @interface ReInviteAnOrganizationApiReInviteOrganizationRequest
131
+ */
132
+ export interface ReInviteAnOrganizationApiReInviteOrganizationRequest {
133
+ /**
134
+ *
135
+ * @type {ReInviteOrgRequestDto}
136
+ * @memberof ReInviteAnOrganizationApiReInviteOrganization
137
+ */
138
+ readonly reInviteOrgRequestDto: ReInviteOrgRequestDto
139
+
140
+ /**
141
+ * Bearer Token: provided by the login endpoint under the name accessToken.
142
+ * @type {string}
143
+ * @memberof ReInviteAnOrganizationApiReInviteOrganization
144
+ */
145
+ readonly authorization?: string
146
+ }
147
+
148
+ /**
149
+ * ReInviteAnOrganizationApi - object-oriented interface
150
+ * @export
151
+ * @class ReInviteAnOrganizationApi
152
+ * @extends {BaseAPI}
153
+ */
154
+ export class ReInviteAnOrganizationApi extends BaseAPI {
155
+ /**
156
+ * This re-sends an email to invite an organization.
157
+ * @param {ReInviteAnOrganizationApiReInviteOrganizationRequest} requestParameters Request parameters.
158
+ * @param {*} [options] Override http request option.
159
+ * @throws {RequiredError}
160
+ * @memberof ReInviteAnOrganizationApi
161
+ */
162
+ public reInviteOrganization(requestParameters: ReInviteAnOrganizationApiReInviteOrganizationRequest, options?: AxiosRequestConfig) {
163
+ return ReInviteAnOrganizationApiFp(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
+ }
165
+ }