@the-inkwell/shared 0.2.286 → 0.2.287
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schema/admin/locations/index.d.ts +2 -2
- package/dist/schema/admin/locations/index.js +2 -2
- package/dist/schema/admin/locations/index.js.map +1 -1
- package/dist/schema/admin/search/index.d.ts +2 -2
- package/dist/schema/admin/search/index.js +1 -1
- package/dist/schema/admin/search/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,12 +7,12 @@ export declare const AdminLocationReverseGeocodeQuerySchema: z.ZodObject<{
|
|
|
7
7
|
lat: z.ZodNumber;
|
|
8
8
|
lon: z.ZodNumber;
|
|
9
9
|
}, z.core.$strip>;
|
|
10
|
-
export declare const
|
|
10
|
+
export declare const AdminLocationAutoCompleteQuerySchema: z.ZodObject<{
|
|
11
11
|
address: z.ZodString;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type AdminLocationGeocodeQuery = z.infer<typeof AdminLocationGeocodeQuerySchema>;
|
|
14
14
|
export type AdminLocationReverseGeocodeQuery = z.infer<typeof AdminLocationReverseGeocodeQuerySchema>;
|
|
15
|
-
export type AdminLocationAdminSearchAutoCompleteQuery = z.infer<typeof
|
|
15
|
+
export type AdminLocationAdminSearchAutoCompleteQuery = z.infer<typeof AdminLocationAutoCompleteQuerySchema>;
|
|
16
16
|
export type AdminLocationGeocodeResult = {
|
|
17
17
|
lat: number;
|
|
18
18
|
lon: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AdminLocationAutoCompleteQuerySchema = exports.AdminLocationReverseGeocodeQuerySchema = exports.AdminLocationGeocodeQuerySchema = void 0;
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
5
|
//// validators
|
|
6
6
|
exports.AdminLocationGeocodeQuerySchema = v4_1.z.object({
|
|
@@ -11,7 +11,7 @@ exports.AdminLocationReverseGeocodeQuerySchema = v4_1.z.object({
|
|
|
11
11
|
lat: v4_1.z.number(),
|
|
12
12
|
lon: v4_1.z.number()
|
|
13
13
|
});
|
|
14
|
-
exports.
|
|
14
|
+
exports.AdminLocationAutoCompleteQuerySchema = v4_1.z.object({
|
|
15
15
|
address: v4_1.z.string()
|
|
16
16
|
});
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/locations/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,eAAe;AAEF,QAAA,+BAA+B,GAAG,MAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AACW,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA;AACW,QAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/locations/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,eAAe;AAEF,QAAA,+BAA+B,GAAG,MAAC,CAAC,MAAM,CAAC;IACtD,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAA;AACW,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;CAChB,CAAC,CAAA;AACW,QAAA,oCAAoC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC3D,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\n\n//// validators\n\nexport const AdminLocationGeocodeQuerySchema = z.object({\n address: z.string().optional(),\n placeId: z.string().optional()\n})\nexport const AdminLocationReverseGeocodeQuerySchema = z.object({\n lat: z.number(),\n lon: z.number()\n})\nexport const AdminLocationAutoCompleteQuerySchema = z.object({\n address: z.string()\n})\n\n//// types\n\nexport type AdminLocationGeocodeQuery = z.infer<\n typeof AdminLocationGeocodeQuerySchema\n>\nexport type AdminLocationReverseGeocodeQuery = z.infer<\n typeof AdminLocationReverseGeocodeQuerySchema\n>\nexport type AdminLocationAdminSearchAutoCompleteQuery = z.infer<\n typeof AdminLocationAutoCompleteQuerySchema\n>\n\nexport type AdminLocationGeocodeResult = {\n lat: number\n lon: number\n}\n\nexport type AdminLocationReverseGeocodeResult = {\n address: string\n placeId: string\n}\n\nexport type AdminLocationAutocompleteResult = {\n placeId: string\n description: string\n}[]\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod/v4';
|
|
2
2
|
import { ListResponse } from '../../../utils';
|
|
3
|
-
declare const
|
|
3
|
+
declare const AdminSearchAutoCompleteQuerySchema: z.ZodObject<{
|
|
4
4
|
name: z.ZodString;
|
|
5
5
|
}, z.core.$strip>;
|
|
6
6
|
export declare const AdminSearchAutoCompleteResultSchema: z.ZodObject<{
|
|
@@ -148,7 +148,7 @@ declare const AdminSearchResultSchema: z.ZodObject<{
|
|
|
148
148
|
in: {};
|
|
149
149
|
}>;
|
|
150
150
|
export type AdminSearchAutoCompleteResult = z.infer<typeof AdminSearchAutoCompleteResultSchema>;
|
|
151
|
-
export type AdminSearchAutoCompleteQuery = z.infer<typeof
|
|
151
|
+
export type AdminSearchAutoCompleteQuery = z.infer<typeof AdminSearchAutoCompleteQuerySchema>;
|
|
152
152
|
export type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>;
|
|
153
153
|
export type AdminSearchListResult = ListResponse<z.infer<typeof AdminSearchResultSchema>>;
|
|
154
154
|
export {};
|
|
@@ -4,7 +4,7 @@ exports.AdminSearchSchema = exports.AdminSearchAutoCompleteResultSchema = void 0
|
|
|
4
4
|
const v4_1 = require("zod/v4");
|
|
5
5
|
const drizzle_zod_1 = require("drizzle-zod");
|
|
6
6
|
const core_1 = require("../../core");
|
|
7
|
-
const
|
|
7
|
+
const AdminSearchAutoCompleteQuerySchema = v4_1.z.object({
|
|
8
8
|
name: v4_1.z.string()
|
|
9
9
|
});
|
|
10
10
|
const AdminSearchAutoCompleteSchema = v4_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/search/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,6CAAgD;AAChD,qCAAmC;AAEnC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/admin/search/index.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,6CAAgD;AAChD,qCAAmC;AAEnC,MAAM,kCAAkC,GAAG,MAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAA;AAEF,MAAM,6BAA6B,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,MAAC,CAAC,KAAK,CACjB,MAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,CAC1D;IACD,YAAY,EAAE,MAAC,CAAC,KAAK,CACnB,MAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,MAAC,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC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AAE,MAAC,CAAC,MAAM,CAAC;QACd,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;QACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;KAC1B,CAAC;CACH,CAAC,CACH,CAAA;AAEH,MAAM,sBAAsB,GAAG,MAAC,CAAC,MAAM,CAAC;IACtC,eAAe,EAAE,MAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC/D,OAAO,EAAE,MAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;IAC5C,UAAU,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;IACvC,MAAM,EAAE,MAAC,CAAC,KAAK,CACb,MAAC,CAAC,MAAM,CAAC;QACP,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;QACzD,QAAQ,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;KAC1D,CAAC,CACH;CACF,CAAC,CAAA;AACF,MAAM,uBAAuB,GAAG,IAAA,gCAAkB,EAAC,aAAM,CAAC,CAAC,IAAI,CAAC;IAC9D,EAAE,EAAE,IAAI;IACR,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,eAAe,EAAE,IAAI;IACrB,aAAa,EAAE,IAAI;IACnB,KAAK,EAAE,IAAI;CACZ,CAAC,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { ListResponse } from '../../../utils'\nimport { createSelectSchema } from 'drizzle-zod'\nimport { person } from '../../core'\n\nconst AdminSearchAutoCompleteQuerySchema = z.object({\n name: z.string()\n})\n\nconst AdminSearchAutoCompleteSchema = z.object({\n industries: z.array(\n z.object({ id: z.string(), name: z.string().optional() })\n ),\n jobFunctions: z.array(\n z.object({ id: z.string(), name: z.string().optional() })\n ),\n skills: z.array(z.object({ id: z.string(), name: z.string().optional() })),\n tags: z.array(z.object({ id: z.string(), name: z.string().optional() }))\n})\n\nexport const AdminSearchAutoCompleteResultSchema = AdminSearchAutoCompleteSchema\n\nexport const AdminSearchSchema = z.object({\n name: z.string()\n})\n\nconst AdminSearchCriteriaTypes = [\n 'industries',\n 'jobFunctions',\n 'skills',\n 'tags',\n 'jobTitles',\n 'companies',\n 'schools',\n 'resumeText'\n] as const\n\nconst AdminSearchCriteriaSchema = z.array(\n z.object({\n criteriaType: z.enum(AdminSearchCriteriaTypes),\n value: z.array(z.string())\n })\n)\n\nconst AdminSearchLocationSchema = z\n .object({\n locationType: z.literal('state'),\n value: z.array(z.string())\n })\n .or(\n z.object({\n locationType: z.literal('radius'),\n value: z.object({\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n })\n })\n )\n\nconst AdminSearchQuerySchema = z.object({\n campaignChannel: z.enum(['email', 'sms']).nullable().optional(),\n purpose: z.enum(['candidates', 'referrers']),\n maxResults: z.number().min(1).max(5000),\n search: z.array(\n z.object({\n criteria: AdminSearchCriteriaSchema.nullable().optional(),\n location: AdminSearchLocationSchema.nullable().optional()\n })\n )\n})\nconst AdminSearchResultSchema = createSelectSchema(person).pick({\n id: true,\n photoUri: true,\n fullName: true,\n email: true,\n phone: true,\n emailIsOptedOut: true,\n smsIsOptedOut: true,\n state: true\n})\n\nexport type AdminSearchAutoCompleteResult = z.infer<\n typeof AdminSearchAutoCompleteResultSchema\n>\nexport type AdminSearchAutoCompleteQuery = z.infer<\n typeof AdminSearchAutoCompleteQuerySchema\n>\nexport type AdminSearchQuery = z.infer<typeof AdminSearchQuerySchema>\nexport type AdminSearchListResult = ListResponse<\n z.infer<typeof AdminSearchResultSchema>\n>\n"]}
|