@qlik/api 0.0.1 → 0.0.2
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/.github/CODEOWNERS +2 -0
- package/.github/workflows/release.yaml +35 -0
- package/README.md +1 -3
- package/api-keys.d.mts +13 -13
- package/api-keys.d.ts +13 -13
- package/api-keys.js +13 -13
- package/api-keys.mjs +8 -8
- package/apps.d.mts +104 -19
- package/apps.d.ts +104 -19
- package/apps.js +53 -44
- package/apps.mjs +20 -11
- package/audits.d.mts +8 -8
- package/audits.d.ts +8 -8
- package/audits.js +11 -11
- package/audits.mjs +6 -6
- package/auth-OU7OTB7Y.js +38 -0
- package/auth-RTFXVSSK.mjs +38 -0
- package/auth.js +3 -3
- package/auth.mjs +2 -2
- package/automations.d.mts +20 -20
- package/automations.d.ts +20 -20
- package/automations.js +25 -25
- package/automations.mjs +11 -11
- package/brands.js +15 -15
- package/brands.mjs +2 -2
- package/chunk-6JERR27K.js +17 -0
- package/chunk-7REWEWCX.mjs +21 -0
- package/chunk-E42WUFCK.mjs +57 -0
- package/chunk-H7SAZYEE.js +21 -0
- package/chunk-KMMWJZHM.mjs +25 -0
- package/chunk-M7F4JFOB.js +57 -0
- package/chunk-NALKLKZS.mjs +1342 -0
- package/chunk-QN23TPIE.js +25 -0
- package/chunk-RMKP2BDX.js +1342 -0
- package/chunk-W4J34XGA.mjs +17 -0
- package/collections.d.mts +1 -1
- package/collections.d.ts +1 -1
- package/collections.js +13 -13
- 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 +2 -0
- package/data-connections.d.ts +2 -0
- package/data-connections.js +12 -12
- package/data-connections.mjs +2 -2
- package/data-credentials.d.mts +2 -0
- package/data-credentials.d.ts +2 -0
- package/data-credentials.js +7 -7
- package/data-credentials.mjs +2 -2
- package/data-files.d.mts +16 -16
- package/data-files.d.ts +16 -16
- package/data-files.js +18 -18
- package/data-files.mjs +8 -8
- package/enigma-session-HGXKZJVO.mjs +10200 -0
- package/enigma-session-VPPJMBEM.js +10200 -0
- package/esm-M5ZBFTVD.mjs +65 -0
- package/esm-RX7B2TUN.js +65 -0
- package/extensions.js +10 -10
- package/extensions.mjs +2 -2
- package/glossaries.js +27 -27
- package/glossaries.mjs +2 -2
- package/groups.d.mts +13 -13
- package/groups.d.ts +13 -13
- package/groups.js +14 -14
- package/groups.mjs +8 -8
- package/identity-providers.d.mts +7 -7
- package/identity-providers.d.ts +7 -7
- package/identity-providers.js +13 -13
- package/identity-providers.mjs +5 -5
- package/index.js +27 -23
- package/index.mjs +23 -19
- package/invoke-fetch-7PKPQ3FD.js +14 -0
- package/invoke-fetch-IMO4AMA3.mjs +14 -0
- package/items.d.mts +19 -16
- package/items.d.ts +19 -16
- package/items.js +14 -14
- package/items.mjs +8 -8
- package/licenses.d.mts +2 -0
- package/licenses.d.ts +2 -0
- package/licenses.js +12 -12
- package/licenses.mjs +2 -2
- package/package.json +6 -17
- package/qix-57WD2ZE6.mjs +573 -0
- package/qix-K22VHZRH.js +573 -0
- package/qix.d.mts +1066 -1017
- package/qix.d.ts +1066 -1017
- package/qix.js +3 -3
- package/qix.mjs +2 -2
- package/quotas.js +5 -5
- package/quotas.mjs +2 -2
- package/reload-tasks.d.mts +2 -0
- package/reload-tasks.d.ts +2 -0
- package/reload-tasks.js +8 -8
- package/reload-tasks.mjs +2 -2
- package/reloads.d.mts +4 -2
- package/reloads.d.ts +4 -2
- package/reloads.js +7 -7
- package/reloads.mjs +2 -2
- package/roles.js +5 -5
- package/roles.mjs +2 -2
- package/spaces.d.mts +9 -26
- package/spaces.d.ts +9 -26
- package/spaces.js +15 -15
- package/spaces.mjs +2 -2
- package/temp-contents.d.mts +1 -67
- package/temp-contents.d.ts +1 -67
- package/temp-contents.js +8 -29
- package/temp-contents.mjs +3 -24
- package/tenants.js +9 -9
- package/tenants.mjs +2 -2
- package/themes.js +10 -10
- package/themes.mjs +2 -2
- package/transports.js +9 -9
- package/transports.mjs +2 -2
- package/users.js +13 -13
- package/users.mjs +2 -2
- package/web-integrations.js +8 -8
- package/web-integrations.mjs +2 -2
- package/web-notifications.js +9 -9
- package/web-notifications.mjs +2 -2
- package/webhooks.d.mts +2 -2
- package/webhooks.d.ts +2 -2
- package/webhooks.js +13 -13
- package/webhooks.mjs +2 -2
package/automations.js
CHANGED
|
@@ -1,131 +1,131 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
|
|
5
|
+
require('./chunk-H7SAZYEE.js');
|
|
6
6
|
|
|
7
7
|
// src/public/rest/automations.ts
|
|
8
|
-
var getAutomations = async (query, options) =>
|
|
8
|
+
var getAutomations = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
9
9
|
method: "get",
|
|
10
10
|
pathTemplate: "/api/v1/automations",
|
|
11
11
|
query,
|
|
12
12
|
options
|
|
13
13
|
});
|
|
14
|
-
var createAutomation = async (body, options) =>
|
|
14
|
+
var createAutomation = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
15
15
|
method: "post",
|
|
16
16
|
pathTemplate: "/api/v1/automations",
|
|
17
17
|
body,
|
|
18
18
|
options
|
|
19
19
|
});
|
|
20
|
-
var
|
|
20
|
+
var getAutomationsSettings = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
21
21
|
method: "get",
|
|
22
22
|
pathTemplate: "/api/v1/automations/settings",
|
|
23
23
|
options
|
|
24
24
|
});
|
|
25
|
-
var
|
|
25
|
+
var updateAutomationsSettings = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
26
26
|
method: "put",
|
|
27
27
|
pathTemplate: "/api/v1/automations/settings",
|
|
28
28
|
body,
|
|
29
29
|
options
|
|
30
30
|
});
|
|
31
|
-
var
|
|
31
|
+
var getAutomationsUsageMetrics = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
32
32
|
method: "get",
|
|
33
33
|
pathTemplate: "/api/v1/automations/usage",
|
|
34
34
|
query,
|
|
35
35
|
options
|
|
36
36
|
});
|
|
37
|
-
var deleteAutomation = async (id, options) =>
|
|
37
|
+
var deleteAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
38
38
|
method: "delete",
|
|
39
39
|
pathTemplate: "/api/v1/automations/{id}",
|
|
40
40
|
pathVariables: { id },
|
|
41
41
|
options
|
|
42
42
|
});
|
|
43
|
-
var getAutomation = async (id, options) =>
|
|
43
|
+
var getAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
44
44
|
method: "get",
|
|
45
45
|
pathTemplate: "/api/v1/automations/{id}",
|
|
46
46
|
pathVariables: { id },
|
|
47
47
|
options
|
|
48
48
|
});
|
|
49
|
-
var updateAutomation = async (id, body, options) =>
|
|
49
|
+
var updateAutomation = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
50
50
|
method: "put",
|
|
51
51
|
pathTemplate: "/api/v1/automations/{id}",
|
|
52
52
|
pathVariables: { id },
|
|
53
53
|
body,
|
|
54
54
|
options
|
|
55
55
|
});
|
|
56
|
-
var copyAutomation = async (id, body, options) =>
|
|
56
|
+
var copyAutomation = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
57
57
|
method: "post",
|
|
58
58
|
pathTemplate: "/api/v1/automations/{id}/actions/copy",
|
|
59
59
|
pathVariables: { id },
|
|
60
60
|
body,
|
|
61
61
|
options
|
|
62
62
|
});
|
|
63
|
-
var disableAutomation = async (id, options) =>
|
|
63
|
+
var disableAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
64
64
|
method: "post",
|
|
65
65
|
pathTemplate: "/api/v1/automations/{id}/actions/disable",
|
|
66
66
|
pathVariables: { id },
|
|
67
67
|
options
|
|
68
68
|
});
|
|
69
|
-
var enableAutomation = async (id, options) =>
|
|
69
|
+
var enableAutomation = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
70
70
|
method: "post",
|
|
71
71
|
pathTemplate: "/api/v1/automations/{id}/actions/enable",
|
|
72
72
|
pathVariables: { id },
|
|
73
73
|
options
|
|
74
74
|
});
|
|
75
|
-
var moveAutomation = async (id, body, options) =>
|
|
75
|
+
var moveAutomation = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
76
76
|
method: "post",
|
|
77
77
|
pathTemplate: "/api/v1/automations/{id}/actions/move",
|
|
78
78
|
pathVariables: { id },
|
|
79
79
|
body,
|
|
80
80
|
options
|
|
81
81
|
});
|
|
82
|
-
var getAutomationRuns = async (id, query, options) =>
|
|
82
|
+
var getAutomationRuns = async (id, query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
83
83
|
method: "get",
|
|
84
84
|
pathTemplate: "/api/v1/automations/{id}/runs",
|
|
85
85
|
pathVariables: { id },
|
|
86
86
|
query,
|
|
87
87
|
options
|
|
88
88
|
});
|
|
89
|
-
var queueAutomationRun = async (id, body, options) =>
|
|
89
|
+
var queueAutomationRun = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
90
90
|
method: "post",
|
|
91
91
|
pathTemplate: "/api/v1/automations/{id}/runs",
|
|
92
92
|
pathVariables: { id },
|
|
93
93
|
body,
|
|
94
94
|
options
|
|
95
95
|
});
|
|
96
|
-
var getAutomationRun = async (id, runId, options) =>
|
|
96
|
+
var getAutomationRun = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
97
97
|
method: "get",
|
|
98
98
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}",
|
|
99
99
|
pathVariables: { id, runId },
|
|
100
100
|
options
|
|
101
101
|
});
|
|
102
|
-
var getAutomationRunDetails = async (id, runId, options) =>
|
|
102
|
+
var getAutomationRunDetails = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
103
103
|
method: "post",
|
|
104
104
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/export",
|
|
105
105
|
pathVariables: { id, runId },
|
|
106
106
|
options
|
|
107
107
|
});
|
|
108
|
-
var retryAutomationRun = async (id, runId, options) =>
|
|
108
|
+
var retryAutomationRun = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
109
109
|
method: "post",
|
|
110
110
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/retry",
|
|
111
111
|
pathVariables: { id, runId },
|
|
112
112
|
options
|
|
113
113
|
});
|
|
114
|
-
var stopAutomationRun = async (id, runId, options) =>
|
|
114
|
+
var stopAutomationRun = async (id, runId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "automations", {
|
|
115
115
|
method: "post",
|
|
116
116
|
pathTemplate: "/api/v1/automations/{id}/runs/{runId}/actions/stop",
|
|
117
117
|
pathVariables: { id, runId },
|
|
118
118
|
options
|
|
119
119
|
});
|
|
120
120
|
function clearCache() {
|
|
121
|
-
return
|
|
121
|
+
return _chunk6JERR27Kjs.clearApiCache.call(void 0, "automations");
|
|
122
122
|
}
|
|
123
123
|
var automationsExport = {
|
|
124
124
|
getAutomations,
|
|
125
125
|
createAutomation,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
getAutomationsSettings,
|
|
127
|
+
updateAutomationsSettings,
|
|
128
|
+
getAutomationsUsageMetrics,
|
|
129
129
|
deleteAutomation,
|
|
130
130
|
getAutomation,
|
|
131
131
|
updateAutomation,
|
|
@@ -163,4 +163,4 @@ var automations_default = automationsExport;
|
|
|
163
163
|
|
|
164
164
|
|
|
165
165
|
|
|
166
|
-
exports.clearCache = clearCache; exports.copyAutomation = copyAutomation; exports.createAutomation = createAutomation; exports.default = automations_default; exports.deleteAutomation = deleteAutomation; exports.disableAutomation = disableAutomation; exports.enableAutomation = enableAutomation; exports.getAutomation = getAutomation; exports.getAutomationRun = getAutomationRun; exports.getAutomationRunDetails = getAutomationRunDetails; exports.getAutomationRuns = getAutomationRuns; exports.
|
|
166
|
+
exports.clearCache = clearCache; exports.copyAutomation = copyAutomation; exports.createAutomation = createAutomation; exports.default = automations_default; exports.deleteAutomation = deleteAutomation; exports.disableAutomation = disableAutomation; exports.enableAutomation = enableAutomation; exports.getAutomation = getAutomation; exports.getAutomationRun = getAutomationRun; exports.getAutomationRunDetails = getAutomationRunDetails; exports.getAutomationRuns = getAutomationRuns; exports.getAutomations = getAutomations; exports.getAutomationsSettings = getAutomationsSettings; exports.getAutomationsUsageMetrics = getAutomationsUsageMetrics; exports.moveAutomation = moveAutomation; exports.queueAutomationRun = queueAutomationRun; exports.retryAutomationRun = retryAutomationRun; exports.stopAutomationRun = stopAutomationRun; exports.updateAutomation = updateAutomation; exports.updateAutomationsSettings = updateAutomationsSettings;
|
package/automations.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-W4J34XGA.mjs";
|
|
5
|
+
import "./chunk-7REWEWCX.mjs";
|
|
6
6
|
|
|
7
7
|
// src/public/rest/automations.ts
|
|
8
8
|
var getAutomations = async (query, options) => invokeFetch("automations", {
|
|
@@ -17,18 +17,18 @@ var createAutomation = async (body, options) => invokeFetch("automations", {
|
|
|
17
17
|
body,
|
|
18
18
|
options
|
|
19
19
|
});
|
|
20
|
-
var
|
|
20
|
+
var getAutomationsSettings = async (options) => invokeFetch("automations", {
|
|
21
21
|
method: "get",
|
|
22
22
|
pathTemplate: "/api/v1/automations/settings",
|
|
23
23
|
options
|
|
24
24
|
});
|
|
25
|
-
var
|
|
25
|
+
var updateAutomationsSettings = async (body, options) => invokeFetch("automations", {
|
|
26
26
|
method: "put",
|
|
27
27
|
pathTemplate: "/api/v1/automations/settings",
|
|
28
28
|
body,
|
|
29
29
|
options
|
|
30
30
|
});
|
|
31
|
-
var
|
|
31
|
+
var getAutomationsUsageMetrics = async (query, options) => invokeFetch("automations", {
|
|
32
32
|
method: "get",
|
|
33
33
|
pathTemplate: "/api/v1/automations/usage",
|
|
34
34
|
query,
|
|
@@ -123,9 +123,9 @@ function clearCache() {
|
|
|
123
123
|
var automationsExport = {
|
|
124
124
|
getAutomations,
|
|
125
125
|
createAutomation,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
getAutomationsSettings,
|
|
127
|
+
updateAutomationsSettings,
|
|
128
|
+
getAutomationsUsageMetrics,
|
|
129
129
|
deleteAutomation,
|
|
130
130
|
getAutomation,
|
|
131
131
|
updateAutomation,
|
|
@@ -154,13 +154,13 @@ export {
|
|
|
154
154
|
getAutomationRun,
|
|
155
155
|
getAutomationRunDetails,
|
|
156
156
|
getAutomationRuns,
|
|
157
|
-
getAutomationSettings,
|
|
158
|
-
getAutomationUsageMetrics,
|
|
159
157
|
getAutomations,
|
|
158
|
+
getAutomationsSettings,
|
|
159
|
+
getAutomationsUsageMetrics,
|
|
160
160
|
moveAutomation,
|
|
161
161
|
queueAutomationRun,
|
|
162
162
|
retryAutomationRun,
|
|
163
163
|
stopAutomationRun,
|
|
164
164
|
updateAutomation,
|
|
165
|
-
|
|
165
|
+
updateAutomationsSettings
|
|
166
166
|
};
|
package/brands.js
CHANGED
|
@@ -1,80 +1,80 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
4
|
+
var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
|
|
5
|
+
require('./chunk-H7SAZYEE.js');
|
|
6
6
|
|
|
7
7
|
// src/public/rest/brands.ts
|
|
8
|
-
var getBrands = async (query, options) =>
|
|
8
|
+
var getBrands = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
9
9
|
method: "get",
|
|
10
10
|
pathTemplate: "/api/v1/brands",
|
|
11
11
|
query,
|
|
12
12
|
options
|
|
13
13
|
});
|
|
14
|
-
var createBrand = async (body, options) =>
|
|
14
|
+
var createBrand = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
15
15
|
method: "post",
|
|
16
16
|
pathTemplate: "/api/v1/brands",
|
|
17
17
|
body,
|
|
18
18
|
options
|
|
19
19
|
});
|
|
20
|
-
var getActiveBrand = async (options) =>
|
|
20
|
+
var getActiveBrand = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
21
21
|
method: "get",
|
|
22
22
|
pathTemplate: "/api/v1/brands/active",
|
|
23
23
|
options
|
|
24
24
|
});
|
|
25
|
-
var deleteBrand = async (brandId, options) =>
|
|
25
|
+
var deleteBrand = async (brandId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
26
26
|
method: "delete",
|
|
27
27
|
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
28
28
|
pathVariables: { "brand-id": brandId },
|
|
29
29
|
options
|
|
30
30
|
});
|
|
31
|
-
var getBrand = async (brandId, options) =>
|
|
31
|
+
var getBrand = async (brandId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
32
32
|
method: "get",
|
|
33
33
|
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
34
34
|
pathVariables: { "brand-id": brandId },
|
|
35
35
|
options
|
|
36
36
|
});
|
|
37
|
-
var patchBrand = async (brandId, body, options) =>
|
|
37
|
+
var patchBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
38
38
|
method: "patch",
|
|
39
39
|
pathTemplate: "/api/v1/brands/{brand-id}",
|
|
40
40
|
pathVariables: { "brand-id": brandId },
|
|
41
41
|
body,
|
|
42
42
|
options
|
|
43
43
|
});
|
|
44
|
-
var activateBrand = async (brandId, body, options) =>
|
|
44
|
+
var activateBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
45
45
|
method: "post",
|
|
46
46
|
pathTemplate: "/api/v1/brands/{brand-id}/actions/activate",
|
|
47
47
|
pathVariables: { "brand-id": brandId },
|
|
48
48
|
body,
|
|
49
49
|
options
|
|
50
50
|
});
|
|
51
|
-
var deactivateBrand = async (brandId, body, options) =>
|
|
51
|
+
var deactivateBrand = async (brandId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
52
52
|
method: "post",
|
|
53
53
|
pathTemplate: "/api/v1/brands/{brand-id}/actions/deactivate",
|
|
54
54
|
pathVariables: { "brand-id": brandId },
|
|
55
55
|
body,
|
|
56
56
|
options
|
|
57
57
|
});
|
|
58
|
-
var deleteBrandFile = async (brandId, brandFileId, options) =>
|
|
58
|
+
var deleteBrandFile = async (brandId, brandFileId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
59
59
|
method: "delete",
|
|
60
60
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
61
61
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
62
62
|
options
|
|
63
63
|
});
|
|
64
|
-
var getBrandFile = async (brandId, brandFileId, options) =>
|
|
64
|
+
var getBrandFile = async (brandId, brandFileId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
65
65
|
method: "get",
|
|
66
66
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
67
67
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
68
68
|
options
|
|
69
69
|
});
|
|
70
|
-
var createBrandFile = async (brandId, brandFileId, body, options) =>
|
|
70
|
+
var createBrandFile = async (brandId, brandFileId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
71
71
|
method: "post",
|
|
72
72
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
73
73
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
74
74
|
body,
|
|
75
75
|
options
|
|
76
76
|
});
|
|
77
|
-
var updateBrandFile = async (brandId, brandFileId, body, options) =>
|
|
77
|
+
var updateBrandFile = async (brandId, brandFileId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "brands", {
|
|
78
78
|
method: "put",
|
|
79
79
|
pathTemplate: "/api/v1/brands/{brand-id}/files/{brand-file-id}",
|
|
80
80
|
pathVariables: { "brand-id": brandId, "brand-file-id": brandFileId },
|
|
@@ -82,7 +82,7 @@ var updateBrandFile = async (brandId, brandFileId, body, options) => _chunkOULT3
|
|
|
82
82
|
options
|
|
83
83
|
});
|
|
84
84
|
function clearCache() {
|
|
85
|
-
return
|
|
85
|
+
return _chunk6JERR27Kjs.clearApiCache.call(void 0, "brands");
|
|
86
86
|
}
|
|
87
87
|
var brandsExport = {
|
|
88
88
|
getBrands,
|
package/brands.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-W4J34XGA.mjs";
|
|
5
|
+
import "./chunk-7REWEWCX.mjs";
|
|
6
6
|
|
|
7
7
|
// src/public/rest/brands.ts
|
|
8
8
|
var getBrands = async (query, options) => invokeFetch("brands", {
|
|
@@ -0,0 +1,17 @@
|
|
|
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; }
|
|
2
|
+
|
|
3
|
+
var _chunkH7SAZYEEjs = require('./chunk-H7SAZYEE.js');
|
|
4
|
+
|
|
5
|
+
// src/public/invoke-fetch.ts
|
|
6
|
+
async function invokeFetch(api, props) {
|
|
7
|
+
const hostConfig = _optionalChain([props, 'access', _ => _.options, 'optionalAccess', _2 => _2.hostConfig]);
|
|
8
|
+
return (await _chunkH7SAZYEEjs.getInvokeFetchRuntimeModule.call(void 0, hostConfig)).invokeFetch(api, props);
|
|
9
|
+
}
|
|
10
|
+
function clearApiCache(api) {
|
|
11
|
+
void _chunkH7SAZYEEjs.getInvokeFetchRuntimeModule.call(void 0, ).then((runtimeModule) => runtimeModule.clearApiCache(api));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
exports.invokeFetch = invokeFetch; exports.clearApiCache = clearApiCache;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// src/public/public-runtime-modules.ts
|
|
2
|
+
function getAuthRuntimeModule(hostConfig) {
|
|
3
|
+
const isNode = !!globalThis.process?.argv;
|
|
4
|
+
return isNode ? import("./auth-RTFXVSSK.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
|
|
5
|
+
}
|
|
6
|
+
async function getQixRuntimeModule(hostConfig) {
|
|
7
|
+
await getAuthRuntimeModule(hostConfig);
|
|
8
|
+
const isNode = !!globalThis.process?.argv;
|
|
9
|
+
return isNode ? import("./qix-57WD2ZE6.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
|
|
10
|
+
}
|
|
11
|
+
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
12
|
+
await getAuthRuntimeModule(hostConfig);
|
|
13
|
+
const isNode = !!globalThis.process?.argv;
|
|
14
|
+
return isNode ? import("./invoke-fetch-IMO4AMA3.mjs") : import("./esm-M5ZBFTVD.mjs").then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
getAuthRuntimeModule,
|
|
19
|
+
getQixRuntimeModule,
|
|
20
|
+
getInvokeFetchRuntimeModule
|
|
21
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getQixRuntimeModule
|
|
3
|
+
} from "./chunk-7REWEWCX.mjs";
|
|
4
|
+
|
|
5
|
+
// src/public/qix.ts
|
|
6
|
+
function openAppSession(appSessionProps) {
|
|
7
|
+
const appSessionPromise = getQixRuntimeModule(appSessionProps.hostConfig).then(
|
|
8
|
+
(impl) => impl.openAppSession(appSessionProps)
|
|
9
|
+
);
|
|
10
|
+
const appSessionProxy = {
|
|
11
|
+
/**
|
|
12
|
+
* Returns a promise of the Qix Doc object with a set of client-side Api extensions.
|
|
13
|
+
* Note that while the AppSession object is returned immediately this promise might take a while
|
|
14
|
+
* to resolve for bigger apps.
|
|
15
|
+
*/
|
|
16
|
+
async getDoc() {
|
|
17
|
+
return (await appSessionPromise).getDoc();
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* @experimental
|
|
21
|
+
* Add an event-listener for this app-session.
|
|
22
|
+
*/
|
|
23
|
+
onWebSocketEvent(listener) {
|
|
24
|
+
const returnedFnPromise = appSessionPromise.then((appSession) => appSession.onWebSocketEvent(listener));
|
|
25
|
+
return () => {
|
|
26
|
+
void returnedFnPromise.then((fn) => fn());
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* @experimental
|
|
31
|
+
* Resume a suspended session. This will resume exactly
|
|
32
|
+
* once if the session is currently suspended, otherwise
|
|
33
|
+
* nothing will be done.
|
|
34
|
+
*/
|
|
35
|
+
async resume() {
|
|
36
|
+
return (await appSessionPromise).resume();
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* When the app session is no longer in use it must be closed using this function.
|
|
40
|
+
* If the same underlying enigma websocket is used somewhere else in the browser
|
|
41
|
+
* this is basically a no op, but if this is the last/only usage
|
|
42
|
+
* of the underlying enigma websocket that websocket will be closed.
|
|
43
|
+
*/
|
|
44
|
+
async close() {
|
|
45
|
+
return (await appSessionPromise).close();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return appSessionProxy;
|
|
49
|
+
}
|
|
50
|
+
var qix_default = {
|
|
51
|
+
openAppSession
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export {
|
|
55
|
+
openAppSession,
|
|
56
|
+
qix_default
|
|
57
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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; }// src/public/public-runtime-modules.ts
|
|
2
|
+
function getAuthRuntimeModule(hostConfig) {
|
|
3
|
+
const isNode = !!_optionalChain([globalThis, 'access', _ => _.process, 'optionalAccess', _2 => _2.argv]);
|
|
4
|
+
return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./auth-OU7OTB7Y.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-RX7B2TUN.js"))).then((mod) => mod.importRuntimeModule("auth@v1", hostConfig));
|
|
5
|
+
}
|
|
6
|
+
async function getQixRuntimeModule(hostConfig) {
|
|
7
|
+
await getAuthRuntimeModule(hostConfig);
|
|
8
|
+
const isNode = !!_optionalChain([globalThis, 'access', _3 => _3.process, 'optionalAccess', _4 => _4.argv]);
|
|
9
|
+
return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./qix-K22VHZRH.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-RX7B2TUN.js"))).then((mod) => mod.importRuntimeModule("qix@v1", hostConfig));
|
|
10
|
+
}
|
|
11
|
+
async function getInvokeFetchRuntimeModule(hostConfig) {
|
|
12
|
+
await getAuthRuntimeModule(hostConfig);
|
|
13
|
+
const isNode = !!_optionalChain([globalThis, 'access', _5 => _5.process, 'optionalAccess', _6 => _6.argv]);
|
|
14
|
+
return isNode ? Promise.resolve().then(() => _interopRequireWildcard(require("./invoke-fetch-7PKPQ3FD.js"))) : Promise.resolve().then(() => _interopRequireWildcard(require("./esm-RX7B2TUN.js"))).then((mod) => mod.importRuntimeModule("invoke-fetch@v1", hostConfig));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
exports.getAuthRuntimeModule = getAuthRuntimeModule; exports.getQixRuntimeModule = getQixRuntimeModule; exports.getInvokeFetchRuntimeModule = getInvokeFetchRuntimeModule;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthRuntimeModule
|
|
3
|
+
} from "./chunk-7REWEWCX.mjs";
|
|
4
|
+
|
|
5
|
+
// src/public/auth.ts
|
|
6
|
+
function registerAuthModule(name, authModule) {
|
|
7
|
+
void getAuthRuntimeModule().then((impl) => impl.registerAuthModule(name, authModule));
|
|
8
|
+
}
|
|
9
|
+
function logout() {
|
|
10
|
+
void getAuthRuntimeModule().then((impl) => impl.logout());
|
|
11
|
+
}
|
|
12
|
+
function setDefaultHostConfig(hostConfig) {
|
|
13
|
+
void getAuthRuntimeModule(hostConfig).then((impl) => impl.setDefaultHostConfig(hostConfig));
|
|
14
|
+
}
|
|
15
|
+
var auth_default = {
|
|
16
|
+
registerAuthModule,
|
|
17
|
+
setDefaultHostConfig
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
registerAuthModule,
|
|
22
|
+
logout,
|
|
23
|
+
setDefaultHostConfig,
|
|
24
|
+
auth_default
|
|
25
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkH7SAZYEEjs = require('./chunk-H7SAZYEE.js');
|
|
4
|
+
|
|
5
|
+
// src/public/qix.ts
|
|
6
|
+
function openAppSession(appSessionProps) {
|
|
7
|
+
const appSessionPromise = _chunkH7SAZYEEjs.getQixRuntimeModule.call(void 0, appSessionProps.hostConfig).then(
|
|
8
|
+
(impl) => impl.openAppSession(appSessionProps)
|
|
9
|
+
);
|
|
10
|
+
const appSessionProxy = {
|
|
11
|
+
/**
|
|
12
|
+
* Returns a promise of the Qix Doc object with a set of client-side Api extensions.
|
|
13
|
+
* Note that while the AppSession object is returned immediately this promise might take a while
|
|
14
|
+
* to resolve for bigger apps.
|
|
15
|
+
*/
|
|
16
|
+
async getDoc() {
|
|
17
|
+
return (await appSessionPromise).getDoc();
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* @experimental
|
|
21
|
+
* Add an event-listener for this app-session.
|
|
22
|
+
*/
|
|
23
|
+
onWebSocketEvent(listener) {
|
|
24
|
+
const returnedFnPromise = appSessionPromise.then((appSession) => appSession.onWebSocketEvent(listener));
|
|
25
|
+
return () => {
|
|
26
|
+
void returnedFnPromise.then((fn) => fn());
|
|
27
|
+
};
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* @experimental
|
|
31
|
+
* Resume a suspended session. This will resume exactly
|
|
32
|
+
* once if the session is currently suspended, otherwise
|
|
33
|
+
* nothing will be done.
|
|
34
|
+
*/
|
|
35
|
+
async resume() {
|
|
36
|
+
return (await appSessionPromise).resume();
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* When the app session is no longer in use it must be closed using this function.
|
|
40
|
+
* If the same underlying enigma websocket is used somewhere else in the browser
|
|
41
|
+
* this is basically a no op, but if this is the last/only usage
|
|
42
|
+
* of the underlying enigma websocket that websocket will be closed.
|
|
43
|
+
*/
|
|
44
|
+
async close() {
|
|
45
|
+
return (await appSessionPromise).close();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return appSessionProxy;
|
|
49
|
+
}
|
|
50
|
+
var qix_default = {
|
|
51
|
+
openAppSession
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
exports.openAppSession = openAppSession; exports.qix_default = qix_default;
|