@timardex/cluemart-shared 2.5.0 → 2.5.2

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 (47) hide show
  1. package/dist/{ad-DRI2CIzV.d.ts → ad-C7GbDyUi.d.ts} +1 -1
  2. package/dist/{ad-BSyVGv8q.d.mts → ad-DB9gvcJW.d.mts} +1 -1
  3. package/dist/{chunk-DEK7NF3O.mjs → chunk-T736WX7J.mjs} +5 -5
  4. package/dist/{chunk-DEK7NF3O.mjs.map → chunk-T736WX7J.mjs.map} +1 -1
  5. package/dist/{chunk-4CQLKIQ6.mjs → chunk-TGEYOSSX.mjs} +24 -2
  6. package/dist/chunk-TGEYOSSX.mjs.map +1 -0
  7. package/dist/{chunk-2RHUGVV3.mjs → chunk-WOBG6I4T.mjs} +175 -12
  8. package/dist/chunk-WOBG6I4T.mjs.map +1 -0
  9. package/dist/{chunk-L4NHGGT7.mjs → chunk-WRYRBSRZ.mjs} +2 -2
  10. package/dist/chunk-YCUKTVVA.mjs +69 -0
  11. package/dist/chunk-YCUKTVVA.mjs.map +1 -0
  12. package/dist/{chunk-CQ26N3W6.mjs → chunk-YJJUTHBX.mjs} +2 -2
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.mjs +4 -4
  15. package/dist/graphql/index.cjs +193 -13
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +46 -3
  18. package/dist/graphql/index.d.ts +46 -3
  19. package/dist/graphql/index.mjs +8 -2
  20. package/dist/hooks/index.cjs +23 -13
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.d.mts +1 -1
  23. package/dist/hooks/index.d.ts +1 -1
  24. package/dist/hooks/index.mjs +6 -6
  25. package/dist/index.cjs +236 -16
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +77 -2
  28. package/dist/index.d.ts +77 -2
  29. package/dist/index.mjs +221 -12
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/sharing/index.cjs +2 -1
  32. package/dist/sharing/index.cjs.map +1 -1
  33. package/dist/sharing/index.mjs +2 -2
  34. package/dist/types/index.d.mts +1 -1
  35. package/dist/types/index.d.ts +1 -1
  36. package/dist/utils/index.cjs +61 -3
  37. package/dist/utils/index.cjs.map +1 -1
  38. package/dist/utils/index.d.mts +33 -1
  39. package/dist/utils/index.d.ts +33 -1
  40. package/dist/utils/index.mjs +20 -4
  41. package/package.json +1 -1
  42. package/dist/chunk-2RHUGVV3.mjs.map +0 -1
  43. package/dist/chunk-4CQLKIQ6.mjs.map +0 -1
  44. package/dist/chunk-7DQBUZXY.mjs +0 -41
  45. package/dist/chunk-7DQBUZXY.mjs.map +0 -1
  46. /package/dist/{chunk-L4NHGGT7.mjs.map → chunk-WRYRBSRZ.mjs.map} +0 -0
  47. /package/dist/{chunk-CQ26N3W6.mjs.map → chunk-YJJUTHBX.mjs.map} +0 -0
@@ -4,7 +4,7 @@ import { DocumentNode } from 'graphql';
4
4
  import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-BytCHUvO.mjs';
5
5
  import { M as MutationResponse, E as EventType, d as EventListItemType, e as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, f as RelationType, g as RelationHistoryType, h as ResourceConnectionsType, V as VendorClaimTokenValidation, i as UnregisteredVendorType, j as VendorType, k as VendorInfoType, l as MyPendingVendorClaim, m as UserLicenceType, n as PostType, G as GameDocType, o as GameLeaderboard, p as CouponType, q as CouponTypeList } from '../global-EGbrTMk6.mjs';
6
6
  import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-Znc91Cw5.mjs';
