@plyaz/types 1.37.2 → 1.37.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.cjs +6 -0
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.js +6 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/schemas.d.ts +13 -0
- package/dist/auth/types.d.ts +16 -0
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/auth/index.cjs
CHANGED
|
@@ -269,6 +269,11 @@ var SignupFormSchema = zod.z.object({
|
|
|
269
269
|
email: zod.z.email({ error: "errors.form.emailInvalid" }),
|
|
270
270
|
password: zod.z.string({ error: "errors.form.missingField" }).min(DEFAULT_PASSWORD, "errors.form.passwordTooShort")
|
|
271
271
|
});
|
|
272
|
+
var AuthFormSchema = zod.z.object({
|
|
273
|
+
email: zod.z.string().email({ message: "auth.errors.emailInvalid" }),
|
|
274
|
+
password: zod.z.string().min(DEFAULT_PASSWORD, { message: "auth.errors.passwordTooShort" }),
|
|
275
|
+
keepLoggedIn: zod.z.boolean().optional()
|
|
276
|
+
});
|
|
272
277
|
|
|
273
278
|
// src/auth/types.ts
|
|
274
279
|
var AUTH_ERROR_CODES = {
|
|
@@ -378,6 +383,7 @@ exports.AUTH_ERROR_DEFINITIONS = AUTH_ERROR_DEFINITIONS;
|
|
|
378
383
|
exports.AUTH_EVENTS = AUTH_EVENTS;
|
|
379
384
|
exports.AUTH_PROVIDER = AUTH_PROVIDER;
|
|
380
385
|
exports.AUTH_PROVIDER_TYPE = AUTH_PROVIDER_TYPE;
|
|
386
|
+
exports.AuthFormSchema = AuthFormSchema;
|
|
381
387
|
exports.ContactUsFormSchema = ContactUsFormSchema;
|
|
382
388
|
exports.ERROR_CODE_DESCRIPTIONS = ERROR_CODE_DESCRIPTIONS;
|
|
383
389
|
exports.ERROR_CODE_TO_HTTP_STATUS = ERROR_CODE_TO_HTTP_STATUS;
|