@zyacreatives/shared 2.5.4 → 2.5.6

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,8 @@ export declare const ACTIVITY_PARENT_TYPES: {
96
96
  readonly JOB: "JOB";
97
97
  readonly POST: "POST";
98
98
  readonly PRODUCT: "PRODUCT";
99
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
100
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
99
101
  readonly COMMENT: "COMMENT";
100
102
  readonly JOB_APPLICATION: "JOB_APPLICATION";
101
103
  };
package/dist/constants.js CHANGED
@@ -95,6 +95,8 @@ exports.ACTIVITY_PARENT_TYPES = {
95
95
  JOB: "JOB",
96
96
  POST: "POST",
97
97
  PRODUCT: "PRODUCT",
98
+ PRODUCT_COVER: "PRODUCT_COVER",
99
+ PRODUCT_DELIVERY: "PRODUCT_DELIVERY",
98
100
  COMMENT: "COMMENT",
99
101
  JOB_APPLICATION: "JOB_APPLICATION",
100
102
  };
@@ -10,6 +10,8 @@ export declare const BookmarkEntitySchema: z.ZodObject<{
10
10
  readonly JOB: "JOB";
11
11
  readonly POST: "POST";
12
12
  readonly PRODUCT: "PRODUCT";
13
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
14
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
13
15
  readonly COMMENT: "COMMENT";
14
16
  readonly JOB_APPLICATION: "JOB_APPLICATION";
15
17
  }>;
@@ -22,6 +24,8 @@ export declare const BookmarkInputSchema: z.ZodObject<{
22
24
  readonly JOB: "JOB";
23
25
  readonly POST: "POST";
24
26
  readonly PRODUCT: "PRODUCT";
27
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
28
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
25
29
  readonly COMMENT: "COMMENT";
26
30
  readonly JOB_APPLICATION: "JOB_APPLICATION";
27
31
  }>;
@@ -38,6 +42,8 @@ export declare const BookmarkOutputSchema: z.ZodObject<{
38
42
  readonly JOB: "JOB";
39
43
  readonly POST: "POST";
40
44
  readonly PRODUCT: "PRODUCT";
45
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
46
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
41
47
  readonly COMMENT: "COMMENT";
42
48
  readonly JOB_APPLICATION: "JOB_APPLICATION";
43
49
  }>;
@@ -10,6 +10,8 @@ export declare const CommentEntitySchema: z.ZodObject<{
10
10
  readonly JOB: "JOB";
11
11
  readonly POST: "POST";
12
12
  readonly PRODUCT: "PRODUCT";
13
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
14
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
13
15
  readonly COMMENT: "COMMENT";
14
16
  readonly JOB_APPLICATION: "JOB_APPLICATION";
15
17
  }>;
@@ -43,6 +45,8 @@ export declare const CommentOutputSchema: z.ZodObject<{
43
45
  readonly JOB: "JOB";
44
46
  readonly POST: "POST";
45
47
  readonly PRODUCT: "PRODUCT";
48
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
49
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
46
50
  readonly COMMENT: "COMMENT";
47
51
  readonly JOB_APPLICATION: "JOB_APPLICATION";
48
52
  }>;
@@ -37,6 +37,8 @@ export declare const EntityCommentsOutputSchema: z.ZodObject<{
37
37
  readonly JOB: "JOB";
38
38
  readonly POST: "POST";
39
39
  readonly PRODUCT: "PRODUCT";
40
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
41
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
40
42
  readonly COMMENT: "COMMENT";
41
43
  readonly JOB_APPLICATION: "JOB_APPLICATION";
42
44
  }>;
@@ -9,6 +9,8 @@ export declare const EntityStatsSchema: z.ZodObject<{
9
9
  readonly JOB: "JOB";
10
10
  readonly POST: "POST";
11
11
  readonly PRODUCT: "PRODUCT";
12
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
13
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
12
14
  readonly COMMENT: "COMMENT";
13
15
  readonly JOB_APPLICATION: "JOB_APPLICATION";
14
16
  }>;
