@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.
Files changed (170) hide show
  1. package/analytics/change-stores.d.ts +1 -4
  2. package/analytics/change-stores.js +2 -2
  3. package/analytics.d.ts +0 -1
  4. package/analytics.js +2 -2
  5. package/api-keys.d.ts +1 -3
  6. package/api-keys.js +2 -2
  7. package/apps.d.ts +16 -15
  8. package/apps.js +8 -8
  9. package/assistants.d.ts +35 -37
  10. package/assistants.js +2 -2
  11. package/audits.d.ts +1 -3
  12. package/audits.js +2 -2
  13. package/auth-types.d.ts +1 -110
  14. package/auth.d.ts +1 -1
  15. package/auth.js +1 -1
  16. package/automation-connections.d.ts +6 -7
  17. package/automation-connections.js +3 -3
  18. package/automation-connectors.d.ts +9 -7
  19. package/automation-connectors.js +2 -2
  20. package/automations.d.ts +144 -125
  21. package/automations.js +41 -26
  22. package/automl-deployments.d.ts +1 -3
  23. package/automl-deployments.js +2 -2
  24. package/automl-predictions.d.ts +1 -3
  25. package/automl-predictions.js +2 -2
  26. package/banners.d.ts +1 -3
  27. package/banners.js +2 -2
  28. package/brands.d.ts +1 -3
  29. package/brands.js +2 -2
  30. package/chunks/{auth-B8lJw7rm.js → auth-Cfg2Smt8.js} +1 -1
  31. package/chunks/auth-types-DVvka7Hz.d.ts +385 -0
  32. package/chunks/{boot-interceptors-DqRxTczb.js → interceptors-DMiDeqEz.js} +178 -52
  33. package/chunks/{invoke-fetch-pMN6iqup.js → invoke-fetch-CwBXAsw4.js} +1 -1
  34. package/chunks/{invoke-fetch-DMAi6Fg3.js → invoke-fetch-DxtIsSVQ.js} +3 -3
  35. package/chunks/{public-runtime-modules-2KfyI2qM.js → public-runtime-modules-mBjjPn7I.js} +5 -5
  36. package/chunks/{qix-BdNrIA4s.js → qix-BPCl6Bmh.js} +5 -5
  37. package/chunks/{qix-types-y_di0roE.d.ts → qix-CJntvLix.d.ts} +46 -3
  38. package/chunks/{qix-chunk-entrypoint-L9RpWwLK.js → qix-chunk-entrypoint-CyQYGyl2.js} +16 -3
  39. package/collections.d.ts +2 -5
  40. package/collections.js +3 -4
  41. package/conditions.d.ts +1 -3
  42. package/conditions.js +2 -2
  43. package/consumption.d.ts +1 -3
  44. package/consumption.js +2 -2
  45. package/core/ip-policies.d.ts +1 -4
  46. package/core/ip-policies.js +2 -2
  47. package/core.d.ts +0 -1
  48. package/core.js +2 -2
  49. package/csp-origins.d.ts +1 -3
  50. package/csp-origins.js +2 -2
  51. package/csrf-token.d.ts +1 -3
  52. package/csrf-token.js +2 -2
  53. package/data-alerts.d.ts +1 -3
  54. package/data-alerts.js +2 -2
  55. package/data-assets.d.ts +1 -3
  56. package/data-assets.js +2 -2
  57. package/data-connections.d.ts +1 -3
  58. package/data-connections.js +2 -2
  59. package/data-credentials.d.ts +1 -3
  60. package/data-credentials.js +2 -2
  61. package/data-files.d.ts +1 -3
  62. package/data-files.js +2 -2
  63. package/data-governance/data-products.d.ts +1 -4
  64. package/data-governance/data-products.js +2 -2
  65. package/data-governance.d.ts +0 -1
  66. package/data-governance.js +2 -2
  67. package/data-qualities.d.ts +13 -3
  68. package/data-qualities.js +8 -2
  69. package/data-sets.d.ts +1 -3
  70. package/data-sets.js +2 -2
  71. package/data-sources.d.ts +1 -3
  72. package/data-sources.js +2 -2
  73. package/data-stores.d.ts +1 -3
  74. package/data-stores.js +2 -2
  75. package/dcaas.d.ts +1 -3
  76. package/dcaas.js +2 -2
  77. package/di-projects.d.ts +28 -8
  78. package/di-projects.js +2 -2
  79. package/direct-access-agents.d.ts +1 -3
  80. package/direct-access-agents.js +2 -2
  81. package/encryption.d.ts +1 -3
  82. package/encryption.js +2 -2
  83. package/extensions.d.ts +1 -3
  84. package/extensions.js +2 -2
  85. package/global-types.d.ts +2 -140
  86. package/glossaries.d.ts +1 -3
  87. package/glossaries.js +2 -2
  88. package/groups.d.ts +1 -3
  89. package/groups.js +2 -2
  90. package/identity-providers.d.ts +1 -3
  91. package/identity-providers.js +2 -2
  92. package/index.d.ts +18 -5
  93. package/index.js +63 -6
  94. package/interceptors.d.ts +1 -3
  95. package/interceptors.js +1 -103
  96. package/invoke-fetch-types.d.ts +1 -97
  97. package/items.d.ts +1 -3
  98. package/items.js +2 -2
  99. package/knowledgebases.d.ts +27 -50
  100. package/knowledgebases.js +2 -2
  101. package/licenses.d.ts +1 -3
  102. package/licenses.js +2 -2
  103. package/lineage-graphs.d.ts +1 -3
  104. package/lineage-graphs.js +2 -2
  105. package/ml.d.ts +1 -3
  106. package/ml.js +2 -2
  107. package/notes.d.ts +9 -3
  108. package/notes.js +6 -2
  109. package/notifications.d.ts +1 -3
  110. package/notifications.js +2 -2
  111. package/oauth-clients.d.ts +1 -3
  112. package/oauth-clients.js +2 -2
  113. package/oauth-tokens.d.ts +1 -3
  114. package/oauth-tokens.js +2 -2
  115. package/package.json +6 -2
  116. package/qix.d.ts +1 -47
  117. package/qix.js +1 -1
  118. package/questions.d.ts +1 -3
  119. package/questions.js +2 -2
  120. package/quotas.d.ts +1 -3
  121. package/quotas.js +2 -2
  122. package/reload-tasks.d.ts +1 -3
  123. package/reload-tasks.js +2 -2
  124. package/reloads.d.ts +13 -6
  125. package/reloads.js +2 -2
  126. package/report-templates.d.ts +3 -4
  127. package/report-templates.js +2 -2
  128. package/reports.d.ts +1 -3
  129. package/reports.js +2 -2
  130. package/roles.d.ts +1 -3
  131. package/roles.js +2 -2
  132. package/sharing-tasks.d.ts +1 -3
  133. package/sharing-tasks.js +2 -2
  134. package/spaces.d.ts +1 -3
  135. package/spaces.js +2 -2
  136. package/tasks.d.ts +1 -3
  137. package/tasks.js +2 -2
  138. package/temp-contents.d.ts +1 -3
  139. package/temp-contents.js +2 -2
  140. package/tenant-settings.d.ts +1 -3
  141. package/tenant-settings.js +2 -2
  142. package/tenants.d.ts +2 -4
  143. package/tenants.js +2 -2
  144. package/themes.d.ts +1 -3
  145. package/themes.js +2 -2
  146. package/transports.d.ts +1 -3
  147. package/transports.js +2 -2
  148. package/ui-config.d.ts +1 -3
  149. package/ui-config.js +2 -2
  150. package/users.d.ts +1 -3
  151. package/users.js +2 -2
  152. package/web-integrations.d.ts +1 -3
  153. package/web-integrations.js +2 -2
  154. package/web-notifications.d.ts +1 -3
  155. package/web-notifications.js +2 -2
  156. package/webhooks.d.ts +7 -9
  157. package/webhooks.js +2 -2
  158. package/workflows/automation-connections.d.ts +317 -0
  159. package/workflows/automation-connections.js +164 -0
  160. package/workflows/automation-connectors.d.ts +79 -0
  161. package/workflows/automation-connectors.js +40 -0
  162. package/workflows/automations.d.ts +790 -0
  163. package/workflows/automations.js +421 -0
  164. package/workflows.d.ts +16 -0
  165. package/workflows.js +18 -0
  166. package/chunks/platform-types-CECrZkOF.d.ts +0 -29
  167. /package/chunks/{dist-DR758NU5.js → dist-BcgFfLgM.js} +0 -0
  168. /package/chunks/{invoke-fetch-DFc3yzaj.d.ts → invoke-fetch-DcuB8t5I.d.ts} +0 -0
  169. /package/chunks/{utils-jkpLuYZR.js → utils-B7chC9_U.js} +0 -0
  170. /package/chunks/{websocket-errors-C5U1tba-.js → websocket-errors-C6cw1uQN.js} +0 -0
