@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/src/Api/File.ts CHANGED
@@ -40,7 +40,8 @@ export class File {
40
40
  public path: string;
41
41
 
42
42
  /**
43
- * @param data - Raw file data received from the server.
43
+ * @param data - Raw file data received from the server. For more information, see
44
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
44
45
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
45
46
  */
46
47
  constructor(data: any, httpClient: IHttpClient) {
@@ -108,7 +109,8 @@ export class File {
108
109
  }
109
110
 
110
111
  /**
111
- * Raw file data received from the server.
112
+ * Raw file data received from the server. For more information, see
113
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
112
114
  *
113
115
  * @readonly
114
116
  */
@@ -327,7 +329,8 @@ export class File {
327
329
  /**
328
330
  * Updates file data on the server.
329
331
  *
330
- * @param data - Raw file data.
332
+ * @param data - Raw file data. For more information, see
333
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
331
334
  */
332
335
  async update(data: any): Promise<this> {
333
336
  const response = await this.internalPut("", data);
@@ -341,7 +344,8 @@ export class File {
341
344
  * You cannot delete a version file using `delete()`, only the original file. To delete a
342
345
  * version file use {@link deleteVersion | deleteVersion()}.
343
346
  *
344
- * @returns Returns the raw data of a deleted file.
347
+ * @returns Returns the raw data of a deleted file. For more information, see
348
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
345
349
  */
346
350
  delete(): Promise<any> {
347
351
  return this.internalDelete("").then((response) => response.json());
@@ -400,7 +404,7 @@ export class File {
400
404
  return undefined;
401
405
  }
402
406
 
403
- setModelTransformMatrix(handle: string, transform: any): Promise<this> {
407
+ setModelTransformMatrix(handle: string, transform?: any): Promise<this> {
404
408
  console.warn("File does not support model transformation");
405
409
  return Promise.resolve(this);
406
410
  }
@@ -410,7 +414,7 @@ export class File {
410
414
  *
411
415
  * @typedef {any} Properties
412
416
  * @property {string} handle - Object original handle.
413
- * @property {string | any} * - Object property. Can be `any` for nested properties.
417
+ * @property {string | any} - Object property. Can be `any` for nested properties.
414
418
  */
415
419
 
416
420
  /**
@@ -480,7 +484,8 @@ export class File {
480
484
  }
481
485
 
482
486
  /**
483
- * Returns a list of file viewpoints.
487
+ * Returns a list of file viewpoints. For more information, see
488
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
484
489
  */
485
490
  getViewpoints(): Promise<any[]> {
486
491
  return this.internalGet("/viewpoints")
@@ -491,7 +496,8 @@ export class File {
491
496
  /**
492
497
  * Saves a new file viewpoint to the server. To create a viewpoint use `Viewer.createViewpoint()`.
493
498
  *
494
- * @param viewpoint - Viewpoint.
499
+ * @param viewpoint - Viewpoint object. For more information, see
500
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
495
501
  */
496
502
  saveViewpoint(viewpoint: any): Promise<any> {
497
503
  return this.internalPost("/viewpoints", viewpoint).then((response) => response.json());
@@ -501,7 +507,8 @@ export class File {
501
507
  * Deletes the specified file viewpoint.
502
508
  *
503
509
  * @param guid - Viewpoint GUID.
504
- * @returns Returns the raw data of a deleted viewpoint.
510
+ * @returns Returns the raw data of a deleted viewpoint. For more information, see
511
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#FileViewpoints | Open Cloud File Viewpoints API}.
505
512
  */
506
513
  deleteViewpoint(guid: string): Promise<any> {
507
514
  return this.internalDelete(`/viewpoints/${guid}`).then((response) => response.json());
@@ -827,7 +834,8 @@ export class File {
827
834
  * Removes the specified permission from the file.
828
835
  *
829
836
  * @param permissionId - Permission ID.
830
- * @returns Returns the raw data of a deleted permission.
837
+ * @returns Returns the raw data of a deleted permission. For more information, see
838
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud File Permissions API}.
831
839
  */
832
840
  deletePermission(permissionId: string): Promise<any> {
833
841
  return this.internalDelete(`/permissions/${permissionId}`).then((response) => response.json());
@@ -921,6 +929,8 @@ export class File {
921
929
  * Deletes the specified version file.
922
930
  *
923
931
  * @param version - Version to delete.
932
+ * @returns Returns the raw data of a deleted version file. For more information, see
933
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Files | Open Cloud Files API}.
924
934
  */
925
935
  async deleteVersion(version: number): Promise<any> {
926
936
  const response = await this.internalDelete(`/versions/${version}`);
@@ -21,9 +21,22 @@
21
21
  // acknowledge and accept the above terms.
22
22
  ///////////////////////////////////////////////////////////////////////////////
23
23
 
24
+ import { IShortUserDesc } from "./IUser";
25
+
26
+ /**
27
+ * Defines the information about file from which the assembly was created.
28
+ */
24
29
  export interface IAssociatedFileData {
30
+ /**
31
+ * File ID.
32
+ */
25
33
  fileId: string;
34
+
35
+ /**
36
+ * File name.
37
+ */
26
38
  name: string;
39
+
27
40
  link: string;
28
41
  version?: number;
29
42
  }
@@ -62,3 +75,23 @@ export interface IModelTransformMatrix {
62
75
  */
63
76
  scale: number;
64
77
  }
78
+
79
+ /**
80
+ * Defines the information about the clash of two objects.
81
+ */
82
+ export interface IClashItem {
83
+ /**
84
+ * Handle of the first object, including the assembly model index in the form "model_object".
85
+ */
86
+ first: string;
87
+
88
+ /**
89
+ * Handle of the second object, including the assembly model index in the form "model_object".
90
+ */
91
+ second: string;
92
+
93
+ /**
94
+ * The distance between objects.
95
+ */
96
+ distance: number;
97
+ }
package/src/Api/IFile.ts CHANGED
@@ -93,17 +93,43 @@ export interface IFileReferences {
93
93
  references: IFileReference[] | null;
94
94
  }
95
95
 
96
+ /**
97
+ * Defines the information about file version.
98
+ */
96
99
  export interface IFileVersionInfo {
100
+ /**
101
+ * Version file ID.
102
+ */
97
103
  fileId: string;
104
+
105
+ /**
106
+ * Version file data status.
107
+ */
98
108
  status: IFileStatus;
109
+
110
+ /**
111
+ * Zero-based version number. The original file has version `0`.
112
+ */
99
113
  version: number;
114
+
115
+ /**
116
+ * Version creation time (UTC).
117
+ */
100
118
  createdAt: string;
119
+
120
+ /**
121
+ * Size of the version file in bytes.
122
+ */
101
123
  size: number;
124
+
125
+ /**
126
+ * ID of the user who created the version.
127
+ */
102
128
  ownerId: string;
103
129
  }
104
130
 
105
131
  /**
106
- * Defines the entity, that will have access to the {@link File | file}.
132
+ * Defines the user, project, or group that will have access to the {@link File | file}.
107
133
  */
108
134
  export interface IGrantedTo {
109
135
  /**
package/src/Api/Job.ts CHANGED
@@ -32,7 +32,8 @@ export class Job {
32
32
  public httpClient: IHttpClient;
33
33
 
34
34
  /**
35
- * @param data - Raw job data received from the server.
35
+ * @param data - Raw job data received from the server. For more information, see
36
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
36
37
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
37
38
  */
38
39
  constructor(data: any, httpClient: IHttpClient) {
@@ -81,7 +82,8 @@ export class Job {
81
82
  }
82
83
 
83
84
  /**
84
- * Raw job data received from the server.
85
+ * Raw job data received from the server. For more information, see
86
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
85
87
  *
86
88
  * @readonly
87
89
  */
@@ -141,7 +143,8 @@ export class Job {
141
143
  }
142
144
 
143
145
  /**
144
- * Parameters for the job runner.
146
+ * Parameters with which the job runner was started. For more information, see
147
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
145
148
  *
146
149
  * @readonly
147
150
  */
@@ -192,7 +195,8 @@ export class Job {
192
195
  * Only administrators can update job data. If the current logged in user is not an
193
196
  * administrator, an exception will be thrown.
194
197
  *
195
- * @param data - Raw job data.
198
+ * @param data - Raw job data. For more information, see
199
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
196
200
  */
197
201
  async update(data: any): Promise<this> {
198
202
  const response = await this.internalPut(data);
@@ -204,7 +208,8 @@ export class Job {
204
208
  * Deletes a job from the server job list. Jobs that are in progress or have already been
205
209
  * completed cannot be deleted.
206
210
  *
207
- * @returns Returns the raw data of a deleted job.
211
+ * @returns Returns the raw data of a deleted job. For more information, see
212
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Jobs | Open Cloud Jobs API}.
208
213
  */
209
214
  delete(): Promise<any> {
210
215
  return this.internalDelete().then((response) => response.json());
package/src/Api/Member.ts CHANGED
@@ -35,7 +35,8 @@ export class Member {
35
35
  public httpClient: IHttpClient;
36
36
 
37
37
  /**
38
- * @param data - Raw member data received from the server.
38
+ * @param data - Raw member data received from the server. For more information, see
39
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
39
40
  * @param projectId - Owner project ID.
40
41
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
41
42
  */
@@ -58,7 +59,8 @@ export class Member {
58
59
  }
59
60
 
60
61
  /**
61
- * Raw member data received from the server.
62
+ * Raw member data received from the server. For more information, see
63
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
62
64
  *
63
65
  * @readonly
64
66
  */
@@ -124,7 +126,8 @@ export class Member {
124
126
  /**
125
127
  * Updates member data on the server.
126
128
  *
127
- * @param data - Raw member data.
129
+ * @param data - Raw member data. For more information, see
130
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
128
131
  */
129
132
  async update(data: any): Promise<this> {
130
133
  const response = await this.internalPut(data);
@@ -135,7 +138,8 @@ export class Member {
135
138
  /**
136
139
  * Removes a member from the project.
137
140
  *
138
- * @returns Returns the raw data of a deleted member.
141
+ * @returns Returns the raw data of a deleted member. For more information, see
142
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
139
143
  */
140
144
  delete(): Promise<any> {
141
145
  return this.internalDelete().then((response) => response.json());
package/src/Api/Model.ts CHANGED
@@ -24,11 +24,13 @@
24
24
  import { IHttpClient } from "./IHttpClient";
25
25
  import type { File } from "./File";
26
26
  import type { Assembly } from "./Assembly";
27
+ import type { IFileReferences } from "./IFile";
27
28
  import type { IModelTransformMatrix } from "./IAssembly";
28
29
 
29
30
  /**
30
- * Provides properties and methods for working with view of the file or assembly. For example,
31
- * for `dwg` it is a `Model` space or layout, and for `rvt` files it is a `3D` view.
31
+ * Provides properties and methods for working with view of the {@link File | file} or
32
+ * {@link Assembly| assembly}. For example, for `dwg` it is a `Model` space or layout, and for
33
+ * `rvt` files it is a `3D` view.
32
34
  */
33
35
  export class Model {
34
36
  private _data: any;
@@ -171,7 +173,7 @@ export class Model {
171
173
  * @param handle - Model handle.
172
174
  * @param transform - Transformation matrix. Specify `undefined` to remove transformation.
173
175
  */
174
- setModelTransformMatrix(handle: string, transform: IModelTransformMatrix): Promise<this> {
176
+ setModelTransformMatrix(handle: string, transform?: IModelTransformMatrix): Promise<this> {
175
177
  return this.file.setModelTransformMatrix(handle, transform).then(() => this);
176
178
  }
177
179
 
@@ -192,7 +194,7 @@ export class Model {
192
194
  * Saves a new model owner file/assembly viewpoint to the server. To create a new viewpoint
193
195
  * use `Viewer.createViewpoint()`.
194
196
  *
195
- * @param viewpoint - Viewpoint.
197
+ * @param viewpoint - Viewpoint object.
196
198
  */
197
199
  saveViewpoint(viewpoint: any): Promise<any> {
198
200
  return this._file.saveViewpoint({
@@ -328,7 +330,7 @@ export class Model {
328
330
  * {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController}
329
331
  * signal, which can be used to abort waiting as desired.
330
332
  */
331
- getReferences(signal?: AbortSignal): Promise<any> {
333
+ getReferences(signal?: AbortSignal): Promise<IFileReferences> {
332
334
  return this._file.getReferences(signal);
333
335
  }
334
336
  }
@@ -26,7 +26,7 @@ import { IGrantedTo } from "./IFile";
26
26
 
27
27
  /**
28
28
  * Provides properties and methods for obtaining information about {@link File | file} actions
29
- * granted to a specific {@link User | users}, or project {@link Member | member}.
29
+ * granted to a specific user, project, or group.
30
30
  */
31
31
  export class Permission {
32
32
  private _data: any;
@@ -34,7 +34,8 @@ export class Permission {
34
34
  public httpClient: IHttpClient;
35
35
 
36
36
  /**
37
- * @param data - Raw permission data received from the server.
37
+ * @param data - Raw permission data received from the server. For more information, see
38
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
38
39
  * @param fileId - Owner file ID.
39
40
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
40
41
  */
@@ -64,6 +65,20 @@ export class Permission {
64
65
  * - `write` - The ability to modify file name, description and references.
65
66
  * - `readViewpoint` - The ability to read file viewpoints.
66
67
  * - `createViewpoint` - The ability to create file viewpoints.
68
+ *
69
+ * @example <caption>Change file permissions for the the specified project.</caption>
70
+ * const myFile = client.getFile(myFileId);
71
+ * const permissions = await myFile.getPermissions();
72
+ * const projectPermissions = permissions.filter((permission) =>
73
+ * permission.grantedTo.some((x) => x.project?.id === myProjectId)
74
+ * );
75
+ * const newActions = ["read", "readSourceFile", "update"];
76
+ * await Promise.all(
77
+ * projectPermissions.map((permission) => {
78
+ * permission.actions = newActions;
79
+ * return permission.save();
80
+ * })
81
+ * );
67
82
  */
68
83
  get actions(): string[] {
69
84
  return this.data.actions;
@@ -74,7 +89,8 @@ export class Permission {
74
89
  }
75
90
 
76
91
  /**
77
- * Raw permission data received from the server.
92
+ * Raw permission data received from the server. For more information, see
93
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
78
94
  *
79
95
  * @readonly
80
96
  */
@@ -96,7 +112,7 @@ export class Permission {
96
112
  }
97
113
 
98
114
  /**
99
- * A list of entities that will get access to the file.
115
+ * A list of users, projects, or groups that will get access to the file.
100
116
  */
101
117
  get grantedTo(): IGrantedTo[] {
102
118
  return this.data.grantedTo;
@@ -129,18 +145,8 @@ export class Permission {
129
145
  /**
130
146
  * Updates permission data on the server.
131
147
  *
132
- * @example <caption>Update file permissions for the the specified project.</caption>
133
- * const myFile = client.getFile(myFileId);
134
- * const permissions = await myFile.getPermissions();
135
- * const projectPermissions = permissions.filter((permission) =>
136
- * permission.grantedTo.some((x) => x.project?.id === myProjectId)
137
- * );
138
- * const newActions = ["read", "readSourceFile", "update"];
139
- * await Promise.allSettled(
140
- * projectPermissions.map((permission) => permission.update({ newActions }))
141
- * );
142
- *
143
- * @param data - Raw permission data.
148
+ * @param data - Raw permission data. For more information, see
149
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
144
150
  */
145
151
  async update(data: any): Promise<this> {
146
152
  const response = await this.internalPut(data);
@@ -151,7 +157,8 @@ export class Permission {
151
157
  /**
152
158
  * Removes a permission from the file.
153
159
  *
154
- * @returns Returns the raw data of a deleted permission.
160
+ * @returns Returns the raw data of a deleted permission. For more information, see
161
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Permission | Open Cloud Permissions API}.
155
162
  */
156
163
  delete(): Promise<any> {
157
164
  return this.internalDelete().then((response) => response.json());
@@ -38,7 +38,8 @@ export class Project {
38
38
  public httpClient: IHttpClient;
39
39
 
40
40
  /**
41
- * @param data - Raw project data received from the server.
41
+ * @param data - Raw project data received from the server. For more information, see
42
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
42
43
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
43
44
  */
44
45
  constructor(data: any, httpClient: IHttpClient) {
@@ -102,7 +103,8 @@ export class Project {
102
103
  }
103
104
 
104
105
  /**
105
- * Raw project data received from the server.
106
+ * Raw project data received from the server. For more information, see
107
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
106
108
  *
107
109
  * @readonly
108
110
  */
@@ -254,7 +256,8 @@ export class Project {
254
256
  /**
255
257
  * Updates project data on the server.
256
258
  *
257
- * @param data - Raw project data.
259
+ * @param data - Raw project data. For more information, see
260
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
258
261
  */
259
262
  async update(data: any): Promise<this> {
260
263
  const response = await this.internalPut("", data);
@@ -265,7 +268,8 @@ export class Project {
265
268
  /**
266
269
  * Deletes a project from the server.
267
270
  *
268
- * @returns Returns the raw data of a deleted project.
271
+ * @returns Returns the raw data of a deleted project. For more information, see
272
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
269
273
  */
270
274
  delete(): Promise<any> {
271
275
  return this.internalDelete("")
@@ -300,7 +304,7 @@ export class Project {
300
304
  * the `image` to `null` will remove the preview.
301
305
  */
302
306
 
303
- async setPreview(image?: BodyInit | null): Promise<any> {
307
+ async setPreview(image?: BodyInit | null): Promise<this> {
304
308
  if (!image) {
305
309
  await this.deletePreview();
306
310
  } else {
@@ -361,7 +365,8 @@ export class Project {
361
365
  * Deletes the specified project role.
362
366
  *
363
367
  * @param name - Role name.
364
- * @returns Returns the raw data of a deleted role.
368
+ * @returns Returns the raw data of a deleted role. For more information, see
369
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
365
370
  */
366
371
  deleteRole(name: string): Promise<any> {
367
372
  return this.internalDelete(`/roles/${name}`).then((response) => response.json());
@@ -403,7 +408,8 @@ export class Project {
403
408
  * Removes the specified member from a project.
404
409
  *
405
410
  * @param memberId - Member ID.
406
- * @returns Returns the raw data of a deleted member.
411
+ * @returns Returns the raw data of a deleted member. For more information, see
412
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
407
413
  */
408
414
  removeMember(memberId: string): Promise<any> {
409
415
  return this.internalDelete(`/members/${memberId}`).then((response) => response.json());
@@ -423,7 +429,8 @@ export class Project {
423
429
  */
424
430
 
425
431
  /**
426
- * Returns a list of project files.
432
+ * Returns a list of project files. For more information, see
433
+ * {@link https://cloud.opendesign.com/docs//pages/server/bcf3.html#ProjectFilesInformation | Open Cloud BCF3 API}.
427
434
  *
428
435
  * This list contains all files that the project has access to. To add a file to this list,
429
436
  * create a {@link IGrantedTo.project | project} permission on the file using
@@ -500,7 +507,7 @@ export class Project {
500
507
  /**
501
508
  * Adds a file to the project with specified permissions.
502
509
  *
503
- * To change file permissions for the project use {@link Permission.update | Permissions.update()}.
510
+ * To change file permissions for the project use {@link Permission.actions}.
504
511
  *
505
512
  * @param fileId - File ID.
506
513
  * @param actions - Actions are allowed to be performed on a file:
package/src/Api/Role.ts CHANGED
@@ -34,7 +34,8 @@ export class Role {
34
34
  public httpClient: IHttpClient;
35
35
 
36
36
  /**
37
- * @param data - Raw role data received from the server.
37
+ * @param data - Raw role data received from the server. For more information, see
38
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
38
39
  * @param projectId - Owner project ID.
39
40
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
40
41
  */
@@ -68,7 +69,8 @@ export class Role {
68
69
  }
69
70
 
70
71
  /**
71
- * Raw role data received from the server.
72
+ * Raw role data received from the server. For more information, see
73
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
72
74
  *
73
75
  * @readonly
74
76
  */
@@ -114,7 +116,8 @@ export class Role {
114
116
  /**
115
117
  * Updates role data on the server.
116
118
  *
117
- * @param data - Raw role data.
119
+ * @param data - Raw role data. For more information, see
120
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
118
121
  */
119
122
  async update(data: any): Promise<this> {
120
123
  const response = await this.internalPut(data);
@@ -125,7 +128,8 @@ export class Role {
125
128
  /**
126
129
  * Deletes a role from the project.
127
130
  *
128
- * @returns Returns the raw data of a deleted role.
131
+ * @returns Returns the raw data of a deleted role. For more information, see
132
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Project | Open Cloud Projects API}.
129
133
  */
130
134
  delete(): Promise<any> {
131
135
  return this.internalDelete().then((response) => response.json());
package/src/Api/User.ts CHANGED
@@ -34,7 +34,8 @@ export class User {
34
34
  public httpClient: IHttpClient;
35
35
 
36
36
  /**
37
- * @param data - Raw user data received from the server.
37
+ * @param data - Raw user data received from the server. For more information, see
38
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
38
39
  * @param httpClient - HTTP client instance used to send requests to the REST API server.
39
40
  */
40
41
  constructor(data: any, httpClient: IHttpClient) {
@@ -87,7 +88,8 @@ export class User {
87
88
  }
88
89
 
89
90
  /**
90
- * Raw user data received from the server.
91
+ * Raw user data received from the server. For more information, see
92
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
91
93
  *
92
94
  * @readonly
93
95
  */
@@ -119,6 +121,9 @@ export class User {
119
121
  /**
120
122
  * The user's email confirmation code, or an empty string if the email has already been confirmed.
121
123
  *
124
+ * To send the confirmation code to the server, use
125
+ * {@link Client.confirmUserEmail | Client.confirmUserEmail()}.
126
+ *
122
127
  * @readonly
123
128
  */
124
129
  get emailConfirmationId(): string {
@@ -307,7 +312,8 @@ export class User {
307
312
  * Only administrators can update other users. If the current logged in user is not an
308
313
  * administrator, they can only update themself, otherwise an exception will be thrown.
309
314
  *
310
- * @param data - Raw user data.
315
+ * @param data - Raw user data. For more information, see
316
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
311
317
  */
312
318
  async update(data: any): Promise<this> {
313
319
  if (this.httpClient.signInUserIsAdmin) {
@@ -335,7 +341,8 @@ export class User {
335
341
  *
336
342
  * You need to re-login after deleting the current logged in user.
337
343
  *
338
- * @returns Returns the raw data of a deleted user.
344
+ * @returns Returns the raw data of a deleted user. For more information, see
345
+ * {@link https://cloud.opendesign.com/docs//pages/server/api.html#Users | Open Cloud Users API}.
339
346
  */
340
347
  delete(): Promise<any> {
341
348
  if (this.httpClient.signInUserIsAdmin) {
package/src/index.ts CHANGED
@@ -29,8 +29,15 @@ export { File } from "./Api/File";
29
29
  export { FetchError, statusText } from "./Api/FetchError";
30
30
  export { Job } from "./Api/Job";
31
31
  export { IHttpClient } from "./Api/IHttpClient";
32
- export { IModelTransformMatrix } from "./Api/IAssembly";
33
- export { IFileDataStatus, IFileReference, IFileReferences, IFileStatus, IGrantedTo } from "./Api/IFile";
32
+ export { IAssociatedFileData, IClashItem, IModelTransformMatrix } from "./Api/IAssembly";
33
+ export {
34
+ IFileDataStatus,
35
+ IFileReference,
36
+ IFileReferences,
37
+ IFileStatus,
38
+ IFileVersionInfo,
39
+ IGrantedTo,
40
+ } from "./Api/IFile";
34
41
  export { IRoleActions } from "./Api/IRole";
35
42
  export { IShortUserDesc } from "./Api/IUser";
36
43
  export { Member } from "./Api/Member";