Add local save selection and editing
This commit is contained in:
1 parent
900eb90b42
commit
d19baec90b
18 files changed
+634
-4
No files matched your search
@@ -15,6 +15,7 @@ import {
|
||||
} from '../schemas/install.ts';
|
||||
import { LabInfoSchema, LaunchStateSchema } from '../schemas/launch.ts';
|
||||
import { MaintenanceInfoSchema, MaintenanceProgressSchema, MaintenanceRequestSchema } from '../schemas/maintenance.ts';
|
||||
import { CurrencyEditsSchema, SaveDetailsSchema, SaveKeysSchema, SaveListSchema, SaveRegistrationSchema } from '../schemas/saves.ts';
|
||||
import { SettingsPatchSchema, SettingsSchema } from '../schemas/settings.ts';
|
||||
|
||||
/**
|
||||
@@ -127,6 +128,26 @@ export const ipcContract = {
|
||||
input: z.void(),
|
||||
output: z.void(),
|
||||
},
|
||||
'saves:list': {
|
||||
input: z.object({ copyId: CopyIdSchema }),
|
||||
output: SaveListSchema,
|
||||
},
|
||||
'saves:details': {
|
||||
input: SaveKeysSchema,
|
||||
output: SaveDetailsSchema,
|
||||
},
|
||||
'saves:setCurrent': {
|
||||
input: SaveKeysSchema,
|
||||
output: SaveListSchema,
|
||||
},
|
||||
'saves:create': {
|
||||
input: SaveRegistrationSchema,
|
||||
output: SaveListSchema,
|
||||
},
|
||||
'saves:editCurrencies': {
|
||||
input: SaveKeysSchema.extend({ values: CurrencyEditsSchema }),
|
||||
output: SaveDetailsSchema,
|
||||
},
|
||||
'launch:getState': {
|
||||
input: z.void(),
|
||||
output: LaunchStateSchema,
|
||||
|
||||
Reference in new issue
Block a user