package/global-types.d.ts CHANGED
@@ -1,140 +1,2 @@
1
- import { CacheEntry } from "./invoke-fetch-types.js";
2
- import { t as ProductInfo } from "./chunks/platform-types-CECrZkOF.js";
3
-
4
- //#region src/global-types.d.ts
5
- /** ApiKey Auth Configuration for a HostConfig */
6
- type ApiKeyAuthConfig = {
7
- /** api key created by a developer role on a tenant */apiKey: string;
8
- };
9
- /** Cookie Auth Configuration for a HostConfig */
10
- type CookieAuthConfig = {
11
- /** Web Integration Id created by tenant admin */webIntegrationId?: string; /** If set to false the `credentials` property will be set to same-origin */
12
- crossSiteCookies?: boolean; /** Set to true if browser is running in anonymous mode, which is detected if there's a eac token in the url */
13
- anonymousMode?: boolean;
14
- };
15
- /** WindowsCookie Auth Configuration for a HostConfig */
16
- type WindowsCookieAuthConfig = {
17
- /** location of the login page, auth module will redirect to this page when an unauthenticated api call is made. Not applicable in Node.js environments. */loginUri?: string; /** If set to false the `credentials` property will be set to same-origin. Not applicable in Node.js environments. */
18
- crossSiteCookies?: boolean;
19
- /**
20
- * A custom function that can be used to fetch a windows auth jwt.
21
- * The jwt will be exchanged for a session cookie.
22
- * In the browser this should typically fetch the jwt from a custom backend service.
23
- * Mandatory in Node.js environments.
24
- */
25
- getAccessToken?: string | (() => Promise<string>);
26
- };
27
- type PerformInteractiveLoginFn = (props: {
28
- /**
29
- * Returns the url to the login page. The redirectUri parameter property is used to tell the login page where to redirect the browser after the login has succeeded.
30
- * Note that the redirectUri needs to be registered in the oauth configuration.
31
- */
32
- getLoginUrl: (props: {
33
- redirectUri: string;
34
- }) => Promise<string>;
35
- }) => Promise<{
36
- code: string;
37
- state: string;
38
- } | string>;
39
- /** OAuth2 Auth Configuration for a HostConfig */
40
- type Oauth2AuthConfig = {
41
- /** client id of oauth client created by tenant admin */clientId: string; /** client id of oauth client created by tenant admin */
42
- clientSecret?: string; /** location of where the client should be redirected after getting hold of the access token */
43
- redirectUri?: string; /** If set, store the access token in either local or session storage, otherwise not stored */
44
- accessTokenStorage?: "session" | "local"; /** A string with comma separated values of oauth2 scopes https://oauth.net/2/scope defaults to "user_default" */
45
- scope?: string;
46
- /**
47
- * A custom function that can be used on the client side to fetch an oauth access token from a custom backend.
48
- * Typically used in oauth impersonation.
49
- */
50
- getAccessToken?: string | (() => Promise<string>);
51
- /**
52
- * If set to true no caching or storing of the access token is done.
53
- * This is typically used on the serverside with impersonation so that a client always gets a fresh token.
54
- * Caching is in that case handled on the client side.
55
- */
56
- noCache?: boolean;
57
- /**
58
- * Can be used on the serverside to impersonate a specific user when authenticating using a client secret.
59
- * Typically used together with the `noCache` since caching is done on the browser side.
60
- */
61
- subject?: string;
62
- /**
63
- * Can be used on the serverside to impersonate a specific user when authenticating using a client secret.
64
- * Typically used together with the `noCache` since caching is done on the browser side.
65
- */
66
- userId?: string;
67
- /**
68
- * Can be used to customize the login flow, for instance if the login page should be shown in another browser tab/window.
69
- * The function is asynchronous and when the loging flow is finished it should return the code and state provided in the
70
- * query of the oauth redirect callback. The code and state can either be provided as an object or as the entire callback url.
71
- */
72
- performInteractiveLogin?: PerformInteractiveLoginFn;
73
- };
74
- /** Anonymous Auth Configuration for a HostConfig - used when embedding UI's linked to an anonymous tenant/app */
75
- type AnonymousAuthConfig = {
76
- /**
77
- * Experimental and unsupported
78
- */
79
- accessCode: string; /** client id of oauth client created by tenant admin */
80
- clientId: string;
81
- };
82
- /** Used to reference a registered host config as a single string */
83
- type ReferenceConfig = {
84
- /** The name of the registered host config to reference */reference: string;
85
- };
86
- declare global {
87
- /**
88
- * QlikAuthModules is a global interface that can be extended to add custom auth modules.
89
- */
90
- interface QlikAuthModules {
91
- apikey: {
92
- config: ApiKeyAuthConfig;
93
- };
94
- oauth2: {
95
- config: Oauth2AuthConfig;
96
- };
97
- cookie: {
98
- config: CookieAuthConfig;
99
- };
100
- anonymous: {
101
- config: AnonymousAuthConfig;
102
- };
103
- windowscookie: {
104
- config: WindowsCookieAuthConfig;
105
- };
106
- reference: {
107
- config: ReferenceConfig;
108
- };
109
- none: {
110
- config: object;
111
- };
112
- noauth: {
113
- config: object;
114
- };
115
- }
116
- /**
117
- * Property set on the window when the user is logging out.
118
- * This prevents unnecessary redirect calls when pending requests
119
- * resolved.
120
- */
121
- var loggingOut: boolean;
122
- /**
123
- * Attaching cache to the window so it can be viewed from the devtool.
124
- * Do not use this for anything!
125
- */
126
- var __API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Record<string, Record<string, CacheEntry> | undefined>;
127
- /**
128
- * QlikMain object
129
- */
130
- var QlikMain: {
131
- resourceNeedsCredentials: (resourcesUrl: string) => boolean;
132
- applyFeatureOverrides: (featureFlags: Record<string, boolean>) => Promise<void>;
133
- PRODUCT_INFO?: ProductInfo;
134
- REGION?: string;
135
- ENVIRONMENT?: string;
136
- INTERNAL__DO_NOT_USE: Record<string, unknown>;
137
- } | undefined;
138
- }
139
- //#endregion
140
- export { PerformInteractiveLoginFn };
1
+ import { v as PerformInteractiveLoginFn, y as SecretStorage } from "./chunks/auth-types-DVvka7Hz.js";
2
+ export { PerformInteractiveLoginFn, SecretStorage };
package/glossaries.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { ApiCallOptions } from "./invoke-fetch-types.js";
2
- import "./chunks/invoke-fetch-DFc3yzaj.js";
3
-
1
+ import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
4
2
  //#region src/public/rest/glossaries.d.ts
