-
Notifications
You must be signed in to change notification settings - Fork 3
/
web-integrations.js
62 lines (61 loc) · 1.59 KB
/
web-integrations.js
1
2
3
4
5
6
7
8
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
import {
clearApiCache,
invokeFetch
} from "./chunks/OZPJW5CV.js";
import "./chunks/Q6KIM6ZM.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/web-integrations.ts
var getWebIntegrations = async (query, options) => invokeFetch("web-integrations", {
method: "get",
pathTemplate: "/api/v1/web-integrations",
query,
options
});
var createWebIntegration = async (body, options) => invokeFetch("web-integrations", {
method: "post",
pathTemplate: "/api/v1/web-integrations",
body,
contentType: "application/json",
options
});
var deleteWebIntegration = async (id, options) => invokeFetch("web-integrations", {
method: "delete",
pathTemplate: "/api/v1/web-integrations/{id}",
pathVariables: { id },
options
});
var getWebIntegration = async (id, options) => invokeFetch("web-integrations", {
method: "get",
pathTemplate: "/api/v1/web-integrations/{id}",
pathVariables: { id },
options
});
var patchWebIntegration = async (id, body, options) => invokeFetch("web-integrations", {
method: "patch",
pathTemplate: "/api/v1/web-integrations/{id}",
pathVariables: { id },
body,
contentType: "application/json",
options
});
function clearCache() {
return clearApiCache("web-integrations");
}
var webIntegrationsExport = {
getWebIntegrations,
createWebIntegration,
deleteWebIntegration,
getWebIntegration,
patchWebIntegration,
clearCache
};
var web_integrations_default = webIntegrationsExport;
export {
clearCache,
createWebIntegration,
web_integrations_default as default,
deleteWebIntegration,
getWebIntegration,
getWebIntegrations,
patchWebIntegration
};