@zyacreatives/shared 2.5.26 → 2.5.27

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.
@@ -1234,3 +1234,73 @@ export declare const JobSearchDocumentSchema: z.ZodObject<{
1234
1234
  updatedAt: z.ZodString;
1235
1235
  }, z.core.$strip>;
1236
1236
  export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
1237
+ export declare const UpdateRoleJobInputSchema: z.ZodObject<{
1238
+ overview: z.ZodOptional<z.ZodString>;
1239
+ experienceLevel: z.ZodOptional<z.ZodEnum<{
1240
+ "0-1 year": "0-1 year";
1241
+ "1-3 years": "1-3 years";
1242
+ "3-5 years": "3-5 years";
1243
+ "5+ years": "5+ years";
1244
+ }>>;
1245
+ employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1246
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1247
+ wagesMin: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1248
+ wagesMax: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1249
+ wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1250
+ "USD (United States Dollar)": "USD (United States Dollar)";
1251
+ "EUR (Euro)": "EUR (Euro)";
1252
+ "GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
1253
+ "NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
1254
+ "CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
1255
+ "AUD (Australian Dollar)": "AUD (Australian Dollar)";
1256
+ "JPY (Japanese Yen)": "JPY (Japanese Yen)";
1257
+ "CHF (Swiss Franc)": "CHF (Swiss Franc)";
1258
+ "INR (Indian Rupee)": "INR (Indian Rupee)";
1259
+ "ZAR (South African Rand)": "ZAR (South African Rand)";
1260
+ }>>>;
1261
+ wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1262
+ Hourly: "Hourly";
1263
+ Daily: "Daily";
1264
+ Weekly: "Weekly";
1265
+ Monthly: "Monthly";
1266
+ "Project Based": "Project Based";
1267
+ }>>>;
1268
+ keyResponsibilities: z.ZodOptional<z.ZodString>;
1269
+ companyBenefits: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1270
+ id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
1271
+ version: z.ZodNumber;
1272
+ }, z.core.$strip>;
1273
+ export type UpdateRoleJobInput = z.infer<typeof UpdateRoleJobInputSchema>;
1274
+ export declare const UpdateGigJobInputSchema: z.ZodObject<{
1275
+ overview: z.ZodOptional<z.ZodString>;
1276
+ deliverables: z.ZodOptional<z.ZodString>;
1277
+ employeeRequirements: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1278
+ aboutCompany: z.ZodOptional<z.ZodOptional<z.ZodString>>;
1279
+ requiredSkills: z.ZodOptional<z.ZodArray<z.ZodString>>;
1280
+ wagesMin: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1281
+ wagesMax: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodNumber>>>;
1282
+ wagesCurrency: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1283
+ "USD (United States Dollar)": "USD (United States Dollar)";
1284
+ "EUR (Euro)": "EUR (Euro)";
1285
+ "GBP (British Pound Sterling)": "GBP (British Pound Sterling)";
1286
+ "NGN (Nigerian Naira)": "NGN (Nigerian Naira)";
1287
+ "CAD (Canadian Dollar)": "CAD (Canadian Dollar)";
1288
+ "AUD (Australian Dollar)": "AUD (Australian Dollar)";
1289
+ "JPY (Japanese Yen)": "JPY (Japanese Yen)";
1290
+ "CHF (Swiss Franc)": "CHF (Swiss Franc)";
1291
+ "INR (Indian Rupee)": "INR (Indian Rupee)";
1292
+ "ZAR (South African Rand)": "ZAR (South African Rand)";
1293
+ }>>>;
1294
+ wagesType: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
1295
+ Hourly: "Hourly";
1296
+ Daily: "Daily";
1297
+ Weekly: "Weekly";
1298
+ Monthly: "Monthly";
1299
+ "Project Based": "Project Based";
1300
+ }>>>;
1301
+ id: z.ZodNonOptional<z.ZodOptional<z.ZodCUID2>>;
1302
+ version: z.ZodNumber;
1303
+ }, z.core.$strip>;
1304
+ export type UpdateGigJobInput = z.infer<typeof UpdateGigJobInputSchema>;
1305
+ export type UpdateRoleJobOutput = z.infer<typeof RoleJobEntitySchema>;
1306
+ export type UpdateGigJobOutput = z.infer<typeof GigJobEntitySchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JobSearchDocumentSchema = exports.GetCreatedJobsOutputSchema = exports.GetJobsOutputSchema = exports.GetJobsInputSchema = exports.UpdateJobInputSchema = exports.CreateGigJobInputSchema = exports.CreateRoleJobInputSchema = exports.CreateJobInputSchema = exports.NormalizedJobSchema = exports.JobWithRoleDetailsEntitySchema = exports.RoleJobEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.GigJobEntitySchema = exports.JobEntitySchema = exports.BaseJobEntitySchema = exports.JobIdSchema = void 0;
3
+ exports.UpdateGigJobInputSchema = exports.UpdateRoleJobInputSchema = exports.JobSearchDocumentSchema = exports.GetCreatedJobsOutputSchema = exports.GetJobsOutputSchema = exports.GetJobsInputSchema = exports.UpdateJobInputSchema = exports.CreateGigJobInputSchema = exports.CreateRoleJobInputSchema = exports.CreateJobInputSchema = exports.NormalizedJobSchema = exports.JobWithRoleDetailsEntitySchema = exports.RoleJobEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.GigJobEntitySchema = exports.JobEntitySchema = exports.BaseJobEntitySchema = exports.JobIdSchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const JobSectionEnum = zod_openapi_1.z
@@ -264,3 +264,17 @@ exports.JobSearchDocumentSchema = zod_openapi_1.z
264
264
  updatedAt: zod_openapi_1.z.string(),