5
3
  /**
6
4
  * A JSON Patch document as defined in https://tools.ietf.org/html/rfc6902.
package/glossaries.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/glossaries.ts
5
5
  /**
package/groups.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { ApiCallOptions } from "./invoke-fetch-types.js";
2
- import "./chunks/invoke-fetch-DFc3yzaj.js";
3
-
1
+ import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
4
2
  //#region src/public/rest/groups.d.ts
5
3
  /**
6
4
  * An array of role references. Visibility dependant on access level. Must have access to roles to view other users' assigned roles.
package/groups.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/groups.ts
5
5
  /**
@@ -1,6 +1,4 @@
1
- import { ApiCallOptions } from "./invoke-fetch-types.js";
2
- import "./chunks/invoke-fetch-DFc3yzaj.js";
3
-
1
+ import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
4
2
  //#region src/public/rest/identity-providers.d.ts
5
3
  type BaseIDP = {
6
4
  /** Indicates whether the IdP is available for use. */active?: boolean;
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/identity-providers.ts
5
5
  /**
package/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
- import { HostConfig } from "./auth-types.js";
2
- import "./chunks/invoke-fetch-DFc3yzaj.js";
1
+ import { d as HostConfig } from "./chunks/auth-types-DVvka7Hz.js";
3
2
  import { InterceptorsAPI, createInterceptors } from "./interceptors.js";
4
3
  import { AuthAPI, getAccessToken, getWebResourceAuthParams, registerAuthModule, registerHostConfig, setDefaultHostConfig, unregisterHostConfig } from "./auth.js";
5
- import "./chunks/qix-types-y_di0roE.js";
6
- import { QixAPI } from "./qix.js";
4
+ import { t as QixAPI } from "./chunks/qix-CJntvLix.js";
7
5
  import { ChangeStoresAPI } from "./analytics/change-stores.js";
8
6
  import { AnalyticsAPI } from "./analytics.js";
9
7
  import { ApiKeysAPI } from "./api-keys.js";
@@ -72,6 +70,10 @@ import { UsersAPI } from "./users.js";
72
70
  import { WebIntegrationsAPI } from "./web-integrations.js";
73
71
  import { WebNotificationsAPI } from "./web-notifications.js";
74
72
  import { WebhooksAPI } from "./webhooks.js";
73
+ import { AutomationConnectionsAPI as AutomationConnectionsAPI$1 } from "./workflows/automation-connections.js";
74
+ import { AutomationConnectorsAPI as AutomationConnectorsAPI$1 } from "./workflows/automation-connectors.js";
75
+ import { AutomationsAPI as AutomationsAPI$1 } from "./workflows/automations.js";
76
+ import { WorkflowsAPI } from "./workflows.js";
75
77
 
76
78
  //#region src/public/index.d.ts
77
79
  declare const auth: {
@@ -159,6 +161,11 @@ declare const users: UsersAPI;
159
161
  declare const webIntegrations: WebIntegrationsAPI;
160
162
  declare const webNotifications: WebNotificationsAPI;
161
163
  declare const webhooks: WebhooksAPI;
164
+ declare const workflows: {
165
+ automationConnections: AutomationConnectionsAPI$1;
166
+ automationConnectors: AutomationConnectorsAPI$1;
167
+ automations: AutomationsAPI$1;
168
+ };
162
169
  interface QlikAPI {
163
170
  /** Functions for the auth api */
