-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtemp-contents.js
41 lines (40 loc) · 1.08 KB
/
temp-contents.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
import {
clearApiCache,
invokeFetch
} from "./chunks/WQYEWU54.js";
import "./chunks/2B7YWDQC.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/temp-contents.ts
var uploadTempFile = async (query, body, options) => invokeFetch("temp-contents", {
method: "post",
pathTemplate: "/api/v1/temp-contents",
query,
body,
contentType: "application/octet-stream",
options
});
var downloadTempFile = async (id, query, options) => invokeFetch("temp-contents", {
method: "get",
pathTemplate: "/api/v1/temp-contents/{id}",
pathVariables: { id },
query,
options
});
var getTempFileDetails = async (id, options) => invokeFetch("temp-contents", {
method: "get",
pathTemplate: "/api/v1/temp-contents/{id}/details",
pathVariables: { id },
options
});
function clearCache() {
return clearApiCache("temp-contents");
}
var tempContentsExport = { uploadTempFile, downloadTempFile, getTempFileDetails, clearCache };
var temp_contents_default = tempContentsExport;
export {
clearCache,
temp_contents_default as default,
downloadTempFile,
getTempFileDetails,
uploadTempFile
};