@@ -11,6 +11,8 @@ export declare const FileEntitySchema: z.ZodObject<{
11
11
  readonly JOB: "JOB";
12
12
  readonly POST: "POST";
13
13
  readonly PRODUCT: "PRODUCT";
14
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
15
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
14
16
  readonly COMMENT: "COMMENT";
15
17
  readonly JOB_APPLICATION: "JOB_APPLICATION";
16
18
  }>>;
@@ -31,6 +33,8 @@ export declare const CreateFileInputSchema: z.ZodObject<{
31
33
  readonly JOB: "JOB";
32
34
  readonly POST: "POST";
33
35
  readonly PRODUCT: "PRODUCT";
36
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
37
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
34
38
  readonly COMMENT: "COMMENT";
35
39
  readonly JOB_APPLICATION: "JOB_APPLICATION";
36
40
  }>>;
@@ -47,6 +51,8 @@ export declare const FileUpdateInputSchema: z.ZodObject<{
47
51
  readonly JOB: "JOB";
48
52
  readonly POST: "POST";
49
53
  readonly PRODUCT: "PRODUCT";
54
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
55
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
50
56
  readonly COMMENT: "COMMENT";
51
57
  readonly JOB_APPLICATION: "JOB_APPLICATION";
52
58
  }>>;
@@ -75,6 +81,8 @@ export declare const CreateFileOutputSchema: z.ZodObject<{
75
81
  readonly JOB: "JOB";
76
82
  readonly POST: "POST";
77
83
  readonly PRODUCT: "PRODUCT";
84
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
85
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
78
86
  readonly COMMENT: "COMMENT";
79
87
  readonly JOB_APPLICATION: "JOB_APPLICATION";
80
88
  }>>;
@@ -10,10 +10,7 @@ exports.FileEntitySchema = zod_openapi_1.z
10
10
  mimeType: zod_openapi_1.z.string().openapi({ example: "image/jpeg" }),
11
11
  url: zod_openapi_1.z.url().openapi({ example: "https://example.com/file.jpg" }),
12
12
  parentId: zod_openapi_1.z.cuid2().nullable().openapi({ example: "ckj1a2b3c0000xyz" }),
13
- parentType: zod_openapi_1.z
14
- .enum(constants_1.ACTIVITY_PARENT_TYPES)
15
- .nullable()
16
- .openapi({ example: "POST" }),
13
+ parentType: zod_openapi_1.z.enum(constants_1.ACTIVITY_PARENT_TYPES).nullable(),
17
14
  isThumbnail: zod_openapi_1.z.boolean().nullable().openapi({ example: false }),
18
15
  order: zod_openapi_1.z.number().int().openapi({ example: 0 }),
19
16
  createdAt: zod_openapi_1.z.coerce.date().openapi({ example: "2025-10-14T08:00:00.000Z" }),
@@ -10,6 +10,8 @@ export declare const LikeEntitySchema: z.ZodObject<{
10
10
  readonly JOB: "JOB";
11
11
  readonly POST: "POST";
12
12
  readonly PRODUCT: "PRODUCT";
13
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
14
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
13
15
  readonly COMMENT: "COMMENT";
14
16
  readonly JOB_APPLICATION: "JOB_APPLICATION";
15
17
  }>;
@@ -22,6 +24,8 @@ export declare const LikeInputSchema: z.ZodObject<{
22
24
  readonly JOB: "JOB";
23
25
  readonly POST: "POST";
24
26
  readonly PRODUCT: "PRODUCT";
27
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
28
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
25
29
  readonly COMMENT: "COMMENT";
26
30
  readonly JOB_APPLICATION: "JOB_APPLICATION";
27
31
  }>;
@@ -38,6 +42,8 @@ export declare const LikeOutputSchema: z.ZodObject<{
38
42
  readonly JOB: "JOB";
39
43
  readonly POST: "POST";
40
44
  readonly PRODUCT: "PRODUCT";
45
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
46
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
41
47
  readonly COMMENT: "COMMENT";
42
48
  readonly JOB_APPLICATION: "JOB_APPLICATION";
43
49
  }>;
@@ -27,6 +27,8 @@ export declare const MessageEntitySchema: z.ZodObject<{
27
27
  readonly JOB: "JOB";
28
28
  readonly POST: "POST";
29
29
  readonly PRODUCT: "PRODUCT";
30
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
31
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
30
32
  readonly COMMENT: "COMMENT";
31
33
  readonly JOB_APPLICATION: "JOB_APPLICATION";
32
34
  }>>;
