@zyacreatives/shared 2.1.24 → 2.1.26

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.
@@ -207,6 +207,7 @@ export declare const APPLICATION_STATUS: {
207
207
  readonly SENT: "Application Sent";
208
208
  readonly OPENED: "Opened";
209
209
  readonly REJECTED: "Rejected";
210
+ readonly DECLINED: "Declined";
210
211
  readonly OFFERED: "Offered";
211
212
  readonly HIRED: "Hired";
212
213
  };
package/dist/constants.js CHANGED
@@ -209,6 +209,7 @@ exports.APPLICATION_STATUS = {
209
209
  SENT: "Application Sent",
210
210
  OPENED: "Opened",
211
211
  REJECTED: "Rejected",
212
+ DECLINED: "Declined",
212
213
  OFFERED: "Offered",
213
214
  HIRED: "Hired",
214
215
  };
@@ -21,6 +21,7 @@ export declare const MinimalJobApplicationEntitySchema: z.ZodObject<{
21
21
  "Application Sent": "Application Sent";
22
22
  Opened: "Opened";
23
23
  Rejected: "Rejected";
24
+ Declined: "Declined";
24
25
  Offered: "Offered";
25
26
  Hired: "Hired";
26
27
  }>;
@@ -61,11 +62,12 @@ export declare const BaseJobApplicationEntitySchema: z.ZodObject<{
61
62
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
62
63
  }, z.core.$strip>>>;
63
64
  applicationStatus: z.ZodEnum<{
64
- readonly SENT: "Application Sent";
65
- readonly OPENED: "Opened";
66
- readonly REJECTED: "Rejected";
67
- readonly OFFERED: "Offered";
68
- readonly HIRED: "Hired";
65
+ "Application Sent": "Application Sent";
66
+ Opened: "Opened";
67
+ Rejected: "Rejected";
68
+ Declined: "Declined";
69
+ Offered: "Offered";
70
+ Hired: "Hired";
69
71
  }>;
70
72
  linkUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
71
73
  url: z.ZodURL;
@@ -117,6 +119,7 @@ export declare const JobApplicationEntitySchema: z.ZodObject<{
117
119
  "Application Sent": "Application Sent";
118
120
  Opened: "Opened";
119
121
  Rejected: "Rejected";
122
+ Declined: "Declined";
120
123
  Offered: "Offered";
121
124
  Hired: "Hired";
122
125
  }>>;
@@ -170,7 +173,7 @@ export declare const CreateJobApplicationInputSchema: z.ZodObject<{
170
173
  readonly FLEXIBLE: "Flexible";
171
174
  }>>;
172
175
  wagesAmount: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
173
- receiveEmailUpdates: z.ZodDefault<z.ZodBoolean>;
176
+ receiveEmailUpdates: z.ZodOptional<z.ZodBoolean>;
174
177
  workSampleUrls: z.ZodOptional<z.ZodArray<z.ZodObject<{
175
178
  url: z.ZodURL;
176
179
  name: z.ZodOptional<z.ZodString>;
@@ -194,6 +197,7 @@ export declare const TrackedJobApplicationEntitySchema: z.ZodObject<{
194
197
  "Application Sent": "Application Sent";
195
198
  Opened: "Opened";
196
199
  Rejected: "Rejected";
200
+ Declined: "Declined";
197
201
  Offered: "Offered";
198
202
  Hired: "Hired";
199
203
  }>;
@@ -437,7 +441,7 @@ export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
437
441
  readonly FLEXIBLE: "Flexible";
438
442
  }>>>;
439
443
  wagesAmount: z.ZodOptional<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
440
- receiveEmailUpdates: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
444
+ receiveEmailUpdates: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
441
445
  workSampleUrls: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
442
446
  url: z.ZodURL;
443
447
  name: z.ZodOptional<z.ZodString>;
@@ -455,11 +459,12 @@ export declare const UpdateJobApplicationInputSchema: z.ZodObject<{
455
459
  }, z.core.$strip>>>>;
456
460
  id: z.ZodCUID2;
457
461
  applicationStatus: z.ZodOptional<z.ZodEnum<{
458
- readonly SENT: "Application Sent";
459
- readonly OPENED: "Opened";
460
- readonly REJECTED: "Rejected";
461
- readonly OFFERED: "Offered";
462
- readonly HIRED: "Hired";
462
+ "Application Sent": "Application Sent";
463
+ Opened: "Opened";
464
+ Rejected: "Rejected";
465
+ Declined: "Declined";
466
+ Offered: "Offered";
467
+ Hired: "Hired";
463
468
  }>>;
464
469
  }, z.core.$strip>;
