@the-inkwell/shared 0.2.71 → 0.2.73

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.
@@ -16,6 +16,9 @@ export declare const PublicJoinMemberReasonsCreateSchema: z.ZodObject<{
16
16
  APPLY: "APPLY";
17
17
  }>>>>;
18
18
  }, z.core.$strict>;
19
+ export declare const PublicJoinBestPersonsCreateParamsSchema: z.ZodObject<{
20
+ personId: z.ZodUUID;
21
+ }, z.core.$strict>;
19
22
  export declare const PublicJoinBestPersonsCreateSchema: z.ZodObject<{
20
23
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
24
  email: z.ZodEmail;
@@ -39,8 +42,9 @@ export declare const PublicJoinVerifyResultSchema: z.ZodObject<{
39
42
  }, z.core.$strict>;
40
43
  export type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>;
41
44
  export type PublicJoinCreateResult = z.infer<typeof PublicJoinCreateResult>;
42
- export type PublicJoinMemberReasonsCreateInput = z.infer<typeof PublicJoinMemberReasonsCreateSchema>;
43
45
  export type PublicJoinMemberReasonsCreateParams = z.infer<typeof PublicJoinMemberReasonsCreateParamsSchema>;
46
+ export type PublicJoinMemberReasonsCreateInput = z.infer<typeof PublicJoinMemberReasonsCreateSchema>;
47
+ export type PublicJoinBestPersonsCreateParams = z.infer<typeof PublicJoinBestPersonsCreateParamsSchema>;
44
48
  export type PublicJoinBestPersonsCreateInput = z.infer<typeof PublicJoinBestPersonsCreateSchema>;
45
49
  export type PublicJoinVerifyCreateInput = z.infer<typeof PublicJoinVerifyCreateSchema>;
46
50
  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.PublicJoinVerifyResultSchema = exports.PublicJoinCreateResult = exports.PublicJoinVerifyCreateSchema = exports.PublicJoinBestPersonsCreateSchema = exports.PublicJoinMemberReasonsCreateSchema = exports.PublicJoinMemberReasonsCreateParamsSchema = exports.PublicJoinCreateSchema = void 0;
3
+ exports.PublicJoinVerifyResultSchema = exports.PublicJoinCreateResult = exports.PublicJoinVerifyCreateSchema = exports.PublicJoinBestPersonsCreateSchema = exports.PublicJoinBestPersonsCreateParamsSchema = exports.PublicJoinMemberReasonsCreateSchema = exports.PublicJoinMemberReasonsCreateParamsSchema = 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");
@@ -29,6 +29,9 @@ exports.PublicJoinMemberReasonsCreateSchema = v4_1.z.strictObject({
29
29
  memberReasons: true
30
30
  }).shape
31
31
  });
