@the-inkwell/shared 0.2.277 → 0.2.278
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.
|
@@ -1,21 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
|
-
declare const
|
|
2
|
+
declare const AutoCompleteQuerySchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
}, z.core.$strip>;
|
|
5
|
-
|
|
6
|
-
industries: z.ZodArray<z.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}, z.core.$strip>>;
|
|
12
|
-
skills: z.ZodArray<z.ZodObject<{
|
|
13
|
-
name: z.ZodString;
|
|
14
|
-
}, z.core.$strip>>;
|
|
15
|
-
tags: z.ZodArray<z.ZodObject<{
|
|
16
|
-
name: z.ZodString;
|
|
17
|
-
}, z.core.$strip>>;
|
|
5
|
+
declare const AdminSearchQuerySchema: z.ZodObject<{
|
|
6
|
+
industries: z.ZodArray<z.ZodString>;
|
|
7
|
+
jobFunctions: z.ZodArray<z.ZodString>;
|
|
8
|
+
skills: z.ZodArray<z.ZodString>;
|
|
9
|
+
tags: z.ZodArray<z.ZodString>;
|
|
10
|
+
jobTitles: z.ZodArray<z.ZodString>;
|
|
18
11
|
}, z.core.$strip>;
|
|
19
|
-
export
|
|
20
|
-
|
|
12
|
+
export declare const AdminAutoCompleteResponseSchema: z.ZodObject<{
|
|
13
|
+
industries: z.ZodArray<z.ZodString>;
|
|
14
|
+
tags: z.ZodArray<z.ZodString>;
|
|
15
|
+
skills: z.ZodArray<z.ZodString>;
|
|
16
|
+
jobFunctions: z.ZodArray<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
export declare const AdminSearchSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type AdminAutoCompleteResponse = z.infer<typeof AdminAutoCompleteResponseSchema>;
|
|
22
|
+
export type AutoCompleteQuery = z.infer<typeof AutoCompleteQuerySchema>;
|
|
23
|
+
export type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>;
|
|
21
24
|
export {};
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AdminSearchSchema = exports.AdminAutoCompleteResponseSchema = void 0;
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
|
-
const
|
|
5
|
+
const AutoCompleteQuerySchema = v4_1.z.object({
|
|
6
6
|
name: v4_1.z.string()
|
|
7
7
|
});
|
|
8
|
-
|
|
9
|
-
industries: v4_1.z.array(
|
|
10
|
-
jobFunctions: v4_1.z.array(
|
|
11
|
-
skills: v4_1.z.array(
|
|
12
|
-
tags: v4_1.z.array(
|
|
8
|
+
const AdminSearchQuerySchema = v4_1.z.object({
|
|
9
|
+
industries: v4_1.z.array(v4_1.z.string()),
|
|
10
|
+
jobFunctions: v4_1.z.array(v4_1.z.string()),
|
|
11
|
+
skills: v4_1.z.array(v4_1.z.string()),
|
|
12
|
+
tags: v4_1.z.array(v4_1.z.string()),
|
|
13
|
+
jobTitles: v4_1.z.array(v4_1.z.string())
|
|
14
|
+
});
|
|
15
|
+
exports.AdminAutoCompleteResponseSchema = AdminSearchQuerySchema.omit({
|
|
16
|
+
jobTitles: true
|
|
17
|
+
});
|
|
18
|
+
exports.AdminSearchSchema = v4_1.z.object({
|
|
19
|
+
name: v4_1.z.string()
|
|
13
20
|
});
|
|
14
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/search/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/search/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,MAAM,uBAAuB,GAAG,MAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAAG,MAAC,CAAC,MAAM,CAAC;IACtC,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,YAAY,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IACjC,MAAM,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IAC3B,IAAI,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,CAAA;AAEW,QAAA,+BAA+B,GAAG,sBAAsB,CAAC,IAAI,CAAC;IACzE,SAAS,EAAE,IAAI;CAChB,CAAC,CAAA;AAEW,QAAA,iBAAiB,GAAG,MAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\nconst AutoCompleteQuerySchema = z.object({\n name: z.string()\n})\n\nconst AdminSearchQuerySchema = z.object({\n industries: z.array(z.string()),\n jobFunctions: z.array(z.string()),\n skills: z.array(z.string()),\n tags: z.array(z.string()),\n jobTitles: z.array(z.string())\n})\n\nexport const AdminAutoCompleteResponseSchema = AdminSearchQuerySchema.omit({\n jobTitles: true\n})\n\nexport const AdminSearchSchema = z.object({\n name: z.string()\n})\n\nexport type AdminAutoCompleteResponse = z.infer<\n typeof AdminAutoCompleteResponseSchema\n>\nexport type AutoCompleteQuery = z.infer<typeof AutoCompleteQuerySchema>\nexport type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>\n"]}
|