@zyacreatives/shared 2.5.67 → 2.5.69
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/schemas/feed.d.ts +8 -0
- package/dist/schemas/feed.js +8 -1
- package/dist/schemas/job-application.d.ts +56 -4
- package/dist/schemas/job-application.js +5 -2
- package/dist/schemas/job.d.ts +411 -0
- package/dist/schemas/job.js +25 -1
- package/dist/schemas/project.d.ts +2 -2
- package/dist/schemas/project.js +2 -2
- package/package.json +1 -1
- package/src/schemas/feed.ts +11 -0
- package/src/schemas/job-application.ts +9 -1
- package/src/schemas/job.ts +44 -0
- package/src/schemas/project.ts +2 -2
package/dist/schemas/feed.d.ts
CHANGED
|
@@ -62,4 +62,12 @@ export declare const TrendingUsersOutputSchema: z.ZodObject<{
|
|
|
62
62
|
}, z.core.$strip>>;
|
|
63
63
|
}, z.core.$strip>;
|
|
64
64
|
export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;
|
|
65
|
+
export declare const FeedTagsInputSchema: z.ZodObject<{
|
|
66
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
67
|
+
}, z.core.$strip>;
|
|
68
|
+
export declare const FeedTagsSchema: z.ZodObject<{
|
|
69
|
+
userId: z.ZodCUID2;
|
|
70
|
+
tags: z.ZodArray<z.ZodString>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
|
|
65
73
|
export {};
|
package/dist/schemas/feed.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
|
|
3
|
+
exports.FeedTagsSchema = exports.FeedTagsInputSchema = exports.TrendingUsersOutputSchema = exports.FeedTagsOutputSchema = exports.UpdateFeedTagsInputSchema = exports.TrendingUserSchema = exports.FeedTagsEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
/**
|
|
6
6
|
* --------------------------------
|
|
@@ -49,3 +49,10 @@ exports.FeedTagsOutputSchema = exports.FeedTagsEntitySchema;
|
|
|
49
49
|
exports.TrendingUsersOutputSchema = zod_openapi_1.z.object({
|
|
50
50
|
creators: zod_openapi_1.z.array(exports.TrendingUserSchema),
|
|
51
51
|
});
|
|
52
|
+
exports.FeedTagsInputSchema = zod_openapi_1.z.object({
|
|
53
|
+
tags: zod_openapi_1.z.array(zod_openapi_1.z.string().min(1)).default([]),
|
|
54
|
+
});
|
|
55
|
+
exports.FeedTagsSchema = zod_openapi_1.z.object({
|
|
56
|
+
userId: zod_openapi_1.z.cuid2(),
|
|
57
|
+
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
58
|
+
});
|
|
@@ -36,7 +36,7 @@ declare const JobApplicationShape: z.ZodObject<{
|
|
|
36
36
|
projectName: z.ZodString;
|
|
37
37
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
38
38
|
projectId: z.ZodCUID2;
|
|
39
|
-
tags: z.
|
|
39
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
40
40
|
}, z.core.$strip>>>;
|
|
41
41
|
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
42
|
url: z.ZodURL;
|
|
@@ -91,7 +91,7 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
|
|
|
91
91
|
projectName: z.ZodString;
|
|
92
92
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
93
93
|
projectId: z.ZodCUID2;
|
|
94
|
-
tags: z.
|
|
94
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
95
95
|
}, z.core.$strip>>>;
|
|
96
96
|
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
97
97
|
url: z.ZodURL;
|
|
@@ -409,7 +409,7 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
|
|
|
409
409
|
projectName: z.ZodString;
|
|
410
410
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
411
411
|
projectId: z.ZodCUID2;
|
|
412
|
-
tags: z.
|
|
412
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
413
413
|
}, z.core.$strip>>>;
|
|
414
414
|
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
415
415
|
url: z.ZodURL;
|
|
@@ -459,7 +459,7 @@ export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
|
|
|
459
459
|
projectName: z.ZodString;
|
|
460
460
|
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
461
461
|
projectId: z.ZodCUID2;
|
|
462
|
-
tags: z.
|
|
462
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
463
463
|
}, z.core.$strip>>>>;
|
|
464
464
|
linkUrls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
465
465
|
url: z.ZodURL;
|
|
@@ -741,4 +741,56 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
|
|
|
741
741
|
hasPrevPage: z.ZodBoolean;
|
|
742
742
|
}, z.core.$strip>;
|
|
743
743
|
export type GetTrackedJobApplicationsOutput = z.infer<typeof GetTrackedJobApplicationsOutputSchema>;
|
|
744
|
+
export declare const BaseJobApplicationEntitySchema: z.ZodObject<{
|
|
745
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
746
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
747
|
+
id: z.ZodCUID2;
|
|
748
|
+
createdAt: z.ZodISODateTime;
|
|
749
|
+
updatedAt: z.ZodISODateTime;
|
|
750
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
751
|
+
"0-1 year": "0-1 year";
|
|
752
|
+
"1-3 years": "1-3 years";
|
|
753
|
+
"3-5 years": "3-5 years";
|
|
754
|
+
"5+ years": "5+ years";
|
|
755
|
+
}>>;
|
|
756
|
+
jobId: z.ZodCUID2;
|
|
757
|
+
emailAddress: z.ZodOptional<z.ZodEmail>;
|
|
758
|
+
phoneNumber: z.ZodNullable<z.ZodString>;
|
|
759
|
+
currentRole: z.ZodString;
|
|
760
|
+
resumeUrl: z.ZodURL;
|
|
761
|
+
availability: z.ZodOptional<z.ZodEnum<{
|
|
762
|
+
"Immediate (Within 1 week)": "Immediate (Within 1 week)";
|
|
763
|
+
"2 weeks notice": "2 weeks notice";
|
|
764
|
+
"1 month notice": "1 month notice";
|
|
765
|
+
Flexible: "Flexible";
|
|
766
|
+
}>>;
|
|
767
|
+
coverLetter: z.ZodNullable<z.ZodString>;
|
|
768
|
+
receiveEmailUpdates: z.ZodBoolean;
|
|
769
|
+
wagesAmount: z.ZodNullable<z.ZodNumber>;
|
|
770
|
+
workSampleUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
771
|
+
url: z.ZodURL;
|
|
772
|
+
name: z.ZodOptional<z.ZodString>;
|
|
773
|
+
mimeType: z.ZodOptional<z.ZodString>;
|
|
774
|
+
}, z.core.$strip>>>;
|
|
775
|
+
zyaProjects: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
776
|
+
projectName: z.ZodString;
|
|
777
|
+
projectImgUrl: z.ZodOptional<z.ZodURL>;
|
|
778
|
+
projectId: z.ZodCUID2;
|
|
779
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
780
|
+
}, z.core.$strip>>>;
|
|
781
|
+
linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
782
|
+
url: z.ZodURL;
|
|
783
|
+
isPortfolioUrl: z.ZodOptional<z.ZodBoolean>;
|
|
784
|
+
}, z.core.$strip>>>;
|
|
785
|
+
applicationStatus: z.ZodEnum<{
|
|
786
|
+
"Application Sent": "Application Sent";
|
|
787
|
+
Opened: "Opened";
|
|
788
|
+
Rejected: "Rejected";
|
|
789
|
+
Declined: "Declined";
|
|
790
|
+
Offered: "Offered";
|
|
791
|
+
Hired: "Hired";
|
|
792
|
+
}>;
|
|
793
|
+
applicantId: z.ZodCUID2;
|
|
794
|
+
}, z.core.$strip>;
|
|
795
|
+
export type BaseJobApplicationEntity = z.infer<typeof BaseJobApplicationEntitySchema>;
|
|
744
796
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetTrackedJobApplicationsOutputSchema = exports.GetTrackedJobApplicationsInputSchema = exports.UpdateJobApplicationInputSchema = exports.CreateJobApplicationInputSchema = exports.TrackedJobApplicationEntitySchema = exports.MinimalJobApplicationEntitySchema = exports.JobApplicationEntitySchema = void 0;
|
|
3
|
+
exports.BaseJobApplicationEntitySchema = exports.GetTrackedJobApplicationsOutputSchema = exports.GetTrackedJobApplicationsInputSchema = exports.UpdateJobApplicationInputSchema = exports.CreateJobApplicationInputSchema = exports.TrackedJobApplicationEntitySchema = exports.MinimalJobApplicationEntitySchema = exports.JobApplicationEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const job_1 = require("./job");
|
|
@@ -43,7 +43,7 @@ const JobApplicationShape = zod_openapi_1.z.object({
|
|
|
43
43
|
projectName: zod_openapi_1.z.string(),
|
|
44
44
|
projectImgUrl: zod_openapi_1.z.url().optional(),
|
|
45
45
|
projectId: zod_openapi_1.z.cuid2(),
|
|
46
|
-
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).
|
|
46
|
+
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).default([]),
|
|
47
47
|
}))
|
|
48
48
|
.optional(),
|
|
49
49
|
linkUrls: zod_openapi_1.z
|
|
@@ -122,3 +122,6 @@ exports.GetTrackedJobApplicationsOutputSchema = zod_openapi_1.z.object({
|
|
|
122
122
|
hasNextPage: zod_openapi_1.z.boolean(),
|
|
123
123
|
hasPrevPage: zod_openapi_1.z.boolean(),
|
|
124
124
|
});
|
|
125
|
+
exports.BaseJobApplicationEntitySchema = exports.JobApplicationEntitySchema.omit({
|
|
126
|
+
user: true,
|
|
127
|
+
});
|
package/dist/schemas/job.d.ts
CHANGED
|
@@ -1158,3 +1158,414 @@ export declare const JobSearchDocumentSchema: z.ZodObject<{
|
|
|
1158
1158
|
updatedAt: z.ZodString;
|
|
1159
1159
|
}, z.core.$strip>;
|
|
1160
1160
|
export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
|
|
1161
|
+
export declare const JobIdSchema: z.ZodObject<{
|
|
1162
|
+
jobId: z.ZodCUID2;
|
|
1163
|
+
}, z.core.$strip>;
|
|
1164
|
+
export type JobId = z.infer<typeof JobIdSchema>;
|
|
1165
|
+
export declare const BaseJobEntitySchema: z.ZodObject<{
|
|
1166
|
+
status: z.ZodEnum<{
|
|
1167
|
+
ACTIVE: "ACTIVE";
|
|
1168
|
+
DELETED: "DELETED";
|
|
1169
|
+
DRAFT: "DRAFT";
|
|
1170
|
+
ARCHIVED: "ARCHIVED";
|
|
1171
|
+
}>;
|
|
1172
|
+
brandName: z.ZodString;
|
|
1173
|
+
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1174
|
+
isApplied: z.ZodDefault<z.ZodBoolean>;
|
|
1175
|
+
isBookmarked: z.ZodBoolean;
|
|
1176
|
+
createdAt: z.ZodISODateTime;
|
|
1177
|
+
updatedAt: z.ZodISODateTime;
|
|
1178
|
+
version: z.ZodInt;
|
|
1179
|
+
title: z.ZodString;
|
|
1180
|
+
brandId: z.ZodCUID2;
|
|
1181
|
+
jobType: z.ZodEnum<{
|
|
1182
|
+
GIG: "GIG";
|
|
1183
|
+
ROLE: "ROLE";
|
|
1184
|
+
}>;
|
|
1185
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1186
|
+
"Full Time": "Full Time";
|
|
1187
|
+
"Part Time": "Part Time";
|
|
1188
|
+
Freelance: "Freelance";
|
|
1189
|
+
Internship: "Internship";
|
|
1190
|
+
}>>;
|
|
1191
|
+
workMode: z.ZodEnum<{
|
|
1192
|
+
Remote: "Remote";
|
|
1193
|
+
Hybrid: "Hybrid";
|
|
1194
|
+
"On Site": "On Site";
|
|
1195
|
+
}>;
|
|
1196
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1197
|
+
"One Time": "One Time";
|
|
1198
|
+
Recurring: "Recurring";
|
|
1199
|
+
}>>;
|
|
1200
|
+
location: z.ZodEnum<{
|
|
1201
|
+
Africa: "Africa";
|
|
1202
|
+
Asia: "Asia";
|
|
1203
|
+
Europe: "Europe";
|
|
1204
|
+
"North America": "North America";
|
|
1205
|
+
"South America": "South America";
|
|
1206
|
+
"Middle East": "Middle East";
|
|
1207
|
+
Oceania: "Oceania";
|
|
1208
|
+
Global: "Global";
|
|
1209
|
+
Other: "Other";
|
|
1210
|
+
Remote: "Remote";
|
|
1211
|
+
EMEA: "EMEA";
|
|
1212
|
+
"Asia Pacific": "Asia Pacific";
|
|
1213
|
+
}>;
|
|
1214
|
+
jobSections: z.ZodArray<z.ZodEnum<{
|
|
1215
|
+
[x: string]: string;
|
|
1216
|
+
}>>;
|
|
1217
|
+
id: z.ZodCUID2;
|
|
1218
|
+
}, z.core.$strip>;
|
|
1219
|
+
export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
|
|
1220
|
+
export declare const CreateGigJobInputSchema: z.ZodObject<{
|
|
1221
|
+
overview: z.ZodString;
|
|
1222
|
+
deliverables: z.ZodString;
|
|
1223
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1224
|
+
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
1225
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1226
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1227
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1228
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1229
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1230
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1231
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1232
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1233
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1234
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1235
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1236
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1237
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1238
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1239
|
+
}>>;
|
|
1240
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
1241
|
+
Hourly: "Hourly";
|
|
1242
|
+
Daily: "Daily";
|
|
1243
|
+
Weekly: "Weekly";
|
|
1244
|
+
Monthly: "Monthly";
|
|
1245
|
+
"Project Based": "Project Based";
|
|
1246
|
+
}>>;
|
|
1247
|
+
id: z.ZodCUID2;
|
|
1248
|
+
}, z.core.$strip>;
|
|
1249
|
+
export type CreateGigJobInput = z.infer<typeof CreateGigJobInputSchema>;
|
|
1250
|
+
export declare const UpdateGigJobInputSchema: z.ZodObject<{
|
|
1251
|
+
overview: z.ZodOptional<z.ZodString>;
|
|
1252
|
+
deliverables: z.ZodOptional<z.ZodString>;
|
|
1253
|
+
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1254
|
+
aboutCompany: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1255
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1256
|
+
wagesMin: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1257
|
+
wagesMax: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1258
|
+
wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1259
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1260
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1261
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1262
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1263
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1264
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1265
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1266
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1267
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1268
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1269
|
+
}>>>;
|
|
1270
|
+
wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1271
|
+
Hourly: "Hourly";
|
|
1272
|
+
Daily: "Daily";
|
|
1273
|
+
Weekly: "Weekly";
|
|
1274
|
+
Monthly: "Monthly";
|
|
1275
|
+
"Project Based": "Project Based";
|
|
1276
|
+
}>>>;
|
|
1277
|
+
id: z.ZodCUID2;
|
|
1278
|
+
version: z.ZodDefault<z.ZodInt>;
|
|
1279
|
+
}, z.core.$strip>;
|
|
1280
|
+
export type UpdateGigJobInput = z.infer<typeof UpdateGigJobInputSchema>;
|
|
1281
|
+
export declare const CreateRoleJobInputSchema: z.ZodObject<{
|
|
1282
|
+
experienceLevel: z.ZodEnum<{
|
|
1283
|
+
"0-1 year": "0-1 year";
|
|
1284
|
+
"1-3 years": "1-3 years";
|
|
1285
|
+
"3-5 years": "3-5 years";
|
|
1286
|
+
"5+ years": "5+ years";
|
|
1287
|
+
}>;
|
|
1288
|
+
overview: z.ZodString;
|
|
1289
|
+
keyResponsibilities: z.ZodString;
|
|
1290
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1291
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1292
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
1293
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1294
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1295
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1296
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1297
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1298
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1299
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1300
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1301
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1302
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1303
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1304
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1305
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1306
|
+
}>>;
|
|
1307
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
1308
|
+
Hourly: "Hourly";
|
|
1309
|
+
Daily: "Daily";
|
|
1310
|
+
Weekly: "Weekly";
|
|
1311
|
+
Monthly: "Monthly";
|
|
1312
|
+
"Project Based": "Project Based";
|
|
1313
|
+
}>>;
|
|
1314
|
+
id: z.ZodCUID2;
|
|
1315
|
+
}, z.core.$strip>;
|
|
1316
|
+
export type CreateRoleJobInput = z.infer<typeof CreateRoleJobInputSchema>;
|
|
1317
|
+
export declare const UpdateRoleJobInputSchema: z.ZodObject<{
|
|
1318
|
+
experienceLevel: z.ZodOptional<z.ZodEnum<{
|
|
1319
|
+
"0-1 year": "0-1 year";
|
|
1320
|
+
"1-3 years": "1-3 years";
|
|
1321
|
+
"3-5 years": "3-5 years";
|
|
1322
|
+
"5+ years": "5+ years";
|
|
1323
|
+
}>>;
|
|
1324
|
+
overview: z.ZodOptional<z.ZodString>;
|
|
1325
|
+
keyResponsibilities: z.ZodOptional<z.ZodString>;
|
|
1326
|
+
requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1327
|
+
employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1328
|
+
companyBenefits: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1329
|
+
wagesMin: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1330
|
+
wagesMax: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
1331
|
+
wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1332
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1333
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1334
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1335
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1336
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1337
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1338
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1339
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1340
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1341
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1342
|
+
}>>>;
|
|
1343
|
+
wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
1344
|
+
Hourly: "Hourly";
|
|
1345
|
+
Daily: "Daily";
|
|
1346
|
+
Weekly: "Weekly";
|
|
1347
|
+
Monthly: "Monthly";
|
|
1348
|
+
"Project Based": "Project Based";
|
|
1349
|
+
}>>>;
|
|
1350
|
+
id: z.ZodCUID2;
|
|
1351
|
+
version: z.ZodDefault<z.ZodInt>;
|
|
1352
|
+
}, z.core.$strip>;
|
|
1353
|
+
export type UpdateRoleJobInput = z.infer<typeof UpdateRoleJobInputSchema>;
|
|
1354
|
+
export declare const GetCreatedJobsOutputSchema: z.ZodObject<{
|
|
1355
|
+
jobs: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
1356
|
+
status: z.ZodEnum<{
|
|
1357
|
+
ACTIVE: "ACTIVE";
|
|
1358
|
+
DELETED: "DELETED";
|
|
1359
|
+
DRAFT: "DRAFT";
|
|
1360
|
+
ARCHIVED: "ARCHIVED";
|
|
1361
|
+
}>;
|
|
1362
|
+
brandName: z.ZodString;
|
|
1363
|
+
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1364
|
+
isApplied: z.ZodDefault<z.ZodBoolean>;
|
|
1365
|
+
isBookmarked: z.ZodBoolean;
|
|
1366
|
+
createdAt: z.ZodISODateTime;
|
|
1367
|
+
updatedAt: z.ZodISODateTime;
|
|
1368
|
+
version: z.ZodInt;
|
|
1369
|
+
title: z.ZodString;
|
|
1370
|
+
brandId: z.ZodCUID2;
|
|
1371
|
+
workMode: z.ZodEnum<{
|
|
1372
|
+
Remote: "Remote";
|
|
1373
|
+
Hybrid: "Hybrid";
|
|
1374
|
+
"On Site": "On Site";
|
|
1375
|
+
}>;
|
|
1376
|
+
location: z.ZodEnum<{
|
|
1377
|
+
Africa: "Africa";
|
|
1378
|
+
Asia: "Asia";
|
|
1379
|
+
Europe: "Europe";
|
|
1380
|
+
"North America": "North America";
|
|
1381
|
+
"South America": "South America";
|
|
1382
|
+
"Middle East": "Middle East";
|
|
1383
|
+
Oceania: "Oceania";
|
|
1384
|
+
Global: "Global";
|
|
1385
|
+
Other: "Other";
|
|
1386
|
+
Remote: "Remote";
|
|
1387
|
+
EMEA: "EMEA";
|
|
1388
|
+
"Asia Pacific": "Asia Pacific";
|
|
1389
|
+
}>;
|
|
1390
|
+
jobSections: z.ZodArray<z.ZodEnum<{
|
|
1391
|
+
[x: string]: string;
|
|
1392
|
+
}>>;
|
|
1393
|
+
id: z.ZodCUID2;
|
|
1394
|
+
overview: z.ZodString;
|
|
1395
|
+
deliverables: z.ZodString;
|
|
1396
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1397
|
+
aboutCompany: z.ZodOptional<z.ZodString>;
|
|
1398
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1399
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1400
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1401
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1402
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1403
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1404
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1405
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1406
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1407
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1408
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1409
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1410
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1411
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1412
|
+
}>>;
|
|
1413
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
1414
|
+
Hourly: "Hourly";
|
|
1415
|
+
Daily: "Daily";
|
|
1416
|
+
Weekly: "Weekly";
|
|
1417
|
+
Monthly: "Monthly";
|
|
1418
|
+
"Project Based": "Project Based";
|
|
1419
|
+
}>>;
|
|
1420
|
+
jobType: z.ZodLiteral<"GIG">;
|
|
1421
|
+
gigType: z.ZodEnum<{
|
|
1422
|
+
"One Time": "One Time";
|
|
1423
|
+
Recurring: "Recurring";
|
|
1424
|
+
}>;
|
|
1425
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1426
|
+
"Full Time": "Full Time";
|
|
1427
|
+
"Part Time": "Part Time";
|
|
1428
|
+
Freelance: "Freelance";
|
|
1429
|
+
Internship: "Internship";
|
|
1430
|
+
}>>;
|
|
1431
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1432
|
+
status: z.ZodEnum<{
|
|
1433
|
+
ACTIVE: "ACTIVE";
|
|
1434
|
+
DELETED: "DELETED";
|
|
1435
|
+
DRAFT: "DRAFT";
|
|
1436
|
+
ARCHIVED: "ARCHIVED";
|
|
1437
|
+
}>;
|
|
1438
|
+
brandName: z.ZodString;
|
|
1439
|
+
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1440
|
+
isApplied: z.ZodDefault<z.ZodBoolean>;
|
|
1441
|
+
isBookmarked: z.ZodBoolean;
|
|
1442
|
+
createdAt: z.ZodISODateTime;
|
|
1443
|
+
updatedAt: z.ZodISODateTime;
|
|
1444
|
+
version: z.ZodInt;
|
|
1445
|
+
title: z.ZodString;
|
|
1446
|
+
brandId: z.ZodCUID2;
|
|
1447
|
+
workMode: z.ZodEnum<{
|
|
1448
|
+
Remote: "Remote";
|
|
1449
|
+
Hybrid: "Hybrid";
|
|
1450
|
+
"On Site": "On Site";
|
|
1451
|
+
}>;
|
|
1452
|
+
location: z.ZodEnum<{
|
|
1453
|
+
Africa: "Africa";
|
|
1454
|
+
Asia: "Asia";
|
|
1455
|
+
Europe: "Europe";
|
|
1456
|
+
"North America": "North America";
|
|
1457
|
+
"South America": "South America";
|
|
1458
|
+
"Middle East": "Middle East";
|
|
1459
|
+
Oceania: "Oceania";
|
|
1460
|
+
Global: "Global";
|
|
1461
|
+
Other: "Other";
|
|
1462
|
+
Remote: "Remote";
|
|
1463
|
+
EMEA: "EMEA";
|
|
1464
|
+
"Asia Pacific": "Asia Pacific";
|
|
1465
|
+
}>;
|
|
1466
|
+
jobSections: z.ZodArray<z.ZodEnum<{
|
|
1467
|
+
[x: string]: string;
|
|
1468
|
+
}>>;
|
|
1469
|
+
id: z.ZodCUID2;
|
|
1470
|
+
experienceLevel: z.ZodEnum<{
|
|
1471
|
+
"0-1 year": "0-1 year";
|
|
1472
|
+
"1-3 years": "1-3 years";
|
|
1473
|
+
"3-5 years": "3-5 years";
|
|
1474
|
+
"5+ years": "5+ years";
|
|
1475
|
+
}>;
|
|
1476
|
+
overview: z.ZodString;
|
|
1477
|
+
keyResponsibilities: z.ZodString;
|
|
1478
|
+
requiredSkills: z.ZodArray<z.ZodString>;
|
|
1479
|
+
employeeRequirements: z.ZodOptional<z.ZodString>;
|
|
1480
|
+
companyBenefits: z.ZodOptional<z.ZodString>;
|
|
1481
|
+
wagesMin: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1482
|
+
wagesMax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1483
|
+
wagesCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1484
|
+
"USD (United States Dollar)": "USD (United States Dollar)";
|
|
1485
|
+
"EUR (Euro)": "EUR (Euro)";
|
|
1486
|
+
"GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
|
|
1487
|
+
"NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
|
|
1488
|
+
"CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
|
|
1489
|
+
"AUD (Australian Dollar)": "AUD (Australian Dollar)";
|
|
1490
|
+
"JPY (Japanese Yen)": "JPY (Japanese Yen)";
|
|
1491
|
+
"CHF (Swiss Franc)": "CHF (Swiss Franc)";
|
|
1492
|
+
"INR (Indian Rupee)": "INR (Indian Rupee)";
|
|
1493
|
+
"ZAR (South African Rand)": "ZAR (South African Rand)";
|
|
1494
|
+
}>>;
|
|
1495
|
+
wagesType: z.ZodOptional<z.ZodEnum<{
|
|
1496
|
+
Hourly: "Hourly";
|
|
1497
|
+
Daily: "Daily";
|
|
1498
|
+
Weekly: "Weekly";
|
|
1499
|
+
Monthly: "Monthly";
|
|
1500
|
+
"Project Based": "Project Based";
|
|
1501
|
+
}>>;
|
|
1502
|
+
jobType: z.ZodLiteral<"ROLE">;
|
|
1503
|
+
employmentType: z.ZodEnum<{
|
|
1504
|
+
"Full Time": "Full Time";
|
|
1505
|
+
"Part Time": "Part Time";
|
|
1506
|
+
Freelance: "Freelance";
|
|
1507
|
+
Internship: "Internship";
|
|
1508
|
+
}>;
|
|
1509
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1510
|
+
"One Time": "One Time";
|
|
1511
|
+
Recurring: "Recurring";
|
|
1512
|
+
}>>;
|
|
1513
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1514
|
+
status: z.ZodEnum<{
|
|
1515
|
+
ACTIVE: "ACTIVE";
|
|
1516
|
+
DELETED: "DELETED";
|
|
1517
|
+
DRAFT: "DRAFT";
|
|
1518
|
+
ARCHIVED: "ARCHIVED";
|
|
1519
|
+
}>;
|
|
1520
|
+
brandName: z.ZodString;
|
|
1521
|
+
brandImgUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1522
|
+
isApplied: z.ZodDefault<z.ZodBoolean>;
|
|
1523
|
+
isBookmarked: z.ZodBoolean;
|
|
1524
|
+
createdAt: z.ZodISODateTime;
|
|
1525
|
+
updatedAt: z.ZodISODateTime;
|
|
1526
|
+
version: z.ZodInt;
|
|
1527
|
+
title: z.ZodString;
|
|
1528
|
+
brandId: z.ZodCUID2;
|
|
1529
|
+
jobType: z.ZodEnum<{
|
|
1530
|
+
GIG: "GIG";
|
|
1531
|
+
ROLE: "ROLE";
|
|
1532
|
+
}>;
|
|
1533
|
+
employmentType: z.ZodOptional<z.ZodEnum<{
|
|
1534
|
+
"Full Time": "Full Time";
|
|
1535
|
+
"Part Time": "Part Time";
|
|
1536
|
+
Freelance: "Freelance";
|
|
1537
|
+
Internship: "Internship";
|
|
1538
|
+
}>>;
|
|
1539
|
+
workMode: z.ZodEnum<{
|
|
1540
|
+
Remote: "Remote";
|
|
1541
|
+
Hybrid: "Hybrid";
|
|
1542
|
+
"On Site": "On Site";
|
|
1543
|
+
}>;
|
|
1544
|
+
gigType: z.ZodOptional<z.ZodEnum<{
|
|
1545
|
+
"One Time": "One Time";
|
|
1546
|
+
Recurring: "Recurring";
|
|
1547
|
+
}>>;
|
|
1548
|
+
location: z.ZodEnum<{
|
|
1549
|
+
Africa: "Africa";
|
|
1550
|
+
Asia: "Asia";
|
|
1551
|
+
Europe: "Europe";
|
|
1552
|
+
"North America": "North America";
|
|
1553
|
+
"South America": "South America";
|
|
1554
|
+
"Middle East": "Middle East";
|
|
1555
|
+
Oceania: "Oceania";
|
|
1556
|
+
Global: "Global";
|
|
1557
|
+
Other: "Other";
|
|
1558
|
+
Remote: "Remote";
|
|
1559
|
+
EMEA: "EMEA";
|
|
1560
|
+
"Asia Pacific": "Asia Pacific";
|
|
1561
|
+
}>;
|
|
1562
|
+
jobSections: z.ZodArray<z.ZodEnum<{
|
|
1563
|
+
[x: string]: string;
|
|
1564
|
+
}>>;
|
|
1565
|
+
id: z.ZodCUID2;
|
|
1566
|
+
}, z.core.$strip>]>>;
|
|
1567
|
+
noOfJobs: z.ZodNumber;
|
|
1568
|
+
noOfArchivedJobs: z.ZodNumber;
|
|
1569
|
+
noOfActiveJobs: z.ZodNumber;
|
|
1570
|
+
}, z.core.$strip>;
|
|
1571
|
+
export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
|
package/dist/schemas/job.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JobSearchDocumentSchema = exports.GetJobsOutputSchema = exports.GetJobsInputSchema = exports.UpdateJobInputSchema = exports.CreateJobInputSchema = exports.NormalizedJobSchema = exports.JobWithRoleDetailsEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.RoleJobEntitySchema = exports.GigJobEntitySchema = exports.RoleDetailsSchema = exports.GigDetailsSchema = exports.JobEntitySchema = exports.JobShape = exports.JobSectionSchema = exports.WageTypeSchema = exports.WageCurrencySchema = exports.ExperienceLevelSchema = exports.JobLocationSchema = exports.GigTypeSchema = exports.JobStatusSchema = exports.WorkModeSchema = exports.EmploymentTypeSchema = exports.JobTypeSchema = void 0;
|
|
3
|
+
exports.GetCreatedJobsOutputSchema = exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema = exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema = exports.BaseJobEntitySchema = exports.JobIdSchema = exports.JobSearchDocumentSchema = exports.GetJobsOutputSchema = exports.GetJobsInputSchema = exports.UpdateJobInputSchema = exports.CreateJobInputSchema = exports.NormalizedJobSchema = exports.JobWithRoleDetailsEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.RoleJobEntitySchema = exports.GigJobEntitySchema = exports.RoleDetailsSchema = exports.GigDetailsSchema = exports.JobEntitySchema = exports.JobShape = exports.JobSectionSchema = exports.WageTypeSchema = exports.WageCurrencySchema = exports.ExperienceLevelSchema = exports.JobLocationSchema = exports.GigTypeSchema = exports.JobStatusSchema = exports.WorkModeSchema = exports.EmploymentTypeSchema = exports.JobTypeSchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
/**
|
|
@@ -189,3 +189,27 @@ exports.JobSearchDocumentSchema = zod_openapi_1.z
|
|
|
189
189
|
updatedAt: zod_openapi_1.z.string(),
|
|
190
190
|
})
|
|
191
191
|
.openapi("JobSearchDocument");
|
|
192
|
+
exports.JobIdSchema = zod_openapi_1.z.object({
|
|
193
|
+
jobId: zod_openapi_1.z.cuid2().openapi({ param: { name: "jobId", in: "path" } }),
|
|
194
|
+
});
|
|
195
|
+
exports.BaseJobEntitySchema = exports.JobEntitySchema;
|
|
196
|
+
exports.CreateGigJobInputSchema = exports.GigDetailsSchema.extend({
|
|
197
|
+
id: zod_openapi_1.z.cuid2(),
|
|
198
|
+
});
|
|
199
|
+
exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema.partial().extend({
|
|
200
|
+
id: zod_openapi_1.z.cuid2(),
|
|
201
|
+
version: zod_openapi_1.z.int().default(1),
|
|
202
|
+
});
|
|
203
|
+
exports.CreateRoleJobInputSchema = exports.RoleDetailsSchema.extend({
|
|
204
|
+
id: zod_openapi_1.z.cuid2(),
|
|
205
|
+
});
|
|
206
|
+
exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema.partial().extend({
|
|
207
|
+
id: zod_openapi_1.z.cuid2(),
|
|
208
|
+
version: zod_openapi_1.z.int().default(1),
|
|
209
|
+
});
|
|
210
|
+
exports.GetCreatedJobsOutputSchema = zod_openapi_1.z.object({
|
|
211
|
+
jobs: zod_openapi_1.z.array(exports.NormalizedJobSchema),
|
|
212
|
+
noOfJobs: zod_openapi_1.z.number(),
|
|
213
|
+
noOfArchivedJobs: zod_openapi_1.z.number(),
|
|
214
|
+
noOfActiveJobs: zod_openapi_1.z.number(),
|
|
215
|
+
});
|
|
@@ -505,10 +505,10 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
|
|
|
505
505
|
readonly ZAR: "ZAR (South African Rand)";
|
|
506
506
|
}>>;
|
|
507
507
|
currentTraction: z.ZodOptional<z.ZodString>;
|
|
508
|
-
isOpenToInvestment: z.
|
|
508
|
+
isOpenToInvestment: z.ZodOptional<z.ZodBoolean>;
|
|
509
509
|
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
510
510
|
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
511
|
-
version: z.
|
|
511
|
+
version: z.ZodOptional<z.ZodInt>;
|
|
512
512
|
}, z.core.$strip>;
|
|
513
513
|
export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
|
|
514
514
|
export declare const CommentOnProjectInputSchema: z.ZodObject<{
|
package/dist/schemas/project.js
CHANGED
|
@@ -175,10 +175,10 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
|
|
|
175
175
|
.min(10, "Share your current traction.")
|
|
176
176
|
.max(600)
|
|
177
177
|
.optional(),
|
|
178
|
-
isOpenToInvestment: zod_openapi_1.z.boolean().
|
|
178
|
+
isOpenToInvestment: zod_openapi_1.z.boolean().optional(),
|
|
179
179
|
startDate: zod_openapi_1.z.iso.datetime().optional(),
|
|
180
180
|
endDate: zod_openapi_1.z.iso.datetime().optional(),
|
|
181
|
-
version: zod_openapi_1.z.int().
|
|
181
|
+
version: zod_openapi_1.z.int().optional(),
|
|
182
182
|
})
|
|
183
183
|
.superRefine(({ startDate, endDate }, ctx) => {
|
|
184
184
|
if (!startDate)
|
package/package.json
CHANGED
package/src/schemas/feed.ts
CHANGED
|
@@ -69,3 +69,14 @@ export const TrendingUsersOutputSchema = z.object({
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
export type TrendingUsersOutput = z.infer<typeof TrendingUsersOutputSchema>;
|
|
72
|
+
|
|
73
|
+
export const FeedTagsInputSchema = z.object({
|
|
74
|
+
tags: z.array(z.string().min(1)).default([]),
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
export const FeedTagsSchema = z.object({
|
|
78
|
+
userId: z.cuid2(),
|
|
79
|
+
tags: z.array(z.string()),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export type FeedTagsInput = z.infer<typeof FeedTagsInputSchema>;
|
|
@@ -75,7 +75,7 @@ const JobApplicationShape = z.object({
|
|
|
75
75
|
projectName: z.string(),
|
|
76
76
|
projectImgUrl: z.url().optional(),
|
|
77
77
|
projectId: z.cuid2(),
|
|
78
|
-
tags: z.array(z.string()).
|
|
78
|
+
tags: z.array(z.string()).default([]),
|
|
79
79
|
}),
|
|
80
80
|
)
|
|
81
81
|
.optional(),
|
|
@@ -201,3 +201,11 @@ export const GetTrackedJobApplicationsOutputSchema = z.object({
|
|
|
201
201
|
export type GetTrackedJobApplicationsOutput = z.infer<
|
|
202
202
|
typeof GetTrackedJobApplicationsOutputSchema
|
|
203
203
|
>;
|
|
204
|
+
|
|
205
|
+
export const BaseJobApplicationEntitySchema = JobApplicationEntitySchema.omit({
|
|
206
|
+
user: true,
|
|
207
|
+
});
|
|
208
|
+
|
|
209
|
+
export type BaseJobApplicationEntity = z.infer<
|
|
210
|
+
typeof BaseJobApplicationEntitySchema
|
|
211
|
+
>;
|
package/src/schemas/job.ts
CHANGED
|
@@ -288,3 +288,47 @@ export const JobSearchDocumentSchema = z
|
|
|
288
288
|
.openapi("JobSearchDocument");
|
|
289
289
|
|
|
290
290
|
export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
|
|
291
|
+
|
|
292
|
+
export const JobIdSchema = z.object({
|
|
293
|
+
jobId: z.cuid2().openapi({ param: { name: "jobId", in: "path" } }),
|
|
294
|
+
});
|
|
295
|
+
|
|
296
|
+
export type JobId = z.infer<typeof JobIdSchema>;
|
|
297
|
+
|
|
298
|
+
export const BaseJobEntitySchema = JobEntitySchema;
|
|
299
|
+
export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
|
|
300
|
+
|
|
301
|
+
export const CreateGigJobInputSchema = GigDetailsSchema.extend({
|
|
302
|
+
id: z.cuid2(),
|
|
303
|
+
});
|
|
304
|
+
|
|
305
|
+
export type CreateGigJobInput = z.infer<typeof CreateGigJobInputSchema>;
|
|
306
|
+
|
|
307
|
+
export const UpdateGigJobInputSchema = CreateGigJobInputSchema.partial().extend({
|
|
308
|
+
id: z.cuid2(),
|
|
309
|
+
version: z.int().default(1),
|
|
310
|
+
});
|
|
311
|
+
|
|
312
|
+
export type UpdateGigJobInput = z.infer<typeof UpdateGigJobInputSchema>;
|
|
313
|
+
|
|
314
|
+
export const CreateRoleJobInputSchema = RoleDetailsSchema.extend({
|
|
315
|
+
id: z.cuid2(),
|
|
316
|
+
});
|
|
317
|
+
|
|
318
|
+
export type CreateRoleJobInput = z.infer<typeof CreateRoleJobInputSchema>;
|
|
319
|
+
|
|
320
|
+
export const UpdateRoleJobInputSchema = CreateRoleJobInputSchema.partial().extend({
|
|
321
|
+
id: z.cuid2(),
|
|
322
|
+
version: z.int().default(1),
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
export type UpdateRoleJobInput = z.infer<typeof UpdateRoleJobInputSchema>;
|
|
326
|
+
|
|
327
|
+
export const GetCreatedJobsOutputSchema = z.object({
|
|
328
|
+
jobs: z.array(NormalizedJobSchema),
|
|
329
|
+
noOfJobs: z.number(),
|
|
330
|
+
noOfArchivedJobs: z.number(),
|
|
331
|
+
noOfActiveJobs: z.number(),
|
|
332
|
+
});
|
|
333
|
+
|
|
334
|
+
export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
|
package/src/schemas/project.ts
CHANGED
|
@@ -263,12 +263,12 @@ export const UpdateProjectInputSchema = z
|
|
|
263
263
|
.max(600)
|
|
264
264
|
.optional(),
|
|
265
265
|
|
|
266
|
-
isOpenToInvestment: z.boolean().
|
|
266
|
+
isOpenToInvestment: z.boolean().optional(),
|
|
267
267
|
|
|
268
268
|
startDate: z.iso.datetime().optional(),
|
|
269
269
|
endDate: z.iso.datetime().optional(),
|
|
270
270
|
|
|
271
|
-
version: z.int().
|
|
271
|
+
version: z.int().optional(),
|
|
272
272
|
})
|
|
273
273
|
.superRefine(({ startDate, endDate }, ctx) => {
|
|
274
274
|
if (!startDate) return;
|