7
- import { A as AuthMutationResponse, R as RefreshImpersonationMutationResponse, a as RefreshTokenMutationResponse, S as StartImpersonationMutationResponse, P as PartnerType, b as AdType, E as EnumAdPlatform, c as EnumAdShowOn, d as AppSettingsType, e as SchoolType, f as SchoolReturnType } from '../ad-BSyVGv8q.mjs';
7
+ import { A as AuthMutationResponse, R as RefreshImpersonationMutationResponse, a as RefreshTokenMutationResponse, S as StartImpersonationMutationResponse, P as PartnerType, E as EnumAdShowOn, b as EnumAdPlatform, c as AdType, d as AppSettingsType, e as SchoolType, f as SchoolReturnType } from '../ad-DB9gvcJW.mjs';
8
8
  import { EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
9
9
  import { B as BillingCatalogEntryType } from '../billingCatalog-DDAU9BWV.mjs';
10
10
  import { A as AffiliateType } from '../affiliate-DJhVZJ2h.mjs';
@@ -1058,8 +1058,30 @@ declare const useRecordAdClick: () => {
1058
1058
  recordAdClick: MutationResponse<boolean>;
1059
1059
  }>>;
1060
1060
  };
1061
+ interface AdMetricReporterInput {
1062
+ adId: string;
1063
+ placement: EnumAdShowOn;
1064
+ platform: EnumAdPlatform;
1065
+ region: string;
1066
+ }
1067
+ /** Observability hook for metric failures; platforms can route to Sentry. */
1068
+ type AdMetricErrorHandler = (message: string, error: unknown) => void;
1069
+ /**
1070
+ * Platform-agnostic impression/click reporting for the currently displayed ad.
1071
+ * Encapsulates the shared client rules: impressions are idempotent per rotation
1072
+ * slot (marked reported only after the mutation resolves, with one in-slot
1073
+ * retry), and clicks carry a fresh `clickId` so distinct clicks always count.
1074
+ * `reportClick(adId?)` accepts an optional ad id so callers can attribute a
1075
+ * click to the actually pressed ad (e.g. a carousel slide mid-swipe).
1076
+ */
1077
+ declare const useAdMetricsReporter: (input: AdMetricReporterInput, onError?: AdMetricErrorHandler) => {
1078
+ reportClick: (adIdOverride?: string) => void;
1079
+ reportImpression: (opts?: {
1080
+ nowMs?: number;
1081
+ }) => Promise<boolean>;
1082
+ };
1061
1083
 
1062
- declare const useGetAds: () => {
1084
+ declare const useGetAds: (skip?: boolean) => {
1063
1085
  ads: AdType[];
1064
1086
  error: _apollo_client.ApolloError | undefined;
1065
1087
  loading: boolean;
@@ -1083,6 +1105,26 @@ declare const useGetAdsByRegion: (region: string, platform: EnumAdPlatform, show
1083
1105
  adsByRegion: AdType[];
1084
1106
  }>>;
1085
1107
  };
1108
+ declare const useGetAdMetricTotals: (filter?: {
1109
+ adIds?: string[];
1110
+ from?: Date;
1111
+ to?: Date;
1112
+ }, skip?: boolean) => {
1113
+ adMetricTotals: {
1114
+ adId: string;
1115
+ clicks: number;
1116
+ impressions: number;
1117
+ }[];
1118
+ error: _apollo_client.ApolloError | undefined;
1119
+ loading: boolean;
1120
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1121
+ adMetricTotals: {
1122
+ adId: string;
1123
+ clicks: number;
1124
+ impressions: number;
1125
+ }[];
1126
+ }>>;
1127
+ };
1086
1128
 
1087
1129
  declare const AD_BOOKING_FIELDS_FRAGMENT: _apollo_client.DocumentNode;
1088
1130
  declare const GET_MY_AD_BOOKINGS: _apollo_client.DocumentNode;
@@ -1090,6 +1132,7 @@ declare const GET_AD_BOOKING: _apollo_client.DocumentNode;
1090
1132
  declare const GET_PENDING_AD_BOOKINGS: _apollo_client.DocumentNode;
1091
1133
  declare const GET_AD_DAILY_PRICES: _apollo_client.DocumentNode;
1092
1134
  declare const GET_AD_SETTINGS: _apollo_client.DocumentNode;
