@qlik/api 0.0.2 → 0.0.3

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 (171) hide show
  1. package/api-keys.d.mts +14 -0
  2. package/api-keys.d.ts +14 -0
  3. package/api-keys.js +14 -10
  4. package/api-keys.mjs +6 -2
  5. package/apps.d.mts +478 -148
  6. package/apps.d.ts +478 -148
  7. package/apps.js +100 -42
  8. package/apps.mjs +60 -2
  9. package/audits.d.mts +12 -0
  10. package/audits.d.ts +12 -0
  11. package/audits.js +10 -9
  12. package/audits.mjs +3 -2
  13. package/auth-AWZV4DPP.js +41 -0
  14. package/{auth-RTFXVSSK.mjs → auth-CPBNNC7S.mjs} +4 -1
  15. package/auth.js +4 -3
  16. package/auth.mjs +3 -2
  17. package/automations.d.mts +36 -0
  18. package/automations.d.ts +36 -0
  19. package/automations.js +28 -21
  20. package/automations.mjs +9 -2
  21. package/brands.d.mts +45 -4
  22. package/brands.d.ts +45 -4
  23. package/brands.js +20 -15
  24. package/brands.mjs +7 -2
  25. package/{chunk-ZT4C7KCQ.js → chunk-2STFUQKQ.js} +3 -3
  26. package/{chunk-7REWEWCX.mjs → chunk-3SVRHJII.mjs} +3 -3
  27. package/{chunk-CKPJE4IA.mjs → chunk-67GJTTPV.mjs} +1 -1
  28. package/{chunk-M7F4JFOB.js → chunk-7RY3NO6N.js} +2 -2
  29. package/{chunk-NALKLKZS.mjs → chunk-CYRLVHU3.mjs} +316 -53
  30. package/{chunk-RMKP2BDX.js → chunk-D52VW5UN.js} +318 -55
  31. package/{chunk-GUQBHY3H.mjs → chunk-GNWU6SP2.mjs} +1 -1
  32. package/{chunk-QN23TPIE.js → chunk-GV5SRHY2.js} +4 -4
  33. package/{chunk-OULT3V2U.js → chunk-JNGURO23.js} +3 -3
  34. package/chunk-P57PW2II.js +11 -0
  35. package/{chunk-3YE7EI7I.mjs → chunk-TE7XMBT5.mjs} +1 -1
  36. package/chunk-ZFXKCRJC.mjs +11 -0
  37. package/collections.d.mts +51 -17
  38. package/collections.d.ts +51 -17
  39. package/collections.js +28 -14
  40. package/collections.mjs +16 -2
  41. package/csp-origins.d.mts +12 -0
  42. package/csp-origins.d.ts +12 -0
  43. package/csp-origins.js +12 -9
  44. package/csp-origins.mjs +5 -2
  45. package/data-assets.d.mts +10 -0
  46. package/data-assets.d.ts +10 -0
  47. package/data-assets.js +13 -8
  48. package/data-assets.mjs +7 -2
  49. package/data-connections.d.mts +18 -0
  50. package/data-connections.d.ts +18 -0
  51. package/data-connections.js +19 -12
  52. package/data-connections.mjs +9 -2
  53. package/data-credentials.d.mts +8 -0
  54. package/data-credentials.d.ts +8 -0
  55. package/data-credentials.js +10 -7
  56. package/data-credentials.mjs +5 -2
  57. package/data-files.d.mts +98 -13
  58. package/data-files.d.ts +98 -13
  59. package/data-files.js +22 -15
  60. package/data-files.mjs +9 -2
  61. package/{enigma-session-VPPJMBEM.js → enigma-session-XPXDQAIV.js} +5 -4
  62. package/{enigma-session-HGXKZJVO.mjs → enigma-session-ZH6MYA54.mjs} +2 -1
  63. package/{esm-RX7B2TUN.js → esm-3VXX2GKL.js} +3 -1
  64. package/{esm-M5ZBFTVD.mjs → esm-OY4XVIJB.mjs} +3 -1
  65. package/extensions.d.mts +26 -2
  66. package/extensions.d.ts +26 -2
  67. package/extensions.js +13 -10
  68. package/extensions.mjs +5 -2
  69. package/glossaries.d.mts +55 -20
  70. package/glossaries.d.ts +55 -20
  71. package/glossaries.js +39 -27
  72. package/glossaries.mjs +14 -2
  73. package/groups.d.mts +16 -0
  74. package/groups.d.ts +16 -0
  75. package/groups.js +16 -11
  76. package/groups.mjs +7 -2
  77. package/identity-providers.d.mts +16 -0
  78. package/identity-providers.d.ts +16 -0
  79. package/identity-providers.js +14 -11
  80. package/identity-providers.mjs +5 -2
  81. package/index.js +135 -101
  82. package/index.mjs +131 -97
  83. package/{invoke-fetch-IMO4AMA3.mjs → invoke-fetch-3WZWAAZH.mjs} +4 -1
  84. package/invoke-fetch-UNTAUR7O.js +17 -0
  85. package/items.d.mts +6 -6
  86. package/items.d.ts +6 -6
  87. package/items.js +14 -11
  88. package/items.mjs +5 -2
  89. package/licenses.d.mts +18 -0
  90. package/licenses.d.ts +18 -0
  91. package/licenses.js +17 -12
  92. package/licenses.mjs +7 -2
  93. package/package.json +4 -4
  94. package/{qix-K22VHZRH.js → qix-UNWXPGMA.js} +9 -8
  95. package/{qix-57WD2ZE6.mjs → qix-ZSJ4PIK3.mjs} +3 -2
  96. package/qix.d.mts +1 -1
  97. package/qix.d.ts +1 -1
  98. package/qix.js +4 -3
  99. package/qix.mjs +3 -2
  100. package/quotas.d.mts +4 -0
  101. package/quotas.d.ts +4 -0
  102. package/quotas.js +6 -5
  103. package/quotas.mjs +3 -2
  104. package/reload-tasks.js +11 -8
  105. package/reload-tasks.mjs +5 -2
  106. package/reloads.d.mts +17 -10
  107. package/reloads.d.ts +17 -10
  108. package/reloads.js +9 -7
  109. package/reloads.mjs +4 -2
  110. package/roles.d.mts +4 -0
  111. package/roles.d.ts +4 -0
  112. package/roles.js +6 -5
  113. package/roles.mjs +3 -2
  114. package/spaces.d.mts +27 -4
  115. package/spaces.d.ts +27 -4
  116. package/spaces.js +21 -15
  117. package/spaces.mjs +8 -2
  118. package/temp-contents.d.mts +8 -3
  119. package/temp-contents.d.ts +8 -3
  120. package/temp-contents.js +8 -6
  121. package/temp-contents.mjs +4 -2
  122. package/tenants.d.mts +12 -0
  123. package/tenants.d.ts +12 -0
  124. package/tenants.js +14 -9
  125. package/tenants.mjs +7 -2
  126. package/themes.d.mts +26 -2
  127. package/themes.d.ts +26 -2
  128. package/themes.js +13 -10
  129. package/themes.mjs +5 -2
  130. package/transports.d.mts +12 -0
  131. package/transports.d.ts +12 -0
  132. package/transports.js +12 -9
  133. package/transports.mjs +5 -2
  134. package/users.d.mts +48 -29
  135. package/users.d.ts +48 -29
  136. package/users.js +18 -13
  137. package/users.mjs +7 -2
  138. package/web-integrations.d.mts +10 -0
  139. package/web-integrations.d.ts +10 -0
  140. package/web-integrations.js +11 -8
  141. package/web-integrations.mjs +5 -2
  142. package/web-notifications.d.mts +12 -0
  143. package/web-notifications.d.ts +12 -0
  144. package/web-notifications.js +12 -9
  145. package/web-notifications.mjs +5 -2
  146. package/webhooks.d.mts +25 -5
  147. package/webhooks.d.ts +25 -5
  148. package/webhooks.js +17 -13
  149. package/webhooks.mjs +6 -2
  150. package/auth-CSVTXOZX.js +0 -36
  151. package/auth-OU7OTB7Y.js +0 -38
  152. package/auth-TE272Q34.mjs +0 -36
  153. package/chunk-4ES65KO3.js +0 -57
  154. package/chunk-4FLMND6T.js +0 -25
  155. package/chunk-4OMEH5SW.mjs +0 -1337
  156. package/chunk-6JERR27K.js +0 -17
  157. package/chunk-E42WUFCK.mjs +0 -57
  158. package/chunk-H7SAZYEE.js +0 -21
  159. package/chunk-KMMWJZHM.mjs +0 -25
  160. package/chunk-W4J34XGA.mjs +0 -17
  161. package/chunk-WM7FQU2U.mjs +0 -21
  162. package/chunk-XASXL2NC.js +0 -1337
  163. package/enigma-session-4L373ALV.mjs +0 -10196
  164. package/enigma-session-TEB53FAF.js +0 -10196
  165. package/esm-4X3DKK5D.js +0 -63
  166. package/esm-SOWVJKOQ.mjs +0 -63
  167. package/invoke-fetch-7PKPQ3FD.js +0 -14
  168. package/invoke-fetch-MSSJAZ7K.mjs +0 -14
  169. package/invoke-fetch-PEI54KZO.js +0 -14
  170. package/qix-EU7PXRZ6.mjs +0 -573
  171. package/qix-RLTISYTB.js +0 -573
