@the-inkwell/shared 0.2.72 → 0.2.74
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,7 +16,10 @@ export declare const PublicJoinMemberReasonsCreateSchema: z.ZodObject<{
|
|
|
16
16
|
APPLY: "APPLY";
|
|
17
17
|
}>>>>;
|
|
18
18
|
}, z.core.$strict>;
|
|
19
|
-
export declare const
|
|
19
|
+
export declare const PublicJoinBestPersonCreateParamsSchema: z.ZodObject<{
|
|
20
|
+
personId: z.ZodUUID;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
export declare const PublicJoinBestPersonCreateSchema: z.ZodObject<{
|
|
20
23
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
24
|
email: z.ZodEmail;
|
|
22
25
|
firstName: z.ZodString;
|
|
@@ -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>;
|
|
44
|
-
export type
|
|
46
|
+
export type PublicJoinMemberReasonsCreateInput = z.infer<typeof PublicJoinMemberReasonsCreateSchema>;
|
|
47
|
+
export type PublicJoinBestPersonCreateParams = z.infer<typeof PublicJoinBestPersonCreateParamsSchema>;
|
|
48
|
+
export type PublicJoinBestPersonCreateInput = z.infer<typeof PublicJoinBestPersonCreateSchema>;
|
|
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.
|
|
3
|
+
exports.PublicJoinVerifyResultSchema = exports.PublicJoinCreateResult = exports.PublicJoinVerifyCreateSchema = exports.PublicJoinBestPersonCreateSchema = exports.PublicJoinBestPersonCreateParamsSchema = 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,7 +29,10 @@ exports.PublicJoinMemberReasonsCreateSchema = v4_1.z.strictObject({
|
|
|
29
29
|
memberReasons: true
|
|
30
30
|
}).shape
|
|
31
31
|
});
|
|
32
|
-
exports.
|
|
32
|
+
exports.PublicJoinBestPersonCreateParamsSchema = v4_1.z.strictObject({
|
|
33
|
+
personId: v4_1.z.uuid()
|
|
34
|
+
});
|
|
35
|
+
exports.PublicJoinBestPersonCreateSchema = v4_1.z.strictObject({
|
|
33
36
|
...(0, drizzle_zod_1.createInsertSchema)(core_1.person, {
|
|
34
37
|
firstName: utils_1.PersonFirstNameSchema,
|
|
35
38
|
lastName: utils_1.PersonLastNameSchema,
|
|
@@ -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;
|
|
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;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AAC,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'\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 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 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 PublicJoinBestPersonCreateParams = z.infer<\n typeof PublicJoinBestPersonCreateParamsSchema\n>\nexport type PublicJoinBestPersonCreateInput = z.infer<\n typeof PublicJoinBestPersonCreateSchema\n>\n\n// verify\nexport type PublicJoinVerifyCreateInput = z.infer<\n typeof PublicJoinVerifyCreateSchema\n>\nexport type PublicJoinVerifyCreateResult = z.infer<\n typeof PublicJoinVerifyResultSchema\n>\n"]}
|