@zyacreatives/shared 2.5.0 → 2.5.1
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.
|
@@ -325,6 +325,7 @@ export declare const SearchProductInputSchema: z.ZodObject<{
|
|
|
325
325
|
queryString: z.ZodOptional<z.ZodString>;
|
|
326
326
|
cursor: z.ZodOptional<z.ZodString>;
|
|
327
327
|
limit: z.ZodDefault<z.ZodOptional<z.ZodCoercedNumber<unknown>>>;
|
|
328
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
328
329
|
filters: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
329
330
|
category: z.ZodOptional<z.ZodString>;
|
|
330
331
|
subcategory: z.ZodOptional<z.ZodString>;
|
|
@@ -370,13 +371,13 @@ export declare const SearchProductOutputSchema: z.ZodObject<{
|
|
|
370
371
|
}, z.core.$strip>;
|
|
371
372
|
export declare const MarketplaceCategorySchema: z.ZodObject<{
|
|
372
373
|
name: z.ZodString;
|
|
373
|
-
imgUrl: z.
|
|
374
|
+
imgUrl: z.ZodURL;
|
|
374
375
|
subcategories: z.ZodArray<z.ZodString>;
|
|
375
376
|
}, z.core.$strip>;
|
|
376
377
|
export declare const GetMarketplaceInfoOutputSchema: z.ZodObject<{
|
|
377
378
|
categories: z.ZodArray<z.ZodObject<{
|
|
378
379
|
name: z.ZodString;
|
|
379
|
-
imgUrl: z.
|
|
380
|
+
imgUrl: z.ZodURL;
|
|
380
381
|
subcategories: z.ZodArray<z.ZodString>;
|
|
381
382
|
}, z.core.$strip>>;
|
|
382
383
|
whatsHot: z.ZodArray<z.ZodObject<{
|
package/dist/schemas/product.js
CHANGED
|
@@ -230,6 +230,7 @@ exports.SearchProductInputSchema = zod_openapi_1.z.object({
|
|
|
230
230
|
.openapi({ example: "typescript utility types" }),
|
|
231
231
|
cursor: zod_openapi_1.z.string().optional().openapi({ example: "ckj1a2b3c0000cur" }),
|
|
232
232
|
limit: zod_openapi_1.z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
233
|
+
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
233
234
|
filters: zod_openapi_1.z.array(zod_openapi_1.z.string()).optional(),
|
|
234
235
|
category: zod_openapi_1.z.string().optional(),
|
|
235
236
|
subcategory: zod_openapi_1.z.string().optional(),
|
|
@@ -240,7 +241,7 @@ exports.SearchProductOutputSchema = zod_openapi_1.z.object({
|
|
|
240
241
|
});
|
|
241
242
|
exports.MarketplaceCategorySchema = zod_openapi_1.z.object({
|
|
242
243
|
name: zod_openapi_1.z.string(),
|
|
243
|
-
imgUrl: zod_openapi_1.z.
|
|
244
|
+
imgUrl: zod_openapi_1.z.url(),
|
|
244
245
|
subcategories: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
245
246
|
});
|
|
246
247
|
exports.GetMarketplaceInfoOutputSchema = zod_openapi_1.z.object({
|
package/package.json
CHANGED
package/src/schemas/product.ts
CHANGED
|
@@ -290,6 +290,7 @@ export const SearchProductInputSchema = z.object({
|
|
|
290
290
|
.openapi({ example: "typescript utility types" }),
|
|
291
291
|
cursor: z.string().optional().openapi({ example: "ckj1a2b3c0000cur" }),
|
|
292
292
|
limit: z.coerce.number().int().min(1).max(100).optional().default(30),
|
|
293
|
+
tags: z.array(z.string()).optional(),
|
|
293
294
|
filters: z.array(z.string()).optional(),
|
|
294
295
|
category: z.string().optional(),
|
|
295
296
|
subcategory: z.string().optional(),
|
|
@@ -302,7 +303,7 @@ export const SearchProductOutputSchema = z.object({
|
|
|
302
303
|
|
|
303
304
|
export const MarketplaceCategorySchema = z.object({
|
|
304
305
|
name: z.string(),
|
|
305
|
-
imgUrl: z.
|
|
306
|
+
imgUrl: z.url(),
|
|
306
307
|
subcategories: z.array(z.string()),
|
|
307
308
|
});
|
|
308
309
|
|