-
Notifications
You must be signed in to change notification settings - Fork 3
/
reloads.js
46 lines (45 loc) · 1.13 KB
/
reloads.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
import {
clearApiCache,
invokeFetch
} from "./chunks/SMQGR3VM.js";
import "./chunks/3KD5W26Z.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/reloads.ts
var getReloads = async (query, options) => invokeFetch("reloads", {
method: "get",
pathTemplate: "/api/v1/reloads",
query,
options
});
var queueReload = async (body, options) => invokeFetch("reloads", {
method: "post",
pathTemplate: "/api/v1/reloads",
body,
contentType: "application/json",
options
});
var getReload = async (reloadId, options) => invokeFetch("reloads", {
method: "get",
pathTemplate: "/api/v1/reloads/{reloadId}",
pathVariables: { reloadId },
options
});
var cancelReload = async (reloadId, options) => invokeFetch("reloads", {
method: "post",
pathTemplate: "/api/v1/reloads/{reloadId}/actions/cancel",
pathVariables: { reloadId },
options
});
function clearCache() {
return clearApiCache("reloads");
}
var reloadsExport = { getReloads, queueReload, getReload, cancelReload, clearCache };
var reloads_default = reloadsExport;
export {
cancelReload,
clearCache,
reloads_default as default,
getReload,
getReloads,
queueReload
};