@the-inkwell/shared 0.2.189 → 0.2.191
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 +28 -24
- package/dist/constants.js +25 -24
- package/dist/constants.js.map +1 -1
- package/dist/schema/admin/actions/index.d.ts +7 -6
- package/dist/schema/admin/candidacies/index.d.ts +1 -0
- package/dist/schema/admin/matches/index.d.ts +3 -383
- package/dist/schema/admin/matches/index.js +17 -23
- package/dist/schema/admin/matches/index.js.map +1 -1
- package/dist/schema/admin/matches/matches.d.ts +384 -0
- package/dist/schema/admin/matches/matches.js +27 -0
- package/dist/schema/admin/matches/matches.js.map +1 -0
- package/dist/schema/admin/matches/positions.d.ts +25 -0
- package/dist/schema/admin/matches/positions.js +20 -0
- package/dist/schema/admin/matches/positions.js.map +1 -0
- package/dist/schema/admin/matches/previews.d.ts +75 -0
- package/dist/schema/admin/matches/previews.js +62 -0
- package/dist/schema/admin/matches/previews.js.map +1 -0
- package/dist/schema/admin/matches/utils.d.ts +9 -0
- package/dist/schema/admin/matches/utils.js +22 -0
- package/dist/schema/admin/matches/utils.js.map +1 -0
- package/dist/schema/core.d.ts +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,384 @@
|
|
|
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
|
+
search: z.ZodOptional<z.ZodString>;
|
|
360
|
+
}, z.core.$strip>>;
|
|
361
|
+
}, z.core.$strip>;
|
|
362
|
+
export declare const AdminMatchUpdateParamsSchema: z.ZodObject<{
|
|
363
|
+
id: z.ZodUUID;
|
|
364
|
+
}, {
|
|
365
|
+
out: {};
|
|
366
|
+
in: {};
|
|
367
|
+
}>;
|
|
368
|
+
export declare const AdminMatchDeleteParamsSchema: z.ZodObject<{
|
|
369
|
+
id: z.ZodUUID;
|
|
370
|
+
}, {
|
|
371
|
+
out: {};
|
|
372
|
+
in: {};
|
|
373
|
+
}>;
|
|
374
|
+
type AdminMatch = z.infer<typeof AdminMatchSelectSchema>;
|
|
375
|
+
export type AdminMatchParams = z.infer<typeof AdminMatchParamsSchema>;
|
|
376
|
+
export type AdminMatchResult = AdminMatch;
|
|
377
|
+
export type AdminMatchListQuery = z.infer<typeof AdminMatchListQuerySchema>;
|
|
378
|
+
export type AdminMatchListResult = ListResponse<z.infer<typeof AdminMatchSelectSchema>>;
|
|
379
|
+
export type AdminMatchCreateInput = z.infer<typeof AdminMatchCreateSchema>;
|
|
380
|
+
export type AdminMatchCreateResult = Pick<AdminMatch, 'id'>;
|
|
381
|
+
export type AdminMatchUpdateParams = z.infer<typeof AdminMatchUpdateParamsSchema>;
|
|
382
|
+
export type AdminMatchUpdateInput = z.infer<typeof AdminMatchUpdateSchema>;
|
|
383
|
+
export type AdminMatchDeleteParams = z.infer<typeof AdminMatchDeleteParamsSchema>;
|
|
384
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
search: v4_1.z.string().optional()
|
|
22
|
+
})
|
|
23
|
+
.optional()
|
|
24
|
+
});
|
|
25
|
+
exports.AdminMatchUpdateParamsSchema = exports.AdminMatchParamsSchema;
|
|
26
|
+
exports.AdminMatchDeleteParamsSchema = exports.AdminMatchParamsSchema;
|
|
27
|
+
//# sourceMappingURL=matches.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matches.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/matches.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;QACjC,MAAM,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,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 search: 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"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
export declare const AdminMatchPositionFiltersSelectSchema: z.ZodRecord<z.ZodEnum<{
|
|
3
|
+
[x: string]: string;
|
|
4
|
+
}>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
5
|
+
city: z.ZodString;
|
|
6
|
+
state: z.ZodString;
|
|
7
|
+
lat: z.ZodNumber;
|
|
8
|
+
lon: z.ZodNumber;
|
|
9
|
+
radiusInMiles: z.ZodNumber;
|
|
10
|
+
}, z.core.$strip>]>>>;
|
|
11
|
+
export declare const AdminMatchPositionMessagesSelectSchema: z.ZodObject<{
|
|
12
|
+
email: {
|
|
13
|
+
subject: z.ZodString;
|
|
14
|
+
intro: z.ZodString;
|
|
15
|
+
highlights: z.ZodArray<z.ZodString>;
|
|
16
|
+
closing: z.ZodString;
|
|
17
|
+
};
|
|
18
|
+
sms: {
|
|
19
|
+
intro: z.ZodString;
|
|
20
|
+
highlights: z.ZodString;
|
|
21
|
+
closing: z.ZodString;
|
|
22
|
+
};
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type AdminMatchPositionFiltersResult = z.infer<typeof AdminMatchPositionFiltersSelectSchema>;
|
|
25
|
+
export type AdminMatchPositionMessagesResult = z.infer<typeof AdminMatchPositionMessagesSelectSchema>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminMatchPositionMessagesSelectSchema = exports.AdminMatchPositionFiltersSelectSchema = void 0;
|
|
4
|
+
const v4_1 = require("zod/v4");
|
|
5
|
+
const utils_1 = require("./utils");
|
|
6
|
+
exports.AdminMatchPositionFiltersSelectSchema = v4_1.z.record(v4_1.z.enum(utils_1.filterFields), v4_1.z.array(v4_1.z.string().or(utils_1.LocationSchema)));
|
|
7
|
+
exports.AdminMatchPositionMessagesSelectSchema = v4_1.z.object({
|
|
8
|
+
email: {
|
|
9
|
+
subject: v4_1.z.string(),
|
|
10
|
+
intro: v4_1.z.string(),
|
|
11
|
+
highlights: v4_1.z.array(v4_1.z.string()),
|
|
12
|
+
closing: v4_1.z.string()
|
|
13
|
+
},
|
|
14
|
+
sms: {
|
|
15
|
+
intro: v4_1.z.string(),
|
|
16
|
+
highlights: v4_1.z.string(),
|
|
17
|
+
closing: v4_1.z.string()
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=positions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positions.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/positions.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAC1B,mCAAsD;AAEzC,QAAA,qCAAqC,GAAG,MAAC,CAAC,MAAM,CAC3D,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,sBAAc,CAAC,CAAC,CACvC,CAAA;AACY,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,KAAK,EAAE;QACL,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;QACjB,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;QAC/B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;KACpB;IACD,GAAG,EAAE;QACH,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;QACjB,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE;QACtB,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;KACpB;CACF,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { filterFields, LocationSchema } from './utils'\n\nexport const AdminMatchPositionFiltersSelectSchema = z.record(\n z.enum(filterFields),\n z.array(z.string().or(LocationSchema))\n)\nexport const AdminMatchPositionMessagesSelectSchema = z.object({\n email: {\n subject: z.string(),\n intro: z.string(),\n highlights: z.array(z.string()),\n closing: z.string()\n },\n sms: {\n intro: z.string(),\n highlights: z.string(),\n closing: z.string()\n }\n})\n\nexport type AdminMatchPositionFiltersResult = z.infer<\n typeof AdminMatchPositionFiltersSelectSchema\n>\nexport type AdminMatchPositionMessagesResult = z.infer<\n typeof AdminMatchPositionMessagesSelectSchema\n>\n"]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { type ListResponse } from '../../../utils';
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
|
+
export declare const AdminMatchPreviewSelectSchema: z.ZodObject<{
|
|
4
|
+
matches: z.ZodObject<{
|
|
5
|
+
field: z.ZodEnum<{
|
|
6
|
+
[x: string]: string;
|
|
7
|
+
}>;
|
|
8
|
+
matches: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
name: z.ZodString;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
city: z.ZodString;
|
|
13
|
+
state: z.ZodString;
|
|
14
|
+
lat: z.ZodNumber;
|
|
15
|
+
lon: z.ZodNumber;
|
|
16
|
+
radiusInMiles: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>]>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
email: z.ZodString;
|
|
20
|
+
fullName: z.ZodNullable<z.ZodString>;
|
|
21
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export declare const AdminMatchPreviewMetaSelectSchema: z.ZodObject<{
|
|
24
|
+
filters: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodEnum<{
|
|
25
|
+
[x: string]: string;
|
|
26
|
+
}>, z.ZodObject<{
|
|
27
|
+
personCount: z.ZodNumber;
|
|
28
|
+
referrerCount: z.ZodNumber;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
optOutCounts: z.ZodObject<{
|
|
31
|
+
email: z.ZodNumber;
|
|
32
|
+
sms: z.ZodNumber;
|
|
33
|
+
emailAndSms: z.ZodNumber;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const AdminMatchListPreviewQuerySchema: z.ZodObject<{
|
|
37
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
38
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
sort: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
field: z.ZodString;
|
|
41
|
+
direction: z.ZodEnum<{
|
|
42
|
+
asc: "asc";
|
|
43
|
+
desc: "desc";
|
|
44
|
+
}>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
filter: z.ZodObject<{
|
|
47
|
+
search: z.ZodOptional<z.ZodString>;
|
|
48
|
+
criteria: z.ZodRecord<z.ZodEnum<{
|
|
49
|
+
[x: string]: string;
|
|
50
|
+
}>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
51
|
+
city: z.ZodString;
|
|
52
|
+
state: z.ZodString;
|
|
53
|
+
lat: z.ZodNumber;
|
|
54
|
+
lon: z.ZodNumber;
|
|
55
|
+
radiusInMiles: z.ZodNumber;
|
|
56
|
+
}, z.core.$strip>]>>>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export declare const AdminMatchListPreviewMetaQuerySchema: z.ZodObject<{
|
|
60
|
+
filter: z.ZodObject<{
|
|
61
|
+
criteria: z.ZodRecord<z.ZodEnum<{
|
|
62
|
+
[x: string]: string;
|
|
63
|
+
}>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
64
|
+
city: z.ZodString;
|
|
65
|
+
state: z.ZodString;
|
|
66
|
+
lat: z.ZodNumber;
|
|
67
|
+
lon: z.ZodNumber;
|
|
68
|
+
radiusInMiles: z.ZodNumber;
|
|
69
|
+
}, z.core.$strip>]>>>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type AdminMatchListPreviewQuery = z.infer<typeof AdminMatchListPreviewQuerySchema>;
|
|
73
|
+
export type AdminMatchListPreviewResult = ListResponse<z.infer<typeof AdminMatchPreviewSelectSchema>>;
|
|
74
|
+
export type AdminMatchListPreviewMetaQuery = z.infer<typeof AdminMatchListPreviewMetaQuerySchema>;
|
|
75
|
+
export type AdminMatchListPreviewMetaResult = z.infer<typeof AdminMatchPreviewMetaSelectSchema>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminMatchListPreviewMetaQuerySchema = exports.AdminMatchListPreviewQuerySchema = exports.AdminMatchPreviewMetaSelectSchema = exports.AdminMatchPreviewSelectSchema = 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
|
+
const utils_2 = require("./utils");
|
|
9
|
+
//// validators
|
|
10
|
+
exports.AdminMatchPreviewSelectSchema = v4_1.z.object({
|
|
11
|
+
...(0, drizzle_zod_1.createSelectSchema)(core_1.person).pick({
|
|
12
|
+
fullName: true,
|
|
13
|
+
email: true,
|
|
14
|
+
phone: true
|
|
15
|
+
}).shape,
|
|
16
|
+
matches: v4_1.z.object({
|
|
17
|
+
field: v4_1.z.enum(utils_2.filterFields),
|
|
18
|
+
matches: v4_1.z.array(v4_1.z
|
|
19
|
+
.object({
|
|
20
|
+
id: v4_1.z.string(),
|
|
21
|
+
name: v4_1.z.string()
|
|
22
|
+
})
|
|
23
|
+
.or(v4_1.z.object({
|
|
24
|
+
city: v4_1.z.string(),
|
|
25
|
+
state: v4_1.z.string(),
|
|
26
|
+
lat: v4_1.z.number(),
|
|
27
|
+
lon: v4_1.z.number(),
|
|
28
|
+
radiusInMiles: v4_1.z.number()
|
|
29
|
+
})))
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
exports.AdminMatchPreviewMetaSelectSchema = v4_1.z.object({
|
|
33
|
+
filters: v4_1.z.record(v4_1.z.string(), v4_1.z.record(v4_1.z.enum(utils_2.filterFields), v4_1.z.object({
|
|
34
|
+
// location fields -> location:[{}]
|
|
35
|
+
personCount: v4_1.z.number(),
|
|
36
|
+
referrerCount: v4_1.z.number()
|
|
37
|
+
}))),
|
|
38
|
+
optOutCounts: v4_1.z.object({
|
|
39
|
+
email: v4_1.z.number(),
|
|
40
|
+
sms: v4_1.z.number(),
|
|
41
|
+
emailAndSms: v4_1.z.number()
|
|
42
|
+
})
|
|
43
|
+
});
|
|
44
|
+
const AdminMatchListPreviewFilterSchema = v4_1.z.object({
|
|
45
|
+
criteria: v4_1.z.record(v4_1.z.enum(utils_2.filterFields), v4_1.z.array(v4_1.z.string().or(v4_1.z.object({
|
|
46
|
+
city: v4_1.z.string(),
|
|
47
|
+
state: v4_1.z.string(),
|
|
48
|
+
lat: v4_1.z.number(),
|
|
49
|
+
lon: v4_1.z.number(),
|
|
50
|
+
radiusInMiles: v4_1.z.number()
|
|
51
|
+
}))))
|
|
52
|
+
});
|
|
53
|
+
exports.AdminMatchListPreviewQuerySchema = utils_1.ListQuerySchema.extend({
|
|
54
|
+
filter: v4_1.z.object({
|
|
55
|
+
...AdminMatchListPreviewFilterSchema.shape,
|
|
56
|
+
search: v4_1.z.string().optional()
|
|
57
|
+
})
|
|
58
|
+
});
|
|
59
|
+
exports.AdminMatchListPreviewMetaQuerySchema = v4_1.z.object({
|
|
60
|
+
filter: AdminMatchListPreviewFilterSchema
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=previews.js.map
|
|
@@ -0,0 +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;AAC1B,mCAAsC;AAEtC,eAAe;AAEF,QAAA,6BAA6B,GAAG,MAAC,CAAC,MAAM,CAAC;IACpD,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;QACjC,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;QACX,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC,KAAK;IACR,OAAO,EAAE,MAAC,CAAC,MAAM,CAAC;QAChB,KAAK,EAAE,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC;QAC3B,OAAO,EAAE,MAAC,CAAC,KAAK,CACd,MAAC;aACE,MAAM,CAAC;YACN,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE;YACd,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;SACjB,CAAC;aACD,EAAE,CACD,MAAC,CAAC,MAAM,CAAC;YACP,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;YAChB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;YACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;YACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;YACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;SAC1B,CAAC,CACH,CACJ;KACF,CAAC;CACH,CAAC,CAAA;AACW,QAAA,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACxD,OAAO,EAAE,MAAC,CAAC,MAAM,CACf,MAAC,CAAC,MAAM,EAAE,EACV,MAAC,CAAC,MAAM,CACN,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,MAAM,CAAC;QACP,mCAAmC;QACnC,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;QACvB,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;KAC1B,CAAC,CACH,CACF;IACD,YAAY,EAAE,MAAC,CAAC,MAAM,CAAC;QACrB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,WAAW,EAAE,MAAC,CAAC,MAAM,EAAE;KACxB,CAAC;CACH,CAAC,CAAA;AAEF,MAAM,iCAAiC,GAAG,MAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,MAAC,CAAC,MAAM,CAChB,MAAC,CAAC,IAAI,CAAC,oBAAY,CAAC,EACpB,MAAC,CAAC,KAAK,CACL,MAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CACX,MAAC,CAAC,MAAM,CAAC;QACP,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;QAChB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;QACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;KAC1B,CAAC,CACH,CACF,CACF;CACF,CAAC,CAAA;AAEW,QAAA,gCAAgC,GAAG,uBAAe,CAAC,MAAM,CAAC;IACrE,MAAM,EAAE,MAAC,CAAC,MAAM,CAAC;QACf,GAAG,iCAAiC,CAAC,KAAK;QAC1C,MAAM,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;KAC9B,CAAC;CACH,CAAC,CAAA;AACW,QAAA,oCAAoC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC3D,MAAM,EAAE,iCAAiC;CAC1C,CAAC,CAAA","sourcesContent":["import { createSelectSchema } from 'drizzle-zod'\nimport { person } from '../../core'\nimport { ListQuerySchema, type ListResponse } from '../../../utils'\nimport { z } from 'zod/v4'\nimport { filterFields } from './utils'\n\n//// validators\n\nexport const AdminMatchPreviewSelectSchema = z.object({\n ...createSelectSchema(person).pick({\n fullName: true,\n email: true,\n phone: true\n }).shape,\n matches: z.object({\n field: z.enum(filterFields),\n matches: z.array(\n z\n .object({\n id: z.string(),\n name: z.string()\n })\n .or(\n z.object({\n city: z.string(),\n state: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n })\n )\n )\n })\n})\nexport const AdminMatchPreviewMetaSelectSchema = z.object({\n filters: z.record(\n z.string(),\n z.record(\n z.enum(filterFields),\n z.object({\n // location fields -> location:[{}]\n personCount: z.number(),\n referrerCount: z.number()\n })\n )\n ),\n optOutCounts: z.object({\n email: z.number(),\n sms: z.number(),\n emailAndSms: z.number()\n })\n})\n\nconst AdminMatchListPreviewFilterSchema = z.object({\n criteria: z.record(\n z.enum(filterFields),\n z.array(\n z.string().or(\n z.object({\n city: z.string(),\n state: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n })\n )\n )\n )\n})\n\nexport const AdminMatchListPreviewQuerySchema = ListQuerySchema.extend({\n filter: z.object({\n ...AdminMatchListPreviewFilterSchema.shape,\n search: z.string().optional()\n })\n})\nexport const AdminMatchListPreviewMetaQuerySchema = z.object({\n filter: AdminMatchListPreviewFilterSchema\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"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocationSchema = exports.filterFields = void 0;
|
|
4
|
+
const v4_1 = require("zod/v4");
|
|
5
|
+
exports.filterFields = [
|
|
6
|
+
'locations',
|
|
7
|
+
'industries',
|
|
8
|
+
'tags',
|
|
9
|
+
'networks',
|
|
10
|
+
'professionalEvents',
|
|
11
|
+
'skills',
|
|
12
|
+
'excludedPersons',
|
|
13
|
+
'includedPersons'
|
|
14
|
+
];
|
|
15
|
+
exports.LocationSchema = v4_1.z.object({
|
|
16
|
+
city: v4_1.z.string(),
|
|
17
|
+
state: v4_1.z.string(),
|
|
18
|
+
lat: v4_1.z.number(),
|
|
19
|
+
lon: v4_1.z.number(),
|
|
20
|
+
radiusInMiles: v4_1.z.number()
|
|
21
|
+
});
|
|
22
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAEb,QAAA,YAAY,GAAG;IAC1B,WAAW;IACX,YAAY;IACZ,MAAM;IACN,UAAU;IACV,oBAAoB;IACpB,QAAQ;IACR,iBAAiB;IACjB,iBAAiB;CAClB,CAAA;AAEY,QAAA,cAAc,GAAG,MAAC,CAAC,MAAM,CAAC;IACrC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,MAAC,CAAC,MAAM,EAAE;IACjB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\nexport const filterFields = [\n 'locations',\n 'industries',\n 'tags',\n 'networks',\n 'professionalEvents',\n 'skills',\n 'excludedPersons',\n 'includedPersons'\n]\n\nexport const LocationSchema = z.object({\n city: z.string(),\n state: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n})\n"]}
|