@zyacreatives/shared 2.3.3 → 2.3.4
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.
|
@@ -243,10 +243,12 @@ export declare const ProductEntitySchema: z.ZodObject<{
|
|
|
243
243
|
fileId: z.ZodCUID2;
|
|
244
244
|
isThumbnail: z.ZodDefault<z.ZodBoolean>;
|
|
245
245
|
order: z.ZodDefault<z.ZodNumber>;
|
|
246
|
+
url: z.ZodURL;
|
|
246
247
|
}, z.core.$strip>>>;
|
|
247
248
|
productFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
248
249
|
fileId: z.ZodCUID2;
|
|
249
250
|
order: z.ZodDefault<z.ZodNumber>;
|
|
251
|
+
url: z.ZodURL;
|
|
250
252
|
}, z.core.$strip>>>;
|
|
251
253
|
productLinks: z.ZodDefault<z.ZodArray<z.ZodURL>>;
|
|
252
254
|
pricingModel: z.ZodEnum<{
|
package/dist/schemas/product.js
CHANGED
|
@@ -184,8 +184,10 @@ exports.ProductEntitySchema = zod_openapi_1.z
|
|
|
184
184
|
category: zod_openapi_1.z.string(),
|
|
185
185
|
subcategory: zod_openapi_1.z.string().optional().nullable(),
|
|
186
186
|
tags: zod_openapi_1.z.array(zod_openapi_1.z.string()),
|
|
187
|
-
coverImages: zod_openapi_1.z
|
|
188
|
-
|
|
187
|
+
coverImages: zod_openapi_1.z
|
|
188
|
+
.array(exports.ProductCoverImageEntitySchema.extend({ url: zod_openapi_1.z.url() }))
|
|
189
|
+
.default([]),
|
|
190
|
+
productFiles: zod_openapi_1.z.array(exports.ProductDeliveryFileEntitySchema.extend({ url: zod_openapi_1.z.url() })).default([]),
|
|
189
191
|
productLinks: zod_openapi_1.z.array(zod_openapi_1.z.url()).default([]),
|
|
190
192
|
pricingModel: zod_openapi_1.z.enum(constants_1.PRICING_MODELS),
|
|
191
193
|
currency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -654,10 +654,12 @@ export declare const UserWithProductsEntitySchema: z.ZodObject<{
|
|
|
654
654
|
fileId: z.ZodCUID2;
|
|
655
655
|
isThumbnail: z.ZodDefault<z.ZodBoolean>;
|
|
656
656
|
order: z.ZodDefault<z.ZodNumber>;
|
|
657
|
+
url: z.ZodURL;
|
|
657
658
|
}, z.core.$strip>>>;
|
|
658
659
|
productFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
659
660
|
fileId: z.ZodCUID2;
|
|
660
661
|
order: z.ZodDefault<z.ZodNumber>;
|
|
662
|
+
url: z.ZodURL;
|
|
661
663
|
}, z.core.$strip>>>;
|
|
662
664
|
productLinks: z.ZodDefault<z.ZodArray<z.ZodURL>>;
|
|
663
665
|
pricingModel: z.ZodEnum<{
|
|
@@ -803,10 +805,12 @@ export declare const GetUserWithProductsOutputSchema: z.ZodObject<{
|
|
|
803
805
|
fileId: z.ZodCUID2;
|
|
804
806
|
isThumbnail: z.ZodDefault<z.ZodBoolean>;
|
|
805
807
|
order: z.ZodDefault<z.ZodNumber>;
|
|
808
|
+
url: z.ZodURL;
|
|
806
809
|
}, z.core.$strip>>>;
|
|
807
810
|
productFiles: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
808
811
|
fileId: z.ZodCUID2;
|
|
809
812
|
order: z.ZodDefault<z.ZodNumber>;
|
|
813
|
+
url: z.ZodURL;
|
|
810
814
|
}, z.core.$strip>>>;
|
|
811
815
|
productLinks: z.ZodDefault<z.ZodArray<z.ZodURL>>;
|
|
812
816
|
pricingModel: z.ZodEnum<{
|
package/package.json
CHANGED
package/src/schemas/product.ts
CHANGED
|
@@ -239,8 +239,10 @@ export const ProductEntitySchema = z
|
|
|
239
239
|
subcategory: z.string().optional().nullable(),
|
|
240
240
|
tags: z.array(z.string()),
|
|
241
241
|
|
|
242
|
-
coverImages: z
|
|
243
|
-
|
|
242
|
+
coverImages: z
|
|
243
|
+
.array(ProductCoverImageEntitySchema.extend({ url: z.url() }))
|
|
244
|
+
.default([]),
|
|
245
|
+
productFiles: z.array(ProductDeliveryFileEntitySchema.extend({url: z.url()})).default([]),
|
|
244
246
|
productLinks: z.array(z.url()).default([]),
|
|
245
247
|
|
|
246
248
|
pricingModel: z.enum(PRICING_MODELS),
|