@zyacreatives/shared 2.5.52 → 2.5.55
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/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/schemas/activity.d.ts +1 -0
- package/dist/schemas/auth.d.ts +2 -0
- package/dist/schemas/bookmark.d.ts +62 -7
- package/dist/schemas/bookmark.js +32 -30
- package/dist/schemas/brand.d.ts +3 -3
- package/dist/schemas/chat.d.ts +96 -52
- package/dist/schemas/chat.js +44 -18
- package/dist/schemas/comment.d.ts +65 -21
- package/dist/schemas/comment.js +48 -54
- package/dist/schemas/common.d.ts +15 -11
- package/dist/schemas/creative.d.ts +21 -21
- package/dist/schemas/creative.js +3 -3
- package/dist/schemas/discipline.d.ts +63 -12
- package/dist/schemas/discipline.js +62 -65
- package/dist/schemas/entity-stats.d.ts +35 -3
- package/dist/schemas/entity-stats.js +24 -38
- package/dist/schemas/feed.d.ts +50 -3
- package/dist/schemas/feed.js +43 -13
- package/dist/schemas/file.d.ts +65 -24
- package/dist/schemas/file.js +60 -49
- package/dist/schemas/index.d.ts +1 -0
- package/dist/schemas/index.js +1 -0
- package/dist/schemas/investor-shortlist.d.ts +68 -11
- package/dist/schemas/investor-shortlist.js +46 -24
- package/dist/schemas/investor-signal.d.ts +52 -12
- package/dist/schemas/investor-signal.js +59 -39
- package/dist/schemas/investor.d.ts +3 -3
- package/dist/schemas/job-application.d.ts +291 -279
- package/dist/schemas/job-application.js +59 -95
- package/dist/schemas/job.d.ts +200 -659
- package/dist/schemas/job.js +98 -231
- package/dist/schemas/like.d.ts +3 -0
- package/dist/schemas/message.d.ts +125 -94
- package/dist/schemas/message.js +54 -55
- package/dist/schemas/notification.d.ts +99 -32
- package/dist/schemas/notification.js +46 -42
- package/dist/schemas/payout-method.d.ts +51 -31
- package/dist/schemas/payout-method.js +48 -58
- package/dist/schemas/post.d.ts +295 -204
- package/dist/schemas/post.js +148 -272
- package/dist/schemas/product.d.ts +308 -229
- package/dist/schemas/product.js +111 -94
- package/dist/schemas/project.d.ts +75 -107
- package/dist/schemas/project.js +1 -5
- package/dist/schemas/seller.d.ts +10 -10
- package/dist/schemas/user-strike.d.ts +3 -0
- package/dist/schemas/user.d.ts +128 -126
- package/dist/schemas/user.js +10 -1
- package/dist/schemas/username.d.ts +1 -0
- package/dist/schemas/view.d.ts +1 -0
- package/dist/types/activity.d.ts +1 -3
- package/dist/types/auth.d.ts +1 -4
- package/dist/types/bookmark.d.ts +1 -3
- package/dist/types/chat.d.ts +1 -11
- package/dist/types/comment.d.ts +1 -5
- package/dist/types/common.d.ts +2 -8
- package/dist/types/discipline.d.ts +1 -11
- package/dist/types/entity-stats.d.ts +1 -3
- package/dist/types/feed.d.ts +1 -5
- package/dist/types/investor-shortlist.d.ts +1 -6
- package/dist/types/investor-signal.d.ts +1 -7
- package/dist/types/like.d.ts +1 -3
- package/dist/types/message.d.ts +1 -9
- package/dist/types/notification.d.ts +1 -9
- package/dist/types/user-strike.d.ts +1 -5
- package/dist/types/username.d.ts +1 -3
- package/package.json +1 -1
- package/src/index.ts +4 -5
- package/src/schemas/activity.ts +5 -4
- package/src/schemas/auth.ts +14 -10
- package/src/schemas/bookmark.ts +48 -29
- package/src/schemas/chat.ts +79 -18
- package/src/schemas/comment.ts +63 -49
- package/src/schemas/common.ts +8 -3
- package/src/schemas/creative.ts +3 -3
- package/src/schemas/discipline.ts +103 -71
- package/src/schemas/entity-stats.ts +32 -38
- package/src/schemas/feed.ts +62 -15
- package/src/schemas/file.ts +85 -58
- package/src/schemas/index.ts +1 -0
- package/src/schemas/investor-shortlist.ts +57 -8
- package/src/schemas/investor-signal.ts +79 -27
- package/src/schemas/job-application.ts +81 -115
- package/src/schemas/job.ts +160 -301
- package/src/schemas/like.ts +5 -1
- package/src/schemas/message.ts +71 -64
- package/src/schemas/notification.ts +63 -51
- package/src/schemas/payout-method.ts +47 -63
- package/src/schemas/post.ts +211 -272
- package/src/schemas/product.ts +202 -139
- package/src/schemas/project.ts +7 -10
- package/src/schemas/user-strike.ts +7 -1
- package/src/schemas/user.ts +17 -5
- package/src/schemas/username.ts +5 -3
- package/src/schemas/view.ts +0 -50
- package/src/types/activity.ts +0 -4
- package/src/types/auth.ts +0 -5
- package/src/types/bookmark.ts +0 -4
- package/src/types/chat.ts +0 -31
- package/src/types/comment.ts +0 -12
- package/src/types/common.ts +0 -14
- package/src/types/discipline.ts +0 -32
- package/src/types/entity-stats.ts +0 -4
- package/src/types/feed.ts +0 -10
- package/src/types/index.ts +0 -16
- package/src/types/investor-shortlist.ts +0 -18
- package/src/types/investor-signal.ts +0 -26
- package/src/types/like.ts +0 -4
- package/src/types/message.ts +0 -26
- package/src/types/notification.ts +0 -34
- package/src/types/user-strike.ts +0 -10
- package/src/types/username.ts +0 -4
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
+
/**
|
|
3
|
+
* --------------------------------
|
|
4
|
+
* SHARED
|
|
5
|
+
* --------------------------------
|
|
6
|
+
*/
|
|
2
7
|
export declare const ProductDiscountEntitySchema: z.ZodObject<{
|
|
3
8
|
discountType: z.ZodEnum<{
|
|
4
9
|
readonly FIXED_AMOUNT: "Fixed Amount";
|
|
@@ -8,12 +13,18 @@ export declare const ProductDiscountEntitySchema: z.ZodObject<{
|
|
|
8
13
|
discountCode: z.ZodOptional<z.ZodString>;
|
|
9
14
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
10
15
|
}, z.core.$strip>;
|
|
16
|
+
export type ProductDiscountEntity = z.infer<typeof ProductDiscountEntitySchema>;
|
|
11
17
|
export declare const ProductLinkSchema: z.ZodObject<{
|
|
12
18
|
title: z.ZodNullable<z.ZodString>;
|
|
13
19
|
url: z.ZodString;
|
|
14
20
|
}, z.core.$strip>;
|
|
15
|
-
export
|
|
16
|
-
|
|
21
|
+
export type ProductLink = z.infer<typeof ProductLinkSchema>;
|
|
22
|
+
/**
|
|
23
|
+
* --------------------------------
|
|
24
|
+
* SHAPE
|
|
25
|
+
* --------------------------------
|
|
26
|
+
*/
|
|
27
|
+
declare const ProductShape: z.ZodObject<{
|
|
17
28
|
title: z.ZodString;
|
|
18
29
|
description: z.ZodString;
|
|
19
30
|
keyFeatures: z.ZodString;
|
|
@@ -27,11 +38,60 @@ export declare const CreateProductInputSchema: z.ZodObject<{
|
|
|
27
38
|
category: z.ZodString;
|
|
28
39
|
subcategory: z.ZodOptional<z.ZodString>;
|
|
29
40
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
|
+
currency: z.ZodEnum<{
|
|
42
|
+
readonly USD: "USD (United States Dollar)";
|
|
43
|
+
readonly EUR: "EUR (Euro)";
|
|
44
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
45
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
46
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
47
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
48
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
49
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
50
|
+
readonly INR: "INR (Indian Rupee)";
|
|
51
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
52
|
+
}>;
|
|
53
|
+
pricingModel: z.ZodDefault<z.ZodEnum<{
|
|
54
|
+
readonly FREE: "Free";
|
|
55
|
+
readonly FIXED: "Fixed";
|
|
56
|
+
readonly PWYW: "Pay What You Want";
|
|
57
|
+
}>>;
|
|
58
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
suggestedPrice: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
discounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
61
|
+
discountType: z.ZodEnum<{
|
|
62
|
+
readonly FIXED_AMOUNT: "Fixed Amount";
|
|
63
|
+
readonly PERCENTAGE: "Percentage";
|
|
64
|
+
}>;
|
|
65
|
+
amount: z.ZodNumber;
|
|
66
|
+
discountCode: z.ZodOptional<z.ZodString>;
|
|
67
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type ProductShapeType = z.infer<typeof ProductShape>;
|
|
71
|
+
declare const ProductComplianceShape: z.ZodObject<{
|
|
72
|
+
supportEmail: z.ZodEmail;
|
|
73
|
+
supportPhone: z.ZodOptional<z.ZodString>;
|
|
74
|
+
ownsRights: z.ZodLiteral<true>;
|
|
75
|
+
noHarmfulContent: z.ZodLiteral<true>;
|
|
76
|
+
providesSupport: z.ZodBoolean;
|
|
77
|
+
agreesToTerms: z.ZodLiteral<true>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type ProductComplianceShapeType = z.infer<typeof ProductComplianceShape>;
|
|
80
|
+
/**
|
|
81
|
+
* --------------------------------
|
|
82
|
+
* BASE ENTITY
|
|
83
|
+
* --------------------------------
|
|
84
|
+
*/
|
|
85
|
+
export declare const ProductEntitySchema: z.ZodObject<{
|
|
86
|
+
subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
87
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
88
|
+
createdAt: z.ZodISODateTime;
|
|
89
|
+
updatedAt: z.ZodISODateTime;
|
|
90
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
31
91
|
key: z.ZodString;
|
|
32
92
|
mimeType: z.ZodString;
|
|
33
|
-
parentId: z.
|
|
34
|
-
parentType: z.
|
|
93
|
+
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
94
|
+
parentType: z.ZodNullable<z.ZodEnum<{
|
|
35
95
|
readonly PROJECT: "PROJECT";
|
|
36
96
|
readonly USER: "USER";
|
|
37
97
|
readonly JOB: "JOB";
|
|
@@ -43,13 +103,36 @@ export declare const CreateProductInputSchema: z.ZodObject<{
|
|
|
43
103
|
readonly COMMENT: "COMMENT";
|
|
44
104
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
45
105
|
}>>;
|
|
46
|
-
isThumbnail: z.
|
|
47
|
-
order: z.
|
|
106
|
+
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
107
|
+
order: z.ZodNumber;
|
|
108
|
+
id: z.ZodCUID2;
|
|
109
|
+
url: z.ZodURL;
|
|
48
110
|
}, z.core.$strip>>>;
|
|
49
111
|
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
50
112
|
title: z.ZodNullable<z.ZodString>;
|
|
51
113
|
url: z.ZodString;
|
|
52
114
|
}, z.core.$strip>>>;
|
|
115
|
+
ownsRights: z.ZodBoolean;
|
|
116
|
+
noHarmfulContent: z.ZodBoolean;
|
|
117
|
+
providesSupport: z.ZodBoolean;
|
|
118
|
+
agreesToTerms: z.ZodBoolean;
|
|
119
|
+
supportEmail: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
120
|
+
supportPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
121
|
+
createdAt: z.ZodISODateTime;
|
|
122
|
+
updatedAt: z.ZodISODateTime;
|
|
123
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
124
|
+
title: z.ZodString;
|
|
125
|
+
description: z.ZodString;
|
|
126
|
+
keyFeatures: z.ZodString;
|
|
127
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
128
|
+
readonly ACTIVE: "ACTIVE";
|
|
129
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
130
|
+
readonly DRAFT: "DRAFT";
|
|
131
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
132
|
+
readonly DELETED: "DELETED";
|
|
133
|
+
}>>;
|
|
134
|
+
category: z.ZodString;
|
|
135
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
53
136
|
currency: z.ZodEnum<{
|
|
54
137
|
readonly USD: "USD (United States Dollar)";
|
|
55
138
|
readonly EUR: "EUR (Euro)";
|
|
@@ -78,31 +161,57 @@ export declare const CreateProductInputSchema: z.ZodObject<{
|
|
|
78
161
|
discountCode: z.ZodOptional<z.ZodString>;
|
|
79
162
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
80
163
|
}, z.core.$strip>>>;
|
|
81
|
-
}, z.core.$strip>;
|
|
82
|
-
export declare const ProductServiceAndComplianceInputSchema: z.ZodObject<{
|
|
83
164
|
id: z.ZodCUID2;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
providesSupport: z.ZodBoolean;
|
|
89
|
-
agreesToTerms: z.ZodLiteral<true>;
|
|
165
|
+
sellerId: z.ZodCUID2;
|
|
166
|
+
sellerUsername: z.ZodString;
|
|
167
|
+
sellerName: z.ZodString;
|
|
168
|
+
sellerImageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
90
169
|
}, z.core.$strip>;
|
|
91
|
-
export
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
170
|
+
export type ProductEntity = z.infer<typeof ProductEntitySchema>;
|
|
171
|
+
export declare const CreateProductInputSchema: z.ZodObject<{
|
|
172
|
+
title: z.ZodString;
|
|
173
|
+
description: z.ZodString;
|
|
174
|
+
keyFeatures: z.ZodString;
|
|
175
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
96
176
|
readonly ACTIVE: "ACTIVE";
|
|
97
177
|
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
98
178
|
readonly DRAFT: "DRAFT";
|
|
99
179
|
readonly ARCHIVED: "ARCHIVED";
|
|
100
180
|
readonly DELETED: "DELETED";
|
|
101
|
-
}
|
|
102
|
-
category: z.
|
|
103
|
-
subcategory: z.ZodOptional<z.
|
|
104
|
-
tags: z.
|
|
105
|
-
|
|
181
|
+
}>>;
|
|
182
|
+
category: z.ZodString;
|
|
183
|
+
subcategory: z.ZodOptional<z.ZodString>;
|
|
184
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
185
|
+
currency: z.ZodEnum<{
|
|
186
|
+
readonly USD: "USD (United States Dollar)";
|
|
187
|
+
readonly EUR: "EUR (Euro)";
|
|
188
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
189
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
190
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
191
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
192
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
193
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
194
|
+
readonly INR: "INR (Indian Rupee)";
|
|
195
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
196
|
+
}>;
|
|
197
|
+
pricingModel: z.ZodDefault<z.ZodEnum<{
|
|
198
|
+
readonly FREE: "Free";
|
|
199
|
+
readonly FIXED: "Fixed";
|
|
200
|
+
readonly PWYW: "Pay What You Want";
|
|
201
|
+
}>>;
|
|
202
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
203
|
+
suggestedPrice: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
discounts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
205
|
+
discountType: z.ZodEnum<{
|
|
206
|
+
readonly FIXED_AMOUNT: "Fixed Amount";
|
|
207
|
+
readonly PERCENTAGE: "Percentage";
|
|
208
|
+
}>;
|
|
209
|
+
amount: z.ZodNumber;
|
|
210
|
+
discountCode: z.ZodOptional<z.ZodString>;
|
|
211
|
+
active: z.ZodDefault<z.ZodBoolean>;
|
|
212
|
+
}, z.core.$strip>>>;
|
|
213
|
+
id: z.ZodCUID2;
|
|
214
|
+
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
106
215
|
key: z.ZodString;
|
|
107
216
|
mimeType: z.ZodString;
|
|
108
217
|
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
@@ -119,12 +228,38 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
|
|
|
119
228
|
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
120
229
|
}>>;
|
|
121
230
|
isThumbnail: z.ZodOptional<z.ZodBoolean>;
|
|
122
|
-
order: z.ZodDefault<z.
|
|
123
|
-
}, z.core.$strip
|
|
124
|
-
productLinks: z.
|
|
231
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
232
|
+
}, z.core.$strip>>>;
|
|
233
|
+
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
125
234
|
title: z.ZodNullable<z.ZodString>;
|
|
126
235
|
url: z.ZodString;
|
|
127
|
-
}, z.core.$strip
|
|
236
|
+
}, z.core.$strip>>>;
|
|
237
|
+
}, z.core.$strip>;
|
|
238
|
+
export type CreateProductInputEntity = z.infer<typeof CreateProductInputSchema>;
|
|
239
|
+
export declare const ProductServiceAndComplianceInputSchema: z.ZodObject<{
|
|
240
|
+
supportEmail: z.ZodEmail;
|
|
241
|
+
supportPhone: z.ZodOptional<z.ZodString>;
|
|
242
|
+
ownsRights: z.ZodLiteral<true>;
|
|
243
|
+
noHarmfulContent: z.ZodLiteral<true>;
|
|
244
|
+
providesSupport: z.ZodBoolean;
|
|
245
|
+
agreesToTerms: z.ZodLiteral<true>;
|
|
246
|
+
id: z.ZodCUID2;
|
|
247
|
+
}, z.core.$strip>;
|
|
248
|
+
export type ProductServiceAndComplianceInputEntity = z.infer<typeof ProductServiceAndComplianceInputSchema>;
|
|
249
|
+
export declare const UpdateProductInputSchema: z.ZodObject<{
|
|
250
|
+
title: z.ZodOptional<z.ZodString>;
|
|
251
|
+
description: z.ZodOptional<z.ZodString>;
|
|
252
|
+
keyFeatures: z.ZodOptional<z.ZodString>;
|
|
253
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
254
|
+
readonly ACTIVE: "ACTIVE";
|
|
255
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
256
|
+
readonly DRAFT: "DRAFT";
|
|
257
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
258
|
+
readonly DELETED: "DELETED";
|
|
259
|
+
}>>>;
|
|
260
|
+
category: z.ZodOptional<z.ZodString>;
|
|
261
|
+
subcategory: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
262
|
+
tags: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
128
263
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
129
264
|
readonly USD: "USD (United States Dollar)";
|
|
130
265
|
readonly EUR: "EUR (Euro)";
|
|
@@ -153,6 +288,29 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
|
|
|
153
288
|
discountCode: z.ZodOptional<z.ZodString>;
|
|
154
289
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
155
290
|
}, z.core.$strip>>>>;
|
|
291
|
+
files: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
292
|
+
key: z.ZodString;
|
|
293
|
+
mimeType: z.ZodString;
|
|
294
|
+
parentId: z.ZodOptional<z.ZodCUID2>;
|
|
295
|
+
parentType: z.ZodOptional<z.ZodEnum<{
|
|
296
|
+
readonly PROJECT: "PROJECT";
|
|
297
|
+
readonly USER: "USER";
|
|
298
|
+
readonly JOB: "JOB";
|
|
299
|
+
readonly POST: "POST";
|
|
300
|
+
readonly PRODUCT: "PRODUCT";
|
|
301
|
+
readonly SIGNAL: "SIGNAL";
|
|
302
|
+
readonly PRODUCT_COVER: "PRODUCT_COVER";
|
|
303
|
+
readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
|
|
304
|
+
readonly COMMENT: "COMMENT";
|
|
305
|
+
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
306
|
+
}>>;
|
|
307
|
+
isThumbnail: z.ZodOptional<z.ZodBoolean>;
|
|
308
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
309
|
+
}, z.core.$strip>>>>;
|
|
310
|
+
productLinks: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
311
|
+
title: z.ZodNullable<z.ZodString>;
|
|
312
|
+
url: z.ZodString;
|
|
313
|
+
}, z.core.$strip>>>>;
|
|
156
314
|
supportEmail: z.ZodOptional<z.ZodEmail>;
|
|
157
315
|
supportPhone: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
158
316
|
ownsRights: z.ZodOptional<z.ZodLiteral<true>>;
|
|
@@ -161,15 +319,75 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
|
|
|
161
319
|
agreesToTerms: z.ZodOptional<z.ZodLiteral<true>>;
|
|
162
320
|
id: z.ZodCUID2;
|
|
163
321
|
}, z.core.$strip>;
|
|
164
|
-
export
|
|
322
|
+
export type UpdateProductInputEntity = z.infer<typeof UpdateProductInputSchema>;
|
|
323
|
+
export declare const SearchProductInputSchema: z.ZodObject<{
|
|
324
|
+
queryString: z.ZodOptional<z.ZodString>;
|
|
325
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
326
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
327
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
|
+
category: z.ZodOptional<z.ZodString>;
|
|
330
|
+
subcategory: z.ZodOptional<z.ZodString>;
|
|
331
|
+
}, z.core.$strip>;
|
|
332
|
+
export type SearchProductInput = z.infer<typeof SearchProductInputSchema>;
|
|
333
|
+
export declare const ProductDiscountCheckInputSchema: z.ZodObject<{
|
|
334
|
+
discountCode: z.ZodString;
|
|
335
|
+
productId: z.ZodCUID2;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
export type ProductDiscountCheckInput = z.infer<typeof ProductDiscountCheckInputSchema>;
|
|
338
|
+
export declare const RevenueChartInputSchema: z.ZodObject<{
|
|
339
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
340
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strip>;
|
|
342
|
+
export type RevenueChartInput = z.infer<typeof RevenueChartInputSchema>;
|
|
343
|
+
/**
|
|
344
|
+
* --------------------------------
|
|
345
|
+
* SEARCH / MARKETPLACE
|
|
346
|
+
* --------------------------------
|
|
347
|
+
*/
|
|
348
|
+
export declare const ProductSearchDocumentSchema: z.ZodObject<{
|
|
165
349
|
id: z.ZodCUID2;
|
|
166
350
|
sellerId: z.ZodCUID2;
|
|
167
351
|
sellerUsername: z.ZodString;
|
|
168
352
|
sellerName: z.ZodString;
|
|
169
|
-
sellerImageUrl: z.ZodNullable<z.
|
|
353
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
354
|
+
status: z.ZodEnum<{
|
|
355
|
+
readonly ACTIVE: "ACTIVE";
|
|
356
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
357
|
+
readonly DRAFT: "DRAFT";
|
|
358
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
359
|
+
readonly DELETED: "DELETED";
|
|
360
|
+
}>;
|
|
170
361
|
title: z.ZodString;
|
|
362
|
+
category: z.ZodString;
|
|
363
|
+
subcategory: z.ZodNullable<z.ZodString>;
|
|
364
|
+
tags: z.ZodArray<z.ZodString>;
|
|
365
|
+
thumbnailImgUrl: z.ZodNullable<z.ZodURL>;
|
|
366
|
+
currency: z.ZodEnum<{
|
|
367
|
+
readonly USD: "USD (United States Dollar)";
|
|
368
|
+
readonly EUR: "EUR (Euro)";
|
|
369
|
+
readonly GBP: "GBP (British Pound Sterling)";
|
|
370
|
+
readonly NGN: "NGN (Nigerian Naira)";
|
|
371
|
+
readonly CAD: "CAD (Canadian Dollar)";
|
|
372
|
+
readonly AUD: "AUD (Australian Dollar)";
|
|
373
|
+
readonly JPY: "JPY (Japanese Yen)";
|
|
374
|
+
readonly CHF: "CHF (Swiss Franc)";
|
|
375
|
+
readonly INR: "INR (Indian Rupee)";
|
|
376
|
+
readonly ZAR: "ZAR (South African Rand)";
|
|
377
|
+
}>;
|
|
378
|
+
price: z.ZodNullable<z.ZodNumber>;
|
|
379
|
+
suggestedPrice: z.ZodNullable<z.ZodNumber>;
|
|
380
|
+
createdAt: z.ZodISODateTime;
|
|
381
|
+
updatedAt: z.ZodISODateTime;
|
|
382
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
383
|
+
}, z.core.$strip>;
|
|
384
|
+
export type ProductSearchDocument = z.infer<typeof ProductSearchDocumentSchema>;
|
|
385
|
+
export declare const MarketplaceProductEntitySchema: z.ZodObject<{
|
|
386
|
+
id: z.ZodCUID2;
|
|
387
|
+
createdAt: z.ZodISODateTime;
|
|
388
|
+
updatedAt: z.ZodISODateTime;
|
|
171
389
|
description: z.ZodString;
|
|
172
|
-
|
|
390
|
+
title: z.ZodString;
|
|
173
391
|
status: z.ZodDefault<z.ZodEnum<{
|
|
174
392
|
readonly ACTIVE: "ACTIVE";
|
|
175
393
|
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
@@ -177,14 +395,14 @@ export declare const ProductEntitySchema: z.ZodObject<{
|
|
|
177
395
|
readonly ARCHIVED: "ARCHIVED";
|
|
178
396
|
readonly DELETED: "DELETED";
|
|
179
397
|
}>>;
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
tags: z.ZodArray<z.ZodString>;
|
|
398
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
399
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
183
400
|
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
184
|
-
|
|
401
|
+
createdAt: z.ZodISODateTime;
|
|
402
|
+
updatedAt: z.ZodISODateTime;
|
|
403
|
+
deletedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
185
404
|
key: z.ZodString;
|
|
186
405
|
mimeType: z.ZodString;
|
|
187
|
-
url: z.ZodURL;
|
|
188
406
|
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
189
407
|
parentType: z.ZodNullable<z.ZodEnum<{
|
|
190
408
|
readonly PROJECT: "PROJECT";
|
|
@@ -200,19 +418,12 @@ export declare const ProductEntitySchema: z.ZodObject<{
|
|
|
200
418
|
}>>;
|
|
201
419
|
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
202
420
|
order: z.ZodNumber;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
206
|
-
}, z.core.$strip>>>;
|
|
207
|
-
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
208
|
-
title: z.ZodNullable<z.ZodString>;
|
|
209
|
-
url: z.ZodString;
|
|
421
|
+
id: z.ZodCUID2;
|
|
422
|
+
url: z.ZodURL;
|
|
210
423
|
}, z.core.$strip>>>;
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
readonly PWYW: "Pay What You Want";
|
|
215
|
-
}>;
|
|
424
|
+
keyFeatures: z.ZodString;
|
|
425
|
+
category: z.ZodString;
|
|
426
|
+
subcategory: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
216
427
|
currency: z.ZodEnum<{
|
|
217
428
|
readonly USD: "USD (United States Dollar)";
|
|
218
429
|
readonly EUR: "EUR (Euro)";
|
|
@@ -225,78 +436,47 @@ export declare const ProductEntitySchema: z.ZodObject<{
|
|
|
225
436
|
readonly INR: "INR (Indian Rupee)";
|
|
226
437
|
readonly ZAR: "ZAR (South African Rand)";
|
|
227
438
|
}>;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
active: z.ZodDefault<z.ZodBoolean>;
|
|
238
|
-
}, z.core.$strip>>>;
|
|
439
|
+
pricingModel: z.ZodDefault<z.ZodEnum<{
|
|
440
|
+
readonly FREE: "Free";
|
|
441
|
+
readonly FIXED: "Fixed";
|
|
442
|
+
readonly PWYW: "Pay What You Want";
|
|
443
|
+
}>>;
|
|
444
|
+
price: z.ZodOptional<z.ZodNumber>;
|
|
445
|
+
suggestedPrice: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
supportEmail: z.ZodOptional<z.ZodNullable<z.ZodEmail>>;
|
|
447
|
+
supportPhone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
239
448
|
ownsRights: z.ZodBoolean;
|
|
240
449
|
noHarmfulContent: z.ZodBoolean;
|
|
241
450
|
providesSupport: z.ZodBoolean;
|
|
242
451
|
agreesToTerms: z.ZodBoolean;
|
|
243
|
-
supportEmail: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
244
|
-
supportPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
245
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
246
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
247
|
-
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
248
|
-
}, z.core.$strip>;
|
|
249
|
-
export declare const ProductSearchDocumentSchema: z.ZodObject<{
|
|
250
|
-
id: z.ZodCUID2;
|
|
251
452
|
sellerId: z.ZodCUID2;
|
|
252
453
|
sellerUsername: z.ZodString;
|
|
253
454
|
sellerName: z.ZodString;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
readonly DELETED: "DELETED";
|
|
260
|
-
}>;
|
|
261
|
-
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
262
|
-
title: z.ZodString;
|
|
263
|
-
category: z.ZodString;
|
|
264
|
-
subcategory: z.ZodNullable<z.ZodString>;
|
|
265
|
-
tags: z.ZodArray<z.ZodString>;
|
|
266
|
-
thumbnailImgUrl: z.ZodNullable<z.ZodURL>;
|
|
267
|
-
currency: z.ZodEnum<{
|
|
268
|
-
readonly USD: "USD (United States Dollar)";
|
|
269
|
-
readonly EUR: "EUR (Euro)";
|
|
270
|
-
readonly GBP: "GBP (British Pound Sterling)";
|
|
271
|
-
readonly NGN: "NGN (Nigerian Naira)";
|
|
272
|
-
readonly CAD: "CAD (Canadian Dollar)";
|
|
273
|
-
readonly AUD: "AUD (Australian Dollar)";
|
|
274
|
-
readonly JPY: "JPY (Japanese Yen)";
|
|
275
|
-
readonly CHF: "CHF (Swiss Franc)";
|
|
276
|
-
readonly INR: "INR (Indian Rupee)";
|
|
277
|
-
readonly ZAR: "ZAR (South African Rand)";
|
|
278
|
-
}>;
|
|
279
|
-
price: z.ZodNullable<z.ZodNumber>;
|
|
280
|
-
suggestedPrice: z.ZodNullable<z.ZodNumber>;
|
|
281
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
282
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
283
|
-
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
455
|
+
sellerImageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
456
|
+
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
457
|
+
title: z.ZodNullable<z.ZodString>;
|
|
458
|
+
url: z.ZodString;
|
|
459
|
+
}, z.core.$strip>>>;
|
|
284
460
|
}, z.core.$strip>;
|
|
285
|
-
export
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
291
|
-
category: z.ZodOptional<z.ZodString>;
|
|
292
|
-
subcategory: z.ZodOptional<z.ZodString>;
|
|
461
|
+
export type MarketplaceProductEntity = z.infer<typeof MarketplaceProductEntitySchema>;
|
|
462
|
+
export declare const MarketplaceCategorySchema: z.ZodObject<{
|
|
463
|
+
name: z.ZodString;
|
|
464
|
+
imgUrl: z.ZodURL;
|
|
465
|
+
subcategories: z.ZodArray<z.ZodString>;
|
|
293
466
|
}, z.core.$strip>;
|
|
467
|
+
export type MarketplaceCategoryOutput = z.infer<typeof MarketplaceCategorySchema>;
|
|
468
|
+
/**
|
|
469
|
+
* --------------------------------
|
|
470
|
+
* OUTPUTS
|
|
471
|
+
* --------------------------------
|
|
472
|
+
*/
|
|
294
473
|
export declare const SearchProductOutputSchema: z.ZodObject<{
|
|
295
474
|
products: z.ZodArray<z.ZodObject<{
|
|
296
475
|
id: z.ZodCUID2;
|
|
297
476
|
sellerId: z.ZodCUID2;
|
|
298
477
|
sellerUsername: z.ZodString;
|
|
299
478
|
sellerName: z.ZodString;
|
|
479
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
300
480
|
status: z.ZodEnum<{
|
|
301
481
|
readonly ACTIVE: "ACTIVE";
|
|
302
482
|
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
@@ -304,7 +484,6 @@ export declare const SearchProductOutputSchema: z.ZodObject<{
|
|
|
304
484
|
readonly ARCHIVED: "ARCHIVED";
|
|
305
485
|
readonly DELETED: "DELETED";
|
|
306
486
|
}>;
|
|
307
|
-
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
308
487
|
title: z.ZodString;
|
|
309
488
|
category: z.ZodString;
|
|
310
489
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
@@ -324,17 +503,13 @@ export declare const SearchProductOutputSchema: z.ZodObject<{
|
|
|
324
503
|
}>;
|
|
325
504
|
price: z.ZodNullable<z.ZodNumber>;
|
|
326
505
|
suggestedPrice: z.ZodNullable<z.ZodNumber>;
|
|
327
|
-
createdAt: z.
|
|
328
|
-
updatedAt: z.
|
|
329
|
-
deletedAt: z.
|
|
506
|
+
createdAt: z.ZodISODateTime;
|
|
507
|
+
updatedAt: z.ZodISODateTime;
|
|
508
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
330
509
|
}, z.core.$strip>>;
|
|
331
|
-
nextCursor: z.
|
|
332
|
-
}, z.core.$strip>;
|
|
333
|
-
export declare const MarketplaceCategorySchema: z.ZodObject<{
|
|
334
|
-
name: z.ZodString;
|
|
335
|
-
imgUrl: z.ZodURL;
|
|
336
|
-
subcategories: z.ZodArray<z.ZodString>;
|
|
510
|
+
nextCursor: z.ZodOptional<z.ZodString>;
|
|
337
511
|
}, z.core.$strip>;
|
|
512
|
+
export type SearchProductOutput = z.infer<typeof SearchProductOutputSchema>;
|
|
338
513
|
export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
339
514
|
categories: z.ZodArray<z.ZodObject<{
|
|
340
515
|
name: z.ZodString;
|
|
@@ -346,6 +521,7 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
|
346
521
|
sellerId: z.ZodCUID2;
|
|
347
522
|
sellerUsername: z.ZodString;
|
|
348
523
|
sellerName: z.ZodString;
|
|
524
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
349
525
|
status: z.ZodEnum<{
|
|
350
526
|
readonly ACTIVE: "ACTIVE";
|
|
351
527
|
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
@@ -353,7 +529,6 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
|
353
529
|
readonly ARCHIVED: "ARCHIVED";
|
|
354
530
|
readonly DELETED: "DELETED";
|
|
355
531
|
}>;
|
|
356
|
-
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
357
532
|
title: z.ZodString;
|
|
358
533
|
category: z.ZodString;
|
|
359
534
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
@@ -373,15 +548,16 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
|
373
548
|
}>;
|
|
374
549
|
price: z.ZodNullable<z.ZodNumber>;
|
|
375
550
|
suggestedPrice: z.ZodNullable<z.ZodNumber>;
|
|
376
|
-
createdAt: z.
|
|
377
|
-
updatedAt: z.
|
|
378
|
-
deletedAt: z.
|
|
551
|
+
createdAt: z.ZodISODateTime;
|
|
552
|
+
updatedAt: z.ZodISODateTime;
|
|
553
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
379
554
|
}, z.core.$strip>>;
|
|
380
555
|
communityFavourites: z.ZodArray<z.ZodObject<{
|
|
381
556
|
id: z.ZodCUID2;
|
|
382
557
|
sellerId: z.ZodCUID2;
|
|
383
558
|
sellerUsername: z.ZodString;
|
|
384
559
|
sellerName: z.ZodString;
|
|
560
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
385
561
|
status: z.ZodEnum<{
|
|
386
562
|
readonly ACTIVE: "ACTIVE";
|
|
387
563
|
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
@@ -389,7 +565,6 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
|
389
565
|
readonly ARCHIVED: "ARCHIVED";
|
|
390
566
|
readonly DELETED: "DELETED";
|
|
391
567
|
}>;
|
|
392
|
-
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
393
568
|
title: z.ZodString;
|
|
394
569
|
category: z.ZodString;
|
|
395
570
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
@@ -409,91 +584,12 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
|
409
584
|
}>;
|
|
410
585
|
price: z.ZodNullable<z.ZodNumber>;
|
|
411
586
|
suggestedPrice: z.ZodNullable<z.ZodNumber>;
|
|
412
|
-
createdAt: z.
|
|
413
|
-
updatedAt: z.
|
|
414
|
-
deletedAt: z.
|
|
587
|
+
createdAt: z.ZodISODateTime;
|
|
588
|
+
updatedAt: z.ZodISODateTime;
|
|
589
|
+
deletedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
415
590
|
}, z.core.$strip>>;
|
|
416
591
|
}, z.core.$strip>;
|
|
417
|
-
export
|
|
418
|
-
description: z.ZodString;
|
|
419
|
-
title: z.ZodString;
|
|
420
|
-
id: z.ZodCUID2;
|
|
421
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
422
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
423
|
-
status: z.ZodDefault<z.ZodEnum<{
|
|
424
|
-
readonly ACTIVE: "ACTIVE";
|
|
425
|
-
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
426
|
-
readonly DRAFT: "DRAFT";
|
|
427
|
-
readonly ARCHIVED: "ARCHIVED";
|
|
428
|
-
readonly DELETED: "DELETED";
|
|
429
|
-
}>>;
|
|
430
|
-
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
431
|
-
tags: z.ZodArray<z.ZodString>;
|
|
432
|
-
files: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
433
|
-
id: z.ZodCUID2;
|
|
434
|
-
key: z.ZodString;
|
|
435
|
-
mimeType: z.ZodString;
|
|
436
|
-
url: z.ZodURL;
|
|
437
|
-
parentId: z.ZodNullable<z.ZodCUID2>;
|
|
438
|
-
parentType: z.ZodNullable<z.ZodEnum<{
|
|
439
|
-
readonly PROJECT: "PROJECT";
|
|
440
|
-
readonly USER: "USER";
|
|
441
|
-
readonly JOB: "JOB";
|
|
442
|
-
readonly POST: "POST";
|
|
443
|
-
readonly PRODUCT: "PRODUCT";
|
|
444
|
-
readonly SIGNAL: "SIGNAL";
|
|
445
|
-
readonly PRODUCT_COVER: "PRODUCT_COVER";
|
|
446
|
-
readonly PRODUCT_DELIVERY: "PRODUCT_DELIVERY";
|
|
447
|
-
readonly COMMENT: "COMMENT";
|
|
448
|
-
readonly JOB_APPLICATION: "JOB_APPLICATION";
|
|
449
|
-
}>>;
|
|
450
|
-
isThumbnail: z.ZodNullable<z.ZodBoolean>;
|
|
451
|
-
order: z.ZodNumber;
|
|
452
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
453
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
454
|
-
deletedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
455
|
-
}, z.core.$strip>>>;
|
|
456
|
-
keyFeatures: z.ZodString;
|
|
457
|
-
category: z.ZodString;
|
|
458
|
-
subcategory: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
459
|
-
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
460
|
-
title: z.ZodNullable<z.ZodString>;
|
|
461
|
-
url: z.ZodString;
|
|
462
|
-
}, z.core.$strip>>>;
|
|
463
|
-
currency: z.ZodEnum<{
|
|
464
|
-
readonly USD: "USD (United States Dollar)";
|
|
465
|
-
readonly EUR: "EUR (Euro)";
|
|
466
|
-
readonly GBP: "GBP (British Pound Sterling)";
|
|
467
|
-
readonly NGN: "NGN (Nigerian Naira)";
|
|
468
|
-
readonly CAD: "CAD (Canadian Dollar)";
|
|
469
|
-
readonly AUD: "AUD (Australian Dollar)";
|
|
470
|
-
readonly JPY: "JPY (Japanese Yen)";
|
|
471
|
-
readonly CHF: "CHF (Swiss Franc)";
|
|
472
|
-
readonly INR: "INR (Indian Rupee)";
|
|
473
|
-
readonly ZAR: "ZAR (South African Rand)";
|
|
474
|
-
}>;
|
|
475
|
-
pricingModel: z.ZodEnum<{
|
|
476
|
-
readonly FREE: "Free";
|
|
477
|
-
readonly FIXED: "Fixed";
|
|
478
|
-
readonly PWYW: "Pay What You Want";
|
|
479
|
-
}>;
|
|
480
|
-
price: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
481
|
-
suggestedPrice: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
482
|
-
supportEmail: z.ZodNullable<z.ZodOptional<z.ZodEmail>>;
|
|
483
|
-
supportPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
484
|
-
ownsRights: z.ZodBoolean;
|
|
485
|
-
noHarmfulContent: z.ZodBoolean;
|
|
486
|
-
providesSupport: z.ZodBoolean;
|
|
487
|
-
agreesToTerms: z.ZodBoolean;
|
|
488
|
-
sellerId: z.ZodCUID2;
|
|
489
|
-
sellerUsername: z.ZodString;
|
|
490
|
-
sellerName: z.ZodString;
|
|
491
|
-
sellerImageUrl: z.ZodNullable<z.ZodOptional<z.ZodURL>>;
|
|
492
|
-
}, z.core.$strip>;
|
|
493
|
-
export declare const ProductDiscountCheckInputSchema: z.ZodObject<{
|
|
494
|
-
discountCode: z.ZodString;
|
|
495
|
-
productId: z.ZodCUID2;
|
|
496
|
-
}, z.core.$strip>;
|
|
592
|
+
export type GetMarketplaceInfoOutput = z.infer<typeof GetMarketplaceInfoOutputSchema>;
|
|
497
593
|
export declare const ProductDiscountCheckOutputSchema: z.ZodObject<{
|
|
498
594
|
exists: z.ZodBoolean;
|
|
499
595
|
discount: z.ZodNullable<z.ZodObject<{
|
|
@@ -506,19 +602,22 @@ export declare const ProductDiscountCheckOutputSchema: z.ZodObject<{
|
|
|
506
602
|
active: z.ZodDefault<z.ZodBoolean>;
|
|
507
603
|
}, z.core.$strip>>;
|
|
508
604
|
}, z.core.$strip>;
|
|
605
|
+
export type ProductDiscountCheckOutput = z.infer<typeof ProductDiscountCheckOutputSchema>;
|
|
509
606
|
export declare const ProductStatsOutputSchema: z.ZodObject<{
|
|
510
607
|
salesToday: z.ZodNumber;
|
|
511
608
|
revenueToday: z.ZodNumber;
|
|
512
609
|
totalProductRevenue: z.ZodNumber;
|
|
513
610
|
}, z.core.$strip>;
|
|
611
|
+
export type ProductStatsOutput = z.infer<typeof ProductStatsOutputSchema>;
|
|
514
612
|
export declare const ProductTransactionItemSchema: z.ZodObject<{
|
|
515
613
|
id: z.ZodString;
|
|
516
614
|
customerEmail: z.ZodNullable<z.ZodString>;
|
|
517
615
|
orderId: z.ZodNullable<z.ZodString>;
|
|
518
616
|
price: z.ZodNumber;
|
|
519
617
|
status: z.ZodString;
|
|
520
|
-
date: z.
|
|
618
|
+
date: z.ZodISODateTime;
|
|
521
619
|
}, z.core.$strip>;
|
|
620
|
+
export type ProductTransactionItem = z.infer<typeof ProductTransactionItemSchema>;
|
|
522
621
|
export declare const ProductTransactionsOutputSchema: z.ZodObject<{
|
|
523
622
|
transactions: z.ZodArray<z.ZodObject<{
|
|
524
623
|
id: z.ZodString;
|
|
@@ -526,23 +625,22 @@ export declare const ProductTransactionsOutputSchema: z.ZodObject<{
|
|
|
526
625
|
orderId: z.ZodNullable<z.ZodString>;
|
|
527
626
|
price: z.ZodNumber;
|
|
528
627
|
status: z.ZodString;
|
|
529
|
-
date: z.
|
|
628
|
+
date: z.ZodISODateTime;
|
|
530
629
|
}, z.core.$strip>>;
|
|
531
630
|
}, z.core.$strip>;
|
|
631
|
+
export type ProductTransactionsOutput = z.infer<typeof ProductTransactionsOutputSchema>;
|
|
532
632
|
export declare const RevenueChartPointSchema: z.ZodObject<{
|
|
533
633
|
date: z.ZodString;
|
|
534
634
|
revenue: z.ZodNumber;
|
|
535
635
|
}, z.core.$strip>;
|
|
636
|
+
export type RevenueChartPoint = z.infer<typeof RevenueChartPointSchema>;
|
|
536
637
|
export declare const ProductRevenueChartOutputSchema: z.ZodObject<{
|
|
537
638
|
chartData: z.ZodArray<z.ZodObject<{
|
|
538
639
|
date: z.ZodString;
|
|
539
640
|
revenue: z.ZodNumber;
|
|
540
641
|
}, z.core.$strip>>;
|
|
541
642
|
}, z.core.$strip>;
|
|
542
|
-
export
|
|
543
|
-
startDate: z.ZodOptional<z.ZodString>;
|
|
544
|
-
endDate: z.ZodOptional<z.ZodString>;
|
|
545
|
-
}, z.core.$strip>;
|
|
643
|
+
export type ProductRevenueChartOutput = z.infer<typeof ProductRevenueChartOutputSchema>;
|
|
546
644
|
export declare const SellerDashboardStatsOutputSchema: z.ZodObject<{
|
|
547
645
|
totalSales: z.ZodNumber;
|
|
548
646
|
totalViews: z.ZodNumber;
|
|
@@ -550,23 +648,4 @@ export declare const SellerDashboardStatsOutputSchema: z.ZodObject<{
|
|
|
550
648
|
totalDrafts: z.ZodNumber;
|
|
551
649
|
}, z.core.$strip>;
|
|
552
650
|
export type SellerDashboardStatsOutput = z.infer<typeof SellerDashboardStatsOutputSchema>;
|
|
553
|
-
export
|
|
554
|
-
export type SearchProductInput = z.infer<typeof SearchProductInputSchema>;
|
|
555
|
-
export type SearchProductOutput = z.infer<typeof SearchProductOutputSchema>;
|
|
556
|
-
export type MarketplaceCategoryOutput = z.infer<typeof MarketplaceCategorySchema>;
|
|
557
|
-
export type GetMarketplaceInfoOutput = z.infer<typeof GetMarketplaceInfoOutputSchema>;
|
|
558
|
-
export type ProductDiscountEntity = z.infer<typeof ProductDiscountEntitySchema>;
|
|
559
|
-
export type CreateProductInputEntity = z.infer<typeof CreateProductInputSchema>;
|
|
560
|
-
export type ProductServiceAndComplianceInputEntity = z.infer<typeof ProductServiceAndComplianceInputSchema>;
|
|
561
|
-
export type UpdateProductInputEntity = z.infer<typeof UpdateProductInputSchema>;
|
|
562
|
-
export type ProductEntity = z.infer<typeof ProductEntitySchema>;
|
|
563
|
-
export type ProductSearchDocument = z.infer<typeof ProductSearchDocumentSchema>;
|
|
564
|
-
export type MarketplaceProductEntity = z.infer<typeof MarketplaceProductEntitySchema>;
|
|
565
|
-
export type ProductDiscountCheckInput = z.infer<typeof ProductDiscountCheckInputSchema>;
|
|
566
|
-
export type ProductDiscountCheckOutput = z.infer<typeof ProductDiscountCheckOutputSchema>;
|
|
567
|
-
export type ProductStatsOutput = z.infer<typeof ProductStatsOutputSchema>;
|
|
568
|
-
export type ProductTransactionItem = z.infer<typeof ProductTransactionItemSchema>;
|
|
569
|
-
export type ProductTransactionsOutput = z.infer<typeof ProductTransactionsOutputSchema>;
|
|
570
|
-
export type RevenueChartPoint = z.infer<typeof RevenueChartPointSchema>;
|
|
571
|
-
export type ProductRevenueChartOutput = z.infer<typeof ProductRevenueChartOutputSchema>;
|
|
572
|
-
export type RevenueChartInput = z.infer<typeof RevenueChartInputSchema>;
|
|
651
|
+
export {};
|