@@ -85,6 +87,8 @@ export declare const MessageWithFilesEntitySchema: z.ZodObject<{
85
87
  readonly JOB: "JOB";
86
88
  readonly POST: "POST";
87
89
  readonly PRODUCT: "PRODUCT";
90
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
91
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
88
92
  readonly COMMENT: "COMMENT";
89
93
  readonly JOB_APPLICATION: "JOB_APPLICATION";
90
94
  }>>;
@@ -150,6 +154,8 @@ export declare const CreateMessageInputSchema: z.ZodObject<{
150
154
  readonly JOB: "JOB";
151
155
  readonly POST: "POST";
152
156
  readonly PRODUCT: "PRODUCT";
157
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
158
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
153
159
  readonly COMMENT: "COMMENT";
154
160
  readonly JOB_APPLICATION: "JOB_APPLICATION";
155
161
  }>>;
@@ -188,6 +194,8 @@ export declare const GetMessagesOutputSchema: z.ZodObject<{
188
194
  readonly JOB: "JOB";
189
195
  readonly POST: "POST";
190
196
  readonly PRODUCT: "PRODUCT";
197
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
198
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
191
199
  readonly COMMENT: "COMMENT";
192
200
  readonly JOB_APPLICATION: "JOB_APPLICATION";
193
201
  }>>;
@@ -23,6 +23,8 @@ export declare const NotificationEntitySchema: z.ZodObject<{
23
23
  readonly JOB: "JOB";
24
24
  readonly POST: "POST";
25
25
  readonly PRODUCT: "PRODUCT";
26
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
27
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
26
28
  readonly COMMENT: "COMMENT";
27
29
  readonly JOB_APPLICATION: "JOB_APPLICATION";
28
30
  }>>>;
@@ -33,6 +35,8 @@ export declare const NotificationEntitySchema: z.ZodObject<{
33
35
  readonly JOB: "JOB";
34
36
  readonly POST: "POST";
35
37
  readonly PRODUCT: "PRODUCT";
38
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
39
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
36
40
  readonly COMMENT: "COMMENT";
37
41
  readonly JOB_APPLICATION: "JOB_APPLICATION";
38
42
  }>;
@@ -69,6 +73,8 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
69
73
  readonly JOB: "JOB";
70
74
  readonly POST: "POST";
71
75
  readonly PRODUCT: "PRODUCT";
76
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
77
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
72
78
  readonly COMMENT: "COMMENT";
73
79
  readonly JOB_APPLICATION: "JOB_APPLICATION";
74
80
  }>>>;
@@ -79,6 +85,8 @@ export declare const NotificationDetailsEntitySchema: z.ZodObject<{
79
85
  readonly JOB: "JOB";
80
86
  readonly POST: "POST";
81
87
  readonly PRODUCT: "PRODUCT";
88
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
89
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
82
90
  readonly COMMENT: "COMMENT";
83
91
  readonly JOB_APPLICATION: "JOB_APPLICATION";
84
92
  }>;
@@ -157,6 +165,8 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
157
165
  readonly JOB: "JOB";
158
166
  readonly POST: "POST";
159
167
  readonly PRODUCT: "PRODUCT";
168
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
169
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
160
170
  readonly COMMENT: "COMMENT";
161
171
  readonly JOB_APPLICATION: "JOB_APPLICATION";
162
172
  }>>>;
@@ -167,6 +177,8 @@ export declare const ListNotificationsOutputSchema: z.ZodObject<{
167
177
  readonly JOB: "JOB";
168
178
  readonly POST: "POST";
169
179
  readonly PRODUCT: "PRODUCT";
180
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
181
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
170
182
  readonly COMMENT: "COMMENT";
171
183
  readonly JOB_APPLICATION: "JOB_APPLICATION";
172
184
  }>;
@@ -8,6 +8,8 @@ export declare const PostEntitySchema: z.ZodObject<{
8
8
  readonly JOB: "JOB";
9
9
  readonly POST: "POST";
10
10
  readonly PRODUCT: "PRODUCT";
11
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
12
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
11
13
  readonly COMMENT: "COMMENT";
12
14
  readonly JOB_APPLICATION: "JOB_APPLICATION";
13
15
  }>>;
