@timardex/cluemart-shared 1.2.86 → 1.2.88
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-AkqtmXpL.d.ts → ad-CIaDLRVX.d.ts} +5 -4
- package/dist/{ad-BKRuZXRs.d.mts → ad-ClzcYPuT.d.mts} +5 -4
- package/dist/{chunk-35N6UAG3.mjs → chunk-66MS2SVX.mjs} +1 -1
- package/dist/chunk-66MS2SVX.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 +16 -8
- 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 +17 -9
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +20 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -4
- package/dist/index.d.ts +5 -4
- package/dist/index.mjs +20 -11
- package/dist/index.mjs.map +1 -1
- 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-35N6UAG3.mjs.map +0 -1
package/dist/hooks/index.cjs
CHANGED
|
@@ -698,16 +698,16 @@ var testerVendorSchema = yup6.object().shape({
|
|
|
698
698
|
).min(1, "At least one market must be provided").required("Markets attended are required"),
|
|
699
699
|
productsOrServices: yup6.string().trim().required("Products or services description is required"),
|
|
700
700
|
questionary: yup6.object().shape({
|
|
701
|
-
appearInVideoIntroduction: yup6.boolean().
|
|
701
|
+
appearInVideoIntroduction: yup6.boolean().optional(),
|
|
702
702
|
applyToAtLeastOneMarket: yup6.boolean().required("Apply to at least one market commitment is required"),
|
|
703
703
|
completeFeedbackQuestionnaire: yup6.boolean().required("Complete feedback questionnaire commitment is required"),
|
|
704
|
-
excitementAboutApp: yup6.string().trim().
|
|
705
|
-
sendPhotoForSocialMedia: yup6.boolean().
|
|
704
|
+
excitementAboutApp: yup6.string().trim().optional(),
|
|
705
|
+
sendPhotoForSocialMedia: yup6.boolean().optional(),
|
|
706
706
|
socialMediaFeatureReason: yup6.string().trim().optional(),
|
|
707
707
|
testingPeriodConcerns: yup6.string().trim().optional(),
|
|
708
708
|
tryVisitorFeatures: yup6.boolean().required("Try visitor features commitment is required"),
|
|
709
709
|
uploadStallProfileFirstWeek: yup6.boolean().required("Upload stall profile first week commitment is required"),
|
|
710
|
-
usefulnessExpectations: yup6.string().trim().
|
|
710
|
+
usefulnessExpectations: yup6.string().trim().optional()
|
|
711
711
|
}),
|
|
712
712
|
sellingFrequency: yup6.mixed().oneOf(
|
|
713
713
|
Object.values(VendorSellingFrequency),
|
|
@@ -746,7 +746,7 @@ var testerSchema = yup6.object().shape({
|
|
|
746
746
|
event: yup6.object().when("resourceType", {
|
|
747
747
|
is: (resourceType) => resourceType === "event" /* EVENT */,
|
|
748
748
|
otherwise: (schema) => schema.nullable().optional(),
|
|
749
|
-
then: () => testerEventSchema
|
|
749
|
+
then: () => testerEventSchema
|
|
750
750
|
}),
|
|
751
751
|
firstName: yup6.string().required("First name is required"),
|
|
752
752
|
lastName: yup6.string().required("Last name is required"),
|
|
@@ -756,13 +756,17 @@ var testerSchema = yup6.object().shape({
|
|
|
756
756
|
(value) => !value || mobileRegex.test(value)
|
|
757
757
|
// skip empty values
|
|
758
758
|
),
|
|
759
|
-
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS
|
|
759
|
+
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
|
|
760
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required"),
|
|
760
761
|
region: yup6.string().required("Region is required"),
|
|
761
|
-
resourceType: yup6.mixed().oneOf(
|
|
762
|
+
resourceType: yup6.mixed().oneOf(
|
|
763
|
+
Object.values(EnumResourceType),
|
|
764
|
+
"Please select Event or Stallholder"
|
|
765
|
+
).required("Resource Type is required"),
|
|
762
766
|
vendor: yup6.object().when("resourceType", {
|
|
763
767
|
is: (resourceType) => resourceType === "vendor" /* VENDOR */,
|
|
764
768
|
otherwise: (schema) => schema.nullable().optional(),
|
|
765
|
-
then: () => testerVendorSchema
|
|
769
|
+
then: () => testerVendorSchema
|
|
766
770
|
})
|
|
767
771
|
});
|
|
768
772
|
|
|
@@ -1564,6 +1568,7 @@ var defaultValues7 = {
|
|
|
1564
1568
|
lastName: "",
|
|
1565
1569
|
mobilePhone: "",
|
|
1566
1570
|
osType: "",
|
|
1571
|
+
privacyConsent: false,
|
|
1567
1572
|
region: "",
|
|
1568
1573
|
resourceType: "",
|
|
1569
1574
|
vendor: null
|
|
@@ -1591,6 +1596,7 @@ function useTesterForm(data) {
|
|
|
1591
1596
|
lastName: data.lastName,
|
|
1592
1597
|
mobilePhone: data.mobilePhone,
|
|
1593
1598
|
osType: data.osType,
|
|
1599
|
+
privacyConsent: data.privacyConsent,
|
|
1594
1600
|
region: data.region,
|
|
1595
1601
|
resourceType: data.resourceType,
|
|
1596
1602
|
vendor: data.vendor
|
|
@@ -1607,6 +1613,7 @@ function useTesterForm(data) {
|
|
|
1607
1613
|
lastName,
|
|
1608
1614
|
mobilePhone,
|
|
1609
1615
|
osType,
|
|
1616
|
+
privacyConsent,
|
|
1610
1617
|
region,
|
|
1611
1618
|
resourceType,
|
|
1612
1619
|
vendor
|
|
@@ -1621,6 +1628,7 @@ function useTesterForm(data) {
|
|
|
1621
1628
|
lastName,
|
|
1622
1629
|
mobilePhone,
|
|
1623
1630
|
osType,
|
|
1631
|
+
privacyConsent,
|
|
1624
1632
|
region,
|
|
1625
1633
|
resourceType,
|
|
1626
1634
|
vendor
|