27 lines
725 B
JavaScript
27 lines
725 B
JavaScript
import { getStore } from './store.js';
|
|
|
|
export async function write(googleAuthId, input) {
|
|
const store = await getStore();
|
|
return store.modelvfs.write(googleAuthId, input);
|
|
}
|
|
|
|
export async function read(googleAuthId, name) {
|
|
const store = await getStore();
|
|
return store.modelvfs.read(googleAuthId, name);
|
|
}
|
|
|
|
export async function list(googleAuthId) {
|
|
const store = await getStore();
|
|
return store.modelvfs.list(googleAuthId);
|
|
}
|
|
|
|
export async function remove(googleAuthId, name) {
|
|
const store = await getStore();
|
|
return store.modelvfs.delete(googleAuthId, name);
|
|
}
|
|
|
|
export async function reset(googleAuthId) {
|
|
const store = await getStore();
|
|
return store.modelvfs.reset(googleAuthId);
|
|
}
|