@zyacreatives/shared 2.2.78 → 2.2.79
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/user.d.ts +457 -128
- package/dist/schemas/user.js +70 -54
- package/dist/types/user.d.ts +15 -11
- package/package.json +1 -1
- package/src/schemas/user.ts +93 -60
- package/src/types/user.ts +81 -35
package/dist/schemas/user.d.ts
CHANGED
|
@@ -46,11 +46,6 @@ export declare const MinimalUserSchema: z.ZodObject<{
|
|
|
46
46
|
ADMIN: "ADMIN";
|
|
47
47
|
}>;
|
|
48
48
|
}, z.core.$strip>;
|
|
49
|
-
export declare const UserStatsEntitySchema: z.ZodObject<{
|
|
50
|
-
followerCount: z.ZodInt;
|
|
51
|
-
followingCount: z.ZodInt;
|
|
52
|
-
followingIds: z.ZodArray<z.ZodCUID2>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
49
|
export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
55
50
|
id: z.ZodCUID2;
|
|
56
51
|
email: z.ZodEmail;
|
|
@@ -223,6 +218,11 @@ export declare const UserProfileEntitySchema: z.ZodObject<{
|
|
|
223
218
|
version: z.ZodInt;
|
|
224
219
|
}, z.core.$strip>;
|
|
225
220
|
}, z.core.$strip>;
|
|
221
|
+
export declare const UserStatsEntitySchema: z.ZodObject<{
|
|
222
|
+
followerCount: z.ZodInt;
|
|
223
|
+
followingCount: z.ZodInt;
|
|
224
|
+
followingIds: z.ZodArray<z.ZodCUID2>;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
226
|
export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
227
227
|
userId: z.ZodCUID2;
|
|
228
228
|
projects: z.ZodArray<z.ZodObject<{
|
|
@@ -287,35 +287,66 @@ export declare const UserWithProjectsEntitySchema: z.ZodObject<{
|
|
|
287
287
|
version: z.ZodNumber;
|
|
288
288
|
}, z.core.$strip>>;
|
|
289
289
|
}, z.core.$strip>;
|
|
290
|
-
export declare const
|
|
290
|
+
export declare const UserWithPostsEntitySchema: z.ZodObject<{
|
|
291
291
|
userId: z.ZodCUID2;
|
|
292
|
-
|
|
292
|
+
posts: z.ZodArray<z.ZodObject<{
|
|
293
293
|
id: z.ZodCUID2;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
parentId: z.ZodCUID2;
|
|
297
|
-
parentType: z.ZodEnum<{
|
|
294
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
295
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
298
296
|
readonly PROJECT: "PROJECT";
|
|
299
297
|
readonly USER: "USER";
|
|
300
298
|
readonly JOB: "JOB";
|
|
301
299
|
readonly POST: "POST";
|
|
302
300
|
readonly COMMENT: "COMMENT";
|
|
303
301
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
302
|
+
}>>;
|
|
303
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
304
|
+
name: z.ZodString;
|
|
305
|
+
id: z.ZodInt;
|
|
306
|
+
}, z.core.$strip>>>;
|
|
307
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
308
|
+
readonly NETWORKING: "Networking";
|
|
309
|
+
readonly FUNDING: "Funding";
|
|
310
|
+
readonly COLLABORATION: "Collaboration";
|
|
311
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
312
|
+
readonly SHOWCASE: "Showcase";
|
|
313
|
+
readonly LEARNING: "Learning";
|
|
314
|
+
readonly DISCUSSION: "Discussion";
|
|
315
|
+
readonly MENTORSHIP: "Mentorship";
|
|
316
|
+
}>>;
|
|
317
|
+
userId: z.ZodCUID2;
|
|
318
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
319
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
320
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
321
|
+
content: z.ZodOptional<z.ZodString>;
|
|
322
|
+
postType: z.ZodEnum<{
|
|
323
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
324
|
+
readonly PROJECT: "PROJECT";
|
|
325
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
326
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
327
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
328
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
329
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
304
330
|
}>;
|
|
305
|
-
|
|
306
|
-
|
|
331
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
332
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
333
|
+
url: z.ZodURL;
|
|
334
|
+
title: z.ZodOptional<z.ZodString>;
|
|
307
335
|
description: z.ZodOptional<z.ZodString>;
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
336
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
337
|
+
}, z.core.$strip>>;
|
|
338
|
+
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
+
id: z.ZodCUID2;
|
|
340
|
+
postId: z.ZodCUID2;
|
|
341
|
+
fileId: z.ZodCUID2;
|
|
342
|
+
order: z.ZodNumber;
|
|
343
|
+
url: z.ZodURL;
|
|
344
|
+
}, z.core.$strip>>>;
|
|
314
345
|
}, z.core.$strip>>;
|
|
315
346
|
}, z.core.$strip>;
|
|
316
|
-
export declare const
|
|
347
|
+
export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
|
|
317
348
|
userId: z.ZodCUID2;
|
|
318
|
-
|
|
349
|
+
projectLikes: z.ZodArray<z.ZodObject<{
|
|
319
350
|
id: z.ZodCUID2;
|
|
320
351
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
321
352
|
userId: z.ZodCUID2;
|
|
@@ -328,21 +359,20 @@ export declare const UserWithPostLikesEntitySchema: z.ZodObject<{
|
|
|
328
359
|
readonly COMMENT: "COMMENT";
|
|
329
360
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
330
361
|
}>;
|
|
331
|
-
|
|
362
|
+
project: z.ZodObject<{
|
|
332
363
|
id: z.ZodCUID2;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
tags: z.ZodOptional<z.ZodArray<z.
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}, z.core.$strip>>>;
|
|
364
|
+
description: z.ZodOptional<z.ZodString>;
|
|
365
|
+
title: z.ZodString;
|
|
366
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
367
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
368
|
+
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
369
|
+
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
340
370
|
}, z.core.$strip>;
|
|
341
371
|
}, z.core.$strip>>;
|
|
342
372
|
}, z.core.$strip>;
|
|
343
|
-
export declare const
|
|
373
|
+
export declare const UserWithPostLikesEntitySchema: z.ZodObject<{
|
|
344
374
|
userId: z.ZodCUID2;
|
|
345
|
-
|
|
375
|
+
postLikes: z.ZodArray<z.ZodObject<{
|
|
346
376
|
id: z.ZodCUID2;
|
|
347
377
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
348
378
|
userId: z.ZodCUID2;
|
|
@@ -474,23 +504,327 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
|
|
|
474
504
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
475
505
|
}>;
|
|
476
506
|
project: z.ZodObject<{
|
|
477
|
-
id: z.
|
|
478
|
-
|
|
507
|
+
id: z.ZodString;
|
|
508
|
+
userId: z.ZodString;
|
|
479
509
|
title: z.ZodString;
|
|
480
510
|
imagePlaceholderUrl: z.ZodURL;
|
|
511
|
+
projectCreatorType: z.ZodEnum<{
|
|
512
|
+
readonly CREATIVE: "CREATIVE";
|
|
513
|
+
readonly BRAND: "BRAND";
|
|
514
|
+
readonly INVESTOR: "INVESTOR";
|
|
515
|
+
readonly ADMIN: "ADMIN";
|
|
516
|
+
}>;
|
|
517
|
+
createdAt: z.ZodNumber;
|
|
518
|
+
updatedAt: z.ZodNumber;
|
|
519
|
+
description: z.ZodOptional<z.ZodString>;
|
|
520
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodString>;
|
|
521
|
+
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
522
|
+
readonly USD: "USD (United States Dollar)";
|
|
523
|
+
readonly EUR: "EUR (Euro)";
|
|
524
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
525
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
526
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
527
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
528
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
529
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
530
|
+
readonly INR: "INR (Indian Rupee)";
|
|
531
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
532
|
+
}>>;
|
|
533
|
+
ventureStage: z.ZodOptional<z.ZodEnum<{
|
|
534
|
+
readonly IDEA: "Idea";
|
|
535
|
+
readonly PRE_SEED: "Pre Seed";
|
|
536
|
+
readonly MVP: "MVP";
|
|
537
|
+
readonly SEED: "Seed";
|
|
538
|
+
readonly SERIES_A: "Series A";
|
|
539
|
+
readonly SERIES_B: "Series B";
|
|
540
|
+
readonly SERIES_C: "Series C";
|
|
541
|
+
readonly GROWTH: "Growth";
|
|
542
|
+
readonly EXIT: "Exit";
|
|
543
|
+
}>>;
|
|
544
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
481
545
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
482
|
-
|
|
483
|
-
|
|
546
|
+
creatorUsername: z.ZodString;
|
|
547
|
+
creatorImageUrl: z.ZodString;
|
|
548
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
549
|
+
clientType: z.ZodOptional<z.ZodEnum<{
|
|
550
|
+
readonly CREATIVE: "CREATIVE";
|
|
551
|
+
readonly BRAND: "BRAND";
|
|
552
|
+
readonly NONE: "NONE";
|
|
553
|
+
}>>;
|
|
554
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
555
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
556
|
+
startDate: z.ZodOptional<z.ZodNumber>;
|
|
557
|
+
endDate: z.ZodOptional<z.ZodNumber>;
|
|
484
558
|
}, z.core.$strip>;
|
|
485
559
|
}, z.core.$strip>>;
|
|
486
560
|
}, z.core.$strip>;
|
|
487
|
-
export declare const
|
|
488
|
-
|
|
489
|
-
|
|
561
|
+
export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
|
|
562
|
+
userId: z.ZodCUID2;
|
|
563
|
+
postBookmarks: z.ZodArray<z.ZodObject<{
|
|
564
|
+
id: z.ZodCUID2;
|
|
565
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
566
|
+
userId: z.ZodCUID2;
|
|
567
|
+
parentId: z.ZodCUID2;
|
|
568
|
+
parentType: z.ZodEnum<{
|
|
569
|
+
readonly PROJECT: "PROJECT";
|
|
570
|
+
readonly USER: "USER";
|
|
571
|
+
readonly JOB: "JOB";
|
|
572
|
+
readonly POST: "POST";
|
|
573
|
+
readonly COMMENT: "COMMENT";
|
|
574
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
575
|
+
}>;
|
|
576
|
+
post: z.ZodObject<{
|
|
577
|
+
id: z.ZodCUID2;
|
|
578
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
579
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
580
|
+
readonly PROJECT: "PROJECT";
|
|
581
|
+
readonly USER: "USER";
|
|
582
|
+
readonly JOB: "JOB";
|
|
583
|
+
readonly POST: "POST";
|
|
584
|
+
readonly COMMENT: "COMMENT";
|
|
585
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
586
|
+
}>>;
|
|
587
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
588
|
+
name: z.ZodString;
|
|
589
|
+
id: z.ZodInt;
|
|
590
|
+
}, z.core.$strip>>>;
|
|
591
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
592
|
+
readonly NETWORKING: "Networking";
|
|
593
|
+
readonly FUNDING: "Funding";
|
|
594
|
+
readonly COLLABORATION: "Collaboration";
|
|
595
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
596
|
+
readonly SHOWCASE: "Showcase";
|
|
597
|
+
readonly LEARNING: "Learning";
|
|
598
|
+
readonly DISCUSSION: "Discussion";
|
|
599
|
+
readonly MENTORSHIP: "Mentorship";
|
|
600
|
+
}>>;
|
|
601
|
+
userId: z.ZodCUID2;
|
|
602
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
603
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
604
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
605
|
+
content: z.ZodOptional<z.ZodString>;
|
|
606
|
+
postType: z.ZodEnum<{
|
|
607
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
608
|
+
readonly PROJECT: "PROJECT";
|
|
609
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
610
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
611
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
612
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
613
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
614
|
+
}>;
|
|
615
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
616
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
617
|
+
url: z.ZodURL;
|
|
618
|
+
title: z.ZodOptional<z.ZodString>;
|
|
619
|
+
description: z.ZodOptional<z.ZodString>;
|
|
620
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
621
|
+
}, z.core.$strip>>;
|
|
622
|
+
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
623
|
+
id: z.ZodCUID2;
|
|
624
|
+
postId: z.ZodCUID2;
|
|
625
|
+
fileId: z.ZodCUID2;
|
|
626
|
+
order: z.ZodNumber;
|
|
627
|
+
url: z.ZodURL;
|
|
628
|
+
}, z.core.$strip>>>;
|
|
629
|
+
stats: z.ZodObject<{
|
|
630
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
631
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
632
|
+
parentId: z.ZodCUID2;
|
|
633
|
+
parentType: z.ZodEnum<{
|
|
634
|
+
readonly PROJECT: "PROJECT";
|
|
635
|
+
readonly USER: "USER";
|
|
636
|
+
readonly JOB: "JOB";
|
|
637
|
+
readonly POST: "POST";
|
|
638
|
+
readonly COMMENT: "COMMENT";
|
|
639
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
640
|
+
}>;
|
|
641
|
+
likesCount: z.ZodNumber;
|
|
642
|
+
bookmarksCount: z.ZodNumber;
|
|
643
|
+
viewsCount: z.ZodNumber;
|
|
644
|
+
commentsCount: z.ZodNumber;
|
|
645
|
+
}, z.core.$strip>;
|
|
646
|
+
score: z.ZodNumber;
|
|
647
|
+
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
648
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
649
|
+
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
650
|
+
}, z.core.$strip>;
|
|
651
|
+
}, z.core.$strip>>;
|
|
490
652
|
}, z.core.$strip>;
|
|
491
|
-
export declare const
|
|
492
|
-
|
|
493
|
-
|
|
653
|
+
export declare const GetUserWithProjectBookmarksInputSchema: z.ZodObject<{
|
|
654
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
655
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
656
|
+
}, z.core.$strip>;
|
|
657
|
+
export declare const GetUserWithPostBookmarksInputSchema: z.ZodObject<{
|
|
658
|
+
cursor: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
659
|
+
limit: z.ZodNullable<z.ZodOptional<z.ZodInt>>;
|
|
660
|
+
}, z.core.$strip>;
|
|
661
|
+
export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
662
|
+
bookmarks: z.ZodObject<{
|
|
663
|
+
userId: z.ZodCUID2;
|
|
664
|
+
projectBookmarks: z.ZodArray<z.ZodObject<{
|
|
665
|
+
id: z.ZodCUID2;
|
|
666
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
667
|
+
userId: z.ZodCUID2;
|
|
668
|
+
parentId: z.ZodCUID2;
|
|
669
|
+
parentType: z.ZodEnum<{
|
|
670
|
+
readonly PROJECT: "PROJECT";
|
|
671
|
+
readonly USER: "USER";
|
|
672
|
+
readonly JOB: "JOB";
|
|
673
|
+
readonly POST: "POST";
|
|
674
|
+
readonly COMMENT: "COMMENT";
|
|
675
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
676
|
+
}>;
|
|
677
|
+
project: z.ZodObject<{
|
|
678
|
+
id: z.ZodString;
|
|
679
|
+
userId: z.ZodString;
|
|
680
|
+
title: z.ZodString;
|
|
681
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
682
|
+
projectCreatorType: z.ZodEnum<{
|
|
683
|
+
readonly CREATIVE: "CREATIVE";
|
|
684
|
+
readonly BRAND: "BRAND";
|
|
685
|
+
readonly INVESTOR: "INVESTOR";
|
|
686
|
+
readonly ADMIN: "ADMIN";
|
|
687
|
+
}>;
|
|
688
|
+
createdAt: z.ZodNumber;
|
|
689
|
+
updatedAt: z.ZodNumber;
|
|
690
|
+
description: z.ZodOptional<z.ZodString>;
|
|
691
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodString>;
|
|
692
|
+
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
693
|
+
readonly USD: "USD (United States Dollar)";
|
|
694
|
+
readonly EUR: "EUR (Euro)";
|
|
695
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
696
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
697
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
698
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
699
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
700
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
701
|
+
readonly INR: "INR (Indian Rupee)";
|
|
702
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
703
|
+
}>>;
|
|
704
|
+
ventureStage: z.ZodOptional<z.ZodEnum<{
|
|
705
|
+
readonly IDEA: "Idea";
|
|
706
|
+
readonly PRE_SEED: "Pre Seed";
|
|
707
|
+
readonly MVP: "MVP";
|
|
708
|
+
readonly SEED: "Seed";
|
|
709
|
+
readonly SERIES_A: "Series A";
|
|
710
|
+
readonly SERIES_B: "Series B";
|
|
711
|
+
readonly SERIES_C: "Series C";
|
|
712
|
+
readonly GROWTH: "Growth";
|
|
713
|
+
readonly EXIT: "Exit";
|
|
714
|
+
}>>;
|
|
715
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
716
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
717
|
+
creatorUsername: z.ZodString;
|
|
718
|
+
creatorImageUrl: z.ZodString;
|
|
719
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
720
|
+
clientType: z.ZodOptional<z.ZodEnum<{
|
|
721
|
+
readonly CREATIVE: "CREATIVE";
|
|
722
|
+
readonly BRAND: "BRAND";
|
|
723
|
+
readonly NONE: "NONE";
|
|
724
|
+
}>>;
|
|
725
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
726
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
727
|
+
startDate: z.ZodOptional<z.ZodNumber>;
|
|
728
|
+
endDate: z.ZodOptional<z.ZodNumber>;
|
|
729
|
+
}, z.core.$strip>;
|
|
730
|
+
}, z.core.$strip>>;
|
|
731
|
+
}, z.core.$strip>;
|
|
732
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
733
|
+
}, z.core.$strip>;
|
|
734
|
+
export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
|
|
735
|
+
bookmarks: z.ZodObject<{
|
|
736
|
+
userId: z.ZodCUID2;
|
|
737
|
+
postBookmarks: z.ZodArray<z.ZodObject<{
|
|
738
|
+
id: z.ZodCUID2;
|
|
739
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
740
|
+
userId: z.ZodCUID2;
|
|
741
|
+
parentId: z.ZodCUID2;
|
|
742
|
+
parentType: z.ZodEnum<{
|
|
743
|
+
readonly PROJECT: "PROJECT";
|
|
744
|
+
readonly USER: "USER";
|
|
745
|
+
readonly JOB: "JOB";
|
|
746
|
+
readonly POST: "POST";
|
|
747
|
+
readonly COMMENT: "COMMENT";
|
|
748
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
749
|
+
}>;
|
|
750
|
+
post: z.ZodObject<{
|
|
751
|
+
id: z.ZodCUID2;
|
|
752
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
753
|
+
parentType: z.ZodDefault<z.ZodEnum<{
|
|
754
|
+
readonly PROJECT: "PROJECT";
|
|
755
|
+
readonly USER: "USER";
|
|
756
|
+
readonly JOB: "JOB";
|
|
757
|
+
readonly POST: "POST";
|
|
758
|
+
readonly COMMENT: "COMMENT";
|
|
759
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
760
|
+
}>>;
|
|
761
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
762
|
+
name: z.ZodString;
|
|
763
|
+
id: z.ZodInt;
|
|
764
|
+
}, z.core.$strip>>>;
|
|
765
|
+
badge: z.ZodOptional<z.ZodEnum<{
|
|
766
|
+
readonly NETWORKING: "Networking";
|
|
767
|
+
readonly FUNDING: "Funding";
|
|
768
|
+
readonly COLLABORATION: "Collaboration";
|
|
769
|
+
readonly OPPORTUNITIES: "Opportunities";
|
|
770
|
+
readonly SHOWCASE: "Showcase";
|
|
771
|
+
readonly LEARNING: "Learning";
|
|
772
|
+
readonly DISCUSSION: "Discussion";
|
|
773
|
+
readonly MENTORSHIP: "Mentorship";
|
|
774
|
+
}>>;
|
|
775
|
+
userId: z.ZodCUID2;
|
|
776
|
+
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
777
|
+
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
778
|
+
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
779
|
+
content: z.ZodOptional<z.ZodString>;
|
|
780
|
+
postType: z.ZodEnum<{
|
|
781
|
+
readonly MARKETPLACE: "MARKETPLACE";
|
|
782
|
+
readonly PROJECT: "PROJECT";
|
|
783
|
+
readonly JOB_OPENING: "JOB_OPENING";
|
|
784
|
+
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
785
|
+
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
786
|
+
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
787
|
+
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
788
|
+
}>;
|
|
789
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
790
|
+
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
791
|
+
url: z.ZodURL;
|
|
792
|
+
title: z.ZodOptional<z.ZodString>;
|
|
793
|
+
description: z.ZodOptional<z.ZodString>;
|
|
794
|
+
image: z.ZodOptional<z.ZodURL>;
|
|
795
|
+
}, z.core.$strip>>;
|
|
796
|
+
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
797
|
+
id: z.ZodCUID2;
|
|
798
|
+
postId: z.ZodCUID2;
|
|
799
|
+
fileId: z.ZodCUID2;
|
|
800
|
+
order: z.ZodNumber;
|
|
801
|
+
url: z.ZodURL;
|
|
802
|
+
}, z.core.$strip>>>;
|
|
803
|
+
stats: z.ZodObject<{
|
|
804
|
+
updatedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
805
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
806
|
+
parentId: z.ZodCUID2;
|
|
807
|
+
parentType: z.ZodEnum<{
|
|
808
|
+
readonly PROJECT: "PROJECT";
|
|
809
|
+
readonly USER: "USER";
|
|
810
|
+
readonly JOB: "JOB";
|
|
811
|
+
readonly POST: "POST";
|
|
812
|
+
readonly COMMENT: "COMMENT";
|
|
813
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
814
|
+
}>;
|
|
815
|
+
likesCount: z.ZodNumber;
|
|
816
|
+
bookmarksCount: z.ZodNumber;
|
|
817
|
+
viewsCount: z.ZodNumber;
|
|
818
|
+
commentsCount: z.ZodNumber;
|
|
819
|
+
}, z.core.$strip>;
|
|
820
|
+
score: z.ZodNumber;
|
|
821
|
+
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
822
|
+
isFollowing: z.ZodOptional<z.ZodBoolean>;
|
|
823
|
+
isBookmarked: z.ZodOptional<z.ZodBoolean>;
|
|
824
|
+
}, z.core.$strip>;
|
|
825
|
+
}, z.core.$strip>>;
|
|
826
|
+
}, z.core.$strip>;
|
|
827
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
494
828
|
}, z.core.$strip>;
|
|
495
829
|
export declare const UserWithFollowingEntitySchema: z.ZodObject<{
|
|
496
830
|
email: z.ZodEmail;
|
|
@@ -548,9 +882,17 @@ export declare const UserWithFollowersEntitySchema: z.ZodObject<{
|
|
|
548
882
|
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
549
883
|
}, z.core.$strip>>;
|
|
550
884
|
}, z.core.$strip>;
|
|
551
|
-
export declare const
|
|
885
|
+
export declare const GetUserFollowingInputSchema: z.ZodObject<{
|
|
886
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
887
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
888
|
+
}, z.core.$strip>;
|
|
889
|
+
export declare const GetUserFollowersInputSchema: z.ZodObject<{
|
|
890
|
+
searchQuery: z.ZodOptional<z.ZodString>;
|
|
891
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
892
|
+
}, z.core.$strip>;
|
|
893
|
+
export declare const GetUserFollowingOutputSchema: z.ZodObject<{
|
|
552
894
|
nextCursor: z.ZodString;
|
|
553
|
-
|
|
895
|
+
following: z.ZodArray<z.ZodObject<{
|
|
554
896
|
email: z.ZodEmail;
|
|
555
897
|
username: z.ZodOptional<z.ZodString>;
|
|
556
898
|
id: z.ZodCUID2;
|
|
@@ -566,9 +908,9 @@ export declare const GetUserFollowersOutputSchema: z.ZodObject<{
|
|
|
566
908
|
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
567
909
|
}, z.core.$strip>>;
|
|
568
910
|
}, z.core.$strip>;
|
|
569
|
-
export declare const
|
|
911
|
+
export declare const GetUserFollowersOutputSchema: z.ZodObject<{
|
|
570
912
|
nextCursor: z.ZodString;
|
|
571
|
-
|
|
913
|
+
followers: z.ZodArray<z.ZodObject<{
|
|
572
914
|
email: z.ZodEmail;
|
|
573
915
|
username: z.ZodOptional<z.ZodString>;
|
|
574
916
|
id: z.ZodCUID2;
|
|
@@ -584,63 +926,6 @@ export declare const GetUserFollowingOutputSchema: z.ZodObject<{
|
|
|
584
926
|
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
585
927
|
}, z.core.$strip>>;
|
|
586
928
|
}, z.core.$strip>;
|
|
587
|
-
export declare const UserWithPostsEntitySchema: z.ZodObject<{
|
|
588
|
-
userId: z.ZodCUID2;
|
|
589
|
-
posts: z.ZodArray<z.ZodObject<{
|
|
590
|
-
id: z.ZodCUID2;
|
|
591
|
-
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
592
|
-
parentType: z.ZodDefault<z.ZodEnum<{
|
|
593
|
-
readonly PROJECT: "PROJECT";
|
|
594
|
-
readonly USER: "USER";
|
|
595
|
-
readonly JOB: "JOB";
|
|
596
|
-
readonly POST: "POST";
|
|
597
|
-
readonly COMMENT: "COMMENT";
|
|
598
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
599
|
-
}>>;
|
|
600
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
601
|
-
name: z.ZodString;
|
|
602
|
-
id: z.ZodInt;
|
|
603
|
-
}, z.core.$strip>>>;
|
|
604
|
-
badge: z.ZodOptional<z.ZodEnum<{
|
|
605
|
-
readonly NETWORKING: "Networking";
|
|
606
|
-
readonly FUNDING: "Funding";
|
|
607
|
-
readonly COLLABORATION: "Collaboration";
|
|
608
|
-
readonly OPPORTUNITIES: "Opportunities";
|
|
609
|
-
readonly SHOWCASE: "Showcase";
|
|
610
|
-
readonly LEARNING: "Learning";
|
|
611
|
-
readonly DISCUSSION: "Discussion";
|
|
612
|
-
readonly MENTORSHIP: "Mentorship";
|
|
613
|
-
}>>;
|
|
614
|
-
userId: z.ZodCUID2;
|
|
615
|
-
creatorUsername: z.ZodOptional<z.ZodString>;
|
|
616
|
-
creatorFullName: z.ZodOptional<z.ZodString>;
|
|
617
|
-
creatorImageUrl: z.ZodOptional<z.ZodCUID2>;
|
|
618
|
-
content: z.ZodOptional<z.ZodString>;
|
|
619
|
-
postType: z.ZodEnum<{
|
|
620
|
-
readonly MARKETPLACE: "MARKETPLACE";
|
|
621
|
-
readonly PROJECT: "PROJECT";
|
|
622
|
-
readonly JOB_OPENING: "JOB_OPENING";
|
|
623
|
-
readonly DEFAULT_POST: "DEFAULT_POST";
|
|
624
|
-
readonly POST_WITH_LINKS: "POST_WITH_LINKS";
|
|
625
|
-
readonly POST_WITH_MEDIA: "POST_WITH_MEDIA";
|
|
626
|
-
readonly POST_WITH_MEDIA_AND_LINKS: "POST_WITH_MEDIA_AND_LINKS";
|
|
627
|
-
}>;
|
|
628
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
629
|
-
linkMeta: z.ZodOptional<z.ZodObject<{
|
|
630
|
-
url: z.ZodURL;
|
|
631
|
-
title: z.ZodOptional<z.ZodString>;
|
|
632
|
-
description: z.ZodOptional<z.ZodString>;
|
|
633
|
-
image: z.ZodOptional<z.ZodURL>;
|
|
634
|
-
}, z.core.$strip>>;
|
|
635
|
-
postFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
636
|
-
id: z.ZodCUID2;
|
|
637
|
-
postId: z.ZodCUID2;
|
|
638
|
-
fileId: z.ZodCUID2;
|
|
639
|
-
order: z.ZodNumber;
|
|
640
|
-
url: z.ZodURL;
|
|
641
|
-
}, z.core.$strip>>>;
|
|
642
|
-
}, z.core.$strip>>;
|
|
643
|
-
}, z.core.$strip>;
|
|
644
929
|
export declare const GetAuthenticatedUserOutputSchema: z.ZodObject<{
|
|
645
930
|
id: z.ZodCUID2;
|
|
646
931
|
email: z.ZodEmail;
|
|
@@ -914,6 +1199,76 @@ export declare const GetAuthenticatedUserWithProjectsOutputSchema: z.ZodObject<{
|
|
|
914
1199
|
export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.ZodObject<{
|
|
915
1200
|
userId: z.ZodCUID2;
|
|
916
1201
|
projectBookmarks: z.ZodArray<z.ZodObject<{
|
|
1202
|
+
id: z.ZodCUID2;
|
|
1203
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1204
|
+
userId: z.ZodCUID2;
|
|
1205
|
+
parentId: z.ZodCUID2;
|
|
1206
|
+
parentType: z.ZodEnum<{
|
|
1207
|
+
readonly PROJECT: "PROJECT";
|
|
1208
|
+
readonly USER: "USER";
|
|
1209
|
+
readonly JOB: "JOB";
|
|
1210
|
+
readonly POST: "POST";
|
|
1211
|
+
readonly COMMENT: "COMMENT";
|
|
1212
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
1213
|
+
}>;
|
|
1214
|
+
project: z.ZodObject<{
|
|
1215
|
+
id: z.ZodString;
|
|
1216
|
+
userId: z.ZodString;
|
|
1217
|
+
title: z.ZodString;
|
|
1218
|
+
imagePlaceholderUrl: z.ZodURL;
|
|
1219
|
+
projectCreatorType: z.ZodEnum<{
|
|
1220
|
+
readonly CREATIVE: "CREATIVE";
|
|
1221
|
+
readonly BRAND: "BRAND";
|
|
1222
|
+
readonly INVESTOR: "INVESTOR";
|
|
1223
|
+
readonly ADMIN: "ADMIN";
|
|
1224
|
+
}>;
|
|
1225
|
+
createdAt: z.ZodNumber;
|
|
1226
|
+
updatedAt: z.ZodNumber;
|
|
1227
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
capitalLookingToRaise: z.ZodOptional<z.ZodString>;
|
|
1229
|
+
capitalLookingToRaiseCurrency: z.ZodOptional<z.ZodEnum<{
|
|
1230
|
+
readonly USD: "USD (United States Dollar)";
|
|
1231
|
+
readonly EUR: "EUR (Euro)";
|
|
1232
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
1233
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
1234
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
1235
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
1236
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
1237
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
1238
|
+
readonly INR: "INR (Indian Rupee)";
|
|
1239
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
1240
|
+
}>>;
|
|
1241
|
+
ventureStage: z.ZodOptional<z.ZodEnum<{
|
|
1242
|
+
readonly IDEA: "Idea";
|
|
1243
|
+
readonly PRE_SEED: "Pre Seed";
|
|
1244
|
+
readonly MVP: "MVP";
|
|
1245
|
+
readonly SEED: "Seed";
|
|
1246
|
+
readonly SERIES_A: "Series A";
|
|
1247
|
+
readonly SERIES_B: "Series B";
|
|
1248
|
+
readonly SERIES_C: "Series C";
|
|
1249
|
+
readonly GROWTH: "Growth";
|
|
1250
|
+
readonly EXIT: "Exit";
|
|
1251
|
+
}>>;
|
|
1252
|
+
url: z.ZodOptional<z.ZodURL>;
|
|
1253
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1254
|
+
creatorUsername: z.ZodString;
|
|
1255
|
+
creatorImageUrl: z.ZodString;
|
|
1256
|
+
clientId: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
clientType: z.ZodOptional<z.ZodEnum<{
|
|
1258
|
+
readonly CREATIVE: "CREATIVE";
|
|
1259
|
+
readonly BRAND: "BRAND";
|
|
1260
|
+
readonly NONE: "NONE";
|
|
1261
|
+
}>>;
|
|
1262
|
+
clientName: z.ZodOptional<z.ZodString>;
|
|
1263
|
+
isFeatured: z.ZodOptional<z.ZodBoolean>;
|
|
1264
|
+
startDate: z.ZodOptional<z.ZodNumber>;
|
|
1265
|
+
endDate: z.ZodOptional<z.ZodNumber>;
|
|
1266
|
+
}, z.core.$strip>;
|
|
1267
|
+
}, z.core.$strip>>;
|
|
1268
|
+
}, z.core.$strip>;
|
|
1269
|
+
export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObject<{
|
|
1270
|
+
userId: z.ZodCUID2;
|
|
1271
|
+
projectLikes: z.ZodArray<z.ZodObject<{
|
|
917
1272
|
id: z.ZodCUID2;
|
|
918
1273
|
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
919
1274
|
userId: z.ZodCUID2;
|
|
@@ -993,32 +1348,6 @@ export declare const GetAuthenticatedUserWithUserFollowersOutputSchema: z.ZodObj
|
|
|
993
1348
|
followsYou: z.ZodOptional<z.ZodBoolean>;
|
|
994
1349
|
}, z.core.$strip>>;
|
|
995
1350
|
}, z.core.$strip>;
|
|
996
|
-
export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObject<{
|
|
997
|
-
userId: z.ZodCUID2;
|
|
998
|
-
projectLikes: z.ZodArray<z.ZodObject<{
|
|
999
|
-
id: z.ZodCUID2;
|
|
1000
|
-
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1001
|
-
userId: z.ZodCUID2;
|
|
1002
|
-
parentId: z.ZodCUID2;
|
|
1003
|
-
parentType: z.ZodEnum<{
|
|
1004
|
-
readonly PROJECT: "PROJECT";
|
|
1005
|
-
readonly USER: "USER";
|
|
1006
|
-
readonly JOB: "JOB";
|
|
1007
|
-
readonly POST: "POST";
|
|
1008
|
-
readonly COMMENT: "COMMENT";
|
|
1009
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
1010
|
-
}>;
|
|
1011
|
-
project: z.ZodObject<{
|
|
1012
|
-
id: z.ZodCUID2;
|
|
1013
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1014
|
-
title: z.ZodString;
|
|
1015
|
-
imagePlaceholderUrl: z.ZodURL;
|
|
1016
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1017
|
-
startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1018
|
-
endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
1019
|
-
}, z.core.$strip>;
|
|
1020
|
-
}, z.core.$strip>>;
|
|
1021
|
-
}, z.core.$strip>;
|
|
1022
1351
|
export declare const GetUserActivityInputSchema: z.ZodObject<{
|
|
1023
1352
|
activityType: z.ZodEnum<{
|
|
1024
1353
|
LIKE: "LIKE";
|