@zyacreatives/shared 1.9.1 → 1.9.3

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.
@@ -92,7 +92,23 @@ export declare const POST_TYPES: {
92
92
  readonly POST_WITH_LINKS: "POST_WITH_LINKS";
93
93
  readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
94
94
  };
95
+ export declare const JOB_AVAILABILITY_TYPES: {
96
+ readonly FULL_TIME: "FULL_TIME";
97
+ readonly PART_TIME: "PART_TIME";
98
+ readonly CONTRACT: "CONTRACT";
99
+ readonly FREELANCE: "FREELANCE";
100
+ readonly INTERNSHIP: "INTERNSHIP";
101
+ };
102
+ export declare const WAGE_TYPES: {
103
+ readonly HOURLY: "HOURLY";
104
+ readonly DAILY: "DAILY";
105
+ readonly WEEKLY: "WEEKLY";
106
+ readonly MONTHLY: "MONTHLY";
107
+ readonly PROJECT_BASED: "PROJECT_BASED";
108
+ };
95
109
  export type Role = (typeof ROLES)[keyof typeof ROLES];
110
+ export type JobAvailabilityTypes = (typeof JOB_AVAILABILITY_TYPES)[keyof typeof JOB_AVAILABILITY_TYPES];
111
+ export type WageTypes = (typeof WAGE_TYPES)[keyof typeof WAGE_TYPES];
96
112
  export type PostType = (typeof POST_TYPES)[keyof typeof POST_TYPES];
97
113
  export type ActivityParentType = (typeof ACTIVITY_PARENT_TYPES)[keyof typeof ACTIVITY_PARENT_TYPES];
