@timardex/cluemart-shared 1.2.70 → 1.2.71
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-CJBWZnb9.d.ts → ad-DIpc7lyr.d.ts} +1 -1
- package/dist/{ad-BdK9N1Fw.d.mts → ad-_p1gmLNT.d.mts} +1 -1
- package/dist/{auth-Dxb3_Ak-.d.ts → auth-Bjqk92cx.d.ts} +1 -1
- package/dist/{auth-BKpylbaZ.d.mts → auth-CcX2zTDU.d.mts} +1 -1
- package/dist/formFields/index.cjs +198 -105
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +198 -105
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-CfX05e2q.d.mts → global-B0AzhgkH.d.mts} +4 -4
- package/dist/{global-flZOvt2w.d.ts → global-BH6qrlBv.d.ts} +4 -4
- package/dist/graphql/index.cjs +573 -565
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +459 -211
- package/dist/graphql/index.d.ts +459 -211
- package/dist/graphql/index.mjs +378 -370
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +10 -5
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +10 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +787 -681
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +460 -212
- package/dist/index.d.ts +460 -212
- package/dist/index.mjs +586 -480
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +24 -24
package/dist/hooks/index.cjs
CHANGED
|
@@ -338,7 +338,7 @@ var contactDetailsSchema = yup.object({
|
|
|
338
338
|
(value) => !value || landlineRegex.test(value)
|
|
339
339
|
// skip empty values
|
|
340
340
|
)
|
|
341
|
-
}).nullable().
|
|
341
|
+
}).nullable().default(void 0);
|
|
342
342
|
var endDateNotInPastTest = yup.string().test("not-in-past", "End date cannot be in the past", (value) => {
|
|
343
343
|
const now = (0, import_dayjs2.default)();
|
|
344
344
|
return value ? (0, import_dayjs2.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
|
|
@@ -455,7 +455,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
455
455
|
description: yup.string().label("Description").trim().min(3).required("Description is required"),
|
|
456
456
|
name: yup.string().label("Name").trim().min(3).max(40).required("Name is required"),
|
|
457
457
|
region: yup.string().label("Region").required("Region is required"),
|
|
458
|
-
socialMedia: yup.array().of(socialMediaSchema).nullable().
|
|
458
|
+
socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),
|
|
459
459
|
associates: yup.array().of(
|
|
460
460
|
yup.object().shape({
|
|
461
461
|
email: emailRequiredSchema,
|
|
@@ -467,7 +467,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
467
467
|
licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
|
|
468
468
|
})
|
|
469
469
|
})
|
|
470
|
-
).nullable().
|
|
470
|
+
).nullable().default(null)
|
|
471
471
|
});
|
|
472
472
|
var categorySchema = yup.array().of(
|
|
473
473
|
yup.object().shape({
|
|
@@ -561,8 +561,7 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
561
561
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
562
562
|
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
563
563
|
multiLocation: yup3.boolean().required("Multi location is required"),
|
|
564
|
-
products: yup3.array().of(vendroMenuSchema).
|
|
565
|
-
specialties: yup3.array().of(vendroMenuSchema).optional().nullable(),
|
|
564
|
+
products: yup3.array().of(vendroMenuSchema).nullable().default(null),
|
|
566
565
|
vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
567
566
|
});
|
|
568
567
|
var vendorInfoSchema = yup3.object().shape({
|
|
@@ -918,6 +917,7 @@ function useVendorForm(data) {
|
|
|
918
917
|
associates,
|
|
919
918
|
availability,
|
|
920
919
|
categories,
|
|
920
|
+
contactDetails,
|
|
921
921
|
cover,
|
|
922
922
|
coverUpload,
|
|
923
923
|
foodTruck,
|
|
@@ -945,6 +945,7 @@ function useVendorForm(data) {
|
|
|
945
945
|
associates,
|
|
946
946
|
availability,
|
|
947
947
|
categories,
|
|
948
|
+
contactDetails,
|
|
948
949
|
cover,
|
|
949
950
|
coverUpload,
|
|
950
951
|
description,
|
|
@@ -1072,6 +1073,7 @@ function useEventForm(data) {
|
|
|
1072
1073
|
_id,
|
|
1073
1074
|
active,
|
|
1074
1075
|
associates,
|
|
1076
|
+
contactDetails,
|
|
1075
1077
|
cover,
|
|
1076
1078
|
coverUpload,
|
|
1077
1079
|
dateTime,
|
|
@@ -1099,6 +1101,7 @@ function useEventForm(data) {
|
|
|
1099
1101
|
_id,
|
|
1100
1102
|
active,
|
|
1101
1103
|
associates,
|
|
1104
|
+
contactDetails,
|
|
1102
1105
|
cover,
|
|
1103
1106
|
coverUpload,
|
|
1104
1107
|
dateTime,
|
|
@@ -1746,6 +1749,7 @@ function usePartnerForm(data) {
|
|
|
1746
1749
|
_id,
|
|
1747
1750
|
active,
|
|
1748
1751
|
associates,
|
|
1752
|
+
contactDetails,
|
|
1749
1753
|
cover,
|
|
1750
1754
|
coverUpload,
|
|
1751
1755
|
description,
|
|
@@ -1769,6 +1773,7 @@ function usePartnerForm(data) {
|
|
|
1769
1773
|
_id,
|
|
1770
1774
|
active,
|
|
1771
1775
|
associates,
|
|
1776
|
+
contactDetails,
|
|
1772
1777
|
cover,
|
|
1773
1778
|
coverUpload,
|
|
1774
1779
|
description,
|