164
171
  auth: AuthAPI;
@@ -302,6 +309,12 @@ interface QlikAPI {
302
309
  webNotifications: WebNotificationsAPI;
303
310
  /** Functions for the webhooks api */
304
311
  webhooks: WebhooksAPI;
312
+ /** Functions for the workflows api */
313
+ workflows: WorkflowsAPI & {
314
+ automationConnections: AutomationConnectionsAPI$1;
315
+ automationConnectors: AutomationConnectorsAPI$1;
316
+ automations: AutomationsAPI$1;
317
+ };
305
318
  }
306
319
  type CreateQlikApiProps = {
307
320
  hostConfig?: HostConfig;
@@ -314,4 +327,4 @@ declare const api: QlikAPI & {
314
327
  }) => QlikAPI;
315
328
  };
316
329
  //#endregion
317
- export { CreateQlikApiProps, QlikAPI, analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks };
330
+ export { CreateQlikApiProps, QlikAPI, analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks, workflows };
package/index.js CHANGED
@@ -1,8 +1,7 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
  import auth_default from "./auth.js";
4
- import "./chunks/boot-interceptors-DqRxTczb.js";
5
- import interceptors$1 from "./interceptors.js";
4
+ import { a as interceptors$1 } from "./chunks/interceptors-DMiDeqEz.js";
6
5
  import qix$1 from "./qix.js";
