@timardex/cluemart-shared 1.5.719 → 1.5.721

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,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-CK-eJuXz.mjs';
3
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-C3-IUdTA.mjs';
4
4
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CZqXBve8.mjs';
5
5
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-BEUzBSyY.mjs';
6
6
  import '../images/index.mjs';
@@ -1,6 +1,6 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-C2hRiow2.js';
3
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-DmsQS24-.js';
4
4
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CjJdhVR7.js';
5
5
  import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType } from '../global-585slmSH.js';
6
6
  import '../images/index.js';
@@ -136,7 +136,7 @@ import {
136
136
  useUpdateVendor,
137
137
  useUpdateVendorInfo,
138
138
  useValidateVerificationToken
139
- } from "../chunk-CIBJ5PEO.mjs";
139
+ } from "../chunk-KFTS32TG.mjs";
140
140
  import "../chunk-6B75Q67V.mjs";
141
141
  export {
142
142
  useAddParticipantToChat,
@@ -2445,6 +2445,13 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = import_client2.gql`
2445
2445
  }
2446
2446
  ${DATETIME_FIELDS_FRAGMENT}
2447
2447
  `;
2448
+ var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client2.gql`
2449
+ fragment RedeemedRewardFields on RedeemedRewardType {
2450
+ name
2451
+ pointsUsed
2452
+ redeemedAt
2453
+ }
2454
+ `;
2448
2455
  var USER_FIELDS_FRAGMENT = import_client2.gql`
2449
2456
  fragment UserFields on UserType {
2450
2457
  _id
@@ -2475,6 +2482,9 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2475
2482
  preferredRegion
2476
2483
  promoCodes
2477
2484
  role
2485
+ redeemedRewards {
2486
+ ...RedeemedRewardFields
2487
+ }
2478
2488
  school
2479
2489
  termsAgreement {
2480
2490
  ...TermsAgreementFields
@@ -2491,6 +2501,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2491
2501
  ${USER_ACTIVITY_FIELDS_FRAGMENT}
2492
2502
  ${LICENCE_FIELDS_FRAGMENT}
2493
2503
  ${LOCATION_FIELDS_FRAGMENT}
2504
+ ${REDEEMED_REWARD_FIELDS_FRAGMENT}
2494
2505
  `;
2495
2506
  var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
2496
2507
  fragment StallTypeFields on StallTypeType {
@@ -3833,7 +3844,10 @@ var DELETE_USER_MUTATION = import_client37.gql`
3833
3844
  `;
3834
3845
  var REDEEM_REWARD_MUTATION = import_client37.gql`
3835
3846
  mutation redeemReward($input: RedeemRewardInputType!) {
3836
- redeemReward(input: $input)
3847
+ redeemReward(input: $input) {
3848
+ message
3849
+ userId
3850
+ }
3837
3851
  }
3838
3852
  `;
3839
3853
  var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`