@@ -58,6 +60,8 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
58
60
  readonly JOB: "JOB";
59
61
  readonly POST: "POST";
60
62
  readonly PRODUCT: "PRODUCT";
63
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
64
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
61
65
  readonly COMMENT: "COMMENT";
62
66
  readonly JOB_APPLICATION: "JOB_APPLICATION";
63
67
  }>>;
@@ -109,6 +113,8 @@ export declare const PostWithFilesEntitySchema: z.ZodObject<{
109
113
  readonly JOB: "JOB";
110
114
  readonly POST: "POST";
111
115
  readonly PRODUCT: "PRODUCT";
116
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
117
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
112
118
  readonly COMMENT: "COMMENT";
113
119
  readonly JOB_APPLICATION: "JOB_APPLICATION";
114
120
  }>>;
@@ -134,6 +140,8 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
134
140
  readonly JOB: "JOB";
135
141
  readonly POST: "POST";
136
142
  readonly PRODUCT: "PRODUCT";
143
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
144
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
137
145
  readonly COMMENT: "COMMENT";
138
146
  readonly JOB_APPLICATION: "JOB_APPLICATION";
139
147
  }>>;
@@ -185,6 +193,8 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
185
193
  readonly JOB: "JOB";
186
194
  readonly POST: "POST";
187
195
  readonly PRODUCT: "PRODUCT";
196
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
197
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
188
198
  readonly COMMENT: "COMMENT";
189
199
  readonly JOB_APPLICATION: "JOB_APPLICATION";
190
200
  }>>;
@@ -204,6 +214,8 @@ export declare const FeedPostEntitySchema: z.ZodObject<{
204
214
  readonly JOB: "JOB";
205
215
  readonly POST: "POST";
206
216
  readonly PRODUCT: "PRODUCT";
217
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
218
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
207
219
  readonly COMMENT: "COMMENT";
208
220
  readonly JOB_APPLICATION: "JOB_APPLICATION";
209
221
  }>;
@@ -227,6 +239,8 @@ export declare const CreatePostInputSchema: z.ZodObject<{
227
239
  readonly JOB: "JOB";
228
240
  readonly POST: "POST";
229
241
  readonly PRODUCT: "PRODUCT";
242
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
243
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
230
244
  readonly COMMENT: "COMMENT";
231
245
  readonly JOB_APPLICATION: "JOB_APPLICATION";
232
246
  }>>;
@@ -250,6 +264,8 @@ export declare const CreatePostInputSchema: z.ZodObject<{
250
264
  readonly JOB: "JOB";
251
265
  readonly POST: "POST";
252
266
  readonly PRODUCT: "PRODUCT";
267
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
268
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
253
269
  readonly COMMENT: "COMMENT";
254
270
  readonly JOB_APPLICATION: "JOB_APPLICATION";
255
271
  }>>;
@@ -307,6 +323,8 @@ export declare const CreatePostOutputSchema: z.ZodObject<{
307
323
  readonly JOB: "JOB";
308
324
  readonly POST: "POST";
309
325
  readonly PRODUCT: "PRODUCT";
326
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
327
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
310
328
  readonly COMMENT: "COMMENT";
311
329
  readonly JOB_APPLICATION: "JOB_APPLICATION";
312
330
  }>>;
@@ -357,6 +375,8 @@ export declare const GetPostOutputSchema: z.ZodObject<{
357
375
  readonly JOB: "JOB";
358
376
  readonly POST: "POST";
359
377
  readonly PRODUCT: "PRODUCT";
378
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
379
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
360
380
  readonly COMMENT: "COMMENT";
361
381
  readonly JOB_APPLICATION: "JOB_APPLICATION";
362
382
  }>>;
@@ -408,6 +428,8 @@ export declare const GetPostOutputSchema: z.ZodObject<{
408
428
  readonly JOB: "JOB";
409
429
  readonly POST: "POST";
410
430
  readonly PRODUCT: "PRODUCT";
431
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
432
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
411
433
  readonly COMMENT: "COMMENT";
412
434
  readonly JOB_APPLICATION: "JOB_APPLICATION";
413
435
  }>>;
