@vertexvis/api-client-node 0.34.0 → 0.36.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 +1303 -122
- package/dist/cjs/api.js +829 -45
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +1303 -122
- package/dist/esm/api.js +821 -41
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -25,7 +25,7 @@ import globalAxios from 'axios';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { BASE_PATH, BaseAPI } from './base';
|
|
28
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI } from './base';
|
|
29
29
|
export const AccountRelationshipDataTypeEnum = {
|
|
30
30
|
Account: 'account',
|
|
31
31
|
};
|
|
@@ -64,6 +64,9 @@ export const ClearTransformOpTypeEnum = {
|
|
|
64
64
|
export const CollaborationContextRelationshipDataTypeEnum = {
|
|
65
65
|
CollaborationContext: 'collaboration-context',
|
|
66
66
|
};
|
|
67
|
+
export const CreateAttachmentRequestDataTypeEnum = {
|
|
68
|
+
Attachment: 'attachment',
|
|
69
|
+
};
|
|
67
70
|
export const CreateCollaborationContextRequestDataTypeEnum = {
|
|
68
71
|
CollaborationContext: 'collaboration-context',
|
|
69
72
|
};
|
|
@@ -114,6 +117,9 @@ export const ExportRelationshipDataTypeEnum = {
|
|
|
114
117
|
export const ExportStateRelationshipDataTypeEnum = {
|
|
115
118
|
SceneViewState: 'scene-view-state',
|
|
116
119
|
};
|
|
120
|
+
export const FileAttachmentTypeEnum = {
|
|
121
|
+
File: 'file',
|
|
122
|
+
};
|
|
117
123
|
export const FileCollectionMetadataDataTypeEnum = {
|
|
118
124
|
FileCollection: 'file-collection',
|
|
119
125
|
};
|
|
@@ -135,6 +141,9 @@ export const PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
|
135
141
|
export const PartInstanceRelationshipDataTypeEnum = {
|
|
136
142
|
PartInstance: 'part-instance',
|
|
137
143
|
};
|
|
144
|
+
export const PartInstancesRelationshipDataTypeEnum = {
|
|
145
|
+
PartRevisionInstance: 'part-revision-instance',
|
|
146
|
+
};
|
|
138
147
|
export const PartRelationshipDataTypeEnum = {
|
|
139
148
|
Part: 'part',
|
|
140
149
|
};
|
|
@@ -316,12 +325,21 @@ export const WebhookSubscriptionDataAttributesStatusEnum = {
|
|
|
316
325
|
Active: 'active',
|
|
317
326
|
Paused: 'paused',
|
|
318
327
|
};
|
|
328
|
+
export const WithFileContentTypeEnum = {
|
|
329
|
+
FileContent: 'file-content',
|
|
330
|
+
};
|
|
331
|
+
export const WithReplyTypeEnum = {
|
|
332
|
+
Reply: 'reply',
|
|
333
|
+
};
|
|
319
334
|
export const WithSceneViewIdTypeEnum = {
|
|
320
335
|
SceneViewId: 'scene-view-id',
|
|
321
336
|
};
|
|
322
337
|
export const WithSceneViewStateIdTypeEnum = {
|
|
323
338
|
SceneViewStateId: 'scene-view-state-id',
|
|
324
339
|
};
|
|
340
|
+
export const WithThreadTypeEnum = {
|
|
341
|
+
Thread: 'thread',
|
|
342
|
+
};
|
|
325
343
|
/**
|
|
326
344
|
* AccountsApi - axios parameter creator
|
|
327
345
|
* @export
|
|
@@ -1088,6 +1106,344 @@ export class ApplicationsApi extends BaseAPI {
|
|
|
1088
1106
|
.then((request) => request(this.axios, this.basePath));
|
|
1089
1107
|
}
|
|
1090
1108
|
}
|
|
1109
|
+
/**
|
|
1110
|
+
* AttachmentsApi - axios parameter creator
|
|
1111
|
+
* @export
|
|
1112
|
+
*/
|
|
1113
|
+
export const AttachmentsApiAxiosParamCreator = function (configuration) {
|
|
1114
|
+
return {
|
|
1115
|
+
/**
|
|
1116
|
+
* Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
|
|
1117
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1118
|
+
* @param {*} [options] Override http request option.
|
|
1119
|
+
* @throws {RequiredError}
|
|
1120
|
+
*/
|
|
1121
|
+
createAttachment: (createAttachmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1122
|
+
var _a;
|
|
1123
|
+
// verify required parameter 'createAttachmentRequest' is not null or undefined
|
|
1124
|
+
assertParamExists('createAttachment', 'createAttachmentRequest', createAttachmentRequest);
|
|
1125
|
+
const localVarPath = `/attachments`;
|
|
1126
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1127
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1128
|
+
let baseOptions;
|
|
1129
|
+
if (configuration) {
|
|
1130
|
+
baseOptions = configuration.baseOptions;
|
|
1131
|
+
}
|
|
1132
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1133
|
+
const localVarHeaderParameter = {};
|
|
1134
|
+
const localVarQueryParameter = {};
|
|
1135
|
+
// authentication OAuth2 required
|
|
1136
|
+
// oauth required
|
|
1137
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1138
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1139
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1140
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1141
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1142
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAttachmentRequest, localVarRequestOptions, configuration);
|
|
1143
|
+
return {
|
|
1144
|
+
url: toPathString(localVarUrlObj),
|
|
1145
|
+
options: localVarRequestOptions,
|
|
1146
|
+
};
|
|
1147
|
+
}),
|
|
1148
|
+
/**
|
|
1149
|
+
* Create a download url for a file `attachment` by ID.
|
|
1150
|
+
* @param {string} id The `attachment` ID.
|
|
1151
|
+
* @param {CreateDownloadRequest} createDownloadRequest
|
|
1152
|
+
* @param {*} [options] Override http request option.
|
|
1153
|
+
* @throws {RequiredError}
|
|
1154
|
+
*/
|
|
1155
|
+
createAttachmentDownloadUrl: (id, createDownloadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1156
|
+
var _b;
|
|
1157
|
+
// verify required parameter 'id' is not null or undefined
|
|
1158
|
+
assertParamExists('createAttachmentDownloadUrl', 'id', id);
|
|
1159
|
+
// verify required parameter 'createDownloadRequest' is not null or undefined
|
|
1160
|
+
assertParamExists('createAttachmentDownloadUrl', 'createDownloadRequest', createDownloadRequest);
|
|
1161
|
+
const localVarPath = `/attachments/{id}/download-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1162
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1163
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1164
|
+
let baseOptions;
|
|
1165
|
+
if (configuration) {
|
|
1166
|
+
baseOptions = configuration.baseOptions;
|
|
1167
|
+
}
|
|
1168
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1169
|
+
const localVarHeaderParameter = {};
|
|
1170
|
+
const localVarQueryParameter = {};
|
|
1171
|
+
// authentication OAuth2 required
|
|
1172
|
+
// oauth required
|
|
1173
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1174
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1175
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1176
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
1177
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1178
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDownloadRequest, localVarRequestOptions, configuration);
|
|
1179
|
+
return {
|
|
1180
|
+
url: toPathString(localVarUrlObj),
|
|
1181
|
+
options: localVarRequestOptions,
|
|
1182
|
+
};
|
|
1183
|
+
}),
|
|
1184
|
+
/**
|
|
1185
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1186
|
+
* @param {string} id The `attachment` ID.
|
|
1187
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
1188
|
+
* @param {*} [options] Override http request option.
|
|
1189
|
+
* @throws {RequiredError}
|
|
1190
|
+
*/
|
|
1191
|
+
createAttachmentUploadUrl: (id, createUploadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1192
|
+
var _c;
|
|
1193
|
+
// verify required parameter 'id' is not null or undefined
|
|
1194
|
+
assertParamExists('createAttachmentUploadUrl', 'id', id);
|
|
1195
|
+
// verify required parameter 'createUploadRequest' is not null or undefined
|
|
1196
|
+
assertParamExists('createAttachmentUploadUrl', 'createUploadRequest', createUploadRequest);
|
|
1197
|
+
const localVarPath = `/attachments/{id}/upload-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1200
|
+
let baseOptions;
|
|
1201
|
+
if (configuration) {
|
|
1202
|
+
baseOptions = configuration.baseOptions;
|
|
1203
|
+
}
|
|
1204
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1205
|
+
const localVarHeaderParameter = {};
|
|
1206
|
+
const localVarQueryParameter = {};
|
|
1207
|
+
// authentication OAuth2 required
|
|
1208
|
+
// oauth required
|
|
1209
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1210
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1211
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1212
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1213
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1214
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createUploadRequest, localVarRequestOptions, configuration);
|
|
1215
|
+
return {
|
|
1216
|
+
url: toPathString(localVarUrlObj),
|
|
1217
|
+
options: localVarRequestOptions,
|
|
1218
|
+
};
|
|
1219
|
+
}),
|
|
1220
|
+
/**
|
|
1221
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1222
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1223
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1224
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1225
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
listAttachments: (filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1230
|
+
var _d;
|
|
1231
|
+
// verify required parameter 'filterRelationshipId' is not null or undefined
|
|
1232
|
+
assertParamExists('listAttachments', 'filterRelationshipId', filterRelationshipId);
|
|
1233
|
+
// verify required parameter 'filterRelationshipType' is not null or undefined
|
|
1234
|
+
assertParamExists('listAttachments', 'filterRelationshipType', filterRelationshipType);
|
|
1235
|
+
const localVarPath = `/attachments`;
|
|
1236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1238
|
+
let baseOptions;
|
|
1239
|
+
if (configuration) {
|
|
1240
|
+
baseOptions = configuration.baseOptions;
|
|
1241
|
+
}
|
|
1242
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1243
|
+
const localVarHeaderParameter = {};
|
|
1244
|
+
const localVarQueryParameter = {};
|
|
1245
|
+
// authentication OAuth2 required
|
|
1246
|
+
// oauth required
|
|
1247
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1248
|
+
if (filterRelationshipId !== undefined) {
|
|
1249
|
+
localVarQueryParameter['filter[relationshipId]'] = filterRelationshipId;
|
|
1250
|
+
}
|
|
1251
|
+
if (filterRelationshipType !== undefined) {
|
|
1252
|
+
localVarQueryParameter['filter[relationshipType]'] =
|
|
1253
|
+
filterRelationshipType;
|
|
1254
|
+
}
|
|
1255
|
+
if (pageCursor !== undefined) {
|
|
1256
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
1257
|
+
}
|
|
1258
|
+
if (pageSize !== undefined) {
|
|
1259
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
1260
|
+
}
|
|
1261
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1262
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1263
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1264
|
+
return {
|
|
1265
|
+
url: toPathString(localVarUrlObj),
|
|
1266
|
+
options: localVarRequestOptions,
|
|
1267
|
+
};
|
|
1268
|
+
}),
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
/**
|
|
1272
|
+
* AttachmentsApi - functional programming interface
|
|
1273
|
+
* @export
|
|
1274
|
+
*/
|
|
1275
|
+
export const AttachmentsApiFp = function (configuration) {
|
|
1276
|
+
const localVarAxiosParamCreator = AttachmentsApiAxiosParamCreator(configuration);
|
|
1277
|
+
return {
|
|
1278
|
+
/**
|
|
1279
|
+
* Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
|
|
1280
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1281
|
+
* @param {*} [options] Override http request option.
|
|
1282
|
+
* @throws {RequiredError}
|
|
1283
|
+
*/
|
|
1284
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1286
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachment(createAttachmentRequest, options);
|
|
1287
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1288
|
+
});
|
|
1289
|
+
},
|
|
1290
|
+
/**
|
|
1291
|
+
* Create a download url for a file `attachment` by ID.
|
|
1292
|
+
* @param {string} id The `attachment` ID.
|
|
1293
|
+
* @param {CreateDownloadRequest} createDownloadRequest
|
|
1294
|
+
* @param {*} [options] Override http request option.
|
|
1295
|
+
* @throws {RequiredError}
|
|
1296
|
+
*/
|
|
1297
|
+
createAttachmentDownloadUrl(id, createDownloadRequest, options) {
|
|
1298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1299
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachmentDownloadUrl(id, createDownloadRequest, options);
|
|
1300
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1301
|
+
});
|
|
1302
|
+
},
|
|
1303
|
+
/**
|
|
1304
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1305
|
+
* @param {string} id The `attachment` ID.
|
|
1306
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
1307
|
+
* @param {*} [options] Override http request option.
|
|
1308
|
+
* @throws {RequiredError}
|
|
1309
|
+
*/
|
|
1310
|
+
createAttachmentUploadUrl(id, createUploadRequest, options) {
|
|
1311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1312
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachmentUploadUrl(id, createUploadRequest, options);
|
|
1313
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1314
|
+
});
|
|
1315
|
+
},
|
|
1316
|
+
/**
|
|
1317
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1318
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1319
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1320
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1321
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1322
|
+
* @param {*} [options] Override http request option.
|
|
1323
|
+
* @throws {RequiredError}
|
|
1324
|
+
*/
|
|
1325
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1327
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options);
|
|
1328
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1329
|
+
});
|
|
1330
|
+
},
|
|
1331
|
+
};
|
|
1332
|
+
};
|
|
1333
|
+
/**
|
|
1334
|
+
* AttachmentsApi - factory interface
|
|
1335
|
+
* @export
|
|
1336
|
+
*/
|
|
1337
|
+
export const AttachmentsApiFactory = function (configuration, basePath, axios) {
|
|
1338
|
+
const localVarFp = AttachmentsApiFp(configuration);
|
|
1339
|
+
return {
|
|
1340
|
+
/**
|
|
1341
|
+
* Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
|
|
1342
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1343
|
+
* @param {*} [options] Override http request option.
|
|
1344
|
+
* @throws {RequiredError}
|
|
1345
|
+
*/
|
|
1346
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1347
|
+
return localVarFp
|
|
1348
|
+
.createAttachment(createAttachmentRequest, options)
|
|
1349
|
+
.then((request) => request(axios, basePath));
|
|
1350
|
+
},
|
|
1351
|
+
/**
|
|
1352
|
+
* Create a download url for a file `attachment` by ID.
|
|
1353
|
+
* @param {string} id The `attachment` ID.
|
|
1354
|
+
* @param {CreateDownloadRequest} createDownloadRequest
|
|
1355
|
+
* @param {*} [options] Override http request option.
|
|
1356
|
+
* @throws {RequiredError}
|
|
1357
|
+
*/
|
|
1358
|
+
createAttachmentDownloadUrl(id, createDownloadRequest, options) {
|
|
1359
|
+
return localVarFp
|
|
1360
|
+
.createAttachmentDownloadUrl(id, createDownloadRequest, options)
|
|
1361
|
+
.then((request) => request(axios, basePath));
|
|
1362
|
+
},
|
|
1363
|
+
/**
|
|
1364
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1365
|
+
* @param {string} id The `attachment` ID.
|
|
1366
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
1367
|
+
* @param {*} [options] Override http request option.
|
|
1368
|
+
* @throws {RequiredError}
|
|
1369
|
+
*/
|
|
1370
|
+
createAttachmentUploadUrl(id, createUploadRequest, options) {
|
|
1371
|
+
return localVarFp
|
|
1372
|
+
.createAttachmentUploadUrl(id, createUploadRequest, options)
|
|
1373
|
+
.then((request) => request(axios, basePath));
|
|
1374
|
+
},
|
|
1375
|
+
/**
|
|
1376
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1377
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1378
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1379
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1380
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1381
|
+
* @param {*} [options] Override http request option.
|
|
1382
|
+
* @throws {RequiredError}
|
|
1383
|
+
*/
|
|
1384
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1385
|
+
return localVarFp
|
|
1386
|
+
.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options)
|
|
1387
|
+
.then((request) => request(axios, basePath));
|
|
1388
|
+
},
|
|
1389
|
+
};
|
|
1390
|
+
};
|
|
1391
|
+
/**
|
|
1392
|
+
* AttachmentsApi - object-oriented interface
|
|
1393
|
+
* @export
|
|
1394
|
+
* @class AttachmentsApi
|
|
1395
|
+
* @extends {BaseAPI}
|
|
1396
|
+
*/
|
|
1397
|
+
export class AttachmentsApi extends BaseAPI {
|
|
1398
|
+
/**
|
|
1399
|
+
* Create an `attachment` for a thread or a reply relationship. The content of the attachment can be a scene-view-state (created or provided), or a file. A file attachment requires the caller to upload the file after the attachment creation using a provided upload url. **Preview:** This is a preview API and is subject to change.
|
|
1400
|
+
* @param {AttachmentsApiCreateAttachmentRequest} requestParameters Request parameters.
|
|
1401
|
+
* @param {*} [options] Override http request option.
|
|
1402
|
+
* @throws {RequiredError}
|
|
1403
|
+
* @memberof AttachmentsApi
|
|
1404
|
+
*/
|
|
1405
|
+
createAttachment(requestParameters, options) {
|
|
1406
|
+
return AttachmentsApiFp(this.configuration)
|
|
1407
|
+
.createAttachment(requestParameters.createAttachmentRequest, options)
|
|
1408
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1409
|
+
}
|
|
1410
|
+
/**
|
|
1411
|
+
* Create a download url for a file `attachment` by ID.
|
|
1412
|
+
* @param {AttachmentsApiCreateAttachmentDownloadUrlRequest} requestParameters Request parameters.
|
|
1413
|
+
* @param {*} [options] Override http request option.
|
|
1414
|
+
* @throws {RequiredError}
|
|
1415
|
+
* @memberof AttachmentsApi
|
|
1416
|
+
*/
|
|
1417
|
+
createAttachmentDownloadUrl(requestParameters, options) {
|
|
1418
|
+
return AttachmentsApiFp(this.configuration)
|
|
1419
|
+
.createAttachmentDownloadUrl(requestParameters.id, requestParameters.createDownloadRequest, options)
|
|
1420
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1421
|
+
}
|
|
1422
|
+
/**
|
|
1423
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1424
|
+
* @param {AttachmentsApiCreateAttachmentUploadUrlRequest} requestParameters Request parameters.
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
* @memberof AttachmentsApi
|
|
1428
|
+
*/
|
|
1429
|
+
createAttachmentUploadUrl(requestParameters, options) {
|
|
1430
|
+
return AttachmentsApiFp(this.configuration)
|
|
1431
|
+
.createAttachmentUploadUrl(requestParameters.id, requestParameters.createUploadRequest, options)
|
|
1432
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1433
|
+
}
|
|
1434
|
+
/**
|
|
1435
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1436
|
+
* @param {AttachmentsApiListAttachmentsRequest} requestParameters Request parameters.
|
|
1437
|
+
* @param {*} [options] Override http request option.
|
|
1438
|
+
* @throws {RequiredError}
|
|
1439
|
+
* @memberof AttachmentsApi
|
|
1440
|
+
*/
|
|
1441
|
+
listAttachments(requestParameters, options) {
|
|
1442
|
+
return AttachmentsApiFp(this.configuration)
|
|
1443
|
+
.listAttachments(requestParameters.filterRelationshipId, requestParameters.filterRelationshipType, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1444
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1091
1447
|
/**
|
|
1092
1448
|
* BatchesApi - axios parameter creator
|
|
1093
1449
|
* @export
|
|
@@ -1397,6 +1753,37 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1397
1753
|
options: localVarRequestOptions,
|
|
1398
1754
|
};
|
|
1399
1755
|
}),
|
|
1756
|
+
/**
|
|
1757
|
+
* Remove a collaboration context along with all of its data
|
|
1758
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1759
|
+
* @param {*} [options] Override http request option.
|
|
1760
|
+
* @throws {RequiredError}
|
|
1761
|
+
*/
|
|
1762
|
+
deleteCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1763
|
+
var _c;
|
|
1764
|
+
// verify required parameter 'id' is not null or undefined
|
|
1765
|
+
assertParamExists('deleteCollaborationContext', 'id', id);
|
|
1766
|
+
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1767
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1768
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1769
|
+
let baseOptions;
|
|
1770
|
+
if (configuration) {
|
|
1771
|
+
baseOptions = configuration.baseOptions;
|
|
1772
|
+
}
|
|
1773
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1774
|
+
const localVarHeaderParameter = {};
|
|
1775
|
+
const localVarQueryParameter = {};
|
|
1776
|
+
// authentication OAuth2 required
|
|
1777
|
+
// oauth required
|
|
1778
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1779
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1780
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1781
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1782
|
+
return {
|
|
1783
|
+
url: toPathString(localVarUrlObj),
|
|
1784
|
+
options: localVarRequestOptions,
|
|
1785
|
+
};
|
|
1786
|
+
}),
|
|
1400
1787
|
/**
|
|
1401
1788
|
* Get a `collaboration-context` by ID.
|
|
1402
1789
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1404,7 +1791,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1404
1791
|
* @throws {RequiredError}
|
|
1405
1792
|
*/
|
|
1406
1793
|
getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1407
|
-
var
|
|
1794
|
+
var _d;
|
|
1408
1795
|
// verify required parameter 'id' is not null or undefined
|
|
1409
1796
|
assertParamExists('getCollaborationContext', 'id', id);
|
|
1410
1797
|
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -1421,7 +1808,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1421
1808
|
// oauth required
|
|
1422
1809
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1423
1810
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1424
|
-
let headersFromBaseOptions = (
|
|
1811
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1425
1812
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1426
1813
|
return {
|
|
1427
1814
|
url: toPathString(localVarUrlObj),
|
|
@@ -1436,7 +1823,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1436
1823
|
* @throws {RequiredError}
|
|
1437
1824
|
*/
|
|
1438
1825
|
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1439
|
-
var
|
|
1826
|
+
var _e;
|
|
1440
1827
|
const localVarPath = `/collaboration-contexts`;
|
|
1441
1828
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1442
1829
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1457,7 +1844,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1457
1844
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
1458
1845
|
}
|
|
1459
1846
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1460
|
-
let headersFromBaseOptions = (
|
|
1847
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
1461
1848
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1462
1849
|
return {
|
|
1463
1850
|
url: toPathString(localVarUrlObj),
|
|
@@ -1498,6 +1885,18 @@ export const CollaborationContextsApiFp = function (configuration) {
|
|
|
1498
1885
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1499
1886
|
});
|
|
1500
1887
|
},
|
|
1888
|
+
/**
|
|
1889
|
+
* Remove a collaboration context along with all of its data
|
|
1890
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1891
|
+
* @param {*} [options] Override http request option.
|
|
1892
|
+
* @throws {RequiredError}
|
|
1893
|
+
*/
|
|
1894
|
+
deleteCollaborationContext(id, options) {
|
|
1895
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1896
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollaborationContext(id, options);
|
|
1897
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1898
|
+
});
|
|
1899
|
+
},
|
|
1501
1900
|
/**
|
|
1502
1901
|
* Get a `collaboration-context` by ID.
|
|
1503
1902
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1555,6 +1954,17 @@ export const CollaborationContextsApiFactory = function (configuration, basePath
|
|
|
1555
1954
|
.createCollaborationContext(createCollaborationContextRequest, options)
|
|
1556
1955
|
.then((request) => request(axios, basePath));
|
|
1557
1956
|
},
|
|
1957
|
+
/**
|
|
1958
|
+
* Remove a collaboration context along with all of its data
|
|
1959
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1960
|
+
* @param {*} [options] Override http request option.
|
|
1961
|
+
* @throws {RequiredError}
|
|
1962
|
+
*/
|
|
1963
|
+
deleteCollaborationContext(id, options) {
|
|
1964
|
+
return localVarFp
|
|
1965
|
+
.deleteCollaborationContext(id, options)
|
|
1966
|
+
.then((request) => request(axios, basePath));
|
|
1967
|
+
},
|
|
1558
1968
|
/**
|
|
1559
1969
|
* Get a `collaboration-context` by ID.
|
|
1560
1970
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1611,6 +2021,18 @@ export class CollaborationContextsApi extends BaseAPI {
|
|
|
1611
2021
|
.createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
|
|
1612
2022
|
.then((request) => request(this.axios, this.basePath));
|
|
1613
2023
|
}
|
|
2024
|
+
/**
|
|
2025
|
+
* Remove a collaboration context along with all of its data
|
|
2026
|
+
* @param {CollaborationContextsApiDeleteCollaborationContextRequest} requestParameters Request parameters.
|
|
2027
|
+
* @param {*} [options] Override http request option.
|
|
2028
|
+
* @throws {RequiredError}
|
|
2029
|
+
* @memberof CollaborationContextsApi
|
|
2030
|
+
*/
|
|
2031
|
+
deleteCollaborationContext(requestParameters, options) {
|
|
2032
|
+
return CollaborationContextsApiFp(this.configuration)
|
|
2033
|
+
.deleteCollaborationContext(requestParameters.id, options)
|
|
2034
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2035
|
+
}
|
|
1614
2036
|
/**
|
|
1615
2037
|
* Get a `collaboration-context` by ID.
|
|
1616
2038
|
* @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
|
|
@@ -2722,6 +3144,42 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2722
3144
|
options: localVarRequestOptions,
|
|
2723
3145
|
};
|
|
2724
3146
|
}),
|
|
3147
|
+
/**
|
|
3148
|
+
* Create an upload uri for a `file` by ID.
|
|
3149
|
+
* @param {string} id The `file` ID.
|
|
3150
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3151
|
+
* @param {*} [options] Override http request option.
|
|
3152
|
+
* @throws {RequiredError}
|
|
3153
|
+
*/
|
|
3154
|
+
createUploadUrl: (id, createUploadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3155
|
+
var _c;
|
|
3156
|
+
// verify required parameter 'id' is not null or undefined
|
|
3157
|
+
assertParamExists('createUploadUrl', 'id', id);
|
|
3158
|
+
// verify required parameter 'createUploadRequest' is not null or undefined
|
|
3159
|
+
assertParamExists('createUploadUrl', 'createUploadRequest', createUploadRequest);
|
|
3160
|
+
const localVarPath = `/files/{id}/upload-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3161
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3162
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3163
|
+
let baseOptions;
|
|
3164
|
+
if (configuration) {
|
|
3165
|
+
baseOptions = configuration.baseOptions;
|
|
3166
|
+
}
|
|
3167
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3168
|
+
const localVarHeaderParameter = {};
|
|
3169
|
+
const localVarQueryParameter = {};
|
|
3170
|
+
// authentication OAuth2 required
|
|
3171
|
+
// oauth required
|
|
3172
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
3173
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
3174
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3175
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
3176
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3177
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createUploadRequest, localVarRequestOptions, configuration);
|
|
3178
|
+
return {
|
|
3179
|
+
url: toPathString(localVarUrlObj),
|
|
3180
|
+
options: localVarRequestOptions,
|
|
3181
|
+
};
|
|
3182
|
+
}),
|
|
2725
3183
|
/**
|
|
2726
3184
|
* Delete a `file`.
|
|
2727
3185
|
* @param {string} id The `file` ID.
|
|
@@ -2729,7 +3187,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2729
3187
|
* @throws {RequiredError}
|
|
2730
3188
|
*/
|
|
2731
3189
|
deleteFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2732
|
-
var
|
|
3190
|
+
var _d;
|
|
2733
3191
|
// verify required parameter 'id' is not null or undefined
|
|
2734
3192
|
assertParamExists('deleteFile', 'id', id);
|
|
2735
3193
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2746,7 +3204,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2746
3204
|
// oauth required
|
|
2747
3205
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2748
3206
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2749
|
-
let headersFromBaseOptions = (
|
|
3207
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
2750
3208
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2751
3209
|
return {
|
|
2752
3210
|
url: toPathString(localVarUrlObj),
|
|
@@ -2760,7 +3218,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2760
3218
|
* @throws {RequiredError}
|
|
2761
3219
|
*/
|
|
2762
3220
|
getFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2763
|
-
var
|
|
3221
|
+
var _e;
|
|
2764
3222
|
// verify required parameter 'id' is not null or undefined
|
|
2765
3223
|
assertParamExists('getFile', 'id', id);
|
|
2766
3224
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2777,7 +3235,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2777
3235
|
// oauth required
|
|
2778
3236
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2779
3237
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2780
|
-
let headersFromBaseOptions = (
|
|
3238
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
2781
3239
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2782
3240
|
return {
|
|
2783
3241
|
url: toPathString(localVarUrlObj),
|
|
@@ -2793,7 +3251,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2793
3251
|
* @throws {RequiredError}
|
|
2794
3252
|
*/
|
|
2795
3253
|
getFiles: (pageCursor, pageSize, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2796
|
-
var
|
|
3254
|
+
var _f;
|
|
2797
3255
|
const localVarPath = `/files`;
|
|
2798
3256
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2799
3257
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2817,7 +3275,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2817
3275
|
localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
|
|
2818
3276
|
}
|
|
2819
3277
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2820
|
-
let headersFromBaseOptions = (
|
|
3278
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
2821
3279
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2822
3280
|
return {
|
|
2823
3281
|
url: toPathString(localVarUrlObj),
|
|
@@ -2832,7 +3290,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2832
3290
|
* @throws {RequiredError}
|
|
2833
3291
|
*/
|
|
2834
3292
|
updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2835
|
-
var
|
|
3293
|
+
var _g;
|
|
2836
3294
|
// verify required parameter 'id' is not null or undefined
|
|
2837
3295
|
assertParamExists('updateFile', 'id', id);
|
|
2838
3296
|
// verify required parameter 'updateFileRequest' is not null or undefined
|
|
@@ -2852,7 +3310,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2852
3310
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2853
3311
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2854
3312
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2855
|
-
let headersFromBaseOptions = (
|
|
3313
|
+
let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
|
|
2856
3314
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2857
3315
|
localVarRequestOptions.data = serializeDataIfNeeded(updateFileRequest, localVarRequestOptions, configuration);
|
|
2858
3316
|
return {
|
|
@@ -2868,7 +3326,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2868
3326
|
* @throws {RequiredError}
|
|
2869
3327
|
*/
|
|
2870
3328
|
uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2871
|
-
var
|
|
3329
|
+
var _h;
|
|
2872
3330
|
// verify required parameter 'id' is not null or undefined
|
|
2873
3331
|
assertParamExists('uploadFile', 'id', id);
|
|
2874
3332
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -2888,7 +3346,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2888
3346
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2889
3347
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
2890
3348
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2891
|
-
let headersFromBaseOptions = (
|
|
3349
|
+
let headersFromBaseOptions = (_h = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _h !== void 0 ? _h : {};
|
|
2892
3350
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2893
3351
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
2894
3352
|
return {
|
|
@@ -2919,14 +3377,27 @@ export const FilesApiFp = function (configuration) {
|
|
|
2919
3377
|
});
|
|
2920
3378
|
},
|
|
2921
3379
|
/**
|
|
2922
|
-
* Create a `file`. Once created, upload file content via the uploadFile API. For details including supported file formats, see our [Import data](https://developer.vertexvis.com/docs/guides/import-data-with-api) guide.
|
|
2923
|
-
* @param {CreateFileRequest} createFileRequest
|
|
3380
|
+
* Create a `file`. Once created, upload file content via the uploadFile API. For details including supported file formats, see our [Import data](https://developer.vertexvis.com/docs/guides/import-data-with-api) guide.
|
|
3381
|
+
* @param {CreateFileRequest} createFileRequest
|
|
3382
|
+
* @param {*} [options] Override http request option.
|
|
3383
|
+
* @throws {RequiredError}
|
|
3384
|
+
*/
|
|
3385
|
+
createFile(createFileRequest, options) {
|
|
3386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3387
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFile(createFileRequest, options);
|
|
3388
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3389
|
+
});
|
|
3390
|
+
},
|
|
3391
|
+
/**
|
|
3392
|
+
* Create an upload uri for a `file` by ID.
|
|
3393
|
+
* @param {string} id The `file` ID.
|
|
3394
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
2924
3395
|
* @param {*} [options] Override http request option.
|
|
2925
3396
|
* @throws {RequiredError}
|
|
2926
3397
|
*/
|
|
2927
|
-
|
|
3398
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
2928
3399
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2929
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3400
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadUrl(id, createUploadRequest, options);
|
|
2930
3401
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2931
3402
|
});
|
|
2932
3403
|
},
|
|
@@ -3026,6 +3497,18 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
3026
3497
|
.createFile(createFileRequest, options)
|
|
3027
3498
|
.then((request) => request(axios, basePath));
|
|
3028
3499
|
},
|
|
3500
|
+
/**
|
|
3501
|
+
* Create an upload uri for a `file` by ID.
|
|
3502
|
+
* @param {string} id The `file` ID.
|
|
3503
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3504
|
+
* @param {*} [options] Override http request option.
|
|
3505
|
+
* @throws {RequiredError}
|
|
3506
|
+
*/
|
|
3507
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
3508
|
+
return localVarFp
|
|
3509
|
+
.createUploadUrl(id, createUploadRequest, options)
|
|
3510
|
+
.then((request) => request(axios, basePath));
|
|
3511
|
+
},
|
|
3029
3512
|
/**
|
|
3030
3513
|
* Delete a `file`.
|
|
3031
3514
|
* @param {string} id The `file` ID.
|
|
@@ -3118,6 +3601,18 @@ export class FilesApi extends BaseAPI {
|
|
|
3118
3601
|
.createFile(requestParameters.createFileRequest, options)
|
|
3119
3602
|
.then((request) => request(this.axios, this.basePath));
|
|
3120
3603
|
}
|
|
3604
|
+
/**
|
|
3605
|
+
* Create an upload uri for a `file` by ID.
|
|
3606
|
+
* @param {FilesApiCreateUploadUrlRequest} requestParameters Request parameters.
|
|
3607
|
+
* @param {*} [options] Override http request option.
|
|
3608
|
+
* @throws {RequiredError}
|
|
3609
|
+
* @memberof FilesApi
|
|
3610
|
+
*/
|
|
3611
|
+
createUploadUrl(requestParameters, options) {
|
|
3612
|
+
return FilesApiFp(this.configuration)
|
|
3613
|
+
.createUploadUrl(requestParameters.id, requestParameters.createUploadRequest, options)
|
|
3614
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3615
|
+
}
|
|
3121
3616
|
/**
|
|
3122
3617
|
* Delete a `file`.
|
|
3123
3618
|
* @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
|
|
@@ -4519,7 +5014,7 @@ export const PartRevisionInstancesApiAxiosParamCreator = function (configuration
|
|
|
4519
5014
|
return {
|
|
4520
5015
|
/**
|
|
4521
5016
|
* Gets a page of \'part-revision\' instances. An instance is an occurrence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
|
|
4522
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
5017
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4523
5018
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4524
5019
|
* @param {number} [pageSize] The number of items to return.
|
|
4525
5020
|
* @param {*} [options] Override http request option.
|
|
@@ -4568,7 +5063,7 @@ export const PartRevisionInstancesApiFp = function (configuration) {
|
|
|
4568
5063
|
return {
|
|
4569
5064
|
/**
|
|
4570
5065
|
* Gets a page of \'part-revision\' instances. An instance is an occurrence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
|
|
4571
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
5066
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4572
5067
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4573
5068
|
* @param {number} [pageSize] The number of items to return.
|
|
4574
5069
|
* @param {*} [options] Override http request option.
|
|
@@ -4591,7 +5086,7 @@ export const PartRevisionInstancesApiFactory = function (configuration, basePath
|
|
|
4591
5086
|
return {
|
|
4592
5087
|
/**
|
|
4593
5088
|
* Gets a page of \'part-revision\' instances. An instance is an occurrence of a revision that is a child of a parent revision. The returned data will have the ordinal used for ordering and the transform matrix for each occurrence.
|
|
4594
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
5089
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4595
5090
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4596
5091
|
* @param {number} [pageSize] The number of items to return.
|
|
4597
5092
|
* @param {*} [options] Override http request option.
|
|
@@ -6292,6 +6787,37 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6292
6787
|
options: localVarRequestOptions,
|
|
6293
6788
|
};
|
|
6294
6789
|
}),
|
|
6790
|
+
/**
|
|
6791
|
+
* Remove a reply.
|
|
6792
|
+
* @param {string} id The `thread` ID.
|
|
6793
|
+
* @param {*} [options] Override http request option.
|
|
6794
|
+
* @throws {RequiredError}
|
|
6795
|
+
*/
|
|
6796
|
+
deleteReply: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6797
|
+
var _b;
|
|
6798
|
+
// verify required parameter 'id' is not null or undefined
|
|
6799
|
+
assertParamExists('deleteReply', 'id', id);
|
|
6800
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6801
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6802
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6803
|
+
let baseOptions;
|
|
6804
|
+
if (configuration) {
|
|
6805
|
+
baseOptions = configuration.baseOptions;
|
|
6806
|
+
}
|
|
6807
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6808
|
+
const localVarHeaderParameter = {};
|
|
6809
|
+
const localVarQueryParameter = {};
|
|
6810
|
+
// authentication OAuth2 required
|
|
6811
|
+
// oauth required
|
|
6812
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6813
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6814
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
6815
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6816
|
+
return {
|
|
6817
|
+
url: toPathString(localVarUrlObj),
|
|
6818
|
+
options: localVarRequestOptions,
|
|
6819
|
+
};
|
|
6820
|
+
}),
|
|
6295
6821
|
/**
|
|
6296
6822
|
* Get a `reply`.
|
|
6297
6823
|
* @param {string} id The `thread` ID.
|
|
@@ -6300,7 +6826,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6300
6826
|
* @throws {RequiredError}
|
|
6301
6827
|
*/
|
|
6302
6828
|
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6303
|
-
var
|
|
6829
|
+
var _c;
|
|
6304
6830
|
// verify required parameter 'id' is not null or undefined
|
|
6305
6831
|
assertParamExists('getReply', 'id', id);
|
|
6306
6832
|
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -6320,7 +6846,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6320
6846
|
localVarQueryParameter['include'] = include;
|
|
6321
6847
|
}
|
|
6322
6848
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6323
|
-
let headersFromBaseOptions = (
|
|
6849
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6324
6850
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6325
6851
|
return {
|
|
6326
6852
|
url: toPathString(localVarUrlObj),
|
|
@@ -6337,7 +6863,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6337
6863
|
* @throws {RequiredError}
|
|
6338
6864
|
*/
|
|
6339
6865
|
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6340
|
-
var
|
|
6866
|
+
var _d;
|
|
6341
6867
|
const localVarPath = `/replies`;
|
|
6342
6868
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6343
6869
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6364,8 +6890,44 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6364
6890
|
localVarQueryParameter['include'] = include;
|
|
6365
6891
|
}
|
|
6366
6892
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6367
|
-
let headersFromBaseOptions = (
|
|
6893
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
6894
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6895
|
+
return {
|
|
6896
|
+
url: toPathString(localVarUrlObj),
|
|
6897
|
+
options: localVarRequestOptions,
|
|
6898
|
+
};
|
|
6899
|
+
}),
|
|
6900
|
+
/**
|
|
6901
|
+
* Update a `reply`.
|
|
6902
|
+
* @param {string} id The `thread` ID.
|
|
6903
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
6904
|
+
* @param {*} [options] Override http request option.
|
|
6905
|
+
* @throws {RequiredError}
|
|
6906
|
+
*/
|
|
6907
|
+
updateReply: (id, updateReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6908
|
+
var _e;
|
|
6909
|
+
// verify required parameter 'id' is not null or undefined
|
|
6910
|
+
assertParamExists('updateReply', 'id', id);
|
|
6911
|
+
// verify required parameter 'updateReplyRequest' is not null or undefined
|
|
6912
|
+
assertParamExists('updateReply', 'updateReplyRequest', updateReplyRequest);
|
|
6913
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6914
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6915
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6916
|
+
let baseOptions;
|
|
6917
|
+
if (configuration) {
|
|
6918
|
+
baseOptions = configuration.baseOptions;
|
|
6919
|
+
}
|
|
6920
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6921
|
+
const localVarHeaderParameter = {};
|
|
6922
|
+
const localVarQueryParameter = {};
|
|
6923
|
+
// authentication OAuth2 required
|
|
6924
|
+
// oauth required
|
|
6925
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6926
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
6927
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6928
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
6368
6929
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6930
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateReplyRequest, localVarRequestOptions, configuration);
|
|
6369
6931
|
return {
|
|
6370
6932
|
url: toPathString(localVarUrlObj),
|
|
6371
6933
|
options: localVarRequestOptions,
|
|
@@ -6393,6 +6955,18 @@ export const RepliesApiFp = function (configuration) {
|
|
|
6393
6955
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6394
6956
|
});
|
|
6395
6957
|
},
|
|
6958
|
+
/**
|
|
6959
|
+
* Remove a reply.
|
|
6960
|
+
* @param {string} id The `thread` ID.
|
|
6961
|
+
* @param {*} [options] Override http request option.
|
|
6962
|
+
* @throws {RequiredError}
|
|
6963
|
+
*/
|
|
6964
|
+
deleteReply(id, options) {
|
|
6965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6966
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteReply(id, options);
|
|
6967
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6968
|
+
});
|
|
6969
|
+
},
|
|
6396
6970
|
/**
|
|
6397
6971
|
* Get a `reply`.
|
|
6398
6972
|
* @param {string} id The `thread` ID.
|
|
@@ -6421,6 +6995,19 @@ export const RepliesApiFp = function (configuration) {
|
|
|
6421
6995
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6422
6996
|
});
|
|
6423
6997
|
},
|
|
6998
|
+
/**
|
|
6999
|
+
* Update a `reply`.
|
|
7000
|
+
* @param {string} id The `thread` ID.
|
|
7001
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
7002
|
+
* @param {*} [options] Override http request option.
|
|
7003
|
+
* @throws {RequiredError}
|
|
7004
|
+
*/
|
|
7005
|
+
updateReply(id, updateReplyRequest, options) {
|
|
7006
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7007
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReply(id, updateReplyRequest, options);
|
|
7008
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
7009
|
+
});
|
|
7010
|
+
},
|
|
6424
7011
|
};
|
|
6425
7012
|
};
|
|
6426
7013
|
/**
|
|
@@ -6442,6 +7029,17 @@ export const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6442
7029
|
.createReply(id, createReplyRequest, options)
|
|
6443
7030
|
.then((request) => request(axios, basePath));
|
|
6444
7031
|
},
|
|
7032
|
+
/**
|
|
7033
|
+
* Remove a reply.
|
|
7034
|
+
* @param {string} id The `thread` ID.
|
|
7035
|
+
* @param {*} [options] Override http request option.
|
|
7036
|
+
* @throws {RequiredError}
|
|
7037
|
+
*/
|
|
7038
|
+
deleteReply(id, options) {
|
|
7039
|
+
return localVarFp
|
|
7040
|
+
.deleteReply(id, options)
|
|
7041
|
+
.then((request) => request(axios, basePath));
|
|
7042
|
+
},
|
|
6445
7043
|
/**
|
|
6446
7044
|
* Get a `reply`.
|
|
6447
7045
|
* @param {string} id The `thread` ID.
|
|
@@ -6468,6 +7066,18 @@ export const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6468
7066
|
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6469
7067
|
.then((request) => request(axios, basePath));
|
|
6470
7068
|
},
|
|
7069
|
+
/**
|
|
7070
|
+
* Update a `reply`.
|
|
7071
|
+
* @param {string} id The `thread` ID.
|
|
7072
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
7073
|
+
* @param {*} [options] Override http request option.
|
|
7074
|
+
* @throws {RequiredError}
|
|
7075
|
+
*/
|
|
7076
|
+
updateReply(id, updateReplyRequest, options) {
|
|
7077
|
+
return localVarFp
|
|
7078
|
+
.updateReply(id, updateReplyRequest, options)
|
|
7079
|
+
.then((request) => request(axios, basePath));
|
|
7080
|
+
},
|
|
6471
7081
|
};
|
|
6472
7082
|
};
|
|
6473
7083
|
/**
|
|
@@ -6489,6 +7099,18 @@ export class RepliesApi extends BaseAPI {
|
|
|
6489
7099
|
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6490
7100
|
.then((request) => request(this.axios, this.basePath));
|
|
6491
7101
|
}
|
|
7102
|
+
/**
|
|
7103
|
+
* Remove a reply.
|
|
7104
|
+
* @param {RepliesApiDeleteReplyRequest} requestParameters Request parameters.
|
|
7105
|
+
* @param {*} [options] Override http request option.
|
|
7106
|
+
* @throws {RequiredError}
|
|
7107
|
+
* @memberof RepliesApi
|
|
7108
|
+
*/
|
|
7109
|
+
deleteReply(requestParameters, options) {
|
|
7110
|
+
return RepliesApiFp(this.configuration)
|
|
7111
|
+
.deleteReply(requestParameters.id, options)
|
|
7112
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7113
|
+
}
|
|
6492
7114
|
/**
|
|
6493
7115
|
* Get a `reply`.
|
|
6494
7116
|
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
@@ -6513,6 +7135,18 @@ export class RepliesApi extends BaseAPI {
|
|
|
6513
7135
|
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6514
7136
|
.then((request) => request(this.axios, this.basePath));
|
|
6515
7137
|
}
|
|
7138
|
+
/**
|
|
7139
|
+
* Update a `reply`.
|
|
7140
|
+
* @param {RepliesApiUpdateReplyRequest} requestParameters Request parameters.
|
|
7141
|
+
* @param {*} [options] Override http request option.
|
|
7142
|
+
* @throws {RequiredError}
|
|
7143
|
+
* @memberof RepliesApi
|
|
7144
|
+
*/
|
|
7145
|
+
updateReply(requestParameters, options) {
|
|
7146
|
+
return RepliesApiFp(this.configuration)
|
|
7147
|
+
.updateReply(requestParameters.id, requestParameters.updateReplyRequest, options)
|
|
7148
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7149
|
+
}
|
|
6516
7150
|
}
|
|
6517
7151
|
/**
|
|
6518
7152
|
* SceneAlterationsApi - axios parameter creator
|
|
@@ -7729,7 +8363,7 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7729
8363
|
* @param {number} [pageSize] The number of items to return.
|
|
7730
8364
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7731
8365
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7732
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8366
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
7733
8367
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7734
8368
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7735
8369
|
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
@@ -7899,7 +8533,7 @@ export const SceneItemsApiFp = function (configuration) {
|
|
|
7899
8533
|
* @param {number} [pageSize] The number of items to return.
|
|
7900
8534
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7901
8535
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7902
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8536
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
7903
8537
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7904
8538
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7905
8539
|
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
@@ -7998,7 +8632,7 @@ export const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
7998
8632
|
* @param {number} [pageSize] The number of items to return.
|
|
7999
8633
|
* @param {string} [filterSource] Source ID to filter on.
|
|
8000
8634
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8001
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8635
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
8002
8636
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8003
8637
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
8004
8638
|
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
@@ -10445,6 +11079,37 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10445
11079
|
options: localVarRequestOptions,
|
|
10446
11080
|
};
|
|
10447
11081
|
}),
|
|
11082
|
+
/**
|
|
11083
|
+
* Remove a thread.
|
|
11084
|
+
* @param {string} id The `thread` ID.
|
|
11085
|
+
* @param {*} [options] Override http request option.
|
|
11086
|
+
* @throws {RequiredError}
|
|
11087
|
+
*/
|
|
11088
|
+
deleteThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11089
|
+
var _b;
|
|
11090
|
+
// verify required parameter 'id' is not null or undefined
|
|
11091
|
+
assertParamExists('deleteThread', 'id', id);
|
|
11092
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11093
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11094
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11095
|
+
let baseOptions;
|
|
11096
|
+
if (configuration) {
|
|
11097
|
+
baseOptions = configuration.baseOptions;
|
|
11098
|
+
}
|
|
11099
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11100
|
+
const localVarHeaderParameter = {};
|
|
11101
|
+
const localVarQueryParameter = {};
|
|
11102
|
+
// authentication OAuth2 required
|
|
11103
|
+
// oauth required
|
|
11104
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11105
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11106
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
11107
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11108
|
+
return {
|
|
11109
|
+
url: toPathString(localVarUrlObj),
|
|
11110
|
+
options: localVarRequestOptions,
|
|
11111
|
+
};
|
|
11112
|
+
}),
|
|
10448
11113
|
/**
|
|
10449
11114
|
* Get a `thread`.
|
|
10450
11115
|
* @param {string} id The `thread` ID.
|
|
@@ -10454,7 +11119,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10454
11119
|
* @throws {RequiredError}
|
|
10455
11120
|
*/
|
|
10456
11121
|
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10457
|
-
var
|
|
11122
|
+
var _c;
|
|
10458
11123
|
// verify required parameter 'id' is not null or undefined
|
|
10459
11124
|
assertParamExists('getThread', 'id', id);
|
|
10460
11125
|
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10477,7 +11142,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10477
11142
|
localVarQueryParameter['include'] = include;
|
|
10478
11143
|
}
|
|
10479
11144
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10480
|
-
let headersFromBaseOptions = (
|
|
11145
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10481
11146
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10482
11147
|
return {
|
|
10483
11148
|
url: toPathString(localVarUrlObj),
|
|
@@ -10491,7 +11156,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10491
11156
|
* @throws {RequiredError}
|
|
10492
11157
|
*/
|
|
10493
11158
|
getThreadParticipants: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10494
|
-
var
|
|
11159
|
+
var _d;
|
|
10495
11160
|
// verify required parameter 'id' is not null or undefined
|
|
10496
11161
|
assertParamExists('getThreadParticipants', 'id', id);
|
|
10497
11162
|
const localVarPath = `/threads/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10508,7 +11173,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10508
11173
|
// oauth required
|
|
10509
11174
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10510
11175
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10511
|
-
let headersFromBaseOptions = (
|
|
11176
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
10512
11177
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10513
11178
|
return {
|
|
10514
11179
|
url: toPathString(localVarUrlObj),
|
|
@@ -10522,11 +11187,12 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10522
11187
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10523
11188
|
* @param {number} [pageSize] The number of items to return.
|
|
10524
11189
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11190
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
10525
11191
|
* @param {*} [options] Override http request option.
|
|
10526
11192
|
* @throws {RequiredError}
|
|
10527
11193
|
*/
|
|
10528
|
-
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10529
|
-
var
|
|
11194
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11195
|
+
var _e;
|
|
10530
11196
|
const localVarPath = `/threads`;
|
|
10531
11197
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10532
11198
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10556,9 +11222,49 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10556
11222
|
if (include !== undefined) {
|
|
10557
11223
|
localVarQueryParameter['include'] = include;
|
|
10558
11224
|
}
|
|
11225
|
+
if (filterThreadStatus) {
|
|
11226
|
+
localVarQueryParameter['filter[threadStatus]'] =
|
|
11227
|
+
filterThreadStatus.join(COLLECTION_FORMATS.csv);
|
|
11228
|
+
}
|
|
10559
11229
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10560
|
-
let headersFromBaseOptions = (
|
|
11230
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
11231
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11232
|
+
return {
|
|
11233
|
+
url: toPathString(localVarUrlObj),
|
|
11234
|
+
options: localVarRequestOptions,
|
|
11235
|
+
};
|
|
11236
|
+
}),
|
|
11237
|
+
/**
|
|
11238
|
+
* Update a `thread`.
|
|
11239
|
+
* @param {string} id The `thread` ID.
|
|
11240
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
11241
|
+
* @param {*} [options] Override http request option.
|
|
11242
|
+
* @throws {RequiredError}
|
|
11243
|
+
*/
|
|
11244
|
+
updateThread: (id, updateThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11245
|
+
var _f;
|
|
11246
|
+
// verify required parameter 'id' is not null or undefined
|
|
11247
|
+
assertParamExists('updateThread', 'id', id);
|
|
11248
|
+
// verify required parameter 'updateThreadRequest' is not null or undefined
|
|
11249
|
+
assertParamExists('updateThread', 'updateThreadRequest', updateThreadRequest);
|
|
11250
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11251
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11252
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11253
|
+
let baseOptions;
|
|
11254
|
+
if (configuration) {
|
|
11255
|
+
baseOptions = configuration.baseOptions;
|
|
11256
|
+
}
|
|
11257
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
11258
|
+
const localVarHeaderParameter = {};
|
|
11259
|
+
const localVarQueryParameter = {};
|
|
11260
|
+
// authentication OAuth2 required
|
|
11261
|
+
// oauth required
|
|
11262
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11263
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11265
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
10561
11266
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11267
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateThreadRequest, localVarRequestOptions, configuration);
|
|
10562
11268
|
return {
|
|
10563
11269
|
url: toPathString(localVarUrlObj),
|
|
10564
11270
|
options: localVarRequestOptions,
|
|
@@ -10586,6 +11292,18 @@ export const ThreadsApiFp = function (configuration) {
|
|
|
10586
11292
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10587
11293
|
});
|
|
10588
11294
|
},
|
|
11295
|
+
/**
|
|
11296
|
+
* Remove a thread.
|
|
11297
|
+
* @param {string} id The `thread` ID.
|
|
11298
|
+
* @param {*} [options] Override http request option.
|
|
11299
|
+
* @throws {RequiredError}
|
|
11300
|
+
*/
|
|
11301
|
+
deleteThread(id, options) {
|
|
11302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11303
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteThread(id, options);
|
|
11304
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11305
|
+
});
|
|
11306
|
+
},
|
|
10589
11307
|
/**
|
|
10590
11308
|
* Get a `thread`.
|
|
10591
11309
|
* @param {string} id The `thread` ID.
|
|
@@ -10619,12 +11337,26 @@ export const ThreadsApiFp = function (configuration) {
|
|
|
10619
11337
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10620
11338
|
* @param {number} [pageSize] The number of items to return.
|
|
10621
11339
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11340
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11341
|
+
* @param {*} [options] Override http request option.
|
|
11342
|
+
* @throws {RequiredError}
|
|
11343
|
+
*/
|
|
11344
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11346
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options);
|
|
11347
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11348
|
+
});
|
|
11349
|
+
},
|
|
11350
|
+
/**
|
|
11351
|
+
* Update a `thread`.
|
|
11352
|
+
* @param {string} id The `thread` ID.
|
|
11353
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10622
11354
|
* @param {*} [options] Override http request option.
|
|
10623
11355
|
* @throws {RequiredError}
|
|
10624
11356
|
*/
|
|
10625
|
-
|
|
11357
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10626
11358
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10627
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11359
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThread(id, updateThreadRequest, options);
|
|
10628
11360
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10629
11361
|
});
|
|
10630
11362
|
},
|
|
@@ -10649,6 +11381,17 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10649
11381
|
.createThread(id, createThreadRequest, options)
|
|
10650
11382
|
.then((request) => request(axios, basePath));
|
|
10651
11383
|
},
|
|
11384
|
+
/**
|
|
11385
|
+
* Remove a thread.
|
|
11386
|
+
* @param {string} id The `thread` ID.
|
|
11387
|
+
* @param {*} [options] Override http request option.
|
|
11388
|
+
* @throws {RequiredError}
|
|
11389
|
+
*/
|
|
11390
|
+
deleteThread(id, options) {
|
|
11391
|
+
return localVarFp
|
|
11392
|
+
.deleteThread(id, options)
|
|
11393
|
+
.then((request) => request(axios, basePath));
|
|
11394
|
+
},
|
|
10652
11395
|
/**
|
|
10653
11396
|
* Get a `thread`.
|
|
10654
11397
|
* @param {string} id The `thread` ID.
|
|
@@ -10680,12 +11423,25 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10680
11423
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10681
11424
|
* @param {number} [pageSize] The number of items to return.
|
|
10682
11425
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11426
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11427
|
+
* @param {*} [options] Override http request option.
|
|
11428
|
+
* @throws {RequiredError}
|
|
11429
|
+
*/
|
|
11430
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11431
|
+
return localVarFp
|
|
11432
|
+
.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options)
|
|
11433
|
+
.then((request) => request(axios, basePath));
|
|
11434
|
+
},
|
|
11435
|
+
/**
|
|
11436
|
+
* Update a `thread`.
|
|
11437
|
+
* @param {string} id The `thread` ID.
|
|
11438
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10683
11439
|
* @param {*} [options] Override http request option.
|
|
10684
11440
|
* @throws {RequiredError}
|
|
10685
11441
|
*/
|
|
10686
|
-
|
|
11442
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10687
11443
|
return localVarFp
|
|
10688
|
-
.
|
|
11444
|
+
.updateThread(id, updateThreadRequest, options)
|
|
10689
11445
|
.then((request) => request(axios, basePath));
|
|
10690
11446
|
},
|
|
10691
11447
|
};
|
|
@@ -10709,6 +11465,18 @@ export class ThreadsApi extends BaseAPI {
|
|
|
10709
11465
|
.createThread(requestParameters.id, requestParameters.createThreadRequest, options)
|
|
10710
11466
|
.then((request) => request(this.axios, this.basePath));
|
|
10711
11467
|
}
|
|
11468
|
+
/**
|
|
11469
|
+
* Remove a thread.
|
|
11470
|
+
* @param {ThreadsApiDeleteThreadRequest} requestParameters Request parameters.
|
|
11471
|
+
* @param {*} [options] Override http request option.
|
|
11472
|
+
* @throws {RequiredError}
|
|
11473
|
+
* @memberof ThreadsApi
|
|
11474
|
+
*/
|
|
11475
|
+
deleteThread(requestParameters, options) {
|
|
11476
|
+
return ThreadsApiFp(this.configuration)
|
|
11477
|
+
.deleteThread(requestParameters.id, options)
|
|
11478
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11479
|
+
}
|
|
10712
11480
|
/**
|
|
10713
11481
|
* Get a `thread`.
|
|
10714
11482
|
* @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
|
|
@@ -10742,7 +11510,19 @@ export class ThreadsApi extends BaseAPI {
|
|
|
10742
11510
|
*/
|
|
10743
11511
|
getThreads(requestParameters = {}, options) {
|
|
10744
11512
|
return ThreadsApiFp(this.configuration)
|
|
10745
|
-
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
11513
|
+
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, requestParameters.filterThreadStatus, options)
|
|
11514
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11515
|
+
}
|
|
11516
|
+
/**
|
|
11517
|
+
* Update a `thread`.
|
|
11518
|
+
* @param {ThreadsApiUpdateThreadRequest} requestParameters Request parameters.
|
|
11519
|
+
* @param {*} [options] Override http request option.
|
|
11520
|
+
* @throws {RequiredError}
|
|
11521
|
+
* @memberof ThreadsApi
|
|
11522
|
+
*/
|
|
11523
|
+
updateThread(requestParameters, options) {
|
|
11524
|
+
return ThreadsApiFp(this.configuration)
|
|
11525
|
+
.updateThread(requestParameters.id, requestParameters.updateThreadRequest, options)
|
|
10746
11526
|
.then((request) => request(this.axios, this.basePath));
|
|
10747
11527
|
}
|
|
10748
11528
|
}
|