@inweb/client 27.1.9 → 27.2.0
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 +9 -7
- package/dist/client.js.map +1 -1
- package/dist/client.min.js +1 -1
- package/dist/client.module.js +9 -7
- package/dist/client.module.js.map +1 -1
- package/lib/Api/Assembly.d.ts +2 -2
- package/lib/Api/ClashTest.d.ts +2 -2
- package/lib/Api/Client.d.ts +59 -30
- package/lib/Api/File.d.ts +37 -22
- package/lib/Api/IFile.d.ts +1 -1
- package/lib/Api/Job.d.ts +12 -6
- package/lib/Api/Permission.d.ts +3 -2
- package/lib/Api/Project.d.ts +3 -3
- package/lib/Api/User.d.ts +1 -1
- package/package.json +2 -2
- package/src/Api/Assembly.ts +4 -4
- package/src/Api/ClashTest.ts +2 -2
- package/src/Api/Client.ts +61 -30
- package/src/Api/File.ts +37 -22
- package/src/Api/IFile.ts +1 -1
- package/src/Api/Job.ts +12 -6
- package/src/Api/Permission.ts +3 -2
- package/src/Api/Project.ts +4 -4
- package/src/Api/User.ts +1 -1
package/dist/client.js
CHANGED
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
updateVersion(files, params = {
|
|
617
617
|
waitForDone: false,
|
|
618
618
|
}) {
|
|
619
|
-
return Promise.reject(new Error("Assembly version support will be
|
|
619
|
+
return Promise.reject(new Error("Assembly version support will be implemented in a future release"));
|
|
620
620
|
}
|
|
621
621
|
getVersions() {
|
|
622
622
|
return Promise.resolve(undefined);
|
|
@@ -631,7 +631,7 @@
|
|
|
631
631
|
return this.update({ activeVersion: version });
|
|
632
632
|
}
|
|
633
633
|
createSharedLink(permissions) {
|
|
634
|
-
return Promise.reject(new Error("Assembly shared link will be
|
|
634
|
+
return Promise.reject(new Error("Assembly shared link will be implemented in a future release"));
|
|
635
635
|
}
|
|
636
636
|
getSharedLink() {
|
|
637
637
|
return Promise.resolve(undefined);
|
|
@@ -1726,14 +1726,14 @@
|
|
|
1726
1726
|
.then((response) => response.json())
|
|
1727
1727
|
.then((files) => files.result.map((data) => new File(data, this.httpClient)));
|
|
1728
1728
|
}
|
|
1729
|
-
async addModel(fileId, actions
|
|
1729
|
+
async addModel(fileId, actions) {
|
|
1730
1730
|
const files = new Endpoint("/files", this.httpClient, this.headers);
|
|
1731
1731
|
const file = await files
|
|
1732
1732
|
.get(`/${fileId}`)
|
|
1733
1733
|
.then((response) => response.json())
|
|
1734
1734
|
.then((data) => new File(data, this.httpClient));
|
|
1735
1735
|
const grantedTo = [{ project: { id: this.id, name: this.name } }];
|
|
1736
|
-
await file.createPermission(actions, grantedTo
|
|
1736
|
+
await file.createPermission(actions, grantedTo);
|
|
1737
1737
|
return file;
|
|
1738
1738
|
}
|
|
1739
1739
|
async removeModel(fileId) {
|
|
@@ -2163,7 +2163,7 @@
|
|
|
2163
2163
|
.then((data) => ({
|
|
2164
2164
|
...data,
|
|
2165
2165
|
server: data.version,
|
|
2166
|
-
client: "27.
|
|
2166
|
+
client: "27.2.0",
|
|
2167
2167
|
}));
|
|
2168
2168
|
}
|
|
2169
2169
|
registerUser(email, password, userName) {
|
|
@@ -2501,7 +2501,7 @@
|
|
|
2501
2501
|
deleteAssembly(assemblyId) {
|
|
2502
2502
|
return this.httpClient.delete(`/assemblies/${assemblyId}`).then((response) => response.json());
|
|
2503
2503
|
}
|
|
2504
|
-
getProjects(start, limit, name, ids, sortByDesc) {
|
|
2504
|
+
getProjects(start, limit, name, ids, sortByDesc, sortField) {
|
|
2505
2505
|
const searchParams = new URLSearchParams();
|
|
2506
2506
|
if (start > 0)
|
|
2507
2507
|
searchParams.set("start", start.toString());
|
|
@@ -2516,6 +2516,8 @@
|
|
|
2516
2516
|
}
|
|
2517
2517
|
if (sortByDesc !== undefined)
|
|
2518
2518
|
searchParams.set("sortBy", sortByDesc ? "desc" : "asc");
|
|
2519
|
+
if (sortField)
|
|
2520
|
+
searchParams.set("sortField", sortField);
|
|
2519
2521
|
let queryString = searchParams.toString();
|
|
2520
2522
|
if (queryString)
|
|
2521
2523
|
queryString = "?" + queryString;
|
|
@@ -2647,7 +2649,7 @@
|
|
|
2647
2649
|
}
|
|
2648
2650
|
}
|
|
2649
2651
|
|
|
2650
|
-
const version = "27.
|
|
2652
|
+
const version = "27.2.0";
|
|
2651
2653
|
|
|
2652
2654
|
exports.Assembly = Assembly;
|
|
2653
2655
|
exports.ClashTest = ClashTest;
|