@@ -61,6 +61,7 @@ type Notifications = {
61
61
  };
62
62
  /**
63
63
  * Retrieve notifications matching the query.
64
+ *
64
65
  * @param query an object with query parameters
65
66
  * @throws GetNotificationsHttpError
66
67
  */
@@ -88,6 +89,7 @@ type GetNotificationsHttpError = {
88
89
  };
89
90
  /**
90
91
  * Delete all notifications.
92
+ *
91
93
  * @throws DeleteNotificationsHttpError
92
94
  */
93
95
  declare const deleteNotifications: (options?: ApiCallOptions) => Promise<DeleteNotificationsHttpResponse>;
@@ -103,6 +105,7 @@ type DeleteNotificationsHttpError = {
103
105
  };
104
106
  /**
105
107
  * Patch all notifications.
108
+ *
106
109
  * @param body an object with the body content
107
110
  * @throws PatchNotificationsHttpError
108
111
  */
@@ -119,6 +122,7 @@ type PatchNotificationsHttpError = {
119
122
  };
120
123
  /**
121
124
  * Delete a notification.
125
+ *
122
126
  * @param notificationId The id of the notification to delete.
123
127
  * @throws DeleteNotificationHttpError
124
128
  */
@@ -135,6 +139,7 @@ type DeleteNotificationHttpError = {
135
139
  };
