@the-inkwell/shared 0.2.97 → 0.2.98

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.
@@ -114,26 +114,26 @@ export declare const PublicPositionSelectSchema: z.ZodObject<{
114
114
  referralPlacementReward: z.ZodInt;
115
115
  referralInterviewReward: z.ZodNullable<z.ZodInt>;
116
116
  additionalBenefits: z.ZodNullable<z.ZodString>;
117
- client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
117
+ client: z.ZodOptional<z.ZodObject<{
118
118
  name: z.ZodString;
119
119
  }, {
120
120
  out: {};
121
121
  in: {};
122
- }>>>;
123
- industry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
122
+ }>>;
123
+ industry: z.ZodOptional<z.ZodObject<{
124
124
  name: z.ZodString;
125
125
  id: z.ZodUUID;
126
126
  }, {
127
127
  out: {};
128
128
  in: {};
129
- }>>>;
130
- jobFunction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
129
+ }>>;
130
+ jobFunction: z.ZodOptional<z.ZodObject<{
131
131
  name: z.ZodString;
132
132
  id: z.ZodUUID;
133
133
  }, {
134
134
  out: {};
135
135
  in: {};
136
- }>>>;
136
+ }>>;
137
137
  }, {
138
138
  out: {};
139
139
  in: {};
@@ -29,21 +29,18 @@ exports.PublicPositionSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_
29
29
  .pick({
30
30
  name: true
31
31
  })
32
- .nullable()
33
32
  .optional(),
34
33
  industry: (0, drizzle_zod_1.createSelectSchema)(core_1.industry)
35
34
  .pick({
36
35
  id: true,
37
36
  name: true
38
37
  })
39
- .nullable()
40
38
  .optional(),
41
39
  jobFunction: (0, drizzle_zod_1.createSelectSchema)(core_1.jobFunction)
42
40
  .pick({
43
41
  id: true,
44
42
  name: true
45
43
  })
46
- .nullable()
47
44
  .optional()
48
45
  });
