@qlik/api 2.2.0 → 2.3.1

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 (232) hide show
  1. package/analytics/change-stores.d.ts +386 -0
  2. package/analytics/change-stores.js +123 -0
  3. package/analytics.d.ts +14 -0
  4. package/analytics.js +13 -0
  5. package/api-keys.d.ts +362 -3
  6. package/api-keys.js +2 -3
  7. package/apps.d.ts +2673 -3
  8. package/apps.js +2 -3
  9. package/assistants.d.ts +1370 -3
  10. package/assistants.js +2 -3
  11. package/audits.d.ts +318 -3
  12. package/audits.js +4 -4
  13. package/auth-types.d.ts +1 -1
  14. package/auth-types.js +1 -2
  15. package/auth.d.ts +94 -2
  16. package/auth.js +63 -3
  17. package/automation-connections.d.ts +366 -3
  18. package/automation-connections.js +2 -3
  19. package/automation-connectors.d.ts +84 -3
  20. package/automation-connectors.js +2 -3
  21. package/automations.d.ts +805 -3
  22. package/automations.js +2 -3
  23. package/automl-deployments.d.ts +101 -3
  24. package/automl-deployments.js +2 -3
  25. package/automl-predictions.d.ts +238 -3
  26. package/automl-predictions.js +2 -3
  27. package/banners.d.ts +184 -3
  28. package/banners.js +2 -3
  29. package/brands.d.ts +670 -3
  30. package/brands.js +2 -3
  31. package/chunks/auth-XusKk8IA.js +32 -0
  32. package/chunks/{chunk-EtTptKIv.js → chunk-D3vHIbds.js} +2 -2
  33. package/chunks/{dist-gXLIqDJW.js → dist-n3iOVn1W.js} +4 -4
  34. package/chunks/{auth-functions-BmZgZYSs.js → interceptors-2VSXImC9.js} +498 -146
  35. package/chunks/{invoke-fetch-PcVIxLW4.js → invoke-fetch-CckTK7bh.js} +3 -3
  36. package/chunks/{invoke-fetch-CucBpA1C.js → invoke-fetch-D9lpiAb-.js} +1 -5
  37. package/chunks/{public-runtime-modules-Dwjzb3l8.js → public-runtime-modules-BqxAMJ9M.js} +7 -7
  38. package/chunks/{qix-DI5o5XF4.d.ts → qix-CrqXv44x.d.ts} +6 -2
  39. package/chunks/{qix-DjxuPCX0.js → qix-DpvHvpx7.js} +11 -10
  40. package/chunks/{qix-chunk-entrypoint-tmTo-kpa.js → qix-chunk-entrypoint-BXZPnE6J.js} +48 -50
  41. package/collections.d.ts +582 -3
  42. package/collections.js +2 -3
  43. package/conditions.d.ts +662 -3
  44. package/conditions.js +2 -3
  45. package/consumption.d.ts +182 -3
  46. package/consumption.js +2 -3
  47. package/core/ip-policies.d.ts +328 -4
  48. package/core/ip-policies.js +108 -5
  49. package/core.d.ts +13 -4
  50. package/core.js +3 -4
  51. package/csp-origins.d.ts +273 -3
  52. package/csp-origins.js +2 -3
  53. package/csrf-token.d.ts +62 -3
  54. package/csrf-token.js +2 -3
  55. package/data-alerts.d.ts +1004 -3
  56. package/data-alerts.js +2 -3
  57. package/data-assets.d.ts +207 -3
  58. package/data-assets.js +2 -3
  59. package/data-connections.d.ts +678 -3
  60. package/data-connections.js +2 -3
  61. package/data-credentials.d.ts +292 -3
  62. package/data-credentials.js +2 -3
  63. package/data-files.d.ts +860 -3
  64. package/data-files.js +2 -3
  65. package/data-qualities.d.ts +175 -3
  66. package/data-qualities.js +2 -3
  67. package/data-sets.d.ts +424 -3
  68. package/data-sets.js +2 -3
  69. package/data-sources.d.ts +348 -3
  70. package/data-sources.js +2 -3
  71. package/data-stores.d.ts +537 -3
  72. package/data-stores.js +2 -3
  73. package/dcaas.d.ts +192 -3
  74. package/dcaas.js +2 -3
  75. package/di-projects.d.ts +812 -4
  76. package/di-projects.js +25 -4
  77. package/direct-access-agents.d.ts +710 -4
  78. package/direct-access-agents.js +37 -5
  79. package/docs/authentication.md +1 -1
  80. package/encryption.d.ts +372 -3
  81. package/encryption.js +2 -3
  82. package/extensions.d.ts +295 -3
  83. package/extensions.js +2 -3
  84. package/global-types.d.ts +1 -1
  85. package/global-types.js +0 -2
  86. package/glossaries.d.ts +1223 -3
  87. package/glossaries.js +2 -3
  88. package/groups.d.ts +510 -3
  89. package/groups.js +2 -3
  90. package/identity-providers.d.ts +711 -3
  91. package/identity-providers.js +2 -3
  92. package/index.d.ts +78 -69
  93. package/index.js +28 -10
  94. package/interceptors.d.ts +52 -3
  95. package/interceptors.js +1 -2
  96. package/invoke-fetch-types.d.ts +1 -1
  97. package/items.d.ts +536 -3
  98. package/items.js +2 -3
  99. package/knowledgebases.d.ts +976 -3
  100. package/knowledgebases.js +2 -3
  101. package/licenses.d.ts +663 -3
  102. package/licenses.js +2 -3
  103. package/lineage-graphs.d.ts +704 -3
  104. package/lineage-graphs.js +2 -3
  105. package/ml.d.ts +2808 -3
  106. package/ml.js +2 -3
  107. package/notes.d.ts +110 -3
  108. package/notes.js +2 -3
  109. package/notifications.d.ts +98 -3
  110. package/notifications.js +2 -3
  111. package/oauth-callback.iife.js +1151 -0
  112. package/oauth-clients.d.ts +562 -3
  113. package/oauth-clients.js +2 -3
  114. package/oauth-tokens.d.ts +126 -3
  115. package/oauth-tokens.js +2 -3
  116. package/package.json +5 -4
  117. package/qix.d.ts +3 -3
  118. package/qix.js +38 -3
  119. package/questions.d.ts +364 -3
  120. package/questions.js +2 -3
  121. package/quotas.d.ts +112 -3
  122. package/quotas.js +2 -3
  123. package/reload-tasks.d.ts +249 -3
  124. package/reload-tasks.js +2 -3
  125. package/reloads.d.ts +260 -3
  126. package/reloads.js +2 -3
  127. package/report-templates.d.ts +287 -3
  128. package/report-templates.js +2 -3
  129. package/reports.d.ts +863 -3
  130. package/reports.js +2 -3
  131. package/roles.d.ts +312 -3
  132. package/roles.js +2 -3
  133. package/sharing-tasks.d.ts +1164 -3
  134. package/sharing-tasks.js +2 -3
  135. package/spaces.d.ts +779 -3
  136. package/spaces.js +2 -3
  137. package/tasks.d.ts +564 -3
  138. package/tasks.js +2 -3
  139. package/temp-contents.d.ts +167 -3
  140. package/temp-contents.js +2 -3
  141. package/tenants.d.ts +360 -3
  142. package/tenants.js +2 -3
  143. package/themes.d.ts +270 -3
  144. package/themes.js +2 -3
  145. package/transports.d.ts +435 -4
  146. package/transports.js +20 -5
  147. package/ui-config.d.ts +274 -3
  148. package/ui-config.js +2 -3
  149. package/users.d.ts +674 -3
  150. package/users.js +2 -3
  151. package/web-integrations.d.ts +294 -3
  152. package/web-integrations.js +2 -3
  153. package/web-notifications.d.ts +273 -3
  154. package/web-notifications.js +2 -3
  155. package/webhooks.d.ts +505 -3
  156. package/webhooks.js +2 -3
  157. package/chunks/api-keys-D6Rqaov4.d.ts +0 -365
  158. package/chunks/apps-BwpXUGDb.d.ts +0 -2673
  159. package/chunks/assistants-wh6Qe7l6.d.ts +0 -1366
  160. package/chunks/audits-DakwzT97.d.ts +0 -316
  161. package/chunks/auth-6mptVm5Q.d.ts +0 -95
  162. package/chunks/auth-Cle0_tmz.js +0 -32
  163. package/chunks/auth-D11iO7ZV.js +0 -65
  164. package/chunks/automation-connections-k2G_n9rj.d.ts +0 -366
  165. package/chunks/automation-connectors-J5OE-1P0.d.ts +0 -84
  166. package/chunks/automations-BGy83EBO.d.ts +0 -797
  167. package/chunks/automl-deployments-CWEpX2pk.d.ts +0 -101
  168. package/chunks/automl-predictions-BNIjRhBm.d.ts +0 -238
  169. package/chunks/banners-CgBRnZGv.d.ts +0 -184
  170. package/chunks/brands-DCgk6Gqx.d.ts +0 -671
  171. package/chunks/collections-BpYjcpIY.d.ts +0 -582
  172. package/chunks/conditions-CJJG7Uph.d.ts +0 -662
  173. package/chunks/consumption-DerFk437.d.ts +0 -182
  174. package/chunks/core-DQXNZdnf.d.ts +0 -12
  175. package/chunks/csp-origins-3NJlh_n9.d.ts +0 -273
  176. package/chunks/csrf-token-DoaoOQzH.d.ts +0 -63
  177. package/chunks/data-alerts-CILSEFbQ.d.ts +0 -1004
  178. package/chunks/data-assets-CJDcssoX.d.ts +0 -207
  179. package/chunks/data-connections-VSB13K6g.d.ts +0 -678
  180. package/chunks/data-credentials-ChEp_hyU.d.ts +0 -292
  181. package/chunks/data-files-CVzn9M6V.d.ts +0 -860
  182. package/chunks/data-qualities-DBrot957.d.ts +0 -176
  183. package/chunks/data-sets-CFzxgWnO.d.ts +0 -424
  184. package/chunks/data-sources-IsAaof_C.d.ts +0 -346
  185. package/chunks/data-stores-DFOPdgfz.d.ts +0 -537
  186. package/chunks/dcaas-qyv7YlrN.d.ts +0 -192
  187. package/chunks/di-projects-DVQTxASr.d.ts +0 -777
  188. package/chunks/direct-access-agents-B77OhzZi.d.ts +0 -580
  189. package/chunks/encryption-BjA6xbCO.d.ts +0 -372
  190. package/chunks/extensions-OO0WtInj.d.ts +0 -294
  191. package/chunks/glossaries-CIX7-KT_.d.ts +0 -1213
  192. package/chunks/groups-C86-UG7S.d.ts +0 -511
  193. package/chunks/identity-providers-h0dKNxGZ.d.ts +0 -711
  194. package/chunks/interceptors-Csx2tEi5.d.ts +0 -52
  195. package/chunks/interceptors-DTYm37AU.js +0 -104
  196. package/chunks/ip-policies-CKRIlbP7.d.ts +0 -327
  197. package/chunks/ip-policies-DXlf172B.js +0 -108
  198. package/chunks/items-C-jzqvFW.d.ts +0 -536
  199. package/chunks/knowledgebases-CyQtVcZN.d.ts +0 -977
  200. package/chunks/licenses-xzjnkitW.d.ts +0 -663
  201. package/chunks/lineage-graphs-CViCCzKy.d.ts +0 -697
  202. package/chunks/ml-Abt2MUva.d.ts +0 -2809
  203. package/chunks/notes-BZxuyDgt.d.ts +0 -111
  204. package/chunks/notifications-Bd_gp4jU.d.ts +0 -99
  205. package/chunks/oauth-clients-B5QPr4IM.d.ts +0 -563
  206. package/chunks/oauth-tokens-1b7V8182.d.ts +0 -127
  207. package/chunks/qix-CYQsLyGQ.js +0 -40
  208. package/chunks/questions-BVp0tvNs.d.ts +0 -364
  209. package/chunks/quotas-CfAebRJd.d.ts +0 -113
  210. package/chunks/reload-tasks-DfwUTetn.d.ts +0 -249
  211. package/chunks/reloads-CwmagnFx.d.ts +0 -260
  212. package/chunks/report-templates-DjQYj5dn.d.ts +0 -287
  213. package/chunks/reports-DzNC6Uq3.d.ts +0 -861
  214. package/chunks/roles-BYFIY6E7.d.ts +0 -312
  215. package/chunks/sharing-tasks-BMGIQ-FO.d.ts +0 -1164
  216. package/chunks/spaces-BK823t-b.d.ts +0 -780
  217. package/chunks/tasks-COKDfShO.d.ts +0 -564
  218. package/chunks/temp-contents-zDomB-g6.d.ts +0 -168
  219. package/chunks/tenants-Bhn86519.d.ts +0 -361
  220. package/chunks/themes-v9NbhiBo.d.ts +0 -269
  221. package/chunks/transports-CqEiFxD3.d.ts +0 -362
  222. package/chunks/ui-config-Crs0mVMp.d.ts +0 -274
  223. package/chunks/users-BSOBU_fg.d.ts +0 -675
  224. package/chunks/web-integrations-MisPAHod.d.ts +0 -295
  225. package/chunks/web-notifications-DVy6FHYh.d.ts +0 -274
  226. package/chunks/webhooks-Dr4EiXqy.d.ts +0 -505
  227. /package/chunks/{auth-types-E99tzdN0.d.ts → auth-types-YrlH_R9f.d.ts} +0 -0
  228. /package/chunks/{auth-types-JehqruDP.js → auth-types-h43TVDpB.js} +0 -0
  229. /package/chunks/{global-types-CrOvI33z.js → global-types-CEVAJebk.js} +0 -0
  230. /package/chunks/{invoke-fetch-CbU2Dgqr.d.ts → invoke-fetch-C1Z0RJYU.d.ts} +0 -0
  231. /package/chunks/{utils-BnC4lrlq.js → utils-vv-xFm06.js} +0 -0
  232. /package/chunks/{websocket-errors-DSbO6kDZ.js → websocket-errors-CRTDTtBL.js} +0 -0