136
140
  /**
137
141
  * Retrieve a single notification by Id.
142
+ *
138
143
  * @param notificationId The id of the notification to retrieve.
139
144
  * @throws GetNotificationHttpError
140
145
  */
@@ -151,6 +156,7 @@ type GetNotificationHttpError = {
151
156
  };
152
157
  /**
153
158
  * Patch a notification.
159
+ *
154
160
  * @param notificationId The id of the notification to update.
155
161
  * @param body an object with the body content
156
162
  * @throws PatchNotificationHttpError
@@ -173,35 +179,41 @@ declare function clearCache(): void;
173
179
  interface WebNotificationsAPI {
174
180
  /**
175
181
  * Retrieve notifications matching the query.
182
+ *
176
183
  * @param query an object with query parameters
177
184
  * @throws GetNotificationsHttpError
178
185
  */
179
186
  getNotifications: typeof getNotifications;
180
187
  /**
181
188
  * Delete all notifications.
189
+ *
182
190
  * @throws DeleteNotificationsHttpError
183
191
  */
184
192
  deleteNotifications: typeof deleteNotifications;
185
193
  /**
186
194
  * Patch all notifications.
195
+ *
187
196
  * @param body an object with the body content
188
197
  * @throws PatchNotificationsHttpError
189
198
  */
190
199
  patchNotifications: typeof patchNotifications;
191
200
  /**
192
201
  * Delete a notification.
202
+ *
193
203
  * @param notificationId The id of the notification to delete.
194
204
  * @throws DeleteNotificationHttpError
195
205
  */
196
206
  deleteNotification: typeof deleteNotification;
197
207
  /**
198
208
  * Retrieve a single notification by Id.
209
+ *
199
210
  * @param notificationId The id of the notification to retrieve.
200
211
  * @throws GetNotificationHttpError
201
212
  */
202
213
  getNotification: typeof getNotification;
