@vertexvis/api-client-node 0.30.3 → 0.32.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 +2424 -298
- package/dist/cjs/api.js +1575 -55
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/cjs/client/vertex-client.d.ts +3 -1
- package/dist/cjs/client/vertex-client.js +2 -0
- package/dist/esm/api.d.ts +2424 -298
- package/dist/esm/api.js +1550 -51
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/dist/esm/client/vertex-client.d.ts +3 -1
- package/dist/esm/client/vertex-client.js +3 -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.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.CreateReplyRequestDataTypeEnum = 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.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.UserIdTypeEnum = exports.UserGroupIdTypeEnum = exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = exports.UpdateSceneRequestDataAttributesStateEnum = exports.UpdateItemToDefaultRenditionOperationTypeEnum = exports.UpdateFileCollectionRequestDataTypeEnum = exports.UpdateAccountRequestDataAttributesStatusEnum = exports.ThreadType = exports.ThreadStatus = exports.ThreadRelationshipDataTypeEnum = exports.ThreadDataTypeEnum = exports.SelectOpTypeEnum = exports.SelectFileBySuppliedIdTypeEnum = exports.SelectFileByIdTypeEnum = exports.SceneViewStateRelationshipDataTypeEnum = exports.SceneViewRelationshipDataTypeEnum = exports.SceneRelationshipDataTypeEnum = exports.SceneItemRelationshipDataTypeEnum = exports.SceneItemQueryOperandTypeEnum = exports.SceneItemOrExpressionTypeEnum = exports.SceneItemAndExpressionTypeEnum = exports.ReplyDataTypeEnum = exports.QueryBySceneItemMetadataTypeEnum = exports.QueryBySceneItemIdsTypeEnum = exports.QueryBySceneItemIdTypeEnum = exports.QueryByRootTypeEnum = void 0;
|
|
30
|
+
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 = exports.ExportsApiFactory = exports.ExportsApiFp = exports.ExportsApiAxiosParamCreator = exports.CollaborationContextsApi = void 0;
|
|
31
|
+
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.RepliesApi = exports.RepliesApiFactory = exports.RepliesApiFp = exports.RepliesApiAxiosParamCreator = exports.PropertyEntriesApi = exports.PropertyEntriesApiFactory = exports.PropertyEntriesApiFp = exports.PropertyEntriesApiAxiosParamCreator = exports.PmiApi = exports.PmiApiFactory = exports.PmiApiFp = exports.PmiApiAxiosParamCreator = exports.PermissionGrantsApi = exports.PermissionGrantsApiFactory = exports.PermissionGrantsApiFp = 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 = exports.ThreadsApiFactory = exports.ThreadsApiFp = exports.ThreadsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = exports.StreamKeysApiAxiosParamCreator = exports.SearchSessionsApi = 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
|
};
|
|
@@ -81,6 +88,9 @@ exports.CreatePermissionGrantDataTypeEnum = {
|
|
|
81
88
|
exports.CreatePermissionGrantDataAttributesCapabilityEnum = {
|
|
82
89
|
Read: 'read',
|
|
83
90
|
};
|
|
91
|
+
exports.CreateReplyRequestDataTypeEnum = {
|
|
92
|
+
Reply: 'reply',
|
|
93
|
+
};
|
|
84
94
|
exports.CreateSceneExpressionAlterationRequestDataTypeEnum = {
|
|
85
95
|
SceneAlterationExpression: 'scene-alteration-expression',
|
|
86
96
|
};
|
|
@@ -92,6 +102,15 @@ exports.CreateSceneItemRequestDataAttributesResolutionRuleEnum = {
|
|
|
92
102
|
exports.CreateSearchSessionRequestDataTypeEnum = {
|
|
93
103
|
SearchSession: 'search-session',
|
|
94
104
|
};
|
|
105
|
+
exports.CreateThreadRequestDataTypeEnum = {
|
|
106
|
+
Thread: 'thread',
|
|
107
|
+
};
|
|
108
|
+
exports.CreateUserGroupRequestDataTypeEnum = {
|
|
109
|
+
UserGroup: 'user-group',
|
|
110
|
+
};
|
|
111
|
+
exports.CreateUserRequestDataTypeEnum = {
|
|
112
|
+
User: 'user',
|
|
113
|
+
};
|
|
95
114
|
exports.DeselectOperationTypeEnum = {
|
|
96
115
|
Deselect: 'deselect',
|
|
97
116
|
};
|
|
@@ -190,6 +209,9 @@ exports.QueryBySceneItemIdsTypeEnum = {
|
|
|
190
209
|
exports.QueryBySceneItemMetadataTypeEnum = {
|
|
191
210
|
QueryByMetadata: 'query-by-metadata',
|
|
192
211
|
};
|
|
212
|
+
exports.ReplyDataTypeEnum = {
|
|
213
|
+
Reply: 'reply',
|
|
214
|
+
};
|
|
193
215
|
exports.SceneItemAndExpressionTypeEnum = {
|
|
194
216
|
And: 'and',
|
|
195
217
|
};
|
|
@@ -220,6 +242,30 @@ exports.SelectFileBySuppliedIdTypeEnum = {
|
|
|
220
242
|
exports.SelectOpTypeEnum = {
|
|
221
243
|
Select: 'select',
|
|
222
244
|
};
|
|
245
|
+
exports.ThreadDataTypeEnum = {
|
|
246
|
+
Thread: 'thread',
|
|
247
|
+
};
|
|
248
|
+
exports.ThreadRelationshipDataTypeEnum = {
|
|
249
|
+
Thread: 'thread',
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
*
|
|
253
|
+
* @export
|
|
254
|
+
* @enum {string}
|
|
255
|
+
*/
|
|
256
|
+
exports.ThreadStatus = {
|
|
257
|
+
Open: 'open',
|
|
258
|
+
Resolved: 'resolved',
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
*
|
|
262
|
+
* @export
|
|
263
|
+
* @enum {string}
|
|
264
|
+
*/
|
|
265
|
+
exports.ThreadType = {
|
|
266
|
+
Comment: 'comment',
|
|
267
|
+
Issue: 'issue',
|
|
268
|
+
};
|
|
223
269
|
exports.UpdateAccountRequestDataAttributesStatusEnum = {
|
|
224
270
|
Active: 'active',
|
|
225
271
|
Disabled: 'disabled',
|
|
@@ -238,6 +284,15 @@ exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
|
|
|
238
284
|
Active: 'active',
|
|
239
285
|
Paused: 'paused',
|
|
240
286
|
};
|
|
287
|
+
exports.UserGroupIdTypeEnum = {
|
|
288
|
+
UserGroup: 'user-group',
|
|
289
|
+
};
|
|
290
|
+
exports.UserIdTypeEnum = {
|
|
291
|
+
User: 'user',
|
|
292
|
+
};
|
|
293
|
+
exports.UserRelationshipDataTypeEnum = {
|
|
294
|
+
User: 'user',
|
|
295
|
+
};
|
|
241
296
|
exports.ViewDefaultRenOpTypeEnum = {
|
|
242
297
|
ViewDefaultRendition: 'view-default-rendition',
|
|
243
298
|
};
|
|
@@ -1276,6 +1331,324 @@ class BatchesApi extends base_1.BaseAPI {
|
|
|
1276
1331
|
}
|
|
1277
1332
|
}
|
|
1278
1333
|
exports.BatchesApi = BatchesApi;
|
|
1334
|
+
/**
|
|
1335
|
+
* CollaborationContextsApi - axios parameter creator
|
|
1336
|
+
* @export
|
|
1337
|
+
*/
|
|
1338
|
+
const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
1339
|
+
return {
|
|
1340
|
+
/**
|
|
1341
|
+
* Create a `collaboration-context`.
|
|
1342
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1343
|
+
* @param {UserGroupIdsList} userGroupIdsList
|
|
1344
|
+
* @param {*} [options] Override http request option.
|
|
1345
|
+
* @throws {RequiredError}
|
|
1346
|
+
*/
|
|
1347
|
+
addCollaborationContextUserGroups: (id, userGroupIdsList, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1348
|
+
var _a;
|
|
1349
|
+
// verify required parameter 'id' is not null or undefined
|
|
1350
|
+
(0, common_1.assertParamExists)('addCollaborationContextUserGroups', 'id', id);
|
|
1351
|
+
// verify required parameter 'userGroupIdsList' is not null or undefined
|
|
1352
|
+
(0, common_1.assertParamExists)('addCollaborationContextUserGroups', 'userGroupIdsList', userGroupIdsList);
|
|
1353
|
+
const localVarPath = `/collaboration-contexts/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1354
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1355
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1356
|
+
let baseOptions;
|
|
1357
|
+
if (configuration) {
|
|
1358
|
+
baseOptions = configuration.baseOptions;
|
|
1359
|
+
}
|
|
1360
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1361
|
+
const localVarHeaderParameter = {};
|
|
1362
|
+
const localVarQueryParameter = {};
|
|
1363
|
+
// authentication OAuth2 required
|
|
1364
|
+
// oauth required
|
|
1365
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1366
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1367
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1368
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1369
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1370
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userGroupIdsList, localVarRequestOptions, configuration);
|
|
1371
|
+
return {
|
|
1372
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1373
|
+
options: localVarRequestOptions,
|
|
1374
|
+
};
|
|
1375
|
+
}),
|
|
1376
|
+
/**
|
|
1377
|
+
* Create a `collaboration-context`.
|
|
1378
|
+
* @param {CreateCollaborationContextRequest} createCollaborationContextRequest
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
createCollaborationContext: (createCollaborationContextRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1383
|
+
var _b;
|
|
1384
|
+
// verify required parameter 'createCollaborationContextRequest' is not null or undefined
|
|
1385
|
+
(0, common_1.assertParamExists)('createCollaborationContext', 'createCollaborationContextRequest', createCollaborationContextRequest);
|
|
1386
|
+
const localVarPath = `/collaboration-contexts`;
|
|
1387
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1388
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1389
|
+
let baseOptions;
|
|
1390
|
+
if (configuration) {
|
|
1391
|
+
baseOptions = configuration.baseOptions;
|
|
1392
|
+
}
|
|
1393
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1394
|
+
const localVarHeaderParameter = {};
|
|
1395
|
+
const localVarQueryParameter = {};
|
|
1396
|
+
// authentication OAuth2 required
|
|
1397
|
+
// oauth required
|
|
1398
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1399
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1400
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1401
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
1402
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1403
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCollaborationContextRequest, localVarRequestOptions, configuration);
|
|
1404
|
+
return {
|
|
1405
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1406
|
+
options: localVarRequestOptions,
|
|
1407
|
+
};
|
|
1408
|
+
}),
|
|
1409
|
+
/**
|
|
1410
|
+
* Get a `collaboration-context` by ID.
|
|
1411
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1412
|
+
* @param {*} [options] Override http request option.
|
|
1413
|
+
* @throws {RequiredError}
|
|
1414
|
+
*/
|
|
1415
|
+
getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1416
|
+
var _c;
|
|
1417
|
+
// verify required parameter 'id' is not null or undefined
|
|
1418
|
+
(0, common_1.assertParamExists)('getCollaborationContext', 'id', id);
|
|
1419
|
+
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1421
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1422
|
+
let baseOptions;
|
|
1423
|
+
if (configuration) {
|
|
1424
|
+
baseOptions = configuration.baseOptions;
|
|
1425
|
+
}
|
|
1426
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1427
|
+
const localVarHeaderParameter = {};
|
|
1428
|
+
const localVarQueryParameter = {};
|
|
1429
|
+
// authentication OAuth2 required
|
|
1430
|
+
// oauth required
|
|
1431
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1432
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1433
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1434
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1435
|
+
return {
|
|
1436
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1437
|
+
options: localVarRequestOptions,
|
|
1438
|
+
};
|
|
1439
|
+
}),
|
|
1440
|
+
/**
|
|
1441
|
+
* List `collaboration-context`s
|
|
1442
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1443
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1444
|
+
* @param {*} [options] Override http request option.
|
|
1445
|
+
* @throws {RequiredError}
|
|
1446
|
+
*/
|
|
1447
|
+
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1448
|
+
var _d;
|
|
1449
|
+
const localVarPath = `/collaboration-contexts`;
|
|
1450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1451
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1452
|
+
let baseOptions;
|
|
1453
|
+
if (configuration) {
|
|
1454
|
+
baseOptions = configuration.baseOptions;
|
|
1455
|
+
}
|
|
1456
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1457
|
+
const localVarHeaderParameter = {};
|
|
1458
|
+
const localVarQueryParameter = {};
|
|
1459
|
+
// authentication OAuth2 required
|
|
1460
|
+
// oauth required
|
|
1461
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1462
|
+
if (pageCursor !== undefined) {
|
|
1463
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
1464
|
+
}
|
|
1465
|
+
if (pageSize !== undefined) {
|
|
1466
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
1467
|
+
}
|
|
1468
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1469
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1470
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1471
|
+
return {
|
|
1472
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1473
|
+
options: localVarRequestOptions,
|
|
1474
|
+
};
|
|
1475
|
+
}),
|
|
1476
|
+
};
|
|
1477
|
+
};
|
|
1478
|
+
exports.CollaborationContextsApiAxiosParamCreator = CollaborationContextsApiAxiosParamCreator;
|
|
1479
|
+
/**
|
|
1480
|
+
* CollaborationContextsApi - functional programming interface
|
|
1481
|
+
* @export
|
|
1482
|
+
*/
|
|
1483
|
+
const CollaborationContextsApiFp = function (configuration) {
|
|
1484
|
+
const localVarAxiosParamCreator = (0, exports.CollaborationContextsApiAxiosParamCreator)(configuration);
|
|
1485
|
+
return {
|
|
1486
|
+
/**
|
|
1487
|
+
* Create a `collaboration-context`.
|
|
1488
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1489
|
+
* @param {UserGroupIdsList} userGroupIdsList
|
|
1490
|
+
* @param {*} [options] Override http request option.
|
|
1491
|
+
* @throws {RequiredError}
|
|
1492
|
+
*/
|
|
1493
|
+
addCollaborationContextUserGroups(id, userGroupIdsList, options) {
|
|
1494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1495
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addCollaborationContextUserGroups(id, userGroupIdsList, options);
|
|
1496
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1497
|
+
});
|
|
1498
|
+
},
|
|
1499
|
+
/**
|
|
1500
|
+
* Create a `collaboration-context`.
|
|
1501
|
+
* @param {CreateCollaborationContextRequest} createCollaborationContextRequest
|
|
1502
|
+
* @param {*} [options] Override http request option.
|
|
1503
|
+
* @throws {RequiredError}
|
|
1504
|
+
*/
|
|
1505
|
+
createCollaborationContext(createCollaborationContextRequest, options) {
|
|
1506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1507
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCollaborationContext(createCollaborationContextRequest, options);
|
|
1508
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1509
|
+
});
|
|
1510
|
+
},
|
|
1511
|
+
/**
|
|
1512
|
+
* Get a `collaboration-context` by ID.
|
|
1513
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1514
|
+
* @param {*} [options] Override http request option.
|
|
1515
|
+
* @throws {RequiredError}
|
|
1516
|
+
*/
|
|
1517
|
+
getCollaborationContext(id, options) {
|
|
1518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1519
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCollaborationContext(id, options);
|
|
1520
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1521
|
+
});
|
|
1522
|
+
},
|
|
1523
|
+
/**
|
|
1524
|
+
* List `collaboration-context`s
|
|
1525
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1526
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1527
|
+
* @param {*} [options] Override http request option.
|
|
1528
|
+
* @throws {RequiredError}
|
|
1529
|
+
*/
|
|
1530
|
+
listCollaborationContexts(pageCursor, pageSize, options) {
|
|
1531
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCollaborationContexts(pageCursor, pageSize, options);
|
|
1533
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1534
|
+
});
|
|
1535
|
+
},
|
|
1536
|
+
};
|
|
1537
|
+
};
|
|
1538
|
+
exports.CollaborationContextsApiFp = CollaborationContextsApiFp;
|
|
1539
|
+
/**
|
|
1540
|
+
* CollaborationContextsApi - factory interface
|
|
1541
|
+
* @export
|
|
1542
|
+
*/
|
|
1543
|
+
const CollaborationContextsApiFactory = function (configuration, basePath, axios) {
|
|
1544
|
+
const localVarFp = (0, exports.CollaborationContextsApiFp)(configuration);
|
|
1545
|
+
return {
|
|
1546
|
+
/**
|
|
1547
|
+
* Create a `collaboration-context`.
|
|
1548
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1549
|
+
* @param {UserGroupIdsList} userGroupIdsList
|
|
1550
|
+
* @param {*} [options] Override http request option.
|
|
1551
|
+
* @throws {RequiredError}
|
|
1552
|
+
*/
|
|
1553
|
+
addCollaborationContextUserGroups(id, userGroupIdsList, options) {
|
|
1554
|
+
return localVarFp
|
|
1555
|
+
.addCollaborationContextUserGroups(id, userGroupIdsList, options)
|
|
1556
|
+
.then((request) => request(axios, basePath));
|
|
1557
|
+
},
|
|
1558
|
+
/**
|
|
1559
|
+
* Create a `collaboration-context`.
|
|
1560
|
+
* @param {CreateCollaborationContextRequest} createCollaborationContextRequest
|
|
1561
|
+
* @param {*} [options] Override http request option.
|
|
1562
|
+
* @throws {RequiredError}
|
|
1563
|
+
*/
|
|
1564
|
+
createCollaborationContext(createCollaborationContextRequest, options) {
|
|
1565
|
+
return localVarFp
|
|
1566
|
+
.createCollaborationContext(createCollaborationContextRequest, options)
|
|
1567
|
+
.then((request) => request(axios, basePath));
|
|
1568
|
+
},
|
|
1569
|
+
/**
|
|
1570
|
+
* Get a `collaboration-context` by ID.
|
|
1571
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1572
|
+
* @param {*} [options] Override http request option.
|
|
1573
|
+
* @throws {RequiredError}
|
|
1574
|
+
*/
|
|
1575
|
+
getCollaborationContext(id, options) {
|
|
1576
|
+
return localVarFp
|
|
1577
|
+
.getCollaborationContext(id, options)
|
|
1578
|
+
.then((request) => request(axios, basePath));
|
|
1579
|
+
},
|
|
1580
|
+
/**
|
|
1581
|
+
* List `collaboration-context`s
|
|
1582
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1583
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1584
|
+
* @param {*} [options] Override http request option.
|
|
1585
|
+
* @throws {RequiredError}
|
|
1586
|
+
*/
|
|
1587
|
+
listCollaborationContexts(pageCursor, pageSize, options) {
|
|
1588
|
+
return localVarFp
|
|
1589
|
+
.listCollaborationContexts(pageCursor, pageSize, options)
|
|
1590
|
+
.then((request) => request(axios, basePath));
|
|
1591
|
+
},
|
|
1592
|
+
};
|
|
1593
|
+
};
|
|
1594
|
+
exports.CollaborationContextsApiFactory = CollaborationContextsApiFactory;
|
|
1595
|
+
/**
|
|
1596
|
+
* CollaborationContextsApi - object-oriented interface
|
|
1597
|
+
* @export
|
|
1598
|
+
* @class CollaborationContextsApi
|
|
1599
|
+
* @extends {BaseAPI}
|
|
1600
|
+
*/
|
|
1601
|
+
class CollaborationContextsApi extends base_1.BaseAPI {
|
|
1602
|
+
/**
|
|
1603
|
+
* Create a `collaboration-context`.
|
|
1604
|
+
* @param {CollaborationContextsApiAddCollaborationContextUserGroupsRequest} requestParameters Request parameters.
|
|
1605
|
+
* @param {*} [options] Override http request option.
|
|
1606
|
+
* @throws {RequiredError}
|
|
1607
|
+
* @memberof CollaborationContextsApi
|
|
1608
|
+
*/
|
|
1609
|
+
addCollaborationContextUserGroups(requestParameters, options) {
|
|
1610
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1611
|
+
.addCollaborationContextUserGroups(requestParameters.id, requestParameters.userGroupIdsList, options)
|
|
1612
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1613
|
+
}
|
|
1614
|
+
/**
|
|
1615
|
+
* Create a `collaboration-context`.
|
|
1616
|
+
* @param {CollaborationContextsApiCreateCollaborationContextRequest} requestParameters Request parameters.
|
|
1617
|
+
* @param {*} [options] Override http request option.
|
|
1618
|
+
* @throws {RequiredError}
|
|
1619
|
+
* @memberof CollaborationContextsApi
|
|
1620
|
+
*/
|
|
1621
|
+
createCollaborationContext(requestParameters, options) {
|
|
1622
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1623
|
+
.createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
|
|
1624
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Get a `collaboration-context` by ID.
|
|
1628
|
+
* @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
* @memberof CollaborationContextsApi
|
|
1632
|
+
*/
|
|
1633
|
+
getCollaborationContext(requestParameters, options) {
|
|
1634
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1635
|
+
.getCollaborationContext(requestParameters.id, options)
|
|
1636
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1637
|
+
}
|
|
1638
|
+
/**
|
|
1639
|
+
* List `collaboration-context`s
|
|
1640
|
+
* @param {CollaborationContextsApiListCollaborationContextsRequest} requestParameters Request parameters.
|
|
1641
|
+
* @param {*} [options] Override http request option.
|
|
1642
|
+
* @throws {RequiredError}
|
|
1643
|
+
* @memberof CollaborationContextsApi
|
|
1644
|
+
*/
|
|
1645
|
+
listCollaborationContexts(requestParameters = {}, options) {
|
|
1646
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1647
|
+
.listCollaborationContexts(requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1648
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
exports.CollaborationContextsApi = CollaborationContextsApi;
|
|
1279
1652
|
/**
|
|
1280
1653
|
* ExportsApi - axios parameter creator
|
|
1281
1654
|
* @export
|
|
@@ -3648,11 +4021,13 @@ const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
|
3648
4021
|
* @param {string} [scope]
|
|
3649
4022
|
* @param {string} [code]
|
|
3650
4023
|
* @param {string} [redirectUri]
|
|
4024
|
+
* @param {string} [subjectTokenType]
|
|
3651
4025
|
* @param {string} [refreshToken]
|
|
4026
|
+
* @param {string} [subjectToken]
|
|
3652
4027
|
* @param {*} [options] Override http request option.
|
|
3653
4028
|
* @throws {RequiredError}
|
|
3654
4029
|
*/
|
|
3655
|
-
createToken: (grantType, scope, code, redirectUri, refreshToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4030
|
+
createToken: (grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3656
4031
|
var _c;
|
|
3657
4032
|
// verify required parameter 'grantType' is not null or undefined
|
|
3658
4033
|
(0, common_1.assertParamExists)('createToken', 'grantType', grantType);
|
|
@@ -3682,9 +4057,15 @@ const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
|
3682
4057
|
if (grantType !== undefined) {
|
|
3683
4058
|
localVarFormParams.set('grant_type', grantType);
|
|
3684
4059
|
}
|
|
4060
|
+
if (subjectTokenType !== undefined) {
|
|
4061
|
+
localVarFormParams.set('subject_token_type', subjectTokenType);
|
|
4062
|
+
}
|
|
3685
4063
|
if (refreshToken !== undefined) {
|
|
3686
4064
|
localVarFormParams.set('refresh_token', refreshToken);
|
|
3687
4065
|
}
|
|
4066
|
+
if (subjectToken !== undefined) {
|
|
4067
|
+
localVarFormParams.set('subject_token', subjectToken);
|
|
4068
|
+
}
|
|
3688
4069
|
localVarHeaderParameter['Content-Type'] =
|
|
3689
4070
|
'application/x-www-form-urlencoded';
|
|
3690
4071
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -3771,13 +4152,15 @@ const Oauth2ApiFp = function (configuration) {
|
|
|
3771
4152
|
* @param {string} [scope]
|
|
3772
4153
|
* @param {string} [code]
|
|
3773
4154
|
* @param {string} [redirectUri]
|
|
4155
|
+
* @param {string} [subjectTokenType]
|
|
3774
4156
|
* @param {string} [refreshToken]
|
|
4157
|
+
* @param {string} [subjectToken]
|
|
3775
4158
|
* @param {*} [options] Override http request option.
|
|
3776
4159
|
* @throws {RequiredError}
|
|
3777
4160
|
*/
|
|
3778
|
-
createToken(grantType, scope, code, redirectUri, refreshToken, options) {
|
|
4161
|
+
createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
|
|
3779
4162
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3780
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, refreshToken, options);
|
|
4163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options);
|
|
3781
4164
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3782
4165
|
});
|
|
3783
4166
|
},
|
|
@@ -3833,13 +4216,15 @@ const Oauth2ApiFactory = function (configuration, basePath, axios) {
|
|
|
3833
4216
|
* @param {string} [scope]
|
|
3834
4217
|
* @param {string} [code]
|
|
3835
4218
|
* @param {string} [redirectUri]
|
|
4219
|
+
* @param {string} [subjectTokenType]
|
|
3836
4220
|
* @param {string} [refreshToken]
|
|
4221
|
+
* @param {string} [subjectToken]
|
|
3837
4222
|
* @param {*} [options] Override http request option.
|
|
3838
4223
|
* @throws {RequiredError}
|
|
3839
4224
|
*/
|
|
3840
|
-
createToken(grantType, scope, code, redirectUri, refreshToken, options) {
|
|
4225
|
+
createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
|
|
3841
4226
|
return localVarFp
|
|
3842
|
-
.createToken(grantType, scope, code, redirectUri, refreshToken, options)
|
|
4227
|
+
.createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options)
|
|
3843
4228
|
.then((request) => request(axios, basePath));
|
|
3844
4229
|
},
|
|
3845
4230
|
/**
|
|
@@ -3896,7 +4281,7 @@ class Oauth2Api extends base_1.BaseAPI {
|
|
|
3896
4281
|
*/
|
|
3897
4282
|
createToken(requestParameters, options) {
|
|
3898
4283
|
return (0, exports.Oauth2ApiFp)(this.configuration)
|
|
3899
|
-
.createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options)
|
|
4284
|
+
.createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.subjectTokenType, requestParameters.refreshToken, requestParameters.subjectToken, options)
|
|
3900
4285
|
.then((request) => request(this.axios, this.basePath));
|
|
3901
4286
|
}
|
|
3902
4287
|
/**
|
|
@@ -5866,22 +6251,290 @@ class PropertyEntriesApi extends base_1.BaseAPI {
|
|
|
5866
6251
|
}
|
|
5867
6252
|
exports.PropertyEntriesApi = PropertyEntriesApi;
|
|
5868
6253
|
/**
|
|
5869
|
-
*
|
|
6254
|
+
* RepliesApi - axios parameter creator
|
|
5870
6255
|
* @export
|
|
5871
6256
|
*/
|
|
5872
|
-
const
|
|
6257
|
+
const RepliesApiAxiosParamCreator = function (configuration) {
|
|
5873
6258
|
return {
|
|
5874
6259
|
/**
|
|
5875
|
-
* Create a `
|
|
5876
|
-
* @param {string} id The `
|
|
5877
|
-
* @param {
|
|
6260
|
+
* Create a `reply` belonging to a `thread`.
|
|
6261
|
+
* @param {string} id The `thread` ID.
|
|
6262
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
5878
6263
|
* @param {*} [options] Override http request option.
|
|
5879
6264
|
* @throws {RequiredError}
|
|
5880
6265
|
*/
|
|
5881
|
-
|
|
6266
|
+
createReply: (id, createReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5882
6267
|
var _a;
|
|
5883
6268
|
// verify required parameter 'id' is not null or undefined
|
|
5884
|
-
(0, common_1.assertParamExists)('
|
|
6269
|
+
(0, common_1.assertParamExists)('createReply', 'id', id);
|
|
6270
|
+
// verify required parameter 'createReplyRequest' is not null or undefined
|
|
6271
|
+
(0, common_1.assertParamExists)('createReply', 'createReplyRequest', createReplyRequest);
|
|
6272
|
+
const localVarPath = `/threads/{id}/replies`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6273
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6274
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6275
|
+
let baseOptions;
|
|
6276
|
+
if (configuration) {
|
|
6277
|
+
baseOptions = configuration.baseOptions;
|
|
6278
|
+
}
|
|
6279
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6280
|
+
const localVarHeaderParameter = {};
|
|
6281
|
+
const localVarQueryParameter = {};
|
|
6282
|
+
// authentication OAuth2 required
|
|
6283
|
+
// oauth required
|
|
6284
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6285
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
6286
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6287
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
6288
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6289
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createReplyRequest, localVarRequestOptions, configuration);
|
|
6290
|
+
return {
|
|
6291
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6292
|
+
options: localVarRequestOptions,
|
|
6293
|
+
};
|
|
6294
|
+
}),
|
|
6295
|
+
/**
|
|
6296
|
+
* Get a `reply`.
|
|
6297
|
+
* @param {string} id The `thread` ID.
|
|
6298
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6299
|
+
* @param {*} [options] Override http request option.
|
|
6300
|
+
* @throws {RequiredError}
|
|
6301
|
+
*/
|
|
6302
|
+
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6303
|
+
var _b;
|
|
6304
|
+
// verify required parameter 'id' is not null or undefined
|
|
6305
|
+
(0, common_1.assertParamExists)('getReply', 'id', id);
|
|
6306
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6308
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6309
|
+
let baseOptions;
|
|
6310
|
+
if (configuration) {
|
|
6311
|
+
baseOptions = configuration.baseOptions;
|
|
6312
|
+
}
|
|
6313
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6314
|
+
const localVarHeaderParameter = {};
|
|
6315
|
+
const localVarQueryParameter = {};
|
|
6316
|
+
// authentication OAuth2 required
|
|
6317
|
+
// oauth required
|
|
6318
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6319
|
+
if (include !== undefined) {
|
|
6320
|
+
localVarQueryParameter['include'] = include;
|
|
6321
|
+
}
|
|
6322
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6323
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
6324
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6325
|
+
return {
|
|
6326
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6327
|
+
options: localVarRequestOptions,
|
|
6328
|
+
};
|
|
6329
|
+
}),
|
|
6330
|
+
/**
|
|
6331
|
+
* List `replies`
|
|
6332
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6333
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6334
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6335
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6336
|
+
* @param {*} [options] Override http request option.
|
|
6337
|
+
* @throws {RequiredError}
|
|
6338
|
+
*/
|
|
6339
|
+
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6340
|
+
var _c;
|
|
6341
|
+
const localVarPath = `/replies`;
|
|
6342
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6343
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6344
|
+
let baseOptions;
|
|
6345
|
+
if (configuration) {
|
|
6346
|
+
baseOptions = configuration.baseOptions;
|
|
6347
|
+
}
|
|
6348
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6349
|
+
const localVarHeaderParameter = {};
|
|
6350
|
+
const localVarQueryParameter = {};
|
|
6351
|
+
// authentication OAuth2 required
|
|
6352
|
+
// oauth required
|
|
6353
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6354
|
+
if (filterThreadId !== undefined) {
|
|
6355
|
+
localVarQueryParameter['filter[threadId]'] = filterThreadId;
|
|
6356
|
+
}
|
|
6357
|
+
if (pageCursor !== undefined) {
|
|
6358
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
6359
|
+
}
|
|
6360
|
+
if (pageSize !== undefined) {
|
|
6361
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
6362
|
+
}
|
|
6363
|
+
if (include !== undefined) {
|
|
6364
|
+
localVarQueryParameter['include'] = include;
|
|
6365
|
+
}
|
|
6366
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6367
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6368
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6369
|
+
return {
|
|
6370
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6371
|
+
options: localVarRequestOptions,
|
|
6372
|
+
};
|
|
6373
|
+
}),
|
|
6374
|
+
};
|
|
6375
|
+
};
|
|
6376
|
+
exports.RepliesApiAxiosParamCreator = RepliesApiAxiosParamCreator;
|
|
6377
|
+
/**
|
|
6378
|
+
* RepliesApi - functional programming interface
|
|
6379
|
+
* @export
|
|
6380
|
+
*/
|
|
6381
|
+
const RepliesApiFp = function (configuration) {
|
|
6382
|
+
const localVarAxiosParamCreator = (0, exports.RepliesApiAxiosParamCreator)(configuration);
|
|
6383
|
+
return {
|
|
6384
|
+
/**
|
|
6385
|
+
* Create a `reply` belonging to a `thread`.
|
|
6386
|
+
* @param {string} id The `thread` ID.
|
|
6387
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6388
|
+
* @param {*} [options] Override http request option.
|
|
6389
|
+
* @throws {RequiredError}
|
|
6390
|
+
*/
|
|
6391
|
+
createReply(id, createReplyRequest, options) {
|
|
6392
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6393
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createReply(id, createReplyRequest, options);
|
|
6394
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6395
|
+
});
|
|
6396
|
+
},
|
|
6397
|
+
/**
|
|
6398
|
+
* Get a `reply`.
|
|
6399
|
+
* @param {string} id The `thread` ID.
|
|
6400
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6401
|
+
* @param {*} [options] Override http request option.
|
|
6402
|
+
* @throws {RequiredError}
|
|
6403
|
+
*/
|
|
6404
|
+
getReply(id, include, options) {
|
|
6405
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6406
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReply(id, include, options);
|
|
6407
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6408
|
+
});
|
|
6409
|
+
},
|
|
6410
|
+
/**
|
|
6411
|
+
* List `replies`
|
|
6412
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6413
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6414
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6415
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6416
|
+
* @param {*} [options] Override http request option.
|
|
6417
|
+
* @throws {RequiredError}
|
|
6418
|
+
*/
|
|
6419
|
+
listReplies(filterThreadId, pageCursor, pageSize, include, options) {
|
|
6420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6421
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReplies(filterThreadId, pageCursor, pageSize, include, options);
|
|
6422
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6423
|
+
});
|
|
6424
|
+
},
|
|
6425
|
+
};
|
|
6426
|
+
};
|
|
6427
|
+
exports.RepliesApiFp = RepliesApiFp;
|
|
6428
|
+
/**
|
|
6429
|
+
* RepliesApi - factory interface
|
|
6430
|
+
* @export
|
|
6431
|
+
*/
|
|
6432
|
+
const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
6433
|
+
const localVarFp = (0, exports.RepliesApiFp)(configuration);
|
|
6434
|
+
return {
|
|
6435
|
+
/**
|
|
6436
|
+
* Create a `reply` belonging to a `thread`.
|
|
6437
|
+
* @param {string} id The `thread` ID.
|
|
6438
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6439
|
+
* @param {*} [options] Override http request option.
|
|
6440
|
+
* @throws {RequiredError}
|
|
6441
|
+
*/
|
|
6442
|
+
createReply(id, createReplyRequest, options) {
|
|
6443
|
+
return localVarFp
|
|
6444
|
+
.createReply(id, createReplyRequest, options)
|
|
6445
|
+
.then((request) => request(axios, basePath));
|
|
6446
|
+
},
|
|
6447
|
+
/**
|
|
6448
|
+
* Get a `reply`.
|
|
6449
|
+
* @param {string} id The `thread` ID.
|
|
6450
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6451
|
+
* @param {*} [options] Override http request option.
|
|
6452
|
+
* @throws {RequiredError}
|
|
6453
|
+
*/
|
|
6454
|
+
getReply(id, include, options) {
|
|
6455
|
+
return localVarFp
|
|
6456
|
+
.getReply(id, include, options)
|
|
6457
|
+
.then((request) => request(axios, basePath));
|
|
6458
|
+
},
|
|
6459
|
+
/**
|
|
6460
|
+
* List `replies`
|
|
6461
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6462
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6463
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6464
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6465
|
+
* @param {*} [options] Override http request option.
|
|
6466
|
+
* @throws {RequiredError}
|
|
6467
|
+
*/
|
|
6468
|
+
listReplies(filterThreadId, pageCursor, pageSize, include, options) {
|
|
6469
|
+
return localVarFp
|
|
6470
|
+
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6471
|
+
.then((request) => request(axios, basePath));
|
|
6472
|
+
},
|
|
6473
|
+
};
|
|
6474
|
+
};
|
|
6475
|
+
exports.RepliesApiFactory = RepliesApiFactory;
|
|
6476
|
+
/**
|
|
6477
|
+
* RepliesApi - object-oriented interface
|
|
6478
|
+
* @export
|
|
6479
|
+
* @class RepliesApi
|
|
6480
|
+
* @extends {BaseAPI}
|
|
6481
|
+
*/
|
|
6482
|
+
class RepliesApi extends base_1.BaseAPI {
|
|
6483
|
+
/**
|
|
6484
|
+
* Create a `reply` belonging to a `thread`.
|
|
6485
|
+
* @param {RepliesApiCreateReplyRequest} requestParameters Request parameters.
|
|
6486
|
+
* @param {*} [options] Override http request option.
|
|
6487
|
+
* @throws {RequiredError}
|
|
6488
|
+
* @memberof RepliesApi
|
|
6489
|
+
*/
|
|
6490
|
+
createReply(requestParameters, options) {
|
|
6491
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
6492
|
+
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6493
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6494
|
+
}
|
|
6495
|
+
/**
|
|
6496
|
+
* Get a `reply`.
|
|
6497
|
+
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
6498
|
+
* @param {*} [options] Override http request option.
|
|
6499
|
+
* @throws {RequiredError}
|
|
6500
|
+
* @memberof RepliesApi
|
|
6501
|
+
*/
|
|
6502
|
+
getReply(requestParameters, options) {
|
|
6503
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
6504
|
+
.getReply(requestParameters.id, requestParameters.include, options)
|
|
6505
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6506
|
+
}
|
|
6507
|
+
/**
|
|
6508
|
+
* List `replies`
|
|
6509
|
+
* @param {RepliesApiListRepliesRequest} requestParameters Request parameters.
|
|
6510
|
+
* @param {*} [options] Override http request option.
|
|
6511
|
+
* @throws {RequiredError}
|
|
6512
|
+
* @memberof RepliesApi
|
|
6513
|
+
*/
|
|
6514
|
+
listReplies(requestParameters = {}, options) {
|
|
6515
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
6516
|
+
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6517
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6518
|
+
}
|
|
6519
|
+
}
|
|
6520
|
+
exports.RepliesApi = RepliesApi;
|
|
6521
|
+
/**
|
|
6522
|
+
* SceneAlterationsApi - axios parameter creator
|
|
6523
|
+
* @export
|
|
6524
|
+
*/
|
|
6525
|
+
const SceneAlterationsApiAxiosParamCreator = function (configuration) {
|
|
6526
|
+
return {
|
|
6527
|
+
/**
|
|
6528
|
+
* Create a `scene-alteration` for a `scene-view`.
|
|
6529
|
+
* @param {string} id The `scene-view` ID.
|
|
6530
|
+
* @param {CreateSceneAlterationRequest | CreateSceneExpressionAlterationRequest} createSceneAlterationRequestCreateSceneExpressionAlterationRequest
|
|
6531
|
+
* @param {*} [options] Override http request option.
|
|
6532
|
+
* @throws {RequiredError}
|
|
6533
|
+
*/
|
|
6534
|
+
createSceneAlteration: (id, createSceneAlterationRequestCreateSceneExpressionAlterationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6535
|
+
var _a;
|
|
6536
|
+
// verify required parameter 'id' is not null or undefined
|
|
6537
|
+
(0, common_1.assertParamExists)('createSceneAlteration', 'id', id);
|
|
5885
6538
|
// verify required parameter 'createSceneAlterationRequestCreateSceneExpressionAlterationRequest' is not null or undefined
|
|
5886
6539
|
(0, common_1.assertParamExists)('createSceneAlteration', 'createSceneAlterationRequestCreateSceneExpressionAlterationRequest', createSceneAlterationRequestCreateSceneExpressionAlterationRequest);
|
|
5887
6540
|
const localVarPath = `/scene-views/{id}/scene-alterations`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -7093,10 +7746,12 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7093
7746
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7094
7747
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7095
7748
|
* @param {string} [filterParent] Parent ID to filter on.
|
|
7749
|
+
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7750
|
+
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7096
7751
|
* @param {*} [options] Override http request option.
|
|
7097
7752
|
* @throws {RequiredError}
|
|
7098
7753
|
*/
|
|
7099
|
-
getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7754
|
+
getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7100
7755
|
var _f;
|
|
7101
7756
|
// verify required parameter 'id' is not null or undefined
|
|
7102
7757
|
(0, common_1.assertParamExists)('getSceneItems', 'id', id);
|
|
@@ -7128,6 +7783,12 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7128
7783
|
if (filterParent !== undefined) {
|
|
7129
7784
|
localVarQueryParameter['filter[parent]'] = filterParent;
|
|
7130
7785
|
}
|
|
7786
|
+
if (filterHasChildren !== undefined) {
|
|
7787
|
+
localVarQueryParameter['filter[hasChildren]'] = filterHasChildren;
|
|
7788
|
+
}
|
|
7789
|
+
if (filterHasGeometrySet !== undefined) {
|
|
7790
|
+
localVarQueryParameter['filter[hasGeometrySet]'] = filterHasGeometrySet;
|
|
7791
|
+
}
|
|
7131
7792
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7132
7793
|
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
7133
7794
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7252,12 +7913,14 @@ const SceneItemsApiFp = function (configuration) {
|
|
|
7252
7913
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7253
7914
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7254
7915
|
* @param {string} [filterParent] Parent ID to filter on.
|
|
7916
|
+
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7917
|
+
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7255
7918
|
* @param {*} [options] Override http request option.
|
|
7256
7919
|
* @throws {RequiredError}
|
|
7257
7920
|
*/
|
|
7258
|
-
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
|
|
7921
|
+
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
|
|
7259
7922
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7260
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options);
|
|
7923
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options);
|
|
7261
7924
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7262
7925
|
});
|
|
7263
7926
|
},
|
|
@@ -7349,12 +8012,14 @@ const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
7349
8012
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7350
8013
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7351
8014
|
* @param {string} [filterParent] Parent ID to filter on.
|
|
8015
|
+
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8016
|
+
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7352
8017
|
* @param {*} [options] Override http request option.
|
|
7353
8018
|
* @throws {RequiredError}
|
|
7354
8019
|
*/
|
|
7355
|
-
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options) {
|
|
8020
|
+
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
|
|
7356
8021
|
return localVarFp
|
|
7357
|
-
.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, options)
|
|
8022
|
+
.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options)
|
|
7358
8023
|
.then((request) => request(axios, basePath));
|
|
7359
8024
|
},
|
|
7360
8025
|
/**
|
|
@@ -7448,7 +8113,7 @@ class SceneItemsApi extends base_1.BaseAPI {
|
|
|
7448
8113
|
*/
|
|
7449
8114
|
getSceneItems(requestParameters, options) {
|
|
7450
8115
|
return (0, exports.SceneItemsApiFp)(this.configuration)
|
|
7451
|
-
.getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, options)
|
|
8116
|
+
.getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, options)
|
|
7452
8117
|
.then((request) => request(this.axios, this.basePath));
|
|
7453
8118
|
}
|
|
7454
8119
|
/**
|
|
@@ -9777,22 +10442,25 @@ class StreamKeysApi extends base_1.BaseAPI {
|
|
|
9777
10442
|
}
|
|
9778
10443
|
exports.StreamKeysApi = StreamKeysApi;
|
|
9779
10444
|
/**
|
|
9780
|
-
*
|
|
10445
|
+
* ThreadsApi - axios parameter creator
|
|
9781
10446
|
* @export
|
|
9782
10447
|
*/
|
|
9783
|
-
const
|
|
10448
|
+
const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
9784
10449
|
return {
|
|
9785
10450
|
/**
|
|
9786
|
-
* Create a `
|
|
9787
|
-
* @param {
|
|
10451
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10452
|
+
* @param {string} id The `collaboration-context` ID.
|
|
10453
|
+
* @param {CreateThreadRequest} createThreadRequest
|
|
9788
10454
|
* @param {*} [options] Override http request option.
|
|
9789
10455
|
* @throws {RequiredError}
|
|
9790
10456
|
*/
|
|
9791
|
-
|
|
10457
|
+
createThread: (id, createThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
9792
10458
|
var _a;
|
|
9793
|
-
// verify required parameter '
|
|
9794
|
-
(0, common_1.assertParamExists)('
|
|
9795
|
-
|
|
10459
|
+
// verify required parameter 'id' is not null or undefined
|
|
10460
|
+
(0, common_1.assertParamExists)('createThread', 'id', id);
|
|
10461
|
+
// verify required parameter 'createThreadRequest' is not null or undefined
|
|
10462
|
+
(0, common_1.assertParamExists)('createThread', 'createThreadRequest', createThreadRequest);
|
|
10463
|
+
const localVarPath = `/collaboration-contexts/{id}/threads`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
9796
10464
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9797
10465
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9798
10466
|
let baseOptions;
|
|
@@ -9809,23 +10477,25 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9809
10477
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9810
10478
|
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
9811
10479
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9812
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
10480
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createThreadRequest, localVarRequestOptions, configuration);
|
|
9813
10481
|
return {
|
|
9814
10482
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9815
10483
|
options: localVarRequestOptions,
|
|
9816
10484
|
};
|
|
9817
10485
|
}),
|
|
9818
10486
|
/**
|
|
9819
|
-
* Get a `
|
|
9820
|
-
* @param {string} id The `
|
|
10487
|
+
* Get a `thread`.
|
|
10488
|
+
* @param {string} id The `thread` ID.
|
|
10489
|
+
* @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
|
|
10490
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
9821
10491
|
* @param {*} [options] Override http request option.
|
|
9822
10492
|
* @throws {RequiredError}
|
|
9823
10493
|
*/
|
|
9824
|
-
|
|
10494
|
+
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
9825
10495
|
var _b;
|
|
9826
10496
|
// verify required parameter 'id' is not null or undefined
|
|
9827
|
-
(0, common_1.assertParamExists)('
|
|
9828
|
-
const localVarPath = `/
|
|
10497
|
+
(0, common_1.assertParamExists)('getThread', 'id', id);
|
|
10498
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
9829
10499
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9830
10500
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9831
10501
|
let baseOptions;
|
|
@@ -9838,6 +10508,12 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9838
10508
|
// authentication OAuth2 required
|
|
9839
10509
|
// oauth required
|
|
9840
10510
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10511
|
+
if (fieldsThread !== undefined) {
|
|
10512
|
+
localVarQueryParameter['fields[thread]'] = fieldsThread;
|
|
10513
|
+
}
|
|
10514
|
+
if (include !== undefined) {
|
|
10515
|
+
localVarQueryParameter['include'] = include;
|
|
10516
|
+
}
|
|
9841
10517
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9842
10518
|
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
9843
10519
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9847,17 +10523,18 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9847
10523
|
};
|
|
9848
10524
|
}),
|
|
9849
10525
|
/**
|
|
9850
|
-
*
|
|
9851
|
-
* @param {string}
|
|
10526
|
+
* Get a page of `thread`s.
|
|
10527
|
+
* @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
|
|
10528
|
+
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10529
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10530
|
+
* @param {number} [pageSize] The number of items to return.
|
|
10531
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
9852
10532
|
* @param {*} [options] Override http request option.
|
|
9853
|
-
* @deprecated
|
|
9854
10533
|
* @throws {RequiredError}
|
|
9855
10534
|
*/
|
|
9856
|
-
|
|
10535
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
9857
10536
|
var _c;
|
|
9858
|
-
|
|
9859
|
-
(0, common_1.assertParamExists)('getQueuedTranslation', 'id', id);
|
|
9860
|
-
const localVarPath = `/queued-translations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10537
|
+
const localVarPath = `/threads`;
|
|
9861
10538
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9862
10539
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9863
10540
|
let baseOptions;
|
|
@@ -9870,6 +10547,22 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9870
10547
|
// authentication OAuth2 required
|
|
9871
10548
|
// oauth required
|
|
9872
10549
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10550
|
+
if (fieldsThread !== undefined) {
|
|
10551
|
+
localVarQueryParameter['fields[thread]'] = fieldsThread;
|
|
10552
|
+
}
|
|
10553
|
+
if (filterCollaborationContextId !== undefined) {
|
|
10554
|
+
localVarQueryParameter['filter[collaborationContextId]'] =
|
|
10555
|
+
filterCollaborationContextId;
|
|
10556
|
+
}
|
|
10557
|
+
if (pageCursor !== undefined) {
|
|
10558
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
10559
|
+
}
|
|
10560
|
+
if (pageSize !== undefined) {
|
|
10561
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
10562
|
+
}
|
|
10563
|
+
if (include !== undefined) {
|
|
10564
|
+
localVarQueryParameter['include'] = include;
|
|
10565
|
+
}
|
|
9873
10566
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9874
10567
|
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
9875
10568
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -9878,21 +10571,274 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
9878
10571
|
options: localVarRequestOptions,
|
|
9879
10572
|
};
|
|
9880
10573
|
}),
|
|
10574
|
+
};
|
|
10575
|
+
};
|
|
10576
|
+
exports.ThreadsApiAxiosParamCreator = ThreadsApiAxiosParamCreator;
|
|
10577
|
+
/**
|
|
10578
|
+
* ThreadsApi - functional programming interface
|
|
10579
|
+
* @export
|
|
10580
|
+
*/
|
|
10581
|
+
const ThreadsApiFp = function (configuration) {
|
|
10582
|
+
const localVarAxiosParamCreator = (0, exports.ThreadsApiAxiosParamCreator)(configuration);
|
|
10583
|
+
return {
|
|
9881
10584
|
/**
|
|
9882
|
-
*
|
|
9883
|
-
* @param {string} id The `
|
|
10585
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10586
|
+
* @param {string} id The `collaboration-context` ID.
|
|
10587
|
+
* @param {CreateThreadRequest} createThreadRequest
|
|
9884
10588
|
* @param {*} [options] Override http request option.
|
|
9885
10589
|
* @throws {RequiredError}
|
|
9886
10590
|
*/
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
10591
|
+
createThread(id, createThreadRequest, options) {
|
|
10592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10593
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createThread(id, createThreadRequest, options);
|
|
10594
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10595
|
+
});
|
|
10596
|
+
},
|
|
10597
|
+
/**
|
|
10598
|
+
* Get a `thread`.
|
|
10599
|
+
* @param {string} id The `thread` ID.
|
|
10600
|
+
* @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
|
|
10601
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10602
|
+
* @param {*} [options] Override http request option.
|
|
10603
|
+
* @throws {RequiredError}
|
|
10604
|
+
*/
|
|
10605
|
+
getThread(id, fieldsThread, include, options) {
|
|
10606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10607
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, fieldsThread, include, options);
|
|
10608
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10609
|
+
});
|
|
10610
|
+
},
|
|
10611
|
+
/**
|
|
10612
|
+
* Get a page of `thread`s.
|
|
10613
|
+
* @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
|
|
10614
|
+
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10615
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10616
|
+
* @param {number} [pageSize] The number of items to return.
|
|
10617
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10618
|
+
* @param {*} [options] Override http request option.
|
|
10619
|
+
* @throws {RequiredError}
|
|
10620
|
+
*/
|
|
10621
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
|
|
10622
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10623
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options);
|
|
10624
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10625
|
+
});
|
|
10626
|
+
},
|
|
10627
|
+
};
|
|
10628
|
+
};
|
|
10629
|
+
exports.ThreadsApiFp = ThreadsApiFp;
|
|
10630
|
+
/**
|
|
10631
|
+
* ThreadsApi - factory interface
|
|
10632
|
+
* @export
|
|
10633
|
+
*/
|
|
10634
|
+
const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
10635
|
+
const localVarFp = (0, exports.ThreadsApiFp)(configuration);
|
|
10636
|
+
return {
|
|
10637
|
+
/**
|
|
10638
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10639
|
+
* @param {string} id The `collaboration-context` ID.
|
|
10640
|
+
* @param {CreateThreadRequest} createThreadRequest
|
|
10641
|
+
* @param {*} [options] Override http request option.
|
|
10642
|
+
* @throws {RequiredError}
|
|
10643
|
+
*/
|
|
10644
|
+
createThread(id, createThreadRequest, options) {
|
|
10645
|
+
return localVarFp
|
|
10646
|
+
.createThread(id, createThreadRequest, options)
|
|
10647
|
+
.then((request) => request(axios, basePath));
|
|
10648
|
+
},
|
|
10649
|
+
/**
|
|
10650
|
+
* Get a `thread`.
|
|
10651
|
+
* @param {string} id The `thread` ID.
|
|
10652
|
+
* @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
|
|
10653
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10654
|
+
* @param {*} [options] Override http request option.
|
|
10655
|
+
* @throws {RequiredError}
|
|
10656
|
+
*/
|
|
10657
|
+
getThread(id, fieldsThread, include, options) {
|
|
10658
|
+
return localVarFp
|
|
10659
|
+
.getThread(id, fieldsThread, include, options)
|
|
10660
|
+
.then((request) => request(axios, basePath));
|
|
10661
|
+
},
|
|
10662
|
+
/**
|
|
10663
|
+
* Get a page of `thread`s.
|
|
10664
|
+
* @param {string} [fieldsThread] Comma-separated list of fields to return in response. An empty value returns no fields. Due to its potential size, metadata is only returned if explicitly requested.
|
|
10665
|
+
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10666
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10667
|
+
* @param {number} [pageSize] The number of items to return.
|
|
10668
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10669
|
+
* @param {*} [options] Override http request option.
|
|
10670
|
+
* @throws {RequiredError}
|
|
10671
|
+
*/
|
|
10672
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
|
|
10673
|
+
return localVarFp
|
|
10674
|
+
.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options)
|
|
10675
|
+
.then((request) => request(axios, basePath));
|
|
10676
|
+
},
|
|
10677
|
+
};
|
|
10678
|
+
};
|
|
10679
|
+
exports.ThreadsApiFactory = ThreadsApiFactory;
|
|
10680
|
+
/**
|
|
10681
|
+
* ThreadsApi - object-oriented interface
|
|
10682
|
+
* @export
|
|
10683
|
+
* @class ThreadsApi
|
|
10684
|
+
* @extends {BaseAPI}
|
|
10685
|
+
*/
|
|
10686
|
+
class ThreadsApi extends base_1.BaseAPI {
|
|
10687
|
+
/**
|
|
10688
|
+
* Create a `thread` belonging to a `collaboration-context`.
|
|
10689
|
+
* @param {ThreadsApiCreateThreadRequest} requestParameters Request parameters.
|
|
10690
|
+
* @param {*} [options] Override http request option.
|
|
10691
|
+
* @throws {RequiredError}
|
|
10692
|
+
* @memberof ThreadsApi
|
|
10693
|
+
*/
|
|
10694
|
+
createThread(requestParameters, options) {
|
|
10695
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10696
|
+
.createThread(requestParameters.id, requestParameters.createThreadRequest, options)
|
|
10697
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10698
|
+
}
|
|
10699
|
+
/**
|
|
10700
|
+
* Get a `thread`.
|
|
10701
|
+
* @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
|
|
10702
|
+
* @param {*} [options] Override http request option.
|
|
10703
|
+
* @throws {RequiredError}
|
|
10704
|
+
* @memberof ThreadsApi
|
|
10705
|
+
*/
|
|
10706
|
+
getThread(requestParameters, options) {
|
|
10707
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10708
|
+
.getThread(requestParameters.id, requestParameters.fieldsThread, requestParameters.include, options)
|
|
10709
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10710
|
+
}
|
|
10711
|
+
/**
|
|
10712
|
+
* Get a page of `thread`s.
|
|
10713
|
+
* @param {ThreadsApiGetThreadsRequest} requestParameters Request parameters.
|
|
10714
|
+
* @param {*} [options] Override http request option.
|
|
10715
|
+
* @throws {RequiredError}
|
|
10716
|
+
* @memberof ThreadsApi
|
|
10717
|
+
*/
|
|
10718
|
+
getThreads(requestParameters = {}, options) {
|
|
10719
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10720
|
+
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
10721
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10722
|
+
}
|
|
10723
|
+
}
|
|
10724
|
+
exports.ThreadsApi = ThreadsApi;
|
|
10725
|
+
/**
|
|
10726
|
+
* TranslationInspectionsApi - axios parameter creator
|
|
10727
|
+
* @export
|
|
10728
|
+
*/
|
|
10729
|
+
const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
10730
|
+
return {
|
|
10731
|
+
/**
|
|
10732
|
+
* Create a `translation-inspection`.
|
|
10733
|
+
* @param {CreateTranslationInspectionRequest} createTranslationInspectionRequest
|
|
10734
|
+
* @param {*} [options] Override http request option.
|
|
10735
|
+
* @throws {RequiredError}
|
|
10736
|
+
*/
|
|
10737
|
+
createTranslationInspection: (createTranslationInspectionRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10738
|
+
var _a;
|
|
10739
|
+
// verify required parameter 'createTranslationInspectionRequest' is not null or undefined
|
|
10740
|
+
(0, common_1.assertParamExists)('createTranslationInspection', 'createTranslationInspectionRequest', createTranslationInspectionRequest);
|
|
10741
|
+
const localVarPath = `/translation-inspections`;
|
|
10742
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10743
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10744
|
+
let baseOptions;
|
|
10745
|
+
if (configuration) {
|
|
10746
|
+
baseOptions = configuration.baseOptions;
|
|
10747
|
+
}
|
|
10748
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
10749
|
+
const localVarHeaderParameter = {};
|
|
10750
|
+
const localVarQueryParameter = {};
|
|
10751
|
+
// authentication OAuth2 required
|
|
10752
|
+
// oauth required
|
|
10753
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10754
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
10755
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10756
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
10757
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10758
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createTranslationInspectionRequest, localVarRequestOptions, configuration);
|
|
10759
|
+
return {
|
|
10760
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10761
|
+
options: localVarRequestOptions,
|
|
10762
|
+
};
|
|
10763
|
+
}),
|
|
10764
|
+
/**
|
|
10765
|
+
* Get a `translation-inspection` by ID.
|
|
10766
|
+
* @param {string} id The `translation-inspection` ID.
|
|
10767
|
+
* @param {*} [options] Override http request option.
|
|
10768
|
+
* @throws {RequiredError}
|
|
10769
|
+
*/
|
|
10770
|
+
getInspectionJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10771
|
+
var _b;
|
|
10772
|
+
// verify required parameter 'id' is not null or undefined
|
|
10773
|
+
(0, common_1.assertParamExists)('getInspectionJob', 'id', id);
|
|
10774
|
+
const localVarPath = `/translation-inspections/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10775
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10776
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10777
|
+
let baseOptions;
|
|
10778
|
+
if (configuration) {
|
|
10779
|
+
baseOptions = configuration.baseOptions;
|
|
10780
|
+
}
|
|
10781
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10782
|
+
const localVarHeaderParameter = {};
|
|
10783
|
+
const localVarQueryParameter = {};
|
|
10784
|
+
// authentication OAuth2 required
|
|
10785
|
+
// oauth required
|
|
10786
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10787
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10788
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10789
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10790
|
+
return {
|
|
10791
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10792
|
+
options: localVarRequestOptions,
|
|
10793
|
+
};
|
|
10794
|
+
}),
|
|
10795
|
+
/**
|
|
10796
|
+
* 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.
|
|
10797
|
+
* @param {string} id The `queued-translation` ID.
|
|
10798
|
+
* @param {*} [options] Override http request option.
|
|
10799
|
+
* @deprecated
|
|
10800
|
+
* @throws {RequiredError}
|
|
10801
|
+
*/
|
|
10802
|
+
getQueuedTranslation: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10803
|
+
var _c;
|
|
10804
|
+
// verify required parameter 'id' is not null or undefined
|
|
10805
|
+
(0, common_1.assertParamExists)('getQueuedTranslation', 'id', id);
|
|
10806
|
+
const localVarPath = `/queued-translations/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10807
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10808
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10809
|
+
let baseOptions;
|
|
10810
|
+
if (configuration) {
|
|
10811
|
+
baseOptions = configuration.baseOptions;
|
|
10812
|
+
}
|
|
10813
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10814
|
+
const localVarHeaderParameter = {};
|
|
10815
|
+
const localVarQueryParameter = {};
|
|
10816
|
+
// authentication OAuth2 required
|
|
10817
|
+
// oauth required
|
|
10818
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10819
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10820
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10821
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10822
|
+
return {
|
|
10823
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10824
|
+
options: localVarRequestOptions,
|
|
10825
|
+
};
|
|
10826
|
+
}),
|
|
10827
|
+
/**
|
|
10828
|
+
* 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.
|
|
10829
|
+
* @param {string} id The `queued-translation` ID.
|
|
10830
|
+
* @param {*} [options] Override http request option.
|
|
10831
|
+
* @throws {RequiredError}
|
|
10832
|
+
*/
|
|
10833
|
+
getQueuedTranslationJob: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10834
|
+
var _d;
|
|
10835
|
+
// verify required parameter 'id' is not null or undefined
|
|
10836
|
+
(0, common_1.assertParamExists)('getQueuedTranslationJob', 'id', id);
|
|
10837
|
+
const localVarPath = `/queued-translation-jobs/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10838
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10839
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10840
|
+
let baseOptions;
|
|
10841
|
+
if (configuration) {
|
|
9896
10842
|
baseOptions = configuration.baseOptions;
|
|
9897
10843
|
}
|
|
9898
10844
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
@@ -10258,6 +11204,580 @@ class TranslationInspectionsApi extends base_1.BaseAPI {
|
|
|
10258
11204
|
}
|
|
10259
11205
|
}
|
|
10260
11206
|
exports.TranslationInspectionsApi = TranslationInspectionsApi;
|
|
11207
|
+
/**
|
|
11208
|
+
* UserGroupsApi - axios parameter creator
|
|
11209
|
+
* @export
|
|
11210
|
+
*/
|
|
11211
|
+
const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
11212
|
+
return {
|
|
11213
|
+
/**
|
|
11214
|
+
* Add a `user` to a `user-group`.
|
|
11215
|
+
* @param {string} id A `user-group` ID.
|
|
11216
|
+
* @param {UserIdList} userIdList
|
|
11217
|
+
* @param {*} [options] Override http request option.
|
|
11218
|
+
* @throws {RequiredError}
|
|
11219
|
+
*/
|
|
11220
|
+
addUsersToUserGroup: (id, userIdList, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11221
|
+
var _a;
|
|
11222
|
+
// verify required parameter 'id' is not null or undefined
|
|
11223
|
+
(0, common_1.assertParamExists)('addUsersToUserGroup', 'id', id);
|
|
11224
|
+
// verify required parameter 'userIdList' is not null or undefined
|
|
11225
|
+
(0, common_1.assertParamExists)('addUsersToUserGroup', 'userIdList', userIdList);
|
|
11226
|
+
const localVarPath = `/user-groups/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11228
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11229
|
+
let baseOptions;
|
|
11230
|
+
if (configuration) {
|
|
11231
|
+
baseOptions = configuration.baseOptions;
|
|
11232
|
+
}
|
|
11233
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11234
|
+
const localVarHeaderParameter = {};
|
|
11235
|
+
const localVarQueryParameter = {};
|
|
11236
|
+
// authentication OAuth2 required
|
|
11237
|
+
// oauth required
|
|
11238
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11239
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11240
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11241
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
11242
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11243
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userIdList, localVarRequestOptions, configuration);
|
|
11244
|
+
return {
|
|
11245
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11246
|
+
options: localVarRequestOptions,
|
|
11247
|
+
};
|
|
11248
|
+
}),
|
|
11249
|
+
/**
|
|
11250
|
+
* Create a `user-group`
|
|
11251
|
+
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
11252
|
+
* @param {*} [options] Override http request option.
|
|
11253
|
+
* @throws {RequiredError}
|
|
11254
|
+
*/
|
|
11255
|
+
createUserGroup: (createUserGroupRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11256
|
+
var _b;
|
|
11257
|
+
// verify required parameter 'createUserGroupRequest' is not null or undefined
|
|
11258
|
+
(0, common_1.assertParamExists)('createUserGroup', 'createUserGroupRequest', createUserGroupRequest);
|
|
11259
|
+
const localVarPath = `/user-groups`;
|
|
11260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11261
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11262
|
+
let baseOptions;
|
|
11263
|
+
if (configuration) {
|
|
11264
|
+
baseOptions = configuration.baseOptions;
|
|
11265
|
+
}
|
|
11266
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11267
|
+
const localVarHeaderParameter = {};
|
|
11268
|
+
const localVarQueryParameter = {};
|
|
11269
|
+
// authentication OAuth2 required
|
|
11270
|
+
// oauth required
|
|
11271
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11272
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11273
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11274
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
11275
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11276
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserGroupRequest, localVarRequestOptions, configuration);
|
|
11277
|
+
return {
|
|
11278
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11279
|
+
options: localVarRequestOptions,
|
|
11280
|
+
};
|
|
11281
|
+
}),
|
|
11282
|
+
/**
|
|
11283
|
+
* Get a `user-group`.
|
|
11284
|
+
* @param {string} id The `user-group` ID.
|
|
11285
|
+
* @param {*} [options] Override http request option.
|
|
11286
|
+
* @throws {RequiredError}
|
|
11287
|
+
*/
|
|
11288
|
+
getUserGroup: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11289
|
+
var _c;
|
|
11290
|
+
// verify required parameter 'id' is not null or undefined
|
|
11291
|
+
(0, common_1.assertParamExists)('getUserGroup', 'id', id);
|
|
11292
|
+
const localVarPath = `/user-groups/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11294
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11295
|
+
let baseOptions;
|
|
11296
|
+
if (configuration) {
|
|
11297
|
+
baseOptions = configuration.baseOptions;
|
|
11298
|
+
}
|
|
11299
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11300
|
+
const localVarHeaderParameter = {};
|
|
11301
|
+
const localVarQueryParameter = {};
|
|
11302
|
+
// authentication OAuth2 required
|
|
11303
|
+
// oauth required
|
|
11304
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11305
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11306
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
11307
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11308
|
+
return {
|
|
11309
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11310
|
+
options: localVarRequestOptions,
|
|
11311
|
+
};
|
|
11312
|
+
}),
|
|
11313
|
+
};
|
|
11314
|
+
};
|
|
11315
|
+
exports.UserGroupsApiAxiosParamCreator = UserGroupsApiAxiosParamCreator;
|
|
11316
|
+
/**
|
|
11317
|
+
* UserGroupsApi - functional programming interface
|
|
11318
|
+
* @export
|
|
11319
|
+
*/
|
|
11320
|
+
const UserGroupsApiFp = function (configuration) {
|
|
11321
|
+
const localVarAxiosParamCreator = (0, exports.UserGroupsApiAxiosParamCreator)(configuration);
|
|
11322
|
+
return {
|
|
11323
|
+
/**
|
|
11324
|
+
* Add a `user` to a `user-group`.
|
|
11325
|
+
* @param {string} id A `user-group` ID.
|
|
11326
|
+
* @param {UserIdList} userIdList
|
|
11327
|
+
* @param {*} [options] Override http request option.
|
|
11328
|
+
* @throws {RequiredError}
|
|
11329
|
+
*/
|
|
11330
|
+
addUsersToUserGroup(id, userIdList, options) {
|
|
11331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11332
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addUsersToUserGroup(id, userIdList, options);
|
|
11333
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11334
|
+
});
|
|
11335
|
+
},
|
|
11336
|
+
/**
|
|
11337
|
+
* Create a `user-group`
|
|
11338
|
+
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
11339
|
+
* @param {*} [options] Override http request option.
|
|
11340
|
+
* @throws {RequiredError}
|
|
11341
|
+
*/
|
|
11342
|
+
createUserGroup(createUserGroupRequest, options) {
|
|
11343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11344
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUserGroup(createUserGroupRequest, options);
|
|
11345
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11346
|
+
});
|
|
11347
|
+
},
|
|
11348
|
+
/**
|
|
11349
|
+
* Get a `user-group`.
|
|
11350
|
+
* @param {string} id The `user-group` ID.
|
|
11351
|
+
* @param {*} [options] Override http request option.
|
|
11352
|
+
* @throws {RequiredError}
|
|
11353
|
+
*/
|
|
11354
|
+
getUserGroup(id, options) {
|
|
11355
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11356
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroup(id, options);
|
|
11357
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11358
|
+
});
|
|
11359
|
+
},
|
|
11360
|
+
};
|
|
11361
|
+
};
|
|
11362
|
+
exports.UserGroupsApiFp = UserGroupsApiFp;
|
|
11363
|
+
/**
|
|
11364
|
+
* UserGroupsApi - factory interface
|
|
11365
|
+
* @export
|
|
11366
|
+
*/
|
|
11367
|
+
const UserGroupsApiFactory = function (configuration, basePath, axios) {
|
|
11368
|
+
const localVarFp = (0, exports.UserGroupsApiFp)(configuration);
|
|
11369
|
+
return {
|
|
11370
|
+
/**
|
|
11371
|
+
* Add a `user` to a `user-group`.
|
|
11372
|
+
* @param {string} id A `user-group` ID.
|
|
11373
|
+
* @param {UserIdList} userIdList
|
|
11374
|
+
* @param {*} [options] Override http request option.
|
|
11375
|
+
* @throws {RequiredError}
|
|
11376
|
+
*/
|
|
11377
|
+
addUsersToUserGroup(id, userIdList, options) {
|
|
11378
|
+
return localVarFp
|
|
11379
|
+
.addUsersToUserGroup(id, userIdList, options)
|
|
11380
|
+
.then((request) => request(axios, basePath));
|
|
11381
|
+
},
|
|
11382
|
+
/**
|
|
11383
|
+
* Create a `user-group`
|
|
11384
|
+
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
11385
|
+
* @param {*} [options] Override http request option.
|
|
11386
|
+
* @throws {RequiredError}
|
|
11387
|
+
*/
|
|
11388
|
+
createUserGroup(createUserGroupRequest, options) {
|
|
11389
|
+
return localVarFp
|
|
11390
|
+
.createUserGroup(createUserGroupRequest, options)
|
|
11391
|
+
.then((request) => request(axios, basePath));
|
|
11392
|
+
},
|
|
11393
|
+
/**
|
|
11394
|
+
* Get a `user-group`.
|
|
11395
|
+
* @param {string} id The `user-group` ID.
|
|
11396
|
+
* @param {*} [options] Override http request option.
|
|
11397
|
+
* @throws {RequiredError}
|
|
11398
|
+
*/
|
|
11399
|
+
getUserGroup(id, options) {
|
|
11400
|
+
return localVarFp
|
|
11401
|
+
.getUserGroup(id, options)
|
|
11402
|
+
.then((request) => request(axios, basePath));
|
|
11403
|
+
},
|
|
11404
|
+
};
|
|
11405
|
+
};
|
|
11406
|
+
exports.UserGroupsApiFactory = UserGroupsApiFactory;
|
|
11407
|
+
/**
|
|
11408
|
+
* UserGroupsApi - object-oriented interface
|
|
11409
|
+
* @export
|
|
11410
|
+
* @class UserGroupsApi
|
|
11411
|
+
* @extends {BaseAPI}
|
|
11412
|
+
*/
|
|
11413
|
+
class UserGroupsApi extends base_1.BaseAPI {
|
|
11414
|
+
/**
|
|
11415
|
+
* Add a `user` to a `user-group`.
|
|
11416
|
+
* @param {UserGroupsApiAddUsersToUserGroupRequest} requestParameters Request parameters.
|
|
11417
|
+
* @param {*} [options] Override http request option.
|
|
11418
|
+
* @throws {RequiredError}
|
|
11419
|
+
* @memberof UserGroupsApi
|
|
11420
|
+
*/
|
|
11421
|
+
addUsersToUserGroup(requestParameters, options) {
|
|
11422
|
+
return (0, exports.UserGroupsApiFp)(this.configuration)
|
|
11423
|
+
.addUsersToUserGroup(requestParameters.id, requestParameters.userIdList, options)
|
|
11424
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11425
|
+
}
|
|
11426
|
+
/**
|
|
11427
|
+
* Create a `user-group`
|
|
11428
|
+
* @param {UserGroupsApiCreateUserGroupRequest} requestParameters Request parameters.
|
|
11429
|
+
* @param {*} [options] Override http request option.
|
|
11430
|
+
* @throws {RequiredError}
|
|
11431
|
+
* @memberof UserGroupsApi
|
|
11432
|
+
*/
|
|
11433
|
+
createUserGroup(requestParameters, options) {
|
|
11434
|
+
return (0, exports.UserGroupsApiFp)(this.configuration)
|
|
11435
|
+
.createUserGroup(requestParameters.createUserGroupRequest, options)
|
|
11436
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11437
|
+
}
|
|
11438
|
+
/**
|
|
11439
|
+
* Get a `user-group`.
|
|
11440
|
+
* @param {UserGroupsApiGetUserGroupRequest} requestParameters Request parameters.
|
|
11441
|
+
* @param {*} [options] Override http request option.
|
|
11442
|
+
* @throws {RequiredError}
|
|
11443
|
+
* @memberof UserGroupsApi
|
|
11444
|
+
*/
|
|
11445
|
+
getUserGroup(requestParameters, options) {
|
|
11446
|
+
return (0, exports.UserGroupsApiFp)(this.configuration)
|
|
11447
|
+
.getUserGroup(requestParameters.id, options)
|
|
11448
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11449
|
+
}
|
|
11450
|
+
}
|
|
11451
|
+
exports.UserGroupsApi = UserGroupsApi;
|
|
11452
|
+
/**
|
|
11453
|
+
* UsersApi - axios parameter creator
|
|
11454
|
+
* @export
|
|
11455
|
+
*/
|
|
11456
|
+
const UsersApiAxiosParamCreator = function (configuration) {
|
|
11457
|
+
return {
|
|
11458
|
+
/**
|
|
11459
|
+
* Create a `user`
|
|
11460
|
+
* @param {CreateUserRequest} createUserRequest
|
|
11461
|
+
* @param {*} [options] Override http request option.
|
|
11462
|
+
* @throws {RequiredError}
|
|
11463
|
+
*/
|
|
11464
|
+
createUser: (createUserRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11465
|
+
var _a;
|
|
11466
|
+
// verify required parameter 'createUserRequest' is not null or undefined
|
|
11467
|
+
(0, common_1.assertParamExists)('createUser', 'createUserRequest', createUserRequest);
|
|
11468
|
+
const localVarPath = `/users`;
|
|
11469
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11470
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11471
|
+
let baseOptions;
|
|
11472
|
+
if (configuration) {
|
|
11473
|
+
baseOptions = configuration.baseOptions;
|
|
11474
|
+
}
|
|
11475
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11476
|
+
const localVarHeaderParameter = {};
|
|
11477
|
+
const localVarQueryParameter = {};
|
|
11478
|
+
// authentication OAuth2 required
|
|
11479
|
+
// oauth required
|
|
11480
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11481
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11482
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11483
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
11484
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11485
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserRequest, localVarRequestOptions, configuration);
|
|
11486
|
+
return {
|
|
11487
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11488
|
+
options: localVarRequestOptions,
|
|
11489
|
+
};
|
|
11490
|
+
}),
|
|
11491
|
+
/**
|
|
11492
|
+
* Get a `user`.
|
|
11493
|
+
* @param {string} id The `user` ID.
|
|
11494
|
+
* @param {*} [options] Override http request option.
|
|
11495
|
+
* @throws {RequiredError}
|
|
11496
|
+
*/
|
|
11497
|
+
getUser: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11498
|
+
var _b;
|
|
11499
|
+
// verify required parameter 'id' is not null or undefined
|
|
11500
|
+
(0, common_1.assertParamExists)('getUser', 'id', id);
|
|
11501
|
+
const localVarPath = `/users/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11503
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11504
|
+
let baseOptions;
|
|
11505
|
+
if (configuration) {
|
|
11506
|
+
baseOptions = configuration.baseOptions;
|
|
11507
|
+
}
|
|
11508
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11509
|
+
const localVarHeaderParameter = {};
|
|
11510
|
+
const localVarQueryParameter = {};
|
|
11511
|
+
// authentication OAuth2 required
|
|
11512
|
+
// oauth required
|
|
11513
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11514
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11515
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
11516
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11517
|
+
return {
|
|
11518
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11519
|
+
options: localVarRequestOptions,
|
|
11520
|
+
};
|
|
11521
|
+
}),
|
|
11522
|
+
/**
|
|
11523
|
+
* Get `user-group`s.
|
|
11524
|
+
* @param {string} id The `user` ID.
|
|
11525
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11526
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11527
|
+
* @param {*} [options] Override http request option.
|
|
11528
|
+
* @throws {RequiredError}
|
|
11529
|
+
*/
|
|
11530
|
+
getUserGroupsForUser: (id, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11531
|
+
var _c;
|
|
11532
|
+
// verify required parameter 'id' is not null or undefined
|
|
11533
|
+
(0, common_1.assertParamExists)('getUserGroupsForUser', 'id', id);
|
|
11534
|
+
const localVarPath = `/users/{id}/user-groups`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11535
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11536
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11537
|
+
let baseOptions;
|
|
11538
|
+
if (configuration) {
|
|
11539
|
+
baseOptions = configuration.baseOptions;
|
|
11540
|
+
}
|
|
11541
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11542
|
+
const localVarHeaderParameter = {};
|
|
11543
|
+
const localVarQueryParameter = {};
|
|
11544
|
+
// authentication OAuth2 required
|
|
11545
|
+
// oauth required
|
|
11546
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11547
|
+
if (pageCursor !== undefined) {
|
|
11548
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
11549
|
+
}
|
|
11550
|
+
if (pageSize !== undefined) {
|
|
11551
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
11552
|
+
}
|
|
11553
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11554
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
11555
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11556
|
+
return {
|
|
11557
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11558
|
+
options: localVarRequestOptions,
|
|
11559
|
+
};
|
|
11560
|
+
}),
|
|
11561
|
+
/**
|
|
11562
|
+
* List `user`s.
|
|
11563
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11564
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11565
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11566
|
+
* @param {*} [options] Override http request option.
|
|
11567
|
+
* @throws {RequiredError}
|
|
11568
|
+
*/
|
|
11569
|
+
listUsers: (filterIdpId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11570
|
+
var _d;
|
|
11571
|
+
const localVarPath = `/users`;
|
|
11572
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11573
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11574
|
+
let baseOptions;
|
|
11575
|
+
if (configuration) {
|
|
11576
|
+
baseOptions = configuration.baseOptions;
|
|
11577
|
+
}
|
|
11578
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
11579
|
+
const localVarHeaderParameter = {};
|
|
11580
|
+
const localVarQueryParameter = {};
|
|
11581
|
+
// authentication OAuth2 required
|
|
11582
|
+
// oauth required
|
|
11583
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11584
|
+
if (filterIdpId !== undefined) {
|
|
11585
|
+
localVarQueryParameter['filter[idpId]'] = filterIdpId;
|
|
11586
|
+
}
|
|
11587
|
+
if (pageCursor !== undefined) {
|
|
11588
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
11589
|
+
}
|
|
11590
|
+
if (pageSize !== undefined) {
|
|
11591
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
11592
|
+
}
|
|
11593
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11594
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
11595
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11596
|
+
return {
|
|
11597
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11598
|
+
options: localVarRequestOptions,
|
|
11599
|
+
};
|
|
11600
|
+
}),
|
|
11601
|
+
};
|
|
11602
|
+
};
|
|
11603
|
+
exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
|
|
11604
|
+
/**
|
|
11605
|
+
* UsersApi - functional programming interface
|
|
11606
|
+
* @export
|
|
11607
|
+
*/
|
|
11608
|
+
const UsersApiFp = function (configuration) {
|
|
11609
|
+
const localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
|
|
11610
|
+
return {
|
|
11611
|
+
/**
|
|
11612
|
+
* Create a `user`
|
|
11613
|
+
* @param {CreateUserRequest} createUserRequest
|
|
11614
|
+
* @param {*} [options] Override http request option.
|
|
11615
|
+
* @throws {RequiredError}
|
|
11616
|
+
*/
|
|
11617
|
+
createUser(createUserRequest, options) {
|
|
11618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11619
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUser(createUserRequest, options);
|
|
11620
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11621
|
+
});
|
|
11622
|
+
},
|
|
11623
|
+
/**
|
|
11624
|
+
* Get a `user`.
|
|
11625
|
+
* @param {string} id The `user` ID.
|
|
11626
|
+
* @param {*} [options] Override http request option.
|
|
11627
|
+
* @throws {RequiredError}
|
|
11628
|
+
*/
|
|
11629
|
+
getUser(id, options) {
|
|
11630
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11631
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUser(id, options);
|
|
11632
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11633
|
+
});
|
|
11634
|
+
},
|
|
11635
|
+
/**
|
|
11636
|
+
* Get `user-group`s.
|
|
11637
|
+
* @param {string} id The `user` ID.
|
|
11638
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11639
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11640
|
+
* @param {*} [options] Override http request option.
|
|
11641
|
+
* @throws {RequiredError}
|
|
11642
|
+
*/
|
|
11643
|
+
getUserGroupsForUser(id, pageCursor, pageSize, options) {
|
|
11644
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getUserGroupsForUser(id, pageCursor, pageSize, options);
|
|
11646
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11647
|
+
});
|
|
11648
|
+
},
|
|
11649
|
+
/**
|
|
11650
|
+
* List `user`s.
|
|
11651
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11652
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11653
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11654
|
+
* @param {*} [options] Override http request option.
|
|
11655
|
+
* @throws {RequiredError}
|
|
11656
|
+
*/
|
|
11657
|
+
listUsers(filterIdpId, pageCursor, pageSize, options) {
|
|
11658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(filterIdpId, pageCursor, pageSize, options);
|
|
11660
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11661
|
+
});
|
|
11662
|
+
},
|
|
11663
|
+
};
|
|
11664
|
+
};
|
|
11665
|
+
exports.UsersApiFp = UsersApiFp;
|
|
11666
|
+
/**
|
|
11667
|
+
* UsersApi - factory interface
|
|
11668
|
+
* @export
|
|
11669
|
+
*/
|
|
11670
|
+
const UsersApiFactory = function (configuration, basePath, axios) {
|
|
11671
|
+
const localVarFp = (0, exports.UsersApiFp)(configuration);
|
|
11672
|
+
return {
|
|
11673
|
+
/**
|
|
11674
|
+
* Create a `user`
|
|
11675
|
+
* @param {CreateUserRequest} createUserRequest
|
|
11676
|
+
* @param {*} [options] Override http request option.
|
|
11677
|
+
* @throws {RequiredError}
|
|
11678
|
+
*/
|
|
11679
|
+
createUser(createUserRequest, options) {
|
|
11680
|
+
return localVarFp
|
|
11681
|
+
.createUser(createUserRequest, options)
|
|
11682
|
+
.then((request) => request(axios, basePath));
|
|
11683
|
+
},
|
|
11684
|
+
/**
|
|
11685
|
+
* Get a `user`.
|
|
11686
|
+
* @param {string} id The `user` ID.
|
|
11687
|
+
* @param {*} [options] Override http request option.
|
|
11688
|
+
* @throws {RequiredError}
|
|
11689
|
+
*/
|
|
11690
|
+
getUser(id, options) {
|
|
11691
|
+
return localVarFp
|
|
11692
|
+
.getUser(id, options)
|
|
11693
|
+
.then((request) => request(axios, basePath));
|
|
11694
|
+
},
|
|
11695
|
+
/**
|
|
11696
|
+
* Get `user-group`s.
|
|
11697
|
+
* @param {string} id The `user` ID.
|
|
11698
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11699
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11700
|
+
* @param {*} [options] Override http request option.
|
|
11701
|
+
* @throws {RequiredError}
|
|
11702
|
+
*/
|
|
11703
|
+
getUserGroupsForUser(id, pageCursor, pageSize, options) {
|
|
11704
|
+
return localVarFp
|
|
11705
|
+
.getUserGroupsForUser(id, pageCursor, pageSize, options)
|
|
11706
|
+
.then((request) => request(axios, basePath));
|
|
11707
|
+
},
|
|
11708
|
+
/**
|
|
11709
|
+
* List `user`s.
|
|
11710
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11711
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11712
|
+
* @param {number} [pageSize] The number of items to return.
|
|
11713
|
+
* @param {*} [options] Override http request option.
|
|
11714
|
+
* @throws {RequiredError}
|
|
11715
|
+
*/
|
|
11716
|
+
listUsers(filterIdpId, pageCursor, pageSize, options) {
|
|
11717
|
+
return localVarFp
|
|
11718
|
+
.listUsers(filterIdpId, pageCursor, pageSize, options)
|
|
11719
|
+
.then((request) => request(axios, basePath));
|
|
11720
|
+
},
|
|
11721
|
+
};
|
|
11722
|
+
};
|
|
11723
|
+
exports.UsersApiFactory = UsersApiFactory;
|
|
11724
|
+
/**
|
|
11725
|
+
* UsersApi - object-oriented interface
|
|
11726
|
+
* @export
|
|
11727
|
+
* @class UsersApi
|
|
11728
|
+
* @extends {BaseAPI}
|
|
11729
|
+
*/
|
|
11730
|
+
class UsersApi extends base_1.BaseAPI {
|
|
11731
|
+
/**
|
|
11732
|
+
* Create a `user`
|
|
11733
|
+
* @param {UsersApiCreateUserRequest} requestParameters Request parameters.
|
|
11734
|
+
* @param {*} [options] Override http request option.
|
|
11735
|
+
* @throws {RequiredError}
|
|
11736
|
+
* @memberof UsersApi
|
|
11737
|
+
*/
|
|
11738
|
+
createUser(requestParameters, options) {
|
|
11739
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11740
|
+
.createUser(requestParameters.createUserRequest, options)
|
|
11741
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11742
|
+
}
|
|
11743
|
+
/**
|
|
11744
|
+
* Get a `user`.
|
|
11745
|
+
* @param {UsersApiGetUserRequest} requestParameters Request parameters.
|
|
11746
|
+
* @param {*} [options] Override http request option.
|
|
11747
|
+
* @throws {RequiredError}
|
|
11748
|
+
* @memberof UsersApi
|
|
11749
|
+
*/
|
|
11750
|
+
getUser(requestParameters, options) {
|
|
11751
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11752
|
+
.getUser(requestParameters.id, options)
|
|
11753
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11754
|
+
}
|
|
11755
|
+
/**
|
|
11756
|
+
* Get `user-group`s.
|
|
11757
|
+
* @param {UsersApiGetUserGroupsForUserRequest} requestParameters Request parameters.
|
|
11758
|
+
* @param {*} [options] Override http request option.
|
|
11759
|
+
* @throws {RequiredError}
|
|
11760
|
+
* @memberof UsersApi
|
|
11761
|
+
*/
|
|
11762
|
+
getUserGroupsForUser(requestParameters, options) {
|
|
11763
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11764
|
+
.getUserGroupsForUser(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
11765
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11766
|
+
}
|
|
11767
|
+
/**
|
|
11768
|
+
* List `user`s.
|
|
11769
|
+
* @param {UsersApiListUsersRequest} requestParameters Request parameters.
|
|
11770
|
+
* @param {*} [options] Override http request option.
|
|
11771
|
+
* @throws {RequiredError}
|
|
11772
|
+
* @memberof UsersApi
|
|
11773
|
+
*/
|
|
11774
|
+
listUsers(requestParameters = {}, options) {
|
|
11775
|
+
return (0, exports.UsersApiFp)(this.configuration)
|
|
11776
|
+
.listUsers(requestParameters.filterIdpId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
11777
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11778
|
+
}
|
|
11779
|
+
}
|
|
11780
|
+
exports.UsersApi = UsersApi;
|
|
10261
11781
|
/**
|
|
10262
11782
|
* WebhookSubscriptionsApi - axios parameter creator
|
|
10263
11783
|
* @export
|