@timardex/cluemart-shared 1.2.83 → 1.2.85

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
@@ -730,14 +730,14 @@ interface PosterInputType {
730
730
 
731
731
  declare enum OrganizedMarketCount {
732
732
  ONE = "1",
733
- TWO_TO_THREE = "2-3",
734
- FOUR_TO_FIVE = "4-5",
733
+ TWO_TO_THREE = "2_3",
734
+ FOUR_TO_FIVE = "4_5",
735
735
  MORE_THAN_FIVE = "more_than_5"
736
736
  }
737
737
  declare enum VendorSellingFrequency {
738
- TWICE_A_WEEK = "2-3_times_a_week",
738
+ TWICE_A_WEEK = "2_3_times_a_week",
739
739
  ONCE_A_WEEK = "once_a_week",
740
- ONE_TO_TWO_TIMES_A_MONTH = "1-2_times_a_month",
740
+ ONE_TO_TWO_TIMES_A_MONTH = "1_2_times_a_month",
741
741
  LESS_OFTEN = "less_often"
742
742
  }
743
743
  declare enum OrganizerMarketFrequency {
@@ -748,11 +748,11 @@ declare enum OrganizerMarketFrequency {
748
748
  }
749
749
  type TesterVendor = {
750
750
  categories: Category[];
751
- productsOrServices: string;
752
751
  marketsAttended: {
753
752
  name: string;
754
753
  city: string;
755
754
  }[];
755
+ productsOrServices: string;
756
756
  sellingFrequency: VendorSellingFrequency;
757
757
  yearlySellingApprox: number;
758
758
  questionary: {
@@ -793,9 +793,9 @@ type TesterEvent = {
793
793
  interestedInCharityInitiative: boolean;
794
794
  };
795
795
  interface TesterFormData {
796
- approved: boolean;
797
796
  businessName: string;
798
797
  email: string;
798
+ event?: TesterEvent | null;
799
799
  firstName: string;
800
800
  lastName: string;
801
801
  mobilePhone: string;
@@ -803,12 +803,12 @@ interface TesterFormData {
803
803
  region: string;
804
804
  resourceType: EnumResourceType;
805
805
  vendor?: TesterVendor | null;
806
- event?: TesterEvent | null;
807
806
  }
808
807
  type CreateTesterFormData = CreateFormData<TesterFormData>;
809
808
  interface TesterType extends TesterFormData {
810
809
  _id: string;
811
810
  active: boolean;
811
+ approved: boolean;
812
812
  createdAt: Date;
813
813
  updatedAt: Date | null;
814
814
  }
package/dist/index.d.ts CHANGED
@@ -730,14 +730,14 @@ interface PosterInputType {
730
730
 
731
731
  declare enum OrganizedMarketCount {
732
732
  ONE = "1",
733
- TWO_TO_THREE = "2-3",
734
- FOUR_TO_FIVE = "4-5",
733
+ TWO_TO_THREE = "2_3",
734
+ FOUR_TO_FIVE = "4_5",
735
735
  MORE_THAN_FIVE = "more_than_5"
736
736
  }
737
737
  declare enum VendorSellingFrequency {
738
- TWICE_A_WEEK = "2-3_times_a_week",
738
+ TWICE_A_WEEK = "2_3_times_a_week",
739
739
  ONCE_A_WEEK = "once_a_week",
740
- ONE_TO_TWO_TIMES_A_MONTH = "1-2_times_a_month",
740
+ ONE_TO_TWO_TIMES_A_MONTH = "1_2_times_a_month",
741
741
  LESS_OFTEN = "less_often"
742
742
  }
743
743
  declare enum OrganizerMarketFrequency {
@@ -748,11 +748,11 @@ declare enum OrganizerMarketFrequency {
748
748
  }
749
749
  type TesterVendor = {
750
750
  categories: Category[];
751
- productsOrServices: string;
752
751
  marketsAttended: {
753
752
  name: string;
754
753
  city: string;
755
754
  }[];
755
+ productsOrServices: string;
756
756
  sellingFrequency: VendorSellingFrequency;
757
757
  yearlySellingApprox: number;
758
758
  questionary: {
@@ -793,9 +793,9 @@ type TesterEvent = {
793
793
  interestedInCharityInitiative: boolean;
794
794
  };
795
795
  interface TesterFormData {
796
- approved: boolean;
797
796
  businessName: string;
798
797
  email: string;
798
+ event?: TesterEvent | null;
799
799
  firstName: string;
800
800
  lastName: string;
801
801
  mobilePhone: string;
@@ -803,12 +803,12 @@ interface TesterFormData {
803
803
  region: string;
804
804
  resourceType: EnumResourceType;
805
805
  vendor?: TesterVendor | null;
806
- event?: TesterEvent | null;
807
806
  }
808
807
  type CreateTesterFormData = CreateFormData<TesterFormData>;
809
808
  interface TesterType extends TesterFormData {
810
809
  _id: string;
811
810
  active: boolean;
811
+ approved: boolean;
812
812
  createdAt: Date;
813
813
  updatedAt: Date | null;
814
814
  }
package/dist/index.mjs CHANGED
@@ -5450,15 +5450,15 @@ import * as yup6 from "yup";
5450
5450
  // src/types/tester.ts
5451
5451
  var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
5452
5452
  OrganizedMarketCount2["ONE"] = "1";
5453
- OrganizedMarketCount2["TWO_TO_THREE"] = "2-3";
5454
- OrganizedMarketCount2["FOUR_TO_FIVE"] = "4-5";
5453
+ OrganizedMarketCount2["TWO_TO_THREE"] = "2_3";
5454
+ OrganizedMarketCount2["FOUR_TO_FIVE"] = "4_5";
5455
5455
  OrganizedMarketCount2["MORE_THAN_FIVE"] = "more_than_5";
5456
5456
  return OrganizedMarketCount2;
5457
5457
  })(OrganizedMarketCount || {});
5458
5458
  var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
5459
- VendorSellingFrequency2["TWICE_A_WEEK"] = "2-3_times_a_week";
5459
+ VendorSellingFrequency2["TWICE_A_WEEK"] = "2_3_times_a_week";
5460
5460
  VendorSellingFrequency2["ONCE_A_WEEK"] = "once_a_week";
5461
- VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "1-2_times_a_month";
5461
+ VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "1_2_times_a_month";
5462
5462
  VendorSellingFrequency2["LESS_OFTEN"] = "less_often";
5463
5463
  return VendorSellingFrequency2;
5464
5464
  })(VendorSellingFrequency || {});
@@ -5524,7 +5524,6 @@ var testerEventSchema = yup6.object().shape({
5524
5524
  registerMarketsFirstWeek: yup6.boolean().required("Register markets first week commitment is required")
5525
5525
  });
5526
5526
  var testerSchema = yup6.object().shape({
5527
- approved: yup6.boolean().required("Approval status is required"),
5528
5527
  businessName: yup6.string().required("Business name is required"),
5529
5528
  email: emailRequiredSchema,
5530
5529
  event: yup6.object().when("resourceType", {
@@ -6341,7 +6340,6 @@ import { yupResolver as yupResolver11 } from "@hookform/resolvers/yup";
6341
6340
  import React6 from "react";
6342
6341
  import { useForm as useForm11 } from "react-hook-form";
6343
6342
  var defaultValues7 = {
6344
- approved: false,
6345
6343
  businessName: "",
6346
6344
  email: "",
6347
6345
  event: null,
@@ -6369,7 +6367,6 @@ function useTesterForm(data) {
6369
6367
  React6.useEffect(() => {
6370
6368
  if (data) {
6371
6369
  reset({
6372
- approved: data.approved,
6373
6370
  businessName: data.businessName,
6374
6371
  email: data.email,
6375
6372
  event: data.event,
@@ -6386,7 +6383,6 @@ function useTesterForm(data) {
6386
6383
  }
6387
6384
  }, [data]);
6388
6385
  const {
6389
- approved,
6390
6386
  businessName,
6391
6387
  email,
6392
6388
  event,
@@ -6401,7 +6397,6 @@ function useTesterForm(data) {
6401
6397
  return {
6402
6398
  control,
6403
6399
  fields: {
6404
- approved,
6405
6400
  businessName,
6406
6401
  email,
6407
6402
  event,