-
Notifications
You must be signed in to change notification settings - Fork 3
/
audits.js
64 lines (63 loc) · 1.39 KB
/
audits.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
63
64
import {
clearApiCache,
invokeFetch
} from "./chunks/OZPJW5CV.js";
import "./chunks/Q6KIM6ZM.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/audits.ts
var getAudits = async (query, options) => invokeFetch("audits", {
method: "get",
pathTemplate: "/api/v1/audits",
query,
options
});
var getArchivedAudits = async (query, options) => invokeFetch("audits", {
method: "get",
pathTemplate: "/api/v1/audits/archive",
query,
options
});
var getAuditsSettings = async (options) => invokeFetch("audits", {
method: "get",
pathTemplate: "/api/v1/audits/settings",
options
});
var getAuditSources = async (options) => invokeFetch("audits", {
method: "get",
pathTemplate: "/api/v1/audits/sources",
options
});
var getAuditTypes = async (options) => invokeFetch("audits", {
method: "get",
pathTemplate: "/api/v1/audits/types",
options
});
var getAudit = async (id, options) => invokeFetch("audits", {
method: "get",
pathTemplate: "/api/v1/audits/{id}",
pathVariables: { id },
options
});
function clearCache() {
return clearApiCache("audits");
}
var auditsExport = {
getAudits,
getArchivedAudits,
getAuditsSettings,
getAuditSources,
getAuditTypes,
getAudit,
clearCache
};
var audits_default = auditsExport;
export {
clearCache,
audits_default as default,
getArchivedAudits,
getAudit,
getAuditSources,
getAuditTypes,
getAudits,
getAuditsSettings
};