@the-inkwell/shared 0.2.94 → 0.2.96
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/public/index.d.ts +1 -0
- package/dist/schema/public/index.js +1 -0
- package/dist/schema/public/index.js.map +1 -1
- package/dist/schema/public/positions/index.d.ts +151 -0
- package/dist/schema/public/positions/index.js +52 -0
- package/dist/schema/public/positions/index.js.map +1 -0
- package/package.json +1 -1
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./apply"), exports);
|
|
18
18
|
__exportStar(require("./join"), exports);
|
|
19
19
|
__exportStar(require("./hire"), exports);
|
|
20
|
+
__exportStar(require("./positions"), exports);
|
|
20
21
|
__exportStar(require("./refer"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB","sourcesContent":["export * from './apply'\nexport * from './join'\nexport * from './hire'\nexport * from './refer'\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/schema/public/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB;AACvB,yCAAsB;AACtB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB","sourcesContent":["export * from './apply'\nexport * from './join'\nexport * from './hire'\nexport * from './positions'\nexport * from './refer'\n"]}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import { ListResponse } from '../../../utils';
|
|
3
|
+
export declare const PublicPositionSelectSchema: z.ZodObject<{
|
|
4
|
+
country: z.ZodNullable<z.ZodEnum<{
|
|
5
|
+
UNITED_STATES: "UNITED_STATES";
|
|
6
|
+
CANADA: "CANADA";
|
|
7
|
+
}>>;
|
|
8
|
+
state: z.ZodNullable<z.ZodEnum<{
|
|
9
|
+
AL: "AL";
|
|
10
|
+
AK: "AK";
|
|
11
|
+
AS: "AS";
|
|
12
|
+
AZ: "AZ";
|
|
13
|
+
AR: "AR";
|
|
14
|
+
CA: "CA";
|
|
15
|
+
CO: "CO";
|
|
16
|
+
CT: "CT";
|
|
17
|
+
DE: "DE";
|
|
18
|
+
DC: "DC";
|
|
19
|
+
FM: "FM";
|
|
20
|
+
FL: "FL";
|
|
21
|
+
GA: "GA";
|
|
22
|
+
GU: "GU";
|
|
23
|
+
HI: "HI";
|
|
24
|
+
ID: "ID";
|
|
25
|
+
IL: "IL";
|
|
26
|
+
IN: "IN";
|
|
27
|
+
IA: "IA";
|
|
28
|
+
KS: "KS";
|
|
29
|
+
KY: "KY";
|
|
30
|
+
LA: "LA";
|
|
31
|
+
ME: "ME";
|
|
32
|
+
MH: "MH";
|
|
33
|
+
MD: "MD";
|
|
34
|
+
MA: "MA";
|
|
35
|
+
MI: "MI";
|
|
36
|
+
MN: "MN";
|
|
37
|
+
MS: "MS";
|
|
38
|
+
MO: "MO";
|
|
39
|
+
MT: "MT";
|
|
40
|
+
NE: "NE";
|
|
41
|
+
NV: "NV";
|
|
42
|
+
NH: "NH";
|
|
43
|
+
NJ: "NJ";
|
|
44
|
+
NM: "NM";
|
|
45
|
+
NY: "NY";
|
|
46
|
+
NC: "NC";
|
|
47
|
+
ND: "ND";
|
|
48
|
+
MP: "MP";
|
|
49
|
+
OH: "OH";
|
|
50
|
+
OK: "OK";
|
|
51
|
+
OR: "OR";
|
|
52
|
+
PW: "PW";
|
|
53
|
+
PA: "PA";
|
|
54
|
+
PR: "PR";
|
|
55
|
+
RI: "RI";
|
|
56
|
+
SC: "SC";
|
|
57
|
+
SD: "SD";
|
|
58
|
+
TN: "TN";
|
|
59
|
+
TX: "TX";
|
|
60
|
+
UT: "UT";
|
|
61
|
+
VT: "VT";
|
|
62
|
+
VI: "VI";
|
|
63
|
+
VA: "VA";
|
|
64
|
+
WA: "WA";
|
|
65
|
+
WV: "WV";
|
|
66
|
+
WI: "WI";
|
|
67
|
+
WY: "WY";
|
|
68
|
+
AB: "AB";
|
|
69
|
+
BC: "BC";
|
|
70
|
+
MB: "MB";
|
|
71
|
+
NB: "NB";
|
|
72
|
+
NL: "NL";
|
|
73
|
+
NS: "NS";
|
|
74
|
+
NT: "NT";
|
|
75
|
+
NU: "NU";
|
|
76
|
+
ON: "ON";
|
|
77
|
+
PE: "PE";
|
|
78
|
+
QC: "QC";
|
|
79
|
+
SK: "SK";
|
|
80
|
+
YT: "YT";
|
|
81
|
+
}>>;
|
|
82
|
+
name: z.ZodString;
|
|
83
|
+
id: z.ZodUUID;
|
|
84
|
+
idNano: z.ZodString;
|
|
85
|
+
slug: z.ZodString;
|
|
86
|
+
jobFunctionId: z.ZodNullable<z.ZodUUID>;
|
|
87
|
+
industryId: z.ZodNullable<z.ZodUUID>;
|
|
88
|
+
jobDescription: z.ZodNullable<z.ZodType<{
|
|
89
|
+
intro?: string;
|
|
90
|
+
role?: string;
|
|
91
|
+
roleResponsibilities?: string[];
|
|
92
|
+
candidate?: string;
|
|
93
|
+
candidateQualifications?: string[];
|
|
94
|
+
}, {
|
|
95
|
+
intro?: string;
|
|
96
|
+
role?: string;
|
|
97
|
+
roleResponsibilities?: string[];
|
|
98
|
+
candidate?: string;
|
|
99
|
+
candidateQualifications?: string[];
|
|
100
|
+
}>>;
|
|
101
|
+
teaser: z.ZodNullable<z.ZodString>;
|
|
102
|
+
city: z.ZodNullable<z.ZodString>;
|
|
103
|
+
employmentType: z.ZodNullable<z.ZodEnum<{
|
|
104
|
+
FULL_TIME: "FULL_TIME";
|
|
105
|
+
PART_TIME: "PART_TIME";
|
|
106
|
+
}>>;
|
|
107
|
+
employmentLocationType: z.ZodNullable<z.ZodEnum<{
|
|
108
|
+
REMOTE: "REMOTE";
|
|
109
|
+
ONSITE: "ONSITE";
|
|
110
|
+
HYBRID: "HYBRID";
|
|
111
|
+
}>>;
|
|
112
|
+
salaryMin: z.ZodNullable<z.ZodInt>;
|
|
113
|
+
salaryMax: z.ZodNullable<z.ZodInt>;
|
|
114
|
+
referralPlacementReward: z.ZodInt;
|
|
115
|
+
referralInterviewReward: z.ZodNullable<z.ZodInt>;
|
|
116
|
+
additionalBenefits: z.ZodNullable<z.ZodString>;
|
|
117
|
+
client: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
}, {
|
|
120
|
+
out: {};
|
|
121
|
+
in: {};
|
|
122
|
+
}>>>;
|
|
123
|
+
industry: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
id: z.ZodUUID;
|
|
126
|
+
}, {
|
|
127
|
+
out: {};
|
|
128
|
+
in: {};
|
|
129
|
+
}>>>;
|
|
130
|
+
jobFunction: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
id: z.ZodUUID;
|
|
133
|
+
}, {
|
|
134
|
+
out: {};
|
|
135
|
+
in: {};
|
|
136
|
+
}>>>;
|
|
137
|
+
}, {
|
|
138
|
+
out: {};
|
|
139
|
+
in: {};
|
|
140
|
+
}>;
|
|
141
|
+
export declare const PublicPositionParamsSchema: z.ZodObject<{
|
|
142
|
+
id: z.ZodUUID;
|
|
143
|
+
}, {
|
|
144
|
+
out: {};
|
|
145
|
+
in: {};
|
|
146
|
+
}>;
|
|
147
|
+
type PublicPosition = z.infer<typeof PublicPositionSelectSchema>;
|
|
148
|
+
export type PublicPositionParams = z.infer<typeof PublicPositionParamsSchema>;
|
|
149
|
+
export type PublicPositionResult = PublicPosition;
|
|
150
|
+
export type PublicPositionListResult = ListResponse<z.infer<typeof PublicPositionSelectSchema>>;
|
|
151
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicPositionParamsSchema = exports.PublicPositionSelectSchema = void 0;
|
|
4
|
+
const drizzle_zod_1 = require("drizzle-zod");
|
|
5
|
+
const core_1 = require("../../core");
|
|
6
|
+
exports.PublicPositionSelectSchema = (0, drizzle_zod_1.createSelectSchema)(core_1.position)
|
|
7
|
+
.pick({
|
|
8
|
+
id: true,
|
|
9
|
+
idNano: true,
|
|
10
|
+
slug: true,
|
|
11
|
+
name: true,
|
|
12
|
+
jobFunctionId: true,
|
|
13
|
+
industryId: true,
|
|
14
|
+
jobDescription: true,
|
|
15
|
+
teaser: true,
|
|
16
|
+
city: true,
|
|
17
|
+
state: true,
|
|
18
|
+
country: true,
|
|
19
|
+
employmentType: true,
|
|
20
|
+
employmentLocationType: true,
|
|
21
|
+
salaryMin: true,
|
|
22
|
+
salaryMax: true,
|
|
23
|
+
referralPlacementReward: true,
|
|
24
|
+
referralInterviewReward: true,
|
|
25
|
+
additionalBenefits: true
|
|
26
|
+
})
|
|
27
|
+
.extend({
|
|
28
|
+
client: (0, drizzle_zod_1.createSelectSchema)(core_1.client)
|
|
29
|
+
.pick({
|
|
30
|
+
name: true
|
|
31
|
+
})
|
|
32
|
+
.nullable()
|
|
33
|
+
.optional(),
|
|
34
|
+
industry: (0, drizzle_zod_1.createSelectSchema)(core_1.industry)
|
|
35
|
+
.pick({
|
|
36
|
+
id: true,
|
|
37
|
+
name: true
|
|
38
|
+
})
|
|
39
|
+
.nullable()
|
|
40
|
+
.optional(),
|
|
41
|
+
jobFunction: (0, drizzle_zod_1.createSelectSchema)(core_1.jobFunction)
|
|
42
|
+
.pick({
|
|
43
|
+
id: true,
|
|
44
|
+
name: true
|
|
45
|
+
})
|
|
46
|
+
.nullable()
|
|
47
|
+
.optional()
|
|
48
|
+
});
|
|
49
|
+
exports.PublicPositionParamsSchema = exports.PublicPositionSelectSchema.pick({
|
|
50
|
+
id: true
|
|
51
|
+
});
|
|
52
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +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"]}
|