203
214
  /**
204
215
  * Patch a notification.
216
+ *
205
217
  * @param notificationId The id of the notification to update.
206
218
  * @param body an object with the body content
207
219
  * @throws PatchNotificationHttpError
@@ -1,48 +1,51 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
- require('./chunk-H7SAZYEE.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/web-notifications.ts
8
- var getNotifications = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "web-notifications", {
9
+ var getNotifications = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "web-notifications", {
9
10
  method: "get",
10
11
  pathTemplate: "/api/v1/web-notifications",
11
12
  query,
12
13
  options
13
14
  });
14
- var deleteNotifications = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "web-notifications", {
15
+ var deleteNotifications = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "web-notifications", {
15
16
  method: "delete",
16
17
  pathTemplate: "/api/v1/web-notifications/all",
17
18
  options
18
19
  });
19
- var patchNotifications = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "web-notifications", {
20
+ var patchNotifications = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "web-notifications", {
20
21
  method: "patch",
21
22
  pathTemplate: "/api/v1/web-notifications/all",
22
23
  body,
24
+ contentType: "application/json",
23
25
  options
24
26
  });
25
- var deleteNotification = async (notificationId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "web-notifications", {
27
+ var deleteNotification = async (notificationId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "web-notifications", {
26
28
  method: "delete",
27
29
  pathTemplate: "/api/v1/web-notifications/{notificationId}",
28
30
  pathVariables: { notificationId },
29
31
  options
30
32
  });
31
- var getNotification = async (notificationId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "web-notifications", {
33
+ var getNotification = async (notificationId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "web-notifications", {
32
34
  method: "get",
33
35
  pathTemplate: "/api/v1/web-notifications/{notificationId}",
34
36
  pathVariables: { notificationId },
35
37
  options
36
38
  });
37
- var patchNotification = async (notificationId, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "web-notifications", {
39
+ var patchNotification = async (notificationId, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "web-notifications", {
38
40
  method: "patch",
39
41
  pathTemplate: "/api/v1/web-notifications/{notificationId}",
40
42
  pathVariables: { notificationId },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
47
  function clearCache() {
45
- return _chunk6JERR27Kjs.clearApiCache.call(void 0, "web-notifications");
48
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "web-notifications");
46
49
  }
47
50
  var webNotificationsExport = {
48
51
  getNotifications,
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-W4J34XGA.mjs";
5
- import "./chunk-7REWEWCX.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/web-notifications.ts
8
9
  var getNotifications = async (query, options) => invokeFetch("web-notifications", {
@@ -20,6 +21,7 @@ var patchNotifications = async (body, options) => invokeFetch("web-notifications
20
21
  method: "patch",
21
22
  pathTemplate: "/api/v1/web-notifications/all",
22
23
  body,
24
+ contentType: "application/json",
23
25
  options
24
26
  });
25
27
  var deleteNotification = async (notificationId, options) => invokeFetch("web-notifications", {
@@ -39,6 +41,7 @@ var patchNotification = async (notificationId, body, options) => invokeFetch("we
39
41
  pathTemplate: "/api/v1/web-notifications/{notificationId}",
40
42
  pathVariables: { notificationId },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
47
  function clearCache() {
package/webhooks.d.mts CHANGED
@@ -85,11 +85,11 @@ type WebhookBase = {
85
85
  /** Types of events for which the webhook should trigger. */
86
86
  eventTypes?: string[];
87
87
  /** Filter that should match for a webhook to be triggered.
88
- // Supported common attribute names are 'id', 'spaceId' and 'topLevelResourceId', beside the common attributes the "com.qlik.v1.app.reload.finished" event also supports "data.status" that could be either "ok" or "error" but can't be used together with other event types.
89
- // Supported attribute operators are 'eq' and 'ne'.
90
- // Supported logical operators are 'and' and 'or'.
91
- // Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes
92
- // For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
88
+ * Supported common attribute names are 'id', 'spaceId' and 'topLevelResourceId', beside the common attributes the "com.qlik.v1.app.reload.finished" event also supports "data.status" that could be either "ok" or "error" but can't be used together with other event types.
89
+ * Supported attribute operators are 'eq' and 'ne'.
90
+ * Supported logical operators are 'and' and 'or'.
91
+ * Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes
92
+ * For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
93
93
  filter?: string;
94
94
  /** Additional headers in the post request */
95
95
  headers?: unknown;
@@ -136,6 +136,7 @@ type WebhookResponse = WebhookBase & {
136
136
  };
137
137
  /**
138
138
  * Retrieves all webhooks entries for a tenant
139
+ *
139
140
  * @param query an object with query parameters
140
141
  * @throws GetWebhooksHttpError
141
142
  */
@@ -179,6 +180,7 @@ type GetWebhooksHttpError = {
179
180
  };
180
181
  /**
181
182
  * Creates a new webhook
183
+ *
182
184
  * @param body an object with the body content
183
185
  * @throws CreateWebhookHttpError
184
186
  */
@@ -195,6 +197,7 @@ type CreateWebhookHttpError = {
195
197
  };
196
198
  /**
197
199
  * List of event-types that are possible to subscribe to.
200
+ *
198
201
  * @throws GetWebhookEventTypesHttpError
199
202
  */
200
203
  declare const getWebhookEventTypes: (options?: ApiCallOptions) => Promise<GetWebhookEventTypesHttpResponse>;
@@ -210,6 +213,7 @@ type GetWebhookEventTypesHttpError = {
210
213
  };
211
214
  /**
212
215
  * Deletes a specific webhook
216
+ *
213
217
  * @param id The webhook's unique identifier.
214
218
  * @throws DeleteWebhookHttpError
215
219
  */
@@ -226,6 +230,7 @@ type DeleteWebhookHttpError = {
226
230
  };
227
231
  /**
228
232
  * Returns details for a specific webhook
233
+ *
229
234
  * @param id The webhook's unique identifier.
230
235
  * @throws GetWebhookHttpError
231
236
  */
@@ -242,6 +247,7 @@ type GetWebhookHttpError = {
242
247
  };
