@zyacreatives/shared 2.5.3 → 2.5.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.
|
@@ -250,7 +250,10 @@ export declare const ProductEntitySchema: z.ZodObject<{
|
|
|
250
250
|
order: z.ZodDefault<z.ZodNumber>;
|
|
251
251
|
url: z.ZodURL;
|
|
252
252
|
}, z.core.$strip>>>;
|
|
253
|
-
productLinks: z.ZodDefault<z.ZodArray<z.
|
|
253
|
+
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
254
|
+
title: z.ZodNullable<z.ZodString>;
|
|
255
|
+
url: z.ZodString;
|
|
256
|
+
}, z.core.$strip>>>;
|
|
254
257
|
pricingModel: z.ZodEnum<{
|
|
255
258
|
readonly FREE: "Free";
|
|
256
259
|
readonly FIXED: "Fixed";
|
package/dist/schemas/product.js
CHANGED
|
@@ -164,7 +164,6 @@ exports.ProductServiceAndComplianceInputSchema = zod_openapi_1.z.object({
|
|
|
164
164
|
providesSupport: zod_openapi_1.z.boolean(),
|
|
165
165
|
agreesToTerms: zod_openapi_1.z.literal(true, "You must agree to the Terms."),
|
|
166
166
|
});
|
|
167
|
-
// The `id` override here ensures we use the existing DB id when updating
|
|
168
167
|
exports.UpdateProductInputSchema = ProductCoreInputSchema.extend(exports.ProductServiceAndComplianceInputSchema.omit({ id: true }).shape)
|
|
169
168
|
.partial()
|
|
170
169
|
.extend({
|
|
@@ -190,7 +189,7 @@ exports.ProductEntitySchema = zod_openapi_1.z
|
|
|
190
189
|
productFiles: zod_openapi_1.z
|
|
191
190
|
.array(exports.ProductDeliveryFileEntitySchema.extend({ url: zod_openapi_1.z.url() }))
|
|
192
191
|
.default([]),
|
|
193
|
-
productLinks: zod_openapi_1.z.array(
|
|
192
|
+
productLinks: zod_openapi_1.z.array(exports.ProductLinkSchema).default([]),
|
|
194
193
|
pricingModel: zod_openapi_1.z.enum(constants_1.PRICING_MODELS),
|
|
195
194
|
currency: zod_openapi_1.z.enum(constants_1.WAGES_CURRENCY),
|
|
196
195
|
price: zod_openapi_1.z.number().int().optional().nullable(),
|
package/dist/schemas/user.d.ts
CHANGED
|
@@ -699,7 +699,10 @@ export declare const UserWithProductsEntitySchema: z.ZodObject<{
|
|
|
699
699
|
order: z.ZodDefault<z.ZodNumber>;
|
|
700
700
|
url: z.ZodURL;
|
|
701
701
|
}, z.core.$strip>>>;
|
|
702
|
-
productLinks: z.ZodDefault<z.ZodArray<z.
|
|
702
|
+
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
703
|
+
title: z.ZodNullable<z.ZodString>;
|
|
704
|
+
url: z.ZodString;
|
|
705
|
+
}, z.core.$strip>>>;
|
|
703
706
|
pricingModel: z.ZodEnum<{
|
|
704
707
|
readonly FREE: "Free";
|
|
705
708
|
readonly FIXED: "Fixed";
|
|
@@ -851,7 +854,10 @@ export declare const GetUserWithProductsOutputSchema: z.ZodObject<{
|
|
|
851
854
|
order: z.ZodDefault<z.ZodNumber>;
|
|
852
855
|
url: z.ZodURL;
|
|
853
856
|
}, z.core.$strip>>>;
|
|
854
|
-
productLinks: z.ZodDefault<z.ZodArray<z.
|
|
857
|
+
productLinks: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
858
|
+
title: z.ZodNullable<z.ZodString>;
|
|
859
|
+
url: z.ZodString;
|
|
860
|
+
}, z.core.$strip>>>;
|
|
855
861
|
pricingModel: z.ZodEnum<{
|
|
856
862
|
readonly FREE: "Free";
|
|
857
863
|
readonly FIXED: "Fixed";
|
package/package.json
CHANGED
package/src/schemas/product.ts
CHANGED
|
@@ -213,7 +213,6 @@ export const ProductServiceAndComplianceInputSchema = z.object({
|
|
|
213
213
|
agreesToTerms: z.literal(true, "You must agree to the Terms."),
|
|
214
214
|
});
|
|
215
215
|
|
|
216
|
-
// The `id` override here ensures we use the existing DB id when updating
|
|
217
216
|
export const UpdateProductInputSchema = ProductCoreInputSchema.extend(
|
|
218
217
|
ProductServiceAndComplianceInputSchema.omit({ id: true }).shape,
|
|
219
218
|
)
|
|
@@ -245,8 +244,7 @@ export const ProductEntitySchema = z
|
|
|
245
244
|
productFiles: z
|
|
246
245
|
.array(ProductDeliveryFileEntitySchema.extend({ url: z.url() }))
|
|
247
246
|
.default([]),
|
|
248
|
-
productLinks: z.array(
|
|
249
|
-
|
|
247
|
+
productLinks: z.array(ProductLinkSchema).default([]),
|
|
250
248
|
pricingModel: z.enum(PRICING_MODELS),
|
|
251
249
|
currency: z.enum(WAGES_CURRENCY),
|
|
252
250
|
price: z.number().int().optional().nullable(),
|