@emilgroup/tenant-sdk-node 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
|
@@ -96,105 +96,6 @@ var FormData = require('form-data');
|
|
|
96
96
|
var UsersApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
|
-
/**
|
|
100
|
-
*
|
|
101
|
-
* @param {number} id
|
|
102
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
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
|
-
assignUserRoles: function (id, assignUserRolesRequestDto, 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)('assignUserRoles', 'id', id);
|
|
116
|
-
// verify required parameter 'assignUserRolesRequestDto' is not null or undefined
|
|
117
|
-
(0, common_1.assertParamExists)('assignUserRoles', 'assignUserRolesRequestDto', assignUserRolesRequestDto);
|
|
118
|
-
localVarPath = "/tenantservice/v1/users/{id}/assign-roles"
|
|
119
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
120
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
121
|
-
if (configuration) {
|
|
122
|
-
baseOptions = configuration.baseOptions;
|
|
123
|
-
baseAccessToken = configuration.accessToken;
|
|
124
|
-
}
|
|
125
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
126
|
-
localVarHeaderParameter = {};
|
|
127
|
-
localVarQueryParameter = {};
|
|
128
|
-
// authentication bearer required
|
|
129
|
-
// http bearer authentication required
|
|
130
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
131
|
-
case 1:
|
|
132
|
-
// authentication bearer required
|
|
133
|
-
// http bearer authentication required
|
|
134
|
-
_a.sent();
|
|
135
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
|
-
}
|
|
138
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
140
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
141
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
142
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(assignUserRolesRequestDto, localVarRequestOptions, configuration);
|
|
143
|
-
return [2 /*return*/, {
|
|
144
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
145
|
-
options: localVarRequestOptions,
|
|
146
|
-
}];
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
},
|
|
151
|
-
/**
|
|
152
|
-
*
|
|
153
|
-
* @param {number} id
|
|
154
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
155
|
-
* @param {*} [options] Override http request option.
|
|
156
|
-
* @throws {RequiredError}
|
|
157
|
-
*/
|
|
158
|
-
deleteUser: function (id, authorization, options) {
|
|
159
|
-
if (options === void 0) { options = {}; }
|
|
160
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
161
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
-
return __generator(this, function (_a) {
|
|
163
|
-
switch (_a.label) {
|
|
164
|
-
case 0:
|
|
165
|
-
// verify required parameter 'id' is not null or undefined
|
|
166
|
-
(0, common_1.assertParamExists)('deleteUser', 'id', id);
|
|
167
|
-
localVarPath = "/tenantservice/v1/users/{id}"
|
|
168
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
169
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
|
-
if (configuration) {
|
|
171
|
-
baseOptions = configuration.baseOptions;
|
|
172
|
-
baseAccessToken = configuration.accessToken;
|
|
173
|
-
}
|
|
174
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
175
|
-
localVarHeaderParameter = {};
|
|
176
|
-
localVarQueryParameter = {};
|
|
177
|
-
// authentication bearer required
|
|
178
|
-
// http bearer authentication required
|
|
179
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
180
|
-
case 1:
|
|
181
|
-
// authentication bearer required
|
|
182
|
-
// http bearer authentication required
|
|
183
|
-
_a.sent();
|
|
184
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
185
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
|
-
}
|
|
187
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
190
|
-
return [2 /*return*/, {
|
|
191
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
192
|
-
options: localVarRequestOptions,
|
|
193
|
-
}];
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
});
|
|
197
|
-
},
|
|
198
99
|
/**
|
|
199
100
|
*
|
|
200
101
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -243,53 +144,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
243
144
|
});
|
|
244
145
|
});
|
|
245
146
|
},
|
|
246
|
-
/**
|
|
247
|
-
*
|
|
248
|
-
* @param {number} id
|
|
249
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
|
-
* @param {*} [options] Override http request option.
|
|
251
|
-
* @throws {RequiredError}
|
|
252
|
-
*/
|
|
253
|
-
disableUser: function (id, authorization, options) {
|
|
254
|
-
if (options === void 0) { options = {}; }
|
|
255
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
256
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
257
|
-
return __generator(this, function (_a) {
|
|
258
|
-
switch (_a.label) {
|
|
259
|
-
case 0:
|
|
260
|
-
// verify required parameter 'id' is not null or undefined
|
|
261
|
-
(0, common_1.assertParamExists)('disableUser', 'id', id);
|
|
262
|
-
localVarPath = "/tenantservice/v1/users/{id}/disable"
|
|
263
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
264
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
265
|
-
if (configuration) {
|
|
266
|
-
baseOptions = configuration.baseOptions;
|
|
267
|
-
baseAccessToken = configuration.accessToken;
|
|
268
|
-
}
|
|
269
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
270
|
-
localVarHeaderParameter = {};
|
|
271
|
-
localVarQueryParameter = {};
|
|
272
|
-
// authentication bearer required
|
|
273
|
-
// http bearer authentication required
|
|
274
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
275
|
-
case 1:
|
|
276
|
-
// authentication bearer required
|
|
277
|
-
// http bearer authentication required
|
|
278
|
-
_a.sent();
|
|
279
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
280
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
281
|
-
}
|
|
282
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
283
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
284
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
285
|
-
return [2 /*return*/, {
|
|
286
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
287
|
-
options: localVarRequestOptions,
|
|
288
|
-
}];
|
|
289
|
-
}
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
},
|
|
293
147
|
/**
|
|
294
148
|
*
|
|
295
149
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -338,53 +192,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
338
192
|
});
|
|
339
193
|
});
|
|
340
194
|
},
|
|
341
|
-
/**
|
|
342
|
-
*
|
|
343
|
-
* @param {number} id
|
|
344
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
345
|
-
* @param {*} [options] Override http request option.
|
|
346
|
-
* @throws {RequiredError}
|
|
347
|
-
*/
|
|
348
|
-
enableUser: function (id, authorization, options) {
|
|
349
|
-
if (options === void 0) { options = {}; }
|
|
350
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
351
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
352
|
-
return __generator(this, function (_a) {
|
|
353
|
-
switch (_a.label) {
|
|
354
|
-
case 0:
|
|
355
|
-
// verify required parameter 'id' is not null or undefined
|
|
356
|
-
(0, common_1.assertParamExists)('enableUser', 'id', id);
|
|
357
|
-
localVarPath = "/tenantservice/v1/users/{id}/enable"
|
|
358
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
359
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
360
|
-
if (configuration) {
|
|
361
|
-
baseOptions = configuration.baseOptions;
|
|
362
|
-
baseAccessToken = configuration.accessToken;
|
|
363
|
-
}
|
|
364
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
365
|
-
localVarHeaderParameter = {};
|
|
366
|
-
localVarQueryParameter = {};
|
|
367
|
-
// authentication bearer required
|
|
368
|
-
// http bearer authentication required
|
|
369
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
370
|
-
case 1:
|
|
371
|
-
// authentication bearer required
|
|
372
|
-
// http bearer authentication required
|
|
373
|
-
_a.sent();
|
|
374
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
375
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
376
|
-
}
|
|
377
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
378
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
379
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
380
|
-
return [2 /*return*/, {
|
|
381
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
382
|
-
options: localVarRequestOptions,
|
|
383
|
-
}];
|
|
384
|
-
}
|
|
385
|
-
});
|
|
386
|
-
});
|
|
387
|
-
},
|
|
388
195
|
/**
|
|
389
196
|
*
|
|
390
197
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -436,13 +243,12 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
436
243
|
/**
|
|
437
244
|
*
|
|
438
245
|
* @param {string} code
|
|
439
|
-
* @param {string} code2 code
|
|
440
246
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
441
247
|
* @param {string} [expand] Fields to expand response by
|
|
442
248
|
* @param {*} [options] Override http request option.
|
|
443
249
|
* @throws {RequiredError}
|
|
444
250
|
*/
|
|
445
|
-
getUser: function (code,
|
|
251
|
+
getUser: function (code, authorization, expand, options) {
|
|
446
252
|
if (options === void 0) { options = {}; }
|
|
447
253
|
return __awaiter(_this, void 0, void 0, function () {
|
|
448
254
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -451,8 +257,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
451
257
|
case 0:
|
|
452
258
|
// verify required parameter 'code' is not null or undefined
|
|
453
259
|
(0, common_1.assertParamExists)('getUser', 'code', code);
|
|
454
|
-
// verify required parameter 'code2' is not null or undefined
|
|
455
|
-
(0, common_1.assertParamExists)('getUser', 'code2', code2);
|
|
456
260
|
localVarPath = "/tenantservice/v1/users/{code}"
|
|
457
261
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
458
262
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -470,9 +274,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
470
274
|
// authentication bearer required
|
|
471
275
|
// http bearer authentication required
|
|
472
276
|
_a.sent();
|
|
473
|
-
if (code2 !== undefined) {
|
|
474
|
-
localVarQueryParameter['code'] = code2;
|
|
475
|
-
}
|
|
476
277
|
if (expand !== undefined) {
|
|
477
278
|
localVarQueryParameter['expand'] = expand;
|
|
478
279
|
}
|
|
@@ -548,11 +349,11 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
548
349
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
549
350
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
550
351
|
* @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.
|
|
551
|
-
* @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>
|
|
352
|
+
* @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>
|
|
552
353
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
553
354
|
* @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>
|
|
554
|
-
* @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:
|
|
555
|
-
* @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>
|
|
355
|
+
* @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>
|
|
356
|
+
* @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>
|
|
556
357
|
* @param {*} [options] Override http request option.
|
|
557
358
|
* @throws {RequiredError}
|
|
558
359
|
*/
|
|
@@ -624,47 +425,6 @@ exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
|
624
425
|
var UsersApiFp = function (configuration) {
|
|
625
426
|
var localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
|
|
626
427
|
return {
|
|
627
|
-
/**
|
|
628
|
-
*
|
|
629
|
-
* @param {number} id
|
|
630
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
631
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
632
|
-
* @param {*} [options] Override http request option.
|
|
633
|
-
* @throws {RequiredError}
|
|
634
|
-
*/
|
|
635
|
-
assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
|
|
636
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
637
|
-
var localVarAxiosArgs;
|
|
638
|
-
return __generator(this, function (_a) {
|
|
639
|
-
switch (_a.label) {
|
|
640
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.assignUserRoles(id, assignUserRolesRequestDto, authorization, options)];
|
|
641
|
-
case 1:
|
|
642
|
-
localVarAxiosArgs = _a.sent();
|
|
643
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
644
|
-
}
|
|
645
|
-
});
|
|
646
|
-
});
|
|
647
|
-
},
|
|
648
|
-
/**
|
|
649
|
-
*
|
|
650
|
-
* @param {number} id
|
|
651
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
652
|
-
* @param {*} [options] Override http request option.
|
|
653
|
-
* @throws {RequiredError}
|
|
654
|
-
*/
|
|
655
|
-
deleteUser: function (id, authorization, options) {
|
|
656
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
657
|
-
var localVarAxiosArgs;
|
|
658
|
-
return __generator(this, function (_a) {
|
|
659
|
-
switch (_a.label) {
|
|
660
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteUser(id, authorization, options)];
|
|
661
|
-
case 1:
|
|
662
|
-
localVarAxiosArgs = _a.sent();
|
|
663
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
664
|
-
}
|
|
665
|
-
});
|
|
666
|
-
});
|
|
667
|
-
},
|
|
668
428
|
/**
|
|
669
429
|
*
|
|
670
430
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -685,26 +445,6 @@ var UsersApiFp = function (configuration) {
|
|
|
685
445
|
});
|
|
686
446
|
});
|
|
687
447
|
},
|
|
688
|
-
/**
|
|
689
|
-
*
|
|
690
|
-
* @param {number} id
|
|
691
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
692
|
-
* @param {*} [options] Override http request option.
|
|
693
|
-
* @throws {RequiredError}
|
|
694
|
-
*/
|
|
695
|
-
disableUser: function (id, authorization, options) {
|
|
696
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
697
|
-
var localVarAxiosArgs;
|
|
698
|
-
return __generator(this, function (_a) {
|
|
699
|
-
switch (_a.label) {
|
|
700
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.disableUser(id, authorization, options)];
|
|
701
|
-
case 1:
|
|
702
|
-
localVarAxiosArgs = _a.sent();
|
|
703
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
704
|
-
}
|
|
705
|
-
});
|
|
706
|
-
});
|
|
707
|
-
},
|
|
708
448
|
/**
|
|
709
449
|
*
|
|
710
450
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -725,26 +465,6 @@ var UsersApiFp = function (configuration) {
|
|
|
725
465
|
});
|
|
726
466
|
});
|
|
727
467
|
},
|
|
728
|
-
/**
|
|
729
|
-
*
|
|
730
|
-
* @param {number} id
|
|
731
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
732
|
-
* @param {*} [options] Override http request option.
|
|
733
|
-
* @throws {RequiredError}
|
|
734
|
-
*/
|
|
735
|
-
enableUser: function (id, authorization, options) {
|
|
736
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
737
|
-
var localVarAxiosArgs;
|
|
738
|
-
return __generator(this, function (_a) {
|
|
739
|
-
switch (_a.label) {
|
|
740
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.enableUser(id, authorization, options)];
|
|
741
|
-
case 1:
|
|
742
|
-
localVarAxiosArgs = _a.sent();
|
|
743
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
744
|
-
}
|
|
745
|
-
});
|
|
746
|
-
});
|
|
747
|
-
},
|
|
748
468
|
/**
|
|
749
469
|
*
|
|
750
470
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -768,18 +488,17 @@ var UsersApiFp = function (configuration) {
|
|
|
768
488
|
/**
|
|
769
489
|
*
|
|
770
490
|
* @param {string} code
|
|
771
|
-
* @param {string} code2 code
|
|
772
491
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
773
492
|
* @param {string} [expand] Fields to expand response by
|
|
774
493
|
* @param {*} [options] Override http request option.
|
|
775
494
|
* @throws {RequiredError}
|
|
776
495
|
*/
|
|
777
|
-
getUser: function (code,
|
|
496
|
+
getUser: function (code, authorization, expand, options) {
|
|
778
497
|
return __awaiter(this, void 0, void 0, function () {
|
|
779
498
|
var localVarAxiosArgs;
|
|
780
499
|
return __generator(this, function (_a) {
|
|
781
500
|
switch (_a.label) {
|
|
782
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUser(code,
|
|
501
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUser(code, authorization, expand, options)];
|
|
783
502
|
case 1:
|
|
784
503
|
localVarAxiosArgs = _a.sent();
|
|
785
504
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -814,11 +533,11 @@ var UsersApiFp = function (configuration) {
|
|
|
814
533
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
815
534
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
816
535
|
* @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.
|
|
817
|
-
* @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>
|
|
536
|
+
* @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>
|
|
818
537
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
819
538
|
* @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>
|
|
820
|
-
* @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:
|
|
821
|
-
* @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>
|
|
539
|
+
* @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>
|
|
540
|
+
* @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>
|
|
822
541
|
* @param {*} [options] Override http request option.
|
|
823
542
|
* @throws {RequiredError}
|
|
824
543
|
*/
|
|
@@ -845,27 +564,6 @@ exports.UsersApiFp = UsersApiFp;
|
|
|
845
564
|
var UsersApiFactory = function (configuration, basePath, axios) {
|
|
846
565
|
var localVarFp = (0, exports.UsersApiFp)(configuration);
|
|
847
566
|
return {
|
|
848
|
-
/**
|
|
849
|
-
*
|
|
850
|
-
* @param {number} id
|
|
851
|
-
* @param {AssignUserRolesRequestDto} assignUserRolesRequestDto
|
|
852
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
853
|
-
* @param {*} [options] Override http request option.
|
|
854
|
-
* @throws {RequiredError}
|
|
855
|
-
*/
|
|
856
|
-
assignUserRoles: function (id, assignUserRolesRequestDto, authorization, options) {
|
|
857
|
-
return localVarFp.assignUserRoles(id, assignUserRolesRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
858
|
-
},
|
|
859
|
-
/**
|
|
860
|
-
*
|
|
861
|
-
* @param {number} id
|
|
862
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
863
|
-
* @param {*} [options] Override http request option.
|
|
864
|
-
* @throws {RequiredError}
|
|
865
|
-
*/
|
|
866
|
-
deleteUser: function (id, authorization, options) {
|
|
867
|
-
return localVarFp.deleteUser(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
868
|
-
},
|
|
869
567
|
/**
|
|
870
568
|
*
|
|
871
569
|
* @param {BatchDeleteRequestDto} batchDeleteRequestDto
|
|
@@ -876,16 +574,6 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
876
574
|
deleteUsers: function (batchDeleteRequestDto, authorization, options) {
|
|
877
575
|
return localVarFp.deleteUsers(batchDeleteRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
878
576
|
},
|
|
879
|
-
/**
|
|
880
|
-
*
|
|
881
|
-
* @param {number} id
|
|
882
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
883
|
-
* @param {*} [options] Override http request option.
|
|
884
|
-
* @throws {RequiredError}
|
|
885
|
-
*/
|
|
886
|
-
disableUser: function (id, authorization, options) {
|
|
887
|
-
return localVarFp.disableUser(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
888
|
-
},
|
|
889
577
|
/**
|
|
890
578
|
*
|
|
891
579
|
* @param {DisableUsersRequestDto} disableUsersRequestDto
|
|
@@ -896,16 +584,6 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
896
584
|
disableUsers: function (disableUsersRequestDto, authorization, options) {
|
|
897
585
|
return localVarFp.disableUsers(disableUsersRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
898
586
|
},
|
|
899
|
-
/**
|
|
900
|
-
*
|
|
901
|
-
* @param {number} id
|
|
902
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
903
|
-
* @param {*} [options] Override http request option.
|
|
904
|
-
* @throws {RequiredError}
|
|
905
|
-
*/
|
|
906
|
-
enableUser: function (id, authorization, options) {
|
|
907
|
-
return localVarFp.enableUser(id, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
908
|
-
},
|
|
909
587
|
/**
|
|
910
588
|
*
|
|
911
589
|
* @param {EnableUsersRequestDto} enableUsersRequestDto
|
|
@@ -919,14 +597,13 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
919
597
|
/**
|
|
920
598
|
*
|
|
921
599
|
* @param {string} code
|
|
922
|
-
* @param {string} code2 code
|
|
923
600
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
924
601
|
* @param {string} [expand] Fields to expand response by
|
|
925
602
|
* @param {*} [options] Override http request option.
|
|
926
603
|
* @throws {RequiredError}
|
|
927
604
|
*/
|
|
928
|
-
getUser: function (code,
|
|
929
|
-
return localVarFp.getUser(code,
|
|
605
|
+
getUser: function (code, authorization, expand, options) {
|
|
606
|
+
return localVarFp.getUser(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
930
607
|
},
|
|
931
608
|
/**
|
|
932
609
|
*
|
|
@@ -945,11 +622,11 @@ var UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
945
622
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
946
623
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
947
624
|
* @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.
|
|
948
|
-
* @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>
|
|
625
|
+
* @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>
|
|
949
626
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
950
627
|
* @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>
|
|
951
|
-
* @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:
|
|
952
|
-
* @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>
|
|
628
|
+
* @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>
|
|
629
|
+
* @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>
|
|
953
630
|
* @param {*} [options] Override http request option.
|
|
954
631
|
* @throws {RequiredError}
|
|
955
632
|
*/
|
|
@@ -970,28 +647,6 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
970
647
|
function UsersApi() {
|
|
971
648
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
972
649
|
}
|
|
973
|
-
/**
|
|
974
|
-
*
|
|
975
|
-
* @param {UsersApiAssignUserRolesRequest} requestParameters Request parameters.
|
|
976
|
-
* @param {*} [options] Override http request option.
|
|
977
|
-
* @throws {RequiredError}
|
|
978
|
-
* @memberof UsersApi
|
|
979
|
-
*/
|
|
980
|
-
UsersApi.prototype.assignUserRoles = function (requestParameters, options) {
|
|
981
|
-
var _this = this;
|
|
982
|
-
return (0, exports.UsersApiFp)(this.configuration).assignUserRoles(requestParameters.id, requestParameters.assignUserRolesRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
983
|
-
};
|
|
984
|
-
/**
|
|
985
|
-
*
|
|
986
|
-
* @param {UsersApiDeleteUserRequest} requestParameters Request parameters.
|
|
987
|
-
* @param {*} [options] Override http request option.
|
|
988
|
-
* @throws {RequiredError}
|
|
989
|
-
* @memberof UsersApi
|
|
990
|
-
*/
|
|
991
|
-
UsersApi.prototype.deleteUser = function (requestParameters, options) {
|
|
992
|
-
var _this = this;
|
|
993
|
-
return (0, exports.UsersApiFp)(this.configuration).deleteUser(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
994
|
-
};
|
|
995
650
|
/**
|
|
996
651
|
*
|
|
997
652
|
* @param {UsersApiDeleteUsersRequest} requestParameters Request parameters.
|
|
@@ -1003,17 +658,6 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
1003
658
|
var _this = this;
|
|
1004
659
|
return (0, exports.UsersApiFp)(this.configuration).deleteUsers(requestParameters.batchDeleteRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1005
660
|
};
|
|
1006
|
-
/**
|
|
1007
|
-
*
|
|
1008
|
-
* @param {UsersApiDisableUserRequest} requestParameters Request parameters.
|
|
1009
|
-
* @param {*} [options] Override http request option.
|
|
1010
|
-
* @throws {RequiredError}
|
|
1011
|
-
* @memberof UsersApi
|
|
1012
|
-
*/
|
|
1013
|
-
UsersApi.prototype.disableUser = function (requestParameters, options) {
|
|
1014
|
-
var _this = this;
|
|
1015
|
-
return (0, exports.UsersApiFp)(this.configuration).disableUser(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1016
|
-
};
|
|
1017
661
|
/**
|
|
1018
662
|
*
|
|
1019
663
|
* @param {UsersApiDisableUsersRequest} requestParameters Request parameters.
|
|
@@ -1025,17 +669,6 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
1025
669
|
var _this = this;
|
|
1026
670
|
return (0, exports.UsersApiFp)(this.configuration).disableUsers(requestParameters.disableUsersRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1027
671
|
};
|
|
1028
|
-
/**
|
|
1029
|
-
*
|
|
1030
|
-
* @param {UsersApiEnableUserRequest} requestParameters Request parameters.
|
|
1031
|
-
* @param {*} [options] Override http request option.
|
|
1032
|
-
* @throws {RequiredError}
|
|
1033
|
-
* @memberof UsersApi
|
|
1034
|
-
*/
|
|
1035
|
-
UsersApi.prototype.enableUser = function (requestParameters, options) {
|
|
1036
|
-
var _this = this;
|
|
1037
|
-
return (0, exports.UsersApiFp)(this.configuration).enableUser(requestParameters.id, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1038
|
-
};
|
|
1039
672
|
/**
|
|
1040
673
|
*
|
|
1041
674
|
* @param {UsersApiEnableUsersRequest} requestParameters Request parameters.
|
|
@@ -1056,7 +689,7 @@ var UsersApi = /** @class */ (function (_super) {
|
|
|
1056
689
|
*/
|
|
1057
690
|
UsersApi.prototype.getUser = function (requestParameters, options) {
|
|
1058
691
|
var _this = this;
|
|
1059
|
-
return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.
|
|
692
|
+
return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1060
693
|
};
|
|
1061
694
|
/**
|
|
1062
695
|
*
|
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
|
}
|