-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdata-files.js
123 lines (122 loc) · 3.09 KB
/
data-files.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
import {
clearApiCache,
invokeFetch
} from "./chunks/WQYEWU54.js";
import "./chunks/2B7YWDQC.js";
import "./chunks/2ZQ3ZX7F.js";
// src/public/rest/data-files.ts
var getDataFiles = async (query, options) => invokeFetch("data-files", {
method: "get",
pathTemplate: "/api/v1/data-files",
query,
options
});
var uploadDataFile = async (body, options) => invokeFetch("data-files", {
method: "post",
pathTemplate: "/api/v1/data-files",
body,
contentType: "multipart/form-data",
options
});
var moveDataFiles = async (body, options) => invokeFetch("data-files", {
method: "post",
pathTemplate: "/api/v1/data-files/actions/change-space",
body,
contentType: "application/json",
options
});
var deleteDataFiles = async (body, options) => invokeFetch("data-files", {
method: "post",
pathTemplate: "/api/v1/data-files/actions/delete",
body,
contentType: "application/json",
options
});
var getDataFilesConnections = async (query, options) => invokeFetch("data-files", {
method: "get",
pathTemplate: "/api/v1/data-files/connections",
query,
options
});
var getDataFileConnection = async (id, options) => invokeFetch("data-files", {
method: "get",
pathTemplate: "/api/v1/data-files/connections/{id}",
pathVariables: { id },
options
});
var getDataFilesQuotas = async (options) => invokeFetch("data-files", {
method: "get",
pathTemplate: "/api/v1/data-files/quotas",
options
});
var deleteDataFile = async (id, options) => invokeFetch("data-files", {
method: "delete",
pathTemplate: "/api/v1/data-files/{id}",
pathVariables: { id },
options
});
var getDataFile = async (id, options) => invokeFetch("data-files", {
method: "get",
pathTemplate: "/api/v1/data-files/{id}",
pathVariables: { id },
options
});
var reuploadDataFile = async (id, body, options) => invokeFetch("data-files", {
method: "put",
pathTemplate: "/api/v1/data-files/{id}",
pathVariables: { id },
body,
contentType: "multipart/form-data",
options
});
var changeDataFileOwner = async (id, body, options) => invokeFetch("data-files", {
method: "post",
pathTemplate: "/api/v1/data-files/{id}/actions/change-owner",
pathVariables: { id },
body,
contentType: "application/json",
options
});
var moveDataFile = async (id, body, options) => invokeFetch("data-files", {
method: "post",
pathTemplate: "/api/v1/data-files/{id}/actions/change-space",
pathVariables: { id },
body,
contentType: "application/json",
options
});
function clearCache() {
return clearApiCache("data-files");
}
var dataFilesExport = {
getDataFiles,
uploadDataFile,
moveDataFiles,
deleteDataFiles,
getDataFilesConnections,
getDataFileConnection,
getDataFilesQuotas,
deleteDataFile,
getDataFile,
reuploadDataFile,
changeDataFileOwner,
moveDataFile,
clearCache
};
var data_files_default = dataFilesExport;
export {
changeDataFileOwner,
clearCache,
data_files_default as default,
deleteDataFile,
deleteDataFiles,
getDataFile,
getDataFileConnection,
getDataFiles,
getDataFilesConnections,
getDataFilesQuotas,
moveDataFile,
moveDataFiles,
reuploadDataFile,
uploadDataFile
};