@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/cjs/api.js
CHANGED
|
@@ -25,11 +25,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
25
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserGroupsApi = exports.UserGroupsApiFactory = exports.UserGroupsApiFp = exports.UserGroupsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.ThreadsApi = exports.ThreadsApiFactory = exports.ThreadsApiFp = exports.ThreadsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = exports.StreamKeysApiAxiosParamCreator = exports.SearchSessionsApi = exports.SearchSessionsApiFactory = exports.SearchSessionsApiFp = exports.SearchSessionsApiAxiosParamCreator = exports.ScenesApi = void 0;
|
|
28
|
+
exports.QueryByCollectionDataTypeEnum = exports.QueryAll = exports.PropertyStringTypeTypeEnum = exports.PropertySetRelationshipDataTypeEnum = exports.PropertySetDomainSubjectDomainEnum = exports.PropertyLongTypeTypeEnum = exports.PropertyDoubleTypeTypeEnum = exports.PropertyDateTypeTypeEnum = exports.PermissionGrantDataTypeEnum = exports.PartsDomainSubjectDomainEnum = exports.PartRenditionRelationshipDataTypeEnum = exports.PartRelationshipDataTypeEnum = exports.PartInstancesRelationshipDataTypeEnum = exports.PartInstanceRelationshipDataTypeEnum = exports.PartDataRelationshipsPartRevisionsTypeEnum = exports.GranteeAccountTypeEnum = exports.GeometrySetRelationshipDataTypeEnum = exports.FileRelationshipDataTypeEnum = exports.FileJobArchiveOperationTypeEnum = exports.FileCollectionMetadataDataTypeEnum = exports.FileAttachmentTypeEnum = exports.ExportStateRelationshipDataTypeEnum = exports.ExportRelationshipDataTypeEnum = exports.DeselectOperationTypeEnum = exports.CreateUserRequestDataTypeEnum = exports.CreateUserGroupRequestDataTypeEnum = exports.CreateThreadRequestDataTypeEnum = exports.CreateSearchSessionRequestDataTypeEnum = exports.CreateSceneReferenceTypeEnum = exports.CreateSceneItemRequestDataAttributesResolutionRuleEnum = exports.CreateSceneExpressionAlterationRequestDataTypeEnum = exports.CreateReplyRequestDataTypeEnum = exports.CreatePermissionGrantDataAttributesCapabilityEnum = exports.CreatePermissionGrantDataTypeEnum = exports.CreateFileJobRequestDataTypeEnum = exports.CreateFileCollectionRequestDataTypeEnum = exports.CreateCollaborationContextRequestDataTypeEnum = exports.CreateAttachmentRequestDataTypeEnum = exports.CollaborationContextRelationshipDataTypeEnum = exports.ClearTransformOpTypeEnum = exports.ClearRepOpTypeEnum = exports.ClearRenOpTypeEnum = exports.ClearMaterialOpTypeEnum = exports.ChangeVisibilityOpTypeEnum = exports.ChangeTransformOpTypeEnum = exports.ChangeMaterialOpTypeEnum = exports.CameraFitTypeEnum = exports.BatchOperationRefTypeEnum = exports.BatchOperationOpEnum = exports.AccountRelationshipDataTypeEnum = void 0;
|
|
29
|
+
exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.WithThreadTypeEnum = exports.WithSceneViewStateIdTypeEnum = exports.WithSceneViewStateContentTypeEnum = exports.WithSceneViewIdTypeEnum = exports.WithReplyTypeEnum = exports.WithFileContentTypeEnum = exports.WebhookSubscriptionDataAttributesStatusEnum = exports.WebhookEventDataRelationshipsOwnerDataTypeEnum = exports.ViewRepByPredefinedIdOpIdEnum = exports.ViewRepByPredefinedIdOpTypeEnum = exports.ViewRepByIdOpTypeEnum = exports.ViewRenBySuppliedIdOpTypeEnum = exports.ViewRenByIdOpTypeEnum = exports.ViewDefaultRenOpTypeEnum = exports.UserRelationshipDataTypeEnum = exports.UserIdTypeEnum = exports.UserGroupIdTypeEnum = exports.UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = exports.UpdateSceneRequestDataAttributesStateEnum = exports.UpdateItemToDefaultRenditionOperationTypeEnum = exports.UpdateFileCollectionRequestDataTypeEnum = exports.UpdateAccountRequestDataAttributesStatusEnum = exports.ThreadType = exports.ThreadStatus = exports.ThreadRelationshipDataTypeEnum = exports.ThreadDataTypeEnum = exports.SelectOpTypeEnum = exports.SelectFileBySuppliedIdTypeEnum = exports.SelectFileByIdTypeEnum = exports.SceneViewStateRelationshipDataTypeEnum = exports.SceneViewStateAttachmentTypeEnum = exports.SceneViewRelationshipDataTypeEnum = exports.SceneRelationshipDataTypeEnum = exports.SceneReferenceTypeEnum = exports.SceneItemRelationshipDataTypeEnum = exports.SceneItemQueryOperandTypeEnum = exports.SceneItemOrExpressionTypeEnum = exports.SceneItemAndExpressionTypeEnum = exports.ReplyDataTypeEnum = exports.QueryBySceneItemMetadataTypeEnum = exports.QueryBySceneItemIdsTypeEnum = exports.QueryBySceneItemIdTypeEnum = exports.QueryByRootTypeEnum = exports.QueryByMetadataDataTypeEnum = exports.QueryByIdDataAttributesTypeEnum = exports.QueryByIdDataTypeEnum = exports.QueryByCollectionDataAttributesTypeEnum = void 0;
|
|
30
|
+
exports.PartRenditionsApiAxiosParamCreator = exports.Oauth2Api = exports.Oauth2ApiFactory = exports.Oauth2ApiFp = exports.Oauth2ApiAxiosParamCreator = exports.ModelViewsApi = exports.ModelViewsApiFactory = exports.ModelViewsApiFp = exports.ModelViewsApiAxiosParamCreator = exports.HitsApi = exports.HitsApiFactory = exports.HitsApiFp = exports.HitsApiAxiosParamCreator = exports.GeometrySetsApi = exports.GeometrySetsApiFactory = exports.GeometrySetsApiFp = exports.GeometrySetsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FileJobsApi = exports.FileJobsApiFactory = exports.FileJobsApiFp = exports.FileJobsApiAxiosParamCreator = exports.FileCollectionsApi = exports.FileCollectionsApiFactory = exports.FileCollectionsApiFp = exports.FileCollectionsApiAxiosParamCreator = exports.ExportsApi = exports.ExportsApiFactory = exports.ExportsApiFp = exports.ExportsApiAxiosParamCreator = exports.CollaborationContextsApi = exports.CollaborationContextsApiFactory = exports.CollaborationContextsApiFp = exports.CollaborationContextsApiAxiosParamCreator = exports.BatchesApi = exports.BatchesApiFactory = exports.BatchesApiFp = exports.BatchesApiAxiosParamCreator = exports.AttachmentsApi = exports.AttachmentsApiFactory = exports.AttachmentsApiFp = exports.AttachmentsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AccountsApi = void 0;
|
|
31
|
+
exports.SceneSynchronizationsApiFactory = exports.SceneSynchronizationsApiFp = exports.SceneSynchronizationsApiAxiosParamCreator = exports.SceneItemsApi = exports.SceneItemsApiFactory = exports.SceneItemsApiFp = exports.SceneItemsApiAxiosParamCreator = exports.SceneItemOverridesApi = exports.SceneItemOverridesApiFactory = exports.SceneItemOverridesApiFp = exports.SceneItemOverridesApiAxiosParamCreator = exports.SceneAnnotationsApi = exports.SceneAnnotationsApiFactory = exports.SceneAnnotationsApiFp = exports.SceneAnnotationsApiAxiosParamCreator = exports.SceneAlterationsApi = exports.SceneAlterationsApiFactory = exports.SceneAlterationsApiFp = exports.SceneAlterationsApiAxiosParamCreator = exports.RepliesApi = exports.RepliesApiFactory = exports.RepliesApiFp = exports.RepliesApiAxiosParamCreator = exports.PropertyEntriesApi = exports.PropertyEntriesApiFactory = exports.PropertyEntriesApiFp = exports.PropertyEntriesApiAxiosParamCreator = exports.PmiApi = exports.PmiApiFactory = exports.PmiApiFp = exports.PmiApiAxiosParamCreator = exports.PermissionGrantsApi = exports.PermissionGrantsApiFactory = exports.PermissionGrantsApiFp = exports.PermissionGrantsApiAxiosParamCreator = exports.PartsApi = exports.PartsApiFactory = exports.PartsApiFp = exports.PartsApiAxiosParamCreator = exports.PartRevisionsApi = exports.PartRevisionsApiFactory = exports.PartRevisionsApiFp = exports.PartRevisionsApiAxiosParamCreator = exports.PartRevisionInstancesApi = exports.PartRevisionInstancesApiFactory = exports.PartRevisionInstancesApiFp = exports.PartRevisionInstancesApiAxiosParamCreator = exports.PartRenditionsApi = exports.PartRenditionsApiFactory = exports.PartRenditionsApiFp = void 0;
|
|
32
|
+
exports.WebhookSubscriptionsApi = exports.WebhookSubscriptionsApiFactory = exports.WebhookSubscriptionsApiFp = exports.WebhookSubscriptionsApiAxiosParamCreator = exports.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = exports.UserGroupsApi = exports.UserGroupsApiFactory = exports.UserGroupsApiFp = exports.UserGroupsApiAxiosParamCreator = exports.TranslationInspectionsApi = exports.TranslationInspectionsApiFactory = exports.TranslationInspectionsApiFp = exports.TranslationInspectionsApiAxiosParamCreator = exports.ThreadsApi = exports.ThreadsApiFactory = exports.ThreadsApiFp = exports.ThreadsApiAxiosParamCreator = exports.StreamKeysApi = exports.StreamKeysApiFactory = exports.StreamKeysApiFp = exports.StreamKeysApiAxiosParamCreator = exports.SearchSessionsApi = exports.SearchSessionsApiFactory = exports.SearchSessionsApiFp = exports.SearchSessionsApiAxiosParamCreator = exports.ScenesApi = exports.ScenesApiFactory = exports.ScenesApiFp = exports.ScenesApiAxiosParamCreator = exports.SceneViewsApi = exports.SceneViewsApiFactory = exports.SceneViewsApiFp = exports.SceneViewsApiAxiosParamCreator = exports.SceneViewStatesApi = exports.SceneViewStatesApiFactory = exports.SceneViewStatesApiFp = exports.SceneViewStatesApiAxiosParamCreator = exports.SceneSynchronizationsApi = void 0;
|
|
33
33
|
const axios_1 = __importDefault(require("axios"));
|
|
34
34
|
// Some imports not used depending on template conditions
|
|
35
35
|
// @ts-ignore
|
|
@@ -74,6 +74,9 @@ exports.ClearTransformOpTypeEnum = {
|
|
|
74
74
|
exports.CollaborationContextRelationshipDataTypeEnum = {
|
|
75
75
|
CollaborationContext: 'collaboration-context',
|
|
76
76
|
};
|
|
77
|
+
exports.CreateAttachmentRequestDataTypeEnum = {
|
|
78
|
+
Attachment: 'attachment',
|
|
79
|
+
};
|
|
77
80
|
exports.CreateCollaborationContextRequestDataTypeEnum = {
|
|
78
81
|
CollaborationContext: 'collaboration-context',
|
|
79
82
|
};
|
|
@@ -124,6 +127,9 @@ exports.ExportRelationshipDataTypeEnum = {
|
|
|
124
127
|
exports.ExportStateRelationshipDataTypeEnum = {
|
|
125
128
|
SceneViewState: 'scene-view-state',
|
|
126
129
|
};
|
|
130
|
+
exports.FileAttachmentTypeEnum = {
|
|
131
|
+
File: 'file',
|
|
132
|
+
};
|
|
127
133
|
exports.FileCollectionMetadataDataTypeEnum = {
|
|
128
134
|
FileCollection: 'file-collection',
|
|
129
135
|
};
|
|
@@ -145,6 +151,9 @@ exports.PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
|
145
151
|
exports.PartInstanceRelationshipDataTypeEnum = {
|
|
146
152
|
PartInstance: 'part-instance',
|
|
147
153
|
};
|
|
154
|
+
exports.PartInstancesRelationshipDataTypeEnum = {
|
|
155
|
+
PartRevisionInstance: 'part-revision-instance',
|
|
156
|
+
};
|
|
148
157
|
exports.PartRelationshipDataTypeEnum = {
|
|
149
158
|
Part: 'part',
|
|
150
159
|
};
|
|
@@ -237,6 +246,9 @@ exports.SceneRelationshipDataTypeEnum = {
|
|
|
237
246
|
exports.SceneViewRelationshipDataTypeEnum = {
|
|
238
247
|
SceneView: 'scene-view',
|
|
239
248
|
};
|
|
249
|
+
exports.SceneViewStateAttachmentTypeEnum = {
|
|
250
|
+
SceneViewState: 'scene-view-state',
|
|
251
|
+
};
|
|
240
252
|
exports.SceneViewStateRelationshipDataTypeEnum = {
|
|
241
253
|
SceneViewState: 'scene-view-state',
|
|
242
254
|
};
|
|
@@ -326,12 +338,24 @@ exports.WebhookSubscriptionDataAttributesStatusEnum = {
|
|
|
326
338
|
Active: 'active',
|
|
327
339
|
Paused: 'paused',
|
|
328
340
|
};
|
|
341
|
+
exports.WithFileContentTypeEnum = {
|
|
342
|
+
FileContent: 'file-content',
|
|
343
|
+
};
|
|
344
|
+
exports.WithReplyTypeEnum = {
|
|
345
|
+
Reply: 'reply',
|
|
346
|
+
};
|
|
329
347
|
exports.WithSceneViewIdTypeEnum = {
|
|
330
348
|
SceneViewId: 'scene-view-id',
|
|
331
349
|
};
|
|
350
|
+
exports.WithSceneViewStateContentTypeEnum = {
|
|
351
|
+
SceneViewStateContent: 'scene-view-state-content',
|
|
352
|
+
};
|
|
332
353
|
exports.WithSceneViewStateIdTypeEnum = {
|
|
333
354
|
SceneViewStateId: 'scene-view-state-id',
|
|
334
355
|
};
|
|
356
|
+
exports.WithThreadTypeEnum = {
|
|
357
|
+
Thread: 'thread',
|
|
358
|
+
};
|
|
335
359
|
/**
|
|
336
360
|
* AccountsApi - axios parameter creator
|
|
337
361
|
* @export
|
|
@@ -1106,6 +1130,202 @@ class ApplicationsApi extends base_1.BaseAPI {
|
|
|
1106
1130
|
}
|
|
1107
1131
|
}
|
|
1108
1132
|
exports.ApplicationsApi = ApplicationsApi;
|
|
1133
|
+
/**
|
|
1134
|
+
* AttachmentsApi - axios parameter creator
|
|
1135
|
+
* @export
|
|
1136
|
+
*/
|
|
1137
|
+
const AttachmentsApiAxiosParamCreator = function (configuration) {
|
|
1138
|
+
return {
|
|
1139
|
+
/**
|
|
1140
|
+
* 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.
|
|
1141
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1142
|
+
* @param {*} [options] Override http request option.
|
|
1143
|
+
* @throws {RequiredError}
|
|
1144
|
+
*/
|
|
1145
|
+
createAttachment: (createAttachmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1146
|
+
var _a;
|
|
1147
|
+
// verify required parameter 'createAttachmentRequest' is not null or undefined
|
|
1148
|
+
(0, common_1.assertParamExists)('createAttachment', 'createAttachmentRequest', createAttachmentRequest);
|
|
1149
|
+
const localVarPath = `/attachments`;
|
|
1150
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1151
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1152
|
+
let baseOptions;
|
|
1153
|
+
if (configuration) {
|
|
1154
|
+
baseOptions = configuration.baseOptions;
|
|
1155
|
+
}
|
|
1156
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1157
|
+
const localVarHeaderParameter = {};
|
|
1158
|
+
const localVarQueryParameter = {};
|
|
1159
|
+
// authentication OAuth2 required
|
|
1160
|
+
// oauth required
|
|
1161
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1162
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1163
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1164
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1165
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1166
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAttachmentRequest, localVarRequestOptions, configuration);
|
|
1167
|
+
return {
|
|
1168
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1169
|
+
options: localVarRequestOptions,
|
|
1170
|
+
};
|
|
1171
|
+
}),
|
|
1172
|
+
/**
|
|
1173
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1174
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1175
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1176
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1177
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
*/
|
|
1181
|
+
listAttachments: (filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1182
|
+
var _b;
|
|
1183
|
+
// verify required parameter 'filterRelationshipId' is not null or undefined
|
|
1184
|
+
(0, common_1.assertParamExists)('listAttachments', 'filterRelationshipId', filterRelationshipId);
|
|
1185
|
+
// verify required parameter 'filterRelationshipType' is not null or undefined
|
|
1186
|
+
(0, common_1.assertParamExists)('listAttachments', 'filterRelationshipType', filterRelationshipType);
|
|
1187
|
+
const localVarPath = `/attachments`;
|
|
1188
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1189
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1190
|
+
let baseOptions;
|
|
1191
|
+
if (configuration) {
|
|
1192
|
+
baseOptions = configuration.baseOptions;
|
|
1193
|
+
}
|
|
1194
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1195
|
+
const localVarHeaderParameter = {};
|
|
1196
|
+
const localVarQueryParameter = {};
|
|
1197
|
+
// authentication OAuth2 required
|
|
1198
|
+
// oauth required
|
|
1199
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1200
|
+
if (filterRelationshipId !== undefined) {
|
|
1201
|
+
localVarQueryParameter['filter[relationshipId]'] = filterRelationshipId;
|
|
1202
|
+
}
|
|
1203
|
+
if (filterRelationshipType !== undefined) {
|
|
1204
|
+
localVarQueryParameter['filter[relationshipType]'] =
|
|
1205
|
+
filterRelationshipType;
|
|
1206
|
+
}
|
|
1207
|
+
if (pageCursor !== undefined) {
|
|
1208
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
1209
|
+
}
|
|
1210
|
+
if (pageSize !== undefined) {
|
|
1211
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
1212
|
+
}
|
|
1213
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1214
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
1215
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1216
|
+
return {
|
|
1217
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1218
|
+
options: localVarRequestOptions,
|
|
1219
|
+
};
|
|
1220
|
+
}),
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
exports.AttachmentsApiAxiosParamCreator = AttachmentsApiAxiosParamCreator;
|
|
1224
|
+
/**
|
|
1225
|
+
* AttachmentsApi - functional programming interface
|
|
1226
|
+
* @export
|
|
1227
|
+
*/
|
|
1228
|
+
const AttachmentsApiFp = function (configuration) {
|
|
1229
|
+
const localVarAxiosParamCreator = (0, exports.AttachmentsApiAxiosParamCreator)(configuration);
|
|
1230
|
+
return {
|
|
1231
|
+
/**
|
|
1232
|
+
* 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.
|
|
1233
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1234
|
+
* @param {*} [options] Override http request option.
|
|
1235
|
+
* @throws {RequiredError}
|
|
1236
|
+
*/
|
|
1237
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1238
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1239
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachment(createAttachmentRequest, options);
|
|
1240
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1241
|
+
});
|
|
1242
|
+
},
|
|
1243
|
+
/**
|
|
1244
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1245
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1246
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1247
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1248
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
*/
|
|
1252
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1254
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options);
|
|
1255
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1256
|
+
});
|
|
1257
|
+
},
|
|
1258
|
+
};
|
|
1259
|
+
};
|
|
1260
|
+
exports.AttachmentsApiFp = AttachmentsApiFp;
|
|
1261
|
+
/**
|
|
1262
|
+
* AttachmentsApi - factory interface
|
|
1263
|
+
* @export
|
|
1264
|
+
*/
|
|
1265
|
+
const AttachmentsApiFactory = function (configuration, basePath, axios) {
|
|
1266
|
+
const localVarFp = (0, exports.AttachmentsApiFp)(configuration);
|
|
1267
|
+
return {
|
|
1268
|
+
/**
|
|
1269
|
+
* 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.
|
|
1270
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1271
|
+
* @param {*} [options] Override http request option.
|
|
1272
|
+
* @throws {RequiredError}
|
|
1273
|
+
*/
|
|
1274
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1275
|
+
return localVarFp
|
|
1276
|
+
.createAttachment(createAttachmentRequest, options)
|
|
1277
|
+
.then((request) => request(axios, basePath));
|
|
1278
|
+
},
|
|
1279
|
+
/**
|
|
1280
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1281
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1282
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1283
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1284
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1285
|
+
* @param {*} [options] Override http request option.
|
|
1286
|
+
* @throws {RequiredError}
|
|
1287
|
+
*/
|
|
1288
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1289
|
+
return localVarFp
|
|
1290
|
+
.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options)
|
|
1291
|
+
.then((request) => request(axios, basePath));
|
|
1292
|
+
},
|
|
1293
|
+
};
|
|
1294
|
+
};
|
|
1295
|
+
exports.AttachmentsApiFactory = AttachmentsApiFactory;
|
|
1296
|
+
/**
|
|
1297
|
+
* AttachmentsApi - object-oriented interface
|
|
1298
|
+
* @export
|
|
1299
|
+
* @class AttachmentsApi
|
|
1300
|
+
* @extends {BaseAPI}
|
|
1301
|
+
*/
|
|
1302
|
+
class AttachmentsApi extends base_1.BaseAPI {
|
|
1303
|
+
/**
|
|
1304
|
+
* 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.
|
|
1305
|
+
* @param {AttachmentsApiCreateAttachmentRequest} requestParameters Request parameters.
|
|
1306
|
+
* @param {*} [options] Override http request option.
|
|
1307
|
+
* @throws {RequiredError}
|
|
1308
|
+
* @memberof AttachmentsApi
|
|
1309
|
+
*/
|
|
1310
|
+
createAttachment(requestParameters, options) {
|
|
1311
|
+
return (0, exports.AttachmentsApiFp)(this.configuration)
|
|
1312
|
+
.createAttachment(requestParameters.createAttachmentRequest, options)
|
|
1313
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1317
|
+
* @param {AttachmentsApiListAttachmentsRequest} requestParameters Request parameters.
|
|
1318
|
+
* @param {*} [options] Override http request option.
|
|
1319
|
+
* @throws {RequiredError}
|
|
1320
|
+
* @memberof AttachmentsApi
|
|
1321
|
+
*/
|
|
1322
|
+
listAttachments(requestParameters, options) {
|
|
1323
|
+
return (0, exports.AttachmentsApiFp)(this.configuration)
|
|
1324
|
+
.listAttachments(requestParameters.filterRelationshipId, requestParameters.filterRelationshipType, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1325
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
exports.AttachmentsApi = AttachmentsApi;
|
|
1109
1329
|
/**
|
|
1110
1330
|
* BatchesApi - axios parameter creator
|
|
1111
1331
|
* @export
|
|
@@ -1419,6 +1639,37 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1419
1639
|
options: localVarRequestOptions,
|
|
1420
1640
|
};
|
|
1421
1641
|
}),
|
|
1642
|
+
/**
|
|
1643
|
+
* Remove a collaboration context along with all of its data
|
|
1644
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1645
|
+
* @param {*} [options] Override http request option.
|
|
1646
|
+
* @throws {RequiredError}
|
|
1647
|
+
*/
|
|
1648
|
+
deleteCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1649
|
+
var _c;
|
|
1650
|
+
// verify required parameter 'id' is not null or undefined
|
|
1651
|
+
(0, common_1.assertParamExists)('deleteCollaborationContext', 'id', id);
|
|
1652
|
+
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1653
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1654
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1655
|
+
let baseOptions;
|
|
1656
|
+
if (configuration) {
|
|
1657
|
+
baseOptions = configuration.baseOptions;
|
|
1658
|
+
}
|
|
1659
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1660
|
+
const localVarHeaderParameter = {};
|
|
1661
|
+
const localVarQueryParameter = {};
|
|
1662
|
+
// authentication OAuth2 required
|
|
1663
|
+
// oauth required
|
|
1664
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1665
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1666
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1667
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1668
|
+
return {
|
|
1669
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1670
|
+
options: localVarRequestOptions,
|
|
1671
|
+
};
|
|
1672
|
+
}),
|
|
1422
1673
|
/**
|
|
1423
1674
|
* Get a `collaboration-context` by ID.
|
|
1424
1675
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1426,7 +1677,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1426
1677
|
* @throws {RequiredError}
|
|
1427
1678
|
*/
|
|
1428
1679
|
getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1429
|
-
var
|
|
1680
|
+
var _d;
|
|
1430
1681
|
// verify required parameter 'id' is not null or undefined
|
|
1431
1682
|
(0, common_1.assertParamExists)('getCollaborationContext', 'id', id);
|
|
1432
1683
|
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -1443,7 +1694,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1443
1694
|
// oauth required
|
|
1444
1695
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1445
1696
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1446
|
-
let headersFromBaseOptions = (
|
|
1697
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1447
1698
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1448
1699
|
return {
|
|
1449
1700
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -1458,7 +1709,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1458
1709
|
* @throws {RequiredError}
|
|
1459
1710
|
*/
|
|
1460
1711
|
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
-
var
|
|
1712
|
+
var _e;
|
|
1462
1713
|
const localVarPath = `/collaboration-contexts`;
|
|
1463
1714
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1464
1715
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1479,7 +1730,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1479
1730
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
1480
1731
|
}
|
|
1481
1732
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1482
|
-
let headersFromBaseOptions = (
|
|
1733
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
1483
1734
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1484
1735
|
return {
|
|
1485
1736
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -1521,6 +1772,18 @@ const CollaborationContextsApiFp = function (configuration) {
|
|
|
1521
1772
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1522
1773
|
});
|
|
1523
1774
|
},
|
|
1775
|
+
/**
|
|
1776
|
+
* Remove a collaboration context along with all of its data
|
|
1777
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1778
|
+
* @param {*} [options] Override http request option.
|
|
1779
|
+
* @throws {RequiredError}
|
|
1780
|
+
*/
|
|
1781
|
+
deleteCollaborationContext(id, options) {
|
|
1782
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1783
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollaborationContext(id, options);
|
|
1784
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1785
|
+
});
|
|
1786
|
+
},
|
|
1524
1787
|
/**
|
|
1525
1788
|
* Get a `collaboration-context` by ID.
|
|
1526
1789
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1579,6 +1842,17 @@ const CollaborationContextsApiFactory = function (configuration, basePath, axios
|
|
|
1579
1842
|
.createCollaborationContext(createCollaborationContextRequest, options)
|
|
1580
1843
|
.then((request) => request(axios, basePath));
|
|
1581
1844
|
},
|
|
1845
|
+
/**
|
|
1846
|
+
* Remove a collaboration context along with all of its data
|
|
1847
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1848
|
+
* @param {*} [options] Override http request option.
|
|
1849
|
+
* @throws {RequiredError}
|
|
1850
|
+
*/
|
|
1851
|
+
deleteCollaborationContext(id, options) {
|
|
1852
|
+
return localVarFp
|
|
1853
|
+
.deleteCollaborationContext(id, options)
|
|
1854
|
+
.then((request) => request(axios, basePath));
|
|
1855
|
+
},
|
|
1582
1856
|
/**
|
|
1583
1857
|
* Get a `collaboration-context` by ID.
|
|
1584
1858
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1636,6 +1910,18 @@ class CollaborationContextsApi extends base_1.BaseAPI {
|
|
|
1636
1910
|
.createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
|
|
1637
1911
|
.then((request) => request(this.axios, this.basePath));
|
|
1638
1912
|
}
|
|
1913
|
+
/**
|
|
1914
|
+
* Remove a collaboration context along with all of its data
|
|
1915
|
+
* @param {CollaborationContextsApiDeleteCollaborationContextRequest} requestParameters Request parameters.
|
|
1916
|
+
* @param {*} [options] Override http request option.
|
|
1917
|
+
* @throws {RequiredError}
|
|
1918
|
+
* @memberof CollaborationContextsApi
|
|
1919
|
+
*/
|
|
1920
|
+
deleteCollaborationContext(requestParameters, options) {
|
|
1921
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
1922
|
+
.deleteCollaborationContext(requestParameters.id, options)
|
|
1923
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1924
|
+
}
|
|
1639
1925
|
/**
|
|
1640
1926
|
* Get a `collaboration-context` by ID.
|
|
1641
1927
|
* @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
|
|
@@ -2760,6 +3046,42 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2760
3046
|
options: localVarRequestOptions,
|
|
2761
3047
|
};
|
|
2762
3048
|
}),
|
|
3049
|
+
/**
|
|
3050
|
+
* Create an upload uri for a `file` by ID.
|
|
3051
|
+
* @param {string} id The `file` ID.
|
|
3052
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3053
|
+
* @param {*} [options] Override http request option.
|
|
3054
|
+
* @throws {RequiredError}
|
|
3055
|
+
*/
|
|
3056
|
+
createUploadUrl: (id, createUploadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3057
|
+
var _c;
|
|
3058
|
+
// verify required parameter 'id' is not null or undefined
|
|
3059
|
+
(0, common_1.assertParamExists)('createUploadUrl', 'id', id);
|
|
3060
|
+
// verify required parameter 'createUploadRequest' is not null or undefined
|
|
3061
|
+
(0, common_1.assertParamExists)('createUploadUrl', 'createUploadRequest', createUploadRequest);
|
|
3062
|
+
const localVarPath = `/files/{id}/upload-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3063
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3064
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3065
|
+
let baseOptions;
|
|
3066
|
+
if (configuration) {
|
|
3067
|
+
baseOptions = configuration.baseOptions;
|
|
3068
|
+
}
|
|
3069
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3070
|
+
const localVarHeaderParameter = {};
|
|
3071
|
+
const localVarQueryParameter = {};
|
|
3072
|
+
// authentication OAuth2 required
|
|
3073
|
+
// oauth required
|
|
3074
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
3075
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
3076
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3077
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
3078
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3079
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUploadRequest, localVarRequestOptions, configuration);
|
|
3080
|
+
return {
|
|
3081
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3082
|
+
options: localVarRequestOptions,
|
|
3083
|
+
};
|
|
3084
|
+
}),
|
|
2763
3085
|
/**
|
|
2764
3086
|
* Delete a `file`.
|
|
2765
3087
|
* @param {string} id The `file` ID.
|
|
@@ -2767,7 +3089,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2767
3089
|
* @throws {RequiredError}
|
|
2768
3090
|
*/
|
|
2769
3091
|
deleteFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2770
|
-
var
|
|
3092
|
+
var _d;
|
|
2771
3093
|
// verify required parameter 'id' is not null or undefined
|
|
2772
3094
|
(0, common_1.assertParamExists)('deleteFile', 'id', id);
|
|
2773
3095
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2784,7 +3106,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2784
3106
|
// oauth required
|
|
2785
3107
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2786
3108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2787
|
-
let headersFromBaseOptions = (
|
|
3109
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
2788
3110
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2789
3111
|
return {
|
|
2790
3112
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2798,7 +3120,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2798
3120
|
* @throws {RequiredError}
|
|
2799
3121
|
*/
|
|
2800
3122
|
getFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2801
|
-
var
|
|
3123
|
+
var _e;
|
|
2802
3124
|
// verify required parameter 'id' is not null or undefined
|
|
2803
3125
|
(0, common_1.assertParamExists)('getFile', 'id', id);
|
|
2804
3126
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2815,7 +3137,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2815
3137
|
// oauth required
|
|
2816
3138
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2817
3139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2818
|
-
let headersFromBaseOptions = (
|
|
3140
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
2819
3141
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2820
3142
|
return {
|
|
2821
3143
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2831,7 +3153,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2831
3153
|
* @throws {RequiredError}
|
|
2832
3154
|
*/
|
|
2833
3155
|
getFiles: (pageCursor, pageSize, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2834
|
-
var
|
|
3156
|
+
var _f;
|
|
2835
3157
|
const localVarPath = `/files`;
|
|
2836
3158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2837
3159
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2855,7 +3177,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2855
3177
|
localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
|
|
2856
3178
|
}
|
|
2857
3179
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2858
|
-
let headersFromBaseOptions = (
|
|
3180
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
2859
3181
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2860
3182
|
return {
|
|
2861
3183
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2870,7 +3192,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2870
3192
|
* @throws {RequiredError}
|
|
2871
3193
|
*/
|
|
2872
3194
|
updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2873
|
-
var
|
|
3195
|
+
var _g;
|
|
2874
3196
|
// verify required parameter 'id' is not null or undefined
|
|
2875
3197
|
(0, common_1.assertParamExists)('updateFile', 'id', id);
|
|
2876
3198
|
// verify required parameter 'updateFileRequest' is not null or undefined
|
|
@@ -2890,7 +3212,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2890
3212
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2891
3213
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2892
3214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2893
|
-
let headersFromBaseOptions = (
|
|
3215
|
+
let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
|
|
2894
3216
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2895
3217
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFileRequest, localVarRequestOptions, configuration);
|
|
2896
3218
|
return {
|
|
@@ -2906,7 +3228,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2906
3228
|
* @throws {RequiredError}
|
|
2907
3229
|
*/
|
|
2908
3230
|
uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2909
|
-
var
|
|
3231
|
+
var _h;
|
|
2910
3232
|
// verify required parameter 'id' is not null or undefined
|
|
2911
3233
|
(0, common_1.assertParamExists)('uploadFile', 'id', id);
|
|
2912
3234
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -2926,7 +3248,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2926
3248
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2927
3249
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
2928
3250
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2929
|
-
let headersFromBaseOptions = (
|
|
3251
|
+
let headersFromBaseOptions = (_h = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _h !== void 0 ? _h : {};
|
|
2930
3252
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2931
3253
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2932
3254
|
return {
|
|
@@ -2969,6 +3291,19 @@ const FilesApiFp = function (configuration) {
|
|
|
2969
3291
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2970
3292
|
});
|
|
2971
3293
|
},
|
|
3294
|
+
/**
|
|
3295
|
+
* Create an upload uri for a `file` by ID.
|
|
3296
|
+
* @param {string} id The `file` ID.
|
|
3297
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3298
|
+
* @param {*} [options] Override http request option.
|
|
3299
|
+
* @throws {RequiredError}
|
|
3300
|
+
*/
|
|
3301
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
3302
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3303
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadUrl(id, createUploadRequest, options);
|
|
3304
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3305
|
+
});
|
|
3306
|
+
},
|
|
2972
3307
|
/**
|
|
2973
3308
|
* Delete a `file`.
|
|
2974
3309
|
* @param {string} id The `file` ID.
|
|
@@ -3066,6 +3401,18 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
3066
3401
|
.createFile(createFileRequest, options)
|
|
3067
3402
|
.then((request) => request(axios, basePath));
|
|
3068
3403
|
},
|
|
3404
|
+
/**
|
|
3405
|
+
* Create an upload uri for a `file` by ID.
|
|
3406
|
+
* @param {string} id The `file` ID.
|
|
3407
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3408
|
+
* @param {*} [options] Override http request option.
|
|
3409
|
+
* @throws {RequiredError}
|
|
3410
|
+
*/
|
|
3411
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
3412
|
+
return localVarFp
|
|
3413
|
+
.createUploadUrl(id, createUploadRequest, options)
|
|
3414
|
+
.then((request) => request(axios, basePath));
|
|
3415
|
+
},
|
|
3069
3416
|
/**
|
|
3070
3417
|
* Delete a `file`.
|
|
3071
3418
|
* @param {string} id The `file` ID.
|
|
@@ -3159,6 +3506,18 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
3159
3506
|
.createFile(requestParameters.createFileRequest, options)
|
|
3160
3507
|
.then((request) => request(this.axios, this.basePath));
|
|
3161
3508
|
}
|
|
3509
|
+
/**
|
|
3510
|
+
* Create an upload uri for a `file` by ID.
|
|
3511
|
+
* @param {FilesApiCreateUploadUrlRequest} requestParameters Request parameters.
|
|
3512
|
+
* @param {*} [options] Override http request option.
|
|
3513
|
+
* @throws {RequiredError}
|
|
3514
|
+
* @memberof FilesApi
|
|
3515
|
+
*/
|
|
3516
|
+
createUploadUrl(requestParameters, options) {
|
|
3517
|
+
return (0, exports.FilesApiFp)(this.configuration)
|
|
3518
|
+
.createUploadUrl(requestParameters.id, requestParameters.createUploadRequest, options)
|
|
3519
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3520
|
+
}
|
|
3162
3521
|
/**
|
|
3163
3522
|
* Delete a `file`.
|
|
3164
3523
|
* @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
|
|
@@ -4581,7 +4940,7 @@ const PartRevisionInstancesApiAxiosParamCreator = function (configuration) {
|
|
|
4581
4940
|
return {
|
|
4582
4941
|
/**
|
|
4583
4942
|
* 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.
|
|
4584
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
4943
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4585
4944
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4586
4945
|
* @param {number} [pageSize] The number of items to return.
|
|
4587
4946
|
* @param {*} [options] Override http request option.
|
|
@@ -4631,7 +4990,7 @@ const PartRevisionInstancesApiFp = function (configuration) {
|
|
|
4631
4990
|
return {
|
|
4632
4991
|
/**
|
|
4633
4992
|
* 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.
|
|
4634
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
4993
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4635
4994
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4636
4995
|
* @param {number} [pageSize] The number of items to return.
|
|
4637
4996
|
* @param {*} [options] Override http request option.
|
|
@@ -4655,7 +5014,7 @@ const PartRevisionInstancesApiFactory = function (configuration, basePath, axios
|
|
|
4655
5014
|
return {
|
|
4656
5015
|
/**
|
|
4657
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.
|
|
4658
|
-
* @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.
|
|
4659
5018
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4660
5019
|
* @param {number} [pageSize] The number of items to return.
|
|
4661
5020
|
* @param {*} [options] Override http request option.
|
|
@@ -6378,6 +6737,37 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6378
6737
|
options: localVarRequestOptions,
|
|
6379
6738
|
};
|
|
6380
6739
|
}),
|
|
6740
|
+
/**
|
|
6741
|
+
* Remove a reply.
|
|
6742
|
+
* @param {string} id The `thread` ID.
|
|
6743
|
+
* @param {*} [options] Override http request option.
|
|
6744
|
+
* @throws {RequiredError}
|
|
6745
|
+
*/
|
|
6746
|
+
deleteReply: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6747
|
+
var _b;
|
|
6748
|
+
// verify required parameter 'id' is not null or undefined
|
|
6749
|
+
(0, common_1.assertParamExists)('deleteReply', 'id', id);
|
|
6750
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6751
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6752
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6753
|
+
let baseOptions;
|
|
6754
|
+
if (configuration) {
|
|
6755
|
+
baseOptions = configuration.baseOptions;
|
|
6756
|
+
}
|
|
6757
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6758
|
+
const localVarHeaderParameter = {};
|
|
6759
|
+
const localVarQueryParameter = {};
|
|
6760
|
+
// authentication OAuth2 required
|
|
6761
|
+
// oauth required
|
|
6762
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6763
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6764
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
6765
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6766
|
+
return {
|
|
6767
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6768
|
+
options: localVarRequestOptions,
|
|
6769
|
+
};
|
|
6770
|
+
}),
|
|
6381
6771
|
/**
|
|
6382
6772
|
* Get a `reply`.
|
|
6383
6773
|
* @param {string} id The `thread` ID.
|
|
@@ -6386,7 +6776,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6386
6776
|
* @throws {RequiredError}
|
|
6387
6777
|
*/
|
|
6388
6778
|
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6389
|
-
var
|
|
6779
|
+
var _c;
|
|
6390
6780
|
// verify required parameter 'id' is not null or undefined
|
|
6391
6781
|
(0, common_1.assertParamExists)('getReply', 'id', id);
|
|
6392
6782
|
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -6406,7 +6796,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6406
6796
|
localVarQueryParameter['include'] = include;
|
|
6407
6797
|
}
|
|
6408
6798
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6409
|
-
let headersFromBaseOptions = (
|
|
6799
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6410
6800
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6411
6801
|
return {
|
|
6412
6802
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -6423,7 +6813,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6423
6813
|
* @throws {RequiredError}
|
|
6424
6814
|
*/
|
|
6425
6815
|
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6426
|
-
var
|
|
6816
|
+
var _d;
|
|
6427
6817
|
const localVarPath = `/replies`;
|
|
6428
6818
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6429
6819
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6450,8 +6840,44 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6450
6840
|
localVarQueryParameter['include'] = include;
|
|
6451
6841
|
}
|
|
6452
6842
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6453
|
-
let headersFromBaseOptions = (
|
|
6843
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
6844
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6845
|
+
return {
|
|
6846
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6847
|
+
options: localVarRequestOptions,
|
|
6848
|
+
};
|
|
6849
|
+
}),
|
|
6850
|
+
/**
|
|
6851
|
+
* Update a `reply`.
|
|
6852
|
+
* @param {string} id The `thread` ID.
|
|
6853
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
6854
|
+
* @param {*} [options] Override http request option.
|
|
6855
|
+
* @throws {RequiredError}
|
|
6856
|
+
*/
|
|
6857
|
+
updateReply: (id, updateReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6858
|
+
var _e;
|
|
6859
|
+
// verify required parameter 'id' is not null or undefined
|
|
6860
|
+
(0, common_1.assertParamExists)('updateReply', 'id', id);
|
|
6861
|
+
// verify required parameter 'updateReplyRequest' is not null or undefined
|
|
6862
|
+
(0, common_1.assertParamExists)('updateReply', 'updateReplyRequest', updateReplyRequest);
|
|
6863
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6864
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6865
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6866
|
+
let baseOptions;
|
|
6867
|
+
if (configuration) {
|
|
6868
|
+
baseOptions = configuration.baseOptions;
|
|
6869
|
+
}
|
|
6870
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
6871
|
+
const localVarHeaderParameter = {};
|
|
6872
|
+
const localVarQueryParameter = {};
|
|
6873
|
+
// authentication OAuth2 required
|
|
6874
|
+
// oauth required
|
|
6875
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6876
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
6877
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6878
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
6454
6879
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6880
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateReplyRequest, localVarRequestOptions, configuration);
|
|
6455
6881
|
return {
|
|
6456
6882
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6457
6883
|
options: localVarRequestOptions,
|
|
@@ -6480,6 +6906,18 @@ const RepliesApiFp = function (configuration) {
|
|
|
6480
6906
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6481
6907
|
});
|
|
6482
6908
|
},
|
|
6909
|
+
/**
|
|
6910
|
+
* Remove a reply.
|
|
6911
|
+
* @param {string} id The `thread` ID.
|
|
6912
|
+
* @param {*} [options] Override http request option.
|
|
6913
|
+
* @throws {RequiredError}
|
|
6914
|
+
*/
|
|
6915
|
+
deleteReply(id, options) {
|
|
6916
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6917
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteReply(id, options);
|
|
6918
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6919
|
+
});
|
|
6920
|
+
},
|
|
6483
6921
|
/**
|
|
6484
6922
|
* Get a `reply`.
|
|
6485
6923
|
* @param {string} id The `thread` ID.
|
|
@@ -6508,6 +6946,19 @@ const RepliesApiFp = function (configuration) {
|
|
|
6508
6946
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6509
6947
|
});
|
|
6510
6948
|
},
|
|
6949
|
+
/**
|
|
6950
|
+
* Update a `reply`.
|
|
6951
|
+
* @param {string} id The `thread` ID.
|
|
6952
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
6953
|
+
* @param {*} [options] Override http request option.
|
|
6954
|
+
* @throws {RequiredError}
|
|
6955
|
+
*/
|
|
6956
|
+
updateReply(id, updateReplyRequest, options) {
|
|
6957
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6958
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReply(id, updateReplyRequest, options);
|
|
6959
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6960
|
+
});
|
|
6961
|
+
},
|
|
6511
6962
|
};
|
|
6512
6963
|
};
|
|
6513
6964
|
exports.RepliesApiFp = RepliesApiFp;
|
|
@@ -6530,6 +6981,17 @@ const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6530
6981
|
.createReply(id, createReplyRequest, options)
|
|
6531
6982
|
.then((request) => request(axios, basePath));
|
|
6532
6983
|
},
|
|
6984
|
+
/**
|
|
6985
|
+
* Remove a reply.
|
|
6986
|
+
* @param {string} id The `thread` ID.
|
|
6987
|
+
* @param {*} [options] Override http request option.
|
|
6988
|
+
* @throws {RequiredError}
|
|
6989
|
+
*/
|
|
6990
|
+
deleteReply(id, options) {
|
|
6991
|
+
return localVarFp
|
|
6992
|
+
.deleteReply(id, options)
|
|
6993
|
+
.then((request) => request(axios, basePath));
|
|
6994
|
+
},
|
|
6533
6995
|
/**
|
|
6534
6996
|
* Get a `reply`.
|
|
6535
6997
|
* @param {string} id The `thread` ID.
|
|
@@ -6556,6 +7018,18 @@ const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6556
7018
|
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6557
7019
|
.then((request) => request(axios, basePath));
|
|
6558
7020
|
},
|
|
7021
|
+
/**
|
|
7022
|
+
* Update a `reply`.
|
|
7023
|
+
* @param {string} id The `thread` ID.
|
|
7024
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
7025
|
+
* @param {*} [options] Override http request option.
|
|
7026
|
+
* @throws {RequiredError}
|
|
7027
|
+
*/
|
|
7028
|
+
updateReply(id, updateReplyRequest, options) {
|
|
7029
|
+
return localVarFp
|
|
7030
|
+
.updateReply(id, updateReplyRequest, options)
|
|
7031
|
+
.then((request) => request(axios, basePath));
|
|
7032
|
+
},
|
|
6559
7033
|
};
|
|
6560
7034
|
};
|
|
6561
7035
|
exports.RepliesApiFactory = RepliesApiFactory;
|
|
@@ -6578,6 +7052,18 @@ class RepliesApi extends base_1.BaseAPI {
|
|
|
6578
7052
|
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6579
7053
|
.then((request) => request(this.axios, this.basePath));
|
|
6580
7054
|
}
|
|
7055
|
+
/**
|
|
7056
|
+
* Remove a reply.
|
|
7057
|
+
* @param {RepliesApiDeleteReplyRequest} requestParameters Request parameters.
|
|
7058
|
+
* @param {*} [options] Override http request option.
|
|
7059
|
+
* @throws {RequiredError}
|
|
7060
|
+
* @memberof RepliesApi
|
|
7061
|
+
*/
|
|
7062
|
+
deleteReply(requestParameters, options) {
|
|
7063
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
7064
|
+
.deleteReply(requestParameters.id, options)
|
|
7065
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7066
|
+
}
|
|
6581
7067
|
/**
|
|
6582
7068
|
* Get a `reply`.
|
|
6583
7069
|
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
@@ -6602,6 +7088,18 @@ class RepliesApi extends base_1.BaseAPI {
|
|
|
6602
7088
|
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6603
7089
|
.then((request) => request(this.axios, this.basePath));
|
|
6604
7090
|
}
|
|
7091
|
+
/**
|
|
7092
|
+
* Update a `reply`.
|
|
7093
|
+
* @param {RepliesApiUpdateReplyRequest} requestParameters Request parameters.
|
|
7094
|
+
* @param {*} [options] Override http request option.
|
|
7095
|
+
* @throws {RequiredError}
|
|
7096
|
+
* @memberof RepliesApi
|
|
7097
|
+
*/
|
|
7098
|
+
updateReply(requestParameters, options) {
|
|
7099
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
7100
|
+
.updateReply(requestParameters.id, requestParameters.updateReplyRequest, options)
|
|
7101
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7102
|
+
}
|
|
6605
7103
|
}
|
|
6606
7104
|
exports.RepliesApi = RepliesApi;
|
|
6607
7105
|
/**
|
|
@@ -7831,7 +8329,7 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7831
8329
|
* @param {number} [pageSize] The number of items to return.
|
|
7832
8330
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7833
8331
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7834
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8332
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
7835
8333
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7836
8334
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7837
8335
|
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
@@ -8002,7 +8500,7 @@ const SceneItemsApiFp = function (configuration) {
|
|
|
8002
8500
|
* @param {number} [pageSize] The number of items to return.
|
|
8003
8501
|
* @param {string} [filterSource] Source ID to filter on.
|
|
8004
8502
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8005
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8503
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
8006
8504
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8007
8505
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
8008
8506
|
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
@@ -8102,7 +8600,7 @@ const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
8102
8600
|
* @param {number} [pageSize] The number of items to return.
|
|
8103
8601
|
* @param {string} [filterSource] Source ID to filter on.
|
|
8104
8602
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8105
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8603
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
8106
8604
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8107
8605
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
8108
8606
|
* @param {string} [sort] A sort to apply to the collection. A \"minus\" prefixed before the field name is used to specify descending sort order.
|
|
@@ -10575,6 +11073,37 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10575
11073
|
options: localVarRequestOptions,
|
|
10576
11074
|
};
|
|
10577
11075
|
}),
|
|
11076
|
+
/**
|
|
11077
|
+
* Remove a thread.
|
|
11078
|
+
* @param {string} id The `thread` ID.
|
|
11079
|
+
* @param {*} [options] Override http request option.
|
|
11080
|
+
* @throws {RequiredError}
|
|
11081
|
+
*/
|
|
11082
|
+
deleteThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11083
|
+
var _b;
|
|
11084
|
+
// verify required parameter 'id' is not null or undefined
|
|
11085
|
+
(0, common_1.assertParamExists)('deleteThread', 'id', id);
|
|
11086
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11087
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11088
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11089
|
+
let baseOptions;
|
|
11090
|
+
if (configuration) {
|
|
11091
|
+
baseOptions = configuration.baseOptions;
|
|
11092
|
+
}
|
|
11093
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11094
|
+
const localVarHeaderParameter = {};
|
|
11095
|
+
const localVarQueryParameter = {};
|
|
11096
|
+
// authentication OAuth2 required
|
|
11097
|
+
// oauth required
|
|
11098
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11099
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11100
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
11101
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11102
|
+
return {
|
|
11103
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11104
|
+
options: localVarRequestOptions,
|
|
11105
|
+
};
|
|
11106
|
+
}),
|
|
10578
11107
|
/**
|
|
10579
11108
|
* Get a `thread`.
|
|
10580
11109
|
* @param {string} id The `thread` ID.
|
|
@@ -10584,7 +11113,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10584
11113
|
* @throws {RequiredError}
|
|
10585
11114
|
*/
|
|
10586
11115
|
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10587
|
-
var
|
|
11116
|
+
var _c;
|
|
10588
11117
|
// verify required parameter 'id' is not null or undefined
|
|
10589
11118
|
(0, common_1.assertParamExists)('getThread', 'id', id);
|
|
10590
11119
|
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10607,7 +11136,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10607
11136
|
localVarQueryParameter['include'] = include;
|
|
10608
11137
|
}
|
|
10609
11138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10610
|
-
let headersFromBaseOptions = (
|
|
11139
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10611
11140
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10612
11141
|
return {
|
|
10613
11142
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10621,7 +11150,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10621
11150
|
* @throws {RequiredError}
|
|
10622
11151
|
*/
|
|
10623
11152
|
getThreadParticipants: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10624
|
-
var
|
|
11153
|
+
var _d;
|
|
10625
11154
|
// verify required parameter 'id' is not null or undefined
|
|
10626
11155
|
(0, common_1.assertParamExists)('getThreadParticipants', 'id', id);
|
|
10627
11156
|
const localVarPath = `/threads/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10638,7 +11167,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10638
11167
|
// oauth required
|
|
10639
11168
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10640
11169
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10641
|
-
let headersFromBaseOptions = (
|
|
11170
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
10642
11171
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10643
11172
|
return {
|
|
10644
11173
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10652,11 +11181,12 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10652
11181
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10653
11182
|
* @param {number} [pageSize] The number of items to return.
|
|
10654
11183
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11184
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
10655
11185
|
* @param {*} [options] Override http request option.
|
|
10656
11186
|
* @throws {RequiredError}
|
|
10657
11187
|
*/
|
|
10658
|
-
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10659
|
-
var
|
|
11188
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11189
|
+
var _e;
|
|
10660
11190
|
const localVarPath = `/threads`;
|
|
10661
11191
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10662
11192
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -10686,14 +11216,54 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10686
11216
|
if (include !== undefined) {
|
|
10687
11217
|
localVarQueryParameter['include'] = include;
|
|
10688
11218
|
}
|
|
11219
|
+
if (filterThreadStatus) {
|
|
11220
|
+
localVarQueryParameter['filter[threadStatus]'] =
|
|
11221
|
+
filterThreadStatus.join(base_1.COLLECTION_FORMATS.csv);
|
|
11222
|
+
}
|
|
10689
11223
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10690
|
-
let headersFromBaseOptions = (
|
|
11224
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
10691
11225
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10692
11226
|
return {
|
|
10693
11227
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10694
11228
|
options: localVarRequestOptions,
|
|
10695
11229
|
};
|
|
10696
11230
|
}),
|
|
11231
|
+
/**
|
|
11232
|
+
* Update a `thread`.
|
|
11233
|
+
* @param {string} id The `thread` ID.
|
|
11234
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
11235
|
+
* @param {*} [options] Override http request option.
|
|
11236
|
+
* @throws {RequiredError}
|
|
11237
|
+
*/
|
|
11238
|
+
updateThread: (id, updateThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11239
|
+
var _f;
|
|
11240
|
+
// verify required parameter 'id' is not null or undefined
|
|
11241
|
+
(0, common_1.assertParamExists)('updateThread', 'id', id);
|
|
11242
|
+
// verify required parameter 'updateThreadRequest' is not null or undefined
|
|
11243
|
+
(0, common_1.assertParamExists)('updateThread', 'updateThreadRequest', updateThreadRequest);
|
|
11244
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11246
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11247
|
+
let baseOptions;
|
|
11248
|
+
if (configuration) {
|
|
11249
|
+
baseOptions = configuration.baseOptions;
|
|
11250
|
+
}
|
|
11251
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
11252
|
+
const localVarHeaderParameter = {};
|
|
11253
|
+
const localVarQueryParameter = {};
|
|
11254
|
+
// authentication OAuth2 required
|
|
11255
|
+
// oauth required
|
|
11256
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11257
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11258
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11259
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
11260
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11261
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateThreadRequest, localVarRequestOptions, configuration);
|
|
11262
|
+
return {
|
|
11263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11264
|
+
options: localVarRequestOptions,
|
|
11265
|
+
};
|
|
11266
|
+
}),
|
|
10697
11267
|
};
|
|
10698
11268
|
};
|
|
10699
11269
|
exports.ThreadsApiAxiosParamCreator = ThreadsApiAxiosParamCreator;
|
|
@@ -10717,6 +11287,18 @@ const ThreadsApiFp = function (configuration) {
|
|
|
10717
11287
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10718
11288
|
});
|
|
10719
11289
|
},
|
|
11290
|
+
/**
|
|
11291
|
+
* Remove a thread.
|
|
11292
|
+
* @param {string} id The `thread` ID.
|
|
11293
|
+
* @param {*} [options] Override http request option.
|
|
11294
|
+
* @throws {RequiredError}
|
|
11295
|
+
*/
|
|
11296
|
+
deleteThread(id, options) {
|
|
11297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11298
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteThread(id, options);
|
|
11299
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11300
|
+
});
|
|
11301
|
+
},
|
|
10720
11302
|
/**
|
|
10721
11303
|
* Get a `thread`.
|
|
10722
11304
|
* @param {string} id The `thread` ID.
|
|
@@ -10750,12 +11332,26 @@ const ThreadsApiFp = function (configuration) {
|
|
|
10750
11332
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10751
11333
|
* @param {number} [pageSize] The number of items to return.
|
|
10752
11334
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11335
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11336
|
+
* @param {*} [options] Override http request option.
|
|
11337
|
+
* @throws {RequiredError}
|
|
11338
|
+
*/
|
|
11339
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11341
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options);
|
|
11342
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11343
|
+
});
|
|
11344
|
+
},
|
|
11345
|
+
/**
|
|
11346
|
+
* Update a `thread`.
|
|
11347
|
+
* @param {string} id The `thread` ID.
|
|
11348
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10753
11349
|
* @param {*} [options] Override http request option.
|
|
10754
11350
|
* @throws {RequiredError}
|
|
10755
11351
|
*/
|
|
10756
|
-
|
|
11352
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10757
11353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10758
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThread(id, updateThreadRequest, options);
|
|
10759
11355
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10760
11356
|
});
|
|
10761
11357
|
},
|
|
@@ -10781,6 +11377,17 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10781
11377
|
.createThread(id, createThreadRequest, options)
|
|
10782
11378
|
.then((request) => request(axios, basePath));
|
|
10783
11379
|
},
|
|
11380
|
+
/**
|
|
11381
|
+
* Remove a thread.
|
|
11382
|
+
* @param {string} id The `thread` ID.
|
|
11383
|
+
* @param {*} [options] Override http request option.
|
|
11384
|
+
* @throws {RequiredError}
|
|
11385
|
+
*/
|
|
11386
|
+
deleteThread(id, options) {
|
|
11387
|
+
return localVarFp
|
|
11388
|
+
.deleteThread(id, options)
|
|
11389
|
+
.then((request) => request(axios, basePath));
|
|
11390
|
+
},
|
|
10784
11391
|
/**
|
|
10785
11392
|
* Get a `thread`.
|
|
10786
11393
|
* @param {string} id The `thread` ID.
|
|
@@ -10812,12 +11419,25 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10812
11419
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10813
11420
|
* @param {number} [pageSize] The number of items to return.
|
|
10814
11421
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11422
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11423
|
+
* @param {*} [options] Override http request option.
|
|
11424
|
+
* @throws {RequiredError}
|
|
11425
|
+
*/
|
|
11426
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11427
|
+
return localVarFp
|
|
11428
|
+
.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options)
|
|
11429
|
+
.then((request) => request(axios, basePath));
|
|
11430
|
+
},
|
|
11431
|
+
/**
|
|
11432
|
+
* Update a `thread`.
|
|
11433
|
+
* @param {string} id The `thread` ID.
|
|
11434
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10815
11435
|
* @param {*} [options] Override http request option.
|
|
10816
11436
|
* @throws {RequiredError}
|
|
10817
11437
|
*/
|
|
10818
|
-
|
|
11438
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10819
11439
|
return localVarFp
|
|
10820
|
-
.
|
|
11440
|
+
.updateThread(id, updateThreadRequest, options)
|
|
10821
11441
|
.then((request) => request(axios, basePath));
|
|
10822
11442
|
},
|
|
10823
11443
|
};
|
|
@@ -10842,6 +11462,18 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10842
11462
|
.createThread(requestParameters.id, requestParameters.createThreadRequest, options)
|
|
10843
11463
|
.then((request) => request(this.axios, this.basePath));
|
|
10844
11464
|
}
|
|
11465
|
+
/**
|
|
11466
|
+
* Remove a thread.
|
|
11467
|
+
* @param {ThreadsApiDeleteThreadRequest} requestParameters Request parameters.
|
|
11468
|
+
* @param {*} [options] Override http request option.
|
|
11469
|
+
* @throws {RequiredError}
|
|
11470
|
+
* @memberof ThreadsApi
|
|
11471
|
+
*/
|
|
11472
|
+
deleteThread(requestParameters, options) {
|
|
11473
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
11474
|
+
.deleteThread(requestParameters.id, options)
|
|
11475
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11476
|
+
}
|
|
10845
11477
|
/**
|
|
10846
11478
|
* Get a `thread`.
|
|
10847
11479
|
* @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
|
|
@@ -10875,7 +11507,19 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10875
11507
|
*/
|
|
10876
11508
|
getThreads(requestParameters = {}, options) {
|
|
10877
11509
|
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10878
|
-
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
11510
|
+
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, requestParameters.filterThreadStatus, options)
|
|
11511
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11512
|
+
}
|
|
11513
|
+
/**
|
|
11514
|
+
* Update a `thread`.
|
|
11515
|
+
* @param {ThreadsApiUpdateThreadRequest} requestParameters Request parameters.
|
|
11516
|
+
* @param {*} [options] Override http request option.
|
|
11517
|
+
* @throws {RequiredError}
|
|
11518
|
+
* @memberof ThreadsApi
|
|
11519
|
+
*/
|
|
11520
|
+
updateThread(requestParameters, options) {
|
|
11521
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
11522
|
+
.updateThread(requestParameters.id, requestParameters.updateThreadRequest, options)
|
|
10879
11523
|
.then((request) => request(this.axios, this.basePath));
|
|
10880
11524
|
}
|
|
10881
11525
|
}
|