@timardex/cluemart-shared 1.4.69 → 1.4.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/{auth-BraMglei.d.mts → auth-Cdfen6gg.d.mts} +1 -1
- package/dist/{auth-Ba9gy9TM.d.ts → auth-CovYLFRn.d.ts} +1 -1
- package/dist/{chunk-DY47LWPZ.mjs → chunk-XTTEX5XF.mjs} +24 -7
- package/dist/chunk-XTTEX5XF.mjs.map +1 -0
- package/dist/formFields/index.cjs +23 -6
- 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-FOUmnU7B.d.mts → global-D_ckWQMA.d.mts} +1 -0
- package/dist/{global-D7zAQcn2.d.ts → global-HUZHOXHh.d.ts} +1 -0
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/hooks/index.cjs +23 -8
- 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 +3 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +25 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +25 -8
- package/dist/index.mjs.map +1 -1
- package/dist/{post-QiqjfkA6.d.ts → post-DIylz7DM.d.ts} +1 -1
- package/dist/{post-CUFjCn0p.d.mts → post-aU2ITfZh.d.mts} +1 -1
- package/dist/{resourceActivities-DoZpH1Fu.d.ts → resourceActivities-CwSss-73.d.ts} +1 -1
- package/dist/{resourceActivities-C4-l6iF9.d.mts → resourceActivities-dxnqHVVc.d.mts} +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-DY47LWPZ.mjs.map +0 -1
|
@@ -336,6 +336,7 @@ interface FormField {
|
|
|
336
336
|
keyboardType?: "default" | "email-address" | "number-pad" | "url" | "decimal-pad" | "phone-pad";
|
|
337
337
|
name: string;
|
|
338
338
|
placeholder: string;
|
|
339
|
+
required?: boolean;
|
|
339
340
|
secureTextEntry?: boolean;
|
|
340
341
|
}
|
|
341
342
|
interface FormDateField {
|
|
@@ -336,6 +336,7 @@ interface FormField {
|
|
|
336
336
|
keyboardType?: "default" | "email-address" | "number-pad" | "url" | "decimal-pad" | "phone-pad";
|
|
337
337
|
name: string;
|
|
338
338
|
placeholder: string;
|
|
339
|
+
required?: boolean;
|
|
339
340
|
secureTextEntry?: boolean;
|
|
340
341
|
}
|
|
341
342
|
interface FormDateField {
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-dxnqHVVc.mjs';
|
|
4
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-D_ckWQMA.mjs';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-aU2ITfZh.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-
|
|
5
|
-
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CwSss-73.js';
|
|
4
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-HUZHOXHh.js';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-DIylz7DM.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -823,10 +823,10 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle3) => {
|
|
|
823
823
|
|
|
824
824
|
// src/yupSchema/ad.ts
|
|
825
825
|
var adResourceSchema = yup6.object({
|
|
826
|
-
adDescription: yup6.string().nullable().trim().required("Ad description is required").max(
|
|
826
|
+
adDescription: yup6.string().nullable().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
|
|
827
827
|
adImage: yup6.string().nullable().required("Ad image is required"),
|
|
828
828
|
adStyle: yup6.mixed().nullable().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
|
|
829
|
-
adTitle: yup6.string().nullable().trim().required("Ad title is required").max(
|
|
829
|
+
adTitle: yup6.string().nullable().trim().required("Ad title is required").max(30, "Ad title must be at most 30 characters"),
|
|
830
830
|
adType: yup6.mixed().nullable().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
|
|
831
831
|
resourceId: yup6.string().nullable().required("Resource ID is required"),
|
|
832
832
|
resourceName: yup6.string().nullable().required("Resource name is required"),
|
|
@@ -989,13 +989,15 @@ var companyContactFields = [
|
|
|
989
989
|
// src/formFields/auth.ts
|
|
990
990
|
var loginFields = [
|
|
991
991
|
{
|
|
992
|
-
...emailField
|
|
992
|
+
...emailField,
|
|
993
|
+
required: true
|
|
993
994
|
},
|
|
994
995
|
{
|
|
995
996
|
helperText: "Enter password",
|
|
996
997
|
keyboardType: "default",
|
|
997
998
|
name: "password",
|
|
998
999
|
placeholder: "Password",
|
|
1000
|
+
required: true,
|
|
999
1001
|
secureTextEntry: true
|
|
1000
1002
|
}
|
|
1001
1003
|
];
|
|
@@ -1004,29 +1006,41 @@ var registerFields = [
|
|
|
1004
1006
|
helperText: "Enter first name",
|
|
1005
1007
|
keyboardType: "default",
|
|
1006
1008
|
name: "firstName",
|
|
1007
|
-
placeholder: "First Name"
|
|
1009
|
+
placeholder: "First Name",
|
|
1010
|
+
required: true
|
|
1008
1011
|
},
|
|
1009
1012
|
{
|
|
1010
1013
|
helperText: "Enter last name",
|
|
1011
1014
|
keyboardType: "default",
|
|
1012
1015
|
name: "lastName",
|
|
1013
|
-
placeholder: "Last Name"
|
|
1016
|
+
placeholder: "Last Name",
|
|
1017
|
+
required: true
|
|
1014
1018
|
},
|
|
1015
1019
|
{
|
|
1016
|
-
...emailField
|
|
1020
|
+
...emailField,
|
|
1021
|
+
required: true
|
|
1017
1022
|
},
|
|
1018
1023
|
{
|
|
1019
1024
|
helperText: "Enter password",
|
|
1020
1025
|
keyboardType: "default",
|
|
1021
1026
|
name: "password",
|
|
1022
1027
|
placeholder: "Password",
|
|
1028
|
+
required: true,
|
|
1023
1029
|
secureTextEntry: true
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
helperText: "Promotional code (optional)",
|
|
1033
|
+
keyboardType: "default",
|
|
1034
|
+
name: "promoCode",
|
|
1035
|
+
placeholder: "Promotional Code",
|
|
1036
|
+
required: false
|
|
1024
1037
|
}
|
|
1025
1038
|
];
|
|
1026
1039
|
var requestPasswordResetFields = [
|
|
1027
1040
|
{
|
|
1028
1041
|
...emailField,
|
|
1029
|
-
helperText: "Enter email address to reset your password"
|
|
1042
|
+
helperText: "Enter email address to reset your password",
|
|
1043
|
+
required: true
|
|
1030
1044
|
}
|
|
1031
1045
|
];
|
|
1032
1046
|
var validateVerificationTokenFields = [
|
|
@@ -1039,7 +1053,8 @@ var validateVerificationTokenFields = [
|
|
|
1039
1053
|
helperText: "Enter the Verification code sent to you by email",
|
|
1040
1054
|
keyboardType: "number-pad",
|
|
1041
1055
|
name: "verificationToken",
|
|
1042
|
-
placeholder: "Verification code"
|
|
1056
|
+
placeholder: "Verification code",
|
|
1057
|
+
required: true
|
|
1043
1058
|
}
|
|
1044
1059
|
];
|
|
1045
1060
|
|