@zyacreatives/shared 2.2.13 → 2.2.14
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/project.d.ts +14 -20
- package/dist/schemas/project.js +1 -6
- package/dist/schemas/user.d.ts +6 -6
- package/package.json +1 -1
- package/src/schemas/project.ts +1 -7
|
@@ -6,7 +6,7 @@ export declare const ProjectEntitySchema: z.ZodObject<{
|
|
|
6
6
|
description: z.ZodOptional<z.ZodString>;
|
|
7
7
|
overview: z.ZodOptional<z.ZodString>;
|
|
8
8
|
url: z.ZodOptional<z.ZodString>;
|
|
9
|
-
imagePlaceholderUrl: z.
|
|
9
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
10
10
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
11
|
projectCreatorType: z.ZodEnum<{
|
|
12
12
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -73,7 +73,7 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
|
|
|
73
73
|
description: z.ZodOptional<z.ZodString>;
|
|
74
74
|
overview: z.ZodOptional<z.ZodString>;
|
|
75
75
|
url: z.ZodOptional<z.ZodString>;
|
|
76
|
-
imagePlaceholderUrl: z.
|
|
76
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
77
77
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
78
78
|
projectCreatorType: z.ZodEnum<{
|
|
79
79
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -208,12 +208,6 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
|
|
|
208
208
|
readonly ZAR: "ZAR (South African Rand)";
|
|
209
209
|
}>>;
|
|
210
210
|
currentTraction: z.ZodOptional<z.ZodString>;
|
|
211
|
-
files: z.ZodArray<z.ZodObject<{
|
|
212
|
-
key: z.ZodString;
|
|
213
|
-
mimeType: z.ZodString;
|
|
214
|
-
isPlaceholder: z.ZodDefault<z.ZodBoolean>;
|
|
215
|
-
order: z.ZodDefault<z.ZodInt>;
|
|
216
|
-
}, z.core.$strip>>;
|
|
217
211
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
218
212
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
219
213
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
@@ -227,7 +221,7 @@ export declare const CreateProjectOutputSchema: z.ZodObject<{
|
|
|
227
221
|
description: z.ZodOptional<z.ZodString>;
|
|
228
222
|
overview: z.ZodOptional<z.ZodString>;
|
|
229
223
|
url: z.ZodOptional<z.ZodString>;
|
|
230
|
-
imagePlaceholderUrl: z.
|
|
224
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
231
225
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
232
226
|
projectCreatorType: z.ZodEnum<{
|
|
233
227
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -288,7 +282,7 @@ export declare const UpdateProjectOutputSchema: z.ZodObject<{
|
|
|
288
282
|
description: z.ZodOptional<z.ZodString>;
|
|
289
283
|
overview: z.ZodOptional<z.ZodString>;
|
|
290
284
|
url: z.ZodOptional<z.ZodString>;
|
|
291
|
-
imagePlaceholderUrl: z.
|
|
285
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
292
286
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
293
287
|
projectCreatorType: z.ZodEnum<{
|
|
294
288
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -349,7 +343,7 @@ export declare const DeleteProjectOutputSchema: z.ZodObject<{
|
|
|
349
343
|
description: z.ZodOptional<z.ZodString>;
|
|
350
344
|
overview: z.ZodOptional<z.ZodString>;
|
|
351
345
|
url: z.ZodOptional<z.ZodString>;
|
|
352
|
-
imagePlaceholderUrl: z.
|
|
346
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
353
347
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
354
348
|
projectCreatorType: z.ZodEnum<{
|
|
355
349
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -410,7 +404,7 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
|
|
|
410
404
|
description: z.ZodOptional<z.ZodString>;
|
|
411
405
|
overview: z.ZodOptional<z.ZodString>;
|
|
412
406
|
url: z.ZodOptional<z.ZodString>;
|
|
413
|
-
imagePlaceholderUrl: z.
|
|
407
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
414
408
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
415
409
|
projectCreatorType: z.ZodEnum<{
|
|
416
410
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -486,7 +480,7 @@ export declare const MinimalProjectSchema: z.ZodObject<{
|
|
|
486
480
|
id: z.ZodString;
|
|
487
481
|
description: z.ZodOptional<z.ZodString>;
|
|
488
482
|
title: z.ZodString;
|
|
489
|
-
imagePlaceholderUrl: z.
|
|
483
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
490
484
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
491
485
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
492
486
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -502,7 +496,7 @@ export declare const SearchProjectsOutputSchema: z.ZodObject<{
|
|
|
502
496
|
id: z.ZodString;
|
|
503
497
|
description: z.ZodOptional<z.ZodString>;
|
|
504
498
|
title: z.ZodString;
|
|
505
|
-
imagePlaceholderUrl: z.
|
|
499
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
506
500
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
507
501
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
508
502
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -513,7 +507,7 @@ export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
|
|
|
513
507
|
id: z.ZodString;
|
|
514
508
|
description: z.ZodOptional<z.ZodString>;
|
|
515
509
|
title: z.ZodString;
|
|
516
|
-
imagePlaceholderUrl: z.
|
|
510
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
517
511
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
518
512
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
519
513
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -540,7 +534,7 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
|
|
|
540
534
|
id: z.ZodString;
|
|
541
535
|
description: z.ZodOptional<z.ZodString>;
|
|
542
536
|
title: z.ZodString;
|
|
543
|
-
imagePlaceholderUrl: z.
|
|
537
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
544
538
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
545
539
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
546
540
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -573,7 +567,7 @@ export declare const ProjectWithLikesEntitySchema: z.ZodObject<{
|
|
|
573
567
|
id: z.ZodString;
|
|
574
568
|
description: z.ZodOptional<z.ZodString>;
|
|
575
569
|
title: z.ZodString;
|
|
576
|
-
imagePlaceholderUrl: z.
|
|
570
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
577
571
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
578
572
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
579
573
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -598,7 +592,7 @@ export declare const ProjectWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
598
592
|
id: z.ZodString;
|
|
599
593
|
description: z.ZodOptional<z.ZodString>;
|
|
600
594
|
title: z.ZodString;
|
|
601
|
-
imagePlaceholderUrl: z.
|
|
595
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
602
596
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
603
597
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
604
598
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -621,7 +615,7 @@ export declare const GetProjectWithCommentsOutputSchema: z.ZodObject<{
|
|
|
621
615
|
id: z.ZodString;
|
|
622
616
|
description: z.ZodOptional<z.ZodString>;
|
|
623
617
|
title: z.ZodString;
|
|
624
|
-
imagePlaceholderUrl: z.
|
|
618
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
625
619
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
626
620
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
627
621
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -655,7 +649,7 @@ export declare const GetProjectWithLikesOutputSchema: z.ZodObject<{
|
|
|
655
649
|
id: z.ZodString;
|
|
656
650
|
description: z.ZodOptional<z.ZodString>;
|
|
657
651
|
title: z.ZodString;
|
|
658
|
-
imagePlaceholderUrl: z.
|
|
652
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
659
653
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
660
654
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
661
655
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
package/dist/schemas/project.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GetProjectWithLikesOutputSchema = exports.GetProjectWithCommentsOutputSchema = exports.ProjectWithProjectBookmarksEntitySchema = exports.ProjectWithLikesEntitySchema = exports.ProjectWithProjectCommentsEntitySchema = exports.ProjectWithProjectViewsEntitySchema = exports.SearchProjectsOutputSchema = exports.SearchProjectsInputSchema = exports.MinimalProjectSchema = exports.ProjectIdSchema = exports.GetProjectOutputSchema = exports.DeleteProjectOutputSchema = exports.UpdateProjectOutputSchema = exports.CreateProjectOutputSchema = exports.UpdateProjectInputSchema = exports.CreateProjectInputSchema = exports.ProjectUpdateOutputEntitySchema = exports.ProjectDetailsEntitySchema = exports.ProjectSocialGraphEntitySchema = exports.ProjectEntitySchema = void 0;
|
|
4
4
|
const zod_openapi_1 = require("@hono/zod-openapi");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
|
-
const file_1 = require("./file");
|
|
7
6
|
const comment_1 = require("./comment");
|
|
8
7
|
const bookmark_1 = require("./bookmark");
|
|
9
8
|
const view_1 = require("./view");
|
|
@@ -35,7 +34,7 @@ exports.ProjectEntitySchema = zod_openapi_1.z
|
|
|
35
34
|
description: "URL to the project or live demo.",
|
|
36
35
|
example: "https://example.com/project",
|
|
37
36
|
}),
|
|
38
|
-
imagePlaceholderUrl: zod_openapi_1.z.
|
|
37
|
+
imagePlaceholderUrl: zod_openapi_1.z.url().openapi({
|
|
39
38
|
description: "URL for the placeholder image of the project.",
|
|
40
39
|
example: "https://img.com",
|
|
41
40
|
}),
|
|
@@ -161,10 +160,6 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
|
|
|
161
160
|
capitalLookingToRaise: zod_openapi_1.z.string().optional(),
|
|
162
161
|
capitalLookingToRaiseCurrency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY).optional(),
|
|
163
162
|
currentTraction: zod_openapi_1.z.string().max(600).optional(),
|
|
164
|
-
files: zod_openapi_1.z.array(file_1.CreateFileInputSchema.extend({
|
|
165
|
-
isPlaceholder: zod_openapi_1.z.boolean().default(false),
|
|
166
|
-
order: zod_openapi_1.z.int().default(1),
|
|
167
|
-
})),
|
|
168
163
|
startDate: zod_openapi_1.z.coerce.date().optional(),
|
|
169
164
|
endDate: zod_openapi_1.z.coerce.date().optional(),
|
|
170
165
|
createdAt: zod_openapi_1.z.date().optional(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -217,7 +217,7 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
217
217
|
url: z.ZodOptional<z.ZodString>;
|
|
218
218
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
219
219
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
220
|
-
imagePlaceholderUrl: z.
|
|
220
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
221
221
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
222
222
|
projectCreatorType: z.ZodEnum<{
|
|
223
223
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -289,7 +289,7 @@ export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
|
|
|
289
289
|
id: z.ZodString;
|
|
290
290
|
description: z.ZodOptional<z.ZodString>;
|
|
291
291
|
title: z.ZodString;
|
|
292
|
-
imagePlaceholderUrl: z.
|
|
292
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
293
293
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
294
294
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
295
295
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -369,7 +369,7 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
369
369
|
id: z.ZodString;
|
|
370
370
|
description: z.ZodOptional<z.ZodString>;
|
|
371
371
|
title: z.ZodString;
|
|
372
|
-
imagePlaceholderUrl: z.
|
|
372
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
373
373
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
374
374
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
375
375
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -733,7 +733,7 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
|
733
733
|
url: z.ZodOptional<z.ZodString>;
|
|
734
734
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
735
735
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
736
|
-
imagePlaceholderUrl: z.
|
|
736
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
737
737
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
738
738
|
projectCreatorType: z.ZodEnum<{
|
|
739
739
|
readonly CREATIVE: "CREATIVE";
|
|
@@ -805,7 +805,7 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
|
|
|
805
805
|
id: z.ZodString;
|
|
806
806
|
description: z.ZodOptional<z.ZodString>;
|
|
807
807
|
title: z.ZodString;
|
|
808
|
-
imagePlaceholderUrl: z.
|
|
808
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
809
809
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
810
810
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
811
811
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
@@ -887,7 +887,7 @@ export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObje
|
|
|
887
887
|
id: z.ZodString;
|
|
888
888
|
description: z.ZodOptional<z.ZodString>;
|
|
889
889
|
title: z.ZodString;
|
|
890
|
-
imagePlaceholderUrl: z.
|
|
890
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
891
891
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
892
892
|
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
893
893
|
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
package/package.json
CHANGED
package/src/schemas/project.ts
CHANGED
|
@@ -40,7 +40,7 @@ export const ProjectEntitySchema = z
|
|
|
40
40
|
description: "URL to the project or live demo.",
|
|
41
41
|
example: "https://example.com/project",
|
|
42
42
|
}),
|
|
43
|
-
imagePlaceholderUrl: z.
|
|
43
|
+
imagePlaceholderUrl: z.url().openapi({
|
|
44
44
|
description: "URL for the placeholder image of the project.",
|
|
45
45
|
example: "https://img.com",
|
|
46
46
|
}),
|
|
@@ -172,12 +172,6 @@ export const UpdateProjectInputSchema = z
|
|
|
172
172
|
capitalLookingToRaise: z.string().optional(),
|
|
173
173
|
capitalLookingToRaiseCurrency: z.enum(WAGES_CURRENCY).optional(),
|
|
174
174
|
currentTraction: z.string().max(600).optional(),
|
|
175
|
-
files: z.array(
|
|
176
|
-
CreateFileInputSchema.extend({
|
|
177
|
-
isPlaceholder: z.boolean().default(false),
|
|
178
|
-
order: z.int().default(1),
|
|
179
|
-
}),
|
|
180
|
-
),
|
|
181
175
|
startDate: z.coerce.date().optional(),
|
|
182
176
|
endDate: z.coerce.date().optional(),
|
|
183
177
|
createdAt: z.date().optional(),
|