@vertexvis/api-client-node 0.15.6 → 0.17.1
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 +647 -248
- package/dist/cjs/api.js +393 -248
- package/dist/cjs/client/helpers/exports.d.ts +15 -0
- package/dist/cjs/client/helpers/exports.js +39 -0
- package/dist/cjs/client/helpers/index.d.ts +1 -0
- package/dist/cjs/client/helpers/index.js +1 -0
- package/dist/cjs/client/version.d.ts +1 -1
- package/dist/cjs/client/version.js +1 -1
- package/dist/cjs/client/vertex-client.d.ts +2 -1
- package/dist/cjs/client/vertex-client.js +1 -0
- package/dist/esm/api.d.ts +647 -248
- package/dist/esm/api.js +386 -245
- package/dist/esm/client/helpers/exports.d.ts +15 -0
- package/dist/esm/client/helpers/exports.js +35 -0
- package/dist/esm/client/helpers/index.d.ts +1 -0
- package/dist/esm/client/helpers/index.js +1 -0
- package/dist/esm/client/version.d.ts +1 -1
- package/dist/esm/client/version.js +1 -1
- package/dist/esm/client/vertex-client.d.ts +2 -1
- package/dist/esm/client/vertex-client.js +2 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -26,250 +26,112 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setBasicAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI } from './base';
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
export
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
* @export
|
|
80
|
-
* @enum {string}
|
|
81
|
-
*/
|
|
82
|
-
export var ClearMaterialOperationTypeEnum;
|
|
83
|
-
(function (ClearMaterialOperationTypeEnum) {
|
|
84
|
-
ClearMaterialOperationTypeEnum["ClearMaterial"] = "clear-material";
|
|
85
|
-
})(ClearMaterialOperationTypeEnum || (ClearMaterialOperationTypeEnum = {}));
|
|
86
|
-
/**
|
|
87
|
-
* @export
|
|
88
|
-
* @enum {string}
|
|
89
|
-
*/
|
|
90
|
-
export var ClearTransformOperationTypeEnum;
|
|
91
|
-
(function (ClearTransformOperationTypeEnum) {
|
|
92
|
-
ClearTransformOperationTypeEnum["ClearTransform"] = "clear-transform";
|
|
93
|
-
})(ClearTransformOperationTypeEnum || (ClearTransformOperationTypeEnum = {}));
|
|
94
|
-
/**
|
|
95
|
-
* @export
|
|
96
|
-
* @enum {string}
|
|
97
|
-
*/
|
|
98
|
-
export var DeselectOperationTypeEnum;
|
|
99
|
-
(function (DeselectOperationTypeEnum) {
|
|
100
|
-
DeselectOperationTypeEnum["Deselect"] = "deselect";
|
|
101
|
-
})(DeselectOperationTypeEnum || (DeselectOperationTypeEnum = {}));
|
|
102
|
-
/**
|
|
103
|
-
* @export
|
|
104
|
-
* @enum {string}
|
|
105
|
-
*/
|
|
106
|
-
export var FileRelationshipDataTypeEnum;
|
|
107
|
-
(function (FileRelationshipDataTypeEnum) {
|
|
108
|
-
FileRelationshipDataTypeEnum["File"] = "file";
|
|
109
|
-
})(FileRelationshipDataTypeEnum || (FileRelationshipDataTypeEnum = {}));
|
|
110
|
-
/**
|
|
111
|
-
* @export
|
|
112
|
-
* @enum {string}
|
|
113
|
-
*/
|
|
114
|
-
export var GeometrySetRelationshipDataTypeEnum;
|
|
115
|
-
(function (GeometrySetRelationshipDataTypeEnum) {
|
|
116
|
-
GeometrySetRelationshipDataTypeEnum["GeometrySet"] = "geometry-set";
|
|
117
|
-
})(GeometrySetRelationshipDataTypeEnum || (GeometrySetRelationshipDataTypeEnum = {}));
|
|
118
|
-
/**
|
|
119
|
-
* @export
|
|
120
|
-
* @enum {string}
|
|
121
|
-
*/
|
|
122
|
-
export var MetadataValueTypeEnum;
|
|
123
|
-
(function (MetadataValueTypeEnum) {
|
|
124
|
-
MetadataValueTypeEnum["String"] = "string";
|
|
125
|
-
MetadataValueTypeEnum["Long"] = "long";
|
|
126
|
-
MetadataValueTypeEnum["Float"] = "float";
|
|
127
|
-
MetadataValueTypeEnum["Date"] = "date";
|
|
128
|
-
MetadataValueTypeEnum["Null"] = "null";
|
|
129
|
-
})(MetadataValueTypeEnum || (MetadataValueTypeEnum = {}));
|
|
130
|
-
/**
|
|
131
|
-
* @export
|
|
132
|
-
* @enum {string}
|
|
133
|
-
*/
|
|
134
|
-
export var PartDataRelationshipsPartRevisionsTypeEnum;
|
|
135
|
-
(function (PartDataRelationshipsPartRevisionsTypeEnum) {
|
|
136
|
-
PartDataRelationshipsPartRevisionsTypeEnum["PartRevision"] = "part-revision";
|
|
137
|
-
})(PartDataRelationshipsPartRevisionsTypeEnum || (PartDataRelationshipsPartRevisionsTypeEnum = {}));
|
|
138
|
-
/**
|
|
139
|
-
* @export
|
|
140
|
-
* @enum {string}
|
|
141
|
-
*/
|
|
142
|
-
export var PartRelationshipDataTypeEnum;
|
|
143
|
-
(function (PartRelationshipDataTypeEnum) {
|
|
144
|
-
PartRelationshipDataTypeEnum["Part"] = "part";
|
|
145
|
-
})(PartRelationshipDataTypeEnum || (PartRelationshipDataTypeEnum = {}));
|
|
29
|
+
export const BatchOperationOpEnum = {
|
|
30
|
+
Add: 'add',
|
|
31
|
+
};
|
|
32
|
+
export const BatchOperationRefTypeEnum = {
|
|
33
|
+
Scene: 'scene',
|
|
34
|
+
};
|
|
35
|
+
export const CameraFitTypeEnum = {
|
|
36
|
+
FitVisibleSceneItems: 'fit-visible-scene-items',
|
|
37
|
+
Reset: 'reset',
|
|
38
|
+
};
|
|
39
|
+
export const ChangeMaterialOperationTypeEnum = {
|
|
40
|
+
ChangeMaterial: 'change-material',
|
|
41
|
+
};
|
|
42
|
+
export const ChangeTransformOperationTypeEnum = {
|
|
43
|
+
ChangeTransform: 'change-transform',
|
|
44
|
+
};
|
|
45
|
+
export const ChangeVisibilityOperationTypeEnum = {
|
|
46
|
+
ChangeVisibility: 'change-visibility',
|
|
47
|
+
};
|
|
48
|
+
export const ClearMaterialOperationTypeEnum = {
|
|
49
|
+
ClearMaterial: 'clear-material',
|
|
50
|
+
};
|
|
51
|
+
export const ClearTransformOperationTypeEnum = {
|
|
52
|
+
ClearTransform: 'clear-transform',
|
|
53
|
+
};
|
|
54
|
+
export const DeselectOperationTypeEnum = {
|
|
55
|
+
Deselect: 'deselect',
|
|
56
|
+
};
|
|
57
|
+
export const ExportRelationshipDataTypeEnum = {
|
|
58
|
+
Scene: 'scene',
|
|
59
|
+
};
|
|
60
|
+
export const FileRelationshipDataTypeEnum = {
|
|
61
|
+
File: 'file',
|
|
62
|
+
};
|
|
63
|
+
export const GeometrySetRelationshipDataTypeEnum = {
|
|
64
|
+
GeometrySet: 'geometry-set',
|
|
65
|
+
};
|
|
66
|
+
export const MetadataValueTypeEnum = {
|
|
67
|
+
String: 'string',
|
|
68
|
+
Long: 'long',
|
|
69
|
+
Float: 'float',
|
|
70
|
+
Date: 'date',
|
|
71
|
+
Null: 'null',
|
|
72
|
+
};
|
|
73
|
+
export const PartDataRelationshipsPartRevisionsTypeEnum = {
|
|
74
|
+
PartRevision: 'part-revision',
|
|
75
|
+
};
|
|
76
|
+
export const PartRelationshipDataTypeEnum = {
|
|
77
|
+
Part: 'part',
|
|
78
|
+
};
|
|
146
79
|
/**
|
|
147
80
|
* Resource object type.
|
|
148
81
|
* @export
|
|
149
82
|
* @enum {string}
|
|
150
83
|
*/
|
|
151
|
-
export
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
(function (SceneRelationshipDataTypeEnum) {
|
|
203
|
-
SceneRelationshipDataTypeEnum["Scene"] = "scene";
|
|
204
|
-
})(SceneRelationshipDataTypeEnum || (SceneRelationshipDataTypeEnum = {}));
|
|
205
|
-
/**
|
|
206
|
-
* @export
|
|
207
|
-
* @enum {string}
|
|
208
|
-
*/
|
|
209
|
-
export var SceneViewRelationshipDataTypeEnum;
|
|
210
|
-
(function (SceneViewRelationshipDataTypeEnum) {
|
|
211
|
-
SceneViewRelationshipDataTypeEnum["SceneView"] = "scene-view";
|
|
212
|
-
})(SceneViewRelationshipDataTypeEnum || (SceneViewRelationshipDataTypeEnum = {}));
|
|
213
|
-
/**
|
|
214
|
-
* @export
|
|
215
|
-
* @enum {string}
|
|
216
|
-
*/
|
|
217
|
-
export var SceneViewStateRelationshipDataTypeEnum;
|
|
218
|
-
(function (SceneViewStateRelationshipDataTypeEnum) {
|
|
219
|
-
SceneViewStateRelationshipDataTypeEnum["SceneViewState"] = "scene-view-state";
|
|
220
|
-
})(SceneViewStateRelationshipDataTypeEnum || (SceneViewStateRelationshipDataTypeEnum = {}));
|
|
221
|
-
/**
|
|
222
|
-
* @export
|
|
223
|
-
* @enum {string}
|
|
224
|
-
*/
|
|
225
|
-
export var SelectOperationTypeEnum;
|
|
226
|
-
(function (SelectOperationTypeEnum) {
|
|
227
|
-
SelectOperationTypeEnum["Select"] = "select";
|
|
228
|
-
})(SelectOperationTypeEnum || (SelectOperationTypeEnum = {}));
|
|
229
|
-
/**
|
|
230
|
-
* @export
|
|
231
|
-
* @enum {string}
|
|
232
|
-
*/
|
|
233
|
-
export var UpdateAccountRequestDataAttributesStatusEnum;
|
|
234
|
-
(function (UpdateAccountRequestDataAttributesStatusEnum) {
|
|
235
|
-
UpdateAccountRequestDataAttributesStatusEnum["Active"] = "active";
|
|
236
|
-
UpdateAccountRequestDataAttributesStatusEnum["Disabled"] = "disabled";
|
|
237
|
-
})(UpdateAccountRequestDataAttributesStatusEnum || (UpdateAccountRequestDataAttributesStatusEnum = {}));
|
|
238
|
-
/**
|
|
239
|
-
* @export
|
|
240
|
-
* @enum {string}
|
|
241
|
-
*/
|
|
242
|
-
export var UpdateSceneRequestDataAttributesStateEnum;
|
|
243
|
-
(function (UpdateSceneRequestDataAttributesStateEnum) {
|
|
244
|
-
UpdateSceneRequestDataAttributesStateEnum["Draft"] = "draft";
|
|
245
|
-
UpdateSceneRequestDataAttributesStateEnum["Commit"] = "commit";
|
|
246
|
-
})(UpdateSceneRequestDataAttributesStateEnum || (UpdateSceneRequestDataAttributesStateEnum = {}));
|
|
247
|
-
/**
|
|
248
|
-
* @export
|
|
249
|
-
* @enum {string}
|
|
250
|
-
*/
|
|
251
|
-
export var UpdateWebhookSubscriptionRequestDataAttributesStatusEnum;
|
|
252
|
-
(function (UpdateWebhookSubscriptionRequestDataAttributesStatusEnum) {
|
|
253
|
-
UpdateWebhookSubscriptionRequestDataAttributesStatusEnum["Active"] = "active";
|
|
254
|
-
UpdateWebhookSubscriptionRequestDataAttributesStatusEnum["Paused"] = "paused";
|
|
255
|
-
})(UpdateWebhookSubscriptionRequestDataAttributesStatusEnum || (UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {}));
|
|
256
|
-
/**
|
|
257
|
-
* @export
|
|
258
|
-
* @enum {string}
|
|
259
|
-
*/
|
|
260
|
-
export var WebhookEventDataRelationshipsOwnerDataTypeEnum;
|
|
261
|
-
(function (WebhookEventDataRelationshipsOwnerDataTypeEnum) {
|
|
262
|
-
WebhookEventDataRelationshipsOwnerDataTypeEnum["Account"] = "account";
|
|
263
|
-
})(WebhookEventDataRelationshipsOwnerDataTypeEnum || (WebhookEventDataRelationshipsOwnerDataTypeEnum = {}));
|
|
264
|
-
/**
|
|
265
|
-
* @export
|
|
266
|
-
* @enum {string}
|
|
267
|
-
*/
|
|
268
|
-
export var WebhookSubscriptionDataAttributesStatusEnum;
|
|
269
|
-
(function (WebhookSubscriptionDataAttributesStatusEnum) {
|
|
270
|
-
WebhookSubscriptionDataAttributesStatusEnum["Active"] = "active";
|
|
271
|
-
WebhookSubscriptionDataAttributesStatusEnum["Paused"] = "paused";
|
|
272
|
-
})(WebhookSubscriptionDataAttributesStatusEnum || (WebhookSubscriptionDataAttributesStatusEnum = {}));
|
|
84
|
+
export const QueryAll = {
|
|
85
|
+
All: 'all',
|
|
86
|
+
};
|
|
87
|
+
export const QueryByCollectionDataTypeEnum = {
|
|
88
|
+
QueryByCollection: 'query-by-collection',
|
|
89
|
+
};
|
|
90
|
+
export const QueryByCollectionDataAttributesTypeEnum = {
|
|
91
|
+
And: 'and',
|
|
92
|
+
Or: 'or',
|
|
93
|
+
};
|
|
94
|
+
export const QueryByIdDataTypeEnum = {
|
|
95
|
+
QueryById: 'query-by-id',
|
|
96
|
+
};
|
|
97
|
+
export const QueryByIdDataAttributesTypeEnum = {
|
|
98
|
+
Id: 'id',
|
|
99
|
+
SuppliedId: 'suppliedId',
|
|
100
|
+
};
|
|
101
|
+
export const SceneItemRelationshipDataTypeEnum = {
|
|
102
|
+
SceneItem: 'scene-item',
|
|
103
|
+
};
|
|
104
|
+
export const SceneRelationshipDataTypeEnum = {
|
|
105
|
+
Scene: 'scene',
|
|
106
|
+
};
|
|
107
|
+
export const SceneViewRelationshipDataTypeEnum = {
|
|
108
|
+
SceneView: 'scene-view',
|
|
109
|
+
};
|
|
110
|
+
export const SceneViewStateRelationshipDataTypeEnum = {
|
|
111
|
+
SceneViewState: 'scene-view-state',
|
|
112
|
+
};
|
|
113
|
+
export const SelectOperationTypeEnum = {
|
|
114
|
+
Select: 'select',
|
|
115
|
+
};
|
|
116
|
+
export const UpdateAccountRequestDataAttributesStatusEnum = {
|
|
117
|
+
Active: 'active',
|
|
118
|
+
Disabled: 'disabled',
|
|
119
|
+
};
|
|
120
|
+
export const UpdateSceneRequestDataAttributesStateEnum = {
|
|
121
|
+
Draft: 'draft',
|
|
122
|
+
Commit: 'commit',
|
|
123
|
+
};
|
|
124
|
+
export const UpdateWebhookSubscriptionRequestDataAttributesStatusEnum = {
|
|
125
|
+
Active: 'active',
|
|
126
|
+
Paused: 'paused',
|
|
127
|
+
};
|
|
128
|
+
export const WebhookEventDataRelationshipsOwnerDataTypeEnum = {
|
|
129
|
+
Account: 'account',
|
|
130
|
+
};
|
|
131
|
+
export const WebhookSubscriptionDataAttributesStatusEnum = {
|
|
132
|
+
Active: 'active',
|
|
133
|
+
Paused: 'paused',
|
|
134
|
+
};
|
|
273
135
|
/**
|
|
274
136
|
* AccountsApi - axios parameter creator
|
|
275
137
|
* @export
|
|
@@ -1251,6 +1113,237 @@ export class BatchesApi extends BaseAPI {
|
|
|
1251
1113
|
.then((request) => request(this.axios, this.basePath));
|
|
1252
1114
|
}
|
|
1253
1115
|
}
|
|
1116
|
+
/**
|
|
1117
|
+
* ExportsApi - axios parameter creator
|
|
1118
|
+
* @export
|
|
1119
|
+
*/
|
|
1120
|
+
export const ExportsApiAxiosParamCreator = function (configuration) {
|
|
1121
|
+
return {
|
|
1122
|
+
/**
|
|
1123
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1124
|
+
* @param {CreateExportRequest} createExportRequest
|
|
1125
|
+
* @param {*} [options] Override http request option.
|
|
1126
|
+
* @throws {RequiredError}
|
|
1127
|
+
*/
|
|
1128
|
+
createExport: (createExportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1129
|
+
// verify required parameter 'createExportRequest' is not null or undefined
|
|
1130
|
+
assertParamExists('createExport', 'createExportRequest', createExportRequest);
|
|
1131
|
+
const localVarPath = `/exports`;
|
|
1132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1134
|
+
let baseOptions;
|
|
1135
|
+
if (configuration) {
|
|
1136
|
+
baseOptions = configuration.baseOptions;
|
|
1137
|
+
}
|
|
1138
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
1139
|
+
const localVarHeaderParameter = {};
|
|
1140
|
+
const localVarQueryParameter = {};
|
|
1141
|
+
// authentication OAuth2 required
|
|
1142
|
+
// oauth required
|
|
1143
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1144
|
+
localVarHeaderParameter['Content-Type'] = 'application/vnd.api+json';
|
|
1145
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1146
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1147
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1148
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createExportRequest, localVarRequestOptions, configuration);
|
|
1149
|
+
return {
|
|
1150
|
+
url: toPathString(localVarUrlObj),
|
|
1151
|
+
options: localVarRequestOptions,
|
|
1152
|
+
};
|
|
1153
|
+
}),
|
|
1154
|
+
/**
|
|
1155
|
+
* Get an `export` by ID.
|
|
1156
|
+
* @param {string} id The `export` ID.
|
|
1157
|
+
* @param {*} [options] Override http request option.
|
|
1158
|
+
* @throws {RequiredError}
|
|
1159
|
+
*/
|
|
1160
|
+
getExport: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1161
|
+
// verify required parameter 'id' is not null or undefined
|
|
1162
|
+
assertParamExists('getExport', 'id', id);
|
|
1163
|
+
const localVarPath = `/exports/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1164
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1165
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1166
|
+
let baseOptions;
|
|
1167
|
+
if (configuration) {
|
|
1168
|
+
baseOptions = configuration.baseOptions;
|
|
1169
|
+
}
|
|
1170
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1171
|
+
const localVarHeaderParameter = {};
|
|
1172
|
+
const localVarQueryParameter = {};
|
|
1173
|
+
// authentication OAuth2 required
|
|
1174
|
+
// oauth required
|
|
1175
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1178
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1179
|
+
return {
|
|
1180
|
+
url: toPathString(localVarUrlObj),
|
|
1181
|
+
options: localVarRequestOptions,
|
|
1182
|
+
};
|
|
1183
|
+
}),
|
|
1184
|
+
/**
|
|
1185
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1186
|
+
* @param {string} id The `queued-export` ID.
|
|
1187
|
+
* @param {*} [options] Override http request option.
|
|
1188
|
+
* @throws {RequiredError}
|
|
1189
|
+
*/
|
|
1190
|
+
getQueuedExport: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1191
|
+
// verify required parameter 'id' is not null or undefined
|
|
1192
|
+
assertParamExists('getQueuedExport', 'id', id);
|
|
1193
|
+
const localVarPath = `/queued-exports/{id}`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
1194
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1195
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1196
|
+
let baseOptions;
|
|
1197
|
+
if (configuration) {
|
|
1198
|
+
baseOptions = configuration.baseOptions;
|
|
1199
|
+
}
|
|
1200
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1201
|
+
const localVarHeaderParameter = {};
|
|
1202
|
+
const localVarQueryParameter = {};
|
|
1203
|
+
// authentication OAuth2 required
|
|
1204
|
+
// oauth required
|
|
1205
|
+
yield setOAuthToObject(localVarHeaderParameter, 'OAuth2', [], configuration);
|
|
1206
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1207
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1208
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1209
|
+
return {
|
|
1210
|
+
url: toPathString(localVarUrlObj),
|
|
1211
|
+
options: localVarRequestOptions,
|
|
1212
|
+
};
|
|
1213
|
+
}),
|
|
1214
|
+
};
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* ExportsApi - functional programming interface
|
|
1218
|
+
* @export
|
|
1219
|
+
*/
|
|
1220
|
+
export const ExportsApiFp = function (configuration) {
|
|
1221
|
+
const localVarAxiosParamCreator = ExportsApiAxiosParamCreator(configuration);
|
|
1222
|
+
return {
|
|
1223
|
+
/**
|
|
1224
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1225
|
+
* @param {CreateExportRequest} createExportRequest
|
|
1226
|
+
* @param {*} [options] Override http request option.
|
|
1227
|
+
* @throws {RequiredError}
|
|
1228
|
+
*/
|
|
1229
|
+
createExport(createExportRequest, options) {
|
|
1230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1231
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createExport(createExportRequest, options);
|
|
1232
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1233
|
+
});
|
|
1234
|
+
},
|
|
1235
|
+
/**
|
|
1236
|
+
* Get an `export` by ID.
|
|
1237
|
+
* @param {string} id The `export` ID.
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
getExport(id, options) {
|
|
1242
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1243
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getExport(id, options);
|
|
1244
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1245
|
+
});
|
|
1246
|
+
},
|
|
1247
|
+
/**
|
|
1248
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1249
|
+
* @param {string} id The `queued-export` ID.
|
|
1250
|
+
* @param {*} [options] Override http request option.
|
|
1251
|
+
* @throws {RequiredError}
|
|
1252
|
+
*/
|
|
1253
|
+
getQueuedExport(id, options) {
|
|
1254
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getQueuedExport(id, options);
|
|
1256
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1257
|
+
});
|
|
1258
|
+
},
|
|
1259
|
+
};
|
|
1260
|
+
};
|
|
1261
|
+
/**
|
|
1262
|
+
* ExportsApi - factory interface
|
|
1263
|
+
* @export
|
|
1264
|
+
*/
|
|
1265
|
+
export const ExportsApiFactory = function (configuration, basePath, axios) {
|
|
1266
|
+
const localVarFp = ExportsApiFp(configuration);
|
|
1267
|
+
return {
|
|
1268
|
+
/**
|
|
1269
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1270
|
+
* @param {CreateExportRequest} createExportRequest
|
|
1271
|
+
* @param {*} [options] Override http request option.
|
|
1272
|
+
* @throws {RequiredError}
|
|
1273
|
+
*/
|
|
1274
|
+
createExport(createExportRequest, options) {
|
|
1275
|
+
return localVarFp
|
|
1276
|
+
.createExport(createExportRequest, options)
|
|
1277
|
+
.then((request) => request(axios, basePath));
|
|
1278
|
+
},
|
|
1279
|
+
/**
|
|
1280
|
+
* Get an `export` by ID.
|
|
1281
|
+
* @param {string} id The `export` ID.
|
|
1282
|
+
* @param {*} [options] Override http request option.
|
|
1283
|
+
* @throws {RequiredError}
|
|
1284
|
+
*/
|
|
1285
|
+
getExport(id, options) {
|
|
1286
|
+
return localVarFp
|
|
1287
|
+
.getExport(id, options)
|
|
1288
|
+
.then((request) => request(axios, basePath));
|
|
1289
|
+
},
|
|
1290
|
+
/**
|
|
1291
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1292
|
+
* @param {string} id The `queued-export` ID.
|
|
1293
|
+
* @param {*} [options] Override http request option.
|
|
1294
|
+
* @throws {RequiredError}
|
|
1295
|
+
*/
|
|
1296
|
+
getQueuedExport(id, options) {
|
|
1297
|
+
return localVarFp
|
|
1298
|
+
.getQueuedExport(id, options)
|
|
1299
|
+
.then((request) => request(axios, basePath));
|
|
1300
|
+
},
|
|
1301
|
+
};
|
|
1302
|
+
};
|
|
1303
|
+
/**
|
|
1304
|
+
* ExportsApi - object-oriented interface
|
|
1305
|
+
* @export
|
|
1306
|
+
* @class ExportsApi
|
|
1307
|
+
* @extends {BaseAPI}
|
|
1308
|
+
*/
|
|
1309
|
+
export class ExportsApi extends BaseAPI {
|
|
1310
|
+
/**
|
|
1311
|
+
* Create an `export`. This API is asynchronous, returning the location of a `queued-export`. Check the status via the getQueuedExport API.
|
|
1312
|
+
* @param {ExportsApiCreateExportRequest} requestParameters Request parameters.
|
|
1313
|
+
* @param {*} [options] Override http request option.
|
|
1314
|
+
* @throws {RequiredError}
|
|
1315
|
+
* @memberof ExportsApi
|
|
1316
|
+
*/
|
|
1317
|
+
createExport(requestParameters, options) {
|
|
1318
|
+
return ExportsApiFp(this.configuration)
|
|
1319
|
+
.createExport(requestParameters.createExportRequest, options)
|
|
1320
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1321
|
+
}
|
|
1322
|
+
/**
|
|
1323
|
+
* Get an `export` by ID.
|
|
1324
|
+
* @param {ExportsApiGetExportRequest} requestParameters Request parameters.
|
|
1325
|
+
* @param {*} [options] Override http request option.
|
|
1326
|
+
* @throws {RequiredError}
|
|
1327
|
+
* @memberof ExportsApi
|
|
1328
|
+
*/
|
|
1329
|
+
getExport(requestParameters, options) {
|
|
1330
|
+
return ExportsApiFp(this.configuration)
|
|
1331
|
+
.getExport(requestParameters.id, options)
|
|
1332
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1333
|
+
}
|
|
1334
|
+
/**
|
|
1335
|
+
* Get a `queued-export`. The response is either the status if `running` or `error` or, upon completion, redirects to the created `export`.
|
|
1336
|
+
* @param {ExportsApiGetQueuedExportRequest} requestParameters Request parameters.
|
|
1337
|
+
* @param {*} [options] Override http request option.
|
|
1338
|
+
* @throws {RequiredError}
|
|
1339
|
+
* @memberof ExportsApi
|
|
1340
|
+
*/
|
|
1341
|
+
getQueuedExport(requestParameters, options) {
|
|
1342
|
+
return ExportsApiFp(this.configuration)
|
|
1343
|
+
.getQueuedExport(requestParameters.id, options)
|
|
1344
|
+
.then((request) => request(this.axios, this.basePath));
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1254
1347
|
/**
|
|
1255
1348
|
* FilesApi - axios parameter creator
|
|
1256
1349
|
* @export
|
|
@@ -2567,10 +2660,17 @@ export const PartRevisionsApiAxiosParamCreator = function (configuration) {
|
|
|
2567
2660
|
* @param {Vector3} [cameraPosition] The `camera` position vector.
|
|
2568
2661
|
* @param {Vector3} [cameraUp] The `camera` up vector.
|
|
2569
2662
|
* @param {Vector3} [cameraLookAt] The `camera` lookAt vector.
|
|
2663
|
+
* @param {Vector3} [cameraPerspectivePosition] The perspective camera position.
|
|
2664
|
+
* @param {Vector3} [cameraPerspectiveLookAt] The perspective camera look at position.
|
|
2665
|
+
* @param {Vector3} [cameraPerspectiveUp] The perspective camera up vector.
|
|
2666
|
+
* @param {Vector3} [cameraOrthographicViewVector] The orthographic camera view vector.
|
|
2667
|
+
* @param {Vector3} [cameraOrthographicLookAt] The orthographic camera look at position.
|
|
2668
|
+
* @param {Vector3} [cameraOrthographicUp] The orthographic camera up vector.
|
|
2669
|
+
* @param {number} [cameraOrthographicFovHeight] The orthographic field-of-view height.
|
|
2570
2670
|
* @param {*} [options] Override http request option.
|
|
2571
2671
|
* @throws {RequiredError}
|
|
2572
2672
|
*/
|
|
2573
|
-
renderPartRevision: (id, height, width, cameraPosition, cameraUp, cameraLookAt, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2673
|
+
renderPartRevision: (id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2574
2674
|
// verify required parameter 'id' is not null or undefined
|
|
2575
2675
|
assertParamExists('renderPartRevision', 'id', id);
|
|
2576
2676
|
const localVarPath = `/part-revisions/{id}/image`.replace(`{${'id'}}`, encodeURIComponent(String(id)));
|
|
@@ -2601,6 +2701,33 @@ export const PartRevisionsApiAxiosParamCreator = function (configuration) {
|
|
|
2601
2701
|
if (cameraLookAt !== undefined) {
|
|
2602
2702
|
localVarQueryParameter['camera[lookAt]'] = cameraLookAt;
|
|
2603
2703
|
}
|
|
2704
|
+
if (cameraPerspectivePosition !== undefined) {
|
|
2705
|
+
localVarQueryParameter['camera[perspective][position]'] =
|
|
2706
|
+
cameraPerspectivePosition;
|
|
2707
|
+
}
|
|
2708
|
+
if (cameraPerspectiveLookAt !== undefined) {
|
|
2709
|
+
localVarQueryParameter['camera[perspective][lookAt]'] =
|
|
2710
|
+
cameraPerspectiveLookAt;
|
|
2711
|
+
}
|
|
2712
|
+
if (cameraPerspectiveUp !== undefined) {
|
|
2713
|
+
localVarQueryParameter['camera[perspective][up]'] = cameraPerspectiveUp;
|
|
2714
|
+
}
|
|
2715
|
+
if (cameraOrthographicViewVector !== undefined) {
|
|
2716
|
+
localVarQueryParameter['camera[orthographic][viewVector]'] =
|
|
2717
|
+
cameraOrthographicViewVector;
|
|
2718
|
+
}
|
|
2719
|
+
if (cameraOrthographicLookAt !== undefined) {
|
|
2720
|
+
localVarQueryParameter['camera[orthographic][lookAt]'] =
|
|
2721
|
+
cameraOrthographicLookAt;
|
|
2722
|
+
}
|
|
2723
|
+
if (cameraOrthographicUp !== undefined) {
|
|
2724
|
+
localVarQueryParameter['camera[orthographic][up]'] =
|
|
2725
|
+
cameraOrthographicUp;
|
|
2726
|
+
}
|
|
2727
|
+
if (cameraOrthographicFovHeight !== undefined) {
|
|
2728
|
+
localVarQueryParameter['camera[orthographic][fovHeight]'] =
|
|
2729
|
+
cameraOrthographicFovHeight;
|
|
2730
|
+
}
|
|
2604
2731
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2605
2732
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2606
2733
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2713,12 +2840,19 @@ export const PartRevisionsApiFp = function (configuration) {
|
|
|
2713
2840
|
* @param {Vector3} [cameraPosition] The `camera` position vector.
|
|
2714
2841
|
* @param {Vector3} [cameraUp] The `camera` up vector.
|
|
2715
2842
|
* @param {Vector3} [cameraLookAt] The `camera` lookAt vector.
|
|
2843
|
+
* @param {Vector3} [cameraPerspectivePosition] The perspective camera position.
|
|
2844
|
+
* @param {Vector3} [cameraPerspectiveLookAt] The perspective camera look at position.
|
|
2845
|
+
* @param {Vector3} [cameraPerspectiveUp] The perspective camera up vector.
|
|
2846
|
+
* @param {Vector3} [cameraOrthographicViewVector] The orthographic camera view vector.
|
|
2847
|
+
* @param {Vector3} [cameraOrthographicLookAt] The orthographic camera look at position.
|
|
2848
|
+
* @param {Vector3} [cameraOrthographicUp] The orthographic camera up vector.
|
|
2849
|
+
* @param {number} [cameraOrthographicFovHeight] The orthographic field-of-view height.
|
|
2716
2850
|
* @param {*} [options] Override http request option.
|
|
2717
2851
|
* @throws {RequiredError}
|
|
2718
2852
|
*/
|
|
2719
|
-
renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, options) {
|
|
2853
|
+
renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, options) {
|
|
2720
2854
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2721
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, options);
|
|
2855
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, options);
|
|
2722
2856
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2723
2857
|
});
|
|
2724
2858
|
},
|
|
@@ -2800,12 +2934,19 @@ export const PartRevisionsApiFactory = function (configuration, basePath, axios)
|
|
|
2800
2934
|
* @param {Vector3} [cameraPosition] The `camera` position vector.
|
|
2801
2935
|
* @param {Vector3} [cameraUp] The `camera` up vector.
|
|
2802
2936
|
* @param {Vector3} [cameraLookAt] The `camera` lookAt vector.
|
|
2937
|
+
* @param {Vector3} [cameraPerspectivePosition] The perspective camera position.
|
|
2938
|
+
* @param {Vector3} [cameraPerspectiveLookAt] The perspective camera look at position.
|
|
2939
|
+
* @param {Vector3} [cameraPerspectiveUp] The perspective camera up vector.
|
|
2940
|
+
* @param {Vector3} [cameraOrthographicViewVector] The orthographic camera view vector.
|
|
2941
|
+
* @param {Vector3} [cameraOrthographicLookAt] The orthographic camera look at position.
|
|
2942
|
+
* @param {Vector3} [cameraOrthographicUp] The orthographic camera up vector.
|
|
2943
|
+
* @param {number} [cameraOrthographicFovHeight] The orthographic field-of-view height.
|
|
2803
2944
|
* @param {*} [options] Override http request option.
|
|
2804
2945
|
* @throws {RequiredError}
|
|
2805
2946
|
*/
|
|
2806
|
-
renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, options) {
|
|
2947
|
+
renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, options) {
|
|
2807
2948
|
return localVarFp
|
|
2808
|
-
.renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, options)
|
|
2949
|
+
.renderPartRevision(id, height, width, cameraPosition, cameraUp, cameraLookAt, cameraPerspectivePosition, cameraPerspectiveLookAt, cameraPerspectiveUp, cameraOrthographicViewVector, cameraOrthographicLookAt, cameraOrthographicUp, cameraOrthographicFovHeight, options)
|
|
2809
2950
|
.then((request) => request(axios, basePath));
|
|
2810
2951
|
},
|
|
2811
2952
|
/**
|
|
@@ -2886,7 +3027,7 @@ export class PartRevisionsApi extends BaseAPI {
|
|
|
2886
3027
|
*/
|
|
2887
3028
|
renderPartRevision(requestParameters, options) {
|
|
2888
3029
|
return PartRevisionsApiFp(this.configuration)
|
|
2889
|
-
.renderPartRevision(requestParameters.id, requestParameters.height, requestParameters.width, requestParameters.cameraPosition, requestParameters.cameraUp, requestParameters.cameraLookAt, options)
|
|
3030
|
+
.renderPartRevision(requestParameters.id, requestParameters.height, requestParameters.width, requestParameters.cameraPosition, requestParameters.cameraUp, requestParameters.cameraLookAt, requestParameters.cameraPerspectivePosition, requestParameters.cameraPerspectiveLookAt, requestParameters.cameraPerspectiveUp, requestParameters.cameraOrthographicViewVector, requestParameters.cameraOrthographicLookAt, requestParameters.cameraOrthographicUp, requestParameters.cameraOrthographicFovHeight, options)
|
|
2890
3031
|
.then((request) => request(this.axios, this.basePath));
|
|
2891
3032
|
}
|
|
2892
3033
|
/**
|