@the-inkwell/shared 0.2.181 → 0.2.183
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.
- package/dist/schema/admin/clients/index.d.ts +1 -0
- package/dist/schema/admin/clients/index.js +7 -1
- package/dist/schema/admin/clients/index.js.map +1 -1
- package/dist/schema/public/apply/index.d.ts +1 -1
- package/dist/schema/public/apply/index.js +1 -1
- package/dist/schema/public/apply/index.js.map +1 -1
- package/dist/schema/public/hire/index.js +1 -1
- package/dist/schema/public/hire/index.js.map +1 -1
- package/dist/schema/public/refer/index.d.ts +3 -3
- package/dist/schema/public/refer/index.js +1 -1
- package/dist/schema/public/refer/index.js.map +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +4 -1
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -1127,6 +1127,7 @@ export declare const AdminClientListQuerySchema: z.ZodObject<{
|
|
|
1127
1127
|
}>;
|
|
1128
1128
|
}, z.core.$strip>>;
|
|
1129
1129
|
filter: z.ZodOptional<z.ZodObject<{
|
|
1130
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1130
1131
|
isLead: z.ZodOptional<z.ZodBoolean>;
|
|
1131
1132
|
status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1132
1133
|
ACTIVE: "ACTIVE";
|
|
@@ -57,6 +57,11 @@ exports.AdminClientParamsSchema = exports.AdminClientSelectSchema.pick({
|
|
|
57
57
|
const AdminClientListQuerySchemaStatus = v4_1.z.object({
|
|
58
58
|
status: v4_1.z.array(v4_1.z.enum(core_1.ClientStatuses.enumValues)).optional()
|
|
59
59
|
});
|
|
60
|
+
const AdminClientListQuerySchemaName = (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
61
|
+
.pick({
|
|
62
|
+
name: true
|
|
63
|
+
})
|
|
64
|
+
.partial();
|
|
60
65
|
const AdminClientListQuerySchemaIsLead = (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
61
66
|
.pick({
|
|
62
67
|
isLead: true
|
|
@@ -66,7 +71,8 @@ exports.AdminClientListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
|
66
71
|
filter: v4_1.z
|
|
67
72
|
.object({
|
|
68
73
|
...AdminClientListQuerySchemaStatus.shape,
|
|
69
|
-
...AdminClientListQuerySchemaIsLead.shape
|
|
74
|
+
...AdminClientListQuerySchemaIsLead.shape,
|
|
75
|
+
...AdminClientListQuerySchemaName.shape
|
|
70
76
|
})
|
|
71
77
|
.optional()
|
|
72
78
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/clients/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAA+E;AAC/E,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,uBAAuB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAA;AACpD,QAAA,uBAAuB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,MAAM,CAAC;IACvE,QAAQ,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC;SACnC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;IACb,QAAQ,EAAE,MAAC;SACR,MAAM,CAAC;QACN,QAAQ,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;YACxC,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,IAAI;YACX,QAAQ,EAAE,IAAI;SACf,CAAC;KACH,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,cAAc,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC;SACzC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,mBAAmB,EAAE,MA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AI,CAAC;IACJ,IAAI,EAAE,IAAI;CACX,CAAC;KACD,OAAO,EAAE,CAAA;AACZ,MAAM,gCAAgC,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC;KAChE,IAAI,CAAC;IACJ,MAAM,EAAE,IAAI;CACb,CAAC;KACD,OAAO,EAAE,CAAA;AACC,QAAA,0BAA0B,GAAG,uBAAe,CAAC,MAAM,CAAC;IAC/D,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,GAAG,gCAAgC,CAAC,KAAK;QACzC,GAAG,gCAAgC,CAAC,KAAK;QACzC,GAAG,8BAA8B,CAAC,KAAK;KACxC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,6BAA6B,GAAG,+BAAuB,CAAA;AACvD,QAAA,6BAA6B,GAAG,+BAAuB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { campaign, client, ClientStatuses, industry, person } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminClientCreateSchema = createInsertSchema(client)\nexport const AdminClientSelectSchema = createSelectSchema(client).extend({\n industry: createSelectSchema(industry)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n referral: z\n .object({\n referrer: createSelectSchema(person).pick({\n id: true,\n email: true,\n fullName: true\n })\n })\n .nullable()\n .optional(),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n _openPositionsCount: z.number().optional(),\n _firstContact: createSelectSchema(person)\n .pick({\n id: true,\n email: true,\n fullName: true\n })\n .nullable()\n .optional(),\n _potentialRetainerFees: z.number().optional(),\n _potentialPlacementFees: z.number().optional(),\n _earnedRetainerFees: z.number().optional(),\n _earnedPlacementFees: z.number().optional()\n})\nexport const AdminClientUpdateSchema = createUpdateSchema(client, {\n initialOutreachAt: z.coerce.date().nullable().optional(),\n followUpAt: z.coerce.date().nullable().optional(),\n lastContactedAt: z.coerce.date().nullable().optional(),\n convertedAt: z.coerce.date().nullable().optional()\n})\n\nexport const AdminClientParamsSchema = AdminClientSelectSchema.pick({\n id: true\n})\n\nconst AdminClientListQuerySchemaStatus = z.object({\n status: z.array(z.enum(ClientStatuses.enumValues)).optional()\n})\nconst AdminClientListQuerySchemaName = createSelectSchema(client)\n .pick({\n name: true\n })\n .partial()\nconst AdminClientListQuerySchemaIsLead = createSelectSchema(client)\n .pick({\n isLead: true\n })\n .partial()\nexport const AdminClientListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n ...AdminClientListQuerySchemaStatus.shape,\n ...AdminClientListQuerySchemaIsLead.shape,\n ...AdminClientListQuerySchemaName.shape\n })\n .optional()\n})\nexport const AdminClientUpdateParamsSchema = AdminClientParamsSchema\nexport const AdminClientDeleteParamsSchema = AdminClientParamsSchema\n\n//// types\n\ntype AdminClient = z.infer<typeof AdminClientSelectSchema>\n\n// detail\nexport type AdminClientParams = z.infer<typeof AdminClientParamsSchema>\nexport type AdminClientResult = AdminClient\n\n// list\nexport type AdminClientListQuery = z.infer<typeof AdminClientListQuerySchema>\nexport type AdminClientListResult = ListResponse<\n z.infer<typeof AdminClientSelectSchema>\n>\n\n// create\nexport type AdminClientCreateInput = z.infer<typeof AdminClientCreateSchema>\nexport type AdminClientCreateResult = Pick<AdminClient, 'id'>\n\n// update\nexport type AdminClientUpdateParams = z.infer<\n typeof AdminClientUpdateParamsSchema\n>\nexport type AdminClientUpdateInput = z.infer<typeof AdminClientUpdateSchema>\n\n// delete\nexport type AdminClientDeleteParams = z.infer<\n typeof AdminClientDeleteParamsSchema\n>\n"]}
|
|
@@ -8,7 +8,7 @@ export declare const PublicApplySignedOutCreateSchema: z.ZodObject<{
|
|
|
8
8
|
firstName: z.ZodString;
|
|
9
9
|
lastName: z.ZodString;
|
|
10
10
|
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
11
|
-
discoveredThrough: z.
|
|
11
|
+
discoveredThrough: z.ZodString;
|
|
12
12
|
}, z.core.$strict>;
|
|
13
13
|
affiliateIdNano: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
14
14
|
}, z.core.$strict>;
|
|
@@ -18,7 +18,7 @@ exports.PublicApplySignedOutCreateSchema = v4_1.z.strictObject({
|
|
|
18
18
|
phone: utils_1.OptionalPhoneSchema,
|
|
19
19
|
email: utils_1.EmailSchema,
|
|
20
20
|
linkedInUrl: utils_1.LinkedInUrlSchema,
|
|
21
|
-
discoveredThrough:
|
|
21
|
+
discoveredThrough: utils_1.DiscoveredThroughSchema
|
|
22
22
|
}).pick({
|
|
23
23
|
firstName: true,
|
|
24
24
|
lastName: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/apply/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AACnC,+BAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/apply/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AACnC,+BAA0B;AAC1B,0CAQuB;AAEvB,eAAe;AAEf,MAAM,eAAe,GAAG,MAAC,CAAC,YAAY,CAAC;IACrC,cAAc,EAAE,MAAC,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,4BAAoB;CACrC,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,MAAC,CAAC,YAAY,CAAC;IAC7D,SAAS,EAAE,MAAC,CAAC,YAAY,CAAC;QACxB,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;YAC5B,SAAS,EAAE,6BAAqB;YAChC,QAAQ,EAAE,4BAAoB;YAC9B,KAAK,EAAE,2BAAmB;YAC1B,KAAK,EAAE,mBAAW;YAClB,WAAW,EAAE,yBAAiB;YAC9B,iBAAiB,EAAE,+BAAuB;SAC3C,CAAC,CAAC,IAAI,CAAC;YACN,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,IAAI;YACjB,iBAAiB,EAAE,IAAI;SACxB,CAAC,CAAC,KAAK;KACT,CAAC;IACF,eAAe,EAAE,4BAAoB;IACrC,GAAG,eAAe,CAAC,KAAK;CACzB,CAAC,CAAA;AAEW,QAAA,+BAA+B,GAAG,eAAe,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { person } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n DiscoveredThroughSchema,\n EmailSchema,\n LinkedInUrlSchema,\n OptionalPhoneSchema,\n OptionalStringSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema\n} from '../../../utils'\n\n//// validators\n\nconst BaseApplySchema = z.strictObject({\n positionIdNano: z.string(),\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicApplySignedOutCreateSchema = z.strictObject({\n candidate: z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: OptionalPhoneSchema,\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema,\n discoveredThrough: DiscoveredThroughSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true,\n discoveredThrough: true\n }).shape\n }),\n affiliateIdNano: OptionalStringSchema,\n ...BaseApplySchema.shape\n})\n\nexport const PublicApplySignedInCreateSchema = BaseApplySchema\n\n//// types\n\nexport type PublicApplySignedOutCreateInput = z.infer<\n typeof PublicApplySignedOutCreateSchema\n>\nexport type PublicApplySignedInCreateInput = z.infer<\n typeof PublicApplySignedInCreateSchema\n>\n"]}
|
|
@@ -14,7 +14,7 @@ exports.PublicHireCreateSchema = v4_1.z.strictObject({
|
|
|
14
14
|
phone: utils_1.OptionalPhoneSchema,
|
|
15
15
|
email: utils_1.EmailSchema,
|
|
16
16
|
linkedInUrl: utils_1.LinkedInUrlSchema,
|
|
17
|
-
discoveredThrough:
|
|
17
|
+
discoveredThrough: utils_1.DiscoveredThroughSchema
|
|
18
18
|
}).pick({
|
|
19
19
|
firstName: true,
|
|
20
20
|
lastName: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/hire/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAA2C;AAC3C,+BAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/hire/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAA2C;AAC3C,+BAA0B;AAC1B,0CAQuB;AAEvB,eAAe;AAEF,QAAA,sBAAsB,GAAG,MAAC,CAAC,YAAY,CAAC;IACnD,OAAO,EAAE,MAAC,CAAC,YAAY,CAAC;QACtB,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;YAC5B,SAAS,EAAE,6BAAqB;YAChC,QAAQ,EAAE,4BAAoB;YAC9B,KAAK,EAAE,2BAAmB;YAC1B,KAAK,EAAE,mBAAW;YAClB,WAAW,EAAE,yBAAiB;YAC9B,iBAAiB,EAAE,+BAAuB;SAC3C,CAAC,CAAC,IAAI,CAAC;YACN,SAAS,EAAE,IAAI;YACf,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,IAAI;YACX,WAAW,EAAE,IAAI;SAClB,CAAC,CAAC,KAAK;KACT,CAAC;IACF,eAAe,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,+BAA+B,CAAC;IACnE,eAAe,EAAE,4BAAoB;IACrC,cAAc,EAAE,4BAAoB;IACpC,OAAO,EAAE,MAAC,CAAC,YAAY,CAAC;QACtB,GAAG,IAAA,gCAAkB,EAAC,aAAM,EAAE;YAC5B,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;YACnD,UAAU,EAAE,MAAC,CAAC,GAAG,CAAC,aAAa,CAAC;SACjC,CAAC,CAAC,IAAI,CAAC;YACN,IAAI,EAAE,IAAI;YACV,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC,KAAK;KACT,CAAC;CACH,CAAC,CAAA","sourcesContent":["import { createInsertSchema } from 'drizzle-zod'\nimport { client, person } from '../../core'\nimport { z } from 'zod/v4'\nimport {\n DiscoveredThroughSchema,\n EmailSchema,\n LinkedInUrlSchema,\n OptionalPhoneSchema,\n OptionalStringSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema\n} from '../../../utils'\n\n//// validators\n\nexport const PublicHireCreateSchema = z.strictObject({\n contact: z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: OptionalPhoneSchema,\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema,\n discoveredThrough: DiscoveredThroughSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true\n }).shape\n }),\n positionDetails: z.string().min(1, 'Position details are required'),\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema,\n company: z.strictObject({\n ...createInsertSchema(client, {\n name: z.string().min(1, 'Company name is required'),\n websiteUrl: z.url('Invalid URL')\n }).pick({\n name: true,\n websiteUrl: true\n }).shape\n })\n})\n\n//// types\n\nexport type PublicHireCreateInput = z.infer<typeof PublicHireCreateSchema>\n"]}
|
|
@@ -20,7 +20,7 @@ export declare const PublicReferClientSignedOutCreateSchema: z.ZodObject<{
|
|
|
20
20
|
firstName: z.ZodString;
|
|
21
21
|
lastName: z.ZodString;
|
|
22
22
|
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
23
|
-
discoveredThrough: z.
|
|
23
|
+
discoveredThrough: z.ZodString;
|
|
24
24
|
}, z.core.$strict>;
|
|
25
25
|
contact: z.ZodObject<{
|
|
26
26
|
email: z.ZodEmail;
|
|
@@ -53,7 +53,7 @@ export declare const PublicReferCandidacySignedOutCreateSchema: z.ZodObject<{
|
|
|
53
53
|
firstName: z.ZodString;
|
|
54
54
|
lastName: z.ZodString;
|
|
55
55
|
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
56
|
-
discoveredThrough: z.
|
|
56
|
+
discoveredThrough: z.ZodString;
|
|
57
57
|
}, z.core.$strict>;
|
|
58
58
|
referred: z.ZodObject<{
|
|
59
59
|
email: z.ZodEmail;
|
|
@@ -84,7 +84,7 @@ export declare const PublicReferCandidacyPositionSignedOutCreateSchema: z.ZodObj
|
|
|
84
84
|
firstName: z.ZodString;
|
|
85
85
|
lastName: z.ZodString;
|
|
86
86
|
phone: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodLiteral<"">]>;
|
|
87
|
-
discoveredThrough: z.
|
|
87
|
+
discoveredThrough: z.ZodString;
|
|
88
88
|
}, z.core.$strict>;
|
|
89
89
|
referred: z.ZodObject<{
|
|
90
90
|
email: z.ZodEmail;
|
|
@@ -13,7 +13,7 @@ const PersonSchema = v4_1.z.strictObject({
|
|
|
13
13
|
phone: utils_1.OptionalPhoneSchema,
|
|
14
14
|
email: utils_1.EmailSchema,
|
|
15
15
|
linkedInUrl: utils_1.LinkedInUrlSchema,
|
|
16
|
-
discoveredThrough:
|
|
16
|
+
discoveredThrough: utils_1.DiscoveredThroughSchema
|
|
17
17
|
}).pick({
|
|
18
18
|
firstName: true,
|
|
19
19
|
lastName: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/refer/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,+BAA0B;AAC1B,qCAA2C;AAC3C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/refer/index.ts"],"names":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'../../core'\nimport {\n DiscoveredThroughSchema,\n EmailSchema,\n LinkedInUrlSchema,\n OptionalPhoneSchema,\n OptionalStringSchema,\n PersonFirstNameSchema,\n PersonLastNameSchema\n} from '../../../utils'\n\n//// validators\n\nconst PersonSchema = z.strictObject({\n ...createInsertSchema(person, {\n firstName: PersonFirstNameSchema,\n lastName: PersonLastNameSchema,\n phone: OptionalPhoneSchema,\n email: EmailSchema,\n linkedInUrl: LinkedInUrlSchema,\n discoveredThrough: DiscoveredThroughSchema\n }).pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n linkedInUrl: true,\n discoveredThrough: true\n }).shape\n})\n\nconst ReferredPersonSchema = PersonSchema.omit({\n discoveredThrough: true\n})\n\nconst ReferrerPersonSchema = PersonSchema\n\nconst ClientSchema = z.strictObject({\n ...createInsertSchema(client, {\n name: z.string().min(1, 'Company name is required'),\n websiteUrl: z.url('Invalid URL')\n }).pick({\n name: true,\n websiteUrl: true\n }).shape\n})\n\nexport const PublicReferClientSignedInCreateSchema = z.strictObject({\n contact: ReferredPersonSchema,\n company: ClientSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferClientSignedOutCreateSchema = z.strictObject({\n referrer: ReferrerPersonSchema,\n contact: ReferredPersonSchema,\n company: ClientSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacySignedInCreateSchema = z.strictObject({\n referred: ReferredPersonSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacySignedOutCreateSchema = z.strictObject({\n referrer: ReferrerPersonSchema,\n referred: ReferredPersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacyPositionSignedInCreateSchema = z.strictObject({\n positionIdNano: z.string(),\n referred: ReferredPersonSchema,\n campaignIdNano: OptionalStringSchema\n})\n\nexport const PublicReferCandidacyPositionSignedOutCreateSchema = z.strictObject(\n {\n positionIdNano: z.string(),\n referrer: ReferrerPersonSchema,\n referred: ReferredPersonSchema,\n affiliateIdNano: OptionalStringSchema,\n campaignIdNano: OptionalStringSchema\n }\n)\n\nexport const PublicReferCreateResultSchema = z.strictObject({\n referralId: z.uuid()\n})\n\nexport const PublicReferWarmIntroCreateSchema = z.strictObject({\n referralId: z.uuid(),\n message: z.string().min(1, 'Message is required')\n})\n\n//// types\n\n// referral\n\nexport type PublicReferClientSignedInCreateInput = z.infer<\n typeof PublicReferClientSignedInCreateSchema\n>\nexport type PublicReferClientSignedOutCreateInput = z.infer<\n typeof PublicReferClientSignedOutCreateSchema\n>\nexport type PublicReferCandidacySignedInCreateInput = z.infer<\n typeof PublicReferCandidacySignedInCreateSchema\n>\nexport type PublicReferCandidacySignedOutCreateInput = z.infer<\n typeof PublicReferCandidacySignedOutCreateSchema\n>\nexport type PublicReferCandidacyPositionSignedInCreateInput = z.infer<\n typeof PublicReferCandidacyPositionSignedInCreateSchema\n>\nexport type PublicReferCandidacyPositionSignedOutCreateInput = z.infer<\n typeof PublicReferCandidacyPositionSignedOutCreateSchema\n>\n\nexport type PublicReferCreateResult = z.infer<\n typeof PublicReferCreateResultSchema\n>\n\n// warm intro\n\nexport type PublicReferWarmIntroCreateInput = z.infer<\n typeof PublicReferWarmIntroCreateSchema\n>\n"]}
|
package/dist/utils.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const makeEnumFromObj: <T extends {
|
|
|
29
29
|
}>(obj: T) => [keyof typeof obj];
|
|
30
30
|
export declare const PersonFirstNameSchema: z.ZodString;
|
|
31
31
|
export declare const PersonLastNameSchema: z.ZodString;
|
|
32
|
+
export declare const DiscoveredThroughSchema: z.ZodString;
|
|
32
33
|
export declare const EmailSchema: z.ZodEmail;
|
|
33
34
|
export declare const PhoneSchema: z.ZodString;
|
|
34
35
|
export declare const LinkedInUrlSchema: z.ZodURL;
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OptionalUUIDSchema = exports.OptionalPhoneSchema = exports.OptionalStringSchema = exports.LinkedInUrlSchema = exports.PhoneSchema = exports.EmailSchema = exports.PersonLastNameSchema = exports.PersonFirstNameSchema = exports.makeEnumFromObj = exports.ListQuerySchema = void 0;
|
|
3
|
+
exports.OptionalUUIDSchema = exports.OptionalPhoneSchema = exports.OptionalStringSchema = exports.LinkedInUrlSchema = exports.PhoneSchema = exports.EmailSchema = exports.DiscoveredThroughSchema = exports.PersonLastNameSchema = exports.PersonFirstNameSchema = exports.makeEnumFromObj = exports.ListQuerySchema = void 0;
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
5
|
exports.ListQuerySchema = v4_1.z.object({
|
|
6
6
|
limit: v4_1.z.number().max(1000).optional(),
|
|
@@ -22,6 +22,9 @@ const makeEnumFromObj = (obj) => {
|
|
|
22
22
|
exports.makeEnumFromObj = makeEnumFromObj;
|
|
23
23
|
exports.PersonFirstNameSchema = v4_1.z.string().min(1, 'First name is required');
|
|
24
24
|
exports.PersonLastNameSchema = v4_1.z.string().min(1, 'Last name is required');
|
|
25
|
+
exports.DiscoveredThroughSchema = v4_1.z
|
|
26
|
+
.string()
|
|
27
|
+
.min(1, 'How you heard about us is required');
|
|
25
28
|
exports.EmailSchema = v4_1.z.email('Valid email address is required');
|
|
26
29
|
exports.PhoneSchema = v4_1.z.string().min(1, 'Phone number is required');
|
|
27
30
|
exports.LinkedInUrlSchema = v4_1.z.url({
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAkBb,QAAA,eAAe,GAAG,MAAC,CAAC,MAAM,CAAC;IACtC,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACtC,MA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AE,CAAC,EAAE,CAAC,MAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;AAC9D,QAAA,mBAAmB,GAAG,mBAAW,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,MAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA;AAC9D,QAAA,kBAAkB,GAAG,MAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,CAAC,EAAE,CAAC,MAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\nexport type ListResponse<T> = {\n count: number\n results: T[]\n}\n\nexport type ListRequest<\n TSort = unknown,\n TFilter = unknown,\n TAdditional = unknown\n> = TAdditional & {\n limit?: number\n offset?: number\n sort?: TSort\n filter?: TFilter\n}\n\nexport const ListQuerySchema = z.object({\n limit: z.number().max(1000).optional(),\n offset: z.number().optional(),\n sort: z\n .object({\n field: z.string(),\n direction: z.enum(['asc', 'desc'])\n })\n .optional(),\n filter: z.object({}).optional()\n})\n\nexport const makeEnumFromObj = <\n T extends {\n [key: string]: {\n name: string\n position: number\n }\n }\n>(\n obj: T\n) => {\n return Object.keys(obj).sort((a, b) => {\n return (\n obj[a as keyof typeof obj]!.position -\n obj[b as keyof typeof obj]!.position\n )\n }) as [keyof typeof obj]\n}\n\nexport const PersonFirstNameSchema = z.string().min(1, 'First name is required')\nexport const PersonLastNameSchema = z.string().min(1, 'Last name is required')\nexport const DiscoveredThroughSchema = z\n .string()\n .min(1, 'How you heard about us is required')\n\nexport const EmailSchema = z.email('Valid email address is required')\nexport const PhoneSchema = z.string().min(1, 'Phone number is required')\nexport const LinkedInUrlSchema = z.url({\n protocol: /^https$/,\n hostname: /^www\\.linkedin\\.com$/,\n error: 'Enter a valid LinkedIn URL'\n})\nexport const OptionalStringSchema = z.string().optional().or(z.literal(''))\nexport const OptionalPhoneSchema = PhoneSchema.optional().or(z.literal(''))\nexport const OptionalUUIDSchema = z.uuid().optional().or(z.literal(''))\n"]}
|