@timardex/cluemart-shared 1.2.25 → 1.2.26
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/{chunk-G5RI3IO2.mjs → chunk-GGNNB6MQ.mjs} +2 -2
- package/dist/{chunk-IVFHFNLY.mjs → chunk-NNS747QT.mjs} +2 -1
- package/dist/chunk-NNS747QT.mjs.map +1 -0
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +43 -46
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +2 -1
- package/dist/formFields/index.d.ts +2 -1
- package/dist/formFields/index.mjs +44 -48
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/graphql/index.cjs +2 -9
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.mjs +3 -10
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +46 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +45 -55
- package/dist/index.mjs.map +1 -1
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-IVFHFNLY.mjs.map +0 -1
- /package/dist/{chunk-G5RI3IO2.mjs.map → chunk-GGNNB6MQ.mjs.map} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -72,6 +72,7 @@ __export(index_exports, {
|
|
|
72
72
|
defaultRegion: () => defaultRegion,
|
|
73
73
|
defaultVendorFormValues: () => defaultVendorFormValues,
|
|
74
74
|
defaultVendorInfoFormValues: () => defaultVendorInfoFormValues,
|
|
75
|
+
emailField: () => emailField,
|
|
75
76
|
eventBasicInfoFields: () => eventBasicInfoFields,
|
|
76
77
|
eventEndDateFields: () => eventEndDateFields,
|
|
77
78
|
eventInfo: () => eventInfo,
|
|
@@ -299,6 +300,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
299
300
|
EnumNotificationResourceType2["CREATED_EVENT"] = "created_event";
|
|
300
301
|
EnumNotificationResourceType2["CREATED_VENDOR"] = "created_vendor";
|
|
301
302
|
EnumNotificationResourceType2["EVENT_INVITE_VENDOR"] = "event_invite_vendor" /* EVENT_INVITE_VENDOR */;
|
|
303
|
+
EnumNotificationResourceType2["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
302
304
|
EnumNotificationResourceType2["NEW_CHAT_MESSAGE"] = "new_chat_message";
|
|
303
305
|
EnumNotificationResourceType2["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event" /* VENDOR_APPLICATION_TO_EVENT */;
|
|
304
306
|
return EnumNotificationResourceType2;
|
|
@@ -1054,13 +1056,36 @@ var stallTypeOptions = stallTypes.map((type) => ({
|
|
|
1054
1056
|
stallCapacity: 0
|
|
1055
1057
|
}));
|
|
1056
1058
|
|
|
1059
|
+
// src/formFields/global.ts
|
|
1060
|
+
var emailField = {
|
|
1061
|
+
helperText: "Enter email address",
|
|
1062
|
+
keyboardType: "email-address",
|
|
1063
|
+
name: "email",
|
|
1064
|
+
placeholder: "Email"
|
|
1065
|
+
};
|
|
1066
|
+
var companyContactFields = [
|
|
1067
|
+
{
|
|
1068
|
+
...emailField,
|
|
1069
|
+
name: "contactDetails.email"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
helperText: "Enter your mobile phone number",
|
|
1073
|
+
keyboardType: "phone-pad",
|
|
1074
|
+
name: "contactDetails.mobilePhone",
|
|
1075
|
+
placeholder: "Mobile Phone Number"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
helperText: "Enter your landline phone number",
|
|
1079
|
+
keyboardType: "phone-pad",
|
|
1080
|
+
name: "contactDetails.landlinePhone",
|
|
1081
|
+
placeholder: "Landline Phone Number"
|
|
1082
|
+
}
|
|
1083
|
+
];
|
|
1084
|
+
|
|
1057
1085
|
// src/formFields/auth.ts
|
|
1058
1086
|
var loginFields = [
|
|
1059
1087
|
{
|
|
1060
|
-
|
|
1061
|
-
keyboardType: "email-address",
|
|
1062
|
-
name: "email",
|
|
1063
|
-
placeholder: "Email"
|
|
1088
|
+
...emailField
|
|
1064
1089
|
},
|
|
1065
1090
|
{
|
|
1066
1091
|
helperText: "Enter password *",
|
|
@@ -1084,10 +1109,7 @@ var registerFields = [
|
|
|
1084
1109
|
placeholder: "Last Name"
|
|
1085
1110
|
},
|
|
1086
1111
|
{
|
|
1087
|
-
|
|
1088
|
-
keyboardType: "email-address",
|
|
1089
|
-
name: "email",
|
|
1090
|
-
placeholder: "Email"
|
|
1112
|
+
...emailField
|
|
1091
1113
|
},
|
|
1092
1114
|
{
|
|
1093
1115
|
helperText: "Enter password *",
|
|
@@ -1099,10 +1121,8 @@ var registerFields = [
|
|
|
1099
1121
|
];
|
|
1100
1122
|
var requestPasswordResetFields = [
|
|
1101
1123
|
{
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
name: "email",
|
|
1105
|
-
placeholder: "Email"
|
|
1124
|
+
...emailField,
|
|
1125
|
+
helperText: "Enter email address to reset your password *"
|
|
1106
1126
|
}
|
|
1107
1127
|
];
|
|
1108
1128
|
var resetPasswordFields = [
|
|
@@ -1123,11 +1143,9 @@ var resetPasswordFields = [
|
|
|
1123
1143
|
];
|
|
1124
1144
|
var validateVerificationTokenFields = [
|
|
1125
1145
|
{
|
|
1146
|
+
...emailField,
|
|
1126
1147
|
disabled: true,
|
|
1127
|
-
helperText: "Your email address *"
|
|
1128
|
-
keyboardType: "email-address",
|
|
1129
|
-
name: "email",
|
|
1130
|
-
placeholder: "Email"
|
|
1148
|
+
helperText: "Your email address *"
|
|
1131
1149
|
},
|
|
1132
1150
|
{
|
|
1133
1151
|
helperText: "Enter the Verification code sent to you by email *",
|
|
@@ -1146,6 +1164,11 @@ var profileFields = [
|
|
|
1146
1164
|
name: "email",
|
|
1147
1165
|
placeholder: "Email"
|
|
1148
1166
|
},
|
|
1167
|
+
{
|
|
1168
|
+
...emailField,
|
|
1169
|
+
disabled: true,
|
|
1170
|
+
helperText: "Email cannot be changed"
|
|
1171
|
+
},
|
|
1149
1172
|
{
|
|
1150
1173
|
helperText: "Enter first name",
|
|
1151
1174
|
keyboardType: "default",
|
|
@@ -2111,10 +2134,8 @@ var testersFields = [
|
|
|
2111
2134
|
placeholder: "Last Name"
|
|
2112
2135
|
},
|
|
2113
2136
|
{
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
name: "email",
|
|
2117
|
-
placeholder: "Email"
|
|
2137
|
+
...emailField,
|
|
2138
|
+
helperText: "Enter email address *"
|
|
2118
2139
|
},
|
|
2119
2140
|
{
|
|
2120
2141
|
helperText: "Enter your company name *",
|
|
@@ -2139,10 +2160,8 @@ var contactUsFields = [
|
|
|
2139
2160
|
placeholder: "Last Name"
|
|
2140
2161
|
},
|
|
2141
2162
|
{
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
name: "email",
|
|
2145
|
-
placeholder: "Email"
|
|
2163
|
+
...emailField,
|
|
2164
|
+
helperText: "Enter email address *"
|
|
2146
2165
|
},
|
|
2147
2166
|
{
|
|
2148
2167
|
helperText: "Enter your message *",
|
|
@@ -2153,28 +2172,6 @@ var contactUsFields = [
|
|
|
2153
2172
|
}
|
|
2154
2173
|
];
|
|
2155
2174
|
|
|
2156
|
-
// src/formFields/global.ts
|
|
2157
|
-
var companyContactFields = [
|
|
2158
|
-
{
|
|
2159
|
-
helperText: "Enter email address",
|
|
2160
|
-
keyboardType: "email-address",
|
|
2161
|
-
name: "contactDetails.email",
|
|
2162
|
-
placeholder: "Email"
|
|
2163
|
-
},
|
|
2164
|
-
{
|
|
2165
|
-
helperText: "Enter your mobile phone number",
|
|
2166
|
-
keyboardType: "phone-pad",
|
|
2167
|
-
name: "contactDetails.mobilePhone",
|
|
2168
|
-
placeholder: "Mobile Phone Number"
|
|
2169
|
-
},
|
|
2170
|
-
{
|
|
2171
|
-
helperText: "Enter your landline phone number",
|
|
2172
|
-
keyboardType: "phone-pad",
|
|
2173
|
-
name: "contactDetails.landlinePhone",
|
|
2174
|
-
placeholder: "Landline Phone Number"
|
|
2175
|
-
}
|
|
2176
|
-
];
|
|
2177
|
-
|
|
2178
2175
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
2179
2176
|
var import_client5 = require("@apollo/client");
|
|
2180
2177
|
|
|
@@ -4204,20 +4201,18 @@ var UPDATE_USER_MUTATION = import_client40.gql`
|
|
|
4204
4201
|
${USER_FIELDS_FRAGMENT}
|
|
4205
4202
|
`;
|
|
4206
4203
|
var DELETE_USER_MUTATION = import_client40.gql`
|
|
4207
|
-
mutation deleteUser($
|
|
4208
|
-
deleteUser(
|
|
4204
|
+
mutation deleteUser($email: String!) {
|
|
4205
|
+
deleteUser(email: $email)
|
|
4209
4206
|
}
|
|
4210
4207
|
`;
|
|
4211
4208
|
var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
|
|
4212
4209
|
mutation addUserFavouriteResource(
|
|
4213
4210
|
$resourceId: ID!
|
|
4214
4211
|
$resourceType: ResourceTypeEnum!
|
|
4215
|
-
$userId: ID!
|
|
4216
4212
|
) {
|
|
4217
4213
|
addUserFavouriteResource(
|
|
4218
4214
|
resourceId: $resourceId
|
|
4219
4215
|
resourceType: $resourceType
|
|
4220
|
-
userId: $userId
|
|
4221
4216
|
) {
|
|
4222
4217
|
...UserFields
|
|
4223
4218
|
}
|
|
@@ -4228,12 +4223,10 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
|
|
|
4228
4223
|
mutation removeUserFavouriteResource(
|
|
4229
4224
|
$resourceId: ID!
|
|
4230
4225
|
$resourceType: ResourceTypeEnum!
|
|
4231
|
-
$userId: ID!
|
|
4232
4226
|
) {
|
|
4233
4227
|
removeUserFavouriteResource(
|
|
4234
4228
|
resourceId: $resourceId
|
|
4235
4229
|
resourceType: $resourceType
|
|
4236
|
-
userId: $userId
|
|
4237
4230
|
) {
|
|
4238
4231
|
...UserFields
|
|
4239
4232
|
}
|
|
@@ -4242,16 +4235,13 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
|
|
|
4242
4235
|
`;
|
|
4243
4236
|
var SELECT_PACKAGE_MUTATION = import_client40.gql`
|
|
4244
4237
|
mutation selectPackage(
|
|
4245
|
-
$userId: ID!
|
|
4246
4238
|
$selectedLicence: LicencesEnumType!
|
|
4247
4239
|
$removedLicence: LicencesEnumType
|
|
4248
4240
|
) {
|
|
4249
4241
|
selectPackage(
|
|
4250
|
-
userId: $userId
|
|
4251
4242
|
selectedLicence: $selectedLicence
|
|
4252
4243
|
removedLicence: $removedLicence
|
|
4253
4244
|
) {
|
|
4254
|
-
userId
|
|
4255
4245
|
licences
|
|
4256
4246
|
message
|
|
4257
4247
|
}
|
|
@@ -6273,6 +6263,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
6273
6263
|
defaultRegion,
|
|
6274
6264
|
defaultVendorFormValues,
|
|
6275
6265
|
defaultVendorInfoFormValues,
|
|
6266
|
+
emailField,
|
|
6276
6267
|
eventBasicInfoFields,
|
|
6277
6268
|
eventEndDateFields,
|
|
6278
6269
|
eventInfo,
|