@timardex/cluemart-shared 1.5.770 → 1.5.772

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 (50) hide show
  1. package/dist/{ad-6PrFQe2t.d.ts → ad-CVkVX_z5.d.ts} +3 -7
  2. package/dist/{ad-B8ZWiTsv.d.mts → ad-DA9ECAhK.d.mts} +3 -7
  3. package/dist/affiliate-1RtkLnLP.d.ts +35 -0
  4. package/dist/affiliate-Cos2Syz5.d.mts +35 -0
  5. package/dist/{chunk-VO2WRHJV.mjs → chunk-KJZFJ3LH.mjs} +95 -12
  6. package/dist/chunk-KJZFJ3LH.mjs.map +1 -0
  7. package/dist/{chunk-HASLOIIM.mjs → chunk-MVQ3CFQR.mjs} +11 -2
  8. package/dist/chunk-MVQ3CFQR.mjs.map +1 -0
  9. package/dist/{chunk-UJ7L64JJ.mjs → chunk-RKIRWZCH.mjs} +2 -2
  10. package/dist/{chunk-HCOZUNCK.mjs → chunk-TAECMXM4.mjs} +37 -2
  11. package/dist/chunk-TAECMXM4.mjs.map +1 -0
  12. package/dist/{chunk-CXXQBRXS.mjs → chunk-ZZJSCYJK.mjs} +2 -2
  13. package/dist/formFields/index.cjs +21 -0
  14. package/dist/formFields/index.cjs.map +1 -1
  15. package/dist/formFields/index.mjs +3 -3
  16. package/dist/graphql/index.cjs +95 -10
  17. package/dist/graphql/index.cjs.map +1 -1
  18. package/dist/graphql/index.d.mts +20 -2
  19. package/dist/graphql/index.d.ts +20 -2
  20. package/dist/graphql/index.mjs +5 -1
  21. package/dist/hooks/index.cjs +84 -10
  22. package/dist/hooks/index.cjs.map +1 -1
  23. package/dist/hooks/index.d.mts +1 -1
  24. package/dist/hooks/index.d.ts +1 -1
  25. package/dist/hooks/index.mjs +5 -5
  26. package/dist/index.cjs +143 -10
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.mts +78 -6
  29. package/dist/index.d.ts +78 -6
  30. package/dist/index.mjs +136 -10
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/sharing/index.cjs +21 -0
  33. package/dist/sharing/index.cjs.map +1 -1
  34. package/dist/sharing/index.mjs +3 -3
  35. package/dist/types/index.cjs +10 -0
  36. package/dist/types/index.cjs.map +1 -1
  37. package/dist/types/index.d.mts +2 -1
  38. package/dist/types/index.d.ts +2 -1
  39. package/dist/types/index.mjs +3 -1
  40. package/dist/utils/index.cjs +41 -0
  41. package/dist/utils/index.cjs.map +1 -1
  42. package/dist/utils/index.d.mts +30 -1
  43. package/dist/utils/index.d.ts +30 -1
  44. package/dist/utils/index.mjs +10 -2
  45. package/package.json +1 -1
  46. package/dist/chunk-HASLOIIM.mjs.map +0 -1
  47. package/dist/chunk-HCOZUNCK.mjs.map +0 -1
  48. package/dist/chunk-VO2WRHJV.mjs.map +0 -1
  49. /package/dist/{chunk-UJ7L64JJ.mjs.map → chunk-RKIRWZCH.mjs.map} +0 -0
  50. /package/dist/{chunk-CXXQBRXS.mjs.map → chunk-ZZJSCYJK.mjs.map} +0 -0
@@ -1,9 +1,10 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
4
- 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 AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-B8ZWiTsv.mjs';
4
+ 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 AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-DA9ECAhK.mjs';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-zczOntNk.mjs';
6
6
  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, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-BUUfmCo7.mjs';
7
+ import { A as AffiliateType } from '../affiliate-Cos2Syz5.mjs';
7
8
  import '../images/index.mjs';
8
9
  import 'react-hook-form';
9
10
 
@@ -1163,4 +1164,21 @@ declare const useGetSchool: (_id: string) => {
1163
1164
  school: SchoolReturnType | null;
1164
1165
  };
1165
1166
 