@@ -436,6 +458,8 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
436
458
  readonly JOB: "JOB";
437
459
  readonly POST: "POST";
438
460
  readonly PRODUCT: "PRODUCT";
461
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
462
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
439
463
  readonly COMMENT: "COMMENT";
440
464
  readonly JOB_APPLICATION: "JOB_APPLICATION";
441
465
  }>>;
@@ -487,6 +511,8 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
487
511
  readonly JOB: "JOB";
488
512
  readonly POST: "POST";
489
513
  readonly PRODUCT: "PRODUCT";
514
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
515
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
490
516
  readonly COMMENT: "COMMENT";
491
517
  readonly JOB_APPLICATION: "JOB_APPLICATION";
492
518
  }>>;
@@ -506,6 +532,8 @@ export declare const GetFeedOutputSchema: z.ZodObject<{
506
532
  readonly JOB: "JOB";
507
533
  readonly POST: "POST";
508
534
  readonly PRODUCT: "PRODUCT";
535
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
536
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
509
537
  readonly COMMENT: "COMMENT";
510
538
  readonly JOB_APPLICATION: "JOB_APPLICATION";
511
539
  }>;
@@ -532,6 +560,8 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
532
560
  readonly JOB: "JOB";
533
561
  readonly POST: "POST";
534
562
  readonly PRODUCT: "PRODUCT";
563
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
564
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
535
565
  readonly COMMENT: "COMMENT";
536
566
  readonly JOB_APPLICATION: "JOB_APPLICATION";
537
567
  }>>;
@@ -583,6 +613,8 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
583
613
  readonly JOB: "JOB";
584
614
  readonly POST: "POST";
585
615
  readonly PRODUCT: "PRODUCT";
616
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
617
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
586
618
  readonly COMMENT: "COMMENT";
587
619
  readonly JOB_APPLICATION: "JOB_APPLICATION";
588
620
  }>>;
@@ -602,6 +634,8 @@ export declare const SearchPostOutputSchema: z.ZodObject<{
602
634
  readonly JOB: "JOB";
603
635
  readonly POST: "POST";
604
636
  readonly PRODUCT: "PRODUCT";
637
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
638
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
605
639
  readonly COMMENT: "COMMENT";
606
640
  readonly JOB_APPLICATION: "JOB_APPLICATION";
607
641
  }>;
@@ -668,6 +702,8 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
668
702
  readonly JOB: "JOB";
669
703
  readonly POST: "POST";
670
704
  readonly PRODUCT: "PRODUCT";
705
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
706
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
671
707
  readonly COMMENT: "COMMENT";
672
708
  readonly JOB_APPLICATION: "JOB_APPLICATION";
673
709
  }>;
@@ -712,6 +748,8 @@ export declare const PostSearchDocumentSchema: z.ZodObject<{
712
748
  readonly JOB: "JOB";
713
749
  readonly POST: "POST";
714
750
  readonly PRODUCT: "PRODUCT";
751
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
752
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
715
753
  readonly COMMENT: "COMMENT";
716
754
  readonly JOB_APPLICATION: "JOB_APPLICATION";
717
755
  }>>;
@@ -1,24 +1,4 @@
1
1
  import { z } from "@hono/zod-openapi";