265
265
  })
266
266
  .openapi("JobSearchDocument");
267
+ exports.UpdateRoleJobInputSchema = exports.CreateRoleJobInputSchema.partial()
268
+ .extend({
269
+ version: zod_openapi_1.z.number().int().openapi({ example: 2 })
270
+ })
271
+ .required({
272
+ id: true
273
+ });
274
+ exports.UpdateGigJobInputSchema = exports.CreateGigJobInputSchema.partial()
275
+ .extend({
276
+ version: zod_openapi_1.z.number().int().openapi({ example: 2 })
277
+ })
278
+ .required({
279
+ id: true
280
+ });
@@ -10,7 +10,6 @@ export * from "./feed";
10
10
  export * from "./activity";
11
11
  export * from "./message";
12
12
  export * from "./chat";
13
- export * from "./job";
14
13
  export * from "./user-strike";
15
14
  export * from "./notification";
16
15
  export * from "./investor-signal";
@@ -26,7 +26,6 @@ __exportStar(require("./feed"), exports);
26
26
  __exportStar(require("./activity"), exports);
27
27
  __exportStar(require("./message"), exports);
28
28
  __exportStar(require("./chat"), exports);
29
- __exportStar(require("./job"), exports);
30
29
  __exportStar(require("./user-strike"), exports);
31
30
  __exportStar(require("./notification"), exports);
32
31
  __exportStar(require("./investor-signal"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.26",
3
+ "version": "2.5.27",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -357,3 +357,27 @@ export const JobSearchDocumentSchema = z
357
357
  .openapi("JobSearchDocument");
358
358
 
359
359
  export type JobSearchDocument = z.infer<typeof JobSearchDocumentSchema>;
360
+
361
+ export const UpdateRoleJobInputSchema = CreateRoleJobInputSchema.partial()
362
+ .extend({
363
+ version: z.number().int().openapi({ example: 2 })
364
+ })
365
+ .required({
366
+ id: true
367
+ });
368
+
369
+ export type UpdateRoleJobInput = z.infer<typeof UpdateRoleJobInputSchema>;
370
+
371
+ export const UpdateGigJobInputSchema = CreateGigJobInputSchema.partial()
372
+ .extend({
373
+ version: z.number().int().openapi({ example: 2 })
374
+ })
375
+ .required({
376
+ id: true
377
+ });
378
+
379
+ export type UpdateGigJobInput = z.infer<typeof UpdateGigJobInputSchema>;
380
+
381
+ export type UpdateRoleJobOutput = z.infer<typeof RoleJobEntitySchema>;
382
+
383
+ export type UpdateGigJobOutput = z.infer<typeof GigJobEntitySchema>;
@@ -10,7 +10,6 @@ export * from "./feed";
10
10
  export * from "./activity";
11
11
  export * from "./message";
12
12
  export * from "./chat";
13
- export * from "./job";
14
13
  export * from "./user-strike";
15
14
  export * from "./notification";
16
15
  export * from "./investor-signal"
package/src/types/job.ts DELETED
File without changes