@qlik/api 1.32.0 → 1.34.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 (142) hide show
  1. package/api-keys.d.ts +13 -12
  2. package/api-keys.js +64 -50
  3. package/apps.d.ts +56 -56
  4. package/apps.js +392 -304
  5. package/assistants.d.ts +34 -34
  6. package/assistants.js +257 -201
  7. package/audits.d.ts +10 -10
  8. package/audits.js +48 -36
  9. package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
  10. package/auth.d.ts +17 -4
  11. package/auth.js +4 -2
  12. package/automation-connections.d.ts +12 -12
  13. package/automation-connections.js +75 -59
  14. package/automations.d.ts +29 -29
  15. package/automations.js +159 -123
  16. package/automl-deployments.d.ts +4 -4
  17. package/automl-deployments.js +14 -12
  18. package/automl-predictions.d.ts +13 -13
  19. package/automl-predictions.js +56 -44
  20. package/brands.d.ts +18 -18
  21. package/brands.js +107 -83
  22. package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
  23. package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
  24. package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
  25. package/chunks/7MMXU6EL.js +86 -0
  26. package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
  27. package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
  28. package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
  29. package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
  30. package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
  31. package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
  32. package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
  33. package/collections.d.ts +16 -15
  34. package/collections.js +98 -76
  35. package/conditions.d.ts +13 -13
  36. package/conditions.js +97 -75
  37. package/consumption.d.ts +4 -4
  38. package/consumption.js +11 -9
  39. package/csp-origins.d.ts +9 -9
  40. package/csp-origins.js +53 -41
  41. package/csrf-token.d.ts +3 -3
  42. package/csrf-token.js +10 -8
  43. package/data-alerts.d.ts +22 -22
  44. package/data-alerts.js +139 -107
  45. package/data-assets.d.ts +8 -8
  46. package/data-assets.js +50 -40
  47. package/data-connections.d.ts +16 -16
  48. package/data-connections.js +87 -69
  49. package/data-credentials.d.ts +11 -11
  50. package/data-credentials.js +52 -42
  51. package/data-files.d.ts +18 -18
  52. package/data-files.js +107 -83
  53. package/data-qualities.d.ts +6 -6
  54. package/data-qualities.js +28 -22
  55. package/data-sets.d.ts +10 -10
  56. package/data-sets.js +59 -47
  57. package/data-sources.d.ts +7 -7
  58. package/data-sources.js +28 -22
  59. package/data-stores.d.ts +16 -16
  60. package/data-stores.js +92 -72
  61. package/dcaas.d.ts +6 -6
  62. package/dcaas.js +28 -22
  63. package/di-projects.d.ts +22 -22
  64. package/di-projects.js +148 -116
  65. package/direct-access-agents.d.ts +328 -0
  66. package/direct-access-agents.js +108 -0
  67. package/encryption.d.ts +12 -12
  68. package/encryption.js +82 -62
  69. package/extensions.d.ts +11 -11
  70. package/extensions.js +61 -47
  71. package/glossaries.d.ts +33 -33
  72. package/glossaries.js +221 -173
  73. package/groups.d.ts +12 -12
  74. package/groups.js +72 -56
  75. package/identity-providers.d.ts +11 -11
  76. package/identity-providers.js +67 -51
  77. package/index.d.ts +9 -4
  78. package/index.js +102 -67
  79. package/interceptors.d.ts +9 -2
  80. package/interceptors.js +2 -2
  81. package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
  82. package/items.d.ts +14 -13
  83. package/items.js +71 -55
  84. package/knowledgebases.d.ts +23 -23
  85. package/knowledgebases.js +153 -119
  86. package/licenses.d.ts +16 -14
  87. package/licenses.js +76 -58
  88. package/lineage-graphs.d.ts +17 -17
  89. package/lineage-graphs.js +76 -60
  90. package/ml.d.ts +238 -60
  91. package/ml.js +391 -286
  92. package/notes.d.ts +4 -4
  93. package/notes.js +19 -15
  94. package/notifications.d.ts +4 -4
  95. package/notifications.js +11 -9
  96. package/oauth-clients.d.ts +14 -14
  97. package/oauth-clients.js +96 -74
  98. package/oauth-tokens.d.ts +5 -5
  99. package/oauth-tokens.js +19 -15
  100. package/package.json +8 -6
  101. package/qix.d.ts +145 -4
  102. package/qix.js +2 -2
  103. package/questions.d.ts +5 -5
  104. package/questions.js +22 -18
  105. package/quotas.d.ts +6 -6
  106. package/quotas.js +20 -16
  107. package/reload-tasks.d.ts +8 -8
  108. package/reload-tasks.js +46 -36
  109. package/reloads.d.ts +7 -7
  110. package/reloads.js +36 -28
  111. package/report-templates.d.ts +10 -10
  112. package/report-templates.js +64 -50
  113. package/reports.d.ts +4 -4
  114. package/reports.js +20 -16
  115. package/roles.d.ts +8 -8
  116. package/roles.js +46 -36
  117. package/sharing-tasks.d.ts +14 -14
  118. package/sharing-tasks.js +89 -69
  119. package/spaces.d.ts +27 -23
  120. package/spaces.js +153 -119
  121. package/tasks.d.ts +17 -17
  122. package/tasks.js +90 -70
  123. package/temp-contents.d.ts +7 -7
  124. package/temp-contents.js +30 -24
  125. package/tenants.d.ts +8 -8
  126. package/tenants.js +57 -45
  127. package/themes.d.ts +11 -11
  128. package/themes.js +61 -47
  129. package/transports.d.ts +8 -8
  130. package/transports.js +49 -37
  131. package/ui-config.d.ts +9 -9
  132. package/ui-config.js +61 -47
  133. package/users.d.ts +15 -15
  134. package/users.js +81 -63
  135. package/web-integrations.d.ts +8 -8
  136. package/web-integrations.js +46 -36
  137. package/web-notifications.d.ts +9 -9
  138. package/web-notifications.js +53 -41
  139. package/webhooks.d.ts +14 -14
  140. package/webhooks.js +88 -68
  141. package/chunks/2ZQ3ZX7F.js +0 -33
  142. package/invoke-fetch-types-Cq7bjkqn.d.ts +0 -243