2
- export declare const CoverImageInputSchema: z.ZodObject<{
3
- key: z.ZodString;
4
- mimeType: z.ZodString;
5
- isThumbnail: z.ZodDefault<z.ZodBoolean>;
6
- order: z.ZodDefault<z.ZodNumber>;
7
- }, z.core.$strip>;
8
- export declare const DeliveryFileInputSchema: z.ZodObject<{
9
- key: z.ZodString;
10
- mimeType: z.ZodString;
11
- order: z.ZodDefault<z.ZodNumber>;
12
- }, z.core.$strip>;
13
- export declare const ProductCoverImageEntitySchema: z.ZodObject<{
14
- fileId: z.ZodCUID2;
15
- isThumbnail: z.ZodDefault<z.ZodBoolean>;
16
- order: z.ZodDefault<z.ZodNumber>;
17
- }, z.core.$strip>;
18
- export declare const ProductDeliveryFileEntitySchema: z.ZodObject<{
19
- fileId: z.ZodCUID2;
20
- order: z.ZodDefault<z.ZodNumber>;
21
- }, z.core.$strip>;
22
2
  export declare const ProductDiscountEntitySchema: z.ZodObject<{
23
3
  discountType: z.ZodEnum<{
24
4
  readonly FIXED_AMOUNT: "Fixed Amount";
@@ -32,61 +12,6 @@ export declare const ProductLinkSchema: z.ZodObject<{
32
12
  title: z.ZodNullable<z.ZodString>;
33
13
  url: z.ZodString;
34
14
  }, z.core.$strip>;
35
- export type ProductLink = z.infer<typeof ProductLinkSchema>;
36
- export declare const BaseProductSchema: z.ZodObject<{
37
- id: z.ZodCUID2;
38
- createdAt: z.ZodDate;
39
- updatedAt: z.ZodDate;
40
- deletedAt: z.ZodNullable<z.ZodDate>;
41
- status: z.ZodDefault<z.ZodEnum<{
42
- readonly ACTIVE: "ACTIVE";
43
- readonly UNDER_REVIEW: "UNDER_REVIEW";
44
- readonly DRAFT: "DRAFT";
45
- readonly ARCHIVED: "ARCHIVED";
46
- readonly DELETED: "DELETED";
47
- }>>;
48
- sellerId: z.ZodCUID2;
49
- title: z.ZodString;
50
- description: z.ZodString;
51
- keyFeatures: z.ZodString;
52
- category: z.ZodString;
53
- subcategory: z.ZodNullable<z.ZodString>;
54
- tags: z.ZodNullable<z.ZodArray<z.ZodString>>;
55
- productLinks: z.ZodNullable<z.ZodArray<z.ZodObject<{
56
- title: z.ZodNullable<z.ZodString>;
57
- url: z.ZodString;
58
- }, z.core.$strip>>>;
59
- pricingModel: z.ZodEnum<{
60
- readonly FREE: "Free";
61
- readonly FIXED: "Fixed";
62
- readonly PWYW: "Pay What You Want";
63
- }>;
64
- currency: z.ZodEnum<{
65
- readonly USD: "USD (United States Dollar)";
66
- readonly EUR: "EUR (Euro)";
67
- readonly GBP: "GBP (British Pound Sterling)";
68
- readonly NGN: "NGN (Nigerian Naira)";
69
- readonly CAD: "CAD (Canadian Dollar)";
70
- readonly AUD: "AUD (Australian Dollar)";
71
- readonly JPY: "JPY (Japanese Yen)";
72
- readonly CHF: "CHF (Swiss Franc)";
73
- readonly INR: "INR (Indian Rupee)";
74
- readonly ZAR: "ZAR (South African Rand)";
75
- }>;
76
- price: z.ZodNullable<z.ZodNumber>;
77
- suggestedPrice: z.ZodNullable<z.ZodNumber>;
78
- discounts: z.ZodNullable<z.ZodArray<z.ZodObject<{
79
- discountType: z.ZodEnum<{
80
- readonly FIXED_AMOUNT: "Fixed Amount";
81
- readonly PERCENTAGE: "Percentage";
82
- }>;
83
- amount: z.ZodNumber;
84
- discountCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
85
- expiry: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
86
- }, z.core.$strip>>>;
87
- supportEmail: z.ZodNullable<z.ZodString>;
88
- supportPhone: z.ZodNullable<z.ZodString>;
89
- }, z.core.$strip>;
90
15
  export declare const CreateProductInputSchema: z.ZodObject<{
91
16
  id: z.ZodCUID2;
92
17
  title: z.ZodString;
@@ -102,12 +27,28 @@ export declare const CreateProductInputSchema: z.ZodObject<{
102
27
  category: z.ZodString;
103
28
  subcategory: z.ZodOptional<z.ZodString>;
104
29
  tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
105
- coverImages: z.ZodArray<z.ZodObject<{
30
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
106
31
  key: z.ZodString;
107
32
  mimeType: z.ZodString;
108
- isThumbnail: z.ZodDefault<z.ZodBoolean>;
109
- order: z.ZodDefault<z.ZodNumber>;
110
- }, z.core.$strip>>;
33
+ parentId: z.ZodOptional<z.ZodCUID2>;
34
+ parentType: z.ZodOptional<z.ZodEnum<{
35
+ readonly PROJECT: "PROJECT";
36
+ readonly USER: "USER";
37
+ readonly JOB: "JOB";
38
+ readonly POST: "POST";
39
+ readonly PRODUCT: "PRODUCT";
40
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
41
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
42
+ readonly COMMENT: "COMMENT";
43
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
44
+ }>>;
45
+ isThumbnail: z.ZodOptional<z.ZodBoolean>;
46
+ order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
47
+ }, z.core.$strip>>>;
48
+ productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
49
+ title: z.ZodNullable<z.ZodString>;
50
+ url: z.ZodString;
51
+ }, z.core.$strip>>>;
111
52
  currency: z.ZodEnum<{
112
53
  readonly USD: "USD (United States Dollar)";
113
54
  readonly EUR: "EUR (Euro)";
@@ -120,15 +61,6 @@ export declare const CreateProductInputSchema: z.ZodObject<{
120
61
  readonly INR: "INR (Indian Rupee)";
121
62
  readonly ZAR: "ZAR (South African Rand)";
122
63
  }>;
123
- productFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
124
- key: z.ZodString;
125
- mimeType: z.ZodString;
126
- order: z.ZodDefault<z.ZodNumber>;
127
- }, z.core.$strip>>>;
128
- productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
129
- title: z.ZodNullable<z.ZodString>;
130
- url: z.ZodString;
131
- }, z.core.$strip>>>;
132
64
  pricingModel: z.ZodDefault<z.ZodEnum<{
133
65
  readonly FREE: "Free";
134
66
  readonly FIXED: "Fixed";
@@ -169,12 +101,28 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
169
101
  category: z.ZodOptional<z.ZodString>;
170
102
  subcategory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
171
103
  tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
172
- coverImages: z.ZodOptional<z.ZodArray<z.ZodObject<{
104
+ files: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
173
105
  key: z.ZodString;
174
106
  mimeType: z.ZodString;
175
- isThumbnail: z.ZodDefault<z.ZodBoolean>;
176
- order: z.ZodDefault<z.ZodNumber>;
177
- }, z.core.$strip>>>;
107
+ parentId: z.ZodOptional<z.ZodCUID2>;
108
+ parentType: z.ZodOptional<z.ZodEnum<{
109
+ readonly PROJECT: "PROJECT";
110
+ readonly USER: "USER";
111
+ readonly JOB: "JOB";
112
+ readonly POST: "POST";
113
+ readonly PRODUCT: "PRODUCT";
114
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
115
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
116
+ readonly COMMENT: "COMMENT";
117
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
118
+ }>>;
119
+ isThumbnail: z.ZodOptional<z.ZodBoolean>;
120
+ order: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
121
+ }, z.core.$strip>>>>;
122
+ productLinks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
123
+ title: z.ZodNullable<z.ZodString>;
124
+ url: z.ZodString;
125
+ }, z.core.$strip>>>>;
178
126
  currency: z.ZodOptional<z.ZodEnum<{
179
127
  readonly USD: "USD (United States Dollar)";
180
128
  readonly EUR: "EUR (Euro)";
@@ -187,15 +135,6 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
187
135
  readonly INR: "INR (Indian Rupee)";
188
136
  readonly ZAR: "ZAR (South African Rand)";
189
137
  }>>;
