@timardex/cluemart-shared 1.2.86 → 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-BKRuZXRs.d.mts → ad-Cnah2g5Z.d.mts} +1 -0
- package/dist/{ad-AkqtmXpL.d.ts → ad-DOKicc6e.d.ts} +1 -0
- package/dist/{chunk-35N6UAG3.mjs → chunk-74DMNP4I.mjs} +1 -1
- 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 +11 -3
- 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 +15 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +15 -6
- 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/index.cjs
CHANGED
|
@@ -2311,19 +2311,19 @@ var testersFields = [
|
|
|
2311
2311
|
helperText: "Enter your business name *",
|
|
2312
2312
|
keyboardType: "default",
|
|
2313
2313
|
name: "businessName",
|
|
2314
|
-
placeholder: "Business Name"
|
|
2314
|
+
placeholder: "Business Name *"
|
|
2315
2315
|
},
|
|
2316
2316
|
{
|
|
2317
2317
|
helperText: "Enter first name *",
|
|
2318
2318
|
keyboardType: "default",
|
|
2319
2319
|
name: "firstName",
|
|
2320
|
-
placeholder: "First Name"
|
|
2320
|
+
placeholder: "First Name *"
|
|
2321
2321
|
},
|
|
2322
2322
|
{
|
|
2323
2323
|
helperText: "Enter last name *",
|
|
2324
2324
|
keyboardType: "default",
|
|
2325
2325
|
name: "lastName",
|
|
2326
|
-
placeholder: "Last Name"
|
|
2326
|
+
placeholder: "Last Name *"
|
|
2327
2327
|
},
|
|
2328
2328
|
{
|
|
2329
2329
|
...emailField,
|
|
@@ -4427,6 +4427,7 @@ var TESTER_FIELDS_FRAGMENT = import_client37.gql`
|
|
|
4427
4427
|
lastName
|
|
4428
4428
|
mobilePhone
|
|
4429
4429
|
osType
|
|
4430
|
+
privacyConsent
|
|
4430
4431
|
region
|
|
4431
4432
|
resourceType
|
|
4432
4433
|
updatedAt
|
|
@@ -5790,13 +5791,17 @@ var testerSchema = yup6.object().shape({
|
|
|
5790
5791
|
(value) => !value || mobileRegex.test(value)
|
|
5791
5792
|
// skip empty values
|
|
5792
5793
|
),
|
|
5793
|
-
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS
|
|
5794
|
+
osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
|
|
5795
|
+
privacyConsent: yup6.boolean().oneOf([true], "You must accept the privacy policy").required("Privacy consent is required"),
|
|
5794
5796
|
region: yup6.string().required("Region is required"),
|
|
5795
|
-
resourceType: yup6.mixed().oneOf(
|
|
5797
|
+
resourceType: yup6.mixed().oneOf(
|
|
5798
|
+
Object.values(EnumResourceType),
|
|
5799
|
+
"Please select Event or Stallholder"
|
|
5800
|
+
).required("Resource Type is required"),
|
|
5796
5801
|
vendor: yup6.object().when("resourceType", {
|
|
5797
5802
|
is: (resourceType) => resourceType === "vendor" /* VENDOR */,
|
|
5798
5803
|
otherwise: (schema) => schema.nullable().optional(),
|
|
5799
|
-
then: () => testerVendorSchema.required("
|
|
5804
|
+
then: () => testerVendorSchema.required("Stallholder information is required")
|
|
5800
5805
|
})
|
|
5801
5806
|
});
|
|
5802
5807
|
|
|
@@ -6598,6 +6603,7 @@ var defaultValues7 = {
|
|
|
6598
6603
|
lastName: "",
|
|
6599
6604
|
mobilePhone: "",
|
|
6600
6605
|
osType: "",
|
|
6606
|
+
privacyConsent: false,
|
|
6601
6607
|
region: "",
|
|
6602
6608
|
resourceType: "",
|
|
6603
6609
|
vendor: null
|
|
@@ -6625,6 +6631,7 @@ function useTesterForm(data) {
|
|
|
6625
6631
|
lastName: data.lastName,
|
|
6626
6632
|
mobilePhone: data.mobilePhone,
|
|
6627
6633
|
osType: data.osType,
|
|
6634
|
+
privacyConsent: data.privacyConsent,
|
|
6628
6635
|
region: data.region,
|
|
6629
6636
|
resourceType: data.resourceType,
|
|
6630
6637
|
vendor: data.vendor
|
|
@@ -6641,6 +6648,7 @@ function useTesterForm(data) {
|
|
|
6641
6648
|
lastName,
|
|
6642
6649
|
mobilePhone,
|
|
6643
6650
|
osType,
|
|
6651
|
+
privacyConsent,
|
|
6644
6652
|
region,
|
|
6645
6653
|
resourceType,
|
|
6646
6654
|
vendor
|
|
@@ -6655,6 +6663,7 @@ function useTesterForm(data) {
|
|
|
6655
6663
|
lastName,
|
|
6656
6664
|
mobilePhone,
|
|
6657
6665
|
osType,
|
|
6666
|
+
privacyConsent,
|
|
6658
6667
|
region,
|
|
6659
6668
|
resourceType,
|
|
6660
6669
|
vendor
|