@timardex/cluemart-shared 1.4.74 → 1.4.75

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.mts CHANGED
@@ -309,7 +309,7 @@ type VendorProductList = {
309
309
  name: string;
310
310
  price: number;
311
311
  priceUnit: string;
312
- productGroups: string[];
312
+ productGroups?: string[] | null;
313
313
  };
314
314
  interface VendorFormData extends BaseResourceTypeFormData {
315
315
  availability?: {
package/dist/index.d.ts CHANGED
@@ -309,7 +309,7 @@ type VendorProductList = {
309
309
  name: string;
310
310
  price: number;
311
311
  priceUnit: string;
312
- productGroups: string[];
312
+ productGroups?: string[] | null;
313
313
  };
314
314
  interface VendorFormData extends BaseResourceTypeFormData {
315
315
  availability?: {
package/dist/index.mjs CHANGED
@@ -6079,8 +6079,7 @@ var vendorMenuSchema = yup3.object({
6079
6079
  description: yup3.string().nullable().optional(),
6080
6080
  name: yup3.string().nullable().required("Product name is required"),
6081
6081
  price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
6082
- priceUnit: yup3.string().required("Product unit is required"),
6083
- productGroups: yup3.array().of(yup3.string().defined()).min(1, "Product groups are required").required("Product groups are required")
6082
+ priceUnit: yup3.string().required("Product unit is required")
6084
6083
  });
6085
6084
  var vendorSchema = globalResourceSchema.shape({
6086
6085
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),