@vertexvis/api-client-node 0.30.3 → 0.31.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/dist/cjs/api.d.ts +1617 -151
- package/dist/cjs/api.js +1117 -59
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +1617 -151
- package/dist/esm/api.js +1096 -55
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
package/dist/cjs/api.js
CHANGED
|
@@ -25,10 +25,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
28
|
+
exports.QueryByRootTypeEnum = exports.QueryByMetadataDataTypeEnum = exports.QueryByIdDataAttributesTypeEnum = exports.QueryByIdDataTypeEnum = exports.QueryByCollectionDataAttributesTypeEnum = exports.QueryByCollectionDataTypeEnum = exports.QueryAll = exports.PropertyStringTypeTypeEnum = exports.PropertySetRelationshipDataTypeEnum = exports.PropertySetDomainSubjectDomainEnum = exports.PropertyLongTypeTypeEnum = exports.PropertyDoubleTypeTypeEnum = exports.PropertyDateTypeTypeEnum = exports.PermissionGrantDataTypeEnum = exports.PartsDomainSubjectDomainEnum = exports.PartRenditionRelationshipDataTypeEnum = exports.PartRelationshipDataTypeEnum = exports.PartInstanceRelationshipDataTypeEnum = exports.PartDataRelationshipsPartRevisionsTypeEnum = exports.GranteeAccountTypeEnum = exports.GeometrySetRelationshipDataTypeEnum = exports.FileRelationshipDataTypeEnum = exports.FileJobArchiveOperationTypeEnum = exports.FileCollectionMetadataDataTypeEnum = exports.ExportStateRelationshipDataTypeEnum = exports.ExportRelationshipDataTypeEnum = exports.DeselectOperationTypeEnum = exports.CreateUserRequestDataTypeEnum = exports.CreateUserGroupRequestDataTypeEnum = exports.CreateThreadRequestDataTypeEnum = exports.CreateSearchSessionRequestDataTypeEnum = exports.CreateSceneItemRequestDataAttributesResolutionRuleEnum = exports.CreateSceneExpressionAlterationRequestDataTypeEnum = exports.CreatePermissionGrantDataAttributesCapabilityEnum = exports.CreatePermissionGrantDataTypeEnum = exports.CreateFileJobRequestDataTypeEnum = exports.CreateFileCollectionRequestDataTypeEnum = exports.CreateCollaborationContextRequestDataTypeEnum = exports.CollaborationContextRelationshipDataTypeEnum = exports.ClearTransformOpTypeEnum = exports.ClearRepOpTypeEnum = exports.ClearRenOpTypeEnum = exports.ClearMaterialOpTypeEnum = exports.ChangeVisibilityOpTypeEnum = exports.ChangeTransformOpTypeEnum = exports.ChangeMaterialOpTypeEnum = exports.CameraFitTypeEnum = exports.BatchOperationRefTypeEnum = exports.BatchOperationOpEnum = exports.AccountRelationshipDataTypeEnum = void 0;
|
|
29
|
+
exports.ExportsApiFactory = exports.ExportsApiFp = exports.ExportsApiAxiosParamCreator = exports.CollaborationContextsApi = exports.CollaborationContextsApiFactory = exports.CollaborationContextsApiFp = exports.CollaborationContextsApiAxiosParamCreator = exports.BatchesApi = exports.BatchesApiFactory = exports.BatchesApiFp = exports.BatchesApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.WebhookSubscriptionDataAttributesStatusEnum = exports.WebhookEventDataRelationshipsOwnerDataTypeEnum = exports.ViewRepByPredefinedIdOpIdEnum = exports.ViewRepByPredefinedIdOpTypeEnum = exports.ViewRepByIdOpTypeEnum = exports.ViewRenBySuppliedIdOpTypeEnum = exports.ViewRenByIdOpTypeEnum = exports.ViewDefaultRenOpTypeEnum = exports.UserRelationshipDataTypeEnum = exports.UserGroupIdTypeEnum = exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = exports.UpdateSceneRequestDataAttributesStateEnum = exports.UpdateItemToDefaultRenditionOperationTypeEnum = exports.UpdateFileCollectionRequestDataTypeEnum = exports.UpdateAccountRequestDataAttributesStatusEnum = exports.ThreadType = exports.ThreadStatus = exports.ThreadDataTypeEnum = exports.SelectOpTypeEnum = exports.SelectFileBySuppliedIdTypeEnum = exports.SelectFileByIdTypeEnum = exports.SceneViewStateRelationshipDataTypeEnum = exports.SceneViewRelationshipDataTypeEnum = exports.SceneRelationshipDataTypeEnum = exports.SceneItemRelationshipDataTypeEnum = exports.SceneItemQueryOperandTypeEnum = exports.SceneItemOrExpressionTypeEnum = exports.SceneItemAndExpressionTypeEnum = exports.QueryBySceneItemMetadataTypeEnum = exports.QueryBySceneItemIdsTypeEnum = exports.QueryBySceneItemIdTypeEnum = void 0;
|
|
30
|
+
exports.PmiApiAxiosParamCreator = exports.PermissionGrantsApi = exports.PermissionGrantsApiFactory = exports.PermissionGrantsApiFp = exports.PermissionGrantsApiAxiosParamCreator = exports.PartsApi = exports.PartsApiFactory = exports.PartsApiFp = exports.PartsApiAxiosParamCreator = exports.PartRevisionsApi = exports.PartRevisionsApiFactory = exports.PartRevisionsApiFp = exports.PartRevisionsApiAxiosParamCreator = exports.PartRevisionInstancesApi = exports.PartRevisionInstancesApiFactory = exports.PartRevisionInstancesApiFp = exports.PartRevisionInstancesApiAxiosParamCreator = exports.PartRenditionsApi = exports.PartRenditionsApiFactory = exports.PartRenditionsApiFp = exports.PartRenditionsApiAxiosParamCreator = exports.Oauth2Api = exports.Oauth2ApiFactory = exports.Oauth2ApiFp = exports.Oauth2ApiAxiosParamCreator = exports.ModelViewsApi = exports.ModelViewsApiFactory = exports.ModelViewsApiFp = exports.ModelViewsApiAxiosParamCreator = exports.HitsApi = exports.HitsApiFactory = exports.HitsApiFp = exports.HitsApiAxiosParamCreator = exports.GeometrySetsApi = exports.GeometrySetsApiFactory = exports.GeometrySetsApiFp = exports.GeometrySetsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FileJobsApi = exports.FileJobsApiFactory = exports.FileJobsApiFp = exports.FileJobsApiAxiosParamCreator = exports.FileCollectionsApi = exports.FileCollectionsApiFactory = exports.FileCollectionsApiFp = exports.FileCollectionsApiAxiosParamCreator = exports.ExportsApi = void 0;
|
|
31
|
+
exports.ThreadsApiFactory = exports.ThreadsApiFp = exports.ThreadsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = exports.StreamKeysApiAxiosParamCreator = exports.SearchSessionsApi = exports.SearchSessionsApiFactory = exports.SearchSessionsApiFp = exports.SearchSessionsApiAxiosParamCreator = exports.ScenesApi = exports.ScenesApiFactory = exports.ScenesApiFp = exports.ScenesApiAxiosParamCreator = exports.SceneViewsApi = exports.SceneViewsApiFactory = exports.SceneViewsApiFp = exports.SceneViewsApiAxiosParamCreator = exports.SceneViewStatesApi = exports.SceneViewStatesApiFactory = exports.SceneViewStatesApiFp = exports.SceneViewStatesApiAxiosParamCreator = exports.SceneSynchronizationsApi = exports.SceneSynchronizationsApiFactory = exports.SceneSynchronizationsApiFp = exports.SceneSynchronizationsApiAxiosParamCreator = exports.SceneItemsApi = exports.SceneItemsApiFactory = exports.SceneItemsApiFp = exports.SceneItemsApiAxiosParamCreator = exports.SceneItemOverridesApi = exports.SceneItemOverridesApiFactory = exports.SceneItemOverridesApiFp = exports.SceneItemOverridesApiAxiosParamCreator = exports.SceneAnnotationsApi = exports.SceneAnnotationsApiFactory = exports.SceneAnnotationsApiFp = exports.SceneAnnotationsApiAxiosParamCreator = exports.SceneAlterationsApi = exports.SceneAlterationsApiFactory = exports.SceneAlterationsApiFp = exports.SceneAlterationsApiAxiosParamCreator = exports.PropertyEntriesApi = exports.PropertyEntriesApiFactory = exports.PropertyEntriesApiFp = exports.PropertyEntriesApiAxiosParamCreator = exports.PmiApi = exports.PmiApiFactory = exports.PmiApiFp = void 0;
|
|
32
|
+
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserGroupsApi = exports.UserGroupsApiFactory = exports.UserGroupsApiFp = exports.UserGroupsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.ThreadsApi = void 0;
|
|
32
33
|
const axios_1 = __importDefault(require("axios"));
|
|
33
34
|
// Some imports not used depending on template conditions
|
|
34
35
|
// @ts-ignore
|
|
@@ -69,6 +70,12 @@ exports.ClearRepOpTypeEnum = {
|
|
|
69
70
|
exports.ClearTransformOpTypeEnum = {
|
|
70
71
|
ClearTransform: 'clear-transform',
|
|
71
72
|
};
|
|
73
|
+
exports.CollaborationContextRelationshipDataTypeEnum = {
|
|
74
|
+
CollaborationContext: 'collaboration-context',
|
|
75
|
+
};
|
|
76
|
+
exports.CreateCollaborationContextRequestDataTypeEnum = {
|
|
77
|
+
CollaborationContext: 'collaboration-context',
|
|
78
|
+
};
|
|
72
79
|
exports.CreateFileCollectionRequestDataTypeEnum = {
|
|
73
80
|
FileCollection: 'file-collection',
|
|
74
81
|
};
|
|
@@ -92,6 +99,15 @@ exports.CreateSceneItemRequestDataAttributesResolutionRuleEnum = {
|
|
|
92
99
|
exports.CreateSearchSessionRequestDataTypeEnum = {
|
|
93
100
|
SearchSession: 'search-session',
|
|
94
101
|
};
|
|
102
|
+
exports.CreateThreadRequestDataTypeEnum = {
|
|
103
|
+
Thread: 'thread',
|
|
104
|
+
};
|
|
105
|
+
exports.CreateUserGroupRequestDataTypeEnum = {
|
|
106
|
+
UserGroup: 'user-group',
|
|
107
|
+
};
|
|
108
|
+
exports.CreateUserRequestDataTypeEnum = {
|
|
109
|
+
User: 'user',
|
|
110
|
+
};
|
|
95
111
|
exports.DeselectOperationTypeEnum = {
|
|
96
112
|
Deselect: 'deselect',
|
|
97
113
|
};
|
|
@@ -220,6 +236,27 @@ exports.SelectFileBySuppliedIdTypeEnum = {
|
|
|
220
236
|
exports.SelectOpTypeEnum = {
|
|
221
237
|
Select: 'select',
|
|
222
238
|
};
|
|
239
|
+
exports.ThreadDataTypeEnum = {
|
|
240
|
+
Thread: 'thread',
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
*
|
|
244
|
+
* @export
|
|
245
|
+
* @enum {string}
|
|
246
|
+
*/
|
|
247
|
+
exports.ThreadStatus = {
|
|
248
|
+
Open: 'open',
|
|
249
|
+
Resolved: 'resolved',
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @export
|
|
254
|
+
* @enum {string}
|
|
255
|
+
*/
|
|
256
|
+
exports.ThreadType = {
|
|
257
|
+
Comment: 'comment',
|
|
258
|
+
Issue: 'issue',
|
|
259
|
+
};
|
|
223
260
|
exports.UpdateAccountRequestDataAttributesStatusEnum = {
|
|
224
261
|
Active: 'active',
|
|
225
262
|
Disabled: 'disabled',
|
|
@@ -238,6 +275,12 @@ exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
|
|
|
238
275
|
Active: 'active',
|
|
239
276
|
Paused: 'paused',
|
|
240
277
|
};
|
|
278
|
+
exports.UserGroupIdTypeEnum = {
|
|
279
|
+
UserGroup: 'user-group',
|
|
280
|
+
};
|
|
281
|
+
exports.UserRelationshipDataTypeEnum = {
|
|
282
|
+
User: 'user',
|
|
283
|
+
};
|
|
241
284
|
exports.ViewDefaultRenOpTypeEnum = {
|
|
242
285
|
ViewDefaultRendition: 'view-default-rendition',
|
|
243
286
|
};
|
|
@@ -1276,6 +1319,251 @@ class BatchesApi extends base_1.BaseAPI {
|
|
|
1276
1319
|
}
|
|
1277
1320
|
}
|
|
1278
1321
|
exports.BatchesApi = BatchesApi;
|
|
1322
|
+
/**
|
|
1323
|
+
* CollaborationContextsApi - axios parameter creator
|
|
1324
|
+
* @export
|
|
1325
|
+
*/
|
|
1326
|
+
const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
1327
|
+
return {
|
|
1328
|
+
/**
|
|
1329
|
+
* Create a `collaboration-context`.
|
|
1330
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1331
|
+
* @param {UserGroupIdsList} userGroupIdsList
|
|
1332
|
+
* @param {*} [options] Override http request option.
|
|
1333
|
+
* @throws {RequiredError}
|
|
1334
|
+
*/
|
|
1335
|
+
addCollaborationContextUserGroups: (id, userGroupIdsList, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1336
|
+
var _a;
|
|
1337
|
+
// verify required parameter 'id' is not null or undefined
|
|
1338
|
+
(0, common_1.assertParamExists)('addCollaborationContextUserGroups', 'id', id);
|
|
1339
|
+
// verify required parameter 'userGroupIdsList' is not null or undefined
|
|
1340
|
+
(0, common_1.assertParamExists)('addCollaborationContextUserGroups', 'userGroupIdsList', userGroupIdsList);
|
|
1341
|
+
const localVarPath = `/collaboration-contexts/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1342
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1343
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1344
|
+
let baseOptions;
|
|
1345
|
+
if (configuration) {
|
|
1346
|
+
baseOptions = configuration.baseOptions;
|
|
1347
|
+
}
|
|
1348
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1349
|
+
const localVarHeaderParameter = {};
|
|
1350
|
+
const localVarQueryParameter = {};
|
|
1351
|
+
// authentication OAuth2 required
|
|
1352
|
+
// oauth required
|
|
1353
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1354
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1355
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1356
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1357
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1358
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userGroupIdsList, localVarRequestOptions, configuration);
|
|
1359
|
+
return {
|
|
1360
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1361
|
+
options: localVarRequestOptions,
|
|
1362
|
+
};
|
|
1363
|
+
}),
|
|
1364
|
+
/**
|
|
1365
|
+
* Create a `collaboration-context`.
|
|
1366
|
+
* @param {CreateCollaborationContextRequest} createCollaborationContextRequest
|
|
1367
|
+
* @param {*} [options] Override http request option.
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
*/
|
|
1370
|
+
createCollaborationContext: (createCollaborationContextRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1371
|
+
var _b;
|
|
1372
|
+
// verify required parameter 'createCollaborationContextRequest' is not null or undefined
|
|
1373
|
+
(0, common_1.assertParamExists)('createCollaborationContext', 'createCollaborationContextRequest', createCollaborationContextRequest);
|
|
1374
|
+
const localVarPath = `/collaboration-contexts`;
|
|
1375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1376
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1377
|
+
let baseOptions;
|
|
1378
|
+
if (configuration) {
|
|
1379
|
+
baseOptions = configuration.baseOptions;
|
|
1380
|
+
}
|
|
1381
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1382
|
+
const localVarHeaderParameter = {};
|
|
1383
|
+
const localVarQueryParameter = {};
|
|
1384
|
+
// authentication OAuth2 required
|
|
1385
|
+
// oauth required
|
|
1386
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1387
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1389
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
1390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1391
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCollaborationContextRequest, localVarRequestOptions, configuration);
|
|
1392
|
+
return {
|
|
1393
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1394
|
+
options: localVarRequestOptions,
|
|
1395
|
+
};
|
|
1396
|
+
}),
|
|
1397
|
+
/**
|
|
1398
|
+
* Get a `collaboration-context` by ID.
|
|
1399
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1400
|
+
* @param {*} [options] Override http request option.
|
|
1401
|
+
* @throws {RequiredError}
|
|
1402
|
+
*/
|
|
1403
|
+
getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1404
|
+
var _c;
|
|
1405
|
+
// verify required parameter 'id' is not null or undefined
|
|
1406
|
+
(0, common_1.assertParamExists)('getCollaborationContext', 'id', id);
|
|
1407
|
+
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1408
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1409
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1410
|
+
let baseOptions;
|
|
1411
|
+
if (configuration) {
|
|
1412
|
+
baseOptions = configuration.baseOptions;
|
|
1413
|
+
}
|
|
1414
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1415
|
+
const localVarHeaderParameter = {};
|
|
1416
|
+
const localVarQueryParameter = {};
|
|
1417
|
+
// authentication OAuth2 required
|
|
1418
|
+
// oauth required
|
|
1419
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1420
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1421
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1422
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1423
|
+
return {
|
|
1424
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1425
|
+
options: localVarRequestOptions,
|
|
1426
|
+
};
|
|
1427
|
+
}),
|
|
1428
|
+
};
|
|
1429
|
+
};
|
|
1430
|
+
exports.CollaborationContextsApiAxiosParamCreator = CollaborationContextsApiAxiosParamCreator;
|
|
1431
|
+
/**
|
|
1432
|
+
* CollaborationContextsApi - functional programming interface
|
|
1433
|
+
* @export
|
|
1434
|
+
*/
|
|
1435
|
+
const CollaborationContextsApiFp = function (configuration) {
|
|
1436
|
+
const localVarAxiosParamCreator = (0, exports.CollaborationContextsApiAxiosParamCreator)(configuration);
|
|
1437
|
+
return {
|
|
1438
|
+
/**
|
|
1439
|
+
* Create a `collaboration-context`.
|
|
1440
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1441
|
+
* @param {UserGroupIdsList} userGroupIdsList
|
|
1442
|
+
* @param {*} [options] Override http request option.
|
|
1443
|
+
* @throws {RequiredError}
|
|
1444
|
+
*/
|
|
1445
|
+
addCollaborationContextUserGroups(id, userGroupIdsList, options) {
|
|
1446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1447
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCollaborationContextUserGroups(id, userGroupIdsList, options);
|
|
1448
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1449
|
+
});
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
* Create a `collaboration-context`.
|
|
1453
|
+
* @param {CreateCollaborationContextRequest} createCollaborationContextRequest
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
createCollaborationContext(createCollaborationContextRequest, options) {
|
|
1458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1459
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCollaborationContext(createCollaborationContextRequest, options);
|
|
1460
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1461
|
+
});
|
|
1462
|
+
},
|
|
1463
|
+
/**
|
|
1464
|
+
* Get a `collaboration-context` by ID.
|
|
1465
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1466
|
+
* @param {*} [options] Override http request option.
|
|
1467
|
+
* @throws {RequiredError}
|
|
1468
|
+
*/
|
|
1469
|
+
getCollaborationContext(id, options) {
|
|
1470
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1471
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollaborationContext(id, options);
|
|
1472
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1473
|
+
});
|
|
1474
|
+
},
|
|
1475
|
+
};
|
|
1476
|
+
};
|
|
1477
|
+
exports.CollaborationContextsApiFp = CollaborationContextsApiFp;
|
|
1478
|
+
/**
|
|
1479
|
+
* CollaborationContextsApi - factory interface
|
|
1480
|
+
* @export
|
|
1481
|
+
*/
|
|
1482
|
+
const CollaborationContextsApiFactory = function (configuration, basePath, axios) {
|
|
1483
|
+
const localVarFp = (0, exports.CollaborationContextsApiFp)(configuration);
|
|
1484
|
+
return {
|
|
1485
|
+
/**
|
|
1486
|
+
* Create a `collaboration-context`.
|
|
1487
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1488
|
+
* @param {UserGroupIdsList} userGroupIdsList
|
|
1489
|
+
* @param {*} [options] Override http request option.
|
|
1490
|
+
* @throws {RequiredError}
|
|
1491
|
+
*/
|
|
1492
|
+
addCollaborationContextUserGroups(id, userGroupIdsList, options) {
|
|
1493
|
+
return localVarFp
|
|
1494
|
+
.addCollaborationContextUserGroups(id, userGroupIdsList, options)
|
|
1495
|
+
.then((request) => request(axios, basePath));
|
|
1496
|
+
},
|
|
1497
|
+
/**
|
|
1498
|
+
* Create a `collaboration-context`.
|
|
1499
|
+
* @param {CreateCollaborationContextRequest} createCollaborationContextRequest
|
|
1500
|
+
* @param {*} [options] Override http request option.
|
|
1501
|
+
* @throws {RequiredError}
|
|
1502
|
+
*/
|
|
1503
|
+
createCollaborationContext(createCollaborationContextRequest, options) {
|
|
1504
|
+
return localVarFp
|
|
1505
|
+
.createCollaborationContext(createCollaborationContextRequest, options)
|
|
1506
|
+
.then((request) => request(axios, basePath));
|
|
1507
|
+
},
|
|
1508
|
+
/**
|
|
1509
|
+
* Get a `collaboration-context` by ID.
|
|
1510
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1511
|
+
* @param {*} [options] Override http request option.
|
|
1512
|
+
* @throws {RequiredError}
|
|
1513
|
+
*/
|
|
1514
|
+
getCollaborationContext(id, options) {
|
|
1515
|
+
return localVarFp
|
|
1516
|
+
.getCollaborationContext(id, options)
|
|
1517
|
+
.then((request) => request(axios, basePath));
|
|
1518
|
+
},
|
|
1519
|
+
};
|
|
1520
|
+
};
|
|
1521
|
+
exports.CollaborationContextsApiFactory = CollaborationContextsApiFactory;
|
|
1522
|
+
/**
|
|
1523
|
+
* CollaborationContextsApi - object-oriented interface
|
|
1524
|
+
* @export
|
|
1525
|
+
* @class CollaborationContextsApi
|
|
1526
|
+
* @extends {BaseAPI}
|
|
1527
|
+
*/
|
|
1528
|
+
class CollaborationContextsApi extends base_1.BaseAPI {
|
|
1529
|
+
/**
|
|
1530
|
+
* Create a `collaboration-context`.
|
|
1531
|
+
* @param {CollaborationContextsApiAddCollaborationContextUserGroupsRequest} requestParameters Request parameters.
|
|
1532
|
+
* @param {*} [options] Override http request option.
|
|
1533
|
+
* @throws {RequiredError}
|
|
1534
|
+
* @memberof CollaborationContextsApi
|
|
1535
|
+
*/
|
|
1536
|
+
addCollaborationContextUserGroups(requestParameters, options) {
|
|
1537
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1538
|
+
.addCollaborationContextUserGroups(requestParameters.id, requestParameters.userGroupIdsList, options)
|
|
1539
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* Create a `collaboration-context`.
|
|
1543
|
+
* @param {CollaborationContextsApiCreateCollaborationContextRequest} requestParameters Request parameters.
|
|
1544
|
+
* @param {*} [options] Override http request option.
|
|
1545
|
+
* @throws {RequiredError}
|
|
1546
|
+
* @memberof CollaborationContextsApi
|
|
1547
|
+
*/
|
|
1548
|
+
createCollaborationContext(requestParameters, options) {
|
|
1549
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1550
|
+
.createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
|
|
1551
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1552
|
+
}
|
|
1553
|
+
/**
|
|
1554
|
+
* Get a `collaboration-context` by ID.
|
|
1555
|
+
* @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
|
|
1556
|
+
* @param {*} [options] Override http request option.
|
|
1557
|
+
* @throws {RequiredError}
|
|
1558
|
+
* @memberof CollaborationContextsApi
|
|
1559
|
+
*/
|
|
1560
|
+
getCollaborationContext(requestParameters, options) {
|
|
1561
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1562
|
+
.getCollaborationContext(requestParameters.id, options)
|
|
1563
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
exports.CollaborationContextsApi = CollaborationContextsApi;
|
|
1279
1567
|
/**
|
|
1280
1568
|
* ExportsApi - axios parameter creator
|
|
1281
1569
|
* @export
|
|
@@ -7093,10 +7381,12 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7093
7381
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7094
7382
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7095
7383
|
* @param {string} [filterParent] Parent ID to filter on.
|
|
7384
|
+
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7385
|
+
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7096
7386
|
* @param {*} [options] Override http request option.
|
|
7097
7387
|
* @throws {RequiredError}
|
|
7098
7388
|
*/
|
|
7099
|
-
getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7389
|
+
getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7100
7390
|
var _f;
|
|
7101
7391
|
// verify required parameter 'id' is not null or undefined
|
|
7102
7392
|
(0, common_1.assertParamExists)('getSceneItems', 'id', id);
|
|
@@ -7128,6 +7418,12 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7128
7418
|
if (filterParent !== undefined) {
|
|
7129
7419
|
localVarQueryParameter['filter[parent]'] = filterParent;
|
|
7130
7420
|
}
|
|
7421
|
+
if (filterHasChildren !== undefined) {
|
|
7422
|
+
localVarQueryParameter['filter[hasChildren]'] = filterHasChildren;
|
|
7423
|
+
}
|
|
7424
|
+
if (filterHasGeometrySet !== undefined) {
|
|
7425
|
+
localVarQueryParameter['filter[hasGeometrySet]'] = filterHasGeometrySet;
|
|
7426
|
+
}
|
|
7131
7427
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7132
7428
|
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
7133
7429
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7252,12 +7548,14 @@ const SceneItemsApiFp = function (configuration) {
|
|
|
7252
7548
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7253
7549
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7254
7550
|
* @param {string} [filterParent] Parent ID to filter on.
|
|
7551
|
+
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7552
|
+
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7255
7553
|
* @param {*} [options] Override http request option.
|
|
7256
7554
|
* @throws {RequiredError}
|
|
7257
7555
|
*/
|
|
7258
|
-
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
|
|
7556
|
+
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
|
|
7259
7557
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7260
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options);
|
|
7558
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options);
|
|
7261
7559
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7262
7560
|
});
|
|
7263
7561
|
},
|
|
@@ -7349,12 +7647,14 @@ const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
7349
7647
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7350
7648
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7351
7649
|
* @param {string} [filterParent] Parent ID to filter on.
|
|
7650
|
+
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7651
|
+
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7352
7652
|
* @param {*} [options] Override http request option.
|
|
7353
7653
|
* @throws {RequiredError}
|
|
7354
7654
|
*/
|
|
7355
|
-
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
|
|
7655
|
+
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
|
|
7356
7656
|
return localVarFp
|
|
7357
|
-
.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options)
|
|
7657
|
+
.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options)
|
|
7358
7658
|
.then((request) => request(axios, basePath));
|
|
7359
7659
|
},
|
|
7360
7660
|
/**
|
|
@@ -7448,7 +7748,7 @@ class SceneItemsApi extends base_1.BaseAPI {
|
|
|
7448
7748
|
*/
|
|
7449
7749
|
getSceneItems(requestParameters, options) {
|
|
7450
7750
|
return (0, exports.SceneItemsApiFp)(this.configuration)
|
|
7451
|
-
.getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, options)
|
|
7751
|
+
.getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, options)
|
|
7452
7752
|
.then((request) => request(this.axios, this.basePath));
|
|
7453
7753
|
}
|
|
7454
7754
|
/**
|
|
@@ -9777,22 +10077,25 @@ class StreamKeysApi extends base_1.BaseAPI {
|
|
|
9777
10077
|
}
|
|
9778
10078
|
exports.StreamKeysApi = StreamKeysApi;
|
|
9779
10079
|
/**
|
|
9780
|
-
*
|
|
10080
|
+
* ThreadsApi - axios parameter creator
|
|
9781
10081
|
* @export
|
|
9782
10082
|
*/
|
|
9783
|
-
const
|
|
10083
|
+
const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
9784
10084
|
return {
|
|
9785
10085
|
/**
|
|
9786
|
-
* Create a `
|
|
9787
|
-
* @param {
|
|
10086
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10087
|
+
* @param {string} id The `collaboration-context` ID.
|
|
10088
|
+
* @param {CreateThreadRequest} createThreadRequest
|
|
9788
10089
|
* @param {*} [options] Override http request option.
|
|
9789
10090
|
* @throws {RequiredError}
|
|
9790
10091
|
*/
|
|
9791
|
-
|
|
10092
|
+
createThread: (id, createThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
9792
10093
|
var _a;
|
|
9793
|
-
// verify required parameter '
|
|
9794
|
-
(0, common_1.assertParamExists)('
|
|
9795
|
-
|
|
10094
|
+
// verify required parameter 'id' is not null or undefined
|
|
10095
|
+
(0, common_1.assertParamExists)('createThread', 'id', id);
|
|
10096
|
+
// verify required parameter 'createThreadRequest' is not null or undefined
|
|
10097
|
+
(0, common_1.assertParamExists)('createThread', 'createThreadRequest', createThreadRequest);
|
|
10098
|
+
const localVarPath = `/collaboration-contexts/{id}/threads`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
9796
10099
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9797
10100
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9798
10101
|
let baseOptions;
|
|
@@ -9809,23 +10112,23 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9809
10112
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9810
10113
|
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
9811
10114
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9812
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
10115
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createThreadRequest, localVarRequestOptions, configuration);
|
|
9813
10116
|
return {
|
|
9814
10117
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9815
10118
|
options: localVarRequestOptions,
|
|
9816
10119
|
};
|
|
9817
10120
|
}),
|
|
9818
10121
|
/**
|
|
9819
|
-
* Get a `
|
|
9820
|
-
* @param {string} id The `
|
|
10122
|
+
* Get a `thread`.
|
|
10123
|
+
* @param {string} id The `thread` ID.
|
|
9821
10124
|
* @param {*} [options] Override http request option.
|
|
9822
10125
|
* @throws {RequiredError}
|
|
9823
10126
|
*/
|
|
9824
|
-
|
|
10127
|
+
getThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
9825
10128
|
var _b;
|
|
9826
10129
|
// verify required parameter 'id' is not null or undefined
|
|
9827
|
-
(0, common_1.assertParamExists)('
|
|
9828
|
-
const localVarPath = `/
|
|
10130
|
+
(0, common_1.assertParamExists)('getThread', 'id', id);
|
|
10131
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
9829
10132
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9830
10133
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9831
10134
|
let baseOptions;
|
|
@@ -9847,17 +10150,16 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9847
10150
|
};
|
|
9848
10151
|
}),
|
|
9849
10152
|
/**
|
|
9850
|
-
*
|
|
9851
|
-
* @param {string}
|
|
10153
|
+
* Get a page of `thread`s.
|
|
10154
|
+
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10155
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10156
|
+
* @param {number} [pageSize] The number of items to return.
|
|
9852
10157
|
* @param {*} [options] Override http request option.
|
|
9853
|
-
* @deprecated
|
|
9854
10158
|
* @throws {RequiredError}
|
|
9855
10159
|
*/
|
|
9856
|
-
|
|
10160
|
+
getThreads: (filterCollaborationContextId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
9857
10161
|
var _c;
|
|
9858
|
-
|
|
9859
|
-
(0, common_1.assertParamExists)('getQueuedTranslation', 'id', id);
|
|
9860
|
-
const localVarPath = `/queued-translations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10162
|
+
const localVarPath = `/threads`;
|
|
9861
10163
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9862
10164
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9863
10165
|
let baseOptions;
|
|
@@ -9870,6 +10172,16 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9870
10172
|
// authentication OAuth2 required
|
|
9871
10173
|
// oauth required
|
|
9872
10174
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10175
|
+
if (filterCollaborationContextId !== undefined) {
|
|
10176
|
+
localVarQueryParameter['filter[collaborationContextId]'] =
|
|
10177
|
+
filterCollaborationContextId;
|
|
10178
|
+
}
|
|
10179
|
+
if (pageCursor !== undefined) {
|
|
10180
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
10181
|
+
}
|
|
10182
|
+
if (pageSize !== undefined) {
|
|
10183
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
10184
|
+
}
|
|
9873
10185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9874
10186
|
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
9875
10187
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9878,39 +10190,284 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9878
10190
|
options: localVarRequestOptions,
|
|
9879
10191
|
};
|
|
9880
10192
|
}),
|
|
10193
|
+
};
|
|
10194
|
+
};
|
|
10195
|
+
exports.ThreadsApiAxiosParamCreator = ThreadsApiAxiosParamCreator;
|
|
10196
|
+
/**
|
|
10197
|
+
* ThreadsApi - functional programming interface
|
|
10198
|
+
* @export
|
|
10199
|
+
*/
|
|
10200
|
+
const ThreadsApiFp = function (configuration) {
|
|
10201
|
+
const localVarAxiosParamCreator = (0, exports.ThreadsApiAxiosParamCreator)(configuration);
|
|
10202
|
+
return {
|
|
9881
10203
|
/**
|
|
9882
|
-
*
|
|
9883
|
-
* @param {string} id The `
|
|
10204
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10205
|
+
* @param {string} id The `collaboration-context` ID.
|
|
10206
|
+
* @param {CreateThreadRequest} createThreadRequest
|
|
9884
10207
|
* @param {*} [options] Override http request option.
|
|
9885
10208
|
* @throws {RequiredError}
|
|
9886
10209
|
*/
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9894
|
-
let baseOptions;
|
|
9895
|
-
if (configuration) {
|
|
9896
|
-
baseOptions = configuration.baseOptions;
|
|
9897
|
-
}
|
|
9898
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9899
|
-
const localVarHeaderParameter = {};
|
|
9900
|
-
const localVarQueryParameter = {};
|
|
9901
|
-
// authentication OAuth2 required
|
|
9902
|
-
// oauth required
|
|
9903
|
-
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
9904
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9905
|
-
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
9906
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9907
|
-
return {
|
|
9908
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9909
|
-
options: localVarRequestOptions,
|
|
9910
|
-
};
|
|
9911
|
-
}),
|
|
10210
|
+
createThread(id, createThreadRequest, options) {
|
|
10211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10212
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createThread(id, createThreadRequest, options);
|
|
10213
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10214
|
+
});
|
|
10215
|
+
},
|
|
9912
10216
|
/**
|
|
9913
|
-
* Get
|
|
10217
|
+
* Get a `thread`.
|
|
10218
|
+
* @param {string} id The `thread` ID.
|
|
10219
|
+
* @param {*} [options] Override http request option.
|
|
10220
|
+
* @throws {RequiredError}
|
|
10221
|
+
*/
|
|
10222
|
+
getThread(id, options) {
|
|
10223
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10224
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, options);
|
|
10225
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10226
|
+
});
|
|
10227
|
+
},
|
|
10228
|
+
/**
|
|
10229
|
+
* Get a page of `thread`s.
|
|
10230
|
+
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10231
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10232
|
+
* @param {number} [pageSize] The number of items to return.
|
|
10233
|
+
* @param {*} [options] Override http request option.
|
|
10234
|
+
* @throws {RequiredError}
|
|
10235
|
+
*/
|
|
10236
|
+
getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
|
|
10237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10238
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(filterCollaborationContextId, pageCursor, pageSize, options);
|
|
10239
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10240
|
+
});
|
|
10241
|
+
},
|
|
10242
|
+
};
|
|
10243
|
+
};
|
|
10244
|
+
exports.ThreadsApiFp = ThreadsApiFp;
|
|
10245
|
+
/**
|
|
10246
|
+
* ThreadsApi - factory interface
|
|
10247
|
+
* @export
|
|
10248
|
+
*/
|
|
10249
|
+
const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
10250
|
+
const localVarFp = (0, exports.ThreadsApiFp)(configuration);
|
|
10251
|
+
return {
|
|
10252
|
+
/**
|
|
10253
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10254
|
+
* @param {string} id The `collaboration-context` ID.
|
|
10255
|
+
* @param {CreateThreadRequest} createThreadRequest
|
|
10256
|
+
* @param {*} [options] Override http request option.
|
|
10257
|
+
* @throws {RequiredError}
|
|
10258
|
+
*/
|
|
10259
|
+
createThread(id, createThreadRequest, options) {
|
|
10260
|
+
return localVarFp
|
|
10261
|
+
.createThread(id, createThreadRequest, options)
|
|
10262
|
+
.then((request) => request(axios, basePath));
|
|
10263
|
+
},
|
|
10264
|
+
/**
|
|
10265
|
+
* Get a `thread`.
|
|
10266
|
+
* @param {string} id The `thread` ID.
|
|
10267
|
+
* @param {*} [options] Override http request option.
|
|
10268
|
+
* @throws {RequiredError}
|
|
10269
|
+
*/
|
|
10270
|
+
getThread(id, options) {
|
|
10271
|
+
return localVarFp
|
|
10272
|
+
.getThread(id, options)
|
|
10273
|
+
.then((request) => request(axios, basePath));
|
|
10274
|
+
},
|
|
10275
|
+
/**
|
|
10276
|
+
* Get a page of `thread`s.
|
|
10277
|
+
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10278
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10279
|
+
* @param {number} [pageSize] The number of items to return.
|
|
10280
|
+
* @param {*} [options] Override http request option.
|
|
10281
|
+
* @throws {RequiredError}
|
|
10282
|
+
*/
|
|
10283
|
+
getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
|
|
10284
|
+
return localVarFp
|
|
10285
|
+
.getThreads(filterCollaborationContextId, pageCursor, pageSize, options)
|
|
10286
|
+
.then((request) => request(axios, basePath));
|
|
10287
|
+
},
|
|
10288
|
+
};
|
|
10289
|
+
};
|
|
10290
|
+
exports.ThreadsApiFactory = ThreadsApiFactory;
|
|
10291
|
+
/**
|
|
10292
|
+
* ThreadsApi - object-oriented interface
|
|
10293
|
+
* @export
|
|
10294
|
+
* @class ThreadsApi
|
|
10295
|
+
* @extends {BaseAPI}
|
|
10296
|
+
*/
|
|
10297
|
+
class ThreadsApi extends base_1.BaseAPI {
|
|
10298
|
+
/**
|
|
10299
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10300
|
+
* @param {ThreadsApiCreateThreadRequest} requestParameters Request parameters.
|
|
10301
|
+
* @param {*} [options] Override http request option.
|
|
10302
|
+
* @throws {RequiredError}
|
|
10303
|
+
* @memberof ThreadsApi
|
|
10304
|
+
*/
|
|
10305
|
+
createThread(requestParameters, options) {
|
|
10306
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10307
|
+
.createThread(requestParameters.id, requestParameters.createThreadRequest, options)
|
|
10308
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10309
|
+
}
|
|
10310
|
+
/**
|
|
10311
|
+
* Get a `thread`.
|
|
10312
|
+
* @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
|
|
10313
|
+
* @param {*} [options] Override http request option.
|
|
10314
|
+
* @throws {RequiredError}
|
|
10315
|
+
* @memberof ThreadsApi
|
|
10316
|
+
*/
|
|
10317
|
+
getThread(requestParameters, options) {
|
|
10318
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10319
|
+
.getThread(requestParameters.id, options)
|
|
10320
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10321
|
+
}
|
|
10322
|
+
/**
|
|
10323
|
+
* Get a page of `thread`s.
|
|
10324
|
+
* @param {ThreadsApiGetThreadsRequest} requestParameters Request parameters.
|
|
10325
|
+
* @param {*} [options] Override http request option.
|
|
10326
|
+
* @throws {RequiredError}
|
|
10327
|
+
* @memberof ThreadsApi
|
|
10328
|
+
*/
|
|
10329
|
+
getThreads(requestParameters = {}, options) {
|
|
10330
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10331
|
+
.getThreads(requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
10332
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10333
|
+
}
|
|
10334
|
+
}
|
|
10335
|
+
exports.ThreadsApi = ThreadsApi;
|
|
10336
|
+
/**
|
|
10337
|
+
* TranslationInspectionsApi - axios parameter creator
|
|
10338
|
+
* @export
|
|
10339
|
+
*/
|
|
10340
|
+
const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
10341
|
+
return {
|
|
10342
|
+
/**
|
|
10343
|
+
* Create a `translation-inspection`.
|
|
10344
|
+
* @param {CreateTranslationInspectionRequest} createTranslationInspectionRequest
|
|
10345
|
+
* @param {*} [options] Override http request option.
|
|
10346
|
+
* @throws {RequiredError}
|
|
10347
|
+
*/
|
|
10348
|
+
createTranslationInspection: (createTranslationInspectionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10349
|
+
var _a;
|
|
10350
|
+
// verify required parameter 'createTranslationInspectionRequest' is not null or undefined
|
|
10351
|
+
(0, common_1.assertParamExists)('createTranslationInspection', 'createTranslationInspectionRequest', createTranslationInspectionRequest);
|
|
10352
|
+
const localVarPath = `/translation-inspections`;
|
|
10353
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10354
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10355
|
+
let baseOptions;
|
|
10356
|
+
if (configuration) {
|
|
10357
|
+
baseOptions = configuration.baseOptions;
|
|
10358
|
+
}
|
|
10359
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10360
|
+
const localVarHeaderParameter = {};
|
|
10361
|
+
const localVarQueryParameter = {};
|
|
10362
|
+
// authentication OAuth2 required
|
|
10363
|
+
// oauth required
|
|
10364
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10365
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
10366
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10367
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
10368
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10369
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTranslationInspectionRequest, localVarRequestOptions, configuration);
|
|
10370
|
+
return {
|
|
10371
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10372
|
+
options: localVarRequestOptions,
|
|
10373
|
+
};
|
|
10374
|
+
}),
|
|
10375
|
+
/**
|
|
10376
|
+
* Get a `translation-inspection` by ID.
|
|
10377
|
+
* @param {string} id The `translation-inspection` ID.
|
|
10378
|
+
* @param {*} [options] Override http request option.
|
|
10379
|
+
* @throws {RequiredError}
|
|
10380
|
+
*/
|
|
10381
|
+
getInspectionJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10382
|
+
var _b;
|
|
10383
|
+
// verify required parameter 'id' is not null or undefined
|
|
10384
|
+
(0, common_1.assertParamExists)('getInspectionJob', 'id', id);
|
|
10385
|
+
const localVarPath = `/translation-inspections/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10387
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10388
|
+
let baseOptions;
|
|
10389
|
+
if (configuration) {
|
|
10390
|
+
baseOptions = configuration.baseOptions;
|
|
10391
|
+
}
|
|
10392
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10393
|
+
const localVarHeaderParameter = {};
|
|
10394
|
+
const localVarQueryParameter = {};
|
|
10395
|
+
// authentication OAuth2 required
|
|
10396
|
+
// oauth required
|
|
10397
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10398
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10399
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10400
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10401
|
+
return {
|
|
10402
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10403
|
+
options: localVarRequestOptions,
|
|
10404
|
+
};
|
|
10405
|
+
}),
|
|
10406
|
+
/**
|
|
10407
|
+
* This has been deprecated and replaced by **queued-translation-jobs/{id}** - Get a `queued-translation`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `part-revision`. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
10408
|
+
* @param {string} id The `queued-translation` ID.
|
|
10409
|
+
* @param {*} [options] Override http request option.
|
|
10410
|
+
* @deprecated
|
|
10411
|
+
* @throws {RequiredError}
|
|
10412
|
+
*/
|
|
10413
|
+
getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10414
|
+
var _c;
|
|
10415
|
+
// verify required parameter 'id' is not null or undefined
|
|
10416
|
+
(0, common_1.assertParamExists)('getQueuedTranslation', 'id', id);
|
|
10417
|
+
const localVarPath = `/queued-translations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10418
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10419
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10420
|
+
let baseOptions;
|
|
10421
|
+
if (configuration) {
|
|
10422
|
+
baseOptions = configuration.baseOptions;
|
|
10423
|
+
}
|
|
10424
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10425
|
+
const localVarHeaderParameter = {};
|
|
10426
|
+
const localVarQueryParameter = {};
|
|
10427
|
+
// authentication OAuth2 required
|
|
10428
|
+
// oauth required
|
|
10429
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10430
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10431
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10432
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10433
|
+
return {
|
|
10434
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10435
|
+
options: localVarRequestOptions,
|
|
10436
|
+
};
|
|
10437
|
+
}),
|
|
10438
|
+
/**
|
|
10439
|
+
* Get a `queued-translation-job`. The response is either the status if `running` or `error` or, upon completion, the `part-revision` that was created. Once created, create scenes via the createScene API. For details, see our [Render static scenes](https://developer.vertexvis.com/docs/guides/render-static-scenes) guide.
|
|
10440
|
+
* @param {string} id The `queued-translation` ID.
|
|
10441
|
+
* @param {*} [options] Override http request option.
|
|
10442
|
+
* @throws {RequiredError}
|
|
10443
|
+
*/
|
|
10444
|
+
getQueuedTranslationJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10445
|
+
var _d;
|
|
10446
|
+
// verify required parameter 'id' is not null or undefined
|
|
10447
|
+
(0, common_1.assertParamExists)('getQueuedTranslationJob', 'id', id);
|
|
10448
|
+
const localVarPath = `/queued-translation-jobs/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10449
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10450
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10451
|
+
let baseOptions;
|
|
10452
|
+
if (configuration) {
|
|
10453
|
+
baseOptions = configuration.baseOptions;
|
|
10454
|
+
}
|
|
10455
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10456
|
+
const localVarHeaderParameter = {};
|
|
10457
|
+
const localVarQueryParameter = {};
|
|
10458
|
+
// authentication OAuth2 required
|
|
10459
|
+
// oauth required
|
|
10460
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10461
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10462
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
10463
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10464
|
+
return {
|
|
10465
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10466
|
+
options: localVarRequestOptions,
|
|
10467
|
+
};
|
|
10468
|
+
}),
|
|
10469
|
+
/**
|
|
10470
|
+
* Get all current translation jobs in progress.
|
|
9914
10471
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
9915
10472
|
* @param {number} [pageSize] The number of items to return.
|
|
9916
10473
|
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
@@ -10258,6 +10815,507 @@ class TranslationInspectionsApi extends base_1.BaseAPI {
|
|
|
10258
10815
|
}
|
|
10259
10816
|
}
|
|
10260
10817
|
exports.TranslationInspectionsApi = TranslationInspectionsApi;
|
|
10818
|
+
/**
|
|
10819
|
+
* UserGroupsApi - axios parameter creator
|
|
10820
|
+
* @export
|
|
10821
|
+
*/
|
|
10822
|
+
const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
10823
|
+
return {
|
|
10824
|
+
/**
|
|
10825
|
+
* Create a `user-group`
|
|
10826
|
+
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
10827
|
+
* @param {*} [options] Override http request option.
|
|
10828
|
+
* @throws {RequiredError}
|
|
10829
|
+
*/
|
|
10830
|
+
createUserGroup: (createUserGroupRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10831
|
+
var _a;
|
|
10832
|
+
// verify required parameter 'createUserGroupRequest' is not null or undefined
|
|
10833
|
+
(0, common_1.assertParamExists)('createUserGroup', 'createUserGroupRequest', createUserGroupRequest);
|
|
10834
|
+
const localVarPath = `/user-groups`;
|
|
10835
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10836
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10837
|
+
let baseOptions;
|
|
10838
|
+
if (configuration) {
|
|
10839
|
+
baseOptions = configuration.baseOptions;
|
|
10840
|
+
}
|
|
10841
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10842
|
+
const localVarHeaderParameter = {};
|
|
10843
|
+
const localVarQueryParameter = {};
|
|
10844
|
+
// authentication OAuth2 required
|
|
10845
|
+
// oauth required
|
|
10846
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10847
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
10848
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10849
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
10850
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10851
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserGroupRequest, localVarRequestOptions, configuration);
|
|
10852
|
+
return {
|
|
10853
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10854
|
+
options: localVarRequestOptions,
|
|
10855
|
+
};
|
|
10856
|
+
}),
|
|
10857
|
+
/**
|
|
10858
|
+
* Get a `user-group`.
|
|
10859
|
+
* @param {string} id The `user-group` ID.
|
|
10860
|
+
* @param {*} [options] Override http request option.
|
|
10861
|
+
* @throws {RequiredError}
|
|
10862
|
+
*/
|
|
10863
|
+
getUserGroup: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10864
|
+
var _b;
|
|
10865
|
+
// verify required parameter 'id' is not null or undefined
|
|
10866
|
+
(0, common_1.assertParamExists)('getUserGroup', 'id', id);
|
|
10867
|
+
const localVarPath = `/user-groups/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10868
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10869
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10870
|
+
let baseOptions;
|
|
10871
|
+
if (configuration) {
|
|
10872
|
+
baseOptions = configuration.baseOptions;
|
|
10873
|
+
}
|
|
10874
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10875
|
+
const localVarHeaderParameter = {};
|
|
10876
|
+
const localVarQueryParameter = {};
|
|
10877
|
+
// authentication OAuth2 required
|
|
10878
|
+
// oauth required
|
|
10879
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10880
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10881
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10882
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10883
|
+
return {
|
|
10884
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10885
|
+
options: localVarRequestOptions,
|
|
10886
|
+
};
|
|
10887
|
+
}),
|
|
10888
|
+
};
|
|
10889
|
+
};
|
|
10890
|
+
exports.UserGroupsApiAxiosParamCreator = UserGroupsApiAxiosParamCreator;
|
|
10891
|
+
/**
|
|
10892
|
+
* UserGroupsApi - functional programming interface
|
|
10893
|
+
* @export
|
|
10894
|
+
*/
|
|
10895
|
+
const UserGroupsApiFp = function (configuration) {
|
|
10896
|
+
const localVarAxiosParamCreator = (0, exports.UserGroupsApiAxiosParamCreator)(configuration);
|
|
10897
|
+
return {
|
|
10898
|
+
/**
|
|
10899
|
+
* Create a `user-group`
|
|
10900
|
+
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
10901
|
+
* @param {*} [options] Override http request option.
|
|
10902
|
+
* @throws {RequiredError}
|
|
10903
|
+
*/
|
|
10904
|
+
createUserGroup(createUserGroupRequest, options) {
|
|
10905
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10906
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserGroup(createUserGroupRequest, options);
|
|
10907
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10908
|
+
});
|
|
10909
|
+
},
|
|
10910
|
+
/**
|
|
10911
|
+
* Get a `user-group`.
|
|
10912
|
+
* @param {string} id The `user-group` ID.
|
|
10913
|
+
* @param {*} [options] Override http request option.
|
|
10914
|
+
* @throws {RequiredError}
|
|
10915
|
+
*/
|
|
10916
|
+
getUserGroup(id, options) {
|
|
10917
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10918
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroup(id, options);
|
|
10919
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10920
|
+
});
|
|
10921
|
+
},
|
|
10922
|
+
};
|
|
10923
|
+
};
|
|
10924
|
+
exports.UserGroupsApiFp = UserGroupsApiFp;
|
|
10925
|
+
/**
|
|
10926
|
+
* UserGroupsApi - factory interface
|
|
10927
|
+
* @export
|
|
10928
|
+
*/
|
|
10929
|
+
const UserGroupsApiFactory = function (configuration, basePath, axios) {
|
|
10930
|
+
const localVarFp = (0, exports.UserGroupsApiFp)(configuration);
|
|
10931
|
+
return {
|
|
10932
|
+
/**
|
|
10933
|
+
* Create a `user-group`
|
|
10934
|
+
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
10935
|
+
* @param {*} [options] Override http request option.
|
|
10936
|
+
* @throws {RequiredError}
|
|
10937
|
+
*/
|
|
10938
|
+
createUserGroup(createUserGroupRequest, options) {
|
|
10939
|
+
return localVarFp
|
|
10940
|
+
.createUserGroup(createUserGroupRequest, options)
|
|
10941
|
+
.then((request) => request(axios, basePath));
|
|
10942
|
+
},
|
|
10943
|
+
/**
|
|
10944
|
+
* Get a `user-group`.
|
|
10945
|
+
* @param {string} id The `user-group` ID.
|
|
10946
|
+
* @param {*} [options] Override http request option.
|
|
10947
|
+
* @throws {RequiredError}
|
|
10948
|
+
*/
|
|
10949
|
+
getUserGroup(id, options) {
|
|
10950
|
+
return localVarFp
|
|
10951
|
+
.getUserGroup(id, options)
|
|
10952
|
+
.then((request) => request(axios, basePath));
|
|
10953
|
+
},
|
|
10954
|
+
};
|
|
10955
|
+
};
|
|
10956
|
+
exports.UserGroupsApiFactory = UserGroupsApiFactory;
|
|
10957
|
+
/**
|
|
10958
|
+
* UserGroupsApi - object-oriented interface
|
|
10959
|
+
* @export
|
|
10960
|
+
* @class UserGroupsApi
|
|
10961
|
+
* @extends {BaseAPI}
|
|
10962
|
+
*/
|
|
10963
|
+
class UserGroupsApi extends base_1.BaseAPI {
|
|
10964
|
+
/**
|
|
10965
|
+
* Create a `user-group`
|
|
10966
|
+
* @param {UserGroupsApiCreateUserGroupRequest} requestParameters Request parameters.
|
|
10967
|
+
* @param {*} [options] Override http request option.
|
|
10968
|
+
* @throws {RequiredError}
|
|
10969
|
+
* @memberof UserGroupsApi
|
|
10970
|
+
*/
|
|
10971
|
+
createUserGroup(requestParameters, options) {
|
|
10972
|
+
return (0, exports.UserGroupsApiFp)(this.configuration)
|
|
10973
|
+
.createUserGroup(requestParameters.createUserGroupRequest, options)
|
|
10974
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10975
|
+
}
|
|
10976
|
+
/**
|
|
10977
|
+
* Get a `user-group`.
|
|
10978
|
+
* @param {UserGroupsApiGetUserGroupRequest} requestParameters Request parameters.
|
|
10979
|
+
* @param {*} [options] Override http request option.
|
|
10980
|
+
* @throws {RequiredError}
|
|
10981
|
+
* @memberof UserGroupsApi
|
|
10982
|
+
*/
|
|
10983
|
+
getUserGroup(requestParameters, options) {
|
|
10984
|
+
return (0, exports.UserGroupsApiFp)(this.configuration)
|
|
10985
|
+
.getUserGroup(requestParameters.id, options)
|
|
10986
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10987
|
+
}
|
|
10988
|
+
}
|
|
10989
|
+
exports.UserGroupsApi = UserGroupsApi;
|
|
10990
|
+
/**
|
|
10991
|
+
* UsersApi - axios parameter creator
|
|
10992
|
+
* @export
|
|
10993
|
+
*/
|
|
10994
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
|
10995
|
+
return {
|
|
10996
|
+
/**
|
|
10997
|
+
* Create a `user`
|
|
10998
|
+
* @param {CreateUserRequest} createUserRequest
|
|
10999
|
+
* @param {*} [options] Override http request option.
|
|
11000
|
+
* @throws {RequiredError}
|
|
11001
|
+
*/
|
|
11002
|
+
createUser: (createUserRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11003
|
+
var _a;
|
|
11004
|
+
// verify required parameter 'createUserRequest' is not null or undefined
|
|
11005
|
+
(0, common_1.assertParamExists)('createUser', 'createUserRequest', createUserRequest);
|
|
11006
|
+
const localVarPath = `/users`;
|
|
11007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11008
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11009
|
+
let baseOptions;
|
|
11010
|
+
if (configuration) {
|
|
11011
|
+
baseOptions = configuration.baseOptions;
|
|
11012
|
+
}
|
|
11013
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11014
|
+
const localVarHeaderParameter = {};
|
|
11015
|
+
const localVarQueryParameter = {};
|
|
11016
|
+
// authentication OAuth2 required
|
|
11017
|
+
// oauth required
|
|
11018
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11019
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11020
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11021
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
11022
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11023
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserRequest, localVarRequestOptions, configuration);
|
|
11024
|
+
return {
|
|
11025
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11026
|
+
options: localVarRequestOptions,
|
|
11027
|
+
};
|
|
11028
|
+
}),
|
|
11029
|
+
/**
|
|
11030
|
+
* Get a `user`.
|
|
11031
|
+
* @param {string} id The `user` ID.
|
|
11032
|
+
* @param {*} [options] Override http request option.
|
|
11033
|
+
* @throws {RequiredError}
|
|
11034
|
+
*/
|
|
11035
|
+
getUser: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11036
|
+
var _b;
|
|
11037
|
+
// verify required parameter 'id' is not null or undefined
|
|
11038
|
+
(0, common_1.assertParamExists)('getUser', 'id', id);
|
|
11039
|
+
const localVarPath = `/users/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11040
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11041
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11042
|
+
let baseOptions;
|
|
11043
|
+
if (configuration) {
|
|
11044
|
+
baseOptions = configuration.baseOptions;
|
|
11045
|
+
}
|
|
11046
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11047
|
+
const localVarHeaderParameter = {};
|
|
11048
|
+
const localVarQueryParameter = {};
|
|
11049
|
+
// authentication OAuth2 required
|
|
11050
|
+
// oauth required
|
|
11051
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11052
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11053
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
11054
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11055
|
+
return {
|
|
11056
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11057
|
+
options: localVarRequestOptions,
|
|
11058
|
+
};
|
|
11059
|
+
}),
|
|
11060
|
+
/**
|
|
11061
|
+
* Get `user-group`s.
|
|
11062
|
+
* @param {string} id The `user` ID.
|
|
11063
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11064
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11065
|
+
* @param {*} [options] Override http request option.
|
|
11066
|
+
* @throws {RequiredError}
|
|
11067
|
+
*/
|
|
11068
|
+
getUserGroupsForUser: (id, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11069
|
+
var _c;
|
|
11070
|
+
// verify required parameter 'id' is not null or undefined
|
|
11071
|
+
(0, common_1.assertParamExists)('getUserGroupsForUser', 'id', id);
|
|
11072
|
+
const localVarPath = `/users/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11073
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11074
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11075
|
+
let baseOptions;
|
|
11076
|
+
if (configuration) {
|
|
11077
|
+
baseOptions = configuration.baseOptions;
|
|
11078
|
+
}
|
|
11079
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11080
|
+
const localVarHeaderParameter = {};
|
|
11081
|
+
const localVarQueryParameter = {};
|
|
11082
|
+
// authentication OAuth2 required
|
|
11083
|
+
// oauth required
|
|
11084
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11085
|
+
if (pageCursor !== undefined) {
|
|
11086
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
11087
|
+
}
|
|
11088
|
+
if (pageSize !== undefined) {
|
|
11089
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
11090
|
+
}
|
|
11091
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11092
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
11093
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11094
|
+
return {
|
|
11095
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11096
|
+
options: localVarRequestOptions,
|
|
11097
|
+
};
|
|
11098
|
+
}),
|
|
11099
|
+
/**
|
|
11100
|
+
* List `user`s.
|
|
11101
|
+
* @param {string} [filterClientId] Comma-separated list of client IDs to filter on.
|
|
11102
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11103
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11104
|
+
* @param {*} [options] Override http request option.
|
|
11105
|
+
* @throws {RequiredError}
|
|
11106
|
+
*/
|
|
11107
|
+
listUsers: (filterClientId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11108
|
+
var _d;
|
|
11109
|
+
const localVarPath = `/users`;
|
|
11110
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11111
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11112
|
+
let baseOptions;
|
|
11113
|
+
if (configuration) {
|
|
11114
|
+
baseOptions = configuration.baseOptions;
|
|
11115
|
+
}
|
|
11116
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11117
|
+
const localVarHeaderParameter = {};
|
|
11118
|
+
const localVarQueryParameter = {};
|
|
11119
|
+
// authentication OAuth2 required
|
|
11120
|
+
// oauth required
|
|
11121
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11122
|
+
if (filterClientId !== undefined) {
|
|
11123
|
+
localVarQueryParameter['filter[clientId]'] = filterClientId;
|
|
11124
|
+
}
|
|
11125
|
+
if (pageCursor !== undefined) {
|
|
11126
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
11127
|
+
}
|
|
11128
|
+
if (pageSize !== undefined) {
|
|
11129
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
11130
|
+
}
|
|
11131
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11132
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
11133
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11134
|
+
return {
|
|
11135
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11136
|
+
options: localVarRequestOptions,
|
|
11137
|
+
};
|
|
11138
|
+
}),
|
|
11139
|
+
};
|
|
11140
|
+
};
|
|
11141
|
+
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
11142
|
+
/**
|
|
11143
|
+
* UsersApi - functional programming interface
|
|
11144
|
+
* @export
|
|
11145
|
+
*/
|
|
11146
|
+
const UsersApiFp = function (configuration) {
|
|
11147
|
+
const localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
|
|
11148
|
+
return {
|
|
11149
|
+
/**
|
|
11150
|
+
* Create a `user`
|
|
11151
|
+
* @param {CreateUserRequest} createUserRequest
|
|
11152
|
+
* @param {*} [options] Override http request option.
|
|
11153
|
+
* @throws {RequiredError}
|
|
11154
|
+
*/
|
|
11155
|
+
createUser(createUserRequest, options) {
|
|
11156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11157
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(createUserRequest, options);
|
|
11158
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11159
|
+
});
|
|
11160
|
+
},
|
|
11161
|
+
/**
|
|
11162
|
+
* Get a `user`.
|
|
11163
|
+
* @param {string} id The `user` ID.
|
|
11164
|
+
* @param {*} [options] Override http request option.
|
|
11165
|
+
* @throws {RequiredError}
|
|
11166
|
+
*/
|
|
11167
|
+
getUser(id, options) {
|
|
11168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11169
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(id, options);
|
|
11170
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11171
|
+
});
|
|
11172
|
+
},
|
|
11173
|
+
/**
|
|
11174
|
+
* Get `user-group`s.
|
|
11175
|
+
* @param {string} id The `user` ID.
|
|
11176
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11177
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11178
|
+
* @param {*} [options] Override http request option.
|
|
11179
|
+
* @throws {RequiredError}
|
|
11180
|
+
*/
|
|
11181
|
+
getUserGroupsForUser(id, pageCursor, pageSize, options) {
|
|
11182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11183
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroupsForUser(id, pageCursor, pageSize, options);
|
|
11184
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11185
|
+
});
|
|
11186
|
+
},
|
|
11187
|
+
/**
|
|
11188
|
+
* List `user`s.
|
|
11189
|
+
* @param {string} [filterClientId] Comma-separated list of client IDs to filter on.
|
|
11190
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11191
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11192
|
+
* @param {*} [options] Override http request option.
|
|
11193
|
+
* @throws {RequiredError}
|
|
11194
|
+
*/
|
|
11195
|
+
listUsers(filterClientId, pageCursor, pageSize, options) {
|
|
11196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11197
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(filterClientId, pageCursor, pageSize, options);
|
|
11198
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11199
|
+
});
|
|
11200
|
+
},
|
|
11201
|
+
};
|
|
11202
|
+
};
|
|
11203
|
+
exports.UsersApiFp = UsersApiFp;
|
|
11204
|
+
/**
|
|
11205
|
+
* UsersApi - factory interface
|
|
11206
|
+
* @export
|
|
11207
|
+
*/
|
|
11208
|
+
const UsersApiFactory = function (configuration, basePath, axios) {
|
|
11209
|
+
const localVarFp = (0, exports.UsersApiFp)(configuration);
|
|
11210
|
+
return {
|
|
11211
|
+
/**
|
|
11212
|
+
* Create a `user`
|
|
11213
|
+
* @param {CreateUserRequest} createUserRequest
|
|
11214
|
+
* @param {*} [options] Override http request option.
|
|
11215
|
+
* @throws {RequiredError}
|
|
11216
|
+
*/
|
|
11217
|
+
createUser(createUserRequest, options) {
|
|
11218
|
+
return localVarFp
|
|
11219
|
+
.createUser(createUserRequest, options)
|
|
11220
|
+
.then((request) => request(axios, basePath));
|
|
11221
|
+
},
|
|
11222
|
+
/**
|
|
11223
|
+
* Get a `user`.
|
|
11224
|
+
* @param {string} id The `user` ID.
|
|
11225
|
+
* @param {*} [options] Override http request option.
|
|
11226
|
+
* @throws {RequiredError}
|
|
11227
|
+
*/
|
|
11228
|
+
getUser(id, options) {
|
|
11229
|
+
return localVarFp
|
|
11230
|
+
.getUser(id, options)
|
|
11231
|
+
.then((request) => request(axios, basePath));
|
|
11232
|
+
},
|
|
11233
|
+
/**
|
|
11234
|
+
* Get `user-group`s.
|
|
11235
|
+
* @param {string} id The `user` ID.
|
|
11236
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11237
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11238
|
+
* @param {*} [options] Override http request option.
|
|
11239
|
+
* @throws {RequiredError}
|
|
11240
|
+
*/
|
|
11241
|
+
getUserGroupsForUser(id, pageCursor, pageSize, options) {
|
|
11242
|
+
return localVarFp
|
|
11243
|
+
.getUserGroupsForUser(id, pageCursor, pageSize, options)
|
|
11244
|
+
.then((request) => request(axios, basePath));
|
|
11245
|
+
},
|
|
11246
|
+
/**
|
|
11247
|
+
* List `user`s.
|
|
11248
|
+
* @param {string} [filterClientId] Comma-separated list of client IDs to filter on.
|
|
11249
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11250
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11251
|
+
* @param {*} [options] Override http request option.
|
|
11252
|
+
* @throws {RequiredError}
|
|
11253
|
+
*/
|
|
11254
|
+
listUsers(filterClientId, pageCursor, pageSize, options) {
|
|
11255
|
+
return localVarFp
|
|
11256
|
+
.listUsers(filterClientId, pageCursor, pageSize, options)
|
|
11257
|
+
.then((request) => request(axios, basePath));
|
|
11258
|
+
},
|
|
11259
|
+
};
|
|
11260
|
+
};
|
|
11261
|
+
exports.UsersApiFactory = UsersApiFactory;
|
|
11262
|
+
/**
|
|
11263
|
+
* UsersApi - object-oriented interface
|
|
11264
|
+
* @export
|
|
11265
|
+
* @class UsersApi
|
|
11266
|
+
* @extends {BaseAPI}
|
|
11267
|
+
*/
|
|
11268
|
+
class UsersApi extends base_1.BaseAPI {
|
|
11269
|
+
/**
|
|
11270
|
+
* Create a `user`
|
|
11271
|
+
* @param {UsersApiCreateUserRequest} requestParameters Request parameters.
|
|
11272
|
+
* @param {*} [options] Override http request option.
|
|
11273
|
+
* @throws {RequiredError}
|
|
11274
|
+
* @memberof UsersApi
|
|
11275
|
+
*/
|
|
11276
|
+
createUser(requestParameters, options) {
|
|
11277
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11278
|
+
.createUser(requestParameters.createUserRequest, options)
|
|
11279
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11280
|
+
}
|
|
11281
|
+
/**
|
|
11282
|
+
* Get a `user`.
|
|
11283
|
+
* @param {UsersApiGetUserRequest} requestParameters Request parameters.
|
|
11284
|
+
* @param {*} [options] Override http request option.
|
|
11285
|
+
* @throws {RequiredError}
|
|
11286
|
+
* @memberof UsersApi
|
|
11287
|
+
*/
|
|
11288
|
+
getUser(requestParameters, options) {
|
|
11289
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11290
|
+
.getUser(requestParameters.id, options)
|
|
11291
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11292
|
+
}
|
|
11293
|
+
/**
|
|
11294
|
+
* Get `user-group`s.
|
|
11295
|
+
* @param {UsersApiGetUserGroupsForUserRequest} requestParameters Request parameters.
|
|
11296
|
+
* @param {*} [options] Override http request option.
|
|
11297
|
+
* @throws {RequiredError}
|
|
11298
|
+
* @memberof UsersApi
|
|
11299
|
+
*/
|
|
11300
|
+
getUserGroupsForUser(requestParameters, options) {
|
|
11301
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11302
|
+
.getUserGroupsForUser(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
11303
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11304
|
+
}
|
|
11305
|
+
/**
|
|
11306
|
+
* List `user`s.
|
|
11307
|
+
* @param {UsersApiListUsersRequest} requestParameters Request parameters.
|
|
11308
|
+
* @param {*} [options] Override http request option.
|
|
11309
|
+
* @throws {RequiredError}
|
|
11310
|
+
* @memberof UsersApi
|
|
11311
|
+
*/
|
|
11312
|
+
listUsers(requestParameters = {}, options) {
|
|
11313
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11314
|
+
.listUsers(requestParameters.filterClientId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
11315
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11316
|
+
}
|
|
11317
|
+
}
|
|
11318
|
+
exports.UsersApi = UsersApi;
|
|
10261
11319
|
/**
|
|
10262
11320
|
* WebhookSubscriptionsApi - axios parameter creator
|
|
10263
11321
|
* @export
|