@vertexvis/api-client-node 0.31.0 → 0.33.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 +970 -32
- package/dist/cjs/api.js +653 -40
- 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 +970 -32
- package/dist/esm/api.js +644 -35
- 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,11 +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.
|
|
32
|
-
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserGroupsApi = exports.UserGroupsApiFactory = exports.UserGroupsApiFp = exports.UserGroupsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.ThreadsApi = void 0;
|
|
28
|
+
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.CreateSceneReferenceTypeEnum = 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.BatchesApiFactory = exports.BatchesApiFp = exports.BatchesApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.WithSceneViewStateIdTypeEnum = exports.WithSceneViewIdTypeEnum = 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.SceneReferenceTypeEnum = exports.SceneItemRelationshipDataTypeEnum = exports.SceneItemQueryOperandTypeEnum = exports.SceneItemOrExpressionTypeEnum = exports.SceneItemAndExpressionTypeEnum = exports.ReplyDataTypeEnum = exports.QueryBySceneItemMetadataTypeEnum = exports.QueryBySceneItemIdsTypeEnum = exports.QueryBySceneItemIdTypeEnum = exports.QueryByRootTypeEnum = exports.QueryByMetadataDataTypeEnum = void 0;
|
|
30
|
+
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 = exports.CollaborationContextsApiFactory = exports.CollaborationContextsApiFp = exports.CollaborationContextsApiAxiosParamCreator = exports.BatchesApi = void 0;
|
|
31
|
+
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 = exports.PermissionGrantsApiAxiosParamCreator = exports.PartsApi = exports.PartsApiFactory = exports.PartsApiFp = 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 = exports.SearchSessionsApiFactory = exports.SearchSessionsApiFp = exports.SearchSessionsApiAxiosParamCreator = exports.ScenesApi = void 0;
|
|
33
33
|
const axios_1 = __importDefault(require("axios"));
|
|
34
34
|
// Some imports not used depending on template conditions
|
|
35
35
|
// @ts-ignore
|
|
@@ -88,6 +88,9 @@ exports.CreatePermissionGrantDataTypeEnum = {
|
|
|
88
88
|
exports.CreatePermissionGrantDataAttributesCapabilityEnum = {
|
|
89
89
|
Read: 'read',
|
|
90
90
|
};
|
|
91
|
+
exports.CreateReplyRequestDataTypeEnum = {
|
|
92
|
+
Reply: 'reply',
|
|
93
|
+
};
|
|
91
94
|
exports.CreateSceneExpressionAlterationRequestDataTypeEnum = {
|
|
92
95
|
SceneAlterationExpression: 'scene-alteration-expression',
|
|
93
96
|
};
|
|
@@ -96,6 +99,9 @@ exports.CreateSceneItemRequestDataAttributesResolutionRuleEnum = {
|
|
|
96
99
|
LatestIteration: 'latest-iteration',
|
|
97
100
|
LatestRevision: 'latest-revision',
|
|
98
101
|
};
|
|
102
|
+
exports.CreateSceneReferenceTypeEnum = {
|
|
103
|
+
SceneReference: 'scene-reference',
|
|
104
|
+
};
|
|
99
105
|
exports.CreateSearchSessionRequestDataTypeEnum = {
|
|
100
106
|
SearchSession: 'search-session',
|
|
101
107
|
};
|
|
@@ -206,6 +212,9 @@ exports.QueryBySceneItemIdsTypeEnum = {
|
|
|
206
212
|
exports.QueryBySceneItemMetadataTypeEnum = {
|
|
207
213
|
QueryByMetadata: 'query-by-metadata',
|
|
208
214
|
};
|
|
215
|
+
exports.ReplyDataTypeEnum = {
|
|
216
|
+
Reply: 'reply',
|
|
217
|
+
};
|
|
209
218
|
exports.SceneItemAndExpressionTypeEnum = {
|
|
210
219
|
And: 'and',
|
|
211
220
|
};
|
|
@@ -218,6 +227,9 @@ exports.SceneItemQueryOperandTypeEnum = {
|
|
|
218
227
|
exports.SceneItemRelationshipDataTypeEnum = {
|
|
219
228
|
SceneItem: 'scene-item',
|
|
220
229
|
};
|
|
230
|
+
exports.SceneReferenceTypeEnum = {
|
|
231
|
+
SceneReference: 'scene-reference',
|
|
232
|
+
};
|
|
221
233
|
exports.SceneRelationshipDataTypeEnum = {
|
|
222
234
|
Scene: 'scene',
|
|
223
235
|
};
|
|
@@ -239,6 +251,9 @@ exports.SelectOpTypeEnum = {
|
|
|
239
251
|
exports.ThreadDataTypeEnum = {
|
|
240
252
|
Thread: 'thread',
|
|
241
253
|
};
|
|
254
|
+
exports.ThreadRelationshipDataTypeEnum = {
|
|
255
|
+
Thread: 'thread',
|
|
256
|
+
};
|
|
242
257
|
/**
|
|
243
258
|
*
|
|
244
259
|
* @export
|
|
@@ -278,6 +293,9 @@ exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
|
|
|
278
293
|
exports.UserGroupIdTypeEnum = {
|
|
279
294
|
UserGroup: 'user-group',
|
|
280
295
|
};
|
|
296
|
+
exports.UserIdTypeEnum = {
|
|
297
|
+
User: 'user',
|
|
298
|
+
};
|
|
281
299
|
exports.UserRelationshipDataTypeEnum = {
|
|
282
300
|
User: 'user',
|
|
283
301
|
};
|
|
@@ -307,6 +325,12 @@ exports.WebhookSubscriptionDataAttributesStatusEnum = {
|
|
|
307
325
|
Active: 'active',
|
|
308
326
|
Paused: 'paused',
|
|
309
327
|
};
|
|
328
|
+
exports.WithSceneViewIdTypeEnum = {
|
|
329
|
+
SceneViewId: 'scene-view-id',
|
|
330
|
+
};
|
|
331
|
+
exports.WithSceneViewStateIdTypeEnum = {
|
|
332
|
+
SceneViewStateId: 'scene-view-state-id',
|
|
333
|
+
};
|
|
310
334
|
/**
|
|
311
335
|
* AccountsApi - axios parameter creator
|
|
312
336
|
* @export
|
|
@@ -1425,6 +1449,42 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1425
1449
|
options: localVarRequestOptions,
|
|
1426
1450
|
};
|
|
1427
1451
|
}),
|
|
1452
|
+
/**
|
|
1453
|
+
* List `collaboration-context`s
|
|
1454
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1455
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1456
|
+
* @param {*} [options] Override http request option.
|
|
1457
|
+
* @throws {RequiredError}
|
|
1458
|
+
*/
|
|
1459
|
+
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1460
|
+
var _d;
|
|
1461
|
+
const localVarPath = `/collaboration-contexts`;
|
|
1462
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1463
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1464
|
+
let baseOptions;
|
|
1465
|
+
if (configuration) {
|
|
1466
|
+
baseOptions = configuration.baseOptions;
|
|
1467
|
+
}
|
|
1468
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1469
|
+
const localVarHeaderParameter = {};
|
|
1470
|
+
const localVarQueryParameter = {};
|
|
1471
|
+
// authentication OAuth2 required
|
|
1472
|
+
// oauth required
|
|
1473
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1474
|
+
if (pageCursor !== undefined) {
|
|
1475
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
1476
|
+
}
|
|
1477
|
+
if (pageSize !== undefined) {
|
|
1478
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
1479
|
+
}
|
|
1480
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1481
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1482
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1483
|
+
return {
|
|
1484
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1485
|
+
options: localVarRequestOptions,
|
|
1486
|
+
};
|
|
1487
|
+
}),
|
|
1428
1488
|
};
|
|
1429
1489
|
};
|
|
1430
1490
|
exports.CollaborationContextsApiAxiosParamCreator = CollaborationContextsApiAxiosParamCreator;
|
|
@@ -1472,6 +1532,19 @@ const CollaborationContextsApiFp = function (configuration) {
|
|
|
1472
1532
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1473
1533
|
});
|
|
1474
1534
|
},
|
|
1535
|
+
/**
|
|
1536
|
+
* List `collaboration-context`s
|
|
1537
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1538
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1539
|
+
* @param {*} [options] Override http request option.
|
|
1540
|
+
* @throws {RequiredError}
|
|
1541
|
+
*/
|
|
1542
|
+
listCollaborationContexts(pageCursor, pageSize, options) {
|
|
1543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1544
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCollaborationContexts(pageCursor, pageSize, options);
|
|
1545
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1546
|
+
});
|
|
1547
|
+
},
|
|
1475
1548
|
};
|
|
1476
1549
|
};
|
|
1477
1550
|
exports.CollaborationContextsApiFp = CollaborationContextsApiFp;
|
|
@@ -1516,6 +1589,18 @@ const CollaborationContextsApiFactory = function (configuration, basePath, axios
|
|
|
1516
1589
|
.getCollaborationContext(id, options)
|
|
1517
1590
|
.then((request) => request(axios, basePath));
|
|
1518
1591
|
},
|
|
1592
|
+
/**
|
|
1593
|
+
* List `collaboration-context`s
|
|
1594
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1595
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1596
|
+
* @param {*} [options] Override http request option.
|
|
1597
|
+
* @throws {RequiredError}
|
|
1598
|
+
*/
|
|
1599
|
+
listCollaborationContexts(pageCursor, pageSize, options) {
|
|
1600
|
+
return localVarFp
|
|
1601
|
+
.listCollaborationContexts(pageCursor, pageSize, options)
|
|
1602
|
+
.then((request) => request(axios, basePath));
|
|
1603
|
+
},
|
|
1519
1604
|
};
|
|
1520
1605
|
};
|
|
1521
1606
|
exports.CollaborationContextsApiFactory = CollaborationContextsApiFactory;
|
|
@@ -1562,6 +1647,18 @@ class CollaborationContextsApi extends base_1.BaseAPI {
|
|
|
1562
1647
|
.getCollaborationContext(requestParameters.id, options)
|
|
1563
1648
|
.then((request) => request(this.axios, this.basePath));
|
|
1564
1649
|
}
|
|
1650
|
+
/**
|
|
1651
|
+
* List `collaboration-context`s
|
|
1652
|
+
* @param {CollaborationContextsApiListCollaborationContextsRequest} requestParameters Request parameters.
|
|
1653
|
+
* @param {*} [options] Override http request option.
|
|
1654
|
+
* @throws {RequiredError}
|
|
1655
|
+
* @memberof CollaborationContextsApi
|
|
1656
|
+
*/
|
|
1657
|
+
listCollaborationContexts(requestParameters = {}, options) {
|
|
1658
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1659
|
+
.listCollaborationContexts(requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1660
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1661
|
+
}
|
|
1565
1662
|
}
|
|
1566
1663
|
exports.CollaborationContextsApi = CollaborationContextsApi;
|
|
1567
1664
|
/**
|
|
@@ -3936,11 +4033,13 @@ const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
|
3936
4033
|
* @param {string} [scope]
|
|
3937
4034
|
* @param {string} [code]
|
|
3938
4035
|
* @param {string} [redirectUri]
|
|
4036
|
+
* @param {string} [subjectTokenType]
|
|
3939
4037
|
* @param {string} [refreshToken]
|
|
4038
|
+
* @param {string} [subjectToken]
|
|
3940
4039
|
* @param {*} [options] Override http request option.
|
|
3941
4040
|
* @throws {RequiredError}
|
|
3942
4041
|
*/
|
|
3943
|
-
createToken: (grantType, scope, code, redirectUri, refreshToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
4042
|
+
createToken: (grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3944
4043
|
var _c;
|
|
3945
4044
|
// verify required parameter 'grantType' is not null or undefined
|
|
3946
4045
|
(0, common_1.assertParamExists)('createToken', 'grantType', grantType);
|
|
@@ -3970,9 +4069,15 @@ const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
|
3970
4069
|
if (grantType !== undefined) {
|
|
3971
4070
|
localVarFormParams.set('grant_type', grantType);
|
|
3972
4071
|
}
|
|
4072
|
+
if (subjectTokenType !== undefined) {
|
|
4073
|
+
localVarFormParams.set('subject_token_type', subjectTokenType);
|
|
4074
|
+
}
|
|
3973
4075
|
if (refreshToken !== undefined) {
|
|
3974
4076
|
localVarFormParams.set('refresh_token', refreshToken);
|
|
3975
4077
|
}
|
|
4078
|
+
if (subjectToken !== undefined) {
|
|
4079
|
+
localVarFormParams.set('subject_token', subjectToken);
|
|
4080
|
+
}
|
|
3976
4081
|
localVarHeaderParameter['Content-Type'] =
|
|
3977
4082
|
'application/x-www-form-urlencoded';
|
|
3978
4083
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4059,13 +4164,15 @@ const Oauth2ApiFp = function (configuration) {
|
|
|
4059
4164
|
* @param {string} [scope]
|
|
4060
4165
|
* @param {string} [code]
|
|
4061
4166
|
* @param {string} [redirectUri]
|
|
4167
|
+
* @param {string} [subjectTokenType]
|
|
4062
4168
|
* @param {string} [refreshToken]
|
|
4169
|
+
* @param {string} [subjectToken]
|
|
4063
4170
|
* @param {*} [options] Override http request option.
|
|
4064
4171
|
* @throws {RequiredError}
|
|
4065
4172
|
*/
|
|
4066
|
-
createToken(grantType, scope, code, redirectUri, refreshToken, options) {
|
|
4173
|
+
createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
|
|
4067
4174
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4068
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, refreshToken, options);
|
|
4175
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options);
|
|
4069
4176
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
4070
4177
|
});
|
|
4071
4178
|
},
|
|
@@ -4121,13 +4228,15 @@ const Oauth2ApiFactory = function (configuration, basePath, axios) {
|
|
|
4121
4228
|
* @param {string} [scope]
|
|
4122
4229
|
* @param {string} [code]
|
|
4123
4230
|
* @param {string} [redirectUri]
|
|
4231
|
+
* @param {string} [subjectTokenType]
|
|
4124
4232
|
* @param {string} [refreshToken]
|
|
4233
|
+
* @param {string} [subjectToken]
|
|
4125
4234
|
* @param {*} [options] Override http request option.
|
|
4126
4235
|
* @throws {RequiredError}
|
|
4127
4236
|
*/
|
|
4128
|
-
createToken(grantType, scope, code, redirectUri, refreshToken, options) {
|
|
4237
|
+
createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
|
|
4129
4238
|
return localVarFp
|
|
4130
|
-
.createToken(grantType, scope, code, redirectUri, refreshToken, options)
|
|
4239
|
+
.createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options)
|
|
4131
4240
|
.then((request) => request(axios, basePath));
|
|
4132
4241
|
},
|
|
4133
4242
|
/**
|
|
@@ -4184,7 +4293,7 @@ class Oauth2Api extends base_1.BaseAPI {
|
|
|
4184
4293
|
*/
|
|
4185
4294
|
createToken(requestParameters, options) {
|
|
4186
4295
|
return (0, exports.Oauth2ApiFp)(this.configuration)
|
|
4187
|
-
.createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options)
|
|
4296
|
+
.createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.subjectTokenType, requestParameters.refreshToken, requestParameters.subjectToken, options)
|
|
4188
4297
|
.then((request) => request(this.axios, this.basePath));
|
|
4189
4298
|
}
|
|
4190
4299
|
/**
|
|
@@ -5303,6 +5412,42 @@ const PartsApiAxiosParamCreator = function (configuration) {
|
|
|
5303
5412
|
options: localVarRequestOptions,
|
|
5304
5413
|
};
|
|
5305
5414
|
}),
|
|
5415
|
+
/**
|
|
5416
|
+
* Update a `part` by ID
|
|
5417
|
+
* @param {string} id The `part` ID.
|
|
5418
|
+
* @param {UpdatePartRequest} updatePartRequest
|
|
5419
|
+
* @param {*} [options] Override http request option.
|
|
5420
|
+
* @throws {RequiredError}
|
|
5421
|
+
*/
|
|
5422
|
+
updatePart: (id, updatePartRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5423
|
+
var _f;
|
|
5424
|
+
// verify required parameter 'id' is not null or undefined
|
|
5425
|
+
(0, common_1.assertParamExists)('updatePart', 'id', id);
|
|
5426
|
+
// verify required parameter 'updatePartRequest' is not null or undefined
|
|
5427
|
+
(0, common_1.assertParamExists)('updatePart', 'updatePartRequest', updatePartRequest);
|
|
5428
|
+
const localVarPath = `/parts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
5429
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5430
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5431
|
+
let baseOptions;
|
|
5432
|
+
if (configuration) {
|
|
5433
|
+
baseOptions = configuration.baseOptions;
|
|
5434
|
+
}
|
|
5435
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
5436
|
+
const localVarHeaderParameter = {};
|
|
5437
|
+
const localVarQueryParameter = {};
|
|
5438
|
+
// authentication OAuth2 required
|
|
5439
|
+
// oauth required
|
|
5440
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
5441
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
5442
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5443
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
5444
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5445
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePartRequest, localVarRequestOptions, configuration);
|
|
5446
|
+
return {
|
|
5447
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5448
|
+
options: localVarRequestOptions,
|
|
5449
|
+
};
|
|
5450
|
+
}),
|
|
5306
5451
|
};
|
|
5307
5452
|
};
|
|
5308
5453
|
exports.PartsApiAxiosParamCreator = PartsApiAxiosParamCreator;
|
|
@@ -5377,6 +5522,19 @@ const PartsApiFp = function (configuration) {
|
|
|
5377
5522
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5378
5523
|
});
|
|
5379
5524
|
},
|
|
5525
|
+
/**
|
|
5526
|
+
* Update a `part` by ID
|
|
5527
|
+
* @param {string} id The `part` ID.
|
|
5528
|
+
* @param {UpdatePartRequest} updatePartRequest
|
|
5529
|
+
* @param {*} [options] Override http request option.
|
|
5530
|
+
* @throws {RequiredError}
|
|
5531
|
+
*/
|
|
5532
|
+
updatePart(id, updatePartRequest, options) {
|
|
5533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5534
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePart(id, updatePartRequest, options);
|
|
5535
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
5536
|
+
});
|
|
5537
|
+
},
|
|
5380
5538
|
};
|
|
5381
5539
|
};
|
|
5382
5540
|
exports.PartsApiFp = PartsApiFp;
|
|
@@ -5446,6 +5604,18 @@ const PartsApiFactory = function (configuration, basePath, axios) {
|
|
|
5446
5604
|
.getQueuedPartDeletion(id, options)
|
|
5447
5605
|
.then((request) => request(axios, basePath));
|
|
5448
5606
|
},
|
|
5607
|
+
/**
|
|
5608
|
+
* Update a `part` by ID
|
|
5609
|
+
* @param {string} id The `part` ID.
|
|
5610
|
+
* @param {UpdatePartRequest} updatePartRequest
|
|
5611
|
+
* @param {*} [options] Override http request option.
|
|
5612
|
+
* @throws {RequiredError}
|
|
5613
|
+
*/
|
|
5614
|
+
updatePart(id, updatePartRequest, options) {
|
|
5615
|
+
return localVarFp
|
|
5616
|
+
.updatePart(id, updatePartRequest, options)
|
|
5617
|
+
.then((request) => request(axios, basePath));
|
|
5618
|
+
},
|
|
5449
5619
|
};
|
|
5450
5620
|
};
|
|
5451
5621
|
exports.PartsApiFactory = PartsApiFactory;
|
|
@@ -5516,6 +5686,18 @@ class PartsApi extends base_1.BaseAPI {
|
|
|
5516
5686
|
.getQueuedPartDeletion(requestParameters.id, options)
|
|
5517
5687
|
.then((request) => request(this.axios, this.basePath));
|
|
5518
5688
|
}
|
|
5689
|
+
/**
|
|
5690
|
+
* Update a `part` by ID
|
|
5691
|
+
* @param {PartsApiUpdatePartRequest} requestParameters Request parameters.
|
|
5692
|
+
* @param {*} [options] Override http request option.
|
|
5693
|
+
* @throws {RequiredError}
|
|
5694
|
+
* @memberof PartsApi
|
|
5695
|
+
*/
|
|
5696
|
+
updatePart(requestParameters, options) {
|
|
5697
|
+
return (0, exports.PartsApiFp)(this.configuration)
|
|
5698
|
+
.updatePart(requestParameters.id, requestParameters.updatePartRequest, options)
|
|
5699
|
+
.then((request) => request(this.axios, this.basePath));
|
|
5700
|
+
}
|
|
5519
5701
|
}
|
|
5520
5702
|
exports.PartsApi = PartsApi;
|
|
5521
5703
|
/**
|
|
@@ -6153,6 +6335,274 @@ class PropertyEntriesApi extends base_1.BaseAPI {
|
|
|
6153
6335
|
}
|
|
6154
6336
|
}
|
|
6155
6337
|
exports.PropertyEntriesApi = PropertyEntriesApi;
|
|
6338
|
+
/**
|
|
6339
|
+
* RepliesApi - axios parameter creator
|
|
6340
|
+
* @export
|
|
6341
|
+
*/
|
|
6342
|
+
const RepliesApiAxiosParamCreator = function (configuration) {
|
|
6343
|
+
return {
|
|
6344
|
+
/**
|
|
6345
|
+
* Create a `reply` belonging to a `thread`.
|
|
6346
|
+
* @param {string} id The `thread` ID.
|
|
6347
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6348
|
+
* @param {*} [options] Override http request option.
|
|
6349
|
+
* @throws {RequiredError}
|
|
6350
|
+
*/
|
|
6351
|
+
createReply: (id, createReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6352
|
+
var _a;
|
|
6353
|
+
// verify required parameter 'id' is not null or undefined
|
|
6354
|
+
(0, common_1.assertParamExists)('createReply', 'id', id);
|
|
6355
|
+
// verify required parameter 'createReplyRequest' is not null or undefined
|
|
6356
|
+
(0, common_1.assertParamExists)('createReply', 'createReplyRequest', createReplyRequest);
|
|
6357
|
+
const localVarPath = `/threads/{id}/replies`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6358
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6359
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6360
|
+
let baseOptions;
|
|
6361
|
+
if (configuration) {
|
|
6362
|
+
baseOptions = configuration.baseOptions;
|
|
6363
|
+
}
|
|
6364
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6365
|
+
const localVarHeaderParameter = {};
|
|
6366
|
+
const localVarQueryParameter = {};
|
|
6367
|
+
// authentication OAuth2 required
|
|
6368
|
+
// oauth required
|
|
6369
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6370
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
6371
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6372
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
6373
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6374
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createReplyRequest, localVarRequestOptions, configuration);
|
|
6375
|
+
return {
|
|
6376
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6377
|
+
options: localVarRequestOptions,
|
|
6378
|
+
};
|
|
6379
|
+
}),
|
|
6380
|
+
/**
|
|
6381
|
+
* Get a `reply`.
|
|
6382
|
+
* @param {string} id The `thread` ID.
|
|
6383
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6384
|
+
* @param {*} [options] Override http request option.
|
|
6385
|
+
* @throws {RequiredError}
|
|
6386
|
+
*/
|
|
6387
|
+
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6388
|
+
var _b;
|
|
6389
|
+
// verify required parameter 'id' is not null or undefined
|
|
6390
|
+
(0, common_1.assertParamExists)('getReply', 'id', id);
|
|
6391
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6392
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6393
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6394
|
+
let baseOptions;
|
|
6395
|
+
if (configuration) {
|
|
6396
|
+
baseOptions = configuration.baseOptions;
|
|
6397
|
+
}
|
|
6398
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6399
|
+
const localVarHeaderParameter = {};
|
|
6400
|
+
const localVarQueryParameter = {};
|
|
6401
|
+
// authentication OAuth2 required
|
|
6402
|
+
// oauth required
|
|
6403
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6404
|
+
if (include !== undefined) {
|
|
6405
|
+
localVarQueryParameter['include'] = include;
|
|
6406
|
+
}
|
|
6407
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6408
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
6409
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6410
|
+
return {
|
|
6411
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6412
|
+
options: localVarRequestOptions,
|
|
6413
|
+
};
|
|
6414
|
+
}),
|
|
6415
|
+
/**
|
|
6416
|
+
* List `replies`
|
|
6417
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6418
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6419
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6420
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6421
|
+
* @param {*} [options] Override http request option.
|
|
6422
|
+
* @throws {RequiredError}
|
|
6423
|
+
*/
|
|
6424
|
+
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6425
|
+
var _c;
|
|
6426
|
+
const localVarPath = `/replies`;
|
|
6427
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6428
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6429
|
+
let baseOptions;
|
|
6430
|
+
if (configuration) {
|
|
6431
|
+
baseOptions = configuration.baseOptions;
|
|
6432
|
+
}
|
|
6433
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6434
|
+
const localVarHeaderParameter = {};
|
|
6435
|
+
const localVarQueryParameter = {};
|
|
6436
|
+
// authentication OAuth2 required
|
|
6437
|
+
// oauth required
|
|
6438
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6439
|
+
if (filterThreadId !== undefined) {
|
|
6440
|
+
localVarQueryParameter['filter[threadId]'] = filterThreadId;
|
|
6441
|
+
}
|
|
6442
|
+
if (pageCursor !== undefined) {
|
|
6443
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
6444
|
+
}
|
|
6445
|
+
if (pageSize !== undefined) {
|
|
6446
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
6447
|
+
}
|
|
6448
|
+
if (include !== undefined) {
|
|
6449
|
+
localVarQueryParameter['include'] = include;
|
|
6450
|
+
}
|
|
6451
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6452
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6453
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6454
|
+
return {
|
|
6455
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6456
|
+
options: localVarRequestOptions,
|
|
6457
|
+
};
|
|
6458
|
+
}),
|
|
6459
|
+
};
|
|
6460
|
+
};
|
|
6461
|
+
exports.RepliesApiAxiosParamCreator = RepliesApiAxiosParamCreator;
|
|
6462
|
+
/**
|
|
6463
|
+
* RepliesApi - functional programming interface
|
|
6464
|
+
* @export
|
|
6465
|
+
*/
|
|
6466
|
+
const RepliesApiFp = function (configuration) {
|
|
6467
|
+
const localVarAxiosParamCreator = (0, exports.RepliesApiAxiosParamCreator)(configuration);
|
|
6468
|
+
return {
|
|
6469
|
+
/**
|
|
6470
|
+
* Create a `reply` belonging to a `thread`.
|
|
6471
|
+
* @param {string} id The `thread` ID.
|
|
6472
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6473
|
+
* @param {*} [options] Override http request option.
|
|
6474
|
+
* @throws {RequiredError}
|
|
6475
|
+
*/
|
|
6476
|
+
createReply(id, createReplyRequest, options) {
|
|
6477
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6478
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createReply(id, createReplyRequest, options);
|
|
6479
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6480
|
+
});
|
|
6481
|
+
},
|
|
6482
|
+
/**
|
|
6483
|
+
* Get a `reply`.
|
|
6484
|
+
* @param {string} id The `thread` ID.
|
|
6485
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6486
|
+
* @param {*} [options] Override http request option.
|
|
6487
|
+
* @throws {RequiredError}
|
|
6488
|
+
*/
|
|
6489
|
+
getReply(id, include, options) {
|
|
6490
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6491
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReply(id, include, options);
|
|
6492
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6493
|
+
});
|
|
6494
|
+
},
|
|
6495
|
+
/**
|
|
6496
|
+
* List `replies`
|
|
6497
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6498
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6499
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6500
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6501
|
+
* @param {*} [options] Override http request option.
|
|
6502
|
+
* @throws {RequiredError}
|
|
6503
|
+
*/
|
|
6504
|
+
listReplies(filterThreadId, pageCursor, pageSize, include, options) {
|
|
6505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6506
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReplies(filterThreadId, pageCursor, pageSize, include, options);
|
|
6507
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6508
|
+
});
|
|
6509
|
+
},
|
|
6510
|
+
};
|
|
6511
|
+
};
|
|
6512
|
+
exports.RepliesApiFp = RepliesApiFp;
|
|
6513
|
+
/**
|
|
6514
|
+
* RepliesApi - factory interface
|
|
6515
|
+
* @export
|
|
6516
|
+
*/
|
|
6517
|
+
const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
6518
|
+
const localVarFp = (0, exports.RepliesApiFp)(configuration);
|
|
6519
|
+
return {
|
|
6520
|
+
/**
|
|
6521
|
+
* Create a `reply` belonging to a `thread`.
|
|
6522
|
+
* @param {string} id The `thread` ID.
|
|
6523
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6524
|
+
* @param {*} [options] Override http request option.
|
|
6525
|
+
* @throws {RequiredError}
|
|
6526
|
+
*/
|
|
6527
|
+
createReply(id, createReplyRequest, options) {
|
|
6528
|
+
return localVarFp
|
|
6529
|
+
.createReply(id, createReplyRequest, options)
|
|
6530
|
+
.then((request) => request(axios, basePath));
|
|
6531
|
+
},
|
|
6532
|
+
/**
|
|
6533
|
+
* Get a `reply`.
|
|
6534
|
+
* @param {string} id The `thread` ID.
|
|
6535
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6536
|
+
* @param {*} [options] Override http request option.
|
|
6537
|
+
* @throws {RequiredError}
|
|
6538
|
+
*/
|
|
6539
|
+
getReply(id, include, options) {
|
|
6540
|
+
return localVarFp
|
|
6541
|
+
.getReply(id, include, options)
|
|
6542
|
+
.then((request) => request(axios, basePath));
|
|
6543
|
+
},
|
|
6544
|
+
/**
|
|
6545
|
+
* List `replies`
|
|
6546
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6547
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6548
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6549
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6550
|
+
* @param {*} [options] Override http request option.
|
|
6551
|
+
* @throws {RequiredError}
|
|
6552
|
+
*/
|
|
6553
|
+
listReplies(filterThreadId, pageCursor, pageSize, include, options) {
|
|
6554
|
+
return localVarFp
|
|
6555
|
+
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6556
|
+
.then((request) => request(axios, basePath));
|
|
6557
|
+
},
|
|
6558
|
+
};
|
|
6559
|
+
};
|
|
6560
|
+
exports.RepliesApiFactory = RepliesApiFactory;
|
|
6561
|
+
/**
|
|
6562
|
+
* RepliesApi - object-oriented interface
|
|
6563
|
+
* @export
|
|
6564
|
+
* @class RepliesApi
|
|
6565
|
+
* @extends {BaseAPI}
|
|
6566
|
+
*/
|
|
6567
|
+
class RepliesApi extends base_1.BaseAPI {
|
|
6568
|
+
/**
|
|
6569
|
+
* Create a `reply` belonging to a `thread`.
|
|
6570
|
+
* @param {RepliesApiCreateReplyRequest} requestParameters Request parameters.
|
|
6571
|
+
* @param {*} [options] Override http request option.
|
|
6572
|
+
* @throws {RequiredError}
|
|
6573
|
+
* @memberof RepliesApi
|
|
6574
|
+
*/
|
|
6575
|
+
createReply(requestParameters, options) {
|
|
6576
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
6577
|
+
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6578
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6579
|
+
}
|
|
6580
|
+
/**
|
|
6581
|
+
* Get a `reply`.
|
|
6582
|
+
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
6583
|
+
* @param {*} [options] Override http request option.
|
|
6584
|
+
* @throws {RequiredError}
|
|
6585
|
+
* @memberof RepliesApi
|
|
6586
|
+
*/
|
|
6587
|
+
getReply(requestParameters, options) {
|
|
6588
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
6589
|
+
.getReply(requestParameters.id, requestParameters.include, options)
|
|
6590
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6591
|
+
}
|
|
6592
|
+
/**
|
|
6593
|
+
* List `replies`
|
|
6594
|
+
* @param {RepliesApiListRepliesRequest} requestParameters Request parameters.
|
|
6595
|
+
* @param {*} [options] Override http request option.
|
|
6596
|
+
* @throws {RequiredError}
|
|
6597
|
+
* @memberof RepliesApi
|
|
6598
|
+
*/
|
|
6599
|
+
listReplies(requestParameters = {}, options) {
|
|
6600
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
6601
|
+
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6602
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6603
|
+
}
|
|
6604
|
+
}
|
|
6605
|
+
exports.RepliesApi = RepliesApi;
|
|
6156
6606
|
/**
|
|
6157
6607
|
* SceneAlterationsApi - axios parameter creator
|
|
6158
6608
|
* @export
|
|
@@ -10121,10 +10571,12 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10121
10571
|
/**
|
|
10122
10572
|
* Get a `thread`.
|
|
10123
10573
|
* @param {string} id The `thread` ID.
|
|
10574
|
+
* @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.
|
|
10575
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10124
10576
|
* @param {*} [options] Override http request option.
|
|
10125
10577
|
* @throws {RequiredError}
|
|
10126
10578
|
*/
|
|
10127
|
-
getThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10579
|
+
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10128
10580
|
var _b;
|
|
10129
10581
|
// verify required parameter 'id' is not null or undefined
|
|
10130
10582
|
(0, common_1.assertParamExists)('getThread', 'id', id);
|
|
@@ -10141,6 +10593,12 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10141
10593
|
// authentication OAuth2 required
|
|
10142
10594
|
// oauth required
|
|
10143
10595
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10596
|
+
if (fieldsThread !== undefined) {
|
|
10597
|
+
localVarQueryParameter['fields[thread]'] = fieldsThread;
|
|
10598
|
+
}
|
|
10599
|
+
if (include !== undefined) {
|
|
10600
|
+
localVarQueryParameter['include'] = include;
|
|
10601
|
+
}
|
|
10144
10602
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10145
10603
|
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10146
10604
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -10149,16 +10607,49 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10149
10607
|
options: localVarRequestOptions,
|
|
10150
10608
|
};
|
|
10151
10609
|
}),
|
|
10610
|
+
/**
|
|
10611
|
+
* Get a `thread`s `user`s.
|
|
10612
|
+
* @param {string} id The `thread` ID.
|
|
10613
|
+
* @param {*} [options] Override http request option.
|
|
10614
|
+
* @throws {RequiredError}
|
|
10615
|
+
*/
|
|
10616
|
+
getThreadParticipants: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10617
|
+
var _c;
|
|
10618
|
+
// verify required parameter 'id' is not null or undefined
|
|
10619
|
+
(0, common_1.assertParamExists)('getThreadParticipants', 'id', id);
|
|
10620
|
+
const localVarPath = `/threads/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10621
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10622
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
10623
|
+
let baseOptions;
|
|
10624
|
+
if (configuration) {
|
|
10625
|
+
baseOptions = configuration.baseOptions;
|
|
10626
|
+
}
|
|
10627
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
10628
|
+
const localVarHeaderParameter = {};
|
|
10629
|
+
const localVarQueryParameter = {};
|
|
10630
|
+
// authentication OAuth2 required
|
|
10631
|
+
// oauth required
|
|
10632
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10633
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10634
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10635
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10636
|
+
return {
|
|
10637
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10638
|
+
options: localVarRequestOptions,
|
|
10639
|
+
};
|
|
10640
|
+
}),
|
|
10152
10641
|
/**
|
|
10153
10642
|
* Get a page of `thread`s.
|
|
10643
|
+
* @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.
|
|
10154
10644
|
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10155
10645
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10156
10646
|
* @param {number} [pageSize] The number of items to return.
|
|
10647
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10157
10648
|
* @param {*} [options] Override http request option.
|
|
10158
10649
|
* @throws {RequiredError}
|
|
10159
10650
|
*/
|
|
10160
|
-
getThreads: (filterCollaborationContextId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10161
|
-
var
|
|
10651
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10652
|
+
var _d;
|
|
10162
10653
|
const localVarPath = `/threads`;
|
|
10163
10654
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10164
10655
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -10172,6 +10663,9 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10172
10663
|
// authentication OAuth2 required
|
|
10173
10664
|
// oauth required
|
|
10174
10665
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10666
|
+
if (fieldsThread !== undefined) {
|
|
10667
|
+
localVarQueryParameter['fields[thread]'] = fieldsThread;
|
|
10668
|
+
}
|
|
10175
10669
|
if (filterCollaborationContextId !== undefined) {
|
|
10176
10670
|
localVarQueryParameter['filter[collaborationContextId]'] =
|
|
10177
10671
|
filterCollaborationContextId;
|
|
@@ -10182,8 +10676,11 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10182
10676
|
if (pageSize !== undefined) {
|
|
10183
10677
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
10184
10678
|
}
|
|
10679
|
+
if (include !== undefined) {
|
|
10680
|
+
localVarQueryParameter['include'] = include;
|
|
10681
|
+
}
|
|
10185
10682
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10186
|
-
let headersFromBaseOptions = (
|
|
10683
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
10187
10684
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10188
10685
|
return {
|
|
10189
10686
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10216,26 +10713,42 @@ const ThreadsApiFp = function (configuration) {
|
|
|
10216
10713
|
/**
|
|
10217
10714
|
* Get a `thread`.
|
|
10218
10715
|
* @param {string} id The `thread` ID.
|
|
10716
|
+
* @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.
|
|
10717
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10219
10718
|
* @param {*} [options] Override http request option.
|
|
10220
10719
|
* @throws {RequiredError}
|
|
10221
10720
|
*/
|
|
10222
|
-
getThread(id, options) {
|
|
10721
|
+
getThread(id, fieldsThread, include, options) {
|
|
10223
10722
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10224
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, options);
|
|
10723
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, fieldsThread, include, options);
|
|
10724
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10725
|
+
});
|
|
10726
|
+
},
|
|
10727
|
+
/**
|
|
10728
|
+
* Get a `thread`s `user`s.
|
|
10729
|
+
* @param {string} id The `thread` ID.
|
|
10730
|
+
* @param {*} [options] Override http request option.
|
|
10731
|
+
* @throws {RequiredError}
|
|
10732
|
+
*/
|
|
10733
|
+
getThreadParticipants(id, options) {
|
|
10734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10735
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreadParticipants(id, options);
|
|
10225
10736
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10226
10737
|
});
|
|
10227
10738
|
},
|
|
10228
10739
|
/**
|
|
10229
10740
|
* Get a page of `thread`s.
|
|
10741
|
+
* @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.
|
|
10230
10742
|
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10231
10743
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10232
10744
|
* @param {number} [pageSize] The number of items to return.
|
|
10745
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10233
10746
|
* @param {*} [options] Override http request option.
|
|
10234
10747
|
* @throws {RequiredError}
|
|
10235
10748
|
*/
|
|
10236
|
-
getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
|
|
10749
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
|
|
10237
10750
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10238
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(filterCollaborationContextId, pageCursor, pageSize, options);
|
|
10751
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options);
|
|
10239
10752
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10240
10753
|
});
|
|
10241
10754
|
},
|
|
@@ -10264,25 +10777,40 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10264
10777
|
/**
|
|
10265
10778
|
* Get a `thread`.
|
|
10266
10779
|
* @param {string} id The `thread` ID.
|
|
10780
|
+
* @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.
|
|
10781
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10782
|
+
* @param {*} [options] Override http request option.
|
|
10783
|
+
* @throws {RequiredError}
|
|
10784
|
+
*/
|
|
10785
|
+
getThread(id, fieldsThread, include, options) {
|
|
10786
|
+
return localVarFp
|
|
10787
|
+
.getThread(id, fieldsThread, include, options)
|
|
10788
|
+
.then((request) => request(axios, basePath));
|
|
10789
|
+
},
|
|
10790
|
+
/**
|
|
10791
|
+
* Get a `thread`s `user`s.
|
|
10792
|
+
* @param {string} id The `thread` ID.
|
|
10267
10793
|
* @param {*} [options] Override http request option.
|
|
10268
10794
|
* @throws {RequiredError}
|
|
10269
10795
|
*/
|
|
10270
|
-
|
|
10796
|
+
getThreadParticipants(id, options) {
|
|
10271
10797
|
return localVarFp
|
|
10272
|
-
.
|
|
10798
|
+
.getThreadParticipants(id, options)
|
|
10273
10799
|
.then((request) => request(axios, basePath));
|
|
10274
10800
|
},
|
|
10275
10801
|
/**
|
|
10276
10802
|
* Get a page of `thread`s.
|
|
10803
|
+
* @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.
|
|
10277
10804
|
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10278
10805
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10279
10806
|
* @param {number} [pageSize] The number of items to return.
|
|
10807
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10280
10808
|
* @param {*} [options] Override http request option.
|
|
10281
10809
|
* @throws {RequiredError}
|
|
10282
10810
|
*/
|
|
10283
|
-
getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
|
|
10811
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
|
|
10284
10812
|
return localVarFp
|
|
10285
|
-
.getThreads(filterCollaborationContextId, pageCursor, pageSize, options)
|
|
10813
|
+
.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options)
|
|
10286
10814
|
.then((request) => request(axios, basePath));
|
|
10287
10815
|
},
|
|
10288
10816
|
};
|
|
@@ -10316,7 +10844,19 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10316
10844
|
*/
|
|
10317
10845
|
getThread(requestParameters, options) {
|
|
10318
10846
|
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10319
|
-
.getThread(requestParameters.id, options)
|
|
10847
|
+
.getThread(requestParameters.id, requestParameters.fieldsThread, requestParameters.include, options)
|
|
10848
|
+
.then((request) => request(this.axios, this.basePath));
|
|
10849
|
+
}
|
|
10850
|
+
/**
|
|
10851
|
+
* Get a `thread`s `user`s.
|
|
10852
|
+
* @param {ThreadsApiGetThreadParticipantsRequest} requestParameters Request parameters.
|
|
10853
|
+
* @param {*} [options] Override http request option.
|
|
10854
|
+
* @throws {RequiredError}
|
|
10855
|
+
* @memberof ThreadsApi
|
|
10856
|
+
*/
|
|
10857
|
+
getThreadParticipants(requestParameters, options) {
|
|
10858
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10859
|
+
.getThreadParticipants(requestParameters.id, options)
|
|
10320
10860
|
.then((request) => request(this.axios, this.basePath));
|
|
10321
10861
|
}
|
|
10322
10862
|
/**
|
|
@@ -10328,7 +10868,7 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10328
10868
|
*/
|
|
10329
10869
|
getThreads(requestParameters = {}, options) {
|
|
10330
10870
|
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10331
|
-
.getThreads(requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
10871
|
+
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
10332
10872
|
.then((request) => request(this.axios, this.basePath));
|
|
10333
10873
|
}
|
|
10334
10874
|
}
|
|
@@ -10821,6 +11361,42 @@ exports.TranslationInspectionsApi = TranslationInspectionsApi;
|
|
|
10821
11361
|
*/
|
|
10822
11362
|
const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
10823
11363
|
return {
|
|
11364
|
+
/**
|
|
11365
|
+
* Add a `user` to a `user-group`.
|
|
11366
|
+
* @param {string} id A `user-group` ID.
|
|
11367
|
+
* @param {UserIdList} userIdList
|
|
11368
|
+
* @param {*} [options] Override http request option.
|
|
11369
|
+
* @throws {RequiredError}
|
|
11370
|
+
*/
|
|
11371
|
+
addUsersToUserGroup: (id, userIdList, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11372
|
+
var _a;
|
|
11373
|
+
// verify required parameter 'id' is not null or undefined
|
|
11374
|
+
(0, common_1.assertParamExists)('addUsersToUserGroup', 'id', id);
|
|
11375
|
+
// verify required parameter 'userIdList' is not null or undefined
|
|
11376
|
+
(0, common_1.assertParamExists)('addUsersToUserGroup', 'userIdList', userIdList);
|
|
11377
|
+
const localVarPath = `/user-groups/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11378
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11379
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11380
|
+
let baseOptions;
|
|
11381
|
+
if (configuration) {
|
|
11382
|
+
baseOptions = configuration.baseOptions;
|
|
11383
|
+
}
|
|
11384
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11385
|
+
const localVarHeaderParameter = {};
|
|
11386
|
+
const localVarQueryParameter = {};
|
|
11387
|
+
// authentication OAuth2 required
|
|
11388
|
+
// oauth required
|
|
11389
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11390
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11392
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
11393
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11394
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userIdList, localVarRequestOptions, configuration);
|
|
11395
|
+
return {
|
|
11396
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11397
|
+
options: localVarRequestOptions,
|
|
11398
|
+
};
|
|
11399
|
+
}),
|
|
10824
11400
|
/**
|
|
10825
11401
|
* Create a `user-group`
|
|
10826
11402
|
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
@@ -10828,7 +11404,7 @@ const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10828
11404
|
* @throws {RequiredError}
|
|
10829
11405
|
*/
|
|
10830
11406
|
createUserGroup: (createUserGroupRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10831
|
-
var
|
|
11407
|
+
var _b;
|
|
10832
11408
|
// verify required parameter 'createUserGroupRequest' is not null or undefined
|
|
10833
11409
|
(0, common_1.assertParamExists)('createUserGroup', 'createUserGroupRequest', createUserGroupRequest);
|
|
10834
11410
|
const localVarPath = `/user-groups`;
|
|
@@ -10846,7 +11422,7 @@ const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10846
11422
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10847
11423
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
10848
11424
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10849
|
-
let headersFromBaseOptions = (
|
|
11425
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10850
11426
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10851
11427
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUserGroupRequest, localVarRequestOptions, configuration);
|
|
10852
11428
|
return {
|
|
@@ -10861,7 +11437,7 @@ const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10861
11437
|
* @throws {RequiredError}
|
|
10862
11438
|
*/
|
|
10863
11439
|
getUserGroup: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10864
|
-
var
|
|
11440
|
+
var _c;
|
|
10865
11441
|
// verify required parameter 'id' is not null or undefined
|
|
10866
11442
|
(0, common_1.assertParamExists)('getUserGroup', 'id', id);
|
|
10867
11443
|
const localVarPath = `/user-groups/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10878,7 +11454,7 @@ const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10878
11454
|
// oauth required
|
|
10879
11455
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10880
11456
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10881
|
-
let headersFromBaseOptions = (
|
|
11457
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10882
11458
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10883
11459
|
return {
|
|
10884
11460
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10895,6 +11471,19 @@ exports.UserGroupsApiAxiosParamCreator = UserGroupsApiAxiosParamCreator;
|
|
|
10895
11471
|
const UserGroupsApiFp = function (configuration) {
|
|
10896
11472
|
const localVarAxiosParamCreator = (0, exports.UserGroupsApiAxiosParamCreator)(configuration);
|
|
10897
11473
|
return {
|
|
11474
|
+
/**
|
|
11475
|
+
* Add a `user` to a `user-group`.
|
|
11476
|
+
* @param {string} id A `user-group` ID.
|
|
11477
|
+
* @param {UserIdList} userIdList
|
|
11478
|
+
* @param {*} [options] Override http request option.
|
|
11479
|
+
* @throws {RequiredError}
|
|
11480
|
+
*/
|
|
11481
|
+
addUsersToUserGroup(id, userIdList, options) {
|
|
11482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11483
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addUsersToUserGroup(id, userIdList, options);
|
|
11484
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11485
|
+
});
|
|
11486
|
+
},
|
|
10898
11487
|
/**
|
|
10899
11488
|
* Create a `user-group`
|
|
10900
11489
|
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
@@ -10929,6 +11518,18 @@ exports.UserGroupsApiFp = UserGroupsApiFp;
|
|
|
10929
11518
|
const UserGroupsApiFactory = function (configuration, basePath, axios) {
|
|
10930
11519
|
const localVarFp = (0, exports.UserGroupsApiFp)(configuration);
|
|
10931
11520
|
return {
|
|
11521
|
+
/**
|
|
11522
|
+
* Add a `user` to a `user-group`.
|
|
11523
|
+
* @param {string} id A `user-group` ID.
|
|
11524
|
+
* @param {UserIdList} userIdList
|
|
11525
|
+
* @param {*} [options] Override http request option.
|
|
11526
|
+
* @throws {RequiredError}
|
|
11527
|
+
*/
|
|
11528
|
+
addUsersToUserGroup(id, userIdList, options) {
|
|
11529
|
+
return localVarFp
|
|
11530
|
+
.addUsersToUserGroup(id, userIdList, options)
|
|
11531
|
+
.then((request) => request(axios, basePath));
|
|
11532
|
+
},
|
|
10932
11533
|
/**
|
|
10933
11534
|
* Create a `user-group`
|
|
10934
11535
|
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
@@ -10961,6 +11562,18 @@ exports.UserGroupsApiFactory = UserGroupsApiFactory;
|
|
|
10961
11562
|
* @extends {BaseAPI}
|
|
10962
11563
|
*/
|
|
10963
11564
|
class UserGroupsApi extends base_1.BaseAPI {
|
|
11565
|
+
/**
|
|
11566
|
+
* Add a `user` to a `user-group`.
|
|
11567
|
+
* @param {UserGroupsApiAddUsersToUserGroupRequest} requestParameters Request parameters.
|
|
11568
|
+
* @param {*} [options] Override http request option.
|
|
11569
|
+
* @throws {RequiredError}
|
|
11570
|
+
* @memberof UserGroupsApi
|
|
11571
|
+
*/
|
|
11572
|
+
addUsersToUserGroup(requestParameters, options) {
|
|
11573
|
+
return (0, exports.UserGroupsApiFp)(this.configuration)
|
|
11574
|
+
.addUsersToUserGroup(requestParameters.id, requestParameters.userIdList, options)
|
|
11575
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11576
|
+
}
|
|
10964
11577
|
/**
|
|
10965
11578
|
* Create a `user-group`
|
|
10966
11579
|
* @param {UserGroupsApiCreateUserGroupRequest} requestParameters Request parameters.
|
|
@@ -11098,13 +11711,13 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
11098
11711
|
}),
|
|
11099
11712
|
/**
|
|
11100
11713
|
* List `user`s.
|
|
11101
|
-
* @param {string} [
|
|
11714
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11102
11715
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11103
11716
|
* @param {number} [pageSize] The number of items to return.
|
|
11104
11717
|
* @param {*} [options] Override http request option.
|
|
11105
11718
|
* @throws {RequiredError}
|
|
11106
11719
|
*/
|
|
11107
|
-
listUsers: (
|
|
11720
|
+
listUsers: (filterIdpId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11108
11721
|
var _d;
|
|
11109
11722
|
const localVarPath = `/users`;
|
|
11110
11723
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -11119,8 +11732,8 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
11119
11732
|
// authentication OAuth2 required
|
|
11120
11733
|
// oauth required
|
|
11121
11734
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11122
|
-
if (
|
|
11123
|
-
localVarQueryParameter['filter[
|
|
11735
|
+
if (filterIdpId !== undefined) {
|
|
11736
|
+
localVarQueryParameter['filter[idpId]'] = filterIdpId;
|
|
11124
11737
|
}
|
|
11125
11738
|
if (pageCursor !== undefined) {
|
|
11126
11739
|
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
@@ -11186,15 +11799,15 @@ const UsersApiFp = function (configuration) {
|
|
|
11186
11799
|
},
|
|
11187
11800
|
/**
|
|
11188
11801
|
* List `user`s.
|
|
11189
|
-
* @param {string} [
|
|
11802
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11190
11803
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11191
11804
|
* @param {number} [pageSize] The number of items to return.
|
|
11192
11805
|
* @param {*} [options] Override http request option.
|
|
11193
11806
|
* @throws {RequiredError}
|
|
11194
11807
|
*/
|
|
11195
|
-
listUsers(
|
|
11808
|
+
listUsers(filterIdpId, pageCursor, pageSize, options) {
|
|
11196
11809
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11197
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(
|
|
11810
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(filterIdpId, pageCursor, pageSize, options);
|
|
11198
11811
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11199
11812
|
});
|
|
11200
11813
|
},
|
|
@@ -11245,15 +11858,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
11245
11858
|
},
|
|
11246
11859
|
/**
|
|
11247
11860
|
* List `user`s.
|
|
11248
|
-
* @param {string} [
|
|
11861
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11249
11862
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11250
11863
|
* @param {number} [pageSize] The number of items to return.
|
|
11251
11864
|
* @param {*} [options] Override http request option.
|
|
11252
11865
|
* @throws {RequiredError}
|
|
11253
11866
|
*/
|
|
11254
|
-
listUsers(
|
|
11867
|
+
listUsers(filterIdpId, pageCursor, pageSize, options) {
|
|
11255
11868
|
return localVarFp
|
|
11256
|
-
.listUsers(
|
|
11869
|
+
.listUsers(filterIdpId, pageCursor, pageSize, options)
|
|
11257
11870
|
.then((request) => request(axios, basePath));
|
|
11258
11871
|
},
|
|
11259
11872
|
};
|
|
@@ -11311,7 +11924,7 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
11311
11924
|
*/
|
|
11312
11925
|
listUsers(requestParameters = {}, options) {
|
|
11313
11926
|
return (0, exports.UsersApiFp)(this.configuration)
|
|
11314
|
-
.listUsers(requestParameters.
|
|
11927
|
+
.listUsers(requestParameters.filterIdpId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
11315
11928
|
.then((request) => request(this.axios, this.basePath));
|
|
11316
11929
|
}
|
|
11317
11930
|
}
|