@stylish-cat/contracts
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -25,2 +25,10 @@ import { z } from "zod"; | ||
export declare const ResetPasswordSchema: z.ZodObject<{ | ||
email: z.ZodString; | ||
}, "strip", z.ZodTypeAny, { | ||
email: string; | ||
}, { | ||
email: string; | ||
}>; | ||
export declare type ResetPassword = z.infer<typeof ResetPasswordSchema>; | ||
export declare const ResetPasswordConfirmSchema: z.ZodObject<{ | ||
password: z.ZodString; | ||
@@ -32,3 +40,2 @@ }, "strip", z.ZodTypeAny, { | ||
}>; | ||
export declare type ResetPassword = z.infer<typeof ResetPasswordSchema>; | ||
//# sourceMappingURL=manual.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ResetPasswordSchema = exports.ManualSignUpSchema = exports.ManualSignInSchema = void 0; | ||
exports.ResetPasswordConfirmSchema = exports.ResetPasswordSchema = exports.ManualSignUpSchema = exports.ManualSignInSchema = void 0; | ||
const zod_1 = require("zod"); | ||
exports.ManualSignInSchema = zod_1.z.object({ | ||
email: zod_1.z.string().email({ message: "Це не пошта" }), | ||
email: zod_1.z | ||
.string({ | ||
required_error: "Це поле обов'язкове", | ||
invalid_type_error: "Тут повинна бути строка", | ||
}) | ||
.email({ message: "Це не пошта" }), | ||
password: zod_1.z | ||
.string() | ||
.string({ | ||
required_error: "Це поле обов'язкове", | ||
invalid_type_error: "Тут повинна бути строка", | ||
}) | ||
.min(8, { message: "Пароль має бути не менше 8 символів" }), | ||
}); | ||
exports.ManualSignUpSchema = zod_1.z.object({ | ||
email: zod_1.z.string().email({ message: "Це не пошта" }), | ||
email: zod_1.z | ||
.string({ | ||
required_error: "Це поле обов'язкове", | ||
invalid_type_error: "Тут повинна бути строка", | ||
}) | ||
.email({ message: "Це не пошта" }), | ||
password: zod_1.z | ||
.string() | ||
.string({ | ||
required_error: "Це поле обов'язкове", | ||
invalid_type_error: "Тут повинна бути строка", | ||
}) | ||
.min(8, { message: "Пароль має бути не менше 8 символів" }), | ||
}); | ||
exports.ResetPasswordSchema = zod_1.z.object({ | ||
email: zod_1.z | ||
.string({ | ||
required_error: "Це поле обов'язкове", | ||
invalid_type_error: "Тут повинна бути строка", | ||
}) | ||
.email({ message: "Це не пошта" }), | ||
}); | ||
exports.ResetPasswordConfirmSchema = zod_1.z.object({ | ||
password: zod_1.z | ||
.string() | ||
.string({ | ||
required_error: "Це поле обов'язкове", | ||
invalid_type_error: "Тут повинна бути строка", | ||
}) | ||
.min(8, { message: "Пароль має бути не менше 8 символів" }), | ||
}); |
{ | ||
"name": "@stylish-cat/contracts", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
22539
366