@the-inkwell/shared 0.2.75 → 0.2.77

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.
@@ -42,11 +42,18 @@ export declare const PublicJoinNetworksCreateSchema: z.ZodObject<{
42
42
  conferencesAttended: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
43
  whatsAppGroups: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
44
  otherCommunities: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ discoveredThrough: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
46
  }, z.core.$strict>;
46
47
  export declare const PublicJoinVerifyCreateSchema: z.ZodObject<{
47
48
  code: z.ZodString;
48
49
  }, z.core.$strict>;
49
50
  export declare const PublicJoinVerifyResultSchema: z.ZodObject<{
51
+ person: z.ZodObject<{
52
+ idNano: z.ZodString;
53
+ }, {
54
+ out: {};
55
+ in: {};
56
+ }>;
50
57
  code: z.ZodString;
51
58
  }, z.core.$strict>;
52
59
  export type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>;
@@ -61,13 +61,17 @@ exports.PublicJoinNetworksCreateSchema = v4_1.z.strictObject({
61
61
  networksCommunities: true,
62
62
  conferencesAttended: true,
63
63
  whatsAppGroups: true,
64
- otherCommunities: true
64
+ otherCommunities: true,
65
+ discoveredThrough: true
65
66
  }).shape
66
67
  });
67
68
  exports.PublicJoinVerifyCreateSchema = v4_1.z.strictObject({
68
69
  code: v4_1.z.string()
69
70
  });
70
71
  exports.PublicJoinVerifyResultSchema = v4_1.z.strictObject({
72
+ person: (0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
73
+ idNano: true
74
+ }),
71
75
  code: v4_1.z.string()
72
76
  });
73
77
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/join/index.ts"],"names":[],"mappings":";;;AAAA,6CAAoE;AACpE,qCAAsE;AACtE,+BA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AQ,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,oCAAoC,GAAG,MAAC,CAAC,YAAY,CAAC;IACjE,QAAQ,EAAE,MAAC,CAAC,IAAI,EAAE;CACnB,CAAC,CAAA;AACW,QAAA,8BAA8B,GAAG,MAAC,CAAC,YAAY,CAAC;IAC3D,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACjC,mBAAmB,EAAE,IAAI;QACzB,mBAAmB,EAAE,IAAI;QACzB,cAAc,EAAE,IAAI;QACpB,gBAAgB,EAAE,IAAI;KACvB,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,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'\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})\nexport const PublicJoinCreateResultSchema = z.strictObject({\n person: createSelectSchema(person).pick({\n id: true\n })\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 PublicJoinBestPersonCreateParamsSchema = z.strictObject({\n personId: z.uuid()\n})\nexport const PublicJoinBestPersonCreateSchema = 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 PublicJoinNetworksCreateParamsSchema = z.strictObject({\n personId: z.uuid()\n})\nexport const PublicJoinNetworksCreateSchema = z.strictObject({\n ...createInsertSchema(person).pick({\n networksCommunities: true,\n conferencesAttended: true,\n whatsAppGroups: true,\n otherCommunities: true\n }).shape\n})\n\nexport const PublicJoinVerifyCreateSchema = z.strictObject({\n code: z.string()\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<\n typeof PublicJoinCreateResultSchema\n>\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 PublicJoinBestPersonCreateParams = z.infer<\n typeof PublicJoinBestPersonCreateParamsSchema\n>\nexport type PublicJoinBestPersonCreateInput = z.infer<\n typeof PublicJoinBestPersonCreateSchema\n>\n\n// networks\nexport type PublicJoinNetworksCreateParams = z.infer<\n typeof PublicJoinNetworksCreateParamsSchema\n>\nexport type PublicJoinNetworksCreateInput = z.infer<\n typeof PublicJoinNetworksCreateSchema\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;AAEvB,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;AACW,QAAA,4BAA4B,GAAG,MAAC,CAAC,YAAY,CAAC;IACzD,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACtC,EAAE,EAAE,IAAI;KACT,CAAC;CACH,CAAC,CAAA;AAEW,QAAA,yCAAyC,GAAG,MAAC,CAAC,YAAY,CAAC;IACtE,QAAQ,EAA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AAG,MAAC,CAAC,YAAY,CAAC;IACzD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AACW,QAAA,4BAA4B,GAAG,MAAC,CAAC,YAAY,CAAC;IACzD,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACtC,MAAM,EAAE,IAAI;KACb,CAAC;IACF,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'\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})\nexport const PublicJoinCreateResultSchema = z.strictObject({\n person: createSelectSchema(person).pick({\n id: true\n })\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 PublicJoinBestPersonCreateParamsSchema = z.strictObject({\n personId: z.uuid()\n})\nexport const PublicJoinBestPersonCreateSchema = 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 PublicJoinNetworksCreateParamsSchema = z.strictObject({\n personId: z.uuid()\n})\nexport const PublicJoinNetworksCreateSchema = z.strictObject({\n ...createInsertSchema(person).pick({\n networksCommunities: true,\n conferencesAttended: true,\n whatsAppGroups: true,\n otherCommunities: true,\n discoveredThrough: true\n }).shape\n})\n\nexport const PublicJoinVerifyCreateSchema = z.strictObject({\n code: z.string()\n})\nexport const PublicJoinVerifyResultSchema = z.strictObject({\n person: createSelectSchema(person).pick({\n idNano: true\n }),\n code: z.string()\n})\n\n//// types\n\n// default\nexport type PublicJoinCreateInput = z.infer<typeof PublicJoinCreateSchema>\nexport type PublicJoinCreateResult = z.infer<\n typeof PublicJoinCreateResultSchema\n>\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 PublicJoinBestPersonCreateParams = z.infer<\n typeof PublicJoinBestPersonCreateParamsSchema\n>\nexport type PublicJoinBestPersonCreateInput = z.infer<\n typeof PublicJoinBestPersonCreateSchema\n>\n\n// networks\nexport type PublicJoinNetworksCreateParams = z.infer<\n typeof PublicJoinNetworksCreateParamsSchema\n>\nexport type PublicJoinNetworksCreateInput = z.infer<\n typeof PublicJoinNetworksCreateSchema\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.75",
3
+ "version": "0.2.77",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",