@timardex/cluemart-shared 1.2.69 → 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-BijiW7Nn.d.ts → ad-DIpc7lyr.d.ts} +1 -1
- package/dist/{ad-DITy2OMe.d.mts → ad-_p1gmLNT.d.mts} +1 -1
- package/dist/{auth-iE9sd_mq.d.ts → auth-Bjqk92cx.d.ts} +1 -1
- package/dist/{auth-DCIrfDwB.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-DhZY519g.d.mts → global-B0AzhgkH.d.mts} +7 -13
- package/dist/{global-08vcDEuE.d.ts → global-BH6qrlBv.d.ts} +7 -13
- 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 +15 -6
- 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 +15 -6
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +794 -684
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +463 -221
- package/dist/index.d.ts +463 -221
- package/dist/index.mjs +593 -483
- 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,15 +455,19 @@ 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,
|
|
462
462
|
resourceId: yup.string().label("Resource ID").required("Resource ID is required"),
|
|
463
463
|
resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).label("Resource Type").required("Resource Type is required"),
|
|
464
|
-
|
|
464
|
+
licence: yup.object({
|
|
465
|
+
expiryDate: yup.date().required("Expiry Date is required"),
|
|
466
|
+
issuedDate: yup.date().required("Issued Date is required"),
|
|
467
|
+
licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
|
|
468
|
+
})
|
|
465
469
|
})
|
|
466
|
-
).nullable().
|
|
470
|
+
).nullable().default(null)
|
|
467
471
|
});
|
|
468
472
|
var categorySchema = yup.array().of(
|
|
469
473
|
yup.object().shape({
|
|
@@ -557,8 +561,7 @@ var vendorSchema = globalResourceSchema.shape({
|
|
|
557
561
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
558
562
|
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
559
563
|
multiLocation: yup3.boolean().required("Multi location is required"),
|
|
560
|
-
products: yup3.array().of(vendroMenuSchema).
|
|
561
|
-
specialties: yup3.array().of(vendroMenuSchema).optional().nullable(),
|
|
564
|
+
products: yup3.array().of(vendroMenuSchema).nullable().default(null),
|
|
562
565
|
vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
563
566
|
});
|
|
564
567
|
var vendorInfoSchema = yup3.object().shape({
|
|
@@ -914,6 +917,7 @@ function useVendorForm(data) {
|
|
|
914
917
|
associates,
|
|
915
918
|
availability,
|
|
916
919
|
categories,
|
|
920
|
+
contactDetails,
|
|
917
921
|
cover,
|
|
918
922
|
coverUpload,
|
|
919
923
|
foodTruck,
|
|
@@ -941,6 +945,7 @@ function useVendorForm(data) {
|
|
|
941
945
|
associates,
|
|
942
946
|
availability,
|
|
943
947
|
categories,
|
|
948
|
+
contactDetails,
|
|
944
949
|
cover,
|
|
945
950
|
coverUpload,
|
|
946
951
|
description,
|
|
@@ -1068,6 +1073,7 @@ function useEventForm(data) {
|
|
|
1068
1073
|
_id,
|
|
1069
1074
|
active,
|
|
1070
1075
|
associates,
|
|
1076
|
+
contactDetails,
|
|
1071
1077
|
cover,
|
|
1072
1078
|
coverUpload,
|
|
1073
1079
|
dateTime,
|
|
@@ -1095,6 +1101,7 @@ function useEventForm(data) {
|
|
|
1095
1101
|
_id,
|
|
1096
1102
|
active,
|
|
1097
1103
|
associates,
|
|
1104
|
+
contactDetails,
|
|
1098
1105
|
cover,
|
|
1099
1106
|
coverUpload,
|
|
1100
1107
|
dateTime,
|
|
@@ -1742,6 +1749,7 @@ function usePartnerForm(data) {
|
|
|
1742
1749
|
_id,
|
|
1743
1750
|
active,
|
|
1744
1751
|
associates,
|
|
1752
|
+
contactDetails,
|
|
1745
1753
|
cover,
|
|
1746
1754
|
coverUpload,
|
|
1747
1755
|
description,
|
|
@@ -1765,6 +1773,7 @@ function usePartnerForm(data) {
|
|
|
1765
1773
|
_id,
|
|
1766
1774
|
active,
|
|
1767
1775
|
associates,
|
|
1776
|
+
contactDetails,
|
|
1768
1777
|
cover,
|
|
1769
1778
|
coverUpload,
|
|
1770
1779
|
description,
|