package/data-sources.d.ts CHANGED
@@ -1,4 +1,349 @@
1
- import "./chunks/auth-types-E99tzdN0.js";
2
- import "./chunks/invoke-fetch-CbU2Dgqr.js";
3
- import { C as clearCache, D as getDataSourceSettings, E as getDataSourceGateways, O as getDataSources, S as UiInfo, T as getDataSourceApiSpecs, _ as PutDataSourceSettingsHttpError, a as DataSourceSettingsResponse, b as QriTemplate, c as GetDataSourceApiSpecsHttpError, d as GetDataSourceGatewaysHttpResponse, f as GetDataSourceSettingsHttpError, g as PublicApiError, h as GetDataSourcesHttpResponse, i as DataSourceSettingsRequest, k as putDataSourceSettings, l as GetDataSourceApiSpecsHttpResponse, m as GetDataSourcesHttpError, n as ConnectorNodesInfo, o as DataSourcesAPI, p as GetDataSourceSettingsHttpResponse, r as DataSourceNew, s as DataSourcesResponseNew, t as ApiSpecResponse, u as GetDataSourceGatewaysHttpError, v as PutDataSourceSettingsHttpResponse, w as dataSourcesExport, x as ResponseErrors, y as QriDefinition } from "./chunks/data-sources-IsAaof_C.js";
1
+ import { y as ApiCallOptions } from "./chunks/auth-types-YrlH_R9f.js";
2
+ import "./chunks/invoke-fetch-C1Z0RJYU.js";
3
+
4
+ //#region src/public/rest/data-sources.d.ts
5
+ type ApiSpecResponse = {
6
+ /** List of properties required for the given datasource */
7
+ connectionProperties: unknown;
8
+ /** Datasource provider */
9
+ connectorProvider: string;
10
+ /** Datasource provider (i.e. connector) version */
11
+ connectorVersion: string;
12
+ };
13
+ /**
14
+ * Datasource metadata
15
+ */
16
+ type ConnectorNodesInfo = {
17
+ /** List of datasource IDs provided by the provider */
18
+ cachedDataSources?: string[];
19
+ /** Contract type used to communicate with the connector (between 0 and 3) */
20
+ contractType: number;
21
+ /** Indicates whether the datasources are up to date */
22
+ dataSourcesUpdated: boolean;
23
+ /** Connector provider name */
24
+ providerName: string;
25
+ /** State of the connector node */
26
+ state: string;
27
+ /** URL of connector node */
28
+ url: string;
29
+ };
30
+ /**
31
+ * Datasource metadata
32
+ */
33
+ type DataSourceNew = {
34
+ /** List of capabilities supported by the datasource */
35
+ capabilities?: string[];
36
+ /** Override value of dataload URL (could be null) */
37
+ dataLoadUrlOverride?: string;
38
+ /** Unique identifier of datasource */
39
+ dataSourceId: string;
40
+ /** Datasource property name (could be null) */
41
+ dataSourcePropertyName?: string;
42
+ /** Type of datasource */
43
+ dataSourceType?: string;
44
+ /** Indicates whether the datasource is disabled */
45
+ disabled?: boolean;
46
+ /** Datasource name */
47
+ name: string;
48
+ /** Connector provider */
49
+ provider: string;
50
+ /** Provider name */
51
+ providerName: string;
52
+ /** Qri definition template */
53
+ qriDefinition?: QriDefinition;
54
+ /** UI related metadata (only present when 'includeui' is set to true in query) */
55
+ uiInfo?: UiInfo;
56
+ };
57
+ /**
58
+ * Defines configuration settings for a data source.
59
+ */
60
+ type DataSourceSettingsRequest = {
61
+ /** Indicates whether the data source is disabled. */
62
+ disabled: boolean;
63
+ };
64
+ /**
65
+ * Represents the current settings of a data source.
66
+ */
67
+ type DataSourceSettingsResponse = {
68
+ /** Indicates whether the data source is disabled. */
69
+ disabled?: boolean;
70
+ };
71
+ type DataSourcesResponseNew = {
72
+ /** List of connector nodes (only present when query parameter 'detail' is set to true) */
73
+ connectorNodes?: ConnectorNodesInfo[];
74
+ /** List of datasources metadata object */
75
+ dataSources: DataSourceNew[];
76
+ /** Time stamp of last updated */
77
+ lastUpdated: string;
78
+ };
79
+ type PublicApiError = {
80
+ /** A service specific error code string */
81
+ code: string;
82
+ /** Concrete detail about the error */
83
+ detail?: string;
84
+ /** Additional metadata associated with the error */
85
+ meta?: unknown;
86
+ /** Summary of the error */
87
+ title: string;
88
+ };
89
+ /**
90
+ * Qri definition template
91
+ */
92
+ type QriDefinition = {
93
+ connectionPart: unknown & QriTemplate;
94
+ itemPart?: unknown & {
95
+ /** Prefix of the template */
96
+ prefix?: string;
97
+ } & QriTemplate;
98
+ pathPart: unknown & {
99
+ /** Prefix of the template */
100
+ prefix?: string;
101
+ } & QriTemplate;
102
+ /** Qri prefix */
103
+ qriPrefix: string;
104
+ };
105
+ /**
106
+ * Connection part of Qri template
107
+ */
108
+ type QriTemplate = {
109
+ /** List of properties used in template */
110
+ properties: string[];
111
+ /** Qri template */
112
+ template: string;
113
+ };
114
+ type ResponseErrors = {
115
+ errors?: PublicApiError[];
116
+ };
117
+ /**
118
+ * UI related metadata (only present when 'includeui' is set to true in query)
119
+ */
120
+ type UiInfo = {
121
+ /** Connect URL */
122
+ connectUrl?: string;
123
+ /** Connector main URL */
124
+ connectorMainUrl?: string;
125
+ /** Credentials URL */
126
+ credentialsUrl?: string;
127
+ /** Icon URL */
128
+ iconRectUrl?: string;
129
+ /** Square icon URL */
130
+ iconSquareUrl?: string;
131
+ /** If support iframe */
132
+ iframe?: boolean;
133
+ /** Indicate if the datasource supports load model */
134
+ loadModelSupport?: string;
135
+ /** Select URL */
136
+ selectUrl?: string;
137
+ };
138
+ /**
139
+ * Gets the list of data sources available on the node.
140
+ * @example
141
+ * getDataSources(
142
+ * {
143
+ * dataSourceId: "rest",
144
+ * detail: true,
145
+ * includeDisabled: true,
146
+ * includeui: true
147
+ * }
148
+ * )
149
+ *
150
+ * @param query an object with query parameters
151
+ * @throws GetDataSourcesHttpError
152
+ */
153
+ declare function getDataSources(query: {
154
+ /** Filtering on datasourceID, when multiple dataSourceId are set in query, last dataSourceId will be used */
155
+ dataSourceId?: string;
156
+ /** Determines if provider detail is returned */
157
+ detail?: boolean;
158
+ /** When true, disabled datasources are also included in the response */
159
+ includeDisabled?: boolean;
160
+ /** Determines if UI info is returned */
161
+ includeui?: boolean;
162
+ }, options?: ApiCallOptions): Promise<GetDataSourcesHttpResponse>;
163
+ type GetDataSourcesHttpResponse = {
164
+ data: DataSourcesResponseNew;
165
+ headers: Headers;
166
+ status: 200;
167
+ };
168
+ type GetDataSourcesHttpError = {
169
+ data: ResponseErrors;
170
+ headers: Headers;
171
+ status: 401 | 404 | 500;
172
+ };
173
+ /**
174
+ * Get 'connectionProperties' for a given datasource
175
+ * @example
176
+ * getDataSourceApiSpecs(
177
+ * "rest"
178
+ * )
179
+ *
180
+ * @param dataSourceId Datasource ID
181
+ * @throws GetDataSourceApiSpecsHttpError
182
+ */
183
+ declare function getDataSourceApiSpecs(dataSourceId: string, options?: ApiCallOptions): Promise<GetDataSourceApiSpecsHttpResponse>;
184
+ type GetDataSourceApiSpecsHttpResponse = {
185
+ data: ApiSpecResponse;
186
+ headers: Headers;
187
+ status: 200;
188
+ };
189
+ type GetDataSourceApiSpecsHttpError = {
190
+ data: ResponseErrors;
191
+ headers: Headers;
192
+ status: 401 | 404 | 500 | 503;
193
+ };
194
+ /**
195
+ * Get list available gateway ID's for a given datasource
196
+ * @example
197
+ * getDataSourceGateways(
198
+ * "rest",
199
+ * {
200
+ * forceRefresh: true
201
+ * }
202
+ * )
203
+ *
204
+ * @param dataSourceId Datasource ID
205
+ * @param query an object with query parameters
206
+ * @throws GetDataSourceGatewaysHttpError
207
+ */
208
+ declare function getDataSourceGateways(dataSourceId: string, query: {
209
+ /** Force to get a refreshed list from backend. Cached list will be returned if not set or set to false. */
210
+ forceRefresh?: boolean;
211
+ }, options?: ApiCallOptions): Promise<GetDataSourceGatewaysHttpResponse>;
212
+ type GetDataSourceGatewaysHttpResponse = {
213
+ data: {
214
+ /** List of gateway ID's for given datasource ID */
215
+ gateways?: {
216
+ /** Whether the gateway is default */
217
+ default?: boolean;
218
+ /** Gateway ID */
219
+ id?: string;
220
+ /** Gateway name */
221
+ name?: string;
222
+ }[];
223
+ /** Time stamp when the gateways data were refreshed */
224
+ refreshedAt?: string;
225
+ };
226
+ headers: Headers;
227
+ status: 200;
228
+ };
229
+ type GetDataSourceGatewaysHttpError = {
230
+ data: ResponseErrors;
231
+ headers: Headers;
232
+ status: 401 | 404 | 500;
233
+ };
234
+ /**
235
+ * Retrieves the settings for a data source.
236
+ * @example
237
+ * getDataSourceSettings(
238
+ * "rest"
239
+ * )
240
+ *
241
+ * @param dataSourceId Datasource ID
242
+ * @throws GetDataSourceSettingsHttpError
243
+ */
244
+ declare function getDataSourceSettings(dataSourceId: string, options?: ApiCallOptions): Promise<GetDataSourceSettingsHttpResponse>;
245
+ type GetDataSourceSettingsHttpResponse = {
246
+ data: DataSourceSettingsResponse;
247
+ headers: Headers;
248
+ status: 200;
249
+ };
250
+ type GetDataSourceSettingsHttpError = {
251
+ data: ResponseErrors;
252
+ headers: Headers;
253
+ status: 400 | 401 | 404 | 500;
254
+ };
255
+ /**
256
+ * Updates the settings for a data source.
257
+ *
258
+ * @param dataSourceId Datasource ID
259
+ * @param body an object with the body content
260
+ * @throws PutDataSourceSettingsHttpError
261
+ */
262
+ declare function putDataSourceSettings(dataSourceId: string, body: DataSourceSettingsRequest, options?: ApiCallOptions): Promise<PutDataSourceSettingsHttpResponse>;
263
+ type PutDataSourceSettingsHttpResponse = {
264
+ data: DataSourceSettingsResponse;
265
+ headers: Headers;
266
+ status: 200;
267
+ };
268
+ type PutDataSourceSettingsHttpError = {
269
+ data: ResponseErrors;
270
+ headers: Headers;
271
+ status: 400 | 401 | 404 | 500;
272
+ };
273
+ /**
274
+ * Clears the cache for data-sources api requests.
275
+ */
276
+ declare function clearCache(): void;
277
+ type DataSourcesAPI = {
278
+ /**
279
+ * Gets the list of data sources available on the node.
280
+ * @example
281
+ * getDataSources(
282
+ * {
283
+ * dataSourceId: "rest",
284
+ * detail: true,
285
+ * includeDisabled: true,
286
+ * includeui: true
287
+ * }
288
+ * )
289
+ *
290
+ * @param query an object with query parameters
291
+ * @throws GetDataSourcesHttpError
292
+ */
293
+ getDataSources: typeof getDataSources;
294
+ /**
295
+ * Get 'connectionProperties' for a given datasource
296
+ * @example
297
+ * getDataSourceApiSpecs(
298
+ * "rest"
299
+ * )
300
+ *
301
+ * @param dataSourceId Datasource ID
302
+ * @throws GetDataSourceApiSpecsHttpError
303
+ */
304
+ getDataSourceApiSpecs: typeof getDataSourceApiSpecs;
305
+ /**
306
+ * Get list available gateway ID's for a given datasource
307
+ * @example
308
+ * getDataSourceGateways(
309
+ * "rest",
310
+ * {
311
+ * forceRefresh: true
312
+ * }
313
+ * )
314
+ *
315
+ * @param dataSourceId Datasource ID
316
+ * @param query an object with query parameters
317
+ * @throws GetDataSourceGatewaysHttpError
318
+ */
319
+ getDataSourceGateways: typeof getDataSourceGateways;
320
+ /**
321
+ * Retrieves the settings for a data source.
322
+ * @example
323
+ * getDataSourceSettings(
324
+ * "rest"
325
+ * )
326
+ *
327
+ * @param dataSourceId Datasource ID
328
+ * @throws GetDataSourceSettingsHttpError
329
+ */
330
+ getDataSourceSettings: typeof getDataSourceSettings;
331
+ /**
332
+ * Updates the settings for a data source.
333
+ *
334
+ * @param dataSourceId Datasource ID
335
+ * @param body an object with the body content
336
+ * @throws PutDataSourceSettingsHttpError
337
+ */
338
+ putDataSourceSettings: typeof putDataSourceSettings;
339
+ /**
340
+ * Clears the cache for data-sources api requests.
341
+ */
342
+ clearCache: typeof clearCache;
343
+ };
344
+ /**
345
+ * Functions for the data-sources api
346
+ */
347
+ declare const dataSourcesExport: DataSourcesAPI;
348
+ //#endregion
4
349
  export { ApiSpecResponse, ConnectorNodesInfo, DataSourceNew, DataSourceSettingsRequest, DataSourceSettingsResponse, DataSourcesAPI, DataSourcesResponseNew, GetDataSourceApiSpecsHttpError, GetDataSourceApiSpecsHttpResponse, GetDataSourceGatewaysHttpError, GetDataSourceGatewaysHttpResponse, GetDataSourceSettingsHttpError, GetDataSourceSettingsHttpResponse, GetDataSourcesHttpError, GetDataSourcesHttpResponse, PublicApiError, PutDataSourceSettingsHttpError, PutDataSourceSettingsHttpResponse, QriDefinition, QriTemplate, ResponseErrors, UiInfo, clearCache, dataSourcesExport as default, getDataSourceApiSpecs, getDataSourceGateways, getDataSourceSettings, getDataSources, putDataSourceSettings };
package/data-sources.js CHANGED
@@ -1,6 +1,5 @@
1
- import "./chunks/utils-BnC4lrlq.js";
2
- import "./chunks/public-runtime-modules-Dwjzb3l8.js";
3
- import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-PcVIxLW4.js";
1
+ import "./chunks/public-runtime-modules-BqxAMJ9M.js";
2
+ import { n as invokeFetch, t as clearApiCache } from "./chunks/invoke-fetch-CckTK7bh.js";
4
3
 
5
4
  //#region src/public/rest/data-sources.ts
6
5
  /**