@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.
- package/dist/schemas/creative.d.ts +18 -18
- package/dist/schemas/creative.js +3 -3
- package/dist/schemas/user.d.ts +14 -3
- package/dist/schemas/user.js +10 -1
- package/package.json +1 -1
- package/src/schemas/creative.ts +3 -3
- package/src/schemas/user.ts +16 -0
|
@@ -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.
|
|
22
|
-
endDate: z.ZodOptional<z.
|
|
21
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
22
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
23
23
|
currentlyWorking: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
-
description: z.
|
|
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.
|
|
67
|
-
endDate: z.ZodOptional<z.
|
|
66
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
67
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
68
68
|
currentlyWorking: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
-
description: z.
|
|
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.
|
|
140
|
-
endDate: z.ZodOptional<z.
|
|
139
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
140
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
141
141
|
currentlyWorking: z.ZodDefault<z.ZodBoolean>;
|
|
142
|
-
description: z.
|
|
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.
|
|
206
|
-
endDate: z.ZodOptional<z.
|
|
205
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
206
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
207
207
|
currentlyWorking: z.ZodDefault<z.ZodBoolean>;
|
|
208
|
-
description: z.
|
|
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.
|
|
248
|
-
endDate: z.ZodOptional<z.
|
|
247
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
248
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
249
249
|
currentlyWorking: z.ZodDefault<z.ZodBoolean>;
|
|
250
|
-
description: z.
|
|
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.
|
|
290
|
-
endDate: z.ZodOptional<z.
|
|
289
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
290
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
291
291
|
currentlyWorking: z.ZodDefault<z.ZodBoolean>;
|
|
292
|
-
description: z.
|
|
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;
|
package/dist/schemas/creative.js
CHANGED
|
@@ -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.
|
|
24
|
-
endDate: zod_openapi_1.z.
|
|
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().
|
|
26
|
+
description: zod_openapi_1.z.string().optional(),
|
|
27
27
|
}))
|
|
28
28
|
.default([]),
|
|
29
29
|
links: zod_openapi_1.z
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -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.
|
|
180
|
-
endDate: z.ZodOptional<z.
|
|
179
|
+
startDate: z.ZodOptional<z.ZodISODateTime>;
|
|
180
|
+
endDate: z.ZodOptional<z.ZodISODateTime>;
|
|
181
181
|
currentlyWorking: z.ZodDefault<z.ZodBoolean>;
|
|
182
|
-
description: z.
|
|
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
|
package/dist/schemas/user.js
CHANGED
|
@@ -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
package/src/schemas/creative.ts
CHANGED
|
@@ -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.
|
|
27
|
-
endDate: z.
|
|
26
|
+
startDate: z.iso.datetime().optional(),
|
|
27
|
+
endDate: z.iso.datetime().optional(),
|
|
28
28
|
currentlyWorking: z.boolean().default(false),
|
|
29
|
-
description: z.string().
|
|
29
|
+
description: z.string().optional(),
|
|
30
30
|
}),
|
|
31
31
|
)
|
|
32
32
|
.default([]),
|
package/src/schemas/user.ts
CHANGED
|
@@ -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
|