@emilgroup/tenant-sdk-node 1.22.1-beta.1 → 1.23.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.
- package/.openapi-generator/FILES +7 -4
- package/README.md +2 -2
- package/api/invite-organizations-api.ts +15 -15
- package/api/invite-users-api.ts +34 -34
- package/api/roles-api.ts +0 -4
- package/api/users-api.ts +4 -4
- package/dist/api/invite-organizations-api.d.ts +9 -9
- package/dist/api/invite-organizations-api.js +12 -12
- package/dist/api/invite-users-api.d.ts +22 -22
- package/dist/api/invite-users-api.js +27 -27
- package/dist/api/roles-api.d.ts +0 -4
- package/dist/api/roles-api.js +0 -4
- package/dist/api/users-api.d.ts +4 -4
- package/dist/api/users-api.js +3 -3
- package/dist/models/create-permission-request-dto.d.ts +42 -0
- package/dist/models/create-role-request-dto.d.ts +36 -0
- package/dist/models/index.d.ts +7 -4
- package/dist/models/index.js +7 -4
- package/dist/models/invite-class.d.ts +12 -12
- package/dist/models/{invite-org-request-dto-rest.d.ts → invite-org-request-dto.d.ts} +14 -27
- package/dist/models/invite-user-request-dto.d.ts +43 -0
- package/dist/models/invite-users-request-dto.d.ts +36 -0
- package/dist/models/invite-users-request-dto.js +15 -0
- package/dist/models/partner-invitation-data-dto.d.ts +36 -0
- package/dist/models/partner-invitation-data-dto.js +15 -0
- package/dist/models/update-role-request-dto.d.ts +42 -0
- package/dist/models/update-role-request-dto.js +15 -0
- package/dist/models/user-class.d.ts +8 -8
- package/models/create-permission-request-dto.ts +48 -0
- package/models/{create-tenant-db-config-request-dto.ts → create-role-request-dto.ts} +15 -9
- package/models/index.ts +7 -4
- package/models/invite-class.ts +12 -12
- package/models/{invite-org-request-dto-rest.ts → invite-org-request-dto.ts} +14 -27
- package/models/invite-user-request-dto.ts +49 -0
- package/models/invite-users-request-dto.ts +42 -0
- package/models/partner-invitation-data-dto.ts +42 -0
- package/models/update-role-request-dto.ts +48 -0
- package/models/user-class.ts +8 -8
- package/package.json +1 -1
- package/dist/models/create-tenant-db-config-request-dto.d.ts +0 -30
- package/dist/models/invite-user-request-dto-rest.d.ts +0 -49
- package/dist/models/invite-users-request-dto-rest.d.ts +0 -49
- package/models/invite-user-request-dto-rest.ts +0 -55
- package/models/invite-users-request-dto-rest.ts +0 -55
- /package/dist/models/{create-tenant-db-config-request-dto.js → create-permission-request-dto.js} +0 -0
- /package/dist/models/{invite-org-request-dto-rest.js → create-role-request-dto.js} +0 -0
- /package/dist/models/{invite-user-request-dto-rest.js → invite-org-request-dto.js} +0 -0
- /package/dist/models/{invite-users-request-dto-rest.js → invite-user-request-dto.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -33,7 +33,8 @@ models/create-dashboard-request-dto.ts
|
|
|
33
33
|
models/create-dashboard-response-class.ts
|
|
34
34
|
models/create-data-report-request-dto.ts
|
|
35
35
|
models/create-data-report-response-class.ts
|
|
36
|
-
models/create-
|
|
36
|
+
models/create-permission-request-dto.ts
|
|
37
|
+
models/create-role-request-dto.ts
|
|
37
38
|
models/create-tenant-request-dto.ts
|
|
38
39
|
models/custom-field-dto.ts
|
|
39
40
|
models/custom-schema-class.ts
|
|
@@ -64,10 +65,10 @@ models/initial-tenant-config-class.ts
|
|
|
64
65
|
models/inline-response200.ts
|
|
65
66
|
models/inline-response503.ts
|
|
66
67
|
models/invite-class.ts
|
|
67
|
-
models/invite-org-request-dto
|
|
68
|
-
models/invite-user-request-dto
|
|
68
|
+
models/invite-org-request-dto.ts
|
|
69
|
+
models/invite-user-request-dto.ts
|
|
69
70
|
models/invite-user-response-class.ts
|
|
70
|
-
models/invite-users-request-dto
|
|
71
|
+
models/invite-users-request-dto.ts
|
|
71
72
|
models/invite-users-response-class.ts
|
|
72
73
|
models/link-user-with-partner-request-dto-rest.ts
|
|
73
74
|
models/link-user-with-partner-response-class.ts
|
|
@@ -83,6 +84,7 @@ models/list-users-response-class.ts
|
|
|
83
84
|
models/org-invitation-class.ts
|
|
84
85
|
models/org-invitation-response-class.ts
|
|
85
86
|
models/organization-class.ts
|
|
87
|
+
models/partner-invitation-data-dto.ts
|
|
86
88
|
models/permission-class.ts
|
|
87
89
|
models/re-invite-org-request-dto.ts
|
|
88
90
|
models/role-class.ts
|
|
@@ -102,6 +104,7 @@ models/update-data-report-request-dto.ts
|
|
|
102
104
|
models/update-data-report-response-class.ts
|
|
103
105
|
models/update-organization-request-dto-rest.ts
|
|
104
106
|
models/update-organization-response-class.ts
|
|
107
|
+
models/update-role-request-dto.ts
|
|
105
108
|
models/user-class.ts
|
|
106
109
|
package.json
|
|
107
110
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/tenant-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/tenant-sdk-node@1.23.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/tenant-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/tenant-sdk-node@1.23.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `UsersApi`.
|
|
@@ -21,7 +21,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { InviteOrgRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { OrgInvitationResponseClass } from '../models';
|
|
27
27
|
// URLSearchParams not necessarily used
|
|
@@ -37,14 +37,14 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
37
37
|
/**
|
|
38
38
|
* This sends an email to invite an organization.
|
|
39
39
|
* @summary Invite an organization
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
41
41
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
inviteOrg: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('inviteOrg', '
|
|
45
|
+
inviteOrg: async (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'inviteOrgRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto)
|
|
48
48
|
const localVarPath = `/tenantservice/v1/invitations/organizations`;
|
|
49
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,7 +74,7 @@ export const InviteOrganizationsApiAxiosParamCreator = function (configuration?:
|
|
|
74
74
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
76
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteOrgRequestDto, localVarRequestOptions, configuration)
|
|
78
78
|
|
|
79
79
|
return {
|
|
80
80
|
url: toPathString(localVarUrlObj),
|
|
@@ -94,13 +94,13 @@ export const InviteOrganizationsApiFp = function(configuration?: Configuration)
|
|
|
94
94
|
/**
|
|
95
95
|
* This sends an email to invite an organization.
|
|
96
96
|
* @summary Invite an organization
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
98
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
101
101
|
*/
|
|
102
|
-
async inviteOrg(
|
|
103
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(
|
|
102
|
+
async inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>> {
|
|
103
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options);
|
|
104
104
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
105
105
|
},
|
|
106
106
|
}
|
|
@@ -116,13 +116,13 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
116
116
|
/**
|
|
117
117
|
* This sends an email to invite an organization.
|
|
118
118
|
* @summary Invite an organization
|
|
119
|
-
* @param {
|
|
119
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
120
120
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
121
121
|
* @param {*} [options] Override http request option.
|
|
122
122
|
* @throws {RequiredError}
|
|
123
123
|
*/
|
|
124
|
-
inviteOrg(
|
|
125
|
-
return localVarFp.inviteOrg(
|
|
124
|
+
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass> {
|
|
125
|
+
return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
126
126
|
},
|
|
127
127
|
};
|
|
128
128
|
};
|
|
@@ -135,10 +135,10 @@ export const InviteOrganizationsApiFactory = function (configuration?: Configura
|
|
|
135
135
|
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
136
136
|
/**
|
|
137
137
|
*
|
|
138
|
-
* @type {
|
|
138
|
+
* @type {InviteOrgRequestDto}
|
|
139
139
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
140
140
|
*/
|
|
141
|
-
readonly
|
|
141
|
+
readonly inviteOrgRequestDto: InviteOrgRequestDto
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -164,6 +164,6 @@ export class InviteOrganizationsApi extends BaseAPI {
|
|
|
164
164
|
* @memberof InviteOrganizationsApi
|
|
165
165
|
*/
|
|
166
166
|
public inviteOrg(requestParameters: InviteOrganizationsApiInviteOrgRequest, options?: AxiosRequestConfig) {
|
|
167
|
-
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.
|
|
167
|
+
return InviteOrganizationsApiFp(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
168
|
}
|
|
169
169
|
}
|
package/api/invite-users-api.ts
CHANGED
|
@@ -25,11 +25,11 @@ import { BatchDeleteRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BatchDeleteResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
28
|
+
import { InviteUserRequestDto } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { InviteUserResponseClass } from '../models';
|
|
31
31
|
// @ts-ignore
|
|
32
|
-
import {
|
|
32
|
+
import { InviteUsersRequestDto } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { InviteUsersResponseClass } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
@@ -94,14 +94,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
94
94
|
/**
|
|
95
95
|
* This send an email to invite a user with the specific role/roles.
|
|
96
96
|
* @summary Invite a user
|
|
97
|
-
* @param {
|
|
97
|
+
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
98
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
101
101
|
*/
|
|
102
|
-
inviteUser: async (
|
|
103
|
-
// verify required parameter '
|
|
104
|
-
assertParamExists('inviteUser', '
|
|
102
|
+
inviteUser: async (inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
103
|
+
// verify required parameter 'inviteUserRequestDto' is not null or undefined
|
|
104
|
+
assertParamExists('inviteUser', 'inviteUserRequestDto', inviteUserRequestDto)
|
|
105
105
|
const localVarPath = `/tenantservice/v1/users/invites`;
|
|
106
106
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
107
107
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -131,7 +131,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
131
131
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
132
132
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
133
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
134
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
134
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteUserRequestDto, localVarRequestOptions, configuration)
|
|
135
135
|
|
|
136
136
|
return {
|
|
137
137
|
url: toPathString(localVarUrlObj),
|
|
@@ -141,14 +141,14 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
141
141
|
/**
|
|
142
142
|
* This send bulk emails to invite users with the specific role/roles.
|
|
143
143
|
* @summary Invite batch of users
|
|
144
|
-
* @param {
|
|
144
|
+
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
145
145
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
146
146
|
* @param {*} [options] Override http request option.
|
|
147
147
|
* @throws {RequiredError}
|
|
148
148
|
*/
|
|
149
|
-
inviteUsers: async (
|
|
150
|
-
// verify required parameter '
|
|
151
|
-
assertParamExists('inviteUsers', '
|
|
149
|
+
inviteUsers: async (inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
150
|
+
// verify required parameter 'inviteUsersRequestDto' is not null or undefined
|
|
151
|
+
assertParamExists('inviteUsers', 'inviteUsersRequestDto', inviteUsersRequestDto)
|
|
152
152
|
const localVarPath = `/tenantservice/v1/users/invites/batch`;
|
|
153
153
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
154
154
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -178,7 +178,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
178
178
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
179
179
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
180
180
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
181
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
181
|
+
localVarRequestOptions.data = serializeDataIfNeeded(inviteUsersRequestDto, localVarRequestOptions, configuration)
|
|
182
182
|
|
|
183
183
|
return {
|
|
184
184
|
url: toPathString(localVarUrlObj),
|
|
@@ -194,7 +194,7 @@ export const InviteUsersApiAxiosParamCreator = function (configuration?: Configu
|
|
|
194
194
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
195
195
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
196
196
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email, expiresOn</i>
|
|
197
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
|
|
197
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, organizations<i>
|
|
198
198
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
199
199
|
* @param {*} [options] Override http request option.
|
|
200
200
|
* @throws {RequiredError}
|
|
@@ -286,25 +286,25 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
286
286
|
/**
|
|
287
287
|
* This send an email to invite a user with the specific role/roles.
|
|
288
288
|
* @summary Invite a user
|
|
289
|
-
* @param {
|
|
289
|
+
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
290
290
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
291
291
|
* @param {*} [options] Override http request option.
|
|
292
292
|
* @throws {RequiredError}
|
|
293
293
|
*/
|
|
294
|
-
async inviteUser(
|
|
295
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(
|
|
294
|
+
async inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>> {
|
|
295
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUser(inviteUserRequestDto, authorization, options);
|
|
296
296
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
297
297
|
},
|
|
298
298
|
/**
|
|
299
299
|
* This send bulk emails to invite users with the specific role/roles.
|
|
300
300
|
* @summary Invite batch of users
|
|
301
|
-
* @param {
|
|
301
|
+
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
302
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
303
303
|
* @param {*} [options] Override http request option.
|
|
304
304
|
* @throws {RequiredError}
|
|
305
305
|
*/
|
|
306
|
-
async inviteUsers(
|
|
307
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(
|
|
306
|
+
async inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>> {
|
|
307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDto, authorization, options);
|
|
308
308
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
309
309
|
},
|
|
310
310
|
/**
|
|
@@ -316,7 +316,7 @@ export const InviteUsersApiFp = function(configuration?: Configuration) {
|
|
|
316
316
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
317
317
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
318
318
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email, expiresOn</i>
|
|
319
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
|
|
319
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, organizations<i>
|
|
320
320
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
321
321
|
* @param {*} [options] Override http request option.
|
|
322
322
|
* @throws {RequiredError}
|
|
@@ -349,24 +349,24 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
349
349
|
/**
|
|
350
350
|
* This send an email to invite a user with the specific role/roles.
|
|
351
351
|
* @summary Invite a user
|
|
352
|
-
* @param {
|
|
352
|
+
* @param {InviteUserRequestDto} inviteUserRequestDto
|
|
353
353
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
354
354
|
* @param {*} [options] Override http request option.
|
|
355
355
|
* @throws {RequiredError}
|
|
356
356
|
*/
|
|
357
|
-
inviteUser(
|
|
358
|
-
return localVarFp.inviteUser(
|
|
357
|
+
inviteUser(inviteUserRequestDto: InviteUserRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass> {
|
|
358
|
+
return localVarFp.inviteUser(inviteUserRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
359
359
|
},
|
|
360
360
|
/**
|
|
361
361
|
* This send bulk emails to invite users with the specific role/roles.
|
|
362
362
|
* @summary Invite batch of users
|
|
363
|
-
* @param {
|
|
363
|
+
* @param {InviteUsersRequestDto} inviteUsersRequestDto
|
|
364
364
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
365
365
|
* @param {*} [options] Override http request option.
|
|
366
366
|
* @throws {RequiredError}
|
|
367
367
|
*/
|
|
368
|
-
inviteUsers(
|
|
369
|
-
return localVarFp.inviteUsers(
|
|
368
|
+
inviteUsers(inviteUsersRequestDto: InviteUsersRequestDto, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass> {
|
|
369
|
+
return localVarFp.inviteUsers(inviteUsersRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
370
370
|
},
|
|
371
371
|
/**
|
|
372
372
|
* Returns a list of invited users you have previously created. The invited users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -377,7 +377,7 @@ export const InviteUsersApiFactory = function (configuration?: Configuration, ba
|
|
|
377
377
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
378
378
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
379
379
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email, expiresOn</i>
|
|
380
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
|
|
380
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, organizations<i>
|
|
381
381
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, email, token, organizationId, ern, partnerCode</i>
|
|
382
382
|
* @param {*} [options] Override http request option.
|
|
383
383
|
* @throws {RequiredError}
|
|
@@ -417,10 +417,10 @@ export interface InviteUsersApiDeleteInvitesRequest {
|
|
|
417
417
|
export interface InviteUsersApiInviteUserRequest {
|
|
418
418
|
/**
|
|
419
419
|
*
|
|
420
|
-
* @type {
|
|
420
|
+
* @type {InviteUserRequestDto}
|
|
421
421
|
* @memberof InviteUsersApiInviteUser
|
|
422
422
|
*/
|
|
423
|
-
readonly
|
|
423
|
+
readonly inviteUserRequestDto: InviteUserRequestDto
|
|
424
424
|
|
|
425
425
|
/**
|
|
426
426
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -438,10 +438,10 @@ export interface InviteUsersApiInviteUserRequest {
|
|
|
438
438
|
export interface InviteUsersApiInviteUsersRequest {
|
|
439
439
|
/**
|
|
440
440
|
*
|
|
441
|
-
* @type {
|
|
441
|
+
* @type {InviteUsersRequestDto}
|
|
442
442
|
* @memberof InviteUsersApiInviteUsers
|
|
443
443
|
*/
|
|
444
|
-
readonly
|
|
444
|
+
readonly inviteUsersRequestDto: InviteUsersRequestDto
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -500,7 +500,7 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
500
500
|
readonly order?: string
|
|
501
501
|
|
|
502
502
|
/**
|
|
503
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: organizations<i>
|
|
503
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, organizations<i>
|
|
504
504
|
* @type {string}
|
|
505
505
|
* @memberof InviteUsersApiListInvites
|
|
506
506
|
*/
|
|
@@ -542,7 +542,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
542
542
|
* @memberof InviteUsersApi
|
|
543
543
|
*/
|
|
544
544
|
public inviteUser(requestParameters: InviteUsersApiInviteUserRequest, options?: AxiosRequestConfig) {
|
|
545
|
-
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.
|
|
545
|
+
return InviteUsersApiFp(this.configuration).inviteUser(requestParameters.inviteUserRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
546
546
|
}
|
|
547
547
|
|
|
548
548
|
/**
|
|
@@ -554,7 +554,7 @@ export class InviteUsersApi extends BaseAPI {
|
|
|
554
554
|
* @memberof InviteUsersApi
|
|
555
555
|
*/
|
|
556
556
|
public inviteUsers(requestParameters: InviteUsersApiInviteUsersRequest, options?: AxiosRequestConfig) {
|
|
557
|
-
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.
|
|
557
|
+
return InviteUsersApiFp(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
558
558
|
}
|
|
559
559
|
|
|
560
560
|
/**
|
package/api/roles-api.ts
CHANGED
|
@@ -43,7 +43,6 @@ export const RolesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
43
43
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
44
44
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
45
45
|
* @param {*} [options] Override http request option.
|
|
46
|
-
* @deprecated
|
|
47
46
|
* @throws {RequiredError}
|
|
48
47
|
*/
|
|
49
48
|
listRoles: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
@@ -125,7 +124,6 @@ export const RolesApiFp = function(configuration?: Configuration) {
|
|
|
125
124
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
126
125
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
127
126
|
* @param {*} [options] Override http request option.
|
|
128
|
-
* @deprecated
|
|
129
127
|
* @throws {RequiredError}
|
|
130
128
|
*/
|
|
131
129
|
async listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>> {
|
|
@@ -153,7 +151,6 @@ export const RolesApiFactory = function (configuration?: Configuration, basePath
|
|
|
153
151
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
154
152
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
155
153
|
* @param {*} [options] Override http request option.
|
|
156
|
-
* @deprecated
|
|
157
154
|
* @throws {RequiredError}
|
|
158
155
|
*/
|
|
159
156
|
listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass> {
|
|
@@ -230,7 +227,6 @@ export class RolesApi extends BaseAPI {
|
|
|
230
227
|
* @summary List roles
|
|
231
228
|
* @param {RolesApiListRolesRequest} requestParameters Request parameters.
|
|
232
229
|
* @param {*} [options] Override http request option.
|
|
233
|
-
* @deprecated
|
|
234
230
|
* @throws {RequiredError}
|
|
235
231
|
* @memberof RolesApi
|
|
236
232
|
*/
|
package/api/users-api.ts
CHANGED
|
@@ -296,7 +296,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
296
296
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
297
297
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
298
298
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
299
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
299
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, subscriptions, organizations<i>
|
|
300
300
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
301
301
|
* @param {*} [options] Override http request option.
|
|
302
302
|
* @throws {RequiredError}
|
|
@@ -439,7 +439,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
439
439
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
440
440
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
441
441
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
442
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
442
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, subscriptions, organizations<i>
|
|
443
443
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
444
444
|
* @param {*} [options] Override http request option.
|
|
445
445
|
* @throws {RequiredError}
|
|
@@ -519,7 +519,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
519
519
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
520
520
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
521
521
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: email</i>
|
|
522
|
-
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
522
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, subscriptions, organizations<i>
|
|
523
523
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, email, sub, status, organizationId, ern, partnerCode</i>
|
|
524
524
|
* @param {*} [options] Override http request option.
|
|
525
525
|
* @throws {RequiredError}
|
|
@@ -698,7 +698,7 @@ export interface UsersApiListUsersRequest {
|
|
|
698
698
|
readonly order?: string
|
|
699
699
|
|
|
700
700
|
/**
|
|
701
|
-
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: subscriptions, organizations<i>
|
|
701
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: roles, subscriptions, organizations<i>
|
|
702
702
|
* @type {string}
|
|
703
703
|
* @memberof UsersApiListUsers
|
|
704
704
|
*/
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import {
|
|
15
|
+
import { InviteOrgRequestDto } from '../models';
|
|
16
16
|
import { OrgInvitationResponseClass } from '../models';
|
|
17
17
|
/**
|
|
18
18
|
* InviteOrganizationsApi - axios parameter creator
|
|
@@ -22,12 +22,12 @@ export declare const InviteOrganizationsApiAxiosParamCreator: (configuration?: C
|
|
|
22
22
|
/**
|
|
23
23
|
* This sends an email to invite an organization.
|
|
24
24
|
* @summary Invite an organization
|
|
25
|
-
* @param {
|
|
25
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
26
26
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
27
27
|
* @param {*} [options] Override http request option.
|
|
28
28
|
* @throws {RequiredError}
|
|
29
29
|
*/
|
|
30
|
-
inviteOrg: (
|
|
30
|
+
inviteOrg: (inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* InviteOrganizationsApi - functional programming interface
|
|
@@ -37,12 +37,12 @@ export declare const InviteOrganizationsApiFp: (configuration?: Configuration) =
|
|
|
37
37
|
/**
|
|
38
38
|
* This sends an email to invite an organization.
|
|
39
39
|
* @summary Invite an organization
|
|
40
|
-
* @param {
|
|
40
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
41
41
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
42
|
* @param {*} [options] Override http request option.
|
|
43
43
|
* @throws {RequiredError}
|
|
44
44
|
*/
|
|
45
|
-
inviteOrg(
|
|
45
|
+
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgInvitationResponseClass>>;
|
|
46
46
|
};
|
|
47
47
|
/**
|
|
48
48
|
* InviteOrganizationsApi - factory interface
|
|
@@ -52,12 +52,12 @@ export declare const InviteOrganizationsApiFactory: (configuration?: Configurati
|
|
|
52
52
|
/**
|
|
53
53
|
* This sends an email to invite an organization.
|
|
54
54
|
* @summary Invite an organization
|
|
55
|
-
* @param {
|
|
55
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
56
56
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
57
57
|
* @param {*} [options] Override http request option.
|
|
58
58
|
* @throws {RequiredError}
|
|
59
59
|
*/
|
|
60
|
-
inviteOrg(
|
|
60
|
+
inviteOrg(inviteOrgRequestDto: InviteOrgRequestDto, authorization?: string, options?: any): AxiosPromise<OrgInvitationResponseClass>;
|
|
61
61
|
};
|
|
62
62
|
/**
|
|
63
63
|
* Request parameters for inviteOrg operation in InviteOrganizationsApi.
|
|
@@ -67,10 +67,10 @@ export declare const InviteOrganizationsApiFactory: (configuration?: Configurati
|
|
|
67
67
|
export interface InviteOrganizationsApiInviteOrgRequest {
|
|
68
68
|
/**
|
|
69
69
|
*
|
|
70
|
-
* @type {
|
|
70
|
+
* @type {InviteOrgRequestDto}
|
|
71
71
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
72
72
|
*/
|
|
73
|
-
readonly
|
|
73
|
+
readonly inviteOrgRequestDto: InviteOrgRequestDto;
|
|
74
74
|
/**
|
|
75
75
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
76
|
* @type {string}
|
|
@@ -99,20 +99,20 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
99
99
|
/**
|
|
100
100
|
* This sends an email to invite an organization.
|
|
101
101
|
* @summary Invite an organization
|
|
102
|
-
* @param {
|
|
102
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
103
103
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
inviteOrg: function (
|
|
107
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter '
|
|
115
|
-
(0, common_1.assertParamExists)('inviteOrg', '
|
|
114
|
+
// verify required parameter 'inviteOrgRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDto', inviteOrgRequestDto);
|
|
116
116
|
localVarPath = "/tenantservice/v1/invitations/organizations";
|
|
117
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
118
|
if (configuration) {
|
|
@@ -136,7 +136,7 @@ var InviteOrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteOrgRequestDto, localVarRequestOptions, configuration);
|
|
140
140
|
return [2 /*return*/, {
|
|
141
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
142
|
options: localVarRequestOptions,
|
|
@@ -158,17 +158,17 @@ var InviteOrganizationsApiFp = function (configuration) {
|
|
|
158
158
|
/**
|
|
159
159
|
* This sends an email to invite an organization.
|
|
160
160
|
* @summary Invite an organization
|
|
161
|
-
* @param {
|
|
161
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
162
162
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
inviteOrg: function (
|
|
166
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
167
167
|
return __awaiter(this, void 0, void 0, function () {
|
|
168
168
|
var localVarAxiosArgs;
|
|
169
169
|
return __generator(this, function (_a) {
|
|
170
170
|
switch (_a.label) {
|
|
171
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(
|
|
171
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteOrg(inviteOrgRequestDto, authorization, options)];
|
|
172
172
|
case 1:
|
|
173
173
|
localVarAxiosArgs = _a.sent();
|
|
174
174
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -189,13 +189,13 @@ var InviteOrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
|
189
189
|
/**
|
|
190
190
|
* This sends an email to invite an organization.
|
|
191
191
|
* @summary Invite an organization
|
|
192
|
-
* @param {
|
|
192
|
+
* @param {InviteOrgRequestDto} inviteOrgRequestDto
|
|
193
193
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
194
194
|
* @param {*} [options] Override http request option.
|
|
195
195
|
* @throws {RequiredError}
|
|
196
196
|
*/
|
|
197
|
-
inviteOrg: function (
|
|
198
|
-
return localVarFp.inviteOrg(
|
|
197
|
+
inviteOrg: function (inviteOrgRequestDto, authorization, options) {
|
|
198
|
+
return localVarFp.inviteOrg(inviteOrgRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
199
199
|
},
|
|
200
200
|
};
|
|
201
201
|
};
|
|
@@ -221,7 +221,7 @@ var InviteOrganizationsApi = /** @class */ (function (_super) {
|
|
|
221
221
|
*/
|
|
222
222
|
InviteOrganizationsApi.prototype.inviteOrg = function (requestParameters, options) {
|
|
223
223
|
var _this = this;
|
|
224
|
-
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.
|
|
224
|
+
return (0, exports.InviteOrganizationsApiFp)(this.configuration).inviteOrg(requestParameters.inviteOrgRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
225
225
|
};
|
|
226
226
|
return InviteOrganizationsApi;
|
|
227
227
|
}(base_1.BaseAPI));
|