@qlik/api 2.4.0 → 2.5.0
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/analytics/change-stores.d.ts +1 -4
- package/analytics/change-stores.js +2 -2
- package/analytics.d.ts +0 -1
- package/analytics.js +2 -2
- package/api-keys.d.ts +1 -3
- package/api-keys.js +2 -2
- package/apps.d.ts +16 -15
- package/apps.js +8 -8
- package/assistants.d.ts +35 -37
- package/assistants.js +2 -2
- package/audits.d.ts +1 -3
- package/audits.js +2 -2
- package/auth-types.d.ts +1 -110
- package/auth.d.ts +1 -1
- package/auth.js +1 -1
- package/automation-connections.d.ts +6 -7
- package/automation-connections.js +3 -3
- package/automation-connectors.d.ts +9 -7
- package/automation-connectors.js +2 -2
- package/automations.d.ts +144 -125
- package/automations.js +41 -26
- package/automl-deployments.d.ts +1 -3
- package/automl-deployments.js +2 -2
- package/automl-predictions.d.ts +1 -3
- package/automl-predictions.js +2 -2
- package/banners.d.ts +1 -3
- package/banners.js +2 -2
- package/brands.d.ts +1 -3
- package/brands.js +2 -2
- package/chunks/{auth-B8lJw7rm.js → auth-Cfg2Smt8.js} +1 -1
- package/chunks/auth-types-DVvka7Hz.d.ts +385 -0
- package/chunks/{boot-interceptors-DqRxTczb.js → interceptors-DMiDeqEz.js} +178 -52
- package/chunks/{invoke-fetch-pMN6iqup.js → invoke-fetch-CwBXAsw4.js} +1 -1
- package/chunks/{invoke-fetch-DMAi6Fg3.js → invoke-fetch-DxtIsSVQ.js} +3 -3
- package/chunks/{public-runtime-modules-2KfyI2qM.js → public-runtime-modules-mBjjPn7I.js} +5 -5
- package/chunks/{qix-BdNrIA4s.js → qix-BPCl6Bmh.js} +5 -5
- package/chunks/{qix-types-y_di0roE.d.ts → qix-CJntvLix.d.ts} +46 -3
- package/chunks/{qix-chunk-entrypoint-L9RpWwLK.js → qix-chunk-entrypoint-CyQYGyl2.js} +16 -3
- package/collections.d.ts +2 -5
- package/collections.js +3 -4
- package/conditions.d.ts +1 -3
- package/conditions.js +2 -2
- package/consumption.d.ts +1 -3
- package/consumption.js +2 -2
- package/core/ip-policies.d.ts +1 -4
- package/core/ip-policies.js +2 -2
- package/core.d.ts +0 -1
- package/core.js +2 -2
- package/csp-origins.d.ts +1 -3
- package/csp-origins.js +2 -2
- package/csrf-token.d.ts +1 -3
- package/csrf-token.js +2 -2
- package/data-alerts.d.ts +1 -3
- package/data-alerts.js +2 -2
- package/data-assets.d.ts +1 -3
- package/data-assets.js +2 -2
- package/data-connections.d.ts +1 -3
- package/data-connections.js +2 -2
- package/data-credentials.d.ts +1 -3
- package/data-credentials.js +2 -2
- package/data-files.d.ts +1 -3
- package/data-files.js +2 -2
- package/data-governance/data-products.d.ts +1 -4
- package/data-governance/data-products.js +2 -2
- package/data-governance.d.ts +0 -1
- package/data-governance.js +2 -2
- package/data-qualities.d.ts +13 -3
- package/data-qualities.js +8 -2
- package/data-sets.d.ts +1 -3
- package/data-sets.js +2 -2
- package/data-sources.d.ts +1 -3
- package/data-sources.js +2 -2
- package/data-stores.d.ts +1 -3
- package/data-stores.js +2 -2
- package/dcaas.d.ts +1 -3
- package/dcaas.js +2 -2
- package/di-projects.d.ts +28 -8
- package/di-projects.js +2 -2
- package/direct-access-agents.d.ts +1 -3
- package/direct-access-agents.js +2 -2
- package/encryption.d.ts +1 -3
- package/encryption.js +2 -2
- package/extensions.d.ts +1 -3
- package/extensions.js +2 -2
- package/global-types.d.ts +2 -140
- package/glossaries.d.ts +1 -3
- package/glossaries.js +2 -2
- package/groups.d.ts +1 -3
- package/groups.js +2 -2
- package/identity-providers.d.ts +1 -3
- package/identity-providers.js +2 -2
- package/index.d.ts +18 -5
- package/index.js +63 -6
- package/interceptors.d.ts +1 -3
- package/interceptors.js +1 -103
- package/invoke-fetch-types.d.ts +1 -97
- package/items.d.ts +1 -3
- package/items.js +2 -2
- package/knowledgebases.d.ts +27 -50
- package/knowledgebases.js +2 -2
- package/licenses.d.ts +1 -3
- package/licenses.js +2 -2
- package/lineage-graphs.d.ts +1 -3
- package/lineage-graphs.js +2 -2
- package/ml.d.ts +1 -3
- package/ml.js +2 -2
- package/notes.d.ts +9 -3
- package/notes.js +6 -2
- package/notifications.d.ts +1 -3
- package/notifications.js +2 -2
- package/oauth-clients.d.ts +1 -3
- package/oauth-clients.js +2 -2
- package/oauth-tokens.d.ts +1 -3
- package/oauth-tokens.js +2 -2
- package/package.json +6 -2
- package/qix.d.ts +1 -47
- package/qix.js +1 -1
- package/questions.d.ts +1 -3
- package/questions.js +2 -2
- package/quotas.d.ts +1 -3
- package/quotas.js +2 -2
- package/reload-tasks.d.ts +1 -3
- package/reload-tasks.js +2 -2
- package/reloads.d.ts +13 -6
- package/reloads.js +2 -2
- package/report-templates.d.ts +3 -4
- package/report-templates.js +2 -2
- package/reports.d.ts +1 -3
- package/reports.js +2 -2
- package/roles.d.ts +1 -3
- package/roles.js +2 -2
- package/sharing-tasks.d.ts +1 -3
- package/sharing-tasks.js +2 -2
- package/spaces.d.ts +1 -3
- package/spaces.js +2 -2
- package/tasks.d.ts +1 -3
- package/tasks.js +2 -2
- package/temp-contents.d.ts +1 -3
- package/temp-contents.js +2 -2
- package/tenant-settings.d.ts +1 -3
- package/tenant-settings.js +2 -2
- package/tenants.d.ts +2 -4
- package/tenants.js +2 -2
- package/themes.d.ts +1 -3
- package/themes.js +2 -2
- package/transports.d.ts +1 -3
- package/transports.js +2 -2
- package/ui-config.d.ts +1 -3
- package/ui-config.js +2 -2
- package/users.d.ts +1 -3
- package/users.js +2 -2
- package/web-integrations.d.ts +1 -3
- package/web-integrations.js +2 -2
- package/web-notifications.d.ts +1 -3
- package/web-notifications.js +2 -2
- package/webhooks.d.ts +7 -9
- package/webhooks.js +2 -2
- package/workflows/automation-connections.d.ts +317 -0
- package/workflows/automation-connections.js +164 -0
- package/workflows/automation-connectors.d.ts +79 -0
- package/workflows/automation-connectors.js +40 -0
- package/workflows/automations.d.ts +790 -0
- package/workflows/automations.js +421 -0
- package/workflows.d.ts +16 -0
- package/workflows.js +18 -0
- package/chunks/platform-types-CECrZkOF.d.ts +0 -29
- /package/chunks/{dist-DR758NU5.js → dist-BcgFfLgM.js} +0 -0
- /package/chunks/{invoke-fetch-DFc3yzaj.d.ts → invoke-fetch-DcuB8t5I.d.ts} +0 -0
- /package/chunks/{utils-jkpLuYZR.js → utils-B7chC9_U.js} +0 -0
- /package/chunks/{websocket-errors-C5U1tba-.js → websocket-errors-C6cw1uQN.js} +0 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { t as __exportAll } from "../chunks/chunk-BdHzlgOL.js";
|
|
2
|
+
import "../chunks/public-runtime-modules-mBjjPn7I.js";
|
|
3
|
+
import { n as invokeFetch, t as clearApiCache } from "../chunks/invoke-fetch-DxtIsSVQ.js";
|
|
4
|
+
|
|
5
|
+
//#region src/public/rest/workflows/automations.ts
|
|
6
|
+
var automations_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
+
changeOwnerAutomation: () => changeOwnerAutomation,
|
|
8
|
+
changeSpaceAutomation: () => changeSpaceAutomation,
|
|
9
|
+
clearCache: () => clearCache,
|
|
10
|
+
copyAutomation: () => copyAutomation,
|
|
11
|
+
createAutomation: () => createAutomation,
|
|
12
|
+
createAutomationRun: () => createAutomationRun,
|
|
13
|
+
default: () => automationsExport,
|
|
14
|
+
deleteAutomation: () => deleteAutomation,
|
|
15
|
+
disableAutomation: () => disableAutomation,
|
|
16
|
+
enableAutomation: () => enableAutomation,
|
|
17
|
+
exportAutomationRun: () => exportAutomationRun,
|
|
18
|
+
getAutomation: () => getAutomation,
|
|
19
|
+
getAutomationRun: () => getAutomationRun,
|
|
20
|
+
getAutomationRunDebug: () => getAutomationRunDebug,
|
|
21
|
+
getAutomationRuns: () => getAutomationRuns,
|
|
22
|
+
getAutomations: () => getAutomations,
|
|
23
|
+
getAutomationsSettings: () => getAutomationsSettings,
|
|
24
|
+
getAutomationsUsageMetrics: () => getAutomationsUsageMetrics,
|
|
25
|
+
moveAutomation: () => moveAutomation,
|
|
26
|
+
retryAutomationRun: () => retryAutomationRun,
|
|
27
|
+
stopAutomationRun: () => stopAutomationRun,
|
|
28
|
+
updateAutomation: () => updateAutomation,
|
|
29
|
+
updateAutomationsSettings: () => updateAutomationsSettings
|
|
30
|
+
});
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves a list of the automations that the requesting user has access to.
|
|
33
|
+
*
|
|
34
|
+
* @param query an object with query parameters
|
|
35
|
+
* @throws GetAutomationsHttpError
|
|
36
|
+
*/
|
|
37
|
+
async function getAutomations(query, options) {
|
|
38
|
+
return invokeFetch("workflows/automations", {
|
|
39
|
+
method: "get",
|
|
40
|
+
pathTemplate: "/api/workflows/automations",
|
|
41
|
+
query,
|
|
42
|
+
options
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Creates a new automation. The requesting user must be assigned the `AutomationCreator` role or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
47
|
+
*
|
|
48
|
+
* @param body an object with the body content
|
|
49
|
+
* @throws CreateAutomationHttpError
|
|
50
|
+
*/
|
|
51
|
+
async function createAutomation(body, options) {
|
|
52
|
+
return invokeFetch("workflows/automations", {
|
|
53
|
+
method: "post",
|
|
54
|
+
pathTemplate: "/api/workflows/automations",
|
|
55
|
+
body,
|
|
56
|
+
contentType: "application/json",
|
|
57
|
+
options
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Retrieves the global automation settings for the tenant.
|
|
62
|
+
*
|
|
63
|
+
* @throws GetAutomationsSettingsHttpError
|
|
64
|
+
*/
|
|
65
|
+
async function getAutomationsSettings(options) {
|
|
66
|
+
return invokeFetch("workflows/automations", {
|
|
67
|
+
method: "get",
|
|
68
|
+
pathTemplate: "/api/workflows/automations/settings",
|
|
69
|
+
options
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Updates the global automation settings for the tenant.
|
|
74
|
+
*
|
|
75
|
+
* @param body an object with the body content
|
|
76
|
+
* @throws UpdateAutomationsSettingsHttpError
|
|
77
|
+
*/
|
|
78
|
+
async function updateAutomationsSettings(body, options) {
|
|
79
|
+
return invokeFetch("workflows/automations", {
|
|
80
|
+
method: "put",
|
|
81
|
+
pathTemplate: "/api/workflows/automations/settings",
|
|
82
|
+
body,
|
|
83
|
+
contentType: "application/json",
|
|
84
|
+
options
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves paginated usage metrics for automations. The requesting user must be assigned the `TenantAdmin` or `AnalyticsAdmin` role.
|
|
89
|
+
*
|
|
90
|
+
* @param query an object with query parameters
|
|
91
|
+
* @throws GetAutomationsUsageMetricsHttpError
|
|
92
|
+
*/
|
|
93
|
+
async function getAutomationsUsageMetrics(query, options) {
|
|
94
|
+
return invokeFetch("workflows/automations", {
|
|
95
|
+
method: "get",
|
|
96
|
+
pathTemplate: "/api/workflows/automations/usage",
|
|
97
|
+
query,
|
|
98
|
+
options
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Deletes an automation. The requesting user must meet at least one of the following conditions:
|
|
103
|
+
* - be the owner of the automation
|
|
104
|
+
* - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
|
|
105
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
106
|
+
*
|
|
107
|
+
* @param id The unique identifier for the automation.
|
|
108
|
+
* @throws DeleteAutomationHttpError
|
|
109
|
+
*/
|
|
110
|
+
async function deleteAutomation(id, options) {
|
|
111
|
+
return invokeFetch("workflows/automations", {
|
|
112
|
+
method: "delete",
|
|
113
|
+
pathTemplate: "/api/workflows/automations/{id}",
|
|
114
|
+
pathVariables: { id },
|
|
115
|
+
options
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Retrieves the full definition of an automation. The requesting user must be the owner of the automation and either be assigned one of the roles: `AutomationsCreator`, `TenantAdmin` or have at least one of the following scopes (depending on whether the automation is in a private or shared space): `automations`, `automations.private` or `automations.shared`.
|
|
120
|
+
*
|
|
121
|
+
* @param id The unique identifier for the automation.
|
|
122
|
+
* @throws GetAutomationHttpError
|
|
123
|
+
*/
|
|
124
|
+
async function getAutomation(id, options) {
|
|
125
|
+
return invokeFetch("workflows/automations", {
|
|
126
|
+
method: "get",
|
|
127
|
+
pathTemplate: "/api/workflows/automations/{id}",
|
|
128
|
+
pathVariables: { id },
|
|
129
|
+
options
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Updates the full definition of an automation. The requesting user must be the owner of the automation and either be assigned the `AutomationCreator` role or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
134
|
+
*
|
|
135
|
+
* @param id The unique identifier for the automation.
|
|
136
|
+
* @param body an object with the body content
|
|
137
|
+
* @throws UpdateAutomationHttpError
|
|
138
|
+
*/
|
|
139
|
+
async function updateAutomation(id, body, options) {
|
|
140
|
+
return invokeFetch("workflows/automations", {
|
|
141
|
+
method: "put",
|
|
142
|
+
pathTemplate: "/api/workflows/automations/{id}",
|
|
143
|
+
pathVariables: { id },
|
|
144
|
+
body,
|
|
145
|
+
contentType: "application/json",
|
|
146
|
+
options
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner. The requesting user must be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin` or have at least one of the following scopes: `admin.automations`, `admin.automations:strict`.
|
|
151
|
+
*
|
|
152
|
+
* @param id The unique identifier for the automation.
|
|
153
|
+
* @param body an object with the body content
|
|
154
|
+
* @throws ChangeOwnerAutomationHttpError
|
|
155
|
+
*/
|
|
156
|
+
async function changeOwnerAutomation(id, body, options) {
|
|
157
|
+
return invokeFetch("workflows/automations", {
|
|
158
|
+
method: "post",
|
|
159
|
+
pathTemplate: "/api/workflows/automations/{id}/actions/change-owner",
|
|
160
|
+
pathVariables: { id },
|
|
161
|
+
body,
|
|
162
|
+
contentType: "application/json",
|
|
163
|
+
options
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Changes the space of an automation by specifying a new space.
|
|
168
|
+
*
|
|
169
|
+
* @param id The unique identifier for the automation.
|
|
170
|
+
* @param body an object with the body content
|
|
171
|
+
* @throws ChangeSpaceAutomationHttpError
|
|
172
|
+
*/
|
|
173
|
+
async function changeSpaceAutomation(id, body, options) {
|
|
174
|
+
return invokeFetch("workflows/automations", {
|
|
175
|
+
method: "post",
|
|
176
|
+
pathTemplate: "/api/workflows/automations/{id}/actions/change-space",
|
|
177
|
+
pathVariables: { id },
|
|
178
|
+
body,
|
|
179
|
+
contentType: "application/json",
|
|
180
|
+
options
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Duplicates an existing automation. The requesting user must be the owner of the automation or have at least one of the following scopes: `automations`, `admin.automations`, `automations.private` or `automations.shared`.
|
|
185
|
+
*
|
|
186
|
+
* @param id The unique identifier for the automation.
|
|
187
|
+
* @param body an object with the body content
|
|
188
|
+
* @throws CopyAutomationHttpError
|
|
189
|
+
*/
|
|
190
|
+
async function copyAutomation(id, body, options) {
|
|
191
|
+
return invokeFetch("workflows/automations", {
|
|
192
|
+
method: "post",
|
|
193
|
+
pathTemplate: "/api/workflows/automations/{id}/actions/copy",
|
|
194
|
+
pathVariables: { id },
|
|
195
|
+
body,
|
|
196
|
+
contentType: "application/json",
|
|
197
|
+
options
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Disables an automation so that it cannot be run. To disable an automation, the requesting user must meet at least one of the following conditions:
|
|
202
|
+
* - be the owner of the automation
|
|
203
|
+
* - be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin`
|
|
204
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
205
|
+
*
|
|
206
|
+
* @param id The unique identifier for the automation.
|
|
207
|
+
* @throws DisableAutomationHttpError
|
|
208
|
+
*/
|
|
209
|
+
async function disableAutomation(id, options) {
|
|
210
|
+
return invokeFetch("workflows/automations", {
|
|
211
|
+
method: "post",
|
|
212
|
+
pathTemplate: "/api/workflows/automations/{id}/actions/disable",
|
|
213
|
+
pathVariables: { id },
|
|
214
|
+
options
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* Enables an automation so that it can be run. To enable an automation, the requesting user must meet at least one of the following conditions:
|
|
219
|
+
* - be the owner of the automation
|
|
220
|
+
* - be assigned one of the following roles: `AnalyticsAdmin`, `TenantAdmin`
|
|
221
|
+
* - have at least one of the following scopes: `admin.automations`, `admin.automations:strict`, `automations.private`, or `automations.shared`
|
|
222
|
+
*
|
|
223
|
+
* @param id The unique identifier for the automation.
|
|
224
|
+
* @throws EnableAutomationHttpError
|
|
225
|
+
*/
|
|
226
|
+
async function enableAutomation(id, options) {
|
|
227
|
+
return invokeFetch("workflows/automations", {
|
|
228
|
+
method: "post",
|
|
229
|
+
pathTemplate: "/api/workflows/automations/{id}/actions/enable",
|
|
230
|
+
pathVariables: { id },
|
|
231
|
+
options
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Changes the owner of an automation to another user. This action removes the history and change logs of this automation. All linked connections used in the automation are detached and not moved to the new owner. The requesting user must be assigned one of the following roles: `TenantAdmin`, `AnalyticsAdmin` or have at least one of the following scopes: `admin.automations`, `admin.automations:strict`.
|
|
236
|
+
*
|
|
237
|
+
* @param id The unique identifier for the automation.
|
|
238
|
+
* @param body an object with the body content
|
|
239
|
+
* @throws MoveAutomationHttpError
|
|
240
|
+
*/
|
|
241
|
+
async function moveAutomation(id, body, options) {
|
|
242
|
+
return invokeFetch("workflows/automations", {
|
|
243
|
+
method: "post",
|
|
244
|
+
pathTemplate: "/api/workflows/automations/{id}/actions/move",
|
|
245
|
+
pathVariables: { id },
|
|
246
|
+
body,
|
|
247
|
+
contentType: "application/json",
|
|
248
|
+
options
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Retrieves a list of runs for a specific automation. The requesting user must be the owner of the automation, or be assigned the one of roles: `TenantAdmin`, `AnalyticsAdmin`. Alternatively, the user must have at least one of the following scopes: `admin.automation-runs`, `automation-runs.private`, or `automation-runs.shared`.
|
|
253
|
+
*
|
|
254
|
+
* @param id The unique identifier for the automation.
|
|
255
|
+
* @param query an object with query parameters
|
|
256
|
+
* @throws GetAutomationRunsHttpError
|
|
257
|
+
*/
|
|
258
|
+
async function getAutomationRuns(id, query, options) {
|
|
259
|
+
return invokeFetch("workflows/automations", {
|
|
260
|
+
method: "get",
|
|
261
|
+
pathTemplate: "/api/workflows/automations/{id}/runs",
|
|
262
|
+
pathVariables: { id },
|
|
263
|
+
query,
|
|
264
|
+
options
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Creates a run for a specific automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
269
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
270
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
271
|
+
*
|
|
272
|
+
* @param id The unique identifier for the automation.
|
|
273
|
+
* @param body an object with the body content
|
|
274
|
+
* @throws CreateAutomationRunHttpError
|
|
275
|
+
*/
|
|
276
|
+
async function createAutomationRun(id, body, options) {
|
|
277
|
+
return invokeFetch("workflows/automations", {
|
|
278
|
+
method: "post",
|
|
279
|
+
pathTemplate: "/api/workflows/automations/{id}/runs",
|
|
280
|
+
pathVariables: { id },
|
|
281
|
+
body,
|
|
282
|
+
contentType: "application/json",
|
|
283
|
+
options
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Retrieves a specific run for an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
288
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
289
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
290
|
+
*
|
|
291
|
+
* @param id The unique identifier for the automation.
|
|
292
|
+
* @param runId The unique identifier for the run.
|
|
293
|
+
* @throws GetAutomationRunHttpError
|
|
294
|
+
*/
|
|
295
|
+
async function getAutomationRun(id, runId, options) {
|
|
296
|
+
return invokeFetch("workflows/automations", {
|
|
297
|
+
method: "get",
|
|
298
|
+
pathTemplate: "/api/workflows/automations/{id}/runs/{runId}",
|
|
299
|
+
pathVariables: {
|
|
300
|
+
id,
|
|
301
|
+
runId
|
|
302
|
+
},
|
|
303
|
+
options
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Retrieves the URL for the debug log of a specific automation run. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
308
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
309
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
310
|
+
*
|
|
311
|
+
* @param id The unique identifier for the automation.
|
|
312
|
+
* @param runId The unique identifier for the run.
|
|
313
|
+
* @throws ExportAutomationRunHttpError
|
|
314
|
+
*/
|
|
315
|
+
async function exportAutomationRun(id, runId, options) {
|
|
316
|
+
return invokeFetch("workflows/automations", {
|
|
317
|
+
method: "post",
|
|
318
|
+
pathTemplate: "/api/workflows/automations/{id}/runs/{runId}/actions/export",
|
|
319
|
+
pathVariables: {
|
|
320
|
+
id,
|
|
321
|
+
runId
|
|
322
|
+
},
|
|
323
|
+
options
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Retries a specific run by creating a new run using the same inputs. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
328
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
329
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
330
|
+
*
|
|
331
|
+
* @param id The unique identifier for the automation.
|
|
332
|
+
* @param runId The unique identifier for the run.
|
|
333
|
+
* @throws RetryAutomationRunHttpError
|
|
334
|
+
*/
|
|
335
|
+
async function retryAutomationRun(id, runId, options) {
|
|
336
|
+
return invokeFetch("workflows/automations", {
|
|
337
|
+
method: "post",
|
|
338
|
+
pathTemplate: "/api/workflows/automations/{id}/runs/{runId}/actions/retry",
|
|
339
|
+
pathVariables: {
|
|
340
|
+
id,
|
|
341
|
+
runId
|
|
342
|
+
},
|
|
343
|
+
options
|
|
344
|
+
});
|
|
345
|
+
}
|
|
346
|
+
/**
|
|
347
|
+
* Forcefully stops an automation run immediately. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
348
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
349
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
350
|
+
*
|
|
351
|
+
* @param id The unique identifier for the automation.
|
|
352
|
+
* @param runId The unique identifier for the run.
|
|
353
|
+
* @throws StopAutomationRunHttpError
|
|
354
|
+
*/
|
|
355
|
+
async function stopAutomationRun(id, runId, options) {
|
|
356
|
+
return invokeFetch("workflows/automations", {
|
|
357
|
+
method: "post",
|
|
358
|
+
pathTemplate: "/api/workflows/automations/{id}/runs/{runId}/actions/stop",
|
|
359
|
+
pathVariables: {
|
|
360
|
+
id,
|
|
361
|
+
runId
|
|
362
|
+
},
|
|
363
|
+
options
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
/**
|
|
367
|
+
* Retrieves the debug log for a specific run of an automation. Depending on the space the automation belongs to, the requesting user must meet the following requirement:
|
|
368
|
+
* - Private space: be the owner of the automation and have the `automations.private` scope
|
|
369
|
+
* - Shared space: be editor or operator in shared space and have `automations.shared` scope.
|
|
370
|
+
*
|
|
371
|
+
* @param id The unique identifier for the automation.
|
|
372
|
+
* @param runId The unique identifier for the run.
|
|
373
|
+
* @throws GetAutomationRunDebugHttpError
|
|
374
|
+
*/
|
|
375
|
+
async function getAutomationRunDebug(id, runId, options) {
|
|
376
|
+
return invokeFetch("workflows/automations", {
|
|
377
|
+
method: "get",
|
|
378
|
+
pathTemplate: "/api/workflows/automations/{id}/runs/{runId}/debug",
|
|
379
|
+
pathVariables: {
|
|
380
|
+
id,
|
|
381
|
+
runId
|
|
382
|
+
},
|
|
383
|
+
options
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
/**
|
|
387
|
+
* Clears the cache for workflows/automations api requests.
|
|
388
|
+
*/
|
|
389
|
+
function clearCache() {
|
|
390
|
+
return clearApiCache("workflows/automations");
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* Functions for the automations api
|
|
394
|
+
*/
|
|
395
|
+
const automationsExport = {
|
|
396
|
+
getAutomations,
|
|
397
|
+
createAutomation,
|
|
398
|
+
getAutomationsSettings,
|
|
399
|
+
updateAutomationsSettings,
|
|
400
|
+
getAutomationsUsageMetrics,
|
|
401
|
+
deleteAutomation,
|
|
402
|
+
getAutomation,
|
|
403
|
+
updateAutomation,
|
|
404
|
+
changeOwnerAutomation,
|
|
405
|
+
changeSpaceAutomation,
|
|
406
|
+
copyAutomation,
|
|
407
|
+
disableAutomation,
|
|
408
|
+
enableAutomation,
|
|
409
|
+
moveAutomation,
|
|
410
|
+
getAutomationRuns,
|
|
411
|
+
createAutomationRun,
|
|
412
|
+
getAutomationRun,
|
|
413
|
+
exportAutomationRun,
|
|
414
|
+
retryAutomationRun,
|
|
415
|
+
stopAutomationRun,
|
|
416
|
+
getAutomationRunDebug,
|
|
417
|
+
clearCache
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
//#endregion
|
|
421
|
+
export { changeOwnerAutomation, changeSpaceAutomation, clearCache, copyAutomation, createAutomation, createAutomationRun, automationsExport as default, deleteAutomation, disableAutomation, enableAutomation, exportAutomationRun, getAutomation, getAutomationRun, getAutomationRunDebug, getAutomationRuns, getAutomations, getAutomationsSettings, getAutomationsUsageMetrics, moveAutomation, retryAutomationRun, stopAutomationRun, automations_exports as t, updateAutomation, updateAutomationsSettings };
|
package/workflows.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import automationConnectionsExport, { t as automation_connections_d_exports } from "./workflows/automation-connections.js";
|
|
2
|
+
import automationConnectorsExport, { t as automation_connectors_d_exports } from "./workflows/automation-connectors.js";
|
|
3
|
+
import automationsExport, { t as automations_d_exports } from "./workflows/automations.js";
|
|
4
|
+
|
|
5
|
+
//#region src/public/rest/workflows.d.ts
|
|
6
|
+
type WorkflowsAPI = {};
|
|
7
|
+
/**
|
|
8
|
+
* Functions for the workflows api
|
|
9
|
+
*/
|
|
10
|
+
declare const workflowsExport: WorkflowsAPI & {
|
|
11
|
+
automationConnections: typeof automationConnectionsExport;
|
|
12
|
+
automationConnectors: typeof automationConnectorsExport;
|
|
13
|
+
automations: typeof automationsExport;
|
|
14
|
+
};
|
|
15
|
+
//#endregion
|
|
16
|
+
export { WorkflowsAPI, automation_connections_d_exports as automationConnections, automation_connectors_d_exports as automationConnectors, automations_d_exports as automations, workflowsExport as default };
|
package/workflows.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "./chunks/public-runtime-modules-mBjjPn7I.js";
|
|
2
|
+
import "./chunks/invoke-fetch-DxtIsSVQ.js";
|
|
3
|
+
import automationConnectionsExport, { t as automation_connections_exports } from "./workflows/automation-connections.js";
|
|
4
|
+
import automationConnectorsExport, { t as automation_connectors_exports } from "./workflows/automation-connectors.js";
|
|
5
|
+
import automationsExport, { t as automations_exports } from "./workflows/automations.js";
|
|
6
|
+
|
|
7
|
+
//#region src/public/rest/workflows.ts
|
|
8
|
+
/**
|
|
9
|
+
* Functions for the workflows api
|
|
10
|
+
*/
|
|
11
|
+
const workflowsExport = {
|
|
12
|
+
automationConnections: automationConnectionsExport,
|
|
13
|
+
automationConnectors: automationConnectorsExport,
|
|
14
|
+
automations: automationsExport
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
//#endregion
|
|
18
|
+
export { automation_connections_exports as automationConnections, automation_connectors_exports as automationConnectors, automations_exports as automations, workflowsExport as default };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//#region src/platform/platform-types.d.ts
|
|
2
|
-
/** Data is accessible on `/resources/autogenerated/product-info.json` on any deployment */
|
|
3
|
-
type ProductInfo = {
|
|
4
|
-
composition?: {
|
|
5
|
-
contentHash?: string;
|
|
6
|
-
senseId: string;
|
|
7
|
-
releaseLabel?: string;
|
|
8
|
-
originalClassName?: string;
|
|
9
|
-
productName?: string;
|
|
10
|
-
version?: string;
|
|
11
|
-
copyrightYearRange?: string;
|
|
12
|
-
deploymentEnvironment?: string;
|
|
13
|
-
deploymentType?: "qliksenseserver" | "qliksensedesktop" | "QlikSenseMobile" | "qlikcloudservices" | "cloud-console";
|
|
14
|
-
provider?: string;
|
|
15
|
-
};
|
|
16
|
-
externalUrls: {
|
|
17
|
-
contentHash?: string;
|
|
18
|
-
originalClassName?: string;
|
|
19
|
-
personalUpgradeBase: string;
|
|
20
|
-
cloudUploadUrl: string;
|
|
21
|
-
serverHelpBaseUrl: string;
|
|
22
|
-
personalHelpBaseUrl: string;
|
|
23
|
-
personalUpgradeUrl: string;
|
|
24
|
-
qlikWebPageUrl: string;
|
|
25
|
-
cloudBaseUrl: string;
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
//#endregion
|
|
29
|
-
export { ProductInfo as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|