@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.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
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
|
|
@@ -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
|