@the-inkwell/shared 0.2.62 → 0.2.64

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.
@@ -9,5 +9,18 @@ export declare const PublicJoinCreateSchema: z.ZodObject<{
9
9
  export declare const PublicJoinVerifyCreateSchema: z.ZodObject<{
10
10
  code: z.ZodString;
11
11
  }, z.core.$strip>;
12
+ export declare const PublicJoinCreateResult: z.ZodObject<{
13
+ personId: z.ZodObject<{
14
+ id: z.ZodUUID;
15
+ }, {
16
+ out: {};
17
+ in: {};
18
+ }>;
19
+ }, z.core.$strip>;
20
+ export declare const PublicJoinVerifyResultSchema: z.ZodObject<{
21
+ code: z.ZodString;
22
+ }, z.core.$strip>;
12
23
  export type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>;
24
+ export type PublicJoinCreateResult = z.infer<typeof PublicJoinCreateResult>;
13
25
  export type PublicJoinVerifyCreateInput = z.infer<typeof PublicJoinVerifyCreateSchema>;
26
+ export type PublicJoinVerifyCreateResult = z.infer<typeof PublicJoinVerifyResultSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PublicJoinVerifyCreateSchema = exports.PublicJoinCreateSchema = void 0;
3
+ exports.PublicJoinVerifyResultSchema = exports.PublicJoinCreateResult = exports.PublicJoinVerifyCreateSchema = exports.PublicJoinCreateSchema = void 0;
4
4
  const drizzle_zod_1 = require("drizzle-zod");
5
5
  const core_1 = require("../../core");
6
6
  const v4_1 = require("zod/v4");
@@ -24,4 +24,12 @@ exports.PublicJoinCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.pe
24
24
  exports.PublicJoinVerifyCreateSchema = v4_1.z.object({
25
25
  code: v4_1.z.string()
26
26
  });
27
+ exports.PublicJoinCreateResult = v4_1.z.object({
28
+ personId: (0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
29
+ id: true
30
+ })
31
+ });
32
+ exports.PublicJoinVerifyResultSchema = v4_1.z.object({
33
+ code: v4_1.z.string()
34
+ });
27
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
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;AAEE,QAAA,4BAA4B,GAAG,MAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,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\nexport const PublicJoinVerifyCreateSchema = z.object({\n code: z.string()\n})\n\n//// types\n\n// create\nexport type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>\nexport type PublicJoinVerifyCreateInput = z.infer<\n typeof PublicJoinVerifyCreateSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/join/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,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;AAEE,QAAA,4BAA4B,GAAG,MAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AACW,QAAA,sBAAsB,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7C,QAAQ,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACxC,EAAE,EAAE,IAAI;KACT,CAAC;CACH,CAAC,CAAA;AAEW,QAAA,4BAA4B,GAAG,MAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA","sourcesContent":["import { createInsertSchema, createSelectSchema } 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\nexport const PublicJoinVerifyCreateSchema = z.object({\n code: z.string()\n})\nexport const PublicJoinCreateResult = z.object({\n personId: createSelectSchema(person).pick({\n id: true\n })\n})\n\nexport const PublicJoinVerifyResultSchema = z.object({\n code: z.string()\n})\n\n//// types\n\n// create\nexport type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>\nexport type PublicJoinCreateResult = z.infer<typeof PublicJoinCreateResult>\n\n// verify\nexport type PublicJoinVerifyCreateInput = z.infer<\n typeof PublicJoinVerifyCreateSchema\n>\nexport type PublicJoinVerifyCreateResult = z.infer<\n typeof PublicJoinVerifyResultSchema\n>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.62",
3
+ "version": "0.2.64",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",