@zyacreatives/shared 2.5.52 → 2.5.54

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.
@@ -18,10 +18,10 @@ declare const CreativeShape: z.ZodObject<{
18
18
  workExperience: z.ZodDefault<z.ZodArray<z.ZodObject<{
19
19
  companyName: z.ZodString;
20
20
  position: z.ZodString;
21
- startDate: z.ZodOptional<z.ZodString>;
22
- endDate: z.ZodOptional<z.ZodString>;
21
+ startDate: z.ZodOptional<z.ZodISODateTime>;
22
+ endDate: z.ZodOptional<z.ZodISODateTime>;
23
23
  currentlyWorking: z.ZodDefault<z.ZodBoolean>;
24
- description: z.ZodDefault<z.ZodString>;
24
+ description: z.ZodOptional<z.ZodString>;
25
25
  }, z.core.$strip>>>;
26
26
  links: z.ZodDefault<z.ZodArray<z.ZodObject<{
27
27
  url: z.ZodURL;
@@ -63,10 +63,10 @@ export declare const CreativeEntitySchema: z.ZodObject<{
63
63
  workExperience: z.ZodDefault<z.ZodArray<z.ZodObject<{
64
64
  companyName: z.ZodString;
65
65
  position: z.ZodString;
66
- startDate: z.ZodOptional<z.ZodString>;
67
- endDate: z.ZodOptional<z.ZodString>;
66
+ startDate: z.ZodOptional<z.ZodISODateTime>;
67
+ endDate: z.ZodOptional<z.ZodISODateTime>;
68
68
  currentlyWorking: z.ZodDefault<z.ZodBoolean>;
69
- description: z.ZodDefault<z.ZodString>;
69
+ description: z.ZodOptional<z.ZodString>;
70
70
  }, z.core.$strip>>>;
71
71
  links: z.ZodDefault<z.ZodArray<z.ZodObject<{
72
72
  url: z.ZodURL;
@@ -136,10 +136,10 @@ export declare const UpdateCreativeProfileInputSchema: z.ZodObject<{
136
136
  workExperience: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
137
137
  companyName: z.ZodString;
138
138
  position: z.ZodString;
139
- startDate: z.ZodOptional<z.ZodString>;
140
- endDate: z.ZodOptional<z.ZodString>;
139
+ startDate: z.ZodOptional<z.ZodISODateTime>;
140
+ endDate: z.ZodOptional<z.ZodISODateTime>;
141
141
  currentlyWorking: z.ZodDefault<z.ZodBoolean>;
142
- description: z.ZodDefault<z.ZodString>;
142
+ description: z.ZodOptional<z.ZodString>;
143
143
  }, z.core.$strip>>>>;
144
144
  links: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
145
145
  url: z.ZodURL;
@@ -202,10 +202,10 @@ export declare const CreateCreativeOutputSchema: z.ZodObject<{
202
202
  workExperience: z.ZodDefault<z.ZodArray<z.ZodObject<{
203
203
  companyName: z.ZodString;
204
204
  position: z.ZodString;
205
- startDate: z.ZodOptional<z.ZodString>;
206
- endDate: z.ZodOptional<z.ZodString>;
205
+ startDate: z.ZodOptional<z.ZodISODateTime>;
206
+ endDate: z.ZodOptional<z.ZodISODateTime>;
207
207
  currentlyWorking: z.ZodDefault<z.ZodBoolean>;
208
- description: z.ZodDefault<z.ZodString>;
208
+ description: z.ZodOptional<z.ZodString>;
209
209
  }, z.core.$strip>>>;
210
210
  links: z.ZodDefault<z.ZodArray<z.ZodObject<{
211
211
  url: z.ZodURL;
@@ -244,10 +244,10 @@ export declare const GetCreativeOutputSchema: z.ZodObject<{
244
244
  workExperience: z.ZodDefault<z.ZodArray<z.ZodObject<{
245
245
  companyName: z.ZodString;
246
246
  position: z.ZodString;
247
- startDate: z.ZodOptional<z.ZodString>;
248
- endDate: z.ZodOptional<z.ZodString>;
247
+ startDate: z.ZodOptional<z.ZodISODateTime>;
248
+ endDate: z.ZodOptional<z.ZodISODateTime>;
249
249
  currentlyWorking: z.ZodDefault<z.ZodBoolean>;
250
- description: z.ZodDefault<z.ZodString>;
250
+ description: z.ZodOptional<z.ZodString>;
251
251
  }, z.core.$strip>>>;
252
252
  links: z.ZodDefault<z.ZodArray<z.ZodObject<{
253
253
  url: z.ZodURL;
@@ -286,10 +286,10 @@ export declare const UpdateCreativeOutputSchema: z.ZodObject<{
286
286
  workExperience: z.ZodDefault<z.ZodArray<z.ZodObject<{
287
287
  companyName: z.ZodString;
288
288
  position: z.ZodString;
289
- startDate: z.ZodOptional<z.ZodString>;
290
- endDate: z.ZodOptional<z.ZodString>;
289
+ startDate: z.ZodOptional<z.ZodISODateTime>;
290
+ endDate: z.ZodOptional<z.ZodISODateTime>;
291
291
  currentlyWorking: z.ZodDefault<z.ZodBoolean>;
292
- description: z.ZodDefault<z.ZodString>;
292
+ description: z.ZodOptional<z.ZodString>;
293
293
  }, z.core.$strip>>>;
294
294
  links: z.ZodDefault<z.ZodArray<z.ZodObject<{
295
295
  url: z.ZodURL;
@@ -20,10 +20,10 @@ const CreativeShape = zod_openapi_1.z.object({
20
20
  .array(zod_openapi_1.z.object({
21
21
  companyName: zod_openapi_1.z.string(),
22
22
  position: zod_openapi_1.z.string(),
23
- startDate: zod_openapi_1.z.string().datetime().optional(),
24
- endDate: zod_openapi_1.z.string().datetime().optional(),
23
+ startDate: zod_openapi_1.z.iso.datetime().optional(),
24
+ endDate: zod_openapi_1.z.iso.datetime().optional(),
25
25
  currentlyWorking: zod_openapi_1.z.boolean().default(false),
26
- description: zod_openapi_1.z.string().default(""),
26
+ description: zod_openapi_1.z.string().optional(),
27
27
  }))
28
28
  .default([]),
29
29
  links: zod_openapi_1.z
@@ -176,10 +176,10 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
176
176
  workExperience: z.ZodDefault<z.ZodArray<z.ZodObject<{
177
177
  companyName: z.ZodString;
178
178
  position: z.ZodString;
179
- startDate: z.ZodOptional<z.ZodString>;
180
- endDate: z.ZodOptional<z.ZodString>;
179
+ startDate: z.ZodOptional<z.ZodISODateTime>;
180
+ endDate: z.ZodOptional<z.ZodISODateTime>;
181
181
  currentlyWorking: z.ZodDefault<z.ZodBoolean>;
182
- description: z.ZodDefault<z.ZodString>;
182
+ description: z.ZodOptional<z.ZodString>;
183
183
  }, z.core.$strip>>>;
184
184
  links: z.ZodDefault<z.ZodArray<z.ZodObject<{
185
185
  url: z.ZodURL;
@@ -832,6 +832,17 @@ export declare const UserWithProductsEntitySchema: z.ZodObject<{
832
832
  }, z.core.$strip>>;
833
833
  }, z.core.$strip>;
834
834
  export type UserWithProductsEntity = z.infer<typeof UserWithProductsEntitySchema>;
835
+ export declare const UserAuthStatusEntitySchema: z.ZodObject<{
836
+ exists: z.ZodBoolean;
837
+ isOAuthOnly: z.ZodBoolean;
838
+ providers: z.ZodArray<z.ZodString>;
839
+ }, z.core.$strip>;
840
+ export declare const UserWithJobBookmarksInputSchema: z.ZodObject<{
841
+ cursor: z.ZodOptional<z.ZodString>;
842
+ limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
843
+ }, z.core.$strip>;
844
+ export type UserAuthStatusEntity = z.infer<typeof UserAuthStatusEntitySchema>;
845
+ export type UserWithJobBookmarksInput = z.infer<typeof UserWithJobBookmarksEntitySchema>;
835
846
  /**
836
847
  * --------------------------------
837
848
  * FOLLOW SYSTEM
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserSearchDocumentSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.UserWithProductsEntitySchema = exports.UserWithPostBookmarksEntitySchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithJobBookmarksEntitySchema = exports.UserWithPostLikesEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithPostsEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserStatsEntitySchema = exports.UserProfileEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
3
+ exports.UserSearchDocumentSchema = exports.GetUserActivityOutputSchema = exports.GetUserActivityInputSchema = exports.SearchUsersOutputSchema = exports.SearchUsersInputSchema = exports.UserWithFollowersEntitySchema = exports.UserWithFollowingEntitySchema = exports.UserWithJobBookmarksInputSchema = exports.UserAuthStatusEntitySchema = exports.UserWithProductsEntitySchema = exports.UserWithPostBookmarksEntitySchema = exports.UserWithProjectBookmarksEntitySchema = exports.UserWithJobBookmarksEntitySchema = exports.UserWithPostLikesEntitySchema = exports.UserWithProjectLikesEntitySchema = exports.UserWithPostsEntitySchema = exports.UserWithProjectsEntitySchema = exports.UserStatsEntitySchema = exports.UserProfileEntitySchema = exports.MinimalUserSchema = exports.UserEntitySchema = void 0;
4
4
  const zod_openapi_1 = require("@hono/zod-openapi");
5
5
  const constants_1 = require("../constants");
6
6
  const project_1 = require("./project");
@@ -130,6 +130,15 @@ exports.UserWithProductsEntitySchema = zod_openapi_1.z.object({
130
130
  userId: zod_openapi_1.z.cuid2(),
131
131
  products: zod_openapi_1.z.array(product_1.ProductEntitySchema),
132
132
  });
133
+ exports.UserAuthStatusEntitySchema = zod_openapi_1.z.object({
134
+ exists: zod_openapi_1.z.boolean(),
135
+ isOAuthOnly: zod_openapi_1.z.boolean(),
136
+ providers: zod_openapi_1.z.array(zod_openapi_1.z.string()),
137
+ });
138
+ exports.UserWithJobBookmarksInputSchema = zod_openapi_1.z.object({
139
+ cursor: zod_openapi_1.z.string().optional(),
140
+ limit: zod_openapi_1.z.coerce.number().int().positive().optional(),
141
+ });
133
142
  /**
134
143
  * --------------------------------
135
144
  * FOLLOW SYSTEM
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.52",
3
+ "version": "2.5.54",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,10 +23,10 @@ const CreativeShape = z.object({
23
23
  z.object({
24
24
  companyName: z.string(),
25
25
  position: z.string(),
26
- startDate: z.string().datetime().optional(),
27
- endDate: z.string().datetime().optional(),
26
+ startDate: z.iso.datetime().optional(),
27
+ endDate: z.iso.datetime().optional(),
28
28
  currentlyWorking: z.boolean().default(false),
29
- description: z.string().default(""),
29
+ description: z.string().optional(),
30
30
  }),
31
31
  )
32
32
  .default([]),
@@ -212,6 +212,22 @@ export type UserWithProductsEntity = z.infer<
212
212
  typeof UserWithProductsEntitySchema
213
213
  >;
214
214
 
215
+ export const UserAuthStatusEntitySchema = z.object({
216
+ exists: z.boolean(),
217
+ isOAuthOnly: z.boolean(),
218
+ providers: z.array(z.string()),
219
+ });
220
+
221
+ export const UserWithJobBookmarksInputSchema = z.object({
222
+ cursor: z.string().optional(),
223
+ limit: z.coerce.number().int().positive().optional(),
224
+ });
225
+
226
+ export type UserAuthStatusEntity = z.infer<typeof UserAuthStatusEntitySchema>;
227
+ export type UserWithJobBookmarksInput = z.infer<
228
+ typeof UserWithJobBookmarksEntitySchema
229
+ >;
230
+
215
231
  /**
216
232
  * --------------------------------
217
233
  * FOLLOW SYSTEM