@zyacreatives/shared 1.9.94 → 1.9.95

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.
@@ -128,7 +128,7 @@ export declare const GigJobEntitySchema: z.ZodObject<{
128
128
  }>>;
129
129
  jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
130
130
  }, z.core.$strip>;
131
- export declare const GetJobWithGigDetailsOutputSchema: z.ZodObject<{
131
+ export declare const JobWithGigDetailsEntitySchema: z.ZodObject<{
132
132
  title: z.ZodString;
133
133
  brandId: z.ZodCUID2;
134
134
  brandName: z.ZodCUID2;
@@ -250,7 +250,7 @@ export declare const RoleJobEntitySchema: z.ZodObject<{
250
250
  }>>;
251
251
  jobSections: z.ZodDefault<z.ZodArray<z.ZodString>>;
252
252
  }, z.core.$strip>;
253
- export declare const GetJobWithRoleDetailsOutputSchema: z.ZodObject<{
253
+ export declare const JobWithRoleDetailsEntitySchema: z.ZodObject<{
254
254
  title: z.ZodString;
255
255
  brandId: z.ZodCUID2;
256
256
  brandName: z.ZodCUID2;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NormalizedJobOutputSchema = exports.UpdateJobInputSchema = exports.UpdateGigJobInputSchema = exports.UpdateRoleJobInputSchema = exports.CreateGigJobInputSchema = exports.CreateRoleJobInputSchema = exports.CreateJobInputSchema = exports.GetJobWithRoleDetailsOutputSchema = exports.RoleJobEntitySchema = exports.GetJobWithGigDetailsOutputSchema = exports.GigJobEntitySchema = exports.JobEntitySchema = exports.JobIdSchema = exports.BaseJobEntitySchema = void 0;
3
+ exports.NormalizedJobOutputSchema = exports.UpdateJobInputSchema = exports.UpdateGigJobInputSchema = exports.UpdateRoleJobInputSchema = exports.CreateGigJobInputSchema = exports.CreateRoleJobInputSchema = exports.CreateJobInputSchema = exports.JobWithRoleDetailsEntitySchema = exports.RoleJobEntitySchema = exports.JobWithGigDetailsEntitySchema = exports.GigJobEntitySchema = exports.JobEntitySchema = exports.JobIdSchema = exports.BaseJobEntitySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const constants_1 = require("../constants");
6
6
  exports.BaseJobEntitySchema = zod_1.z.object({
@@ -62,7 +62,7 @@ exports.GigJobEntitySchema = exports.JobEntitySchema.extend({
62
62
  .array(zod_1.z.string())
63
63
  .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
64
64
  });
65
- exports.GetJobWithGigDetailsOutputSchema = exports.JobEntitySchema.extend(exports.GigJobEntitySchema.shape);
65
+ exports.JobWithGigDetailsEntitySchema = exports.JobEntitySchema.extend(exports.GigJobEntitySchema.shape);
66
66
  exports.RoleJobEntitySchema = exports.JobEntitySchema.extend({
67
67
  id: zod_1.z.cuid2(),
68
68
  jobType: zod_1.z.literal(constants_1.JOB_TYPE.ROLE),
@@ -86,7 +86,7 @@ exports.RoleJobEntitySchema = exports.JobEntitySchema.extend({
86
86
  .array(zod_1.z.string())
87
87
  .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
88
88
  });
89
- exports.GetJobWithRoleDetailsOutputSchema = exports.JobEntitySchema.extend(exports.RoleJobEntitySchema.shape);
89
+ exports.JobWithRoleDetailsEntitySchema = exports.JobEntitySchema.extend(exports.RoleJobEntitySchema.shape);
90
90
  exports.CreateJobInputSchema = zod_1.z
91
91
  .object({
92
92
  title: zod_1.z.string(),
@@ -205,6 +205,6 @@ exports.UpdateJobInputSchema = exports.CreateJobInputSchema.partial().extend({
205
205
  id: zod_1.z.cuid2(),
206
206
  });
207
207
  exports.NormalizedJobOutputSchema = zod_1.z.discriminatedUnion("jobType", [
208
- exports.GetJobWithGigDetailsOutputSchema,
209
- exports.GetJobWithRoleDetailsOutputSchema,
208
+ exports.JobWithGigDetailsEntitySchema,
209
+ exports.JobWithRoleDetailsEntitySchema,
210
210
  ]);
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, GetJobWithGigDetailsOutputSchema, GetJobWithRoleDetailsOutputSchema, BaseJobEntitySchema, JobIdSchema } from "../schemas/job";
2
+ import { JobEntitySchema, GigJobEntitySchema, RoleJobEntitySchema, CreateJobInputSchema, CreateRoleJobInputSchema, CreateGigJobInputSchema, UpdateRoleJobInputSchema, UpdateGigJobInputSchema, UpdateJobInputSchema, JobWithGigDetailsEntitySchema, JobWithRoleDetailsEntitySchema, BaseJobEntitySchema, JobIdSchema } 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>;
@@ -18,5 +18,5 @@ export type UpdateGigJobOutput = z.infer<typeof GigJobEntitySchema>;
18
18
  export type UpdateJobInput = z.infer<typeof UpdateJobInputSchema>;
19
19
  export type UpdateJobOutput = z.infer<typeof BaseJobEntitySchema>;
20
20
  export type GetJobOutput = z.infer<typeof BaseJobEntitySchema>;
21
- export type GetJobWithGigDetailsOutput = z.infer<typeof GetJobWithGigDetailsOutputSchema>;
22
- export type GetJobWithRoleDetailsOutput = z.infer<typeof GetJobWithRoleDetailsOutputSchema>;
21
+ export type JobWithGigDetailsEntity = z.infer<typeof JobWithGigDetailsEntitySchema>;
22
+ export type JobWithRoleDetailsEntity = z.infer<typeof JobWithRoleDetailsEntitySchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.9.94",
3
+ "version": "1.9.95",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -92,7 +92,7 @@ export const GigJobEntitySchema = JobEntitySchema.extend({
92
92
  .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
93
93
  });
94
94
 
95
- export const GetJobWithGigDetailsOutputSchema = JobEntitySchema.extend(
95
+ export const JobWithGigDetailsEntitySchema = JobEntitySchema.extend(
96
96
  GigJobEntitySchema.shape
97
97
  );
98
98
 
@@ -124,7 +124,7 @@ export const RoleJobEntitySchema = JobEntitySchema.extend({
124
124
  .default(["PERSONAL_INFORMATION", "PROFESSIONAL_INFORMATION", "RESUME"]),
125
125
  });
126
126
 
127
- export const GetJobWithRoleDetailsOutputSchema = JobEntitySchema.extend(
127
+ export const JobWithRoleDetailsEntitySchema = JobEntitySchema.extend(
128
128
  RoleJobEntitySchema.shape
129
129
  );
130
130
 
@@ -273,6 +273,6 @@ export const UpdateJobInputSchema = CreateJobInputSchema.partial().extend({
273
273
  });
274
274
 
275
275
  export const NormalizedJobOutputSchema = z.discriminatedUnion("jobType", [
276
- GetJobWithGigDetailsOutputSchema,
277
- GetJobWithRoleDetailsOutputSchema,
276
+ JobWithGigDetailsEntitySchema,
277
+ JobWithRoleDetailsEntitySchema,
278
278
  ]);
package/src/types/job.ts CHANGED
@@ -9,8 +9,8 @@ import {
9
9
  UpdateRoleJobInputSchema,
10
10
  UpdateGigJobInputSchema,
11
11
  UpdateJobInputSchema,
12
- GetJobWithGigDetailsOutputSchema,
13
- GetJobWithRoleDetailsOutputSchema,
12
+ JobWithGigDetailsEntitySchema,
13
+ JobWithRoleDetailsEntitySchema,
14
14
  BaseJobEntitySchema,
15
15
  JobIdSchema,
16
16
  } from "../schemas/job";
@@ -51,10 +51,10 @@ export type UpdateJobOutput = z.infer<typeof BaseJobEntitySchema>;
51
51
 
52
52
  export type GetJobOutput = z.infer<typeof BaseJobEntitySchema>;
53
53
 
54
- export type GetJobWithGigDetailsOutput = z.infer<
55
- typeof GetJobWithGigDetailsOutputSchema
54
+ export type JobWithGigDetailsEntity = z.infer<
55
+ typeof JobWithGigDetailsEntitySchema
56
56
  >;
57
57
 
58
- export type GetJobWithRoleDetailsOutput = z.infer<
59
- typeof GetJobWithRoleDetailsOutputSchema
58
+ export type JobWithRoleDetailsEntity = z.infer<
59
+ typeof JobWithRoleDetailsEntitySchema
60
60
  >;