@timardex/cluemart-shared 1.3.28 → 1.3.30

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.
@@ -1,4 +1,4 @@
1
- import { w as CreateFormData, T as TermsAgreement } from './global-O7RsWypG.mjs';
1
+ import { w as CreateFormData, T as TermsAgreement } from './global-CfCbqhR0.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { w as CreateFormData, T as TermsAgreement } from './global-DSwmP6sp.js';
1
+ import { w as CreateFormData, T as TermsAgreement } from './global-ZjNLEVhq.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-O7RsWypG.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-CfCbqhR0.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DSwmP6sp.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-ZjNLEVhq.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
1
+ import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
2
  import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia, EnumEventDateStatus } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
@@ -333,9 +333,7 @@ interface ResourceConnectionsType {
333
333
  interface CreateFormData<T extends FieldValues> {
334
334
  control: Control<T, any>;
335
335
  fields: T;
336
- formState: {
337
- errors: FieldErrors<T>;
338
- };
336
+ formState: FormState<T>;
339
337
  handleSubmit: UseFormHandleSubmit<T, any>;
340
338
  reset: UseFormReset<T>;
341
339
  setValue: UseFormSetValue<T>;
@@ -1,4 +1,4 @@
1
- import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
1
+ import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
2
  import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia, EnumEventDateStatus } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
@@ -333,9 +333,7 @@ interface ResourceConnectionsType {
333
333
  interface CreateFormData<T extends FieldValues> {
334
334
  control: Control<T, any>;
335
335
  fields: T;
336
- formState: {
337
- errors: FieldErrors<T>;
338
- };
336
+ formState: FormState<T>;
339
337
  handleSubmit: UseFormHandleSubmit<T, any>;
340
338
  reset: UseFormReset<T>;
341
339
  setValue: UseFormSetValue<T>;
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
4
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType } from '../global-O7RsWypG.mjs';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-CWUKq7Ia.mjs';
4
+ import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType } from '../global-CfCbqhR0.mjs';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-BOZMTfME.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
4
- import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType } from '../global-DSwmP6sp.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-DO5kBeG3.js';
4
+ import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserLicenceType } from '../global-ZjNLEVhq.js';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType } from '../post-BV_BR8EZ.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -700,14 +700,14 @@ var testerVendorSchema = yup6.object().shape({
700
700
  productsOrServices: yup6.string().trim().required("Products or services description is required"),
701
701
  questionary: yup6.object().shape({
702
702
  appearInVideoIntroduction: yup6.boolean().optional(),
703
- applyToAtLeastOneMarket: yup6.boolean().required("Required field"),
704
- completeFeedbackQuestionnaire: yup6.boolean().required("Required field"),
703
+ applyToAtLeastOneMarket: yup6.boolean().oneOf([true], "This field is required"),
704
+ completeFeedbackQuestionnaire: yup6.boolean().oneOf([true], "This field is required"),
705
705
  excitementAboutApp: yup6.string().trim().optional(),
706
706
  sendPhotoForSocialMedia: yup6.boolean().optional(),
707
707
  socialMediaFeatureReason: yup6.string().trim().optional(),
708
708
  testingPeriodConcerns: yup6.string().trim().optional(),
709
- tryVisitorFeatures: yup6.boolean().required("Required field"),
710
- uploadStallProfileFirstWeek: yup6.boolean().required("Required field"),
709
+ tryVisitorFeatures: yup6.boolean().oneOf([true], "This field is required"),
710
+ uploadStallProfileFirstWeek: yup6.boolean().oneOf([true], "This field is required"),
711
711
  usefulnessExpectations: yup6.string().trim().optional()
712
712
  }),
713
713
  sellingFrequency: yup6.mixed().oneOf(
@@ -734,15 +734,15 @@ var testerEventSchema = yup6.object().shape({
734
734
  ).required("Organized market count is required"),
735
735
  questionary: yup6.object().shape({
736
736
  allowMarketingAppearance: yup6.boolean().optional(),
737
- completeFinalQuestionnaire: yup6.boolean().required("Required field"),
738
- completeMarketProfileFirstWeek: yup6.boolean().required("Required field"),
737
+ completeFinalQuestionnaire: yup6.boolean().oneOf([true], "This field is required"),
738
+ completeMarketProfileFirstWeek: yup6.boolean().oneOf([true], "This field is required"),
739
739
  dailyCoordinationNeeds: yup6.string().trim().optional(),
740
740
  interestedInCharityInitiative: yup6.boolean().optional(),
741
- inviteStallholders: yup6.boolean().required("Required field"),
742
- manageApplicationsAndCommunication: yup6.boolean().required("Required field"),
741
+ inviteStallholders: yup6.boolean().oneOf([true], "This field is required"),
742
+ manageApplicationsAndCommunication: yup6.boolean().oneOf([true], "This field is required"),
743
743
  organizerExpectations: yup6.string().trim().optional(),
744
- spaceForClueMart: yup6.boolean().required("Required field"),
745
- uploadStallList: yup6.boolean().required("Required field")
744
+ spaceForClueMart: yup6.boolean().oneOf([true], "This field is required"),
745
+ uploadStallList: yup6.boolean().oneOf([true], "This field is required")
746
746
  })
747
747
  });
