@timardex/cluemart-shared 1.2.48 → 1.2.50
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-BkTdN8xM.d.mts → ad-BO5cMy3b.d.mts} +5 -4
- package/dist/{ad-STgnIJ8B.d.ts → ad-Dcmq74_b.d.ts} +5 -4
- package/dist/{auth-CQPRj4DB.d.mts → auth-D636FFnJ.d.mts} +1 -1
- package/dist/{auth-OLWCR6Zr.d.ts → auth-D6Rg-cEc.d.ts} +1 -1
- package/dist/{chunk-HL4SAT7R.mjs → chunk-S6RE75SK.mjs} +4 -3
- package/dist/chunk-S6RE75SK.mjs.map +1 -0
- package/dist/{chunk-KZ2VLPYF.mjs → chunk-VYFOKMRP.mjs} +2 -2
- package/dist/enums/index.cjs +3 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +4 -3
- package/dist/enums/index.d.ts +4 -3
- package/dist/enums/index.mjs +1 -1
- 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 +2 -2
- package/dist/{global-qg1lwtYo.d.mts → global-Czf4z7aN.d.mts} +3 -3
- package/dist/{global-Be5v6emI.d.ts → global-dQyePynY.d.ts} +3 -3
- package/dist/graphql/index.cjs +16 -16
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +17 -17
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +12 -7
- 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 +14 -9
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +31 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.mjs +31 -25
- 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.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-HL4SAT7R.mjs.map +0 -1
- /package/dist/{chunk-KZ2VLPYF.mjs.map → chunk-VYFOKMRP.mjs.map} +0 -0
package/dist/hooks/index.cjs
CHANGED
|
@@ -445,7 +445,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
445
445
|
name: yup.string().label("Name").trim().min(3).max(40).required("Name is required"),
|
|
446
446
|
region: yup.string().label("Region").required("Region is required"),
|
|
447
447
|
socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
|
|
448
|
-
|
|
448
|
+
associates: yup.array().of(
|
|
449
449
|
yup.object().shape({
|
|
450
450
|
email: emailRequiredSchema,
|
|
451
451
|
resourceId: yup.string().required(),
|
|
@@ -606,6 +606,7 @@ var userSchema = yup4.object().shape({
|
|
|
606
606
|
email: emailRequiredSchema,
|
|
607
607
|
firstName: yup4.string().label("First Name").required("First name is required"),
|
|
608
608
|
lastName: yup4.string().label("Last Name").required("Last name is required"),
|
|
609
|
+
isTester: yup4.boolean().required("Tester status is required"),
|
|
609
610
|
password: yup4.string().nullable().trim().label("Password").min(8, "Password must be at least 8 characters long").notRequired(),
|
|
610
611
|
preferredRegion: yup4.string().label("Preferred Region").required("Preferred region is required"),
|
|
611
612
|
confirmPassword: yup4.string().nullable().trim().label("Confirm Password").when("password", {
|
|
@@ -739,6 +740,7 @@ var adSchema = yup7.object().shape({
|
|
|
739
740
|
// src/hooks/utils.ts
|
|
740
741
|
var globalDefaultValues = {
|
|
741
742
|
active: false,
|
|
743
|
+
associates: null,
|
|
742
744
|
contactDetails: {
|
|
743
745
|
email: null,
|
|
744
746
|
landlinePhone: null,
|
|
@@ -758,7 +760,6 @@ var globalDefaultValues = {
|
|
|
758
760
|
logo: null,
|
|
759
761
|
logoUpload: null,
|
|
760
762
|
name: "",
|
|
761
|
-
partners: null,
|
|
762
763
|
promoCodes: [],
|
|
763
764
|
region: "",
|
|
764
765
|
socialMedia: []
|
|
@@ -831,6 +832,7 @@ function mapBaseResourceTypeToFormData(data) {
|
|
|
831
832
|
return {
|
|
832
833
|
_id: data._id,
|
|
833
834
|
active: data.active,
|
|
835
|
+
associates: data.associates,
|
|
834
836
|
contactDetails: data.contactDetails,
|
|
835
837
|
cover: data.cover,
|
|
836
838
|
coverUpload: data.coverUpload,
|
|
@@ -841,7 +843,6 @@ function mapBaseResourceTypeToFormData(data) {
|
|
|
841
843
|
logoUpload: data.logoUpload,
|
|
842
844
|
name: data.name,
|
|
843
845
|
owner: data.owner,
|
|
844
|
-
partners: data.partners,
|
|
845
846
|
promoCodes: data.promoCodes,
|
|
846
847
|
region: data.region,
|
|
847
848
|
socialMedia: data.socialMedia,
|
|
@@ -881,6 +882,7 @@ function useVendorForm(data) {
|
|
|
881
882
|
const {
|
|
882
883
|
_id,
|
|
883
884
|
active,
|
|
885
|
+
associates,
|
|
884
886
|
availability,
|
|
885
887
|
categories,
|
|
886
888
|
cover,
|
|
@@ -894,7 +896,6 @@ function useVendorForm(data) {
|
|
|
894
896
|
multiLocation,
|
|
895
897
|
name,
|
|
896
898
|
owner,
|
|
897
|
-
partners,
|
|
898
899
|
products,
|
|
899
900
|
promoCodes,
|
|
900
901
|
region,
|
|
@@ -907,6 +908,7 @@ function useVendorForm(data) {
|
|
|
907
908
|
fields: {
|
|
908
909
|
_id,
|
|
909
910
|
active,
|
|
911
|
+
associates,
|
|
910
912
|
availability,
|
|
911
913
|
categories,
|
|
912
914
|
cover,
|
|
@@ -920,7 +922,6 @@ function useVendorForm(data) {
|
|
|
920
922
|
multiLocation,
|
|
921
923
|
name,
|
|
922
924
|
owner,
|
|
923
|
-
partners,
|
|
924
925
|
products,
|
|
925
926
|
promoCodes,
|
|
926
927
|
region,
|
|
@@ -1035,6 +1036,7 @@ function useEventForm(data) {
|
|
|
1035
1036
|
const {
|
|
1036
1037
|
_id,
|
|
1037
1038
|
active,
|
|
1039
|
+
associates,
|
|
1038
1040
|
cover,
|
|
1039
1041
|
coverUpload,
|
|
1040
1042
|
dateTime,
|
|
@@ -1048,7 +1050,6 @@ function useEventForm(data) {
|
|
|
1048
1050
|
name,
|
|
1049
1051
|
nzbn,
|
|
1050
1052
|
owner,
|
|
1051
|
-
partners,
|
|
1052
1053
|
promoCodes,
|
|
1053
1054
|
provider,
|
|
1054
1055
|
rainOrShine,
|
|
@@ -1062,6 +1063,7 @@ function useEventForm(data) {
|
|
|
1062
1063
|
fields: {
|
|
1063
1064
|
_id,
|
|
1064
1065
|
active,
|
|
1066
|
+
associates,
|
|
1065
1067
|
cover,
|
|
1066
1068
|
coverUpload,
|
|
1067
1069
|
dateTime,
|
|
@@ -1075,7 +1077,6 @@ function useEventForm(data) {
|
|
|
1075
1077
|
name,
|
|
1076
1078
|
nzbn,
|
|
1077
1079
|
owner,
|
|
1078
|
-
partners,
|
|
1079
1080
|
promoCodes,
|
|
1080
1081
|
provider,
|
|
1081
1082
|
rainOrShine,
|
|
@@ -1166,6 +1167,7 @@ var defaultValues = {
|
|
|
1166
1167
|
confirmPassword: "",
|
|
1167
1168
|
email: "",
|
|
1168
1169
|
firstName: "",
|
|
1170
|
+
isTester: false,
|
|
1169
1171
|
lastName: "",
|
|
1170
1172
|
password: null,
|
|
1171
1173
|
preferredRegion: "",
|
|
@@ -1193,6 +1195,7 @@ function useUserForm(data) {
|
|
|
1193
1195
|
avatarUpload: data.avatarUpload,
|
|
1194
1196
|
email: data.email,
|
|
1195
1197
|
firstName: data.firstName,
|
|
1198
|
+
isTester: data.isTester,
|
|
1196
1199
|
lastName: data.lastName,
|
|
1197
1200
|
password: data.password,
|
|
1198
1201
|
preferredRegion: data.preferredRegion,
|
|
@@ -1210,6 +1213,7 @@ function useUserForm(data) {
|
|
|
1210
1213
|
avatarUpload,
|
|
1211
1214
|
email,
|
|
1212
1215
|
firstName,
|
|
1216
|
+
isTester,
|
|
1213
1217
|
lastName,
|
|
1214
1218
|
password,
|
|
1215
1219
|
preferredRegion,
|
|
@@ -1225,6 +1229,7 @@ function useUserForm(data) {
|
|
|
1225
1229
|
avatarUpload,
|
|
1226
1230
|
email,
|
|
1227
1231
|
firstName,
|
|
1232
|
+
isTester,
|
|
1228
1233
|
lastName,
|
|
1229
1234
|
password,
|
|
1230
1235
|
preferredRegion,
|