@the-inkwell/shared 0.2.243 → 0.2.244

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,68 +1,20 @@
1
1
  import { z } from 'zod/v4';
2
- export declare const AdminMatchPositionFiltersSelectSchema: z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
3
- positionId: "positionId";
4
- referralId: "referralId";
5
- companyEmbedding: "companyEmbedding";
6
- titleEmbedding: "titleEmbedding";
7
- locations: "locations";
8
- excludedPersons: "excludedPersons";
9
- includedPersons: "includedPersons";
10
- personEmail: "personEmail";
11
- personFullName: "personFullName";
12
- personLinkedInUrl: "personLinkedInUrl";
13
- personPhone: "personPhone";
14
- personCity: "personCity";
15
- personState: "personState";
16
- personCountry: "personCountry";
17
- personPostalCode: "personPostalCode";
18
- personLat: "personLat";
19
- personLon: "personLon";
20
- referralSource: "referralSource";
21
- positionName: "positionName";
22
- positionCity: "positionCity";
23
- positionState: "positionState";
24
- positionCountry: "positionCountry";
25
- positionEmploymentType: "positionEmploymentType";
26
- positionIndustryId: "positionIndustryId";
27
- positionJobFunctionId: "positionJobFunctionId";
28
- candidacyStage: "candidacyStage";
29
- referredPersonEmail: "referredPersonEmail";
30
- referredPersonFirstName: "referredPersonFirstName";
31
- referredPersonLastName: "referredPersonLastName";
32
- referredPersonFullName: "referredPersonFullName";
33
- referredPersonCity: "referredPersonCity";
34
- referredPersonState: "referredPersonState";
35
- referredPersonCountry: "referredPersonCountry";
36
- referredPersonPostalCode: "referredPersonPostalCode";
37
- referredPersonLat: "referredPersonLat";
38
- referredPersonLon: "referredPersonLon";
39
- referredPersonLinkedInUrl: "referredPersonLinkedInUrl";
40
- referralPayout: "referralPayout";
41
- personSkills: "personSkills";
42
- personNetworks: "personNetworks";
43
- personEvents: "personEvents";
44
- personTags: "personTags";
45
- personSchools: "personSchools";
46
- personIndustries: "personIndustries";
47
- personJobFunctions: "personJobFunctions";
48
- personTitles: "personTitles";
49
- referredPersonSkills: "referredPersonSkills";
50
- referredPersonNetworks: "referredPersonNetworks";
51
- referredPersonEvents: "referredPersonEvents";
52
- referredPersonTags: "referredPersonTags";
53
- referredPersonSchools: "referredPersonSchools";
54
- referredPersonIndustries: "referredPersonIndustries";
55
- referredPersonJobFunctions: "referredPersonJobFunctions";
56
- referredPersonTitles: "referredPersonTitles";
57
- referredIndustries: "referredIndustries";
58
- referredJobFunctions: "referredJobFunctions";
59
- }>, z.ZodNever]>, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
60
- city: z.ZodString;
61
- state: z.ZodString;
2
+ export declare const AdminMatchPositionFiltersSelectSchema: z.ZodIntersection<z.ZodRecord<z.ZodUnion<[z.ZodEnum<{
3
+ industries: "industries";
4
+ networks: "networks";
5
+ tags: "tags";
6
+ skills: "skills";
7
+ professionalEvents: "professionalEvents";
8
+ jobFunctions: "jobFunctions";
9
+ titles: "titles";
10
+ schools: "schools";
11
+ companies: "companies";
12
+ }>, z.ZodNever]>, z.ZodArray<z.ZodString>>, z.ZodRecord<z.ZodUnion<[z.ZodLiteral<"locations">, z.ZodNever]>, z.ZodArray<z.ZodObject<{
13
+ name: z.ZodString;
62
14
  lat: z.ZodNumber;
63
15
  lon: z.ZodNumber;
64
16
  radiusInMiles: z.ZodNumber;
65
- }, z.core.$strip>]>>>;
17
+ }, z.core.$strip>>>>;
66
18
  export declare const AdminMatchPositionMessagesSelectSchema: z.ZodObject<{
67
19
  email: z.ZodNullable<z.ZodObject<{
68
20
  subject: z.ZodString;
@@ -4,8 +4,24 @@ exports.AdminMatchPositionMessagesParamsSchema = exports.AdminMatchPositionFilte
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 utils_1 = require("./utils");
8
- exports.AdminMatchPositionFiltersSelectSchema = v4_1.z.partialRecord(v4_1.z.enum(utils_1.filterFields), v4_1.z.array(v4_1.z.string().or(utils_1.LocationSchema)));
7
+ exports.AdminMatchPositionFiltersSelectSchema = v4_1.z
8
+ .partialRecord(v4_1.z.enum([
9
+ 'industries',
10
+ 'jobFunctions',
11
+ 'skills',
12
+ 'tags',
13
+ 'networks',
14
+ 'professionalEvents',
15
+ 'titles',
16
+ 'schools',
17
+ 'companies'
18
+ ]), v4_1.z.array(v4_1.z.string()))
19
+ .and(v4_1.z.partialRecord(v4_1.z.literal('locations'), v4_1.z.array(v4_1.z.object({
20
+ name: v4_1.z.string(),
21
+ lat: v4_1.z.number(),
22
+ lon: v4_1.z.number(),
23
+ radiusInMiles: v4_1.z.number()
24
+ }))));
9
25
  exports.AdminMatchPositionMessagesSelectSchema = v4_1.z.object({
10
26
  email: v4_1.z
11
27
  .object({
@@ -1 +1 @@
1
- {"version":3,"file":"positions.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/positions.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAC1B,6CAAgD;AAChD,qCAAqC;AACrC,mCAAsD;AAEzC,QAAA,qCAAqC,GAAG,MAAC,CAAC,aAAa,CAClE,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,MAAC;SACL,MAAM,CAAC;QACN,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;KACjB,CAAC;SACD,QAAQ,EAAE;IACb,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;IACvE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,qCAAqC,GAChD,8BAA8B,CAAA;AACnB,QAAA,sCAAsC,GACjD,8BAA8B,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { createSelectSchema } from 'drizzle-zod'\nimport { position } from '../../core'\nimport { filterFields, LocationSchema } from './utils'\n\nexport const AdminMatchPositionFiltersSelectSchema = z.partialRecord(\n z.enum(filterFields),\n z.array(z.string().or(LocationSchema))\n)\nexport const AdminMatchPositionMessagesSelectSchema = z.object({\n email: z\n .object({\n subject: z.string(),\n html: z.string(),\n text: z.string()\n })\n .nullable(),\n sms: z.string().nullable()\n})\n\nconst AdminMatchPositionParamsSchema = createSelectSchema(position).pick({\n id: true\n})\nexport const AdminMatchPositionFiltersParamsSchema =\n AdminMatchPositionParamsSchema\nexport const AdminMatchPositionMessagesParamsSchema =\n AdminMatchPositionParamsSchema\n\nexport type AdminMatchPositionFiltersResult = z.infer<\n typeof AdminMatchPositionFiltersSelectSchema\n>\nexport type AdminMatchPositionMessagesResult = z.infer<\n typeof AdminMatchPositionMessagesSelectSchema\n>\n\nexport type AdminMatchPositionFiltersParams = z.infer<\n typeof AdminMatchPositionFiltersParamsSchema\n>\nexport type AdminMatchPositionMessagesParams = z.infer<\n typeof AdminMatchPositionMessagesParamsSchema\n>\n"]}
1
+ {"version":3,"file":"positions.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/positions.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAC1B,6CAAgD;AAChD,qCAAqC;AAExB,QAAA,qCAAqC,GAAG,MAAC;KACnD,aAAa,CACZ,MAAC,CAAC,IAAI,CAAC;IACL,YAAY;IACZ,cAAc;IACd,QAAQ;IACR,MAAM;IACN,UAAU;IACV,oBAAoB;IACpB,QAAQ;IACR,SAAS;IACT,WAAW;CACZ,CAAC,EACF,MAAC,CAAC,KAAK,CAAC,MAAC,CAAC,MAAM,EAAE,CAAC,CACpB;KACA,GAAG,CACF,MAAC,CAAC,aAAa,CACb,MAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EACtB,MAAC,CAAC,KAAK,CACL,MAAC,CAAC,MAAM,CAAC;IACP,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;IAChB,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE;IACf,aAAa,EAAE,MAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CACH,CACF,CACF,CAAA;AAEU,QAAA,sCAAsC,GAAG,MAAC,CAAC,MAAM,CAAC;IAC7D,KAAK,EAAE,MAAC;SACL,MAAM,CAAC;QACN,OAAO,EAAE,MAAC,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;QAChB,IAAI,EAAE,MAAC,CAAC,MAAM,EAAE;KACjB,CAAC;SACD,QAAQ,EAAE;IACb,GAAG,EAAE,MAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC,CAAC,IAAI,CAAC;IACvE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA;AACW,QAAA,qCAAqC,GAChD,8BAA8B,CAAA;AACnB,QAAA,sCAAsC,GACjD,8BAA8B,CAAA","sourcesContent":["import { z } from 'zod/v4'\nimport { createSelectSchema } from 'drizzle-zod'\nimport { position } from '../../core'\n\nexport const AdminMatchPositionFiltersSelectSchema = z\n .partialRecord(\n z.enum([\n 'industries',\n 'jobFunctions',\n 'skills',\n 'tags',\n 'networks',\n 'professionalEvents',\n 'titles',\n 'schools',\n 'companies'\n ]),\n z.array(z.string())\n )\n .and(\n z.partialRecord(\n z.literal('locations'),\n z.array(\n z.object({\n name: z.string(),\n lat: z.number(),\n lon: z.number(),\n radiusInMiles: z.number()\n })\n )\n )\n )\n\nexport const AdminMatchPositionMessagesSelectSchema = z.object({\n email: z\n .object({\n subject: z.string(),\n html: z.string(),\n text: z.string()\n })\n .nullable(),\n sms: z.string().nullable()\n})\n\nconst AdminMatchPositionParamsSchema = createSelectSchema(position).pick({\n id: true\n})\nexport const AdminMatchPositionFiltersParamsSchema =\n AdminMatchPositionParamsSchema\nexport const AdminMatchPositionMessagesParamsSchema =\n AdminMatchPositionParamsSchema\n\nexport type AdminMatchPositionFiltersResult = z.infer<\n typeof AdminMatchPositionFiltersSelectSchema\n>\nexport type AdminMatchPositionMessagesResult = z.infer<\n typeof AdminMatchPositionMessagesSelectSchema\n>\n\nexport type AdminMatchPositionFiltersParams = z.infer<\n typeof AdminMatchPositionFiltersParamsSchema\n>\nexport type AdminMatchPositionMessagesParams = z.infer<\n typeof AdminMatchPositionMessagesParamsSchema\n>\n"]}
@@ -1,5 +1,4 @@
1
1
  import { z } from 'zod/v4';
2
- export declare const filterFields: readonly ["locations", "excludedPersons", "includedPersons", "personEmail", "personFullName", "personLinkedInUrl", "personPhone", "personCity", "personState", "personCountry", "personPostalCode", "personLat", "personLon", "referralId", "referralSource", "positionId", "positionName", "positionCity", "positionState", "positionCountry", "positionEmploymentType", "positionIndustryId", "positionJobFunctionId", "candidacyStage", "referredPersonEmail", "referredPersonFirstName", "referredPersonLastName", "referredPersonFullName", "referredPersonCity", "referredPersonState", "referredPersonCountry", "referredPersonPostalCode", "referredPersonLat", "referredPersonLon", "referredPersonLinkedInUrl", "referralPayout", "personSkills", "personNetworks", "personEvents", "personTags", "personSchools", "personIndustries", "personJobFunctions", "personTitles", "referredPersonSkills", "referredPersonNetworks", "referredPersonEvents", "referredPersonTags", "referredPersonSchools", "referredPersonIndustries", "referredPersonJobFunctions", "referredPersonTitles", "referredIndustries", "referredJobFunctions", "titleEmbedding", "companyEmbedding"];
3
2
  export declare const LocationSchema: z.ZodObject<{
4
3
  city: z.ZodString;
5
4
  state: z.ZodString;
@@ -1,65 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocationSchema = exports.filterFields = void 0;
3
+ exports.LocationSchema = void 0;
4
4
  const v4_1 = require("zod/v4");
5
- exports.filterFields = [
6
- 'locations',
7
- 'excludedPersons',
8
- 'includedPersons',
9
- 'personEmail',
10
- 'personFullName',
11
- 'personLinkedInUrl',
12
- 'personPhone',
13
- 'personCity',
14
- 'personState',
15
- 'personCountry',
16
- 'personPostalCode',
17
- 'personLat',
18
- 'personLon',
19
- 'referralId',
20
- 'referralSource',
21
- 'positionId',
22
- 'positionName',
23
- 'positionCity',
24
- 'positionState',
25
- 'positionCountry',
26
- 'positionEmploymentType',
27
- 'positionIndustryId',
28
- 'positionJobFunctionId',
29
- 'candidacyStage',
30
- 'referredPersonEmail',
31
- 'referredPersonFirstName',
32
- 'referredPersonLastName',
33
- 'referredPersonFullName',
34
- 'referredPersonCity',
35
- 'referredPersonState',
36
- 'referredPersonCountry',
37
- 'referredPersonPostalCode',
38
- 'referredPersonLat',
39
- 'referredPersonLon',
40
- 'referredPersonLinkedInUrl',
41
- 'referralPayout',
42
- 'personSkills',
43
- 'personNetworks',
44
- 'personEvents',
45
- 'personTags',
46
- 'personSchools',
47
- 'personIndustries',
48
- 'personJobFunctions',
49
- 'personTitles',
50
- 'referredPersonSkills',
51
- 'referredPersonNetworks',
52
- 'referredPersonEvents',
53
- 'referredPersonTags',
54
- 'referredPersonSchools',
55
- 'referredPersonIndustries',
56
- 'referredPersonJobFunctions',
57
- 'referredPersonTitles',
58
- 'referredIndustries',
59
- 'referredJobFunctions',
60
- 'titleEmbedding',
61
- 'companyEmbedding'
62
- ];
63
5
  // Need to make these optional
64
6
  exports.LocationSchema = v4_1.z.object({
65
7
  city: v4_1.z.string(),
@@ -1 +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,iBAAiB;IACjB,iBAAiB;IACjB,aAAa;IACb,gBAAgB;IAChB,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,aAAa;IACb,eAAe;IACf,kBAAkB;IAClB,WAAW;IACX,WAAW;IACX,YAAY;IACZ,gBAAgB;IAChB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,eAAe;IACf,iBAAiB;IACjB,wBAAwB;IACxB,oBAAoB;IACpB,uBAAuB;IACvB,gBAAgB;IAChB,qBAAqB;IACrB,yBAAyB;IACzB,wBAAwB;IACxB,wBAAwB;IACxB,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;IACvB,0BAA0B;IAC1B,mBAAmB;IACnB,mBAAmB;IACnB,2BAA2B;IAC3B,gBAAgB;IAChB,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,YAAY;IACZ,eAAe;IACf,kBAAkB;IAClB,oBAAoB;IACpB,cAAc;IACd,sBAAsB;IACtB,wBAAwB;IACxB,sBAAsB;IACtB,oBAAoB;IACpB,uBAAuB;IACvB,0BAA0B;IAC1B,4BAA4B;IAC5B,sBAAsB;IACtB,oBAAoB;IACpB,sBAAsB;IACtB,gBAAgB;IAChB,kBAAkB;CACV,CAAA;AAEV,8BAA8B;AAEjB,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 'excludedPersons',\n 'includedPersons',\n 'personEmail',\n 'personFullName',\n 'personLinkedInUrl',\n 'personPhone',\n 'personCity',\n 'personState',\n 'personCountry',\n 'personPostalCode',\n 'personLat',\n 'personLon',\n 'referralId',\n 'referralSource',\n 'positionId',\n 'positionName',\n 'positionCity',\n 'positionState',\n 'positionCountry',\n 'positionEmploymentType',\n 'positionIndustryId',\n 'positionJobFunctionId',\n 'candidacyStage',\n 'referredPersonEmail',\n 'referredPersonFirstName',\n 'referredPersonLastName',\n 'referredPersonFullName',\n 'referredPersonCity',\n 'referredPersonState',\n 'referredPersonCountry',\n 'referredPersonPostalCode',\n 'referredPersonLat',\n 'referredPersonLon',\n 'referredPersonLinkedInUrl',\n 'referralPayout',\n 'personSkills',\n 'personNetworks',\n 'personEvents',\n 'personTags',\n 'personSchools',\n 'personIndustries',\n 'personJobFunctions',\n 'personTitles',\n 'referredPersonSkills',\n 'referredPersonNetworks',\n 'referredPersonEvents',\n 'referredPersonTags',\n 'referredPersonSchools',\n 'referredPersonIndustries',\n 'referredPersonJobFunctions',\n 'referredPersonTitles',\n 'referredIndustries',\n 'referredJobFunctions',\n 'titleEmbedding',\n 'companyEmbedding'\n] as const\n\n// Need to make these optional\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"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/schema/admin/matches/utils.ts"],"names":[],"mappings":";;;AAAA,+BAA0B;AAE1B,8BAA8B;AAEjB,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\n// Need to make these optional\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"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.243",
3
+ "version": "0.2.244",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",