@dcl.ru/dtos
Version:
dcl.ru API v3 data transfer objects — types, enums and zod schemas
61 lines • 2.05 kB
TypeScript
import { z } from 'zod';
export declare const CategorySchema: z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
nameSingular: z.ZodString;
namePlural: z.ZodString;
}, z.core.$strip>;
export type CategoryDto = z.infer<typeof CategorySchema>;
export declare enum CardTypes {
Regular = 1,
Main = 2,
Featured = 3
}
export declare const CardTypesEnumSchema: z.ZodEnum<typeof CardTypes>;
export declare const GroupSchema: z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
name: z.ZodString;
cardType: z.ZodEnum<typeof CardTypes>;
}, z.core.$strip>;
export type GroupDto = z.infer<typeof GroupSchema>;
export declare const TagSchema: z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
name: z.ZodString;
}, z.core.$strip>;
export type TagDto = z.infer<typeof TagSchema>;
export declare const BadgeSchema: z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
name: z.ZodString;
color: z.ZodString;
}, z.core.$strip>;
export type BadgeDto = z.infer<typeof BadgeSchema>;
export declare const CategoriesGroupsTagsBadgesSchema: z.ZodObject<{
categories: z.ZodArray<z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
nameSingular: z.ZodString;
namePlural: z.ZodString;
}, z.core.$strip>>;
groups: z.ZodArray<z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
name: z.ZodString;
cardType: z.ZodEnum<typeof CardTypes>;
}, z.core.$strip>>;
tags: z.ZodArray<z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
name: z.ZodString;
}, z.core.$strip>>;
badges: z.ZodArray<z.ZodObject<{
id: z.ZodCoercedNumber<unknown>;
slug: z.ZodString;
name: z.ZodString;
color: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strip>;
export type CategoriesGroupsTagsBadgesDto = z.infer<typeof CategoriesGroupsTagsBadgesSchema>;
//# sourceMappingURL=fronts.d.ts.map