@the-inkwell/shared 0.2.68 → 0.2.70

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.
@@ -33,5 +33,6 @@ export declare const PublicJoinVerifyResultSchema: z.ZodObject<{
33
33
  export type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>;
34
34
  export type PublicJoinCreateResult = z.infer<typeof PublicJoinCreateResult>;
35
35
  export type PublicJoinMemberReasonsCreateInput = z.infer<typeof PublicJoinMemberReasonsCreateSchema>;
36
+ export type PublicJoinMemberReasonsCreateParams = z.infer<typeof PublicJoinMemberReasonsCreateParamsSchema>;
36
37
  export type PublicJoinVerifyCreateInput = z.infer<typeof PublicJoinVerifyCreateSchema>;
37
38
  export type PublicJoinVerifyCreateResult = z.infer<typeof PublicJoinVerifyResultSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/join/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,qCAAkD;AAClD,+BAA0B;AAC1B,0CAMuB;AAGvB,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,yCAAyC,GAAG,MAAC,CAAC,MAAM,CAAC;IAChE,QAAQ,EAAE,MAAC,CAAC,IAAI,EAAE;CACnB,CAAC,CAAA;AACW,QAAA,mCAAmC,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC;KAC1E,IAAI,CAAC;IACJ,aAAa,EAAE,IAAI;CACpB,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,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACtC,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 { MemberReasons, person } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n EmailSchema,\n LinkedInUrlSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema,\n PhoneSchema\n} from '../../../utils'\nimport { MEMBER_REASONS } from '../../../constants'\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 PublicJoinMemberReasonsCreateParamsSchema = z.object({\n personId: z.uuid()\n})\nexport const PublicJoinMemberReasonsCreateSchema = createInsertSchema(person)\n .pick({\n memberReasons: true\n })\n .strict()\n\nexport const PublicJoinVerifyCreateSchema = z.object({\n code: z.string()\n})\nexport const PublicJoinCreateResult = z.object({\n person: createSelectSchema(person).pick({\n id: true\n })\n})\n\nexport const PublicJoinVerifyResultSchema = z.object({\n code: z.string()\n})\n\n//// types\n\n// default\nexport type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>\nexport type PublicJoinCreateResult = z.infer<typeof PublicJoinCreateResult>\n\n// member reasons\nexport type PublicJoinMemberReasonsCreateInput = z.infer<\n typeof PublicJoinMemberReasonsCreateSchema\n>\n\n// verify\nexport type PublicJoinVerifyCreateInput = z.infer<\n typeof PublicJoinVerifyCreateSchema\n>\nexport type PublicJoinVerifyCreateResult = z.infer<\n typeof PublicJoinVerifyResultSchema\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/join/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,qCAAkD;AAClD,+BAA0B;AAC1B,0CAMuB;AAGvB,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,yCAAyC,GAAG,MAAC,CAAC,MAAM,CAAC;IAChE,QAAQ,EAAE,MAAC,CAAC,IAAI,EAAE;CACnB,CAAC,CAAA;AACW,QAAA,mCAAmC,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC;KAC1E,IAAI,CAAC;IACJ,aAAa,EAAE,IAAI;CACpB,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,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACtC,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 { MemberReasons, person } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n EmailSchema,\n LinkedInUrlSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema,\n PhoneSchema\n} from '../../../utils'\nimport { MEMBER_REASONS } from '../../../constants'\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 PublicJoinMemberReasonsCreateParamsSchema = z.object({\n personId: z.uuid()\n})\nexport const PublicJoinMemberReasonsCreateSchema = createInsertSchema(person)\n .pick({\n memberReasons: true\n })\n .strict()\n\nexport const PublicJoinVerifyCreateSchema = z.object({\n code: z.string()\n})\nexport const PublicJoinCreateResult = z.object({\n person: createSelectSchema(person).pick({\n id: true\n })\n})\n\nexport const PublicJoinVerifyResultSchema = z.object({\n code: z.string()\n})\n\n//// types\n\n// default\nexport type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>\nexport type PublicJoinCreateResult = z.infer<typeof PublicJoinCreateResult>\n\n// member reasons\nexport type PublicJoinMemberReasonsCreateInput = z.infer<\n typeof PublicJoinMemberReasonsCreateSchema\n>\nexport type PublicJoinMemberReasonsCreateParams = z.infer<\n typeof PublicJoinMemberReasonsCreateParamsSchema\n>\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.68",
3
+ "version": "0.2.70",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",