@the-inkwell/shared 0.2.77 → 0.2.78
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.
|
@@ -3,10 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AuthSignInCreateInputSchema = exports.AuthOtpCreateSchema = void 0;
|
|
4
4
|
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
5
|
const core_1 = require("../core");
|
|
6
|
+
const v4_1 = require("zod/v4");
|
|
6
7
|
exports.AuthOtpCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.person).pick({
|
|
7
8
|
email: true
|
|
8
9
|
});
|
|
9
|
-
exports.AuthSignInCreateInputSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.otp)
|
|
10
|
+
exports.AuthSignInCreateInputSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.otp)
|
|
11
|
+
.pick({
|
|
10
12
|
code: true
|
|
13
|
+
})
|
|
14
|
+
.extend({
|
|
15
|
+
isAdmin: v4_1.z.boolean().optional()
|
|
11
16
|
});
|
|
12
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/auth/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,kCAAqC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/auth/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,kCAAqC;AACrC,+BAA0B;AAEb,QAAA,mBAAmB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IACjE,KAAK,EAAE,IAAI;CACZ,CAAC,CAAA;AACW,QAAA,2BAA2B,GAAG,IAAA,gCAAkB,EAAC,UAAG,CAAC;KAC/D,IAAI,CAAC;IACJ,IAAI,EAAE,IAAI;CACX,CAAC;KACD,MAAM,CAAC;IACN,OAAO,EAAE,MAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { person, otp } from '../core'\nimport { z } from 'zod/v4'\n\nexport const AuthOtpCreateSchema = createInsertSchema(person).pick({\n email: true\n})\nexport const AuthSignInCreateInputSchema = createInsertSchema(otp)\n .pick({\n code: true\n })\n .extend({\n isAdmin: z.boolean().optional()\n })\n\nexport type AuthOtpCreateInput = z.infer<typeof AuthOtpCreateSchema>\n\nexport type AuthSignInCreateInput = z.infer<typeof AuthSignInCreateInputSchema>\n"]}
|