243
248
  /**
244
249
  * Patches a webhook
250
+ *
245
251
  * @param id The webhook's unique identifier.
246
252
  * @param body an object with the body content
247
253
  * @throws PatchWebhookHttpError
@@ -259,6 +265,7 @@ type PatchWebhookHttpError = {
259
265
  };
260
266
  /**
261
267
  * Updates a webhook
268
+ *
262
269
  * @param id The webhook's unique identifier.
263
270
  * @param body an object with the body content
264
271
  * @throws UpdateWebhookHttpError
@@ -276,6 +283,7 @@ type UpdateWebhookHttpError = {
276
283
  };
277
284
  /**
278
285
  * Returns deliveries for a specific webhook
286
+ *
279
287
  * @param id The webhook's unique identifier.
280
288
  * @param query an object with query parameters
281
289
  * @throws GetWebhookDeliveriesHttpError
@@ -308,6 +316,7 @@ type GetWebhookDeliveriesHttpError = {
308
316
  };
309
317
  /**
310
318
  * Returns details for a specific delivery
319
+ *
311
320
  * @param id The webhook's unique identifier.
312
321
  * @param deliveryId The delivery's unique identifier.
313
322
  * @throws GetWebhookDeliveryHttpError
@@ -325,6 +334,7 @@ type GetWebhookDeliveryHttpError = {
325
334
  };
326
335
  /**
327
336
  * Resend the delivery with the same payload
337
+ *
328
338
  * @param id The webhook's unique identifier.
329
339
  * @param deliveryId The delivery's unique identifier.
330
340
  * @throws ResendWebhookDeliveryHttpError
@@ -347,35 +357,41 @@ declare function clearCache(): void;
347
357
  interface WebhooksAPI {
348
358
  /**
349
359
  * Retrieves all webhooks entries for a tenant
360
+ *
350
361
  * @param query an object with query parameters
351
362
  * @throws GetWebhooksHttpError
352
363
  */
353
364
  getWebhooks: typeof getWebhooks;
354
365
  /**
355
366
  * Creates a new webhook
367
+ *
356
368
  * @param body an object with the body content
357
369
  * @throws CreateWebhookHttpError
358
370
  */
359
371
  createWebhook: typeof createWebhook;
360
372
  /**
361
373
  * List of event-types that are possible to subscribe to.
374
+ *
362
375
  * @throws GetWebhookEventTypesHttpError
363
376
  */
364
377
  getWebhookEventTypes: typeof getWebhookEventTypes;
365
378
  /**
366
379
  * Deletes a specific webhook
380
+ *
367
381
  * @param id The webhook's unique identifier.
368
382
  * @throws DeleteWebhookHttpError
369
383
  */
370
384
  deleteWebhook: typeof deleteWebhook;
371
385
  /**
372
386
  * Returns details for a specific webhook
387
+ *
373
388
  * @param id The webhook's unique identifier.
374
389
  * @throws GetWebhookHttpError
375
390
  */
376
391
  getWebhook: typeof getWebhook;
377
392
  /**
378
393
  * Patches a webhook
394
+ *
379
395
  * @param id The webhook's unique identifier.
380
396
  * @param body an object with the body content
381
397
  * @throws PatchWebhookHttpError
@@ -383,6 +399,7 @@ interface WebhooksAPI {
383
399
  patchWebhook: typeof patchWebhook;
384
400
  /**
385
401
  * Updates a webhook
402
+ *
386
403
  * @param id The webhook's unique identifier.
387
404
  * @param body an object with the body content
388
405
  * @throws UpdateWebhookHttpError
@@ -390,6 +407,7 @@ interface WebhooksAPI {
390
407
  updateWebhook: typeof updateWebhook;
391
408
  /**
392
409
  * Returns deliveries for a specific webhook
410
+ *
393
411
  * @param id The webhook's unique identifier.
394
412
  * @param query an object with query parameters
395
413
  * @throws GetWebhookDeliveriesHttpError
@@ -397,6 +415,7 @@ interface WebhooksAPI {
397
415
  getWebhookDeliveries: typeof getWebhookDeliveries;
398
416
  /**
399
417
  * Returns details for a specific delivery
418
+ *
400
419
  * @param id The webhook's unique identifier.
401
420
  * @param deliveryId The delivery's unique identifier.
402
421
  * @throws GetWebhookDeliveryHttpError
@@ -404,6 +423,7 @@ interface WebhooksAPI {
404
423
  getWebhookDelivery: typeof getWebhookDelivery;
405
424
  /**
406
425
  * Resend the delivery with the same payload
426
+ *
407
427
  * @param id The webhook's unique identifier.
408
428
  * @param deliveryId The delivery's unique identifier.
409
429
  * @throws ResendWebhookDeliveryHttpError
package/webhooks.d.ts CHANGED
@@ -85,11 +85,11 @@ type WebhookBase = {
85
85
  /** Types of events for which the webhook should trigger. */
86
86
  eventTypes?: string[];
