@the-inkwell/shared 0.2.100 → 0.2.102
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,20 +114,20 @@ 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.ZodObject<{
|
|
117
|
+
client: z.ZodNullable<z.ZodObject<{
|
|
118
118
|
name: z.ZodString;
|
|
119
119
|
}, {
|
|
120
120
|
out: {};
|
|
121
121
|
in: {};
|
|
122
|
-
}
|
|
123
|
-
industry: z.
|
|
122
|
+
}>>;
|
|
123
|
+
industry: z.ZodNullable<z.ZodObject<{
|
|
124
124
|
name: z.ZodString;
|
|
125
125
|
id: z.ZodUUID;
|
|
126
126
|
}, {
|
|
127
127
|
out: {};
|
|
128
128
|
in: {};
|
|
129
129
|
}>>;
|
|
130
|
-
jobFunction: z.
|
|
130
|
+
jobFunction: z.ZodNullable<z.ZodObject<{
|
|
131
131
|
name: z.ZodString;
|
|
132
132
|
id: z.ZodUUID;
|
|
133
133
|
}, {
|
|
@@ -139,7 +139,7 @@ export declare const PublicPositionSelectSchema: z.ZodObject<{
|
|
|
139
139
|
in: {};
|
|
140
140
|
}>;
|
|
141
141
|
export declare const PublicPositionParamsSchema: z.ZodObject<{
|
|
142
|
-
|
|
142
|
+
idNano: z.ZodString;
|
|
143
143
|
}, {
|
|
144
144
|
out: {};
|
|
145
145
|
in: {};
|
|
@@ -25,23 +25,25 @@ exports.PublicPositionSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_
|
|
|
25
25
|
additionalBenefits: true
|
|
26
26
|
})
|
|
27
27
|
.extend({
|
|
28
|
-
client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
28
|
+
client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
29
|
+
.pick({
|
|
29
30
|
name: true
|
|
30
|
-
})
|
|
31
|
+
})
|
|
32
|
+
.nullable(),
|
|
31
33
|
industry: (0, drizzle_zod_1.createSelectSchema)(core_1.industry)
|
|
32
34
|
.pick({
|
|
33
35
|
id: true,
|
|
34
36
|
name: true
|
|
35
37
|
})
|
|
36
|
-
.
|
|
38
|
+
.nullable(),
|
|
37
39
|
jobFunction: (0, drizzle_zod_1.createSelectSchema)(core_1.jobFunction)
|
|
38
40
|
.pick({
|
|
39
41
|
id: true,
|
|
40
42
|
name: true
|
|
41
43
|
})
|
|
42
|
-
.
|
|
44
|
+
.nullable()
|
|
43
45
|
});
|
|
44
46
|
exports.PublicPositionParamsSchema = exports.PublicPositionSelectSchema.pick({
|
|
45
|
-
|
|
47
|
+
idNano: true
|
|
46
48
|
});
|
|
47
49
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,
|
|
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,MAAM,EAAE,IAAI;CACb,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 industry: createSelectSchema(industry)\n .pick({\n id: true,\n name: true\n })\n .nullable(),\n jobFunction: createSelectSchema(jobFunction)\n .pick({\n id: true,\n name: true\n })\n .nullable()\n })\n\nexport const PublicPositionParamsSchema = PublicPositionSelectSchema.pick({\n idNano: 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"]}
|