/* tslint:disable */ /* eslint-disable */ /** * EMIL Tenant Service * The EMIL TenantService API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; // @ts-ignore import { DeleteResponseClass } from '../models'; // @ts-ignore import { InviteOrgRequestDtoRest } from '../models'; // @ts-ignore import { ListOrgInvitationsResponseClass } from '../models'; // @ts-ignore import { OrgInvitationResponseClass } from '../models'; // @ts-ignore import { ReInviteOrgRequestDto } from '../models'; // URLSearchParams not necessarily used // @ts-ignore import { URL, URLSearchParams } from 'url'; const FormData = require('form-data'); /** * InvitationControllerRestApi - axios parameter creator * @export */ export const InvitationControllerRestApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * 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\" * @summary Delete the organization invitation * @param {number} id * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteOrgInvitation: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteOrgInvitation', 'id', id) const localVarPath = `/tenantservice/v1/invitations/organizations/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; let baseAccessToken; if (configuration) { baseOptions = configuration.baseOptions; baseAccessToken = configuration.accessToken; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @summary Invite an organization * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ inviteOrg: async (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'inviteOrgRequestDtoRest' is not null or undefined assertParamExists('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest) const localVarPath = `/tenantservice/v1/invitations/organizations`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; let baseAccessToken; if (configuration) { baseOptions = configuration.baseOptions; baseAccessToken = configuration.accessToken; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDtoRest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * 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\" * @summary List organization invitations * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result. * @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. * @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. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOrgInvitations: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/tenantservice/v1/invitations/organizations`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; let baseAccessToken; if (configuration) { baseOptions = configuration.baseOptions; baseAccessToken = configuration.accessToken; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (pageSize !== undefined) { localVarQueryParameter['pageSize'] = pageSize; } if (pageToken !== undefined) { localVarQueryParameter['pageToken'] = pageToken; } if (filter !== undefined) { localVarQueryParameter['filter'] = filter; } if (search !== undefined) { localVarQueryParameter['search'] = search; } if (order !== undefined) { localVarQueryParameter['order'] = order; } if (expand !== undefined) { localVarQueryParameter['expand'] = expand; } if (filters !== undefined) { localVarQueryParameter['filters'] = filters; } if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); } setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ reInviteOrganization: async (reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'reInviteOrgRequestDto' is not null or undefined assertParamExists('reInviteOrganization', 'reInviteOrgRequestDto', reInviteOrgRequestDto) const localVarPath = `/tenantservice/v1/invitations/organizations`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; let baseAccessToken; if (configuration) { baseOptions = configuration.baseOptions; baseAccessToken = configuration.accessToken; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; // authentication bearer required // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) { localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken); } localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(reInviteOrgRequestDto, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * InvitationControllerRestApi - functional programming interface * @export */ export const InvitationControllerRestApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = InvitationControllerRestApiAxiosParamCreator(configuration) return { /** * 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\" * @summary Delete the organization invitation * @param {number} id * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async deleteOrgInvitation(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrgInvitation(id, authorization, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @summary Invite an organization * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDtoRest, authorization, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * 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\" * @summary List organization invitations * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result. * @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. * @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. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ 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> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.reInviteOrganization(reInviteOrgRequestDto, authorization, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } }; /** * InvitationControllerRestApi - factory interface * @export */ export const InvitationControllerRestApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = InvitationControllerRestApiFp(configuration) return { /** * 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\" * @summary Delete the organization invitation * @param {number} id * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteOrgInvitation(id: number, authorization?: string, options?: any): AxiosPromise { return localVarFp.deleteOrgInvitation(id, authorization, options).then((request) => request(axios, basePath)); }, /** * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @summary Invite an organization * @param {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ inviteOrg(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, authorization?: string, options?: any): AxiosPromise { return localVarFp.inviteOrg(inviteOrgRequestDtoRest, authorization, options).then((request) => request(axios, basePath)); }, /** * 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\" * @summary List organization invitations * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list. * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result. * @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. * @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. * @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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listOrgInvitations(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise { return localVarFp.listOrgInvitations(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath)); }, /** * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @param {ReInviteOrgRequestDto} reInviteOrgRequestDto * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken. * @param {*} [options] Override http request option. * @throws {RequiredError} */ reInviteOrganization(reInviteOrgRequestDto: ReInviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise { return localVarFp.reInviteOrganization(reInviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath)); }, }; }; /** * Request parameters for deleteOrgInvitation operation in InvitationControllerRestApi. * @export * @interface InvitationControllerRestApiDeleteOrgInvitationRequest */ export interface InvitationControllerRestApiDeleteOrgInvitationRequest { /** * * @type {number} * @memberof InvitationControllerRestApiDeleteOrgInvitation */ readonly id: number /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof InvitationControllerRestApiDeleteOrgInvitation */ readonly authorization?: string } /** * Request parameters for inviteOrg operation in InvitationControllerRestApi. * @export * @interface InvitationControllerRestApiInviteOrgRequest */ export interface InvitationControllerRestApiInviteOrgRequest { /** * * @type {InviteOrgRequestDtoRest} * @memberof InvitationControllerRestApiInviteOrg */ readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof InvitationControllerRestApiInviteOrg */ readonly authorization?: string } /** * Request parameters for listOrgInvitations operation in InvitationControllerRestApi. * @export * @interface InvitationControllerRestApiListOrgInvitationsRequest */ export interface InvitationControllerRestApiListOrgInvitationsRequest { /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly authorization?: string /** * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10. * @type {number} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly pageSize?: number /** * 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. * @type {string} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly pageToken?: string /** * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. * @type {string} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly filter?: string /** * To search the list by any field, pass search=xxx to fetch the result. * @type {string} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly search?: string /** * 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. * @type {string} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly order?: string /** * 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. * @type {string} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly expand?: string /** * 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. * @type {string} * @memberof InvitationControllerRestApiListOrgInvitations */ readonly filters?: string } /** * Request parameters for reInviteOrganization operation in InvitationControllerRestApi. * @export * @interface InvitationControllerRestApiReInviteOrganizationRequest */ export interface InvitationControllerRestApiReInviteOrganizationRequest { /** * * @type {ReInviteOrgRequestDto} * @memberof InvitationControllerRestApiReInviteOrganization */ readonly reInviteOrgRequestDto: ReInviteOrgRequestDto /** * Bearer Token: provided by the login endpoint under the name accessToken. * @type {string} * @memberof InvitationControllerRestApiReInviteOrganization */ readonly authorization?: string } /** * InvitationControllerRestApi - object-oriented interface * @export * @class InvitationControllerRestApi * @extends {BaseAPI} */ export class InvitationControllerRestApi extends BaseAPI { /** * 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\" * @summary Delete the organization invitation * @param {InvitationControllerRestApiDeleteOrgInvitationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvitationControllerRestApi */ public deleteOrgInvitation(requestParameters: InvitationControllerRestApiDeleteOrgInvitationRequest, options?: AxiosRequestConfig) { return InvitationControllerRestApiFp(this.configuration).deleteOrgInvitation(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); } /** * This sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @summary Invite an organization * @param {InvitationControllerRestApiInviteOrgRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvitationControllerRestApi */ public inviteOrg(requestParameters: InvitationControllerRestApiInviteOrgRequest, options?: AxiosRequestConfig) { return InvitationControllerRestApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); } /** * 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\" * @summary List organization invitations * @param {InvitationControllerRestApiListOrgInvitationsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvitationControllerRestApi */ public listOrgInvitations(requestParameters: InvitationControllerRestApiListOrgInvitationsRequest = {}, options?: AxiosRequestConfig) { 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)); } /** * This re-sends an email to invite an organization. **Required Permissions** \"tenant-management.organizations.create\" * @param {InvitationControllerRestApiReInviteOrganizationRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof InvitationControllerRestApi */ public reInviteOrganization(requestParameters: InvitationControllerRestApiReInviteOrganizationRequest, options?: AxiosRequestConfig) { return InvitationControllerRestApiFp(this.configuration).reInviteOrganization(requestParameters.reInviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath)); } }