@inweb/client 25.7.0 → 25.7.2

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.
@@ -29,8 +29,8 @@ export declare class Model {
29
29
  get data(): any;
30
30
  private set data(value);
31
31
  /**
32
- * Scene description resource file name. Use {@link Model.downloadResource()} to download
33
- * scene description file.
32
+ * Scene description resource file name. Use {@link downloadResource | downloadResource()} to
33
+ * download scene description file.
34
34
  *
35
35
  * @readonly
36
36
  */
@@ -54,8 +54,8 @@ export declare class Model {
54
54
  */
55
55
  get fileId(): string;
56
56
  /**
57
- * The list of geometry data resource files. Use {@link Model.downloadResource()} to download
58
- * geometry data files.
57
+ * The list of geometry data resource files. Use {@link downloadResource | downloadResource()}
58
+ * to download geometry data files.
59
59
  *
60
60
  * @readonly
61
61
  */
@@ -82,8 +82,6 @@ export declare class Model {
82
82
  get version(): string;
83
83
  /**
84
84
  * Returns model list with one item `self`.
85
- *
86
- * @async
87
85
  */
88
86
  getModels(): Promise<Model[]>;
89
87
  /**
@@ -95,28 +93,23 @@ export declare class Model {
95
93
  /**
96
94
  * Set or delete a model transformation.
97
95
  *
98
- * @async
99
96
  * @param handle - Model handle.
100
97
  * @param transform - Transformation matrix. To delete transformation provide this to `undefined`.
101
98
  */
102
99
  setModelTransformMatrix(handle: string, transform: any): Promise<this>;
103
100
  /**
104
101
  * Returns model viewpoint list.
105
- *
106
- * @async
107
102
  */
108
103
  getViewpoints(): Promise<any[]>;
109
104
  /**
110
105
  * Add new model viewpoint. To create a new viewpoint use `Viewer.createViewpoint()`.
111
106
  *
112
- * @async
113
107
  * @param viewpoint - Viewpoint.
114
108
  */
115
109
  saveViewpoint(viewpoint: any): Promise<any>;
116
110
  /**
117
111
  * Delete model viewpoint.
118
112
  *
119
- * @async
120
113
  * @param guid - Viewpoint GUID.
121
114
  * @returns Returns the raw data of a deleted viewpoint.
122
115
  */
@@ -125,14 +118,12 @@ export declare class Model {
125
118
  * Returns viewpoint preview image as
126
119
  * {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}.
127
120
  *
128
- * @async
129
121
  * @param guid - Viewpoint GIID.
130
122
  */
131
123
  getSnapshot(guid: string): Promise<string>;
132
124
  /**
133
125
  * Returns snapshot data.
134
126
  *
135
- * @async
136
127
  * @param guid - Viewpoint GUID.
137
128
  * @param bitmapGuid - Bitmap GUID.
138
129
  */
@@ -141,12 +132,11 @@ export declare class Model {
141
132
  * Download model resource file. Resource files are files that contain model scene
142
133
  * descriptions, or geometry data.
143
134
  *
144
- * @async
145
135
  * @param dataId - Resource file name.
146
136
  * @param onProgress - Download progress callback.
147
- * @param signal - An <a href="https://developer.mozilla.org/docs/Web/API/AbortSignal" target
148
- * ="_blank">AbortSignal</a> object instance. Allows to communicate with a fetch request
149
- * and abort it if desired.
137
+ * @param signal - An
138
+ * {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController}
139
+ * signal. Allows to communicate with a fetch request and abort it if desired.
150
140
  */
151
141
  downloadResource(dataId: string, onProgress?: (progress: number, chunk: Uint8Array) => void, signal?: AbortSignal): Promise<ArrayBuffer>;
152
142
  /**
@@ -157,9 +147,9 @@ export declare class Model {
157
147
  * @param ranges - A range of resource file contents to download.
158
148
  * @param requestId - Request ID for download progress callback.
159
149
  * @param onProgress - Download progress callback.
160
- * @param signal - An <a href="https://developer.mozilla.org/docs/Web/API/AbortSignal" target
161
- * ="_blank">AbortSignal</a> object instance. Allows to communicate with a fetch request
162
- * and abort it if desired.
150
+ * @param signal - An
151
+ * {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController}
152
+ * signal. Allows to communicate with a fetch request and abort it if desired.
163
153
  */
164
154
  downloadResourceRange(dataId: string, requestId: number, ranges: Array<{
165
155
  begin: number;
@@ -167,20 +157,23 @@ export declare class Model {
167
157
  requestId: number;
168
158
  }>, onProgress?: (progress: number, chunk: Uint8Array, requestId: number) => void, signal?: AbortSignal): Promise<ArrayBuffer>;
169
159
  /**
170
- * Deprecated since `25.3`. Use {@link Model.downloadResource()} instead.
160
+ * Deprecated since `25.3`. Use {@link downloadResource | downloadResource()} instead.
161
+ *
162
+ * @deprecated
171
163
  */
172
164
  partialDownloadResource(dataId: string, onProgress?: (progress: number, chunk: Uint8Array) => void, signal?: AbortSignal): Promise<ArrayBuffer>;
173
165
  /**
174
- * Deprecated since `25.3`. Use {@link Model.downloadResourceRange()} instead.
166
+ * Deprecated since `25.3`. Use {@link downloadResourceRange | downloadResourceRange()} instead.
167
+ *
168
+ * @deprecated
175
169
  */
176
170
  downloadFileRange(requestId: number, records: any | null, dataId: string, onProgress?: (progress: number, chunk: Uint8Array, requestId: number) => void, signal?: AbortSignal): Promise<void>;
177
171
  /**
178
172
  * Returns a list of references to files used to extract geometry data.
179
173
  *
180
- * @async
181
- * @param [signal] - An <a
182
- * href="https://developer.mozilla.org/docs/Web/API/AbortController">AbortController</a>
183
- * signal object instance, which can be used to abort waiting as desired.
174
+ * @param signal - An
175
+ * {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController}
176
+ * signal, which can be used to abort waiting as desired.
184
177
  */
185
178
  getReferences(signal?: AbortSignal): Promise<any>;
186
179
  }
@@ -64,29 +64,23 @@ export declare class Permission {
64
64
  set public(value: boolean);
65
65
  /**
66
66
  * Refresh permission data.
67
- *
68
- * @async
69
67
  */
70
68
  checkout(): Promise<this>;
71
69
  /**
72
70
  * Update permission data on the server.
73
71
  *
74
- * @async
75
72
  * @param data - Raw permission data.
76
73
  */
77
74
  update(data: any): Promise<this>;
78
75
  /**
79
76
  * Remove a permission from a file.
80
77
  *
81
- * @async
82
78
  * @returns Returns the raw data of a deleted permission.
83
79
  */
84
80
  delete(): Promise<any>;
85
81
  /**
86
82
  * Save permission data changes to the server. Call this method to update permission data on
87
83
  * the server after any changes.
88
- *
89
- * @async
90
84
  */
91
85
  save(): Promise<this>;
92
86
  }
@@ -26,8 +26,8 @@ export declare class Project {
26
26
  */
27
27
  get authorization(): any;
28
28
  /**
29
- * Project creation time (UTC) in the format specified in <a
30
- * href="https://www.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a>.
29
+ * Project creation time (UTC) in the format specified in
30
+ * {@link https://www.wikipedia.org/wiki/ISO_8601 | ISO 8601}.
31
31
  *
32
32
  * @readonly
33
33
  */
@@ -50,8 +50,8 @@ export declare class Project {
50
50
  get description(): string;
51
51
  set description(value: string);
52
52
  /**
53
- * Project end date in the format specified in <a
54
- * href="https://www.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a>.
53
+ * Project end date in the format specified in
54
+ * {@link https://www.wikipedia.org/wiki/ISO_8601 | ISO 8601}.
55
55
  */
56
56
  get endDate(): string;
57
57
  set endDate(value: string | Date);
@@ -105,8 +105,8 @@ export declare class Project {
105
105
  get public(): boolean;
106
106
  set public(value: boolean);
107
107
  /**
108
- * Project start date in the format specified in <a
109
- * href="https://www.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a>.
108
+ * Project start date in the format specified in
109
+ * {@link https://www.wikipedia.org/wiki/ISO_8601 | ISO 8601}.
110
110
  */
111
111
  get startDate(): string;
112
112
  set startDate(value: string | Date);
@@ -117,43 +117,36 @@ export declare class Project {
117
117
  */
118
118
  get topicCount(): number;
119
119
  /**
120
- * Project last update time (UTC) in the format specified in <a
121
- * href="https://www.wikipedia.org/wiki/ISO_8601" target="_blank">ISO 8601</a>.
120
+ * Project last update time (UTC) in the format specified in
121
+ * {@link https://www.wikipedia.org/wiki/ISO_8601 | ISO 8601}.
122
122
  *
123
123
  * @readonly
124
124
  */
125
125
  get updatedAt(): string;
126
126
  /**
127
127
  * Refresh project data.
128
- *
129
- * @async
130
128
  */
131
129
  checkout(): Promise<this>;
132
130
  /**
133
131
  * Update project data on the server.
134
132
  *
135
- * @async
136
133
  * @param data - Raw project data.
137
134
  */
138
135
  update(data: any): Promise<this>;
139
136
  /**
140
137
  * Delete the project from the server.
141
138
  *
142
- * @async
143
139
  * @returns Returns the raw data of a deleted project.
144
140
  */
145
141
  delete(): Promise<any>;
146
142
  /**
147
143
  * Save project data changes to the server. Call this method to update project data on the
148
144
  * server after any changes.
149
- *
150
- * @async
151
145
  */
152
146
  save(): Promise<this>;
153
147
  /**
154
148
  * Set or remove the project preview.
155
149
  *
156
- * @async
157
150
  * @param image - Preview image. Can be a
158
151
  * {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}
159
152
  * string,
@@ -165,59 +158,48 @@ export declare class Project {
165
158
  setPreview(image?: BodyInit | null): Promise<any>;
166
159
  /**
167
160
  * Remove the project preview.
168
- *
169
- * @async
170
161
  */
171
162
  deletePreview(): Promise<this>;
172
163
  /**
173
- * Returns a list of project roles. Project {@link Member | members} have different abilities
174
- * depending on the role they have in a project.
175
- *
176
- * @async
164
+ * Returns a list of project roles. Project members have different abilities depending on the
165
+ * role they have in a project.
177
166
  */
178
167
  getRoles(): Promise<Role[]>;
179
168
  /**
180
169
  * Returns the role information.
181
170
  *
182
- * @async
183
171
  * @param name - Role name.
184
172
  */
185
173
  getRole(name: string): Promise<Role>;
186
174
  /**
187
175
  * Create a new project role.
188
176
  *
189
- * @async
190
177
  * @param name - Role name.
191
178
  * @param description - Role description.
192
- * @param permissions - Actions are allowed to be performed. See
193
- * {@link Role#permissions | Role.permissions} for more details.
179
+ * @param permissions - Actions are allowed to be performed. See {@link Role.permissions} for
180
+ * more details.
194
181
  */
195
182
  createRole(name: string, description: string, permissions: any): Promise<Role>;
196
183
  /**
197
184
  * Delete project role.
198
185
  *
199
- * @async
200
186
  * @param name - Role name.
201
187
  * @returns Returns the raw data of a deleted role.
202
188
  */
203
189
  deleteRole(name: string): Promise<any>;
204
190
  /**
205
191
  * Returns a list of project members.
206
- *
207
- * @async
208
192
  */
209
193
  getMembers(): Promise<Member[]>;
210
194
  /**
211
195
  * Returns the member information.
212
196
  *
213
- * @async
214
197
  * @param memberId - Member ID.
215
198
  */
216
199
  getMember(memberId: string): Promise<Member>;
217
200
  /**
218
201
  * Add a user to the project to become a member and have permission to perform actions.
219
202
  *
220
- * @async
221
203
  * @param userId - User ID.
222
204
  * @param role - User role from the list of project roles.
223
205
  */
@@ -225,7 +207,6 @@ export declare class Project {
225
207
  /**
226
208
  * Remove a member from a project.
227
209
  *
228
- * @async
229
210
  * @param memberId - Member ID.
230
211
  * @returns Returns the raw data of a deleted member.
231
212
  */
@@ -244,9 +225,7 @@ export declare class Project {
244
225
  */
245
226
  /**
246
227
  * Returns a list of project files. To add a file to this list, create a `project` permission
247
- * on the file using {@link File#createPermission | File.createPermission()}.
248
- *
249
- * @async
228
+ * on the file using {@link File.createPermission | File.createPermission()}.
250
229
  */
251
230
  getFilesInformation(): Promise<any[]>;
252
231
  }
package/lib/Api/Role.d.ts CHANGED
@@ -53,29 +53,23 @@ export declare class Role {
53
53
  set permissions(value: any);
54
54
  /**
55
55
  * Refresh role data.
56
- *
57
- * @async
58
56
  */
59
57
  checkout(): Promise<this>;
60
58
  /**
61
59
  * Update role data on the server.
62
60
  *
63
- * @async
64
61
  * @param data - Raw role data.
65
62
  */
66
63
  update(data: any): Promise<this>;
67
64
  /**
68
65
  * Delete a role from the project.
69
66
  *
70
- * @async
71
67
  * @returns Returns the raw data of a deleted role.
72
68
  */
73
69
  delete(): Promise<any>;
74
70
  /**
75
71
  * Save role data changes to the server. Call this method to update role data on the server
76
72
  * after any changes.
77
- *
78
- * @async
79
73
  */
80
74
  save(): Promise<this>;
81
75
  }
package/lib/Api/User.d.ts CHANGED
@@ -12,7 +12,7 @@ export declare class User {
12
12
  constructor(data: any, httpClient: IHttpClient);
13
13
  /**
14
14
  * User avatar image URL or empty string if the user does not have an avatar. Use
15
- * {@link User.setAvatar | setAvatar()} to change avatar image.
15
+ * {@link setAvatar | setAvatar()} to change avatar image.
16
16
  *
17
17
  * @readonly
18
18
  */
@@ -134,7 +134,8 @@ export declare class User {
134
134
  */
135
135
  get storageUsed(): number;
136
136
  /**
137
- * The user's access token (API key). Use {@link Client.signInWithToken()} to log in using token.
137
+ * The user's access token (API key). Use {@link signInWithToken | Client.signInWithToken()}
138
+ * to log in using token.
138
139
  *
139
140
  * @readonly
140
141
  */
@@ -157,7 +158,6 @@ export declare class User {
157
158
  * Only administrators can update other users. If the current logged in user is not an
158
159
  * administrator, they can only update themself, otherwise an exception will be thrown.
159
160
  *
160
- * @async
161
161
  * @param data - Raw user data.
162
162
  */
163
163
  update(data: any): Promise<this>;
@@ -172,15 +172,12 @@ export declare class User {
172
172
  *
173
173
  * You need to re-login to continue working after deleting the current logged in user.
174
174
  *
175
- * @async
176
175
  * @returns Returns the raw data of a deleted user.
177
176
  */
178
177
  delete(): Promise<any>;
179
178
  /**
180
179
  * Save user data changes to the server. Call this method to update user data on the server
181
180
  * after any changes.
182
- *
183
- * @async
184
181
  */
185
182
  save(): Promise<this>;
186
183
  /**
@@ -189,7 +186,6 @@ export declare class User {
189
186
  * Only administrators can set the avatar of other users. If the current logged in user is
190
187
  * not an administrator, they can only set their avatar, otherwise an exception will be thrown.
191
188
  *
192
- * @async
193
189
  * @param image - Avatar image. Can be a
194
190
  * {@link https://developer.mozilla.org/docs/Web/HTTP/Basics_of_HTTP/Data_URIs | Data URL}
195
191
  * string,
@@ -204,8 +200,6 @@ export declare class User {
204
200
  *
205
201
  * Only administrators can remove the avatar of other users. If the current logged in user is
206
202
  * not an administrator, they can only remove their avatar, otherwise an exception will be thrown.
207
- *
208
- * @async
209
203
  */
210
204
  deleteAvatar(): Promise<this>;
211
205
  /**
@@ -217,7 +211,6 @@ export declare class User {
217
211
  *
218
212
  * To change their password, non-administrator users must provide their old password.
219
213
  *
220
- * @async
221
214
  * @param newPassword - New user password.
222
215
  * @param oldPassword - Old user password. Only required for non-administrator users to
223
216
  * change their password.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inweb/client",
3
- "version": "25.7.0",
3
+ "version": "25.7.2",
4
4
  "description": "JavaScript REST API client for the Open Cloud Server",
5
5
  "homepage": "https://cloud.opendesign.com/docs/index.html",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -23,9 +23,9 @@
23
23
  "scripts": {
24
24
  "build": "rollup -c rollup.config.js",
25
25
  "test": "karma start karma.conf.js",
26
- "ts-docs": "typedoc"
26
+ "docs": "typedoc"
27
27
  },
28
28
  "dependencies": {
29
- "@inweb/eventemitter2": "~25.7.0"
29
+ "@inweb/eventemitter2": "~25.7.2"
30
30
  }
31
31
  }