@timardex/cluemart-shared 1.7.30 → 1.7.32

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 (56) hide show
  1. package/dist/{ad-BDx9eYoO.d.mts → ad-BsAes_WS.d.mts} +2 -2
  2. package/dist/{ad-BYbSba4V.d.ts → ad-FrGeJoW6.d.ts} +2 -2
  3. package/dist/{affiliate-Cxdq9Q2k.d.ts → affiliate-2h_y0IL4.d.ts} +2 -2
  4. package/dist/{affiliate-kBWfF_ZN.d.mts → affiliate-KR-MNBCC.d.mts} +2 -2
  5. package/dist/auth/index.cjs +1 -0
  6. package/dist/auth/index.cjs.map +1 -1
  7. package/dist/auth/index.d.mts +3 -3
  8. package/dist/auth/index.d.ts +3 -3
  9. package/dist/auth/index.mjs +1 -1
  10. package/dist/{chunk-24JSCOFX.mjs → chunk-BGTWSB5L.mjs} +2 -2
  11. package/dist/{chunk-BIJ5NDXW.mjs → chunk-FSS2CZPR.mjs} +16 -6
  12. package/dist/chunk-FSS2CZPR.mjs.map +1 -0
  13. package/dist/{chunk-GZYTDNBQ.mjs → chunk-P2HBORDW.mjs} +2 -1
  14. package/dist/chunk-P2HBORDW.mjs.map +1 -0
  15. package/dist/{contactUs-Dk8zBwW9.d.ts → contactUs-CQqOcQk_.d.ts} +1 -1
  16. package/dist/{contactUs-BXjzZEI1.d.mts → contactUs-DOI78kmJ.d.mts} +1 -1
  17. package/dist/formFields/index.cjs +16 -6
  18. package/dist/formFields/index.cjs.map +1 -1
  19. package/dist/formFields/index.d.mts +3 -3
  20. package/dist/formFields/index.d.ts +3 -3
  21. package/dist/formFields/index.mjs +3 -3
  22. package/dist/{global-D1ZvBNbG.d.mts → global-C7xIDkiQ.d.mts} +1 -0
  23. package/dist/{global-Dot3RjVJ.d.ts → global-D-034Xws.d.ts} +1 -0
  24. package/dist/graphql/index.cjs +1 -0
  25. package/dist/graphql/index.cjs.map +1 -1
  26. package/dist/graphql/index.d.mts +5 -5
  27. package/dist/graphql/index.d.ts +5 -5
  28. package/dist/graphql/index.mjs +2 -2
  29. package/dist/hooks/index.cjs +14 -1
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +5 -5
  32. package/dist/hooks/index.d.ts +5 -5
  33. package/dist/hooks/index.mjs +16 -4
  34. package/dist/hooks/index.mjs.map +1 -1
  35. package/dist/index.cjs +17 -6
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.mts +3 -2
  38. package/dist/index.d.ts +3 -2
  39. package/dist/index.mjs +16 -5
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/map/index.d.mts +1 -1
  42. package/dist/map/index.d.ts +1 -1
  43. package/dist/{resourceActivities-kGzOHndG.d.mts → resourceActivities-CoCW9VLu.d.mts} +1 -1
  44. package/dist/{resourceActivities-E-7429jp.d.ts → resourceActivities-DMEtduFL.d.ts} +1 -1
  45. package/dist/sharing/index.d.mts +1 -1
  46. package/dist/sharing/index.d.ts +1 -1
  47. package/dist/types/index.d.mts +7 -7
  48. package/dist/types/index.d.ts +7 -7
  49. package/dist/{user-JCkXYAQS.d.mts → user-0qKK4juO.d.mts} +1 -1
  50. package/dist/{user-Ca0QNirI.d.ts → user-Bynr8XGA.d.ts} +1 -1
  51. package/dist/utils/index.d.mts +3 -3
  52. package/dist/utils/index.d.ts +3 -3
  53. package/package.json +1 -1
  54. package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
  55. package/dist/chunk-GZYTDNBQ.mjs.map +0 -1
  56. /package/dist/{chunk-24JSCOFX.mjs.map → chunk-BGTWSB5L.mjs.map} +0 -0
