@inweb/client 26.3.1 → 26.3.3
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/LICENSE +2 -2
- package/README.md +1 -1
- package/dist/client.js +71 -71
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +32 -32
- package/dist/client.module.js.map +1 -1
- package/package.json +2 -2
- package/src/Api/Assembly.ts +2 -2
- package/src/Api/ClashTest.ts +2 -2
- package/src/Api/Client.ts +2 -2
- package/src/Api/Endpoint.ts +2 -2
- package/src/Api/Fetch.ts +2 -2
- package/src/Api/FetchError.ts +2 -2
- package/src/Api/File.ts +2 -2
- 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/IRole.ts +2 -2
- package/src/Api/ISharedLink.ts +2 -2
- package/src/Api/IUser.ts +2 -2
- package/src/Api/Job.ts +2 -2
- package/src/Api/Member.ts +2 -2
- package/src/Api/Model.ts +2 -2
- package/src/Api/OAuthClient.ts +2 -2
- package/src/Api/Permission.ts +2 -2
- package/src/Api/Project.ts +2 -2
- package/src/Api/Role.ts +2 -2
- package/src/Api/SharedFile.ts +2 -2
- package/src/Api/SharedLink.ts +2 -2
- package/src/Api/User.ts +2 -2
- package/src/Api/Utils.ts +2 -2
- package/src/Api/XMLHttp.ts +2 -2
- package/src/index.ts +2 -2
package/LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Copyright (C) 2002-
|
|
1
|
+
Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
2
2
|
All rights reserved.
|
|
3
3
|
|
|
4
4
|
This software and its documentation and related materials are owned by
|
|
@@ -13,7 +13,7 @@ with their copyright notices:
|
|
|
13
13
|
|
|
14
14
|
This application incorporates Open Design Alliance software pursuant to a
|
|
15
15
|
license agreement with Open Design Alliance.
|
|
16
|
-
Open Design Alliance Copyright (C) 2002-
|
|
16
|
+
Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
17
17
|
All rights reserved.
|
|
18
18
|
|
|
19
19
|
By use of this software, its documentation or related materials, you
|
package/README.md
CHANGED
|
@@ -73,4 +73,4 @@ To learn more, see [First application guide](https://cloud.opendesign.com/docs/i
|
|
|
73
73
|
|
|
74
74
|
## Copyright and license
|
|
75
75
|
|
|
76
|
-
Code and documentation copyright 2002-
|
|
76
|
+
Code and documentation copyright 2002-2025 the [Open Design Alliance](https://opendesign.com). Code is distributed under a proprietary license, see [LICENSE](./LICENSE) for more information.
|
package/dist/client.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
7
7
|
///////////////////////////////////////////////////////////////////////////////
|
|
8
|
-
// Copyright (C) 2002-
|
|
8
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
9
9
|
// All rights reserved.
|
|
10
10
|
//
|
|
11
11
|
// This software and its documentation and related materials are owned by
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
//
|
|
21
21
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
22
22
|
// license agreement with Open Design Alliance.
|
|
23
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
23
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
24
24
|
// All rights reserved.
|
|
25
25
|
//
|
|
26
26
|
// By use of this software, its documentation or related materials, you
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
///////////////////////////////////////////////////////////////////////////////
|
|
115
|
-
// Copyright (C) 2002-
|
|
115
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
116
116
|
// All rights reserved.
|
|
117
117
|
//
|
|
118
118
|
// This software and its documentation and related materials are owned by
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
//
|
|
128
128
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
129
129
|
// license agreement with Open Design Alliance.
|
|
130
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
130
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
131
131
|
// All rights reserved.
|
|
132
132
|
//
|
|
133
133
|
// By use of this software, its documentation or related materials, you
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
}
|
|
230
230
|
|
|
231
231
|
///////////////////////////////////////////////////////////////////////////////
|
|
232
|
-
// Copyright (C) 2002-
|
|
232
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
233
233
|
// All rights reserved.
|
|
234
234
|
//
|
|
235
235
|
// This software and its documentation and related materials are owned by
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
//
|
|
245
245
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
246
246
|
// license agreement with Open Design Alliance.
|
|
247
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
247
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
248
248
|
// All rights reserved.
|
|
249
249
|
//
|
|
250
250
|
// By use of this software, its documentation or related materials, you
|
|
@@ -502,7 +502,7 @@
|
|
|
502
502
|
}
|
|
503
503
|
|
|
504
504
|
///////////////////////////////////////////////////////////////////////////////
|
|
505
|
-
// Copyright (C) 2002-
|
|
505
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
506
506
|
// All rights reserved.
|
|
507
507
|
//
|
|
508
508
|
// This software and its documentation and related materials are owned by
|
|
@@ -517,7 +517,7 @@
|
|
|
517
517
|
//
|
|
518
518
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
519
519
|
// license agreement with Open Design Alliance.
|
|
520
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
520
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
521
521
|
// All rights reserved.
|
|
522
522
|
//
|
|
523
523
|
// By use of this software, its documentation or related materials, you
|
|
@@ -541,9 +541,9 @@
|
|
|
541
541
|
var _a, _b, _c;
|
|
542
542
|
const timeout = params.timeout || 600000;
|
|
543
543
|
const interval = params.interval || 3000;
|
|
544
|
-
const signal = (_a = params.signal) !== null && _a !==
|
|
545
|
-
const abortError = (_b = params.abortError) !== null && _b !==
|
|
546
|
-
const timeoutError = (_c = params.timeoutError) !== null && _c !==
|
|
544
|
+
const signal = (_a = params.signal) !== null && _a !== void 0 ? _a : new AbortController().signal;
|
|
545
|
+
const abortError = (_b = params.abortError) !== null && _b !== void 0 ? _b : new DOMException("Aborted", "AbortError");
|
|
546
|
+
const timeoutError = (_c = params.timeoutError) !== null && _c !== void 0 ? _c : new DOMException("Timeout", "TimeoutError");
|
|
547
547
|
const end = performance.now() + timeout;
|
|
548
548
|
let count = timeout / interval;
|
|
549
549
|
do {
|
|
@@ -574,9 +574,9 @@
|
|
|
574
574
|
function userFullName(firstName, lastName = "", userName = "") {
|
|
575
575
|
var _a;
|
|
576
576
|
if (firstName && typeof firstName !== "string") {
|
|
577
|
-
return userFullName((_a = firstName.firstName) !== null && _a !==
|
|
577
|
+
return userFullName((_a = firstName.firstName) !== null && _a !== void 0 ? _a : firstName.name, firstName.lastName, firstName.userName);
|
|
578
578
|
}
|
|
579
|
-
return `${firstName !== null && firstName !==
|
|
579
|
+
return `${firstName !== null && firstName !== void 0 ? firstName : ""} ${lastName !== null && lastName !== void 0 ? lastName : ""}`.trim() || userName;
|
|
580
580
|
}
|
|
581
581
|
function userInitials(fullName = "") {
|
|
582
582
|
const names = fullName.split(" ").filter((x) => x);
|
|
@@ -590,7 +590,7 @@
|
|
|
590
590
|
}
|
|
591
591
|
|
|
592
592
|
///////////////////////////////////////////////////////////////////////////////
|
|
593
|
-
// Copyright (C) 2002-
|
|
593
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
594
594
|
// All rights reserved.
|
|
595
595
|
//
|
|
596
596
|
// This software and its documentation and related materials are owned by
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
//
|
|
606
606
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
607
607
|
// license agreement with Open Design Alliance.
|
|
608
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
608
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
609
609
|
// All rights reserved.
|
|
610
610
|
//
|
|
611
611
|
// By use of this software, its documentation or related materials, you
|
|
@@ -808,7 +808,7 @@
|
|
|
808
808
|
const checkDone = () => this.checkout().then((test) => {
|
|
809
809
|
var _a;
|
|
810
810
|
const ready = ["done", "failed"].includes(test.status);
|
|
811
|
-
const cancel = (_a = params === null || params ===
|
|
811
|
+
const cancel = (_a = params === null || params === void 0 ? void 0 : params.onCheckout) === null || _a === void 0 ? void 0 : _a.call(params, test, ready);
|
|
812
812
|
return cancel || ready;
|
|
813
813
|
});
|
|
814
814
|
return waitFor(checkDone, params).then(() => this);
|
|
@@ -822,7 +822,7 @@
|
|
|
822
822
|
}
|
|
823
823
|
|
|
824
824
|
///////////////////////////////////////////////////////////////////////////////
|
|
825
|
-
// Copyright (C) 2002-
|
|
825
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
826
826
|
// All rights reserved.
|
|
827
827
|
//
|
|
828
828
|
// This software and its documentation and related materials are owned by
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
//
|
|
838
838
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
839
839
|
// license agreement with Open Design Alliance.
|
|
840
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
840
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
841
841
|
// All rights reserved.
|
|
842
842
|
//
|
|
843
843
|
// By use of this software, its documentation or related materials, you
|
|
@@ -893,7 +893,7 @@
|
|
|
893
893
|
this._data.owner.fullName = userFullName(this._data.owner);
|
|
894
894
|
this._data.owner.initials = userInitials(this._data.owner.fullName);
|
|
895
895
|
// associatedFiles since 23.12
|
|
896
|
-
(_a = (_b = this._data).associatedFiles) !== null && _a !==
|
|
896
|
+
(_a = (_b = this._data).associatedFiles) !== null && _a !== void 0 ? _a : (_b.associatedFiles = []);
|
|
897
897
|
this._data.associatedFiles.forEach((file) => (file.link = `${this.httpClient.serverUrl}/files/${file.fileId}`));
|
|
898
898
|
}
|
|
899
899
|
/**
|
|
@@ -1238,7 +1238,7 @@
|
|
|
1238
1238
|
const checkDone = () => this.checkout().then((assembly) => {
|
|
1239
1239
|
var _a;
|
|
1240
1240
|
const ready = ["done", "failed"].includes(assembly.status);
|
|
1241
|
-
const cancel = (_a = params === null || params ===
|
|
1241
|
+
const cancel = (_a = params === null || params === void 0 ? void 0 : params.onCheckout) === null || _a === void 0 ? void 0 : _a.call(params, assembly, ready);
|
|
1242
1242
|
return cancel || ready;
|
|
1243
1243
|
});
|
|
1244
1244
|
return waitFor(checkDone, params).then(() => this);
|
|
@@ -1338,7 +1338,7 @@
|
|
|
1338
1338
|
* can be used to abort waiting as desired.
|
|
1339
1339
|
*/
|
|
1340
1340
|
createClashTest(name, selectionTypeA, selectionTypeB, selectionSetA, selectionSetB, params) {
|
|
1341
|
-
const { tolerance, clearance, waitForDone } = params !== null && params !==
|
|
1341
|
+
const { tolerance, clearance, waitForDone } = params !== null && params !== void 0 ? params : {};
|
|
1342
1342
|
if (!Array.isArray(selectionSetA))
|
|
1343
1343
|
selectionSetA = [selectionSetA];
|
|
1344
1344
|
if (!Array.isArray(selectionSetB))
|
|
@@ -1436,7 +1436,7 @@
|
|
|
1436
1436
|
}
|
|
1437
1437
|
|
|
1438
1438
|
///////////////////////////////////////////////////////////////////////////////
|
|
1439
|
-
// Copyright (C) 2002-
|
|
1439
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
1440
1440
|
// All rights reserved.
|
|
1441
1441
|
//
|
|
1442
1442
|
// This software and its documentation and related materials are owned by
|
|
@@ -1451,7 +1451,7 @@
|
|
|
1451
1451
|
//
|
|
1452
1452
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
1453
1453
|
// license agreement with Open Design Alliance.
|
|
1454
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
1454
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
1455
1455
|
// All rights reserved.
|
|
1456
1456
|
//
|
|
1457
1457
|
// By use of this software, its documentation or related materials, you
|
|
@@ -1510,7 +1510,7 @@
|
|
|
1510
1510
|
}
|
|
1511
1511
|
|
|
1512
1512
|
///////////////////////////////////////////////////////////////////////////////
|
|
1513
|
-
// Copyright (C) 2002-
|
|
1513
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
1514
1514
|
// All rights reserved.
|
|
1515
1515
|
//
|
|
1516
1516
|
// This software and its documentation and related materials are owned by
|
|
@@ -1525,7 +1525,7 @@
|
|
|
1525
1525
|
//
|
|
1526
1526
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
1527
1527
|
// license agreement with Open Design Alliance.
|
|
1528
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
1528
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
1529
1529
|
// All rights reserved.
|
|
1530
1530
|
//
|
|
1531
1531
|
// By use of this software, its documentation or related materials, you
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
}
|
|
1571
1571
|
|
|
1572
1572
|
///////////////////////////////////////////////////////////////////////////////
|
|
1573
|
-
// Copyright (C) 2002-
|
|
1573
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
1574
1574
|
// All rights reserved.
|
|
1575
1575
|
//
|
|
1576
1576
|
// This software and its documentation and related materials are owned by
|
|
@@ -1585,7 +1585,7 @@
|
|
|
1585
1585
|
//
|
|
1586
1586
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
1587
1587
|
// license agreement with Open Design Alliance.
|
|
1588
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
1588
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
1589
1589
|
// All rights reserved.
|
|
1590
1590
|
//
|
|
1591
1591
|
// By use of this software, its documentation or related materials, you
|
|
@@ -1728,7 +1728,7 @@
|
|
|
1728
1728
|
}
|
|
1729
1729
|
|
|
1730
1730
|
///////////////////////////////////////////////////////////////////////////////
|
|
1731
|
-
// Copyright (C) 2002-
|
|
1731
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
1732
1732
|
// All rights reserved.
|
|
1733
1733
|
//
|
|
1734
1734
|
// This software and its documentation and related materials are owned by
|
|
@@ -1743,7 +1743,7 @@
|
|
|
1743
1743
|
//
|
|
1744
1744
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
1745
1745
|
// license agreement with Open Design Alliance.
|
|
1746
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
1746
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
1747
1747
|
// All rights reserved.
|
|
1748
1748
|
//
|
|
1749
1749
|
// By use of this software, its documentation or related materials, you
|
|
@@ -1872,7 +1872,7 @@
|
|
|
1872
1872
|
}
|
|
1873
1873
|
|
|
1874
1874
|
///////////////////////////////////////////////////////////////////////////////
|
|
1875
|
-
// Copyright (C) 2002-
|
|
1875
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
1876
1876
|
// All rights reserved.
|
|
1877
1877
|
//
|
|
1878
1878
|
// This software and its documentation and related materials are owned by
|
|
@@ -1887,7 +1887,7 @@
|
|
|
1887
1887
|
//
|
|
1888
1888
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
1889
1889
|
// license agreement with Open Design Alliance.
|
|
1890
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
1890
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
1891
1891
|
// All rights reserved.
|
|
1892
1892
|
//
|
|
1893
1893
|
// By use of this software, its documentation or related materials, you
|
|
@@ -2075,7 +2075,7 @@
|
|
|
2075
2075
|
const checkDone = () => this.checkout().then((job) => {
|
|
2076
2076
|
var _a;
|
|
2077
2077
|
const ready = ["done", "failed"].includes(job.status);
|
|
2078
|
-
const cancel = (_a = params === null || params ===
|
|
2078
|
+
const cancel = (_a = params === null || params === void 0 ? void 0 : params.onCheckout) === null || _a === void 0 ? void 0 : _a.call(params, job, ready);
|
|
2079
2079
|
return cancel || ready;
|
|
2080
2080
|
});
|
|
2081
2081
|
return waitFor(checkDone, params).then(() => this);
|
|
@@ -2083,7 +2083,7 @@
|
|
|
2083
2083
|
}
|
|
2084
2084
|
|
|
2085
2085
|
///////////////////////////////////////////////////////////////////////////////
|
|
2086
|
-
// Copyright (C) 2002-
|
|
2086
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
2087
2087
|
// All rights reserved.
|
|
2088
2088
|
//
|
|
2089
2089
|
// This software and its documentation and related materials are owned by
|
|
@@ -2098,7 +2098,7 @@
|
|
|
2098
2098
|
//
|
|
2099
2099
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
2100
2100
|
// license agreement with Open Design Alliance.
|
|
2101
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
2101
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
2102
2102
|
// All rights reserved.
|
|
2103
2103
|
//
|
|
2104
2104
|
// By use of this software, its documentation or related materials, you
|
|
@@ -2201,7 +2201,7 @@
|
|
|
2201
2201
|
}
|
|
2202
2202
|
|
|
2203
2203
|
///////////////////////////////////////////////////////////////////////////////
|
|
2204
|
-
// Copyright (C) 2002-
|
|
2204
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
2205
2205
|
// All rights reserved.
|
|
2206
2206
|
//
|
|
2207
2207
|
// This software and its documentation and related materials are owned by
|
|
@@ -2216,7 +2216,7 @@
|
|
|
2216
2216
|
//
|
|
2217
2217
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
2218
2218
|
// license agreement with Open Design Alliance.
|
|
2219
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
2219
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
2220
2220
|
// All rights reserved.
|
|
2221
2221
|
//
|
|
2222
2222
|
// By use of this software, its documentation or related materials, you
|
|
@@ -2281,28 +2281,28 @@
|
|
|
2281
2281
|
// owner since 24.8
|
|
2282
2282
|
if (typeof this._data.owner === "string")
|
|
2283
2283
|
this._data.owner = { userId: this._data.owner };
|
|
2284
|
-
(_a = (_p = this._data).owner) !== null && _a !==
|
|
2284
|
+
(_a = (_p = this._data).owner) !== null && _a !== void 0 ? _a : (_p.owner = {});
|
|
2285
2285
|
this._data.owner.avatarUrl = `${this.httpClient.serverUrl}/users/${this._data.owner.userId}/avatar`;
|
|
2286
2286
|
this._data.owner.fullName = userFullName(this._data.owner);
|
|
2287
2287
|
this._data.owner.initials = userInitials(this._data.owner.fullName);
|
|
2288
2288
|
// status since 24.9
|
|
2289
|
-
(_b = (_q = this._data).status) !== null && _b !==
|
|
2290
|
-
(_c = (_r = this._data.status).geometry) !== null && _c !==
|
|
2291
|
-
(_e = (_s = this._data.status).properties) !== null && _e !==
|
|
2292
|
-
(_g = (_t = this._data.status).validation) !== null && _g !==
|
|
2289
|
+
(_b = (_q = this._data).status) !== null && _b !== void 0 ? _b : (_q.status = {});
|
|
2290
|
+
(_c = (_r = this._data.status).geometry) !== null && _c !== void 0 ? _c : (_r.geometry = { state: (_d = this._data.geometryStatus) !== null && _d !== void 0 ? _d : "none" });
|
|
2291
|
+
(_e = (_s = this._data.status).properties) !== null && _e !== void 0 ? _e : (_s.properties = { state: (_f = this._data.propertiesStatus) !== null && _f !== void 0 ? _f : "none" });
|
|
2292
|
+
(_g = (_t = this._data.status).validation) !== null && _g !== void 0 ? _g : (_t.validation = { state: (_h = this._data.validationStatus) !== null && _h !== void 0 ? _h : "none" });
|
|
2293
2293
|
// updatedBy since 24.10
|
|
2294
|
-
(_j = (_u = this._data).updatedBy) !== null && _j !==
|
|
2294
|
+
(_j = (_u = this._data).updatedBy) !== null && _j !== void 0 ? _j : (_u.updatedBy = {});
|
|
2295
2295
|
this._data.updatedBy.avatarUrl = `${this.httpClient.serverUrl}/users/${this._data.updatedBy.userId}/avatar`;
|
|
2296
2296
|
this._data.updatedBy.fullName = userFullName(this._data.updatedBy);
|
|
2297
2297
|
this._data.updatedBy.initials = userInitials(this._data.updatedBy.fullName);
|
|
2298
2298
|
// versions since 24.10
|
|
2299
|
-
(_k = (_v = this._data).versions) !== null && _k !==
|
|
2299
|
+
(_k = (_v = this._data).versions) !== null && _k !== void 0 ? _k : (_v.versions = [{ ...value }]);
|
|
2300
2300
|
// geometryGltf status since 24.12
|
|
2301
|
-
(_l = (_w = this._data.status).geometryGltf) !== null && _l !==
|
|
2301
|
+
(_l = (_w = this._data.status).geometryGltf) !== null && _l !== void 0 ? _l : (_w.geometryGltf = { state: "none" });
|
|
2302
2302
|
// isFileDeleted since 25.7
|
|
2303
|
-
(_m = (_x = this._data).isFileDeleted) !== null && _m !==
|
|
2303
|
+
(_m = (_x = this._data).isFileDeleted) !== null && _m !== void 0 ? _m : (_x.isFileDeleted = false);
|
|
2304
2304
|
// sharedLinkToken since 26.0
|
|
2305
|
-
(_o = (_y = this._data).sharedLinkToken) !== null && _o !==
|
|
2305
|
+
(_o = (_y = this._data).sharedLinkToken) !== null && _o !== void 0 ? _o : (_y.sharedLinkToken = null);
|
|
2306
2306
|
}
|
|
2307
2307
|
/**
|
|
2308
2308
|
* Returns a list of file formats in which the active version of the file was exported.
|
|
@@ -2862,7 +2862,7 @@
|
|
|
2862
2862
|
return ["none", "done", "failed"].includes(jobStatus.state || "none");
|
|
2863
2863
|
});
|
|
2864
2864
|
const ready = waitAll ? readyJobs.length === waitJobs.length : readyJobs.length > 0;
|
|
2865
|
-
const cancel = (_a = params === null || params ===
|
|
2865
|
+
const cancel = (_a = params === null || params === void 0 ? void 0 : params.onCheckout) === null || _a === void 0 ? void 0 : _a.call(params, file, ready);
|
|
2866
2866
|
return cancel || ready;
|
|
2867
2867
|
});
|
|
2868
2868
|
return waitFor(checkDone, params).then(() => this);
|
|
@@ -2959,7 +2959,7 @@
|
|
|
2959
2959
|
waitForDone: false,
|
|
2960
2960
|
}) {
|
|
2961
2961
|
const result = await this.httpClient
|
|
2962
|
-
.uploadFile(this.getEndpointPath("/versions"), file, (progress) => { var _a; return (_a = params.onProgress) === null || _a ===
|
|
2962
|
+
.uploadFile(this.getEndpointPath("/versions"), file, (progress) => { var _a; return (_a = params.onProgress) === null || _a === void 0 ? void 0 : _a.call(params, progress, file); }, {
|
|
2963
2963
|
headers: this.headers,
|
|
2964
2964
|
})
|
|
2965
2965
|
.then((xhr) => JSON.parse(xhr.responseText))
|
|
@@ -3103,7 +3103,7 @@
|
|
|
3103
3103
|
}
|
|
3104
3104
|
|
|
3105
3105
|
///////////////////////////////////////////////////////////////////////////////
|
|
3106
|
-
// Copyright (C) 2002-
|
|
3106
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
3107
3107
|
// All rights reserved.
|
|
3108
3108
|
//
|
|
3109
3109
|
// This software and its documentation and related materials are owned by
|
|
@@ -3118,7 +3118,7 @@
|
|
|
3118
3118
|
//
|
|
3119
3119
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
3120
3120
|
// license agreement with Open Design Alliance.
|
|
3121
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
3121
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
3122
3122
|
// All rights reserved.
|
|
3123
3123
|
//
|
|
3124
3124
|
// By use of this software, its documentation or related materials, you
|
|
@@ -3218,7 +3218,7 @@
|
|
|
3218
3218
|
}
|
|
3219
3219
|
|
|
3220
3220
|
///////////////////////////////////////////////////////////////////////////////
|
|
3221
|
-
// Copyright (C) 2002-
|
|
3221
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
3222
3222
|
// All rights reserved.
|
|
3223
3223
|
//
|
|
3224
3224
|
// This software and its documentation and related materials are owned by
|
|
@@ -3233,7 +3233,7 @@
|
|
|
3233
3233
|
//
|
|
3234
3234
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
3235
3235
|
// license agreement with Open Design Alliance.
|
|
3236
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
3236
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
3237
3237
|
// All rights reserved.
|
|
3238
3238
|
//
|
|
3239
3239
|
// By use of this software, its documentation or related materials, you
|
|
@@ -3341,7 +3341,7 @@
|
|
|
3341
3341
|
}
|
|
3342
3342
|
|
|
3343
3343
|
///////////////////////////////////////////////////////////////////////////////
|
|
3344
|
-
// Copyright (C) 2002-
|
|
3344
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
3345
3345
|
// All rights reserved.
|
|
3346
3346
|
//
|
|
3347
3347
|
// This software and its documentation and related materials are owned by
|
|
@@ -3356,7 +3356,7 @@
|
|
|
3356
3356
|
//
|
|
3357
3357
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
3358
3358
|
// license agreement with Open Design Alliance.
|
|
3359
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
3359
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
3360
3360
|
// All rights reserved.
|
|
3361
3361
|
//
|
|
3362
3362
|
// By use of this software, its documentation or related materials, you
|
|
@@ -3800,14 +3800,14 @@
|
|
|
3800
3800
|
.then((data) => new File(data, this.httpClient));
|
|
3801
3801
|
const permissions = await file.getPermissions();
|
|
3802
3802
|
await Promise.allSettled(permissions
|
|
3803
|
-
.filter((permission) => permission.grantedTo.some((x) => { var _a; return ((_a = x.project) === null || _a ===
|
|
3803
|
+
.filter((permission) => permission.grantedTo.some((x) => { var _a; return ((_a = x.project) === null || _a === void 0 ? void 0 : _a.id) === this.id; }))
|
|
3804
3804
|
.map((permission) => permission.delete()));
|
|
3805
3805
|
return file;
|
|
3806
3806
|
}
|
|
3807
3807
|
}
|
|
3808
3808
|
|
|
3809
3809
|
///////////////////////////////////////////////////////////////////////////////
|
|
3810
|
-
// Copyright (C) 2002-
|
|
3810
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
3811
3811
|
// All rights reserved.
|
|
3812
3812
|
//
|
|
3813
3813
|
// This software and its documentation and related materials are owned by
|
|
@@ -3822,7 +3822,7 @@
|
|
|
3822
3822
|
//
|
|
3823
3823
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
3824
3824
|
// license agreement with Open Design Alliance.
|
|
3825
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
3825
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
3826
3826
|
// All rights reserved.
|
|
3827
3827
|
//
|
|
3828
3828
|
// By use of this software, its documentation or related materials, you
|
|
@@ -4222,7 +4222,7 @@
|
|
|
4222
4222
|
}
|
|
4223
4223
|
|
|
4224
4224
|
///////////////////////////////////////////////////////////////////////////////
|
|
4225
|
-
// Copyright (C) 2002-
|
|
4225
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
4226
4226
|
// All rights reserved.
|
|
4227
4227
|
//
|
|
4228
4228
|
// This software and its documentation and related materials are owned by
|
|
@@ -4237,7 +4237,7 @@
|
|
|
4237
4237
|
//
|
|
4238
4238
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
4239
4239
|
// license agreement with Open Design Alliance.
|
|
4240
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
4240
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
4241
4241
|
// All rights reserved.
|
|
4242
4242
|
//
|
|
4243
4243
|
// By use of this software, its documentation or related materials, you
|
|
@@ -4392,7 +4392,7 @@
|
|
|
4392
4392
|
}
|
|
4393
4393
|
|
|
4394
4394
|
///////////////////////////////////////////////////////////////////////////////
|
|
4395
|
-
// Copyright (C) 2002-
|
|
4395
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
4396
4396
|
// All rights reserved.
|
|
4397
4397
|
//
|
|
4398
4398
|
// This software and its documentation and related materials are owned by
|
|
@@ -4407,7 +4407,7 @@
|
|
|
4407
4407
|
//
|
|
4408
4408
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
4409
4409
|
// license agreement with Open Design Alliance.
|
|
4410
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
4410
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
4411
4411
|
// All rights reserved.
|
|
4412
4412
|
//
|
|
4413
4413
|
// By use of this software, its documentation or related materials, you
|
|
@@ -4439,7 +4439,7 @@
|
|
|
4439
4439
|
}
|
|
4440
4440
|
|
|
4441
4441
|
///////////////////////////////////////////////////////////////////////////////
|
|
4442
|
-
// Copyright (C) 2002-
|
|
4442
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
4443
4443
|
// All rights reserved.
|
|
4444
4444
|
//
|
|
4445
4445
|
// This software and its documentation and related materials are owned by
|
|
@@ -4454,7 +4454,7 @@
|
|
|
4454
4454
|
//
|
|
4455
4455
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
4456
4456
|
// license agreement with Open Design Alliance.
|
|
4457
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
4457
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
4458
4458
|
// All rights reserved.
|
|
4459
4459
|
//
|
|
4460
4460
|
// By use of this software, its documentation or related materials, you
|
|
@@ -4562,7 +4562,7 @@
|
|
|
4562
4562
|
.then((data) => ({
|
|
4563
4563
|
...data,
|
|
4564
4564
|
server: data.version,
|
|
4565
|
-
client: "26.3.
|
|
4565
|
+
client: "26.3.3",
|
|
4566
4566
|
}));
|
|
4567
4567
|
}
|
|
4568
4568
|
/**
|
|
@@ -4581,7 +4581,7 @@
|
|
|
4581
4581
|
.post("/register", {
|
|
4582
4582
|
email,
|
|
4583
4583
|
password,
|
|
4584
|
-
userName: userName !== null && userName !==
|
|
4584
|
+
userName: userName !== null && userName !== void 0 ? userName : (email + "").split("@").at(0),
|
|
4585
4585
|
})
|
|
4586
4586
|
.then((response) => response.json());
|
|
4587
4587
|
}
|
|
@@ -4845,7 +4845,7 @@
|
|
|
4845
4845
|
userBrief: {
|
|
4846
4846
|
...rest,
|
|
4847
4847
|
email,
|
|
4848
|
-
userName: userName !== null && userName !==
|
|
4848
|
+
userName: userName !== null && userName !== void 0 ? userName : (email + "").split("@").at(0),
|
|
4849
4849
|
},
|
|
4850
4850
|
password,
|
|
4851
4851
|
})
|
|
@@ -4997,7 +4997,7 @@
|
|
|
4997
4997
|
.uploadFile("/files", file, (progress) => {
|
|
4998
4998
|
var _a;
|
|
4999
4999
|
this.emitEvent({ type: "uploadprogress", data: progress, file });
|
|
5000
|
-
(_a = params.onProgress) === null || _a ===
|
|
5000
|
+
(_a = params.onProgress) === null || _a === void 0 ? void 0 : _a.call(params, progress, file);
|
|
5001
5001
|
})
|
|
5002
5002
|
.then((xhr) => JSON.parse(xhr.responseText))
|
|
5003
5003
|
.then((data) => new File(data, this.httpClient));
|
|
@@ -5223,7 +5223,7 @@
|
|
|
5223
5223
|
* @param params.onCheckout - Waiting progress callback. Return `true` to cancel waiting.
|
|
5224
5224
|
*/
|
|
5225
5225
|
createAssembly(files, name, params) {
|
|
5226
|
-
const { waitForDone } = params !== null && params !==
|
|
5226
|
+
const { waitForDone } = params !== null && params !== void 0 ? params : {};
|
|
5227
5227
|
return this.httpClient
|
|
5228
5228
|
.post("/assemblies", { name, files })
|
|
5229
5229
|
.then((response) => response.json())
|
|
@@ -5426,7 +5426,7 @@
|
|
|
5426
5426
|
}
|
|
5427
5427
|
|
|
5428
5428
|
///////////////////////////////////////////////////////////////////////////////
|
|
5429
|
-
// Copyright (C) 2002-
|
|
5429
|
+
// Copyright (C) 2002-2025, Open Design Alliance (the "Alliance").
|
|
5430
5430
|
// All rights reserved.
|
|
5431
5431
|
//
|
|
5432
5432
|
// This software and its documentation and related materials are owned by
|
|
@@ -5441,13 +5441,13 @@
|
|
|
5441
5441
|
//
|
|
5442
5442
|
// This application incorporates Open Design Alliance software pursuant to a
|
|
5443
5443
|
// license agreement with Open Design Alliance.
|
|
5444
|
-
// Open Design Alliance Copyright (C) 2002-
|
|
5444
|
+
// Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance.
|
|
5445
5445
|
// All rights reserved.
|
|
5446
5446
|
//
|
|
5447
5447
|
// By use of this software, its documentation or related materials, you
|
|
5448
5448
|
// acknowledge and accept the above terms.
|
|
5449
5449
|
///////////////////////////////////////////////////////////////////////////////
|
|
5450
|
-
const version = "26.3.
|
|
5450
|
+
const version = "26.3.3";
|
|
5451
5451
|
|
|
5452
5452
|
exports.Assembly = Assembly;
|
|
5453
5453
|
exports.ClashTest = ClashTest;
|