@vertexvis/api-client-node 0.33.2 → 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 +1277 -83
- package/dist/cjs/api.js +766 -47
- package/dist/cjs/client/helpers/scenes.js +14 -4
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/esm/api.d.ts +1277 -83
- package/dist/esm/api.js +758 -43
- package/dist/esm/client/helpers/scenes.js +14 -4
- 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
|
|
@@ -41,6 +41,7 @@ exports.AccountRelationshipDataTypeEnum = {
|
|
|
41
41
|
};
|
|
42
42
|
exports.BatchOperationOpEnum = {
|
|
43
43
|
Add: 'add',
|
|
44
|
+
Remove: 'remove',
|
|
44
45
|
};
|
|
45
46
|
exports.BatchOperationRefTypeEnum = {
|
|
46
47
|
Scene: 'scene',
|
|
@@ -73,6 +74,9 @@ exports.ClearTransformOpTypeEnum = {
|
|
|
73
74
|
exports.CollaborationContextRelationshipDataTypeEnum = {
|
|
74
75
|
CollaborationContext: 'collaboration-context',
|
|
75
76
|
};
|
|
77
|
+
exports.CreateAttachmentRequestDataTypeEnum = {
|
|
78
|
+
Attachment: 'attachment',
|
|
79
|
+
};
|
|
76
80
|
exports.CreateCollaborationContextRequestDataTypeEnum = {
|
|
77
81
|
CollaborationContext: 'collaboration-context',
|
|
78
82
|
};
|
|
@@ -123,6 +127,9 @@ exports.ExportRelationshipDataTypeEnum = {
|
|
|
123
127
|
exports.ExportStateRelationshipDataTypeEnum = {
|
|
124
128
|
SceneViewState: 'scene-view-state',
|
|
125
129
|
};
|
|
130
|
+
exports.FileAttachmentTypeEnum = {
|
|
131
|
+
File: 'file',
|
|
132
|
+
};
|
|
126
133
|
exports.FileCollectionMetadataDataTypeEnum = {
|
|
127
134
|
FileCollection: 'file-collection',
|
|
128
135
|
};
|
|
@@ -144,6 +151,9 @@ exports.PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
|
144
151
|
exports.PartInstanceRelationshipDataTypeEnum = {
|
|
145
152
|
PartInstance: 'part-instance',
|
|
146
153
|
};
|
|
154
|
+
exports.PartInstancesRelationshipDataTypeEnum = {
|
|
155
|
+
PartRevisionInstance: 'part-revision-instance',
|
|
156
|
+
};
|
|
147
157
|
exports.PartRelationshipDataTypeEnum = {
|
|
148
158
|
Part: 'part',
|
|
149
159
|
};
|
|
@@ -236,6 +246,9 @@ exports.SceneRelationshipDataTypeEnum = {
|
|
|
236
246
|
exports.SceneViewRelationshipDataTypeEnum = {
|
|
237
247
|
SceneView: 'scene-view',
|
|
238
248
|
};
|
|
249
|
+
exports.SceneViewStateAttachmentTypeEnum = {
|
|
250
|
+
SceneViewState: 'scene-view-state',
|
|
251
|
+
};
|
|
239
252
|
exports.SceneViewStateRelationshipDataTypeEnum = {
|
|
240
253
|
SceneViewState: 'scene-view-state',
|
|
241
254
|
};
|
|
@@ -325,12 +338,24 @@ exports.WebhookSubscriptionDataAttributesStatusEnum = {
|
|
|
325
338
|
Active: 'active',
|
|
326
339
|
Paused: 'paused',
|
|
327
340
|
};
|
|
341
|
+
exports.WithFileContentTypeEnum = {
|
|
342
|
+
FileContent: 'file-content',
|
|
343
|
+
};
|
|
344
|
+
exports.WithReplyTypeEnum = {
|
|
345
|
+
Reply: 'reply',
|
|
346
|
+
};
|
|
328
347
|
exports.WithSceneViewIdTypeEnum = {
|
|
329
348
|
SceneViewId: 'scene-view-id',
|
|
330
349
|
};
|
|
350
|
+
exports.WithSceneViewStateContentTypeEnum = {
|
|
351
|
+
SceneViewStateContent: 'scene-view-state-content',
|
|
352
|
+
};
|
|
331
353
|
exports.WithSceneViewStateIdTypeEnum = {
|
|
332
354
|
SceneViewStateId: 'scene-view-state-id',
|
|
333
355
|
};
|
|
356
|
+
exports.WithThreadTypeEnum = {
|
|
357
|
+
Thread: 'thread',
|
|
358
|
+
};
|
|
334
359
|
/**
|
|
335
360
|
* AccountsApi - axios parameter creator
|
|
336
361
|
* @export
|
|
@@ -1105,6 +1130,202 @@ class ApplicationsApi extends base_1.BaseAPI {
|
|
|
1105
1130
|
}
|
|
1106
1131
|
}
|
|
1107
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;
|
|
1108
1329
|
/**
|
|
1109
1330
|
* BatchesApi - axios parameter creator
|
|
1110
1331
|
* @export
|
|
@@ -1418,6 +1639,37 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1418
1639
|
options: localVarRequestOptions,
|
|
1419
1640
|
};
|
|
1420
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
|
+
}),
|
|
1421
1673
|
/**
|
|
1422
1674
|
* Get a `collaboration-context` by ID.
|
|
1423
1675
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1425,7 +1677,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1425
1677
|
* @throws {RequiredError}
|
|
1426
1678
|
*/
|
|
1427
1679
|
getCollaborationContext: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1428
|
-
var
|
|
1680
|
+
var _d;
|
|
1429
1681
|
// verify required parameter 'id' is not null or undefined
|
|
1430
1682
|
(0, common_1.assertParamExists)('getCollaborationContext', 'id', id);
|
|
1431
1683
|
const localVarPath = `/collaboration-contexts/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -1442,7 +1694,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1442
1694
|
// oauth required
|
|
1443
1695
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1444
1696
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1445
|
-
let headersFromBaseOptions = (
|
|
1697
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
1446
1698
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1447
1699
|
return {
|
|
1448
1700
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -1457,7 +1709,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1457
1709
|
* @throws {RequiredError}
|
|
1458
1710
|
*/
|
|
1459
1711
|
listCollaborationContexts: (pageCursor, pageSize, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1460
|
-
var
|
|
1712
|
+
var _e;
|
|
1461
1713
|
const localVarPath = `/collaboration-contexts`;
|
|
1462
1714
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1463
1715
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -1478,7 +1730,7 @@ const CollaborationContextsApiAxiosParamCreator = function (configuration) {
|
|
|
1478
1730
|
localVarQueryParameter['page[size]'] = pageSize;
|
|
1479
1731
|
}
|
|
1480
1732
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1481
|
-
let headersFromBaseOptions = (
|
|
1733
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
1482
1734
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1483
1735
|
return {
|
|
1484
1736
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -1520,6 +1772,18 @@ const CollaborationContextsApiFp = function (configuration) {
|
|
|
1520
1772
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
1521
1773
|
});
|
|
1522
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
|
+
},
|
|
1523
1787
|
/**
|
|
1524
1788
|
* Get a `collaboration-context` by ID.
|
|
1525
1789
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1578,6 +1842,17 @@ const CollaborationContextsApiFactory = function (configuration, basePath, axios
|
|
|
1578
1842
|
.createCollaborationContext(createCollaborationContextRequest, options)
|
|
1579
1843
|
.then((request) => request(axios, basePath));
|
|
1580
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
|
+
},
|
|
1581
1856
|
/**
|
|
1582
1857
|
* Get a `collaboration-context` by ID.
|
|
1583
1858
|
* @param {string} id The `collaboration-context` ID.
|
|
@@ -1635,6 +1910,18 @@ class CollaborationContextsApi extends base_1.BaseAPI {
|
|
|
1635
1910
|
.createCollaborationContext(requestParameters.createCollaborationContextRequest, options)
|
|
1636
1911
|
.then((request) => request(this.axios, this.basePath));
|
|
1637
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
|
+
}
|
|
1638
1925
|
/**
|
|
1639
1926
|
* Get a `collaboration-context` by ID.
|
|
1640
1927
|
* @param {CollaborationContextsApiGetCollaborationContextRequest} requestParameters Request parameters.
|
|
@@ -2759,6 +3046,42 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2759
3046
|
options: localVarRequestOptions,
|
|
2760
3047
|
};
|
|
2761
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
|
+
}),
|
|
2762
3085
|
/**
|
|
2763
3086
|
* Delete a `file`.
|
|
2764
3087
|
* @param {string} id The `file` ID.
|
|
@@ -2766,7 +3089,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2766
3089
|
* @throws {RequiredError}
|
|
2767
3090
|
*/
|
|
2768
3091
|
deleteFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2769
|
-
var
|
|
3092
|
+
var _d;
|
|
2770
3093
|
// verify required parameter 'id' is not null or undefined
|
|
2771
3094
|
(0, common_1.assertParamExists)('deleteFile', 'id', id);
|
|
2772
3095
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2783,7 +3106,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2783
3106
|
// oauth required
|
|
2784
3107
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2785
3108
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2786
|
-
let headersFromBaseOptions = (
|
|
3109
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
2787
3110
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2788
3111
|
return {
|
|
2789
3112
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2797,7 +3120,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2797
3120
|
* @throws {RequiredError}
|
|
2798
3121
|
*/
|
|
2799
3122
|
getFile: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2800
|
-
var
|
|
3123
|
+
var _e;
|
|
2801
3124
|
// verify required parameter 'id' is not null or undefined
|
|
2802
3125
|
(0, common_1.assertParamExists)('getFile', 'id', id);
|
|
2803
3126
|
const localVarPath = `/files/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2814,7 +3137,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2814
3137
|
// oauth required
|
|
2815
3138
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2816
3139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2817
|
-
let headersFromBaseOptions = (
|
|
3140
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
2818
3141
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2819
3142
|
return {
|
|
2820
3143
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2830,7 +3153,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2830
3153
|
* @throws {RequiredError}
|
|
2831
3154
|
*/
|
|
2832
3155
|
getFiles: (pageCursor, pageSize, filterSuppliedId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2833
|
-
var
|
|
3156
|
+
var _f;
|
|
2834
3157
|
const localVarPath = `/files`;
|
|
2835
3158
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2836
3159
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -2854,7 +3177,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2854
3177
|
localVarQueryParameter['filter[suppliedId]'] = filterSuppliedId;
|
|
2855
3178
|
}
|
|
2856
3179
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2857
|
-
let headersFromBaseOptions = (
|
|
3180
|
+
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
2858
3181
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2859
3182
|
return {
|
|
2860
3183
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -2869,7 +3192,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2869
3192
|
* @throws {RequiredError}
|
|
2870
3193
|
*/
|
|
2871
3194
|
updateFile: (id, updateFileRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2872
|
-
var
|
|
3195
|
+
var _g;
|
|
2873
3196
|
// verify required parameter 'id' is not null or undefined
|
|
2874
3197
|
(0, common_1.assertParamExists)('updateFile', 'id', id);
|
|
2875
3198
|
// verify required parameter 'updateFileRequest' is not null or undefined
|
|
@@ -2889,7 +3212,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2889
3212
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2890
3213
|
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
2891
3214
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2892
|
-
let headersFromBaseOptions = (
|
|
3215
|
+
let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
|
|
2893
3216
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2894
3217
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFileRequest, localVarRequestOptions, configuration);
|
|
2895
3218
|
return {
|
|
@@ -2905,7 +3228,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2905
3228
|
* @throws {RequiredError}
|
|
2906
3229
|
*/
|
|
2907
3230
|
uploadFile: (id, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2908
|
-
var
|
|
3231
|
+
var _h;
|
|
2909
3232
|
// verify required parameter 'id' is not null or undefined
|
|
2910
3233
|
(0, common_1.assertParamExists)('uploadFile', 'id', id);
|
|
2911
3234
|
// verify required parameter 'body' is not null or undefined
|
|
@@ -2925,7 +3248,7 @@ const FilesApiAxiosParamCreator = function (configuration) {
|
|
|
2925
3248
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
2926
3249
|
localVarHeaderParameter['Content-Type'] = 'application/octet-stream';
|
|
2927
3250
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2928
|
-
let headersFromBaseOptions = (
|
|
3251
|
+
let headersFromBaseOptions = (_h = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _h !== void 0 ? _h : {};
|
|
2929
3252
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2930
3253
|
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
2931
3254
|
return {
|
|
@@ -2968,6 +3291,19 @@ const FilesApiFp = function (configuration) {
|
|
|
2968
3291
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
2969
3292
|
});
|
|
2970
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
|
+
},
|
|
2971
3307
|
/**
|
|
2972
3308
|
* Delete a `file`.
|
|
2973
3309
|
* @param {string} id The `file` ID.
|
|
@@ -3065,6 +3401,18 @@ const FilesApiFactory = function (configuration, basePath, axios) {
|
|
|
3065
3401
|
.createFile(createFileRequest, options)
|
|
3066
3402
|
.then((request) => request(axios, basePath));
|
|
3067
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
|
+
},
|
|
3068
3416
|
/**
|
|
3069
3417
|
* Delete a `file`.
|
|
3070
3418
|
* @param {string} id The `file` ID.
|
|
@@ -3158,6 +3506,18 @@ class FilesApi extends base_1.BaseAPI {
|
|
|
3158
3506
|
.createFile(requestParameters.createFileRequest, options)
|
|
3159
3507
|
.then((request) => request(this.axios, this.basePath));
|
|
3160
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
|
+
}
|
|
3161
3521
|
/**
|
|
3162
3522
|
* Delete a `file`.
|
|
3163
3523
|
* @param {FilesApiDeleteFileRequest} requestParameters Request parameters.
|
|
@@ -4580,7 +4940,7 @@ const PartRevisionInstancesApiAxiosParamCreator = function (configuration) {
|
|
|
4580
4940
|
return {
|
|
4581
4941
|
/**
|
|
4582
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.
|
|
4583
|
-
* @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.
|
|
4584
4944
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4585
4945
|
* @param {number} [pageSize] The number of items to return.
|
|
4586
4946
|
* @param {*} [options] Override http request option.
|
|
@@ -4630,7 +4990,7 @@ const PartRevisionInstancesApiFp = function (configuration) {
|
|
|
4630
4990
|
return {
|
|
4631
4991
|
/**
|
|
4632
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.
|
|
4633
|
-
* @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.
|
|
4634
4994
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4635
4995
|
* @param {number} [pageSize] The number of items to return.
|
|
4636
4996
|
* @param {*} [options] Override http request option.
|
|
@@ -4654,7 +5014,7 @@ const PartRevisionInstancesApiFactory = function (configuration, basePath, axios
|
|
|
4654
5014
|
return {
|
|
4655
5015
|
/**
|
|
4656
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.
|
|
4657
|
-
* @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.
|
|
4658
5018
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
4659
5019
|
* @param {number} [pageSize] The number of items to return.
|
|
4660
5020
|
* @param {*} [options] Override http request option.
|
|
@@ -6377,6 +6737,37 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6377
6737
|
options: localVarRequestOptions,
|
|
6378
6738
|
};
|
|
6379
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
|
+
}),
|
|
6380
6771
|
/**
|
|
6381
6772
|
* Get a `reply`.
|
|
6382
6773
|
* @param {string} id The `thread` ID.
|
|
@@ -6385,7 +6776,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6385
6776
|
* @throws {RequiredError}
|
|
6386
6777
|
*/
|
|
6387
6778
|
getReply: (id, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6388
|
-
var
|
|
6779
|
+
var _c;
|
|
6389
6780
|
// verify required parameter 'id' is not null or undefined
|
|
6390
6781
|
(0, common_1.assertParamExists)('getReply', 'id', id);
|
|
6391
6782
|
const localVarPath = `/replies/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -6405,7 +6796,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6405
6796
|
localVarQueryParameter['include'] = include;
|
|
6406
6797
|
}
|
|
6407
6798
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6408
|
-
let headersFromBaseOptions = (
|
|
6799
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
6409
6800
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6410
6801
|
return {
|
|
6411
6802
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -6422,7 +6813,7 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6422
6813
|
* @throws {RequiredError}
|
|
6423
6814
|
*/
|
|
6424
6815
|
listReplies: (filterThreadId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6425
|
-
var
|
|
6816
|
+
var _d;
|
|
6426
6817
|
const localVarPath = `/replies`;
|
|
6427
6818
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
6428
6819
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -6449,8 +6840,44 @@ const RepliesApiAxiosParamCreator = function (configuration) {
|
|
|
6449
6840
|
localVarQueryParameter['include'] = include;
|
|
6450
6841
|
}
|
|
6451
6842
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6452
|
-
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 : {};
|
|
6453
6879
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
6880
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateReplyRequest, localVarRequestOptions, configuration);
|
|
6454
6881
|
return {
|
|
6455
6882
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
6456
6883
|
options: localVarRequestOptions,
|
|
@@ -6479,6 +6906,18 @@ const RepliesApiFp = function (configuration) {
|
|
|
6479
6906
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6480
6907
|
});
|
|
6481
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
|
+
},
|
|
6482
6921
|
/**
|
|
6483
6922
|
* Get a `reply`.
|
|
6484
6923
|
* @param {string} id The `thread` ID.
|
|
@@ -6507,6 +6946,19 @@ const RepliesApiFp = function (configuration) {
|
|
|
6507
6946
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
6508
6947
|
});
|
|
6509
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
|
+
},
|
|
6510
6962
|
};
|
|
6511
6963
|
};
|
|
6512
6964
|
exports.RepliesApiFp = RepliesApiFp;
|
|
@@ -6529,6 +6981,17 @@ const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6529
6981
|
.createReply(id, createReplyRequest, options)
|
|
6530
6982
|
.then((request) => request(axios, basePath));
|
|
6531
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
|
+
},
|
|
6532
6995
|
/**
|
|
6533
6996
|
* Get a `reply`.
|
|
6534
6997
|
* @param {string} id The `thread` ID.
|
|
@@ -6555,6 +7018,18 @@ const RepliesApiFactory = function (configuration, basePath, axios) {
|
|
|
6555
7018
|
.listReplies(filterThreadId, pageCursor, pageSize, include, options)
|
|
6556
7019
|
.then((request) => request(axios, basePath));
|
|
6557
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
|
+
},
|
|
6558
7033
|
};
|
|
6559
7034
|
};
|
|
6560
7035
|
exports.RepliesApiFactory = RepliesApiFactory;
|
|
@@ -6577,6 +7052,18 @@ class RepliesApi extends base_1.BaseAPI {
|
|
|
6577
7052
|
.createReply(requestParameters.id, requestParameters.createReplyRequest, options)
|
|
6578
7053
|
.then((request) => request(this.axios, this.basePath));
|
|
6579
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
|
+
}
|
|
6580
7067
|
/**
|
|
6581
7068
|
* Get a `reply`.
|
|
6582
7069
|
* @param {RepliesApiGetReplyRequest} requestParameters Request parameters.
|
|
@@ -6601,6 +7088,18 @@ class RepliesApi extends base_1.BaseAPI {
|
|
|
6601
7088
|
.listReplies(requestParameters.filterThreadId, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.include, options)
|
|
6602
7089
|
.then((request) => request(this.axios, this.basePath));
|
|
6603
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
|
+
}
|
|
6604
7103
|
}
|
|
6605
7104
|
exports.RepliesApi = RepliesApi;
|
|
6606
7105
|
/**
|
|
@@ -7830,13 +8329,14 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7830
8329
|
* @param {number} [pageSize] The number of items to return.
|
|
7831
8330
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7832
8331
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
7833
|
-
* @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.
|
|
7834
8333
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
7835
8334
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
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.
|
|
7836
8336
|
* @param {*} [options] Override http request option.
|
|
7837
8337
|
* @throws {RequiredError}
|
|
7838
8338
|
*/
|
|
7839
|
-
getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
8339
|
+
getSceneItems: (id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7840
8340
|
var _f;
|
|
7841
8341
|
// verify required parameter 'id' is not null or undefined
|
|
7842
8342
|
(0, common_1.assertParamExists)('getSceneItems', 'id', id);
|
|
@@ -7874,6 +8374,9 @@ const SceneItemsApiAxiosParamCreator = function (configuration) {
|
|
|
7874
8374
|
if (filterHasGeometrySet !== undefined) {
|
|
7875
8375
|
localVarQueryParameter['filter[hasGeometrySet]'] = filterHasGeometrySet;
|
|
7876
8376
|
}
|
|
8377
|
+
if (sort !== undefined) {
|
|
8378
|
+
localVarQueryParameter['sort'] = sort;
|
|
8379
|
+
}
|
|
7877
8380
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7878
8381
|
let headersFromBaseOptions = (_f = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _f !== void 0 ? _f : {};
|
|
7879
8382
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7997,15 +8500,16 @@ const SceneItemsApiFp = function (configuration) {
|
|
|
7997
8500
|
* @param {number} [pageSize] The number of items to return.
|
|
7998
8501
|
* @param {string} [filterSource] Source ID to filter on.
|
|
7999
8502
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8000
|
-
* @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.
|
|
8001
8504
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8002
8505
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
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.
|
|
8003
8507
|
* @param {*} [options] Override http request option.
|
|
8004
8508
|
* @throws {RequiredError}
|
|
8005
8509
|
*/
|
|
8006
|
-
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
|
|
8510
|
+
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options) {
|
|
8007
8511
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8008
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options);
|
|
8512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options);
|
|
8009
8513
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
8010
8514
|
});
|
|
8011
8515
|
},
|
|
@@ -8096,15 +8600,16 @@ const SceneItemsApiFactory = function (configuration, basePath, axios) {
|
|
|
8096
8600
|
* @param {number} [pageSize] The number of items to return.
|
|
8097
8601
|
* @param {string} [filterSource] Source ID to filter on.
|
|
8098
8602
|
* @param {string} [filterSuppliedId] Comma-separated list of supplied IDs to filter on.
|
|
8099
|
-
* @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.
|
|
8100
8604
|
* @param {boolean} [filterHasChildren] Filter scene-items based on whether they are the parent of at least one other scene-item
|
|
8101
8605
|
* @param {boolean} [filterHasGeometrySet] Filter scene-items based on whether they have an associated geometry-set.
|
|
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.
|
|
8102
8607
|
* @param {*} [options] Override http request option.
|
|
8103
8608
|
* @throws {RequiredError}
|
|
8104
8609
|
*/
|
|
8105
|
-
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options) {
|
|
8610
|
+
getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options) {
|
|
8106
8611
|
return localVarFp
|
|
8107
|
-
.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, options)
|
|
8612
|
+
.getSceneItems(id, pageCursor, pageSize, filterSource, filterSuppliedId, filterParent, filterHasChildren, filterHasGeometrySet, sort, options)
|
|
8108
8613
|
.then((request) => request(axios, basePath));
|
|
8109
8614
|
},
|
|
8110
8615
|
/**
|
|
@@ -8198,7 +8703,7 @@ class SceneItemsApi extends base_1.BaseAPI {
|
|
|
8198
8703
|
*/
|
|
8199
8704
|
getSceneItems(requestParameters, options) {
|
|
8200
8705
|
return (0, exports.SceneItemsApiFp)(this.configuration)
|
|
8201
|
-
.getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, options)
|
|
8706
|
+
.getSceneItems(requestParameters.id, requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterSource, requestParameters.filterSuppliedId, requestParameters.filterParent, requestParameters.filterHasChildren, requestParameters.filterHasGeometrySet, requestParameters.sort, options)
|
|
8202
8707
|
.then((request) => request(this.axios, this.basePath));
|
|
8203
8708
|
}
|
|
8204
8709
|
/**
|
|
@@ -10568,6 +11073,37 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10568
11073
|
options: localVarRequestOptions,
|
|
10569
11074
|
};
|
|
10570
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
|
+
}),
|
|
10571
11107
|
/**
|
|
10572
11108
|
* Get a `thread`.
|
|
10573
11109
|
* @param {string} id The `thread` ID.
|
|
@@ -10577,7 +11113,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10577
11113
|
* @throws {RequiredError}
|
|
10578
11114
|
*/
|
|
10579
11115
|
getThread: (id, fieldsThread, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10580
|
-
var
|
|
11116
|
+
var _c;
|
|
10581
11117
|
// verify required parameter 'id' is not null or undefined
|
|
10582
11118
|
(0, common_1.assertParamExists)('getThread', 'id', id);
|
|
10583
11119
|
const localVarPath = `/threads/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10600,7 +11136,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10600
11136
|
localVarQueryParameter['include'] = include;
|
|
10601
11137
|
}
|
|
10602
11138
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10603
|
-
let headersFromBaseOptions = (
|
|
11139
|
+
let headersFromBaseOptions = (_c = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _c !== void 0 ? _c : {};
|
|
10604
11140
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10605
11141
|
return {
|
|
10606
11142
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10614,7 +11150,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10614
11150
|
* @throws {RequiredError}
|
|
10615
11151
|
*/
|
|
10616
11152
|
getThreadParticipants: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10617
|
-
var
|
|
11153
|
+
var _d;
|
|
10618
11154
|
// verify required parameter 'id' is not null or undefined
|
|
10619
11155
|
(0, common_1.assertParamExists)('getThreadParticipants', 'id', id);
|
|
10620
11156
|
const localVarPath = `/threads/{id}/users`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -10631,7 +11167,7 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10631
11167
|
// oauth required
|
|
10632
11168
|
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
10633
11169
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10634
|
-
let headersFromBaseOptions = (
|
|
11170
|
+
let headersFromBaseOptions = (_d = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _d !== void 0 ? _d : {};
|
|
10635
11171
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10636
11172
|
return {
|
|
10637
11173
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
@@ -10645,11 +11181,12 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10645
11181
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10646
11182
|
* @param {number} [pageSize] The number of items to return.
|
|
10647
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.
|
|
10648
11185
|
* @param {*} [options] Override http request option.
|
|
10649
11186
|
* @throws {RequiredError}
|
|
10650
11187
|
*/
|
|
10651
|
-
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
10652
|
-
var
|
|
11188
|
+
getThreads: (fieldsThread, filterCollaborationContextId, pageCursor, pageSize, include, filterThreadStatus, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11189
|
+
var _e;
|
|
10653
11190
|
const localVarPath = `/threads`;
|
|
10654
11191
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
10655
11192
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -10679,14 +11216,54 @@ const ThreadsApiAxiosParamCreator = function (configuration) {
|
|
|
10679
11216
|
if (include !== undefined) {
|
|
10680
11217
|
localVarQueryParameter['include'] = include;
|
|
10681
11218
|
}
|
|
11219
|
+
if (filterThreadStatus) {
|
|
11220
|
+
localVarQueryParameter['filter[threadStatus]'] =
|
|
11221
|
+
filterThreadStatus.join(base_1.COLLECTION_FORMATS.csv);
|
|
11222
|
+
}
|
|
10682
11223
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
10683
|
-
let headersFromBaseOptions = (
|
|
11224
|
+
let headersFromBaseOptions = (_e = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _e !== void 0 ? _e : {};
|
|
10684
11225
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
10685
11226
|
return {
|
|
10686
11227
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
10687
11228
|
options: localVarRequestOptions,
|
|
10688
11229
|
};
|
|
10689
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
|
+
}),
|
|
10690
11267
|
};
|
|
10691
11268
|
};
|
|
10692
11269
|
exports.ThreadsApiAxiosParamCreator = ThreadsApiAxiosParamCreator;
|
|
@@ -10710,6 +11287,18 @@ const ThreadsApiFp = function (configuration) {
|
|
|
10710
11287
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10711
11288
|
});
|
|
10712
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
|
+
},
|
|
10713
11302
|
/**
|
|
10714
11303
|
* Get a `thread`.
|
|
10715
11304
|
* @param {string} id The `thread` ID.
|
|
@@ -10743,12 +11332,26 @@ const ThreadsApiFp = function (configuration) {
|
|
|
10743
11332
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10744
11333
|
* @param {number} [pageSize] The number of items to return.
|
|
10745
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
|
|
10746
11349
|
* @param {*} [options] Override http request option.
|
|
10747
11350
|
* @throws {RequiredError}
|
|
10748
11351
|
*/
|
|
10749
|
-
|
|
11352
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10750
11353
|
return __awaiter(this, void 0, void 0, function* () {
|
|
10751
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
11354
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateThread(id, updateThreadRequest, options);
|
|
10752
11355
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
10753
11356
|
});
|
|
10754
11357
|
},
|
|
@@ -10774,6 +11377,17 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10774
11377
|
.createThread(id, createThreadRequest, options)
|
|
10775
11378
|
.then((request) => request(axios, basePath));
|
|
10776
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
|
+
},
|
|
10777
11391
|
/**
|
|
10778
11392
|
* Get a `thread`.
|
|
10779
11393
|
* @param {string} id The `thread` ID.
|
|
@@ -10805,12 +11419,25 @@ const ThreadsApiFactory = function (configuration, basePath, axios) {
|
|
|
10805
11419
|
* @param {string} [pageCursor] The cursor for the next page of items.
|
|
10806
11420
|
* @param {number} [pageSize] The number of items to return.
|
|
10807
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
|
|
10808
11435
|
* @param {*} [options] Override http request option.
|
|
10809
11436
|
* @throws {RequiredError}
|
|
10810
11437
|
*/
|
|
10811
|
-
|
|
11438
|
+
updateThread(id, updateThreadRequest, options) {
|
|
10812
11439
|
return localVarFp
|
|
10813
|
-
.
|
|
11440
|
+
.updateThread(id, updateThreadRequest, options)
|
|
10814
11441
|
.then((request) => request(axios, basePath));
|
|
10815
11442
|
},
|
|
10816
11443
|
};
|
|
@@ -10835,6 +11462,18 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10835
11462
|
.createThread(requestParameters.id, requestParameters.createThreadRequest, options)
|
|
10836
11463
|
.then((request) => request(this.axios, this.basePath));
|
|
10837
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
|
+
}
|
|
10838
11477
|
/**
|
|
10839
11478
|
* Get a `thread`.
|
|
10840
11479
|
* @param {ThreadsApiGetThreadRequest} requestParameters Request parameters.
|
|
@@ -10868,7 +11507,19 @@ class ThreadsApi extends base_1.BaseAPI {
|
|
|
10868
11507
|
*/
|
|
10869
11508
|
getThreads(requestParameters = {}, options) {
|
|
10870
11509
|
return (0, exports.ThreadsApiFp)(this.configuration)
|
|
10871
|
-
.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)
|
|
10872
11523
|
.then((request) => request(this.axios, this.basePath));
|
|
10873
11524
|
}
|
|
10874
11525
|
}
|
|
@@ -11095,6 +11746,39 @@ const TranslationInspectionsApiAxiosParamCreator = function (configuration) {
|
|
|
11095
11746
|
options: localVarRequestOptions,
|
|
11096
11747
|
};
|
|
11097
11748
|
}),
|
|
11749
|
+
/**
|
|
11750
|
+
* Get all the specified translation jobs.
|
|
11751
|
+
* @param {QueryTranslationJobs} queryTranslationJobs
|
|
11752
|
+
* @param {*} [options] Override http request option.
|
|
11753
|
+
* @throws {RequiredError}
|
|
11754
|
+
*/
|
|
11755
|
+
postQueryTranslationJobs: (queryTranslationJobs, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
11756
|
+
var _g;
|
|
11757
|
+
// verify required parameter 'queryTranslationJobs' is not null or undefined
|
|
11758
|
+
(0, common_1.assertParamExists)('postQueryTranslationJobs', 'queryTranslationJobs', queryTranslationJobs);
|
|
11759
|
+
const localVarPath = `/query-translation-jobs`;
|
|
11760
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
11761
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
11762
|
+
let baseOptions;
|
|
11763
|
+
if (configuration) {
|
|
11764
|
+
baseOptions = configuration.baseOptions;
|
|
11765
|
+
}
|
|
11766
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
11767
|
+
const localVarHeaderParameter = {};
|
|
11768
|
+
const localVarQueryParameter = {};
|
|
11769
|
+
// authentication OAuth2 required
|
|
11770
|
+
// oauth required
|
|
11771
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
11772
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
11773
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
11774
|
+
let headersFromBaseOptions = (_g = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) !== null && _g !== void 0 ? _g : {};
|
|
11775
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
11776
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(queryTranslationJobs, localVarRequestOptions, configuration);
|
|
11777
|
+
return {
|
|
11778
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
11779
|
+
options: localVarRequestOptions,
|
|
11780
|
+
};
|
|
11781
|
+
}),
|
|
11098
11782
|
};
|
|
11099
11783
|
};
|
|
11100
11784
|
exports.TranslationInspectionsApiAxiosParamCreator = TranslationInspectionsApiAxiosParamCreator;
|
|
@@ -11185,6 +11869,18 @@ const TranslationInspectionsApiFp = function (configuration) {
|
|
|
11185
11869
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11186
11870
|
});
|
|
11187
11871
|
},
|
|
11872
|
+
/**
|
|
11873
|
+
* Get all the specified translation jobs.
|
|
11874
|
+
* @param {QueryTranslationJobs} queryTranslationJobs
|
|
11875
|
+
* @param {*} [options] Override http request option.
|
|
11876
|
+
* @throws {RequiredError}
|
|
11877
|
+
*/
|
|
11878
|
+
postQueryTranslationJobs(queryTranslationJobs, options) {
|
|
11879
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11880
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postQueryTranslationJobs(queryTranslationJobs, options);
|
|
11881
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
11882
|
+
});
|
|
11883
|
+
},
|
|
11188
11884
|
};
|
|
11189
11885
|
};
|
|
11190
11886
|
exports.TranslationInspectionsApiFp = TranslationInspectionsApiFp;
|
|
@@ -11269,6 +11965,17 @@ const TranslationInspectionsApiFactory = function (configuration, basePath, axio
|
|
|
11269
11965
|
.getQueuedTranslations(pageCursor, pageSize, filterStatus, options)
|
|
11270
11966
|
.then((request) => request(axios, basePath));
|
|
11271
11967
|
},
|
|
11968
|
+
/**
|
|
11969
|
+
* Get all the specified translation jobs.
|
|
11970
|
+
* @param {QueryTranslationJobs} queryTranslationJobs
|
|
11971
|
+
* @param {*} [options] Override http request option.
|
|
11972
|
+
* @throws {RequiredError}
|
|
11973
|
+
*/
|
|
11974
|
+
postQueryTranslationJobs(queryTranslationJobs, options) {
|
|
11975
|
+
return localVarFp
|
|
11976
|
+
.postQueryTranslationJobs(queryTranslationJobs, options)
|
|
11977
|
+
.then((request) => request(axios, basePath));
|
|
11978
|
+
},
|
|
11272
11979
|
};
|
|
11273
11980
|
};
|
|
11274
11981
|
exports.TranslationInspectionsApiFactory = TranslationInspectionsApiFactory;
|
|
@@ -11353,6 +12060,18 @@ class TranslationInspectionsApi extends base_1.BaseAPI {
|
|
|
11353
12060
|
.getQueuedTranslations(requestParameters.pageCursor, requestParameters.pageSize, requestParameters.filterStatus, options)
|
|
11354
12061
|
.then((request) => request(this.axios, this.basePath));
|
|
11355
12062
|
}
|
|
12063
|
+
/**
|
|
12064
|
+
* Get all the specified translation jobs.
|
|
12065
|
+
* @param {TranslationInspectionsApiPostQueryTranslationJobsRequest} requestParameters Request parameters.
|
|
12066
|
+
* @param {*} [options] Override http request option.
|
|
12067
|
+
* @throws {RequiredError}
|
|
12068
|
+
* @memberof TranslationInspectionsApi
|
|
12069
|
+
*/
|
|
12070
|
+
postQueryTranslationJobs(requestParameters, options) {
|
|
12071
|
+
return (0, exports.TranslationInspectionsApiFp)(this.configuration)
|
|
12072
|
+
.postQueryTranslationJobs(requestParameters.queryTranslationJobs, options)
|
|
12073
|
+
.then((request) => request(this.axios, this.basePath));
|
|
12074
|
+
}
|
|
11356
12075
|
}
|
|
11357
12076
|
exports.TranslationInspectionsApi = TranslationInspectionsApi;
|
|
11358
12077
|
/**
|