1166
- export { GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, toGraphqlQueryString, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
1167
+ declare const useGetAffiliate: (_id: string) => {
1168
+ affiliate: AffiliateType | undefined;
1169
+ error: _apollo_client.ApolloError | undefined;
1170
+ loading: boolean;
1171
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1172
+ affiliate: AffiliateType;
1173
+ }>>;
1174
+ };
1175
+ declare const useGetAffiliates: () => {
1176
+ affiliates: AffiliateType[];
1177
+ error: _apollo_client.ApolloError | undefined;
1178
+ loading: boolean;
1179
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1180
+ affiliates: AffiliateType[];
1181
+ }>>;
1182
+ };
1183
+
1184
+ export { GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, toGraphqlQueryString, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -1,9 +1,10 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
4
- 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 AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-6PrFQe2t.js';
4
+ 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 AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-CVkVX_z5.js';
5
5
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BL_12IAo.js';
6
6
  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, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-fKbMmluy.js';
7
+ import { A as AffiliateType } from '../affiliate-1RtkLnLP.js';
7
8
  import '../images/index.js';
8
9
  import 'react-hook-form';
9
10
 
@@ -1163,4 +1164,21 @@ declare const useGetSchool: (_id: string) => {
1163
1164
  school: SchoolReturnType | null;
1164
1165
  };
1165
1166
 
1166
- export { GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, toGraphqlQueryString, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
1167
+ declare const useGetAffiliate: (_id: string) => {
1168
+ affiliate: AffiliateType | undefined;
1169
+ error: _apollo_client.ApolloError | undefined;
1170
+ loading: boolean;
1171
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1172
+ affiliate: AffiliateType;
1173
+ }>>;
1174
+ };
1175
+ declare const useGetAffiliates: () => {
1176
+ affiliates: AffiliateType[];
1177
+ error: _apollo_client.ApolloError | undefined;
1178
+ loading: boolean;
1179
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1180
+ affiliates: AffiliateType[];
1181
+ }>>;
1182
+ };
1183
+
1184
+ export { GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, toGraphqlQueryString, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetRelation, useGetRelationByEventAndVendor, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAppSettings, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -55,6 +55,8 @@ import {
55
55
  useGetAd,
56
56
  useGetAds,
57
57
  useGetAdsByRegion,
58
+ useGetAffiliate,
59
+ useGetAffiliates,
58
60
  useGetAppSettings,
59
61
  useGetChat,
60
62
  useGetChatSubscription,
@@ -148,7 +150,7 @@ import {
148
150
  useUpdateVendor,
149
151
  useUpdateVendorInfo,
150
152
  useValidateVerificationToken
151
- } from "../chunk-VO2WRHJV.mjs";
153
+ } from "../chunk-KJZFJ3LH.mjs";
152
154
  import "../chunk-KZTOISPA.mjs";
153
155
  export {
154
156
  GET_EVENT,
@@ -207,6 +209,8 @@ export {
207
209
  useGetAd,
208
210
  useGetAds,
209
211
  useGetAdsByRegion,
212
+ useGetAffiliate,
213
+ useGetAffiliates,
210
214
  useGetAppSettings,
211
215
  useGetChat,
212
216
  useGetChatSubscription,
@@ -389,6 +389,9 @@ var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
389
389
  var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
390
390
  var import_utc = __toESM(require("dayjs/plugin/utc.js"));
391
391
 
392
+ // src/types/global.ts
393
+ var PROMO_CODE_PREFIX = "CM-";
394
+
392
395
  // src/types/ad.ts
393
396
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
394
397
  EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
@@ -511,6 +514,8 @@ var PostTypeLabels = {
511
514
  ["clue_bites" /* CLUE_BITES */]: "Clue Bites",
512
515
  ["play_and_win" /* PLAY_AND_WIN */]: "Play & Win"
513
516
  };
517
+ var CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;
518
+ var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
514
519
 
515
520
  // src/utils/date.ts
516
521
  var dateFormat = "DD-MM-YYYY";
@@ -528,6 +533,22 @@ var futureTimePeriods = mapArrayToOptions(
528
533
  value: period.value
529
534
  }));
530
535
 
536
+ // src/utils/affiliate.ts
537
+ var AFFILIATE_REWARDS = {
538
+ ["NEW_EVENT_REGISTRATION" /* NEW_EVENT_REGISTRATION */]: {
539
+ description: "10 points for new event registration (one-time reward)",
540
+ value: 10
541
+ },
542
+ ["NEW_VENDOR_REGISTRATION" /* NEW_VENDOR_REGISTRATION */]: {
543
+ description: "5 points for new vendor registration (one-time reward)",
544
+ value: 5
545
+ },
546
+ ["NEW_PARTNER_REGISTRATION" /* NEW_PARTNER_REGISTRATION */]: {
547
+ description: "",
548
+ value: 0
549
+ }
550
+ };
551
+
531
552
  // src/utils/school.ts
532
553
  var SCHOOL_MIN_STUDENT_COUNT = 300;
533
554
 
@@ -2489,12 +2510,6 @@ var REDEEMED_REWARD_FIELDS_FRAGMENT = import_client.gql`
2489
2510
  redeemedAt
2490
2511
  }
2491
2512
  `;
2492
- var AFFILIATE_FIELDS_FRAGMENT = import_client.gql`
2493
- fragment AffiliateFields on AffiliateType {
2494
- affiliateCode
2495
- pointsAvailable
2496
- }
2497
- `;
2498
2513
  var USER_FIELDS_FRAGMENT = import_client.gql`
2499
2514
  fragment UserFields on UserType {
2500
2515
  _id
@@ -2502,9 +2517,7 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
2502
2517
  associates {
2503
2518
  ...AssociatesFields
2504
2519
  }
2505
- affiliate {
2506
- ...AffiliateFields
2507
- }
2520
+ affiliate
2508
2521
  avatar {
2509
2522
  ...ResourceImageFields
2510
2523
  }
@@ -2548,7 +2561,6 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
2548
2561
  ${LICENCE_FIELDS_FRAGMENT}
2549
2562
  ${LOCATION_FIELDS_FRAGMENT}
2550
2563
  ${REDEEMED_REWARD_FIELDS_FRAGMENT}
2551
- ${AFFILIATE_FIELDS_FRAGMENT}
2552
2564
  `;
2553
2565
  var STALL_TYPE_FIELDS_FRAGMENT = import_client.gql`
2554
2566
  fragment StallTypeFields on StallTypeType {
@@ -4975,6 +4987,68 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = import_client71.gql`
4975
4987
  // src/graphql/hooks/school/hooksQuery.ts
4976
4988
  var import_client73 = require("@apollo/client");
4977
4989
 
4990
+ // src/graphql/hooks/affiliate/hooksQuery.ts
4991
+ var import_client75 = require("@apollo/client");
4992
+
4993
+ // src/graphql/queries/affiliate.ts
4994
+ var import_client74 = require("@apollo/client");
4995
+ var AFFILIATE_REWARD_FIELDS_FRAGMENT = import_client74.gql`
4996
+ fragment AffiliateRewardFields on AffiliateRewardType {
4997
+ createdAt
4998
+ deletedAt
4999
+ redeemedAt
5000
+ rewardDescription
5001
+ rewardType
5002
+ rewardValue
5003
+ updatedAt
5004
+ }
5005
+ `;
5006
+ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = import_client74.gql`
5007
+ fragment AffiliateResourceFields on AffiliateResourceType {
5008
+ resourceActive
5009
+ resourceId
5010
+ resourceType
5011
+ rewards {
5012
+ ...AffiliateRewardFields
5013
+ }
5014
+ }
5015
+ ${AFFILIATE_REWARD_FIELDS_FRAGMENT}
5016
+ `;
5017
+ var AFFILIATE_FIELDS_FRAGMENT = import_client74.gql`
5018
+ fragment AffiliateFields on AffiliateType {
5019
+ _id
5020
+ affiliateCode
5021
+ affiliateResources {
5022
+ ...AffiliateResourceFields
5023
+ }
5024
+ createdAt
5025
+ deletedAt
5026
+ overallPoints
5027
+ owner {
5028
+ ...OwnerFields
5029
+ }
5030
+ updatedAt
5031
+ }
5032
+ ${AFFILIATE_RESOURCE_FIELDS_FRAGMENT}
5033
+ ${OWNER_FIELDS_FRAGMENT}
5034
+ `;
5035
+ var GET_AFFILIATE = import_client74.gql`
5036
+ query getAffiliate($_id: ID!) {
5037
+ affiliate(_id: $_id) {
5038
+ ...AffiliateFields
5039
+ }
5040
+ }
5041
+ ${AFFILIATE_FIELDS_FRAGMENT}
5042
+ `;
5043
+ var GET_AFFILIATES = import_client74.gql`
5044
+ query getAffiliates {
5045
+ affiliates {
5046
+ ...AffiliateFields
5047
+ }
5048
+ }
5049
+ ${AFFILIATE_FIELDS_FRAGMENT}
5050
+ `;
5051
+
4978
5052
  // src/images/index.ts
4979
5053
  var PKG = "@timardex/cluemart-shared";
4980
5054
  var IMAGE_EXTENSION = ".webp";