@timardex/cluemart-shared 1.7.32 → 1.7.35

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 (52) hide show
  1. package/dist/{ad-FrGeJoW6.d.ts → ad-DHN0IudM.d.ts} +2 -2
  2. package/dist/{ad-BsAes_WS.d.mts → ad-QDSgLYQe.d.mts} +2 -2
  3. package/dist/{affiliate-2h_y0IL4.d.ts → affiliate-CI_khNgq.d.ts} +2 -2
  4. package/dist/{affiliate-KR-MNBCC.d.mts → affiliate-kR3czfpb.d.mts} +2 -2
  5. package/dist/auth/index.d.mts +3 -3
  6. package/dist/auth/index.d.ts +3 -3
  7. package/dist/{chunk-3UYXNSNB.mjs → chunk-IH3BEKPK.mjs} +2 -2
  8. package/dist/{chunk-UV5GH6NI.mjs → chunk-OH7ZORGB.mjs} +1 -1
  9. package/dist/{chunk-UV5GH6NI.mjs.map → chunk-OH7ZORGB.mjs.map} +1 -1
  10. package/dist/{chunk-BGTWSB5L.mjs → chunk-QOPOOOS7.mjs} +13 -5
  11. package/dist/{chunk-BGTWSB5L.mjs.map → chunk-QOPOOOS7.mjs.map} +1 -1
  12. package/dist/{contactUs-CQqOcQk_.d.ts → contactUs-Dpf4Wtf0.d.ts} +1 -1
  13. package/dist/{contactUs-DOI78kmJ.d.mts → contactUs-KdCU5i-u.d.mts} +1 -1
  14. package/dist/formFields/index.d.mts +1 -1
  15. package/dist/formFields/index.d.ts +1 -1
  16. package/dist/formFields/index.mjs +2 -2
  17. package/dist/graphql/index.cjs +12 -4
  18. package/dist/graphql/index.cjs.map +1 -1
  19. package/dist/graphql/index.d.mts +5 -5
  20. package/dist/graphql/index.d.ts +5 -5
  21. package/dist/graphql/index.mjs +1 -1
  22. package/dist/hooks/index.cjs +32 -5
  23. package/dist/hooks/index.cjs.map +1 -1
  24. package/dist/hooks/index.d.mts +5 -5
  25. package/dist/hooks/index.d.ts +5 -5
  26. package/dist/hooks/index.mjs +23 -4
  27. package/dist/hooks/index.mjs.map +1 -1
  28. package/dist/index.cjs +12 -4
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.mts +2 -2
  31. package/dist/index.d.ts +2 -2
  32. package/dist/index.mjs +12 -4
  33. package/dist/index.mjs.map +1 -1
  34. package/dist/map/index.d.mts +1 -1
  35. package/dist/map/index.d.ts +1 -1
  36. package/dist/{resourceActivities-CoCW9VLu.d.mts → resourceActivities-CLvYtSbH.d.mts} +1 -1
  37. package/dist/{resourceActivities-DMEtduFL.d.ts → resourceActivities-E1zbLLJN.d.ts} +1 -1
  38. package/dist/sharing/index.d.mts +1 -1
  39. package/dist/sharing/index.d.ts +1 -1
  40. package/dist/types/index.cjs.map +1 -1
  41. package/dist/types/index.d.mts +7 -7
  42. package/dist/types/index.d.ts +7 -7
  43. package/dist/types/index.mjs +1 -1
  44. package/dist/{user-Bynr8XGA.d.ts → user-BgSYnv1D.d.ts} +1 -1
  45. package/dist/{user-0qKK4juO.d.mts → user-DcXGRyeL.d.mts} +1 -1
  46. package/dist/utils/index.d.mts +3 -3
  47. package/dist/utils/index.d.ts +3 -3
  48. package/dist/utils/index.mjs +2 -2
  49. package/package.json +1 -1
  50. package/dist/{chunk-3UYXNSNB.mjs.map → chunk-IH3BEKPK.mjs.map} +0 -0
  51. package/dist/{global-C7xIDkiQ.d.mts → global-cOd88aj7.d.mts} +2 -2
  52. package/dist/{global-D-034Xws.d.ts → global-iWgXdLj8.d.ts} +2 -2
