refactor: shifting lots of stuff around
This commit is contained in:
11
frontend/src/network/notifications.ts
Normal file
11
frontend/src/network/notifications.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { literal, pipe, strictObject, string, union, uuid } from "valibot";
|
||||
|
||||
export const processingImagesValidator = strictObject({
|
||||
ImageID: pipe(string(), uuid()),
|
||||
ImageName: string(),
|
||||
Status: union([
|
||||
literal("not-started"),
|
||||
literal("in-progress"),
|
||||
literal("complete"),
|
||||
]),
|
||||
});
|
||||
Reference in New Issue
Block a user