190
- productFiles: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
191
- key: z.ZodString;
192
- mimeType: z.ZodString;
193
- order: z.ZodDefault<z.ZodNumber>;
194
- }, z.core.$strip>>>>;
195
- productLinks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
196
- title: z.ZodNullable<z.ZodString>;
197
- url: z.ZodString;
198
- }, z.core.$strip>>>>;
199
138
  pricingModel: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
200
139
  readonly FREE: "Free";
201
140
  readonly FIXED: "Fixed";
@@ -239,16 +178,28 @@ export declare const ProductEntitySchema: z.ZodObject<{
239
178
  category: z.ZodString;
240
179
  subcategory: z.ZodNullable<z.ZodOptional<z.ZodString>>;
241
180
  tags: z.ZodArray<z.ZodString>;
242
- coverImages: z.ZodDefault<z.ZodArray<z.ZodObject<{
243
- fileId: z.ZodCUID2;
244
- isThumbnail: z.ZodDefault<z.ZodBoolean>;
245
- order: z.ZodDefault<z.ZodNumber>;
246
- url: z.ZodURL;
247
- }, z.core.$strip>>>;
248
- productFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
249
- fileId: z.ZodCUID2;
250
- order: z.ZodDefault<z.ZodNumber>;
181
+ files: z.ZodDefault<z.ZodArray<z.ZodObject<{
182
+ id: z.ZodCUID2;
183
+ key: z.ZodString;
184
+ mimeType: z.ZodString;
251
185
  url: z.ZodURL;
186
+ parentId: z.ZodNullable<z.ZodCUID2>;
187
+ parentType: z.ZodNullable<z.ZodEnum<{
188
+ readonly PROJECT: "PROJECT";
189
+ readonly USER: "USER";
190
+ readonly JOB: "JOB";
191
+ readonly POST: "POST";
192
+ readonly PRODUCT: "PRODUCT";
193
+ readonly PRODUCT_COVER: "PRODUCT_COVER";
194
+ readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
195
+ readonly COMMENT: "COMMENT";
196
+ readonly JOB_APPLICATION: "JOB_APPLICATION";
197
+ }>>;
198
+ isThumbnail: z.ZodNullable<z.ZodBoolean>;
199
+ order: z.ZodNumber;
200
+ createdAt: z.ZodCoercedDate<unknown>;
201
+ updatedAt: z.ZodCoercedDate<unknown>;
202
+ deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
252
203
  }, z.core.$strip>>>;
253
204
  productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
254
205
  title: z.ZodNullable<z.ZodString>;
@@ -282,6 +233,10 @@ export declare const ProductEntitySchema: z.ZodObject<{
282
233
  discountCode: z.ZodOptional<z.ZodString>;
283
234
  expiry: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
284
235
  }, z.core.$strip>>>;
236
+ ownsRights: z.ZodBoolean;
237
+ noHarmfulContent: z.ZodBoolean;
238
+ providesSupport: z.ZodBoolean;
239
+ agreesToTerms: z.ZodBoolean;
285
240
  supportEmail: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
286
241
  supportPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
287
242
  createdAt: z.ZodCoercedDate<unknown>;
@@ -456,18 +411,14 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
456
411
  deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
457
412
  }, z.core.$strip>>;
