@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 SearchItemSchema: z.ZodObject<{
2
+ declare const AutoCompleteQuerySchema: z.ZodObject<{
3
3
  name: z.ZodString;
4
4
  }, z.core.$strip>;
5
- export declare const AdminSearchResponseSchema: z.ZodObject<{
6
- industries: z.ZodArray<z.ZodObject<{
7
- name: z.ZodString;
8
- }, z.core.$strip>>;
9
- jobFunctions: z.ZodArray<z.ZodObject<{
10
- name: z.ZodString;
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 type AdminSearchResponse = z.infer<typeof AdminSearchResponseSchema>;
20
- export type SearchItem = z.infer<typeof SearchItemSchema>;
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.AdminSearchResponseSchema = void 0;
3
+ exports.AdminSearchSchema = exports.AdminAutoCompleteResponseSchema = void 0;
4
4
  const v4_1 = require("zod/v4");
5
- const SearchItemSchema = v4_1.z.object({
5
+ const AutoCompleteQuerySchema = v4_1.z.object({
6
6
  name: v4_1.z.string()
7
7
  });
8
- exports.AdminSearchResponseSchema = v4_1.z.object({
9
- industries: v4_1.z.array(SearchItemSchema),
10
- jobFunctions: v4_1.z.array(SearchItemSchema),
11
- skills: v4_1.z.array(SearchItemSchema),
12
- tags: v4_1.z.array(SearchItemSchema)
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,gBAAgB,GAAG,MAAC,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,MAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,MAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACrC,YAAY,EAAE,MAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACvC,MAAM,EAAE,MAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;IACjC,IAAI,EAAE,MAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC;CAChC,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\nconst SearchItemSchema = z.object({\n name: z.string()\n})\n\nexport const AdminSearchResponseSchema = z.object({\n industries: z.array(SearchItemSchema),\n jobFunctions: z.array(SearchItemSchema),\n skills: z.array(SearchItemSchema),\n tags: z.array(SearchItemSchema)\n})\n\nexport type AdminSearchResponse = z.infer<typeof AdminSearchResponseSchema>\nexport type SearchItem = z.infer<typeof SearchItemSchema>\n"]}
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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.277",
3
+ "version": "0.2.278",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",