@vertexvis/api-client-node 0.34.0 → 0.35.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 +1185 -107
- package/dist/cjs/api.js +685 -41
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +1185 -107
- package/dist/esm/api.js +677 -37
- 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
|
};
|
|
@@ -227,6 +236,9 @@ export const SceneRelationshipDataTypeEnum = {
|
|
|
227
236
|
export const SceneViewRelationshipDataTypeEnum = {
|
|
228
237
|
SceneView: 'scene-view',
|
|
229
238
|
};
|
|
239
|
+
export const SceneViewStateAttachmentTypeEnum = {
|
|
240
|
+
SceneViewState: 'scene-view-state',
|
|
241
|
+
};
|
|
230
242
|
export const SceneViewStateRelationshipDataTypeEnum = {
|
|
231
243
|
SceneViewState: 'scene-view-state',
|
|
232
244
|
};
|
|
@@ -316,12 +328,24 @@ export const WebhookSubscriptionDataAttributesStatusEnum = {
|
|
|
316
328
|
Active: 'active',
|
|
317
329
|
Paused: 'paused',
|
|
318
330
|
};
|
|
331
|
+
export const WithFileContentTypeEnum = {
|
|
332
|
+
FileContent: 'file-content',
|
|
333
|
+
};
|
|
334
|
+
export const WithReplyTypeEnum = {
|
|
335
|
+
Reply: 'reply',
|
|
336
|
+
};
|
|
319
337
|
export const WithSceneViewIdTypeEnum = {
|
|
320
338
|
SceneViewId: 'scene-view-id',
|
|
321
339
|
};
|
|
340
|
+
export const WithSceneViewStateContentTypeEnum = {
|
|
341
|
+
SceneViewStateContent: 'scene-view-state-content',
|
|
342
|
+
};
|
|
322
343
|
export const WithSceneViewStateIdTypeEnum = {
|
|
323
344
|
SceneViewStateId: 'scene-view-state-id',
|
|
324
345
|
};
|
|
346
|
+
export const WithThreadTypeEnum = {
|
|
347
|
+
Thread: 'thread',
|
|
348
|
+
};
|
|
325
349
|
/**
|
|
326
350
|
* AccountsApi - axios parameter creator
|
|
327
351
|
* @export
|
|
@@ -1088,6 +1112,198 @@ export class ApplicationsApi extends BaseAPI {
|
|
|
1088
1112
|
.then((request) => request(this.axios, this.basePath));
|
|
1089
1113
|
}
|
|
1090
1114
|
}
|
|
1115
|
+
/**
|
|
1116
|
+
* AttachmentsApi - axios parameter creator
|
|
1117
|
+
* @export
|
|
1118
|
+
*/
|
|
1119
|
+
export const AttachmentsApiAxiosParamCreator = function (configuration) {
|
|
1120
|
+
return {
|
|
1121
|
+
/**
|
|
1122
|
+
* 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.
|
|
1123
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1124
|
+
* @param {*} [options] Override http request option.
|
|
1125
|
+
* @throws {RequiredError}
|
|
1126
|
+
*/
|
|
1127
|
+
createAttachment: (createAttachmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1128
|
+
var _a;
|
|
1129
|
+
// verify required parameter 'createAttachmentRequest' is not null or undefined
|
|
1130
|
+
assertParamExists('createAttachment', 'createAttachmentRequest', createAttachmentRequest);
|
|
1131
|
+
const localVarPath = `/attachments`;
|
|
1132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1134
|
+
let baseOptions;
|
|
1135
|
+
if (configuration) {
|
|
1136
|
+
baseOptions = configuration.baseOptions;
|
|
1137
|
+
}
|
|
1138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1139
|
+
const localVarHeaderParameter = {};
|
|
1140
|
+
const localVarQueryParameter = {};
|
|
1141
|
+
// authentication OAuth2 required
|
|
1142
|
+
// oauth required
|
|
1143
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1144
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1146
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1147
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1148
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createAttachmentRequest, localVarRequestOptions, configuration);
|
|
1149
|
+
return {
|
|
1150
|
+
url: toPathString(localVarUrlObj),
|
|
1151
|
+
options: localVarRequestOptions,
|
|
1152
|
+
};
|
|
1153
|
+
}),
|
|
1154
|
+
/**
|
|
1155
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1156
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1157
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1158
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1159
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1160
|
+
* @param {*} [options] Override http request option.
|
|
1161
|
+
* @throws {RequiredError}
|
|
1162
|
+
*/
|
|
1163
|
+
listAttachments: (filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1164
|
+
var _b;
|
|
1165
|
+
// verify required parameter 'filterRelationshipId' is not null or undefined
|
|
1166
|
+
assertParamExists('listAttachments', 'filterRelationshipId', filterRelationshipId);
|
|
1167
|
+
// verify required parameter 'filterRelationshipType' is not null or undefined
|
|
1168
|
+
assertParamExists('listAttachments', 'filterRelationshipType', filterRelationshipType);
|
|
1169
|
+
const localVarPath = `/attachments`;
|
|
1170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1171
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1172
|
+
let baseOptions;
|
|
1173
|
+
if (configuration) {
|
|
1174
|
+
baseOptions = configuration.baseOptions;
|
|
1175
|
+
}
|
|
1176
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1177
|
+
const localVarHeaderParameter = {};
|
|
1178
|
+
const localVarQueryParameter = {};
|
|
1179
|
+
// authentication OAuth2 required
|
|
1180
|
+
// oauth required
|
|
1181
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1182
|
+
if (filterRelationshipId !== undefined) {
|
|
1183
|
+
localVarQueryParameter['filter[relationshipId]'] = filterRelationshipId;
|
|
1184
|
+
}
|
|
1185
|
+
if (filterRelationshipType !== undefined) {
|
|
1186
|
+
localVarQueryParameter['filter[relationshipType]'] =
|
|
1187
|
+
filterRelationshipType;
|
|
1188
|
+
}
|
|
1189
|
+
if (pageCursor !== undefined) {
|
|
1190
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
1191
|
+
}
|
|
1192
|
+
if (pageSize !== undefined) {
|
|
1193
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
1194
|
+
}
|
|
1195
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1196
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
1197
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1198
|
+
return {
|
|
1199
|
+
url: toPathString(localVarUrlObj),
|
|
1200
|
+
options: localVarRequestOptions,
|
|
1201
|
+
};
|
|
1202
|
+
}),
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
/**
|
|
1206
|
+
* AttachmentsApi - functional programming interface
|
|
1207
|
+
* @export
|
|
1208
|
+
*/
|
|
1209
|
+
export const AttachmentsApiFp = function (configuration) {
|
|
1210
|
+
const localVarAxiosParamCreator = AttachmentsApiAxiosParamCreator(configuration);
|
|
1211
|
+
return {
|
|
1212
|
+
/**
|
|
1213
|
+
* 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.
|
|
1214
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1215
|
+
* @param {*} [options] Override http request option.
|
|
1216
|
+
* @throws {RequiredError}
|
|
1217
|
+
*/
|
|
1218
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1219
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1220
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachment(createAttachmentRequest, options);
|
|
1221
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1222
|
+
});
|
|
1223
|
+
},
|
|
1224
|
+
/**
|
|
1225
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1226
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1227
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1228
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1229
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1230
|
+
* @param {*} [options] Override http request option.
|
|
1231
|
+
* @throws {RequiredError}
|
|
1232
|
+
*/
|
|
1233
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options);
|
|
1236
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1237
|
+
});
|
|
1238
|
+
},
|
|
1239
|
+
};
|
|
1240
|
+
};
|
|
1241
|
+
/**
|
|
1242
|
+
* AttachmentsApi - factory interface
|
|
1243
|
+
* @export
|
|
1244
|
+
*/
|
|
1245
|
+
export const AttachmentsApiFactory = function (configuration, basePath, axios) {
|
|
1246
|
+
const localVarFp = AttachmentsApiFp(configuration);
|
|
1247
|
+
return {
|
|
1248
|
+
/**
|
|
1249
|
+
* 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.
|
|
1250
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1251
|
+
* @param {*} [options] Override http request option.
|
|
1252
|
+
* @throws {RequiredError}
|
|
1253
|
+
*/
|
|
1254
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1255
|
+
return localVarFp
|
|
1256
|
+
.createAttachment(createAttachmentRequest, options)
|
|
1257
|
+
.then((request) => request(axios, basePath));
|
|
1258
|
+
},
|
|
1259
|
+
/**
|
|
1260
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1261
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1262
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1263
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1264
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1265
|
+
* @param {*} [options] Override http request option.
|
|
1266
|
+
* @throws {RequiredError}
|
|
1267
|
+
*/
|
|
1268
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1269
|
+
return localVarFp
|
|
1270
|
+
.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options)
|
|
1271
|
+
.then((request) => request(axios, basePath));
|
|
1272
|
+
},
|
|
1273
|
+
};
|
|
1274
|
+
};
|
|
1275
|
+
/**
|
|
1276
|
+
* AttachmentsApi - object-oriented interface
|
|
1277
|
+
* @export
|
|
1278
|
+
* @class AttachmentsApi
|
|
1279
|
+
* @extends {BaseAPI}
|
|
1280
|
+
*/
|
|
1281
|
+
export class AttachmentsApi extends BaseAPI {
|
|
1282
|
+
/**
|
|
1283
|
+
* 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.
|
|
1284
|
+
* @param {AttachmentsApiCreateAttachmentRequest} requestParameters Request parameters.
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
* @memberof AttachmentsApi
|
|
1288
|
+
*/
|
|
1289
|
+
createAttachment(requestParameters, options) {
|
|
1290
|
+
return AttachmentsApiFp(this.configuration)
|
|
1291
|
+
.createAttachment(requestParameters.createAttachmentRequest, options)
|
|
1292
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1293
|
+
}
|
|
1294
|
+
/**
|
|
1295
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1296
|
+
* @param {AttachmentsApiListAttachmentsRequest} requestParameters Request parameters.
|
|
1297
|
+
* @param {*} [options] Override http request option.
|
|
1298
|
+
* @throws {RequiredError}
|
|
1299
|
+
* @memberof AttachmentsApi
|
|
1300
|
+
*/
|
|
1301
|
+
listAttachments(requestParameters, options) {
|
|
1302
|
+
return AttachmentsApiFp(this.configuration)
|
|
1303
|
+
.listAttachments(requestParameters.filterRelationshipId, requestParameters.filterRelationshipType, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1304
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1091
1307
|
/**
|
|
1092
1308
|
* BatchesApi - axios parameter creator
|
|
1093
1309
|
* @export
|
|
@@ -1397,6 +1613,37 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1397
1613
|
options: localVarRequestOptions,
|
|
1398
1614
|
};
|
|
1399
1615
|
}),
|
|
1616
|
+
/**
|
|
1617
|
+
* Remove a collaboration context along with all of its data
|
|
1618
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1619
|
+
* @param {*} [options] Override http request option.
|
|
1620
|
+
* @throws {RequiredError}
|
|
1621
|
+
*/
|
|
1622
|
+
deleteCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1623
|
+
var _c;
|
|
1624
|
+
// verify required parameter 'id' is not null or undefined
|
|
1625
|
+
assertParamExists('deleteCollaborationContext', 'id', id);
|
|
1626
|
+
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1628
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1629
|
+
let baseOptions;
|
|
1630
|
+
if (configuration) {
|
|
1631
|
+
baseOptions = configuration.baseOptions;
|
|
1632
|
+
}
|
|
1633
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1634
|
+
const localVarHeaderParameter = {};
|
|
1635
|
+
const localVarQueryParameter = {};
|
|
1636
|
+
// authentication OAuth2 required
|
|
1637
|
+
// oauth required
|
|
1638
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1639
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1640
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1641
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1642
|
+
return {
|
|
1643
|
+
url: toPathString(localVarUrlObj),
|
|
1644
|
+
options: localVarRequestOptions,
|
|
1645
|
+
};
|
|
1646
|
+
}),
|
|
1400
1647
|
/**
|
|
1401
1648
|
* Get a `collaboration-context` by ID.
|
|
1402
1649
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1404,7 +1651,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1404
1651
|
* @throws {RequiredError}
|
|
1405
1652
|
*/
|
|
1406
1653
|
getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1407
|
-
var
|
|
1654
|
+
var _d;
|
|
1408
1655
|
// verify required parameter 'id' is not null or undefined
|
|
1409
1656
|
assertParamExists('getCollaborationContext', 'id', id);
|
|
1410
1657
|
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -1421,7 +1668,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1421
1668
|
// oauth required
|
|
1422
1669
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1423
1670
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1424
|
-
let headersFromBaseOptions = (
|
|
1671
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1425
1672
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1426
1673
|
return {
|
|
1427
1674
|
url: toPathString(localVarUrlObj),
|
|
@@ -1436,7 +1683,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1436
1683
|
* @throws {RequiredError}
|
|
1437
1684
|
*/
|
|
1438
1685
|
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1439
|
-
var
|
|
1686
|
+
var _e;
|
|
1440
1687
|
const localVarPath = `/collaboration-contexts`;
|
|
1441
1688
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1442
1689
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1457,7 +1704,7 @@ export const CollaborationContextsApiAxiosParamCreator = function (configuration
|
|
|
1457
1704
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
1458
1705
|
}
|
|
1459
1706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1460
|
-
let headersFromBaseOptions = (
|
|
1707
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
1461
1708
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1462
1709
|
return {
|
|
1463
1710
|
url: toPathString(localVarUrlObj),
|
|
@@ -1498,6 +1745,18 @@ export const CollaborationContextsApiFp = function (configuration) {
|
|
|
1498
1745
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1499
1746
|
});
|
|
1500
1747
|
},
|
|
1748
|
+
/**
|
|
1749
|
+
* Remove a collaboration context along with all of its data
|
|
1750
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1751
|
+
* @param {*} [options] Override http request option.
|
|
1752
|
+
* @throws {RequiredError}
|
|
1753
|
+
*/
|
|
1754
|
+
deleteCollaborationContext(id, options) {
|
|
1755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1756
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollaborationContext(id, options);
|
|
1757
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1758
|
+
});
|
|
1759
|
+
},
|
|
1501
1760
|
/**
|
|
1502
1761
|
* Get a `collaboration-context` by ID.
|
|
1503
1762
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1555,6 +1814,17 @@ export const CollaborationContextsApiFactory = function (configuration, basePath
|
|
|
1555
1814
|
.createCollaborationContext(createCollaborationContextRequest, options)
|
|
1556
1815
|
.then((request) => request(axios, basePath));
|
|
1557
1816
|
},
|
|
1817
|
+
/**
|
|
1818
|
+
* Remove a collaboration context along with all of its data
|
|
1819
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1820
|
+
* @param {*} [options] Override http request option.
|
|
1821
|
+
* @throws {RequiredError}
|
|
1822
|
+
*/
|
|
1823
|
+
deleteCollaborationContext(id, options) {
|
|
1824
|
+
return localVarFp
|
|
1825
|
+
.deleteCollaborationContext(id, options)
|
|
1826
|
+
.then((request) => request(axios, basePath));
|
|
1827
|
+
},
|
|
1558
1828
|
/**
|
|
1559
1829
|
* Get a `collaboration-context` by ID.
|
|
1560
1830
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1611,6 +1881,18 @@ export class CollaborationContextsApi extends BaseAPI {
|
|
|
1611
1881
|
.createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
|
|
1612
1882
|
.then((request) => request(this.axios, this.basePath));
|
|
1613
1883
|
}
|
|
1884
|
+
/**
|
|
1885
|
+
* Remove a collaboration context along with all of its data
|
|
1886
|
+
* @param {CollaborationContextsApiDeleteCollaborationContextRequest} requestParameters Request parameters.
|
|
1887
|
+
* @param {*} [options] Override http request option.
|
|
1888
|
+
* @throws {RequiredError}
|
|
1889
|
+
* @memberof CollaborationContextsApi
|
|
1890
|
+
*/
|
|
1891
|
+
deleteCollaborationContext(requestParameters, options) {
|
|
1892
|
+
return CollaborationContextsApiFp(this.configuration)
|
|
1893
|
+
.deleteCollaborationContext(requestParameters.id, options)
|
|
1894
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1895
|
+
}
|
|
1614
1896
|
/**
|
|
1615
1897
|
* Get a `collaboration-context` by ID.
|
|
1616
1898
|
* @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
|
|
@@ -2722,6 +3004,42 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2722
3004
|
options: localVarRequestOptions,
|
|
2723
3005
|
};
|
|
2724
3006
|
}),
|
|
3007
|
+
/**
|
|
3008
|
+
* Create an upload uri for a `file` by ID.
|
|
3009
|
+
* @param {string} id The `file` ID.
|
|
3010
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3011
|
+
* @param {*} [options] Override http request option.
|
|
3012
|
+
* @throws {RequiredError}
|
|
3013
|
+
*/
|
|
3014
|
+
createUploadUrl: (id, createUploadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3015
|
+
var _c;
|
|
3016
|
+
// verify required parameter 'id' is not null or undefined
|
|
3017
|
+
assertParamExists('createUploadUrl', 'id', id);
|
|
3018
|
+
// verify required parameter 'createUploadRequest' is not null or undefined
|
|
3019
|
+
assertParamExists('createUploadUrl', 'createUploadRequest', createUploadRequest);
|
|
3020
|
+
const localVarPath = `/files/{id}/upload-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3022
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3023
|
+
let baseOptions;
|
|
3024
|
+
if (configuration) {
|
|
3025
|
+
baseOptions = configuration.baseOptions;
|
|
3026
|
+
}
|
|
3027
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3028
|
+
const localVarHeaderParameter = {};
|
|
3029
|
+
const localVarQueryParameter = {};
|
|
3030
|
+
// authentication OAuth2 required
|
|
3031
|
+
// oauth required
|
|
3032
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
3033
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
3034
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3035
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
3036
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3037
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createUploadRequest, localVarRequestOptions, configuration);
|
|
3038
|
+
return {
|
|
3039
|
+
url: toPathString(localVarUrlObj),
|
|
3040
|
+
options: localVarRequestOptions,
|
|
3041
|
+
};
|
|
3042
|
+
}),
|
|
2725
3043
|
/**
|
|
2726
3044
|
* Delete a `file`.
|
|
2727
3045
|
* @param {string} id The `file` ID.
|
|
@@ -2729,7 +3047,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2729
3047
|
* @throws {RequiredError}
|
|
2730
3048
|
*/
|
|
2731
3049
|
deleteFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2732
|
-
var
|
|
3050
|
+
var _d;
|
|
2733
3051
|
// verify required parameter 'id' is not null or undefined
|
|
2734
3052
|
assertParamExists('deleteFile', 'id', id);
|
|
2735
3053
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2746,7 +3064,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2746
3064
|
// oauth required
|
|
2747
3065
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2748
3066
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2749
|
-
let headersFromBaseOptions = (
|
|
3067
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
2750
3068
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2751
3069
|
return {
|
|
2752
3070
|
url: toPathString(localVarUrlObj),
|
|
@@ -2760,7 +3078,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2760
3078
|
* @throws {RequiredError}
|
|
2761
3079
|
*/
|
|
2762
3080
|
getFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2763
|
-
var
|
|
3081
|
+
var _e;
|
|
2764
3082
|
// verify required parameter 'id' is not null or undefined
|
|
2765
3083
|
assertParamExists('getFile', 'id', id);
|
|
2766
3084
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2777,7 +3095,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2777
3095
|
// oauth required
|
|
2778
3096
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2779
3097
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2780
|
-
let headersFromBaseOptions = (
|
|
3098
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
2781
3099
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2782
3100
|
return {
|
|
2783
3101
|
url: toPathString(localVarUrlObj),
|
|
@@ -2793,7 +3111,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2793
3111
|
* @throws {RequiredError}
|
|
2794
3112
|
*/
|
|
2795
3113
|
getFiles: (pageCursor, pageSize, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2796
|
-
var
|
|
3114
|
+
var _f;
|
|
2797
3115
|
const localVarPath = `/files`;
|
|
2798
3116
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2799
3117
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2817,7 +3135,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2817
3135
|
localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
|
|
2818
3136
|
}
|
|
2819
3137
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2820
|
-
let headersFromBaseOptions = (
|
|
3138
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
2821
3139
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2822
3140
|
return {
|
|
2823
3141
|
url: toPathString(localVarUrlObj),
|
|
@@ -2832,7 +3150,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2832
3150
|
* @throws {RequiredError}
|
|
2833
3151
|
*/
|
|
2834
3152
|
updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2835
|
-
var
|
|
3153
|
+
var _g;
|
|
2836
3154
|
// verify required parameter 'id' is not null or undefined
|
|
2837
3155
|
assertParamExists('updateFile', 'id', id);
|
|
2838
3156
|
// verify required parameter 'updateFileRequest' is not null or undefined
|
|
@@ -2852,7 +3170,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2852
3170
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2853
3171
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2854
3172
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2855
|
-
let headersFromBaseOptions = (
|
|
3173
|
+
let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
|
|
2856
3174
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2857
3175
|
localVarRequestOptions.data = serializeDataIfNeeded(updateFileRequest, localVarRequestOptions, configuration);
|
|
2858
3176
|
return {
|
|
@@ -2868,7 +3186,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2868
3186
|
* @throws {RequiredError}
|
|
2869
3187
|
*/
|
|
2870
3188
|
uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2871
|
-
var
|
|
3189
|
+
var _h;
|
|
2872
3190
|
// verify required parameter 'id' is not null or undefined
|
|
2873
3191
|
assertParamExists('uploadFile', 'id', id);
|
|
2874
3192
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -2888,7 +3206,7 @@ export const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2888
3206
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2889
3207
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
2890
3208
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2891
|
-
let headersFromBaseOptions = (
|
|
3209
|
+
let headersFromBaseOptions = (_h = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _h !== void 0 ? _h : {};
|
|
2892
3210
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2893
3211
|
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
|
|
2894
3212
|
return {
|
|
@@ -2930,6 +3248,19 @@ export const FilesApiFp = function (configuration) {
|
|
|
2930
3248
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2931
3249
|
});
|
|
2932
3250
|
},
|
|
3251
|
+
/**
|
|
3252
|
+
* Create an upload uri for a `file` by ID.
|
|
3253
|
+
* @param {string} id The `file` ID.
|
|
3254
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3255
|
+
* @param {*} [options] Override http request option.
|
|
3256
|
+
* @throws {RequiredError}
|
|
3257
|
+
*/
|
|
3258
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
3259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3260
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadUrl(id, createUploadRequest, options);
|
|
3261
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
3262
|
+
});
|
|
3263
|
+
},
|
|
2933
3264
|
/**
|
|
2934
3265
|
* Delete a `file`.
|
|
2935
3266
|
* @param {string} id The `file` ID.
|
|
@@ -3026,6 +3357,18 @@ export const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
3026
3357
|
.createFile(createFileRequest, options)
|
|
3027
3358
|
.then((request) => request(axios, basePath));
|
|
3028
3359
|
},
|
|
3360
|
+
/**
|
|
3361
|
+
* Create an upload uri for a `file` by ID.
|
|
3362
|
+
* @param {string} id The `file` ID.
|
|
3363
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3364
|
+
* @param {*} [options] Override http request option.
|
|
3365
|
+
* @throws {RequiredError}
|
|
3366
|
+
*/
|
|
3367
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
3368
|
+
return localVarFp
|
|
3369
|
+
.createUploadUrl(id, createUploadRequest, options)
|
|
3370
|
+
.then((request) => request(axios, basePath));
|
|
3371
|
+
},
|
|
3029
3372
|
/**
|
|
3030
3373
|
* Delete a `file`.
|
|
3031
3374
|
* @param {string} id The `file` ID.
|
|
@@ -3118,6 +3461,18 @@ export class FilesApi extends BaseAPI {
|
|
|
3118
3461
|
.createFile(requestParameters.createFileRequest, options)
|
|
3119
3462
|
.then((request) => request(this.axios, this.basePath));
|
|
3120
3463
|
}
|
|
3464
|
+
/**
|
|
3465
|
+
* Create an upload uri for a `file` by ID.
|
|
3466
|
+
* @param {FilesApiCreateUploadUrlRequest} requestParameters Request parameters.
|
|
3467
|
+
* @param {*} [options] Override http request option.
|
|
3468
|
+
* @throws {RequiredError}
|
|
3469
|
+
* @memberof FilesApi
|
|
3470
|
+
*/
|
|
3471
|
+
createUploadUrl(requestParameters, options) {
|
|
3472
|
+
return FilesApiFp(this.configuration)
|
|
3473
|
+
.createUploadUrl(requestParameters.id, requestParameters.createUploadRequest, options)
|
|
3474
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3475
|
+
}
|
|
3121
3476
|
/**
|
|
3122
3477
|
* Delete a `file`.
|
|
3123
3478
|
* @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
|
|
@@ -4519,7 +4874,7 @@ export const PartRevisionInstancesApiAxiosParamCreator = function (configuration
|
|
|
4519
4874
|
return {
|
|
4520
4875
|
/**
|
|
4521
4876
|
* 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.
|
|
4877
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4523
4878
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4524
4879
|
* @param {number} [pageSize] The number of items to return.
|
|
4525
4880
|
* @param {*} [options] Override http request option.
|
|
@@ -4568,7 +4923,7 @@ export const PartRevisionInstancesApiFp = function (configuration) {
|
|
|
4568
4923
|
return {
|
|
4569
4924
|
/**
|
|
4570
4925
|
* 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.
|
|
4926
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4572
4927
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4573
4928
|
* @param {number} [pageSize] The number of items to return.
|
|
4574
4929
|
* @param {*} [options] Override http request option.
|
|
@@ -4591,7 +4946,7 @@ export const PartRevisionInstancesApiFactory = function (configuration, basePath
|
|
|
4591
4946
|
return {
|
|
4592
4947
|
/**
|
|
4593
4948
|
* 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.
|
|
4949
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4595
4950
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4596
4951
|
* @param {number} [pageSize] The number of items to return.
|
|
4597
4952
|
* @param {*} [options] Override http request option.
|
|
@@ -6292,6 +6647,37 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6292
6647
|
options: localVarRequestOptions,
|
|
6293
6648
|
};
|
|
6294
6649
|
}),
|
|
6650
|
+
/**
|
|
6651
|
+
* Remove a reply.
|
|
6652
|
+
* @param {string} id The `thread` ID.
|
|
6653
|
+
* @param {*} [options] Override http request option.
|
|
6654
|
+
* @throws {RequiredError}
|
|
6655
|
+
*/
|
|
6656
|
+
deleteReply: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6657
|
+
var _b;
|
|
6658
|
+
// verify required parameter 'id' is not null or undefined
|
|
6659
|
+
assertParamExists('deleteReply', 'id', id);
|
|
6660
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6661
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6662
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6663
|
+
let baseOptions;
|
|
6664
|
+
if (configuration) {
|
|
6665
|
+
baseOptions = configuration.baseOptions;
|
|
6666
|
+
}
|
|
6667
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6668
|
+
const localVarHeaderParameter = {};
|
|
6669
|
+
const localVarQueryParameter = {};
|
|
6670
|
+
// authentication OAuth2 required
|
|
6671
|
+
// oauth required
|
|
6672
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6673
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6674
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
6675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6676
|
+
return {
|
|
6677
|
+
url: toPathString(localVarUrlObj),
|
|
6678
|
+
options: localVarRequestOptions,
|
|
6679
|
+
};
|
|
6680
|
+
}),
|
|
6295
6681
|
/**
|
|
6296
6682
|
* Get a `reply`.
|
|
6297
6683
|
* @param {string} id The `thread` ID.
|
|
@@ -6300,7 +6686,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6300
6686
|
* @throws {RequiredError}
|
|
6301
6687
|
*/
|
|
6302
6688
|
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6303
|
-
var
|
|
6689
|
+
var _c;
|
|
6304
6690
|
// verify required parameter 'id' is not null or undefined
|
|
6305
6691
|
assertParamExists('getReply', 'id', id);
|
|
6306
6692
|
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -6320,7 +6706,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6320
6706
|
localVarQueryParameter['include'] = include;
|
|
6321
6707
|
}
|
|
6322
6708
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6323
|
-
let headersFromBaseOptions = (
|
|
6709
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6324
6710
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6325
6711
|
return {
|
|
6326
6712
|
url: toPathString(localVarUrlObj),
|
|
@@ -6337,7 +6723,7 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6337
6723
|
* @throws {RequiredError}
|
|
6338
6724
|
*/
|
|
6339
6725
|
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6340
|
-
var
|
|
6726
|
+
var _d;
|
|
6341
6727
|
const localVarPath = `/replies`;
|
|
6342
6728
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6343
6729
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -6364,8 +6750,44 @@ export const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6364
6750
|
localVarQueryParameter['include'] = include;
|
|
6365
6751
|
}
|
|
6366
6752
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6367
|
-
let headersFromBaseOptions = (
|
|
6753
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
6754
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6755
|
+
return {
|
|
6756
|
+
url: toPathString(localVarUrlObj),
|
|
6757
|
+
options: localVarRequestOptions,
|
|
6758
|
+
};
|
|
6759
|
+
}),
|
|
6760
|
+
/**
|
|
6761
|
+
* Update a `reply`.
|
|
6762
|
+
* @param {string} id The `thread` ID.
|
|
6763
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
6764
|
+
* @param {*} [options] Override http request option.
|
|
6765
|
+
* @throws {RequiredError}
|
|
6766
|
+
*/
|
|
6767
|
+
updateReply: (id, updateReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6768
|
+
var _e;
|
|
6769
|
+
// verify required parameter 'id' is not null or undefined
|
|
6770
|
+
assertParamExists('updateReply', 'id', id);
|
|
6771
|
+
// verify required parameter 'updateReplyRequest' is not null or undefined
|
|
6772
|
+
assertParamExists('updateReply', 'updateReplyRequest', updateReplyRequest);
|
|
6773
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6774
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6775
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
6776
|
+
let baseOptions;
|
|
6777
|
+
if (configuration) {
|
|
6778
|
+
baseOptions = configuration.baseOptions;
|
|
6779
|
+
}
|
|
6780
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6781
|
+
const localVarHeaderParameter = {};
|
|
6782
|
+
const localVarQueryParameter = {};
|
|
6783
|
+
// authentication OAuth2 required
|
|
6784
|
+
// oauth required
|
|
6785
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6786
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
6787
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
6788
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
6368
6789
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6790
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateReplyRequest, localVarRequestOptions, configuration);
|
|
6369
6791
|
return {
|
|
6370
6792
|
url: toPathString(localVarUrlObj),
|
|
6371
6793
|
options: localVarRequestOptions,
|
|
@@ -6393,6 +6815,18 @@ export const RepliesApiFp = function (configuration) {
|
|
|
6393
6815
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6394
6816
|
});
|
|
6395
6817
|
},
|
|
6818
|
+
/**
|
|
6819
|
+
* Remove a reply.
|
|
6820
|
+
* @param {string} id The `thread` ID.
|
|
6821
|
+
* @param {*} [options] Override http request option.
|
|
6822
|
+
* @throws {RequiredError}
|
|
6823
|
+
*/
|
|
6824
|
+
deleteReply(id, options) {
|
|
6825
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6826
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteReply(id, options);
|
|
6827
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6828
|
+
});
|
|
6829
|
+
},
|
|
6396
6830
|
/**
|
|
6397
6831
|
* Get a `reply`.
|
|
6398
6832
|
* @param {string} id The `thread` ID.
|
|
@@ -6421,6 +6855,19 @@ export const RepliesApiFp = function (configuration) {
|
|
|
6421
6855
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6422
6856
|
});
|
|
6423
6857
|
},
|
|
6858
|
+
/**
|
|
6859
|
+
* Update a `reply`.
|
|
6860
|
+
* @param {string} id The `thread` ID.
|
|
6861
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
6862
|
+
* @param {*} [options] Override http request option.
|
|
6863
|
+
* @throws {RequiredError}
|
|
6864
|
+
*/
|
|
6865
|
+
updateReply(id, updateReplyRequest, options) {
|
|
6866
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6867
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReply(id, updateReplyRequest, options);
|
|
6868
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6869
|
+
});
|
|
6870
|
+
},
|
|
6424
6871
|
};
|
|
6425
6872
|
};
|
|
6426
6873
|
/**
|
|
@@ -6442,6 +6889,17 @@ export const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6442
6889
|
.createReply(id, createReplyRequest, options)
|
|
6443
6890
|
.then((request) => request(axios, basePath));
|
|
6444
6891
|
},
|
|
6892
|
+
/**
|
|
6893
|
+
* Remove a reply.
|
|
6894
|
+
* @param {string} id The `thread` ID.
|
|
6895
|
+
* @param {*} [options] Override http request option.
|
|
6896
|
+
* @throws {RequiredError}
|
|
6897
|
+
*/
|
|
6898
|
+
deleteReply(id, options) {
|
|
6899
|
+
return localVarFp
|
|
6900
|
+
.deleteReply(id, options)
|
|
6901
|
+
.then((request) => request(axios, basePath));
|
|
6902
|
+
},
|
|
6445
6903
|
/**
|
|
6446
6904
|
* Get a `reply`.
|
|
6447
6905
|
* @param {string} id The `thread` ID.
|
|
@@ -6468,6 +6926,18 @@ export const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6468
6926
|
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6469
6927
|
.then((request) => request(axios, basePath));
|
|
6470
6928
|
},
|
|
6929
|
+
/**
|
|
6930
|
+
* Update a `reply`.
|
|
6931
|
+
* @param {string} id The `thread` ID.
|
|
6932
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
6933
|
+
* @param {*} [options] Override http request option.
|
|
6934
|
+
* @throws {RequiredError}
|
|
6935
|
+
*/
|
|
6936
|
+
updateReply(id, updateReplyRequest, options) {
|
|
6937
|
+
return localVarFp
|
|
6938
|
+
.updateReply(id, updateReplyRequest, options)
|
|
6939
|
+
.then((request) => request(axios, basePath));
|
|
6940
|
+
},
|
|
6471
6941
|
};
|
|
6472
6942
|
};
|
|
6473
6943
|
/**
|
|
@@ -6489,6 +6959,18 @@ export class RepliesApi extends BaseAPI {
|
|
|
6489
6959
|
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6490
6960
|
.then((request) => request(this.axios, this.basePath));
|
|
6491
6961
|
}
|
|
6962
|
+
/**
|
|
6963
|
+
* Remove a reply.
|
|
6964
|
+
* @param {RepliesApiDeleteReplyRequest} requestParameters Request parameters.
|
|
6965
|
+
* @param {*} [options] Override http request option.
|
|
6966
|
+
* @throws {RequiredError}
|
|
6967
|
+
* @memberof RepliesApi
|
|
6968
|
+
*/
|
|
6969
|
+
deleteReply(requestParameters, options) {
|
|
6970
|
+
return RepliesApiFp(this.configuration)
|
|
6971
|
+
.deleteReply(requestParameters.id, options)
|
|
6972
|
+
.then((request) => request(this.axios, this.basePath));
|
|
6973
|
+
}
|
|
6492
6974
|
/**
|
|
6493
6975
|
* Get a `reply`.
|
|
6494
6976
|
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
@@ -6513,6 +6995,18 @@ export class RepliesApi extends BaseAPI {
|
|
|
6513
6995
|
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6514
6996
|
.then((request) => request(this.axios, this.basePath));
|
|
6515
6997
|
}
|
|
6998
|
+
/**
|
|
6999
|
+
* Update a `reply`.
|
|
7000
|
+
* @param {RepliesApiUpdateReplyRequest} requestParameters Request parameters.
|
|
7001
|
+
* @param {*} [options] Override http request option.
|
|
7002
|
+
* @throws {RequiredError}
|
|
7003
|
+
* @memberof RepliesApi
|
|
7004
|
+
*/
|
|
7005
|
+
updateReply(requestParameters, options) {
|
|
7006
|
+
return RepliesApiFp(this.configuration)
|
|
7007
|
+
.updateReply(requestParameters.id, requestParameters.updateReplyRequest, options)
|
|
7008
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7009
|
+
}
|
|
6516
7010
|
}
|
|
6517
7011
|
/**
|
|
6518
7012
|
* SceneAlterationsApi - axios parameter creator
|
|
@@ -7729,7 +8223,7 @@ export const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7729
8223
|
* @param {number} [pageSize] The number of items to return.
|
|
7730
8224
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7731
8225
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7732
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8226
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
7733
8227
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7734
8228
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7735
8229
|
* @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 +8393,7 @@ export const SceneItemsApiFp = function (configuration) {
|
|
|
7899
8393
|
* @param {number} [pageSize] The number of items to return.
|
|
7900
8394
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7901
8395
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7902
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8396
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
7903
8397
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7904
8398
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7905
8399
|
* @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 +8492,7 @@ export const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
7998
8492
|
* @param {number} [pageSize] The number of items to return.
|
|
7999
8493
|
* @param {string} [filterSource] Source ID to filter on.
|
|
8000
8494
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8001
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8495
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
8002
8496
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8003
8497
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
8004
8498
|
* @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 +10939,37 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10445
10939
|
options: localVarRequestOptions,
|
|
10446
10940
|
};
|
|
10447
10941
|
}),
|
|
10942
|
+
/**
|
|
10943
|
+
* Remove a thread.
|
|
10944
|
+
* @param {string} id The `thread` ID.
|
|
10945
|
+
* @param {*} [options] Override http request option.
|
|
10946
|
+
* @throws {RequiredError}
|
|
10947
|
+
*/
|
|
10948
|
+
deleteThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10949
|
+
var _b;
|
|
10950
|
+
// verify required parameter 'id' is not null or undefined
|
|
10951
|
+
assertParamExists('deleteThread', 'id', id);
|
|
10952
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
10953
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10954
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
10955
|
+
let baseOptions;
|
|
10956
|
+
if (configuration) {
|
|
10957
|
+
baseOptions = configuration.baseOptions;
|
|
10958
|
+
}
|
|
10959
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
10960
|
+
const localVarHeaderParameter = {};
|
|
10961
|
+
const localVarQueryParameter = {};
|
|
10962
|
+
// authentication OAuth2 required
|
|
10963
|
+
// oauth required
|
|
10964
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10965
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10966
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
10967
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10968
|
+
return {
|
|
10969
|
+
url: toPathString(localVarUrlObj),
|
|
10970
|
+
options: localVarRequestOptions,
|
|
10971
|
+
};
|
|
10972
|
+
}),
|
|
10448
10973
|
/**
|
|
10449
10974
|
* Get a `thread`.
|
|
10450
10975
|
* @param {string} id The `thread` ID.
|
|
@@ -10454,7 +10979,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10454
10979
|
* @throws {RequiredError}
|
|
10455
10980
|
*/
|
|
10456
10981
|
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10457
|
-
var
|
|
10982
|
+
var _c;
|
|
10458
10983
|
// verify required parameter 'id' is not null or undefined
|
|
10459
10984
|
assertParamExists('getThread', 'id', id);
|
|
10460
10985
|
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10477,7 +11002,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10477
11002
|
localVarQueryParameter['include'] = include;
|
|
10478
11003
|
}
|
|
10479
11004
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10480
|
-
let headersFromBaseOptions = (
|
|
11005
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10481
11006
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10482
11007
|
return {
|
|
10483
11008
|
url: toPathString(localVarUrlObj),
|
|
@@ -10491,7 +11016,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10491
11016
|
* @throws {RequiredError}
|
|
10492
11017
|
*/
|
|
10493
11018
|
getThreadParticipants: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10494
|
-
var
|
|
11019
|
+
var _d;
|
|
10495
11020
|
// verify required parameter 'id' is not null or undefined
|
|
10496
11021
|
assertParamExists('getThreadParticipants', 'id', id);
|
|
10497
11022
|
const localVarPath = `/threads/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10508,7 +11033,7 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10508
11033
|
// oauth required
|
|
10509
11034
|
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10510
11035
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10511
|
-
let headersFromBaseOptions = (
|
|
11036
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
10512
11037
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10513
11038
|
return {
|
|
10514
11039
|
url: toPathString(localVarUrlObj),
|
|
@@ -10522,11 +11047,12 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10522
11047
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10523
11048
|
* @param {number} [pageSize] The number of items to return.
|
|
10524
11049
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11050
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
10525
11051
|
* @param {*} [options] Override http request option.
|
|
10526
11052
|
* @throws {RequiredError}
|
|
10527
11053
|
*/
|
|
10528
|
-
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10529
|
-
var
|
|
11054
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11055
|
+
var _e;
|
|
10530
11056
|
const localVarPath = `/threads`;
|
|
10531
11057
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10532
11058
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -10556,14 +11082,54 @@ export const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10556
11082
|
if (include !== undefined) {
|
|
10557
11083
|
localVarQueryParameter['include'] = include;
|
|
10558
11084
|
}
|
|
11085
|
+
if (filterThreadStatus) {
|
|
11086
|
+
localVarQueryParameter['filter[threadStatus]'] =
|
|
11087
|
+
filterThreadStatus.join(COLLECTION_FORMATS.csv);
|
|
11088
|
+
}
|
|
10559
11089
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
10560
|
-
let headersFromBaseOptions = (
|
|
11090
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
10561
11091
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10562
11092
|
return {
|
|
10563
11093
|
url: toPathString(localVarUrlObj),
|
|
10564
11094
|
options: localVarRequestOptions,
|
|
10565
11095
|
};
|
|
10566
11096
|
}),
|
|
11097
|
+
/**
|
|
11098
|
+
* Update a `thread`.
|
|
11099
|
+
* @param {string} id The `thread` ID.
|
|
11100
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
11101
|
+
* @param {*} [options] Override http request option.
|
|
11102
|
+
* @throws {RequiredError}
|
|
11103
|
+
*/
|
|
11104
|
+
updateThread: (id, updateThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11105
|
+
var _f;
|
|
11106
|
+
// verify required parameter 'id' is not null or undefined
|
|
11107
|
+
assertParamExists('updateThread', 'id', id);
|
|
11108
|
+
// verify required parameter 'updateThreadRequest' is not null or undefined
|
|
11109
|
+
assertParamExists('updateThread', 'updateThreadRequest', updateThreadRequest);
|
|
11110
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11111
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11112
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
11113
|
+
let baseOptions;
|
|
11114
|
+
if (configuration) {
|
|
11115
|
+
baseOptions = configuration.baseOptions;
|
|
11116
|
+
}
|
|
11117
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
11118
|
+
const localVarHeaderParameter = {};
|
|
11119
|
+
const localVarQueryParameter = {};
|
|
11120
|
+
// authentication OAuth2 required
|
|
11121
|
+
// oauth required
|
|
11122
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11123
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11125
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
11126
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11127
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateThreadRequest, localVarRequestOptions, configuration);
|
|
11128
|
+
return {
|
|
11129
|
+
url: toPathString(localVarUrlObj),
|
|
11130
|
+
options: localVarRequestOptions,
|
|
11131
|
+
};
|
|
11132
|
+
}),
|
|
10567
11133
|
};
|
|
10568
11134
|
};
|
|
10569
11135
|
/**
|
|
@@ -10586,6 +11152,18 @@ export const ThreadsApiFp = function (configuration) {
|
|
|
10586
11152
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10587
11153
|
});
|
|
10588
11154
|
},
|
|
11155
|
+
/**
|
|
11156
|
+
* Remove a thread.
|
|
11157
|
+
* @param {string} id The `thread` ID.
|
|
11158
|
+
* @param {*} [options] Override http request option.
|
|
11159
|
+
* @throws {RequiredError}
|
|
11160
|
+
*/
|
|
11161
|
+
deleteThread(id, options) {
|
|
11162
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11163
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteThread(id, options);
|
|
11164
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11165
|
+
});
|
|
11166
|
+
},
|
|
10589
11167
|
/**
|
|
10590
11168
|
* Get a `thread`.
|
|
10591
11169
|
* @param {string} id The `thread` ID.
|
|
@@ -10619,12 +11197,26 @@ export const ThreadsApiFp = function (configuration) {
|
|
|
10619
11197
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10620
11198
|
* @param {number} [pageSize] The number of items to return.
|
|
10621
11199
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11200
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11201
|
+
* @param {*} [options] Override http request option.
|
|
11202
|
+
* @throws {RequiredError}
|
|
11203
|
+
*/
|
|
11204
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11206
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options);
|
|
11207
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
11208
|
+
});
|
|
11209
|
+
},
|
|
11210
|
+
/**
|
|
11211
|
+
* Update a `thread`.
|
|
11212
|
+
* @param {string} id The `thread` ID.
|
|
11213
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10622
11214
|
* @param {*} [options] Override http request option.
|
|
10623
11215
|
* @throws {RequiredError}
|
|
10624
11216
|
*/
|
|
10625
|
-
|
|
11217
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10626
11218
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10627
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11219
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThread(id, updateThreadRequest, options);
|
|
10628
11220
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
10629
11221
|
});
|
|
10630
11222
|
},
|
|
@@ -10649,6 +11241,17 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10649
11241
|
.createThread(id, createThreadRequest, options)
|
|
10650
11242
|
.then((request) => request(axios, basePath));
|
|
10651
11243
|
},
|
|
11244
|
+
/**
|
|
11245
|
+
* Remove a thread.
|
|
11246
|
+
* @param {string} id The `thread` ID.
|
|
11247
|
+
* @param {*} [options] Override http request option.
|
|
11248
|
+
* @throws {RequiredError}
|
|
11249
|
+
*/
|
|
11250
|
+
deleteThread(id, options) {
|
|
11251
|
+
return localVarFp
|
|
11252
|
+
.deleteThread(id, options)
|
|
11253
|
+
.then((request) => request(axios, basePath));
|
|
11254
|
+
},
|
|
10652
11255
|
/**
|
|
10653
11256
|
* Get a `thread`.
|
|
10654
11257
|
* @param {string} id The `thread` ID.
|
|
@@ -10680,12 +11283,25 @@ export const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10680
11283
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10681
11284
|
* @param {number} [pageSize] The number of items to return.
|
|
10682
11285
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11286
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11287
|
+
* @param {*} [options] Override http request option.
|
|
11288
|
+
* @throws {RequiredError}
|
|
11289
|
+
*/
|
|
11290
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11291
|
+
return localVarFp
|
|
11292
|
+
.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options)
|
|
11293
|
+
.then((request) => request(axios, basePath));
|
|
11294
|
+
},
|
|
11295
|
+
/**
|
|
11296
|
+
* Update a `thread`.
|
|
11297
|
+
* @param {string} id The `thread` ID.
|
|
11298
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10683
11299
|
* @param {*} [options] Override http request option.
|
|
10684
11300
|
* @throws {RequiredError}
|
|
10685
11301
|
*/
|
|
10686
|
-
|
|
11302
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10687
11303
|
return localVarFp
|
|
10688
|
-
.
|
|
11304
|
+
.updateThread(id, updateThreadRequest, options)
|
|
10689
11305
|
.then((request) => request(axios, basePath));
|
|
10690
11306
|
},
|
|
10691
11307
|
};
|
|
@@ -10709,6 +11325,18 @@ export class ThreadsApi extends BaseAPI {
|
|
|
10709
11325
|
.createThread(requestParameters.id, requestParameters.createThreadRequest, options)
|
|
10710
11326
|
.then((request) => request(this.axios, this.basePath));
|
|
10711
11327
|
}
|
|
11328
|
+
/**
|
|
11329
|
+
* Remove a thread.
|
|
11330
|
+
* @param {ThreadsApiDeleteThreadRequest} requestParameters Request parameters.
|
|
11331
|
+
* @param {*} [options] Override http request option.
|
|
11332
|
+
* @throws {RequiredError}
|
|
11333
|
+
* @memberof ThreadsApi
|
|
11334
|
+
*/
|
|
11335
|
+
deleteThread(requestParameters, options) {
|
|
11336
|
+
return ThreadsApiFp(this.configuration)
|
|
11337
|
+
.deleteThread(requestParameters.id, options)
|
|
11338
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11339
|
+
}
|
|
10712
11340
|
/**
|
|
10713
11341
|
* Get a `thread`.
|
|
10714
11342
|
* @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
|
|
@@ -10742,7 +11370,19 @@ export class ThreadsApi extends BaseAPI {
|
|
|
10742
11370
|
*/
|
|
10743
11371
|
getThreads(requestParameters = {}, options) {
|
|
10744
11372
|
return ThreadsApiFp(this.configuration)
|
|
10745
|
-
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
11373
|
+
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, requestParameters.filterThreadStatus, options)
|
|
11374
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11375
|
+
}
|
|
11376
|
+
/**
|
|
11377
|
+
* Update a `thread`.
|
|
11378
|
+
* @param {ThreadsApiUpdateThreadRequest} requestParameters Request parameters.
|
|
11379
|
+
* @param {*} [options] Override http request option.
|
|
11380
|
+
* @throws {RequiredError}
|
|
11381
|
+
* @memberof ThreadsApi
|
|
11382
|
+
*/
|
|
11383
|
+
updateThread(requestParameters, options) {
|
|
11384
|
+
return ThreadsApiFp(this.configuration)
|
|
11385
|
+
.updateThread(requestParameters.id, requestParameters.updateThreadRequest, options)
|
|
10746
11386
|
.then((request) => request(this.axios, this.basePath));
|
|
10747
11387
|
}
|
|
10748
11388
|
}
|