@zyacreatives/shared 2.1.21 → 2.1.22

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema, GetJobsOutputSchema, NormalizedJobSchema, GetJobsInputSchema, GetCreatedJobsOutputSchema } from "../schemas/job";
2
+ import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema, GetJobsOutputSchema, GetJobsInputSchema, GetCreatedJobsOutputSchema } from "../schemas/job";
3
3
  export type BaseJobEntity = z.infer<typeof BaseJobEntitySchema>;
4
4
  export type JobIdInput = z.infer<typeof JobIdSchema>;
5
5
  export type JobEntity = z.infer<typeof JobEntitySchema>;
@@ -23,4 +23,4 @@ export type JobWithRoleDetailsEntity = z.infer<typeof JobWithRoleDetailsEntitySc
23
23
  export type GetJobsInput = z.infer<typeof GetJobsInputSchema>;
24
24
  export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
25
25
  export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
26
- export type NormalizedJobEntity = z.infer<typeof NormalizedJobSchema>;
26
+ export type NormalizedJobEntity = JobEntity | JobWithGigDetailsEntity | JobWithRoleDetailsEntity;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.21",
3
+ "version": "2.1.22",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types/job.ts CHANGED
@@ -66,4 +66,7 @@ export type JobWithRoleDetailsEntity = z.infer<
66
66
  export type GetJobsInput = z.infer<typeof GetJobsInputSchema>;
67
67
  export type GetJobsOutput = z.infer<typeof GetJobsOutputSchema>;
68
68
  export type GetCreatedJobsOutput = z.infer<typeof GetCreatedJobsOutputSchema>;
69
- export type NormalizedJobEntity = z.infer<typeof NormalizedJobSchema>;
69
+ export type NormalizedJobEntity =
70
+ | JobEntity
71
+ | JobWithGigDetailsEntity
72
+ | JobWithRoleDetailsEntity;