@@ -1,11 +1,11 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
- import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-kGzOHndG.mjs';
4
- import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-D1ZvBNbG.mjs';
5
- import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-BDx9eYoO.mjs';
3
+ import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-CoCW9VLu.mjs';
4
+ import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-C7xIDkiQ.mjs';
5
+ import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-BsAes_WS.mjs';
6
6
  import { EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
7
- import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-JCkXYAQS.mjs';
8
- import { A as AffiliateType } from '../affiliate-kBWfF_ZN.mjs';
7
+ import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-0qKK4juO.mjs';
8
+ import { A as AffiliateType } from '../affiliate-KR-MNBCC.mjs';
9
9
  import 'react-hook-form';
10
10
  import '../images/index.mjs';
11
11
 
@@ -1,11 +1,11 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
- import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-E-7429jp.js';
4
- import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-Dot3RjVJ.js';
5
- import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-BYbSba4V.js';
3
+ import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-DMEtduFL.js';
4
+ import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard, o as CouponType } from '../global-D-034Xws.js';
5
+ import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-FrGeJoW6.js';
6
6
  import { EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
7
- import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-Ca0QNirI.js';
8
- import { A as AffiliateType } from '../affiliate-Cxdq9Q2k.js';
7
+ import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-Bynr8XGA.js';
8
+ import { A as AffiliateType } from '../affiliate-2h_y0IL4.js';
9
9
  import 'react-hook-form';
10
10
  import '../images/index.js';
11
11
 
@@ -145,7 +145,7 @@ import {
145
145
  useUpdateUser,
146
146
  useUpdateVendor,
147
147
  useUpdateVendorInfo
148
- } from "../chunk-24JSCOFX.mjs";
148
+ } from "../chunk-BGTWSB5L.mjs";
149
149
  import {
150
150
  GET_EVENT,
151
151
  GET_EVENT_INFO,
@@ -167,7 +167,7 @@ import {
167
167
  useRequestPasswordReset,
168
168
  useResetPassword,
169
169
  useValidateVerificationToken
170
- } from "../chunk-GZYTDNBQ.mjs";
170
+ } from "../chunk-P2HBORDW.mjs";
171
171
  import "../chunk-X3OLM35T.mjs";
172
172
  export {
173
173
  ACTIVATE_VENDOR_CLAIM_MUTATION,
@@ -1954,9 +1954,21 @@ var eventInfoSchema = yup2.object().shape({
1954
1954
  // src/yupSchema/vendor.ts
1955
1955
  var yup3 = __toESM(require("yup"));
1956
1956
  var vendorMenuSchema = yup3.object({
1957
- description: yup3.string().nullable().optional(),
1957
+ description: yup3.string().trim().nullable().optional(),
1958
1958
  name: yup3.string().trim().nullable().min(3, "Product name must be at least 3 characters").required("Product name is required"),
1959
1959
  price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
1960
+ priceMax: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product max price must be greater than 0").nullable().optional().test(
1961
+ "is-greater",
1962
+ "Max price must be greater than Product price",
1963
+ function(priceMaxValue) {
1964
+ const { price } = this.parent;
1965
+ if (!priceMaxValue || !price) return true;
1966
+ const maxNum = Number(priceMaxValue);
1967
+ const priceNum = Number(price);
1968
+ if (Number.isNaN(maxNum) || Number.isNaN(priceNum)) return true;
1969
+ return maxNum > priceNum;
1970
+ }
1971
+ ),
1960
1972
  priceUnit: yup3.string().required("Product unit is required")
1961
1973
  });
1962
1974
  var vendorSchema = globalResourceSchema.shape({
@@ -3104,6 +3116,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
3104
3116
  description
3105
3117
  name
3106
3118
  price
3119
+ priceMax
3107
3120
  priceUnit
3108
3121
  productGroups
3109
3122
  updatedAt