@qlik/api 1.30.0 → 1.32.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 (138) hide show
  1. package/api-keys.d.ts +2 -2
  2. package/api-keys.js +2 -2
  3. package/apps.d.ts +4 -2
  4. package/apps.js +2 -2
  5. package/assistants.d.ts +1301 -0
  6. package/assistants.js +273 -0
  7. package/audits.d.ts +2 -2
  8. package/audits.js +2 -2
  9. package/{auth-types-PkN9CAF_.d.ts → auth-types-DqfMuSRX.d.ts} +1 -0
  10. package/auth.d.ts +27 -3
  11. package/auth.js +8 -4
  12. package/automation-connections.d.ts +366 -0
  13. package/automation-connections.js +91 -0
  14. package/automations.d.ts +2 -2
  15. package/automations.js +2 -2
  16. package/automl-deployments.d.ts +97 -0
  17. package/automl-deployments.js +27 -0
  18. package/automl-predictions.d.ts +214 -0
  19. package/automl-predictions.js +72 -0
  20. package/brands.d.ts +2 -2
  21. package/brands.js +2 -2
  22. package/chunks/{JIX6RMFP.js → 6ZONDHRN.js} +1 -1
  23. package/chunks/ETNHFALU.js +61 -0
  24. package/chunks/{G6QUM5WQ.js → FKDGGR2O.js} +137 -45
  25. package/chunks/{TXC5XORK.js → LTNGXTXG.js} +3 -3
  26. package/chunks/{OTTC4QSX.js → LY7RP2HA.js} +7 -3
  27. package/chunks/{FKCZFVJL.js → M64RLKVG.js} +2074 -12
  28. package/chunks/{F5UDCCRD.js → PLVPW5IR.js} +1 -1
  29. package/chunks/{QK4TMJ64.js → RCLKKVYB.js} +11 -1
  30. package/chunks/{QWQLGDMI.js → UZTIZ4H5.js} +392 -372
  31. package/chunks/{PTDXR7AY.js → VVD2DPKQ.js} +2 -2
  32. package/chunks/{IQBP2PKS.js → YTT2FEVE.js} +1 -1
  33. package/collections.d.ts +3 -3
  34. package/collections.js +2 -2
  35. package/conditions.d.ts +662 -0
  36. package/conditions.js +113 -0
  37. package/consumption.d.ts +182 -0
  38. package/consumption.js +24 -0
  39. package/csp-origins.d.ts +2 -2
  40. package/csp-origins.js +2 -2
  41. package/csrf-token.d.ts +62 -0
  42. package/csrf-token.js +23 -0
  43. package/data-alerts.d.ts +1004 -0
  44. package/data-alerts.js +155 -0
  45. package/data-assets.d.ts +2 -2
  46. package/data-assets.js +2 -2
  47. package/data-connections.d.ts +7 -7
  48. package/data-connections.js +2 -2
  49. package/data-credentials.d.ts +2 -2
  50. package/data-credentials.js +2 -2
  51. package/data-files.d.ts +2 -2
  52. package/data-files.js +2 -2
  53. package/data-qualities.d.ts +175 -0
  54. package/data-qualities.js +44 -0
  55. package/data-sets.d.ts +424 -0
  56. package/data-sets.js +75 -0
  57. package/data-sources.d.ts +268 -0
  58. package/data-sources.js +39 -0
  59. package/data-stores.d.ts +537 -0
  60. package/data-stores.js +108 -0
  61. package/dcaas.d.ts +192 -0
  62. package/dcaas.js +39 -0
  63. package/di-projects.d.ts +673 -0
  64. package/di-projects.js +164 -0
  65. package/docs/authentication.md +47 -0
  66. package/encryption.d.ts +370 -0
  67. package/encryption.js +98 -0
  68. package/extensions.d.ts +2 -2
  69. package/extensions.js +2 -2
  70. package/glossaries.d.ts +2 -2
  71. package/glossaries.js +2 -2
  72. package/groups.d.ts +5 -4
  73. package/groups.js +2 -2
  74. package/identity-providers.d.ts +2 -2
  75. package/identity-providers.js +2 -2
  76. package/index.d.ts +110 -4
  77. package/index.js +556 -4
  78. package/interceptors.d.ts +2 -2
  79. package/{invoke-fetch-types-BXn-uSF5.d.ts → invoke-fetch-types-Cq7bjkqn.d.ts} +10 -2
  80. package/items.d.ts +3 -3
  81. package/items.js +2 -2
  82. package/knowledgebases.d.ts +890 -0
  83. package/knowledgebases.js +169 -0
  84. package/licenses.d.ts +6 -3
  85. package/licenses.js +2 -2
  86. package/lineage-graphs.d.ts +712 -0
  87. package/lineage-graphs.js +92 -0
  88. package/ml.d.ts +2628 -0
  89. package/ml.js +384 -0
  90. package/notes.d.ts +110 -0
  91. package/notes.js +31 -0
  92. package/notifications.d.ts +98 -0
  93. package/notifications.js +24 -0
  94. package/oauth-clients.d.ts +7 -2
  95. package/oauth-clients.js +2 -2
  96. package/oauth-tokens.d.ts +126 -0
  97. package/oauth-tokens.js +31 -0
  98. package/package.json +29 -2
  99. package/qix.d.ts +421 -26
  100. package/qix.js +2 -2
  101. package/questions.d.ts +364 -0
  102. package/questions.js +34 -0
  103. package/quotas.d.ts +2 -2
  104. package/quotas.js +2 -2
  105. package/reload-tasks.d.ts +4 -2
  106. package/reload-tasks.js +2 -2
  107. package/reloads.d.ts +4 -2
  108. package/reloads.js +2 -2
  109. package/report-templates.d.ts +287 -0
  110. package/report-templates.js +80 -0
  111. package/reports.d.ts +2 -2
  112. package/reports.js +2 -2
  113. package/roles.d.ts +2 -2
  114. package/roles.js +2 -2
  115. package/sharing-tasks.d.ts +952 -0
  116. package/sharing-tasks.js +105 -0
  117. package/spaces.d.ts +3 -7
  118. package/spaces.js +2 -2
  119. package/tasks.d.ts +564 -0
  120. package/tasks.js +106 -0
  121. package/temp-contents.d.ts +2 -2
  122. package/temp-contents.js +2 -2
  123. package/tenants.d.ts +2 -2
  124. package/tenants.js +2 -2
  125. package/themes.d.ts +2 -2
  126. package/themes.js +2 -2
  127. package/transports.d.ts +2 -2
  128. package/transports.js +2 -2
  129. package/ui-config.d.ts +274 -0
  130. package/ui-config.js +77 -0
  131. package/users.d.ts +2 -2
  132. package/users.js +2 -2
  133. package/web-integrations.d.ts +2 -2
  134. package/web-integrations.js +2 -2
  135. package/web-notifications.d.ts +2 -2
  136. package/web-notifications.js +2 -2
  137. package/webhooks.d.ts +2 -2
  138. package/webhooks.js +2 -2