748
748
  var testerSchema = yup6.object().shape({
@@ -1062,7 +1062,7 @@ function mapBaseResourceTypeToFormData(data) {
1062
1062
  function useVendorForm(data) {
1063
1063
  const {
1064
1064
  control,
1065
- formState: { errors },
1065
+ formState,
1066
1066
  getValues,
1067
1067
  handleSubmit,
1068
1068
  reset,
@@ -1142,7 +1142,7 @@ function useVendorForm(data) {
1142
1142
  termsAgreement,
1143
1143
  vendorType
1144
1144
  },
1145
- formState: { errors },
1145
+ formState,
1146
1146
  handleSubmit,
1147
1147
  reset,
1148
1148
  setValue,
@@ -1157,7 +1157,7 @@ var import_react_hook_form2 = require("react-hook-form");
1157
1157
  function useVendorInfoForm(data) {
1158
1158
  const {
1159
1159
  control,
1160
- formState: { errors },
1160
+ formState,
1161
1161
  getValues,
1162
1162
  handleSubmit,
1163
1163
  reset,
@@ -1205,7 +1205,7 @@ function useVendorInfoForm(data) {
1205
1205
  stallInfo,
1206
1206
  vendorId
1207
1207
  },
1208
- formState: { errors },
1208
+ formState,
1209
1209
  handleSubmit,
1210
1210
  reset,
1211
1211
  setValue,
@@ -1220,7 +1220,7 @@ var import_react_hook_form3 = require("react-hook-form");
1220
1220
  function useEventForm(data) {
1221
1221
  const {
1222
1222
  control,
1223
- formState: { errors },
1223
+ formState,
1224
1224
  getValues,
1225
1225
  handleSubmit,
1226
1226
  reset,
@@ -1300,7 +1300,7 @@ function useEventForm(data) {
1300
1300
  tags,
1301
1301
  termsAgreement
1302
1302
  },
1303
- formState: { errors },
1303
+ formState,
1304
1304
  handleSubmit,
1305
1305
  reset,
1306
1306
  setValue,
@@ -1315,7 +1315,7 @@ var import_react_hook_form4 = require("react-hook-form");
1315
1315
  function useEventInfoForm(data) {
1316
1316
  const {
1317
1317
  control,
1318
- formState: { errors },
1318
+ formState,
1319
1319
  getValues,
1320
1320
  handleSubmit,
1321
1321
  reset,
@@ -1363,7 +1363,7 @@ function useEventInfoForm(data) {
1363
1363
  paymentInfo,
1364
1364
  requirements
1365
1365
  },
1366
- formState: { errors },
1366
+ formState,
1367
1367
  handleSubmit,
1368
1368
  reset,
1369
1369
  setValue,
@@ -1391,7 +1391,7 @@ var defaultValues = {
1391
1391
  function useUserForm(data) {
1392
1392
  const {
1393
1393
  control,
1394
- formState: { errors },
1394
+ formState,
1395
1395
  getValues,
1396
1396
  handleSubmit,
1397
1397
  reset,
@@ -1451,7 +1451,7 @@ function useUserForm(data) {
1451
1451
  role,
1452
1452
  termsAgreement
1453
1453
  },
1454
- formState: { errors },
1454
+ formState,
1455
1455
  handleSubmit,
1456
1456
  reset,
1457
1457
  setValue,
@@ -1469,7 +1469,7 @@ var defaultValues2 = {
1469
1469
  function useLoginForm() {
1470
1470
  const {
1471
1471
  control,
1472
- formState: { errors },
1472
+ formState,
1473
1473
  getValues,
1474
1474
  handleSubmit,
1475
1475
  reset,
@@ -1486,7 +1486,7 @@ function useLoginForm() {
1486
1486
  email,
1487
1487
  password
1488
1488
  },
1489
- formState: { errors },
1489
+ formState,
1490
1490
  handleSubmit,
1491
1491
  reset,
1492
1492
  setValue,
@@ -1507,7 +1507,7 @@ var defaultValues3 = {
1507
1507
  function useRegisterForm() {
1508
1508
  const {
1509
1509
  control,
1510
- formState: { errors },
1510
+ formState,
1511
1511
  getValues,
1512
1512
  handleSubmit,
1513
1513
  reset,
@@ -1527,7 +1527,7 @@ function useRegisterForm() {
1527
1527
  password,
1528
1528
  preferredRegion
1529
1529
  },
1530
- formState: { errors },
1530
+ formState,
1531
1531
  handleSubmit,
1532
1532
  reset,
1533
1533
  setValue,
@@ -1544,7 +1544,7 @@ var defaultValues4 = {
1544
1544
  function useRequestPasswordResetForm() {
1545
1545
  const {
1546
1546
  control,
1547
- formState: { errors },
1547
+ formState,
1548
1548
  getValues,
1549
1549
  handleSubmit,
1550
1550
  reset,
@@ -1560,7 +1560,7 @@ function useRequestPasswordResetForm() {
1560
1560
  fields: {
1561
1561
  email
1562
1562
  },
1563
- formState: { errors },
1563
+ formState,
1564
1564
  handleSubmit,
1565
1565
  reset,
1566
1566
  setValue,
@@ -1578,7 +1578,7 @@ var defaultValues5 = {
1578
1578
  function useValidateVerificationTokenForm() {
1579
1579
  const {
1580
1580
  control,
1581
- formState: { errors },
1581
+ formState,
1582
1582
  getValues,
1583
1583
  handleSubmit,
1584
1584
  reset,
@@ -1595,7 +1595,7 @@ function useValidateVerificationTokenForm() {
1595
1595
  email,
1596
1596
  verificationToken
1597
1597
  },
1598
- formState: { errors },
1598
+ formState,
1599
1599
  handleSubmit,
1600
1600
  reset,
1601
1601
  setValue,
@@ -1614,7 +1614,7 @@ var defaultValues6 = {
1614
1614
  function useResetPasswordForm() {
1615
1615
  const {
1616
1616
  control,
1617
- formState: { errors },
1617
+ formState,
1618
1618
  getValues,
1619
1619
  handleSubmit,
1620
1620
  reset,
@@ -1632,7 +1632,7 @@ function useResetPasswordForm() {
1632
1632
  email,
1633
1633
  password
1634
1634
  },
1635
- formState: { errors },
1635
+ formState,
1636
1636
  handleSubmit,
1637
1637
  reset,
1638
1638
  setValue,
@@ -1663,7 +1663,7 @@ var defaultValues7 = {
1663
1663
  function useTesterForm(data) {
1664
1664
  const {
1665
1665
  control,
1666
- formState: { errors },
1666
+ formState,
1667
1667
  getValues,
1668
1668
  handleSubmit,
1669
1669
  reset,
@@ -1720,7 +1720,7 @@ function useTesterForm(data) {
1720
1720
  resourceType,
1721
1721
  vendor
1722
1722
  },
1723
- formState: { errors },
1723
+ formState,
1724
1724
  handleSubmit,
1725
1725
  reset,
1726
1726
  setValue,
@@ -1752,7 +1752,7 @@ var defaultValues8 = {
1752
1752
  function useContactUsForm(data) {
1753
1753
  const {
1754
1754
  control,
1755
- formState: { errors },
1755
+ formState,
1756
1756
  getValues,
1757
1757
  handleSubmit,
1758
1758
  reset,
@@ -1783,7 +1783,7 @@ function useContactUsForm(data) {
1783
1783
  lastName,
1784
1784
  message
1785
1785
  },
1786
- formState: { errors },
1786
+ formState,
1787
1787
  handleSubmit,
1788
1788
  reset,
1789
1789
  setValue,
@@ -1822,7 +1822,7 @@ var defaultValues9 = {
1822
1822
  function useAdForm(data) {
1823
1823
  const {
1824
1824
  control,
1825
- formState: { errors },
1825
+ formState,
1826
1826
  getValues,
1827
1827
  handleSubmit,
1828
1828
  reset,
@@ -1896,7 +1896,7 @@ function useAdForm(data) {
1896
1896
  status,
1897
1897
  targetRegion
1898
1898
  },
1899
- formState: { errors },
1899
+ formState,
1900
1900
  handleSubmit,
1901
1901
  reset,
1902
1902
  setValue,
@@ -1911,7 +1911,7 @@ var import_react_hook_form14 = require("react-hook-form");
1911
1911
  function usePartnerForm(data) {
1912
1912
  const {
1913
1913
  control,
1914
- formState: { errors },
1914
+ formState,
1915
1915
  getValues,
1916
1916
  handleSubmit,
1917
1917
  reset,
@@ -1979,7 +1979,7 @@ function usePartnerForm(data) {
1979
1979
  socialMedia,
1980
1980
  termsAgreement
1981
1981
  },
1982
- formState: { errors },
1982
+ formState,
1983
1983
  handleSubmit,
1984
1984
  reset,
1985
1985
  setValue,
@@ -2001,7 +2001,7 @@ var defaultValues10 = {
2001
2001
  function usePostForm(data) {
2002
2002
  const {
2003
2003
  control,
2004
- formState: { errors },
2004
+ formState,
2005
2005
  getValues,
2006
2006
  handleSubmit,
2007
2007
  reset,
@@ -2034,7 +2034,7 @@ function usePostForm(data) {
2034
2034
  tags,
2035
2035
  title
2036
2036
  },
2037
- formState: { errors },
2037
+ formState,
2038
2038
  handleSubmit,
2039
2039
  reset,
2040
2040
  setValue,