1135
+ declare const GET_AD_METRIC_TOTALS: _apollo_client.DocumentNode;
1093
1136
 
1094
1137
  declare const CREATE_AD_CHECKOUT_MUTATION: _apollo_client.DocumentNode;
1095
1138
  declare const APPROVE_AD_BOOKING_MUTATION: _apollo_client.DocumentNode;
@@ -1650,4 +1693,4 @@ interface UsePaginatedListResult<TItem> {
1650
1693
  */
1651
1694
  declare function usePaginatedList<TData, TItem>({ document, getItems, variables, skip, pageSize, getId, }: UsePaginatedListArgs<TData, TItem>): UsePaginatedListResult<TItem>;
1652
1695
 
1653
- export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GetCouponsVariables, MY_PENDING_VENDOR_CLAIM, RECORD_AD_CLICK_MUTATION, RECORD_AD_IMPRESSION_MUTATION, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, type UsePaginatedListArgs, type UsePaginatedListResult, toGraphqlQueryString, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEndImpersonation, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetRelationHistories, useGetRelationHistory, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRecordAdClick, useRecordAdImpression, useRedeemAffiliateReward, useRedeemReward, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
1696
+ export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, type AdMetricErrorHandler, type AdMetricReporterInput, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_METRIC_TOTALS, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GetCouponsVariables, MY_PENDING_VENDOR_CLAIM, RECORD_AD_CLICK_MUTATION, RECORD_AD_IMPRESSION_MUTATION, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, type UsePaginatedListArgs, type UsePaginatedListResult, toGraphqlQueryString, useActivateVendorClaim, useAdMetricsReporter, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEndImpersonation, useGetAd, useGetAdMetricTotals, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetRelationHistories, useGetRelationHistory, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRecordAdClick, useRecordAdImpression, useRedeemAffiliateReward, useRedeemReward, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -4,7 +4,7 @@ import { DocumentNode } from 'graphql';
4
4
  import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-DlUEbCkT.js';
5
5
  import { M as MutationResponse, E as EventType, d as EventListItemType, e as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, f as RelationType, g as RelationHistoryType, h as ResourceConnectionsType, V as VendorClaimTokenValidation, i as UnregisteredVendorType, j as VendorType, k as VendorInfoType, l as MyPendingVendorClaim, m as UserLicenceType, n as PostType, G as GameDocType, o as GameLeaderboard, p as CouponType, q as CouponTypeList } from '../global-LtQJ2t6c.js';
6
6
  import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-GnrqZmZP.js';
7
- import { A as AuthMutationResponse, R as RefreshImpersonationMutationResponse, a as RefreshTokenMutationResponse, S as StartImpersonationMutationResponse, P as PartnerType, b as AdType, E as EnumAdPlatform, c as EnumAdShowOn, d as AppSettingsType, e as SchoolType, f as SchoolReturnType } from '../ad-DRI2CIzV.js';
7
+ import { A as AuthMutationResponse, R as RefreshImpersonationMutationResponse, a as RefreshTokenMutationResponse, S as StartImpersonationMutationResponse, P as PartnerType, E as EnumAdShowOn, b as EnumAdPlatform, c as AdType, d as AppSettingsType, e as SchoolType, f as SchoolReturnType } from '../ad-C7GbDyUi.js';
8
8
  import { EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
9
9
  import { B as BillingCatalogEntryType } from '../billingCatalog-oWAfZX95.js';
10
10
  import { A as AffiliateType } from '../affiliate-DuDoOxK_.js';
@@ -1058,8 +1058,30 @@ declare const useRecordAdClick: () => {
1058
1058
  recordAdClick: MutationResponse<boolean>;
1059
1059
  }>>;
1060
1060
  };
1061
+ interface AdMetricReporterInput {
1062
+ adId: string;
1063
+ placement: EnumAdShowOn;
1064
+ platform: EnumAdPlatform;
1065
+ region: string;
1066
+ }
1067
+ /** Observability hook for metric failures; platforms can route to Sentry. */
1068
+ type AdMetricErrorHandler = (message: string, error: unknown) => void;
1069
+ /**
1070
+ * Platform-agnostic impression/click reporting for the currently displayed ad.
1071
+ * Encapsulates the shared client rules: impressions are idempotent per rotation
1072
+ * slot (marked reported only after the mutation resolves, with one in-slot
1073
+ * retry), and clicks carry a fresh `clickId` so distinct clicks always count.
1074
+ * `reportClick(adId?)` accepts an optional ad id so callers can attribute a
1075
+ * click to the actually pressed ad (e.g. a carousel slide mid-swipe).
1076
+ */
1077
+ declare const useAdMetricsReporter: (input: AdMetricReporterInput, onError?: AdMetricErrorHandler) => {
1078
+ reportClick: (adIdOverride?: string) => void;
1079
+ reportImpression: (opts?: {
1080
+ nowMs?: number;
1081
+ }) => Promise<boolean>;
1082
+ };
1061
1083
 
1062
- declare const useGetAds: () => {
1084
+ declare const useGetAds: (skip?: boolean) => {
1063
1085
  ads: AdType[];
1064
1086
  error: _apollo_client.ApolloError | undefined;
1065
1087
  loading: boolean;
@@ -1083,6 +1105,26 @@ declare const useGetAdsByRegion: (region: string, platform: EnumAdPlatform, show
1083
1105
  adsByRegion: AdType[];
1084
1106
  }>>;
1085
1107
  };
1108
+ declare const useGetAdMetricTotals: (filter?: {
1109
+ adIds?: string[];
1110
+ from?: Date;
1111
+ to?: Date;
1112
+ }, skip?: boolean) => {
1113
+ adMetricTotals: {
1114
+ adId: string;
1115
+ clicks: number;
1116
+ impressions: number;
1117
+ }[];
1118
+ error: _apollo_client.ApolloError | undefined;
1119
+ loading: boolean;
1120
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
1121
+ adMetricTotals: {
1122
+ adId: string;
1123
+ clicks: number;
1124
+ impressions: number;
1125
+ }[];
1126
+ }>>;
1127
+ };
1086
1128
 
1087
1129
  declare const AD_BOOKING_FIELDS_FRAGMENT: _apollo_client.DocumentNode;
1088
1130
  declare const GET_MY_AD_BOOKINGS: _apollo_client.DocumentNode;
@@ -1090,6 +1132,7 @@ declare const GET_AD_BOOKING: _apollo_client.DocumentNode;
1090
1132
  declare const GET_PENDING_AD_BOOKINGS: _apollo_client.DocumentNode;
1091
1133
  declare const GET_AD_DAILY_PRICES: _apollo_client.DocumentNode;
1092
1134
  declare const GET_AD_SETTINGS: _apollo_client.DocumentNode;
1135
+ declare const GET_AD_METRIC_TOTALS: _apollo_client.DocumentNode;
1093
1136
 
1094
1137
  declare const CREATE_AD_CHECKOUT_MUTATION: _apollo_client.DocumentNode;
1095
1138
  declare const APPROVE_AD_BOOKING_MUTATION: _apollo_client.DocumentNode;
@@ -1650,4 +1693,4 @@ interface UsePaginatedListResult<TItem> {
1650
1693
  */
1651
1694
  declare function usePaginatedList<TData, TItem>({ document, getItems, variables, skip, pageSize, getId, }: UsePaginatedListArgs<TData, TItem>): UsePaginatedListResult<TItem>;
1652
1695
 
1653
- export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GetCouponsVariables, MY_PENDING_VENDOR_CLAIM, RECORD_AD_CLICK_MUTATION, RECORD_AD_IMPRESSION_MUTATION, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, type UsePaginatedListArgs, type UsePaginatedListResult, toGraphqlQueryString, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEndImpersonation, useGetAd, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetRelationHistories, useGetRelationHistory, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRecordAdClick, useRecordAdImpression, useRedeemAffiliateReward, useRedeemReward, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
1696
+ export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, type AdMetricErrorHandler, type AdMetricReporterInput, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_METRIC_TOTALS, GET_AD_SETTINGS, GET_EVENT, GET_EVENTS, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_MY_AD_BOOKINGS, GET_OWNED_EVENT, GET_PARTNER, GET_PARTNERS, GET_PARTNER_BY_SLUG, GET_PENDING_AD_BOOKINGS, GET_POST, GET_POSTS, GET_POSTS_BY_TYPE, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_USERS, GET_VENDOR, GET_VENDORS, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, type GetCouponsVariables, MY_PENDING_VENDOR_CLAIM, RECORD_AD_CLICK_MUTATION, RECORD_AD_IMPRESSION_MUTATION, UPDATE_AD_DAILY_PRICE_MUTATION, UPDATE_AD_SETTINGS_MUTATION, type UsePaginatedListArgs, type UsePaginatedListResult, toGraphqlQueryString, useActivateVendorClaim, useAdMetricsReporter, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAdminUpdateUserVendorLicense, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, useCreateAffiliate, useCreateBulkNotifications, useCreateCheckoutSession, useCreateCoupon, useCreateCustomerPortal, useCreateEvent, useCreateEventInfo, useCreatePartner, useCreatePost, useCreatePoster, useCreatePrivateChat, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateSchool, useCreateUnregisteredVendor, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAffiliate, useDeleteAllNotifications, useDeleteChat, useDeleteCoupon, useDeleteEvent, useDeleteNotification, useDeletePartner, useDeletePost, useDeleteRelation, useDeleteSchool, useDeleteUnregisteredVendor, useDeleteUser, useDeleteVendor, useEndImpersonation, useGetAd, useGetAdMetricTotals, useGetAds, useGetAdsByRegion, useGetAffiliate, useGetAffiliates, useGetAppSettings, useGetBillingCatalog, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetOwnedEvent, useGetPartner, useGetPartnersByRegion, useGetPost, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetRelationHistories, useGetRelationHistory, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsersByPromoCode, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, usePaginatedList, useRecordAdClick, useRecordAdImpression, useRedeemAffiliateReward, useRedeemReward, useRefreshImpersonation, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useStartImpersonation, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -5,6 +5,7 @@ import {
5
5
  CREATE_AD_CHECKOUT_MUTATION,
6
6
  GET_AD_BOOKING,
7
7
  GET_AD_DAILY_PRICES,
8
+ GET_AD_METRIC_TOTALS,
8
9
  GET_AD_SETTINGS,
9
10
  GET_EVENT_BY_SLUG,
10
11
  GET_MY_AD_BOOKINGS,
@@ -22,6 +23,7 @@ import {
22
23
  UPDATE_AD_SETTINGS_MUTATION,
23
24
  toGraphqlQueryString,
24
25
  useActivateVendorClaim,
26
+ useAdMetricsReporter,
25
27
  useAddParticipantToChat,
26
28
  useAddUserFavouriteResource,
27
29
  useAddUserGoingResource,
@@ -71,6 +73,7 @@ import {
71
73
  useDeleteUser,
72
74
  useDeleteVendor,
73
75
  useGetAd,
76
+ useGetAdMetricTotals,
74
77
  useGetAds,
75
78
  useGetAdsByRegion,
76
79
  useGetAffiliate,
@@ -165,7 +168,7 @@ import {
165
168
  useUpdateUser,
166
169
  useUpdateVendor,
167
170
  useUpdateVendorInfo
168
- } from "../chunk-2RHUGVV3.mjs";
171
+ } from "../chunk-WOBG6I4T.mjs";
169
172
  import {
170
173
  GET_EVENT,
171
174
  GET_EVENTS,
@@ -196,7 +199,7 @@ import {
196
199
  useStartImpersonation,
197
200
  useValidateVerificationToken
198
201
  } from "../chunk-TKSBCN3N.mjs";
199
- import "../chunk-7DQBUZXY.mjs";
202
+ import "../chunk-YCUKTVVA.mjs";
200
203
  import "../chunk-A52C6JDT.mjs";
201
204
  export {
202
205
  ACTIVATE_VENDOR_CLAIM_MUTATION,
@@ -205,6 +208,7 @@ export {
205
208
  CREATE_AD_CHECKOUT_MUTATION,
206
209
  GET_AD_BOOKING,
207
210
  GET_AD_DAILY_PRICES,
211
+ GET_AD_METRIC_TOTALS,
208
212
  GET_AD_SETTINGS,
209
213
  GET_EVENT,
210
214
  GET_EVENTS,
@@ -233,6 +237,7 @@ export {
233
237
  UPDATE_AD_SETTINGS_MUTATION,
234
238
  toGraphqlQueryString,
235
239
  useActivateVendorClaim,
240
+ useAdMetricsReporter,
236
241
  useAddParticipantToChat,
237
242
  useAddUserFavouriteResource,
238
243
  useAddUserGoingResource,
@@ -283,6 +288,7 @@ export {
283
288
  useDeleteVendor,
284
289
  useEndImpersonation,
285
290
  useGetAd,
291
+ useGetAdMetricTotals,
286
292
  useGetAds,
287
293
  useGetAdsByRegion,
288
294
  useGetAffiliate,
@@ -4999,6 +4999,7 @@ var import_client43 = require("@apollo/client");
4999
4999
 
5000
5000
  // src/graphql/hooks/ad/hooksMutation.ts
5001
5001
  var import_client48 = require("@apollo/client");
5002
+ var import_react = require("react");
5002
5003
 
5003
5004
  // src/graphql/mutations/ad.ts
5004
5005
  var import_client45 = require("@apollo/client");
@@ -5164,6 +5165,15 @@ var GET_AD_SETTINGS = import_client46.gql`
5164
5165
  }
5165
5166
  }
5166
5167
  `;
5168
+ var GET_AD_METRIC_TOTALS = import_client46.gql`
5169
+ query getAdMetricTotals($filter: AdMetricTotalsFilterInputGraphQLType) {
5170
+ adMetricTotals(filter: $filter) {
5171
+ adId
5172
+ clicks
5173
+ impressions
5174
+ }
5175
+ }
5176
+ `;
5167
5177
 
5168
5178
  // src/graphql/mutations/adBooking.ts
5169
5179
  var CREATE_AD_CHECKOUT_MUTATION = import_client47.gql`
@@ -6343,7 +6353,7 @@ var import_client87 = require("@apollo/client");
6343
6353
 
6344
6354
  // src/graphql/hooks/usePaginatedList.ts
6345
6355
  var import_client88 = require("@apollo/client");
6346
- var import_react = require("react");
6356
+ var import_react2 = require("react");
6347
6357
 
6348
6358
  // src/images/index.ts
6349
6359
  var PKG = "@timardex/cluemart-shared";
@@ -7501,7 +7511,7 @@ function useResetPasswordForm() {
7501
7511
 
7502
7512
  // src/hooks/useContactUsForm.ts
7503
7513
  var import_yup12 = require("@hookform/resolvers/yup");
7504
- var import_react2 = __toESM(require("react"));
7514
+ var import_react3 = __toESM(require("react"));
7505
7515
  var import_react_hook_form12 = require("react-hook-form");
7506
7516
 
7507
7517
  // src/yupSchema/contactUs.ts
@@ -7533,7 +7543,7 @@ function useContactUsForm(data) {
7533
7543
  defaultValues: defaultValues7,
7534
7544
  resolver: (0, import_yup12.yupResolver)(contactUsSchema)
7535
7545
  });
7536
- import_react2.default.useEffect(() => {
7546
+ import_react3.default.useEffect(() => {
7537
7547
  if (data) {
7538
7548
  reset({
7539
7549
  email: data.email,
@@ -7565,7 +7575,7 @@ function useContactUsForm(data) {
7565
7575
 
7566
7576
  // src/hooks/useAdForm.ts
7567
7577
  var import_yup13 = require("@hookform/resolvers/yup");
7568
- var import_react3 = __toESM(require("react"));
7578
+ var import_react4 = __toESM(require("react"));
7569
7579
  var import_react_hook_form13 = require("react-hook-form");
7570
7580
  var defaultValues8 = {
7571
7581
  active: true,
@@ -7602,7 +7612,7 @@ function useAdForm(data) {
7602
7612
  defaultValues: defaultValues8,
7603
7613
  resolver: (0, import_yup13.yupResolver)(adSchema)
7604
7614
  });
7605
- import_react3.default.useEffect(() => {
7615
+ import_react4.default.useEffect(() => {
7606
7616
  if (data) {
7607
7617
  reset({
7608
7618
  active: data.active,
@@ -7720,7 +7730,7 @@ function usePartnerForm(data) {
7720
7730
 
7721
7731
  // src/hooks/usePostForm.ts
7722
7732
  var import_yup15 = require("@hookform/resolvers/yup");
7723
- var import_react4 = __toESM(require("react"));
7733
+ var import_react5 = __toESM(require("react"));
7724
7734
  var import_react_hook_form15 = require("react-hook-form");
7725
7735
  var defaultValues9 = {
7726
7736
  active: false,
@@ -7746,7 +7756,7 @@ function usePostForm(data) {
7746
7756
  defaultValues: defaultValues9,
7747
7757
  resolver: (0, import_yup15.yupResolver)(postSchema)
7748
7758
  });
7749
- import_react4.default.useEffect(() => {
7759
+ import_react5.default.useEffect(() => {
7750
7760
  if (data) {
7751
7761
  reset({
7752
7762
  active: data.active,
@@ -7798,7 +7808,7 @@ function usePostForm(data) {
7798
7808
 
7799
7809
  // src/hooks/useAppSettingsForm.ts
7800
7810
  var import_yup16 = require("@hookform/resolvers/yup");
7801
- var import_react5 = __toESM(require("react"));
7811
+ var import_react6 = __toESM(require("react"));
7802
7812
  var import_react_hook_form16 = require("react-hook-form");
7803
7813
  var defaultValues10 = {
7804
7814
  adSettings: {
@@ -7822,7 +7832,7 @@ function useAppSettingsForm(data) {
7822
7832
  defaultValues: defaultValues10,
7823
7833
  resolver: (0, import_yup16.yupResolver)(appSettingsSchema)
7824
7834
  });
7825
- import_react5.default.useEffect(() => {
7835
+ import_react6.default.useEffect(() => {
7826
7836
  if (data) {
7827
7837
  reset({
7828
7838
  adSettings: {
@@ -7862,7 +7872,7 @@ function useAppSettingsForm(data) {
7862
7872
 
7863
7873
  // src/hooks/useSchoolForm.ts
7864
7874
  var import_yup17 = require("@hookform/resolvers/yup");
7865
- var import_react6 = require("react");
7875
+ var import_react7 = require("react");
7866
7876
  var import_react_hook_form17 = require("react-hook-form");
7867
7877
 
7868
7878
  // src/yupSchema/school.ts
@@ -7907,7 +7917,7 @@ function useSchoolForm(data) {
7907
7917
  defaultValues: defaultSchoolFormValues,
7908
7918
  resolver: (0, import_yup17.yupResolver)(schoolSchema)
7909
7919
  });
7910
- (0, import_react6.useEffect)(() => {
7920
+ (0, import_react7.useEffect)(() => {
7911
7921
  if (data) {
7912
7922
  reset({
7913
7923
  _id: data._id,
@@ -7965,7 +7975,7 @@ function useSchoolForm(data) {
7965
7975
 
7966
7976
  // src/hooks/useAffiliateForm.ts
7967
7977
  var import_yup18 = require("@hookform/resolvers/yup");
7968
- var import_react7 = require("react");
7978
+ var import_react8 = require("react");
7969
7979
  var import_react_hook_form18 = require("react-hook-form");
7970
7980
 
7971
7981
  // src/yupSchema/affiliate.ts
@@ -8021,7 +8031,7 @@ function useAffiliateForm(data) {
8021
8031
  defaultValues: defaultAffiliateFormValues,
8022
8032
  resolver: (0, import_yup18.yupResolver)(affiliateSchema)
8023
8033
  });
8024
- (0, import_react7.useEffect)(() => {
8034
+ (0, import_react8.useEffect)(() => {
8025
8035
  if (data) {
8026
8036
  reset({
8027
8037
  bankAccountDetails: data.bankAccountDetails,