@zyacreatives/shared 2.5.38 → 2.5.40

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.
@@ -96,6 +96,7 @@ export declare const ACTIVITY_PARENT_TYPES: {
96
96
  readonly JOB: "JOB";
97
97
  readonly POST: "POST";
98
98
  readonly PRODUCT: "PRODUCT";
99
+ readonly SIGNAL: "SIGNAL";
99
100
  readonly PRODUCT_COVER: "PRODUCT_COVER";
100
101
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
101
102
  readonly COMMENT: "COMMENT";
@@ -248,6 +249,9 @@ export declare const NOTIFICATION_TYPES: {
248
249
  readonly FOLLOW: "Follow";
249
250
  readonly LIKE: "Like";
250
251
  readonly COMMENT: "Comment";
252
+ readonly SIGNAL: "Signal Creation";
253
+ readonly SIGNAL_APPROVAL: "Signal Approval";
254
+ readonly SIGNAL_REJECTION: "Signal Rejection";
251
255
  readonly REPLY: "Reply";
252
256
  readonly MESSAGE: "Message";
253
257
  readonly BOOKMARK: "Bookmark";
package/dist/constants.js CHANGED
@@ -95,6 +95,7 @@ exports.ACTIVITY_PARENT_TYPES = {
95
95
  JOB: "JOB",
96
96
  POST: "POST",
97
97
  PRODUCT: "PRODUCT",
98
+ SIGNAL: "SIGNAL",
98
99
  PRODUCT_COVER: "PRODUCT_COVER",
99
100
  PRODUCT_DELIVERY: "PRODUCT_DELIVERY",
100
101
  COMMENT: "COMMENT",
@@ -246,6 +247,9 @@ exports.NOTIFICATION_TYPES = {
246
247
  FOLLOW: "Follow",
247
248
  LIKE: "Like",
248
249
  COMMENT: "Comment",
250
+ SIGNAL: "Signal Creation",
251
+ SIGNAL_APPROVAL: "Signal Approval",
252
+ SIGNAL_REJECTION: "Signal Rejection",
249
253
  REPLY: "Reply",
250
254
  MESSAGE: "Message",
251
255
  BOOKMARK: "Bookmark",
@@ -10,6 +10,7 @@ export declare const BookmarkEntitySchema: z.ZodObject<{
10
10
  readonly JOB: "JOB";
11
11
  readonly POST: "POST";
12
12
  readonly PRODUCT: "PRODUCT";
13
+ readonly SIGNAL: "SIGNAL";
13
14
  readonly PRODUCT_COVER: "PRODUCT_COVER";
14
15
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
15
16
  readonly COMMENT: "COMMENT";
@@ -24,6 +25,7 @@ export declare const BookmarkInputSchema: z.ZodObject<{
24
25
  readonly JOB: "JOB";
25
26
  readonly POST: "POST";
26
27
  readonly PRODUCT: "PRODUCT";
28
+ readonly SIGNAL: "SIGNAL";
27
29
  readonly PRODUCT_COVER: "PRODUCT_COVER";
28
30
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
29
31
  readonly COMMENT: "COMMENT";
@@ -42,6 +44,7 @@ export declare const BookmarkOutputSchema: z.ZodObject<{
42
44
  readonly JOB: "JOB";
43
45
  readonly POST: "POST";
44
46
  readonly PRODUCT: "PRODUCT";
47
+ readonly SIGNAL: "SIGNAL";
45
48
  readonly PRODUCT_COVER: "PRODUCT_COVER";
46
49
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
47
50
  readonly COMMENT: "COMMENT";
@@ -10,6 +10,7 @@ export declare const CommentEntitySchema: z.ZodObject<{
10
10
  readonly JOB: "JOB";
11
11
  readonly POST: "POST";
12
12
  readonly PRODUCT: "PRODUCT";
13
+ readonly SIGNAL: "SIGNAL";
13
14
  readonly PRODUCT_COVER: "PRODUCT_COVER";
14
15
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
15
16
  readonly COMMENT: "COMMENT";
@@ -45,6 +46,7 @@ export declare const CommentOutputSchema: z.ZodObject<{
45
46
  readonly JOB: "JOB";
46
47
  readonly POST: "POST";
47
48
  readonly PRODUCT: "PRODUCT";
49
+ readonly SIGNAL: "SIGNAL";
48
50
  readonly PRODUCT_COVER: "PRODUCT_COVER";
49
51
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
50
52
  readonly COMMENT: "COMMENT";
@@ -37,6 +37,7 @@ export declare const EntityCommentsOutputSchema: z.ZodObject<{
37
37
  readonly JOB: "JOB";
38
38
  readonly POST: "POST";
39
39
  readonly PRODUCT: "PRODUCT";
40
+ readonly SIGNAL: "SIGNAL";
40
41
  readonly PRODUCT_COVER: "PRODUCT_COVER";
41
42
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
42
43
  readonly COMMENT: "COMMENT";
@@ -9,6 +9,7 @@ export declare const EntityStatsSchema: z.ZodObject<{
9
9
  readonly JOB: "JOB";
10
10
  readonly POST: "POST";
11
11
  readonly PRODUCT: "PRODUCT";
12
+ readonly SIGNAL: "SIGNAL";
12
13
  readonly PRODUCT_COVER: "PRODUCT_COVER";
13
14
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
14
15
  readonly COMMENT: "COMMENT";
@@ -11,6 +11,7 @@ export declare const FileEntitySchema: z.ZodObject<{
11
11
  readonly JOB: "JOB";
12
12
  readonly POST: "POST";
13
13
  readonly PRODUCT: "PRODUCT";
14
+ readonly SIGNAL: "SIGNAL";
14
15
  readonly PRODUCT_COVER: "PRODUCT_COVER";
15
16
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
16
17
  readonly COMMENT: "COMMENT";
@@ -33,6 +34,7 @@ export declare const CreateFileInputSchema: z.ZodObject<{
33
34
  readonly JOB: "JOB";
34
35
  readonly POST: "POST";
35
36
  readonly PRODUCT: "PRODUCT";
37
+ readonly SIGNAL: "SIGNAL";
36
38
  readonly PRODUCT_COVER: "PRODUCT_COVER";
37
39
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
38
40
  readonly COMMENT: "COMMENT";
@@ -51,6 +53,7 @@ export declare const FileUpdateInputSchema: z.ZodObject<{
51
53
  readonly JOB: "JOB";
52
54
  readonly POST: "POST";
53
55
  readonly PRODUCT: "PRODUCT";
56
+ readonly SIGNAL: "SIGNAL";
54
57
  readonly PRODUCT_COVER: "PRODUCT_COVER";
55
58
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
56
59
  readonly COMMENT: "COMMENT";
@@ -81,6 +84,7 @@ export declare const CreateFileOutputSchema: z.ZodObject<{
81
84
  readonly JOB: "JOB";
82
85
  readonly POST: "POST";
83
86
  readonly PRODUCT: "PRODUCT";
87
+ readonly SIGNAL: "SIGNAL";
84
88
  readonly PRODUCT_COVER: "PRODUCT_COVER";
85
89
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
86
90
  readonly COMMENT: "COMMENT";
@@ -10,6 +10,7 @@ export declare const LikeEntitySchema: z.ZodObject<{
10
10
  readonly JOB: "JOB";
11
11
  readonly POST: "POST";
12
12
  readonly PRODUCT: "PRODUCT";
13
+ readonly SIGNAL: "SIGNAL";
13
14
  readonly PRODUCT_COVER: "PRODUCT_COVER";
14
15
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
15
16
  readonly COMMENT: "COMMENT";
@@ -24,6 +25,7 @@ export declare const LikeInputSchema: z.ZodObject<{
24
25
  readonly JOB: "JOB";
25
26
  readonly POST: "POST";
26
27
  readonly PRODUCT: "PRODUCT";
28
+ readonly SIGNAL: "SIGNAL";
27
29
  readonly PRODUCT_COVER: "PRODUCT_COVER";
28
30
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
29
31
  readonly COMMENT: "COMMENT";
@@ -42,6 +44,7 @@ export declare const LikeOutputSchema: z.ZodObject<{
42
44
  readonly JOB: "JOB";
43
45
  readonly POST: "POST";
44
46
  readonly PRODUCT: "PRODUCT";
47
+ readonly SIGNAL: "SIGNAL";
45
48
  readonly PRODUCT_COVER: "PRODUCT_COVER";
46
49
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
47
50
  readonly COMMENT: "COMMENT";
@@ -27,6 +27,7 @@ export declare const MessageEntitySchema: z.ZodObject<{
27
27
  readonly JOB: "JOB";
28
28
  readonly POST: "POST";
29
29
  readonly PRODUCT: "PRODUCT";
30
+ readonly SIGNAL: "SIGNAL";
30
31
  readonly PRODUCT_COVER: "PRODUCT_COVER";
31
32
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
32
33
  readonly COMMENT: "COMMENT";
@@ -87,6 +88,7 @@ export declare const MessageWithFilesEntitySchema: z.ZodObject<{
87
88
  readonly JOB: "JOB";
88
89
  readonly POST: "POST";
89
90
  readonly PRODUCT: "PRODUCT";
91
+ readonly SIGNAL: "SIGNAL";
90
92
  readonly PRODUCT_COVER: "PRODUCT_COVER";
91
93
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
92
94
  readonly COMMENT: "COMMENT";
@@ -154,6 +156,7 @@ export declare const CreateMessageInputSchema: z.ZodObject<{
154
156
  readonly JOB: "JOB";
155
157
  readonly POST: "POST";
156
158
  readonly PRODUCT: "PRODUCT";
159
+ readonly SIGNAL: "SIGNAL";
157
160
  readonly PRODUCT_COVER: "PRODUCT_COVER";
158
161
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
159
162
  readonly COMMENT: "COMMENT";
@@ -194,6 +197,7 @@ export declare const GetMessagesOutputSchema: z.ZodObject<{
194
197
  readonly JOB: "JOB";
195
198
  readonly POST: "POST";
196
199
  readonly PRODUCT: "PRODUCT";
200
+ readonly SIGNAL: "SIGNAL";
197
201
  readonly PRODUCT_COVER: "PRODUCT_COVER";
198
202
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
199
203
  readonly COMMENT: "COMMENT";
@@ -7,6 +7,9 @@ export declare const NotificationEntitySchema: z.ZodObject<{
7
7
  readonly FOLLOW: "Follow";
8
8
  readonly LIKE: "Like";
9
9
  readonly COMMENT: "Comment";
10
+ readonly SIGNAL: "Signal Creation";
11
+ readonly SIGNAL_APPROVAL: "Signal Approval";
12
+ readonly SIGNAL_REJECTION: "Signal Rejection";
10
13
  readonly REPLY: "Reply";
11
14
  readonly MESSAGE: "Message";
12
15
  readonly BOOKMARK: "Bookmark";
@@ -27,6 +30,7 @@ export declare const NotificationEntitySchema: z.ZodObject<{
27
30
  readonly JOB: "JOB";
28
31
  readonly POST: "POST";
29
32
  readonly PRODUCT: "PRODUCT";
33
+ readonly SIGNAL: "SIGNAL";
30
34
  readonly PRODUCT_COVER: "PRODUCT_COVER";
31
35
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
32
36
  readonly COMMENT: "COMMENT";
@@ -39,6 +43,7 @@ export declare const NotificationEntitySchema: z.ZodObject<{
39
43
  readonly JOB: "JOB";
40
44
  readonly POST: "POST";
41
45
  readonly PRODUCT: "PRODUCT";
46
+ readonly SIGNAL: "SIGNAL";
42
47
  readonly PRODUCT_COVER: "PRODUCT_COVER";
43
48
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
44
49
  readonly COMMENT: "COMMENT";
@@ -61,6 +66,9 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
61
66
  readonly FOLLOW: "Follow";
62
67
  readonly LIKE: "Like";
63
68
  readonly COMMENT: "Comment";
69
+ readonly SIGNAL: "Signal Creation";
70
+ readonly SIGNAL_APPROVAL: "Signal Approval";
71
+ readonly SIGNAL_REJECTION: "Signal Rejection";
64
72
  readonly REPLY: "Reply";
65
73
  readonly MESSAGE: "Message";
66
74
  readonly BOOKMARK: "Bookmark";
@@ -81,6 +89,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
81
89
  readonly JOB: "JOB";
82
90
  readonly POST: "POST";
83
91
  readonly PRODUCT: "PRODUCT";
92
+ readonly SIGNAL: "SIGNAL";
84
93
  readonly PRODUCT_COVER: "PRODUCT_COVER";
85
94
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
86
95
  readonly COMMENT: "COMMENT";
@@ -93,6 +102,7 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
93
102
  readonly JOB: "JOB";
94
103
  readonly POST: "POST";
95
104
  readonly PRODUCT: "PRODUCT";
105
+ readonly SIGNAL: "SIGNAL";
96
106
  readonly PRODUCT_COVER: "PRODUCT_COVER";
97
107
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
98
108
  readonly COMMENT: "COMMENT";
@@ -137,6 +147,9 @@ export declare const ListNotificationsInputSchema: z.ZodObject<{
137
147
  readonly FOLLOW: "Follow";
138
148
  readonly LIKE: "Like";
139
149
  readonly COMMENT: "Comment";
150
+ readonly SIGNAL: "Signal Creation";
151
+ readonly SIGNAL_APPROVAL: "Signal Approval";
152
+ readonly SIGNAL_REJECTION: "Signal Rejection";
140
153
  readonly REPLY: "Reply";
141
154
  readonly MESSAGE: "Message";
142
155
  readonly BOOKMARK: "Bookmark";
@@ -161,6 +174,9 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
161
174
  readonly FOLLOW: "Follow";
162
175
  readonly LIKE: "Like";
163
176
  readonly COMMENT: "Comment";
177
+ readonly SIGNAL: "Signal Creation";
178
+ readonly SIGNAL_APPROVAL: "Signal Approval";
179
+ readonly SIGNAL_REJECTION: "Signal Rejection";
164
180
  readonly REPLY: "Reply";
165
181
  readonly MESSAGE: "Message";
166
182
  readonly BOOKMARK: "Bookmark";
@@ -181,6 +197,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
181
197
  readonly JOB: "JOB";
182
198
  readonly POST: "POST";
183
199
  readonly PRODUCT: "PRODUCT";
200
+ readonly SIGNAL: "SIGNAL";
184
201
  readonly PRODUCT_COVER: "PRODUCT_COVER";
185
202
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
186
203
  readonly COMMENT: "COMMENT";
@@ -193,6 +210,7 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
193
210
  readonly JOB: "JOB";
194
211
  readonly POST: "POST";
195
212
  readonly PRODUCT: "PRODUCT";
213
+ readonly SIGNAL: "SIGNAL";
196
214
  readonly PRODUCT_COVER: "PRODUCT_COVER";
197
215
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
198
216
  readonly COMMENT: "COMMENT";
@@ -8,6 +8,7 @@ export declare const PostEntitySchema: z.ZodObject<{
8
8
  readonly JOB: "JOB";
9
9
  readonly POST: "POST";
10
10
  readonly PRODUCT: "PRODUCT";
11
+ readonly SIGNAL: "SIGNAL";
11
12
  readonly PRODUCT_COVER: "PRODUCT_COVER";
12
13
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
13
14
  readonly COMMENT: "COMMENT";
@@ -60,6 +61,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
60
61
  readonly JOB: "JOB";
61
62
  readonly POST: "POST";
62
63
  readonly PRODUCT: "PRODUCT";
64
+ readonly SIGNAL: "SIGNAL";
63
65
  readonly PRODUCT_COVER: "PRODUCT_COVER";
64
66
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
65
67
  readonly COMMENT: "COMMENT";
@@ -113,6 +115,7 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
113
115
  readonly JOB: "JOB";
114
116
  readonly POST: "POST";
115
117
  readonly PRODUCT: "PRODUCT";
118
+ readonly SIGNAL: "SIGNAL";
116
119
  readonly PRODUCT_COVER: "PRODUCT_COVER";
117
120
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
118
121
  readonly COMMENT: "COMMENT";
@@ -140,6 +143,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
140
143
  readonly JOB: "JOB";
141
144
  readonly POST: "POST";
142
145
  readonly PRODUCT: "PRODUCT";
146
+ readonly SIGNAL: "SIGNAL";
143
147
  readonly PRODUCT_COVER: "PRODUCT_COVER";
144
148
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
145
149
  readonly COMMENT: "COMMENT";
@@ -193,6 +197,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
193
197
  readonly JOB: "JOB";
194
198
  readonly POST: "POST";
195
199
  readonly PRODUCT: "PRODUCT";
200
+ readonly SIGNAL: "SIGNAL";
196
201
  readonly PRODUCT_COVER: "PRODUCT_COVER";
197
202
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
198
203
  readonly COMMENT: "COMMENT";
@@ -214,6 +219,7 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
214
219
  readonly JOB: "JOB";
215
220
  readonly POST: "POST";
216
221
  readonly PRODUCT: "PRODUCT";
222
+ readonly SIGNAL: "SIGNAL";
217
223
  readonly PRODUCT_COVER: "PRODUCT_COVER";
218
224
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
219
225
  readonly COMMENT: "COMMENT";
@@ -239,6 +245,7 @@ export declare const CreatePostInputSchema: z.ZodObject<{
239
245
  readonly JOB: "JOB";
240
246
  readonly POST: "POST";
241
247
  readonly PRODUCT: "PRODUCT";
248
+ readonly SIGNAL: "SIGNAL";
242
249
  readonly PRODUCT_COVER: "PRODUCT_COVER";
243
250
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
244
251
  readonly COMMENT: "COMMENT";
@@ -264,6 +271,7 @@ export declare const CreatePostInputSchema: z.ZodObject<{
264
271
  readonly JOB: "JOB";
265
272
  readonly POST: "POST";
266
273
  readonly PRODUCT: "PRODUCT";
274
+ readonly SIGNAL: "SIGNAL";
267
275
  readonly PRODUCT_COVER: "PRODUCT_COVER";
268
276
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
269
277
  readonly COMMENT: "COMMENT";
@@ -323,6 +331,7 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
323
331
  readonly JOB: "JOB";
324
332
  readonly POST: "POST";
325
333
  readonly PRODUCT: "PRODUCT";
334
+ readonly SIGNAL: "SIGNAL";
326
335
  readonly PRODUCT_COVER: "PRODUCT_COVER";
327
336
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
328
337
  readonly COMMENT: "COMMENT";
@@ -375,6 +384,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
375
384
  readonly JOB: "JOB";
376
385
  readonly POST: "POST";
377
386
  readonly PRODUCT: "PRODUCT";
387
+ readonly SIGNAL: "SIGNAL";
378
388
  readonly PRODUCT_COVER: "PRODUCT_COVER";
379
389
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
380
390
  readonly COMMENT: "COMMENT";
@@ -428,6 +438,7 @@ export declare const GetPostOutputSchema: z.ZodObject<{
428
438
  readonly JOB: "JOB";
429
439
  readonly POST: "POST";
430
440
  readonly PRODUCT: "PRODUCT";
441
+ readonly SIGNAL: "SIGNAL";
431
442
  readonly PRODUCT_COVER: "PRODUCT_COVER";
432
443
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
433
444
  readonly COMMENT: "COMMENT";
@@ -458,6 +469,7 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
458
469
  readonly JOB: "JOB";
459
470
  readonly POST: "POST";
460
471
  readonly PRODUCT: "PRODUCT";
472
+ readonly SIGNAL: "SIGNAL";
461
473
  readonly PRODUCT_COVER: "PRODUCT_COVER";
462
474
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
463
475
  readonly COMMENT: "COMMENT";
@@ -511,6 +523,7 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
511
523
  readonly JOB: "JOB";
512
524
  readonly POST: "POST";
513
525
  readonly PRODUCT: "PRODUCT";
526
+ readonly SIGNAL: "SIGNAL";
514
527
  readonly PRODUCT_COVER: "PRODUCT_COVER";
515
528
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
516
529
  readonly COMMENT: "COMMENT";
@@ -532,6 +545,7 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
532
545
  readonly JOB: "JOB";
533
546
  readonly POST: "POST";
534
547
  readonly PRODUCT: "PRODUCT";
548
+ readonly SIGNAL: "SIGNAL";
535
549
  readonly PRODUCT_COVER: "PRODUCT_COVER";
536
550
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
537
551
  readonly COMMENT: "COMMENT";
@@ -560,6 +574,7 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
560
574
  readonly JOB: "JOB";
561
575
  readonly POST: "POST";
562
576
  readonly PRODUCT: "PRODUCT";
577
+ readonly SIGNAL: "SIGNAL";
563
578
  readonly PRODUCT_COVER: "PRODUCT_COVER";
564
579
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
565
580
  readonly COMMENT: "COMMENT";
@@ -613,6 +628,7 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
613
628
  readonly JOB: "JOB";
614
629
  readonly POST: "POST";
615
630
  readonly PRODUCT: "PRODUCT";
631
+ readonly SIGNAL: "SIGNAL";
616
632
  readonly PRODUCT_COVER: "PRODUCT_COVER";
617
633
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
618
634
  readonly COMMENT: "COMMENT";
@@ -634,6 +650,7 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
634
650
  readonly JOB: "JOB";
635
651
  readonly POST: "POST";
636
652
  readonly PRODUCT: "PRODUCT";
653
+ readonly SIGNAL: "SIGNAL";
637
654
  readonly PRODUCT_COVER: "PRODUCT_COVER";
638
655
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
639
656
  readonly COMMENT: "COMMENT";
@@ -702,6 +719,7 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
702
719
  readonly JOB: "JOB";
703
720
  readonly POST: "POST";
704
721
  readonly PRODUCT: "PRODUCT";
722
+ readonly SIGNAL: "SIGNAL";
705
723
  readonly PRODUCT_COVER: "PRODUCT_COVER";
706
724
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
707
725
  readonly COMMENT: "COMMENT";
@@ -748,6 +766,7 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
748
766
  readonly JOB: "JOB";
749
767
  readonly POST: "POST";
750
768
  readonly PRODUCT: "PRODUCT";
769
+ readonly SIGNAL: "SIGNAL";
751
770
  readonly PRODUCT_COVER: "PRODUCT_COVER";
752
771
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
753
772
  readonly COMMENT: "COMMENT";
@@ -37,6 +37,7 @@ export declare const CreateProductInputSchema: z.ZodObject<{
37
37
  readonly JOB: "JOB";
38
38
  readonly POST: "POST";
39
39
  readonly PRODUCT: "PRODUCT";
40
+ readonly SIGNAL: "SIGNAL";
40
41
  readonly PRODUCT_COVER: "PRODUCT_COVER";
41
42
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
42
43
  readonly COMMENT: "COMMENT";
@@ -111,6 +112,7 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
111
112
  readonly JOB: "JOB";
112
113
  readonly POST: "POST";
113
114
  readonly PRODUCT: "PRODUCT";
115
+ readonly SIGNAL: "SIGNAL";
114
116
  readonly PRODUCT_COVER: "PRODUCT_COVER";
115
117
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
116
118
  readonly COMMENT: "COMMENT";
@@ -190,6 +192,7 @@ export declare const ProductEntitySchema: z.ZodObject<{
190
192
  readonly JOB: "JOB";
191
193
  readonly POST: "POST";
192
194
  readonly PRODUCT: "PRODUCT";
195
+ readonly SIGNAL: "SIGNAL";
193
196
  readonly PRODUCT_COVER: "PRODUCT_COVER";
194
197
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
195
198
  readonly COMMENT: "COMMENT";
@@ -438,6 +441,7 @@ export declare const MarketplaceProductEntitySchema: z.ZodObject<{
438
441
  readonly JOB: "JOB";
439
442
  readonly POST: "POST";
440
443
  readonly PRODUCT: "PRODUCT";
444
+ readonly SIGNAL: "SIGNAL";
441
445
  readonly PRODUCT_COVER: "PRODUCT_COVER";
442
446
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
443
447
  readonly COMMENT: "COMMENT";
@@ -138,6 +138,7 @@ export declare const ProjectWithFilesEntitySchema: z.ZodObject<{
138
138
  readonly JOB: "JOB";
139
139
  readonly POST: "POST";
140
140
  readonly PRODUCT: "PRODUCT";
141
+ readonly SIGNAL: "SIGNAL";
141
142
  readonly PRODUCT_COVER: "PRODUCT_COVER";
142
143
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
143
144
  readonly COMMENT: "COMMENT";
@@ -184,8 +185,8 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
184
185
  title: z.ZodOptional<z.ZodString>;
185
186
  description: z.ZodOptional<z.ZodString>;
186
187
  overview: z.ZodOptional<z.ZodString>;
187
- url: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>>>;
188
- imagePlaceholderUrl: z.ZodOptional<z.ZodURL>;
188
+ url: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>>;
189
+ imagePlaceholderUrl: z.ZodUnion<[z.ZodOptional<z.ZodURL>, z.ZodLiteral<"">]>;
189
190
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
190
191
  projectCreatorType: z.ZodOptional<z.ZodEnum<{
191
192
  readonly CREATIVE: "CREATIVE";
@@ -193,7 +194,7 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
193
194
  readonly INVESTOR: "INVESTOR";
194
195
  readonly ADMIN: "ADMIN";
195
196
  }>>;
196
- clientId: z.ZodPipe<z.ZodPipe<z.ZodString, z.ZodTransform<string | undefined, string>>, z.ZodOptional<z.ZodString>>;
197
+ clientId: z.ZodPipe<z.ZodPipe<z.ZodOptional<z.ZodString>, z.ZodTransform<string | undefined, string | undefined>>, z.ZodOptional<z.ZodCUID2>>;
197
198
  clientType: z.ZodOptional<z.ZodEnum<{
198
199
  readonly CREATIVE: "CREATIVE";
199
200
  readonly BRAND: "BRAND";
@@ -236,7 +237,7 @@ export declare const UpdateProjectInputSchema: z.ZodObject<{
236
237
  isOpenToInvestment: z.ZodDefault<z.ZodBoolean>;
237
238
  startDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
238
239
  endDate: z.ZodOptional<z.ZodCoercedDate<unknown>>;
239
- version: z.ZodNumber;
240
+ version: z.ZodDefault<z.ZodNumber>;
240
241
  }, z.core.$strip>;
241
242
  export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
242
243
  export declare const CommentOnProjectInputSchema: z.ZodObject<{
@@ -250,6 +251,7 @@ export declare const CommentOnProjectInputSchema: z.ZodObject<{
250
251
  readonly JOB: "JOB";
251
252
  readonly POST: "POST";
252
253
  readonly PRODUCT: "PRODUCT";
254
+ readonly SIGNAL: "SIGNAL";
253
255
  readonly PRODUCT_COVER: "PRODUCT_COVER";
254
256
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
255
257
  readonly COMMENT: "COMMENT";
@@ -353,6 +355,7 @@ export declare const ProjectDetailsEntitySchema: z.ZodObject<{
353
355
  readonly JOB: "JOB";
354
356
  readonly POST: "POST";
355
357
  readonly PRODUCT: "PRODUCT";
358
+ readonly SIGNAL: "SIGNAL";
356
359
  readonly PRODUCT_COVER: "PRODUCT_COVER";
357
360
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
358
361
  readonly COMMENT: "COMMENT";
@@ -452,6 +455,7 @@ export declare const GetProjectOutputSchema: z.ZodObject<{
452
455
  readonly JOB: "JOB";
453
456
  readonly POST: "POST";
454
457
  readonly PRODUCT: "PRODUCT";
458
+ readonly SIGNAL: "SIGNAL";
455
459
  readonly PRODUCT_COVER: "PRODUCT_COVER";
456
460
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
457
461
  readonly COMMENT: "COMMENT";
@@ -533,6 +537,7 @@ export declare const ProjectSearchDocumentSchema: z.ZodObject<{
533
537
  readonly JOB: "JOB";
534
538
  readonly POST: "POST";
535
539
  readonly PRODUCT: "PRODUCT";
540
+ readonly SIGNAL: "SIGNAL";
536
541
  readonly PRODUCT_COVER: "PRODUCT_COVER";
537
542
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
538
543
  readonly COMMENT: "COMMENT";
@@ -645,6 +650,7 @@ export declare const SearchProjectsOutputSchema: z.ZodObject<{
645
650
  readonly JOB: "JOB";
646
651
  readonly POST: "POST";
647
652
  readonly PRODUCT: "PRODUCT";
653
+ readonly SIGNAL: "SIGNAL";
648
654
  readonly PRODUCT_COVER: "PRODUCT_COVER";
649
655
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
650
656
  readonly COMMENT: "COMMENT";
@@ -679,6 +685,7 @@ export declare const ProjectWithProjectCommentsEntitySchema: z.ZodObject<{
679
685
  readonly JOB: "JOB";
680
686
  readonly POST: "POST";
681
687
  readonly PRODUCT: "PRODUCT";
688
+ readonly SIGNAL: "SIGNAL";
682
689
  readonly PRODUCT_COVER: "PRODUCT_COVER";
683
690
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
684
691
  readonly COMMENT: "COMMENT";
@@ -716,6 +723,7 @@ export declare const GetProjectWithCommentsOutputSchema: z.ZodObject<{
716
723
  readonly JOB: "JOB";
717
724
  readonly POST: "POST";
718
725
  readonly PRODUCT: "PRODUCT";
726
+ readonly SIGNAL: "SIGNAL";
719
727
  readonly PRODUCT_COVER: "PRODUCT_COVER";
720
728
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
721
729
  readonly COMMENT: "COMMENT";
@@ -808,6 +816,7 @@ export declare const ProjectWithProjectViewsEntitySchema: z.ZodObject<{
808
816
  readonly JOB: "JOB";
809
817
  readonly POST: "POST";
810
818
  readonly PRODUCT: "PRODUCT";
819
+ readonly SIGNAL: "SIGNAL";
811
820
  readonly PRODUCT_COVER: "PRODUCT_COVER";
812
821
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
813
822
  readonly COMMENT: "COMMENT";
@@ -838,6 +847,7 @@ export declare const ProjectWithProjectBookmarksEntitySchema: z.ZodObject<{
838
847
  readonly JOB: "JOB";
839
848
  readonly POST: "POST";
840
849
  readonly PRODUCT: "PRODUCT";
850
+ readonly SIGNAL: "SIGNAL";
841
851
  readonly PRODUCT_COVER: "PRODUCT_COVER";
842
852
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
843
853
  readonly COMMENT: "COMMENT";
@@ -1049,6 +1059,7 @@ export declare const CommentOnProjectOutputSchema: z.ZodObject<{
1049
1059
  readonly JOB: "JOB";
1050
1060
  readonly POST: "POST";
1051
1061
  readonly PRODUCT: "PRODUCT";
1062
+ readonly SIGNAL: "SIGNAL";
1052
1063
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1053
1064
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1054
1065
  readonly COMMENT: "COMMENT";
@@ -86,15 +86,16 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
86
86
  return val;
87
87
  return `https://${val}`;
88
88
  })
89
- .pipe(zod_openapi_1.z.string().url("Check your link.").or(zod_openapi_1.z.literal("")))
89
+ .pipe(zod_openapi_1.z.url("Check your link.").or(zod_openapi_1.z.literal("")))
90
90
  .optional(),
91
- imagePlaceholderUrl: zod_openapi_1.z.url().optional(),
91
+ imagePlaceholderUrl: zod_openapi_1.z.url().optional().or(zod_openapi_1.z.literal("")),
92
92
  tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
93
93
  projectCreatorType: zod_openapi_1.z.enum(constants_1.ROLES).optional(),
94
94
  clientId: zod_openapi_1.z
95
95
  .string()
96
- .transform((val) => (val === "" ? undefined : val))
97
- .pipe(zod_openapi_1.z.string().cuid2().optional()),
96
+ .optional()
97
+ .transform((val) => (val === "" || val === undefined ? undefined : val))
98
+ .pipe(zod_openapi_1.z.cuid2().optional()),
98
99
  clientType: zod_openapi_1.z.enum(constants_1.CLIENT_TYPES).optional(),
99
100
  clientName: zod_openapi_1.z.string().optional(),
100
101
  isFeatured: zod_openapi_1.z.boolean().optional(),
@@ -120,7 +121,7 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
120
121
  isOpenToInvestment: zod_openapi_1.z.boolean().default(false),
121
122
  startDate: zod_openapi_1.z.coerce.date().optional(),
122
123
  endDate: zod_openapi_1.z.coerce.date().optional(),
123
- version: zod_openapi_1.z.number().int(),
124
+ version: zod_openapi_1.z.number().int().default(1),
124
125
  })
125
126
  .superRefine(({ startDate, endDate }, ctx) => {
126
127
  const today = new Date();
@@ -136,7 +137,7 @@ exports.UpdateProjectInputSchema = zod_openapi_1.z
136
137
  ctx.addIssue({
137
138
  path: ["endDate"],
138
139
  code: "custom",
139
- message: "End date must follow the start date.",
140
+ message: "End date must be after the start date.",
140
141
  });
141
142
  }
142
143
  })
@@ -11,6 +11,7 @@ export declare const UserStrikeEntitySchema: z.ZodObject<{
11
11
  readonly JOB: "JOB";
12
12
  readonly POST: "POST";
13
13
  readonly PRODUCT: "PRODUCT";
14
+ readonly SIGNAL: "SIGNAL";
14
15
  readonly PRODUCT_COVER: "PRODUCT_COVER";
15
16
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
16
17
  readonly COMMENT: "COMMENT";
@@ -29,6 +30,7 @@ export declare const UpsertUserStrikeInputSchema: z.ZodObject<{
29
30
  readonly JOB: "JOB";
30
31
  readonly POST: "POST";
31
32
  readonly PRODUCT: "PRODUCT";
33
+ readonly SIGNAL: "SIGNAL";
32
34
  readonly PRODUCT_COVER: "PRODUCT_COVER";
33
35
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
34
36
  readonly COMMENT: "COMMENT";
@@ -47,6 +49,7 @@ export declare const UpsertUserStrikeOutputSchema: z.ZodObject<{
47
49
  readonly JOB: "JOB";
48
50
  readonly POST: "POST";
49
51
  readonly PRODUCT: "PRODUCT";
52
+ readonly SIGNAL: "SIGNAL";
50
53
  readonly PRODUCT_COVER: "PRODUCT_COVER";
51
54
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
52
55
  readonly COMMENT: "COMMENT";
@@ -305,6 +305,7 @@ export declare const UserWithPostsEntitySchema: z.ZodObject<{
305
305
  readonly JOB: "JOB";
306
306
  readonly POST: "POST";
307
307
  readonly PRODUCT: "PRODUCT";
308
+ readonly SIGNAL: "SIGNAL";
308
309
  readonly PRODUCT_COVER: "PRODUCT_COVER";
309
310
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
310
311
  readonly COMMENT: "COMMENT";
@@ -358,6 +359,7 @@ export declare const UserWithPostsEntitySchema: z.ZodObject<{
358
359
  readonly JOB: "JOB";
359
360
  readonly POST: "POST";
360
361
  readonly PRODUCT: "PRODUCT";
362
+ readonly SIGNAL: "SIGNAL";
361
363
  readonly PRODUCT_COVER: "PRODUCT_COVER";
362
364
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
363
365
  readonly COMMENT: "COMMENT";
@@ -391,6 +393,7 @@ export declare const UserWithProjectLikesEntitySchema: z.ZodObject<{
391
393
  readonly JOB: "JOB";
392
394
  readonly POST: "POST";
393
395
  readonly PRODUCT: "PRODUCT";
396
+ readonly SIGNAL: "SIGNAL";
394
397
  readonly PRODUCT_COVER: "PRODUCT_COVER";
395
398
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
396
399
  readonly COMMENT: "COMMENT";
@@ -421,6 +424,7 @@ export declare const UserWithPostLikesEntitySchema: z.ZodObject<{
421
424
  readonly JOB: "JOB";
422
425
  readonly POST: "POST";
423
426
  readonly PRODUCT: "PRODUCT";
427
+ readonly SIGNAL: "SIGNAL";
424
428
  readonly PRODUCT_COVER: "PRODUCT_COVER";
425
429
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
426
430
  readonly COMMENT: "COMMENT";
@@ -452,6 +456,7 @@ export declare const UserWithJobBookmarksEntitySchema: z.ZodObject<{
452
456
  readonly JOB: "JOB";
453
457
  readonly POST: "POST";
454
458
  readonly PRODUCT: "PRODUCT";
459
+ readonly SIGNAL: "SIGNAL";
455
460
  readonly PRODUCT_COVER: "PRODUCT_COVER";
456
461
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
457
462
  readonly COMMENT: "COMMENT";
@@ -505,6 +510,7 @@ export declare const UserWithJobBookmarksOutputSchema: z.ZodObject<{
505
510
  readonly JOB: "JOB";
506
511
  readonly POST: "POST";
507
512
  readonly PRODUCT: "PRODUCT";
513
+ readonly SIGNAL: "SIGNAL";
508
514
  readonly PRODUCT_COVER: "PRODUCT_COVER";
509
515
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
510
516
  readonly COMMENT: "COMMENT";
@@ -554,6 +560,7 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
554
560
  readonly JOB: "JOB";
555
561
  readonly POST: "POST";
556
562
  readonly PRODUCT: "PRODUCT";
563
+ readonly SIGNAL: "SIGNAL";
557
564
  readonly PRODUCT_COVER: "PRODUCT_COVER";
558
565
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
559
566
  readonly COMMENT: "COMMENT";
@@ -625,6 +632,7 @@ export declare const UserWithProjectBookmarksEntitySchema: z.ZodObject<{
625
632
  readonly JOB: "JOB";
626
633
  readonly POST: "POST";
627
634
  readonly PRODUCT: "PRODUCT";
635
+ readonly SIGNAL: "SIGNAL";
628
636
  readonly PRODUCT_COVER: "PRODUCT_COVER";
629
637
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
630
638
  readonly COMMENT: "COMMENT";
@@ -653,6 +661,7 @@ export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
653
661
  readonly JOB: "JOB";
654
662
  readonly POST: "POST";
655
663
  readonly PRODUCT: "PRODUCT";
664
+ readonly SIGNAL: "SIGNAL";
656
665
  readonly PRODUCT_COVER: "PRODUCT_COVER";
657
666
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
658
667
  readonly COMMENT: "COMMENT";
@@ -667,6 +676,7 @@ export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
667
676
  readonly JOB: "JOB";
668
677
  readonly POST: "POST";
669
678
  readonly PRODUCT: "PRODUCT";
679
+ readonly SIGNAL: "SIGNAL";
670
680
  readonly PRODUCT_COVER: "PRODUCT_COVER";
671
681
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
672
682
  readonly COMMENT: "COMMENT";
@@ -720,6 +730,7 @@ export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
720
730
  readonly JOB: "JOB";
721
731
  readonly POST: "POST";
722
732
  readonly PRODUCT: "PRODUCT";
733
+ readonly SIGNAL: "SIGNAL";
723
734
  readonly PRODUCT_COVER: "PRODUCT_COVER";
724
735
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
725
736
  readonly COMMENT: "COMMENT";
@@ -768,6 +779,7 @@ export declare const UserWithProductsEntitySchema: z.ZodObject<{
768
779
  readonly JOB: "JOB";
769
780
  readonly POST: "POST";
770
781
  readonly PRODUCT: "PRODUCT";
782
+ readonly SIGNAL: "SIGNAL";
771
783
  readonly PRODUCT_COVER: "PRODUCT_COVER";
772
784
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
773
785
  readonly COMMENT: "COMMENT";
@@ -847,6 +859,7 @@ export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
847
859
  readonly JOB: "JOB";
848
860
  readonly POST: "POST";
849
861
  readonly PRODUCT: "PRODUCT";
862
+ readonly SIGNAL: "SIGNAL";
850
863
  readonly PRODUCT_COVER: "PRODUCT_COVER";
851
864
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
852
865
  readonly COMMENT: "COMMENT";
@@ -918,6 +931,7 @@ export declare const GetUserWithProjectBookmarksOutputSchema: z.ZodObject<{
918
931
  readonly JOB: "JOB";
919
932
  readonly POST: "POST";
920
933
  readonly PRODUCT: "PRODUCT";
934
+ readonly SIGNAL: "SIGNAL";
921
935
  readonly PRODUCT_COVER: "PRODUCT_COVER";
922
936
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
923
937
  readonly COMMENT: "COMMENT";
@@ -969,6 +983,7 @@ export declare const GetUserWithProductsOutputSchema: z.ZodObject<{
969
983
  readonly JOB: "JOB";
970
984
  readonly POST: "POST";
971
985
  readonly PRODUCT: "PRODUCT";
986
+ readonly SIGNAL: "SIGNAL";
972
987
  readonly PRODUCT_COVER: "PRODUCT_COVER";
973
988
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
974
989
  readonly COMMENT: "COMMENT";
@@ -1039,6 +1054,7 @@ export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
1039
1054
  readonly JOB: "JOB";
1040
1055
  readonly POST: "POST";
1041
1056
  readonly PRODUCT: "PRODUCT";
1057
+ readonly SIGNAL: "SIGNAL";
1042
1058
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1043
1059
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1044
1060
  readonly COMMENT: "COMMENT";
@@ -1053,6 +1069,7 @@ export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
1053
1069
  readonly JOB: "JOB";
1054
1070
  readonly POST: "POST";
1055
1071
  readonly PRODUCT: "PRODUCT";
1072
+ readonly SIGNAL: "SIGNAL";
1056
1073
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1057
1074
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1058
1075
  readonly COMMENT: "COMMENT";
@@ -1106,6 +1123,7 @@ export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
1106
1123
  readonly JOB: "JOB";
1107
1124
  readonly POST: "POST";
1108
1125
  readonly PRODUCT: "PRODUCT";
1126
+ readonly SIGNAL: "SIGNAL";
1109
1127
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1110
1128
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1111
1129
  readonly COMMENT: "COMMENT";
@@ -1127,6 +1145,7 @@ export declare const GetUserWithPostBookmarksOutputSchema: z.ZodObject<{
1127
1145
  readonly JOB: "JOB";
1128
1146
  readonly POST: "POST";
1129
1147
  readonly PRODUCT: "PRODUCT";
1148
+ readonly SIGNAL: "SIGNAL";
1130
1149
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1131
1150
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1132
1151
  readonly COMMENT: "COMMENT";
@@ -1539,6 +1558,7 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
1539
1558
  readonly JOB: "JOB";
1540
1559
  readonly POST: "POST";
1541
1560
  readonly PRODUCT: "PRODUCT";
1561
+ readonly SIGNAL: "SIGNAL";
1542
1562
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1543
1563
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1544
1564
  readonly COMMENT: "COMMENT";
@@ -1610,6 +1630,7 @@ export declare const GetAuthenticatedUserWithProjectBookmarksOutputSchema: z.Zod
1610
1630
  readonly JOB: "JOB";
1611
1631
  readonly POST: "POST";
1612
1632
  readonly PRODUCT: "PRODUCT";
1633
+ readonly SIGNAL: "SIGNAL";
1613
1634
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1614
1635
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1615
1636
  readonly COMMENT: "COMMENT";
@@ -1638,6 +1659,7 @@ export declare const GetAuthenticatedUserWithProjectLikesOutputSchema: z.ZodObje
1638
1659
  readonly JOB: "JOB";
1639
1660
  readonly POST: "POST";
1640
1661
  readonly PRODUCT: "PRODUCT";
1662
+ readonly SIGNAL: "SIGNAL";
1641
1663
  readonly PRODUCT_COVER: "PRODUCT_COVER";
1642
1664
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1643
1665
  readonly COMMENT: "COMMENT";
@@ -1731,6 +1753,7 @@ export declare const GetUserActivityOutputSchema: z.ZodArray<z.ZodObject<{
1731
1753
  JOB: "JOB";
1732
1754
  POST: "POST";
1733
1755
  PRODUCT: "PRODUCT";
1756
+ SIGNAL: "SIGNAL";
1734
1757
  PRODUCT_COVER: "PRODUCT_COVER";
1735
1758
  PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
1736
1759
  COMMENT: "COMMENT";
@@ -11,6 +11,7 @@ export declare const ViewEntitySchema: z.ZodObject<{
11
11
  readonly JOB: "JOB";
12
12
  readonly POST: "POST";
13
13
  readonly PRODUCT: "PRODUCT";
14
+ readonly SIGNAL: "SIGNAL";
14
15
  readonly PRODUCT_COVER: "PRODUCT_COVER";
15
16
  readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
16
17
  readonly COMMENT: "COMMENT";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyacreatives/shared",
3
- "version": "2.5.38",
3
+ "version": "2.5.40",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/constants.ts CHANGED
@@ -109,6 +109,7 @@ export const ACTIVITY_PARENT_TYPES = {
109
109
  JOB: "JOB",
110
110
  POST: "POST",
111
111
  PRODUCT: "PRODUCT",
112
+ SIGNAL: "SIGNAL",
112
113
  PRODUCT_COVER: "PRODUCT_COVER",
113
114
  PRODUCT_DELIVERY: "PRODUCT_DELIVERY",
114
115
  COMMENT: "COMMENT",
@@ -281,6 +282,9 @@ export const NOTIFICATION_TYPES = {
281
282
  FOLLOW: "Follow",
282
283
  LIKE: "Like",
283
284
  COMMENT: "Comment",
285
+ SIGNAL: "Signal Creation",
286
+ SIGNAL_APPROVAL: "Signal Approval",
287
+ SIGNAL_REJECTION: "Signal Rejection",
284
288
  REPLY: "Reply",
285
289
  MESSAGE: "Message",
286
290
  BOOKMARK: "Bookmark",
@@ -5,9 +5,7 @@ import {
5
5
  POST_TYPES,
6
6
  } from "../constants";
7
7
  import { FileEntitySchema, CreateFileInputSchema } from "./file";
8
- import { CommentEntitySchema } from "./comment";
9
8
  import { EntityStatsSchema } from "./entity-stats";
10
- import { ActivitySchema } from "./activity";
11
9
  import { cleanHtml } from "../utils/clean-html";
12
10
 
13
11
  export const PostEntitySchema = z.object({
@@ -104,15 +104,16 @@ export const UpdateProjectInputSchema = z
104
104
  if (val.startsWith("http://") || val.startsWith("https://")) return val;
105
105
  return `https://${val}`;
106
106
  })
107
- .pipe(z.string().url("Check your link.").or(z.literal("")))
107
+ .pipe(z.url("Check your link.").or(z.literal("")))
108
108
  .optional(),
109
- imagePlaceholderUrl: z.url().optional(),
109
+ imagePlaceholderUrl: z.url().optional().or(z.literal("")),
110
110
  tags: z.array(z.string()).optional(),
111
111
  projectCreatorType: z.enum(ROLES).optional(),
112
112
  clientId: z
113
113
  .string()
114
- .transform((val) => (val === "" ? undefined : val))
115
- .pipe(z.string().cuid2().optional()),
114
+ .optional()
115
+ .transform((val) => (val === "" || val === undefined ? undefined : val))
116
+ .pipe(z.cuid2().optional()),
116
117
  clientType: z.enum(CLIENT_TYPES).optional(),
117
118
  clientName: z.string().optional(),
118
119
  isFeatured: z.boolean().optional(),
@@ -138,7 +139,7 @@ export const UpdateProjectInputSchema = z
138
139
  isOpenToInvestment: z.boolean().default(false),
139
140
  startDate: z.coerce.date().optional(),
140
141
  endDate: z.coerce.date().optional(),
141
- version: z.number().int(),
142
+ version: z.number().int().default(1),
142
143
  })
143
144
  .superRefine(({ startDate, endDate }, ctx) => {
144
145
  const today = new Date();
@@ -154,12 +155,12 @@ export const UpdateProjectInputSchema = z
154
155
  ctx.addIssue({
155
156
  path: ["endDate"],
156
157
  code: "custom",
157
- message: "End date must follow the start date.",
158
+ message: "End date must be after the start date.",
158
159
  });
159
160
  }
160
161
  })
161
162
  .openapi("UpdateProjectInput");
162
-
163
+
163
164
  export type UpdateProjectInput = z.infer<typeof UpdateProjectInputSchema>;
164
165
 
165
166
  export const CommentOnProjectInputSchema = CommentEntitySchema;