@timardex/cluemart-shared 1.4.39 → 1.4.40

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.
Files changed (41) hide show
  1. package/dist/{auth-DUBji9Ck.d.mts → auth-C4rFM8ym.d.mts} +1 -1
  2. package/dist/{auth-DlfrrfXs.d.ts → auth-Z7ZalBiX.d.ts} +1 -1
  3. package/dist/{chunk-PZUKAO6K.mjs → chunk-UCRSD3WR.mjs} +4 -3
  4. package/dist/chunk-UCRSD3WR.mjs.map +1 -0
  5. package/dist/{chunk-M35ZHJPQ.mjs → chunk-V54HUJIO.mjs} +16 -13
  6. package/dist/chunk-V54HUJIO.mjs.map +1 -0
  7. package/dist/formFields/index.cjs +16 -14
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.d.mts +3 -4
  10. package/dist/formFields/index.d.ts +3 -4
  11. package/dist/formFields/index.mjs +3 -5
  12. package/dist/{global-DgdaY28O.d.mts → global-BO4rXK3C.d.mts} +7 -5
  13. package/dist/{global-B07TrIzO.d.ts → global-MrQGqCLu.d.ts} +7 -5
  14. package/dist/graphql/index.cjs +3 -2
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +3 -3
  17. package/dist/graphql/index.d.ts +3 -3
  18. package/dist/graphql/index.mjs +1 -1
  19. package/dist/hooks/index.cjs +11 -16
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -3
  22. package/dist/hooks/index.d.ts +3 -3
  23. package/dist/hooks/index.mjs +10 -16
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +27 -30
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +8 -7
  28. package/dist/index.d.ts +8 -7
  29. package/dist/index.mjs +26 -28
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-75KGk2Nr.d.mts → post-B0L3Oaoy.d.mts} +1 -1
  32. package/dist/{post-Bt32gXMn.d.ts → post-D4h3XD7G.d.ts} +1 -1
  33. package/dist/{resourceActivities-PNcgmHGK.d.ts → resourceActivities-UOLb6lJs.d.ts} +1 -1
  34. package/dist/{resourceActivities-B2Yp2GKt.d.mts → resourceActivities-YoinRpTT.d.mts} +1 -1
  35. package/dist/types/index.d.mts +5 -5
  36. package/dist/types/index.d.ts +5 -5
  37. package/dist/utils/index.d.mts +1 -1
  38. package/dist/utils/index.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/dist/chunk-M35ZHJPQ.mjs.map +0 -1
  41. package/dist/chunk-PZUKAO6K.mjs.map +0 -1
@@ -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-B2Yp2GKt.mjs';
4
- import { E as EventType, b as EventListItemType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, f as VendorInfoType, g as UserLicenceType } from '../global-DgdaY28O.mjs';
5
- import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-75KGk2Nr.mjs';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-YoinRpTT.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-BO4rXK3C.mjs';
5
+ import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-B0L3Oaoy.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
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-PNcgmHGK.js';
4
- import { E as EventType, b as EventListItemType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, f as VendorInfoType, g as UserLicenceType } from '../global-B07TrIzO.js';
5
- import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-Bt32gXMn.js';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-UOLb6lJs.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-MrQGqCLu.js';
5
+ import { T as TesterType, U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-D4h3XD7G.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -123,7 +123,7 @@ import {
123
123
  useUpdateVendor,
124
124
  useUpdateVendorInfo,
125
125
  useValidateVerificationToken
126
- } from "../chunk-PZUKAO6K.mjs";
126
+ } from "../chunk-UCRSD3WR.mjs";
127
127
  import "../chunk-Z6FJKHRH.mjs";
128
128
  export {
129
129
  useAddParticipantToChat,
@@ -620,16 +620,13 @@ var eventInfoSchema = yup2.object().shape({
620
620
  }
621
621
  ),
622
622
  paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required"),
623
- refundPolicy: yup2.object({
624
- cancelledByOrganiser: yup2.array().of(yup2.string().defined()).min(
625
- 1,
626
- "At least one refund policy for cancellations by organiser is required"
627
- ).required("Refund policy for cancellations by organiser is required"),
628
- cancelledByVendor: yup2.array().of(yup2.string().defined()).min(
629
- 1,
630
- "At least one refund policy for cancellations by vendor is required"
631
- ).required("Refund policy for cancellations by vendor is required")
632
- })
623
+ refundPolicy: yup2.array().of(
624
+ yup2.object({
625
+ category: yup2.mixed().required("Category is required"),
626
+ label: yup2.string().required("Label is required"),
627
+ value: yup2.boolean().required("Value is required")
628
+ })
629
+ ).min(1, "At least one refund policy item is required").required("Refund policy is required")
633
630
  });
634
631
 
635
632
  // src/yupSchema/vendor.ts
@@ -2634,8 +2631,9 @@ var EVENT_INFO = import_client3.gql`
2634
2631
  paymentMethod
2635
2632
  }
2636
2633
  refundPolicy {
2637
- cancelledByOrganiser
2638
- cancelledByVendor
2634
+ category
2635
+ label
2636
+ value
2639
2637
  }
2640
2638
  requirements {
2641
2639
  category
@@ -4581,10 +4579,7 @@ var defaultEventInfoFormValues = {
4581
4579
  // e.g., 2 hours before event opens
4582
4580
  paymentDueHours: 12,
4583
4581
  paymentInfo: [],
4584
- refundPolicy: {
4585
- cancelledByOrganiser: [],
4586
- cancelledByVendor: []
4587
- },
4582
+ refundPolicy: [],
4588
4583
  requirements: []
4589
4584
  };
4590
4585
  var defaultVendorFormValues = {