@timardex/cluemart-shared 1.4.61 → 1.4.63
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/{auth-9vFYJSW2.d.ts → auth-n3P2BSCb.d.ts} +1 -1
- package/dist/{auth-GnL6pUzz.d.mts → auth-tx3-QbA9.d.mts} +1 -1
- package/dist/{chunk-XV4RAQLF.mjs → chunk-KXVMMCWF.mjs} +10 -10
- package/dist/chunk-KXVMMCWF.mjs.map +1 -0
- package/dist/formFields/index.cjs +9 -9
- 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 +1 -1
- package/dist/{global-D_UhEob6.d.mts → global-BCvKcmiT.d.mts} +4 -4
- package/dist/{global-VjBJNe7n.d.ts → global-DVDoQmBT.d.ts} +4 -4
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/hooks/index.cjs +15 -28
- 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 +9 -22
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +17 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +17 -30
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DjGTbKYj.d.ts → post-ByxIVi36.d.ts} +1 -1
- package/dist/{post-mzVNdX-7.d.mts → post-CvS5wUjm.d.mts} +1 -1
- package/dist/{resourceActivities-ByN_-57i.d.mts → resourceActivities-BKd6q2ey.d.mts} +1 -1
- package/dist/{resourceActivities-DP_nnVG5.d.ts → resourceActivities-UOB8Bo7j.d.ts} +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-XV4RAQLF.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1363,7 +1363,7 @@ var loginFields = [
|
|
|
1363
1363
|
...emailField
|
|
1364
1364
|
},
|
|
1365
1365
|
{
|
|
1366
|
-
helperText: "Enter password
|
|
1366
|
+
helperText: "Enter password",
|
|
1367
1367
|
keyboardType: "default",
|
|
1368
1368
|
name: "password",
|
|
1369
1369
|
placeholder: "Password",
|
|
@@ -1372,13 +1372,13 @@ var loginFields = [
|
|
|
1372
1372
|
];
|
|
1373
1373
|
var registerFields = [
|
|
1374
1374
|
{
|
|
1375
|
-
helperText: "Enter first name
|
|
1375
|
+
helperText: "Enter first name",
|
|
1376
1376
|
keyboardType: "default",
|
|
1377
1377
|
name: "firstName",
|
|
1378
1378
|
placeholder: "First Name"
|
|
1379
1379
|
},
|
|
1380
1380
|
{
|
|
1381
|
-
helperText: "Enter last name
|
|
1381
|
+
helperText: "Enter last name",
|
|
1382
1382
|
keyboardType: "default",
|
|
1383
1383
|
name: "lastName",
|
|
1384
1384
|
placeholder: "Last Name"
|
|
@@ -1387,7 +1387,7 @@ var registerFields = [
|
|
|
1387
1387
|
...emailField
|
|
1388
1388
|
},
|
|
1389
1389
|
{
|
|
1390
|
-
helperText: "Enter password
|
|
1390
|
+
helperText: "Enter password",
|
|
1391
1391
|
keyboardType: "default",
|
|
1392
1392
|
name: "password",
|
|
1393
1393
|
placeholder: "Password",
|
|
@@ -1397,19 +1397,19 @@ var registerFields = [
|
|
|
1397
1397
|
var requestPasswordResetFields = [
|
|
1398
1398
|
{
|
|
1399
1399
|
...emailField,
|
|
1400
|
-
helperText: "Enter email address to reset your password
|
|
1400
|
+
helperText: "Enter email address to reset your password"
|
|
1401
1401
|
}
|
|
1402
1402
|
];
|
|
1403
1403
|
var resetPasswordFields = [
|
|
1404
1404
|
{
|
|
1405
|
-
helperText: "Enter your new password
|
|
1405
|
+
helperText: "Enter your new password",
|
|
1406
1406
|
keyboardType: "default",
|
|
1407
1407
|
name: "password",
|
|
1408
1408
|
placeholder: "Password",
|
|
1409
1409
|
secureTextEntry: true
|
|
1410
1410
|
},
|
|
1411
1411
|
{
|
|
1412
|
-
helperText: "Confirm your new password
|
|
1412
|
+
helperText: "Confirm your new password",
|
|
1413
1413
|
keyboardType: "default",
|
|
1414
1414
|
name: "confirmPassword",
|
|
1415
1415
|
placeholder: "Confirm Password",
|
|
@@ -1420,10 +1420,10 @@ var validateVerificationTokenFields = [
|
|
|
1420
1420
|
{
|
|
1421
1421
|
...emailField,
|
|
1422
1422
|
disabled: true,
|
|
1423
|
-
helperText: "Your email address
|
|
1423
|
+
helperText: "Your email address"
|
|
1424
1424
|
},
|
|
1425
1425
|
{
|
|
1426
|
-
helperText: "Enter the Verification code sent to you by email
|
|
1426
|
+
helperText: "Enter the Verification code sent to you by email",
|
|
1427
1427
|
keyboardType: "number-pad",
|
|
1428
1428
|
name: "verificationToken",
|
|
1429
1429
|
placeholder: "Verification code"
|
|
@@ -6362,32 +6362,19 @@ var eventInfoSchema = yup2.object().shape({
|
|
|
6362
6362
|
|
|
6363
6363
|
// src/yupSchema/vendor.ts
|
|
6364
6364
|
var yup3 = __toESM(require("yup"));
|
|
6365
|
-
var
|
|
6366
|
-
description: yup3.string().
|
|
6367
|
-
name: yup3.string().
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
return value !== null && value !== void 0;
|
|
6372
|
-
}),
|
|
6373
|
-
priceUnit: yup3.string().trim().nullable().defined().test("unit-required", "Product unit is required", function(value) {
|
|
6374
|
-
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
6375
|
-
}),
|
|
6376
|
-
productGroups: yup3.array().of(yup3.string().defined()).transform(
|
|
6377
|
-
(value, originalValue) => originalValue === void 0 ? null : value
|
|
6378
|
-
).nullable().test(
|
|
6379
|
-
"productGroups-required",
|
|
6380
|
-
"Product groups are required",
|
|
6381
|
-
function(value) {
|
|
6382
|
-
return value !== null && Array.isArray(value) && value.length > 0;
|
|
6383
|
-
}
|
|
6384
|
-
).defined()
|
|
6365
|
+
var vendorMenuSchema = yup3.object({
|
|
6366
|
+
description: yup3.string().nullable().optional(),
|
|
6367
|
+
name: yup3.string().nullable().required("Product name is required"),
|
|
6368
|
+
price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
|
|
6369
|
+
priceUnit: yup3.string().required("Product unit is required"),
|
|
6370
|
+
productGroups: yup3.array().of(yup3.string().defined()).min(1, "Product groups are required").required("Product groups are required")
|
|
6385
6371
|
});
|
|
6386
6372
|
var vendorSchema = globalResourceSchema.shape({
|
|
6387
6373
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
6388
6374
|
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
6389
6375
|
products: yup3.object().shape({
|
|
6390
|
-
|
|
6376
|
+
active: yup3.boolean().nullable().optional(),
|
|
6377
|
+
productsList: yup3.array().of(vendorMenuSchema).nullable().optional()
|
|
6391
6378
|
}).nullable().optional(),
|
|
6392
6379
|
vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
6393
6380
|
});
|