87
87
  /** Filter that should match for a webhook to be triggered.
88
- // Supported common attribute names are 'id', 'spaceId' and 'topLevelResourceId', beside the common attributes the "com.qlik.v1.app.reload.finished" event also supports "data.status" that could be either "ok" or "error" but can't be used together with other event types.
89
- // Supported attribute operators are 'eq' and 'ne'.
90
- // Supported logical operators are 'and' and 'or'.
91
- // Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes
92
- // For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
88
+ * Supported common attribute names are 'id', 'spaceId' and 'topLevelResourceId', beside the common attributes the "com.qlik.v1.app.reload.finished" event also supports "data.status" that could be either "ok" or "error" but can't be used together with other event types.
89
+ * Supported attribute operators are 'eq' and 'ne'.
90
+ * Supported logical operators are 'and' and 'or'.
91
+ * Note that attribute values must be valid JSON strings, hence they're enclosed with double quotes
92
+ * For more detailed information regarding the SCIM filter syntax (RFC7644) used please follow the link to external documentation. */
93
93
  filter?: string;
94
94
  /** Additional headers in the post request */
95
95
  headers?: unknown;
@@ -136,6 +136,7 @@ type WebhookResponse = WebhookBase & {
136
136
  };
137
137
  /**
138
138
  * Retrieves all webhooks entries for a tenant
139
+ *
139
140
  * @param query an object with query parameters
140
141
  * @throws GetWebhooksHttpError
141
142
  */
@@ -179,6 +180,7 @@ type GetWebhooksHttpError = {
179
180
  };
180
181
  /**
181
182
  * Creates a new webhook
183
+ *
182
184
  * @param body an object with the body content
183
185
  * @throws CreateWebhookHttpError
184
186
  */
@@ -195,6 +197,7 @@ type CreateWebhookHttpError = {
195
197
  };
196
198
  /**
197
199
  * List of event-types that are possible to subscribe to.
200
+ *
198
201
  * @throws GetWebhookEventTypesHttpError
199
202
  */
200
203
  declare const getWebhookEventTypes: (options?: ApiCallOptions) => Promise<GetWebhookEventTypesHttpResponse>;
@@ -210,6 +213,7 @@ type GetWebhookEventTypesHttpError = {
210
213
  };
211
214
  /**
212
215
  * Deletes a specific webhook
216
+ *
213
217
  * @param id The webhook's unique identifier.
214
218
  * @throws DeleteWebhookHttpError
215
219
  */
@@ -226,6 +230,7 @@ type DeleteWebhookHttpError = {
226
230
  };
227
231
  /**
228
232
  * Returns details for a specific webhook
233
+ *
229
234
  * @param id The webhook's unique identifier.
230
235
  * @throws GetWebhookHttpError
231
236
  */
@@ -242,6 +247,7 @@ type GetWebhookHttpError = {
242
247
  };
243
248
  /**
244
249
  * Patches a webhook
250
+ *
245
251
  * @param id The webhook's unique identifier.
246
252
  * @param body an object with the body content
247
253
  * @throws PatchWebhookHttpError
@@ -259,6 +265,7 @@ type PatchWebhookHttpError = {
259
265
  };
260
266
  /**
261
267
  * Updates a webhook
268
+ *
262
269
  * @param id The webhook's unique identifier.
263
270
  * @param body an object with the body content
264
271
  * @throws UpdateWebhookHttpError
@@ -276,6 +283,7 @@ type UpdateWebhookHttpError = {
276
283
  };
277
284
  /**
278
285
  * Returns deliveries for a specific webhook
286
+ *
279
287
  * @param id The webhook's unique identifier.
280
288
  * @param query an object with query parameters
281
289
  * @throws GetWebhookDeliveriesHttpError
@@ -308,6 +316,7 @@ type GetWebhookDeliveriesHttpError = {
308
316
  };
309
317
  /**
310
318
  * Returns details for a specific delivery
319
+ *
311
320
  * @param id The webhook's unique identifier.
312
321
  * @param deliveryId The delivery's unique identifier.
313
322
  * @throws GetWebhookDeliveryHttpError
@@ -325,6 +334,7 @@ type GetWebhookDeliveryHttpError = {
325
334
  };
326
335
  /**
327
336
  * Resend the delivery with the same payload
337
+ *
328
338
  * @param id The webhook's unique identifier.
329
339
  * @param deliveryId The delivery's unique identifier.
330
340
  * @throws ResendWebhookDeliveryHttpError
@@ -347,35 +357,41 @@ declare function clearCache(): void;
347
357
  interface WebhooksAPI {
348
358
  /**
349
359
  * Retrieves all webhooks entries for a tenant
360
+ *
350
361
  * @param query an object with query parameters
351
362
  * @throws GetWebhooksHttpError
352
363
  */
353
364
  getWebhooks: typeof getWebhooks;
354
365
  /**
355
366
  * Creates a new webhook
367
+ *
356
368
  * @param body an object with the body content
357
369
  * @throws CreateWebhookHttpError
358
370
  */
