@the-inkwell/shared 0.2.56 → 0.2.58

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.
@@ -4,6 +4,6 @@ export declare const PublicJoinCreateSchema: z.ZodObject<{
4
4
  firstName: z.ZodString;
5
5
  lastName: z.ZodString;
6
6
  linkedInUrl: z.ZodURL;
7
- phone: z.ZodNullable<z.ZodString>;
7
+ phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
8
8
  }, z.core.$strict>;
9
9
  export type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>;
@@ -3,12 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PublicJoinCreateSchema = 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
  const utils_1 = require("../../../utils");
7
8
  //// validators
8
9
  exports.PublicJoinCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.person, {
9
10
  firstName: utils_1.PersonFirstNameSchema,
10
11
  lastName: utils_1.PersonLastNameSchema,
11
- phone: utils_1.PhoneSchema.nullable(),
12
+ phone: utils_1.PhoneSchema.optional().or(v4_1.z.literal('')),
12
13
  email: utils_1.EmailSchema,
13
14
  linkedInUrl: utils_1.LinkedInUrlSchema
14
15
  })
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/join/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AAEnC,0CAMuB;AAEvB,eAAe;AAEF,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;IAC/D,SAAS,EAAE,6BAAqB;IAChC,QAAQ,EAAE,4BAAoB;IAC9B,KAAK,EAAE,mBAAW,CAAC,QAAQ,EAAE;IAC7B,KAAK,EAAE,mBAAW;IAClB,WAAW,EAAE,yBAAiB;CAC/B,CAAC;KACC,IAAI,CAAC;IACJ,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,IAAI;CAClB,CAAC;KACD,MAAM,EAAE,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { person } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n EmailSchema,\n LinkedInUrlSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema,\n PhoneSchema\n} from '../../../utils'\n\n//// validators\n\nexport const PublicJoinCreateSchema = createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: PhoneSchema.nullable(),\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n})\n .pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true\n })\n .strict()\n\n//// types\n\n// create\nexport type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/join/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AACnC,+BAA0B;AAC1B,0CAMuB;AAEvB,eAAe;AAEF,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;IAC/D,SAAS,EAAE,6BAAqB;IAChC,QAAQ,EAAE,4BAAoB;IAC9B,KAAK,EAAE,mBAAW,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,MAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAC/C,KAAK,EAAE,mBAAW;IAClB,WAAW,EAAE,yBAAiB;CAC/B,CAAC;KACC,IAAI,CAAC;IACJ,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,WAAW,EAAE,IAAI;CAClB,CAAC;KACD,MAAM,EAAE,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { person } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n EmailSchema,\n LinkedInUrlSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema,\n PhoneSchema\n} from '../../../utils'\n\n//// validators\n\nexport const PublicJoinCreateSchema = createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: PhoneSchema.optional().or(z.literal('')),\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n})\n .pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true\n })\n .strict()\n\n//// types\n\n// create\nexport type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.56",
3
+ "version": "0.2.58",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",