package/users.js CHANGED
@@ -1,71 +1,89 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/users.ts
9
- var getUsers = async (query, options) => invokeFetch("users", {
10
- method: "get",
11
- pathTemplate: "/api/v1/users",
12
- query,
13
- options
14
- });
15
- var createUser = async (body, options) => invokeFetch("users", {
16
- method: "post",
17
- pathTemplate: "/api/v1/users",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var countUsers = async (query, options) => invokeFetch("users", {
23
- method: "get",
24
- pathTemplate: "/api/v1/users/actions/count",
25
- query,
26
- options
27
- });
28
- var filterUsers = async (query, body, options) => invokeFetch("users", {
29
- method: "post",
30
- pathTemplate: "/api/v1/users/actions/filter",
31
- query,
32
- body,
33
- contentType: "application/json",
34
- options
35
- });
36
- var inviteUsers = async (body, options) => invokeFetch("users", {
37
- method: "post",
38
- pathTemplate: "/api/v1/users/actions/invite",
39
- body,
40
- contentType: "application/json",
41
- options
42
- });
43
- var getMyUser = async (options) => invokeFetch("users", {
44
- method: "get",
45
- pathTemplate: "/api/v1/users/me",
46
- options
47
- });
48
- var deleteUser = async (userId, options) => invokeFetch("users", {
49
- method: "delete",
50
- pathTemplate: "/api/v1/users/{userId}",
51
- pathVariables: { userId },
52
- options
53
- });
54
- var getUser = async (userId, query, options) => invokeFetch("users", {
55
- method: "get",
56
- pathTemplate: "/api/v1/users/{userId}",
57
- pathVariables: { userId },
58
- query,
59
- options
60
- });
61
- var patchUser = async (userId, body, options) => invokeFetch("users", {
62
- method: "patch",
63
- pathTemplate: "/api/v1/users/{userId}",
64
- pathVariables: { userId },
65
- body,
66
- contentType: "application/json",
67
- options
68
- });
9
+ async function getUsers(query, options) {
10
+ return invokeFetch("users", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/users",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createUser(body, options) {
18
+ return invokeFetch("users", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/users",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function countUsers(query, options) {
27
+ return invokeFetch("users", {
28
+ method: "get",
29
+ pathTemplate: "/api/v1/users/actions/count",
30
+ query,
31
+ options
32
+ });
33
+ }
34
+ async function filterUsers(query, body, options) {
35
+ return invokeFetch("users", {
36
+ method: "post",
37
+ pathTemplate: "/api/v1/users/actions/filter",
38
+ query,
39
+ body,
40
+ contentType: "application/json",
41
+ options
42
+ });
43
+ }
44
+ async function inviteUsers(body, options) {
45
+ return invokeFetch("users", {
46
+ method: "post",
47
+ pathTemplate: "/api/v1/users/actions/invite",
48
+ body,
49
+ contentType: "application/json",
50
+ options
51
+ });
52
+ }
53
+ async function getMyUser(options) {
54
+ return invokeFetch("users", {
55
+ method: "get",
56
+ pathTemplate: "/api/v1/users/me",
57
+ options
58
+ });
59
+ }
60
+ async function deleteUser(userId, options) {
61
+ return invokeFetch("users", {
62
+ method: "delete",
63
+ pathTemplate: "/api/v1/users/{userId}",
64
+ pathVariables: { userId },
65
+ options
66
+ });
67
+ }
68
+ async function getUser(userId, query, options) {
69
+ return invokeFetch("users", {
70
+ method: "get",
71
+ pathTemplate: "/api/v1/users/{userId}",
72
+ pathVariables: { userId },
73
+ query,
74
+ options
75
+ });
76
+ }
77
+ async function patchUser(userId, body, options) {
78
+ return invokeFetch("users", {
79
+ method: "patch",
80
+ pathTemplate: "/api/v1/users/{userId}",
81
+ pathVariables: { userId },
82
+ body,
83
+ contentType: "application/json",
84
+ options
85
+ });
86
+ }
69
87
  function clearCache() {
70
88
  return clearApiCache("users");
71
89
  }
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * An error object describing the error.
@@ -147,7 +147,7 @@ type WebIntegrations = {
147
147
  * @param query an object with query parameters
148
148
  * @throws GetWebIntegrationsHttpError
149
149
  */
150
- declare const getWebIntegrations: (query: {
150
+ declare function getWebIntegrations(query: {
151
151
  /** The target web integration ID to start looking before for web integrations. Cannot be used in conjunction with startingAfter. */
152
152
  endingBefore?: string;
153
153
  /** The number of web integration entries to retrieve. */
@@ -158,7 +158,7 @@ declare const getWebIntegrations: (query: {
158
158
  startingAfter?: string;
159
159
  /** The tenant ID to filter by. */
160
160
  tenantId?: string;
161
- }, options?: ApiCallOptions) => Promise<GetWebIntegrationsHttpResponse>;
161
+ }, options?: ApiCallOptions): Promise<GetWebIntegrationsHttpResponse>;
162
162
  type GetWebIntegrationsHttpResponse = {
163
163
  data: WebIntegrations;
164
164
  headers: Headers;
@@ -177,7 +177,7 @@ type GetWebIntegrationsHttpError = {
177
177
  * @param body an object with the body content
178
178
  * @throws CreateWebIntegrationHttpError
179
179
  */
180
- declare const createWebIntegration: (body: WebIntegrationPostSchema, options?: ApiCallOptions) => Promise<CreateWebIntegrationHttpResponse>;
180
+ declare function createWebIntegration(body: WebIntegrationPostSchema, options?: ApiCallOptions): Promise<CreateWebIntegrationHttpResponse>;
181
181
  type CreateWebIntegrationHttpResponse = {
182
182
  data: WebIntegrationPost;
183
183
  headers: Headers;
@@ -194,7 +194,7 @@ type CreateWebIntegrationHttpError = {
194
194
  * @param id The ID of the web integration to delete.
195
195
  * @throws DeleteWebIntegrationHttpError
196
196
  */
197
- declare const deleteWebIntegration: (id: string, options?: ApiCallOptions) => Promise<DeleteWebIntegrationHttpResponse>;
197
+ declare function deleteWebIntegration(id: string, options?: ApiCallOptions): Promise<DeleteWebIntegrationHttpResponse>;
198
198
  type DeleteWebIntegrationHttpResponse = {
199
199
  data: void;
200
200
  headers: Headers;
@@ -211,7 +211,7 @@ type DeleteWebIntegrationHttpError = {
211
211
  * @param id The ID of the web integration to retrieve.
212
212
  * @throws GetWebIntegrationHttpError
213
213
  */
214
- declare const getWebIntegration: (id: string, options?: ApiCallOptions) => Promise<GetWebIntegrationHttpResponse>;
214
+ declare function getWebIntegration(id: string, options?: ApiCallOptions): Promise<GetWebIntegrationHttpResponse>;
215
215
  type GetWebIntegrationHttpResponse = {
216
216
  data: WebIntegration;
217
217
  headers: Headers;
@@ -229,7 +229,7 @@ type GetWebIntegrationHttpError = {
229
229
  * @param body an object with the body content
230
230
  * @throws PatchWebIntegrationHttpError
231
231
  */
232
- declare const patchWebIntegration: (id: string, body: WebIntegrationPatchSchema, options?: ApiCallOptions) => Promise<PatchWebIntegrationHttpResponse>;
232
+ declare function patchWebIntegration(id: string, body: WebIntegrationPatchSchema, options?: ApiCallOptions): Promise<PatchWebIntegrationHttpResponse>;
233
233
  type PatchWebIntegrationHttpResponse = {
234
234
  data: void;
235
235
  headers: Headers;
@@ -1,44 +1,54 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/web-integrations.ts
9
- var getWebIntegrations = async (query, options) => invokeFetch("web-integrations", {
10
- method: "get",
11
- pathTemplate: "/api/v1/web-integrations",
12
- query,
13
- options
14
- });
15
- var createWebIntegration = async (body, options) => invokeFetch("web-integrations", {
16
- method: "post",
17
- pathTemplate: "/api/v1/web-integrations",
18
- body,
19
- contentType: "application/json",
20
- options
21
- });
22
- var deleteWebIntegration = async (id, options) => invokeFetch("web-integrations", {
23
- method: "delete",
24
- pathTemplate: "/api/v1/web-integrations/{id}",
25
- pathVariables: { id },
26
- options
27
- });
28
- var getWebIntegration = async (id, options) => invokeFetch("web-integrations", {
29
- method: "get",
30
- pathTemplate: "/api/v1/web-integrations/{id}",
31
- pathVariables: { id },
32
- options
33
- });
34
- var patchWebIntegration = async (id, body, options) => invokeFetch("web-integrations", {
35
- method: "patch",
36
- pathTemplate: "/api/v1/web-integrations/{id}",
37
- pathVariables: { id },
38
- body,
39
- contentType: "application/json",
40
- options
41
- });
9
+ async function getWebIntegrations(query, options) {
10
+ return invokeFetch("web-integrations", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/web-integrations",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function createWebIntegration(body, options) {
18
+ return invokeFetch("web-integrations", {
19
+ method: "post",
20
+ pathTemplate: "/api/v1/web-integrations",
21
+ body,
22
+ contentType: "application/json",
23
+ options
24
+ });
25
+ }
26
+ async function deleteWebIntegration(id, options) {
27
+ return invokeFetch("web-integrations", {
28
+ method: "delete",
29
+ pathTemplate: "/api/v1/web-integrations/{id}",
30
+ pathVariables: { id },
31
+ options
32
+ });
33
+ }
34
+ async function getWebIntegration(id, options) {
35
+ return invokeFetch("web-integrations", {
36
+ method: "get",
37
+ pathTemplate: "/api/v1/web-integrations/{id}",
38
+ pathVariables: { id },
39
+ options
40
+ });
41
+ }
42
+ async function patchWebIntegration(id, body, options) {
43
+ return invokeFetch("web-integrations", {
44
+ method: "patch",
45
+ pathTemplate: "/api/v1/web-integrations/{id}",
46
+ pathVariables: { id },
47
+ body,
48
+ contentType: "application/json",
49
+ options
50
+ });
51
+ }
42
52
  function clearCache() {
43
53
  return clearApiCache("web-integrations");
44
54
  }
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  /**
5
5
  * An error object.
@@ -98,7 +98,7 @@ type Notifications = {
98
98
  * @param query an object with query parameters
99
99
  * @throws GetNotificationsHttpError
100
100
  */
101
- declare const getNotifications: (query: {
101
+ declare function getNotifications(query: {
102
102
  /** The number of notification entries to retrieved. */
103
103
  limit?: number;
104
104
  /** Page number */
@@ -109,7 +109,7 @@ declare const getNotifications: (query: {
109
109
  resourceType?: string;
110
110
  /** The field to sort by, with +/- prefix indicating sort order */
111
111
  sort?: "+createdAt" | "-createdAt" | "+updatedAt" | "-updatedAt";
112
- }, options?: ApiCallOptions) => Promise<GetNotificationsHttpResponse>;
112
+ }, options?: ApiCallOptions): Promise<GetNotificationsHttpResponse>;
113
113
  type GetNotificationsHttpResponse = {
114
114
  data: Notifications;
115
115
  headers: Headers;
@@ -127,7 +127,7 @@ type GetNotificationsHttpError = {
127
127
  *
128
128
  * @throws DeleteNotificationsHttpError
129
129
  */
130
- declare const deleteNotifications: (options?: ApiCallOptions) => Promise<DeleteNotificationsHttpResponse>;
130
+ declare function deleteNotifications(options?: ApiCallOptions): Promise<DeleteNotificationsHttpResponse>;
131
131
  type DeleteNotificationsHttpResponse = {
132
132
  data: Meta;
133
133
  headers: Headers;
@@ -144,7 +144,7 @@ type DeleteNotificationsHttpError = {
144
144
  * @param body an object with the body content
145
145
  * @throws PatchNotificationsHttpError
146
146
  */
147
- declare const patchNotifications: (body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationsHttpResponse>;
147
+ declare function patchNotifications(body: NotificationPatchSchema, options?: ApiCallOptions): Promise<PatchNotificationsHttpResponse>;
148
148
  type PatchNotificationsHttpResponse = {
149
149
  data: Meta;
150
150
  headers: Headers;
@@ -161,7 +161,7 @@ type PatchNotificationsHttpError = {
161
161
  * @param notificationId The id of the notification to delete.
162
162
  * @throws DeleteNotificationHttpError
163
163
  */
164
- declare const deleteNotification: (notificationId: string, options?: ApiCallOptions) => Promise<DeleteNotificationHttpResponse>;
164
+ declare function deleteNotification(notificationId: string, options?: ApiCallOptions): Promise<DeleteNotificationHttpResponse>;
165
165
  type DeleteNotificationHttpResponse = {
166
166
  data: Meta;
167
167
  headers: Headers;
@@ -178,7 +178,7 @@ type DeleteNotificationHttpError = {
178
178
  * @param notificationId The id of the notification to retrieve.
179
179
  * @throws GetNotificationHttpError
180
180
  */
181
- declare const getNotification: (notificationId: string, options?: ApiCallOptions) => Promise<GetNotificationHttpResponse>;
181
+ declare function getNotification(notificationId: string, options?: ApiCallOptions): Promise<GetNotificationHttpResponse>;
182
182
  type GetNotificationHttpResponse = {
183
183
  data: Notification;
184
184
  headers: Headers;
@@ -196,7 +196,7 @@ type GetNotificationHttpError = {
196
196
  * @param body an object with the body content
197
197
  * @throws PatchNotificationHttpError
198
198
  */
199
- declare const patchNotification: (notificationId: string, body: NotificationPatchSchema, options?: ApiCallOptions) => Promise<PatchNotificationHttpResponse>;
199
+ declare function patchNotification(notificationId: string, body: NotificationPatchSchema, options?: ApiCallOptions): Promise<PatchNotificationHttpResponse>;
200
200
  type PatchNotificationHttpResponse = {
201
201
  data: Meta;
202
202
  headers: Headers;
@@ -1,49 +1,61 @@
1
1
  import {
2
2
  clearApiCache,
3
3
  invokeFetch
4
- } from "./chunks/VVD2DPKQ.js";
5
- import "./chunks/LTNGXTXG.js";
6
- import "./chunks/2ZQ3ZX7F.js";
4
+ } from "./chunks/6WNP7HZQ.js";
5
+ import "./chunks/QAOVZB27.js";
6
+ import "./chunks/7MMXU6EL.js";
7
7
 
8
8
  // src/public/rest/web-notifications.ts
9
- var getNotifications = async (query, options) => invokeFetch("web-notifications", {
10
- method: "get",
11
- pathTemplate: "/api/v1/web-notifications",
12
- query,
13
- options
14
- });
15
- var deleteNotifications = async (options) => invokeFetch("web-notifications", {
16
- method: "delete",
17
- pathTemplate: "/api/v1/web-notifications/all",
18
- options
19
- });
20
- var patchNotifications = async (body, options) => invokeFetch("web-notifications", {
21
- method: "patch",
22
- pathTemplate: "/api/v1/web-notifications/all",
23
- body,
24
- contentType: "application/json",
25
- options
26
- });
27
- var deleteNotification = async (notificationId, options) => invokeFetch("web-notifications", {
28
- method: "delete",
29
- pathTemplate: "/api/v1/web-notifications/{notificationId}",
30
- pathVariables: { notificationId },
31
- options
32
- });
33
- var getNotification = async (notificationId, options) => invokeFetch("web-notifications", {
34
- method: "get",
35
- pathTemplate: "/api/v1/web-notifications/{notificationId}",
36
- pathVariables: { notificationId },
37
- options
38
- });
39
- var patchNotification = async (notificationId, body, options) => invokeFetch("web-notifications", {
40
- method: "patch",
41
- pathTemplate: "/api/v1/web-notifications/{notificationId}",
42
- pathVariables: { notificationId },
43
- body,
44
- contentType: "application/json",
45
- options
46
- });
9
+ async function getNotifications(query, options) {
10
+ return invokeFetch("web-notifications", {
11
+ method: "get",
12
+ pathTemplate: "/api/v1/web-notifications",
13
+ query,
14
+ options
15
+ });
16
+ }
17
+ async function deleteNotifications(options) {
18
+ return invokeFetch("web-notifications", {
19
+ method: "delete",
20
+ pathTemplate: "/api/v1/web-notifications/all",
21
+ options
22
+ });
23
+ }
24
+ async function patchNotifications(body, options) {
25
+ return invokeFetch("web-notifications", {
26
+ method: "patch",
27
+ pathTemplate: "/api/v1/web-notifications/all",
28
+ body,
29
+ contentType: "application/json",
30
+ options
31
+ });
32
+ }
33
+ async function deleteNotification(notificationId, options) {
34
+ return invokeFetch("web-notifications", {
35
+ method: "delete",
36
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
37
+ pathVariables: { notificationId },
38
+ options
39
+ });
40
+ }
41
+ async function getNotification(notificationId, options) {
42
+ return invokeFetch("web-notifications", {
43
+ method: "get",
44
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
45
+ pathVariables: { notificationId },
46
+ options
47
+ });
48
+ }
49
+ async function patchNotification(notificationId, body, options) {
50
+ return invokeFetch("web-notifications", {
51
+ method: "patch",
52
+ pathTemplate: "/api/v1/web-notifications/{notificationId}",
53
+ pathVariables: { notificationId },
54
+ body,
55
+ contentType: "application/json",
56
+ options
57
+ });
58
+ }
47
59
  function clearCache() {
48
60
  return clearApiCache("web-notifications");
49
61
  }
package/webhooks.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { A as ApiCallOptions } from './invoke-fetch-types-Cq7bjkqn.js';
2
- import './auth-types-DqfMuSRX.js';
1
+ import { A as ApiCallOptions } from './invoke-fetch-types-BYCD4pc9.js';
2
+ import './auth-types-Cj5bM3Yk.js';
3
3
 
4
4
  type Delivery = {
5
5
  /** The name of the triggering event-type */
@@ -145,7 +145,7 @@ type WebhookResponse = WebhookBase & {
145
145
  * @param query an object with query parameters
146
146
  * @throws GetWebhooksHttpError
147
147
  */
148
- declare const getWebhooks: (query: {
148
+ declare function getWebhooks(query: {
149
149
  /** Filter resources by user that created it */
150
150
  createdByUserId?: string;
151
151
  /** Filter resources by enabled true/false */
@@ -172,7 +172,7 @@ declare const getWebhooks: (query: {
172
172
  updatedByUserId?: string;
173
173
  /** Filter resources by url (wildcard and case insensitive) */
174
174
  url?: string;
175
- }, options?: ApiCallOptions) => Promise<GetWebhooksHttpResponse>;
175
+ }, options?: ApiCallOptions): Promise<GetWebhooksHttpResponse>;
176
176
  type GetWebhooksHttpResponse = {
177
177
  data: WebhookList;
178
178
  headers: Headers;
@@ -191,7 +191,7 @@ type GetWebhooksHttpError = {
191
191
  * @param body an object with the body content
192
192
  * @throws CreateWebhookHttpError
193
193
  */
194
- declare const createWebhook: (body: WebhookPost, options?: ApiCallOptions) => Promise<CreateWebhookHttpResponse>;
194
+ declare function createWebhook(body: WebhookPost, options?: ApiCallOptions): Promise<CreateWebhookHttpResponse>;
195
195
  type CreateWebhookHttpResponse = {
196
196
  data: WebhookResponse;
197
197
  headers: Headers;
@@ -207,7 +207,7 @@ type CreateWebhookHttpError = {
207
207
  *
208
208
  * @throws GetWebhookEventTypesHttpError
209
209
  */
210
- declare const getWebhookEventTypes: (options?: ApiCallOptions) => Promise<GetWebhookEventTypesHttpResponse>;
210
+ declare function getWebhookEventTypes(options?: ApiCallOptions): Promise<GetWebhookEventTypesHttpResponse>;
211
211
  type GetWebhookEventTypesHttpResponse = {
212
212
  data: EventTypes;
213
213
  headers: Headers;
@@ -224,7 +224,7 @@ type GetWebhookEventTypesHttpError = {
224
224
  * @param id The webhook's unique identifier.
225
225
  * @throws DeleteWebhookHttpError
226
226
  */
227
- declare const deleteWebhook: (id: string, options?: ApiCallOptions) => Promise<DeleteWebhookHttpResponse>;
227
+ declare function deleteWebhook(id: string, options?: ApiCallOptions): Promise<DeleteWebhookHttpResponse>;
228
228
  type DeleteWebhookHttpResponse = {
229
229
  data: void;
230
230
  headers: Headers;
@@ -241,7 +241,7 @@ type DeleteWebhookHttpError = {
241
241
  * @param id The webhook's unique identifier.
242
242
  * @throws GetWebhookHttpError
243
243
  */
244
- declare const getWebhook: (id: string, options?: ApiCallOptions) => Promise<GetWebhookHttpResponse>;
244
+ declare function getWebhook(id: string, options?: ApiCallOptions): Promise<GetWebhookHttpResponse>;
245
245
  type GetWebhookHttpResponse = {
246
246
  data: WebhookResponse;
247
247
  headers: Headers;
@@ -259,7 +259,7 @@ type GetWebhookHttpError = {
259
259
  * @param body an object with the body content
260
260
  * @throws PatchWebhookHttpError
261
261
  */
262
- declare const patchWebhook: (id: string, body: WebhookPatch[], options?: ApiCallOptions) => Promise<PatchWebhookHttpResponse>;
262
+ declare function patchWebhook(id: string, body: WebhookPatch[], options?: ApiCallOptions): Promise<PatchWebhookHttpResponse>;
263
263
  type PatchWebhookHttpResponse = {
264
264
  data: void;
265
265
  headers: Headers;
@@ -277,7 +277,7 @@ type PatchWebhookHttpError = {
277
277
  * @param body an object with the body content
278
278
  * @throws UpdateWebhookHttpError
279
279
  */
280
- declare const updateWebhook: (id: string, body: WebhookBase, options?: ApiCallOptions) => Promise<UpdateWebhookHttpResponse>;
280
+ declare function updateWebhook(id: string, body: WebhookBase, options?: ApiCallOptions): Promise<UpdateWebhookHttpResponse>;
281
281
  type UpdateWebhookHttpResponse = {
282
282
  data: WebhookResponse;
283
283
  headers: Headers;
@@ -295,7 +295,7 @@ type UpdateWebhookHttpError = {
295
295
  * @param query an object with query parameters
296
296
  * @throws GetWebhookDeliveriesHttpError
297
297
  */
298
- declare const getWebhookDeliveries: (id: string, query: {
298
+ declare function getWebhookDeliveries(id: string, query: {
299
299
  /** Filter resources by event-type */
300
300
  eventType?: string;
301
301
  /** Maximum number of deliveries to retrieve */
@@ -308,7 +308,7 @@ declare const getWebhookDeliveries: (id: string, query: {
308
308
  sort?: "status" | "+status" | "-status" | "triggeredAt" | "+triggeredAt" | "-triggeredAt";
309
309
  /** Filter resources by status (success or fail) */
310
310
  status?: "success" | "fail";
311
- }, options?: ApiCallOptions) => Promise<GetWebhookDeliveriesHttpResponse>;
311
+ }, options?: ApiCallOptions): Promise<GetWebhookDeliveriesHttpResponse>;
312
312
  type GetWebhookDeliveriesHttpResponse = {
313
313
  data: DeliveryList;
314
314
  headers: Headers;
@@ -328,7 +328,7 @@ type GetWebhookDeliveriesHttpError = {
328
328
  * @param deliveryId The delivery's unique identifier.
329
329
  * @throws GetWebhookDeliveryHttpError
330
330
  */
331
- declare const getWebhookDelivery: (id: string, deliveryId: string, options?: ApiCallOptions) => Promise<GetWebhookDeliveryHttpResponse>;
331
+ declare function getWebhookDelivery(id: string, deliveryId: string, options?: ApiCallOptions): Promise<GetWebhookDeliveryHttpResponse>;
332
332
  type GetWebhookDeliveryHttpResponse = {
333
333
  data: Delivery;
334
334
  headers: Headers;
@@ -346,7 +346,7 @@ type GetWebhookDeliveryHttpError = {
346
346
  * @param deliveryId The delivery's unique identifier.
347
347
  * @throws ResendWebhookDeliveryHttpError
348
348
  */
349
- declare const resendWebhookDelivery: (id: string, deliveryId: string, options?: ApiCallOptions) => Promise<ResendWebhookDeliveryHttpResponse>;
349
+ declare function resendWebhookDelivery(id: string, deliveryId: string, options?: ApiCallOptions): Promise<ResendWebhookDeliveryHttpResponse>;
350
350
  type ResendWebhookDeliveryHttpResponse = {
351
351
  data: Delivery;
352
352
  headers: Headers;