@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.
- package/api-keys.d.ts +13 -12
- package/api-keys.js +64 -50
- package/apps.d.ts +56 -56
- package/apps.js +392 -304
- package/assistants.d.ts +34 -34
- package/assistants.js +257 -201
- package/audits.d.ts +10 -10
- package/audits.js +48 -36
- package/{auth-types-DqfMuSRX.d.ts → auth-types-Cj5bM3Yk.d.ts} +29 -9
- package/auth.d.ts +17 -4
- package/auth.js +4 -2
- package/automation-connections.d.ts +12 -12
- package/automation-connections.js +75 -59
- package/automations.d.ts +29 -29
- package/automations.js +159 -123
- package/automl-deployments.d.ts +4 -4
- package/automl-deployments.js +14 -12
- package/automl-predictions.d.ts +13 -13
- package/automl-predictions.js +56 -44
- package/brands.d.ts +18 -18
- package/brands.js +107 -83
- package/chunks/{LY7RP2HA.js → 4V6T7Y4L.js} +26 -8
- package/chunks/{RCLKKVYB.js → 6C6WMV7V.js} +9 -2
- package/chunks/{VVD2DPKQ.js → 6WNP7HZQ.js} +3 -3
- package/chunks/7MMXU6EL.js +86 -0
- package/chunks/{6ZONDHRN.js → EEE42MLS.js} +11 -4
- package/chunks/{FKDGGR2O.js → I2HA7WJB.js} +1362 -1366
- package/chunks/{M64RLKVG.js → M7AINAXZ.js} +7 -5
- package/chunks/{LTNGXTXG.js → QAOVZB27.js} +3 -3
- package/chunks/{YTT2FEVE.js → QZKOA6VR.js} +1 -1
- package/chunks/{UZTIZ4H5.js → VUYZKBT5.js} +74 -74
- package/chunks/{3RGGGGAR.js → ZCTVPXGO.js} +1 -1
- package/collections.d.ts +16 -15
- package/collections.js +98 -76
- package/conditions.d.ts +13 -13
- package/conditions.js +97 -75
- package/consumption.d.ts +4 -4
- package/consumption.js +11 -9
- package/csp-origins.d.ts +9 -9
- package/csp-origins.js +53 -41
- package/csrf-token.d.ts +3 -3
- package/csrf-token.js +10 -8
- package/data-alerts.d.ts +22 -22
- package/data-alerts.js +139 -107
- package/data-assets.d.ts +8 -8
- package/data-assets.js +50 -40
- package/data-connections.d.ts +16 -16
- package/data-connections.js +87 -69
- package/data-credentials.d.ts +11 -11
- package/data-credentials.js +52 -42
- package/data-files.d.ts +18 -18
- package/data-files.js +107 -83
- package/data-qualities.d.ts +6 -6
- package/data-qualities.js +28 -22
- package/data-sets.d.ts +10 -10
- package/data-sets.js +59 -47
- package/data-sources.d.ts +7 -7
- package/data-sources.js +28 -22
- package/data-stores.d.ts +16 -16
- package/data-stores.js +92 -72
- package/dcaas.d.ts +6 -6
- package/dcaas.js +28 -22
- package/di-projects.d.ts +22 -22
- package/di-projects.js +148 -116
- package/direct-access-agents.d.ts +328 -0
- package/direct-access-agents.js +108 -0
- package/encryption.d.ts +12 -12
- package/encryption.js +82 -62
- package/extensions.d.ts +11 -11
- package/extensions.js +61 -47
- package/glossaries.d.ts +33 -33
- package/glossaries.js +221 -173
- package/groups.d.ts +12 -12
- package/groups.js +72 -56
- package/identity-providers.d.ts +11 -11
- package/identity-providers.js +67 -51
- package/index.d.ts +9 -4
- package/index.js +102 -67
- package/interceptors.d.ts +9 -2
- package/interceptors.js +2 -2
- package/invoke-fetch-types-BYCD4pc9.d.ts +98 -0
- package/items.d.ts +14 -13
- package/items.js +71 -55
- package/knowledgebases.d.ts +23 -23
- package/knowledgebases.js +153 -119
- package/licenses.d.ts +16 -14
- package/licenses.js +76 -58
- package/lineage-graphs.d.ts +17 -17
- package/lineage-graphs.js +76 -60
- package/ml.d.ts +238 -60
- package/ml.js +391 -286
- package/notes.d.ts +4 -4
- package/notes.js +19 -15
- package/notifications.d.ts +4 -4
- package/notifications.js +11 -9
- package/oauth-clients.d.ts +14 -14
- package/oauth-clients.js +96 -74
- package/oauth-tokens.d.ts +5 -5
- package/oauth-tokens.js +19 -15
- package/package.json +8 -6
- package/qix.d.ts +145 -4
- package/qix.js +2 -2
- package/questions.d.ts +5 -5
- package/questions.js +22 -18
- package/quotas.d.ts +6 -6
- package/quotas.js +20 -16
- package/reload-tasks.d.ts +8 -8
- package/reload-tasks.js +46 -36
- package/reloads.d.ts +7 -7
- package/reloads.js +36 -28
- package/report-templates.d.ts +10 -10
- package/report-templates.js +64 -50
- package/reports.d.ts +4 -4
- package/reports.js +20 -16
- package/roles.d.ts +8 -8
- package/roles.js +46 -36
- package/sharing-tasks.d.ts +14 -14
- package/sharing-tasks.js +89 -69
- package/spaces.d.ts +27 -23
- package/spaces.js +153 -119
- package/tasks.d.ts +17 -17
- package/tasks.js +90 -70
- package/temp-contents.d.ts +7 -7
- package/temp-contents.js +30 -24
- package/tenants.d.ts +8 -8
- package/tenants.js +57 -45
- package/themes.d.ts +11 -11
- package/themes.js +61 -47
- package/transports.d.ts +8 -8
- package/transports.js +49 -37
- package/ui-config.d.ts +9 -9
- package/ui-config.js +61 -47
- package/users.d.ts +15 -15
- package/users.js +81 -63
- package/web-integrations.d.ts +8 -8
- package/web-integrations.js +46 -36
- package/web-notifications.d.ts +9 -9
- package/web-notifications.js +53 -41
- package/webhooks.d.ts +14 -14
- package/webhooks.js +88 -68
- package/chunks/2ZQ3ZX7F.js +0 -33
- 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/
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import "./chunks/
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
}
|
package/web-integrations.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './invoke-fetch-types-
|
|
2
|
-
import './auth-types-
|
|
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
|
|
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)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
232
|
+
declare function patchWebIntegration(id: string, body: WebIntegrationPatchSchema, options?: ApiCallOptions): Promise<PatchWebIntegrationHttpResponse>;
|
|
233
233
|
type PatchWebIntegrationHttpResponse = {
|
|
234
234
|
data: void;
|
|
235
235
|
headers: Headers;
|
package/web-integrations.js
CHANGED
|
@@ -1,44 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import "./chunks/
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
}
|
package/web-notifications.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as ApiCallOptions } from './invoke-fetch-types-
|
|
2
|
-
import './auth-types-
|
|
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
|
|
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)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
199
|
+
declare function patchNotification(notificationId: string, body: NotificationPatchSchema, options?: ApiCallOptions): Promise<PatchNotificationHttpResponse>;
|
|
200
200
|
type PatchNotificationHttpResponse = {
|
|
201
201
|
data: Meta;
|
|
202
202
|
headers: Headers;
|
package/web-notifications.js
CHANGED
|
@@ -1,49 +1,61 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearApiCache,
|
|
3
3
|
invokeFetch
|
|
4
|
-
} from "./chunks/
|
|
5
|
-
import "./chunks/
|
|
6
|
-
import "./chunks/
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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-
|
|
2
|
-
import './auth-types-
|
|
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
|
|
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)
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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)
|
|
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
|
|
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
|
|
349
|
+
declare function resendWebhookDelivery(id: string, deliveryId: string, options?: ApiCallOptions): Promise<ResendWebhookDeliveryHttpResponse>;
|
|
350
350
|
type ResendWebhookDeliveryHttpResponse = {
|
|
351
351
|
data: Delivery;
|
|
352
352
|
headers: Headers;
|