359
371
  createWebhook: typeof createWebhook;
360
372
  /**
361
373
  * List of event-types that are possible to subscribe to.
374
+ *
362
375
  * @throws GetWebhookEventTypesHttpError
363
376
  */
364
377
  getWebhookEventTypes: typeof getWebhookEventTypes;
365
378
  /**
366
379
  * Deletes a specific webhook
380
+ *
367
381
  * @param id The webhook's unique identifier.
368
382
  * @throws DeleteWebhookHttpError
369
383
  */
370
384
  deleteWebhook: typeof deleteWebhook;
371
385
  /**
372
386
  * Returns details for a specific webhook
387
+ *
373
388
  * @param id The webhook's unique identifier.
374
389
  * @throws GetWebhookHttpError
375
390
  */
376
391
  getWebhook: typeof getWebhook;
377
392
  /**
378
393
  * Patches a webhook
394
+ *
379
395
  * @param id The webhook's unique identifier.
380
396
  * @param body an object with the body content
381
397
  * @throws PatchWebhookHttpError
@@ -383,6 +399,7 @@ interface WebhooksAPI {
383
399
  patchWebhook: typeof patchWebhook;
384
400
  /**
385
401
  * Updates a webhook
402
+ *
386
403
  * @param id The webhook's unique identifier.
387
404
  * @param body an object with the body content
388
405
  * @throws UpdateWebhookHttpError
@@ -390,6 +407,7 @@ interface WebhooksAPI {
390
407
  updateWebhook: typeof updateWebhook;
391
408
  /**
392
409
  * Returns deliveries for a specific webhook
410
+ *
393
411
  * @param id The webhook's unique identifier.
394
412
  * @param query an object with query parameters
395
413
  * @throws GetWebhookDeliveriesHttpError
@@ -397,6 +415,7 @@ interface WebhooksAPI {
397
415
  getWebhookDeliveries: typeof getWebhookDeliveries;
398
416
  /**
399
417
  * Returns details for a specific delivery
418
+ *
400
419
  * @param id The webhook's unique identifier.
401
420
  * @param deliveryId The delivery's unique identifier.
402
421
  * @throws GetWebhookDeliveryHttpError
@@ -404,6 +423,7 @@ interface WebhooksAPI {
404
423
  getWebhookDelivery: typeof getWebhookDelivery;
405
424
  /**
406
425
  * Resend the delivery with the same payload
426
+ *
407
427
  * @param id The webhook's unique identifier.
408
428
  * @param deliveryId The delivery's unique identifier.
409
429
  * @throws ResendWebhookDeliveryHttpError
package/webhooks.js CHANGED
@@ -1,74 +1,78 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunk6JERR27Kjs = require('./chunk-6JERR27K.js');
5
- require('./chunk-H7SAZYEE.js');
4
+ var _chunkJNGURO23js = require('./chunk-JNGURO23.js');
5
+ require('./chunk-2STFUQKQ.js');
6
+ require('./chunk-P57PW2II.js');
6
7
 
7
8
  // src/public/rest/webhooks.ts
8
- var getWebhooks = async (query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
9
+ var getWebhooks = async (query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
9
10
  method: "get",
10
11
  pathTemplate: "/api/v1/webhooks",
11
12
  query,
12
13
  options
13
14
  });
14
- var createWebhook = async (body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
15
+ var createWebhook = async (body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/webhooks",
17
18
  body,
19
+ contentType: "application/json",
18
20
  options
19
21
  });
20
- var getWebhookEventTypes = async (options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
22
+ var getWebhookEventTypes = async (options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
21
23
  method: "get",
22
24
  pathTemplate: "/api/v1/webhooks/event-types",
23
25
  options
24
26
  });
25
- var deleteWebhook = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
27
+ var deleteWebhook = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
26
28
  method: "delete",
27
29
  pathTemplate: "/api/v1/webhooks/{id}",
28
30
  pathVariables: { id },
29
31
  options
30
32
  });
31
- var getWebhook = async (id, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
33
+ var getWebhook = async (id, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
32
34
  method: "get",
33
35
  pathTemplate: "/api/v1/webhooks/{id}",
34
36
  pathVariables: { id },
35
37
  options
36
38
  });
37
- var patchWebhook = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
39
+ var patchWebhook = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
38
40
  method: "patch",
39
41
  pathTemplate: "/api/v1/webhooks/{id}",
40
42
  pathVariables: { id },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
- var updateWebhook = async (id, body, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
47
+ var updateWebhook = async (id, body, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
45
48
  method: "put",
46
49
  pathTemplate: "/api/v1/webhooks/{id}",
47
50
  pathVariables: { id },
48
51
  body,
52
+ contentType: "application/json",
49
53
  options
50
54
  });
51
- var getWebhookDeliveries = async (id, query, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
55
+ var getWebhookDeliveries = async (id, query, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
52
56
  method: "get",
53
57
  pathTemplate: "/api/v1/webhooks/{id}/deliveries",
54
58
  pathVariables: { id },
55
59
  query,
56
60
  options
57
61
  });
58
- var getWebhookDelivery = async (id, deliveryId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
62
+ var getWebhookDelivery = async (id, deliveryId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
59
63
  method: "get",
60
64
  pathTemplate: "/api/v1/webhooks/{id}/deliveries/{deliveryId}",
61
65
  pathVariables: { id, deliveryId },
62
66
  options
63
67
  });
64
- var resendWebhookDelivery = async (id, deliveryId, options) => _chunk6JERR27Kjs.invokeFetch.call(void 0, "webhooks", {
68
+ var resendWebhookDelivery = async (id, deliveryId, options) => _chunkJNGURO23js.invokeFetch.call(void 0, "webhooks", {
65
69
  method: "post",
66
70
  pathTemplate: "/api/v1/webhooks/{id}/deliveries/{deliveryId}/actions/resend",
67
71
  pathVariables: { id, deliveryId },
68
72
  options
69
73
  });
70
74
  function clearCache() {
71
- return _chunk6JERR27Kjs.clearApiCache.call(void 0, "webhooks");
75
+ return _chunkJNGURO23js.clearApiCache.call(void 0, "webhooks");
72
76
  }
73
77
  var webhooksExport = {
74
78
  getWebhooks,
package/webhooks.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunk-W4J34XGA.mjs";
5
- import "./chunk-7REWEWCX.mjs";
4
+ } from "./chunk-TE7XMBT5.mjs";
5
+ import "./chunk-3SVRHJII.mjs";
6
+ import "./chunk-ZFXKCRJC.mjs";
6
7
 
7
8
  // src/public/rest/webhooks.ts
8
9
  var getWebhooks = async (query, options) => invokeFetch("webhooks", {
@@ -15,6 +16,7 @@ var createWebhook = async (body, options) => invokeFetch("webhooks", {
15
16
  method: "post",
16
17
  pathTemplate: "/api/v1/webhooks",
17
18
  body,
19
+ contentType: "application/json",
18
20
  options
19
21
  });
20
22
  var getWebhookEventTypes = async (options) => invokeFetch("webhooks", {
@@ -39,6 +41,7 @@ var patchWebhook = async (id, body, options) => invokeFetch("webhooks", {
39
41
  pathTemplate: "/api/v1/webhooks/{id}",
40
42
  pathVariables: { id },
41
43
  body,
44
+ contentType: "application/json",
42
45
  options
43
46
  });
44
47
  var updateWebhook = async (id, body, options) => invokeFetch("webhooks", {
@@ -46,6 +49,7 @@ var updateWebhook = async (id, body, options) => invokeFetch("webhooks", {
46
49
  pathTemplate: "/api/v1/webhooks/{id}",
47
50
  pathVariables: { id },
48
51
  body,
52
+ contentType: "application/json",
49
53
  options
50
54
  });
51
55
  var getWebhookDeliveries = async (id, query, options) => invokeFetch("webhooks", {
package/auth-CSVTXOZX.js DELETED
@@ -1,36 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
- var _chunkXASXL2NCjs = require('./chunk-XASXL2NC.js');
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
- exports.InvalidAuthTypeError = _chunkXASXL2NCjs.InvalidAuthTypeError; exports.InvalidHostConfigError = _chunkXASXL2NCjs.InvalidHostConfigError; exports.UnexpectedAuthTypeError = _chunkXASXL2NCjs.UnexpectedAuthTypeError; exports.checkForCrossDomainRequest = _chunkXASXL2NCjs.checkForCrossDomainRequest; exports.default = _chunkXASXL2NCjs.auth_default; exports.getRestCallAuthParams = _chunkXASXL2NCjs.getRestCallAuthParams; exports.getWebResourceAuthParams = _chunkXASXL2NCjs.getWebResourceAuthParams; exports.getWebSocketAuthParams = _chunkXASXL2NCjs.getWebSocketAuthParams; exports.handleAuthenticationError = _chunkXASXL2NCjs.handleAuthenticationError; exports.isHostCrossOrigin = _chunkXASXL2NCjs.isHostCrossOrigin; exports.isWindows = _chunkXASXL2NCjs.isWindows; exports.logout = _chunkXASXL2NCjs.logout; exports.registerAuthModule = _chunkXASXL2NCjs.registerAuthModule; exports.setDefaultHostConfig = _chunkXASXL2NCjs.setDefaultHostConfig; exports.toValidEnigmaLocationUrl = _chunkXASXL2NCjs.toValidEnigmaLocationUrl; exports.toValidLocationUrl = _chunkXASXL2NCjs.toValidLocationUrl;