@qlik/api 0.0.15 → 0.1.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 (135) hide show
  1. package/README.md +1 -1
  2. package/api-keys.js +25 -25
  3. package/apps.js +97 -97
  4. package/audits.js +23 -23
  5. package/auth.js +14 -14
  6. package/automations.js +47 -47
  7. package/brands.js +35 -35
  8. package/chunks/4HB3TAEO.js +4 -4
  9. package/chunks/{EHAANYDL.mjs → 4V5AAWUI.js} +3 -3
  10. package/chunks/{O4EAKEIN.mjs → D62LI5YU.js} +1 -1
  11. package/chunks/{6WX5AGKQ.mjs → L2BJNKLV.js} +2 -2
  12. package/chunks/{3YV6X7S6.mjs → LHCJKIEO.js} +1 -1
  13. package/chunks/OPRGGO4C.js +8 -8
  14. package/chunks/{HHOVS7QC.mjs → RNLZBOJU.js} +3 -3
  15. package/chunks/{BYD63JCG.mjs → SIU6HO6B.js} +5 -3
  16. package/chunks/{6AD3HYSF.mjs → TFSRDRRS.js} +1 -1
  17. package/chunks/{HOCTJESP.mjs → VK2CODYY.js} +2 -2
  18. package/chunks/{UKVTBYP6.mjs → XOVMZWDC.js} +2 -2
  19. package/collections.js +33 -33
  20. package/csp-origins.js +23 -23
  21. package/data-assets.js +21 -21
  22. package/data-connections.d.ts +97 -61
  23. package/data-connections.js +29 -29
  24. package/data-credentials.d.ts +3 -2
  25. package/data-credentials.js +19 -19
  26. package/data-files.js +35 -35
  27. package/docs/authentication.md +5 -5
  28. package/docs/examples/fetch-spaces.md +1 -15
  29. package/docs/examples/open-without-data.md +1 -1
  30. package/docs/examples/show-sheet-list.md +1 -1
  31. package/docs/features.md +1 -1
  32. package/extensions.js +25 -25
  33. package/glossaries.js +59 -59
  34. package/groups.d.ts +0 -3
  35. package/groups.js +27 -27
  36. package/identity-providers.js +27 -27
  37. package/index.js +53 -53
  38. package/items.js +27 -27
  39. package/licenses.js +29 -29
  40. package/package.json +36 -232
  41. package/qix.d.ts +1 -1
  42. package/qix.js +10 -10
  43. package/quotas.js +15 -15
  44. package/reload-tasks.js +21 -21
  45. package/reloads.js +19 -19
  46. package/roles.js +15 -15
  47. package/spaces.js +35 -35
  48. package/temp-contents.js +17 -17
  49. package/tenants.js +23 -23
  50. package/themes.js +25 -25
  51. package/transports.js +23 -23
  52. package/users.d.ts +1 -3
  53. package/users.js +31 -31
  54. package/web-integrations.js +21 -21
  55. package/web-notifications.js +23 -23
  56. package/webhooks.js +31 -31
  57. package/api-keys.d.mts +0 -336
  58. package/api-keys.mjs +0 -80
  59. package/apps.d.mts +0 -2431
  60. package/apps.mjs +0 -398
  61. package/audits.d.mts +0 -286
  62. package/audits.mjs +0 -64
  63. package/auth-types-nnUcWhuU.d.mts +0 -98
  64. package/auth.d.mts +0 -26
  65. package/auth.mjs +0 -14
  66. package/automations.d.mts +0 -682
  67. package/automations.mjs +0 -173
  68. package/brands.d.mts +0 -670
  69. package/brands.mjs +0 -123
  70. package/chunks/2YWCEGTS.js +0 -21
  71. package/chunks/34ZKUFEA.js +0 -41
  72. package/chunks/4WHZ4EIW.js +0 -57
  73. package/chunks/B4VPD3ZT.js +0 -574
  74. package/chunks/BM4OSDRZ.js +0 -17
  75. package/chunks/DCXUEDOW.mjs +0 -67
  76. package/chunks/MTAQE4WC.js +0 -10411
  77. package/chunks/PLOSYUG2.js +0 -25
  78. package/chunks/URIW2U5M.js +0 -17
  79. package/chunks/VSY5YIQY.mjs +0 -11
  80. package/chunks/WOYJLK4Y.js +0 -1623
  81. package/collections.d.mts +0 -581
  82. package/collections.mjs +0 -114
  83. package/csp-origins.d.mts +0 -273
  84. package/csp-origins.mjs +0 -69
  85. package/data-assets.d.mts +0 -205
  86. package/data-assets.mjs +0 -66
  87. package/data-connections.d.mts +0 -558
  88. package/data-connections.mjs +0 -103
  89. package/data-credentials.d.mts +0 -203
  90. package/data-credentials.mjs +0 -59
  91. package/data-files.d.mts +0 -562
  92. package/data-files.mjs +0 -123
  93. package/extensions.d.mts +0 -293
  94. package/extensions.mjs +0 -77
  95. package/global.types-5iFvFJvX.d.mts +0 -115
  96. package/glossaries.d.mts +0 -1173
  97. package/glossaries.mjs +0 -237
  98. package/groups.d.mts +0 -434
  99. package/groups.mjs +0 -88
  100. package/identity-providers.d.mts +0 -550
  101. package/identity-providers.mjs +0 -83
  102. package/index.d.mts +0 -142
  103. package/index.mjs +0 -716
  104. package/items.d.mts +0 -535
  105. package/items.mjs +0 -87
  106. package/licenses.d.mts +0 -459
  107. package/licenses.mjs +0 -92
  108. package/qix.d.mts +0 -11629
  109. package/qix.mjs +0 -10
  110. package/quotas.d.mts +0 -112
  111. package/quotas.mjs +0 -32
  112. package/reload-tasks.d.mts +0 -227
  113. package/reload-tasks.mjs +0 -62
  114. package/reloads.d.mts +0 -207
  115. package/reloads.mjs +0 -46
  116. package/roles.d.mts +0 -175
  117. package/roles.mjs +0 -31
  118. package/spaces.d.mts +0 -562
  119. package/spaces.mjs +0 -124
  120. package/temp-contents.d.mts +0 -167
  121. package/temp-contents.mjs +0 -41
  122. package/tenants.d.mts +0 -300
  123. package/tenants.mjs +0 -73
  124. package/themes.d.mts +0 -268
  125. package/themes.mjs +0 -77
  126. package/transports.d.mts +0 -319
  127. package/transports.mjs +0 -65
  128. package/users.d.mts +0 -631
  129. package/users.mjs +0 -104
  130. package/web-integrations.d.mts +0 -274
  131. package/web-integrations.mjs +0 -62
  132. package/web-notifications.d.mts +0 -250
  133. package/web-notifications.mjs +0 -69
  134. package/webhooks.d.mts +0 -445
  135. package/webhooks.mjs +0 -104
