@the-inkwell/shared 0.2.237 → 0.2.238
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/embeddings/index.d.ts +1 -3
- package/dist/schema/admin/embeddings/index.js +1 -3
- package/dist/schema/admin/embeddings/index.js.map +1 -1
- package/dist/schema/admin/matches/previews.d.ts +112 -76
- package/dist/schema/admin/matches/previews.js +3 -36
- package/dist/schema/admin/matches/previews.js.map +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,6 @@ import { z } from 'zod/v4';
|
|
|
2
2
|
export declare const AdminEmbeddingCreateSchema: z.ZodObject<{
|
|
3
3
|
text: z.ZodString;
|
|
4
4
|
}, z.core.$strip>;
|
|
5
|
-
export declare const AdminEmbeddingCreateResultSchema: z.
|
|
6
|
-
embedding: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
|
|
7
|
-
}, z.core.$strip>;
|
|
5
|
+
export declare const AdminEmbeddingCreateResultSchema: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
|
|
8
6
|
export type AdminEmbeddingCreateInput = z.infer<typeof AdminEmbeddingCreateSchema>;
|
|
9
7
|
export type AdminEmbeddingCreateResult = z.infer<typeof AdminEmbeddingCreateResultSchema>;
|
|
@@ -6,7 +6,5 @@ const v4_1 = require("zod/v4");
|
|
|
6
6
|
exports.AdminEmbeddingCreateSchema = v4_1.z.object({
|
|
7
7
|
text: v4_1.z.string()
|
|
8
8
|
});
|
|
9
|
-
exports.AdminEmbeddingCreateResultSchema = v4_1.z.
|
|
10
|
-
embedding: v4_1.z.array(v4_1.z.number()).nullable()
|
|
11
|
-
});
|
|
9
|
+
exports.AdminEmbeddingCreateResultSchema = v4_1.z.array(v4_1.z.number()).nullable();
|
|
12
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/embeddings/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAC1B,eAAe;AAEF,QAAA,0BAA0B,GAAG,MAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,MAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/embeddings/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAC1B,eAAe;AAEF,QAAA,0BAA0B,GAAG,MAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA","sourcesContent":["import { z } from 'zod/v4'\n//// validators\n\nexport const AdminEmbeddingCreateSchema = z.object({\n text: z.string()\n})\n\nexport const AdminEmbeddingCreateResultSchema = z.array(z.number()).nullable()\n\n//// types\n\nexport type AdminEmbeddingCreateInput = z.infer<\n typeof AdminEmbeddingCreateSchema\n>\nexport type AdminEmbeddingCreateResult = z.infer<\n typeof AdminEmbeddingCreateResultSchema\n>\n"]}
|
|
@@ -26,85 +26,121 @@ export declare const AdminMatchListPreviewQuerySchema: z.ZodObject<{
|
|
|
26
26
|
desc: "desc";
|
|
27
27
|
}>;
|
|
28
28
|
}, z.core.$strip>>;
|
|
29
|
-
filter: z.
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
29
|
+
filter: z.ZodObject<{
|
|
30
|
+
matchFilters: z.ZodNullable<z.ZodType<{
|
|
31
|
+
industries?: string[];
|
|
32
|
+
jobFunctions?: string[];
|
|
33
|
+
skills?: string[];
|
|
34
|
+
tags?: string[];
|
|
35
|
+
networks?: string[];
|
|
36
|
+
professionalEvents?: string[];
|
|
37
|
+
titles?: {
|
|
38
|
+
name: string;
|
|
39
|
+
embedding: number[];
|
|
40
|
+
}[];
|
|
41
|
+
companies?: {
|
|
42
|
+
name: string;
|
|
43
|
+
embedding: number[];
|
|
44
|
+
}[];
|
|
45
|
+
schools?: {
|
|
46
|
+
name: string;
|
|
47
|
+
embedding: number[];
|
|
48
|
+
}[];
|
|
49
|
+
locations?: {
|
|
50
|
+
name: string;
|
|
51
|
+
lat: number;
|
|
52
|
+
lon: number;
|
|
53
|
+
radiusInMiles: number;
|
|
54
|
+
}[];
|
|
55
|
+
}, {
|
|
56
|
+
industries?: string[];
|
|
57
|
+
jobFunctions?: string[];
|
|
58
|
+
skills?: string[];
|
|
59
|
+
tags?: string[];
|
|
60
|
+
networks?: string[];
|
|
61
|
+
professionalEvents?: string[];
|
|
62
|
+
titles?: {
|
|
63
|
+
name: string;
|
|
64
|
+
embedding: number[];
|
|
65
|
+
}[];
|
|
66
|
+
companies?: {
|
|
67
|
+
name: string;
|
|
68
|
+
embedding: number[];
|
|
69
|
+
}[];
|
|
70
|
+
schools?: {
|
|
71
|
+
name: string;
|
|
72
|
+
embedding: number[];
|
|
73
|
+
}[];
|
|
74
|
+
locations?: {
|
|
75
|
+
name: string;
|
|
76
|
+
lat: number;
|
|
77
|
+
lon: number;
|
|
78
|
+
radiusInMiles: number;
|
|
79
|
+
}[];
|
|
80
|
+
}>>;
|
|
81
|
+
}, {
|
|
82
|
+
out: {};
|
|
83
|
+
in: {};
|
|
84
|
+
}>;
|
|
67
85
|
}, z.core.$strip>;
|
|
68
86
|
export declare const AdminMatchListPreviewMetaQuerySchema: z.ZodObject<{
|
|
69
87
|
filter: z.ZodObject<{
|
|
70
|
-
criteria: z.ZodArray<z.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
88
|
+
criteria: z.ZodArray<z.ZodObject<{
|
|
89
|
+
matchFilters: z.ZodNullable<z.ZodType<{
|
|
90
|
+
industries?: string[];
|
|
91
|
+
jobFunctions?: string[];
|
|
92
|
+
skills?: string[];
|
|
93
|
+
tags?: string[];
|
|
94
|
+
networks?: string[];
|
|
95
|
+
professionalEvents?: string[];
|
|
96
|
+
titles?: {
|
|
97
|
+
name: string;
|
|
98
|
+
embedding: number[];
|
|
99
|
+
}[];
|
|
100
|
+
companies?: {
|
|
101
|
+
name: string;
|
|
102
|
+
embedding: number[];
|
|
103
|
+
}[];
|
|
104
|
+
schools?: {
|
|
105
|
+
name: string;
|
|
106
|
+
embedding: number[];
|
|
107
|
+
}[];
|
|
108
|
+
locations?: {
|
|
109
|
+
name: string;
|
|
110
|
+
lat: number;
|
|
111
|
+
lon: number;
|
|
112
|
+
radiusInMiles: number;
|
|
113
|
+
}[];
|
|
114
|
+
}, {
|
|
115
|
+
industries?: string[];
|
|
116
|
+
jobFunctions?: string[];
|
|
117
|
+
skills?: string[];
|
|
118
|
+
tags?: string[];
|
|
119
|
+
networks?: string[];
|
|
120
|
+
professionalEvents?: string[];
|
|
121
|
+
titles?: {
|
|
122
|
+
name: string;
|
|
123
|
+
embedding: number[];
|
|
124
|
+
}[];
|
|
125
|
+
companies?: {
|
|
126
|
+
name: string;
|
|
127
|
+
embedding: number[];
|
|
128
|
+
}[];
|
|
129
|
+
schools?: {
|
|
130
|
+
name: string;
|
|
131
|
+
embedding: number[];
|
|
132
|
+
}[];
|
|
133
|
+
locations?: {
|
|
134
|
+
name: string;
|
|
135
|
+
lat: number;
|
|
136
|
+
lon: number;
|
|
137
|
+
radiusInMiles: number;
|
|
138
|
+
}[];
|
|
139
|
+
}>>;
|
|
140
|
+
}, {
|
|
141
|
+
out: {};
|
|
142
|
+
in: {};
|
|
143
|
+
}>>;
|
|
108
144
|
includedPersonIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
145
|
excludedPersonIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
146
|
}, z.core.$strip>;
|
|
@@ -19,42 +19,9 @@ exports.AdminMatchPreviewMetaSelectSchema = v4_1.z.object({
|
|
|
19
19
|
emailCount: v4_1.z.number(),
|
|
20
20
|
smsCount: v4_1.z.number()
|
|
21
21
|
});
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
]);
|
|
26
|
-
const AdminMatchListPreviewFilterSchema = v4_1.z
|
|
27
|
-
.object({
|
|
28
|
-
// id fields
|
|
29
|
-
target: AdminMatchListPreviewTargetSchema,
|
|
30
|
-
name: v4_1.z.enum([
|
|
31
|
-
'industry',
|
|
32
|
-
'jobFunction',
|
|
33
|
-
'skill',
|
|
34
|
-
'tag',
|
|
35
|
-
'network',
|
|
36
|
-
'professionalEvent'
|
|
37
|
-
]),
|
|
38
|
-
value: v4_1.z.string()
|
|
39
|
-
})
|
|
40
|
-
.or(
|
|
41
|
-
// embedding fields
|
|
42
|
-
v4_1.z.object({
|
|
43
|
-
target: AdminMatchListPreviewTargetSchema,
|
|
44
|
-
name: v4_1.z.enum(['titleEmbedding', 'schoolEmbedding', 'companyEmbedding']),
|
|
45
|
-
value: v4_1.z.array(v4_1.z.number())
|
|
46
|
-
}))
|
|
47
|
-
.or(v4_1.z.object({
|
|
48
|
-
// location field
|
|
49
|
-
target: AdminMatchListPreviewTargetSchema,
|
|
50
|
-
name: v4_1.z.literal('location'),
|
|
51
|
-
value: v4_1.z.object({
|
|
52
|
-
name: v4_1.z.string(),
|
|
53
|
-
lat: v4_1.z.number(),
|
|
54
|
-
lon: v4_1.z.number(),
|
|
55
|
-
radiusInMiles: v4_1.z.number()
|
|
56
|
-
})
|
|
57
|
-
}));
|
|
22
|
+
const AdminMatchListPreviewFilterSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.campaign).pick({
|
|
23
|
+
matchFilters: true
|
|
24
|
+
});
|
|
58
25
|
exports.AdminMatchListPreviewQuerySchema = utils_1.ListQuerySchema.extend({
|
|
59
26
|
filter: AdminMatchListPreviewFilterSchema
|
|
60
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previews.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/previews.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"previews.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/previews.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAA6C;AAC7C,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,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;IAC1E,YAAY,EAAE,IAAI;CACnB,CAAC,CAAA;AACW,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 { campaign, 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 AdminMatchListPreviewFilterSchema = createSelectSchema(campaign).pick({\n matchFilters: true\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"]}
|