@qlik/api 1.31.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 (95) hide show
  1. package/api-keys.js +2 -2
  2. package/apps.js +2 -2
  3. package/assistants.d.ts +1301 -0
  4. package/assistants.js +273 -0
  5. package/audits.js +2 -2
  6. package/auth.js +2 -2
  7. package/automation-connections.d.ts +366 -0
  8. package/automation-connections.js +91 -0
  9. package/automations.js +2 -2
  10. package/automl-deployments.d.ts +97 -0
  11. package/automl-deployments.js +27 -0
  12. package/automl-predictions.d.ts +214 -0
  13. package/automl-predictions.js +72 -0
  14. package/brands.js +2 -2
  15. package/chunks/{GUU3KZGK.js → RCLKKVYB.js} +1 -1
  16. package/chunks/{YKZ2QYHN.js → VVD2DPKQ.js} +2 -2
  17. package/chunks/{KBSD75QL.js → YTT2FEVE.js} +1 -1
  18. package/collections.js +2 -2
  19. package/conditions.d.ts +662 -0
  20. package/conditions.js +113 -0
  21. package/consumption.d.ts +182 -0
  22. package/consumption.js +24 -0
  23. package/csp-origins.js +2 -2
  24. package/csrf-token.d.ts +62 -0
  25. package/csrf-token.js +23 -0
  26. package/data-alerts.d.ts +1004 -0
  27. package/data-alerts.js +155 -0
  28. package/data-assets.js +2 -2
  29. package/data-connections.js +2 -2
  30. package/data-credentials.js +2 -2
  31. package/data-files.js +2 -2
  32. package/data-qualities.d.ts +175 -0
  33. package/data-qualities.js +44 -0
  34. package/data-sets.d.ts +424 -0
  35. package/data-sets.js +75 -0
  36. package/data-sources.d.ts +268 -0
  37. package/data-sources.js +39 -0
  38. package/data-stores.d.ts +537 -0
  39. package/data-stores.js +108 -0
  40. package/dcaas.d.ts +192 -0
  41. package/dcaas.js +39 -0
  42. package/di-projects.d.ts +673 -0
  43. package/di-projects.js +164 -0
  44. package/encryption.d.ts +370 -0
  45. package/encryption.js +98 -0
  46. package/extensions.js +2 -2
  47. package/glossaries.js +2 -2
  48. package/groups.js +2 -2
  49. package/identity-providers.js +2 -2
  50. package/index.d.ts +105 -1
  51. package/index.js +556 -4
  52. package/items.js +2 -2
  53. package/knowledgebases.d.ts +890 -0
  54. package/knowledgebases.js +169 -0
  55. package/licenses.d.ts +1 -1
  56. package/licenses.js +2 -2
  57. package/lineage-graphs.d.ts +712 -0
  58. package/lineage-graphs.js +92 -0
  59. package/ml.d.ts +2628 -0
  60. package/ml.js +384 -0
  61. package/notes.d.ts +110 -0
  62. package/notes.js +31 -0
  63. package/notifications.d.ts +98 -0
  64. package/notifications.js +24 -0
  65. package/oauth-clients.js +2 -2
  66. package/oauth-tokens.d.ts +126 -0
  67. package/oauth-tokens.js +31 -0
  68. package/package.json +28 -2
  69. package/qix.d.ts +1 -1
  70. package/qix.js +2 -2
  71. package/questions.d.ts +364 -0
  72. package/questions.js +34 -0
  73. package/quotas.js +2 -2
  74. package/reload-tasks.js +2 -2
  75. package/reloads.js +2 -2
  76. package/report-templates.d.ts +287 -0
  77. package/report-templates.js +80 -0
  78. package/reports.js +2 -2
  79. package/roles.js +2 -2
  80. package/sharing-tasks.d.ts +952 -0
  81. package/sharing-tasks.js +105 -0
  82. package/spaces.js +2 -2
  83. package/tasks.d.ts +564 -0
  84. package/tasks.js +106 -0
  85. package/temp-contents.js +2 -2
  86. package/tenants.js +2 -2
  87. package/themes.js +2 -2
  88. package/transports.js +2 -2
  89. package/ui-config.d.ts +274 -0
  90. package/ui-config.js +77 -0
  91. package/users.js +2 -2
  92. package/web-integrations.js +2 -2
  93. package/web-notifications.js +2 -2
  94. package/webhooks.js +2 -2
  95. /package/chunks/{DLKLPD7T.js → LTNGXTXG.js} +0 -0
