@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.
- package/dist/client.js +185 -348
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +6 -6
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Assembly.d.ts +19 -42
- package/lib/Api/ClashTest.d.ts +7 -16
- package/lib/Api/Client.d.ts +25 -58
- package/lib/Api/ClientEvents.d.ts +4 -2
- package/lib/Api/FetchError.d.ts +3 -5
- package/lib/Api/File.d.ts +67 -105
- package/lib/Api/Job.d.ts +11 -16
- package/lib/Api/Member.d.ts +1 -7
- package/lib/Api/Model.d.ts +19 -26
- package/lib/Api/Permission.d.ts +0 -6
- package/lib/Api/Project.d.ts +13 -34
- package/lib/Api/Role.d.ts +0 -6
- package/lib/Api/User.d.ts +3 -10
- package/package.json +3 -3
- package/src/Api/Assembly.ts +21 -44
- package/src/Api/ClashTest.ts +9 -18
- package/src/Api/Client.ts +27 -60
- package/src/Api/ClientEvents.ts +4 -2
- package/src/Api/Fetch.ts +2 -2
- package/src/Api/FetchError.ts +5 -7
- package/src/Api/File.ts +69 -107
- package/src/Api/HttpClient.ts +2 -2
- package/src/Api/IAssembly.ts +2 -2
- package/src/Api/IFile.ts +2 -2
- package/src/Api/IHttpClient.ts +2 -2
- package/src/Api/IUser.ts +2 -2
- package/src/Api/Job.ts +14 -19
- package/src/Api/Member.ts +3 -9
- package/src/Api/Model.ts +21 -28
- package/src/Api/Permission.ts +2 -8
- package/src/Api/Project.ts +15 -36
- package/src/Api/Role.ts +2 -8
- package/src/Api/User.ts +5 -12
- package/src/Api/Utils.ts +2 -2
- package/src/Api/XMLHttp.ts +2 -2
- package/src/index.ts +2 -2
package/src/Api/Client.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
// Copyright (C) 2002-
|
|
2
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
3
3
|
// All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This software and its documentation and related materials are owned by
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
//
|
|
15
15
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16
16
|
// license agreement with Open Design Alliance.
|
|
17
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
18
18
|
// All rights reserved.
|
|
19
19
|
//
|
|
20
20
|
// By use of this software, its documentation or related materials, you
|
|
@@ -35,9 +35,9 @@ import { User } from "./User";
|
|
|
35
35
|
import { parseArgs } from "./Utils";
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* The `Client.js` library class that provides methods to access the
|
|
39
|
-
*
|
|
40
|
-
* Projects, Files, Issues etc.
|
|
38
|
+
* The `Client.js` library class that provides methods to access the
|
|
39
|
+
* {@link https://cloud.opendesign.com/docs/index.html#/opencloud_server | Open Cloud Server}
|
|
40
|
+
* resources like Projects, Files, Issues etc.
|
|
41
41
|
*/
|
|
42
42
|
export class Client extends EventEmitter2<ClientEventMap> {
|
|
43
43
|
private _serverUrl = "";
|
|
@@ -55,7 +55,7 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
|
-
* Open Cloud Server URL. Use {@link
|
|
58
|
+
* Open Cloud Server URL. Use {@link configure | configure()} to change server URL.
|
|
59
59
|
*
|
|
60
60
|
* @readonly
|
|
61
61
|
*/
|
|
@@ -65,6 +65,8 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* Deprecated since `25.3`. Use `Viewer.options()` instead to change Viewer parameters.
|
|
68
|
+
*
|
|
69
|
+
* @deprecated
|
|
68
70
|
*/
|
|
69
71
|
get options(): any {
|
|
70
72
|
console.warn(
|
|
@@ -130,8 +132,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
130
132
|
|
|
131
133
|
/**
|
|
132
134
|
* Returns server version.
|
|
133
|
-
*
|
|
134
|
-
* @async
|
|
135
135
|
*/
|
|
136
136
|
version(): Promise<any> {
|
|
137
137
|
return this.httpClient
|
|
@@ -147,10 +147,9 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
147
147
|
/**
|
|
148
148
|
* Register a new user with the specified email and password.
|
|
149
149
|
*
|
|
150
|
-
* @async
|
|
151
150
|
* @param email - User email. Cannot be empty.
|
|
152
151
|
* @param password - User password. Cannot be empty. Password can only contain letters (a-z,
|
|
153
|
-
* A-Z), numbers (0-9), and special characters (~!@#$%^&*()_-+={}[]
|
|
152
|
+
* A-Z), numbers (0-9), and special characters (~!@#$%^&*()_-+={}[]<>|/'":;.,?).
|
|
154
153
|
* @param userName - User name. Cannot be empty or blank if defined. Leave undefined to use
|
|
155
154
|
* `username` from email.
|
|
156
155
|
*/
|
|
@@ -168,7 +167,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
168
167
|
* Resend the Confirmation Email to new user. If the user's email is already confirmed, an
|
|
169
168
|
* exception will be thrown.
|
|
170
169
|
*
|
|
171
|
-
* @async
|
|
172
170
|
* @param email - User email.
|
|
173
171
|
* @param password - User password.
|
|
174
172
|
*/
|
|
@@ -181,7 +179,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
181
179
|
/**
|
|
182
180
|
* Confirm the user's email. If the user's email is already confirmed, an exception will be thrown.
|
|
183
181
|
*
|
|
184
|
-
* @async
|
|
185
182
|
* @param emailConfirmationId - Confirmation code from the Confirmation Email.
|
|
186
183
|
*/
|
|
187
184
|
confirmUserEmail(emailConfirmationId: string): Promise<any> {
|
|
@@ -193,7 +190,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
193
190
|
/**
|
|
194
191
|
* Log in an existing user using email or user name.
|
|
195
192
|
*
|
|
196
|
-
* @async
|
|
197
193
|
* @param email - An email or user name for authentication request.
|
|
198
194
|
* @param password - Password for authentication request.
|
|
199
195
|
*/
|
|
@@ -208,7 +204,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
208
204
|
/**
|
|
209
205
|
* Log in an existing user using access token (API Key).
|
|
210
206
|
*
|
|
211
|
-
* @async
|
|
212
207
|
* @param token - An access token for authentication request. See {@link User.token} for more details.
|
|
213
208
|
*/
|
|
214
209
|
async signInWithToken(token: string): Promise<User> {
|
|
@@ -252,8 +247,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
252
247
|
* - Open the `provider.url` link using `window.open()`.
|
|
253
248
|
* - Add a `/oauth` path (server-defined) handler to the router. In this handler, show an error
|
|
254
249
|
* message if the `error` search parameter is present, or log in with the `token` search parameter.
|
|
255
|
-
*
|
|
256
|
-
* @async
|
|
257
250
|
*/
|
|
258
251
|
getIdentityProviders(): Promise<any> {
|
|
259
252
|
return this.httpClient.get("/identity").then((response) => response.json());
|
|
@@ -261,8 +254,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
261
254
|
|
|
262
255
|
/**
|
|
263
256
|
* Returns the current server settings.
|
|
264
|
-
*
|
|
265
|
-
* @async
|
|
266
257
|
*/
|
|
267
258
|
getServerSettings(): Promise<any> {
|
|
268
259
|
return this.httpClient.get("/settings").then((response) => response.json());
|
|
@@ -273,8 +264,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
273
264
|
*
|
|
274
265
|
* Only administrators can change server settings. If the current logged in user is not an
|
|
275
266
|
* administrator, an exception will be thrown.
|
|
276
|
-
*
|
|
277
|
-
* @async
|
|
278
267
|
*/
|
|
279
268
|
updateServerSettings(settings: any): Promise<any> {
|
|
280
269
|
return this.httpClient.put("/settings", settings).then((response) => response.json());
|
|
@@ -285,8 +274,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
285
274
|
*
|
|
286
275
|
* Only administrators can get a list of users. If the current logged in user is not an
|
|
287
276
|
* administrator, an exception will be thrown.
|
|
288
|
-
*
|
|
289
|
-
* @async
|
|
290
277
|
*/
|
|
291
278
|
getUsers(): Promise<User[]> {
|
|
292
279
|
return this.httpClient
|
|
@@ -302,7 +289,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
302
289
|
* Only administrators can get other users. If the current logged in user is not an
|
|
303
290
|
* administrator, they can only get themselves, otherwise an exception will be thrown.
|
|
304
291
|
*
|
|
305
|
-
* @async
|
|
306
292
|
* @param userId - User ID.
|
|
307
293
|
*/
|
|
308
294
|
getUser(userId: string): Promise<User> {
|
|
@@ -329,10 +315,9 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
329
315
|
* Only administrators can create users. If the current logged in user is not an
|
|
330
316
|
* administrator, an exception will be thrown.
|
|
331
317
|
*
|
|
332
|
-
* @async
|
|
333
318
|
* @param email - User email. Cannot be empty.
|
|
334
319
|
* @param password - User password. Cannot be empty. Password can only contain latin letters
|
|
335
|
-
* (a-z, A-Z), numbers (0-9), and special characters (~!@#$%^&*()_-+={}[]
|
|
320
|
+
* (a-z, A-Z), numbers (0-9), and special characters (~!@#$%^&*()_-+={}[]<>|/'":;.,?).
|
|
336
321
|
* @param params - Additional user data.
|
|
337
322
|
* @param params.isAdmin - `true` if user is an administrator.
|
|
338
323
|
* @param params.userName - User name. Cannot be empty or blank if defined. Leave undefined
|
|
@@ -383,7 +368,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
383
368
|
*
|
|
384
369
|
* You need to re-login to continue working after deleting the current logged in user.
|
|
385
370
|
*
|
|
386
|
-
* @async
|
|
387
371
|
* @param userId - User ID.
|
|
388
372
|
* @returns Returns the raw data of a deleted user.
|
|
389
373
|
*/
|
|
@@ -417,16 +401,15 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
417
401
|
/**
|
|
418
402
|
* Returns a list of files the user has access to.
|
|
419
403
|
*
|
|
420
|
-
* @async
|
|
421
404
|
* @param start - The starting index in the file list. Used for paging.
|
|
422
405
|
* @param limit - The maximum number of files that should be returned per request. Used for paging.
|
|
423
406
|
* @param name - Filter the files by part of the name.
|
|
424
407
|
* @param ext - Filter the files by extension. Extension can be `dgn`, `dwf`, `dwg`, `dxf`,
|
|
425
408
|
* `ifc`, `ifczip`, `nwc`, `nwd`, `obj`, `rcs`, `rfa`, `rvt`, `step`, `stl`, `stp`, `vsf`,
|
|
426
409
|
* or any other drawing or reference file type extension. You can specify multiple
|
|
427
|
-
* extensions on one
|
|
410
|
+
* extensions on one string by separating them with a `|`.
|
|
428
411
|
* @param ids - List of file IDs to return. You can specify multiple IDs on one `string` by
|
|
429
|
-
* separating them with a
|
|
412
|
+
* separating them with a `|`.
|
|
430
413
|
* @param sortByDesc - Allows to specify the descending order of the result. By default,
|
|
431
414
|
* files are sorted by name in ascending order.
|
|
432
415
|
* @param {string} sortField - Allows to specify sort field.
|
|
@@ -473,7 +456,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
473
456
|
/**
|
|
474
457
|
* Returns the file information.
|
|
475
458
|
*
|
|
476
|
-
* @async
|
|
477
459
|
* @param fileId - File ID.
|
|
478
460
|
*/
|
|
479
461
|
getFile(fileId: string): Promise<File> {
|
|
@@ -490,27 +472,26 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
490
472
|
*
|
|
491
473
|
* - {@link UploadProgressEvent | uploadprogress}
|
|
492
474
|
*
|
|
493
|
-
* @
|
|
494
|
-
*
|
|
495
|
-
*
|
|
496
|
-
*
|
|
497
|
-
* object returned as a result of a user selecting files using the HTML `<input>` element.
|
|
475
|
+
* @param file - Web API {@link https://developer.mozilla.org/docs/Web/API/File | File} object
|
|
476
|
+
* are generally retrieved from a
|
|
477
|
+
* {@link https://developer.mozilla.org/docs/Web/API/FileList | FileList} object returned as
|
|
478
|
+
* a result of a user selecting files using the HTML `<input>` element.
|
|
498
479
|
* @param params - An object containing upload parameters.
|
|
499
|
-
* @param params.geometry
|
|
480
|
+
* @param params.geometry - Create job to extract file geometry data. Can be:
|
|
500
481
|
*
|
|
501
482
|
* - `true` - Extract file geometry data into `VSFX` to open the file in `VisualizeJS` viewer.
|
|
502
483
|
* - `vsfx` - Extract file geometry data into `VSFX` to open the file in `VisualizeJS` viewer.
|
|
503
484
|
* - `gltf` - Extract file geometry data into `glTF` to open the file in `Three.js` viewer.
|
|
504
485
|
*
|
|
505
|
-
* @param params.properties
|
|
506
|
-
* @param params.waitForDone
|
|
486
|
+
* @param params.properties - Create job to extract file properties.
|
|
487
|
+
* @param params.waitForDone - Wait for geometry and properties jobs to complete.
|
|
507
488
|
* @param params.timeout - The time, in milliseconds that the function should wait jobs. If
|
|
508
489
|
* no one jobs are done during this time, the `TimeoutError` exception will be thrown.
|
|
509
490
|
* @param params.interval - The time, in milliseconds, the function should delay in between
|
|
510
491
|
* checking jobs status.
|
|
511
|
-
* @param params.signal - An
|
|
512
|
-
*
|
|
513
|
-
* signal
|
|
492
|
+
* @param params.signal - An
|
|
493
|
+
* {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController} *
|
|
494
|
+
* signal, which can be used to abort waiting as desired.
|
|
514
495
|
* @param params.onProgress - Upload progress callback.
|
|
515
496
|
*/
|
|
516
497
|
async uploadFile(
|
|
@@ -552,7 +533,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
552
533
|
/**
|
|
553
534
|
* Delete the drawing or reference file from the server.
|
|
554
535
|
*
|
|
555
|
-
* @async
|
|
556
536
|
* @param fileId - File ID.
|
|
557
537
|
* @returns Returns the raw data of a deleted file.
|
|
558
538
|
*/
|
|
@@ -563,12 +543,11 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
563
543
|
/**
|
|
564
544
|
* Download the drawing or reference file.
|
|
565
545
|
*
|
|
566
|
-
* @async
|
|
567
546
|
* @param fileId - File ID.
|
|
568
547
|
* @param onProgress - Download progress callback.
|
|
569
|
-
* @param signal - An
|
|
570
|
-
*
|
|
571
|
-
* and abort it if desired.
|
|
548
|
+
* @param signal - An
|
|
549
|
+
* {@link https://developer.mozilla.org/docs/Web/API/AbortController | AbortController}
|
|
550
|
+
* signal. Allows to communicate with a fetch request and abort it if desired.
|
|
572
551
|
*/
|
|
573
552
|
downloadFile(fileId: string, onProgress?: (progress: number) => void, signal?: AbortSignal): Promise<ArrayBuffer> {
|
|
574
553
|
return this.httpClient
|
|
@@ -590,7 +569,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
590
569
|
/**
|
|
591
570
|
* Returns a list of jobs created by current user.
|
|
592
571
|
*
|
|
593
|
-
* @async
|
|
594
572
|
* @param status - Filter the jobs by status. Status can be `waiting`, `inpogress`, `done` or
|
|
595
573
|
* `failed`. You can specify multiple statuses on one `string` by separating them with a "|".
|
|
596
574
|
* @param limit - The maximum number of jobs that should be returned per request. Used for paging.
|
|
@@ -632,7 +610,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
632
610
|
/**
|
|
633
611
|
* Returns the job information.
|
|
634
612
|
*
|
|
635
|
-
* @async
|
|
636
613
|
* @param jobId - Job ID.
|
|
637
614
|
*/
|
|
638
615
|
getJob(jobId: string): Promise<Job> {
|
|
@@ -645,7 +622,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
645
622
|
/**
|
|
646
623
|
* Create a new job.
|
|
647
624
|
*
|
|
648
|
-
* @async
|
|
649
625
|
* @param fileId - File ID.
|
|
650
626
|
* @param outputFormat - The job type. Can be one of:
|
|
651
627
|
*
|
|
@@ -658,7 +634,7 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
658
634
|
* before creating a job.
|
|
659
635
|
*
|
|
660
636
|
* @param parameters - Parameters for the job runner. Can be given as command line arguments
|
|
661
|
-
* for the File Converter tool in form
|
|
637
|
+
* for the File Converter tool in form `--arg=value`.
|
|
662
638
|
*/
|
|
663
639
|
createJob(fileId: string, outputFormat: string, parameters?: string | object): Promise<Job> {
|
|
664
640
|
return this.httpClient
|
|
@@ -675,7 +651,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
675
651
|
* Remove a job from the server job list. The method does not delete or stop jobs that are
|
|
676
652
|
* already being executed.
|
|
677
653
|
*
|
|
678
|
-
* @async
|
|
679
654
|
* @param jobId - Job ID.
|
|
680
655
|
* @returns Returns the raw data of a deleted job.
|
|
681
656
|
*/
|
|
@@ -697,7 +672,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
697
672
|
/**
|
|
698
673
|
* Returns a list of assemblies the user has access to.
|
|
699
674
|
*
|
|
700
|
-
* @async
|
|
701
675
|
* @param start - The starting index in the assembly list. Used for paging.
|
|
702
676
|
* @param limit - The maximum number of assemblies that should be returned per request. Used
|
|
703
677
|
* for paging.
|
|
@@ -745,7 +719,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
745
719
|
/**
|
|
746
720
|
* Get assembly information.
|
|
747
721
|
*
|
|
748
|
-
* @async
|
|
749
722
|
* @param assemblyId - Assembly ID.
|
|
750
723
|
*/
|
|
751
724
|
getAssembly(assemblyId: string): Promise<Assembly> {
|
|
@@ -758,11 +731,10 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
758
731
|
/**
|
|
759
732
|
* Create a new assembly.
|
|
760
733
|
*
|
|
761
|
-
* @async
|
|
762
734
|
* @param files - List of file IDs.
|
|
763
735
|
* @param name - Assembly name.
|
|
764
736
|
* @param params - An object containing upload parameters.
|
|
765
|
-
* @param params.waitForDone
|
|
737
|
+
* @param params.waitForDone - Wait for assembly to be created.
|
|
766
738
|
*/
|
|
767
739
|
createAssembly(
|
|
768
740
|
files: string[],
|
|
@@ -785,7 +757,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
785
757
|
/**
|
|
786
758
|
* Delete the assembly from the server.
|
|
787
759
|
*
|
|
788
|
-
* @async
|
|
789
760
|
* @param assemblyId - Assembly ID.
|
|
790
761
|
* @returns Returns the raw data of a deleted assembly.
|
|
791
762
|
*/
|
|
@@ -807,7 +778,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
807
778
|
/**
|
|
808
779
|
* Returns a list of projects the user has access to.
|
|
809
780
|
*
|
|
810
|
-
* @async
|
|
811
781
|
* @param start - The starting index in the project list. Used for paging.
|
|
812
782
|
* @param limit - The maximum number of projects that should be returned per request. Used for paging.
|
|
813
783
|
* @param name - Filter the projects by part of the name.
|
|
@@ -870,7 +840,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
870
840
|
/**
|
|
871
841
|
* Returns the project information.
|
|
872
842
|
*
|
|
873
|
-
* @async
|
|
874
843
|
* @param projectId - Project ID.
|
|
875
844
|
*/
|
|
876
845
|
getProject(projectId: string): Promise<Project> {
|
|
@@ -883,7 +852,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
883
852
|
/**
|
|
884
853
|
* Create a new project.
|
|
885
854
|
*
|
|
886
|
-
* @async
|
|
887
855
|
* @param name - Project name.
|
|
888
856
|
* @param description - Project description.
|
|
889
857
|
* @param startDate - Project start date.
|
|
@@ -909,7 +877,6 @@ export class Client extends EventEmitter2<ClientEventMap> {
|
|
|
909
877
|
/**
|
|
910
878
|
* Delete the project from the server.
|
|
911
879
|
*
|
|
912
|
-
* @async
|
|
913
880
|
* @param projectId - Project ID.
|
|
914
881
|
* @returns Returns the raw data of a deleted project.
|
|
915
882
|
*/
|
package/src/Api/ClientEvents.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* An event measuring progress of an file uploading process.
|
|
3
3
|
*
|
|
4
4
|
* @event
|
|
5
5
|
*/
|
|
@@ -22,10 +22,12 @@ export interface UploadProgressEvent {
|
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Client events.
|
|
25
|
+
*
|
|
26
|
+
* @event
|
|
25
27
|
*/
|
|
26
28
|
export interface ClientEventMap {
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
30
|
+
* An event measuring progress of an file uploading process.
|
|
29
31
|
*/
|
|
30
32
|
uploadprogress: UploadProgressEvent;
|
|
31
33
|
}
|
package/src/Api/Fetch.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
// Copyright (C) 2002-
|
|
2
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
3
3
|
// All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This software and its documentation and related materials are owned by
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
//
|
|
15
15
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16
16
|
// license agreement with Open Design Alliance.
|
|
17
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
18
18
|
// All rights reserved.
|
|
19
19
|
//
|
|
20
20
|
// By use of this software, its documentation or related materials, you
|
package/src/Api/FetchError.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
///////////////////////////////////////////////////////////////////////////////
|
|
2
|
-
// Copyright (C) 2002-
|
|
2
|
+
// Copyright (C) 2002-2024, Open Design Alliance (the "Alliance").
|
|
3
3
|
// All rights reserved.
|
|
4
4
|
//
|
|
5
5
|
// This software and its documentation and related materials are owned by
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
//
|
|
15
15
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
16
16
|
// license agreement with Open Design Alliance.
|
|
17
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
17
|
+
// Open Design Alliance Copyright (C) 2002-2024 by Open Design Alliance.
|
|
18
18
|
// All rights reserved.
|
|
19
19
|
//
|
|
20
20
|
// By use of this software, its documentation or related materials, you
|
|
@@ -110,11 +110,9 @@ export class FetchError extends Error {
|
|
|
110
110
|
protected statusText: string;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* @property status - The
|
|
114
|
-
*
|
|
115
|
-
* @property message - Error message.
|
|
116
|
-
* href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error"
|
|
117
|
-
* target ="_blank">Error</a>.
|
|
113
|
+
* @property status - The
|
|
114
|
+
* {@link https://developer.mozilla.org/docs/Web/HTTP/Status | HTTP status code} of the response.
|
|
115
|
+
* @property message - Error message.
|
|
118
116
|
*/
|
|
119
117
|
constructor(status: number, message?: string) {
|
|
120
118
|
super(message || statusText(status));
|