458
413
  }, z.core.$strip>;
414
+ export type ProductLink = z.infer<typeof ProductLinkSchema>;
459
415
  export type SearchProductInput = z.infer<typeof SearchProductInputSchema>;
460
416
  export type SearchProductOutput = z.infer<typeof SearchProductOutputSchema>;
461
- export type CoverImageInput = z.infer<typeof CoverImageInputSchema>;
462
- export type DeliveryFileInput = z.infer<typeof DeliveryFileInputSchema>;
463
417
  export type MarketplaceCategoryOutput = z.infer<typeof MarketplaceCategorySchema>;
464
418
  export type GetMarketplaceInfoOutput = z.infer<typeof GetMarketplaceInfoOutputSchema>;
465
- export type ProductCoverImageEntity = z.infer<typeof ProductCoverImageEntitySchema>;
466
- export type ProductDeliveryFileEntity = z.infer<typeof ProductDeliveryFileEntitySchema>;
467
419
  export type ProductDiscountEntity = z.infer<typeof ProductDiscountEntitySchema>;
468
420
  export type CreateProductInputEntity = z.infer<typeof CreateProductInputSchema>;
469
421
  export type ProductServiceAndComplianceInputEntity = z.infer<typeof ProductServiceAndComplianceInputSchema>;
470
422
  export type UpdateProductInputEntity = z.infer<typeof UpdateProductInputSchema>;
471
423
  export type ProductEntity = z.infer<typeof ProductEntitySchema>;
472
- export type BaseProductEntity = z.infer<typeof BaseProductSchema>;
473
424
  export type ProductSearchDocument = z.infer<typeof ProductSearchDocumentSchema>;