@it_kyryl/arbitrage_admin_schema
Version:
Schema for arbitrage admin panel
53 lines • 1.87 kB
TypeScript
import { z } from "zod";
declare const backgroundTaskTypeDto: z.ZodEnum<["update_cost"]>;
declare const backgroundTaskStatusDto: z.ZodEnum<["pending"]>;
export type BackgroundTaskTypeDtoT = z.infer<typeof backgroundTaskTypeDto>;
export type BackgroundTaskStatusDtoT = z.infer<typeof backgroundTaskStatusDto>;
export declare const backgroundTaskDto: z.ZodObject<{
id: z.ZodString;
type: z.ZodEnum<["update_cost"]>;
subjectIds: z.ZodArray<z.ZodString, "many">;
progress: z.ZodNumber;
startedAt: z.ZodString;
status: z.ZodEnum<["pending"]>;
errorMessage: z.ZodString;
canModify: z.ZodBoolean;
}, "strip", z.ZodTypeAny, {
id: string;
type: "update_cost";
status: "pending";
subjectIds: string[];
progress: number;
startedAt: string;
errorMessage: string;
canModify: boolean;
}, {
id: string;
type: "update_cost";
status: "pending";
subjectIds: string[];
progress: number;
startedAt: string;
errorMessage: string;
canModify: boolean;
}>;
export type BackgroundTaskDtoT = z.infer<typeof backgroundTaskDto>;
export declare const getBackgroundTasksParams: z.ZodObject<{
"types[]": z.ZodEnum<["update_cost"]>;
datePreset: z.ZodEnum<["last_2_days", "all_time", "custom_time", "today", "yesterday"]>;
timezone: z.ZodString;
"statuses[]": z.ZodEnum<["pending"]>;
}, "strip", z.ZodTypeAny, {
"types[]": "update_cost";
datePreset: "last_2_days" | "all_time" | "custom_time" | "today" | "yesterday";
timezone: string;
"statuses[]": "pending";
}, {
"types[]": "update_cost";
datePreset: "last_2_days" | "all_time" | "custom_time" | "today" | "yesterday";
timezone: string;
"statuses[]": "pending";
}>;
export type GetBackgroundTasksParamsT = z.infer<typeof getBackgroundTasksParams>;
export {};
//# sourceMappingURL=backgroundTask.entity.d.ts.map