7
6
 
8
7
  //#region src/runtime-api-generator/runtime-api-generator-common.ts
@@ -1206,6 +1205,61 @@ const createWebhooksRuntimeAPI = apiDefToApiPublic("webhooks", { api: { v1: { we
1206
1205
  }
1207
1206
  }
1208
1207
  } } } });
1208
+ const createWorkflowsAutomationConnectionsRuntimeAPI = apiDefToApiPublic("workflows/automation-connections", { api: { workflows: { "automation-connections": {
1209
+ "": ["getAutomationConnections:GQ:", "createAutomationConnection:PBJ:"],
1210
+ "{id}": {
1211
+ "": [
1212
+ "deleteAutomationConnection:DQ:",
1213
+ "getAutomationConnection:G:",
1214
+ "updateAutomationConnection:UBJ:"
1215
+ ],
1216
+ actions: {
1217
+ "change-owner": ["changeOwnerAutomationConnection:PBJ:"],
1218
+ "change-space": ["changeSpaceAutomationConnection:PBJ:"],
1219
+ check: ["checkAutomationConnection:P:"]
1220
+ }
1221
+ }
1222
+ } } } });
1223
+ const createWorkflowsAutomationConnectorsRuntimeAPI = apiDefToApiPublic("workflows/automation-connectors", { api: { workflows: { "automation-connectors": ["getAutomationConnectors:GQ:"] } } });
1224
+ const createWorkflowsAutomationsRuntimeAPI = apiDefToApiPublic("workflows/automations", { api: { workflows: { automations: {
1225
+ "": ["getAutomations:GQ:", "createAutomation:PBJ:"],
1226
+ settings: ["getAutomationsSettings:G:", "updateAutomationsSettings:UBJ:"],
1227
+ usage: ["getAutomationsUsageMetrics:GQ:"],
1228
+ "{id}": {
1229
+ "": [
1230
+ "deleteAutomation:D:",
1231
+ "getAutomation:G:",
1232
+ "updateAutomation:UBJ:"
1233
+ ],
1234
+ actions: {
1235
+ "change-owner": ["changeOwnerAutomation:PBJ:"],
1236
+ "change-space": ["changeSpaceAutomation:PBJ:"],
1237
+ copy: ["copyAutomation:PBJ:"],
1238
+ disable: ["disableAutomation:P:"],
1239
+ enable: ["enableAutomation:P:"],
1240
+ move: ["moveAutomation:PBJ:"]
1241
+ },
1242
+ runs: {
1243
+ "": ["getAutomationRuns:GQ:", "createAutomationRun:PBJ:"],
1244
+ "{runId}": {
1245
+ "": ["getAutomationRun:G:"],
1246
+ actions: {
1247
+ export: ["exportAutomationRun:P:"],
1248
+ retry: ["retryAutomationRun:P:"],
1249
+ stop: ["stopAutomationRun:P:"]
1250
+ },
1251
+ debug: ["getAutomationRunDebug:G:"]
1252
+ }
1253
+ }
1254
+ }
1255
+ } } } });
1256
+ const createWorkflowsRuntimeAPI = apiDefToApiPublic("workflows", {}, {
1257
+ "automation-connections": createWorkflowsAutomationConnectionsRuntimeAPI,
1258
+ automationConnections: createWorkflowsAutomationConnectionsRuntimeAPI,
1259
+ "automation-connectors": createWorkflowsAutomationConnectorsRuntimeAPI,
1260
+ automationConnectors: createWorkflowsAutomationConnectorsRuntimeAPI,
1261
+ automations: createWorkflowsAutomationsRuntimeAPI
1262
+ });
1209
1263
  const auth = auth_default;
