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");
|
|
|
|
return Promise.resolve({
|
|
|
|
data: [],
|
|
|
|
total: 0,
|
|
|
|
});
|
|
|
|
},
|
|
|
|
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;
|