package/extensions.d.mts DELETED
@@ -1,293 +0,0 @@
1
- import { A as ApiCallOptions } from './global.types-5iFvFJvX.mjs';
2
- import './auth-types-nnUcWhuU.mjs';
3
-
4
- /**
5
- * Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined.
6
- */
7
- type BundleMeta = {
8
- /** Description of the bundle. */
9
- description?: string;
10
- /** Unique identifier of the bundle. */
11
- id?: string;
12
- /** Name of the bundle. */
13
- name?: string;
14
- };
15
- /**
16
- * An error object.
17
- */
18
- type Error = {
19
- /** Object containing meta data regarding an error. It does not necessarily contain all the properties. */
20
- meta?: Meta;
21
- /** Optional JSON patch object pointing to an invalid property. */
22
- source?: unknown;
23
- /** The HTTP status code. */
24
- status?: number;
25
- /** Title of the HTTP status code. */
26
- title: string;
27
- };
28
- /**
29
- * The extension model.
30
- */
31
- type Extension = {
32
- /** Author of the extension. */
33
- author?: string;
34
- /** Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined. */
35
- bundle?: BundleMeta;
36
- /** If the extension is part of an extension bundle. */
37
- bundled?: boolean;
38
- /** Checksum of the extension contents. */
39
- checksum?: string;
40
- readonly createdAt?: string;
41
- /** Map of dependencies describing version of the component it requires. */
42
- dependencies?: unknown;
43
- /** A date noting when the extension was deprecated. */
44
- deprecated?: string;
45
- /** Description of the extension. */
46
- description?: string;
47
- /** The file that was uploaded with the extension. */
48
- file?: unknown;
49
- /** Home page of the extension. */
50
- homepage?: string;
51
- /** Icon to show in the client. */
52
- icon?: string;
53
- readonly id?: string;
54
- /** Keywords for the extension. */
55
- keywords?: string;
56
- /** Under which license this extension is published. */
57
- license?: string;
58
- /** Relative path to the extension's entry file, defaults to `filename` from the qext file. */
59
- loadpath?: string;
60
- /** The display name of this extension. */
61
- name?: string;
62
- /** Path to an image that enables users to preview the extension. */
63
- preview?: string;
64
- /** The name of the qext file that was uploaded with this extension. */
65
- qextFilename?: string;
66
- /** The version from the qext file that was uploaded with this extension. */
67
- qextVersion?: string;
68
- /** Link to the extension source code. */
69
- repository?: string;
70
- /** If the extension is a supernova extension or not. */
71
- supernova?: boolean;
72
- /** Supplier of the extension. */
73
- supplier?: string;
74
- /** List of tags. */
75
- tags?: string[];
76
- readonly tenantId?: string;
77
- /** The type of this extension (visualization, etc.). */
78
- type?: string;
79
- readonly updateAt?: string;
80
- readonly userId?: string;
81
- /** Version of the extension. */
82
- version?: string;
83
- };
84
- type Extensions = {
85
- data: Extension[];
86
- };
87
- /**
88
- * Object containing meta data regarding an error. It does not necessarily contain all the properties.
89
- */
90
- type Meta = {
91
- /** A more detailed message explaining the error. */
92
- message?: string;
93
- /** Name of the resource related to the error. If there is a conflict, it is the name of the model attempting to be created. */
94
- resourceName?: string;
95
- /** Full stack trace of the error that was raised. */
96
- stack?: string;
97
- };
98
- /**
99
- * Lists all extensions.
100
- *
101
- * @throws GetExtensionsHttpError
102
- */
103
- declare const getExtensions: (options?: ApiCallOptions) => Promise<GetExtensionsHttpResponse>;
104
- type GetExtensionsHttpResponse = {
105
- data: Extensions;
106
- headers: Headers;
107
- status: number;
108
- };
109
- type GetExtensionsHttpError = {
110
- data: unknown;
111
- headers: Headers;
112
- status: number;
113
- };
114
- /**
115
- * Creates a new extension. If a file is provided, the data field is not required.
116
- *
117
- * @param body an object with the body content
118
- * @throws UploadExtensionHttpError
119
- */
120
- declare const uploadExtension: (body: {
121
- /** The extension model. */
122
- data?: Extension;
123
- /** Extension archive. */
124
- file?: BodyInit;
125
- }, options?: ApiCallOptions) => Promise<UploadExtensionHttpResponse>;
126
- type UploadExtensionHttpResponse = {
127
- data: Extension;
128
- headers: Headers;
129
- status: number;
130
- };
131
- type UploadExtensionHttpError = {
132
- data: Error;
133
- headers: Headers;
134
- status: number;
135
- };
136
- /**
137
- * Deletes a specific extension.
138
- *
139
- * @param id Extension identifier or its qextFilename.
140
- * @throws DeleteExtensionHttpError
141
- */
142
- declare const deleteExtension: (id: string, options?: ApiCallOptions) => Promise<DeleteExtensionHttpResponse>;
143
- type DeleteExtensionHttpResponse = {
144
- data: void;
145
- headers: Headers;
146
- status: number;
147
- };
148
- type DeleteExtensionHttpError = {
149
- data: Error;
150
- headers: Headers;
151
- status: number;
152
- };
153
- /**
154
- * Returns a specific extension.
155
- *
156
- * @param id Extension identifier or its qextFilename.
157
- * @throws GetExtensionHttpError
158
- */
159
- declare const getExtension: (id: string, options?: ApiCallOptions) => Promise<GetExtensionHttpResponse>;
160
- type GetExtensionHttpResponse = {
161
- data: Extension;
162
- headers: Headers;
163
- status: number;
164
- };
165
- type GetExtensionHttpError = {
166
- data: Error;
167
- headers: Headers;
168
- status: number;
169
- };
170
- /**
171
- * Updates a specific extension with provided data. If a file is provided, the data field is not required.
172
- *
173
- * @param id Extension identifier or its qextFilename.
174
- * @param body an object with the body content
175
- * @throws PatchExtensionHttpError
176
- */
177
- declare const patchExtension: (id: string, body: {
178
- /** The extension model. */
179
- data?: Extension;
180
- /** Extension archive. */
181
- file?: BodyInit;
182
- }, options?: ApiCallOptions) => Promise<PatchExtensionHttpResponse>;
183
- type PatchExtensionHttpResponse = {
184
- data: Extension;
185
- headers: Headers;
186
- status: number;
187
- };
188
- type PatchExtensionHttpError = {
189
- data: Error;
190
- headers: Headers;
191
- status: number;
192
- };
193
- /**
194
- * Downloads the extension as an archive.
195
- *
196
- * @param id Extension identifier or its qextFilename.
197
- * @throws DownloadExtensionHttpError
198
- */
199
- declare const downloadExtension: (id: string, options?: ApiCallOptions) => Promise<DownloadExtensionHttpResponse>;
200
- type DownloadExtensionHttpResponse = {
201
- data: void;
202
- headers: Headers;
203
- status: number;
204
- };
205
- type DownloadExtensionHttpError = {
206
- data: Error;
207
- headers: Headers;
208
- status: number;
209
- };
210
- /**
211
- * Downloads a file from the extension archive.
212
- *
213
- * @param id Extension identifier or its qextFilename.
214
- * @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
215
- * @throws DownloadFileFromExtensionHttpError
216
- */
217
- declare const downloadFileFromExtension: (id: string, filepath: string, options?: ApiCallOptions) => Promise<DownloadFileFromExtensionHttpResponse>;
218
- type DownloadFileFromExtensionHttpResponse = {
219
- data: void;
220
- headers: Headers;
221
- status: number;
222
- };
223
- type DownloadFileFromExtensionHttpError = {
224
- data: Error;
225
- headers: Headers;
226
- status: number;
227
- };
228
- /**
229
- * Clears the cache for extensions api requests.
230
- */
231
- declare function clearCache(): void;
232
- interface ExtensionsAPI {
233
- /**
234
- * Lists all extensions.
235
- *
236
- * @throws GetExtensionsHttpError
237
- */
238
- getExtensions: typeof getExtensions;
239
- /**
240
- * Creates a new extension. If a file is provided, the data field is not required.
241
- *
242
- * @param body an object with the body content
243
- * @throws UploadExtensionHttpError
244
- */
245
- uploadExtension: typeof uploadExtension;
246
- /**
247
- * Deletes a specific extension.
248
- *
249
- * @param id Extension identifier or its qextFilename.
250
- * @throws DeleteExtensionHttpError
251
- */
252
- deleteExtension: typeof deleteExtension;
253
- /**
254
- * Returns a specific extension.
255
- *
256
- * @param id Extension identifier or its qextFilename.
257
- * @throws GetExtensionHttpError
258
- */
259
- getExtension: typeof getExtension;
260
- /**
261
- * Updates a specific extension with provided data. If a file is provided, the data field is not required.
262
- *
263
- * @param id Extension identifier or its qextFilename.
264
- * @param body an object with the body content
265
- * @throws PatchExtensionHttpError
266
- */
267
- patchExtension: typeof patchExtension;
268
- /**
269
- * Downloads the extension as an archive.
270
- *
271
- * @param id Extension identifier or its qextFilename.
272
- * @throws DownloadExtensionHttpError
273
- */
274
- downloadExtension: typeof downloadExtension;
275
- /**
276
- * Downloads a file from the extension archive.
277
- *
278
- * @param id Extension identifier or its qextFilename.
279
- * @param filepath Path to the file archive for the specified extension archive. Folders separated with forward slashes.
280
- * @throws DownloadFileFromExtensionHttpError
281
- */
282
- downloadFileFromExtension: typeof downloadFileFromExtension;
283
- /**
284
- * Clears the cache for extensions api requests.
285
- */
286
- clearCache: typeof clearCache;
287
- }
288
- /**
289
- * Functions for the extensions api
290
- */
291
- declare const extensionsExport: ExtensionsAPI;
292
-
293
- export { type BundleMeta, type DeleteExtensionHttpError, type DeleteExtensionHttpResponse, type DownloadExtensionHttpError, type DownloadExtensionHttpResponse, type DownloadFileFromExtensionHttpError, type DownloadFileFromExtensionHttpResponse, type Error, type Extension, type Extensions, type ExtensionsAPI, type GetExtensionHttpError, type GetExtensionHttpResponse, type GetExtensionsHttpError, type GetExtensionsHttpResponse, type Meta, type PatchExtensionHttpError, type PatchExtensionHttpResponse, type UploadExtensionHttpError, type UploadExtensionHttpResponse, clearCache, extensionsExport as default, deleteExtension, downloadExtension, downloadFileFromExtension, getExtension, getExtensions, patchExtension, uploadExtension };
package/extensions.mjs DELETED
@@ -1,77 +0,0 @@
1
- import {
2
- clearApiCache,
3
- invokeFetch
4
- } from "./chunks/3YV6X7S6.mjs";
5
- import "./chunks/EHAANYDL.mjs";
6
- import "./chunks/VSY5YIQY.mjs";
7
-
8
- // src/public/rest/extensions.ts
9
- var getExtensions = async (options) => invokeFetch("extensions", {
10
- method: "get",
11
- pathTemplate: "/api/v1/extensions",
12
- options
13
- });
14
- var uploadExtension = async (body, options) => invokeFetch("extensions", {
15
- method: "post",
16
- pathTemplate: "/api/v1/extensions",
17
- body,
18
- contentType: "multipart/form-data",
19
- options
20
- });
21
- var deleteExtension = async (id, options) => invokeFetch("extensions", {
22
- method: "delete",
23
- pathTemplate: "/api/v1/extensions/{id}",
24
- pathVariables: { id },
25
- options
26
- });
27
- var getExtension = async (id, options) => invokeFetch("extensions", {
28
- method: "get",
29
- pathTemplate: "/api/v1/extensions/{id}",
30
- pathVariables: { id },
31
- options
32
- });
33
- var patchExtension = async (id, body, options) => invokeFetch("extensions", {
34
- method: "patch",
35
- pathTemplate: "/api/v1/extensions/{id}",
36
- pathVariables: { id },
37
- body,
38
- contentType: "multipart/form-data",
39
- options
40
- });
41
- var downloadExtension = async (id, options) => invokeFetch("extensions", {
42
- method: "get",
43
- pathTemplate: "/api/v1/extensions/{id}/file",
44
- pathVariables: { id },
45
- options
46
- });
47
- var downloadFileFromExtension = async (id, filepath, options) => invokeFetch("extensions", {
48
- method: "get",
49
- pathTemplate: "/api/v1/extensions/{id}/file/{filepath}",
50
- pathVariables: { id, filepath },
51
- options
52
- });
53
- function clearCache() {
54
- return clearApiCache("extensions");
55
- }
56
- var extensionsExport = {
57
- getExtensions,
58
- uploadExtension,
59
- deleteExtension,
60
- getExtension,
61
- patchExtension,
62
- downloadExtension,
63
- downloadFileFromExtension,
64
- clearCache
65
- };
66
- var extensions_default = extensionsExport;
67
- export {
68
- clearCache,
69
- extensions_default as default,
70
- deleteExtension,
71
- downloadExtension,
72
- downloadFileFromExtension,
73
- getExtension,
74
- getExtensions,
75
- patchExtension,
76
- uploadExtension
77
- };
@@ -1,115 +0,0 @@
1
- import { H as HostConfig } from './auth-types-nnUcWhuU.mjs';
2
-
3
- /** An entry in the cache for one specific cacheKey */
4
- type CacheEntry = {
5
- lastPulled: number;
6
- /** last time the cache was accessed and prevented an api call */
7
- lastHit: Date | null;
8
- /** number of times the cache has been hit by a client */
9
- hitCount: number;
10
- /** the url path of the cache hit. Useful to determine how many different qmfes are accessing the cache key */
11
- accessedPaths: Set<string>;
12
- value: Promise<unknown>;
13
- };
14
- /** Additional options for an api call done with invoke-fetch */
15
- type ApiCallOptions = {
16
- /** Additional headers to pass on to the request. */
17
- headers?: Record<string, string>;
18
- /** if set to true the call will not use a cached result */
19
- noCache?: boolean;
20
- /**
21
- * Only used cached results whose age in milliseconds are less than that or equal to `maxCacheAge`.
22
- */
23
- maxCacheAge?: number | undefined;
24
- /**
25
- * Only results cached on or after the `ifCachedSince` timestamp are used.
26
- */
27
- useCacheIfAfter?: Date;
28
- /**
29
- * Specify if another host than `globalThis.location` is to be used. Typically used in embedding and mashups
30
- */
31
- hostConfig?: HostConfig;
32
- /**
33
- * Set the amount of time to wait for a response.
34
- * If the timeout is exceeded the request is aborted.
35
- */
36
- timeoutMs?: number;
37
- };
38
- type DownloadableBlob = Blob & {
39
- /** download the blob in a using the specified filename */
40
- download: (filename: string) => Promise<void>;
41
- };
42
-
43
- /** ApiKey Auth Configuration for a HostConfig */
44
- type ApiKeyAuthConfig = {
45
- /** api key created by a developer role on a tenant */
46
- apiKey: string;
47
- };
48
- /** Cookie Auth Configuration for a HostConfig */
49
- type CookieAuthConfig = {
50
- /** Web Integration Id created by tenant admin */
51
- webIntegrationId?: string;
52
- /** If set to false the `credentials` property will be set to same-origin */
53
- crossSiteCookies?: boolean;
54
- };
55
- /** WindowsCookie Auth Configuration for a HostConfig */
56
- type WindowsCookieAuthConfig = {
57
- /** location of the login page, auth module will redirect to this page when an unauthenticated api call is made */
58
- loginUri?: string;
59
- /** If set to false the `credentials` property will be set to same-origin */
60
- crossSiteCookies?: boolean;
61
- };
62
- /** OAuth2 Auth Configuration for a HostConfig */
63
- type Oauth2AuthConfig = {
64
- /** client id of oauth client created by tenant admin */
65
- clientId: string;
66
- /** client id of oauth client created by tenant admin */
67
- clientSecret?: string;
68
- /** location of where the client should be redirected after getting hold of the access token */
69
- redirectUri?: string;
70
- /** If set, store the access token in either local or session storage, otherwise not stored */
71
- accessTokenStorage?: "session" | "local";
72
- /** A string with comma separated values of oauth2 scopes https://oauth.net/2/scope defaults to "user_default" */
73
- scope?: string;
74
- };
75
- declare global {
76
- /**
77
- * QlikAuthModules is a global interface that can be extended to add custom auth modules.
78
- */
79
- interface QlikAuthModules {
80
- apikey: {
81
- config: ApiKeyAuthConfig;
82
- };
83
- oauth2: {
84
- config: Oauth2AuthConfig;
85
- };
86
- cookie: {
87
- config: CookieAuthConfig;
88
- };
89
- windowscookie: {
90
- config: WindowsCookieAuthConfig;
91
- };
92
- none: {
93
- config: object;
94
- };
95
- }
96
- /**
97
- * Property set on the window when the user is logging out.
98
- * This prevents unnecessary redirect calls when pending requests
99
- * resolved.
100
- */
101
- var loggingOut: boolean;
102
- /**
103
- * Attaching cache to the window so it can be viewed from the devtool.
104
- * Do not use this for anything!
105
- */
106
- var __API_CACHE__DO_NOT_USE_OR_YOU_WILL_BE_FIRED: Record<string, Record<string, CacheEntry>>;
107
- /**
108
- * QlikMain object defined in https://github.com/qlik-trial/main-web-container/blob/main/src/main.ts
109
- */
110
- var QlikMain: {
111
- resourceNeedsCredentials: (resourcesUrl: string) => boolean;
112
- } | undefined;
113
- }
114
-
115
- export type { ApiCallOptions as A, DownloadableBlob as D };