@timardex/cluemart-shared 1.2.85 → 1.2.87
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/{ad-CcYxwU64.d.mts → ad-Cnah2g5Z.d.mts} +13 -12
- package/dist/{ad-DMg0fZL4.d.ts → ad-DOKicc6e.d.ts} +13 -12
- package/dist/{chunk-O6YVGYRE.mjs → chunk-74DMNP4I.mjs} +13 -13
- package/dist/chunk-74DMNP4I.mjs.map +1 -0
- package/dist/formFields/index.cjs +3 -3
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +1 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +23 -15
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +12 -4
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +27 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.mjs +27 -18
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.cjs +12 -12
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-O6YVGYRE.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -729,22 +729,22 @@ interface PosterInputType {
|
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
declare enum OrganizedMarketCount {
|
|
732
|
-
ONE = "
|
|
733
|
-
TWO_TO_THREE = "
|
|
734
|
-
FOUR_TO_FIVE = "
|
|
735
|
-
MORE_THAN_FIVE = "
|
|
732
|
+
ONE = "One",
|
|
733
|
+
TWO_TO_THREE = "Two_to_Three",
|
|
734
|
+
FOUR_TO_FIVE = "Four_to_Five",
|
|
735
|
+
MORE_THAN_FIVE = "More_than_Five"
|
|
736
736
|
}
|
|
737
737
|
declare enum VendorSellingFrequency {
|
|
738
|
-
TWICE_A_WEEK = "
|
|
739
|
-
ONCE_A_WEEK = "
|
|
740
|
-
ONE_TO_TWO_TIMES_A_MONTH = "
|
|
741
|
-
LESS_OFTEN = "
|
|
738
|
+
TWICE_A_WEEK = "Two_to_Three_times_a_week",
|
|
739
|
+
ONCE_A_WEEK = "Once_a_week",
|
|
740
|
+
ONE_TO_TWO_TIMES_A_MONTH = "One_to_Two_times_a_month",
|
|
741
|
+
LESS_OFTEN = "Less_often"
|
|
742
742
|
}
|
|
743
743
|
declare enum OrganizerMarketFrequency {
|
|
744
|
-
WEEKLY = "
|
|
745
|
-
FORTNIGHTLY = "
|
|
746
|
-
MONTHLY = "
|
|
747
|
-
SEASONAL = "
|
|
744
|
+
WEEKLY = "Weekly",
|
|
745
|
+
FORTNIGHTLY = "Fortnightly",
|
|
746
|
+
MONTHLY = "Monthly",
|
|
747
|
+
SEASONAL = "Seasonal"
|
|
748
748
|
}
|
|
749
749
|
type TesterVendor = {
|
|
750
750
|
categories: Category[];
|
|
@@ -800,6 +800,7 @@ interface TesterFormData {
|
|
|
800
800
|
lastName: string;
|
|
801
801
|
mobilePhone: string;
|
|
802
802
|
osType: EnumOSPlatform;
|
|
803
|
+
privacyConsent: boolean;
|
|
803
804
|
region: string;
|
|
804
805
|
resourceType: EnumResourceType;
|
|
805
806
|
vendor?: TesterVendor | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -729,22 +729,22 @@ interface PosterInputType {
|
|
|
729
729
|
}
|
|
730
730
|
|
|
731
731
|
declare enum OrganizedMarketCount {
|
|
732
|
-
ONE = "
|
|
733
|
-
TWO_TO_THREE = "
|
|
734
|
-
FOUR_TO_FIVE = "
|
|
735
|
-
MORE_THAN_FIVE = "
|
|
732
|
+
ONE = "One",
|
|
733
|
+
TWO_TO_THREE = "Two_to_Three",
|
|
734
|
+
FOUR_TO_FIVE = "Four_to_Five",
|
|
735
|
+
MORE_THAN_FIVE = "More_than_Five"
|
|
736
736
|
}
|
|
737
737
|
declare enum VendorSellingFrequency {
|
|
738
|
-
TWICE_A_WEEK = "
|
|
739
|
-
ONCE_A_WEEK = "
|
|
740
|
-
ONE_TO_TWO_TIMES_A_MONTH = "
|
|
741
|
-
LESS_OFTEN = "
|
|
738
|
+
TWICE_A_WEEK = "Two_to_Three_times_a_week",
|
|
739
|
+
ONCE_A_WEEK = "Once_a_week",
|
|
740
|
+
ONE_TO_TWO_TIMES_A_MONTH = "One_to_Two_times_a_month",
|
|
741
|
+
LESS_OFTEN = "Less_often"
|
|
742
742
|
}
|
|
743
743
|
declare enum OrganizerMarketFrequency {
|
|
744
|
-
WEEKLY = "
|
|
745
|
-
FORTNIGHTLY = "
|
|
746
|
-
MONTHLY = "
|
|
747
|
-
SEASONAL = "
|
|
744
|
+
WEEKLY = "Weekly",
|
|
745
|
+
FORTNIGHTLY = "Fortnightly",
|
|
746
|
+
MONTHLY = "Monthly",
|
|
747
|
+
SEASONAL = "Seasonal"
|
|
748
748
|
}
|
|
749
749
|
type TesterVendor = {
|
|
750
750
|
categories: Category[];
|
|
@@ -800,6 +800,7 @@ interface TesterFormData {
|
|
|
800
800
|
lastName: string;
|
|
801
801
|
mobilePhone: string;
|
|
802
802
|
osType: EnumOSPlatform;
|
|
803
|
+
privacyConsent: boolean;
|
|
803
804
|
region: string;
|
|
804
805
|
resourceType: EnumResourceType;
|
|
805
806
|
vendor?: TesterVendor | null;
|
package/dist/index.mjs
CHANGED
|
@@ -2060,19 +2060,19 @@ var testersFields = [
|
|
|
2060
2060
|
helperText: "Enter your business name *",
|
|
2061
2061
|
keyboardType: "default",
|
|
2062
2062
|
name: "businessName",
|
|
2063
|
-
placeholder: "Business Name"
|
|
2063
|
+
placeholder: "Business Name *"
|
|
2064
2064
|
},
|
|
2065
2065
|
{
|
|
2066
2066
|
helperText: "Enter first name *",
|
|
2067
2067
|
keyboardType: "default",
|
|
2068
2068
|
name: "firstName",
|
|
2069
|
-
placeholder: "First Name"
|
|
2069
|
+
placeholder: "First Name *"
|
|
2070
2070
|
},
|
|
2071
2071
|
{
|
|
2072
2072
|
helperText: "Enter last name *",
|
|
2073
2073
|
keyboardType: "default",
|
|
2074
2074
|
name: "lastName",
|
|
2075
|
-
placeholder: "Last Name"
|
|
2075
|
+
placeholder: "Last Name *"
|
|
2076
2076
|
},
|
|
2077
2077
|
{
|
|
2078
2078
|
...emailField,
|
|
@@ -4176,6 +4176,7 @@ var TESTER_FIELDS_FRAGMENT = gql21`
|
|
|
4176
4176
|
lastName
|
|
4177
4177
|
mobilePhone
|
|
4178
4178
|
osType
|
|
4179
|
+
privacyConsent
|
|
4179
4180
|
region
|
|
4180
4181
|
resourceType
|
|
4181
4182
|
updatedAt
|
|
@@ -5449,24 +5450,24 @@ import * as yup6 from "yup";
|
|
|
5449
5450
|
|
|
5450
5451
|
// src/types/tester.ts
|
|
5451
5452
|
var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
|
|
5452
|
-
OrganizedMarketCount2["ONE"] = "
|
|
5453
|
-
OrganizedMarketCount2["TWO_TO_THREE"] = "
|
|
5454
|
-
OrganizedMarketCount2["FOUR_TO_FIVE"] = "
|
|
5455
|
-
OrganizedMarketCount2["MORE_THAN_FIVE"] = "
|
|
5453
|
+
OrganizedMarketCount2["ONE"] = "One";
|
|
5454
|
+
OrganizedMarketCount2["TWO_TO_THREE"] = "Two_to_Three";
|
|
5455
|
+
OrganizedMarketCount2["FOUR_TO_FIVE"] = "Four_to_Five";
|
|
5456
|
+
OrganizedMarketCount2["MORE_THAN_FIVE"] = "More_than_Five";
|
|
5456
5457
|
return OrganizedMarketCount2;
|
|
5457
5458
|
})(OrganizedMarketCount || {});
|
|
5458
5459
|
var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
|
|
5459
|
-
VendorSellingFrequency2["TWICE_A_WEEK"] = "
|
|
5460
|
-
VendorSellingFrequency2["ONCE_A_WEEK"] = "
|
|
5461
|
-
VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "
|
|
5462
|
-
VendorSellingFrequency2["LESS_OFTEN"] = "
|
|
5460
|
+
VendorSellingFrequency2["TWICE_A_WEEK"] = "Two_to_Three_times_a_week";
|
|
5461
|
+
VendorSellingFrequency2["ONCE_A_WEEK"] = "Once_a_week";
|
|
5462
|
+
VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "One_to_Two_times_a_month";
|
|
5463
|
+
VendorSellingFrequency2["LESS_OFTEN"] = "Less_often";
|
|
5463
5464
|
return VendorSellingFrequency2;
|
|
5464
5465
|
})(VendorSellingFrequency || {});
|
|
5465
5466
|
var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
|
|
5466
|
-
OrganizerMarketFrequency2["WEEKLY"] = "
|
|
5467
|
-
OrganizerMarketFrequency2["FORTNIGHTLY"] = "
|
|
5468
|
-
OrganizerMarketFrequency2["MONTHLY"] = "
|
|
5469
|
-
OrganizerMarketFrequency2["SEASONAL"] = "
|
|
5467
|
+
OrganizerMarketFrequency2["WEEKLY"] = "Weekly";
|
|
5468
|
+
OrganizerMarketFrequency2["FORTNIGHTLY"] = "Fortnightly";
|
|
5469
|
+
OrganizerMarketFrequency2["MONTHLY"] = "Monthly";
|
|
5470
|
+
OrganizerMarketFrequency2["SEASONAL"] = "Seasonal";
|
|
5470
5471
|
return OrganizerMarketFrequency2;
|
|
5471
5472
|
})(OrganizerMarketFrequency || {});
|
|
5472
5473
|
|
|
@@ -5539,13 +5540,17 @@ var testerSchema = yup6.object().shape({
|
|
|
5539
5540
|
(value) => !value || mobileRegex.test(value)
|
|
5540
5541
|
// skip empty values
|
|
5541
5542
|
),
|
|
5542
|
-
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS
|
|
5543
|
+
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
|
|
5544
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the privacy policy").required("Privacy consent is required"),
|
|
5543
5545
|
region: yup6.string().required("Region is required"),
|
|
5544
|
-
resourceType: yup6.mixed().oneOf(
|
|
5546
|
+
resourceType: yup6.mixed().oneOf(
|
|
5547
|
+
Object.values(EnumResourceType),
|
|
5548
|
+
"Please select Event or Stallholder"
|
|
5549
|
+
).required("Resource Type is required"),
|
|
5545
5550
|
vendor: yup6.object().when("resourceType", {
|
|
5546
5551
|
is: (resourceType) => resourceType === "vendor" /* VENDOR */,
|
|
5547
5552
|
otherwise: (schema) => schema.nullable().optional(),
|
|
5548
|
-
then: () => testerVendorSchema.required("
|
|
5553
|
+
then: () => testerVendorSchema.required("Stallholder information is required")
|
|
5549
5554
|
})
|
|
5550
5555
|
});
|
|
5551
5556
|
|
|
@@ -6347,6 +6352,7 @@ var defaultValues7 = {
|
|
|
6347
6352
|
lastName: "",
|
|
6348
6353
|
mobilePhone: "",
|
|
6349
6354
|
osType: "",
|
|
6355
|
+
privacyConsent: false,
|
|
6350
6356
|
region: "",
|
|
6351
6357
|
resourceType: "",
|
|
6352
6358
|
vendor: null
|
|
@@ -6374,6 +6380,7 @@ function useTesterForm(data) {
|
|
|
6374
6380
|
lastName: data.lastName,
|
|
6375
6381
|
mobilePhone: data.mobilePhone,
|
|
6376
6382
|
osType: data.osType,
|
|
6383
|
+
privacyConsent: data.privacyConsent,
|
|
6377
6384
|
region: data.region,
|
|
6378
6385
|
resourceType: data.resourceType,
|
|
6379
6386
|
vendor: data.vendor
|
|
@@ -6390,6 +6397,7 @@ function useTesterForm(data) {
|
|
|
6390
6397
|
lastName,
|
|
6391
6398
|
mobilePhone,
|
|
6392
6399
|
osType,
|
|
6400
|
+
privacyConsent,
|
|
6393
6401
|
region,
|
|
6394
6402
|
resourceType,
|
|
6395
6403
|
vendor
|
|
@@ -6404,6 +6412,7 @@ function useTesterForm(data) {
|
|
|
6404
6412
|
lastName,
|
|
6405
6413
|
mobilePhone,
|
|
6406
6414
|
osType,
|
|
6415
|
+
privacyConsent,
|
|
6407
6416
|
region,
|
|
6408
6417
|
resourceType,
|
|
6409
6418
|
vendor
|