@emilgroup/tenant-sdk-node 1.21.0 → 1.22.1-beta.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 +6 -12
- package/README.md +2 -2
- package/api/dashboard-api.ts +99 -0
- package/api/data-report-api.ts +0 -97
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/invite-organizations-api.ts +15 -15
- package/api/invite-users-api.ts +34 -137
- package/api/roles-api.ts +4 -0
- package/api/users-api.ts +18 -447
- package/api.ts +2 -2
- package/dist/api/dashboard-api.d.ts +52 -0
- package/dist/api/dashboard-api.js +88 -0
- package/dist/api/data-report-api.d.ts +0 -51
- package/dist/api/data-report-api.js +0 -88
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- 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 -78
- package/dist/api/invite-users-api.js +27 -119
- package/dist/api/roles-api.d.ts +4 -0
- package/dist/api/roles-api.js +4 -0
- package/dist/api/users-api.d.ts +15 -242
- package/dist/api/users-api.js +15 -382
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts} +10 -10
- package/dist/models/custom-schema-class.d.ts +12 -0
- package/dist/models/data-report-class.d.ts +12 -0
- package/dist/models/data-report-filter-class.d.ts +12 -0
- package/dist/models/{enable-user-response-class.d.ts → get-embedded-url-response-class.d.ts} +6 -7
- package/dist/models/index.d.ts +5 -11
- package/dist/models/index.js +5 -11
- package/dist/models/invite-class.d.ts +12 -0
- 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/dist/models/org-invitation-class.d.ts +12 -0
- package/dist/models/organization-class.d.ts +12 -0
- package/dist/models/permission-class.d.ts +12 -0
- package/dist/models/role-class.d.ts +12 -0
- package/dist/models/subscription-class.d.ts +12 -0
- package/dist/models/user-class.d.ts +12 -0
- package/models/{assign-user-roles-request-dto.ts → create-tenant-db-config-request-dto.ts} +10 -10
- package/models/custom-schema-class.ts +12 -0
- package/models/data-report-class.ts +12 -0
- package/models/data-report-filter-class.ts +12 -0
- package/models/{enable-user-response-class.ts → get-embedded-url-response-class.ts} +6 -7
- package/models/index.ts +5 -11
- package/models/invite-class.ts +12 -0
- 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/models/org-invitation-class.ts +12 -0
- package/models/organization-class.ts +12 -0
- package/models/permission-class.ts +12 -0
- package/models/role-class.ts +12 -0
- package/models/subscription-class.ts +12 -0
- package/models/user-class.ts +12 -0
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
- package/dist/models/assign-user-roles-response-class.d.ts +0 -25
- 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/disable-user-response-class.d.ts +0 -25
- package/dist/models/enable-user-response-class.js +0 -15
- package/dist/models/invite-org-request-dto.js +0 -15
- package/dist/models/invite-user-request-dto.d.ts +0 -43
- package/dist/models/invite-user-request-dto.js +0 -15
- package/dist/models/invite-users-request-dto.d.ts +0 -36
- package/dist/models/invite-users-request-dto.js +0 -15
- 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/assign-user-roles-response-class.ts +0 -31
- package/models/create-permission-request-dto.ts +0 -48
- package/models/create-role-request-dto.ts +0 -42
- package/models/disable-user-response-class.ts +0 -31
- package/models/invite-user-request-dto.ts +0 -49
- package/models/invite-users-request-dto.ts +0 -42
- package/models/partner-invitation-data-dto.ts +0 -42
- package/models/update-role-request-dto.ts +0 -48
- /package/dist/models/{assign-user-roles-request-dto.js → create-tenant-db-config-request-dto.js} +0 -0
- /package/dist/models/{assign-user-roles-response-class.js → get-embedded-url-response-class.js} +0 -0
- /package/dist/models/{create-permission-request-dto.js → invite-org-request-dto-rest.js} +0 -0
- /package/dist/models/{create-role-request-dto.js → invite-user-request-dto-rest.js} +0 -0
- /package/dist/models/{disable-user-response-class.js → invite-users-request-dto-rest.js} +0 -0
|
@@ -96,54 +96,6 @@ var FormData = require('form-data');
|
|
|
96
96
|
var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
-
/**
|
|
100
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
101
|
-
* @summary Delete the invited user
|
|
102
|
-
* @param {number} id
|
|
103
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
|
-
* @param {*} [options] Override http request option.
|
|
105
|
-
* @throws {RequiredError}
|
|
106
|
-
*/
|
|
107
|
-
deleteInvite: function (id, authorization, options) {
|
|
108
|
-
if (options === void 0) { options = {}; }
|
|
109
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
-
return __generator(this, function (_a) {
|
|
112
|
-
switch (_a.label) {
|
|
113
|
-
case 0:
|
|
114
|
-
// verify required parameter 'id' is not null or undefined
|
|
115
|
-
(0, common_1.assertParamExists)('deleteInvite', 'id', id);
|
|
116
|
-
localVarPath = "/tenantservice/v1/users/invites/{id}"
|
|
117
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
118
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
|
-
if (configuration) {
|
|
120
|
-
baseOptions = configuration.baseOptions;
|
|
121
|
-
baseAccessToken = configuration.accessToken;
|
|
122
|
-
}
|
|
123
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
124
|
-
localVarHeaderParameter = {};
|
|
125
|
-
localVarQueryParameter = {};
|
|
126
|
-
// authentication bearer required
|
|
127
|
-
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
129
|
-
case 1:
|
|
130
|
-
// authentication bearer required
|
|
131
|
-
// http bearer authentication required
|
|
132
|
-
_a.sent();
|
|
133
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
135
|
-
}
|
|
136
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
return [2 /*return*/, {
|
|
140
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
-
options: localVarRequestOptions,
|
|
142
|
-
}];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
99
|
/**
|
|
148
100
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
149
101
|
* @summary Delete invited users.
|
|
@@ -196,20 +148,20 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
196
148
|
/**
|
|
197
149
|
* This send an email to invite a user with the specific role/roles.
|
|
198
150
|
* @summary Invite a user
|
|
199
|
-
* @param {
|
|
151
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
200
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
153
|
* @param {*} [options] Override http request option.
|
|
202
154
|
* @throws {RequiredError}
|
|
203
155
|
*/
|
|
204
|
-
inviteUser: function (
|
|
156
|
+
inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
|
|
205
157
|
if (options === void 0) { options = {}; }
|
|
206
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
207
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
208
160
|
return __generator(this, function (_a) {
|
|
209
161
|
switch (_a.label) {
|
|
210
162
|
case 0:
|
|
211
|
-
// verify required parameter '
|
|
212
|
-
(0, common_1.assertParamExists)('inviteUser', '
|
|
163
|
+
// verify required parameter 'inviteUserRequestDtoRest' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('inviteUser', 'inviteUserRequestDtoRest', inviteUserRequestDtoRest);
|
|
213
165
|
localVarPath = "/tenantservice/v1/users/invites";
|
|
214
166
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
167
|
if (configuration) {
|
|
@@ -233,7 +185,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
233
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
187
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
188
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteUserRequestDtoRest, localVarRequestOptions, configuration);
|
|
237
189
|
return [2 /*return*/, {
|
|
238
190
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
191
|
options: localVarRequestOptions,
|
|
@@ -245,20 +197,20 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
245
197
|
/**
|
|
246
198
|
* This send bulk emails to invite users with the specific role/roles.
|
|
247
199
|
* @summary Invite batch of users
|
|
248
|
-
* @param {
|
|
200
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
249
201
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
202
|
* @param {*} [options] Override http request option.
|
|
251
203
|
* @throws {RequiredError}
|
|
252
204
|
*/
|
|
253
|
-
inviteUsers: function (
|
|
205
|
+
inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
|
|
254
206
|
if (options === void 0) { options = {}; }
|
|
255
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
256
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
257
209
|
return __generator(this, function (_a) {
|
|
258
210
|
switch (_a.label) {
|
|
259
211
|
case 0:
|
|
260
|
-
// verify required parameter '
|
|
261
|
-
(0, common_1.assertParamExists)('inviteUsers', '
|
|
212
|
+
// verify required parameter 'inviteUsersRequestDtoRest' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('inviteUsers', 'inviteUsersRequestDtoRest', inviteUsersRequestDtoRest);
|
|
262
214
|
localVarPath = "/tenantservice/v1/users/invites/batch";
|
|
263
215
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
264
216
|
if (configuration) {
|
|
@@ -282,7 +234,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
282
234
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
283
235
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
236
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
285
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
237
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(inviteUsersRequestDtoRest, localVarRequestOptions, configuration);
|
|
286
238
|
return [2 /*return*/, {
|
|
287
239
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
288
240
|
options: localVarRequestOptions,
|
|
@@ -300,7 +252,7 @@ var InviteUsersApiAxiosParamCreator = function (configuration) {
|
|
|
300
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</i>
|
|
301
253
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
302
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>
|
|
303
|
-
* @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>
|
|
304
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</i>
|
|
305
257
|
* @param {*} [options] Override http request option.
|
|
306
258
|
* @throws {RequiredError}
|
|
@@ -373,27 +325,6 @@ exports.InviteUsersApiAxiosParamCreator = InviteUsersApiAxiosParamCreator;
|
|
|
373
325
|
var InviteUsersApiFp = function (configuration) {
|
|
374
326
|
var localVarAxiosParamCreator = (0, exports.InviteUsersApiAxiosParamCreator)(configuration);
|
|
375
327
|
return {
|
|
376
|
-
/**
|
|
377
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
378
|
-
* @summary Delete the invited user
|
|
379
|
-
* @param {number} id
|
|
380
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
*/
|
|
384
|
-
deleteInvite: function (id, authorization, options) {
|
|
385
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
386
|
-
var localVarAxiosArgs;
|
|
387
|
-
return __generator(this, function (_a) {
|
|
388
|
-
switch (_a.label) {
|
|
389
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteInvite(id, authorization, options)];
|
|
390
|
-
case 1:
|
|
391
|
-
localVarAxiosArgs = _a.sent();
|
|
392
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
},
|
|
397
328
|
/**
|
|
398
329
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
399
330
|
* @summary Delete invited users.
|
|
@@ -418,17 +349,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
418
349
|
/**
|
|
419
350
|
* This send an email to invite a user with the specific role/roles.
|
|
420
351
|
* @summary Invite a user
|
|
421
|
-
* @param {
|
|
352
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
422
353
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
423
354
|
* @param {*} [options] Override http request option.
|
|
424
355
|
* @throws {RequiredError}
|
|
425
356
|
*/
|
|
426
|
-
inviteUser: function (
|
|
357
|
+
inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
|
|
427
358
|
return __awaiter(this, void 0, void 0, function () {
|
|
428
359
|
var localVarAxiosArgs;
|
|
429
360
|
return __generator(this, function (_a) {
|
|
430
361
|
switch (_a.label) {
|
|
431
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(
|
|
362
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUser(inviteUserRequestDtoRest, authorization, options)];
|
|
432
363
|
case 1:
|
|
433
364
|
localVarAxiosArgs = _a.sent();
|
|
434
365
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -439,17 +370,17 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
439
370
|
/**
|
|
440
371
|
* This send bulk emails to invite users with the specific role/roles.
|
|
441
372
|
* @summary Invite batch of users
|
|
442
|
-
* @param {
|
|
373
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
443
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
444
375
|
* @param {*} [options] Override http request option.
|
|
445
376
|
* @throws {RequiredError}
|
|
446
377
|
*/
|
|
447
|
-
inviteUsers: function (
|
|
378
|
+
inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
|
|
448
379
|
return __awaiter(this, void 0, void 0, function () {
|
|
449
380
|
var localVarAxiosArgs;
|
|
450
381
|
return __generator(this, function (_a) {
|
|
451
382
|
switch (_a.label) {
|
|
452
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(
|
|
383
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.inviteUsers(inviteUsersRequestDtoRest, authorization, options)];
|
|
453
384
|
case 1:
|
|
454
385
|
localVarAxiosArgs = _a.sent();
|
|
455
386
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -466,7 +397,7 @@ var InviteUsersApiFp = function (configuration) {
|
|
|
466
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</i>
|
|
467
398
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
468
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>
|
|
469
|
-
* @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>
|
|
470
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</i>
|
|
471
402
|
* @param {*} [options] Override http request option.
|
|
472
403
|
* @throws {RequiredError}
|
|
@@ -494,17 +425,6 @@ exports.InviteUsersApiFp = InviteUsersApiFp;
|
|
|
494
425
|
var InviteUsersApiFactory = function (configuration, basePath, axios) {
|
|
495
426
|
var localVarFp = (0, exports.InviteUsersApiFp)(configuration);
|
|
496
427
|
return {
|
|
497
|
-
/**
|
|
498
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
499
|
-
* @summary Delete the invited user
|
|
500
|
-
* @param {number} id
|
|
501
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
|
-
* @param {*} [options] Override http request option.
|
|
503
|
-
* @throws {RequiredError}
|
|
504
|
-
*/
|
|
505
|
-
deleteInvite: function (id, authorization, options) {
|
|
506
|
-
return localVarFp.deleteInvite(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
507
|
-
},
|
|
508
428
|
/**
|
|
509
429
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
510
430
|
* @summary Delete invited users.
|
|
@@ -519,24 +439,24 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
519
439
|
/**
|
|
520
440
|
* This send an email to invite a user with the specific role/roles.
|
|
521
441
|
* @summary Invite a user
|
|
522
|
-
* @param {
|
|
442
|
+
* @param {InviteUserRequestDtoRest} inviteUserRequestDtoRest
|
|
523
443
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
524
444
|
* @param {*} [options] Override http request option.
|
|
525
445
|
* @throws {RequiredError}
|
|
526
446
|
*/
|
|
527
|
-
inviteUser: function (
|
|
528
|
-
return localVarFp.inviteUser(
|
|
447
|
+
inviteUser: function (inviteUserRequestDtoRest, authorization, options) {
|
|
448
|
+
return localVarFp.inviteUser(inviteUserRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
529
449
|
},
|
|
530
450
|
/**
|
|
531
451
|
* This send bulk emails to invite users with the specific role/roles.
|
|
532
452
|
* @summary Invite batch of users
|
|
533
|
-
* @param {
|
|
453
|
+
* @param {InviteUsersRequestDtoRest} inviteUsersRequestDtoRest
|
|
534
454
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
535
455
|
* @param {*} [options] Override http request option.
|
|
536
456
|
* @throws {RequiredError}
|
|
537
457
|
*/
|
|
538
|
-
inviteUsers: function (
|
|
539
|
-
return localVarFp.inviteUsers(
|
|
458
|
+
inviteUsers: function (inviteUsersRequestDtoRest, authorization, options) {
|
|
459
|
+
return localVarFp.inviteUsers(inviteUsersRequestDtoRest, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
540
460
|
},
|
|
541
461
|
/**
|
|
542
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.
|
|
@@ -547,7 +467,7 @@ var InviteUsersApiFactory = function (configuration, basePath, axios) {
|
|
|
547
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</i>
|
|
548
468
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
549
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>
|
|
550
|
-
* @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>
|
|
551
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</i>
|
|
552
472
|
* @param {*} [options] Override http request option.
|
|
553
473
|
* @throws {RequiredError}
|
|
@@ -569,18 +489,6 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
569
489
|
function InviteUsersApi() {
|
|
570
490
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
571
491
|
}
|
|
572
|
-
/**
|
|
573
|
-
* Permanently deletes the invited user. Supply the unique id that was returned when you created the invited user and this will delete it.
|
|
574
|
-
* @summary Delete the invited user
|
|
575
|
-
* @param {InviteUsersApiDeleteInviteRequest} requestParameters Request parameters.
|
|
576
|
-
* @param {*} [options] Override http request option.
|
|
577
|
-
* @throws {RequiredError}
|
|
578
|
-
* @memberof InviteUsersApi
|
|
579
|
-
*/
|
|
580
|
-
InviteUsersApi.prototype.deleteInvite = function (requestParameters, options) {
|
|
581
|
-
var _this = this;
|
|
582
|
-
return (0, exports.InviteUsersApiFp)(this.configuration).deleteInvite(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
583
|
-
};
|
|
584
492
|
/**
|
|
585
493
|
* This will deletes the users who has been invited. Supply array of ids that were returned when users has been created and this will delete it.
|
|
586
494
|
* @summary Delete invited users.
|
|
@@ -603,7 +511,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
603
511
|
*/
|
|
604
512
|
InviteUsersApi.prototype.inviteUser = function (requestParameters, options) {
|
|
605
513
|
var _this = this;
|
|
606
|
-
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); });
|
|
607
515
|
};
|
|
608
516
|
/**
|
|
609
517
|
* This send bulk emails to invite users with the specific role/roles.
|
|
@@ -615,7 +523,7 @@ var InviteUsersApi = /** @class */ (function (_super) {
|
|
|
615
523
|
*/
|
|
616
524
|
InviteUsersApi.prototype.inviteUsers = function (requestParameters, options) {
|
|
617
525
|
var _this = this;
|
|
618
|
-
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); });
|
|
619
527
|
};
|
|
620
528
|
/**
|
|
621
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
|
*/
|
package/dist/api/roles-api.js
CHANGED
|
@@ -107,6 +107,7 @@ var RolesApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
108
108
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
109
109
|
* @param {*} [options] Override http request option.
|
|
110
|
+
* @deprecated
|
|
110
111
|
* @throws {RequiredError}
|
|
111
112
|
*/
|
|
112
113
|
listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
@@ -185,6 +186,7 @@ var RolesApiFp = function (configuration) {
|
|
|
185
186
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
186
187
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
187
188
|
* @param {*} [options] Override http request option.
|
|
189
|
+
* @deprecated
|
|
188
190
|
* @throws {RequiredError}
|
|
189
191
|
*/
|
|
190
192
|
listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
@@ -221,6 +223,7 @@ var RolesApiFactory = function (configuration, basePath, axios) {
|
|
|
221
223
|
* @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.
|
|
222
224
|
* @param {string} [expand] You can expand roles in this endpoint. By default, permissions will be an empty array.
|
|
223
225
|
* @param {*} [options] Override http request option.
|
|
226
|
+
* @deprecated
|
|
224
227
|
* @throws {RequiredError}
|
|
225
228
|
*/
|
|
226
229
|
listRoles: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
@@ -245,6 +248,7 @@ var RolesApi = /** @class */ (function (_super) {
|
|
|
245
248
|
* @summary List roles
|
|
246
249
|
* @param {RolesApiListRolesRequest} requestParameters Request parameters.
|
|
247
250
|
* @param {*} [options] Override http request option.
|
|
251
|
+
* @deprecated
|
|
248
252
|
* @throws {RequiredError}
|
|
249
253
|
* @memberof RolesApi
|
|
250
254
|
*/
|