@vertexvis/api-client-node 0.34.0 → 0.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api.d.ts +1303 -122
- package/dist/cjs/api.js +829 -45
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +1303 -122
- package/dist/esm/api.js +821 -41
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/package.json +1 -1
package/dist/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.ApplicationsApiAxiosParamCreator = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.WithThreadTypeEnum = exports.WithSceneViewStateIdTypeEnum = 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.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.PartRenditionsApiFactory = exports.PartRenditionsApiFp = exports.PartRenditionsApiAxiosParamCreator = exports.Oauth2Api = exports.Oauth2ApiFactory = exports.Oauth2ApiFp = exports.Oauth2ApiAxiosParamCreator = exports.ModelViewsApi = exports.ModelViewsApiFactory = exports.ModelViewsApiFp = exports.ModelViewsApiAxiosParamCreator = exports.HitsApi = exports.HitsApiFactory = exports.HitsApiFp = exports.HitsApiAxiosParamCreator = exports.GeometrySetsApi = exports.GeometrySetsApiFactory = exports.GeometrySetsApiFp = exports.GeometrySetsApiAxiosParamCreator = exports.FilesApi = exports.FilesApiFactory = exports.FilesApiFp = exports.FilesApiAxiosParamCreator = exports.FileJobsApi = exports.FileJobsApiFactory = exports.FileJobsApiFp = exports.FileJobsApiAxiosParamCreator = exports.FileCollectionsApi = exports.FileCollectionsApiFactory = exports.FileCollectionsApiFp = exports.FileCollectionsApiAxiosParamCreator = exports.ExportsApi = exports.ExportsApiFactory = exports.ExportsApiFp = exports.ExportsApiAxiosParamCreator = exports.CollaborationContextsApi = exports.CollaborationContextsApiFactory = exports.CollaborationContextsApiFp = exports.CollaborationContextsApiAxiosParamCreator = exports.BatchesApi = exports.BatchesApiFactory = exports.BatchesApiFp = exports.BatchesApiAxiosParamCreator = exports.AttachmentsApi = exports.AttachmentsApiFactory = exports.AttachmentsApiFp = exports.AttachmentsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = void 0;
|
|
31
|
+
exports.SceneViewStatesApiAxiosParamCreator = exports.SceneSynchronizationsApi = exports.SceneSynchronizationsApiFactory = exports.SceneSynchronizationsApiFp = exports.SceneSynchronizationsApiAxiosParamCreator = exports.SceneItemsApi = exports.SceneItemsApiFactory = exports.SceneItemsApiFp = exports.SceneItemsApiAxiosParamCreator = exports.SceneItemOverridesApi = exports.SceneItemOverridesApiFactory = exports.SceneItemOverridesApiFp = exports.SceneItemOverridesApiAxiosParamCreator = exports.SceneAnnotationsApi = exports.SceneAnnotationsApiFactory = exports.SceneAnnotationsApiFp = exports.SceneAnnotationsApiAxiosParamCreator = exports.SceneAlterationsApi = exports.SceneAlterationsApiFactory = exports.SceneAlterationsApiFp = exports.SceneAlterationsApiAxiosParamCreator = exports.RepliesApi = exports.RepliesApiFactory = exports.RepliesApiFp = exports.RepliesApiAxiosParamCreator = exports.PropertyEntriesApi = exports.PropertyEntriesApiFactory = exports.PropertyEntriesApiFp = exports.PropertyEntriesApiAxiosParamCreator = exports.PmiApi = exports.PmiApiFactory = exports.PmiApiFp = exports.PmiApiAxiosParamCreator = exports.PermissionGrantsApi = exports.PermissionGrantsApiFactory = exports.PermissionGrantsApiFp = exports.PermissionGrantsApiAxiosParamCreator = exports.PartsApi = exports.PartsApiFactory = exports.PartsApiFp = exports.PartsApiAxiosParamCreator = exports.PartRevisionsApi = exports.PartRevisionsApiFactory = exports.PartRevisionsApiFp = exports.PartRevisionsApiAxiosParamCreator = exports.PartRevisionInstancesApi = exports.PartRevisionInstancesApiFactory = exports.PartRevisionInstancesApiFp = exports.PartRevisionInstancesApiAxiosParamCreator = exports.PartRenditionsApi = 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 = 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
|
};
|
|
@@ -326,12 +335,21 @@ exports.WebhookSubscriptionDataAttributesStatusEnum = {
|
|
|
326
335
|
Active: 'active',
|
|
327
336
|
Paused: 'paused',
|
|
328
337
|
};
|
|
338
|
+
exports.WithFileContentTypeEnum = {
|
|
339
|
+
FileContent: 'file-content',
|
|
340
|
+
};
|
|
341
|
+
exports.WithReplyTypeEnum = {
|
|
342
|
+
Reply: 'reply',
|
|
343
|
+
};
|
|
329
344
|
exports.WithSceneViewIdTypeEnum = {
|
|
330
345
|
SceneViewId: 'scene-view-id',
|
|
331
346
|
};
|
|
332
347
|
exports.WithSceneViewStateIdTypeEnum = {
|
|
333
348
|
SceneViewStateId: 'scene-view-state-id',
|
|
334
349
|
};
|
|
350
|
+
exports.WithThreadTypeEnum = {
|
|
351
|
+
Thread: 'thread',
|
|
352
|
+
};
|
|
335
353
|
/**
|
|
336
354
|
* AccountsApi - axios parameter creator
|
|
337
355
|
* @export
|
|
@@ -1106,6 +1124,348 @@ class ApplicationsApi extends base_1.BaseAPI {
|
|
|
1106
1124
|
}
|
|
1107
1125
|
}
|
|
1108
1126
|
exports.ApplicationsApi = ApplicationsApi;
|
|
1127
|
+
/**
|
|
1128
|
+
* AttachmentsApi - axios parameter creator
|
|
1129
|
+
* @export
|
|
1130
|
+
*/
|
|
1131
|
+
const AttachmentsApiAxiosParamCreator = function (configuration) {
|
|
1132
|
+
return {
|
|
1133
|
+
/**
|
|
1134
|
+
* 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.
|
|
1135
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1136
|
+
* @param {*} [options] Override http request option.
|
|
1137
|
+
* @throws {RequiredError}
|
|
1138
|
+
*/
|
|
1139
|
+
createAttachment: (createAttachmentRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1140
|
+
var _a;
|
|
1141
|
+
// verify required parameter 'createAttachmentRequest' is not null or undefined
|
|
1142
|
+
(0, common_1.assertParamExists)('createAttachment', 'createAttachmentRequest', createAttachmentRequest);
|
|
1143
|
+
const localVarPath = `/attachments`;
|
|
1144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1145
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1146
|
+
let baseOptions;
|
|
1147
|
+
if (configuration) {
|
|
1148
|
+
baseOptions = configuration.baseOptions;
|
|
1149
|
+
}
|
|
1150
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1151
|
+
const localVarHeaderParameter = {};
|
|
1152
|
+
const localVarQueryParameter = {};
|
|
1153
|
+
// authentication OAuth2 required
|
|
1154
|
+
// oauth required
|
|
1155
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1156
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1157
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1158
|
+
let headersFromBaseOptions = (_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _a !== void 0 ? _a : {};
|
|
1159
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1160
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAttachmentRequest, localVarRequestOptions, configuration);
|
|
1161
|
+
return {
|
|
1162
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1163
|
+
options: localVarRequestOptions,
|
|
1164
|
+
};
|
|
1165
|
+
}),
|
|
1166
|
+
/**
|
|
1167
|
+
* Create a download url for a file `attachment` by ID.
|
|
1168
|
+
* @param {string} id The `attachment` ID.
|
|
1169
|
+
* @param {CreateDownloadRequest} createDownloadRequest
|
|
1170
|
+
* @param {*} [options] Override http request option.
|
|
1171
|
+
* @throws {RequiredError}
|
|
1172
|
+
*/
|
|
1173
|
+
createAttachmentDownloadUrl: (id, createDownloadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1174
|
+
var _b;
|
|
1175
|
+
// verify required parameter 'id' is not null or undefined
|
|
1176
|
+
(0, common_1.assertParamExists)('createAttachmentDownloadUrl', 'id', id);
|
|
1177
|
+
// verify required parameter 'createDownloadRequest' is not null or undefined
|
|
1178
|
+
(0, common_1.assertParamExists)('createAttachmentDownloadUrl', 'createDownloadRequest', createDownloadRequest);
|
|
1179
|
+
const localVarPath = `/attachments/{id}/download-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1180
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1181
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1182
|
+
let baseOptions;
|
|
1183
|
+
if (configuration) {
|
|
1184
|
+
baseOptions = configuration.baseOptions;
|
|
1185
|
+
}
|
|
1186
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1187
|
+
const localVarHeaderParameter = {};
|
|
1188
|
+
const localVarQueryParameter = {};
|
|
1189
|
+
// authentication OAuth2 required
|
|
1190
|
+
// oauth required
|
|
1191
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1192
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1193
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1194
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
1195
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1196
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDownloadRequest, localVarRequestOptions, configuration);
|
|
1197
|
+
return {
|
|
1198
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1199
|
+
options: localVarRequestOptions,
|
|
1200
|
+
};
|
|
1201
|
+
}),
|
|
1202
|
+
/**
|
|
1203
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1204
|
+
* @param {string} id The `attachment` ID.
|
|
1205
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
1206
|
+
* @param {*} [options] Override http request option.
|
|
1207
|
+
* @throws {RequiredError}
|
|
1208
|
+
*/
|
|
1209
|
+
createAttachmentUploadUrl: (id, createUploadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1210
|
+
var _c;
|
|
1211
|
+
// verify required parameter 'id' is not null or undefined
|
|
1212
|
+
(0, common_1.assertParamExists)('createAttachmentUploadUrl', 'id', id);
|
|
1213
|
+
// verify required parameter 'createUploadRequest' is not null or undefined
|
|
1214
|
+
(0, common_1.assertParamExists)('createAttachmentUploadUrl', 'createUploadRequest', createUploadRequest);
|
|
1215
|
+
const localVarPath = `/attachments/{id}/upload-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1216
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1217
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1218
|
+
let baseOptions;
|
|
1219
|
+
if (configuration) {
|
|
1220
|
+
baseOptions = configuration.baseOptions;
|
|
1221
|
+
}
|
|
1222
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1223
|
+
const localVarHeaderParameter = {};
|
|
1224
|
+
const localVarQueryParameter = {};
|
|
1225
|
+
// authentication OAuth2 required
|
|
1226
|
+
// oauth required
|
|
1227
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1228
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1230
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1231
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1232
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUploadRequest, localVarRequestOptions, configuration);
|
|
1233
|
+
return {
|
|
1234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1235
|
+
options: localVarRequestOptions,
|
|
1236
|
+
};
|
|
1237
|
+
}),
|
|
1238
|
+
/**
|
|
1239
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1240
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1241
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1242
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1243
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
listAttachments: (filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1248
|
+
var _d;
|
|
1249
|
+
// verify required parameter 'filterRelationshipId' is not null or undefined
|
|
1250
|
+
(0, common_1.assertParamExists)('listAttachments', 'filterRelationshipId', filterRelationshipId);
|
|
1251
|
+
// verify required parameter 'filterRelationshipType' is not null or undefined
|
|
1252
|
+
(0, common_1.assertParamExists)('listAttachments', 'filterRelationshipType', filterRelationshipType);
|
|
1253
|
+
const localVarPath = `/attachments`;
|
|
1254
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1255
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1256
|
+
let baseOptions;
|
|
1257
|
+
if (configuration) {
|
|
1258
|
+
baseOptions = configuration.baseOptions;
|
|
1259
|
+
}
|
|
1260
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1261
|
+
const localVarHeaderParameter = {};
|
|
1262
|
+
const localVarQueryParameter = {};
|
|
1263
|
+
// authentication OAuth2 required
|
|
1264
|
+
// oauth required
|
|
1265
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1266
|
+
if (filterRelationshipId !== undefined) {
|
|
1267
|
+
localVarQueryParameter['filter[relationshipId]'] = filterRelationshipId;
|
|
1268
|
+
}
|
|
1269
|
+
if (filterRelationshipType !== undefined) {
|
|
1270
|
+
localVarQueryParameter['filter[relationshipType]'] =
|
|
1271
|
+
filterRelationshipType;
|
|
1272
|
+
}
|
|
1273
|
+
if (pageCursor !== undefined) {
|
|
1274
|
+
localVarQueryParameter['page[cursor]'] = pageCursor;
|
|
1275
|
+
}
|
|
1276
|
+
if (pageSize !== undefined) {
|
|
1277
|
+
localVarQueryParameter['page[size]'] = pageSize;
|
|
1278
|
+
}
|
|
1279
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1280
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1281
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1282
|
+
return {
|
|
1283
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1284
|
+
options: localVarRequestOptions,
|
|
1285
|
+
};
|
|
1286
|
+
}),
|
|
1287
|
+
};
|
|
1288
|
+
};
|
|
1289
|
+
exports.AttachmentsApiAxiosParamCreator = AttachmentsApiAxiosParamCreator;
|
|
1290
|
+
/**
|
|
1291
|
+
* AttachmentsApi - functional programming interface
|
|
1292
|
+
* @export
|
|
1293
|
+
*/
|
|
1294
|
+
const AttachmentsApiFp = function (configuration) {
|
|
1295
|
+
const localVarAxiosParamCreator = (0, exports.AttachmentsApiAxiosParamCreator)(configuration);
|
|
1296
|
+
return {
|
|
1297
|
+
/**
|
|
1298
|
+
* 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.
|
|
1299
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1305
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachment(createAttachmentRequest, options);
|
|
1306
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1307
|
+
});
|
|
1308
|
+
},
|
|
1309
|
+
/**
|
|
1310
|
+
* Create a download url for a file `attachment` by ID.
|
|
1311
|
+
* @param {string} id The `attachment` ID.
|
|
1312
|
+
* @param {CreateDownloadRequest} createDownloadRequest
|
|
1313
|
+
* @param {*} [options] Override http request option.
|
|
1314
|
+
* @throws {RequiredError}
|
|
1315
|
+
*/
|
|
1316
|
+
createAttachmentDownloadUrl(id, createDownloadRequest, options) {
|
|
1317
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1318
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachmentDownloadUrl(id, createDownloadRequest, options);
|
|
1319
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1320
|
+
});
|
|
1321
|
+
},
|
|
1322
|
+
/**
|
|
1323
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1324
|
+
* @param {string} id The `attachment` ID.
|
|
1325
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
1326
|
+
* @param {*} [options] Override http request option.
|
|
1327
|
+
* @throws {RequiredError}
|
|
1328
|
+
*/
|
|
1329
|
+
createAttachmentUploadUrl(id, createUploadRequest, options) {
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1331
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createAttachmentUploadUrl(id, createUploadRequest, options);
|
|
1332
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1333
|
+
});
|
|
1334
|
+
},
|
|
1335
|
+
/**
|
|
1336
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1337
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1338
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1339
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1340
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1341
|
+
* @param {*} [options] Override http request option.
|
|
1342
|
+
* @throws {RequiredError}
|
|
1343
|
+
*/
|
|
1344
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1345
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1346
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options);
|
|
1347
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1348
|
+
});
|
|
1349
|
+
},
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
exports.AttachmentsApiFp = AttachmentsApiFp;
|
|
1353
|
+
/**
|
|
1354
|
+
* AttachmentsApi - factory interface
|
|
1355
|
+
* @export
|
|
1356
|
+
*/
|
|
1357
|
+
const AttachmentsApiFactory = function (configuration, basePath, axios) {
|
|
1358
|
+
const localVarFp = (0, exports.AttachmentsApiFp)(configuration);
|
|
1359
|
+
return {
|
|
1360
|
+
/**
|
|
1361
|
+
* 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.
|
|
1362
|
+
* @param {CreateAttachmentRequest} createAttachmentRequest
|
|
1363
|
+
* @param {*} [options] Override http request option.
|
|
1364
|
+
* @throws {RequiredError}
|
|
1365
|
+
*/
|
|
1366
|
+
createAttachment(createAttachmentRequest, options) {
|
|
1367
|
+
return localVarFp
|
|
1368
|
+
.createAttachment(createAttachmentRequest, options)
|
|
1369
|
+
.then((request) => request(axios, basePath));
|
|
1370
|
+
},
|
|
1371
|
+
/**
|
|
1372
|
+
* Create a download url for a file `attachment` by ID.
|
|
1373
|
+
* @param {string} id The `attachment` ID.
|
|
1374
|
+
* @param {CreateDownloadRequest} createDownloadRequest
|
|
1375
|
+
* @param {*} [options] Override http request option.
|
|
1376
|
+
* @throws {RequiredError}
|
|
1377
|
+
*/
|
|
1378
|
+
createAttachmentDownloadUrl(id, createDownloadRequest, options) {
|
|
1379
|
+
return localVarFp
|
|
1380
|
+
.createAttachmentDownloadUrl(id, createDownloadRequest, options)
|
|
1381
|
+
.then((request) => request(axios, basePath));
|
|
1382
|
+
},
|
|
1383
|
+
/**
|
|
1384
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1385
|
+
* @param {string} id The `attachment` ID.
|
|
1386
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
*/
|
|
1390
|
+
createAttachmentUploadUrl(id, createUploadRequest, options) {
|
|
1391
|
+
return localVarFp
|
|
1392
|
+
.createAttachmentUploadUrl(id, createUploadRequest, options)
|
|
1393
|
+
.then((request) => request(axios, basePath));
|
|
1394
|
+
},
|
|
1395
|
+
/**
|
|
1396
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1397
|
+
* @param {string} filterRelationshipId A relationship id to filter attachments for
|
|
1398
|
+
* @param {'thread' | 'reply'} filterRelationshipType The type of relationship (reply or thread)
|
|
1399
|
+
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
1400
|
+
* @param {number} [pageSize] The number of items to return.
|
|
1401
|
+
* @param {*} [options] Override http request option.
|
|
1402
|
+
* @throws {RequiredError}
|
|
1403
|
+
*/
|
|
1404
|
+
listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options) {
|
|
1405
|
+
return localVarFp
|
|
1406
|
+
.listAttachments(filterRelationshipId, filterRelationshipType, pageCursor, pageSize, options)
|
|
1407
|
+
.then((request) => request(axios, basePath));
|
|
1408
|
+
},
|
|
1409
|
+
};
|
|
1410
|
+
};
|
|
1411
|
+
exports.AttachmentsApiFactory = AttachmentsApiFactory;
|
|
1412
|
+
/**
|
|
1413
|
+
* AttachmentsApi - object-oriented interface
|
|
1414
|
+
* @export
|
|
1415
|
+
* @class AttachmentsApi
|
|
1416
|
+
* @extends {BaseAPI}
|
|
1417
|
+
*/
|
|
1418
|
+
class AttachmentsApi extends base_1.BaseAPI {
|
|
1419
|
+
/**
|
|
1420
|
+
* 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.
|
|
1421
|
+
* @param {AttachmentsApiCreateAttachmentRequest} requestParameters Request parameters.
|
|
1422
|
+
* @param {*} [options] Override http request option.
|
|
1423
|
+
* @throws {RequiredError}
|
|
1424
|
+
* @memberof AttachmentsApi
|
|
1425
|
+
*/
|
|
1426
|
+
createAttachment(requestParameters, options) {
|
|
1427
|
+
return (0, exports.AttachmentsApiFp)(this.configuration)
|
|
1428
|
+
.createAttachment(requestParameters.createAttachmentRequest, options)
|
|
1429
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1430
|
+
}
|
|
1431
|
+
/**
|
|
1432
|
+
* Create a download url for a file `attachment` by ID.
|
|
1433
|
+
* @param {AttachmentsApiCreateAttachmentDownloadUrlRequest} requestParameters Request parameters.
|
|
1434
|
+
* @param {*} [options] Override http request option.
|
|
1435
|
+
* @throws {RequiredError}
|
|
1436
|
+
* @memberof AttachmentsApi
|
|
1437
|
+
*/
|
|
1438
|
+
createAttachmentDownloadUrl(requestParameters, options) {
|
|
1439
|
+
return (0, exports.AttachmentsApiFp)(this.configuration)
|
|
1440
|
+
.createAttachmentDownloadUrl(requestParameters.id, requestParameters.createDownloadRequest, options)
|
|
1441
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Create an upload url for a file `attachment` by ID.
|
|
1445
|
+
* @param {AttachmentsApiCreateAttachmentUploadUrlRequest} requestParameters Request parameters.
|
|
1446
|
+
* @param {*} [options] Override http request option.
|
|
1447
|
+
* @throws {RequiredError}
|
|
1448
|
+
* @memberof AttachmentsApi
|
|
1449
|
+
*/
|
|
1450
|
+
createAttachmentUploadUrl(requestParameters, options) {
|
|
1451
|
+
return (0, exports.AttachmentsApiFp)(this.configuration)
|
|
1452
|
+
.createAttachmentUploadUrl(requestParameters.id, requestParameters.createUploadRequest, options)
|
|
1453
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1454
|
+
}
|
|
1455
|
+
/**
|
|
1456
|
+
* List attachments **Preview:** This is a preview API and is subject to change.
|
|
1457
|
+
* @param {AttachmentsApiListAttachmentsRequest} requestParameters Request parameters.
|
|
1458
|
+
* @param {*} [options] Override http request option.
|
|
1459
|
+
* @throws {RequiredError}
|
|
1460
|
+
* @memberof AttachmentsApi
|
|
1461
|
+
*/
|
|
1462
|
+
listAttachments(requestParameters, options) {
|
|
1463
|
+
return (0, exports.AttachmentsApiFp)(this.configuration)
|
|
1464
|
+
.listAttachments(requestParameters.filterRelationshipId, requestParameters.filterRelationshipType, requestParameters.pageCursor, requestParameters.pageSize, options)
|
|
1465
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1466
|
+
}
|
|
1467
|
+
}
|
|
1468
|
+
exports.AttachmentsApi = AttachmentsApi;
|
|
1109
1469
|
/**
|
|
1110
1470
|
* BatchesApi - axios parameter creator
|
|
1111
1471
|
* @export
|
|
@@ -1419,6 +1779,37 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1419
1779
|
options: localVarRequestOptions,
|
|
1420
1780
|
};
|
|
1421
1781
|
}),
|
|
1782
|
+
/**
|
|
1783
|
+
* Remove a collaboration context along with all of its data
|
|
1784
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1785
|
+
* @param {*} [options] Override http request option.
|
|
1786
|
+
* @throws {RequiredError}
|
|
1787
|
+
*/
|
|
1788
|
+
deleteCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1789
|
+
var _c;
|
|
1790
|
+
// verify required parameter 'id' is not null or undefined
|
|
1791
|
+
(0, common_1.assertParamExists)('deleteCollaborationContext', 'id', id);
|
|
1792
|
+
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1793
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1794
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1795
|
+
let baseOptions;
|
|
1796
|
+
if (configuration) {
|
|
1797
|
+
baseOptions = configuration.baseOptions;
|
|
1798
|
+
}
|
|
1799
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1800
|
+
const localVarHeaderParameter = {};
|
|
1801
|
+
const localVarQueryParameter = {};
|
|
1802
|
+
// authentication OAuth2 required
|
|
1803
|
+
// oauth required
|
|
1804
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1805
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1806
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
1807
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1808
|
+
return {
|
|
1809
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1810
|
+
options: localVarRequestOptions,
|
|
1811
|
+
};
|
|
1812
|
+
}),
|
|
1422
1813
|
/**
|
|
1423
1814
|
* Get a `collaboration-context` by ID.
|
|
1424
1815
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1426,7 +1817,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1426
1817
|
* @throws {RequiredError}
|
|
1427
1818
|
*/
|
|
1428
1819
|
getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1429
|
-
var
|
|
1820
|
+
var _d;
|
|
1430
1821
|
// verify required parameter 'id' is not null or undefined
|
|
1431
1822
|
(0, common_1.assertParamExists)('getCollaborationContext', 'id', id);
|
|
1432
1823
|
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -1443,7 +1834,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1443
1834
|
// oauth required
|
|
1444
1835
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1445
1836
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1446
|
-
let headersFromBaseOptions = (
|
|
1837
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1447
1838
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1448
1839
|
return {
|
|
1449
1840
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -1458,7 +1849,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1458
1849
|
* @throws {RequiredError}
|
|
1459
1850
|
*/
|
|
1460
1851
|
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1461
|
-
var
|
|
1852
|
+
var _e;
|
|
1462
1853
|
const localVarPath = `/collaboration-contexts`;
|
|
1463
1854
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1464
1855
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1479,7 +1870,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1479
1870
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
1480
1871
|
}
|
|
1481
1872
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1482
|
-
let headersFromBaseOptions = (
|
|
1873
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
1483
1874
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1484
1875
|
return {
|
|
1485
1876
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -1521,6 +1912,18 @@ const CollaborationContextsApiFp = function (configuration) {
|
|
|
1521
1912
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1522
1913
|
});
|
|
1523
1914
|
},
|
|
1915
|
+
/**
|
|
1916
|
+
* Remove a collaboration context along with all of its data
|
|
1917
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1918
|
+
* @param {*} [options] Override http request option.
|
|
1919
|
+
* @throws {RequiredError}
|
|
1920
|
+
*/
|
|
1921
|
+
deleteCollaborationContext(id, options) {
|
|
1922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1923
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCollaborationContext(id, options);
|
|
1924
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1925
|
+
});
|
|
1926
|
+
},
|
|
1524
1927
|
/**
|
|
1525
1928
|
* Get a `collaboration-context` by ID.
|
|
1526
1929
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1579,6 +1982,17 @@ const CollaborationContextsApiFactory = function (configuration, basePath, axios
|
|
|
1579
1982
|
.createCollaborationContext(createCollaborationContextRequest, options)
|
|
1580
1983
|
.then((request) => request(axios, basePath));
|
|
1581
1984
|
},
|
|
1985
|
+
/**
|
|
1986
|
+
* Remove a collaboration context along with all of its data
|
|
1987
|
+
* @param {string} id The `collaboration-context` ID.
|
|
1988
|
+
* @param {*} [options] Override http request option.
|
|
1989
|
+
* @throws {RequiredError}
|
|
1990
|
+
*/
|
|
1991
|
+
deleteCollaborationContext(id, options) {
|
|
1992
|
+
return localVarFp
|
|
1993
|
+
.deleteCollaborationContext(id, options)
|
|
1994
|
+
.then((request) => request(axios, basePath));
|
|
1995
|
+
},
|
|
1582
1996
|
/**
|
|
1583
1997
|
* Get a `collaboration-context` by ID.
|
|
1584
1998
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1636,6 +2050,18 @@ class CollaborationContextsApi extends base_1.BaseAPI {
|
|
|
1636
2050
|
.createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
|
|
1637
2051
|
.then((request) => request(this.axios, this.basePath));
|
|
1638
2052
|
}
|
|
2053
|
+
/**
|
|
2054
|
+
* Remove a collaboration context along with all of its data
|
|
2055
|
+
* @param {CollaborationContextsApiDeleteCollaborationContextRequest} requestParameters Request parameters.
|
|
2056
|
+
* @param {*} [options] Override http request option.
|
|
2057
|
+
* @throws {RequiredError}
|
|
2058
|
+
* @memberof CollaborationContextsApi
|
|
2059
|
+
*/
|
|
2060
|
+
deleteCollaborationContext(requestParameters, options) {
|
|
2061
|
+
return (0, exports.CollaborationContextsApiFp)(this.configuration)
|
|
2062
|
+
.deleteCollaborationContext(requestParameters.id, options)
|
|
2063
|
+
.then((request) => request(this.axios, this.basePath));
|
|
2064
|
+
}
|
|
1639
2065
|
/**
|
|
1640
2066
|
* Get a `collaboration-context` by ID.
|
|
1641
2067
|
* @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
|
|
@@ -2760,6 +3186,42 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2760
3186
|
options: localVarRequestOptions,
|
|
2761
3187
|
};
|
|
2762
3188
|
}),
|
|
3189
|
+
/**
|
|
3190
|
+
* Create an upload uri for a `file` by ID.
|
|
3191
|
+
* @param {string} id The `file` ID.
|
|
3192
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3193
|
+
* @param {*} [options] Override http request option.
|
|
3194
|
+
* @throws {RequiredError}
|
|
3195
|
+
*/
|
|
3196
|
+
createUploadUrl: (id, createUploadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3197
|
+
var _c;
|
|
3198
|
+
// verify required parameter 'id' is not null or undefined
|
|
3199
|
+
(0, common_1.assertParamExists)('createUploadUrl', 'id', id);
|
|
3200
|
+
// verify required parameter 'createUploadRequest' is not null or undefined
|
|
3201
|
+
(0, common_1.assertParamExists)('createUploadUrl', 'createUploadRequest', createUploadRequest);
|
|
3202
|
+
const localVarPath = `/files/{id}/upload-url`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
3203
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3204
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3205
|
+
let baseOptions;
|
|
3206
|
+
if (configuration) {
|
|
3207
|
+
baseOptions = configuration.baseOptions;
|
|
3208
|
+
}
|
|
3209
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3210
|
+
const localVarHeaderParameter = {};
|
|
3211
|
+
const localVarQueryParameter = {};
|
|
3212
|
+
// authentication OAuth2 required
|
|
3213
|
+
// oauth required
|
|
3214
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
3215
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
3216
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3217
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
3218
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3219
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createUploadRequest, localVarRequestOptions, configuration);
|
|
3220
|
+
return {
|
|
3221
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3222
|
+
options: localVarRequestOptions,
|
|
3223
|
+
};
|
|
3224
|
+
}),
|
|
2763
3225
|
/**
|
|
2764
3226
|
* Delete a `file`.
|
|
2765
3227
|
* @param {string} id The `file` ID.
|
|
@@ -2767,7 +3229,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2767
3229
|
* @throws {RequiredError}
|
|
2768
3230
|
*/
|
|
2769
3231
|
deleteFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2770
|
-
var
|
|
3232
|
+
var _d;
|
|
2771
3233
|
// verify required parameter 'id' is not null or undefined
|
|
2772
3234
|
(0, common_1.assertParamExists)('deleteFile', 'id', id);
|
|
2773
3235
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2784,7 +3246,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2784
3246
|
// oauth required
|
|
2785
3247
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2786
3248
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2787
|
-
let headersFromBaseOptions = (
|
|
3249
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
2788
3250
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2789
3251
|
return {
|
|
2790
3252
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2798,7 +3260,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2798
3260
|
* @throws {RequiredError}
|
|
2799
3261
|
*/
|
|
2800
3262
|
getFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2801
|
-
var
|
|
3263
|
+
var _e;
|
|
2802
3264
|
// verify required parameter 'id' is not null or undefined
|
|
2803
3265
|
(0, common_1.assertParamExists)('getFile', 'id', id);
|
|
2804
3266
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2815,7 +3277,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2815
3277
|
// oauth required
|
|
2816
3278
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2817
3279
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2818
|
-
let headersFromBaseOptions = (
|
|
3280
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
2819
3281
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2820
3282
|
return {
|
|
2821
3283
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2831,7 +3293,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2831
3293
|
* @throws {RequiredError}
|
|
2832
3294
|
*/
|
|
2833
3295
|
getFiles: (pageCursor, pageSize, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2834
|
-
var
|
|
3296
|
+
var _f;
|
|
2835
3297
|
const localVarPath = `/files`;
|
|
2836
3298
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2837
3299
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2855,7 +3317,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2855
3317
|
localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
|
|
2856
3318
|
}
|
|
2857
3319
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2858
|
-
let headersFromBaseOptions = (
|
|
3320
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
2859
3321
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2860
3322
|
return {
|
|
2861
3323
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2870,7 +3332,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2870
3332
|
* @throws {RequiredError}
|
|
2871
3333
|
*/
|
|
2872
3334
|
updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2873
|
-
var
|
|
3335
|
+
var _g;
|
|
2874
3336
|
// verify required parameter 'id' is not null or undefined
|
|
2875
3337
|
(0, common_1.assertParamExists)('updateFile', 'id', id);
|
|
2876
3338
|
// verify required parameter 'updateFileRequest' is not null or undefined
|
|
@@ -2890,7 +3352,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2890
3352
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2891
3353
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2892
3354
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2893
|
-
let headersFromBaseOptions = (
|
|
3355
|
+
let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
|
|
2894
3356
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2895
3357
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFileRequest, localVarRequestOptions, configuration);
|
|
2896
3358
|
return {
|
|
@@ -2906,7 +3368,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2906
3368
|
* @throws {RequiredError}
|
|
2907
3369
|
*/
|
|
2908
3370
|
uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2909
|
-
var
|
|
3371
|
+
var _h;
|
|
2910
3372
|
// verify required parameter 'id' is not null or undefined
|
|
2911
3373
|
(0, common_1.assertParamExists)('uploadFile', 'id', id);
|
|
2912
3374
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -2926,7 +3388,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2926
3388
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2927
3389
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
2928
3390
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2929
|
-
let headersFromBaseOptions = (
|
|
3391
|
+
let headersFromBaseOptions = (_h = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _h !== void 0 ? _h : {};
|
|
2930
3392
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2931
3393
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2932
3394
|
return {
|
|
@@ -2958,14 +3420,27 @@ const FilesApiFp = function (configuration) {
|
|
|
2958
3420
|
});
|
|
2959
3421
|
},
|
|
2960
3422
|
/**
|
|
2961
|
-
* Create a `file`. Once created, upload file content via the uploadFile API. For details including supported file formats, see our [Import data](https://developer.vertexvis.com/docs/guides/import-data-with-api) guide.
|
|
2962
|
-
* @param {CreateFileRequest} createFileRequest
|
|
3423
|
+
* Create a `file`. Once created, upload file content via the uploadFile API. For details including supported file formats, see our [Import data](https://developer.vertexvis.com/docs/guides/import-data-with-api) guide.
|
|
3424
|
+
* @param {CreateFileRequest} createFileRequest
|
|
3425
|
+
* @param {*} [options] Override http request option.
|
|
3426
|
+
* @throws {RequiredError}
|
|
3427
|
+
*/
|
|
3428
|
+
createFile(createFileRequest, options) {
|
|
3429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3430
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createFile(createFileRequest, options);
|
|
3431
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
3432
|
+
});
|
|
3433
|
+
},
|
|
3434
|
+
/**
|
|
3435
|
+
* Create an upload uri for a `file` by ID.
|
|
3436
|
+
* @param {string} id The `file` ID.
|
|
3437
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
2963
3438
|
* @param {*} [options] Override http request option.
|
|
2964
3439
|
* @throws {RequiredError}
|
|
2965
3440
|
*/
|
|
2966
|
-
|
|
3441
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
2967
3442
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2968
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
3443
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createUploadUrl(id, createUploadRequest, options);
|
|
2969
3444
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2970
3445
|
});
|
|
2971
3446
|
},
|
|
@@ -3066,6 +3541,18 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
3066
3541
|
.createFile(createFileRequest, options)
|
|
3067
3542
|
.then((request) => request(axios, basePath));
|
|
3068
3543
|
},
|
|
3544
|
+
/**
|
|
3545
|
+
* Create an upload uri for a `file` by ID.
|
|
3546
|
+
* @param {string} id The `file` ID.
|
|
3547
|
+
* @param {CreateUploadRequest} createUploadRequest
|
|
3548
|
+
* @param {*} [options] Override http request option.
|
|
3549
|
+
* @throws {RequiredError}
|
|
3550
|
+
*/
|
|
3551
|
+
createUploadUrl(id, createUploadRequest, options) {
|
|
3552
|
+
return localVarFp
|
|
3553
|
+
.createUploadUrl(id, createUploadRequest, options)
|
|
3554
|
+
.then((request) => request(axios, basePath));
|
|
3555
|
+
},
|
|
3069
3556
|
/**
|
|
3070
3557
|
* Delete a `file`.
|
|
3071
3558
|
* @param {string} id The `file` ID.
|
|
@@ -3159,6 +3646,18 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
3159
3646
|
.createFile(requestParameters.createFileRequest, options)
|
|
3160
3647
|
.then((request) => request(this.axios, this.basePath));
|
|
3161
3648
|
}
|
|
3649
|
+
/**
|
|
3650
|
+
* Create an upload uri for a `file` by ID.
|
|
3651
|
+
* @param {FilesApiCreateUploadUrlRequest} requestParameters Request parameters.
|
|
3652
|
+
* @param {*} [options] Override http request option.
|
|
3653
|
+
* @throws {RequiredError}
|
|
3654
|
+
* @memberof FilesApi
|
|
3655
|
+
*/
|
|
3656
|
+
createUploadUrl(requestParameters, options) {
|
|
3657
|
+
return (0, exports.FilesApiFp)(this.configuration)
|
|
3658
|
+
.createUploadUrl(requestParameters.id, requestParameters.createUploadRequest, options)
|
|
3659
|
+
.then((request) => request(this.axios, this.basePath));
|
|
3660
|
+
}
|
|
3162
3661
|
/**
|
|
3163
3662
|
* Delete a `file`.
|
|
3164
3663
|
* @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
|
|
@@ -4581,7 +5080,7 @@ const PartRevisionInstancesApiAxiosParamCreator = function (configuration) {
|
|
|
4581
5080
|
return {
|
|
4582
5081
|
/**
|
|
4583
5082
|
* 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.
|
|
5083
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4585
5084
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4586
5085
|
* @param {number} [pageSize] The number of items to return.
|
|
4587
5086
|
* @param {*} [options] Override http request option.
|
|
@@ -4631,7 +5130,7 @@ const PartRevisionInstancesApiFp = function (configuration) {
|
|
|
4631
5130
|
return {
|
|
4632
5131
|
/**
|
|
4633
5132
|
* 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.
|
|
5133
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4635
5134
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4636
5135
|
* @param {number} [pageSize] The number of items to return.
|
|
4637
5136
|
* @param {*} [options] Override http request option.
|
|
@@ -4655,7 +5154,7 @@ const PartRevisionInstancesApiFactory = function (configuration, basePath, axios
|
|
|
4655
5154
|
return {
|
|
4656
5155
|
/**
|
|
4657
5156
|
* 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.
|
|
5157
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
4659
5158
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4660
5159
|
* @param {number} [pageSize] The number of items to return.
|
|
4661
5160
|
* @param {*} [options] Override http request option.
|
|
@@ -6378,6 +6877,37 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6378
6877
|
options: localVarRequestOptions,
|
|
6379
6878
|
};
|
|
6380
6879
|
}),
|
|
6880
|
+
/**
|
|
6881
|
+
* Remove a reply.
|
|
6882
|
+
* @param {string} id The `thread` ID.
|
|
6883
|
+
* @param {*} [options] Override http request option.
|
|
6884
|
+
* @throws {RequiredError}
|
|
6885
|
+
*/
|
|
6886
|
+
deleteReply: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6887
|
+
var _b;
|
|
6888
|
+
// verify required parameter 'id' is not null or undefined
|
|
6889
|
+
(0, common_1.assertParamExists)('deleteReply', 'id', id);
|
|
6890
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
6891
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6892
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
6893
|
+
let baseOptions;
|
|
6894
|
+
if (configuration) {
|
|
6895
|
+
baseOptions = configuration.baseOptions;
|
|
6896
|
+
}
|
|
6897
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
6898
|
+
const localVarHeaderParameter = {};
|
|
6899
|
+
const localVarQueryParameter = {};
|
|
6900
|
+
// authentication OAuth2 required
|
|
6901
|
+
// oauth required
|
|
6902
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
6903
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6904
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
6905
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6906
|
+
return {
|
|
6907
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6908
|
+
options: localVarRequestOptions,
|
|
6909
|
+
};
|
|
6910
|
+
}),
|
|
6381
6911
|
/**
|
|
6382
6912
|
* Get a `reply`.
|
|
6383
6913
|
* @param {string} id The `thread` ID.
|
|
@@ -6386,7 +6916,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6386
6916
|
* @throws {RequiredError}
|
|
6387
6917
|
*/
|
|
6388
6918
|
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6389
|
-
var
|
|
6919
|
+
var _c;
|
|
6390
6920
|
// verify required parameter 'id' is not null or undefined
|
|
6391
6921
|
(0, common_1.assertParamExists)('getReply', 'id', id);
|
|
6392
6922
|
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -6406,7 +6936,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6406
6936
|
localVarQueryParameter['include'] = include;
|
|
6407
6937
|
}
|
|
6408
6938
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6409
|
-
let headersFromBaseOptions = (
|
|
6939
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6410
6940
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6411
6941
|
return {
|
|
6412
6942
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -6423,7 +6953,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6423
6953
|
* @throws {RequiredError}
|
|
6424
6954
|
*/
|
|
6425
6955
|
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6426
|
-
var
|
|
6956
|
+
var _d;
|
|
6427
6957
|
const localVarPath = `/replies`;
|
|
6428
6958
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6429
6959
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6450,8 +6980,44 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6450
6980
|
localVarQueryParameter['include'] = include;
|
|
6451
6981
|
}
|
|
6452
6982
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6453
|
-
let headersFromBaseOptions = (
|
|
6983
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
6984
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6985
|
+
return {
|
|
6986
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6987
|
+
options: localVarRequestOptions,
|
|
6988
|
+
};
|
|
6989
|
+
}),
|
|
6990
|
+
/**
|
|
6991
|
+
* Update a `reply`.
|
|
6992
|
+
* @param {string} id The `thread` ID.
|
|
6993
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
6994
|
+
* @param {*} [options] Override http request option.
|
|
6995
|
+
* @throws {RequiredError}
|
|
6996
|
+
*/
|
|
6997
|
+
updateReply: (id, updateReplyRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6998
|
+
var _e;
|
|
6999
|
+
// verify required parameter 'id' is not null or undefined
|
|
7000
|
+
(0, common_1.assertParamExists)('updateReply', 'id', id);
|
|
7001
|
+
// verify required parameter 'updateReplyRequest' is not null or undefined
|
|
7002
|
+
(0, common_1.assertParamExists)('updateReply', 'updateReplyRequest', updateReplyRequest);
|
|
7003
|
+
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
7004
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7005
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7006
|
+
let baseOptions;
|
|
7007
|
+
if (configuration) {
|
|
7008
|
+
baseOptions = configuration.baseOptions;
|
|
7009
|
+
}
|
|
7010
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
7011
|
+
const localVarHeaderParameter = {};
|
|
7012
|
+
const localVarQueryParameter = {};
|
|
7013
|
+
// authentication OAuth2 required
|
|
7014
|
+
// oauth required
|
|
7015
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
7016
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
7017
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7018
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
6454
7019
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7020
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateReplyRequest, localVarRequestOptions, configuration);
|
|
6455
7021
|
return {
|
|
6456
7022
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6457
7023
|
options: localVarRequestOptions,
|
|
@@ -6480,6 +7046,18 @@ const RepliesApiFp = function (configuration) {
|
|
|
6480
7046
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6481
7047
|
});
|
|
6482
7048
|
},
|
|
7049
|
+
/**
|
|
7050
|
+
* Remove a reply.
|
|
7051
|
+
* @param {string} id The `thread` ID.
|
|
7052
|
+
* @param {*} [options] Override http request option.
|
|
7053
|
+
* @throws {RequiredError}
|
|
7054
|
+
*/
|
|
7055
|
+
deleteReply(id, options) {
|
|
7056
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7057
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteReply(id, options);
|
|
7058
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7059
|
+
});
|
|
7060
|
+
},
|
|
6483
7061
|
/**
|
|
6484
7062
|
* Get a `reply`.
|
|
6485
7063
|
* @param {string} id The `thread` ID.
|
|
@@ -6508,6 +7086,19 @@ const RepliesApiFp = function (configuration) {
|
|
|
6508
7086
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6509
7087
|
});
|
|
6510
7088
|
},
|
|
7089
|
+
/**
|
|
7090
|
+
* Update a `reply`.
|
|
7091
|
+
* @param {string} id The `thread` ID.
|
|
7092
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
7093
|
+
* @param {*} [options] Override http request option.
|
|
7094
|
+
* @throws {RequiredError}
|
|
7095
|
+
*/
|
|
7096
|
+
updateReply(id, updateReplyRequest, options) {
|
|
7097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7098
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateReply(id, updateReplyRequest, options);
|
|
7099
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
7100
|
+
});
|
|
7101
|
+
},
|
|
6511
7102
|
};
|
|
6512
7103
|
};
|
|
6513
7104
|
exports.RepliesApiFp = RepliesApiFp;
|
|
@@ -6530,6 +7121,17 @@ const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6530
7121
|
.createReply(id, createReplyRequest, options)
|
|
6531
7122
|
.then((request) => request(axios, basePath));
|
|
6532
7123
|
},
|
|
7124
|
+
/**
|
|
7125
|
+
* Remove a reply.
|
|
7126
|
+
* @param {string} id The `thread` ID.
|
|
7127
|
+
* @param {*} [options] Override http request option.
|
|
7128
|
+
* @throws {RequiredError}
|
|
7129
|
+
*/
|
|
7130
|
+
deleteReply(id, options) {
|
|
7131
|
+
return localVarFp
|
|
7132
|
+
.deleteReply(id, options)
|
|
7133
|
+
.then((request) => request(axios, basePath));
|
|
7134
|
+
},
|
|
6533
7135
|
/**
|
|
6534
7136
|
* Get a `reply`.
|
|
6535
7137
|
* @param {string} id The `thread` ID.
|
|
@@ -6556,6 +7158,18 @@ const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6556
7158
|
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6557
7159
|
.then((request) => request(axios, basePath));
|
|
6558
7160
|
},
|
|
7161
|
+
/**
|
|
7162
|
+
* Update a `reply`.
|
|
7163
|
+
* @param {string} id The `thread` ID.
|
|
7164
|
+
* @param {UpdateReplyRequest} updateReplyRequest
|
|
7165
|
+
* @param {*} [options] Override http request option.
|
|
7166
|
+
* @throws {RequiredError}
|
|
7167
|
+
*/
|
|
7168
|
+
updateReply(id, updateReplyRequest, options) {
|
|
7169
|
+
return localVarFp
|
|
7170
|
+
.updateReply(id, updateReplyRequest, options)
|
|
7171
|
+
.then((request) => request(axios, basePath));
|
|
7172
|
+
},
|
|
6559
7173
|
};
|
|
6560
7174
|
};
|
|
6561
7175
|
exports.RepliesApiFactory = RepliesApiFactory;
|
|
@@ -6578,6 +7192,18 @@ class RepliesApi extends base_1.BaseAPI {
|
|
|
6578
7192
|
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6579
7193
|
.then((request) => request(this.axios, this.basePath));
|
|
6580
7194
|
}
|
|
7195
|
+
/**
|
|
7196
|
+
* Remove a reply.
|
|
7197
|
+
* @param {RepliesApiDeleteReplyRequest} requestParameters Request parameters.
|
|
7198
|
+
* @param {*} [options] Override http request option.
|
|
7199
|
+
* @throws {RequiredError}
|
|
7200
|
+
* @memberof RepliesApi
|
|
7201
|
+
*/
|
|
7202
|
+
deleteReply(requestParameters, options) {
|
|
7203
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
7204
|
+
.deleteReply(requestParameters.id, options)
|
|
7205
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7206
|
+
}
|
|
6581
7207
|
/**
|
|
6582
7208
|
* Get a `reply`.
|
|
6583
7209
|
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
@@ -6602,6 +7228,18 @@ class RepliesApi extends base_1.BaseAPI {
|
|
|
6602
7228
|
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6603
7229
|
.then((request) => request(this.axios, this.basePath));
|
|
6604
7230
|
}
|
|
7231
|
+
/**
|
|
7232
|
+
* Update a `reply`.
|
|
7233
|
+
* @param {RepliesApiUpdateReplyRequest} requestParameters Request parameters.
|
|
7234
|
+
* @param {*} [options] Override http request option.
|
|
7235
|
+
* @throws {RequiredError}
|
|
7236
|
+
* @memberof RepliesApi
|
|
7237
|
+
*/
|
|
7238
|
+
updateReply(requestParameters, options) {
|
|
7239
|
+
return (0, exports.RepliesApiFp)(this.configuration)
|
|
7240
|
+
.updateReply(requestParameters.id, requestParameters.updateReplyRequest, options)
|
|
7241
|
+
.then((request) => request(this.axios, this.basePath));
|
|
7242
|
+
}
|
|
6605
7243
|
}
|
|
6606
7244
|
exports.RepliesApi = RepliesApi;
|
|
6607
7245
|
/**
|
|
@@ -7831,7 +8469,7 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7831
8469
|
* @param {number} [pageSize] The number of items to return.
|
|
7832
8470
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7833
8471
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7834
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8472
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
7835
8473
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7836
8474
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
7837
8475
|
* @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 +8640,7 @@ const SceneItemsApiFp = function (configuration) {
|
|
|
8002
8640
|
* @param {number} [pageSize] The number of items to return.
|
|
8003
8641
|
* @param {string} [filterSource] Source ID to filter on.
|
|
8004
8642
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8005
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8643
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
8006
8644
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8007
8645
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
8008
8646
|
* @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 +8740,7 @@ const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
8102
8740
|
* @param {number} [pageSize] The number of items to return.
|
|
8103
8741
|
* @param {string} [filterSource] Source ID to filter on.
|
|
8104
8742
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8105
|
-
* @param {string} [filterParent] Parent ID to filter on.
|
|
8743
|
+
* @param {string} [filterParent] Parent ID to filter on. Sending null will return items without a parent.
|
|
8106
8744
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8107
8745
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
8108
8746
|
* @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 +11213,37 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10575
11213
|
options: localVarRequestOptions,
|
|
10576
11214
|
};
|
|
10577
11215
|
}),
|
|
11216
|
+
/**
|
|
11217
|
+
* Remove a thread.
|
|
11218
|
+
* @param {string} id The `thread` ID.
|
|
11219
|
+
* @param {*} [options] Override http request option.
|
|
11220
|
+
* @throws {RequiredError}
|
|
11221
|
+
*/
|
|
11222
|
+
deleteThread: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11223
|
+
var _b;
|
|
11224
|
+
// verify required parameter 'id' is not null or undefined
|
|
11225
|
+
(0, common_1.assertParamExists)('deleteThread', 'id', id);
|
|
11226
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11227
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11228
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11229
|
+
let baseOptions;
|
|
11230
|
+
if (configuration) {
|
|
11231
|
+
baseOptions = configuration.baseOptions;
|
|
11232
|
+
}
|
|
11233
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
11234
|
+
const localVarHeaderParameter = {};
|
|
11235
|
+
const localVarQueryParameter = {};
|
|
11236
|
+
// authentication OAuth2 required
|
|
11237
|
+
// oauth required
|
|
11238
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11239
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11240
|
+
let headersFromBaseOptions = (_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _b !== void 0 ? _b : {};
|
|
11241
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11242
|
+
return {
|
|
11243
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11244
|
+
options: localVarRequestOptions,
|
|
11245
|
+
};
|
|
11246
|
+
}),
|
|
10578
11247
|
/**
|
|
10579
11248
|
* Get a `thread`.
|
|
10580
11249
|
* @param {string} id The `thread` ID.
|
|
@@ -10584,7 +11253,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10584
11253
|
* @throws {RequiredError}
|
|
10585
11254
|
*/
|
|
10586
11255
|
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10587
|
-
var
|
|
11256
|
+
var _c;
|
|
10588
11257
|
// verify required parameter 'id' is not null or undefined
|
|
10589
11258
|
(0, common_1.assertParamExists)('getThread', 'id', id);
|
|
10590
11259
|
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10607,7 +11276,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10607
11276
|
localVarQueryParameter['include'] = include;
|
|
10608
11277
|
}
|
|
10609
11278
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10610
|
-
let headersFromBaseOptions = (
|
|
11279
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10611
11280
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10612
11281
|
return {
|
|
10613
11282
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10621,7 +11290,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10621
11290
|
* @throws {RequiredError}
|
|
10622
11291
|
*/
|
|
10623
11292
|
getThreadParticipants: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10624
|
-
var
|
|
11293
|
+
var _d;
|
|
10625
11294
|
// verify required parameter 'id' is not null or undefined
|
|
10626
11295
|
(0, common_1.assertParamExists)('getThreadParticipants', 'id', id);
|
|
10627
11296
|
const localVarPath = `/threads/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10638,7 +11307,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10638
11307
|
// oauth required
|
|
10639
11308
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10640
11309
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10641
|
-
let headersFromBaseOptions = (
|
|
11310
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
10642
11311
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10643
11312
|
return {
|
|
10644
11313
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10652,11 +11321,12 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10652
11321
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10653
11322
|
* @param {number} [pageSize] The number of items to return.
|
|
10654
11323
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11324
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
10655
11325
|
* @param {*} [options] Override http request option.
|
|
10656
11326
|
* @throws {RequiredError}
|
|
10657
11327
|
*/
|
|
10658
|
-
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10659
|
-
var
|
|
11328
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11329
|
+
var _e;
|
|
10660
11330
|
const localVarPath = `/threads`;
|
|
10661
11331
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10662
11332
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -10686,9 +11356,49 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10686
11356
|
if (include !== undefined) {
|
|
10687
11357
|
localVarQueryParameter['include'] = include;
|
|
10688
11358
|
}
|
|
11359
|
+
if (filterThreadStatus) {
|
|
11360
|
+
localVarQueryParameter['filter[threadStatus]'] =
|
|
11361
|
+
filterThreadStatus.join(base_1.COLLECTION_FORMATS.csv);
|
|
11362
|
+
}
|
|
10689
11363
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10690
|
-
let headersFromBaseOptions = (
|
|
11364
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
11365
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11366
|
+
return {
|
|
11367
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11368
|
+
options: localVarRequestOptions,
|
|
11369
|
+
};
|
|
11370
|
+
}),
|
|
11371
|
+
/**
|
|
11372
|
+
* Update a `thread`.
|
|
11373
|
+
* @param {string} id The `thread` ID.
|
|
11374
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
11375
|
+
* @param {*} [options] Override http request option.
|
|
11376
|
+
* @throws {RequiredError}
|
|
11377
|
+
*/
|
|
11378
|
+
updateThread: (id, updateThreadRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11379
|
+
var _f;
|
|
11380
|
+
// verify required parameter 'id' is not null or undefined
|
|
11381
|
+
(0, common_1.assertParamExists)('updateThread', 'id', id);
|
|
11382
|
+
// verify required parameter 'updateThreadRequest' is not null or undefined
|
|
11383
|
+
(0, common_1.assertParamExists)('updateThread', 'updateThreadRequest', updateThreadRequest);
|
|
11384
|
+
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
11385
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11386
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11387
|
+
let baseOptions;
|
|
11388
|
+
if (configuration) {
|
|
11389
|
+
baseOptions = configuration.baseOptions;
|
|
11390
|
+
}
|
|
11391
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
11392
|
+
const localVarHeaderParameter = {};
|
|
11393
|
+
const localVarQueryParameter = {};
|
|
11394
|
+
// authentication OAuth2 required
|
|
11395
|
+
// oauth required
|
|
11396
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11397
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11398
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11399
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
10691
11400
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11401
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateThreadRequest, localVarRequestOptions, configuration);
|
|
10692
11402
|
return {
|
|
10693
11403
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10694
11404
|
options: localVarRequestOptions,
|
|
@@ -10717,6 +11427,18 @@ const ThreadsApiFp = function (configuration) {
|
|
|
10717
11427
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10718
11428
|
});
|
|
10719
11429
|
},
|
|
11430
|
+
/**
|
|
11431
|
+
* Remove a thread.
|
|
11432
|
+
* @param {string} id The `thread` ID.
|
|
11433
|
+
* @param {*} [options] Override http request option.
|
|
11434
|
+
* @throws {RequiredError}
|
|
11435
|
+
*/
|
|
11436
|
+
deleteThread(id, options) {
|
|
11437
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11438
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteThread(id, options);
|
|
11439
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11440
|
+
});
|
|
11441
|
+
},
|
|
10720
11442
|
/**
|
|
10721
11443
|
* Get a `thread`.
|
|
10722
11444
|
* @param {string} id The `thread` ID.
|
|
@@ -10750,12 +11472,26 @@ const ThreadsApiFp = function (configuration) {
|
|
|
10750
11472
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10751
11473
|
* @param {number} [pageSize] The number of items to return.
|
|
10752
11474
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11475
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11476
|
+
* @param {*} [options] Override http request option.
|
|
11477
|
+
* @throws {RequiredError}
|
|
11478
|
+
*/
|
|
11479
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11481
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options);
|
|
11482
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11483
|
+
});
|
|
11484
|
+
},
|
|
11485
|
+
/**
|
|
11486
|
+
* Update a `thread`.
|
|
11487
|
+
* @param {string} id The `thread` ID.
|
|
11488
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10753
11489
|
* @param {*} [options] Override http request option.
|
|
10754
11490
|
* @throws {RequiredError}
|
|
10755
11491
|
*/
|
|
10756
|
-
|
|
11492
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10757
11493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10758
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11494
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThread(id, updateThreadRequest, options);
|
|
10759
11495
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10760
11496
|
});
|
|
10761
11497
|
},
|
|
@@ -10781,6 +11517,17 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10781
11517
|
.createThread(id, createThreadRequest, options)
|
|
10782
11518
|
.then((request) => request(axios, basePath));
|
|
10783
11519
|
},
|
|
11520
|
+
/**
|
|
11521
|
+
* Remove a thread.
|
|
11522
|
+
* @param {string} id The `thread` ID.
|
|
11523
|
+
* @param {*} [options] Override http request option.
|
|
11524
|
+
* @throws {RequiredError}
|
|
11525
|
+
*/
|
|
11526
|
+
deleteThread(id, options) {
|
|
11527
|
+
return localVarFp
|
|
11528
|
+
.deleteThread(id, options)
|
|
11529
|
+
.then((request) => request(axios, basePath));
|
|
11530
|
+
},
|
|
10784
11531
|
/**
|
|
10785
11532
|
* Get a `thread`.
|
|
10786
11533
|
* @param {string} id The `thread` ID.
|
|
@@ -10812,12 +11559,25 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10812
11559
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10813
11560
|
* @param {number} [pageSize] The number of items to return.
|
|
10814
11561
|
* @param {string} [include] Comma-separated list of relationships to include in response.
|
|
11562
|
+
* @param {Array<ThreadStatus>} [filterThreadStatus] The statuses of a thread to filter by. Send as a CSV list, e.g. open,resolved.
|
|
11563
|
+
* @param {*} [options] Override http request option.
|
|
11564
|
+
* @throws {RequiredError}
|
|
11565
|
+
*/
|
|
11566
|
+
getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options) {
|
|
11567
|
+
return localVarFp
|
|
11568
|
+
.getThreads(fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options)
|
|
11569
|
+
.then((request) => request(axios, basePath));
|
|
11570
|
+
},
|
|
11571
|
+
/**
|
|
11572
|
+
* Update a `thread`.
|
|
11573
|
+
* @param {string} id The `thread` ID.
|
|
11574
|
+
* @param {UpdateThreadRequest} updateThreadRequest
|
|
10815
11575
|
* @param {*} [options] Override http request option.
|
|
10816
11576
|
* @throws {RequiredError}
|
|
10817
11577
|
*/
|
|
10818
|
-
|
|
11578
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10819
11579
|
return localVarFp
|
|
10820
|
-
.
|
|
11580
|
+
.updateThread(id, updateThreadRequest, options)
|
|
10821
11581
|
.then((request) => request(axios, basePath));
|
|
10822
11582
|
},
|
|
10823
11583
|
};
|
|
@@ -10842,6 +11602,18 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10842
11602
|
.createThread(requestParameters.id, requestParameters.createThreadRequest, options)
|
|
10843
11603
|
.then((request) => request(this.axios, this.basePath));
|
|
10844
11604
|
}
|
|
11605
|
+
/**
|
|
11606
|
+
* Remove a thread.
|
|
11607
|
+
* @param {ThreadsApiDeleteThreadRequest} requestParameters Request parameters.
|
|
11608
|
+
* @param {*} [options] Override http request option.
|
|
11609
|
+
* @throws {RequiredError}
|
|
11610
|
+
* @memberof ThreadsApi
|
|
11611
|
+
*/
|
|
11612
|
+
deleteThread(requestParameters, options) {
|
|
11613
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
11614
|
+
.deleteThread(requestParameters.id, options)
|
|
11615
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11616
|
+
}
|
|
10845
11617
|
/**
|
|
10846
11618
|
* Get a `thread`.
|
|
10847
11619
|
* @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
|
|
@@ -10875,7 +11647,19 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10875
11647
|
*/
|
|
10876
11648
|
getThreads(requestParameters = {}, options) {
|
|
10877
11649
|
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10878
|
-
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
11650
|
+
.getThreads(requestParameters.fieldsThread, requestParameters.filterCollaborationContextId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, requestParameters.filterThreadStatus, options)
|
|
11651
|
+
.then((request) => request(this.axios, this.basePath));
|
|
11652
|
+
}
|
|
11653
|
+
/**
|
|
11654
|
+
* Update a `thread`.
|
|
11655
|
+
* @param {ThreadsApiUpdateThreadRequest} requestParameters Request parameters.
|
|
11656
|
+
* @param {*} [options] Override http request option.
|
|
11657
|
+
* @throws {RequiredError}
|
|
11658
|
+
* @memberof ThreadsApi
|
|
11659
|
+
*/
|
|
11660
|
+
updateThread(requestParameters, options) {
|
|
11661
|
+
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
11662
|
+
.updateThread(requestParameters.id, requestParameters.updateThreadRequest, options)
|
|
10879
11663
|
.then((request) => request(this.axios, this.basePath));
|
|
10880
11664
|
}
|
|
10881
11665
|
}
|