@vertexvis/api-client-node 0.31.0 → 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 +682 -22
- package/dist/cjs/api.js +500 -38
- 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 +682 -22
- package/dist/esm/api.js +491 -33
- 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/esm/api.js
CHANGED
|
@@ -78,6 +78,9 @@ export const CreatePermissionGrantDataTypeEnum = {
|
|
|
78
78
|
export const CreatePermissionGrantDataAttributesCapabilityEnum = {
|
|
79
79
|
Read: 'read',
|
|
80
80
|
};
|
|
81
|
+
export const CreateReplyRequestDataTypeEnum = {
|
|
82
|
+
Reply: 'reply',
|
|
83
|
+
};
|
|
81
84
|
export const CreateSceneExpressionAlterationRequestDataTypeEnum = {
|
|
82
85
|
SceneAlterationExpression: 'scene-alteration-expression',
|
|
83
86
|
};
|
|
@@ -196,6 +199,9 @@ export const QueryBySceneItemIdsTypeEnum = {
|
|
|
196
199
|
export const QueryBySceneItemMetadataTypeEnum = {
|
|
197
200
|
QueryByMetadata: 'query-by-metadata',
|
|
198
201
|
};
|
|
202
|
+
export const ReplyDataTypeEnum = {
|
|
203
|
+
Reply: 'reply',
|
|
204
|
+
};
|
|
199
205
|
export const SceneItemAndExpressionTypeEnum = {
|
|
200
206
|
And: 'and',
|
|
201
207
|
};
|
|
@@ -229,6 +235,9 @@ export const SelectOpTypeEnum = {
|
|
|
229
235
|
export const ThreadDataTypeEnum = {
|
|
230
236
|
Thread: 'thread',
|
|
231
237
|
};
|
|
238
|
+
export const ThreadRelationshipDataTypeEnum = {
|
|
239
|
+
Thread: 'thread',
|
|
240
|
+
};
|
|
232
241
|
/**
|
|
233
242
|
*
|
|
234
243
|
* @export
|
|
@@ -268,6 +277,9 @@ export const UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
|
|
|
268
277
|
export const UserGroupIdTypeEnum = {
|
|
269
278
|
UserGroup: 'user-group',
|
|
270
279
|
};
|
|
280
|
+
export const UserIdTypeEnum = {
|
|
281
|
+
User: 'user',
|
|
282
|
+
};
|
|
271
283
|
export const UserRelationshipDataTypeEnum = {
|
|
272
284
|
User: 'user',
|
|
273
285
|
};
|
|
@@ -1403,6 +1415,42 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1403
1415
|
options: localVarRequestOptions,
|
|
1404
1416
|
};
|
|
1405
1417
|
}),
|
|
1418
|
+
/**
|
|
1419
|
+
* List `collaboration-context`s
|
|
1420
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1421
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1422
|
+
* @param {*} [options] Override http request option.
|
|
1423
|
+
* @throws {RequiredError}
|
|
1424
|
+
*/
|
|
1425
|
+
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1426
|
+
var _d;
|
|
1427
|
+
const localVarPath = `/collaboration-contexts`;
|
|
1428
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1429
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1430
|
+
let baseOptions;
|
|
1431
|
+
if (configuration) {
|
|
1432
|
+
baseOptions = configuration.baseOptions;
|
|
1433
|
+
}
|
|
1434
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1435
|
+
const localVarHeaderParameter = {};
|
|
1436
|
+
const localVarQueryParameter = {};
|
|
1437
|
+
// authentication OAuth2 required
|
|
1438
|
+
// oauth required
|
|
1439
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1440
|
+
if (pageCursor !== undefined) {
|
|
1441
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
1442
|
+
}
|
|
1443
|
+
if (pageSize !== undefined) {
|
|
1444
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
1445
|
+
}
|
|
1446
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1447
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1448
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1449
|
+
return {
|
|
1450
|
+
url: toPathString(localVarUrlObj),
|
|
1451
|
+
options: localVarRequestOptions,
|
|
1452
|
+
};
|
|
1453
|
+
}),
|
|
1406
1454
|
};
|
|
1407
1455
|
};
|
|
1408
1456
|
/**
|
|
@@ -1449,6 +1497,19 @@ export const CollaborationContextsApiFp = function (configuration) {
|
|
|
1449
1497
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1450
1498
|
});
|
|
1451
1499
|
},
|
|
1500
|
+
/**
|
|
1501
|
+
* List `collaboration-context`s
|
|
1502
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1503
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1504
|
+
* @param {*} [options] Override http request option.
|
|
1505
|
+
* @throws {RequiredError}
|
|
1506
|
+
*/
|
|
1507
|
+
listCollaborationContexts(pageCursor, pageSize, options) {
|
|
1508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1509
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCollaborationContexts(pageCursor, pageSize, options);
|
|
1510
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1511
|
+
});
|
|
1512
|
+
},
|
|
1452
1513
|
};
|
|
1453
1514
|
};
|
|
1454
1515
|
/**
|
|
@@ -1492,6 +1553,18 @@ export const CollaborationContextsApiFactory = function (configuration, basePath
|
|
|
1492
1553
|
.getCollaborationContext(id, options)
|
|
1493
1554
|
.then((request) => request(axios, basePath));
|
|
1494
1555
|
},
|
|
1556
|
+
/**
|
|
1557
|
+
* List `collaboration-context`s
|
|
1558
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1559
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1560
|
+
* @param {*} [options] Override http request option.
|
|
1561
|
+
* @throws {RequiredError}
|
|
1562
|
+
*/
|
|
1563
|
+
listCollaborationContexts(pageCursor, pageSize, options) {
|
|
1564
|
+
return localVarFp
|
|
1565
|
+
.listCollaborationContexts(pageCursor, pageSize, options)
|
|
1566
|
+
.then((request) => request(axios, basePath));
|
|
1567
|
+
},
|
|
1495
1568
|
};
|
|
1496
1569
|
};
|
|
1497
1570
|
/**
|
|
@@ -1537,6 +1610,18 @@ export class CollaborationContextsApi extends BaseAPI {
|
|
|
1537
1610
|
.getCollaborationContext(requestParameters.id, options)
|
|
1538
1611
|
.then((request) => request(this.axios, this.basePath));
|
|
1539
1612
|
}
|
|
1613
|
+
/**
|
|
1614
|
+
* List `collaboration-context`s
|
|
1615
|
+
* @param {CollaborationContextsApiListCollaborationContextsRequest} requestParameters Request parameters.
|
|
1616
|
+
* @param {*} [options] Override http request option.
|
|
1617
|
+
* @throws {RequiredError}
|
|
1618
|
+
* @memberof CollaborationContextsApi
|
|
1619
|
+
*/
|
|
1620
|
+
listCollaborationContexts(requestParameters = {}, options) {
|
|
1621
|
+
return CollaborationContextsApiFp(this.configuration)
|
|
1622
|
+
.listCollaborationContexts(requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1623
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1624
|
+
}
|
|
1540
1625
|
}
|
|
1541
1626
|
/**
|
|
1542
1627
|
* ExportsApi - axios parameter creator
|
|
@@ -3882,11 +3967,13 @@ export const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
|
3882
3967
|
* @param {string} [scope]
|
|
3883
3968
|
* @param {string} [code]
|
|
3884
3969
|
* @param {string} [redirectUri]
|
|
3970
|
+
* @param {string} [subjectTokenType]
|
|
3885
3971
|
* @param {string} [refreshToken]
|
|
3972
|
+
* @param {string} [subjectToken]
|
|
3886
3973
|
* @param {*} [options] Override http request option.
|
|
3887
3974
|
* @throws {RequiredError}
|
|
3888
3975
|
*/
|
|
3889
|
-
createToken: (grantType, scope, code, redirectUri, refreshToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3976
|
+
createToken: (grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3890
3977
|
var _c;
|
|
3891
3978
|
// verify required parameter 'grantType' is not null or undefined
|
|
3892
3979
|
assertParamExists('createToken', 'grantType', grantType);
|
|
@@ -3916,9 +4003,15 @@ export const Oauth2ApiAxiosParamCreator = function (configuration) {
|
|
|
3916
4003
|
if (grantType !== undefined) {
|
|
3917
4004
|
localVarFormParams.set('grant_type', grantType);
|
|
3918
4005
|
}
|
|
4006
|
+
if (subjectTokenType !== undefined) {
|
|
4007
|
+
localVarFormParams.set('subject_token_type', subjectTokenType);
|
|
4008
|
+
}
|
|
3919
4009
|
if (refreshToken !== undefined) {
|
|
3920
4010
|
localVarFormParams.set('refresh_token', refreshToken);
|
|
3921
4011
|
}
|
|
4012
|
+
if (subjectToken !== undefined) {
|
|
4013
|
+
localVarFormParams.set('subject_token', subjectToken);
|
|
4014
|
+
}
|
|
3922
4015
|
localVarHeaderParameter['Content-Type'] =
|
|
3923
4016
|
'application/x-www-form-urlencoded';
|
|
3924
4017
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -4004,13 +4097,15 @@ export const Oauth2ApiFp = function (configuration) {
|
|
|
4004
4097
|
* @param {string} [scope]
|
|
4005
4098
|
* @param {string} [code]
|
|
4006
4099
|
* @param {string} [redirectUri]
|
|
4100
|
+
* @param {string} [subjectTokenType]
|
|
4007
4101
|
* @param {string} [refreshToken]
|
|
4102
|
+
* @param {string} [subjectToken]
|
|
4008
4103
|
* @param {*} [options] Override http request option.
|
|
4009
4104
|
* @throws {RequiredError}
|
|
4010
4105
|
*/
|
|
4011
|
-
createToken(grantType, scope, code, redirectUri, refreshToken, options) {
|
|
4106
|
+
createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
|
|
4012
4107
|
return __awaiter(this, void 0, void 0, function* () {
|
|
4013
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, refreshToken, options);
|
|
4108
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options);
|
|
4014
4109
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4015
4110
|
});
|
|
4016
4111
|
},
|
|
@@ -4065,13 +4160,15 @@ export const Oauth2ApiFactory = function (configuration, basePath, axios) {
|
|
|
4065
4160
|
* @param {string} [scope]
|
|
4066
4161
|
* @param {string} [code]
|
|
4067
4162
|
* @param {string} [redirectUri]
|
|
4163
|
+
* @param {string} [subjectTokenType]
|
|
4068
4164
|
* @param {string} [refreshToken]
|
|
4165
|
+
* @param {string} [subjectToken]
|
|
4069
4166
|
* @param {*} [options] Override http request option.
|
|
4070
4167
|
* @throws {RequiredError}
|
|
4071
4168
|
*/
|
|
4072
|
-
createToken(grantType, scope, code, redirectUri, refreshToken, options) {
|
|
4169
|
+
createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options) {
|
|
4073
4170
|
return localVarFp
|
|
4074
|
-
.createToken(grantType, scope, code, redirectUri, refreshToken, options)
|
|
4171
|
+
.createToken(grantType, scope, code, redirectUri, subjectTokenType, refreshToken, subjectToken, options)
|
|
4075
4172
|
.then((request) => request(axios, basePath));
|
|
4076
4173
|
},
|
|
4077
4174
|
/**
|
|
@@ -4127,7 +4224,7 @@ export class Oauth2Api extends BaseAPI {
|
|
|
4127
4224
|
*/
|
|
4128
4225
|
createToken(requestParameters, options) {
|
|
4129
4226
|
return Oauth2ApiFp(this.configuration)
|
|
4130
|
-
.createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options)
|
|
4227
|
+
.createToken(requestParameters.grantType, requestParameters.scope, requestParameters.code, requestParameters.redirectUri, requestParameters.subjectTokenType, requestParameters.refreshToken, requestParameters.subjectToken, options)
|
|
4131
4228
|
.then((request) => request(this.axios, this.basePath));
|
|
4132
4229
|
}
|
|
4133
4230
|
/**
|
|
@@ -6067,6 +6164,270 @@ export class PropertyEntriesApi extends BaseAPI {
|
|
|
6067
6164
|
.then((request) => request(this.axios, this.basePath));
|
|
6068
6165
|
}
|
|
6069
6166
|
}
|
|
6167
|
+
/**
|
|
6168
|
+
* RepliesApi - axios parameter creator
|
|
6169
|
+
* @export
|
|
6170
|
+
*/
|
|
6171
|
+
export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
6172
|
+
return {
|
|
6173
|
+
/**
|
|
6174
|
+
* Create a `reply` belonging to a `thread`.
|
|
6175
|
+
* @param {string} id The `thread` ID.
|
|
6176
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6177
|
+
* @param {*} [options] Override http request option.
|
|
6178
|
+
* @throws {RequiredError}
|
|
6179
|
+
*/
|
|
6180
|
+
createReply: (id, createReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6181
|
+
var _a;
|
|
6182
|
+
// verify required parameter 'id' is not null or undefined
|
|
6183
|
+
assertParamExists('createReply', 'id', id);
|
|
6184
|
+
// verify required parameter 'createReplyRequest' is not null or undefined
|
|
6185
|
+
assertParamExists('createReply', 'createReplyRequest', createReplyRequest);
|
|
6186
|
+
const localVarPath = `/threads/{id}/replies`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6187
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6188
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6189
|
+
let baseOptions;
|
|
6190
|
+
if (configuration) {
|
|
6191
|
+
baseOptions = configuration.baseOptions;
|
|
6192
|
+
}
|
|
6193
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
6194
|
+
const localVarHeaderParameter = {};
|
|
6195
|
+
const localVarQueryParameter = {};
|
|
6196
|
+
// authentication OAuth2 required
|
|
6197
|
+
// oauth required
|
|
6198
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6199
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
6200
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6201
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
6202
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6203
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createReplyRequest, localVarRequestOptions, configuration);
|
|
6204
|
+
return {
|
|
6205
|
+
url: toPathString(localVarUrlObj),
|
|
6206
|
+
options: localVarRequestOptions,
|
|
6207
|
+
};
|
|
6208
|
+
}),
|
|
6209
|
+
/**
|
|
6210
|
+
* Get a `reply`.
|
|
6211
|
+
* @param {string} id The `thread` ID.
|
|
6212
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6213
|
+
* @param {*} [options] Override http request option.
|
|
6214
|
+
* @throws {RequiredError}
|
|
6215
|
+
*/
|
|
6216
|
+
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6217
|
+
var _b;
|
|
6218
|
+
// verify required parameter 'id' is not null or undefined
|
|
6219
|
+
assertParamExists('getReply', 'id', id);
|
|
6220
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6222
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6223
|
+
let baseOptions;
|
|
6224
|
+
if (configuration) {
|
|
6225
|
+
baseOptions = configuration.baseOptions;
|
|
6226
|
+
}
|
|
6227
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6228
|
+
const localVarHeaderParameter = {};
|
|
6229
|
+
const localVarQueryParameter = {};
|
|
6230
|
+
// authentication OAuth2 required
|
|
6231
|
+
// oauth required
|
|
6232
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6233
|
+
if (include !== undefined) {
|
|
6234
|
+
localVarQueryParameter['include'] = include;
|
|
6235
|
+
}
|
|
6236
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6237
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
6238
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6239
|
+
return {
|
|
6240
|
+
url: toPathString(localVarUrlObj),
|
|
6241
|
+
options: localVarRequestOptions,
|
|
6242
|
+
};
|
|
6243
|
+
}),
|
|
6244
|
+
/**
|
|
6245
|
+
* List `replies`
|
|
6246
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6247
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6248
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6249
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6250
|
+
* @param {*} [options] Override http request option.
|
|
6251
|
+
* @throws {RequiredError}
|
|
6252
|
+
*/
|
|
6253
|
+
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6254
|
+
var _c;
|
|
6255
|
+
const localVarPath = `/replies`;
|
|
6256
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6257
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6258
|
+
let baseOptions;
|
|
6259
|
+
if (configuration) {
|
|
6260
|
+
baseOptions = configuration.baseOptions;
|
|
6261
|
+
}
|
|
6262
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
6263
|
+
const localVarHeaderParameter = {};
|
|
6264
|
+
const localVarQueryParameter = {};
|
|
6265
|
+
// authentication OAuth2 required
|
|
6266
|
+
// oauth required
|
|
6267
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6268
|
+
if (filterThreadId !== undefined) {
|
|
6269
|
+
localVarQueryParameter['filter[threadId]'] = filterThreadId;
|
|
6270
|
+
}
|
|
6271
|
+
if (pageCursor !== undefined) {
|
|
6272
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
6273
|
+
}
|
|
6274
|
+
if (pageSize !== undefined) {
|
|
6275
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
6276
|
+
}
|
|
6277
|
+
if (include !== undefined) {
|
|
6278
|
+
localVarQueryParameter['include'] = include;
|
|
6279
|
+
}
|
|
6280
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6281
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6282
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6283
|
+
return {
|
|
6284
|
+
url: toPathString(localVarUrlObj),
|
|
6285
|
+
options: localVarRequestOptions,
|
|
6286
|
+
};
|
|
6287
|
+
}),
|
|
6288
|
+
};
|
|
6289
|
+
};
|
|
6290
|
+
/**
|
|
6291
|
+
* RepliesApi - functional programming interface
|
|
6292
|
+
* @export
|
|
6293
|
+
*/
|
|
6294
|
+
export const RepliesApiFp = function (configuration) {
|
|
6295
|
+
const localVarAxiosParamCreator = RepliesApiAxiosParamCreator(configuration);
|
|
6296
|
+
return {
|
|
6297
|
+
/**
|
|
6298
|
+
* Create a `reply` belonging to a `thread`.
|
|
6299
|
+
* @param {string} id The `thread` ID.
|
|
6300
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6301
|
+
* @param {*} [options] Override http request option.
|
|
6302
|
+
* @throws {RequiredError}
|
|
6303
|
+
*/
|
|
6304
|
+
createReply(id, createReplyRequest, options) {
|
|
6305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6306
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createReply(id, createReplyRequest, options);
|
|
6307
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6308
|
+
});
|
|
6309
|
+
},
|
|
6310
|
+
/**
|
|
6311
|
+
* Get a `reply`.
|
|
6312
|
+
* @param {string} id The `thread` ID.
|
|
6313
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6314
|
+
* @param {*} [options] Override http request option.
|
|
6315
|
+
* @throws {RequiredError}
|
|
6316
|
+
*/
|
|
6317
|
+
getReply(id, include, options) {
|
|
6318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6319
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getReply(id, include, options);
|
|
6320
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6321
|
+
});
|
|
6322
|
+
},
|
|
6323
|
+
/**
|
|
6324
|
+
* List `replies`
|
|
6325
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6326
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6327
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6328
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6329
|
+
* @param {*} [options] Override http request option.
|
|
6330
|
+
* @throws {RequiredError}
|
|
6331
|
+
*/
|
|
6332
|
+
listReplies(filterThreadId, pageCursor, pageSize, include, options) {
|
|
6333
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6334
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listReplies(filterThreadId, pageCursor, pageSize, include, options);
|
|
6335
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6336
|
+
});
|
|
6337
|
+
},
|
|
6338
|
+
};
|
|
6339
|
+
};
|
|
6340
|
+
/**
|
|
6341
|
+
* RepliesApi - factory interface
|
|
6342
|
+
* @export
|
|
6343
|
+
*/
|
|
6344
|
+
export const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
6345
|
+
const localVarFp = RepliesApiFp(configuration);
|
|
6346
|
+
return {
|
|
6347
|
+
/**
|
|
6348
|
+
* Create a `reply` belonging to a `thread`.
|
|
6349
|
+
* @param {string} id The `thread` ID.
|
|
6350
|
+
* @param {CreateReplyRequest} createReplyRequest
|
|
6351
|
+
* @param {*} [options] Override http request option.
|
|
6352
|
+
* @throws {RequiredError}
|
|
6353
|
+
*/
|
|
6354
|
+
createReply(id, createReplyRequest, options) {
|
|
6355
|
+
return localVarFp
|
|
6356
|
+
.createReply(id, createReplyRequest, options)
|
|
6357
|
+
.then((request) => request(axios, basePath));
|
|
6358
|
+
},
|
|
6359
|
+
/**
|
|
6360
|
+
* Get a `reply`.
|
|
6361
|
+
* @param {string} id The `thread` ID.
|
|
6362
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6363
|
+
* @param {*} [options] Override http request option.
|
|
6364
|
+
* @throws {RequiredError}
|
|
6365
|
+
*/
|
|
6366
|
+
getReply(id, include, options) {
|
|
6367
|
+
return localVarFp
|
|
6368
|
+
.getReply(id, include, options)
|
|
6369
|
+
.then((request) => request(axios, basePath));
|
|
6370
|
+
},
|
|
6371
|
+
/**
|
|
6372
|
+
* List `replies`
|
|
6373
|
+
* @param {string} [filterThreadId] Comma-separated list of supplied IDs to filter on.
|
|
6374
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
6375
|
+
* @param {number} [pageSize] The number of items to return.
|
|
6376
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
6377
|
+
* @param {*} [options] Override http request option.
|
|
6378
|
+
* @throws {RequiredError}
|
|
6379
|
+
*/
|
|
6380
|
+
listReplies(filterThreadId, pageCursor, pageSize, include, options) {
|
|
6381
|
+
return localVarFp
|
|
6382
|
+
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6383
|
+
.then((request) => request(axios, basePath));
|
|
6384
|
+
},
|
|
6385
|
+
};
|
|
6386
|
+
};
|
|
6387
|
+
/**
|
|
6388
|
+
* RepliesApi - object-oriented interface
|
|
6389
|
+
* @export
|
|
6390
|
+
* @class RepliesApi
|
|
6391
|
+
* @extends {BaseAPI}
|
|
6392
|
+
*/
|
|
6393
|
+
export class RepliesApi extends BaseAPI {
|
|
6394
|
+
/**
|
|
6395
|
+
* Create a `reply` belonging to a `thread`.
|
|
6396
|
+
* @param {RepliesApiCreateReplyRequest} requestParameters Request parameters.
|
|
6397
|
+
* @param {*} [options] Override http request option.
|
|
6398
|
+
* @throws {RequiredError}
|
|
6399
|
+
* @memberof RepliesApi
|
|
6400
|
+
*/
|
|
6401
|
+
createReply(requestParameters, options) {
|
|
6402
|
+
return RepliesApiFp(this.configuration)
|
|
6403
|
+
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6404
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6405
|
+
}
|
|
6406
|
+
/**
|
|
6407
|
+
* Get a `reply`.
|
|
6408
|
+
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
6409
|
+
* @param {*} [options] Override http request option.
|
|
6410
|
+
* @throws {RequiredError}
|
|
6411
|
+
* @memberof RepliesApi
|
|
6412
|
+
*/
|
|
6413
|
+
getReply(requestParameters, options) {
|
|
6414
|
+
return RepliesApiFp(this.configuration)
|
|
6415
|
+
.getReply(requestParameters.id, requestParameters.include, options)
|
|
6416
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6417
|
+
}
|
|
6418
|
+
/**
|
|
6419
|
+
* List `replies`
|
|
6420
|
+
* @param {RepliesApiListRepliesRequest} requestParameters Request parameters.
|
|
6421
|
+
* @param {*} [options] Override http request option.
|
|
6422
|
+
* @throws {RequiredError}
|
|
6423
|
+
* @memberof RepliesApi
|
|
6424
|
+
*/
|
|
6425
|
+
listReplies(requestParameters = {}, options) {
|
|
6426
|
+
return RepliesApiFp(this.configuration)
|
|
6427
|
+
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6428
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6429
|
+
}
|
|
6430
|
+
}
|
|
6070
6431
|
/**
|
|
6071
6432
|
* SceneAlterationsApi - axios parameter creator
|
|
6072
6433
|
* @export
|
|
@@ -9995,10 +10356,12 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
9995
10356
|
/**
|
|
9996
10357
|
* Get a `thread`.
|
|
9997
10358
|
* @param {string} id The `thread` ID.
|
|
10359
|
+
* @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.
|
|
10360
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
9998
10361
|
* @param {*} [options] Override http request option.
|
|
9999
10362
|
* @throws {RequiredError}
|
|
10000
10363
|
*/
|
|
10001
|
-
getThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10364
|
+
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10002
10365
|
var _b;
|
|
10003
10366
|
// verify required parameter 'id' is not null or undefined
|
|
10004
10367
|
assertParamExists('getThread', 'id', id);
|
|
@@ -10015,6 +10378,12 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10015
10378
|
// authentication OAuth2 required
|
|
10016
10379
|
// oauth required
|
|
10017
10380
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10381
|
+
if (fieldsThread !== undefined) {
|
|
10382
|
+
localVarQueryParameter['fields[thread]'] = fieldsThread;
|
|
10383
|
+
}
|
|
10384
|
+
if (include !== undefined) {
|
|
10385
|
+
localVarQueryParameter['include'] = include;
|
|
10386
|
+
}
|
|
10018
10387
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10019
10388
|
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10020
10389
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -10025,13 +10394,15 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10025
10394
|
}),
|
|
10026
10395
|
/**
|
|
10027
10396
|
* Get a page of `thread`s.
|
|
10397
|
+
* @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.
|
|
10028
10398
|
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10029
10399
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10030
10400
|
* @param {number} [pageSize] The number of items to return.
|
|
10401
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10031
10402
|
* @param {*} [options] Override http request option.
|
|
10032
10403
|
* @throws {RequiredError}
|
|
10033
10404
|
*/
|
|
10034
|
-
getThreads: (filterCollaborationContextId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10405
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10035
10406
|
var _c;
|
|
10036
10407
|
const localVarPath = `/threads`;
|
|
10037
10408
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10046,6 +10417,9 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10046
10417
|
// authentication OAuth2 required
|
|
10047
10418
|
// oauth required
|
|
10048
10419
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10420
|
+
if (fieldsThread !== undefined) {
|
|
10421
|
+
localVarQueryParameter['fields[thread]'] = fieldsThread;
|
|
10422
|
+
}
|
|
10049
10423
|
if (filterCollaborationContextId !== undefined) {
|
|
10050
10424
|
localVarQueryParameter['filter[collaborationContextId]'] =
|
|
10051
10425
|
filterCollaborationContextId;
|
|
@@ -10056,6 +10430,9 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10056
10430
|
if (pageSize !== undefined) {
|
|
10057
10431
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
10058
10432
|
}
|
|
10433
|
+
if (include !== undefined) {
|
|
10434
|
+
localVarQueryParameter['include'] = include;
|
|
10435
|
+
}
|
|
10059
10436
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10060
10437
|
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10061
10438
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -10089,26 +10466,30 @@ export const ThreadsApiFp = function (configuration) {
|
|
|
10089
10466
|
/**
|
|
10090
10467
|
* Get a `thread`.
|
|
10091
10468
|
* @param {string} id The `thread` ID.
|
|
10469
|
+
* @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.
|
|
10470
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10092
10471
|
* @param {*} [options] Override http request option.
|
|
10093
10472
|
* @throws {RequiredError}
|
|
10094
10473
|
*/
|
|
10095
|
-
getThread(id, options) {
|
|
10474
|
+
getThread(id, fieldsThread, include, options) {
|
|
10096
10475
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10097
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, options);
|
|
10476
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThread(id, fieldsThread, include, options);
|
|
10098
10477
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10099
10478
|
});
|
|
10100
10479
|
},
|
|
10101
10480
|
/**
|
|
10102
10481
|
* Get a page of `thread`s.
|
|
10482
|
+
* @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.
|
|
10103
10483
|
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10104
10484
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10105
10485
|
* @param {number} [pageSize] The number of items to return.
|
|
10486
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10106
10487
|
* @param {*} [options] Override http request option.
|
|
10107
10488
|
* @throws {RequiredError}
|
|
10108
10489
|
*/
|
|
10109
|
-
getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
|
|
10490
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
|
|
10110
10491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10111
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(filterCollaborationContextId, pageCursor, pageSize, options);
|
|
10492
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options);
|
|
10112
10493
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10113
10494
|
});
|
|
10114
10495
|
},
|
|
@@ -10136,25 +10517,29 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10136
10517
|
/**
|
|
10137
10518
|
* Get a `thread`.
|
|
10138
10519
|
* @param {string} id The `thread` ID.
|
|
10520
|
+
* @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.
|
|
10521
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10139
10522
|
* @param {*} [options] Override http request option.
|
|
10140
10523
|
* @throws {RequiredError}
|
|
10141
10524
|
*/
|
|
10142
|
-
getThread(id, options) {
|
|
10525
|
+
getThread(id, fieldsThread, include, options) {
|
|
10143
10526
|
return localVarFp
|
|
10144
|
-
.getThread(id, options)
|
|
10527
|
+
.getThread(id, fieldsThread, include, options)
|
|
10145
10528
|
.then((request) => request(axios, basePath));
|
|
10146
10529
|
},
|
|
10147
10530
|
/**
|
|
10148
10531
|
* Get a page of `thread`s.
|
|
10532
|
+
* @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.
|
|
10149
10533
|
* @param {string} [filterCollaborationContextId] A collaboration context to filter on.
|
|
10150
10534
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10151
10535
|
* @param {number} [pageSize] The number of items to return.
|
|
10536
|
+
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
10152
10537
|
* @param {*} [options] Override http request option.
|
|
10153
10538
|
* @throws {RequiredError}
|
|
10154
10539
|
*/
|
|
10155
|
-
getThreads(filterCollaborationContextId, pageCursor, pageSize, options) {
|
|
10540
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options) {
|
|
10156
10541
|
return localVarFp
|
|
10157
|
-
.getThreads(filterCollaborationContextId, pageCursor, pageSize, options)
|
|
10542
|
+
.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options)
|
|
10158
10543
|
.then((request) => request(axios, basePath));
|
|
10159
10544
|
},
|
|
10160
10545
|
};
|
|
@@ -10187,7 +10572,7 @@ export class ThreadsApi extends BaseAPI {
|
|
|
10187
10572
|
*/
|
|
10188
10573
|
getThread(requestParameters, options) {
|
|
10189
10574
|
return ThreadsApiFp(this.configuration)
|
|
10190
|
-
.getThread(requestParameters.id, options)
|
|
10575
|
+
.getThread(requestParameters.id, requestParameters.fieldsThread, requestParameters.include, options)
|
|
10191
10576
|
.then((request) => request(this.axios, this.basePath));
|
|
10192
10577
|
}
|
|
10193
10578
|
/**
|
|
@@ -10199,7 +10584,7 @@ export class ThreadsApi extends BaseAPI {
|
|
|
10199
10584
|
*/
|
|
10200
10585
|
getThreads(requestParameters = {}, options) {
|
|
10201
10586
|
return ThreadsApiFp(this.configuration)
|
|
10202
|
-
.getThreads(requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
10587
|
+
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
10203
10588
|
.then((request) => request(this.axios, this.basePath));
|
|
10204
10589
|
}
|
|
10205
10590
|
}
|
|
@@ -10687,6 +11072,42 @@ export class TranslationInspectionsApi extends BaseAPI {
|
|
|
10687
11072
|
*/
|
|
10688
11073
|
export const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
10689
11074
|
return {
|
|
11075
|
+
/**
|
|
11076
|
+
* Add a `user` to a `user-group`.
|
|
11077
|
+
* @param {string} id A `user-group` ID.
|
|
11078
|
+
* @param {UserIdList} userIdList
|
|
11079
|
+
* @param {*} [options] Override http request option.
|
|
11080
|
+
* @throws {RequiredError}
|
|
11081
|
+
*/
|
|
11082
|
+
addUsersToUserGroup: (id, userIdList, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11083
|
+
var _a;
|
|
11084
|
+
// verify required parameter 'id' is not null or undefined
|
|
11085
|
+
assertParamExists('addUsersToUserGroup', 'id', id);
|
|
11086
|
+
// verify required parameter 'userIdList' is not null or undefined
|
|
11087
|
+
assertParamExists('addUsersToUserGroup', 'userIdList', userIdList);
|
|
11088
|
+
const localVarPath = `/user-groups/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11089
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11090
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11091
|
+
let baseOptions;
|
|
11092
|
+
if (configuration) {
|
|
11093
|
+
baseOptions = configuration.baseOptions;
|
|
11094
|
+
}
|
|
11095
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11096
|
+
const localVarHeaderParameter = {};
|
|
11097
|
+
const localVarQueryParameter = {};
|
|
11098
|
+
// authentication OAuth2 required
|
|
11099
|
+
// oauth required
|
|
11100
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11101
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11102
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11103
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
11104
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11105
|
+
localVarRequestOptions.data = serializeDataIfNeeded(userIdList, localVarRequestOptions, configuration);
|
|
11106
|
+
return {
|
|
11107
|
+
url: toPathString(localVarUrlObj),
|
|
11108
|
+
options: localVarRequestOptions,
|
|
11109
|
+
};
|
|
11110
|
+
}),
|
|
10690
11111
|
/**
|
|
10691
11112
|
* Create a `user-group`
|
|
10692
11113
|
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
@@ -10694,7 +11115,7 @@ export const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10694
11115
|
* @throws {RequiredError}
|
|
10695
11116
|
*/
|
|
10696
11117
|
createUserGroup: (createUserGroupRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10697
|
-
var
|
|
11118
|
+
var _b;
|
|
10698
11119
|
// verify required parameter 'createUserGroupRequest' is not null or undefined
|
|
10699
11120
|
assertParamExists('createUserGroup', 'createUserGroupRequest', createUserGroupRequest);
|
|
10700
11121
|
const localVarPath = `/user-groups`;
|
|
@@ -10712,7 +11133,7 @@ export const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10712
11133
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10713
11134
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
10714
11135
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10715
|
-
let headersFromBaseOptions = (
|
|
11136
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10716
11137
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10717
11138
|
localVarRequestOptions.data = serializeDataIfNeeded(createUserGroupRequest, localVarRequestOptions, configuration);
|
|
10718
11139
|
return {
|
|
@@ -10727,7 +11148,7 @@ export const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10727
11148
|
* @throws {RequiredError}
|
|
10728
11149
|
*/
|
|
10729
11150
|
getUserGroup: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10730
|
-
var
|
|
11151
|
+
var _c;
|
|
10731
11152
|
// verify required parameter 'id' is not null or undefined
|
|
10732
11153
|
assertParamExists('getUserGroup', 'id', id);
|
|
10733
11154
|
const localVarPath = `/user-groups/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10744,7 +11165,7 @@ export const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10744
11165
|
// oauth required
|
|
10745
11166
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10746
11167
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10747
|
-
let headersFromBaseOptions = (
|
|
11168
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10748
11169
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10749
11170
|
return {
|
|
10750
11171
|
url: toPathString(localVarUrlObj),
|
|
@@ -10760,6 +11181,19 @@ export const UserGroupsApiAxiosParamCreator = function (configuration) {
|
|
|
10760
11181
|
export const UserGroupsApiFp = function (configuration) {
|
|
10761
11182
|
const localVarAxiosParamCreator = UserGroupsApiAxiosParamCreator(configuration);
|
|
10762
11183
|
return {
|
|
11184
|
+
/**
|
|
11185
|
+
* Add a `user` to a `user-group`.
|
|
11186
|
+
* @param {string} id A `user-group` ID.
|
|
11187
|
+
* @param {UserIdList} userIdList
|
|
11188
|
+
* @param {*} [options] Override http request option.
|
|
11189
|
+
* @throws {RequiredError}
|
|
11190
|
+
*/
|
|
11191
|
+
addUsersToUserGroup(id, userIdList, options) {
|
|
11192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.addUsersToUserGroup(id, userIdList, options);
|
|
11194
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11195
|
+
});
|
|
11196
|
+
},
|
|
10763
11197
|
/**
|
|
10764
11198
|
* Create a `user-group`
|
|
10765
11199
|
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
@@ -10793,6 +11227,18 @@ export const UserGroupsApiFp = function (configuration) {
|
|
|
10793
11227
|
export const UserGroupsApiFactory = function (configuration, basePath, axios) {
|
|
10794
11228
|
const localVarFp = UserGroupsApiFp(configuration);
|
|
10795
11229
|
return {
|
|
11230
|
+
/**
|
|
11231
|
+
* Add a `user` to a `user-group`.
|
|
11232
|
+
* @param {string} id A `user-group` ID.
|
|
11233
|
+
* @param {UserIdList} userIdList
|
|
11234
|
+
* @param {*} [options] Override http request option.
|
|
11235
|
+
* @throws {RequiredError}
|
|
11236
|
+
*/
|
|
11237
|
+
addUsersToUserGroup(id, userIdList, options) {
|
|
11238
|
+
return localVarFp
|
|
11239
|
+
.addUsersToUserGroup(id, userIdList, options)
|
|
11240
|
+
.then((request) => request(axios, basePath));
|
|
11241
|
+
},
|
|
10796
11242
|
/**
|
|
10797
11243
|
* Create a `user-group`
|
|
10798
11244
|
* @param {CreateUserGroupRequest} createUserGroupRequest
|
|
@@ -10824,6 +11270,18 @@ export const UserGroupsApiFactory = function (configuration, basePath, axios) {
|
|
|
10824
11270
|
* @extends {BaseAPI}
|
|
10825
11271
|
*/
|
|
10826
11272
|
export class UserGroupsApi extends BaseAPI {
|
|
11273
|
+
/**
|
|
11274
|
+
* Add a `user` to a `user-group`.
|
|
11275
|
+
* @param {UserGroupsApiAddUsersToUserGroupRequest} requestParameters Request parameters.
|
|
11276
|
+
* @param {*} [options] Override http request option.
|
|
11277
|
+
* @throws {RequiredError}
|
|
11278
|
+
* @memberof UserGroupsApi
|
|
11279
|
+
*/
|
|
11280
|
+
addUsersToUserGroup(requestParameters, options) {
|
|
11281
|
+
return UserGroupsApiFp(this.configuration)
|
|
11282
|
+
.addUsersToUserGroup(requestParameters.id, requestParameters.userIdList, options)
|
|
11283
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11284
|
+
}
|
|
10827
11285
|
/**
|
|
10828
11286
|
* Create a `user-group`
|
|
10829
11287
|
* @param {UserGroupsApiCreateUserGroupRequest} requestParameters Request parameters.
|
|
@@ -10960,13 +11418,13 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
10960
11418
|
}),
|
|
10961
11419
|
/**
|
|
10962
11420
|
* List `user`s.
|
|
10963
|
-
* @param {string} [
|
|
11421
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
10964
11422
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10965
11423
|
* @param {number} [pageSize] The number of items to return.
|
|
10966
11424
|
* @param {*} [options] Override http request option.
|
|
10967
11425
|
* @throws {RequiredError}
|
|
10968
11426
|
*/
|
|
10969
|
-
listUsers: (
|
|
11427
|
+
listUsers: (filterIdpId, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10970
11428
|
var _d;
|
|
10971
11429
|
const localVarPath = `/users`;
|
|
10972
11430
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -10981,8 +11439,8 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
10981
11439
|
// authentication OAuth2 required
|
|
10982
11440
|
// oauth required
|
|
10983
11441
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10984
|
-
if (
|
|
10985
|
-
localVarQueryParameter['filter[
|
|
11442
|
+
if (filterIdpId !== undefined) {
|
|
11443
|
+
localVarQueryParameter['filter[idpId]'] = filterIdpId;
|
|
10986
11444
|
}
|
|
10987
11445
|
if (pageCursor !== undefined) {
|
|
10988
11446
|
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
@@ -11047,15 +11505,15 @@ export const UsersApiFp = function (configuration) {
|
|
|
11047
11505
|
},
|
|
11048
11506
|
/**
|
|
11049
11507
|
* List `user`s.
|
|
11050
|
-
* @param {string} [
|
|
11508
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11051
11509
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11052
11510
|
* @param {number} [pageSize] The number of items to return.
|
|
11053
11511
|
* @param {*} [options] Override http request option.
|
|
11054
11512
|
* @throws {RequiredError}
|
|
11055
11513
|
*/
|
|
11056
|
-
listUsers(
|
|
11514
|
+
listUsers(filterIdpId, pageCursor, pageSize, options) {
|
|
11057
11515
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11058
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(
|
|
11516
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listUsers(filterIdpId, pageCursor, pageSize, options);
|
|
11059
11517
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11060
11518
|
});
|
|
11061
11519
|
},
|
|
@@ -11105,15 +11563,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
11105
11563
|
},
|
|
11106
11564
|
/**
|
|
11107
11565
|
* List `user`s.
|
|
11108
|
-
* @param {string} [
|
|
11566
|
+
* @param {string} [filterIdpId] Id from the idpProvider.
|
|
11109
11567
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
11110
11568
|
* @param {number} [pageSize] The number of items to return.
|
|
11111
11569
|
* @param {*} [options] Override http request option.
|
|
11112
11570
|
* @throws {RequiredError}
|
|
11113
11571
|
*/
|
|
11114
|
-
listUsers(
|
|
11572
|
+
listUsers(filterIdpId, pageCursor, pageSize, options) {
|
|
11115
11573
|
return localVarFp
|
|
11116
|
-
.listUsers(
|
|
11574
|
+
.listUsers(filterIdpId, pageCursor, pageSize, options)
|
|
11117
11575
|
.then((request) => request(axios, basePath));
|
|
11118
11576
|
},
|
|
11119
11577
|
};
|
|
@@ -11170,7 +11628,7 @@ export class UsersApi extends BaseAPI {
|
|
|
11170
11628
|
*/
|
|
11171
11629
|
listUsers(requestParameters = {}, options) {
|
|
11172
11630
|
return UsersApiFp(this.configuration)
|
|
11173
|
-
.listUsers(requestParameters.
|
|
11631
|
+
.listUsers(requestParameters.filterIdpId, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
11174
11632
|
.then((request) => request(this.axios, this.basePath));
|
|
11175
11633
|
}
|
|
11176
11634
|
}
|