@@ -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-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';
3
+ import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-CLvYtSbH.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-cOd88aj7.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-QDSgLYQe.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-0qKK4juO.mjs';
8
- import { A as AffiliateType } from '../affiliate-KR-MNBCC.mjs';
7
+ import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-DcXGRyeL.mjs';
8
+ import { A as AffiliateType } from '../affiliate-kR3czfpb.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-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';
3
+ import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-E1zbLLJN.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-iWgXdLj8.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-DHN0IudM.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-Bynr8XGA.js';
8
- import { A as AffiliateType } from '../affiliate-2h_y0IL4.js';
7
+ import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-BgSYnv1D.js';
8
+ import { A as AffiliateType } from '../affiliate-CI_khNgq.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-BGTWSB5L.mjs";
148
+ } from "../chunk-QOPOOOS7.mjs";
149
149
  import {
150
150
  GET_EVENT,
151
151
  GET_EVENT_INFO,
@@ -5678,8 +5678,16 @@ var CREATE_COUPON_MUTATION = import_client79.gql`
5678
5678
  ${COUPON}
5679
5679
  `;
5680
5680
  var UPDATE_COUPON_MUTATION = import_client79.gql`
5681
- mutation updateCoupon($_id: ID!, $input: CouponInputType!) {
5682
- updateCoupon(_id: $_id, input: $input) {
5681
+ mutation updateCoupon(
5682
+ $couponDocumentId: ID!
5683
+ $couponId: ID!
5684
+ $input: CouponInputType!
5685
+ ) {
5686
+ updateCoupon(
5687
+ couponDocumentId: $couponDocumentId
5688
+ couponId: $couponId
5689
+ input: $input
5690
+ ) {
5683
5691
  data {
5684
5692
  ...CouponFields
5685
5693
  }
@@ -5689,8 +5697,8 @@ var UPDATE_COUPON_MUTATION = import_client79.gql`
5689
5697
  ${COUPON}
5690
5698
  `;
5691
5699
  var DELETE_COUPON_MUTATION = import_client79.gql`
5692
- mutation deleteCoupon($_id: ID!) {
5693
- deleteCoupon(_id: $_id) {
5700
+ mutation deleteCoupon($couponDocumentId: ID!, $couponId: ID!) {
5701
+ deleteCoupon(couponDocumentId: $couponDocumentId, couponId: $couponId) {
5694
5702
  data
5695
5703
  message
5696
5704
  }
@@ -5975,6 +5983,11 @@ var couponSchema = yup10.object().shape({
5975
5983
  }
5976
5984
  )
5977
5985
  }),
5986
+ resourceId: yup10.string().label("Resource ID").trim().required("Resource ID is required"),
5987
+ resourceType: yup10.mixed().oneOf(
5988
+ Object.values(EnumResourceType),
5989
+ "Resource type must be a valid EnumResourceType"
5990
+ ).required("Resource type is required"),
5978
5991
  startDate: yup10.date().label("Start Date").typeError("Start date is required").required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
5979
5992
  if (!value) return false;
5980
5993
  return new Date(value) > /* @__PURE__ */ new Date();
@@ -7368,6 +7381,8 @@ var defaultValues11 = {
7368
7381
  },
7369
7382
  couponRewards: [],
7370
7383
  endDate: /* @__PURE__ */ new Date(),
7384
+ resourceId: "",
7385
+ resourceType: "",
7371
7386
  startDate: /* @__PURE__ */ new Date()
7372
7387
  };
7373
7388
  function useCouponForm(data) {
@@ -7390,13 +7405,23 @@ function useCouponForm(data) {
7390
7405
  couponOption: data.couponOption,
7391
7406
  couponRewards: data.couponRewards,
7392
7407
  endDate: data.endDate,
7408
+ resourceId: data.resourceId,
7409
+ resourceType: data.resourceType,
7393
7410
  startDate: data.startDate
7394
7411
  });
7395
7412
  } else {
7396
7413
  reset(defaultValues11);
7397
7414
  }
7398
7415
  }, [data]);
7399
- const { couponDescription, couponOption, couponRewards, endDate, startDate } = getValues();
7416
+ const {
7417
+ couponDescription,
7418
+ couponOption,
7419
+ couponRewards,
7420
+ endDate,
7421
+ resourceId,
7422
+ resourceType,
7423
+ startDate
7424
+ } = getValues();
7400
7425
  return {
7401
7426
  control,
7402
7427
  fields: {
@@ -7404,6 +7429,8 @@ function useCouponForm(data) {
7404
7429
  couponOption,
7405
7430
  couponRewards,
7406
7431
  endDate,
7432
+ resourceId,
7433
+ resourceType,
7407
7434
  startDate
7408
7435
  },
7409
7436
  formState,