2024-03-15 19:59:02 +00:00
|
|
|
import type { DataProvider } from "@refinedev/core";
|
2024-03-19 22:47:33 +00:00
|
|
|
import { SdkProvider } from "~/data/sdk-provider.js";
|
2024-03-14 16:17:41 +00:00
|
|
|
|
2024-03-19 22:47:33 +00:00
|
|
|
export const fileProvider = {
|
|
|
|
getList: () => {
|
|
|
|
console.log("Not implemented");
|
2024-03-21 05:15:12 +00:00
|
|
|
return {
|
|
|
|
data: [
|
|
|
|
{
|
|
|
|
name: "whirly-final-draft.psd",
|
|
|
|
cid: "0xB45165ED3CD437B",
|
|
|
|
size: "1.89 MB",
|
|
|
|
createdOn: " 03/02/2024 at 13:29 PM",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "whirly-final-draft.psd",
|
|
|
|
cid: "0xB45165ED3CD437B",
|
|
|
|
size: "1.89 MB",
|
|
|
|
createdOn: " 03/02/2024 at 13:29 PM",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
total: 2
|
|
|
|
}
|
2024-03-19 22:47:33 +00:00
|
|
|
},
|
|
|
|
getOne: () => {
|
|
|
|
console.log("Not implemented");
|
|
|
|
return Promise.resolve({
|
|
|
|
data: {
|
|
|
|
id: 1
|
|
|
|
},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
update: () => {
|
|
|
|
console.log("Not implemented");
|
|
|
|
return Promise.resolve({
|
|
|
|
data: {},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
create: () => {
|
|
|
|
console.log("Not implemented");
|
|
|
|
return Promise.resolve({
|
|
|
|
data: {},
|
|
|
|
});
|
|
|
|
},
|
|
|
|
deleteOne: () => {
|
|
|
|
console.log("Not implemented");
|
|
|
|
return Promise.resolve({
|
|
|
|
data: {},
|
|
|
|
});
|
|
|
|
},
|
2024-03-15 19:59:02 +00:00
|
|
|
getApiUrl: () => "",
|
2024-03-19 22:47:33 +00:00
|
|
|
} satisfies SdkProvider;
|