@zyacreatives/shared 2.4.7 → 2.4.9
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.
|
@@ -221,7 +221,7 @@ export declare const UpdateProductInputSchema: z.ZodObject<{
|
|
|
221
221
|
id: z.ZodCUID2;
|
|
222
222
|
}, z.core.$strip>;
|
|
223
223
|
export declare const ProductEntitySchema: z.ZodObject<{
|
|
224
|
-
id: z.
|
|
224
|
+
id: z.ZodCUID2;
|
|
225
225
|
sellerId: z.ZodCUID2;
|
|
226
226
|
sellerUsername: z.ZodString;
|
|
227
227
|
sellerName: z.ZodString;
|
|
@@ -286,11 +286,18 @@ export declare const ProductEntitySchema: z.ZodObject<{
|
|
|
286
286
|
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
287
287
|
}, z.core.$strip>;
|
|
288
288
|
export declare const ProductSearchDocumentSchema: z.ZodObject<{
|
|
289
|
-
id: z.
|
|
289
|
+
id: z.ZodCUID2;
|
|
290
290
|
sellerId: z.ZodCUID2;
|
|
291
291
|
sellerUsername: z.ZodString;
|
|
292
292
|
sellerName: z.ZodString;
|
|
293
|
-
|
|
293
|
+
status: z.ZodEnum<{
|
|
294
|
+
readonly ACTIVE: "ACTIVE";
|
|
295
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
296
|
+
readonly DRAFT: "DRAFT";
|
|
297
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
298
|
+
readonly DELETED: "DELETED";
|
|
299
|
+
}>;
|
|
300
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
294
301
|
title: z.ZodString;
|
|
295
302
|
category: z.ZodString;
|
|
296
303
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
@@ -324,11 +331,18 @@ export declare const SearchProductInputSchema: z.ZodObject<{
|
|
|
324
331
|
}, z.core.$strip>;
|
|
325
332
|
export declare const SearchProductOutputSchema: z.ZodObject<{
|
|
326
333
|
products: z.ZodArray<z.ZodObject<{
|
|
327
|
-
id: z.
|
|
334
|
+
id: z.ZodCUID2;
|
|
328
335
|
sellerId: z.ZodCUID2;
|
|
329
336
|
sellerUsername: z.ZodString;
|
|
330
337
|
sellerName: z.ZodString;
|
|
331
|
-
|
|
338
|
+
status: z.ZodEnum<{
|
|
339
|
+
readonly ACTIVE: "ACTIVE";
|
|
340
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
341
|
+
readonly DRAFT: "DRAFT";
|
|
342
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
343
|
+
readonly DELETED: "DELETED";
|
|
344
|
+
}>;
|
|
345
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
332
346
|
title: z.ZodString;
|
|
333
347
|
category: z.ZodString;
|
|
334
348
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
@@ -366,11 +380,18 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
|
366
380
|
subcategories: z.ZodArray<z.ZodString>;
|
|
367
381
|
}, z.core.$strip>>;
|
|
368
382
|
whatsHot: z.ZodArray<z.ZodObject<{
|
|
369
|
-
id: z.
|
|
383
|
+
id: z.ZodCUID2;
|
|
370
384
|
sellerId: z.ZodCUID2;
|
|
371
385
|
sellerUsername: z.ZodString;
|
|
372
386
|
sellerName: z.ZodString;
|
|
373
|
-
|
|
387
|
+
status: z.ZodEnum<{
|
|
388
|
+
readonly ACTIVE: "ACTIVE";
|
|
389
|
+
readonly UNDER_REVIEW: "UNDER_REVIEW";
|
|
390
|
+
readonly DRAFT: "DRAFT";
|
|
391
|
+
readonly ARCHIVED: "ARCHIVED";
|
|
392
|
+
readonly DELETED: "DELETED";
|
|
393
|
+
}>;
|
|
394
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
374
395
|
title: z.ZodString;
|
|
375
396
|
category: z.ZodString;
|
|
376
397
|
subcategory: z.ZodNullable<z.ZodString>;
|
|
@@ -395,11 +416,18 @@ export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
|
395
416
|
deletedAt: z.ZodNullable<z.ZodOptional<z.ZodCoercedDate<unknown>>>;
|
|
396
417
|
}, z.core.$strip>>;
|
|
397
418
|
communityFavourites: z.ZodArray<z.ZodObject<{
|
|
398
|
-
id: z.
|
|
419
|
+
id: z.ZodCUID2;
|
|
399
420
|
sellerId: z.ZodCUID2;
|
|
400
421
|
sellerUsername: z.ZodString;
|
|
401
422
|
sellerName: z.ZodString;
|
|
402
|
-
|
|
423
|
+
status: 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
|
+
sellerImageUrl: z.ZodNullable<z.ZodURL>;
|
|
403
431
|
title: z.ZodString;
|
|
404
432
|
category: z.ZodString;
|
|
405
433
|
subcategory: z.ZodNullable<z.ZodString>;
|
package/dist/schemas/product.js
CHANGED
|
@@ -172,7 +172,7 @@ exports.UpdateProductInputSchema = ProductCoreInputSchema.extend(exports.Product
|
|
|
172
172
|
});
|
|
173
173
|
exports.ProductEntitySchema = zod_openapi_1.z
|
|
174
174
|
.object({
|
|
175
|
-
id: zod_openapi_1.z.
|
|
175
|
+
id: zod_openapi_1.z.cuid2(),
|
|
176
176
|
sellerId: zod_openapi_1.z.cuid2().openapi({ description: "ID of the creator/seller" }),
|
|
177
177
|
sellerUsername: zod_openapi_1.z.string(),
|
|
178
178
|
sellerName: zod_openapi_1.z.string(),
|
|
@@ -204,11 +204,12 @@ exports.ProductEntitySchema = zod_openapi_1.z
|
|
|
204
204
|
})
|
|
205
205
|
.openapi({ title: "ProductEntity" });
|
|
206
206
|
exports.ProductSearchDocumentSchema = zod_openapi_1.z.object({
|
|
207
|
-
id: zod_openapi_1.z.
|
|
207
|
+
id: zod_openapi_1.z.cuid2(),
|
|
208
208
|
sellerId: zod_openapi_1.z.cuid2(),
|
|
209
209
|
sellerUsername: zod_openapi_1.z.string(),
|
|
210
210
|
sellerName: zod_openapi_1.z.string(),
|
|
211
|
-
|
|
211
|
+
status: zod_openapi_1.z.enum(constants_1.PRODUCT_STATUS),
|
|
212
|
+
sellerImageUrl: zod_openapi_1.z.url().nullable(),
|
|
212
213
|
title: zod_openapi_1.z.string(),
|
|
213
214
|
category: zod_openapi_1.z.string(),
|
|
214
215
|
subcategory: zod_openapi_1.z.string().nullable(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -670,7 +670,7 @@ export declare const UserWithPostBookmarksEntitySchema: z.ZodObject<{
|
|
|
670
670
|
export declare const UserWithProductsEntitySchema: z.ZodObject<{
|
|
671
671
|
userId: z.ZodCUID2;
|
|
672
672
|
products: z.ZodArray<z.ZodObject<{
|
|
673
|
-
id: z.
|
|
673
|
+
id: z.ZodCUID2;
|
|
674
674
|
sellerId: z.ZodCUID2;
|
|
675
675
|
sellerUsername: z.ZodString;
|
|
676
676
|
sellerName: z.ZodString;
|
|
@@ -822,7 +822,7 @@ export declare const GetUserWithProductsOutputSchema: z.ZodObject<{
|
|
|
822
822
|
products: z.ZodObject<{
|
|
823
823
|
userId: z.ZodCUID2;
|
|
824
824
|
products: z.ZodArray<z.ZodObject<{
|
|
825
|
-
id: z.
|
|
825
|
+
id: z.ZodCUID2;
|
|
826
826
|
sellerId: z.ZodCUID2;
|
|
827
827
|
sellerUsername: z.ZodString;
|
|
828
828
|
sellerName: z.ZodString;
|
package/package.json
CHANGED
package/src/schemas/product.ts
CHANGED
|
@@ -224,7 +224,7 @@ export const UpdateProductInputSchema = ProductCoreInputSchema.extend(
|
|
|
224
224
|
|
|
225
225
|
export const ProductEntitySchema = z
|
|
226
226
|
.object({
|
|
227
|
-
id: z.
|
|
227
|
+
id: z.cuid2(),
|
|
228
228
|
|
|
229
229
|
sellerId: z.cuid2().openapi({ description: "ID of the creator/seller" }),
|
|
230
230
|
sellerUsername: z.string(),
|
|
@@ -263,11 +263,12 @@ export const ProductEntitySchema = z
|
|
|
263
263
|
.openapi({ title: "ProductEntity" });
|
|
264
264
|
|
|
265
265
|
export const ProductSearchDocumentSchema = z.object({
|
|
266
|
-
id: z.
|
|
266
|
+
id: z.cuid2(),
|
|
267
267
|
sellerId: z.cuid2(),
|
|
268
268
|
sellerUsername: z.string(),
|
|
269
269
|
sellerName: z.string(),
|
|
270
|
-
|
|
270
|
+
status: z.enum(PRODUCT_STATUS),
|
|
271
|
+
sellerImageUrl: z.url().nullable(),
|
|
271
272
|
title: z.string(),
|
|
272
273
|
category: z.string(),
|
|
273
274
|
subcategory: z.string().nullable(),
|