@webdock/sdk 1.0.5965 → 1.0.5966
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/account.d.ts +14 -2
- package/dist/account.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +39 -38
- package/dist/index.mjs.map +1 -1
- package/dist/scripts.d.ts +15 -19
- package/dist/scripts.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1827,7 +1827,7 @@ const {
|
|
|
1827
1827
|
formToJSON: co,
|
|
1828
1828
|
getAdapter: uo,
|
|
1829
1829
|
mergeConfig: lo
|
|
1830
|
-
} = D, ss = "1.0.
|
|
1830
|
+
} = D, ss = "1.0.5966";
|
|
1831
1831
|
async function P(r) {
|
|
1832
1832
|
var e, t, n;
|
|
1833
1833
|
try {
|
|
@@ -1887,6 +1887,38 @@ class os {
|
|
|
1887
1887
|
method: "GET"
|
|
1888
1888
|
});
|
|
1889
1889
|
}
|
|
1890
|
+
getAccountScriptById({ scriptId: e }) {
|
|
1891
|
+
return P(
|
|
1892
|
+
{
|
|
1893
|
+
token: this.parent.string_token,
|
|
1894
|
+
endpoint: `/account/scripts/${e}`,
|
|
1895
|
+
method: "GET"
|
|
1896
|
+
}
|
|
1897
|
+
);
|
|
1898
|
+
}
|
|
1899
|
+
createAccountScript({ content: e, filename: t, name: n }) {
|
|
1900
|
+
return P(
|
|
1901
|
+
{
|
|
1902
|
+
token: this.parent.string_token,
|
|
1903
|
+
endpoint: "/account/scripts",
|
|
1904
|
+
method: "POST",
|
|
1905
|
+
body: {
|
|
1906
|
+
content: e,
|
|
1907
|
+
filename: t,
|
|
1908
|
+
name: n
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
);
|
|
1912
|
+
}
|
|
1913
|
+
deleteAccountScript({ id: e }) {
|
|
1914
|
+
return P(
|
|
1915
|
+
{
|
|
1916
|
+
token: this.parent.string_token,
|
|
1917
|
+
endpoint: `/account/scripts/${e}`,
|
|
1918
|
+
method: "DELETE"
|
|
1919
|
+
}
|
|
1920
|
+
);
|
|
1921
|
+
}
|
|
1890
1922
|
}
|
|
1891
1923
|
class is {
|
|
1892
1924
|
constructor(e) {
|
|
@@ -2019,20 +2051,6 @@ class ds {
|
|
|
2019
2051
|
constructor(e) {
|
|
2020
2052
|
this.parent = e;
|
|
2021
2053
|
}
|
|
2022
|
-
create({ content: e, filename: t, name: n }) {
|
|
2023
|
-
return P(
|
|
2024
|
-
{
|
|
2025
|
-
token: this.parent.string_token,
|
|
2026
|
-
endpoint: "/account/scripts",
|
|
2027
|
-
method: "POST",
|
|
2028
|
-
body: {
|
|
2029
|
-
content: e,
|
|
2030
|
-
filename: t,
|
|
2031
|
-
name: n
|
|
2032
|
-
}
|
|
2033
|
-
}
|
|
2034
|
-
);
|
|
2035
|
-
}
|
|
2036
2054
|
createOnServer({
|
|
2037
2055
|
scriptId: e,
|
|
2038
2056
|
path: t,
|
|
@@ -2055,15 +2073,6 @@ class ds {
|
|
|
2055
2073
|
}
|
|
2056
2074
|
);
|
|
2057
2075
|
}
|
|
2058
|
-
delete({ id: e }) {
|
|
2059
|
-
return P(
|
|
2060
|
-
{
|
|
2061
|
-
token: this.parent.string_token,
|
|
2062
|
-
endpoint: `/account/scripts/${e}`,
|
|
2063
|
-
method: "DELETE"
|
|
2064
|
-
}
|
|
2065
|
-
);
|
|
2066
|
-
}
|
|
2067
2076
|
deleteScriptFromServer({ serverSlug: e, scriptId: t }) {
|
|
2068
2077
|
return P(
|
|
2069
2078
|
{
|
|
@@ -2083,31 +2092,23 @@ class ds {
|
|
|
2083
2092
|
}
|
|
2084
2093
|
);
|
|
2085
2094
|
}
|
|
2086
|
-
|
|
2095
|
+
listOnServer({ serverSlug: e }) {
|
|
2087
2096
|
return P(
|
|
2088
2097
|
{
|
|
2089
2098
|
token: this.parent.string_token,
|
|
2090
|
-
endpoint: `/
|
|
2099
|
+
endpoint: `/servers/${e}/scripts`,
|
|
2091
2100
|
method: "GET"
|
|
2092
2101
|
}
|
|
2093
2102
|
);
|
|
2094
2103
|
}
|
|
2095
|
-
list() {
|
|
2096
|
-
return P({
|
|
2104
|
+
async list() {
|
|
2105
|
+
return await P({
|
|
2097
2106
|
token: this.parent.string_token,
|
|
2098
|
-
endpoint: "/
|
|
2107
|
+
endpoint: "/scripts",
|
|
2108
|
+
headers: [],
|
|
2099
2109
|
method: "GET"
|
|
2100
2110
|
});
|
|
2101
2111
|
}
|
|
2102
|
-
listOnServer({ serverSlug: e }) {
|
|
2103
|
-
return P(
|
|
2104
|
-
{
|
|
2105
|
-
token: this.parent.string_token,
|
|
2106
|
-
endpoint: `/servers/${e}/scripts`,
|
|
2107
|
-
method: "GET"
|
|
2108
|
-
}
|
|
2109
|
-
);
|
|
2110
|
-
}
|
|
2111
2112
|
update({
|
|
2112
2113
|
id: e,
|
|
2113
2114
|
name: t,
|