@the-inkwell/shared 0.2.233 → 0.2.235
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.
|
@@ -38,8 +38,6 @@ export declare const AdminMatchListPreviewQuerySchema: z.ZodObject<{
|
|
|
38
38
|
professionalEvent: "professionalEvent";
|
|
39
39
|
skill: "skill";
|
|
40
40
|
tag: "tag";
|
|
41
|
-
includedPerson: "includedPerson";
|
|
42
|
-
excludedPerson: "excludedPerson";
|
|
43
41
|
}>;
|
|
44
42
|
value: z.ZodString;
|
|
45
43
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -49,6 +47,7 @@ export declare const AdminMatchListPreviewQuerySchema: z.ZodObject<{
|
|
|
49
47
|
}>;
|
|
50
48
|
name: z.ZodEnum<{
|
|
51
49
|
schoolEmbedding: "schoolEmbedding";
|
|
50
|
+
companyEmbedding: "companyEmbedding";
|
|
52
51
|
titleEmbedding: "titleEmbedding";
|
|
53
52
|
}>;
|
|
54
53
|
value: z.ZodArray<z.ZodNumber>;
|
|
@@ -80,8 +79,6 @@ export declare const AdminMatchListPreviewMetaQuerySchema: z.ZodObject<{
|
|
|
80
79
|
professionalEvent: "professionalEvent";
|
|
81
80
|
skill: "skill";
|
|
82
81
|
tag: "tag";
|
|
83
|
-
includedPerson: "includedPerson";
|
|
84
|
-
excludedPerson: "excludedPerson";
|
|
85
82
|
}>;
|
|
86
83
|
value: z.ZodString;
|
|
87
84
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -91,6 +88,7 @@ export declare const AdminMatchListPreviewMetaQuerySchema: z.ZodObject<{
|
|
|
91
88
|
}>;
|
|
92
89
|
name: z.ZodEnum<{
|
|
93
90
|
schoolEmbedding: "schoolEmbedding";
|
|
91
|
+
companyEmbedding: "companyEmbedding";
|
|
94
92
|
titleEmbedding: "titleEmbedding";
|
|
95
93
|
}>;
|
|
96
94
|
value: z.ZodArray<z.ZodNumber>;
|
|
@@ -33,9 +33,7 @@ const AdminMatchListPreviewFilterSchema = v4_1.z
|
|
|
33
33
|
'skill',
|
|
34
34
|
'tag',
|
|
35
35
|
'network',
|
|
36
|
-
'professionalEvent'
|
|
37
|
-
'includedPerson',
|
|
38
|
-
'excludedPerson'
|
|
36
|
+
'professionalEvent'
|
|
39
37
|
]),
|
|
40
38
|
value: v4_1.z.string()
|
|
41
39
|
})
|
|
@@ -43,7 +41,7 @@ const AdminMatchListPreviewFilterSchema = v4_1.z
|
|
|
43
41
|
// embedding fields
|
|
44
42
|
v4_1.z.object({
|
|
45
43
|
target: AdminMatchListPreviewTargetSchema,
|
|
46
|
-
name: v4_1.z.enum(['titleEmbedding', 'schoolEmbedding']),
|
|
44
|
+
name: v4_1.z.enum(['titleEmbedding', 'schoolEmbedding', 'companyEmbedding']),
|
|
47
45
|
value: v4_1.z.array(v4_1.z.number())
|
|
48
46
|
}))
|
|
49
47
|
.or(v4_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previews.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/previews.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AACnC,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,6BAA6B,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IAC3E,EAAE,EAAE,IAAI;IACR,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAA;AACW,QAAA,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACxD,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,MAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAEF,MAAM,iCAAiC,GAAG,MAAC,CAAC,IAAI,CAAC;IAC/C,QAAQ;IACR,0BAA0B;CAC3B,CAAC,CAAA;AAEF,MAAM,iCAAiC,GAAG,MAAC;KACxC,MAAM,CAAC;IACN,YAAY;IACZ,MAAM,EAAE,iCAAiC;IACzC,IAAI,EAAE,MAAC,CAAC,IAAI,CAAC;QACX,UAAU;QACV,aAAa;QACb,OAAO;QACP,KAAK;QACL,SAAS;QACT,mBAAmB;
|
|
1
|
+
{"version":3,"file":"previews.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/previews.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAmC;AACnC,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,6BAA6B,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IAC3E,EAAE,EAAE,IAAI;IACR,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,QAAQ,EAAE,IAAI;IACd,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;CACtB,CAAC,CAAA;AACW,QAAA,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACxD,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,MAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAA;AAEF,MAAM,iCAAiC,GAAG,MAAC,CAAC,IAAI,CAAC;IAC/C,QAAQ;IACR,0BAA0B;CAC3B,CAAC,CAAA;AAEF,MAAM,iCAAiC,GAAG,MAAC;KACxC,MAAM,CAAC;IACN,YAAY;IACZ,MAAM,EAAE,iCAAiC;IACzC,IAAI,EAAE,MAAC,CAAC,IAAI,CAAC;QACX,UAAU;QACV,aAAa;QACb,OAAO;QACP,KAAK;QACL,SAAS;QACT,mBAAmB;KACpB,CAAC;IACF,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;CAClB,CAAC;KACD,EAAE;AACD,mBAAmB;AACnB,MAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,iCAAiC;IACzC,IAAI,EAAE,MAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;IACvE,KAAK,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;CAC3B,CAAC,CACH;KACA,EAAE,CACD,MAAC,CAAC,MAAM,CAAC;IACP,iBAAiB;IACjB,MAAM,EAAE,iCAAiC;IACzC,IAAI,EAAE,MAAC,CAAC,OAAO,CAAC,UAAU,CAAC;IAC3B,KAAK,EAAE,MAAC,CAAC,MAAM,CAAC;QACd,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;QAChB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;KAC1B,CAAC;CACH,CAAC,CACH,CAAA;AACU,QAAA,gCAAgC,GAAG,uBAAe,CAAC,MAAM,CAAC;IACrE,MAAM,EAAE,iCAAiC;CAC1C,CAAC,CAAA;AACW,QAAA,oCAAoC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,MAAC,CAAC,MAAM,CAAC;QACf,QAAQ,EAAE,MAAC,CAAC,KAAK,CAAC,iCAAiC,CAAC;QACpD,iBAAiB,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;QACjD,iBAAiB,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;KAClD,CAAC;CACH,CAAC,CAAA","sourcesContent":["import { createSelectSchema } from 'drizzle-zod'\nimport { person } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminMatchPreviewSelectSchema = createSelectSchema(person).pick({\n id: true,\n fullName: true,\n email: true,\n phone: true,\n photoUri: true,\n smsIsOptedOut: true,\n emailIsOptedOut: true\n})\nexport const AdminMatchPreviewMetaSelectSchema = z.object({\n emailCount: z.number(),\n smsCount: z.number()\n})\n\nconst AdminMatchListPreviewTargetSchema = z.enum([\n 'person',\n 'referredPersonOrPosition'\n])\n\nconst AdminMatchListPreviewFilterSchema = z\n .object({\n // id fields\n target: AdminMatchListPreviewTargetSchema,\n name: z.enum([\n 'industry',\n 'jobFunction',\n 'skill',\n 'tag',\n 'network',\n 'professionalEvent'\n ]),\n value: z.string()\n })\n .or(\n // embedding fields\n z.object({\n target: AdminMatchListPreviewTargetSchema,\n name: z.enum(['titleEmbedding', 'schoolEmbedding', 'companyEmbedding']),\n value: z.array(z.number())\n })\n )\n .or(\n z.object({\n // location field\n target: AdminMatchListPreviewTargetSchema,\n name: z.literal('location'),\n value: z.object({\n name: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n })\n })\n )\nexport const AdminMatchListPreviewQuerySchema = ListQuerySchema.extend({\n filter: AdminMatchListPreviewFilterSchema\n})\nexport const AdminMatchListPreviewMetaQuerySchema = z.object({\n filter: z.object({\n criteria: z.array(AdminMatchListPreviewFilterSchema),\n includedPersonIds: z.array(z.string()).optional(),\n excludedPersonIds: z.array(z.string()).optional()\n })\n})\n\n//// types\n\n// list\nexport type AdminMatchListPreviewQuery = z.infer<\n typeof AdminMatchListPreviewQuerySchema\n>\nexport type AdminMatchListPreviewResult = ListResponse<\n z.infer<typeof AdminMatchPreviewSelectSchema>\n>\n\nexport type AdminMatchListPreviewMetaQuery = z.infer<\n typeof AdminMatchListPreviewMetaQuerySchema\n>\nexport type AdminMatchListPreviewMetaResult = z.infer<\n typeof AdminMatchPreviewMetaSelectSchema\n>\n"]}
|