@emilgroup/tenant-sdk-node 1.23.0 → 1.24.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 +5 -7
- 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 +4 -0
- package/api/users-api.ts +124 -4
- package/base.ts +7 -15
- 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 +4 -0
- package/dist/api/roles-api.js +4 -0
- package/dist/api/users-api.d.ts +70 -4
- package/dist/api/users-api.js +102 -3
- package/dist/base.d.ts +1 -3
- package/dist/base.js +20 -26
- package/dist/models/{invite-users-request-dto.d.ts → assign-user-roles-request-dto.d.ts} +8 -14
- package/dist/models/assign-user-roles-response-class.d.ts +25 -0
- package/dist/models/index.d.ts +5 -7
- package/dist/models/index.js +5 -7
- package/dist/models/{invite-org-request-dto.d.ts → invite-org-request-dto-rest.d.ts} +27 -14
- package/dist/models/invite-user-request-dto-rest.d.ts +49 -0
- package/dist/models/invite-users-request-dto-rest.d.ts +49 -0
- package/models/{invite-users-request-dto.ts → assign-user-roles-request-dto.ts} +8 -14
- package/models/assign-user-roles-response-class.ts +31 -0
- package/models/index.ts +5 -7
- package/models/{invite-org-request-dto.ts → invite-org-request-dto-rest.ts} +27 -14
- package/models/invite-user-request-dto-rest.ts +55 -0
- package/models/invite-users-request-dto-rest.ts +55 -0
- package/package.json +1 -1
- package/dist/models/create-permission-request-dto.d.ts +0 -42
- package/dist/models/create-role-request-dto.d.ts +0 -36
- package/dist/models/invite-user-request-dto.d.ts +0 -43
- package/dist/models/partner-invitation-data-dto.d.ts +0 -36
- package/dist/models/partner-invitation-data-dto.js +0 -15
- package/dist/models/update-role-request-dto.d.ts +0 -42
- package/dist/models/update-role-request-dto.js +0 -15
- package/models/create-permission-request-dto.ts +0 -48
- package/models/create-role-request-dto.ts +0 -42
- package/models/invite-user-request-dto.ts +0 -49
- package/models/partner-invitation-data-dto.ts +0 -42
- package/models/update-role-request-dto.ts +0 -48
- /package/dist/models/{create-permission-request-dto.js → assign-user-roles-request-dto.js} +0 -0
- /package/dist/models/{create-role-request-dto.js → assign-user-roles-response-class.js} +0 -0
- /package/dist/models/{invite-org-request-dto.js → invite-org-request-dto-rest.js} +0 -0
- /package/dist/models/{invite-user-request-dto.js → invite-user-request-dto-rest.js} +0 -0
- /package/dist/models/{invite-users-request-dto.js → invite-users-request-dto-rest.js} +0 -0
package/base.ts
CHANGED
|
@@ -79,7 +79,6 @@ export class BaseAPI {
|
|
|
79
79
|
protected configuration: Configuration;
|
|
80
80
|
private username?: string;
|
|
81
81
|
private password?: string;
|
|
82
|
-
private permissions?: string;
|
|
83
82
|
|
|
84
83
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
85
84
|
if (configuration) {
|
|
@@ -150,10 +149,6 @@ export class BaseAPI {
|
|
|
150
149
|
this.configuration.basePath = env;
|
|
151
150
|
}
|
|
152
151
|
|
|
153
|
-
getPermissions(): Array<string> {
|
|
154
|
-
return this.permissions.split(',');
|
|
155
|
-
}
|
|
156
|
-
|
|
157
152
|
async authorize(username: string, password: string): Promise<void> {
|
|
158
153
|
const options: AxiosRequestConfig = {
|
|
159
154
|
method: 'POST',
|
|
@@ -168,21 +163,20 @@ export class BaseAPI {
|
|
|
168
163
|
|
|
169
164
|
const response = await globalAxios.request<LoginClass>(options);
|
|
170
165
|
|
|
171
|
-
const { data: { accessToken
|
|
166
|
+
const { data: { accessToken } } = response;
|
|
172
167
|
this.configuration.username = username;
|
|
173
168
|
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
174
|
-
this.permissions = permissions;
|
|
175
169
|
|
|
176
170
|
const refreshToken = this.extractRefreshToken(response)
|
|
177
171
|
this.configuration.refreshToken = refreshToken;
|
|
178
172
|
}
|
|
179
173
|
|
|
180
|
-
async refreshTokenInternal(): Promise<
|
|
174
|
+
async refreshTokenInternal(): Promise<string> {
|
|
181
175
|
const { username, refreshToken } = this.configuration;
|
|
182
176
|
|
|
183
177
|
|
|
184
178
|
if (!username || !refreshToken) {
|
|
185
|
-
|
|
179
|
+
return '';
|
|
186
180
|
}
|
|
187
181
|
|
|
188
182
|
const options: AxiosRequestConfig = {
|
|
@@ -196,9 +190,9 @@ export class BaseAPI {
|
|
|
196
190
|
withCredentials: true,
|
|
197
191
|
};
|
|
198
192
|
|
|
199
|
-
const
|
|
193
|
+
const { data: { accessToken } } = await globalAxios.request<LoginClass>(options);
|
|
200
194
|
|
|
201
|
-
return
|
|
195
|
+
return accessToken;
|
|
202
196
|
}
|
|
203
197
|
|
|
204
198
|
private extractRefreshToken(response: AxiosResponse): string {
|
|
@@ -227,9 +221,8 @@ export class BaseAPI {
|
|
|
227
221
|
if (err.response.status === 401 && !originalConfig._retry) {
|
|
228
222
|
originalConfig._retry = true;
|
|
229
223
|
try {
|
|
230
|
-
const
|
|
224
|
+
const tokenString = await this.refreshTokenInternal();
|
|
231
225
|
const accessToken = `Bearer ${tokenString}`;
|
|
232
|
-
this.permissions = permissions;
|
|
233
226
|
|
|
234
227
|
originalConfig.headers['Authorization'] = `Bearer ${accessToken}`
|
|
235
228
|
|
|
@@ -253,9 +246,8 @@ export class BaseAPI {
|
|
|
253
246
|
){
|
|
254
247
|
_retry_count++;
|
|
255
248
|
try {
|
|
256
|
-
const
|
|
249
|
+
const tokenString = await this.refreshTokenInternal();
|
|
257
250
|
const accessToken = `Bearer ${tokenString}`;
|
|
258
|
-
this.permissions = permissions;
|
|
259
251
|
|
|
260
252
|
_retry = true;
|
|
261
253
|
originalConfig.headers['Authorization'] = accessToken;
|
|
@@ -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 { InviteOrgRequestDtoRest } 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 {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
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: (inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, 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 {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
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(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, 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 {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
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(inviteOrgRequestDtoRest: InviteOrgRequestDtoRest, 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 {InviteOrgRequestDtoRest}
|
|
71
71
|
* @memberof InviteOrganizationsApiInviteOrg
|
|
72
72
|
*/
|
|
73
|
-
readonly
|
|
73
|
+
readonly inviteOrgRequestDtoRest: InviteOrgRequestDtoRest;
|
|
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 {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
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 (inviteOrgRequestDtoRest, 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 'inviteOrgRequestDtoRest' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('inviteOrg', 'inviteOrgRequestDtoRest', inviteOrgRequestDtoRest);
|
|
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)(inviteOrgRequestDtoRest, 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 {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
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 (inviteOrgRequestDtoRest, 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(inviteOrgRequestDtoRest, 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 {InviteOrgRequestDtoRest} inviteOrgRequestDtoRest
|
|
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 (inviteOrgRequestDtoRest, authorization, options) {
|
|
198
|
+
return localVarFp.inviteOrg(inviteOrgRequestDtoRest, 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.inviteOrgRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
225
225
|
};
|
|
226
226
|
return InviteOrganizationsApi;
|
|
227
227
|
}(base_1.BaseAPI));
|
|
@@ -14,9 +14,9 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { BatchDeleteRequestDto } from '../models';
|
|
16
16
|
import { BatchDeleteResponseClass } from '../models';
|
|
17
|
-
import {
|
|
17
|
+
import { InviteUserRequestDtoRest } from '../models';
|
|
18
18
|
import { InviteUserResponseClass } from '../models';
|
|
19
|
-
import {
|
|
19
|
+
import { InviteUsersRequestDtoRest } from '../models';
|
|
20
20
|
import { InviteUsersResponseClass } from '../models';
|
|
21
21
|
import { ListInvitesResponseClass } from '../models';
|
|
22
22
|
/**
|
|
@@ -36,21 +36,21 @@ export declare const InviteUsersApiAxiosParamCreator: (configuration?: Configura
|
|
|
36
36
|
/**
|
|
37
37
|
* This send an email to invite a user with the specific role/roles.
|
|
38
38
|
* @summary Invite a user
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
40
40
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
41
41
|
* @param {*} [options] Override http request option.
|
|
42
42
|
* @throws {RequiredError}
|
|
43
43
|
*/
|
|
44
|
-
inviteUser: (
|
|
44
|
+
inviteUser: (inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
45
45
|
/**
|
|
46
46
|
* This send bulk emails to invite users with the specific role/roles.
|
|
47
47
|
* @summary Invite batch of users
|
|
48
|
-
* @param {
|
|
48
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
49
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
inviteUsers: (
|
|
53
|
+
inviteUsers: (inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
55
|
* 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.
|
|
56
56
|
* @summary List invited users
|
|
@@ -60,7 +60,7 @@ export declare const InviteUsersApiAxiosParamCreator: (configuration?: Configura
|
|
|
60
60
|
* @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>
|
|
61
61
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
62
62
|
* @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>
|
|
63
|
-
* @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:
|
|
63
|
+
* @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>
|
|
64
64
|
* @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>
|
|
65
65
|
* @param {*} [options] Override http request option.
|
|
66
66
|
* @throws {RequiredError}
|
|
@@ -84,21 +84,21 @@ export declare const InviteUsersApiFp: (configuration?: Configuration) => {
|
|
|
84
84
|
/**
|
|
85
85
|
* This send an email to invite a user with the specific role/roles.
|
|
86
86
|
* @summary Invite a user
|
|
87
|
-
* @param {
|
|
87
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
88
88
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
89
|
* @param {*} [options] Override http request option.
|
|
90
90
|
* @throws {RequiredError}
|
|
91
91
|
*/
|
|
92
|
-
inviteUser(
|
|
92
|
+
inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUserResponseClass>>;
|
|
93
93
|
/**
|
|
94
94
|
* This send bulk emails to invite users with the specific role/roles.
|
|
95
95
|
* @summary Invite batch of users
|
|
96
|
-
* @param {
|
|
96
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
97
97
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
98
98
|
* @param {*} [options] Override http request option.
|
|
99
99
|
* @throws {RequiredError}
|
|
100
100
|
*/
|
|
101
|
-
inviteUsers(
|
|
101
|
+
inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InviteUsersResponseClass>>;
|
|
102
102
|
/**
|
|
103
103
|
* 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.
|
|
104
104
|
* @summary List invited users
|
|
@@ -108,7 +108,7 @@ export declare const InviteUsersApiFp: (configuration?: Configuration) => {
|
|
|
108
108
|
* @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>
|
|
109
109
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
110
110
|
* @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>
|
|
111
|
-
* @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:
|
|
111
|
+
* @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>
|
|
112
112
|
* @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>
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
@@ -132,21 +132,21 @@ export declare const InviteUsersApiFactory: (configuration?: Configuration, base
|
|
|
132
132
|
/**
|
|
133
133
|
* This send an email to invite a user with the specific role/roles.
|
|
134
134
|
* @summary Invite a user
|
|
135
|
-
* @param {
|
|
135
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
136
136
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
137
137
|
* @param {*} [options] Override http request option.
|
|
138
138
|
* @throws {RequiredError}
|
|
139
139
|
*/
|
|
140
|
-
inviteUser(
|
|
140
|
+
inviteUser(inviteUserRequestDtoRest: InviteUserRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUserResponseClass>;
|
|
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 {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
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(
|
|
149
|
+
inviteUsers(inviteUsersRequestDtoRest: InviteUsersRequestDtoRest, authorization?: string, options?: any): AxiosPromise<InviteUsersResponseClass>;
|
|
150
150
|
/**
|
|
151
151
|
* 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.
|
|
152
152
|
* @summary List invited users
|
|
@@ -156,7 +156,7 @@ export declare const InviteUsersApiFactory: (configuration?: Configuration, base
|
|
|
156
156
|
* @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>
|
|
157
157
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
158
158
|
* @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>
|
|
159
|
-
* @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:
|
|
159
|
+
* @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>
|
|
160
160
|
* @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>
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
@@ -190,10 +190,10 @@ export interface InviteUsersApiDeleteInvitesRequest {
|
|
|
190
190
|
export interface InviteUsersApiInviteUserRequest {
|
|
191
191
|
/**
|
|
192
192
|
*
|
|
193
|
-
* @type {
|
|
193
|
+
* @type {InviteUserRequestDtoRest}
|
|
194
194
|
* @memberof InviteUsersApiInviteUser
|
|
195
195
|
*/
|
|
196
|
-
readonly
|
|
196
|
+
readonly inviteUserRequestDtoRest: InviteUserRequestDtoRest;
|
|
197
197
|
/**
|
|
198
198
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
199
199
|
* @type {string}
|
|
@@ -209,10 +209,10 @@ export interface InviteUsersApiInviteUserRequest {
|
|
|
209
209
|
export interface InviteUsersApiInviteUsersRequest {
|
|
210
210
|
/**
|
|
211
211
|
*
|
|
212
|
-
* @type {
|
|
212
|
+
* @type {InviteUsersRequestDtoRest}
|
|
213
213
|
* @memberof InviteUsersApiInviteUsers
|
|
214
214
|
*/
|
|
215
|
-
readonly
|
|
215
|
+
readonly inviteUsersRequestDtoRest: InviteUsersRequestDtoRest;
|
|
216
216
|
/**
|
|
217
217
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
218
218
|
* @type {string}
|
|
@@ -263,7 +263,7 @@ export interface InviteUsersApiListInvitesRequest {
|
|
|
263
263
|
*/
|
|
264
264
|
readonly order?: string;
|
|
265
265
|
/**
|
|
266
|
-
* 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:
|
|
266
|
+
* 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>
|
|
267
267
|
* @type {string}
|
|
268
268
|
* @memberof InviteUsersApiListInvites
|
|
269
269
|
*/
|
|
@@ -148,20 +148,20 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
148
148
|
/**
|
|
149
149
|
* This send an email to invite a user with the specific role/roles.
|
|
150
150
|
* @summary Invite a user
|
|
151
|
-
* @param {
|
|
151
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
156
|
-
inviteUser: function (
|
|
156
|
+
inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
|
|
157
157
|
if (options === void 0) { options = {}; }
|
|
158
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
160
|
return __generator(this, function (_a) {
|
|
161
161
|
switch (_a.label) {
|
|
162
162
|
case 0:
|
|
163
|
-
// verify required parameter '
|
|
164
|
-
(0, common_1.assertParamExists)('inviteUser', '
|
|
163
|
+
// verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest);
|
|
165
165
|
localVarPath = "/tenantservice/v1/users/invites";
|
|
166
166
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
167
|
if (configuration) {
|
|
@@ -185,7 +185,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
185
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
187
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteUserRequestDtoRest, localVarRequestOptions, configuration);
|
|
189
189
|
return [2 /*return*/, {
|
|
190
190
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
191
|
options: localVarRequestOptions,
|
|
@@ -197,20 +197,20 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
197
197
|
/**
|
|
198
198
|
* This send bulk emails to invite users with the specific role/roles.
|
|
199
199
|
* @summary Invite batch of users
|
|
200
|
-
* @param {
|
|
200
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
201
201
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
inviteUsers: function (
|
|
205
|
+
inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
|
|
206
206
|
if (options === void 0) { options = {}; }
|
|
207
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
209
|
return __generator(this, function (_a) {
|
|
210
210
|
switch (_a.label) {
|
|
211
211
|
case 0:
|
|
212
|
-
// verify required parameter '
|
|
213
|
-
(0, common_1.assertParamExists)('inviteUsers', '
|
|
212
|
+
// verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest);
|
|
214
214
|
localVarPath = "/tenantservice/v1/users/invites/batch";
|
|
215
215
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
216
|
if (configuration) {
|
|
@@ -234,7 +234,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
234
234
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
235
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
236
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
237
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
237
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteUsersRequestDtoRest, localVarRequestOptions, configuration);
|
|
238
238
|
return [2 /*return*/, {
|
|
239
239
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
240
240
|
options: localVarRequestOptions,
|
|
@@ -252,7 +252,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
252
252
|
* @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>
|
|
253
253
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
254
254
|
* @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>
|
|
255
|
-
* @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:
|
|
255
|
+
* @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>
|
|
256
256
|
* @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>
|
|
257
257
|
* @param {*} [options] Override http request option.
|
|
258
258
|
* @throws {RequiredError}
|
|
@@ -349,17 +349,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
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 {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
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: function (
|
|
357
|
+
inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
|
|
358
358
|
return __awaiter(this, void 0, void 0, function () {
|
|
359
359
|
var localVarAxiosArgs;
|
|
360
360
|
return __generator(this, function (_a) {
|
|
361
361
|
switch (_a.label) {
|
|
362
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(
|
|
362
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options)];
|
|
363
363
|
case 1:
|
|
364
364
|
localVarAxiosArgs = _a.sent();
|
|
365
365
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -370,17 +370,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
370
370
|
/**
|
|
371
371
|
* This send bulk emails to invite users with the specific role/roles.
|
|
372
372
|
* @summary Invite batch of users
|
|
373
|
-
* @param {
|
|
373
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
374
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
375
375
|
* @param {*} [options] Override http request option.
|
|
376
376
|
* @throws {RequiredError}
|
|
377
377
|
*/
|
|
378
|
-
inviteUsers: function (
|
|
378
|
+
inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
|
|
379
379
|
return __awaiter(this, void 0, void 0, function () {
|
|
380
380
|
var localVarAxiosArgs;
|
|
381
381
|
return __generator(this, function (_a) {
|
|
382
382
|
switch (_a.label) {
|
|
383
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(
|
|
383
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options)];
|
|
384
384
|
case 1:
|
|
385
385
|
localVarAxiosArgs = _a.sent();
|
|
386
386
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -397,7 +397,7 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
397
397
|
* @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>
|
|
398
398
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
399
399
|
* @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>
|
|
400
|
-
* @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:
|
|
400
|
+
* @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>
|
|
401
401
|
* @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>
|
|
402
402
|
* @param {*} [options] Override http request option.
|
|
403
403
|
* @throws {RequiredError}
|
|
@@ -439,24 +439,24 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
439
439
|
/**
|
|
440
440
|
* This send an email to invite a user with the specific role/roles.
|
|
441
441
|
* @summary Invite a user
|
|
442
|
-
* @param {
|
|
442
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
443
443
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
444
444
|
* @param {*} [options] Override http request option.
|
|
445
445
|
* @throws {RequiredError}
|
|
446
446
|
*/
|
|
447
|
-
inviteUser: function (
|
|
448
|
-
return localVarFp.inviteUser(
|
|
447
|
+
inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
|
|
448
|
+
return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
449
449
|
},
|
|
450
450
|
/**
|
|
451
451
|
* This send bulk emails to invite users with the specific role/roles.
|
|
452
452
|
* @summary Invite batch of users
|
|
453
|
-
* @param {
|
|
453
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
454
454
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
455
455
|
* @param {*} [options] Override http request option.
|
|
456
456
|
* @throws {RequiredError}
|
|
457
457
|
*/
|
|
458
|
-
inviteUsers: function (
|
|
459
|
-
return localVarFp.inviteUsers(
|
|
458
|
+
inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
|
|
459
|
+
return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
460
460
|
},
|
|
461
461
|
/**
|
|
462
462
|
* 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.
|
|
@@ -467,7 +467,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
467
467
|
* @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>
|
|
468
468
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
469
469
|
* @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>
|
|
470
|
-
* @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:
|
|
470
|
+
* @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>
|
|
471
471
|
* @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>
|
|
472
472
|
* @param {*} [options] Override http request option.
|
|
473
473
|
* @throws {RequiredError}
|
|
@@ -511,7 +511,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
511
511
|
*/
|
|
512
512
|
InviteUsersApi.prototype.inviteUser = function (requestParameters, options) {
|
|
513
513
|
var _this = this;
|
|
514
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.
|
|
514
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUser(requestParameters.inviteUserRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
515
515
|
};
|
|
516
516
|
/**
|
|
517
517
|
* This send bulk emails to invite users with the specific role/roles.
|
|
@@ -523,7 +523,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
523
523
|
*/
|
|
524
524
|
InviteUsersApi.prototype.inviteUsers = function (requestParameters, options) {
|
|
525
525
|
var _this = this;
|
|
526
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.
|
|
526
|
+
return (0, exports.InviteUsersApiFp)(this.configuration).inviteUsers(requestParameters.inviteUsersRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
527
527
|
};
|
|
528
528
|
/**
|
|
529
529
|
* 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.
|
package/dist/api/roles-api.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const RolesApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
29
29
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
30
30
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
31
31
|
* @param {*} [options] Override http request option.
|
|
32
|
+
* @deprecated
|
|
32
33
|
* @throws {RequiredError}
|
|
33
34
|
*/
|
|
34
35
|
listRoles: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
@@ -49,6 +50,7 @@ export declare const RolesApiFp: (configuration?: Configuration) => {
|
|
|
49
50
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
50
51
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
51
52
|
* @param {*} [options] Override http request option.
|
|
53
|
+
* @deprecated
|
|
52
54
|
* @throws {RequiredError}
|
|
53
55
|
*/
|
|
54
56
|
listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRolesResponseClass>>;
|
|
@@ -69,6 +71,7 @@ export declare const RolesApiFactory: (configuration?: Configuration, basePath?:
|
|
|
69
71
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
70
72
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
71
73
|
* @param {*} [options] Override http request option.
|
|
74
|
+
* @deprecated
|
|
72
75
|
* @throws {RequiredError}
|
|
73
76
|
*/
|
|
74
77
|
listRoles(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListRolesResponseClass>;
|
|
@@ -134,6 +137,7 @@ export declare class RolesApi extends BaseAPI {
|
|
|
134
137
|
* @summary List roles
|
|
135
138
|
* @param {RolesApiListRolesRequest} requestParameters Request parameters.
|
|
136
139
|
* @param {*} [options] Override http request option.
|
|
140
|
+
* @deprecated
|
|
137
141
|
* @throws {RequiredError}
|
|
138
142
|
* @memberof RolesApi
|
|
139
143
|
*/
|