32
+ exports.PublicJoinBestPersonsCreateParamsSchema = v4_1.z.strictObject({
33
+ personId: v4_1.z.uuid()
34
+ });
32
35
  exports.PublicJoinBestPersonsCreateSchema = v4_1.z.strictObject({
33
36
  ...(0, drizzle_zod_1.createInsertSchema)(core_1.person, {
34
37
  firstName: utils_1.PersonFirstNameSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/join/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,qCAAsE;AACtE,+BAA0B;AAC1B,0CAMuB;AAGvB,eAAe;AAEF,QAAA,sBAAsB,GAAG,MAAC,CAAC,YAAY,CAAC;IACnD,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,SAAS,EAAE,6BAAqB;QAChC,QAAQ,EAAE,4BAAoB;QAC9B,KAAK,EAAE,mBAAW,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,MAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC/C,KAAK,EAAE,mBAAW;QAClB,WAAW,EAAE,yBAAiB;KAC/B,CAAC,CAAC,IAAI,CAAC;QACN,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IA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E;CACjB,CAAC,CAAA","sourcesContent":["import { createInsertSchema, createSelectSchema } from 'drizzle-zod'\nimport { MemberReasons, person, personToBestPerson } 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 = z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: PhoneSchema.optional().or(z.literal('')),\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true\n }).shape\n})\n\nexport const PublicJoinMemberReasonsCreateParamsSchema = z.strictObject({\n personId: z.uuid()\n})\nexport const PublicJoinMemberReasonsCreateSchema = z.strictObject({\n ...createInsertSchema(person).pick({\n memberReasons: true\n }).shape\n})\n\nexport const PublicJoinBestPersonsCreateSchema = z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n linkedInUrl: true\n }).shape,\n ...createInsertSchema(personToBestPerson).pick({\n description: true\n }).shape\n})\n\nexport const PublicJoinVerifyCreateSchema = z.strictObject({\n code: z.string()\n})\nexport const PublicJoinCreateResult = z.strictObject({\n person: createSelectSchema(person).pick({\n id: true\n })\n})\n\nexport const PublicJoinVerifyResultSchema = z.strictObject({\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// best persons\nexport type PublicJoinBestPersonsCreateInput = z.infer<\n typeof PublicJoinBestPersonsCreateSchema\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,qCAAsE;AACtE,+BAA0B;AAC1B,0CAMuB;AAGvB,eAAe;AAEF,QAAA,sBAAsB,GAAG,MAAC,CAAC,YAAY,CAAC;IACnD,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,SAAS,EAAE,6BAAqB;QAChC,QAAQ,EAAE,4BAAoB;QAC9B,KAAK,EAAE,mBAAW,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,MAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QAC/C,KAAK,EAAE,mBAAW;QAClB,WAAW,EAAE,yBAAiB;KAC/B,CAAC,CAAC,IAAI,CAAC;QACN,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,KAAK;CACT,CAAC,CAAA;AAEW,QAAA,yCAAyC,GAAG,MAAC,CAAC,YAAY,CAAC;IACtE,QAAQ,EAAE,MAAC,CAAC,IAAI,EAAE;CACnB,CAAC,CAAA;AACW,QAAA,mCAAmC,GAAG,MAAC,CAAC,YAAY,CAAC;IAChE,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACjC,aAAa,EAAE,IAAI;KACpB,CAAC,CAAC,KAAK;CACT,CAAC,CAAA;AAEW,QAAA,uCAAuC,GAAG,MAAC,CAAC,YAAY,CAAC;IACpE,QAAQ,EAAE,MAAC,CAAC,IAAI,EAAE;CACnB,CAAC,CAAA;AACW,QAAA,iCAAiC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC9D,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;QAC5B,SAAS,EAAE,6BAAqB;QAChC,QAAQ,EAAE,4BAAoB;QAC9B,KAAK,EAAE,mBAAW;QAClB,WAAW,EAAE,yBAAiB;KAC/B,CAAC,CAAC,IAAI,CAAC;QACN,SAAS,EAAE,IAAI;QACf,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,KAAK;IACR,GAAG,IAAA,gCAAkB,EAAC,yBAAkB,CAAC,CAAC,IAAI,CAAC;QAC7C,WAAW,EAAE,IAAI;KAClB,CAAC,CAAC,KAAK;CACT,CAAC,CAAA;AAEW,QAAA,4BAA4B,GAAG,MAAC,CAAC,YAAY,CAAC;IACzD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AACW,QAAA,sBAAsB,GAAG,MAAC,CAAC,YAAY,CAAC;IACnD,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,YAAY,CAAC;IACzD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA","sourcesContent":["import { createInsertSchema, createSelectSchema } from 'drizzle-zod'\nimport { MemberReasons, person, personToBestPerson } 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 = z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: PhoneSchema.optional().or(z.literal('')),\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true\n }).shape\n})\n\nexport const PublicJoinMemberReasonsCreateParamsSchema = z.strictObject({\n personId: z.uuid()\n})\nexport const PublicJoinMemberReasonsCreateSchema = z.strictObject({\n ...createInsertSchema(person).pick({\n memberReasons: true\n }).shape\n})\n\nexport const PublicJoinBestPersonsCreateParamsSchema = z.strictObject({\n personId: z.uuid()\n})\nexport const PublicJoinBestPersonsCreateSchema = z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n linkedInUrl: true\n }).shape,\n ...createInsertSchema(personToBestPerson).pick({\n description: true\n }).shape\n})\n\nexport const PublicJoinVerifyCreateSchema = z.strictObject({\n code: z.string()\n})\nexport const PublicJoinCreateResult = z.strictObject({\n person: createSelectSchema(person).pick({\n id: true\n })\n})\n\nexport const PublicJoinVerifyResultSchema = z.strictObject({\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 PublicJoinMemberReasonsCreateParams = z.infer<\n typeof PublicJoinMemberReasonsCreateParamsSchema\n>\nexport type PublicJoinMemberReasonsCreateInput = z.infer<\n typeof PublicJoinMemberReasonsCreateSchema\n>\n\n// best persons\nexport type PublicJoinBestPersonsCreateParams = z.infer<\n typeof PublicJoinBestPersonsCreateParamsSchema\n>\nexport type PublicJoinBestPersonsCreateInput = z.infer<\n typeof PublicJoinBestPersonsCreateSchema\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.71",
3
+ "version": "0.2.73",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",