1210
1264
  const interceptors = interceptors_default;
1211
1265
  const qix = qix$1;
@@ -1274,6 +1328,7 @@ const users = createUsersRuntimeAPI(void 0, interceptors_default);
1274
1328
  const webIntegrations = createWebIntegrationsRuntimeAPI(void 0, interceptors_default);
1275
1329
  const webNotifications = createWebNotificationsRuntimeAPI(void 0, interceptors_default);
1276
1330
  const webhooks = createWebhooksRuntimeAPI(void 0, interceptors_default);
1331
+ const workflows = createWorkflowsRuntimeAPI(void 0, interceptors_default);
1277
1332
  const createQlikApi = (props) => {
1278
1333
  const scopedInterceptors = interceptors_default.createInterceptors();
1279
1334
  return {
@@ -1344,7 +1399,8 @@ const createQlikApi = (props) => {
1344
1399
  users: createUsersRuntimeAPI(props?.hostConfig, scopedInterceptors),
1345
1400
  webIntegrations: createWebIntegrationsRuntimeAPI(props?.hostConfig, scopedInterceptors),
1346
1401
  webNotifications: createWebNotificationsRuntimeAPI(props?.hostConfig, scopedInterceptors),
1347
- webhooks: createWebhooksRuntimeAPI(props?.hostConfig, scopedInterceptors)
1402
+ webhooks: createWebhooksRuntimeAPI(props?.hostConfig, scopedInterceptors),
1403
+ workflows: createWorkflowsRuntimeAPI(props?.hostConfig, scopedInterceptors)
1348
1404
  };
1349
1405
  };
1350
1406
  /** Javascript/Typescript bindings to Qlik's platform API's */
@@ -1417,8 +1473,9 @@ const api = {
1417
1473
  webIntegrations,
1418
1474
  webNotifications,
1419
1475
  webhooks,
1476
+ workflows,
1420
1477
  createQlikApi
1421
1478
  };
1422
1479
 
1423
1480
  //#endregion
1424
- export { analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks };
1481
+ export { analytics, apiKeys, apps, assistants, audits, auth, automationConnections, automationConnectors, automations, automlDeployments, automlPredictions, banners, brands, collections, conditions, consumption, core, createQlikApi, cspOrigins, csrfToken, dataAlerts, dataAssets, dataConnections, dataCredentials, dataFiles, dataGovernance, dataQualities, dataSets, dataSources, dataStores, dcaas, api as default, diProjects, directAccessAgents, encryption, extensions, glossaries, groups, identityProviders, interceptors, items, knowledgebases, licenses, lineageGraphs, ml, notes, notifications, oauthClients, oauthTokens, qix, questions, quotas, reloadTasks, reloads, reportTemplates, reports, roles, sharingTasks, spaces, tasks, tempContents, tenantSettings, tenants, themes, transports, uiConfig, users, webIntegrations, webNotifications, webhooks, workflows };
package/interceptors.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { InvokeFetchProperties, InvokeFetchResponse } from "./invoke-fetch-types.js";
2
- import "./chunks/invoke-fetch-DFc3yzaj.js";
3
-
1
+ import { T as InvokeFetchResponse, w as InvokeFetchProperties } from "./chunks/auth-types-DVvka7Hz.js";
4
2
  //#region src/interceptors/interceptors.d.ts
5
3
  /**
6
4
  * The RestInterceptor type is a function that can be used to intercept requests and responses
package/interceptors.js CHANGED
@@ -1,105 +1,3 @@
1
- import { r as isBrowser } from "./chunks/utils-jkpLuYZR.js";
2
- import { t as coreBootInterceptor } from "./chunks/boot-interceptors-DqRxTczb.js";
1
+ import { a as interceptors, i as getInterceptors, n as addInterceptor, o as removeInterceptor, r as createInterceptors, t as addDefaultInterceptors } from "./chunks/interceptors-DMiDeqEz.js";
3
2
 
4
- //#region src/interceptors/interceptors.ts
5
- let GLOBAL_INTERCEPTORS;
6
- function createInterceptors() {
7
- const interceptors = [...GLOBAL_INTERCEPTORS?.getInterceptors() || []];
8
- return {
9
- addInterceptor: (interceptor) => {
10
- interceptors.push(interceptor);
11
- return interceptor;
12
- },
13
- removeInterceptor: (interceptor) => {
14
- const index = interceptors.indexOf(interceptor);
15
- let removed;
16
- if (index !== -1) removed = interceptors.splice(index, 1)[0];
17
- return removed || null;
18
- },
19
- getInterceptors: () => interceptors
20
- };
21
- }
22
- let addDefaultInterceptorsRun = false;
23
- function addDefaultInterceptors() {
24
- if (addDefaultInterceptorsRun) return;
25
- if (isBrowser()) {
26
- const readFlagsFromUrlQuery = () => {
27
- const featuresParam = new URLSearchParams(window.location.search).get("features");
28
- if (!featuresParam) return {};
29
- return featuresParam.split(",").map((item) => item.trim()).reduce((map, obj) => {
30
- const value = !obj.startsWith("!");
31
- const key = value ? obj : obj.substring(1);
32
- map[key] = value;
33
- return map;
34
- }, {});
35
- };
36
- const readFlagsFromLocalStorage = () => {
37
- try {
38
- const featuresParam = localStorage.getItem("qcs-features");
39
- if (featuresParam) return JSON.parse(featuresParam);
40
- return {};
41
- } catch {
42
- return {};
43
- }
44
- };
45
- const flagsFromUrl = readFlagsFromUrlQuery();
46
- const flagsFromLocalStorage = readFlagsFromLocalStorage();
47
- const featuresInterceptor = async (request, proceed) => {
48
- let resultPromise;
49
- if (request.pathTemplate === "/api/v1/features") {
50
- resultPromise = proceed(request);
51
- const result = await resultPromise;
52
- return {
53
- ...result,
54
- data: {
55
- ...result.data || {},
56
- ...flagsFromLocalStorage,
57
- ...flagsFromUrl
58
- }
59
- };
60
- }
61
- return proceed(request);
62
- };
63
- GLOBAL_INTERCEPTORS.addInterceptor(featuresInterceptor);
64
- GLOBAL_INTERCEPTORS.addInterceptor(coreBootInterceptor);
65
- }
66
- addDefaultInterceptorsRun = true;
67
- }
68
- /**
69
- * The global interceptor stack
70
- */
71
- GLOBAL_INTERCEPTORS = createInterceptors();
72
- /**
73
- * Adds an interceptor to the global interceptor stack
74
- * Returns the newly added interceptor
75
- * @param interceptor the interceptor to add
76
- * @returns the newly added interceptor
77
- */
78
- function addInterceptor(interceptor) {
79
- return GLOBAL_INTERCEPTORS.addInterceptor(interceptor);
80
- }
81
- /**
82
- * Removes an interceptor from the global interceptor stack
83
- * @param interceptor the interceptor remove
84
- */
85
- function removeInterceptor(interceptor) {
86
- return GLOBAL_INTERCEPTORS.removeInterceptor(interceptor);
87
- }
88
- /**
89
- * Gets all registered interceptors
90
- */
91
- function getInterceptors() {
92
- return GLOBAL_INTERCEPTORS.getInterceptors();
93
- }
94
- /**
95
- * The interceptors API
96
- */
97
- const interceptors = {
98
- addInterceptor,
99
- removeInterceptor,
100
- getInterceptors,
101
- createInterceptors
102
- };
103
-
104
- //#endregion
105
3
  export { addDefaultInterceptors, addInterceptor, createInterceptors, interceptors as default, getInterceptors, removeInterceptor };
@@ -1,98 +1,2 @@
1
- import { HostConfig } from "./auth-types.js";
2
-
3
- //#region src/invoke-fetch/invoke-fetch-types.d.ts
4
- /** The typical base return type of a fetch call */
5
- type InvokeFetchResponse = {
6
- status: number;
7
- headers: Headers;
8
- data: unknown;
9
- prev?: () => Promise<InvokeFetchResponse>;
10
- next?: () => Promise<InvokeFetchResponse>;
11
- };
12
- /** An entry in the cache for one specific cacheKey */
13
- type CacheEntry = {
14
- lastPulled: number; /** last time the cache was accessed and prevented an api call */
15
- lastHit: Date | null; /** number of times the cache has been hit by a client */
16
- hitCount: number; /** the url path of the cache hit. Useful to determine how many different qmfes are accessing the cache key */
17
- accessedPaths: Set<string>;
18
- value: Promise<unknown>;
19
- };
20
- /** Part of the ApiOptions type that includes caching-related properties */
21
- type CacheOptions = {
22
- noCache?: boolean;
23
- maxCacheAge?: number;
24
- useCacheIfAfter?: Date;
25
- };
26
- /** Additional options for an api call done with invoke-fetch */
27
- type ApiCallOptions = {
28
- /** Additional headers to pass on to the request. */headers?: Record<string, string>; /** if set to true the call will not use a cached result */
29
- noCache?: boolean;
30
- /**
31
- * Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
32
- */
33
- maxCacheAge?: number | undefined;
34
- /**
35
- * Only results cached on or after the `ifCachedSince` timestamp are used.
36
- */
37
- useCacheIfAfter?: Date;
38
- /**
39
- * Specify the host config if the api call is a cross-domain request. Typically used in embedding and mashups
40
- */
41
- hostConfig?: HostConfig;
42
- /**
43
- * Set the amount of time to wait for a response.
44
- * If the timeout is exceeded the request is aborted.
45
- * If both timeoutMs and signal is present, timeoutMs will have no effect, as
46
- * there is already an abort-signal specified.
47
- */
48
- timeoutMs?: number;
49
- /**
50
- * An abort-signal lets you abort an ongoing fetch request. The abort-signal is created
51
- * by taking the .signal property of an AbortController.
52
- */
53
- signal?: AbortSignal;
54
- /**
55
- * Ensure that the request is kept alive even if the page that initiated it is unloaded
56
- * before the request is completed.
57
- */
58
- keepalive?: boolean;
59
- /**
60
- * Options for progress-reporting. Specify any combination of the callbacks `onUpload`
61
- * and `onDownload`. Progress will be reported continuously.
62
- */
63
- progress?: ProgressOptions;
64
- };
65
- type InvokeFetchProperties = {
66
- /** http method */method: string; /** data passed to api call */
67
- body?: unknown; /** additional api call options */
68
- options?: ApiCallOptions; /** override default RequestInit options */
69
- requestInitOverrides?: RequestInit; /** path to api endpoint, can be in a template format e.g. /api/v1/space/{spaceId} */
70
- pathTemplate: string; /** path variables to be used in the path template */
71
- pathVariables?: Record<string, string>; /** additional query to url */
72
- query?: Record<string, unknown>; /** specify what content-type to send, if omitted "application/json" is assumed */
73
- contentType?: string; /** override the default user-agent with this value. This will also override any browser's UA. */
74
- userAgent?: string;
75
- };
76
- type DownloadableBlob = Blob & {
77
- /** download the blob in a using the specified filename */download: (filename: string) => Promise<void>;
78
- };
79
- /** The callback options for reporting progress. */
80
- type ProgressOptions = {
81
- /** upload callback, called repeatedly when upload-progress is available */onUpload?: (event: PartialProgressEvent) => void; /** download callback, called repeatedly when upload-progress is available */
82
- onDownload?: (event: PartialProgressEvent) => void;
83
- };
84
- /** Represents the current upload or download progress a API-call.
85
- *
86
- * It contains the number of loaded bytes and, if computable, the total payload size.
87
- * If the total size cannot be determined, `total` will be undefined.
88
- *
89
- *
90
- * See MDN: {@link https://developer.mozilla.org/en-US/docs/Web/API/ProgressEvent}
91
- */
92
- type PartialProgressEvent = {
93
- /** Number of bytes currently loaded. */loaded: ProgressEvent["loaded"]; /** The total size of the payload, if computable. */
94
- total?: ProgressEvent["total"];
95
- };
96
- declare const _default: {};
97
- //#endregion
1
+ import { C as DownloadableBlob, D as ProgressOptions, E as PartialProgressEvent, O as _default, S as CacheOptions, T as InvokeFetchResponse, b as ApiCallOptions, w as InvokeFetchProperties, x as CacheEntry } from "./chunks/auth-types-DVvka7Hz.js";
98
2
  export { ApiCallOptions, CacheEntry, CacheOptions, DownloadableBlob, InvokeFetchProperties, InvokeFetchResponse, PartialProgressEvent, ProgressOptions, _default as default };
package/items.d.ts CHANGED
@@ -1,6 +1,4 @@
1
- import { ApiCallOptions } from "./invoke-fetch-types.js";
2
- import "./chunks/invoke-fetch-DFc3yzaj.js";
3
-
1
+ import { b as ApiCallOptions } from "./chunks/auth-types-DVvka7Hz.js";
4
2
  //#region src/public/rest/items.d.ts
5
3
  type CollectionTypes = "private" | "public" | "publicgoverned";
6
4
  type ErrorResponseBody = {
package/items.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./chunks/public-runtime-modules-2KfyI2qM.js";
2
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DMAi6Fg3.js";
1
+ import "./chunks/public-runtime-modules-mBjjPn7I.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-DxtIsSVQ.js";
3
3
 
4
4
  //#region src/public/rest/items.ts
5
5
  /**