@inweb/client 25.9.6 → 25.9.7
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/client.js +159 -88
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +2 -2
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Assembly.d.ts +28 -16
- package/lib/Api/ClashTest.d.ts +11 -6
- package/lib/Api/Client.d.ts +32 -15
- package/lib/Api/File.d.ts +20 -10
- package/lib/Api/IAssembly.d.ts +26 -0
- package/lib/Api/IFile.d.ts +22 -1
- package/lib/Api/Job.d.ts +10 -5
- package/lib/Api/Member.d.ts +8 -4
- package/lib/Api/Model.d.ts +7 -5
- package/lib/Api/Permission.d.ts +24 -17
- package/lib/Api/Project.d.ts +16 -9
- package/lib/Api/Role.d.ts +8 -4
- package/lib/Api/User.d.ts +11 -4
- package/lib/index.d.ts +2 -2
- package/package.json +2 -2
- package/src/Api/Assembly.ts +29 -16
- package/src/Api/ClashTest.ts +11 -6
- package/src/Api/Client.ts +25 -16
- package/src/Api/File.ts +20 -10
- package/src/Api/IAssembly.ts +33 -0
- package/src/Api/IFile.ts +27 -1
- package/src/Api/Job.ts +10 -5
- package/src/Api/Member.ts +8 -4
- package/src/Api/Model.ts +7 -5
- package/src/Api/Permission.ts +24 -17
- package/src/Api/Project.ts +16 -9
- package/src/Api/Role.ts +8 -4
- package/src/Api/User.ts +11 -4
- package/src/index.ts +9 -2
package/lib/Api/Assembly.d.ts
CHANGED
|
@@ -14,8 +14,9 @@ export declare class Assembly {
|
|
|
14
14
|
httpClient: IHttpClient;
|
|
15
15
|
path: string;
|
|
16
16
|
/**
|
|
17
|
-
* @param data - Raw assembly data received from the server.
|
|
18
|
-
*
|
|
17
|
+
* @param data - Raw assembly data received from the server. For more information, see
|
|
18
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
19
|
+
* @param httpClient - HTTP client instance used to send requests to the REST API server.
|
|
19
20
|
*/
|
|
20
21
|
constructor(data: any, httpClient: IHttpClient);
|
|
21
22
|
appendVersionParam(relativePath: string): string;
|
|
@@ -38,9 +39,8 @@ export declare class Assembly {
|
|
|
38
39
|
*/
|
|
39
40
|
get created(): string;
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* @readonly
|
|
42
|
+
* Returns the raw assembly data received from the server. For more information, see
|
|
43
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
44
44
|
*/
|
|
45
45
|
get data(): any;
|
|
46
46
|
private set data(value);
|
|
@@ -106,13 +106,15 @@ export declare class Assembly {
|
|
|
106
106
|
/**
|
|
107
107
|
* Updates assembly data on the server.
|
|
108
108
|
*
|
|
109
|
-
* @param data - Raw assembly data.
|
|
109
|
+
* @param data - Raw assembly data. For more information, see
|
|
110
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
110
111
|
*/
|
|
111
112
|
update(data: any): Promise<this>;
|
|
112
113
|
/**
|
|
113
114
|
* Deletes an assembly from the server.
|
|
114
115
|
*
|
|
115
|
-
* @returns Returns the raw data of a deleted assembly.
|
|
116
|
+
* @returns Returns the raw data of a deleted assembly. For more information, see
|
|
117
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
116
118
|
*/
|
|
117
119
|
delete(): Promise<any>;
|
|
118
120
|
/**
|
|
@@ -138,13 +140,19 @@ export declare class Assembly {
|
|
|
138
140
|
* @param handle - Model original handle.
|
|
139
141
|
* @param transform - Transformation matrix. Specify `undefined` to remove transformation.
|
|
140
142
|
*/
|
|
141
|
-
setModelTransformMatrix(handle: string, transform
|
|
143
|
+
setModelTransformMatrix(handle: string, transform?: IModelTransformMatrix): Promise<this>;
|
|
144
|
+
/**
|
|
145
|
+
* Object properties.
|
|
146
|
+
*
|
|
147
|
+
* @typedef {any} Properties
|
|
148
|
+
* @property {string} handle - Object original handle.
|
|
149
|
+
* @property {string | any} * - Object property. Can be `any` for nested properties.
|
|
150
|
+
*/
|
|
142
151
|
/**
|
|
143
152
|
* Returns the properties for an objects in the assembly.
|
|
144
153
|
*
|
|
145
154
|
* @param handles - Object original handle or handles array. Specify `undefined` to get
|
|
146
155
|
* properties for all objects in the assembly.
|
|
147
|
-
* @returns {Promise<any>}
|
|
148
156
|
*/
|
|
149
157
|
getProperties(handles?: string | string[]): Promise<any[]>;
|
|
150
158
|
/**
|
|
@@ -178,36 +186,39 @@ export declare class Assembly {
|
|
|
178
186
|
*/
|
|
179
187
|
getCdaTree(): Promise<any[]>;
|
|
180
188
|
/**
|
|
181
|
-
* Returns a list of assembly viewpoints.
|
|
189
|
+
* Returns a list of assembly viewpoints. For more information, see
|
|
190
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#AssemblyViewpoints | Open Cloud Assembly Viewpoints API}.
|
|
182
191
|
*/
|
|
183
192
|
getViewpoints(): Promise<any[]>;
|
|
184
193
|
/**
|
|
185
194
|
* Saves a new assembly viewpoint to the server. To create a viewpoint use `Viewer.createViewpoint()`.
|
|
186
195
|
*
|
|
187
|
-
* @param viewpoint - Viewpoint.
|
|
196
|
+
* @param viewpoint - Viewpoint object. For more information, see
|
|
197
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#AssemblyViewpoints | Open Cloud Assembly Viewpoints API}.
|
|
188
198
|
*/
|
|
189
199
|
saveViewpoint(viewpoint: any): Promise<any>;
|
|
190
200
|
/**
|
|
191
201
|
* Deletes the specified assembly viewpoint.
|
|
192
202
|
*
|
|
193
203
|
* @param guid - Viewpoint GUID.
|
|
194
|
-
* @returns Returns
|
|
204
|
+
* @returns Returns a deleted viewpoint. For more information, see
|
|
205
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#AssemblyViewpoints | Open Cloud Assembly Viewpoints API}.
|
|
195
206
|
*/
|
|
196
207
|
deleteViewpoint(guid: string): Promise<any>;
|
|
197
208
|
/**
|
|
198
|
-
* Returns viewpoint snapshot as base64-encoded
|
|
209
|
+
* Returns the viewpoint snapshot as base64-encoded
|
|
199
210
|
* {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}.
|
|
200
211
|
*
|
|
201
212
|
* @param guid - Viewpoint GUID.
|
|
202
213
|
*/
|
|
203
214
|
getSnapshot(guid: string): Promise<string>;
|
|
204
215
|
/**
|
|
205
|
-
* Returns viewpoint snapshot data.
|
|
216
|
+
* Returns the viewpoint snapshot data.
|
|
206
217
|
*
|
|
207
218
|
* @param guid - Viewpoint GUID.
|
|
208
219
|
* @param bitmapGuid - Bitmap GUID.
|
|
209
220
|
*/
|
|
210
|
-
getSnapshotData(guid:
|
|
221
|
+
getSnapshotData(guid: string, bitmapGuid: string): Promise<string>;
|
|
211
222
|
/**
|
|
212
223
|
* Downloads an assembly resource file. Resource files are files that contain model scene
|
|
213
224
|
* descriptions, or geometry data.
|
|
@@ -355,7 +366,8 @@ export declare class Assembly {
|
|
|
355
366
|
* Deletes the specified assembly clash test.
|
|
356
367
|
*
|
|
357
368
|
* @param testId - Test ID.
|
|
358
|
-
* @returns Returns the raw data of a deleted test.
|
|
369
|
+
* @returns Returns the raw data of a deleted test. For more information, see
|
|
370
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
359
371
|
*/
|
|
360
372
|
deleteClashTest(testId: string): Promise<any>;
|
|
361
373
|
updateVersion(files?: string[], params?: {
|
package/lib/Api/ClashTest.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IHttpClient } from "./IHttpClient";
|
|
2
|
+
import { IClashItem } from "./IAssembly";
|
|
2
3
|
import { IShortUserDesc } from "./IUser";
|
|
3
4
|
/**
|
|
4
5
|
* Provides properties and methods for obtaining information about a file/assembly clash detection test.
|
|
@@ -8,7 +9,8 @@ export declare class ClashTest {
|
|
|
8
9
|
basePath: string;
|
|
9
10
|
httpClient: IHttpClient;
|
|
10
11
|
/**
|
|
11
|
-
* @param data - Raw test data received from the server.
|
|
12
|
+
* @param data - Raw test data received from the server. For more information, see
|
|
13
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
12
14
|
* @param basePath - The clash test API base path of the file/assembly that owns the test.
|
|
13
15
|
* @param httpClient - HTTP client instance used to send requests to the REST API server.
|
|
14
16
|
*/
|
|
@@ -35,7 +37,8 @@ export declare class ClashTest {
|
|
|
35
37
|
*/
|
|
36
38
|
get createdAt(): string;
|
|
37
39
|
/**
|
|
38
|
-
* Raw test data received from the server.
|
|
40
|
+
* Raw test data received from the server. For more information, see
|
|
41
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
39
42
|
*
|
|
40
43
|
* @readonly
|
|
41
44
|
*/
|
|
@@ -120,13 +123,15 @@ export declare class ClashTest {
|
|
|
120
123
|
/**
|
|
121
124
|
* Updates test data on the server.
|
|
122
125
|
*
|
|
123
|
-
* @param data - Raw test data.
|
|
126
|
+
* @param data - Raw test data. For more information, see
|
|
127
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
124
128
|
*/
|
|
125
129
|
update(data: any): Promise<this>;
|
|
126
130
|
/**
|
|
127
131
|
* Deletes a test and its results report from the server.
|
|
128
132
|
*
|
|
129
|
-
* @returns Returns the raw data of a deleted test.
|
|
133
|
+
* @returns Returns the raw data of a deleted test. For more information, see
|
|
134
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud Assemblies API}.
|
|
130
135
|
*/
|
|
131
136
|
delete(): Promise<any>;
|
|
132
137
|
/**
|
|
@@ -154,7 +159,7 @@ export declare class ClashTest {
|
|
|
154
159
|
onCheckout?: (test: ClashTest, ready: boolean) => boolean;
|
|
155
160
|
}): Promise<this>;
|
|
156
161
|
/**
|
|
157
|
-
* Returns a
|
|
162
|
+
* Returns a list of detected clashes for this test.
|
|
158
163
|
*/
|
|
159
|
-
getReport(): Promise<
|
|
164
|
+
getReport(): Promise<IClashItem[]>;
|
|
160
165
|
}
|
package/lib/Api/Client.d.ts
CHANGED
|
@@ -53,20 +53,21 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
53
53
|
configure(params: {
|
|
54
54
|
serverUrl?: string;
|
|
55
55
|
}): this;
|
|
56
|
-
/**
|
|
57
|
-
* The Object represents server version information.
|
|
58
|
-
*
|
|
59
|
-
* @typedef {any} VersionResult
|
|
60
|
-
* @property {string} version - The server version.
|
|
61
|
-
* @property {string} hash - Build hash.
|
|
62
|
-
*/
|
|
63
56
|
/**
|
|
64
57
|
* Returns client and server versions.
|
|
58
|
+
*
|
|
59
|
+
* No login is required to obtain the version.
|
|
65
60
|
*/
|
|
66
|
-
version(): Promise<
|
|
61
|
+
version(): Promise<{
|
|
62
|
+
server: string;
|
|
63
|
+
client: string;
|
|
64
|
+
hash: string;
|
|
65
|
+
}>;
|
|
67
66
|
/**
|
|
68
67
|
* Registers a new user on the server.
|
|
69
68
|
*
|
|
69
|
+
* No login is required to register a new user.
|
|
70
|
+
*
|
|
70
71
|
* @param email - User email. Cannot be empty. Must be unique within the server.
|
|
71
72
|
* @param password - User password. Cannot be empty. Password can only contain letters (a-z,
|
|
72
73
|
* A-Z), numbers (0-9), and special characters (~!@#$%^&*()_-+={}[]<>|/'":;.,?).
|
|
@@ -112,9 +113,15 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
112
113
|
/**
|
|
113
114
|
* Returns the list of server enabled indentity providers.
|
|
114
115
|
*/
|
|
115
|
-
getIdentityProviders(): Promise<
|
|
116
|
+
getIdentityProviders(): Promise<{
|
|
117
|
+
name: string;
|
|
118
|
+
url: string;
|
|
119
|
+
}[]>;
|
|
116
120
|
/**
|
|
117
121
|
* Returns the current server settings.
|
|
122
|
+
*
|
|
123
|
+
* @returns Returns an object with server settings. For more information, see
|
|
124
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Settings | Open Cloud Settings API}.
|
|
118
125
|
*/
|
|
119
126
|
getServerSettings(): Promise<any>;
|
|
120
127
|
/**
|
|
@@ -122,6 +129,11 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
122
129
|
*
|
|
123
130
|
* Only administrators can change server settings. If the current logged in user is not an
|
|
124
131
|
* administrator, an exception will be thrown.
|
|
132
|
+
*
|
|
133
|
+
* @param settings - An object with the new server settings or part of the settings. For more
|
|
134
|
+
* information, see
|
|
135
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Settings | Open Cloud Settings API}.
|
|
136
|
+
* @returns Returns an object with updated server settings.
|
|
125
137
|
*/
|
|
126
138
|
updateServerSettings(settings: any): Promise<any>;
|
|
127
139
|
/**
|
|
@@ -180,7 +192,8 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
180
192
|
* You need to re-login after deleting the current logged in user.
|
|
181
193
|
*
|
|
182
194
|
* @param userId - User ID.
|
|
183
|
-
* @returns Returns the raw data of a deleted user.
|
|
195
|
+
* @returns Returns the raw data of a deleted user. For more information, see
|
|
196
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
|
|
184
197
|
*/
|
|
185
198
|
deleteUser(userId: string): Promise<any>;
|
|
186
199
|
/**
|
|
@@ -205,7 +218,7 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
205
218
|
* @param ids - List of file IDs to return.
|
|
206
219
|
* @param sortByDesc - Allows to specify the descending order of the result. By default,
|
|
207
220
|
* files are sorted by name in ascending order.
|
|
208
|
-
* @param
|
|
221
|
+
* @param sortField - Allows to specify sort field.
|
|
209
222
|
*/
|
|
210
223
|
getFiles(start?: number, limit?: number, name?: string, ext?: string | string[], ids?: string | string[], sortByDesc?: boolean, sortField?: string): Promise<{
|
|
211
224
|
allSize: number;
|
|
@@ -265,7 +278,8 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
265
278
|
* version file use {@link File.deleteVersion | File.deleteVersion()}.
|
|
266
279
|
*
|
|
267
280
|
* @param fileId - File ID.
|
|
268
|
-
* @returns Returns the raw data of a deleted file.
|
|
281
|
+
* @returns Returns the raw data of a deleted file. For more information, see
|
|
282
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
|
|
269
283
|
*/
|
|
270
284
|
deleteFile(fileId: string): Promise<any>;
|
|
271
285
|
/**
|
|
@@ -334,7 +348,8 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
334
348
|
* already been completed cannot be deleted.
|
|
335
349
|
*
|
|
336
350
|
* @param jobId - Job ID.
|
|
337
|
-
* @returns Returns the raw data of a deleted job.
|
|
351
|
+
* @returns Returns the raw data of a deleted job. For more information, see
|
|
352
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
|
|
338
353
|
*/
|
|
339
354
|
deleteJob(jobId: string): Promise<any>;
|
|
340
355
|
/**
|
|
@@ -400,7 +415,8 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
400
415
|
* Deletes the specified assembly from the server.
|
|
401
416
|
*
|
|
402
417
|
* @param assemblyId - Assembly ID.
|
|
403
|
-
* @returns Returns the raw data of a deleted assembly.
|
|
418
|
+
* @returns Returns the raw data of a deleted assembly. For more information, see
|
|
419
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Assemblies | Open Cloud API}.
|
|
404
420
|
*/
|
|
405
421
|
deleteAssembly(assemblyId: string): Promise<any>;
|
|
406
422
|
/**
|
|
@@ -449,7 +465,8 @@ export declare class Client extends EventEmitter2<ClientEventMap> {
|
|
|
449
465
|
* Deletes the specified project from the server.
|
|
450
466
|
*
|
|
451
467
|
* @param projectId - Project ID.
|
|
452
|
-
* @returns Returns the raw data of a deleted project.
|
|
468
|
+
* @returns Returns the raw data of a deleted project. For more information, see
|
|
469
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
|
|
453
470
|
*/
|
|
454
471
|
deleteProject(projectId: string): Promise<any>;
|
|
455
472
|
}
|
package/lib/Api/File.d.ts
CHANGED
|
@@ -14,7 +14,8 @@ export declare class File {
|
|
|
14
14
|
httpClient: IHttpClient;
|
|
15
15
|
path: string;
|
|
16
16
|
/**
|
|
17
|
-
* @param data - Raw file data received from the server.
|
|
17
|
+
* @param data - Raw file data received from the server. For more information, see
|
|
18
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
|
|
18
19
|
* @param httpClient - HTTP client instance used to send requests to the REST API server.
|
|
19
20
|
*/
|
|
20
21
|
constructor(data: any, httpClient: IHttpClient);
|
|
@@ -44,7 +45,8 @@ export declare class File {
|
|
|
44
45
|
get customFields(): any;
|
|
45
46
|
set customFields(value: any);
|
|
46
47
|
/**
|
|
47
|
-
* Raw file data received from the server.
|
|
48
|
+
* Raw file data received from the server. For more information, see
|
|
49
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
|
|
48
50
|
*
|
|
49
51
|
* @readonly
|
|
50
52
|
*/
|
|
@@ -173,7 +175,8 @@ export declare class File {
|
|
|
173
175
|
/**
|
|
174
176
|
* Updates file data on the server.
|
|
175
177
|
*
|
|
176
|
-
* @param data - Raw file data.
|
|
178
|
+
* @param data - Raw file data. For more information, see
|
|
179
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
|
|
177
180
|
*/
|
|
178
181
|
update(data: any): Promise<this>;
|
|
179
182
|
/**
|
|
@@ -182,7 +185,8 @@ export declare class File {
|
|
|
182
185
|
* You cannot delete a version file using `delete()`, only the original file. To delete a
|
|
183
186
|
* version file use {@link deleteVersion | deleteVersion()}.
|
|
184
187
|
*
|
|
185
|
-
* @returns Returns the raw data of a deleted file.
|
|
188
|
+
* @returns Returns the raw data of a deleted file. For more information, see
|
|
189
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
|
|
186
190
|
*/
|
|
187
191
|
delete(): Promise<any>;
|
|
188
192
|
/**
|
|
@@ -211,13 +215,13 @@ export declare class File {
|
|
|
211
215
|
*/
|
|
212
216
|
getModels(): Promise<Model[]>;
|
|
213
217
|
getModelTransformMatrix(handle: string): any;
|
|
214
|
-
setModelTransformMatrix(handle: string, transform
|
|
218
|
+
setModelTransformMatrix(handle: string, transform?: any): Promise<this>;
|
|
215
219
|
/**
|
|
216
220
|
* Object properties.
|
|
217
221
|
*
|
|
218
222
|
* @typedef {any} Properties
|
|
219
223
|
* @property {string} handle - Object original handle.
|
|
220
|
-
* @property {string | any}
|
|
224
|
+
* @property {string | any} - Object property. Can be `any` for nested properties.
|
|
221
225
|
*/
|
|
222
226
|
/**
|
|
223
227
|
* Returns the properties for an objects in the active version of the file.
|
|
@@ -273,20 +277,23 @@ export declare class File {
|
|
|
273
277
|
*/
|
|
274
278
|
getCdaTree(): Promise<any[]>;
|
|
275
279
|
/**
|
|
276
|
-
* Returns a list of file viewpoints.
|
|
280
|
+
* Returns a list of file viewpoints. For more information, see
|
|
281
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
|
|
277
282
|
*/
|
|
278
283
|
getViewpoints(): Promise<any[]>;
|
|
279
284
|
/**
|
|
280
285
|
* Saves a new file viewpoint to the server. To create a viewpoint use `Viewer.createViewpoint()`.
|
|
281
286
|
*
|
|
282
|
-
* @param viewpoint - Viewpoint.
|
|
287
|
+
* @param viewpoint - Viewpoint object. For more information, see
|
|
288
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
|
|
283
289
|
*/
|
|
284
290
|
saveViewpoint(viewpoint: any): Promise<any>;
|
|
285
291
|
/**
|
|
286
292
|
* Deletes the specified file viewpoint.
|
|
287
293
|
*
|
|
288
294
|
* @param guid - Viewpoint GUID.
|
|
289
|
-
* @returns Returns the raw data of a deleted viewpoint.
|
|
295
|
+
* @returns Returns the raw data of a deleted viewpoint. For more information, see
|
|
296
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
|
|
290
297
|
*/
|
|
291
298
|
deleteViewpoint(guid: string): Promise<any>;
|
|
292
299
|
/**
|
|
@@ -494,7 +501,8 @@ export declare class File {
|
|
|
494
501
|
* Removes the specified permission from the file.
|
|
495
502
|
*
|
|
496
503
|
* @param permissionId - Permission ID.
|
|
497
|
-
* @returns Returns the raw data of a deleted permission.
|
|
504
|
+
* @returns Returns the raw data of a deleted permission. For more information, see
|
|
505
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud File Permissions API}.
|
|
498
506
|
*/
|
|
499
507
|
deletePermission(permissionId: string): Promise<any>;
|
|
500
508
|
/**
|
|
@@ -542,6 +550,8 @@ export declare class File {
|
|
|
542
550
|
* Deletes the specified version file.
|
|
543
551
|
*
|
|
544
552
|
* @param version - Version to delete.
|
|
553
|
+
* @returns Returns the raw data of a deleted version file. For more information, see
|
|
554
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
|
|
545
555
|
*/
|
|
546
556
|
deleteVersion(version: number): Promise<any>;
|
|
547
557
|
/**
|
package/lib/Api/IAssembly.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Defines the information about file from which the assembly was created.
|
|
3
|
+
*/
|
|
1
4
|
export interface IAssociatedFileData {
|
|
5
|
+
/**
|
|
6
|
+
* File ID.
|
|
7
|
+
*/
|
|
2
8
|
fileId: string;
|
|
9
|
+
/**
|
|
10
|
+
* File name.
|
|
11
|
+
*/
|
|
3
12
|
name: string;
|
|
4
13
|
link: string;
|
|
5
14
|
version?: number;
|
|
@@ -37,3 +46,20 @@ export interface IModelTransformMatrix {
|
|
|
37
46
|
*/
|
|
38
47
|
scale: number;
|
|
39
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Defines the information about the clash of two objects.
|
|
51
|
+
*/
|
|
52
|
+
export interface IClashItem {
|
|
53
|
+
/**
|
|
54
|
+
* Handle of the first object, including the assembly model index in the form "model_object".
|
|
55
|
+
*/
|
|
56
|
+
first: string;
|
|
57
|
+
/**
|
|
58
|
+
* Handle of the second object, including the assembly model index in the form "model_object".
|
|
59
|
+
*/
|
|
60
|
+
second: string;
|
|
61
|
+
/**
|
|
62
|
+
* The distance between objects.
|
|
63
|
+
*/
|
|
64
|
+
distance: number;
|
|
65
|
+
}
|
package/lib/Api/IFile.d.ts
CHANGED
|
@@ -59,16 +59,37 @@ export interface IFileReferences {
|
|
|
59
59
|
*/
|
|
60
60
|
references: IFileReference[] | null;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Defines the information about file version.
|
|
64
|
+
*/
|
|
62
65
|
export interface IFileVersionInfo {
|
|
66
|
+
/**
|
|
67
|
+
* Version file ID.
|
|
68
|
+
*/
|
|
63
69
|
fileId: string;
|
|
70
|
+
/**
|
|
71
|
+
* Version file data status.
|
|
72
|
+
*/
|
|
64
73
|
status: IFileStatus;
|
|
74
|
+
/**
|
|
75
|
+
* Zero-based version number. The original file has version `0`.
|
|
76
|
+
*/
|
|
65
77
|
version: number;
|
|
78
|
+
/**
|
|
79
|
+
* Version creation time (UTC).
|
|
80
|
+
*/
|
|
66
81
|
createdAt: string;
|
|
82
|
+
/**
|
|
83
|
+
* Size of the version file in bytes.
|
|
84
|
+
*/
|
|
67
85
|
size: number;
|
|
86
|
+
/**
|
|
87
|
+
* ID of the user who created the version.
|
|
88
|
+
*/
|
|
68
89
|
ownerId: string;
|
|
69
90
|
}
|
|
70
91
|
/**
|
|
71
|
-
* Defines the
|
|
92
|
+
* Defines the user, project, or group that will have access to the {@link File | file}.
|
|
72
93
|
*/
|
|
73
94
|
export interface IGrantedTo {
|
|
74
95
|
/**
|
package/lib/Api/Job.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ export declare class Job {
|
|
|
6
6
|
private _data;
|
|
7
7
|
httpClient: IHttpClient;
|
|
8
8
|
/**
|
|
9
|
-
* @param data - Raw job data received from the server.
|
|
9
|
+
* @param data - Raw job data received from the server. For more information, see
|
|
10
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
|
|
10
11
|
* @param httpClient - HTTP client instance used to send requests to the REST API server.
|
|
11
12
|
*/
|
|
12
13
|
constructor(data: any, httpClient: IHttpClient);
|
|
@@ -33,7 +34,8 @@ export declare class Job {
|
|
|
33
34
|
*/
|
|
34
35
|
get createdAt(): string;
|
|
35
36
|
/**
|
|
36
|
-
* Raw job data received from the server.
|
|
37
|
+
* Raw job data received from the server. For more information, see
|
|
38
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
|
|
37
39
|
*
|
|
38
40
|
* @readonly
|
|
39
41
|
*/
|
|
@@ -72,7 +74,8 @@ export declare class Job {
|
|
|
72
74
|
*/
|
|
73
75
|
get outputFormat(): string;
|
|
74
76
|
/**
|
|
75
|
-
* Parameters
|
|
77
|
+
* Parameters with which the job runner was started. For more information, see
|
|
78
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
|
|
76
79
|
*
|
|
77
80
|
* @readonly
|
|
78
81
|
*/
|
|
@@ -106,14 +109,16 @@ export declare class Job {
|
|
|
106
109
|
* Only administrators can update job data. If the current logged in user is not an
|
|
107
110
|
* administrator, an exception will be thrown.
|
|
108
111
|
*
|
|
109
|
-
* @param data - Raw job data.
|
|
112
|
+
* @param data - Raw job data. For more information, see
|
|
113
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
|
|
110
114
|
*/
|
|
111
115
|
update(data: any): Promise<this>;
|
|
112
116
|
/**
|
|
113
117
|
* Deletes a job from the server job list. Jobs that are in progress or have already been
|
|
114
118
|
* completed cannot be deleted.
|
|
115
119
|
*
|
|
116
|
-
* @returns Returns the raw data of a deleted job.
|
|
120
|
+
* @returns Returns the raw data of a deleted job. For more information, see
|
|
121
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
|
|
117
122
|
*/
|
|
118
123
|
delete(): Promise<any>;
|
|
119
124
|
/**
|
package/lib/Api/Member.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export declare class Member {
|
|
|
9
9
|
projectId: string;
|
|
10
10
|
httpClient: IHttpClient;
|
|
11
11
|
/**
|
|
12
|
-
* @param data - Raw member data received from the server.
|
|
12
|
+
* @param data - Raw member data received from the server. For more information, see
|
|
13
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
|
|
13
14
|
* @param projectId - Owner project ID.
|
|
14
15
|
* @param httpClient - HTTP client instance used to send requests to the REST API server.
|
|
15
16
|
*/
|
|
@@ -18,7 +19,8 @@ export declare class Member {
|
|
|
18
19
|
private internalPut;
|
|
19
20
|
private internalDelete;
|
|
20
21
|
/**
|
|
21
|
-
* Raw member data received from the server.
|
|
22
|
+
* Raw member data received from the server. For more information, see
|
|
23
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
|
|
22
24
|
*
|
|
23
25
|
* @readonly
|
|
24
26
|
*/
|
|
@@ -55,13 +57,15 @@ export declare class Member {
|
|
|
55
57
|
/**
|
|
56
58
|
* Updates member data on the server.
|
|
57
59
|
*
|
|
58
|
-
* @param data - Raw member data.
|
|
60
|
+
* @param data - Raw member data. For more information, see
|
|
61
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
|
|
59
62
|
*/
|
|
60
63
|
update(data: any): Promise<this>;
|
|
61
64
|
/**
|
|
62
65
|
* Removes a member from the project.
|
|
63
66
|
*
|
|
64
|
-
* @returns Returns the raw data of a deleted member.
|
|
67
|
+
* @returns Returns the raw data of a deleted member. For more information, see
|
|
68
|
+
* {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
|
|
65
69
|
*/
|
|
66
70
|
delete(): Promise<any>;
|
|
67
71
|
/**
|
package/lib/Api/Model.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { IHttpClient } from "./IHttpClient";
|
|
2
2
|
import type { File } from "./File";
|
|
3
3
|
import type { Assembly } from "./Assembly";
|
|
4
|
+
import type { IFileReferences } from "./IFile";
|
|
4
5
|
import type { IModelTransformMatrix } from "./IAssembly";
|
|
5
6
|
/**
|
|
6
|
-
* Provides properties and methods for working with view of the
|
|
7
|
-
* for `dwg` it is a `Model` space or layout, and for
|
|
7
|
+
* Provides properties and methods for working with view of the {@link File | file} or
|
|
8
|
+
* {@link Assembly| assembly}. For example, for `dwg` it is a `Model` space or layout, and for
|
|
9
|
+
* `rvt` files it is a `3D` view.
|
|
8
10
|
*/
|
|
9
11
|
export declare class Model {
|
|
10
12
|
private _data;
|
|
@@ -97,7 +99,7 @@ export declare class Model {
|
|
|
97
99
|
* @param handle - Model handle.
|
|
98
100
|
* @param transform - Transformation matrix. Specify `undefined` to remove transformation.
|
|
99
101
|
*/
|
|
100
|
-
setModelTransformMatrix(handle: string, transform
|
|
102
|
+
setModelTransformMatrix(handle: string, transform?: IModelTransformMatrix): Promise<this>;
|
|
101
103
|
/**
|
|
102
104
|
* Returns a list of viewpoints of the owner file/assembly.
|
|
103
105
|
*/
|
|
@@ -106,7 +108,7 @@ export declare class Model {
|
|
|
106
108
|
* Saves a new model owner file/assembly viewpoint to the server. To create a new viewpoint
|
|
107
109
|
* use `Viewer.createViewpoint()`.
|
|
108
110
|
*
|
|
109
|
-
* @param viewpoint - Viewpoint.
|
|
111
|
+
* @param viewpoint - Viewpoint object.
|
|
110
112
|
*/
|
|
111
113
|
saveViewpoint(viewpoint: any): Promise<any>;
|
|
112
114
|
/**
|
|
@@ -179,5 +181,5 @@ export declare class Model {
|
|
|
179
181
|
* {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController}
|
|
180
182
|
* signal, which can be used to abort waiting as desired.
|
|
181
183
|
*/
|
|
182
|
-
getReferences(signal?: AbortSignal): Promise<
|
|
184
|
+
getReferences(signal?: AbortSignal): Promise<IFileReferences>;
|
|
183
185
|
}
|