import { defineStore } from 'pinia' import { ref } from 'vue' import type { WipeProfile, WipeSchedule, WipeHistory } from '@/types' export const useWipeStore = defineStore('wipe', () => { const profiles = ref([]) const schedules = ref([]) const history = ref([]) const isLoading = ref(false) async function fetchProfiles() { // TODO: GET /api/profiles } async function fetchSchedules() { // TODO: GET /api/schedules } async function fetchHistory() { // TODO: GET /api/wipes/history } async function triggerWipe(wipeType: string, profileId: string) { // TODO: POST /api/wipes/:server_id/trigger } async function triggerDryRun(wipeType: string, profileId: string) { // TODO: POST /api/wipes/:server_id/dry-run } return { profiles, schedules, history, isLoading, fetchProfiles, fetchSchedules, fetchHistory, triggerWipe, triggerDryRun, } })