@emilgroup/tenant-sdk 1.22.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 +5 -11
- package/README.md +2 -2
- package/api/dashboard-api.ts +99 -0
- package/api/data-report-api.ts +0 -97
- 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/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/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/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts} +10 -10
- 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 -12
- 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/user-class.d.ts +8 -8
- package/models/{assign-user-roles-request-dto.ts → create-tenant-db-config-request-dto.ts} +10 -10
- 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 -12
- 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/user-class.ts +8 -8
- package/package.json +1 -1
- 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
package/dist/api/users-api.js
CHANGED
|
@@ -92,105 +92,6 @@ var base_1 = require("../base");
|
|
|
92
92
|
var UsersApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @param {number} id
|
|
98
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
99
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
|
|
104
|
-
if (options === void 0) { options = {}; }
|
|
105
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
switch (_a.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
// verify required parameter 'id' is not null or undefined
|
|
111
|
-
(0, common_1.assertParamExists)('assignUserRoles', 'id', id);
|
|
112
|
-
// verify required parameter 'assignUserRolesRequestDto' is not null or undefined
|
|
113
|
-
(0, common_1.assertParamExists)('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto);
|
|
114
|
-
localVarPath = "/tenantservice/v1/users/{id}/assign-roles"
|
|
115
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
116
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
117
|
-
if (configuration) {
|
|
118
|
-
baseOptions = configuration.baseOptions;
|
|
119
|
-
baseAccessToken = configuration.accessToken;
|
|
120
|
-
}
|
|
121
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
122
|
-
localVarHeaderParameter = {};
|
|
123
|
-
localVarQueryParameter = {};
|
|
124
|
-
// authentication bearer required
|
|
125
|
-
// http bearer authentication required
|
|
126
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
|
-
case 1:
|
|
128
|
-
// authentication bearer required
|
|
129
|
-
// http bearer authentication required
|
|
130
|
-
_a.sent();
|
|
131
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
132
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
|
-
}
|
|
134
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignUserRolesRequestDto, localVarRequestOptions, configuration);
|
|
139
|
-
return [2 /*return*/, {
|
|
140
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
-
options: localVarRequestOptions,
|
|
142
|
-
}];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
|
-
/**
|
|
148
|
-
*
|
|
149
|
-
* @param {number} id
|
|
150
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
151
|
-
* @param {*} [options] Override http request option.
|
|
152
|
-
* @throws {RequiredError}
|
|
153
|
-
*/
|
|
154
|
-
deleteUser: function (id, authorization, options) {
|
|
155
|
-
if (options === void 0) { options = {}; }
|
|
156
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
157
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
158
|
-
return __generator(this, function (_a) {
|
|
159
|
-
switch (_a.label) {
|
|
160
|
-
case 0:
|
|
161
|
-
// verify required parameter 'id' is not null or undefined
|
|
162
|
-
(0, common_1.assertParamExists)('deleteUser', 'id', id);
|
|
163
|
-
localVarPath = "/tenantservice/v1/users/{id}"
|
|
164
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
165
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
166
|
-
if (configuration) {
|
|
167
|
-
baseOptions = configuration.baseOptions;
|
|
168
|
-
baseAccessToken = configuration.accessToken;
|
|
169
|
-
}
|
|
170
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
171
|
-
localVarHeaderParameter = {};
|
|
172
|
-
localVarQueryParameter = {};
|
|
173
|
-
// authentication bearer required
|
|
174
|
-
// http bearer authentication required
|
|
175
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
176
|
-
case 1:
|
|
177
|
-
// authentication bearer required
|
|
178
|
-
// http bearer authentication required
|
|
179
|
-
_a.sent();
|
|
180
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
181
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
182
|
-
}
|
|
183
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
184
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
186
|
-
return [2 /*return*/, {
|
|
187
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
188
|
-
options: localVarRequestOptions,
|
|
189
|
-
}];
|
|
190
|
-
}
|
|
191
|
-
});
|
|
192
|
-
});
|
|
193
|
-
},
|
|
194
95
|
/**
|
|
195
96
|
*
|
|
196
97
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -239,53 +140,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
239
140
|
});
|
|
240
141
|
});
|
|
241
142
|
},
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* @param {number} id
|
|
245
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
246
|
-
* @param {*} [options] Override http request option.
|
|
247
|
-
* @throws {RequiredError}
|
|
248
|
-
*/
|
|
249
|
-
disableUser: function (id, authorization, options) {
|
|
250
|
-
if (options === void 0) { options = {}; }
|
|
251
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
252
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
253
|
-
return __generator(this, function (_a) {
|
|
254
|
-
switch (_a.label) {
|
|
255
|
-
case 0:
|
|
256
|
-
// verify required parameter 'id' is not null or undefined
|
|
257
|
-
(0, common_1.assertParamExists)('disableUser', 'id', id);
|
|
258
|
-
localVarPath = "/tenantservice/v1/users/{id}/disable"
|
|
259
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
260
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
261
|
-
if (configuration) {
|
|
262
|
-
baseOptions = configuration.baseOptions;
|
|
263
|
-
baseAccessToken = configuration.accessToken;
|
|
264
|
-
}
|
|
265
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
266
|
-
localVarHeaderParameter = {};
|
|
267
|
-
localVarQueryParameter = {};
|
|
268
|
-
// authentication bearer required
|
|
269
|
-
// http bearer authentication required
|
|
270
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
271
|
-
case 1:
|
|
272
|
-
// authentication bearer required
|
|
273
|
-
// http bearer authentication required
|
|
274
|
-
_a.sent();
|
|
275
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
276
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
277
|
-
}
|
|
278
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
281
|
-
return [2 /*return*/, {
|
|
282
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
283
|
-
options: localVarRequestOptions,
|
|
284
|
-
}];
|
|
285
|
-
}
|
|
286
|
-
});
|
|
287
|
-
});
|
|
288
|
-
},
|
|
289
143
|
/**
|
|
290
144
|
*
|
|
291
145
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -334,53 +188,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
334
188
|
});
|
|
335
189
|
});
|
|
336
190
|
},
|
|
337
|
-
/**
|
|
338
|
-
*
|
|
339
|
-
* @param {number} id
|
|
340
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
341
|
-
* @param {*} [options] Override http request option.
|
|
342
|
-
* @throws {RequiredError}
|
|
343
|
-
*/
|
|
344
|
-
enableUser: function (id, authorization, options) {
|
|
345
|
-
if (options === void 0) { options = {}; }
|
|
346
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
347
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
348
|
-
return __generator(this, function (_a) {
|
|
349
|
-
switch (_a.label) {
|
|
350
|
-
case 0:
|
|
351
|
-
// verify required parameter 'id' is not null or undefined
|
|
352
|
-
(0, common_1.assertParamExists)('enableUser', 'id', id);
|
|
353
|
-
localVarPath = "/tenantservice/v1/users/{id}/enable"
|
|
354
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
355
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
356
|
-
if (configuration) {
|
|
357
|
-
baseOptions = configuration.baseOptions;
|
|
358
|
-
baseAccessToken = configuration.accessToken;
|
|
359
|
-
}
|
|
360
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
361
|
-
localVarHeaderParameter = {};
|
|
362
|
-
localVarQueryParameter = {};
|
|
363
|
-
// authentication bearer required
|
|
364
|
-
// http bearer authentication required
|
|
365
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
366
|
-
case 1:
|
|
367
|
-
// authentication bearer required
|
|
368
|
-
// http bearer authentication required
|
|
369
|
-
_a.sent();
|
|
370
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
371
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
372
|
-
}
|
|
373
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
374
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
376
|
-
return [2 /*return*/, {
|
|
377
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
378
|
-
options: localVarRequestOptions,
|
|
379
|
-
}];
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
});
|
|
383
|
-
},
|
|
384
191
|
/**
|
|
385
192
|
*
|
|
386
193
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -432,13 +239,12 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
432
239
|
/**
|
|
433
240
|
*
|
|
434
241
|
* @param {string} code
|
|
435
|
-
* @param {string} code2 code
|
|
436
242
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
437
243
|
* @param {string} [expand] Fields to expand response by
|
|
438
244
|
* @param {*} [options] Override http request option.
|
|
439
245
|
* @throws {RequiredError}
|
|
440
246
|
*/
|
|
441
|
-
getUser: function (code,
|
|
247
|
+
getUser: function (code, authorization, expand, options) {
|
|
442
248
|
if (options === void 0) { options = {}; }
|
|
443
249
|
return __awaiter(_this, void 0, void 0, function () {
|
|
444
250
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -447,8 +253,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
447
253
|
case 0:
|
|
448
254
|
// verify required parameter 'code' is not null or undefined
|
|
449
255
|
(0, common_1.assertParamExists)('getUser', 'code', code);
|
|
450
|
-
// verify required parameter 'code2' is not null or undefined
|
|
451
|
-
(0, common_1.assertParamExists)('getUser', 'code2', code2);
|
|
452
256
|
localVarPath = "/tenantservice/v1/users/{code}"
|
|
453
257
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
454
258
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -466,9 +270,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
466
270
|
// authentication bearer required
|
|
467
271
|
// http bearer authentication required
|
|
468
272
|
_a.sent();
|
|
469
|
-
if (code2 !== undefined) {
|
|
470
|
-
localVarQueryParameter['code'] = code2;
|
|
471
|
-
}
|
|
472
273
|
if (expand !== undefined) {
|
|
473
274
|
localVarQueryParameter['expand'] = expand;
|
|
474
275
|
}
|
|
@@ -544,11 +345,11 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
544
345
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
545
346
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
546
347
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
547
|
-
* @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</i>
|
|
348
|
+
* @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>
|
|
548
349
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
549
350
|
* @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>
|
|
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:
|
|
551
|
-
* @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</i>
|
|
351
|
+
* @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>
|
|
352
|
+
* @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>
|
|
552
353
|
* @param {*} [options] Override http request option.
|
|
553
354
|
* @throws {RequiredError}
|
|
554
355
|
*/
|
|
@@ -620,47 +421,6 @@ exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
|
620
421
|
var UsersApiFp = function (configuration) {
|
|
621
422
|
var localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
|
|
622
423
|
return {
|
|
623
|
-
/**
|
|
624
|
-
*
|
|
625
|
-
* @param {number} id
|
|
626
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
627
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
628
|
-
* @param {*} [options] Override http request option.
|
|
629
|
-
* @throws {RequiredError}
|
|
630
|
-
*/
|
|
631
|
-
assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
|
|
632
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
633
|
-
var localVarAxiosArgs;
|
|
634
|
-
return __generator(this, function (_a) {
|
|
635
|
-
switch (_a.label) {
|
|
636
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options)];
|
|
637
|
-
case 1:
|
|
638
|
-
localVarAxiosArgs = _a.sent();
|
|
639
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
640
|
-
}
|
|
641
|
-
});
|
|
642
|
-
});
|
|
643
|
-
},
|
|
644
|
-
/**
|
|
645
|
-
*
|
|
646
|
-
* @param {number} id
|
|
647
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
648
|
-
* @param {*} [options] Override http request option.
|
|
649
|
-
* @throws {RequiredError}
|
|
650
|
-
*/
|
|
651
|
-
deleteUser: function (id, authorization, options) {
|
|
652
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
653
|
-
var localVarAxiosArgs;
|
|
654
|
-
return __generator(this, function (_a) {
|
|
655
|
-
switch (_a.label) {
|
|
656
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUser(id, authorization, options)];
|
|
657
|
-
case 1:
|
|
658
|
-
localVarAxiosArgs = _a.sent();
|
|
659
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
660
|
-
}
|
|
661
|
-
});
|
|
662
|
-
});
|
|
663
|
-
},
|
|
664
424
|
/**
|
|
665
425
|
*
|
|
666
426
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -681,26 +441,6 @@ var UsersApiFp = function (configuration) {
|
|
|
681
441
|
});
|
|
682
442
|
});
|
|
683
443
|
},
|
|
684
|
-
/**
|
|
685
|
-
*
|
|
686
|
-
* @param {number} id
|
|
687
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
688
|
-
* @param {*} [options] Override http request option.
|
|
689
|
-
* @throws {RequiredError}
|
|
690
|
-
*/
|
|
691
|
-
disableUser: function (id, authorization, options) {
|
|
692
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
693
|
-
var localVarAxiosArgs;
|
|
694
|
-
return __generator(this, function (_a) {
|
|
695
|
-
switch (_a.label) {
|
|
696
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.disableUser(id, authorization, options)];
|
|
697
|
-
case 1:
|
|
698
|
-
localVarAxiosArgs = _a.sent();
|
|
699
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
700
|
-
}
|
|
701
|
-
});
|
|
702
|
-
});
|
|
703
|
-
},
|
|
704
444
|
/**
|
|
705
445
|
*
|
|
706
446
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -721,26 +461,6 @@ var UsersApiFp = function (configuration) {
|
|
|
721
461
|
});
|
|
722
462
|
});
|
|
723
463
|
},
|
|
724
|
-
/**
|
|
725
|
-
*
|
|
726
|
-
* @param {number} id
|
|
727
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
728
|
-
* @param {*} [options] Override http request option.
|
|
729
|
-
* @throws {RequiredError}
|
|
730
|
-
*/
|
|
731
|
-
enableUser: function (id, authorization, options) {
|
|
732
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
733
|
-
var localVarAxiosArgs;
|
|
734
|
-
return __generator(this, function (_a) {
|
|
735
|
-
switch (_a.label) {
|
|
736
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.enableUser(id, authorization, options)];
|
|
737
|
-
case 1:
|
|
738
|
-
localVarAxiosArgs = _a.sent();
|
|
739
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
740
|
-
}
|
|
741
|
-
});
|
|
742
|
-
});
|
|
743
|
-
},
|
|
744
464
|
/**
|
|
745
465
|
*
|
|
746
466
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -764,18 +484,17 @@ var UsersApiFp = function (configuration) {
|
|
|
764
484
|
/**
|
|
765
485
|
*
|
|
766
486
|
* @param {string} code
|
|
767
|
-
* @param {string} code2 code
|
|
768
487
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
769
488
|
* @param {string} [expand] Fields to expand response by
|
|
770
489
|
* @param {*} [options] Override http request option.
|
|
771
490
|
* @throws {RequiredError}
|
|
772
491
|
*/
|
|
773
|
-
getUser: function (code,
|
|
492
|
+
getUser: function (code, authorization, expand, options) {
|
|
774
493
|
return __awaiter(this, void 0, void 0, function () {
|
|
775
494
|
var localVarAxiosArgs;
|
|
776
495
|
return __generator(this, function (_a) {
|
|
777
496
|
switch (_a.label) {
|
|
778
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUser(code,
|
|
497
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUser(code, authorization, expand, options)];
|
|
779
498
|
case 1:
|
|
780
499
|
localVarAxiosArgs = _a.sent();
|
|
781
500
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -810,11 +529,11 @@ var UsersApiFp = function (configuration) {
|
|
|
810
529
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
811
530
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
812
531
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
813
|
-
* @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</i>
|
|
532
|
+
* @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>
|
|
814
533
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
815
534
|
* @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>
|
|
816
|
-
* @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:
|
|
817
|
-
* @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</i>
|
|
535
|
+
* @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>
|
|
536
|
+
* @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>
|
|
818
537
|
* @param {*} [options] Override http request option.
|
|
819
538
|
* @throws {RequiredError}
|
|
820
539
|
*/
|
|
@@ -841,27 +560,6 @@ exports.UsersApiFp = UsersApiFp;
|
|
|
841
560
|
var UsersApiFactory = function (configuration, basePath, axios) {
|
|
842
561
|
var localVarFp = (0, exports.UsersApiFp)(configuration);
|
|
843
562
|
return {
|
|
844
|
-
/**
|
|
845
|
-
*
|
|
846
|
-
* @param {number} id
|
|
847
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
848
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
849
|
-
* @param {*} [options] Override http request option.
|
|
850
|
-
* @throws {RequiredError}
|
|
851
|
-
*/
|
|
852
|
-
assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
|
|
853
|
-
return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
854
|
-
},
|
|
855
|
-
/**
|
|
856
|
-
*
|
|
857
|
-
* @param {number} id
|
|
858
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
859
|
-
* @param {*} [options] Override http request option.
|
|
860
|
-
* @throws {RequiredError}
|
|
861
|
-
*/
|
|
862
|
-
deleteUser: function (id, authorization, options) {
|
|
863
|
-
return localVarFp.deleteUser(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
864
|
-
},
|
|
865
563
|
/**
|
|
866
564
|
*
|
|
867
565
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -872,16 +570,6 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
872
570
|
deleteUsers: function (batchDeleteRequestDto, authorization, options) {
|
|
873
571
|
return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
874
572
|
},
|
|
875
|
-
/**
|
|
876
|
-
*
|
|
877
|
-
* @param {number} id
|
|
878
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
879
|
-
* @param {*} [options] Override http request option.
|
|
880
|
-
* @throws {RequiredError}
|
|
881
|
-
*/
|
|
882
|
-
disableUser: function (id, authorization, options) {
|
|
883
|
-
return localVarFp.disableUser(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
884
|
-
},
|
|
885
573
|
/**
|
|
886
574
|
*
|
|
887
575
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -892,16 +580,6 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
892
580
|
disableUsers: function (disableUsersRequestDto, authorization, options) {
|
|
893
581
|
return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
894
582
|
},
|
|
895
|
-
/**
|
|
896
|
-
*
|
|
897
|
-
* @param {number} id
|
|
898
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
899
|
-
* @param {*} [options] Override http request option.
|
|
900
|
-
* @throws {RequiredError}
|
|
901
|
-
*/
|
|
902
|
-
enableUser: function (id, authorization, options) {
|
|
903
|
-
return localVarFp.enableUser(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
904
|
-
},
|
|
905
583
|
/**
|
|
906
584
|
*
|
|
907
585
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -915,14 +593,13 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
915
593
|
/**
|
|
916
594
|
*
|
|
917
595
|
* @param {string} code
|
|
918
|
-
* @param {string} code2 code
|
|
919
596
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
920
597
|
* @param {string} [expand] Fields to expand response by
|
|
921
598
|
* @param {*} [options] Override http request option.
|
|
922
599
|
* @throws {RequiredError}
|
|
923
600
|
*/
|
|
924
|
-
getUser: function (code,
|
|
925
|
-
return localVarFp.getUser(code,
|
|
601
|
+
getUser: function (code, authorization, expand, options) {
|
|
602
|
+
return localVarFp.getUser(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
926
603
|
},
|
|
927
604
|
/**
|
|
928
605
|
*
|
|
@@ -941,11 +618,11 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
941
618
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
942
619
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
943
620
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
944
|
-
* @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</i>
|
|
621
|
+
* @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>
|
|
945
622
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
946
623
|
* @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>
|
|
947
|
-
* @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:
|
|
948
|
-
* @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</i>
|
|
624
|
+
* @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>
|
|
625
|
+
* @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>
|
|
949
626
|
* @param {*} [options] Override http request option.
|
|
950
627
|
* @throws {RequiredError}
|
|
951
628
|
*/
|
|
@@ -966,28 +643,6 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
966
643
|
function UsersApi() {
|
|
967
644
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
968
645
|
}
|
|
969
|
-
/**
|
|
970
|
-
*
|
|
971
|
-
* @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
|
|
972
|
-
* @param {*} [options] Override http request option.
|
|
973
|
-
* @throws {RequiredError}
|
|
974
|
-
* @memberof UsersApi
|
|
975
|
-
*/
|
|
976
|
-
UsersApi.prototype.assignUserRoles = function (requestParameters, options) {
|
|
977
|
-
var _this = this;
|
|
978
|
-
return (0, exports.UsersApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
979
|
-
};
|
|
980
|
-
/**
|
|
981
|
-
*
|
|
982
|
-
* @param {UsersApiDeleteUserRequest} requestParameters Request parameters.
|
|
983
|
-
* @param {*} [options] Override http request option.
|
|
984
|
-
* @throws {RequiredError}
|
|
985
|
-
* @memberof UsersApi
|
|
986
|
-
*/
|
|
987
|
-
UsersApi.prototype.deleteUser = function (requestParameters, options) {
|
|
988
|
-
var _this = this;
|
|
989
|
-
return (0, exports.UsersApiFp)(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
990
|
-
};
|
|
991
646
|
/**
|
|
992
647
|
*
|
|
993
648
|
* @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
|
|
@@ -999,17 +654,6 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
999
654
|
var _this = this;
|
|
1000
655
|
return (0, exports.UsersApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1001
656
|
};
|
|
1002
|
-
/**
|
|
1003
|
-
*
|
|
1004
|
-
* @param {UsersApiDisableUserRequest} requestParameters Request parameters.
|
|
1005
|
-
* @param {*} [options] Override http request option.
|
|
1006
|
-
* @throws {RequiredError}
|
|
1007
|
-
* @memberof UsersApi
|
|
1008
|
-
*/
|
|
1009
|
-
UsersApi.prototype.disableUser = function (requestParameters, options) {
|
|
1010
|
-
var _this = this;
|
|
1011
|
-
return (0, exports.UsersApiFp)(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1012
|
-
};
|
|
1013
657
|
/**
|
|
1014
658
|
*
|
|
1015
659
|
* @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
|
|
@@ -1021,17 +665,6 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
1021
665
|
var _this = this;
|
|
1022
666
|
return (0, exports.UsersApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1023
667
|
};
|
|
1024
|
-
/**
|
|
1025
|
-
*
|
|
1026
|
-
* @param {UsersApiEnableUserRequest} requestParameters Request parameters.
|
|
1027
|
-
* @param {*} [options] Override http request option.
|
|
1028
|
-
* @throws {RequiredError}
|
|
1029
|
-
* @memberof UsersApi
|
|
1030
|
-
*/
|
|
1031
|
-
UsersApi.prototype.enableUser = function (requestParameters, options) {
|
|
1032
|
-
var _this = this;
|
|
1033
|
-
return (0, exports.UsersApiFp)(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1034
|
-
};
|
|
1035
668
|
/**
|
|
1036
669
|
*
|
|
1037
670
|
* @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
|
|
@@ -1052,7 +685,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
1052
685
|
*/
|
|
1053
686
|
UsersApi.prototype.getUser = function (requestParameters, options) {
|
|
1054
687
|
var _this = this;
|
|
1055
|
-
return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.
|
|
688
|
+
return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1056
689
|
};
|
|
1057
690
|
/**
|
|
1058
691
|
*
|
package/dist/models/{assign-user-roles-request-dto.d.ts → create-tenant-db-config-request-dto.d.ts}
RENAMED
|
@@ -12,19 +12,19 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface CreateTenantDbConfigRequestDto
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface CreateTenantDbConfigRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {
|
|
21
|
-
* @memberof
|
|
19
|
+
* Tenant Slug
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateTenantDbConfigRequestDto
|
|
22
22
|
*/
|
|
23
|
-
'
|
|
23
|
+
'tenantSlug': string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {
|
|
27
|
-
* @memberof
|
|
25
|
+
* Tenant DB Config
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof CreateTenantDbConfigRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'
|
|
29
|
+
'config': object;
|
|
30
30
|
}
|
package/dist/models/{enable-user-response-class.d.ts → get-embedded-url-response-class.d.ts}
RENAMED
|
@@ -9,17 +9,16 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { UserClass } from './user-class';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
16
|
-
* @interface
|
|
15
|
+
* @interface GetEmbeddedUrlResponseClass
|
|
17
16
|
*/
|
|
18
|
-
export interface
|
|
17
|
+
export interface GetEmbeddedUrlResponseClass {
|
|
19
18
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
22
|
-
* @memberof
|
|
19
|
+
* Embedded url
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetEmbeddedUrlResponseClass
|
|
23
22
|
*/
|
|
24
|
-
'
|
|
23
|
+
'url': string;
|
|
25
24
|
}
|