98
114
  export type UserStatus = (typeof USER_STATUSES)[keyof typeof USER_STATUSES];
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.POST_TYPES = exports.ACTIVITY_PARENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_STATUSES = exports.GEOGRAPHIC_FOCUS = exports.INVESTMENT_SIZES = exports.INVESTOR_TYPES = exports.ONBOARDING_PAGES = exports.EXPERIENCE_LEVELS = exports.CLIENT_TYPES = exports.USER_STATUSES = exports.ROLES = void 0;
3
+ exports.DEFAULT_DISCIPLINES = exports.API_ROUTES = exports.WAGE_TYPES = exports.JOB_AVAILABILITY_TYPES = exports.POST_TYPES = exports.ACTIVITY_PARENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_TYPES = exports.INVESTOR_VERIFICATION_DOCUMENT_STATUSES = exports.GEOGRAPHIC_FOCUS = exports.INVESTMENT_SIZES = exports.INVESTOR_TYPES = exports.ONBOARDING_PAGES = exports.EXPERIENCE_LEVELS = exports.CLIENT_TYPES = exports.USER_STATUSES = exports.ROLES = void 0;
4
4
  exports.ROLES = {
5
5
  CREATIVE: "CREATIVE",
6
6
  BRAND: "BRAND",
@@ -95,6 +95,20 @@ exports.POST_TYPES = {
95
95
  POST_WITH_LINKS: "POST_WITH_LINKS",
96
96
  POST_WITH_MEDIA: "POST_WITH_MEDIA",
97
97
  };
98
+ exports.JOB_AVAILABILITY_TYPES = {
99
+ FULL_TIME: "FULL_TIME",
100
+ PART_TIME: "PART_TIME",
101
+ CONTRACT: "CONTRACT",
102
+ FREELANCE: "FREELANCE",
103
+ INTERNSHIP: "INTERNSHIP",
104
+ };
105
+ exports.WAGE_TYPES = {
106
+ HOURLY: "HOURLY",
107
+ DAILY: "DAILY",
108
+ WEEKLY: "WEEKLY",
109
+ MONTHLY: "MONTHLY",
110
+ PROJECT_BASED: "PROJECT_BASED",
111
+ };
98
112
  exports.API_ROUTES = {
99
113
  healthCheck: "/health",
100
114
  username: {
@@ -9,3 +9,4 @@ export * from "./file";
9
9
  export * from "./username";
10
10
  export * from "./post";
11
11
  export * from "./entity-stats";
12
+ export * from "./job-application";
@@ -25,3 +25,4 @@ __exportStar(require("./file"), exports);
25
25
  __exportStar(require("./username"), exports);
26
26
  __exportStar(require("./post"), exports);
27
27
  __exportStar(require("./entity-stats"), exports);
28
+ __exportStar(require("./job-application"), exports);
@@ -0,0 +1,34 @@
1
+ import z from "zod";
2
+ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
3
+ firstName: z.ZodString;
4
+ lastName: z.ZodString;
5
+ emailAddress: z.ZodEmail;
6
+ phoneNumber: z.ZodOptional<z.ZodString>;
7
+ currentRole: z.ZodString;
8
+ experienceLevel: z.ZodEnum<{
9
+ "0-1 year": "0-1 year";
10
+ "1-3 years": "1-3 years";
11
+ "3-5 years": "3-5 years";
12
+ "5+ years": "5+ years";
13
+ }>;
14
+ resumeUrl: z.ZodURL;
15
+ workSampleUrls: z.ZodOptional<z.ZodArray<z.ZodURL>>;
16
+ portfolioUrl: z.ZodOptional<z.ZodURL>;
17
+ coverLetterUrl: z.ZodOptional<z.ZodURL>;
18
+ receiveEmailUpdates: z.ZodBoolean;
19
+ wagesAmount: z.ZodBoolean;
20
+ wagesType: z.ZodEnum<{
21
+ HOURLY: "HOURLY";
22
+ DAILY: "DAILY";
23
+ WEEKLY: "WEEKLY";
24
+ MONTHLY: "MONTHLY";
25
+ PROJECT_BASED: "PROJECT_BASED";
26
+ }>;
27
+ availability: z.ZodEnum<{
28
+ FULL_TIME: "FULL_TIME";
29
+ PART_TIME: "PART_TIME";
30
+ CONTRACT: "CONTRACT";
31
+ FREELANCE: "FREELANCE";
32
+ INTERNSHIP: "INTERNSHIP";
33
+ }>;
34
+ }, z.core.$strip>;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CreateJobApplicationInputSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const constants_1 = require("../constants");
9
+ exports.CreateJobApplicationInputSchema = zod_1.default.object({
10
+ firstName: zod_1.default.string(),
11
+ lastName: zod_1.default.string(),
12
+ emailAddress: zod_1.default.email(),
13
+ phoneNumber: zod_1.default.string().optional(),
14
+ currentRole: zod_1.default.string(),
15
+ experienceLevel: zod_1.default.enum(Object.values(constants_1.EXPERIENCE_LEVELS)),
16
+ resumeUrl: zod_1.default.url(),
17
+ workSampleUrls: zod_1.default.array(zod_1.default.url()).optional(),
18
+ portfolioUrl: zod_1.default.url().optional(),
19
+ coverLetterUrl: zod_1.default.url().optional(),
20
+ receiveEmailUpdates: zod_1.default.boolean(),
21
+ wagesAmount: zod_1.default.boolean(),
22
+ wagesType: zod_1.default.enum(Object.values(constants_1.WAGE_TYPES)),
23
+ availability: zod_1.default.enum(Object.values(constants_1.JOB_AVAILABILITY_TYPES)),
24
+ });
@@ -9,3 +9,4 @@ export * from "./user";
9
9
  export * from "./username";
10
10
  export * from "./entity-stats";
11
11
  export * from "./post";
12
+ export * from "./job-application";
@@ -25,3 +25,4 @@ __exportStar(require("./user"), exports);
25
25
  __exportStar(require("./username"), exports);
26
26
  __exportStar(require("./entity-stats"), exports);
27
27
  __exportStar(require("./post"), exports);
28
+ __exportStar(require("./job-application"), exports);
@@ -0,0 +1,3 @@
1
+ import z from "zod";
2
+ import { CreateJobApplicationInputSchema } from "../schemas/job-application";
3
+ export type CreateJobApplicationInput = z.infer<typeof CreateJobApplicationInputSchema>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "1.9.1",
3
+ "version": "1.9.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -104,7 +104,26 @@ export const POST_TYPES = {
104
104
  POST_WITH_MEDIA: "POST_WITH_MEDIA",
105
105
  } as const;
106
106
 
107
+ export const JOB_AVAILABILITY_TYPES = {
108
+ FULL_TIME: "FULL_TIME",
109
+ PART_TIME: "PART_TIME",
110
+ CONTRACT: "CONTRACT",
111
+ FREELANCE: "FREELANCE",
112
+ INTERNSHIP: "INTERNSHIP",
113
+ } as const;
114
+
115
+ export const WAGE_TYPES = {
116
+ HOURLY: "HOURLY",
117
+ DAILY: "DAILY",
118
+ WEEKLY: "WEEKLY",
119
+ MONTHLY: "MONTHLY",
120
+ PROJECT_BASED: "PROJECT_BASED",
121
+ } as const;
122
+
107
123
  export type Role = (typeof ROLES)[keyof typeof ROLES];
124
+ export type JobAvailabilityTypes =
125
+ (typeof JOB_AVAILABILITY_TYPES)[keyof typeof JOB_AVAILABILITY_TYPES];
126
+ export type WageTypes = (typeof WAGE_TYPES)[keyof typeof WAGE_TYPES];
108
127
  export type PostType = (typeof POST_TYPES)[keyof typeof POST_TYPES];
109
128
  export type ActivityParentType =
110
129
  (typeof ACTIVITY_PARENT_TYPES)[keyof typeof ACTIVITY_PARENT_TYPES];
@@ -8,4 +8,5 @@ export * from "./discipline";
8
8
  export * from "./file";
9
9
  export * from "./username";
10
10
  export * from "./post";
11
- export * from "./entity-stats";
11
+ export * from "./entity-stats";
12
+ export * from "./job-application";
@@ -0,0 +1,33 @@
1
+ import z from "zod";
2
+ import {
3
+ EXPERIENCE_LEVELS,
4
+ ExperienceLevel,
5
+ JOB_AVAILABILITY_TYPES,
6
+ JobAvailabilityTypes,
7
+ WAGE_TYPES,
8
+ WageTypes,
9
+ } from "../constants";
10
+
11
+ export const CreateJobApplicationInputSchema = z.object({
12
+ firstName: z.string(),
13
+ lastName: z.string(),
14
+ emailAddress: z.email(),
15
+ phoneNumber: z.string().optional(),
16
+ currentRole: z.string(),
17
+ experienceLevel: z.enum(
18
+ Object.values(EXPERIENCE_LEVELS) as [ExperienceLevel, ...ExperienceLevel[]]
19
+ ),
20
+ resumeUrl: z.url(),
21
+ workSampleUrls: z.array(z.url()).optional(),
22
+ portfolioUrl: z.url().optional(),
23
+ coverLetterUrl: z.url().optional(),
24
+ receiveEmailUpdates: z.boolean(),
25
+ wagesAmount: z.boolean(),
26
+ wagesType: z.enum(Object.values(WAGE_TYPES) as [WageTypes, ...WageTypes[]]),
27
+ availability: z.enum(
28
+ Object.values(JOB_AVAILABILITY_TYPES) as [
29
+ JobAvailabilityTypes,
30
+ ...JobAvailabilityTypes[]
31
+ ]
32
+ ),
33
+ });
@@ -9,3 +9,4 @@ export * from "./user";
9
9
  export * from "./username";
10
10
  export * from "./entity-stats";
11
11
  export * from "./post";
12
+ export * from "./job-application"
@@ -0,0 +1,6 @@
1
+ import z from "zod";
2
+ import { CreateJobApplicationInputSchema } from "../schemas/job-application";
3
+
4
+ export type CreateJobApplicationInput = z.infer<
5
+ typeof CreateJobApplicationInputSchema
6
+ >;