49
46
  exports.PublicPositionParamsSchema = exports.PublicPositionSelectSchema.pick({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/positions/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAgF;AAInE,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC;KACnE,IAAI,CAAC;IACJ,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;IACpB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,cAAc,EAAE,IAAI;IACpB,sBAAsB,EAAE,IAAI;IAC5B,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,uBAAuB,EAAE,IAAI;IAC7B,uBAAuB,EAAE,IAAI;IAC7B,kBAAkB,EAAE,IAAI;CACzB,CAAC;KACD,MAAM,CAAC;IACN,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;SAC/B,IAAI,CAAC;QACJ,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,QAAQ,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC;SACnC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;IACb,WAAW,EAAE,IAAA,gCAAkB,EAAC,kBAAW,CAAC;SACzC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAA;AAES,QAAA,0BAA0B,GAAG,kCAA0B,CAAC,IAAI,CAAC;IACxE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA","sourcesContent":["import { createSelectSchema } from 'drizzle-zod'\nimport { client, industry, jobFunction, position, skill, tag } from '../../core'\nimport { z } from 'zod/v4'\nimport { ListResponse } from '../../../utils'\n\nexport const PublicPositionSelectSchema = createSelectSchema(position)\n .pick({\n id: true,\n idNano: true,\n slug: true,\n name: true,\n jobFunctionId: true,\n industryId: true,\n jobDescription: true,\n teaser: true,\n city: true,\n state: true,\n country: true,\n employmentType: true,\n employmentLocationType: true,\n salaryMin: true,\n salaryMax: true,\n referralPlacementReward: true,\n referralInterviewReward: true,\n additionalBenefits: true\n })\n .extend({\n client: createSelectSchema(client)\n .pick({\n name: true\n })\n .nullable()\n .optional(),\n industry: createSelectSchema(industry)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional(),\n jobFunction: createSelectSchema(jobFunction)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n .optional()\n })\n\nexport const PublicPositionParamsSchema = PublicPositionSelectSchema.pick({\n id: true\n})\n\n//// types\n\ntype PublicPosition = z.infer<typeof PublicPositionSelectSchema>\n\n// detail\nexport type PublicPositionParams = z.infer<typeof PublicPositionParamsSchema>\nexport type PublicPositionResult = PublicPosition\n\n// list\nexport type PublicPositionListResult = ListResponse<\n z.infer<typeof PublicPositionSelectSchema>\n>\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/public/positions/index.ts"],"names":[],"mappings":";;;AAAA,6CAAgD;AAChD,qCAAgF;AAInE,QAAA,0BAA0B,GAAG,IAAA,gCAAkB,EAAC,eAAQ,CAAC;KACnE,IAAI,CAAC;IACJ,EAAE,EAAE,IAAI;IACR,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,IAAI,EAAE,IAAI;IACV,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,IAAI;IAChB,cAAc,EAAE,IAAI;IACpB,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,IAAI;IACb,cAAc,EAAE,IAAI;IACpB,sBAAsB,EAAE,IAAI;IAC5B,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,uBAAuB,EAAE,IAAI;IAC7B,uBAAuB,EAAE,IAAI;IAC7B,kBAAkB,EAAE,IAAI;CACzB,CAAC;KACD,MAAM,CAAC;IACN,MAAM,EAAE,IAAA,gCAAkB,EAAC,aAAM,CAAC;SAC/B,IAAI,CAAC;QACJ,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;IACb,QAAQ,EAAE,IAAA,gCAAkB,EAAC,eAAQ,CAAC;SACnC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;IACb,WAAW,EAAE,IAAA,gCAAkB,EAAC,kBAAW,CAAC;SACzC,IAAI,CAAC;QACJ,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;KACX,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA;AAES,QAAA,0BAA0B,GAAG,kCAA0B,CAAC,IAAI,CAAC;IACxE,EAAE,EAAE,IAAI;CACT,CAAC,CAAA","sourcesContent":["import { createSelectSchema } from 'drizzle-zod'\nimport { client, industry, jobFunction, position, skill, tag } from '../../core'\nimport { z } from 'zod/v4'\nimport { ListResponse } from '../../../utils'\n\nexport const PublicPositionSelectSchema = createSelectSchema(position)\n .pick({\n id: true,\n idNano: true,\n slug: true,\n name: true,\n jobFunctionId: true,\n industryId: true,\n jobDescription: true,\n teaser: true,\n city: true,\n state: true,\n country: true,\n employmentType: true,\n employmentLocationType: true,\n salaryMin: true,\n salaryMax: true,\n referralPlacementReward: true,\n referralInterviewReward: true,\n additionalBenefits: true\n })\n .extend({\n client: createSelectSchema(client)\n .pick({\n name: true\n })\n .optional(),\n industry: createSelectSchema(industry)\n .pick({\n id: true,\n name: true\n })\n .optional(),\n jobFunction: createSelectSchema(jobFunction)\n .pick({\n id: true,\n name: true\n })\n .optional()\n })\n\nexport const PublicPositionParamsSchema = PublicPositionSelectSchema.pick({\n id: true\n})\n\n//// types\n\ntype PublicPosition = z.infer<typeof PublicPositionSelectSchema>\n\n// detail\nexport type PublicPositionParams = z.infer<typeof PublicPositionParamsSchema>\nexport type PublicPositionResult = PublicPosition\n\n// list\nexport type PublicPositionListResult = ListResponse<\n z.infer<typeof PublicPositionSelectSchema>\n>\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@the-inkwell/shared",
3
- "version": "0.2.97",
3
+ "version": "0.2.98",
4
4
  "description": "Shared code for Inkwell",
5
5
  "license": "ISC",
6
6
  "author": "Inkwell (Rob Yedlin & Saimon Alam)",