@qlik/api 0.0.2 → 0.0.4
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/api-keys.d.mts +14 -0
- package/api-keys.d.ts +14 -0
- package/api-keys.js +14 -10
- package/api-keys.mjs +6 -2
- package/apps.d.mts +479 -149
- package/apps.d.ts +479 -149
- package/apps.js +100 -42
- package/apps.mjs +60 -2
- package/audits.d.mts +12 -0
- package/audits.d.ts +12 -0
- package/audits.js +10 -9
- package/audits.mjs +3 -2
- package/auth-AWZV4DPP.js +41 -0
- package/{auth-RTFXVSSK.mjs → auth-CPBNNC7S.mjs} +4 -1
- package/auth.js +4 -3
- package/auth.mjs +3 -2
- package/automations.d.mts +36 -0
- package/automations.d.ts +36 -0
- package/automations.js +28 -21
- package/automations.mjs +9 -2
- package/brands.d.mts +45 -4
- package/brands.d.ts +45 -4
- package/brands.js +20 -15
- package/brands.mjs +7 -2
- package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
- package/{chunk-7REWEWCX.mjs → chunk-3SVRHJII.mjs} +3 -3
- package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
- package/{chunk-M7F4JFOB.js → chunk-7RY3NO6N.js} +2 -2
- package/{chunk-NALKLKZS.mjs → chunk-CYRLVHU3.mjs} +316 -53
- package/{chunk-RMKP2BDX.js → chunk-D52VW5UN.js} +318 -55
- package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
- package/{chunk-QN23TPIE.js → chunk-GV5SRHY2.js} +4 -4
- package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
- package/chunk-P57PW2II.js +11 -0
- package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
- package/chunk-ZFXKCRJC.mjs +11 -0
- package/collections.d.mts +51 -17
- package/collections.d.ts +51 -17
- package/collections.js +28 -14
- package/collections.mjs +16 -2
- package/csp-origins.d.mts +16 -1
- package/csp-origins.d.ts +16 -1
- package/csp-origins.js +12 -9
- package/csp-origins.mjs +5 -2
- package/data-assets.d.mts +10 -0
- package/data-assets.d.ts +10 -0
- package/data-assets.js +13 -8
- package/data-assets.mjs +7 -2
- package/data-connections.d.mts +18 -0
- package/data-connections.d.ts +18 -0
- package/data-connections.js +19 -12
- package/data-connections.mjs +9 -2
- package/data-credentials.d.mts +8 -0
- package/data-credentials.d.ts +8 -0
- package/data-credentials.js +10 -7
- package/data-credentials.mjs +5 -2
- package/data-files.d.mts +98 -13
- package/data-files.d.ts +98 -13
- package/data-files.js +22 -15
- package/data-files.mjs +9 -2
- package/{enigma-session-VPPJMBEM.js → enigma-session-XPXDQAIV.js} +5 -4
- package/{enigma-session-HGXKZJVO.mjs → enigma-session-ZH6MYA54.mjs} +2 -1
- package/{esm-RX7B2TUN.js → esm-3VXX2GKL.js} +3 -1
- package/{esm-M5ZBFTVD.mjs → esm-OY4XVIJB.mjs} +3 -1
- package/extensions.d.mts +26 -2
- package/extensions.d.ts +26 -2
- package/extensions.js +13 -10
- package/extensions.mjs +5 -2
- package/glossaries.d.mts +55 -20
- package/glossaries.d.ts +55 -20
- package/glossaries.js +39 -27
- package/glossaries.mjs +14 -2
- package/groups.d.mts +16 -0
- package/groups.d.ts +16 -0
- package/groups.js +16 -11
- package/groups.mjs +7 -2
- package/identity-providers.d.mts +16 -0
- package/identity-providers.d.ts +16 -0
- package/identity-providers.js +14 -11
- package/identity-providers.mjs +5 -2
- package/index.js +135 -101
- package/index.mjs +131 -97
- package/{invoke-fetch-IMO4AMA3.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
- package/invoke-fetch-UNTAUR7O.js +17 -0
- package/items.d.mts +6 -6
- package/items.d.ts +6 -6
- package/items.js +14 -11
- package/items.mjs +5 -2
- package/licenses.d.mts +18 -0
- package/licenses.d.ts +18 -0
- package/licenses.js +17 -12
- package/licenses.mjs +7 -2
- package/package.json +4 -4
- package/{qix-K22VHZRH.js → qix-UNWXPGMA.js} +9 -8
- package/{qix-57WD2ZE6.mjs → qix-ZSJ4PIK3.mjs} +3 -2
- package/qix.d.mts +1 -1
- package/qix.d.ts +1 -1
- package/qix.js +4 -3
- package/qix.mjs +3 -2
- package/quotas.d.mts +4 -0
- package/quotas.d.ts +4 -0
- package/quotas.js +6 -5
- package/quotas.mjs +3 -2
- package/reload-tasks.js +11 -8
- package/reload-tasks.mjs +5 -2
- package/reloads.d.mts +17 -10
- package/reloads.d.ts +17 -10
- package/reloads.js +9 -7
- package/reloads.mjs +4 -2
- package/roles.d.mts +4 -0
- package/roles.d.ts +4 -0
- package/roles.js +6 -5
- package/roles.mjs +3 -2
- package/spaces.d.mts +27 -4
- package/spaces.d.ts +27 -4
- package/spaces.js +21 -15
- package/spaces.mjs +8 -2
- package/temp-contents.d.mts +8 -3
- package/temp-contents.d.ts +8 -3
- package/temp-contents.js +8 -6
- package/temp-contents.mjs +4 -2
- package/tenants.d.mts +12 -0
- package/tenants.d.ts +12 -0
- package/tenants.js +14 -9
- package/tenants.mjs +7 -2
- package/themes.d.mts +26 -2
- package/themes.d.ts +26 -2
- package/themes.js +13 -10
- package/themes.mjs +5 -2
- package/transports.d.mts +12 -0
- package/transports.d.ts +12 -0
- package/transports.js +12 -9
- package/transports.mjs +5 -2
- package/users.d.mts +48 -29
- package/users.d.ts +48 -29
- package/users.js +18 -13
- package/users.mjs +7 -2
- package/web-integrations.d.mts +10 -0
- package/web-integrations.d.ts +10 -0
- package/web-integrations.js +11 -8
- package/web-integrations.mjs +5 -2
- package/web-notifications.d.mts +12 -0
- package/web-notifications.d.ts +12 -0
- package/web-notifications.js +12 -9
- package/web-notifications.mjs +5 -2
- package/webhooks.d.mts +25 -5
- package/webhooks.d.ts +25 -5
- package/webhooks.js +17 -13
- package/webhooks.mjs +6 -2
- package/auth-CSVTXOZX.js +0 -36
- package/auth-OU7OTB7Y.js +0 -38
- package/auth-TE272Q34.mjs +0 -36
- package/chunk-4ES65KO3.js +0 -57
- package/chunk-4FLMND6T.js +0 -25
- package/chunk-4OMEH5SW.mjs +0 -1337
- package/chunk-6JERR27K.js +0 -17
- package/chunk-E42WUFCK.mjs +0 -57
- package/chunk-H7SAZYEE.js +0 -21
- package/chunk-KMMWJZHM.mjs +0 -25
- package/chunk-W4J34XGA.mjs +0 -17
- package/chunk-WM7FQU2U.mjs +0 -21
- package/chunk-XASXL2NC.js +0 -1337
- package/enigma-session-4L373ALV.mjs +0 -10196
- package/enigma-session-TEB53FAF.js +0 -10196
- package/esm-4X3DKK5D.js +0 -63
- package/esm-SOWVJKOQ.mjs +0 -63
- package/invoke-fetch-7PKPQ3FD.js +0 -14
- package/invoke-fetch-MSSJAZ7K.mjs +0 -14
- package/invoke-fetch-PEI54KZO.js +0 -14
- package/qix-EU7PXRZ6.mjs +0 -573
- package/qix-RLTISYTB.js +0 -573
package/data-files.js
CHANGED
|
@@ -1,86 +1,93 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
|
|
5
|
+
require('./chunk-2STFUQKQ.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/public/rest/data-files.ts
|
|
8
|
-
var getDataFiles = async (query, options) =>
|
|
9
|
+
var getDataFiles = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
9
10
|
method: "get",
|
|
10
11
|
pathTemplate: "/api/v1/data-files",
|
|
11
12
|
query,
|
|
12
13
|
options
|
|
13
14
|
});
|
|
14
|
-
var uploadDataFile = async (body, options) =>
|
|
15
|
+
var uploadDataFile = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/data-files",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "multipart/form-data",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
|
-
var moveDataFiles = async (body, options) =>
|
|
22
|
+
var moveDataFiles = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
21
23
|
method: "post",
|
|
22
24
|
pathTemplate: "/api/v1/data-files/actions/change-space",
|
|
23
25
|
body,
|
|
26
|
+
contentType: "application/json",
|
|
24
27
|
options
|
|
25
28
|
});
|
|
26
|
-
var deleteDataFiles = async (body, options) =>
|
|
29
|
+
var deleteDataFiles = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
27
30
|
method: "post",
|
|
28
31
|
pathTemplate: "/api/v1/data-files/actions/delete",
|
|
29
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
30
34
|
options
|
|
31
35
|
});
|
|
32
|
-
var getDataFilesConnections = async (query, options) =>
|
|
36
|
+
var getDataFilesConnections = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
33
37
|
method: "get",
|
|
34
38
|
pathTemplate: "/api/v1/data-files/connections",
|
|
35
39
|
query,
|
|
36
40
|
options
|
|
37
41
|
});
|
|
38
|
-
var getDataFileConnection = async (id, options) =>
|
|
42
|
+
var getDataFileConnection = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
39
43
|
method: "get",
|
|
40
44
|
pathTemplate: "/api/v1/data-files/connections/{id}",
|
|
41
45
|
pathVariables: { id },
|
|
42
46
|
options
|
|
43
47
|
});
|
|
44
|
-
var getDataFilesQuotas = async (options) =>
|
|
48
|
+
var getDataFilesQuotas = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
45
49
|
method: "get",
|
|
46
50
|
pathTemplate: "/api/v1/data-files/quotas",
|
|
47
51
|
options
|
|
48
52
|
});
|
|
49
|
-
var deleteDataFile = async (id, options) =>
|
|
53
|
+
var deleteDataFile = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
50
54
|
method: "delete",
|
|
51
55
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
52
56
|
pathVariables: { id },
|
|
53
57
|
options
|
|
54
58
|
});
|
|
55
|
-
var getDataFile = async (id, options) =>
|
|
59
|
+
var getDataFile = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
56
60
|
method: "get",
|
|
57
61
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
58
62
|
pathVariables: { id },
|
|
59
63
|
options
|
|
60
64
|
});
|
|
61
|
-
var reuploadDataFile = async (id, body, options) =>
|
|
65
|
+
var reuploadDataFile = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
62
66
|
method: "put",
|
|
63
67
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
64
68
|
pathVariables: { id },
|
|
65
69
|
body,
|
|
70
|
+
contentType: "multipart/form-data",
|
|
66
71
|
options
|
|
67
72
|
});
|
|
68
|
-
var changeDataFileOwner = async (id, body, options) =>
|
|
73
|
+
var changeDataFileOwner = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
69
74
|
method: "post",
|
|
70
75
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
|
|
71
76
|
pathVariables: { id },
|
|
72
77
|
body,
|
|
78
|
+
contentType: "application/json",
|
|
73
79
|
options
|
|
74
80
|
});
|
|
75
|
-
var moveDataFile = async (id, body, options) =>
|
|
81
|
+
var moveDataFile = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "data-files", {
|
|
76
82
|
method: "post",
|
|
77
83
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
|
|
78
84
|
pathVariables: { id },
|
|
79
85
|
body,
|
|
86
|
+
contentType: "application/json",
|
|
80
87
|
options
|
|
81
88
|
});
|
|
82
89
|
function clearCache() {
|
|
83
|
-
return
|
|
90
|
+
return _chunkJNGURO23js.clearApiCache.call(void 0, "data-files");
|
|
84
91
|
}
|
|
85
92
|
var dataFilesExport = {
|
|
86
93
|
getDataFiles,
|
package/data-files.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TE7XMBT5.mjs";
|
|
5
|
+
import "./chunk-3SVRHJII.mjs";
|
|
6
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/data-files.ts
|
|
8
9
|
var getDataFiles = async (query, options) => invokeFetch("data-files", {
|
|
@@ -15,18 +16,21 @@ var uploadDataFile = async (body, options) => invokeFetch("data-files", {
|
|
|
15
16
|
method: "post",
|
|
16
17
|
pathTemplate: "/api/v1/data-files",
|
|
17
18
|
body,
|
|
19
|
+
contentType: "multipart/form-data",
|
|
18
20
|
options
|
|
19
21
|
});
|
|
20
22
|
var moveDataFiles = async (body, options) => invokeFetch("data-files", {
|
|
21
23
|
method: "post",
|
|
22
24
|
pathTemplate: "/api/v1/data-files/actions/change-space",
|
|
23
25
|
body,
|
|
26
|
+
contentType: "application/json",
|
|
24
27
|
options
|
|
25
28
|
});
|
|
26
29
|
var deleteDataFiles = async (body, options) => invokeFetch("data-files", {
|
|
27
30
|
method: "post",
|
|
28
31
|
pathTemplate: "/api/v1/data-files/actions/delete",
|
|
29
32
|
body,
|
|
33
|
+
contentType: "application/json",
|
|
30
34
|
options
|
|
31
35
|
});
|
|
32
36
|
var getDataFilesConnections = async (query, options) => invokeFetch("data-files", {
|
|
@@ -63,6 +67,7 @@ var reuploadDataFile = async (id, body, options) => invokeFetch("data-files", {
|
|
|
63
67
|
pathTemplate: "/api/v1/data-files/{id}",
|
|
64
68
|
pathVariables: { id },
|
|
65
69
|
body,
|
|
70
|
+
contentType: "multipart/form-data",
|
|
66
71
|
options
|
|
67
72
|
});
|
|
68
73
|
var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files", {
|
|
@@ -70,6 +75,7 @@ var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files",
|
|
|
70
75
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
|
|
71
76
|
pathVariables: { id },
|
|
72
77
|
body,
|
|
78
|
+
contentType: "application/json",
|
|
73
79
|
options
|
|
74
80
|
});
|
|
75
81
|
var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
|
|
@@ -77,6 +83,7 @@ var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
|
|
|
77
83
|
pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
|
|
78
84
|
pathVariables: { id },
|
|
79
85
|
body,
|
|
86
|
+
contentType: "application/json",
|
|
80
87
|
options
|
|
81
88
|
});
|
|
82
89
|
function clearCache() {
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkD52VW5UNjs = require('./chunk-D52VW5UN.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/qix/session/enigma-session.ts
|
|
8
9
|
var _enigmajs = require('enigma.js'); var _enigmajs2 = _interopRequireDefault(_enigmajs);
|
|
@@ -10159,14 +10160,14 @@ async function createEnigmaSession({
|
|
|
10159
10160
|
identity,
|
|
10160
10161
|
hostConfig
|
|
10161
10162
|
}) {
|
|
10162
|
-
const locationUrl =
|
|
10163
|
+
const locationUrl = _chunkD52VW5UNjs.toValidWebsocketLocationUrl.call(void 0, hostConfig);
|
|
10163
10164
|
const reloadUri = encodeURIComponent(`${locationUrl}/sense/app/${appId}`);
|
|
10164
10165
|
const identityPart = identity ? `/identity/${identity}` : "";
|
|
10165
10166
|
let url = `${locationUrl}/app/${appId}${identityPart}?reloadUri=${reloadUri}`.replace(/^http/, "ws");
|
|
10166
10167
|
const isNodeEnvironment = typeof window === "undefined";
|
|
10167
10168
|
let createSocketMethod;
|
|
10168
10169
|
if (isNodeEnvironment) {
|
|
10169
|
-
const { headers, queryParams } = await
|
|
10170
|
+
const { headers, queryParams } = await _chunkD52VW5UNjs.getRestCallAuthParams.call(void 0, { hostConfig, method: "POST" });
|
|
10170
10171
|
const WS = (await Promise.resolve().then(() => _interopRequireWildcard(require("ws")))).default;
|
|
10171
10172
|
Object.entries(queryParams).forEach(([key, value]) => {
|
|
10172
10173
|
url = `${url}&${key}=${value}`;
|
|
@@ -10175,7 +10176,7 @@ async function createEnigmaSession({
|
|
|
10175
10176
|
headers
|
|
10176
10177
|
});
|
|
10177
10178
|
} else {
|
|
10178
|
-
const { queryParams } = await
|
|
10179
|
+
const { queryParams } = await _chunkD52VW5UNjs.getWebSocketAuthParams.call(void 0, { hostConfig });
|
|
10179
10180
|
Object.entries(queryParams).forEach(([key, value]) => {
|
|
10180
10181
|
url = `${url}&${key}=${value}`;
|
|
10181
10182
|
});
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('./chunk-P57PW2II.js');
|
|
2
|
+
|
|
3
|
+
// node_modules/.pnpm/@qlik+runtime-module-loader@0.2.3/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
|
|
2
4
|
window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
|
|
3
5
|
window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
|
|
4
6
|
window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
2
|
+
|
|
3
|
+
// node_modules/.pnpm/@qlik+runtime-module-loader@0.2.3/node_modules/@qlik/runtime-module-loader/dist/esm/index.js
|
|
2
4
|
window.__qlikMainPrivateResolvers = window.__qlikMainPrivateResolvers || {};
|
|
3
5
|
window.__qlikMainPrivateResolvers.mainUrlPromise = window.__qlikMainPrivateResolvers.mainUrlPromise || new Promise((resolve) => {
|
|
4
6
|
window.__qlikMainPrivateResolvers.resolveMainJsUrl = (value) => resolve(value);
|
package/extensions.d.mts
CHANGED
|
@@ -85,6 +85,7 @@ type Meta = {
|
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* Lists all extensions.
|
|
88
|
+
*
|
|
88
89
|
* @throws GetExtensionsHttpError
|
|
89
90
|
*/
|
|
90
91
|
declare const getExtensions: (options?: ApiCallOptions) => Promise<GetExtensionsHttpResponse>;
|
|
@@ -100,10 +101,16 @@ type GetExtensionsHttpError = {
|
|
|
100
101
|
};
|
|
101
102
|
/**
|
|
102
103
|
* Creates a new extension. If a file is provided, the data field is not required.
|
|
104
|
+
*
|
|
103
105
|
* @param body an object with the body content
|
|
104
106
|
* @throws UploadExtensionHttpError
|
|
105
107
|
*/
|
|
106
|
-
declare const uploadExtension: (body:
|
|
108
|
+
declare const uploadExtension: (body: {
|
|
109
|
+
/** The extension model. */
|
|
110
|
+
data?: Extension;
|
|
111
|
+
/** Extension archive. */
|
|
112
|
+
file?: BodyInit;
|
|
113
|
+
}, options?: ApiCallOptions) => Promise<UploadExtensionHttpResponse>;
|
|
107
114
|
type UploadExtensionHttpResponse = {
|
|
108
115
|
data: Extension;
|
|
109
116
|
headers: Headers;
|
|
@@ -116,6 +123,7 @@ type UploadExtensionHttpError = {
|
|
|
116
123
|
};
|
|
117
124
|
/**
|
|
118
125
|
* Deletes a specific extension.
|
|
126
|
+
*
|
|
119
127
|
* @param id Extension identifier or its qextFilename.
|
|
120
128
|
* @throws DeleteExtensionHttpError
|
|
121
129
|
*/
|
|
@@ -132,6 +140,7 @@ type DeleteExtensionHttpError = {
|
|
|
132
140
|
};
|
|
133
141
|
/**
|
|
134
142
|
* Returns a specific extension.
|
|
143
|
+
*
|
|
135
144
|
* @param id Extension identifier or its qextFilename.
|
|
136
145
|
* @throws GetExtensionHttpError
|
|
137
146
|
*/
|
|
@@ -148,11 +157,17 @@ type GetExtensionHttpError = {
|
|
|
148
157
|
};
|
|
149
158
|
/**
|
|
150
159
|
* Updates a specific extension with provided data. If a file is provided, the data field is not required.
|
|
160
|
+
*
|
|
151
161
|
* @param id Extension identifier or its qextFilename.
|
|
152
162
|
* @param body an object with the body content
|
|
153
163
|
* @throws PatchExtensionHttpError
|
|
154
164
|
*/
|
|
155
|
-
declare const patchExtension: (id: string, body:
|
|
165
|
+
declare const patchExtension: (id: string, body: {
|
|
166
|
+
/** The extension model. */
|
|
167
|
+
data?: Extension;
|
|
168
|
+
/** Extension archive. */
|
|
169
|
+
file?: BodyInit;
|
|
170
|
+
}, options?: ApiCallOptions) => Promise<PatchExtensionHttpResponse>;
|
|
156
171
|
type PatchExtensionHttpResponse = {
|
|
157
172
|
data: Extension;
|
|
158
173
|
headers: Headers;
|
|
@@ -165,6 +180,7 @@ type PatchExtensionHttpError = {
|
|
|
165
180
|
};
|
|
166
181
|
/**
|
|
167
182
|
* Downloads the extension as an archive.
|
|
183
|
+
*
|
|
168
184
|
* @param id Extension identifier or its qextFilename.
|
|
169
185
|
* @throws DownloadExtensionHttpError
|
|
170
186
|
*/
|
|
@@ -181,6 +197,7 @@ type DownloadExtensionHttpError = {
|
|
|
181
197
|
};
|
|
182
198
|
/**
|
|
183
199
|
* Downloads a file from the extension archive.
|
|
200
|
+
*
|
|
184
201
|
* @param id Extension identifier or its qextFilename.
|
|
185
202
|
* @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
|
|
186
203
|
* @throws DownloadFileFromExtensionHttpError
|
|
@@ -203,29 +220,34 @@ declare function clearCache(): void;
|
|
|
203
220
|
interface ExtensionsAPI {
|
|
204
221
|
/**
|
|
205
222
|
* Lists all extensions.
|
|
223
|
+
*
|
|
206
224
|
* @throws GetExtensionsHttpError
|
|
207
225
|
*/
|
|
208
226
|
getExtensions: typeof getExtensions;
|
|
209
227
|
/**
|
|
210
228
|
* Creates a new extension. If a file is provided, the data field is not required.
|
|
229
|
+
*
|
|
211
230
|
* @param body an object with the body content
|
|
212
231
|
* @throws UploadExtensionHttpError
|
|
213
232
|
*/
|
|
214
233
|
uploadExtension: typeof uploadExtension;
|
|
215
234
|
/**
|
|
216
235
|
* Deletes a specific extension.
|
|
236
|
+
*
|
|
217
237
|
* @param id Extension identifier or its qextFilename.
|
|
218
238
|
* @throws DeleteExtensionHttpError
|
|
219
239
|
*/
|
|
220
240
|
deleteExtension: typeof deleteExtension;
|
|
221
241
|
/**
|
|
222
242
|
* Returns a specific extension.
|
|
243
|
+
*
|
|
223
244
|
* @param id Extension identifier or its qextFilename.
|
|
224
245
|
* @throws GetExtensionHttpError
|
|
225
246
|
*/
|
|
226
247
|
getExtension: typeof getExtension;
|
|
227
248
|
/**
|
|
228
249
|
* Updates a specific extension with provided data. If a file is provided, the data field is not required.
|
|
250
|
+
*
|
|
229
251
|
* @param id Extension identifier or its qextFilename.
|
|
230
252
|
* @param body an object with the body content
|
|
231
253
|
* @throws PatchExtensionHttpError
|
|
@@ -233,12 +255,14 @@ interface ExtensionsAPI {
|
|
|
233
255
|
patchExtension: typeof patchExtension;
|
|
234
256
|
/**
|
|
235
257
|
* Downloads the extension as an archive.
|
|
258
|
+
*
|
|
236
259
|
* @param id Extension identifier or its qextFilename.
|
|
237
260
|
* @throws DownloadExtensionHttpError
|
|
238
261
|
*/
|
|
239
262
|
downloadExtension: typeof downloadExtension;
|
|
240
263
|
/**
|
|
241
264
|
* Downloads a file from the extension archive.
|
|
265
|
+
*
|
|
242
266
|
* @param id Extension identifier or its qextFilename.
|
|
243
267
|
* @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
|
|
244
268
|
* @throws DownloadFileFromExtensionHttpError
|
package/extensions.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ type Meta = {
|
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* Lists all extensions.
|
|
88
|
+
*
|
|
88
89
|
* @throws GetExtensionsHttpError
|
|
89
90
|
*/
|
|
90
91
|
declare const getExtensions: (options?: ApiCallOptions) => Promise<GetExtensionsHttpResponse>;
|
|
@@ -100,10 +101,16 @@ type GetExtensionsHttpError = {
|
|
|
100
101
|
};
|
|
101
102
|
/**
|
|
102
103
|
* Creates a new extension. If a file is provided, the data field is not required.
|
|
104
|
+
*
|
|
103
105
|
* @param body an object with the body content
|
|
104
106
|
* @throws UploadExtensionHttpError
|
|
105
107
|
*/
|
|
106
|
-
declare const uploadExtension: (body:
|
|
108
|
+
declare const uploadExtension: (body: {
|
|
109
|
+
/** The extension model. */
|
|
110
|
+
data?: Extension;
|
|
111
|
+
/** Extension archive. */
|
|
112
|
+
file?: BodyInit;
|
|
113
|
+
}, options?: ApiCallOptions) => Promise<UploadExtensionHttpResponse>;
|
|
107
114
|
type UploadExtensionHttpResponse = {
|
|
108
115
|
data: Extension;
|
|
109
116
|
headers: Headers;
|
|
@@ -116,6 +123,7 @@ type UploadExtensionHttpError = {
|
|
|
116
123
|
};
|
|
117
124
|
/**
|
|
118
125
|
* Deletes a specific extension.
|
|
126
|
+
*
|
|
119
127
|
* @param id Extension identifier or its qextFilename.
|
|
120
128
|
* @throws DeleteExtensionHttpError
|
|
121
129
|
*/
|
|
@@ -132,6 +140,7 @@ type DeleteExtensionHttpError = {
|
|
|
132
140
|
};
|
|
133
141
|
/**
|
|
134
142
|
* Returns a specific extension.
|
|
143
|
+
*
|
|
135
144
|
* @param id Extension identifier or its qextFilename.
|
|
136
145
|
* @throws GetExtensionHttpError
|
|
137
146
|
*/
|
|
@@ -148,11 +157,17 @@ type GetExtensionHttpError = {
|
|
|
148
157
|
};
|
|
149
158
|
/**
|
|
150
159
|
* Updates a specific extension with provided data. If a file is provided, the data field is not required.
|
|
160
|
+
*
|
|
151
161
|
* @param id Extension identifier or its qextFilename.
|
|
152
162
|
* @param body an object with the body content
|
|
153
163
|
* @throws PatchExtensionHttpError
|
|
154
164
|
*/
|
|
155
|
-
declare const patchExtension: (id: string, body:
|
|
165
|
+
declare const patchExtension: (id: string, body: {
|
|
166
|
+
/** The extension model. */
|
|
167
|
+
data?: Extension;
|
|
168
|
+
/** Extension archive. */
|
|
169
|
+
file?: BodyInit;
|
|
170
|
+
}, options?: ApiCallOptions) => Promise<PatchExtensionHttpResponse>;
|
|
156
171
|
type PatchExtensionHttpResponse = {
|
|
157
172
|
data: Extension;
|
|
158
173
|
headers: Headers;
|
|
@@ -165,6 +180,7 @@ type PatchExtensionHttpError = {
|
|
|
165
180
|
};
|
|
166
181
|
/**
|
|
167
182
|
* Downloads the extension as an archive.
|
|
183
|
+
*
|
|
168
184
|
* @param id Extension identifier or its qextFilename.
|
|
169
185
|
* @throws DownloadExtensionHttpError
|
|
170
186
|
*/
|
|
@@ -181,6 +197,7 @@ type DownloadExtensionHttpError = {
|
|
|
181
197
|
};
|
|
182
198
|
/**
|
|
183
199
|
* Downloads a file from the extension archive.
|
|
200
|
+
*
|
|
184
201
|
* @param id Extension identifier or its qextFilename.
|
|
185
202
|
* @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
|
|
186
203
|
* @throws DownloadFileFromExtensionHttpError
|
|
@@ -203,29 +220,34 @@ declare function clearCache(): void;
|
|
|
203
220
|
interface ExtensionsAPI {
|
|
204
221
|
/**
|
|
205
222
|
* Lists all extensions.
|
|
223
|
+
*
|
|
206
224
|
* @throws GetExtensionsHttpError
|
|
207
225
|
*/
|
|
208
226
|
getExtensions: typeof getExtensions;
|
|
209
227
|
/**
|
|
210
228
|
* Creates a new extension. If a file is provided, the data field is not required.
|
|
229
|
+
*
|
|
211
230
|
* @param body an object with the body content
|
|
212
231
|
* @throws UploadExtensionHttpError
|
|
213
232
|
*/
|
|
214
233
|
uploadExtension: typeof uploadExtension;
|
|
215
234
|
/**
|
|
216
235
|
* Deletes a specific extension.
|
|
236
|
+
*
|
|
217
237
|
* @param id Extension identifier or its qextFilename.
|
|
218
238
|
* @throws DeleteExtensionHttpError
|
|
219
239
|
*/
|
|
220
240
|
deleteExtension: typeof deleteExtension;
|
|
221
241
|
/**
|
|
222
242
|
* Returns a specific extension.
|
|
243
|
+
*
|
|
223
244
|
* @param id Extension identifier or its qextFilename.
|
|
224
245
|
* @throws GetExtensionHttpError
|
|
225
246
|
*/
|
|
226
247
|
getExtension: typeof getExtension;
|
|
227
248
|
/**
|
|
228
249
|
* Updates a specific extension with provided data. If a file is provided, the data field is not required.
|
|
250
|
+
*
|
|
229
251
|
* @param id Extension identifier or its qextFilename.
|
|
230
252
|
* @param body an object with the body content
|
|
231
253
|
* @throws PatchExtensionHttpError
|
|
@@ -233,12 +255,14 @@ interface ExtensionsAPI {
|
|
|
233
255
|
patchExtension: typeof patchExtension;
|
|
234
256
|
/**
|
|
235
257
|
* Downloads the extension as an archive.
|
|
258
|
+
*
|
|
236
259
|
* @param id Extension identifier or its qextFilename.
|
|
237
260
|
* @throws DownloadExtensionHttpError
|
|
238
261
|
*/
|
|
239
262
|
downloadExtension: typeof downloadExtension;
|
|
240
263
|
/**
|
|
241
264
|
* Downloads a file from the extension archive.
|
|
265
|
+
*
|
|
242
266
|
* @param id Extension identifier or its qextFilename.
|
|
243
267
|
* @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
|
|
244
268
|
* @throws DownloadFileFromExtensionHttpError
|
package/extensions.js
CHANGED
|
@@ -1,54 +1,57 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
|
|
5
|
+
require('./chunk-2STFUQKQ.js');
|
|
6
|
+
require('./chunk-P57PW2II.js');
|
|
6
7
|
|
|
7
8
|
// src/public/rest/extensions.ts
|
|
8
|
-
var getExtensions = async (options) =>
|
|
9
|
+
var getExtensions = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
|
|
9
10
|
method: "get",
|
|
10
11
|
pathTemplate: "/api/v1/extensions",
|
|
11
12
|
options
|
|
12
13
|
});
|
|
13
|
-
var uploadExtension = async (body, options) =>
|
|
14
|
+
var uploadExtension = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
|
|
14
15
|
method: "post",
|
|
15
16
|
pathTemplate: "/api/v1/extensions",
|
|
16
17
|
body,
|
|
18
|
+
contentType: "multipart/form-data",
|
|
17
19
|
options
|
|
18
20
|
});
|
|
19
|
-
var deleteExtension = async (id, options) =>
|
|
21
|
+
var deleteExtension = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
|
|
20
22
|
method: "delete",
|
|
21
23
|
pathTemplate: "/api/v1/extensions/{id}",
|
|
22
24
|
pathVariables: { id },
|
|
23
25
|
options
|
|
24
26
|
});
|
|
25
|
-
var getExtension = async (id, options) =>
|
|
27
|
+
var getExtension = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
|
|
26
28
|
method: "get",
|
|
27
29
|
pathTemplate: "/api/v1/extensions/{id}",
|
|
28
30
|
pathVariables: { id },
|
|
29
31
|
options
|
|
30
32
|
});
|
|
31
|
-
var patchExtension = async (id, body, options) =>
|
|
33
|
+
var patchExtension = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
|
|
32
34
|
method: "patch",
|
|
33
35
|
pathTemplate: "/api/v1/extensions/{id}",
|
|
34
36
|
pathVariables: { id },
|
|
35
37
|
body,
|
|
38
|
+
contentType: "multipart/form-data",
|
|
36
39
|
options
|
|
37
40
|
});
|
|
38
|
-
var downloadExtension = async (id, options) =>
|
|
41
|
+
var downloadExtension = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
|
|
39
42
|
method: "get",
|
|
40
43
|
pathTemplate: "/api/v1/extensions/{id}/file",
|
|
41
44
|
pathVariables: { id },
|
|
42
45
|
options
|
|
43
46
|
});
|
|
44
|
-
var downloadFileFromExtension = async (id, filepath, options) =>
|
|
47
|
+
var downloadFileFromExtension = async (id, filepath, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "extensions", {
|
|
45
48
|
method: "get",
|
|
46
49
|
pathTemplate: "/api/v1/extensions/{id}/file/{filepath}",
|
|
47
50
|
pathVariables: { id, filepath },
|
|
48
51
|
options
|
|
49
52
|
});
|
|
50
53
|
function clearCache() {
|
|
51
|
-
return
|
|
54
|
+
return _chunkJNGURO23js.clearApiCache.call(void 0, "extensions");
|
|
52
55
|
}
|
|
53
56
|
var extensionsExport = {
|
|
54
57
|
getExtensions,
|
package/extensions.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-TE7XMBT5.mjs";
|
|
5
|
+
import "./chunk-3SVRHJII.mjs";
|
|
6
|
+
import "./chunk-ZFXKCRJC.mjs";
|
|
6
7
|
|
|
7
8
|
// src/public/rest/extensions.ts
|
|
8
9
|
var getExtensions = async (options) => invokeFetch("extensions", {
|
|
@@ -14,6 +15,7 @@ var uploadExtension = async (body, options) => invokeFetch("extensions", {
|
|
|
14
15
|
method: "post",
|
|
15
16
|
pathTemplate: "/api/v1/extensions",
|
|
16
17
|
body,
|
|
18
|
+
contentType: "multipart/form-data",
|
|
17
19
|
options
|
|
18
20
|
});
|
|
19
21
|
var deleteExtension = async (id, options) => invokeFetch("extensions", {
|
|
@@ -33,6 +35,7 @@ var patchExtension = async (id, body, options) => invokeFetch("extensions", {
|
|
|
33
35
|
pathTemplate: "/api/v1/extensions/{id}",
|
|
34
36
|
pathVariables: { id },
|
|
35
37
|
body,
|
|
38
|
+
contentType: "multipart/form-data",
|
|
36
39
|
options
|
|
37
40
|
});
|
|
38
41
|
var downloadExtension = async (id, options) => invokeFetch("extensions", {
|