@qlik/api 0.0.9 → 0.0.11
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 +9 -0
- package/api-keys.d.ts +9 -0
- package/api-keys.js +10 -10
- package/api-keys.mjs +2 -2
- package/apps.d.mts +125 -1
- package/apps.d.ts +125 -1
- package/apps.js +46 -46
- package/apps.mjs +2 -2
- package/audits.d.mts +13 -0
- package/audits.d.ts +13 -0
- package/audits.js +9 -9
- package/audits.mjs +2 -2
- package/auth.js +3 -3
- package/auth.mjs +2 -2
- package/automations.d.mts +8 -0
- package/automations.d.ts +8 -0
- package/automations.js +21 -21
- package/automations.mjs +2 -2
- package/brands.d.mts +15 -0
- package/brands.d.ts +15 -0
- package/brands.js +15 -15
- package/brands.mjs +2 -2
- package/chunks/{XY3AC335.js → 277NFGPR.js} +4 -4
- package/chunks/{K4YCNLTC.mjs → 4E3AP3QF.mjs} +1 -1
- package/chunks/{AU62SBT4.mjs → 6QHMH76M.mjs} +1 -1
- package/chunks/{VLLTA4EY.mjs → E3HDOP72.mjs} +3 -3
- package/chunks/{PQ4OWSWX.js → FT7SZRB6.js} +45 -57
- package/chunks/{EHZ6H6TD.mjs → G36LDZ2O.mjs} +1 -1
- package/chunks/{POR3DZIU.mjs → J3UXBHGX.mjs} +1 -1
- package/chunks/{WQHUX4R2.mjs → K2WB4AWW.mjs} +1 -1
- package/chunks/{KDW6ZD2R.mjs → MHLTST5J.mjs} +43 -55
- package/chunks/{AGASWXYW.js → MQGSH6BQ.js} +167 -23
- package/chunks/{W2I5OQA5.js → NBNOAZT5.js} +3 -3
- package/chunks/{EL2GSPZZ.js → NZ6E5ZHO.js} +3 -3
- package/chunks/{YDB23Q56.mjs → QJNIUMNI.mjs} +164 -20
- package/chunks/{F7GJTDIU.js → QMOQD6PE.js} +8 -8
- package/chunks/SPJKF5VW.js +17 -0
- package/chunks/{L7DRRU3T.mjs → TPTPAX2U.mjs} +2 -2
- package/chunks/X3YDQVZ6.js +41 -0
- package/chunks/{AULTUQC4.js → XP7ALS4O.js} +2 -2
- package/collections.d.mts +29 -1
- package/collections.d.ts +29 -1
- package/collections.js +14 -14
- package/collections.mjs +2 -2
- package/csp-origins.js +9 -9
- package/csp-origins.mjs +2 -2
- package/data-assets.js +8 -8
- package/data-assets.mjs +2 -2
- package/data-connections.d.mts +12 -1
- package/data-connections.d.ts +12 -1
- package/data-connections.js +12 -12
- package/data-connections.mjs +2 -2
- package/data-credentials.d.mts +5 -0
- package/data-credentials.d.ts +5 -0
- package/data-credentials.js +7 -7
- package/data-credentials.mjs +2 -2
- package/data-files.d.mts +6 -0
- package/data-files.d.ts +6 -0
- package/data-files.js +15 -15
- package/data-files.mjs +2 -2
- package/extensions.d.mts +12 -0
- package/extensions.d.ts +12 -0
- package/extensions.js +10 -10
- package/extensions.mjs +2 -2
- package/glossaries.d.mts +50 -0
- package/glossaries.d.ts +50 -0
- package/glossaries.js +27 -27
- package/glossaries.mjs +2 -2
- package/groups.d.mts +39 -0
- package/groups.d.ts +39 -0
- package/groups.js +11 -11
- package/groups.mjs +2 -2
- package/identity-providers.d.mts +42 -0
- package/identity-providers.d.ts +42 -0
- package/identity-providers.js +11 -11
- package/identity-providers.mjs +2 -2
- package/index.js +8 -8
- package/index.mjs +4 -4
- package/items.d.mts +32 -1
- package/items.d.ts +32 -1
- package/items.js +11 -11
- package/items.mjs +2 -2
- package/licenses.d.mts +7 -4
- package/licenses.d.ts +7 -4
- package/licenses.js +12 -12
- package/licenses.mjs +2 -2
- package/package.json +1 -1
- package/qix.d.mts +1 -1
- package/qix.d.ts +1 -1
- package/qix.js +3 -3
- package/qix.mjs +2 -2
- package/quotas.d.mts +3 -0
- package/quotas.d.ts +3 -0
- package/quotas.js +5 -5
- package/quotas.mjs +2 -2
- package/reload-tasks.d.mts +6 -3
- package/reload-tasks.d.ts +6 -3
- package/reload-tasks.js +8 -8
- package/reload-tasks.mjs +2 -2
- package/reloads.d.mts +9 -0
- package/reloads.d.ts +9 -0
- package/reloads.js +7 -7
- package/reloads.mjs +2 -2
- package/roles.d.mts +10 -1
- package/roles.d.ts +10 -1
- package/roles.js +5 -5
- package/roles.mjs +2 -2
- package/spaces.d.mts +37 -5
- package/spaces.d.ts +37 -5
- package/spaces.js +15 -15
- package/spaces.mjs +2 -2
- package/temp-contents.d.mts +6 -0
- package/temp-contents.d.ts +6 -0
- package/temp-contents.js +6 -6
- package/temp-contents.mjs +2 -2
- package/tenants.d.mts +12 -0
- package/tenants.d.ts +12 -0
- package/tenants.js +9 -9
- package/tenants.mjs +2 -2
- package/themes.d.mts +9 -0
- package/themes.d.ts +9 -0
- package/themes.js +10 -10
- package/themes.mjs +2 -2
- package/transports.d.mts +9 -0
- package/transports.d.ts +9 -0
- package/transports.js +9 -9
- package/transports.mjs +2 -2
- package/users.d.mts +85 -14
- package/users.d.ts +85 -14
- package/users.js +13 -13
- package/users.mjs +2 -2
- package/web-integrations.d.mts +18 -0
- package/web-integrations.d.ts +18 -0
- package/web-integrations.js +8 -8
- package/web-integrations.mjs +2 -2
- package/web-notifications.d.mts +18 -0
- package/web-notifications.d.ts +18 -0
- package/web-notifications.js +9 -9
- package/web-notifications.mjs +2 -2
- package/webhooks.d.mts +3 -0
- package/webhooks.d.ts +3 -0
- package/webhooks.js +13 -13
- package/webhooks.mjs +2 -2
- package/chunks/37STYSYC.js +0 -41
- package/chunks/VC2LAFLZ.js +0 -17
package/automations.js
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunks/
|
|
4
|
+
var _NZ6E5ZHOjs = require('./chunks/NZ6E5ZHO.js');
|
|
5
|
+
require('./chunks/NBNOAZT5.js');
|
|
6
6
|
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/automations.ts
|
|
9
|
-
var getAutomations = async (query, options) =>
|
|
9
|
+
var getAutomations = async (query, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/automations",
|
|
12
12
|
query,
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
var createAutomation = async (body, options) =>
|
|
15
|
+
var createAutomation = async (body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
16
16
|
method: "post",
|
|
17
17
|
pathTemplate: "/api/v1/automations",
|
|
18
18
|
body,
|
|
19
19
|
contentType: "application/json",
|
|
20
20
|
options
|
|
21
21
|
});
|
|
22
|
-
var getAutomationsSettings = async (options) =>
|
|
22
|
+
var getAutomationsSettings = async (options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
23
23
|
method: "get",
|
|
24
24
|
pathTemplate: "/api/v1/automations/settings",
|
|
25
25
|
options
|
|
26
26
|
});
|
|
27
|
-
var updateAutomationsSettings = async (body, options) =>
|
|
27
|
+
var updateAutomationsSettings = async (body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
28
28
|
method: "put",
|
|
29
29
|
pathTemplate: "/api/v1/automations/settings",
|
|
30
30
|
body,
|
|
31
31
|
contentType: "application/json",
|
|
32
32
|
options
|
|
33
33
|
});
|
|
34
|
-
var getAutomationsUsageMetrics = async (query, options) =>
|
|
34
|
+
var getAutomationsUsageMetrics = async (query, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
35
35
|
method: "get",
|
|
36
36
|
pathTemplate: "/api/v1/automations/usage",
|
|
37
37
|
query,
|
|
38
38
|
options
|
|
39
39
|
});
|
|
40
|
-
var deleteAutomation = async (id, options) =>
|
|
40
|
+
var deleteAutomation = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
41
41
|
method: "delete",
|
|
42
42
|
pathTemplate: "/api/v1/automations/{id}",
|
|
43
43
|
pathVariables: { id },
|
|
44
44
|
options
|
|
45
45
|
});
|
|
46
|
-
var getAutomation = async (id, options) =>
|
|
46
|
+
var getAutomation = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
47
47
|
method: "get",
|
|
48
48
|
pathTemplate: "/api/v1/automations/{id}",
|
|
49
49
|
pathVariables: { id },
|
|
50
50
|
options
|
|
51
51
|
});
|
|
52
|
-
var updateAutomation = async (id, body, options) =>
|
|
52
|
+
var updateAutomation = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
53
53
|
method: "put",
|
|
54
54
|
pathTemplate: "/api/v1/automations/{id}",
|
|
55
55
|
pathVariables: { id },
|
|
@@ -57,7 +57,7 @@ var updateAutomation = async (id, body, options) => _EL2GSPZZjs.invokeFetch.call
|
|
|
57
57
|
contentType: "application/json",
|
|
58
58
|
options
|
|
59
59
|
});
|
|
60
|
-
var copyAutomation = async (id, body, options) =>
|
|
60
|
+
var copyAutomation = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
61
61
|
method: "post",
|
|
62
62
|
pathTemplate: "/api/v1/automations/{id}/actions/copy",
|
|
63
63
|
pathVariables: { id },
|
|
@@ -65,19 +65,19 @@ var copyAutomation = async (id, body, options) => _EL2GSPZZjs.invokeFetch.call(v
|
|
|
65
65
|
contentType: "application/json",
|
|
66
66
|
options
|
|
67
67
|
});
|
|
68
|
-
var disableAutomation = async (id, options) =>
|
|
68
|
+
var disableAutomation = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
69
69
|
method: "post",
|
|
70
70
|
pathTemplate: "/api/v1/automations/{id}/actions/disable",
|
|
71
71
|
pathVariables: { id },
|
|
72
72
|
options
|
|
73
73
|
});
|
|
74
|
-
var enableAutomation = async (id, options) =>
|
|
74
|
+
var enableAutomation = async (id, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
75
75
|
method: "post",
|
|
76
76
|
pathTemplate: "/api/v1/automations/{id}/actions/enable",
|
|
77
77
|
pathVariables: { id },
|
|
78
78
|
options
|
|
79
79
|
});
|
|
80
|
-
var moveAutomation = async (id, body, options) =>
|
|
80
|
+
var moveAutomation = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
81
81
|
method: "post",
|
|
82
82
|
pathTemplate: "/api/v1/automations/{id}/actions/move",
|
|
83
83
|
pathVariables: { id },
|
|
@@ -85,14 +85,14 @@ var moveAutomation = async (id, body, options) => _EL2GSPZZjs.invokeFetch.call(v
|
|
|
85
85
|
contentType: "application/json",
|
|
86
86
|
options
|
|
87
87
|
});
|
|
88
|
-
var getAutomationRuns = async (id, query, options) =>
|
|
88
|
+
var getAutomationRuns = async (id, query, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
89
89
|
method: "get",
|
|
90
90
|
pathTemplate: "/api/v1/automations/{id}/runs",
|
|
91
91
|
pathVariables: { id },
|
|
92
92
|
query,
|
|
93
93
|
options
|
|
94
94
|
});
|
|
95
|
-
var queueAutomationRun = async (id, body, options) =>
|
|
95
|
+
var queueAutomationRun = async (id, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
96
96
|
method: "post",
|
|
97
97
|
pathTemplate: "/api/v1/automations/{id}/runs",
|
|
98
98
|
pathVariables: { id },
|
|
@@ -100,32 +100,32 @@ var queueAutomationRun = async (id, body, options) => _EL2GSPZZjs.invokeFetch.ca
|
|
|
100
100
|
contentType: "application/json",
|
|
101
101
|
options
|
|
102
102
|
});
|
|
103
|
-
var getAutomationRun = async (id, runId, options) =>
|
|
103
|
+
var getAutomationRun = async (id, runId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
104
104
|
method: "get",
|
|
105
105
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}",
|
|
106
106
|
pathVariables: { id, runId },
|
|
107
107
|
options
|
|
108
108
|
});
|
|
109
|
-
var getAutomationRunDetails = async (id, runId, options) =>
|
|
109
|
+
var getAutomationRunDetails = async (id, runId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
110
110
|
method: "post",
|
|
111
111
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/export",
|
|
112
112
|
pathVariables: { id, runId },
|
|
113
113
|
options
|
|
114
114
|
});
|
|
115
|
-
var retryAutomationRun = async (id, runId, options) =>
|
|
115
|
+
var retryAutomationRun = async (id, runId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
116
116
|
method: "post",
|
|
117
117
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/retry",
|
|
118
118
|
pathVariables: { id, runId },
|
|
119
119
|
options
|
|
120
120
|
});
|
|
121
|
-
var stopAutomationRun = async (id, runId, options) =>
|
|
121
|
+
var stopAutomationRun = async (id, runId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "automations", {
|
|
122
122
|
method: "post",
|
|
123
123
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/stop",
|
|
124
124
|
pathVariables: { id, runId },
|
|
125
125
|
options
|
|
126
126
|
});
|
|
127
127
|
function clearCache() {
|
|
128
|
-
return
|
|
128
|
+
return _NZ6E5ZHOjs.clearApiCache.call(void 0, "automations");
|
|
129
129
|
}
|
|
130
130
|
var automationsExport = {
|
|
131
131
|
getAutomations,
|
package/automations.mjs
CHANGED
package/brands.d.mts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-5iFvFJvX.mjs';
|
|
2
2
|
import './auth-types-nnUcWhuU.mjs';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A brand is a collection of assets for applying custom branding. Only a single brand can be active in a tenant.
|
|
6
|
+
*/
|
|
4
7
|
type Brand = {
|
|
5
8
|
readonly active?: boolean;
|
|
6
9
|
/** The UTC timestamp when the brand was created. */
|
|
@@ -17,12 +20,18 @@ type Brand = {
|
|
|
17
20
|
/** ID of a user that last updated the brand. */
|
|
18
21
|
readonly updatedBy?: string;
|
|
19
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Represents one of the assets used as part of the brand. These include logos, favicons, and some styles.
|
|
25
|
+
*/
|
|
20
26
|
type BrandFile = {
|
|
21
27
|
contentType?: string;
|
|
22
28
|
eTag?: string;
|
|
23
29
|
id?: "logo" | "favIcon" | "styles";
|
|
24
30
|
path?: string;
|
|
25
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
34
|
+
*/
|
|
26
35
|
type BrandPatch = {
|
|
27
36
|
/** The operation to be performed. */
|
|
28
37
|
op: "add" | "remove" | "replace";
|
|
@@ -31,6 +40,9 @@ type BrandPatch = {
|
|
|
31
40
|
/** The value to be used for this operation. */
|
|
32
41
|
value?: string;
|
|
33
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* A collection of brands.
|
|
45
|
+
*/
|
|
34
46
|
type BrandsList = {
|
|
35
47
|
data?: Brand[];
|
|
36
48
|
links?: {
|
|
@@ -83,6 +95,9 @@ type Link = {
|
|
|
83
95
|
/** URL of a resource request. */
|
|
84
96
|
href: string;
|
|
85
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* Empty object inferring lack of active branding.
|
|
100
|
+
*/
|
|
86
101
|
type NoActiveBrand = unknown;
|
|
87
102
|
/**
|
|
88
103
|
* Lists all brand entries for a tenant
|
package/brands.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { A as ApiCallOptions, D as DownloadableBlob } from './global.types-TzVhFPid.js';
|
|
2
2
|
import './auth-types-nnUcWhuU.js';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* A brand is a collection of assets for applying custom branding. Only a single brand can be active in a tenant.
|
|
6
|
+
*/
|
|
4
7
|
type Brand = {
|
|
5
8
|
readonly active?: boolean;
|
|
6
9
|
/** The UTC timestamp when the brand was created. */
|
|
@@ -17,12 +20,18 @@ type Brand = {
|
|
|
17
20
|
/** ID of a user that last updated the brand. */
|
|
18
21
|
readonly updatedBy?: string;
|
|
19
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* Represents one of the assets used as part of the brand. These include logos, favicons, and some styles.
|
|
25
|
+
*/
|
|
20
26
|
type BrandFile = {
|
|
21
27
|
contentType?: string;
|
|
22
28
|
eTag?: string;
|
|
23
29
|
id?: "logo" | "favIcon" | "styles";
|
|
24
30
|
path?: string;
|
|
25
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* A JSON Patch document as defined in https://datatracker.ietf.org/doc/html/rfc6902.
|
|
34
|
+
*/
|
|
26
35
|
type BrandPatch = {
|
|
27
36
|
/** The operation to be performed. */
|
|
28
37
|
op: "add" | "remove" | "replace";
|
|
@@ -31,6 +40,9 @@ type BrandPatch = {
|
|
|
31
40
|
/** The value to be used for this operation. */
|
|
32
41
|
value?: string;
|
|
33
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* A collection of brands.
|
|
45
|
+
*/
|
|
34
46
|
type BrandsList = {
|
|
35
47
|
data?: Brand[];
|
|
36
48
|
links?: {
|
|
@@ -83,6 +95,9 @@ type Link = {
|
|
|
83
95
|
/** URL of a resource request. */
|
|
84
96
|
href: string;
|
|
85
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* Empty object inferring lack of active branding.
|
|
100
|
+
*/
|
|
86
101
|
type NoActiveBrand = unknown;
|
|
87
102
|
/**
|
|
88
103
|
* Lists all brand entries for a tenant
|
package/brands.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunks/
|
|
4
|
+
var _NZ6E5ZHOjs = require('./chunks/NZ6E5ZHO.js');
|
|
5
|
+
require('./chunks/NBNOAZT5.js');
|
|
6
6
|
require('./chunks/4HB3TAEO.js');
|
|
7
7
|
|
|
8
8
|
// src/public/rest/brands.ts
|
|
9
|
-
var getBrands = async (query, options) =>
|
|
9
|
+
var getBrands = async (query, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
10
10
|
method: "get",
|
|
11
11
|
pathTemplate: "/api/v1/brands",
|
|
12
12
|
query,
|
|
13
13
|
options
|
|
14
14
|
});
|
|
15
|
-
var createBrand = async (body, options) =>
|
|
15
|
+
var createBrand = async (body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
16
16
|
method: "post",
|
|
17
17
|
pathTemplate: "/api/v1/brands",
|
|
18
18
|
body,
|
|
19
19
|
contentType: "multipart/form-data",
|
|
20
20
|
options
|
|
21
21
|
});
|
|
22
|
-
var getActiveBrand = async (options) =>
|
|
22
|
+
var getActiveBrand = async (options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
23
23
|
method: "get",
|
|
24
24
|
pathTemplate: "/api/v1/brands/active",
|
|
25
25
|
options
|
|
26
26
|
});
|
|
27
|
-
var deleteBrand = async (brandId, options) =>
|
|
27
|
+
var deleteBrand = async (brandId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
28
28
|
method: "delete",
|
|
29
29
|
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
30
30
|
pathVariables: { "brand-id": brandId },
|
|
31
31
|
options
|
|
32
32
|
});
|
|
33
|
-
var getBrand = async (brandId, options) =>
|
|
33
|
+
var getBrand = async (brandId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
34
34
|
method: "get",
|
|
35
35
|
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
36
36
|
pathVariables: { "brand-id": brandId },
|
|
37
37
|
options
|
|
38
38
|
});
|
|
39
|
-
var patchBrand = async (brandId, body, options) =>
|
|
39
|
+
var patchBrand = async (brandId, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
40
40
|
method: "patch",
|
|
41
41
|
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
42
42
|
pathVariables: { "brand-id": brandId },
|
|
@@ -44,33 +44,33 @@ var patchBrand = async (brandId, body, options) => _EL2GSPZZjs.invokeFetch.call(
|
|
|
44
44
|
contentType: "application/json",
|
|
45
45
|
options
|
|
46
46
|
});
|
|
47
|
-
var activateBrand = async (brandId, body, options) =>
|
|
47
|
+
var activateBrand = async (brandId, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
48
48
|
method: "post",
|
|
49
49
|
pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
|
|
50
50
|
pathVariables: { "brand-id": brandId },
|
|
51
51
|
body,
|
|
52
52
|
options
|
|
53
53
|
});
|
|
54
|
-
var deactivateBrand = async (brandId, body, options) =>
|
|
54
|
+
var deactivateBrand = async (brandId, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
55
55
|
method: "post",
|
|
56
56
|
pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
|
|
57
57
|
pathVariables: { "brand-id": brandId },
|
|
58
58
|
body,
|
|
59
59
|
options
|
|
60
60
|
});
|
|
61
|
-
var deleteBrandFile = async (brandId, brandFileId, options) =>
|
|
61
|
+
var deleteBrandFile = async (brandId, brandFileId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
62
62
|
method: "delete",
|
|
63
63
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
64
64
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
65
65
|
options
|
|
66
66
|
});
|
|
67
|
-
var getBrandFile = async (brandId, brandFileId, options) =>
|
|
67
|
+
var getBrandFile = async (brandId, brandFileId, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
68
68
|
method: "get",
|
|
69
69
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
70
70
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
71
71
|
options
|
|
72
72
|
});
|
|
73
|
-
var createBrandFile = async (brandId, brandFileId, body, options) =>
|
|
73
|
+
var createBrandFile = async (brandId, brandFileId, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
74
74
|
method: "post",
|
|
75
75
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
76
76
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
@@ -78,7 +78,7 @@ var createBrandFile = async (brandId, brandFileId, body, options) => _EL2GSPZZjs
|
|
|
78
78
|
contentType: "multipart/form-data",
|
|
79
79
|
options
|
|
80
80
|
});
|
|
81
|
-
var updateBrandFile = async (brandId, brandFileId, body, options) =>
|
|
81
|
+
var updateBrandFile = async (brandId, brandFileId, body, options) => _NZ6E5ZHOjs.invokeFetch.call(void 0, "brands", {
|
|
82
82
|
method: "put",
|
|
83
83
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
84
84
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
@@ -87,7 +87,7 @@ var updateBrandFile = async (brandId, brandFileId, body, options) => _EL2GSPZZjs
|
|
|
87
87
|
options
|
|
88
88
|
});
|
|
89
89
|
function clearCache() {
|
|
90
|
-
return
|
|
90
|
+
return _NZ6E5ZHOjs.clearApiCache.call(void 0, "brands");
|
|
91
91
|
}
|
|
92
92
|
var brandsExport = {
|
|
93
93
|
getBrands,
|
package/brands.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _NBNOAZT5js = require('./NBNOAZT5.js');
|
|
4
4
|
|
|
5
5
|
// src/public/auth.ts
|
|
6
6
|
function registerAuthModule(name, authModule) {
|
|
7
|
-
void
|
|
7
|
+
void _NBNOAZT5js.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.registerAuthModule(name, authModule));
|
|
8
8
|
}
|
|
9
9
|
function logout() {
|
|
10
|
-
void
|
|
10
|
+
void _NBNOAZT5js.getAuthRuntimeModule.call(void 0, ).then((impl) => impl.logout());
|
|
11
11
|
}
|
|
12
12
|
function setDefaultHostConfig(hostConfig) {
|
|
13
|
-
void
|
|
13
|
+
void _NBNOAZT5js.getAuthRuntimeModule.call(void 0, hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
|
|
14
14
|
}
|
|
15
15
|
var auth_default = {
|
|
16
16
|
registerAuthModule,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// src/public/public-runtime-modules.ts
|
|
2
2
|
function getAuthRuntimeModule(hostConfig) {
|
|
3
3
|
const isNode = !!globalThis.process?.argv;
|
|
4
|
-
return isNode ? import("./
|
|
4
|
+
return isNode ? import("./K2WB4AWW.mjs") : import("./H32EGPZN.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
|
|
5
5
|
}
|
|
6
6
|
async function getQixRuntimeModule(hostConfig) {
|
|
7
7
|
await getAuthRuntimeModule(hostConfig);
|
|
8
8
|
const isNode = !!globalThis.process?.argv;
|
|
9
|
-
return isNode ? import("./
|
|
9
|
+
return isNode ? import("./TPTPAX2U.mjs") : import("./H32EGPZN.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
|
|
10
10
|
}
|
|
11
11
|
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
12
12
|
await getAuthRuntimeModule(hostConfig);
|
|
13
13
|
const isNode = !!globalThis.process?.argv;
|
|
14
|
-
return isNode ? import("./
|
|
14
|
+
return isNode ? import("./6QHMH76M.mjs") : import("./H32EGPZN.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export {
|
|
@@ -495,6 +495,46 @@ function isBrowser() {
|
|
|
495
495
|
function isNode() {
|
|
496
496
|
return typeof process === "object" && typeof _4HB3TAEOjs.__require === "function";
|
|
497
497
|
}
|
|
498
|
+
function generateRandomString(targetLength) {
|
|
499
|
+
const byteArrayLength = Math.ceil(targetLength * 3 / 4);
|
|
500
|
+
const array = new Uint8Array(byteArrayLength);
|
|
501
|
+
globalThis.crypto.getRandomValues(array);
|
|
502
|
+
const base64UrlString = toBase64Url(array);
|
|
503
|
+
return base64UrlString.substring(0, targetLength);
|
|
504
|
+
}
|
|
505
|
+
function toBase64Url(uint8Array) {
|
|
506
|
+
const hashArray = Array.from(uint8Array);
|
|
507
|
+
const regularBase64 = byteArrayToBase64(hashArray);
|
|
508
|
+
return regularBase64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
509
|
+
}
|
|
510
|
+
function byteArrayToBase64(hashArray) {
|
|
511
|
+
let result2 = "";
|
|
512
|
+
if (isBrowser()) {
|
|
513
|
+
const byteArrayToString = String.fromCharCode.apply(null, hashArray);
|
|
514
|
+
result2 = btoa(byteArrayToString);
|
|
515
|
+
} else if (isNode()) {
|
|
516
|
+
result2 = Buffer.from(hashArray).toString("base64");
|
|
517
|
+
} else {
|
|
518
|
+
throw new Error("Environment not supported for oauth2 authentication");
|
|
519
|
+
}
|
|
520
|
+
return result2;
|
|
521
|
+
}
|
|
522
|
+
async function sha256(message) {
|
|
523
|
+
const msgBuffer = new TextEncoder().encode(message);
|
|
524
|
+
const hashBuffer = await globalThis.crypto.subtle.digest("SHA-256", msgBuffer);
|
|
525
|
+
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
526
|
+
const hashBase64 = byteArrayToBase64(hashArray);
|
|
527
|
+
return hashBase64.replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replace(/=+$/, "");
|
|
528
|
+
}
|
|
529
|
+
async function polyfillMissingGlobals() {
|
|
530
|
+
if (isNode() && !globalThis.crypto) {
|
|
531
|
+
globalThis.crypto = await Promise.resolve().then(() => _interopRequireWildcard(require(
|
|
532
|
+
/* webpackIgnore: true */
|
|
533
|
+
"crypto"
|
|
534
|
+
)));
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
await polyfillMissingGlobals();
|
|
498
538
|
|
|
499
539
|
// src/auth/internal/default-auth-modules/oauth/storage-helpers.ts
|
|
500
540
|
var storagePrefix = "qlik-qmfe-api";
|
|
@@ -619,42 +659,11 @@ function handleOAuthCallback() {
|
|
|
619
659
|
}
|
|
620
660
|
|
|
621
661
|
// src/auth/internal/default-auth-modules/oauth/oauth-utils.ts
|
|
622
|
-
function generateRandomString(targetLength) {
|
|
623
|
-
const byteArrayLength = Math.ceil(targetLength * 3 / 4);
|
|
624
|
-
const array = new Uint8Array(byteArrayLength);
|
|
625
|
-
globalThis.crypto.getRandomValues(array);
|
|
626
|
-
const base64UrlString = toBase64Url(array);
|
|
627
|
-
return base64UrlString.substring(0, targetLength);
|
|
628
|
-
}
|
|
629
|
-
function toBase64Url(uint8Array) {
|
|
630
|
-
const hashArray = Array.from(uint8Array);
|
|
631
|
-
const regularBase64 = byteArrayToBase64(hashArray);
|
|
632
|
-
return regularBase64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
|
|
633
|
-
}
|
|
634
|
-
function byteArrayToBase64(hashArray) {
|
|
635
|
-
let result2 = "";
|
|
636
|
-
if (isBrowser()) {
|
|
637
|
-
const byteArrayToString = String.fromCharCode.apply(null, hashArray);
|
|
638
|
-
result2 = btoa(byteArrayToString);
|
|
639
|
-
} else if (isNode()) {
|
|
640
|
-
result2 = Buffer.from(hashArray).toString("base64");
|
|
641
|
-
} else {
|
|
642
|
-
throw new Error("Environment not supported for oauth2 authentication");
|
|
643
|
-
}
|
|
644
|
-
return result2;
|
|
645
|
-
}
|
|
646
662
|
function handlePossibleErrors(data) {
|
|
647
663
|
if (data.errors) {
|
|
648
664
|
throw new AuthorizationError(data.errors);
|
|
649
665
|
}
|
|
650
666
|
}
|
|
651
|
-
async function sha256(message) {
|
|
652
|
-
const msgBuffer = new TextEncoder().encode(message);
|
|
653
|
-
const hashBuffer = await globalThis.crypto.subtle.digest("SHA-256", msgBuffer);
|
|
654
|
-
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
|
655
|
-
const hashBase64 = byteArrayToBase64(hashArray);
|
|
656
|
-
return hashBase64.replaceAll(/\+/g, "-").replaceAll(/\//g, "_").replace(/=+$/, "");
|
|
657
|
-
}
|
|
658
667
|
function toQueryString(queryParams) {
|
|
659
668
|
const queryParamsKeys = Object.keys(queryParams);
|
|
660
669
|
queryParamsKeys.sort();
|
|
@@ -935,7 +944,7 @@ var oauth_default = {
|
|
|
935
944
|
handleAuthenticationError: handleAuthenticationError5,
|
|
936
945
|
validateHostConfig: (hostConfig) => internalValidateHostConfig(hostConfig, {
|
|
937
946
|
requiredProps: ["clientId"],
|
|
938
|
-
optionalProps: ["clientSecret", "redirectUri", "accessTokenStorage"]
|
|
947
|
+
optionalProps: ["clientSecret", "redirectUri", "accessTokenStorage", "scope"]
|
|
939
948
|
})
|
|
940
949
|
};
|
|
941
950
|
|
|
@@ -1216,29 +1225,7 @@ async function performActualHttpFetch(method, completeUrl, unencodedBody, conten
|
|
|
1216
1225
|
if (_optionalChain([interceptors, 'optionalAccess', _26 => _26.request, 'access', _27 => _27.hasInterceptors, 'call', _28 => _28()])) {
|
|
1217
1226
|
request = await interceptors.request.apply(completeUrl, request);
|
|
1218
1227
|
}
|
|
1219
|
-
|
|
1220
|
-
const location = fetchResponse.headers.get("location");
|
|
1221
|
-
if (location && request.redirect === "follow" && fetchResponse.status === 201) {
|
|
1222
|
-
const followRequest = {
|
|
1223
|
-
method: "get",
|
|
1224
|
-
credentials,
|
|
1225
|
-
mode: request.mode,
|
|
1226
|
-
headers,
|
|
1227
|
-
redirect: request.redirect
|
|
1228
|
-
};
|
|
1229
|
-
let followUrl;
|
|
1230
|
-
try {
|
|
1231
|
-
followUrl = new URL(location).toString();
|
|
1232
|
-
} catch (e3) {
|
|
1233
|
-
try {
|
|
1234
|
-
const { origin } = new URL(completeUrl);
|
|
1235
|
-
followUrl = `${origin}/${location}`;
|
|
1236
|
-
} catch (e4) {
|
|
1237
|
-
followUrl = location;
|
|
1238
|
-
}
|
|
1239
|
-
}
|
|
1240
|
-
fetchResponse = await fetchAndTransformExceptions(followUrl, followRequest);
|
|
1241
|
-
}
|
|
1228
|
+
const fetchResponse = await fetchAndTransformExceptions(completeUrl, request);
|
|
1242
1229
|
if (fetchTimeoutId) {
|
|
1243
1230
|
clearTimeout(fetchTimeoutId);
|
|
1244
1231
|
}
|
|
@@ -1593,7 +1580,7 @@ async function parseFetchResponse(fetchResponse, url) {
|
|
|
1593
1580
|
try {
|
|
1594
1581
|
resultData = await fetchResponse.text();
|
|
1595
1582
|
resultData = JSON.parse(resultData);
|
|
1596
|
-
} catch (
|
|
1583
|
+
} catch (e3) {
|
|
1597
1584
|
}
|
|
1598
1585
|
break;
|
|
1599
1586
|
}
|
|
@@ -1647,4 +1634,5 @@ var invoke_fetch_default = invokeFetchExp;
|
|
|
1647
1634
|
|
|
1648
1635
|
|
|
1649
1636
|
|
|
1650
|
-
|
|
1637
|
+
|
|
1638
|
+
exports.getPlatform = getPlatform; exports.InvalidHostConfigError = InvalidHostConfigError; exports.UnexpectedAuthTypeError = UnexpectedAuthTypeError; exports.InvalidAuthTypeError = InvalidAuthTypeError; exports.AuthorizationError = AuthorizationError; exports.isHostCrossOrigin = isHostCrossOrigin; exports.isWindows = isWindows; exports.toValidLocationUrl = toValidLocationUrl; exports.toValidEnigmaLocationUrl = toValidEnigmaLocationUrl; exports.toValidWebsocketLocationUrl = toValidWebsocketLocationUrl; exports.getWebSocketAuthParams = getWebSocketAuthParams; exports.getWebResourceAuthParams = getWebResourceAuthParams; exports.handleAuthenticationError = handleAuthenticationError; exports.getRestCallAuthParams = getRestCallAuthParams; exports.registerAuthModule = registerAuthModule2; exports.setDefaultHostConfig = setDefaultHostConfig2; exports.checkForCrossDomainRequest = checkForCrossDomainRequest; exports.logout = logout; exports.generateRandomString = generateRandomString; exports.InvokeFetchError = InvokeFetchError; exports.EncodingError = EncodingError; exports.invokeFetch = invokeFetch; exports.clearApiCache = clearApiCache; exports.parseFetchResponse = parseFetchResponse; exports.invoke_fetch_default = invoke_fetch_default; exports.auth_default = auth_default;
|