@libretexts/cxone-expert-node 1.2.0 → 1.3.1
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/README.md +3 -0
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +371 -359
- package/dist/modules/archive.d.ts +10 -10
- package/dist/modules/archive.d.ts.map +1 -1
- package/dist/modules/contextMaps.d.ts +2 -2
- package/dist/modules/contextMaps.d.ts.map +1 -1
- package/dist/modules/events.d.ts +6 -6
- package/dist/modules/events.d.ts.map +1 -1
- package/dist/modules/files.d.ts +13 -13
- package/dist/modules/files.d.ts.map +1 -1
- package/dist/modules/groups.d.ts +3 -3
- package/dist/modules/groups.d.ts.map +1 -1
- package/dist/modules/pages.d.ts +69 -54
- package/dist/modules/pages.d.ts.map +1 -1
- package/dist/modules/requests.d.ts.map +1 -1
- package/dist/modules/site.d.ts +10 -10
- package/dist/modules/site.d.ts.map +1 -1
- package/dist/modules/users.d.ts +7 -7
- package/dist/modules/users.d.ts.map +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createHmac as bt } from "crypto";
|
|
2
|
-
class
|
|
2
|
+
class We {
|
|
3
3
|
token = null;
|
|
4
4
|
BrowserToken({ key: e }) {
|
|
5
5
|
return this.token = e, this;
|
|
@@ -30,7 +30,7 @@ function p(r, e) {
|
|
|
30
30
|
if (e)
|
|
31
31
|
return e;
|
|
32
32
|
if (r.auth) {
|
|
33
|
-
const t = new
|
|
33
|
+
const t = new We();
|
|
34
34
|
if (r.auth.type === "server")
|
|
35
35
|
return t.ServerToken(r.auth.params).getHeader();
|
|
36
36
|
if (r.auth.type === "browser")
|
|
@@ -38,7 +38,7 @@ function p(r, e) {
|
|
|
38
38
|
}
|
|
39
39
|
throw new Error("Authentication is required. Configure auth in Expert constructor or pass auth to method call.");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Ve(r, e) {
|
|
42
42
|
return function() {
|
|
43
43
|
return r.apply(e, arguments);
|
|
44
44
|
};
|
|
@@ -47,7 +47,7 @@ const { toString: wt } = Object.prototype, { getPrototypeOf: Ie } = Object, { it
|
|
|
47
47
|
const t = wt.call(e);
|
|
48
48
|
return r[t] || (r[t] = t.slice(8, -1).toLowerCase());
|
|
49
49
|
})(/* @__PURE__ */ Object.create(null)), U = (r) => (r = r.toLowerCase(), (e) => ie(e) === r), le = (r) => (e) => typeof e === r, { isArray: K } = Array, H = le("undefined");
|
|
50
|
-
function
|
|
50
|
+
function W(r) {
|
|
51
51
|
return r !== null && !H(r) && r.constructor !== null && !H(r.constructor) && O(r.constructor.isBuffer) && r.constructor.isBuffer(r);
|
|
52
52
|
}
|
|
53
53
|
const Xe = U("ArrayBuffer");
|
|
@@ -55,20 +55,20 @@ function yt(r) {
|
|
|
55
55
|
let e;
|
|
56
56
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(r) : e = r && r.buffer && Xe(r.buffer), e;
|
|
57
57
|
}
|
|
58
|
-
const It = le("string"), O = le("function"), Qe = le("number"),
|
|
58
|
+
const It = le("string"), O = le("function"), Qe = le("number"), V = (r) => r !== null && typeof r == "object", qt = (r) => r === !0 || r === !1, se = (r) => {
|
|
59
59
|
if (ie(r) !== "object")
|
|
60
60
|
return !1;
|
|
61
61
|
const e = Ie(r);
|
|
62
62
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Ge in r) && !(oe in r);
|
|
63
63
|
}, Rt = (r) => {
|
|
64
|
-
if (!
|
|
64
|
+
if (!V(r) || W(r))
|
|
65
65
|
return !1;
|
|
66
66
|
try {
|
|
67
67
|
return Object.keys(r).length === 0 && Object.getPrototypeOf(r) === Object.prototype;
|
|
68
68
|
} catch {
|
|
69
69
|
return !1;
|
|
70
70
|
}
|
|
71
|
-
}, Pt = U("Date"), Et = U("File"), St = U("Blob"), Tt = U("FileList"), $t = (r) =>
|
|
71
|
+
}, Pt = U("Date"), Et = U("File"), St = U("Blob"), Tt = U("FileList"), $t = (r) => V(r) && O(r.pipe), Ot = (r) => {
|
|
72
72
|
let e;
|
|
73
73
|
return r && (typeof FormData == "function" && r instanceof FormData || O(r.append) && ((e = ie(r)) === "formdata" || // detect form-data instance
|
|
74
74
|
e === "object" && O(r.toString) && r.toString() === "[object FormData]"));
|
|
@@ -86,7 +86,7 @@ function G(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
86
86
|
for (s = 0, n = r.length; s < n; s++)
|
|
87
87
|
e.call(null, r[s], s, r);
|
|
88
88
|
else {
|
|
89
|
-
if (
|
|
89
|
+
if (W(r))
|
|
90
90
|
return;
|
|
91
91
|
const a = t ? Object.getOwnPropertyNames(r) : Object.keys(r), o = a.length;
|
|
92
92
|
let i;
|
|
@@ -95,7 +95,7 @@ function G(r, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
function Ze(r, e) {
|
|
98
|
-
if (
|
|
98
|
+
if (W(r))
|
|
99
99
|
return null;
|
|
100
100
|
e = e.toLowerCase();
|
|
101
101
|
const t = Object.keys(r);
|
|
@@ -121,7 +121,7 @@ const Dt = (r, e, t, { allOwnKeys: s } = {}) => (G(
|
|
|
121
121
|
e,
|
|
122
122
|
(n, a) => {
|
|
123
123
|
t && O(n) ? Object.defineProperty(r, a, {
|
|
124
|
-
value:
|
|
124
|
+
value: Ve(n, t),
|
|
125
125
|
writable: !0,
|
|
126
126
|
enumerable: !0,
|
|
127
127
|
configurable: !0
|
|
@@ -189,7 +189,7 @@ const Dt = (r, e, t, { allOwnKeys: s } = {}) => (G(
|
|
|
189
189
|
let o;
|
|
190
190
|
(o = e(n, a, r)) !== !1 && (s[a] = o || n);
|
|
191
191
|
}), Object.defineProperties(r, s);
|
|
192
|
-
},
|
|
192
|
+
}, Wt = (r) => {
|
|
193
193
|
et(r, (e, t) => {
|
|
194
194
|
if (O(r) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
195
195
|
return !1;
|
|
@@ -204,7 +204,7 @@ const Dt = (r, e, t, { allOwnKeys: s } = {}) => (G(
|
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
|
-
},
|
|
207
|
+
}, Vt = (r, e) => {
|
|
208
208
|
const t = {}, s = (n) => {
|
|
209
209
|
n.forEach((a) => {
|
|
210
210
|
t[a] = !0;
|
|
@@ -218,10 +218,10 @@ function Qt(r) {
|
|
|
218
218
|
}
|
|
219
219
|
const Zt = (r) => {
|
|
220
220
|
const e = new Array(10), t = (s, n) => {
|
|
221
|
-
if (
|
|
221
|
+
if (V(s)) {
|
|
222
222
|
if (e.indexOf(s) >= 0)
|
|
223
223
|
return;
|
|
224
|
-
if (
|
|
224
|
+
if (W(s))
|
|
225
225
|
return s;
|
|
226
226
|
if (!("toJSON" in s)) {
|
|
227
227
|
e[n] = s;
|
|
@@ -235,7 +235,7 @@ const Zt = (r) => {
|
|
|
235
235
|
return s;
|
|
236
236
|
};
|
|
237
237
|
return t(r, 0);
|
|
238
|
-
}, Yt = U("AsyncFunction"), es = (r) => r && (
|
|
238
|
+
}, Yt = U("AsyncFunction"), es = (r) => r && (V(r) || O(r)) && O(r.then) && O(r.catch), tt = ((r, e) => r ? setImmediate : e ? ((t, s) => (v.addEventListener(
|
|
239
239
|
"message",
|
|
240
240
|
({ source: n, data: a }) => {
|
|
241
241
|
n === v && a === t && s.length && s.shift()();
|
|
@@ -246,13 +246,13 @@ const Zt = (r) => {
|
|
|
246
246
|
}))(`axios@${Math.random()}`, []) : (t) => setTimeout(t))(typeof setImmediate == "function", O(v.postMessage)), ts = typeof queueMicrotask < "u" ? queueMicrotask.bind(v) : typeof process < "u" && process.nextTick || tt, ss = (r) => r != null && O(r[oe]), c = {
|
|
247
247
|
isArray: K,
|
|
248
248
|
isArrayBuffer: Xe,
|
|
249
|
-
isBuffer:
|
|
249
|
+
isBuffer: W,
|
|
250
250
|
isFormData: Ot,
|
|
251
251
|
isArrayBufferView: yt,
|
|
252
252
|
isString: It,
|
|
253
253
|
isNumber: Qe,
|
|
254
254
|
isBoolean: qt,
|
|
255
|
-
isObject:
|
|
255
|
+
isObject: V,
|
|
256
256
|
isPlainObject: se,
|
|
257
257
|
isEmptyObject: Rt,
|
|
258
258
|
isReadableStream: Ft,
|
|
@@ -287,8 +287,8 @@ const Zt = (r) => {
|
|
|
287
287
|
hasOwnProp: Ce,
|
|
288
288
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
289
289
|
reduceDescriptors: et,
|
|
290
|
-
freezeMethods:
|
|
291
|
-
toObjectSet:
|
|
290
|
+
freezeMethods: Wt,
|
|
291
|
+
toObjectSet: Vt,
|
|
292
292
|
toCamelCase: zt,
|
|
293
293
|
noop: Gt,
|
|
294
294
|
toFiniteNumber: Xt,
|
|
@@ -1808,7 +1808,7 @@ Object.entries(ye).forEach(([r, e]) => {
|
|
|
1808
1808
|
ye[e] = r;
|
|
1809
1809
|
});
|
|
1810
1810
|
function ft(r) {
|
|
1811
|
-
const e = new j(r), t =
|
|
1811
|
+
const e = new j(r), t = Ve(j.prototype.request, e);
|
|
1812
1812
|
return c.extend(t, j.prototype, e, { allOwnKeys: !0 }), c.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
1813
1813
|
return ft(A(r, n));
|
|
1814
1814
|
}, t;
|
|
@@ -1850,7 +1850,7 @@ const {
|
|
|
1850
1850
|
formToJSON: In,
|
|
1851
1851
|
getAdapter: qn,
|
|
1852
1852
|
mergeConfig: Rn
|
|
1853
|
-
} = q,
|
|
1853
|
+
} = q, Ws = "/@api/deki";
|
|
1854
1854
|
class g {
|
|
1855
1855
|
axiosInstance = q.create();
|
|
1856
1856
|
format = "json";
|
|
@@ -1859,12 +1859,9 @@ class g {
|
|
|
1859
1859
|
throw new Error("TLD is required");
|
|
1860
1860
|
if (!t)
|
|
1861
1861
|
throw new Error("Auth object is required");
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
) : `${e}`;
|
|
1866
|
-
this.format = s, this.axiosInstance = q.create({
|
|
1867
|
-
baseURL: `${n}${Vs}`,
|
|
1862
|
+
let n = e;
|
|
1863
|
+
!n.startsWith("http://") && !n.startsWith("https://") && (n = `https://${n}`), n.endsWith("/") && (n = n.slice(0, n.length - 1)), this.format = s, this.axiosInstance = q.create({
|
|
1864
|
+
baseURL: `${n}${Ws}`,
|
|
1868
1865
|
headers: {
|
|
1869
1866
|
"Content-Type": "application/json",
|
|
1870
1867
|
"X-Requested-With": "XMLHttpRequest",
|
|
@@ -1902,368 +1899,383 @@ class g {
|
|
|
1902
1899
|
return await this.axiosInstance.head(e, { ...t });
|
|
1903
1900
|
}
|
|
1904
1901
|
}
|
|
1905
|
-
class
|
|
1902
|
+
class Vs {
|
|
1906
1903
|
globals;
|
|
1907
1904
|
_auth;
|
|
1908
1905
|
constructor(e, t) {
|
|
1909
1906
|
this.globals = e, this._auth = t;
|
|
1910
1907
|
}
|
|
1908
|
+
/**
|
|
1909
|
+
* Converts a page identifier (number or string) into the format expected by the API.
|
|
1910
|
+
* If the identifier is a number, it's simply converted to a string and returned as-is.
|
|
1911
|
+
* If it's a page path, it's double URL-encoded and prefixed with '=' to indicate it's a path.
|
|
1912
|
+
* @param id - The page identifier, which can be a number (page ID), or a page path.
|
|
1913
|
+
* @returns A string formatted for use in API endpoints, either as a page ID or a double URL-encoded page path.
|
|
1914
|
+
*/
|
|
1911
1915
|
parsePageId(e) {
|
|
1912
1916
|
return typeof e == "number" ? e.toString() : e === "home" ? e : `=${encodeURIComponent(encodeURIComponent(e))}`;
|
|
1913
1917
|
}
|
|
1918
|
+
/**
|
|
1919
|
+
* Double URL-encodes a filename and prefixes it with '=' to indicate it's a filename in the API.
|
|
1920
|
+
* @param name - The filename to be formatted for API use.
|
|
1921
|
+
*/
|
|
1914
1922
|
parseFileName(e) {
|
|
1915
1923
|
return `=${encodeURIComponent(encodeURIComponent(e))}`;
|
|
1916
1924
|
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Double URL-encodes a property key for use in API endpoints.
|
|
1927
|
+
* @param name - The property key to be formatted for API use.
|
|
1928
|
+
*/
|
|
1917
1929
|
parseKey(e) {
|
|
1918
1930
|
return `${encodeURIComponent(encodeURIComponent(e))}`;
|
|
1919
1931
|
}
|
|
1920
|
-
async getPages(e
|
|
1921
|
-
const s = h(this.globals,
|
|
1932
|
+
async getPages(e, t) {
|
|
1933
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
1922
1934
|
return (await new g(s, n).get("/pages", {
|
|
1923
1935
|
params: {
|
|
1924
|
-
...
|
|
1936
|
+
...e
|
|
1925
1937
|
}
|
|
1926
1938
|
})).data;
|
|
1927
1939
|
}
|
|
1928
|
-
async getPage(e, t
|
|
1929
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
1940
|
+
async getPage(e, t, s) {
|
|
1941
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
1930
1942
|
return (await new g(a, o).get(`/pages/${n}`, {
|
|
1931
1943
|
params: {
|
|
1932
|
-
...
|
|
1944
|
+
...t
|
|
1933
1945
|
}
|
|
1934
1946
|
})).data;
|
|
1935
1947
|
}
|
|
1936
|
-
async getPageContents(e, t
|
|
1937
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
1948
|
+
async getPageContents(e, t, s) {
|
|
1949
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
1938
1950
|
return (await new g(a, o).get(`/pages/${n}/contents`, {
|
|
1939
1951
|
params: {
|
|
1940
|
-
...
|
|
1952
|
+
...t
|
|
1941
1953
|
}
|
|
1942
1954
|
})).data;
|
|
1943
1955
|
}
|
|
1944
|
-
async getPageContentsExplain(e, t
|
|
1945
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
1956
|
+
async getPageContentsExplain(e, t, s) {
|
|
1957
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
1946
1958
|
return (await new g(a, o).get(`/pages/${n}/contents/explain`, {
|
|
1947
1959
|
params: {
|
|
1948
|
-
...
|
|
1960
|
+
...t
|
|
1949
1961
|
}
|
|
1950
1962
|
})).data;
|
|
1951
1963
|
}
|
|
1952
|
-
async getPageDiff(e, t
|
|
1953
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
1964
|
+
async getPageDiff(e, t, s) {
|
|
1965
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
1954
1966
|
return (await new g(a, o).get(`/pages/${n}/diff`, {
|
|
1955
1967
|
params: {
|
|
1956
|
-
...
|
|
1968
|
+
...t
|
|
1957
1969
|
}
|
|
1958
1970
|
})).data;
|
|
1959
1971
|
}
|
|
1960
|
-
async getPageExplain(e, t
|
|
1961
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
1972
|
+
async getPageExplain(e, t, s) {
|
|
1973
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
1962
1974
|
return (await new g(a, o).get(`/pages/${n}/explain`, {
|
|
1963
1975
|
params: {
|
|
1964
|
-
...
|
|
1976
|
+
...t
|
|
1965
1977
|
}
|
|
1966
1978
|
})).data;
|
|
1967
1979
|
}
|
|
1968
|
-
async getPageExportToken(e, t, s
|
|
1969
|
-
const a = this.parsePageId(e), o = h(this.globals,
|
|
1980
|
+
async getPageExportToken(e, t, s, n) {
|
|
1981
|
+
const a = this.parsePageId(e), o = h(this.globals, n?.tld), i = p(this.globals, n?.auth);
|
|
1970
1982
|
return (await new g(o, i).get(`/pages/${a}/export/${t}`, {
|
|
1971
1983
|
params: {
|
|
1972
|
-
...
|
|
1984
|
+
...s
|
|
1973
1985
|
},
|
|
1974
1986
|
responseType: "stream"
|
|
1975
1987
|
})).data;
|
|
1976
1988
|
}
|
|
1977
|
-
async getPageExportTokenFilename(e, t, s, n
|
|
1978
|
-
const o = this.parsePageId(e), i = this.parseFileName(s), l = h(this.globals,
|
|
1989
|
+
async getPageExportTokenFilename(e, t, s, n, a) {
|
|
1990
|
+
const o = this.parsePageId(e), i = this.parseFileName(s), l = h(this.globals, a?.tld), d = p(this.globals, a?.auth);
|
|
1979
1991
|
return (await new g(l, d).get(`/pages/${o}/export/${t}/${i}`, {
|
|
1980
1992
|
params: {
|
|
1981
|
-
...
|
|
1993
|
+
...n
|
|
1982
1994
|
},
|
|
1983
1995
|
responseType: "stream"
|
|
1984
1996
|
})).data;
|
|
1985
1997
|
}
|
|
1986
|
-
async getPageFilesSubpages(e, t
|
|
1987
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
1998
|
+
async getPageFilesSubpages(e, t, s) {
|
|
1999
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
1988
2000
|
return (await new g(a, o).get(`/pages/${n}/explain`, {
|
|
1989
2001
|
params: {
|
|
1990
|
-
...
|
|
2002
|
+
...t
|
|
1991
2003
|
}
|
|
1992
2004
|
})).data;
|
|
1993
2005
|
}
|
|
1994
|
-
async getPageFiles(e, t
|
|
1995
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2006
|
+
async getPageFiles(e, t, s) {
|
|
2007
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
1996
2008
|
return (await new g(a, o).get(`/pages/${n}/explain`, {
|
|
1997
2009
|
params: {
|
|
1998
|
-
...
|
|
2010
|
+
...t
|
|
1999
2011
|
}
|
|
2000
2012
|
})).data;
|
|
2001
2013
|
}
|
|
2002
|
-
async getPageFile(e, t, s
|
|
2003
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2014
|
+
async getPageFile(e, t, s, n) {
|
|
2015
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2004
2016
|
return (await new g(i, l).get(`/pages/${a}/files/${o}`, {
|
|
2005
2017
|
params: {
|
|
2006
|
-
...
|
|
2018
|
+
...s
|
|
2007
2019
|
},
|
|
2008
2020
|
responseType: "stream"
|
|
2009
2021
|
})).data;
|
|
2010
2022
|
}
|
|
2011
|
-
async getPageFileDescription(e, t, s
|
|
2012
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2023
|
+
async getPageFileDescription(e, t, s, n) {
|
|
2024
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2013
2025
|
return (await new g(i, l).get(`/pages/${a}/files/${o}/description`, {
|
|
2014
2026
|
params: {
|
|
2015
|
-
...
|
|
2027
|
+
...s
|
|
2016
2028
|
},
|
|
2017
2029
|
responseType: "stream"
|
|
2018
2030
|
})).data;
|
|
2019
2031
|
}
|
|
2020
|
-
async getPageFileInfo(e, t, s
|
|
2021
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2032
|
+
async getPageFileInfo(e, t, s, n) {
|
|
2033
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2022
2034
|
return (await new g(i, l).get(`/pages/${a}/files/${o}/info`, {
|
|
2023
2035
|
params: {
|
|
2024
|
-
...
|
|
2036
|
+
...s
|
|
2025
2037
|
}
|
|
2026
2038
|
})).data;
|
|
2027
2039
|
}
|
|
2028
|
-
async getPageFileRevisions(e, t, s
|
|
2029
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2040
|
+
async getPageFileRevisions(e, t, s, n) {
|
|
2041
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2030
2042
|
return (await new g(i, l).get(`/pages/${a}/files/${o}/revisions`, {
|
|
2031
2043
|
params: {
|
|
2032
|
-
...
|
|
2044
|
+
...s
|
|
2033
2045
|
}
|
|
2034
2046
|
})).data;
|
|
2035
2047
|
}
|
|
2036
|
-
async getPageFind(e, t
|
|
2037
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2048
|
+
async getPageFind(e, t, s) {
|
|
2049
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2038
2050
|
return (await new g(a, o).get(`/pages/${n}/find`, {
|
|
2039
2051
|
params: {
|
|
2040
|
-
...
|
|
2052
|
+
...t
|
|
2041
2053
|
}
|
|
2042
2054
|
})).data;
|
|
2043
2055
|
}
|
|
2044
|
-
async getPageInfo(e, t
|
|
2045
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2056
|
+
async getPageInfo(e, t, s) {
|
|
2057
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2046
2058
|
return (await new g(a, o).get(`/pages/${n}/info`, {
|
|
2047
2059
|
params: {
|
|
2048
|
-
...
|
|
2060
|
+
...t
|
|
2049
2061
|
}
|
|
2050
2062
|
})).data;
|
|
2051
2063
|
}
|
|
2052
|
-
async getPageLinks(e, t
|
|
2053
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2064
|
+
async getPageLinks(e, t, s) {
|
|
2065
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2054
2066
|
return (await new g(a, o).get(`/pages/${n}/links`, {
|
|
2055
2067
|
params: {
|
|
2056
|
-
...
|
|
2068
|
+
...t
|
|
2057
2069
|
}
|
|
2058
2070
|
})).data;
|
|
2059
2071
|
}
|
|
2060
|
-
async getPagePDF(e, t
|
|
2061
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2072
|
+
async getPagePDF(e, t, s) {
|
|
2073
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2062
2074
|
return (await new g(a, o).get(`/pages/${n}/pdf`, {
|
|
2063
2075
|
params: {
|
|
2064
|
-
...
|
|
2076
|
+
...t
|
|
2065
2077
|
},
|
|
2066
2078
|
responseType: "stream"
|
|
2067
2079
|
})).data;
|
|
2068
2080
|
}
|
|
2069
|
-
async getPagePDFFilename(e, t, s
|
|
2070
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2081
|
+
async getPagePDFFilename(e, t, s, n) {
|
|
2082
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2071
2083
|
return (await new g(i, l).get(`/pages/${a}/pdf/${o}`, {
|
|
2072
2084
|
params: {
|
|
2073
|
-
...
|
|
2085
|
+
...s
|
|
2074
2086
|
},
|
|
2075
2087
|
responseType: "stream"
|
|
2076
2088
|
})).data;
|
|
2077
2089
|
}
|
|
2078
|
-
async getPageProperties(e, t
|
|
2079
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2090
|
+
async getPageProperties(e, t, s) {
|
|
2091
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2080
2092
|
return (await new g(a, o).get(`/pages/${n}/properties`, {
|
|
2081
2093
|
params: {
|
|
2082
|
-
...
|
|
2094
|
+
...t
|
|
2083
2095
|
}
|
|
2084
2096
|
})).data;
|
|
2085
2097
|
}
|
|
2086
|
-
async getPagePropertiesKey(e, t, s
|
|
2087
|
-
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals,
|
|
2098
|
+
async getPagePropertiesKey(e, t, s, n) {
|
|
2099
|
+
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2088
2100
|
return (await new g(i, l).get(`/pages/${a}/properties/${o}`, {
|
|
2089
2101
|
params: {
|
|
2090
|
-
...
|
|
2102
|
+
...s
|
|
2091
2103
|
}
|
|
2092
2104
|
})).data;
|
|
2093
2105
|
}
|
|
2094
|
-
async getPagePropertiesKeyInfo(e, t, s
|
|
2095
|
-
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals,
|
|
2106
|
+
async getPagePropertiesKeyInfo(e, t, s, n) {
|
|
2107
|
+
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2096
2108
|
return (await new g(i, l).get(`/pages/${a}/properties/${o}/info`, {
|
|
2097
2109
|
params: {
|
|
2098
|
-
...
|
|
2110
|
+
...s
|
|
2099
2111
|
}
|
|
2100
2112
|
})).data;
|
|
2101
2113
|
}
|
|
2102
|
-
async getPageRatings(e, t
|
|
2103
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2114
|
+
async getPageRatings(e, t, s) {
|
|
2115
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2104
2116
|
return (await new g(a, o).get(`/pages/${n}/ratings`, {
|
|
2105
2117
|
params: {
|
|
2106
|
-
...
|
|
2118
|
+
...t
|
|
2107
2119
|
}
|
|
2108
2120
|
})).data;
|
|
2109
2121
|
}
|
|
2110
|
-
async getPageRevisions(e, t
|
|
2111
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2122
|
+
async getPageRevisions(e, t, s) {
|
|
2123
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2112
2124
|
return (await new g(a, o).get(`/pages/${n}/revisions`, {
|
|
2113
2125
|
params: {
|
|
2114
|
-
...
|
|
2126
|
+
...t
|
|
2115
2127
|
}
|
|
2116
2128
|
})).data;
|
|
2117
2129
|
}
|
|
2118
|
-
async getPageSubpages(e, t
|
|
2119
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2130
|
+
async getPageSubpages(e, t, s) {
|
|
2131
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2120
2132
|
return (await new g(a, o).get(`/pages/${n}/subpages`, {
|
|
2121
2133
|
params: {
|
|
2122
|
-
...
|
|
2134
|
+
...t
|
|
2123
2135
|
}
|
|
2124
2136
|
})).data;
|
|
2125
2137
|
}
|
|
2126
|
-
async getPageTags(e, t
|
|
2127
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2138
|
+
async getPageTags(e, t, s) {
|
|
2139
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2128
2140
|
return (await new g(a, o).get(`/pages/${n}/tags`, {
|
|
2129
2141
|
params: {
|
|
2130
|
-
...
|
|
2142
|
+
...t
|
|
2131
2143
|
}
|
|
2132
2144
|
})).data;
|
|
2133
2145
|
}
|
|
2134
|
-
async getPageTree(e, t
|
|
2135
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2146
|
+
async getPageTree(e, t, s) {
|
|
2147
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2136
2148
|
return (await new g(a, o).get(`/pages/${n}/tree`, {
|
|
2137
2149
|
params: {
|
|
2138
|
-
...
|
|
2150
|
+
...t
|
|
2139
2151
|
}
|
|
2140
2152
|
})).data;
|
|
2141
2153
|
}
|
|
2142
|
-
async getPageBook(e, t
|
|
2154
|
+
async getPageBook(e, t, s) {
|
|
2143
2155
|
this.parsePageId(e);
|
|
2144
|
-
const n = h(this.globals,
|
|
2156
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2145
2157
|
return (await new g(n, a).get("/pages/book", {
|
|
2146
2158
|
params: {
|
|
2147
|
-
...
|
|
2159
|
+
...t
|
|
2148
2160
|
},
|
|
2149
2161
|
responseType: "stream"
|
|
2150
2162
|
})).data;
|
|
2151
2163
|
}
|
|
2152
|
-
async getPageBookFilename(e, t, s
|
|
2164
|
+
async getPageBookFilename(e, t, s, n) {
|
|
2153
2165
|
this.parsePageId(e), this.parseFileName(t);
|
|
2154
|
-
const a = h(this.globals,
|
|
2166
|
+
const a = h(this.globals, n?.tld), o = p(this.globals, n?.auth);
|
|
2155
2167
|
return (await new g(a, o).get(`/pages/book/${t}`, {
|
|
2156
2168
|
params: {
|
|
2157
|
-
...
|
|
2169
|
+
...s
|
|
2158
2170
|
},
|
|
2159
2171
|
responseType: "stream"
|
|
2160
2172
|
})).data;
|
|
2161
2173
|
}
|
|
2162
|
-
async getPagesCsv(e
|
|
2163
|
-
const s = h(this.globals,
|
|
2174
|
+
async getPagesCsv(e, t) {
|
|
2175
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2164
2176
|
return (await new g(s, n).get("/pages/csv", {
|
|
2165
2177
|
params: {
|
|
2166
|
-
...
|
|
2178
|
+
...e
|
|
2167
2179
|
},
|
|
2168
2180
|
responseType: "stream"
|
|
2169
2181
|
})).data;
|
|
2170
2182
|
}
|
|
2171
|
-
async getPagesPopular(e, t
|
|
2183
|
+
async getPagesPopular(e, t, s) {
|
|
2172
2184
|
this.parsePageId(e);
|
|
2173
|
-
const n = h(this.globals,
|
|
2185
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2174
2186
|
return (await new g(n, a).get("/pages/popular", {
|
|
2175
2187
|
params: {
|
|
2176
|
-
...
|
|
2188
|
+
...t
|
|
2177
2189
|
}
|
|
2178
2190
|
})).data;
|
|
2179
2191
|
}
|
|
2180
|
-
async postPageContents(e, t
|
|
2181
|
-
const a = this.parsePageId(e), o = h(this.globals,
|
|
2192
|
+
async postPageContents(e, t, s, n) {
|
|
2193
|
+
const a = this.parsePageId(e), o = h(this.globals, n?.tld), i = p(this.globals, n?.auth);
|
|
2182
2194
|
return (await new g(o, i).post(
|
|
2183
2195
|
`/pages/${a}/contents`,
|
|
2184
|
-
|
|
2196
|
+
t ?? "",
|
|
2185
2197
|
{
|
|
2186
2198
|
headers: {
|
|
2187
2199
|
"Content-Type": "text/plain"
|
|
2188
2200
|
},
|
|
2189
2201
|
params: {
|
|
2190
|
-
...
|
|
2202
|
+
...s
|
|
2191
2203
|
}
|
|
2192
2204
|
}
|
|
2193
2205
|
)).data;
|
|
2194
2206
|
}
|
|
2195
|
-
async putPageUnorder(e, t
|
|
2196
|
-
const s = this.parsePageId(e), n = h(this.globals, t
|
|
2207
|
+
async putPageUnorder(e, t) {
|
|
2208
|
+
const s = this.parsePageId(e), n = h(this.globals, t?.tld), a = p(this.globals, t?.auth);
|
|
2197
2209
|
return (await new g(n, a).put(
|
|
2198
2210
|
`/pages/${s}/unorder`,
|
|
2199
2211
|
""
|
|
2200
2212
|
)).data;
|
|
2201
2213
|
}
|
|
2202
|
-
async delPageDelete(e, t
|
|
2203
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2214
|
+
async delPageDelete(e, t, s) {
|
|
2215
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2204
2216
|
return (await new g(a, o).del(
|
|
2205
2217
|
`/pages/${n}`,
|
|
2206
2218
|
{
|
|
2207
2219
|
params: {
|
|
2208
|
-
...
|
|
2220
|
+
...t
|
|
2209
2221
|
}
|
|
2210
2222
|
}
|
|
2211
2223
|
)).data;
|
|
2212
2224
|
}
|
|
2213
|
-
async delPageAllowed(e, t
|
|
2214
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2225
|
+
async delPageAllowed(e, t, s) {
|
|
2226
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2215
2227
|
return (await new g(a, o).del(
|
|
2216
2228
|
`/pages/${n}/allowed`,
|
|
2217
2229
|
{
|
|
2218
2230
|
params: {
|
|
2219
|
-
...
|
|
2231
|
+
...t
|
|
2220
2232
|
}
|
|
2221
2233
|
}
|
|
2222
2234
|
)).data;
|
|
2223
2235
|
}
|
|
2224
|
-
async postPageCopied(e, t
|
|
2225
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2236
|
+
async postPageCopied(e, t, s) {
|
|
2237
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2226
2238
|
return (await new g(a, o).post(
|
|
2227
2239
|
`/pages/${n}/copy`,
|
|
2228
2240
|
"",
|
|
2229
2241
|
{
|
|
2230
2242
|
params: {
|
|
2231
|
-
...
|
|
2243
|
+
...t
|
|
2232
2244
|
}
|
|
2233
2245
|
}
|
|
2234
2246
|
)).data;
|
|
2235
2247
|
}
|
|
2236
|
-
async postPageExport(e, t
|
|
2237
|
-
const s = this.parsePageId(e), n = h(this.globals, t
|
|
2248
|
+
async postPageExport(e, t) {
|
|
2249
|
+
const s = this.parsePageId(e), n = h(this.globals, t?.tld), a = p(this.globals, t?.auth);
|
|
2238
2250
|
return (await new g(n, a).post(
|
|
2239
2251
|
`/pages/${s}/export`,
|
|
2240
2252
|
""
|
|
2241
2253
|
)).data;
|
|
2242
2254
|
}
|
|
2243
|
-
async delPageFileName(e, t, s
|
|
2244
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2255
|
+
async delPageFileName(e, t, s, n) {
|
|
2256
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2245
2257
|
return (await new g(i, l).del(
|
|
2246
2258
|
`/pages/${a}/files/${o}`,
|
|
2247
2259
|
{
|
|
2248
2260
|
params: {
|
|
2249
|
-
...
|
|
2261
|
+
...s
|
|
2250
2262
|
}
|
|
2251
2263
|
}
|
|
2252
2264
|
)).data;
|
|
2253
2265
|
}
|
|
2254
|
-
async headPageFileName(e, t, s
|
|
2255
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2266
|
+
async headPageFileName(e, t, s, n) {
|
|
2267
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2256
2268
|
return (await new g(i, l).head(
|
|
2257
2269
|
`/pages/${a}/files/${o}`,
|
|
2258
2270
|
{
|
|
2259
2271
|
params: {
|
|
2260
|
-
...
|
|
2272
|
+
...s
|
|
2261
2273
|
}
|
|
2262
2274
|
}
|
|
2263
2275
|
)).data;
|
|
2264
2276
|
}
|
|
2265
|
-
async putPageFileName(e, t, s, n
|
|
2266
|
-
const o = this.parsePageId(e), i = this.parseFileName(t), l = h(this.globals,
|
|
2277
|
+
async putPageFileName(e, t, s, n, a) {
|
|
2278
|
+
const o = this.parsePageId(e), i = this.parseFileName(t), l = h(this.globals, a?.tld), d = p(this.globals, a?.auth);
|
|
2267
2279
|
return (await new g(l, d).put(
|
|
2268
2280
|
`/pages/${o}/files/${i}`,
|
|
2269
2281
|
s,
|
|
@@ -2272,83 +2284,83 @@ class Ws {
|
|
|
2272
2284
|
"Content-Type": "application/octet-stream"
|
|
2273
2285
|
},
|
|
2274
2286
|
params: {
|
|
2275
|
-
...
|
|
2287
|
+
...n
|
|
2276
2288
|
}
|
|
2277
2289
|
}
|
|
2278
2290
|
)).data;
|
|
2279
2291
|
}
|
|
2280
|
-
async delPageFileNameDescription(e, t, s
|
|
2281
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2292
|
+
async delPageFileNameDescription(e, t, s, n) {
|
|
2293
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2282
2294
|
return (await new g(i, l).del(
|
|
2283
2295
|
`/pages/${a}/files/${o}/description`,
|
|
2284
2296
|
{
|
|
2285
2297
|
params: {
|
|
2286
|
-
...
|
|
2298
|
+
...s
|
|
2287
2299
|
}
|
|
2288
2300
|
}
|
|
2289
2301
|
)).data;
|
|
2290
2302
|
}
|
|
2291
|
-
async putPageFileNameDescription(e, t, s
|
|
2292
|
-
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2303
|
+
async putPageFileNameDescription(e, t, s, n) {
|
|
2304
|
+
const a = this.parsePageId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2293
2305
|
return (await new g(i, l).put(
|
|
2294
2306
|
`/pages/${a}/files/${o}/description`,
|
|
2295
2307
|
{
|
|
2296
2308
|
params: {
|
|
2297
|
-
...
|
|
2309
|
+
...s
|
|
2298
2310
|
}
|
|
2299
2311
|
}
|
|
2300
2312
|
)).data;
|
|
2301
2313
|
}
|
|
2302
|
-
async putPageFileNamePropertiesKey(e, t, s, n
|
|
2303
|
-
const o = this.parsePageId(e), i = this.parseFileName(t), l = this.parseKey(s), d = h(this.globals,
|
|
2314
|
+
async putPageFileNamePropertiesKey(e, t, s, n, a) {
|
|
2315
|
+
const o = this.parsePageId(e), i = this.parseFileName(t), l = this.parseKey(s), d = h(this.globals, a?.tld), u = p(this.globals, a?.auth);
|
|
2304
2316
|
return (await new g(d, u).put(
|
|
2305
2317
|
`/pages/${o}/files/${i}/properties/${l}`,
|
|
2306
2318
|
"",
|
|
2307
2319
|
{
|
|
2308
2320
|
params: {
|
|
2309
|
-
...
|
|
2321
|
+
...n
|
|
2310
2322
|
}
|
|
2311
2323
|
}
|
|
2312
2324
|
)).data;
|
|
2313
2325
|
}
|
|
2314
|
-
async putPageImport(e, t
|
|
2315
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2326
|
+
async putPageImport(e, t, s) {
|
|
2327
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2316
2328
|
return (await new g(a, o).put(
|
|
2317
2329
|
`/pages/${n}/import`,
|
|
2318
2330
|
"",
|
|
2319
2331
|
{
|
|
2320
2332
|
params: {
|
|
2321
|
-
...
|
|
2333
|
+
...t
|
|
2322
2334
|
}
|
|
2323
2335
|
}
|
|
2324
2336
|
)).data;
|
|
2325
2337
|
}
|
|
2326
|
-
async putPageMove(e, t
|
|
2327
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2338
|
+
async putPageMove(e, t, s) {
|
|
2339
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2328
2340
|
return (await new g(a, o).put(
|
|
2329
2341
|
`/pages/${n}/move`,
|
|
2330
2342
|
"",
|
|
2331
2343
|
{
|
|
2332
2344
|
params: {
|
|
2333
|
-
...
|
|
2345
|
+
...t
|
|
2334
2346
|
}
|
|
2335
2347
|
}
|
|
2336
2348
|
)).data;
|
|
2337
2349
|
}
|
|
2338
|
-
async putPageOrder(e, t
|
|
2339
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2350
|
+
async putPageOrder(e, t, s) {
|
|
2351
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2340
2352
|
return (await new g(a, o).put(
|
|
2341
2353
|
`/pages/${n}/order`,
|
|
2342
2354
|
"",
|
|
2343
2355
|
{
|
|
2344
2356
|
params: {
|
|
2345
|
-
...
|
|
2357
|
+
...t
|
|
2346
2358
|
}
|
|
2347
2359
|
}
|
|
2348
2360
|
)).data;
|
|
2349
2361
|
}
|
|
2350
|
-
async postPageProperties(e, t, s, n
|
|
2351
|
-
const o = this.parsePageId(e), i = h(this.globals,
|
|
2362
|
+
async postPageProperties(e, t, s, n, a) {
|
|
2363
|
+
const o = this.parsePageId(e), i = h(this.globals, a?.tld), l = p(this.globals, a?.auth);
|
|
2352
2364
|
return (await new g(i, l).post(
|
|
2353
2365
|
`/pages/${o}/properties`,
|
|
2354
2366
|
s,
|
|
@@ -2357,13 +2369,13 @@ class Ws {
|
|
|
2357
2369
|
Slug: t
|
|
2358
2370
|
},
|
|
2359
2371
|
params: {
|
|
2360
|
-
...
|
|
2372
|
+
...n
|
|
2361
2373
|
}
|
|
2362
2374
|
}
|
|
2363
2375
|
)).data;
|
|
2364
2376
|
}
|
|
2365
|
-
async putPageProperties(e, t, s, n
|
|
2366
|
-
const o = this.parsePageId(e), i = h(this.globals,
|
|
2377
|
+
async putPageProperties(e, t, s, n, a) {
|
|
2378
|
+
const o = this.parsePageId(e), i = h(this.globals, a?.tld), l = p(this.globals, a?.auth);
|
|
2367
2379
|
return (await new g(i, l).put(
|
|
2368
2380
|
`/pages/${o}/properties`,
|
|
2369
2381
|
s,
|
|
@@ -2372,101 +2384,101 @@ class Ws {
|
|
|
2372
2384
|
Slug: t
|
|
2373
2385
|
},
|
|
2374
2386
|
params: {
|
|
2375
|
-
...
|
|
2387
|
+
...n
|
|
2376
2388
|
}
|
|
2377
2389
|
}
|
|
2378
2390
|
)).data;
|
|
2379
2391
|
}
|
|
2380
|
-
async deletePagePropertiesKey(e, t, s
|
|
2381
|
-
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals,
|
|
2392
|
+
async deletePagePropertiesKey(e, t, s, n) {
|
|
2393
|
+
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2382
2394
|
return (await new g(i, l).del(
|
|
2383
2395
|
`/pages/${a}/properties/${o}`,
|
|
2384
2396
|
{
|
|
2385
2397
|
params: {
|
|
2386
|
-
...
|
|
2398
|
+
...s
|
|
2387
2399
|
}
|
|
2388
2400
|
}
|
|
2389
2401
|
)).data;
|
|
2390
2402
|
}
|
|
2391
|
-
async putPagePropertiesKey(e, t, s
|
|
2392
|
-
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals,
|
|
2403
|
+
async putPagePropertiesKey(e, t, s, n) {
|
|
2404
|
+
const a = this.parsePageId(e), o = this.parseKey(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2393
2405
|
return (await new g(i, l).put(
|
|
2394
2406
|
`/pages/${a}/properties/${o}`,
|
|
2395
2407
|
"",
|
|
2396
2408
|
{
|
|
2397
2409
|
params: {
|
|
2398
|
-
...
|
|
2410
|
+
...s
|
|
2399
2411
|
}
|
|
2400
2412
|
}
|
|
2401
2413
|
)).data;
|
|
2402
2414
|
}
|
|
2403
|
-
async postPageRatings(e, t
|
|
2404
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2415
|
+
async postPageRatings(e, t, s) {
|
|
2416
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2405
2417
|
return (await new g(a, o).post(
|
|
2406
2418
|
`/pages/${n}/ratings`,
|
|
2407
2419
|
"",
|
|
2408
2420
|
{
|
|
2409
2421
|
params: {
|
|
2410
|
-
...
|
|
2422
|
+
...t
|
|
2411
2423
|
}
|
|
2412
2424
|
}
|
|
2413
2425
|
)).data;
|
|
2414
2426
|
}
|
|
2415
|
-
async postPageRevert(e, t
|
|
2416
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2427
|
+
async postPageRevert(e, t, s) {
|
|
2428
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2417
2429
|
return (await new g(a, o).post(
|
|
2418
2430
|
`/pages/${n}/revert`,
|
|
2419
2431
|
"",
|
|
2420
2432
|
{
|
|
2421
2433
|
params: {
|
|
2422
|
-
...
|
|
2434
|
+
...t
|
|
2423
2435
|
}
|
|
2424
2436
|
}
|
|
2425
2437
|
)).data;
|
|
2426
2438
|
}
|
|
2427
|
-
async deletePageSecurity(e, t
|
|
2428
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2439
|
+
async deletePageSecurity(e, t, s) {
|
|
2440
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2429
2441
|
return (await new g(a, o).del(
|
|
2430
2442
|
`/pages/${n}/security`,
|
|
2431
2443
|
{
|
|
2432
2444
|
params: {
|
|
2433
|
-
...
|
|
2445
|
+
...t
|
|
2434
2446
|
}
|
|
2435
2447
|
}
|
|
2436
2448
|
)).data;
|
|
2437
2449
|
}
|
|
2438
|
-
async postPageSecurity(e, t
|
|
2439
|
-
const a = this.parsePageId(e), o = h(this.globals,
|
|
2450
|
+
async postPageSecurity(e, t, s, n) {
|
|
2451
|
+
const a = this.parsePageId(e), o = h(this.globals, n?.tld), i = p(this.globals, n?.auth);
|
|
2440
2452
|
return (await new g(o, i).post(
|
|
2441
2453
|
`/pages/${a}/security`,
|
|
2442
|
-
|
|
2454
|
+
t,
|
|
2443
2455
|
{
|
|
2444
2456
|
params: {
|
|
2445
|
-
...
|
|
2457
|
+
...s
|
|
2446
2458
|
}
|
|
2447
2459
|
}
|
|
2448
2460
|
)).data;
|
|
2449
2461
|
}
|
|
2450
|
-
async putPageSecurity(e, t
|
|
2451
|
-
const a = this.parsePageId(e), o = h(this.globals,
|
|
2462
|
+
async putPageSecurity(e, t, s, n) {
|
|
2463
|
+
const a = this.parsePageId(e), o = h(this.globals, n?.tld), i = p(this.globals, n?.auth);
|
|
2452
2464
|
return (await new g(o, i).put(
|
|
2453
2465
|
`/pages/${a}/security`,
|
|
2454
|
-
|
|
2466
|
+
t,
|
|
2455
2467
|
{
|
|
2456
2468
|
params: {
|
|
2457
|
-
...
|
|
2469
|
+
...s
|
|
2458
2470
|
}
|
|
2459
2471
|
}
|
|
2460
2472
|
)).data;
|
|
2461
2473
|
}
|
|
2462
|
-
async putPageTags(e, t
|
|
2463
|
-
const a = this.parsePageId(e), o = h(this.globals,
|
|
2474
|
+
async putPageTags(e, t, s, n) {
|
|
2475
|
+
const a = this.parsePageId(e), o = h(this.globals, n?.tld), i = p(this.globals, n?.auth);
|
|
2464
2476
|
return (await new g(o, i).put(
|
|
2465
2477
|
`/pages/${a}/tags`,
|
|
2466
|
-
|
|
2478
|
+
t,
|
|
2467
2479
|
{
|
|
2468
2480
|
params: {
|
|
2469
|
-
...
|
|
2481
|
+
...s
|
|
2470
2482
|
}
|
|
2471
2483
|
}
|
|
2472
2484
|
)).data;
|
|
@@ -2481,27 +2493,27 @@ class Gs {
|
|
|
2481
2493
|
parseGroupId(e) {
|
|
2482
2494
|
return typeof e == "number" ? e.toString() : `=${encodeURIComponent(e)}`;
|
|
2483
2495
|
}
|
|
2484
|
-
async getGroups(e
|
|
2485
|
-
const s = h(this.globals,
|
|
2496
|
+
async getGroups(e, t) {
|
|
2497
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2486
2498
|
return (await new g(s, n).get("/groups", {
|
|
2487
2499
|
params: {
|
|
2488
|
-
...
|
|
2500
|
+
...e
|
|
2489
2501
|
}
|
|
2490
2502
|
})).data;
|
|
2491
2503
|
}
|
|
2492
|
-
async getGroup(e, t
|
|
2493
|
-
const n = this.parseGroupId(e), a = h(this.globals,
|
|
2504
|
+
async getGroup(e, t, s) {
|
|
2505
|
+
const n = this.parseGroupId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2494
2506
|
return (await new g(a, o).get(`/groups/${n}`, {
|
|
2495
2507
|
params: {
|
|
2496
|
-
...
|
|
2508
|
+
...t
|
|
2497
2509
|
}
|
|
2498
2510
|
})).data;
|
|
2499
2511
|
}
|
|
2500
|
-
async getGroupUser(e, t
|
|
2501
|
-
const n = this.parseGroupId(e), a = h(this.globals,
|
|
2512
|
+
async getGroupUser(e, t, s) {
|
|
2513
|
+
const n = this.parseGroupId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2502
2514
|
return (await new g(a, o).get(`/groups/${n}/users`, {
|
|
2503
2515
|
params: {
|
|
2504
|
-
...
|
|
2516
|
+
...t
|
|
2505
2517
|
}
|
|
2506
2518
|
})).data;
|
|
2507
2519
|
}
|
|
@@ -2518,51 +2530,51 @@ class Xs {
|
|
|
2518
2530
|
parseUserId(e) {
|
|
2519
2531
|
return typeof e == "number" ? e.toString() : `=${encodeURIComponent(encodeURIComponent(e))}`;
|
|
2520
2532
|
}
|
|
2521
|
-
async getPageHierarchyById(e, t
|
|
2522
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2533
|
+
async getPageHierarchyById(e, t, s) {
|
|
2534
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2523
2535
|
return (await new g(a, o).get(`events/page-hierarchy/${n}`, {
|
|
2524
2536
|
params: {
|
|
2525
|
-
...
|
|
2537
|
+
...t
|
|
2526
2538
|
}
|
|
2527
2539
|
})).data;
|
|
2528
2540
|
}
|
|
2529
|
-
async getPageHierarchyDetailById(e, t, s
|
|
2530
|
-
const a = this.parsePageId(e), o = h(this.globals,
|
|
2541
|
+
async getPageHierarchyDetailById(e, t, s, n) {
|
|
2542
|
+
const a = this.parsePageId(e), o = h(this.globals, n?.tld), i = p(this.globals, n?.auth);
|
|
2531
2543
|
return (await new g(o, i).get(`events/page-hierarchy/${a}/${t}`, {
|
|
2532
2544
|
params: {
|
|
2533
|
-
...
|
|
2545
|
+
...s
|
|
2534
2546
|
}
|
|
2535
2547
|
})).data;
|
|
2536
2548
|
}
|
|
2537
|
-
async getEventPage(e, t
|
|
2538
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2549
|
+
async getEventPage(e, t, s) {
|
|
2550
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2539
2551
|
return (await new g(a, o).get(`events/page/${n}`, {
|
|
2540
2552
|
params: {
|
|
2541
|
-
...
|
|
2553
|
+
...t
|
|
2542
2554
|
}
|
|
2543
2555
|
})).data;
|
|
2544
2556
|
}
|
|
2545
|
-
async getEventPageDetail(e, t, s
|
|
2546
|
-
const a = this.parsePageId(e), o = h(this.globals,
|
|
2557
|
+
async getEventPageDetail(e, t, s, n) {
|
|
2558
|
+
const a = this.parsePageId(e), o = h(this.globals, n?.tld), i = p(this.globals, n?.auth);
|
|
2547
2559
|
return (await new g(o, i).get(`/events/page/${a}/${t}`, {
|
|
2548
2560
|
params: {
|
|
2549
|
-
...
|
|
2561
|
+
...s
|
|
2550
2562
|
}
|
|
2551
2563
|
})).data;
|
|
2552
2564
|
}
|
|
2553
|
-
async getEventUserPage(e, t
|
|
2554
|
-
const n = h(this.globals,
|
|
2565
|
+
async getEventUserPage(e, t, s) {
|
|
2566
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2555
2567
|
return (await new g(n, a).get(`/events/user-page/${this.parseUserId(e)}`, {
|
|
2556
2568
|
params: {
|
|
2557
|
-
...
|
|
2569
|
+
...t
|
|
2558
2570
|
}
|
|
2559
2571
|
})).data;
|
|
2560
2572
|
}
|
|
2561
|
-
async getEventUserDetailPage(e, t, s
|
|
2562
|
-
const a = h(this.globals,
|
|
2573
|
+
async getEventUserDetailPage(e, t, s, n) {
|
|
2574
|
+
const a = h(this.globals, n?.tld), o = p(this.globals, n?.auth);
|
|
2563
2575
|
return (await new g(a, o).get(`/events/user-page/${this.parseUserId(e)}/${t}`, {
|
|
2564
2576
|
params: {
|
|
2565
|
-
...
|
|
2577
|
+
...s
|
|
2566
2578
|
}
|
|
2567
2579
|
})).data;
|
|
2568
2580
|
}
|
|
@@ -2576,85 +2588,85 @@ class Qs {
|
|
|
2576
2588
|
parseFileName(e) {
|
|
2577
2589
|
return `=${encodeURIComponent(encodeURIComponent(e))}`;
|
|
2578
2590
|
}
|
|
2579
|
-
async getArchive(e
|
|
2580
|
-
const s = h(this.globals,
|
|
2591
|
+
async getArchive(e, t) {
|
|
2592
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2581
2593
|
return (await new g(s, n).get("/archive", {
|
|
2582
2594
|
params: {
|
|
2583
|
-
...
|
|
2595
|
+
...e
|
|
2584
2596
|
}
|
|
2585
2597
|
})).data;
|
|
2586
2598
|
}
|
|
2587
|
-
async getArchiveFiles(e
|
|
2588
|
-
const s = h(this.globals,
|
|
2599
|
+
async getArchiveFiles(e, t) {
|
|
2600
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2589
2601
|
return (await new g(s, n).get("/archive/files", {
|
|
2590
2602
|
params: {
|
|
2591
|
-
...
|
|
2603
|
+
...e
|
|
2592
2604
|
}
|
|
2593
2605
|
})).data;
|
|
2594
2606
|
}
|
|
2595
|
-
async getArchiveFile(e, t
|
|
2596
|
-
const n = h(this.globals,
|
|
2607
|
+
async getArchiveFile(e, t, s) {
|
|
2608
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2597
2609
|
return (await new g(n, a).get(`/archive/files/${e}`, {
|
|
2598
2610
|
params: {
|
|
2599
|
-
...
|
|
2611
|
+
...t
|
|
2600
2612
|
},
|
|
2601
2613
|
responseType: "stream"
|
|
2602
2614
|
})).data;
|
|
2603
2615
|
}
|
|
2604
|
-
async getArchiveFileByName(e, t, s
|
|
2605
|
-
const a = h(this.globals,
|
|
2616
|
+
async getArchiveFileByName(e, t, s, n) {
|
|
2617
|
+
const a = h(this.globals, n?.tld), o = this.parseFileName(t), i = p(this.globals, n?.auth);
|
|
2606
2618
|
return (await new g(a, i).get(`/archive/files/${e}/${o}`, {
|
|
2607
2619
|
params: {
|
|
2608
|
-
...
|
|
2620
|
+
...s
|
|
2609
2621
|
},
|
|
2610
2622
|
responseType: "stream"
|
|
2611
2623
|
})).data;
|
|
2612
2624
|
}
|
|
2613
|
-
async getArchiveFileInfo(e, t
|
|
2614
|
-
const n = h(this.globals,
|
|
2625
|
+
async getArchiveFileInfo(e, t, s) {
|
|
2626
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2615
2627
|
return (await new g(n, a).get(`/archive/files/${e}/info`, {
|
|
2616
2628
|
params: {
|
|
2617
|
-
...
|
|
2629
|
+
...t
|
|
2618
2630
|
}
|
|
2619
2631
|
})).data;
|
|
2620
2632
|
}
|
|
2621
|
-
async getArchivePages(e
|
|
2622
|
-
const s = h(this.globals,
|
|
2633
|
+
async getArchivePages(e, t) {
|
|
2634
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2623
2635
|
return (await new g(s, n).get("/archive/pages", {
|
|
2624
2636
|
params: {
|
|
2625
|
-
...
|
|
2637
|
+
...e
|
|
2626
2638
|
}
|
|
2627
2639
|
})).data;
|
|
2628
2640
|
}
|
|
2629
|
-
async getArchivePage(e, t
|
|
2630
|
-
const n = h(this.globals,
|
|
2641
|
+
async getArchivePage(e, t, s) {
|
|
2642
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2631
2643
|
return (await new g(n, a).get(`/archive/page/${e}`, {
|
|
2632
2644
|
params: {
|
|
2633
|
-
...
|
|
2645
|
+
...t
|
|
2634
2646
|
}
|
|
2635
2647
|
})).data;
|
|
2636
2648
|
}
|
|
2637
|
-
async getArchivePageContents(e, t
|
|
2638
|
-
const n = h(this.globals,
|
|
2649
|
+
async getArchivePageContents(e, t, s) {
|
|
2650
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2639
2651
|
return (await new g(n, a).get(`/archive/page/${e}/contents`, {
|
|
2640
2652
|
params: {
|
|
2641
|
-
...
|
|
2653
|
+
...t
|
|
2642
2654
|
}
|
|
2643
2655
|
})).data;
|
|
2644
2656
|
}
|
|
2645
|
-
async getArchivePageInfo(e, t
|
|
2646
|
-
const n = h(this.globals,
|
|
2657
|
+
async getArchivePageInfo(e, t, s) {
|
|
2658
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2647
2659
|
return (await new g(n, a).get(`/archive/page/${e}/info`, {
|
|
2648
2660
|
params: {
|
|
2649
|
-
...
|
|
2661
|
+
...t
|
|
2650
2662
|
}
|
|
2651
2663
|
})).data;
|
|
2652
2664
|
}
|
|
2653
|
-
async getArchivePageSubPages(e, t
|
|
2654
|
-
const n = h(this.globals,
|
|
2665
|
+
async getArchivePageSubPages(e, t, s) {
|
|
2666
|
+
const n = h(this.globals, s?.tld), a = p(this.globals, s?.auth);
|
|
2655
2667
|
return (await new g(n, a).get(`/archive/page/${e}/subpages`, {
|
|
2656
2668
|
params: {
|
|
2657
|
-
...
|
|
2669
|
+
...t
|
|
2658
2670
|
}
|
|
2659
2671
|
})).data;
|
|
2660
2672
|
}
|
|
@@ -2671,123 +2683,123 @@ class Zs {
|
|
|
2671
2683
|
parseKey(e) {
|
|
2672
2684
|
return encodeURIComponent(encodeURIComponent(e));
|
|
2673
2685
|
}
|
|
2674
|
-
async getSiteActivity(e
|
|
2675
|
-
const s = h(this.globals,
|
|
2686
|
+
async getSiteActivity(e, t) {
|
|
2687
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2676
2688
|
return (await new g(s, n).get("/site/activity", {
|
|
2677
2689
|
params: {
|
|
2678
|
-
...
|
|
2690
|
+
...e
|
|
2679
2691
|
}
|
|
2680
2692
|
})).data;
|
|
2681
2693
|
}
|
|
2682
|
-
async getSiteExportGroups(e
|
|
2683
|
-
const t = h(this.globals, e
|
|
2694
|
+
async getSiteExportGroups(e) {
|
|
2695
|
+
const t = h(this.globals, e?.tld), s = p(this.globals, e?.auth);
|
|
2684
2696
|
return (await new g(t, s).get("/site/export/groups")).data;
|
|
2685
2697
|
}
|
|
2686
|
-
async getSiteExportUsers(e
|
|
2687
|
-
const t = h(this.globals, e
|
|
2698
|
+
async getSiteExportUsers(e) {
|
|
2699
|
+
const t = h(this.globals, e?.tld), s = p(this.globals, e?.auth);
|
|
2688
2700
|
return (await new g(t, s).get("/site/export/users")).data;
|
|
2689
2701
|
}
|
|
2690
|
-
async getSiteSubPagesTags(e, t
|
|
2691
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2702
|
+
async getSiteSubPagesTags(e, t, s) {
|
|
2703
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2692
2704
|
return (await new g(a, o).get(
|
|
2693
2705
|
`/site/nav/${n}/children`,
|
|
2694
2706
|
{
|
|
2695
2707
|
params: {
|
|
2696
|
-
...
|
|
2708
|
+
...t
|
|
2697
2709
|
}
|
|
2698
2710
|
}
|
|
2699
2711
|
)).data;
|
|
2700
2712
|
}
|
|
2701
|
-
async getSiteFullNavTreeTags(e, t
|
|
2702
|
-
const n = this.parsePageId(e), a = h(this.globals,
|
|
2713
|
+
async getSiteFullNavTreeTags(e, t, s) {
|
|
2714
|
+
const n = this.parsePageId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2703
2715
|
return (await new g(a, o).get(
|
|
2704
2716
|
`/site/nav/${n}/full`,
|
|
2705
2717
|
{
|
|
2706
2718
|
params: {
|
|
2707
|
-
...
|
|
2719
|
+
...t
|
|
2708
2720
|
}
|
|
2709
2721
|
}
|
|
2710
2722
|
)).data;
|
|
2711
2723
|
}
|
|
2712
|
-
async getSiteOperations(e
|
|
2713
|
-
const s = h(this.globals,
|
|
2724
|
+
async getSiteOperations(e, t) {
|
|
2725
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2714
2726
|
return (await new g(s, n).get(
|
|
2715
2727
|
"/site/operations",
|
|
2716
2728
|
{
|
|
2717
2729
|
params: {
|
|
2718
|
-
...
|
|
2730
|
+
...e
|
|
2719
2731
|
}
|
|
2720
2732
|
}
|
|
2721
2733
|
)).data;
|
|
2722
2734
|
}
|
|
2723
|
-
async getSiteProperties(e
|
|
2724
|
-
const s = h(this.globals,
|
|
2735
|
+
async getSiteProperties(e, t) {
|
|
2736
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2725
2737
|
return (await new g(s, n).get(
|
|
2726
2738
|
"/site/properties",
|
|
2727
2739
|
{
|
|
2728
2740
|
params: {
|
|
2729
|
-
...
|
|
2741
|
+
...e
|
|
2730
2742
|
}
|
|
2731
2743
|
}
|
|
2732
2744
|
)).data;
|
|
2733
2745
|
}
|
|
2734
|
-
async GetSiteKeyProperties(e, t
|
|
2735
|
-
const n = this.parseKey(e), a = h(this.globals,
|
|
2746
|
+
async GetSiteKeyProperties(e, t, s) {
|
|
2747
|
+
const n = this.parseKey(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2736
2748
|
return (await new g(a, o).get(
|
|
2737
2749
|
`/site/properties/${n}`,
|
|
2738
2750
|
{
|
|
2739
2751
|
params: {
|
|
2740
|
-
...
|
|
2752
|
+
...t
|
|
2741
2753
|
}
|
|
2742
2754
|
}
|
|
2743
2755
|
)).data;
|
|
2744
2756
|
}
|
|
2745
|
-
async GetSiteKeyPropertiesInfo(e, t
|
|
2746
|
-
const n = this.parseKey(e), a = h(this.globals,
|
|
2757
|
+
async GetSiteKeyPropertiesInfo(e, t, s) {
|
|
2758
|
+
const n = this.parseKey(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2747
2759
|
return (await new g(a, o).get(
|
|
2748
2760
|
`/site/properties/${n}/info`,
|
|
2749
2761
|
{
|
|
2750
2762
|
params: {
|
|
2751
|
-
...
|
|
2763
|
+
...t
|
|
2752
2764
|
}
|
|
2753
2765
|
}
|
|
2754
2766
|
)).data;
|
|
2755
2767
|
}
|
|
2756
|
-
async GetSiteQuery(e
|
|
2757
|
-
const s = h(this.globals,
|
|
2768
|
+
async GetSiteQuery(e, t) {
|
|
2769
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2758
2770
|
return (await new g(s, n).get(
|
|
2759
2771
|
"/site/query",
|
|
2760
2772
|
{
|
|
2761
2773
|
params: {
|
|
2762
|
-
...
|
|
2774
|
+
...e
|
|
2763
2775
|
}
|
|
2764
2776
|
}
|
|
2765
2777
|
)).data;
|
|
2766
2778
|
}
|
|
2767
|
-
async GetSiteStatus(e
|
|
2768
|
-
const t = h(this.globals, e
|
|
2779
|
+
async GetSiteStatus(e) {
|
|
2780
|
+
const t = h(this.globals, e?.tld), s = p(this.globals, e?.auth);
|
|
2769
2781
|
return (await new g(t, s).get(
|
|
2770
2782
|
"/site/status"
|
|
2771
2783
|
)).data;
|
|
2772
2784
|
}
|
|
2773
|
-
async GetSiteTags(e
|
|
2774
|
-
const s = h(this.globals,
|
|
2785
|
+
async GetSiteTags(e, t) {
|
|
2786
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2775
2787
|
return (await new g(s, n).get(
|
|
2776
2788
|
"/site/tags",
|
|
2777
2789
|
{
|
|
2778
2790
|
params: {
|
|
2779
|
-
...
|
|
2791
|
+
...e
|
|
2780
2792
|
}
|
|
2781
2793
|
}
|
|
2782
2794
|
)).data;
|
|
2783
2795
|
}
|
|
2784
|
-
async GetSiteTag(e
|
|
2785
|
-
const s = h(this.globals,
|
|
2796
|
+
async GetSiteTag(e, t) {
|
|
2797
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2786
2798
|
return (await new g(s, n).get(
|
|
2787
2799
|
"/site/tag",
|
|
2788
2800
|
{
|
|
2789
2801
|
params: {
|
|
2790
|
-
...
|
|
2802
|
+
...e
|
|
2791
2803
|
}
|
|
2792
2804
|
}
|
|
2793
2805
|
)).data;
|
|
@@ -2802,19 +2814,19 @@ class Ys {
|
|
|
2802
2814
|
parseFileName(e) {
|
|
2803
2815
|
return `=${encodeURIComponent(encodeURIComponent(e))}`;
|
|
2804
2816
|
}
|
|
2805
|
-
async getContextMaps(e
|
|
2806
|
-
const s = h(this.globals,
|
|
2817
|
+
async getContextMaps(e, t) {
|
|
2818
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2807
2819
|
return (await new g(s, n).get("/contextmaps", {
|
|
2808
2820
|
params: {
|
|
2809
|
-
...
|
|
2821
|
+
...e
|
|
2810
2822
|
}
|
|
2811
2823
|
})).data;
|
|
2812
2824
|
}
|
|
2813
|
-
async getContextMapsById(e, t, s
|
|
2814
|
-
const a = h(this.globals,
|
|
2825
|
+
async getContextMapsById(e, t, s, n) {
|
|
2826
|
+
const a = h(this.globals, n?.tld), o = p(this.globals, n?.auth);
|
|
2815
2827
|
return (await new g(a, o).get(`/contextmaps/${e}/${t}`, {
|
|
2816
2828
|
params: {
|
|
2817
|
-
...
|
|
2829
|
+
...s
|
|
2818
2830
|
}
|
|
2819
2831
|
})).data;
|
|
2820
2832
|
}
|
|
@@ -2831,59 +2843,59 @@ class en {
|
|
|
2831
2843
|
parseKey(e) {
|
|
2832
2844
|
return encodeURIComponent(encodeURIComponent(e));
|
|
2833
2845
|
}
|
|
2834
|
-
async getUsers(e
|
|
2835
|
-
const s = h(this.globals,
|
|
2846
|
+
async getUsers(e, t) {
|
|
2847
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2836
2848
|
return (await new g(s, n).get("/users", {
|
|
2837
2849
|
params: {
|
|
2838
|
-
...
|
|
2850
|
+
...e
|
|
2839
2851
|
}
|
|
2840
2852
|
})).data;
|
|
2841
2853
|
}
|
|
2842
|
-
async getUser(e, t
|
|
2843
|
-
const n = this.parseUserId(e), a = h(this.globals,
|
|
2854
|
+
async getUser(e, t, s) {
|
|
2855
|
+
const n = this.parseUserId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2844
2856
|
return (await new g(a, o).get(`/users/${n}`, {
|
|
2845
2857
|
params: {
|
|
2846
|
-
...
|
|
2858
|
+
...t
|
|
2847
2859
|
}
|
|
2848
2860
|
})).data;
|
|
2849
2861
|
}
|
|
2850
|
-
async getUserMetrics(e, t
|
|
2851
|
-
const n = this.parseUserId(e), a = h(this.globals,
|
|
2862
|
+
async getUserMetrics(e, t, s) {
|
|
2863
|
+
const n = this.parseUserId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2852
2864
|
return (await new g(a, o).get(`/users/${n}/metrics`, {
|
|
2853
2865
|
params: {
|
|
2854
|
-
...
|
|
2866
|
+
...t
|
|
2855
2867
|
}
|
|
2856
2868
|
})).data;
|
|
2857
2869
|
}
|
|
2858
|
-
async getUserProperties(e, t
|
|
2859
|
-
const n = this.parseUserId(e), a = h(this.globals,
|
|
2870
|
+
async getUserProperties(e, t, s) {
|
|
2871
|
+
const n = this.parseUserId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2860
2872
|
return (await new g(a, o).get(`/users/${n}/properties`, {
|
|
2861
2873
|
params: {
|
|
2862
|
-
...
|
|
2874
|
+
...t
|
|
2863
2875
|
}
|
|
2864
2876
|
})).data;
|
|
2865
2877
|
}
|
|
2866
|
-
async getUserPropertiesKey(e, t, s
|
|
2867
|
-
const a = this.parseUserId(e), o = this.parseKey(t), i = h(this.globals,
|
|
2878
|
+
async getUserPropertiesKey(e, t, s, n) {
|
|
2879
|
+
const a = this.parseUserId(e), o = this.parseKey(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2868
2880
|
return (await new g(i, l).get(`/users/${a}/properties/${o}`, {
|
|
2869
2881
|
params: {
|
|
2870
|
-
...
|
|
2882
|
+
...s
|
|
2871
2883
|
}
|
|
2872
2884
|
})).data;
|
|
2873
2885
|
}
|
|
2874
|
-
async getUserPropertiesKeyInfo(e, t, s
|
|
2875
|
-
const a = this.parseUserId(e), o = this.parseKey(t), i = h(this.globals,
|
|
2886
|
+
async getUserPropertiesKeyInfo(e, t, s, n) {
|
|
2887
|
+
const a = this.parseUserId(e), o = this.parseKey(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2876
2888
|
return (await new g(i, l).get(`/users/${a}/properties/${o}/info`, {
|
|
2877
2889
|
params: {
|
|
2878
|
-
...
|
|
2890
|
+
...s
|
|
2879
2891
|
}
|
|
2880
2892
|
})).data;
|
|
2881
2893
|
}
|
|
2882
|
-
async getUsersSearch(e
|
|
2883
|
-
const s = h(this.globals,
|
|
2894
|
+
async getUsersSearch(e, t) {
|
|
2895
|
+
const s = h(this.globals, t?.tld), n = p(this.globals, t?.auth);
|
|
2884
2896
|
return (await new g(s, n).get("/users/search", {
|
|
2885
2897
|
params: {
|
|
2886
|
-
...
|
|
2898
|
+
...e
|
|
2887
2899
|
}
|
|
2888
2900
|
})).data;
|
|
2889
2901
|
}
|
|
@@ -2903,122 +2915,122 @@ class tn {
|
|
|
2903
2915
|
parseKey(e) {
|
|
2904
2916
|
return encodeURIComponent(encodeURIComponent(e));
|
|
2905
2917
|
}
|
|
2906
|
-
async getFile(e, t
|
|
2907
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
2918
|
+
async getFile(e, t, s) {
|
|
2919
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2908
2920
|
return (await new g(a, o).get(`files/${n}`, {
|
|
2909
2921
|
params: {
|
|
2910
|
-
...
|
|
2922
|
+
...t
|
|
2911
2923
|
},
|
|
2912
2924
|
responseType: "stream"
|
|
2913
2925
|
})).data;
|
|
2914
2926
|
}
|
|
2915
|
-
async getFileName(e, t, s
|
|
2916
|
-
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2927
|
+
async getFileName(e, t, s, n) {
|
|
2928
|
+
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2917
2929
|
return (await new g(i, l).get(`files/${a}/${o}`, {
|
|
2918
2930
|
params: {
|
|
2919
|
-
...
|
|
2931
|
+
...s
|
|
2920
2932
|
},
|
|
2921
2933
|
responseType: "stream"
|
|
2922
2934
|
})).data;
|
|
2923
2935
|
}
|
|
2924
|
-
async getFileDescription(e, t
|
|
2925
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
2936
|
+
async getFileDescription(e, t, s) {
|
|
2937
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2926
2938
|
return (await new g(a, o).get(`files/${n}/description`, {
|
|
2927
2939
|
params: {
|
|
2928
|
-
...
|
|
2940
|
+
...t
|
|
2929
2941
|
},
|
|
2930
2942
|
responseType: "stream"
|
|
2931
2943
|
})).data;
|
|
2932
2944
|
}
|
|
2933
|
-
async getFileInfo(e, t
|
|
2934
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
2945
|
+
async getFileInfo(e, t, s) {
|
|
2946
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2935
2947
|
return (await new g(a, o).get(`files/${n}/info`, {
|
|
2936
2948
|
params: {
|
|
2937
|
-
...
|
|
2949
|
+
...t
|
|
2938
2950
|
}
|
|
2939
2951
|
})).data;
|
|
2940
2952
|
}
|
|
2941
|
-
async getFileRevisions(e, t
|
|
2942
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
2953
|
+
async getFileRevisions(e, t, s) {
|
|
2954
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2943
2955
|
return (await new g(a, o).get(`files/${n}/revisions`, {
|
|
2944
2956
|
params: {
|
|
2945
|
-
...
|
|
2957
|
+
...t
|
|
2946
2958
|
}
|
|
2947
2959
|
})).data;
|
|
2948
2960
|
}
|
|
2949
|
-
async deleteFile(e, t
|
|
2950
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
2961
|
+
async deleteFile(e, t, s) {
|
|
2962
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2951
2963
|
return (await new g(a, o).del(`files/${n}`, {
|
|
2952
2964
|
params: {
|
|
2953
|
-
...
|
|
2965
|
+
...t
|
|
2954
2966
|
}
|
|
2955
2967
|
})).data;
|
|
2956
2968
|
}
|
|
2957
|
-
async headFile(e, t
|
|
2958
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
2969
|
+
async headFile(e, t, s) {
|
|
2970
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2959
2971
|
return (await new g(a, o).head(`files/${n}`, {
|
|
2960
2972
|
params: {
|
|
2961
|
-
...
|
|
2973
|
+
...t
|
|
2962
2974
|
}
|
|
2963
2975
|
})).data;
|
|
2964
2976
|
}
|
|
2965
|
-
async putFile(e, t
|
|
2966
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
2977
|
+
async putFile(e, t, s) {
|
|
2978
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
2967
2979
|
return (await new g(a, o).put(
|
|
2968
2980
|
`files/${n}`,
|
|
2969
2981
|
"",
|
|
2970
2982
|
{
|
|
2971
2983
|
params: {
|
|
2972
|
-
...
|
|
2984
|
+
...t
|
|
2973
2985
|
}
|
|
2974
2986
|
}
|
|
2975
2987
|
)).data;
|
|
2976
2988
|
}
|
|
2977
|
-
async deleteFileName(e, t, s
|
|
2978
|
-
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2989
|
+
async deleteFileName(e, t, s, n) {
|
|
2990
|
+
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2979
2991
|
return (await new g(i, l).del(`files/${a}/${o}`, {
|
|
2980
2992
|
params: {
|
|
2981
|
-
...
|
|
2993
|
+
...s
|
|
2982
2994
|
}
|
|
2983
2995
|
})).data;
|
|
2984
2996
|
}
|
|
2985
|
-
async headFileName(e, t, s
|
|
2986
|
-
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
2997
|
+
async headFileName(e, t, s, n) {
|
|
2998
|
+
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2987
2999
|
return (await new g(i, l).head(`files/${a}/${o}`, {
|
|
2988
3000
|
params: {
|
|
2989
|
-
...
|
|
3001
|
+
...s
|
|
2990
3002
|
}
|
|
2991
3003
|
})).data;
|
|
2992
3004
|
}
|
|
2993
|
-
async putFileName(e, t, s
|
|
2994
|
-
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals,
|
|
3005
|
+
async putFileName(e, t, s, n) {
|
|
3006
|
+
const a = this.parseFileId(e), o = this.parseFileName(t), i = h(this.globals, n?.tld), l = p(this.globals, n?.auth);
|
|
2995
3007
|
return (await new g(i, l).put(
|
|
2996
3008
|
`files/${a}/${o}`,
|
|
2997
3009
|
"",
|
|
2998
3010
|
{
|
|
2999
3011
|
params: {
|
|
3000
|
-
...
|
|
3012
|
+
...s
|
|
3001
3013
|
}
|
|
3002
3014
|
}
|
|
3003
3015
|
)).data;
|
|
3004
3016
|
}
|
|
3005
|
-
async postFileCopy(e, t
|
|
3006
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
3017
|
+
async postFileCopy(e, t, s) {
|
|
3018
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
3007
3019
|
return (await new g(a, o).post(
|
|
3008
3020
|
`files/${n}/copy`,
|
|
3009
3021
|
"",
|
|
3010
3022
|
{
|
|
3011
3023
|
params: {
|
|
3012
|
-
...
|
|
3024
|
+
...t
|
|
3013
3025
|
}
|
|
3014
3026
|
}
|
|
3015
3027
|
)).data;
|
|
3016
3028
|
}
|
|
3017
|
-
async delDescriptionFile(e, t
|
|
3018
|
-
const n = this.parseFileId(e), a = h(this.globals,
|
|
3029
|
+
async delDescriptionFile(e, t, s) {
|
|
3030
|
+
const n = this.parseFileId(e), a = h(this.globals, s?.tld), o = p(this.globals, s?.auth);
|
|
3019
3031
|
return (await new g(a, o).del(`files/${n}/description`, {
|
|
3020
3032
|
params: {
|
|
3021
|
-
...
|
|
3033
|
+
...t
|
|
3022
3034
|
}
|
|
3023
3035
|
})).data;
|
|
3024
3036
|
}
|
|
@@ -3047,10 +3059,10 @@ class Pn {
|
|
|
3047
3059
|
return this.globals.auth = { type: "browser", params: e }, this;
|
|
3048
3060
|
}
|
|
3049
3061
|
get pages() {
|
|
3050
|
-
return this._pages || (this._pages = new
|
|
3062
|
+
return this._pages || (this._pages = new Vs(this.globals)), this._pages;
|
|
3051
3063
|
}
|
|
3052
3064
|
get auth() {
|
|
3053
|
-
return this._auth || (this._auth = new
|
|
3065
|
+
return this._auth || (this._auth = new We()), this._auth;
|
|
3054
3066
|
}
|
|
3055
3067
|
get site() {
|
|
3056
3068
|
return this._site || (this._site = new Zs(this.globals)), this._site;
|