@the-inkwell/shared 0.2.186 → 0.2.188
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/constants.d.ts +0 -18
- package/dist/constants.js +1 -7
- package/dist/constants.js.map +1 -1
- package/dist/schema/admin/campaigns/index.d.ts +88 -97
- package/dist/schema/admin/campaigns/index.js +2 -33
- package/dist/schema/admin/campaigns/index.js.map +1 -1
- package/dist/schema/admin/index.d.ts +1 -1
- package/dist/schema/admin/index.js +1 -1
- package/dist/schema/admin/index.js.map +1 -1
- package/dist/schema/admin/matches/index.d.ts +383 -0
- package/dist/schema/admin/matches/index.js +26 -0
- package/dist/schema/admin/matches/index.js.map +1 -0
- package/dist/schema/admin/persons/index.d.ts +70 -0
- package/dist/schema/admin/persons/index.js +61 -1
- package/dist/schema/admin/persons/index.js.map +1 -1
- package/dist/schema/admin/referrals/index.d.ts +5 -5
- package/dist/schema/admin/referralsToMessages/index.d.ts +1 -1
- package/dist/schema/core.d.ts +67 -150
- package/dist/schema/core.js +39 -29
- package/dist/schema/core.js.map +1 -1
- package/dist/utils.d.ts +25 -0
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/schema/public/account/index.d.ts +0 -72
- package/dist/schema/public/account/index.js +0 -88
- package/dist/schema/public/account/index.js.map +0 -1
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { type ListResponse } from '../../../utils';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
|
+
export declare const AdminMatchCreateSchema: import("drizzle-zod").BuildSchema<"insert", {
|
|
4
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
5
|
+
name: "id";
|
|
6
|
+
tableName: "matches";
|
|
7
|
+
dataType: "string";
|
|
8
|
+
columnType: "PgUUID";
|
|
9
|
+
data: string;
|
|
10
|
+
driverParam: string;
|
|
11
|
+
notNull: true;
|
|
12
|
+
hasDefault: true;
|
|
13
|
+
isPrimaryKey: true;
|
|
14
|
+
isAutoincrement: false;
|
|
15
|
+
hasRuntimeDefault: false;
|
|
16
|
+
enumValues: undefined;
|
|
17
|
+
baseColumn: never;
|
|
18
|
+
identity: undefined;
|
|
19
|
+
generated: undefined;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
22
|
+
name: "personId";
|
|
23
|
+
tableName: "matches";
|
|
24
|
+
dataType: "string";
|
|
25
|
+
columnType: "PgUUID";
|
|
26
|
+
data: string;
|
|
27
|
+
driverParam: string;
|
|
28
|
+
notNull: true;
|
|
29
|
+
hasDefault: false;
|
|
30
|
+
isPrimaryKey: false;
|
|
31
|
+
isAutoincrement: false;
|
|
32
|
+
hasRuntimeDefault: false;
|
|
33
|
+
enumValues: undefined;
|
|
34
|
+
baseColumn: never;
|
|
35
|
+
identity: undefined;
|
|
36
|
+
generated: undefined;
|
|
37
|
+
}, {}, {}>;
|
|
38
|
+
positionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
39
|
+
name: "positionId";
|
|
40
|
+
tableName: "matches";
|
|
41
|
+
dataType: "string";
|
|
42
|
+
columnType: "PgUUID";
|
|
43
|
+
data: string;
|
|
44
|
+
driverParam: string;
|
|
45
|
+
notNull: true;
|
|
46
|
+
hasDefault: false;
|
|
47
|
+
isPrimaryKey: false;
|
|
48
|
+
isAutoincrement: false;
|
|
49
|
+
hasRuntimeDefault: false;
|
|
50
|
+
enumValues: undefined;
|
|
51
|
+
baseColumn: never;
|
|
52
|
+
identity: undefined;
|
|
53
|
+
generated: undefined;
|
|
54
|
+
}, {}, {}>;
|
|
55
|
+
campaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
56
|
+
name: "campaignId";
|
|
57
|
+
tableName: "matches";
|
|
58
|
+
dataType: "string";
|
|
59
|
+
columnType: "PgUUID";
|
|
60
|
+
data: string;
|
|
61
|
+
driverParam: string;
|
|
62
|
+
notNull: false;
|
|
63
|
+
hasDefault: false;
|
|
64
|
+
isPrimaryKey: false;
|
|
65
|
+
isAutoincrement: false;
|
|
66
|
+
hasRuntimeDefault: false;
|
|
67
|
+
enumValues: undefined;
|
|
68
|
+
baseColumn: never;
|
|
69
|
+
identity: undefined;
|
|
70
|
+
generated: undefined;
|
|
71
|
+
}, {}, {}>;
|
|
72
|
+
criteria: import("drizzle-orm/pg-core").PgColumn<{
|
|
73
|
+
name: "criteria";
|
|
74
|
+
tableName: "matches";
|
|
75
|
+
dataType: "json";
|
|
76
|
+
columnType: "PgJsonb";
|
|
77
|
+
data: {
|
|
78
|
+
person: import("../../../utils").MatchCriteria;
|
|
79
|
+
referrer: import("../../../utils").MatchCriteria;
|
|
80
|
+
};
|
|
81
|
+
driverParam: unknown;
|
|
82
|
+
notNull: false;
|
|
83
|
+
hasDefault: false;
|
|
84
|
+
isPrimaryKey: false;
|
|
85
|
+
isAutoincrement: false;
|
|
86
|
+
hasRuntimeDefault: false;
|
|
87
|
+
enumValues: undefined;
|
|
88
|
+
baseColumn: never;
|
|
89
|
+
identity: undefined;
|
|
90
|
+
generated: undefined;
|
|
91
|
+
}, {}, {
|
|
92
|
+
$type: {
|
|
93
|
+
person: import("../../../utils").MatchCriteria;
|
|
94
|
+
referrer: import("../../../utils").MatchCriteria;
|
|
95
|
+
};
|
|
96
|
+
}>;
|
|
97
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
98
|
+
name: "createdAt";
|
|
99
|
+
tableName: "matches";
|
|
100
|
+
dataType: "date";
|
|
101
|
+
columnType: "PgTimestamp";
|
|
102
|
+
data: Date;
|
|
103
|
+
driverParam: string;
|
|
104
|
+
notNull: true;
|
|
105
|
+
hasDefault: true;
|
|
106
|
+
isPrimaryKey: false;
|
|
107
|
+
isAutoincrement: false;
|
|
108
|
+
hasRuntimeDefault: false;
|
|
109
|
+
enumValues: undefined;
|
|
110
|
+
baseColumn: never;
|
|
111
|
+
identity: undefined;
|
|
112
|
+
generated: undefined;
|
|
113
|
+
}, {}, {}>;
|
|
114
|
+
}, undefined, undefined>;
|
|
115
|
+
export declare const AdminMatchSelectSchema: import("drizzle-zod").BuildSchema<"select", {
|
|
116
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
117
|
+
name: "id";
|
|
118
|
+
tableName: "matches";
|
|
119
|
+
dataType: "string";
|
|
120
|
+
columnType: "PgUUID";
|
|
121
|
+
data: string;
|
|
122
|
+
driverParam: string;
|
|
123
|
+
notNull: true;
|
|
124
|
+
hasDefault: true;
|
|
125
|
+
isPrimaryKey: true;
|
|
126
|
+
isAutoincrement: false;
|
|
127
|
+
hasRuntimeDefault: false;
|
|
128
|
+
enumValues: undefined;
|
|
129
|
+
baseColumn: never;
|
|
130
|
+
identity: undefined;
|
|
131
|
+
generated: undefined;
|
|
132
|
+
}, {}, {}>;
|
|
133
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
134
|
+
name: "personId";
|
|
135
|
+
tableName: "matches";
|
|
136
|
+
dataType: "string";
|
|
137
|
+
columnType: "PgUUID";
|
|
138
|
+
data: string;
|
|
139
|
+
driverParam: string;
|
|
140
|
+
notNull: true;
|
|
141
|
+
hasDefault: false;
|
|
142
|
+
isPrimaryKey: false;
|
|
143
|
+
isAutoincrement: false;
|
|
144
|
+
hasRuntimeDefault: false;
|
|
145
|
+
enumValues: undefined;
|
|
146
|
+
baseColumn: never;
|
|
147
|
+
identity: undefined;
|
|
148
|
+
generated: undefined;
|
|
149
|
+
}, {}, {}>;
|
|
150
|
+
positionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
151
|
+
name: "positionId";
|
|
152
|
+
tableName: "matches";
|
|
153
|
+
dataType: "string";
|
|
154
|
+
columnType: "PgUUID";
|
|
155
|
+
data: string;
|
|
156
|
+
driverParam: string;
|
|
157
|
+
notNull: true;
|
|
158
|
+
hasDefault: false;
|
|
159
|
+
isPrimaryKey: false;
|
|
160
|
+
isAutoincrement: false;
|
|
161
|
+
hasRuntimeDefault: false;
|
|
162
|
+
enumValues: undefined;
|
|
163
|
+
baseColumn: never;
|
|
164
|
+
identity: undefined;
|
|
165
|
+
generated: undefined;
|
|
166
|
+
}, {}, {}>;
|
|
167
|
+
campaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
168
|
+
name: "campaignId";
|
|
169
|
+
tableName: "matches";
|
|
170
|
+
dataType: "string";
|
|
171
|
+
columnType: "PgUUID";
|
|
172
|
+
data: string;
|
|
173
|
+
driverParam: string;
|
|
174
|
+
notNull: false;
|
|
175
|
+
hasDefault: false;
|
|
176
|
+
isPrimaryKey: false;
|
|
177
|
+
isAutoincrement: false;
|
|
178
|
+
hasRuntimeDefault: false;
|
|
179
|
+
enumValues: undefined;
|
|
180
|
+
baseColumn: never;
|
|
181
|
+
identity: undefined;
|
|
182
|
+
generated: undefined;
|
|
183
|
+
}, {}, {}>;
|
|
184
|
+
criteria: import("drizzle-orm/pg-core").PgColumn<{
|
|
185
|
+
name: "criteria";
|
|
186
|
+
tableName: "matches";
|
|
187
|
+
dataType: "json";
|
|
188
|
+
columnType: "PgJsonb";
|
|
189
|
+
data: {
|
|
190
|
+
person: import("../../../utils").MatchCriteria;
|
|
191
|
+
referrer: import("../../../utils").MatchCriteria;
|
|
192
|
+
};
|
|
193
|
+
driverParam: unknown;
|
|
194
|
+
notNull: false;
|
|
195
|
+
hasDefault: false;
|
|
196
|
+
isPrimaryKey: false;
|
|
197
|
+
isAutoincrement: false;
|
|
198
|
+
hasRuntimeDefault: false;
|
|
199
|
+
enumValues: undefined;
|
|
200
|
+
baseColumn: never;
|
|
201
|
+
identity: undefined;
|
|
202
|
+
generated: undefined;
|
|
203
|
+
}, {}, {
|
|
204
|
+
$type: {
|
|
205
|
+
person: import("../../../utils").MatchCriteria;
|
|
206
|
+
referrer: import("../../../utils").MatchCriteria;
|
|
207
|
+
};
|
|
208
|
+
}>;
|
|
209
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
210
|
+
name: "createdAt";
|
|
211
|
+
tableName: "matches";
|
|
212
|
+
dataType: "date";
|
|
213
|
+
columnType: "PgTimestamp";
|
|
214
|
+
data: Date;
|
|
215
|
+
driverParam: string;
|
|
216
|
+
notNull: true;
|
|
217
|
+
hasDefault: true;
|
|
218
|
+
isPrimaryKey: false;
|
|
219
|
+
isAutoincrement: false;
|
|
220
|
+
hasRuntimeDefault: false;
|
|
221
|
+
enumValues: undefined;
|
|
222
|
+
baseColumn: never;
|
|
223
|
+
identity: undefined;
|
|
224
|
+
generated: undefined;
|
|
225
|
+
}, {}, {}>;
|
|
226
|
+
}, undefined, undefined>;
|
|
227
|
+
export declare const AdminMatchUpdateSchema: import("drizzle-zod").BuildSchema<"update", {
|
|
228
|
+
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
229
|
+
name: "id";
|
|
230
|
+
tableName: "matches";
|
|
231
|
+
dataType: "string";
|
|
232
|
+
columnType: "PgUUID";
|
|
233
|
+
data: string;
|
|
234
|
+
driverParam: string;
|
|
235
|
+
notNull: true;
|
|
236
|
+
hasDefault: true;
|
|
237
|
+
isPrimaryKey: true;
|
|
238
|
+
isAutoincrement: false;
|
|
239
|
+
hasRuntimeDefault: false;
|
|
240
|
+
enumValues: undefined;
|
|
241
|
+
baseColumn: never;
|
|
242
|
+
identity: undefined;
|
|
243
|
+
generated: undefined;
|
|
244
|
+
}, {}, {}>;
|
|
245
|
+
personId: import("drizzle-orm/pg-core").PgColumn<{
|
|
246
|
+
name: "personId";
|
|
247
|
+
tableName: "matches";
|
|
248
|
+
dataType: "string";
|
|
249
|
+
columnType: "PgUUID";
|
|
250
|
+
data: string;
|
|
251
|
+
driverParam: string;
|
|
252
|
+
notNull: true;
|
|
253
|
+
hasDefault: false;
|
|
254
|
+
isPrimaryKey: false;
|
|
255
|
+
isAutoincrement: false;
|
|
256
|
+
hasRuntimeDefault: false;
|
|
257
|
+
enumValues: undefined;
|
|
258
|
+
baseColumn: never;
|
|
259
|
+
identity: undefined;
|
|
260
|
+
generated: undefined;
|
|
261
|
+
}, {}, {}>;
|
|
262
|
+
positionId: import("drizzle-orm/pg-core").PgColumn<{
|
|
263
|
+
name: "positionId";
|
|
264
|
+
tableName: "matches";
|
|
265
|
+
dataType: "string";
|
|
266
|
+
columnType: "PgUUID";
|
|
267
|
+
data: string;
|
|
268
|
+
driverParam: string;
|
|
269
|
+
notNull: true;
|
|
270
|
+
hasDefault: false;
|
|
271
|
+
isPrimaryKey: false;
|
|
272
|
+
isAutoincrement: false;
|
|
273
|
+
hasRuntimeDefault: false;
|
|
274
|
+
enumValues: undefined;
|
|
275
|
+
baseColumn: never;
|
|
276
|
+
identity: undefined;
|
|
277
|
+
generated: undefined;
|
|
278
|
+
}, {}, {}>;
|
|
279
|
+
campaignId: import("drizzle-orm/pg-core").PgColumn<{
|
|
280
|
+
name: "campaignId";
|
|
281
|
+
tableName: "matches";
|
|
282
|
+
dataType: "string";
|
|
283
|
+
columnType: "PgUUID";
|
|
284
|
+
data: string;
|
|
285
|
+
driverParam: string;
|
|
286
|
+
notNull: false;
|
|
287
|
+
hasDefault: false;
|
|
288
|
+
isPrimaryKey: false;
|
|
289
|
+
isAutoincrement: false;
|
|
290
|
+
hasRuntimeDefault: false;
|
|
291
|
+
enumValues: undefined;
|
|
292
|
+
baseColumn: never;
|
|
293
|
+
identity: undefined;
|
|
294
|
+
generated: undefined;
|
|
295
|
+
}, {}, {}>;
|
|
296
|
+
criteria: import("drizzle-orm/pg-core").PgColumn<{
|
|
297
|
+
name: "criteria";
|
|
298
|
+
tableName: "matches";
|
|
299
|
+
dataType: "json";
|
|
300
|
+
columnType: "PgJsonb";
|
|
301
|
+
data: {
|
|
302
|
+
person: import("../../../utils").MatchCriteria;
|
|
303
|
+
referrer: import("../../../utils").MatchCriteria;
|
|
304
|
+
};
|
|
305
|
+
driverParam: unknown;
|
|
306
|
+
notNull: false;
|
|
307
|
+
hasDefault: false;
|
|
308
|
+
isPrimaryKey: false;
|
|
309
|
+
isAutoincrement: false;
|
|
310
|
+
hasRuntimeDefault: false;
|
|
311
|
+
enumValues: undefined;
|
|
312
|
+
baseColumn: never;
|
|
313
|
+
identity: undefined;
|
|
314
|
+
generated: undefined;
|
|
315
|
+
}, {}, {
|
|
316
|
+
$type: {
|
|
317
|
+
person: import("../../../utils").MatchCriteria;
|
|
318
|
+
referrer: import("../../../utils").MatchCriteria;
|
|
319
|
+
};
|
|
320
|
+
}>;
|
|
321
|
+
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
322
|
+
name: "createdAt";
|
|
323
|
+
tableName: "matches";
|
|
324
|
+
dataType: "date";
|
|
325
|
+
columnType: "PgTimestamp";
|
|
326
|
+
data: Date;
|
|
327
|
+
driverParam: string;
|
|
328
|
+
notNull: true;
|
|
329
|
+
hasDefault: true;
|
|
330
|
+
isPrimaryKey: false;
|
|
331
|
+
isAutoincrement: false;
|
|
332
|
+
hasRuntimeDefault: false;
|
|
333
|
+
enumValues: undefined;
|
|
334
|
+
baseColumn: never;
|
|
335
|
+
identity: undefined;
|
|
336
|
+
generated: undefined;
|
|
337
|
+
}, {}, {}>;
|
|
338
|
+
}, undefined, undefined>;
|
|
339
|
+
export declare const AdminMatchParamsSchema: z.ZodObject<{
|
|
340
|
+
id: z.ZodUUID;
|
|
341
|
+
}, {
|
|
342
|
+
out: {};
|
|
343
|
+
in: {};
|
|
344
|
+
}>;
|
|
345
|
+
export declare const AdminMatchListQuerySchema: z.ZodObject<{
|
|
346
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
347
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
348
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
349
|
+
field: z.ZodString;
|
|
350
|
+
direction: z.ZodEnum<{
|
|
351
|
+
asc: "asc";
|
|
352
|
+
desc: "desc";
|
|
353
|
+
}>;
|
|
354
|
+
}, z.core.$strip>>;
|
|
355
|
+
filter: z.ZodOptional<z.ZodObject<{
|
|
356
|
+
personId: z.ZodOptional<z.ZodString>;
|
|
357
|
+
positionId: z.ZodOptional<z.ZodString>;
|
|
358
|
+
campaignId: z.ZodOptional<z.ZodString>;
|
|
359
|
+
}, z.core.$strip>>;
|
|
360
|
+
}, z.core.$strip>;
|
|
361
|
+
export declare const AdminMatchUpdateParamsSchema: z.ZodObject<{
|
|
362
|
+
id: z.ZodUUID;
|
|
363
|
+
}, {
|
|
364
|
+
out: {};
|
|
365
|
+
in: {};
|
|
366
|
+
}>;
|
|
367
|
+
export declare const AdminMatchDeleteParamsSchema: z.ZodObject<{
|
|
368
|
+
id: z.ZodUUID;
|
|
369
|
+
}, {
|
|
370
|
+
out: {};
|
|
371
|
+
in: {};
|
|
372
|
+
}>;
|
|
373
|
+
type AdminMatch = z.infer<typeof AdminMatchSelectSchema>;
|
|
374
|
+
export type AdminMatchParams = z.infer<typeof AdminMatchParamsSchema>;
|
|
375
|
+
export type AdminMatchResult = AdminMatch;
|
|
376
|
+
export type AdminMatchListQuery = z.infer<typeof AdminMatchListQuerySchema>;
|
|
377
|
+
export type AdminMatchListResult = ListResponse<z.infer<typeof AdminMatchSelectSchema>>;
|
|
378
|
+
export type AdminMatchCreateInput = z.infer<typeof AdminMatchCreateSchema>;
|
|
379
|
+
export type AdminMatchCreateResult = Pick<AdminMatch, 'id'>;
|
|
380
|
+
export type AdminMatchUpdateParams = z.infer<typeof AdminMatchUpdateParamsSchema>;
|
|
381
|
+
export type AdminMatchUpdateInput = z.infer<typeof AdminMatchUpdateSchema>;
|
|
382
|
+
export type AdminMatchDeleteParams = z.infer<typeof AdminMatchDeleteParamsSchema>;
|
|
383
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminMatchDeleteParamsSchema = exports.AdminMatchUpdateParamsSchema = exports.AdminMatchListQuerySchema = exports.AdminMatchParamsSchema = exports.AdminMatchUpdateSchema = exports.AdminMatchSelectSchema = exports.AdminMatchCreateSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
const utils_1 = require("../../../utils");
|
|
7
|
+
const v4_1 = require("zod/v4");
|
|
8
|
+
//// validators
|
|
9
|
+
exports.AdminMatchCreateSchema = (0, drizzle_zod_1.createInsertSchema)(core_1.match);
|
|
10
|
+
exports.AdminMatchSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.match);
|
|
11
|
+
exports.AdminMatchUpdateSchema = (0, drizzle_zod_1.createUpdateSchema)(core_1.match);
|
|
12
|
+
exports.AdminMatchParamsSchema = exports.AdminMatchSelectSchema.pick({
|
|
13
|
+
id: true
|
|
14
|
+
});
|
|
15
|
+
exports.AdminMatchListQuerySchema = utils_1.ListQuerySchema.extend({
|
|
16
|
+
filter: v4_1.z
|
|
17
|
+
.object({
|
|
18
|
+
personId: v4_1.z.string().optional(),
|
|
19
|
+
positionId: v4_1.z.string().optional(),
|
|
20
|
+
campaignId: v4_1.z.string().optional()
|
|
21
|
+
})
|
|
22
|
+
.optional()
|
|
23
|
+
});
|
|
24
|
+
exports.AdminMatchUpdateParamsSchema = exports.AdminMatchParamsSchema;
|
|
25
|
+
exports.AdminMatchDeleteParamsSchema = exports.AdminMatchParamsSchema;
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/index.ts"],"names":[],"mappings":";;;AAAA,6CAIoB;AACpB,qCAAkC;AAClC,0CAAmE;AACnE,+BAA0B;AAE1B,eAAe;AAEF,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,CAAC,CAAA;AAClD,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,CAAC,CAAA;AAClD,QAAA,sBAAsB,GAAG,IAAA,gCAAkB,EAAC,YAAK,CAAC,CAAA;AAElD,QAAA,sBAAsB,GAAG,8BAAsB,CAAC,IAAI,CAAC;IAChE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,yBAAyB,GAAG,uBAAe,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,MAAC;SACN,MAAM,CAAC;QACN,QAAQ,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QAC/B,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;QACjC,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AACW,QAAA,4BAA4B,GAAG,8BAAsB,CAAA;AACrD,QAAA,4BAA4B,GAAG,8BAAsB,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport { match } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminMatchCreateSchema = createInsertSchema(match)\nexport const AdminMatchSelectSchema = createSelectSchema(match)\nexport const AdminMatchUpdateSchema = createUpdateSchema(match)\n\nexport const AdminMatchParamsSchema = AdminMatchSelectSchema.pick({\n id: true\n})\nexport const AdminMatchListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n personId: z.string().optional(),\n positionId: z.string().optional(),\n campaignId: z.string().optional()\n })\n .optional()\n})\nexport const AdminMatchUpdateParamsSchema = AdminMatchParamsSchema\nexport const AdminMatchDeleteParamsSchema = AdminMatchParamsSchema\n\n//// types\n\ntype AdminMatch = z.infer<typeof AdminMatchSelectSchema>\n\n// detail\nexport type AdminMatchParams = z.infer<typeof AdminMatchParamsSchema>\nexport type AdminMatchResult = AdminMatch\n\n// list\nexport type AdminMatchListQuery = z.infer<typeof AdminMatchListQuerySchema>\nexport type AdminMatchListResult = ListResponse<\n z.infer<typeof AdminMatchSelectSchema>\n>\n\n// create\nexport type AdminMatchCreateInput = z.infer<typeof AdminMatchCreateSchema>\nexport type AdminMatchCreateResult = Pick<AdminMatch, 'id'>\n\n// update\nexport type AdminMatchUpdateParams = z.infer<\n typeof AdminMatchUpdateParamsSchema\n>\nexport type AdminMatchUpdateInput = z.infer<typeof AdminMatchUpdateSchema>\n\n// delete\nexport type AdminMatchDeleteParams = z.infer<\n typeof AdminMatchDeleteParamsSchema\n>\n"]}
|
|
@@ -1624,6 +1624,75 @@ export declare const AdminPersonConnectionsResultSchema: z.ZodObject<{
|
|
|
1624
1624
|
}, z.core.$strip>>;
|
|
1625
1625
|
}, z.core.$strip>>;
|
|
1626
1626
|
}, z.core.$strip>;
|
|
1627
|
+
export declare const LocationFilterSchema: z.ZodObject<{
|
|
1628
|
+
city: z.ZodString;
|
|
1629
|
+
state: z.ZodString;
|
|
1630
|
+
lat: z.ZodNumber;
|
|
1631
|
+
lon: z.ZodNumber;
|
|
1632
|
+
radiusInMiles: z.ZodNumber;
|
|
1633
|
+
}, z.core.$strip>;
|
|
1634
|
+
export declare const AdminPersonMatchQuerySchema: z.ZodObject<{
|
|
1635
|
+
filters: z.ZodObject<{
|
|
1636
|
+
criteria: z.ZodRecord<z.ZodEnum<{
|
|
1637
|
+
email: "email";
|
|
1638
|
+
country: "country";
|
|
1639
|
+
state: "state";
|
|
1640
|
+
candidacyId: "candidacyId";
|
|
1641
|
+
positionId: "positionId";
|
|
1642
|
+
city: "city";
|
|
1643
|
+
fullName: "fullName";
|
|
1644
|
+
referralSource: "referralSource";
|
|
1645
|
+
positionName: "positionName";
|
|
1646
|
+
positionCity: "positionCity";
|
|
1647
|
+
positionState: "positionState";
|
|
1648
|
+
positionCountry: "positionCountry";
|
|
1649
|
+
positionEmploymentType: "positionEmploymentType";
|
|
1650
|
+
positionCreatedAt: "positionCreatedAt";
|
|
1651
|
+
positionIndustryId: "positionIndustryId";
|
|
1652
|
+
positionJobFunctionId: "positionJobFunctionId";
|
|
1653
|
+
candidacyStage: "candidacyStage";
|
|
1654
|
+
candidacyCreatedAt: "candidacyCreatedAt";
|
|
1655
|
+
referredPersonId: "referredPersonId";
|
|
1656
|
+
referredPersonEmail: "referredPersonEmail";
|
|
1657
|
+
referredPersonFirstName: "referredPersonFirstName";
|
|
1658
|
+
referredPersonLastName: "referredPersonLastName";
|
|
1659
|
+
referredPersonFullName: "referredPersonFullName";
|
|
1660
|
+
referredPersonCity: "referredPersonCity";
|
|
1661
|
+
referredPersonState: "referredPersonState";
|
|
1662
|
+
referredPersonCountry: "referredPersonCountry";
|
|
1663
|
+
referredPersonLinkedInUrl: "referredPersonLinkedInUrl";
|
|
1664
|
+
personSkills: "personSkills";
|
|
1665
|
+
personNetworks: "personNetworks";
|
|
1666
|
+
personEvents: "personEvents";
|
|
1667
|
+
personTags: "personTags";
|
|
1668
|
+
personSchools: "personSchools";
|
|
1669
|
+
personIndustries: "personIndustries";
|
|
1670
|
+
personJobFunctions: "personJobFunctions";
|
|
1671
|
+
personTitles: "personTitles";
|
|
1672
|
+
referredIndustries: "referredIndustries";
|
|
1673
|
+
referredJobFunctions: "referredJobFunctions";
|
|
1674
|
+
}>, z.ZodArray<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
1675
|
+
city: z.ZodString;
|
|
1676
|
+
state: z.ZodString;
|
|
1677
|
+
lat: z.ZodNumber;
|
|
1678
|
+
lon: z.ZodNumber;
|
|
1679
|
+
radiusInMiles: z.ZodNumber;
|
|
1680
|
+
}, z.core.$strip>>, z.ZodArray<z.ZodString>]>>>;
|
|
1681
|
+
_search: z.ZodOptional<z.ZodString>;
|
|
1682
|
+
}, z.core.$strip>;
|
|
1683
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
1684
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
1685
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
1686
|
+
field: z.ZodEnum<{
|
|
1687
|
+
email: "email";
|
|
1688
|
+
fullName: "fullName";
|
|
1689
|
+
}>;
|
|
1690
|
+
direction: z.ZodEnum<{
|
|
1691
|
+
asc: "asc";
|
|
1692
|
+
desc: "desc";
|
|
1693
|
+
}>;
|
|
1694
|
+
}, z.core.$strip>>;
|
|
1695
|
+
}, z.core.$strip>;
|
|
1627
1696
|
type AdminPerson = z.infer<typeof AdminPersonSelectSchema>;
|
|
1628
1697
|
export type AdminPersonExperienceResult = z.infer<typeof AdminPersonExperienceSelectSchema>;
|
|
1629
1698
|
export type AdminPersonEducationResult = z.infer<typeof AdminPersonEducationSelectSchema>;
|
|
@@ -1797,4 +1866,5 @@ export type AdminPersonResumeParseResult = z.infer<typeof ResumeParserSchema>;
|
|
|
1797
1866
|
export type AdminPersonConnectionsParams = z.infer<typeof AdminPersonConnectionsParamsSchema>;
|
|
1798
1867
|
export type AdminPersonConnectionsPerson = z.infer<typeof AdminPersonConnectionsPersonSchema>;
|
|
1799
1868
|
export type AdminPersonConnectionsResult = z.infer<typeof AdminPersonConnectionsResultSchema>;
|
|
1869
|
+
export type AdminPersonMatchQuery = z.infer<typeof AdminPersonMatchQuerySchema>;
|
|
1800
1870
|
export {};
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ResumeParserSchema = exports.AdminPersonConnectionsResultSchema = exports.AdminPersonConnectionsPersonSchema = exports.AdminPersonConnectionsParamsSchema = exports.AdminPersonListAdvancedQuerySchema = exports.AdminPersonListQuerySchema = exports.AdminPersonDeleteParamsSchema = exports.AdminPersonUpdateParamsSchema = exports.AdminPersonByIdNanoSchema = exports.AdminPersonByPhoneParamsSchema = exports.AdminPersonByEmailParamsSchema = exports.AdminPersonParamsSchema = exports.AdminPersonUpdateSchema = exports.AdminPersonSelectSchema = exports.AdminPersonCreateSchema = exports.AdminPersonExperienceSelectSchema = exports.AdminPersonEducationSelectSchema = void 0;
|
|
6
|
+
exports.ResumeParserSchema = exports.AdminPersonMatchQuerySchema = exports.LocationFilterSchema = exports.AdminPersonConnectionsResultSchema = exports.AdminPersonConnectionsPersonSchema = exports.AdminPersonConnectionsParamsSchema = exports.AdminPersonListAdvancedQuerySchema = exports.AdminPersonListQuerySchema = exports.AdminPersonDeleteParamsSchema = exports.AdminPersonUpdateParamsSchema = exports.AdminPersonByIdNanoSchema = exports.AdminPersonByPhoneParamsSchema = exports.AdminPersonByEmailParamsSchema = exports.AdminPersonParamsSchema = exports.AdminPersonUpdateSchema = exports.AdminPersonSelectSchema = exports.AdminPersonCreateSchema = exports.AdminPersonExperienceSelectSchema = exports.AdminPersonEducationSelectSchema = void 0;
|
|
7
7
|
const drizzle_zod_1 = require("drizzle-zod");
|
|
8
8
|
const core_1 = require("../../core");
|
|
9
9
|
const utils_1 = require("../../../utils");
|
|
@@ -227,6 +227,66 @@ exports.AdminPersonConnectionsResultSchema = v4_1.z.object({
|
|
|
227
227
|
.nullable()
|
|
228
228
|
}))
|
|
229
229
|
});
|
|
230
|
+
//// types
|
|
231
|
+
exports.LocationFilterSchema = v4_1.z.object({
|
|
232
|
+
city: v4_1.z.string(),
|
|
233
|
+
state: v4_1.z.string(),
|
|
234
|
+
lat: v4_1.z.number(),
|
|
235
|
+
lon: v4_1.z.number(),
|
|
236
|
+
radiusInMiles: v4_1.z.number()
|
|
237
|
+
});
|
|
238
|
+
exports.AdminPersonMatchQuerySchema = v4_1.z.object({
|
|
239
|
+
filters: v4_1.z.object({
|
|
240
|
+
criteria: v4_1.z.record(v4_1.z.enum([
|
|
241
|
+
'email',
|
|
242
|
+
'fullName',
|
|
243
|
+
'city',
|
|
244
|
+
'state',
|
|
245
|
+
'country',
|
|
246
|
+
'referralSource',
|
|
247
|
+
'positionId',
|
|
248
|
+
'positionName',
|
|
249
|
+
'positionCity',
|
|
250
|
+
'positionState',
|
|
251
|
+
'positionCountry',
|
|
252
|
+
'positionEmploymentType',
|
|
253
|
+
'positionCreatedAt',
|
|
254
|
+
'positionIndustryId',
|
|
255
|
+
'positionJobFunctionId',
|
|
256
|
+
'candidacyId',
|
|
257
|
+
'candidacyStage',
|
|
258
|
+
'candidacyCreatedAt',
|
|
259
|
+
'referredPersonId',
|
|
260
|
+
'referredPersonEmail',
|
|
261
|
+
'referredPersonFirstName',
|
|
262
|
+
'referredPersonLastName',
|
|
263
|
+
'referredPersonFullName',
|
|
264
|
+
'referredPersonCity',
|
|
265
|
+
'referredPersonState',
|
|
266
|
+
'referredPersonCountry',
|
|
267
|
+
'referredPersonLinkedInUrl',
|
|
268
|
+
'personSkills',
|
|
269
|
+
'personNetworks',
|
|
270
|
+
'personEvents',
|
|
271
|
+
'personTags',
|
|
272
|
+
'personSchools',
|
|
273
|
+
'personIndustries',
|
|
274
|
+
'personJobFunctions',
|
|
275
|
+
'personTitles',
|
|
276
|
+
'referredIndustries',
|
|
277
|
+
'referredJobFunctions'
|
|
278
|
+
]), v4_1.z.array(v4_1.z.union([exports.LocationFilterSchema.array(), v4_1.z.string().array()]))),
|
|
279
|
+
_search: v4_1.z.string().optional()
|
|
280
|
+
}),
|
|
281
|
+
limit: v4_1.z.number().optional(),
|
|
282
|
+
offset: v4_1.z.number().optional(),
|
|
283
|
+
sort: v4_1.z
|
|
284
|
+
.object({
|
|
285
|
+
field: v4_1.z.enum(['fullName', 'email']),
|
|
286
|
+
direction: v4_1.z.enum(['asc', 'desc'])
|
|
287
|
+
})
|
|
288
|
+
.optional()
|
|
289
|
+
});
|
|
230
290
|
exports.ResumeParserSchema = exports.AdminPersonSelectSchema.pick({
|
|
231
291
|
firstName: true,
|
|
232
292
|
lastName: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/persons/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAIoB;AACpB,qCAWmB;AACnB,0CAKuB;AACvB,+BAA0B;AAC1B,kDAG2B;AAC3B,kDAAyB;AAEzB,eAAe;AAEf,MAAM,WAAW,GAAG,MAAC,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,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CAAC;QACvC,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CACH;CACF,CAAC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport {\n campaign,\n client,\n education,\n experience,\n industry,\n jobFunction,\n person,\n PersonSources,\n skill,\n tag\n} from '../../core'\nimport {\n EmailSchema,\n ListQuerySchema,\n OptionalPhoneSchema,\n type ListResponse\n} from '../../../utils'\nimport { z } from 'zod/v4'\nimport {\n LIST_REQUEST_SORT_DIRECTIONS,\n PERSON_LIST_OPERATORS\n} from '../../../constants'\nimport phone from 'phone'\n\n//// validators\n\nconst emailSchema = z.email().trim().toLowerCase()\nconst phoneSchema = z\n .string()\n .transform((val) => phone(val.trim()).phoneNumber)\n .pipe(z.string().startsWith('+'))\n .nullable()\n\nexport const AdminPersonEducationSelectSchema = createSelectSchema(education, {\n field: (schema) => schema.describe('Field of study'),\n graduatedAt: z\n .date()\n .nullable()\n .describe('Graduation date, use June 1 if exact date unknown')\n}).pick({\n id: true,\n degree: true,\n field: true,\n school: true,\n graduatedAt: true\n})\n\nexport const AdminPersonExperienceSelectSchema = createSelectSchema(\n experience,\n {\n startDate: z.date().nullable(),\n endDate: z.date().nullable()\n }\n)\n .pick({\n id: true,\n title: true,\n company: true,\n level: true,\n salary: true,\n startDate: true,\n endDate: true,\n isCurrent: true\n })\n .extend({\n jobFunction: z.string().nullable(),\n industry: z.string().nullable()\n })\n\nexport const AdminPersonCreateSchema = createInsertSchema(person)\n .extend({\n email: emailSchema\n })\n .omit({\n idNano: true\n })\nexport const AdminPersonSelectSchema = createSelectSchema(person)\n .partial()\n .extend({\n skills: z\n .array(\n createSelectSchema(skill).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n tags: z\n .array(\n createSelectSchema(tag).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n educations: z.array(AdminPersonEducationSelectSchema).optional(),\n experiences: z.array(AdminPersonExperienceSelectSchema).optional(),\n _referralsCount: z.number().nullable().optional(),\n _referredIndustries: z.array(z.string()).nullable().optional(),\n _referredLocations: z.array(z.string()).nullable().optional(),\n _referredSkills: z.array(z.string()).nullable().optional(),\n _currentTitle: z.string().nullable().optional(),\n _currentEmployer: z.string().nullable().optional(),\n _currentSalary: z.number().nullable().optional(),\n _careerLevel: z.number().nullable().optional(),\n _currentJobFunction: z.string().nullable().optional(),\n _currentIndustry: z.string().nullable().optional(),\n _calculatedIsMember: z.boolean().optional(),\n industries: z\n .array(\n createSelectSchema(industry).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional(),\n jobFunctions: z\n .array(\n createSelectSchema(jobFunction).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional()\n })\n\nexport const AdminPersonUpdateSchema = createUpdateSchema(person, {\n email: EmailSchema.optional(),\n addedAt: z.coerce.date().optional(),\n phone: OptionalPhoneSchema\n})\n\nexport const AdminPersonParamsSchema = createSelectSchema(person).pick({\n id: true\n})\nexport const AdminPersonByEmailParamsSchema = createSelectSchema(person).pick({\n email: true\n})\nexport const AdminPersonByPhoneParamsSchema = createSelectSchema(person, {\n phone: z.string()\n}).pick({\n phone: true\n})\nexport const AdminPersonByIdNanoSchema = createSelectSchema(person, {\n idNano: z.string()\n}).pick({\n idNano: true\n})\n\nexport const AdminPersonUpdateParamsSchema = AdminPersonParamsSchema\n\nexport const AdminPersonDeleteParamsSchema = AdminPersonParamsSchema\n\nconst FilterSchema = z.object({\n field: z.string(),\n isDynamicColumn: z.boolean(),\n operator: z.enum(PERSON_LIST_OPERATORS),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\nconst GeoSchema = z.object({\n operator: z.string(),\n referenceLat: z.number(),\n referenceLon: z.number(),\n radius: z.number()\n})\nconst CustomQuerySchema = z.object({\n custom: z.string(),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\n// TODO - add type\nconst NestedFilterSchema: z.ZodType<any> = z.lazy(() =>\n z.object({\n and: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional(),\n or: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional()\n })\n)\n\nexport const AdminPersonListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n nameEmail: z.string(),\n clientId: z.string(),\n hasLinkedInUrl: z.boolean(),\n source: z.enum(PersonSources.enumValues),\n location: z.object({\n miles: z.number(),\n lat: z.number(),\n lon: z.number()\n })\n })\n .partial()\n .optional()\n})\n\nexport const AdminPersonListAdvancedQuerySchema = ListQuerySchema.extend({\n sort: z\n .array(\n z.object({\n field: z.string(),\n direction: z.enum(LIST_REQUEST_SORT_DIRECTIONS)\n })\n )\n .optional(),\n filter: z\n .union([FilterSchema, GeoSchema, CustomQuerySchema, NestedFilterSchema])\n .optional()\n})\n\nexport const AdminPersonConnectionsParamsSchema = createSelectSchema(\n person\n).pick({\n id: true\n})\nexport const AdminPersonConnectionsPersonSchema = createSelectSchema(\n person\n).pick({\n id: true,\n email: true,\n fullName: true\n})\nexport const AdminPersonConnectionsResultSchema = z.object({\n sourcedPersons: z.array(AdminPersonConnectionsPersonSchema),\n sourcedBy: AdminPersonConnectionsPersonSchema.nullable(),\n bestPersons: z.array(\n z.object({ bestPerson: AdminPersonConnectionsPersonSchema })\n ),\n bestiedBy: z.array(\n z.object({ bestiedBy: AdminPersonConnectionsPersonSchema })\n ),\n referrals: z.array(\n z.object({\n candidacy: z\n .object({ person: AdminPersonConnectionsPersonSchema })\n .nullable(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n })\n ),\n candidacies: z.array(\n z.object({\n referral: z\n .object({ referrer: AdminPersonConnectionsPersonSchema })\n .nullable()\n })\n )\n})\n\n//// types\n\ntype AdminPerson = z.infer<typeof AdminPersonSelectSchema>\n\nexport type AdminPersonExperienceResult = z.infer<\n typeof AdminPersonExperienceSelectSchema\n>\nexport type AdminPersonEducationResult = z.infer<\n typeof AdminPersonEducationSelectSchema\n>\n\n// detail\nexport type AdminPersonParams = z.infer<typeof AdminPersonParamsSchema>\nexport type AdminPersonByEmailParams = z.infer<\n typeof AdminPersonByEmailParamsSchema\n>\nexport type AdminPersonByPhoneParams = z.infer<\n typeof AdminPersonByPhoneParamsSchema\n>\nexport type AdminPersonByIdNanoParams = z.infer<\n typeof AdminPersonByIdNanoSchema\n>\nexport type AdminPersonResult = AdminPerson\n\n// list\nexport type AdminPersonListQuery = z.infer<typeof AdminPersonListQuerySchema>\nexport type AdminPersonListAdvancedQuery = z.infer<\n typeof AdminPersonListAdvancedQuerySchema\n>\nexport type AdminPersonListResult = ListResponse<\n z.infer<typeof AdminPersonSelectSchema>\n>\n\n// create\nexport type AdminPersonCreateInput = z.infer<typeof AdminPersonCreateSchema>\nexport type AdminPersonCreateResult = Pick<AdminPerson, 'id'>\n\n// update\nexport type AdminPersonUpdateParams = z.infer<\n typeof AdminPersonUpdateParamsSchema\n>\nexport type AdminPersonUpdateInput = Partial<AdminPerson>\n\n// delete\nexport type AdminPersonDeleteParams = z.infer<\n typeof AdminPersonDeleteParamsSchema\n>\n\nexport const ResumeParserSchema = AdminPersonSelectSchema.pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n city: true,\n state: true,\n country: true,\n gender: true,\n linkedInUrl: true,\n websiteUrl: true,\n skills: true,\n experiences: true,\n educations: true\n}).extend({\n skills: z.array(z.string()),\n experiences: z.array(\n AdminPersonExperienceSelectSchema.extend({\n jobFunction: z.string().nullable()\n })\n )\n})\n\nexport type AdminPersonResumeParseResult = z.infer<typeof ResumeParserSchema>\n\nexport type AdminPersonConnectionsParams = z.infer<\n typeof AdminPersonConnectionsParamsSchema\n>\nexport type AdminPersonConnectionsPerson = z.infer<\n typeof AdminPersonConnectionsPersonSchema\n>\nexport type AdminPersonConnectionsResult = z.infer<\n typeof AdminPersonConnectionsResultSchema\n>\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/persons/index.ts"],"names":[],"mappings":";;;;;;AAAA,6CAIoB;AACpB,qCAWmB;AACnB,0CAKuB;AACvB,+BAA0B;AAC1B,kDAG2B;AAC3B,kDAAyB;AAEzB,eAAe;AAEf,MAAM,WAAW,GAAG,MAAC,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;AAClD,MAAM,WAAW,GAAG,MAAC;KAClB,MAAM,EAAE;KACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAA,eAAK,EAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC;KACjD,IAAI,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;KAChC,QAAQ,EAAE,CAAA;AAEA,QAAA,gCAAgC,GAAG,IAAA,gCAAkB,EAAC,gBAAS,EAAE;IAC5E,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;IACpD,WAAW,EAAE,MAAC;SACX,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,mDAAmD,CAAC;CACjE,CAAC,CAAC,IAAI,CAAC;IACN,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;IACX,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;CAClB,CAAC,CAAA;AAEW,QAAA,iCAAiC,GAAG,IAAA,gCAAkB,EACjE,iBAAU,EACV;IACE,SAAS,EAAE,MAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE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,EAAE,MAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QACpC,SAAS,EAAE,MAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;KACnC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAgDW,QAAA,kBAAkB,GAAG,+BAAuB,CAAC,IAAI,CAAC;IAC7D,SAAS,EAAE,IAAI;IACf,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,IAAI;IAChB,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,IAAI;IACjB,UAAU,EAAE,IAAI;CACjB,CAAC,CAAC,MAAM,CAAC;IACR,MAAM,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,WAAW,EAAE,MAAC,CAAC,KAAK,CAClB,yCAAiC,CAAC,MAAM,CAAC;QACvC,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KACnC,CAAC,CACH;CACF,CAAC,CAAA","sourcesContent":["import {\n createInsertSchema,\n createSelectSchema,\n createUpdateSchema\n} from 'drizzle-zod'\nimport {\n campaign,\n client,\n education,\n experience,\n industry,\n jobFunction,\n person,\n PersonSources,\n skill,\n tag\n} from '../../core'\nimport {\n EmailSchema,\n ListQuerySchema,\n OptionalPhoneSchema,\n type ListResponse\n} from '../../../utils'\nimport { z } from 'zod/v4'\nimport {\n LIST_REQUEST_SORT_DIRECTIONS,\n PERSON_LIST_OPERATORS\n} from '../../../constants'\nimport phone from 'phone'\n\n//// validators\n\nconst emailSchema = z.email().trim().toLowerCase()\nconst phoneSchema = z\n .string()\n .transform((val) => phone(val.trim()).phoneNumber)\n .pipe(z.string().startsWith('+'))\n .nullable()\n\nexport const AdminPersonEducationSelectSchema = createSelectSchema(education, {\n field: (schema) => schema.describe('Field of study'),\n graduatedAt: z\n .date()\n .nullable()\n .describe('Graduation date, use June 1 if exact date unknown')\n}).pick({\n id: true,\n degree: true,\n field: true,\n school: true,\n graduatedAt: true\n})\n\nexport const AdminPersonExperienceSelectSchema = createSelectSchema(\n experience,\n {\n startDate: z.date().nullable(),\n endDate: z.date().nullable()\n }\n)\n .pick({\n id: true,\n title: true,\n company: true,\n level: true,\n salary: true,\n startDate: true,\n endDate: true,\n isCurrent: true\n })\n .extend({\n jobFunction: z.string().nullable(),\n industry: z.string().nullable()\n })\n\nexport const AdminPersonCreateSchema = createInsertSchema(person)\n .extend({\n email: emailSchema\n })\n .omit({\n idNano: true\n })\nexport const AdminPersonSelectSchema = createSelectSchema(person)\n .partial()\n .extend({\n skills: z\n .array(\n createSelectSchema(skill).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n tags: z\n .array(\n createSelectSchema(tag).pick({\n id: true,\n name: true\n })\n )\n .optional(),\n sourceCampaign: createSelectSchema(campaign)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n educations: z.array(AdminPersonEducationSelectSchema).optional(),\n experiences: z.array(AdminPersonExperienceSelectSchema).optional(),\n _referralsCount: z.number().nullable().optional(),\n _referredIndustries: z.array(z.string()).nullable().optional(),\n _referredLocations: z.array(z.string()).nullable().optional(),\n _referredSkills: z.array(z.string()).nullable().optional(),\n _currentTitle: z.string().nullable().optional(),\n _currentEmployer: z.string().nullable().optional(),\n _currentSalary: z.number().nullable().optional(),\n _careerLevel: z.number().nullable().optional(),\n _currentJobFunction: z.string().nullable().optional(),\n _currentIndustry: z.string().nullable().optional(),\n _calculatedIsMember: z.boolean().optional(),\n industries: z\n .array(\n createSelectSchema(industry).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional(),\n jobFunctions: z\n .array(\n createSelectSchema(jobFunction).pick({\n id: true,\n name: true,\n slug: true\n })\n )\n .optional()\n })\n\nexport const AdminPersonUpdateSchema = createUpdateSchema(person, {\n email: EmailSchema.optional(),\n addedAt: z.coerce.date().optional(),\n phone: OptionalPhoneSchema\n})\n\nexport const AdminPersonParamsSchema = createSelectSchema(person).pick({\n id: true\n})\nexport const AdminPersonByEmailParamsSchema = createSelectSchema(person).pick({\n email: true\n})\nexport const AdminPersonByPhoneParamsSchema = createSelectSchema(person, {\n phone: z.string()\n}).pick({\n phone: true\n})\nexport const AdminPersonByIdNanoSchema = createSelectSchema(person, {\n idNano: z.string()\n}).pick({\n idNano: true\n})\n\nexport const AdminPersonUpdateParamsSchema = AdminPersonParamsSchema\n\nexport const AdminPersonDeleteParamsSchema = AdminPersonParamsSchema\n\nconst FilterSchema = z.object({\n field: z.string(),\n isDynamicColumn: z.boolean(),\n operator: z.enum(PERSON_LIST_OPERATORS),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\nconst GeoSchema = z.object({\n operator: z.string(),\n referenceLat: z.number(),\n referenceLon: z.number(),\n radius: z.number()\n})\nconst CustomQuerySchema = z.object({\n custom: z.string(),\n value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())])\n})\n// TODO - add type\nconst NestedFilterSchema: z.ZodType<any> = z.lazy(() =>\n z.object({\n and: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional(),\n or: z\n .array(\n z.union([\n FilterSchema,\n GeoSchema,\n CustomQuerySchema,\n NestedFilterSchema\n ])\n )\n .optional()\n })\n)\n\nexport const AdminPersonListQuerySchema = ListQuerySchema.extend({\n filter: z\n .object({\n nameEmail: z.string(),\n clientId: z.string(),\n hasLinkedInUrl: z.boolean(),\n source: z.enum(PersonSources.enumValues),\n location: z.object({\n miles: z.number(),\n lat: z.number(),\n lon: z.number()\n })\n })\n .partial()\n .optional()\n})\n\nexport const AdminPersonListAdvancedQuerySchema = ListQuerySchema.extend({\n sort: z\n .array(\n z.object({\n field: z.string(),\n direction: z.enum(LIST_REQUEST_SORT_DIRECTIONS)\n })\n )\n .optional(),\n filter: z\n .union([FilterSchema, GeoSchema, CustomQuerySchema, NestedFilterSchema])\n .optional()\n})\n\nexport const AdminPersonConnectionsParamsSchema = createSelectSchema(\n person\n).pick({\n id: true\n})\nexport const AdminPersonConnectionsPersonSchema = createSelectSchema(\n person\n).pick({\n id: true,\n email: true,\n fullName: true\n})\nexport const AdminPersonConnectionsResultSchema = z.object({\n sourcedPersons: z.array(AdminPersonConnectionsPersonSchema),\n sourcedBy: AdminPersonConnectionsPersonSchema.nullable(),\n bestPersons: z.array(\n z.object({ bestPerson: AdminPersonConnectionsPersonSchema })\n ),\n bestiedBy: z.array(\n z.object({ bestiedBy: AdminPersonConnectionsPersonSchema })\n ),\n referrals: z.array(\n z.object({\n candidacy: z\n .object({ person: AdminPersonConnectionsPersonSchema })\n .nullable(),\n client: createSelectSchema(client)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n })\n ),\n candidacies: z.array(\n z.object({\n referral: z\n .object({ referrer: AdminPersonConnectionsPersonSchema })\n .nullable()\n })\n )\n})\n\n//// types\nexport const LocationFilterSchema = z.object({\n city: z.string(),\n state: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n})\n\nexport const AdminPersonMatchQuerySchema = z.object({\n filters: z.object({\n criteria: z.record(\n z.enum([\n 'email',\n 'fullName',\n 'city',\n 'state',\n 'country',\n 'referralSource',\n 'positionId',\n 'positionName',\n 'positionCity',\n 'positionState',\n 'positionCountry',\n 'positionEmploymentType',\n 'positionCreatedAt',\n 'positionIndustryId',\n 'positionJobFunctionId',\n 'candidacyId',\n 'candidacyStage',\n 'candidacyCreatedAt',\n 'referredPersonId',\n 'referredPersonEmail',\n 'referredPersonFirstName',\n 'referredPersonLastName',\n 'referredPersonFullName',\n 'referredPersonCity',\n 'referredPersonState',\n 'referredPersonCountry',\n 'referredPersonLinkedInUrl',\n 'personSkills',\n 'personNetworks',\n 'personEvents',\n 'personTags',\n 'personSchools',\n 'personIndustries',\n 'personJobFunctions',\n 'personTitles',\n 'referredIndustries',\n 'referredJobFunctions'\n ]),\n z.array(z.union([LocationFilterSchema.array(), z.string().array()]))\n ),\n _search: z.string().optional()\n }),\n limit: z.number().optional(),\n offset: z.number().optional(),\n sort: z\n .object({\n field: z.enum(['fullName', 'email']),\n direction: z.enum(['asc', 'desc'])\n })\n .optional()\n})\n\ntype AdminPerson = z.infer<typeof AdminPersonSelectSchema>\n\nexport type AdminPersonExperienceResult = z.infer<\n typeof AdminPersonExperienceSelectSchema\n>\nexport type AdminPersonEducationResult = z.infer<\n typeof AdminPersonEducationSelectSchema\n>\n\n// detail\nexport type AdminPersonParams = z.infer<typeof AdminPersonParamsSchema>\nexport type AdminPersonByEmailParams = z.infer<\n typeof AdminPersonByEmailParamsSchema\n>\nexport type AdminPersonByPhoneParams = z.infer<\n typeof AdminPersonByPhoneParamsSchema\n>\nexport type AdminPersonByIdNanoParams = z.infer<\n typeof AdminPersonByIdNanoSchema\n>\nexport type AdminPersonResult = AdminPerson\n\n// list\nexport type AdminPersonListQuery = z.infer<typeof AdminPersonListQuerySchema>\nexport type AdminPersonListAdvancedQuery = z.infer<\n typeof AdminPersonListAdvancedQuerySchema\n>\nexport type AdminPersonListResult = ListResponse<\n z.infer<typeof AdminPersonSelectSchema>\n>\n\n// create\nexport type AdminPersonCreateInput = z.infer<typeof AdminPersonCreateSchema>\nexport type AdminPersonCreateResult = Pick<AdminPerson, 'id'>\n\n// update\nexport type AdminPersonUpdateParams = z.infer<\n typeof AdminPersonUpdateParamsSchema\n>\nexport type AdminPersonUpdateInput = Partial<AdminPerson>\n\n// delete\nexport type AdminPersonDeleteParams = z.infer<\n typeof AdminPersonDeleteParamsSchema\n>\n\nexport const ResumeParserSchema = AdminPersonSelectSchema.pick({\n firstName: true,\n lastName: true,\n email: true,\n phone: true,\n city: true,\n state: true,\n country: true,\n gender: true,\n linkedInUrl: true,\n websiteUrl: true,\n skills: true,\n experiences: true,\n educations: true\n}).extend({\n skills: z.array(z.string()),\n experiences: z.array(\n AdminPersonExperienceSelectSchema.extend({\n jobFunction: z.string().nullable()\n })\n )\n})\n\nexport type AdminPersonResumeParseResult = z.infer<typeof ResumeParserSchema>\n\nexport type AdminPersonConnectionsParams = z.infer<\n typeof AdminPersonConnectionsParamsSchema\n>\nexport type AdminPersonConnectionsPerson = z.infer<\n typeof AdminPersonConnectionsPersonSchema\n>\nexport type AdminPersonConnectionsResult = z.infer<\n typeof AdminPersonConnectionsResultSchema\n>\n\nexport type AdminPersonMatchQuery = z.infer<typeof AdminPersonMatchQuerySchema>\n"]}
|