465
470
  export declare const GetTrackedJobApplicationsInputSchema: z.ZodObject<{
@@ -468,6 +473,7 @@ export declare const GetTrackedJobApplicationsInputSchema: z.ZodObject<{
468
473
  "Application Sent": "Application Sent";
469
474
  Opened: "Opened";
470
475
  Rejected: "Rejected";
476
+ Declined: "Declined";
471
477
  Offered: "Offered";
472
478
  Hired: "Hired";
473
479
  }>>;
@@ -486,6 +492,7 @@ export declare const GetTrackedJobApplicationsOutputSchema: z.ZodObject<{
486
492
  "Application Sent": "Application Sent";
487
493
  Opened: "Opened";
488
494
  Rejected: "Rejected";
495
+ Declined: "Declined";
489
496
  Offered: "Offered";
490
497
  Hired: "Hired";
491
498
  }>;
@@ -42,7 +42,7 @@ exports.BaseJobApplicationEntitySchema = zod_openapi_1.z.object({
42
42
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
43
43
  }))
44
44
  .optional(),
45
- applicationStatus: zod_openapi_1.z.enum(constants_1.APPLICATION_STATUS),
45
+ applicationStatus: zod_openapi_1.z.enum(Object.values(constants_1.APPLICATION_STATUS)),
46
46
  linkUrls: zod_openapi_1.z
47
47
  .array(zod_openapi_1.z.object({
48
48
  url: zod_openapi_1.z.url(),
@@ -115,7 +115,7 @@ exports.CreateJobApplicationInputSchema = zod_openapi_1.z.object({
115
115
  coverLetter: zod_openapi_1.z.string().optional(),
116
116
  availability: zod_openapi_1.z.enum(constants_1.JOB_AVAILABILITY_TYPES).optional(),
117
117
  wagesAmount: zod_openapi_1.z.coerce.number().optional(),
118
- receiveEmailUpdates: zod_openapi_1.z.boolean().default(false),
118
+ receiveEmailUpdates: zod_openapi_1.z.boolean().optional(),
119
119
  workSampleUrls: zod_openapi_1.z
120
120
  .array(zod_openapi_1.z.object({
121
121
  url: zod_openapi_1.z.url(),
@@ -143,7 +143,9 @@ exports.TrackedJobApplicationEntitySchema = zod_openapi_1.z.object({
143
143
  });
144
144
  exports.UpdateJobApplicationInputSchema = exports.CreateJobApplicationInputSchema.partial().extend({
145
145
  id: zod_openapi_1.z.cuid2(),
146
- applicationStatus: zod_openapi_1.z.enum(constants_1.APPLICATION_STATUS).optional(),
146
+ applicationStatus: zod_openapi_1.z
147
+ .enum(Object.values(constants_1.APPLICATION_STATUS))
148
+ .optional(),
147
149
  });
148
150
  exports.GetTrackedJobApplicationsInputSchema = zod_openapi_1.z.object({
149
151
  query: zod_openapi_1.z.string().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.1.24",
3
+ "version": "2.1.26",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -233,6 +233,7 @@ export const APPLICATION_STATUS = {
233
233
  SENT: "Application Sent",
234
234
  OPENED: "Opened",
235
235
  REJECTED: "Rejected",
236
+ DECLINED: "Declined",
236
237
  OFFERED: "Offered",
237
238
  HIRED: "Hired",
238
239
  } as const;
@@ -66,7 +66,12 @@ export const BaseJobApplicationEntitySchema = z.object({
66
66
  )
67
67
  .optional(),
68
68
 
69
- applicationStatus: z.enum(APPLICATION_STATUS),
69
+ applicationStatus: z.enum(
70
+ Object.values(APPLICATION_STATUS) as [
71
+ ApplicationStatus,
72
+ ...ApplicationStatus[]
73
+ ]
74
+ ),
70
75
 
71
76
  linkUrls: z
72
77
  .array(
@@ -173,7 +178,7 @@ export const CreateJobApplicationInputSchema = z.object({
173
178
 
174
179
  availability: z.enum(JOB_AVAILABILITY_TYPES).optional(),
175
180
  wagesAmount: z.coerce.number().optional(),
176
- receiveEmailUpdates: z.boolean().default(false),
181
+ receiveEmailUpdates: z.boolean().optional(),
177
182
 
178
183
  workSampleUrls: z
179
184
  .array(
@@ -214,7 +219,14 @@ export const TrackedJobApplicationEntitySchema = z.object({
214
219
  export const UpdateJobApplicationInputSchema =
215
220
  CreateJobApplicationInputSchema.partial().extend({
216
221
  id: z.cuid2(),
217
- applicationStatus: z.enum(APPLICATION_STATUS).optional(),
222
+ applicationStatus: z
223
+ .enum(
224
+ Object.values(APPLICATION_STATUS) as [
225
+ ApplicationStatus,
226
+ ...ApplicationStatus[]
227
+ ]
228
+ )
229
+ .optional(),
218
230
  });
219
231
 
220
232
  export const GetTrackedJobApplicationsInputSchema = z.object({