@@ -0,0 +1,268 @@
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
+ import './auth-types-DqfMuSRX.js';
3
+
4
+ type ApiSpecResponse = {
5
+ /** List of properties required for the given datasource */
6
+ connectionProperties: unknown;
7
+ /** Datasource provider */
8
+ connectorProvider: string;
9
+ /** Datasource provider (i.e. connector) version */
10
+ connectorVersion: string;
11
+ };
12
+ /**
13
+ * Datasource metadata
14
+ */
15
+ type ConnectorNodesInfo = {
16
+ /** List of datasource Ids provided by the provider */
17
+ cachedDataSources?: string[];
18
+ /** Contract type used to communicate with the connector (between 0 and 3) */
19
+ contractType: number;
20
+ /** Indicates if the datasources is up to date */
21
+ dataSourcesUpdated: boolean;
22
+ /** Connector provider name */
23
+ providerName: string;
24
+ /** State of the connector node */
25
+ state: string;
26
+ /** URL of connector node */
27
+ url: string;
28
+ };
29
+ /**
30
+ * Datasource metadata
31
+ */
32
+ type DataSourceNew = {
33
+ /** List of capabilities supported by the datasource */
34
+ capabilities?: string[];
35
+ /** Override value of dataload URL (could be null) */
36
+ dataLoadUrlOverride?: string;
37
+ /** Unique identifier of datasource */
38
+ dataSourceId: string;
39
+ /** Datasource property name (could be null) */
40
+ dataSourcePropertyName?: string;
41
+ /** Datasource name */
42
+ name: string;
43
+ /** Connector provider */
44
+ provider: string;
45
+ /** Provider name */
46
+ providerName: string;
47
+ /** Qri definition template */
48
+ qriDefinition?: QriDefinition;
49
+ /** UI related metadata (only present when 'includeui' is set to true in query) */
50
+ uiInfo?: UiInfo;
51
+ };
52
+ type DataSourcesResponseNew = {
53
+ /** List of connector nodes (only present when query parameter 'detail' is set to true) */
54
+ connectorNodes?: ConnectorNodesInfo[];
55
+ /** List of datasources metadata object */
56
+ dataSources: DataSourceNew[];
57
+ /** Time stamp of last updated */
58
+ lastUpdated: string;
59
+ };
60
+ type PublicApiError = {
61
+ /** A service specific error code string */
62
+ code: string;
63
+ /** Concrete detail about the error */
64
+ detail?: string;
65
+ /** Additional metadata associated with the error */
66
+ meta?: unknown;
67
+ /** Summary of the error */
68
+ title: string;
69
+ };
70
+ /**
71
+ * Qri definition template
72
+ */
73
+ type QriDefinition = {
74
+ connectionPart: unknown & QriTemplate;
75
+ itemPart?: unknown & {
76
+ /** Prefix of the template */
77
+ prefix?: string;
78
+ } & QriTemplate;
79
+ pathPart: unknown & {
80
+ /** Prefix of the template */
81
+ prefix?: string;
82
+ } & QriTemplate;
83
+ /** Qri prefix */
84
+ qriPrefix: string;
85
+ };
86
+ /**
87
+ * Connection part of Qri template
88
+ */
89
+ type QriTemplate = {
90
+ /** List of properties used in template */
91
+ properties: string[];
92
+ /** Qri template */
93
+ template: string;
94
+ };
95
+ type ResponseErrors = {
96
+ errors?: PublicApiError[];
97
+ };
98
+ /**
99
+ * UI related metadata (only present when 'includeui' is set to true in query)
100
+ */
101
+ type UiInfo = {
102
+ /** Connect URL */
103
+ connectUrl?: string;
104
+ /** Connector main URL */
105
+ connectorMainUrl?: string;
106
+ /** Credentials URL */
107
+ credentialsUrl?: string;
108
+ /** Icon URL */
109
+ iconRectUrl?: string;
110
+ /** Square icon URL */
111
+ iconSquareUrl?: string;
112
+ /** If support iframe */
113
+ iframe?: boolean;
114
+ /** Indicate if the datasource supports load model */
115
+ loadModelSupport?: string;
116
+ /** Select URL */
117
+ selectUrl?: string;
118
+ };
119
+ /**
120
+ * Gets the list of data sources available on the node.
121
+ * @example
122
+ * getDataSources(
123
+ * {
124
+ * dataSourceId: "rest",
125
+ * detail: true,
126
+ * includeui: true
127
+ * }
128
+ * )
129
+ *
130
+ * @param query an object with query parameters
131
+ * @throws GetDataSourcesHttpError
132
+ */
133
+ declare const getDataSources: (query: {
134
+ /** Filtering on datasourceID, when multiple dataSourceId are set in query, last dataSourceId will be used */
135
+ dataSourceId?: string;
136
+ /** Determines if provider detail is returned */
137
+ detail?: boolean;
138
+ /** Determines if UI info is returned */
139
+ includeui?: boolean;
140
+ }, options?: ApiCallOptions) => Promise<GetDataSourcesHttpResponse>;
141
+ type GetDataSourcesHttpResponse = {
142
+ data: DataSourcesResponseNew;
143
+ headers: Headers;
144
+ status: 200;
145
+ };
146
+ type GetDataSourcesHttpError = {
147
+ data: ResponseErrors;
148
+ headers: Headers;
149
+ status: 401 | 404 | 500;
150
+ };
151
+ /**
152
+ * Get 'connectionProperties' for a given datasource
153
+ * @example
154
+ * getDataSourceApiSpecs(
155
+ * "rest"
156
+ * )
157
+ *
158
+ * @param dataSourceId Datasource ID
159
+ * @throws GetDataSourceApiSpecsHttpError
160
+ */
161
+ declare const getDataSourceApiSpecs: (dataSourceId: string, options?: ApiCallOptions) => Promise<GetDataSourceApiSpecsHttpResponse>;
162
+ type GetDataSourceApiSpecsHttpResponse = {
163
+ data: ApiSpecResponse;
164
+ headers: Headers;
165
+ status: 200;
166
+ };
167
+ type GetDataSourceApiSpecsHttpError = {
168
+ data: ResponseErrors;
169
+ headers: Headers;
170
+ status: 401 | 404 | 500 | 503;
171
+ };
172
+ /**
173
+ * Get list available gateway ID's for a given datasource
174
+ * @example
175
+ * getDataSourceGateways(
176
+ * "rest",
177
+ * {
178
+ * forceRefresh: true
179
+ * }
180
+ * )
181
+ *
182
+ * @param dataSourceId Datasource ID
183
+ * @param query an object with query parameters
184
+ * @throws GetDataSourceGatewaysHttpError
185
+ */
186
+ declare const getDataSourceGateways: (dataSourceId: string, query: {
187
+ /** Force to get a refreshed list from backend. Cached list will be returned if not set or set to false. */
188
+ forceRefresh?: boolean;
189
+ }, options?: ApiCallOptions) => Promise<GetDataSourceGatewaysHttpResponse>;
190
+ type GetDataSourceGatewaysHttpResponse = {
191
+ data: {
192
+ /** List of gateway ID's for given datasource ID */
193
+ gateways?: {
194
+ /** Whether the gateway is default */
195
+ default?: boolean;
196
+ /** Gateway ID */
197
+ id?: string;
198
+ /** Gateway name */
199
+ name?: string;
200
+ }[];
201
+ /** Time stamp when the gateways data were refreshed */
202
+ refreshedAt?: string;
203
+ };
204
+ headers: Headers;
205
+ status: 200;
206
+ };
207
+ type GetDataSourceGatewaysHttpError = {
208
+ data: ResponseErrors;
209
+ headers: Headers;
210
+ status: 401 | 404 | 500;
211
+ };
212
+ /**
213
+ * Clears the cache for data-sources api requests.
214
+ */
215
+ declare function clearCache(): void;
216
+ interface DataSourcesAPI {
217
+ /**
218
+ * Gets the list of data sources available on the node.
219
+ * @example
220
+ * getDataSources(
221
+ * {
222
+ * dataSourceId: "rest",
223
+ * detail: true,
224
+ * includeui: true
225
+ * }
226
+ * )
227
+ *
228
+ * @param query an object with query parameters
229
+ * @throws GetDataSourcesHttpError
230
+ */
231
+ getDataSources: typeof getDataSources;
232
+ /**
233
+ * Get 'connectionProperties' for a given datasource
234
+ * @example
235
+ * getDataSourceApiSpecs(
236
+ * "rest"
237
+ * )
238
+ *
239
+ * @param dataSourceId Datasource ID
240
+ * @throws GetDataSourceApiSpecsHttpError
241
+ */
242
+ getDataSourceApiSpecs: typeof getDataSourceApiSpecs;
243
+ /**
244
+ * Get list available gateway ID's for a given datasource
245
+ * @example
246
+ * getDataSourceGateways(
247
+ * "rest",
248
+ * {
249
+ * forceRefresh: true
250
+ * }
251
+ * )
252
+ *
253
+ * @param dataSourceId Datasource ID
254
+ * @param query an object with query parameters
255
+ * @throws GetDataSourceGatewaysHttpError
256
+ */
257
+ getDataSourceGateways: typeof getDataSourceGateways;
258
+ /**
259
+ * Clears the cache for data-sources api requests.
260
+ */
261
+ clearCache: typeof clearCache;
262
+ }
263
+ /**
264
+ * Functions for the data-sources api
265
+ */
266
+ declare const dataSourcesExport: DataSourcesAPI;
267
+
268
+ export { type ApiSpecResponse, type ConnectorNodesInfo, type DataSourceNew, type DataSourcesAPI, type DataSourcesResponseNew, type GetDataSourceApiSpecsHttpError, type GetDataSourceApiSpecsHttpResponse, type GetDataSourceGatewaysHttpError, type GetDataSourceGatewaysHttpResponse, type GetDataSourcesHttpError, type GetDataSourcesHttpResponse, type PublicApiError, type QriDefinition, type QriTemplate, type ResponseErrors, type UiInfo, clearCache, dataSourcesExport as default, getDataSourceApiSpecs, getDataSourceGateways, getDataSources };
@@ -0,0 +1,39 @@
1
+ import {
2
+ clearApiCache,
3
+ invokeFetch
4
+ } from "./chunks/VVD2DPKQ.js";
5
+ import "./chunks/LTNGXTXG.js";
6
+ import "./chunks/2ZQ3ZX7F.js";
7
+
8
+ // src/public/rest/data-sources.ts
9
+ var getDataSources = async (query, options) => invokeFetch("data-sources", {
10
+ method: "get",
11
+ pathTemplate: "/api/v1/data-sources",
12
+ query,
13
+ options
14
+ });
15
+ var getDataSourceApiSpecs = async (dataSourceId, options) => invokeFetch("data-sources", {
16
+ method: "get",
17
+ pathTemplate: "/api/v1/data-sources/{dataSourceId}/api-specs",
18
+ pathVariables: { dataSourceId },
19
+ options
20
+ });
21
+ var getDataSourceGateways = async (dataSourceId, query, options) => invokeFetch("data-sources", {
22
+ method: "get",
23
+ pathTemplate: "/api/v1/data-sources/{dataSourceId}/gateways",
24
+ pathVariables: { dataSourceId },
25
+ query,
26
+ options
27
+ });
28
+ function clearCache() {
29
+ return clearApiCache("data-sources");
30
+ }
31
+ var dataSourcesExport = { getDataSources, getDataSourceApiSpecs, getDataSourceGateways, clearCache };
32
+ var data_sources_default = dataSourcesExport;
33
+ export {
34
+ clearCache,
35
+ data_sources_default as default,
36
+ getDataSourceApiSpecs,
37
+ getDataSourceGateways,
38
+ getDataSources
39
+ };