package/dcaas.d.ts ADDED
@@ -0,0 +1,192 @@
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
+ * Response returned when 'authUrlOnly' is set to true in the request body
14
+ */
15
+ type AuthUrlResponse = {
16
+ /** Authentication URL for OAuth datasource */
17
+ authUrl: string;
18
+ };
19
+ type CreateConnectionReq = {
20
+ /** When set to true, only authentication URL will be returned if datasource supports OAuth (other properties set in the request will ignored). This property will be ignored if the request is not OAuth or datasource doesn't support OAuth */
21
+ authUrlOnly?: boolean;
22
+ /** Connection name */
23
+ connectionName: string;
24
+ /** List of connection properties required to create dataconnection for a given datasource, which is defined by the response of 'GET /v1/data-datasources/:{datasourceId}/api-specs' */
25
+ connectionProperties: unknown;
26
+ /** Datasource ID */
27
+ dataSourceId: string;
28
+ /** Target connection space ID */
29
+ spaceId?: string;
30
+ /** string tags (32 or less) persisted with the connection object */
31
+ tags?: string[];
32
+ };
33
+ type CreateConnectionRes = {
34
+ /** Connection ID */
35
+ connectionId: string;
36
+ /** Connection name */
37
+ connectionName: string;
38
+ /** Created at time stamp */
39
+ createdAt: string;
40
+ /** Credentials ID (if credentials are included in the request) */
41
+ credentialsId?: string;
42
+ /** Datasource ID */
43
+ dataSourceId: string;
44
+ /** Space ID */
45
+ spaceId?: string;
46
+ /** Tenant ID */
47
+ tenantId: string;
48
+ /** Updated at time stamp */
49
+ updateAt: string;
50
+ /** User ID */
51
+ userId: string;
52
+ };
53
+ type GetConnectionResponse = {
54
+ /** Connection ID */
55
+ connectionId: string;
56
+ /** Connection name */
57
+ connectionName: string;
58
+ /** List of connection properties */
59
+ connectionProperties: unknown;
60
+ /** Created at time stamp */
61
+ createdAt: string;
62
+ /** Credentials ID (associated with the connection, either embedded or separated) */
63
+ credentialsId?: string;
64
+ /** Datasource ID */
65
+ dataSourceId: string;
66
+ /** Space ID */
67
+ spaceId?: string;
68
+ /** string tags associated with the connection */
69
+ tags?: string[];
70
+ /** Tenant ID */
71
+ tenantId: string;
72
+ /** Updated at time stamp */
73
+ updateAt: string;
74
+ /** User ID */
75
+ userId: string;
76
+ };
77
+ type PublicApiError = {
78
+ /** A service specific error code string */
79
+ code: string;
80
+ /** Concrete detail about the error */
81
+ detail?: string;
82
+ /** Additional metadata associated with the error */
83
+ meta?: unknown;
84
+ /** Summary of the error */
85
+ title: string;
86
+ };
87
+ type ResponseErrors = {
88
+ errors?: PublicApiError[];
89
+ };
90
+ /**
91
+ * @deprecated
92
+ *
93
+ * DEPRECATED. Use POST /v1/data-connections to create connection.
94
+ *
95
+ * @param body an object with the body content
96
+ * @throws DataConnectionsDcaasHttpError
97
+ */
98
+ declare const dataConnectionsDcaas: (body: CreateConnectionReq, options?: ApiCallOptions) => Promise<DataConnectionsDcaasHttpResponse>;
99
+ type DataConnectionsDcaasHttpResponse = {
100
+ data: CreateConnectionRes | AuthUrlResponse;
101
+ headers: Headers;
102
+ status: 201;
103
+ };
104
+ type DataConnectionsDcaasHttpError = {
105
+ data: ResponseErrors;
106
+ headers: Headers;
107
+ status: 400 | 401 | 403 | 500 | 503;
108
+ };
109
+ /**
110
+ * @deprecated
111
+ *
112
+ * DEPRECATED. Use GET /v1/data-sources/{dataSourceId}/api-specs to return 'connectionProperties' for a given datasource.
113
+ *
114
+ * @param query an object with query parameters
115
+ * @throws DataConnectionsDcaasApiSpecsHttpError
116
+ */
117
+ declare const dataConnectionsDcaasApiSpecs: (query: {
118
+ /** Datasource ID */
119
+ dataSourceId: string;
120
+ }, options?: ApiCallOptions) => Promise<DataConnectionsDcaasApiSpecsHttpResponse>;
121
+ type DataConnectionsDcaasApiSpecsHttpResponse = {
122
+ data: ApiSpecResponse;
123
+ headers: Headers;
124
+ status: 200;
125
+ };
126
+ type DataConnectionsDcaasApiSpecsHttpError = {
127
+ data: ResponseErrors;
128
+ headers: Headers;
129
+ status: 401 | 403 | 500 | 503;
130
+ };
131
+ /**
132
+ * @deprecated
133
+ *
134
+ * DEPRECATED. Use GET /v1/data-connections/{connectionId}?parseConnection=true to get connection with parsed connection properties.
135
+ *
136
+ * @param connectionId ID of the connection
137
+ * @throws DataConnectionsDcaaHttpError
138
+ */
139
+ declare const dataConnectionsDcaa: (connectionId: string, options?: ApiCallOptions) => Promise<DataConnectionsDcaaHttpResponse>;
140
+ type DataConnectionsDcaaHttpResponse = {
141
+ data: GetConnectionResponse;
142
+ headers: Headers;
143
+ status: 200;
144
+ };
145
+ type DataConnectionsDcaaHttpError = {
146
+ data: ResponseErrors;
147
+ headers: Headers;
148
+ status: 401 | 403 | 404 | 500 | 503;
149
+ };
150
+ /**
151
+ * Clears the cache for dcaas api requests.
152
+ */
153
+ declare function clearCache(): void;
154
+ interface DcaasAPI {
155
+ /**
156
+ * @deprecated
157
+ *
158
+ * DEPRECATED. Use POST /v1/data-connections to create connection.
159
+ *
160
+ * @param body an object with the body content
161
+ * @throws DataConnectionsDcaasHttpError
162
+ */
163
+ dataConnectionsDcaas: typeof dataConnectionsDcaas;
164
+ /**
165
+ * @deprecated
166
+ *
167
+ * DEPRECATED. Use GET /v1/data-sources/{dataSourceId}/api-specs to return 'connectionProperties' for a given datasource.
168
+ *
169
+ * @param query an object with query parameters
170
+ * @throws DataConnectionsDcaasApiSpecsHttpError
171
+ */
172
+ dataConnectionsDcaasApiSpecs: typeof dataConnectionsDcaasApiSpecs;
173
+ /**
174
+ * @deprecated
175
+ *
176
+ * DEPRECATED. Use GET /v1/data-connections/{connectionId}?parseConnection=true to get connection with parsed connection properties.
177
+ *
178
+ * @param connectionId ID of the connection
179
+ * @throws DataConnectionsDcaaHttpError
180
+ */
181
+ dataConnectionsDcaa: typeof dataConnectionsDcaa;
182
+ /**
183
+ * Clears the cache for dcaas api requests.
184
+ */
185
+ clearCache: typeof clearCache;
186
+ }
187
+ /**
188
+ * Functions for the dcaas api
189
+ */
190
+ declare const dcaasExport: DcaasAPI;
191
+
192
+ export { type ApiSpecResponse, type AuthUrlResponse, type CreateConnectionReq, type CreateConnectionRes, type DataConnectionsDcaaHttpError, type DataConnectionsDcaaHttpResponse, type DataConnectionsDcaasApiSpecsHttpError, type DataConnectionsDcaasApiSpecsHttpResponse, type DataConnectionsDcaasHttpError, type DataConnectionsDcaasHttpResponse, type DcaasAPI, type GetConnectionResponse, type PublicApiError, type ResponseErrors, clearCache, dataConnectionsDcaa, dataConnectionsDcaas, dataConnectionsDcaasApiSpecs, dcaasExport as default };
package/dcaas.js ADDED
@@ -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/dcaas.ts
9
+ var dataConnectionsDcaas = async (body, options) => invokeFetch("dcaas", {
10
+ method: "post",
11
+ pathTemplate: "/api/v1/dcaas/actions/data-connections",
12
+ body,
13
+ contentType: "application/json",
14
+ options
15
+ });
16
+ var dataConnectionsDcaasApiSpecs = async (query, options) => invokeFetch("dcaas", {
17
+ method: "get",
18
+ pathTemplate: "/api/v1/dcaas/actions/data-connections/api-specs",
19
+ query,
20
+ options
21
+ });
22
+ var dataConnectionsDcaa = async (connectionId, options) => invokeFetch("dcaas", {
23
+ method: "get",
24
+ pathTemplate: "/api/v1/dcaas/actions/data-connections/{connectionId}",
25
+ pathVariables: { connectionId },
26
+ options
27
+ });
28
+ function clearCache() {
29
+ return clearApiCache("dcaas");
30
+ }
31
+ var dcaasExport = { dataConnectionsDcaas, dataConnectionsDcaasApiSpecs, dataConnectionsDcaa, clearCache };
32
+ var dcaas_default = dcaasExport;
33
+ export {
34
+ clearCache,
35
+ dataConnectionsDcaa,
36
+ dataConnectionsDcaas,
37
+ dataConnectionsDcaasApiSpecs,
38
+ dcaas_default as default
39
+ };