-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathreload-tasks.js
62 lines (61 loc) · 1.5 KB
/
reload-tasks.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/WQYEWU54.js";
import "./chunks/2B7YWDQC.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/reload-tasks.ts
var getReloadTasks = async (query, options) => invokeFetch("reload-tasks", {
method: "get",
pathTemplate: "/api/v1/reload-tasks",
query,
options
});
var createReloadTask = async (body, options) => invokeFetch("reload-tasks", {
method: "post",
pathTemplate: "/api/v1/reload-tasks",
body,
contentType: "application/json",
options
});
var deleteReloadTask = async (taskId, options) => invokeFetch("reload-tasks", {
method: "delete",
pathTemplate: "/api/v1/reload-tasks/{taskId}",
pathVariables: { taskId },
options
});
var getReloadTask = async (taskId, options) => invokeFetch("reload-tasks", {
method: "get",
pathTemplate: "/api/v1/reload-tasks/{taskId}",
pathVariables: { taskId },
options
});
var updateReloadTask = async (taskId, body, options) => invokeFetch("reload-tasks", {
method: "put",
pathTemplate: "/api/v1/reload-tasks/{taskId}",
pathVariables: { taskId },
body,
contentType: "application/json",
options
});
function clearCache() {
return clearApiCache("reload-tasks");
}
var reloadTasksExport = {
getReloadTasks,
createReloadTask,
deleteReloadTask,
getReloadTask,
updateReloadTask,
clearCache
};
var reload_tasks_default = reloadTasksExport;
export {
clearCache,
createReloadTask,
reload_tasks_default as default,
deleteReloadTask,
getReloadTask,
getReloadTasks,
updateReloadTask
};