@timardex/cluemart-shared 2.4.0 → 2.5.1

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 (59) 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/auth/index.mjs +1 -1
  4. package/dist/{chunk-J72IMZ6E.mjs → chunk-4CQLKIQ6.mjs} +1 -1
  5. package/dist/chunk-4CQLKIQ6.mjs.map +1 -0
  6. package/dist/{chunk-XGGFB7HY.mjs → chunk-A52C6JDT.mjs} +2 -2
  7. package/dist/chunk-A52C6JDT.mjs.map +1 -0
  8. package/dist/{chunk-LHKJJ7SO.mjs → chunk-CQ26N3W6.mjs} +2 -2
  9. package/dist/{chunk-LEAXY4DI.mjs → chunk-H6HM2FOZ.mjs} +3 -3
  10. package/dist/{chunk-ZECVZFK3.mjs → chunk-NEOBS55J.mjs} +4 -3
  11. package/dist/{chunk-ZECVZFK3.mjs.map → chunk-NEOBS55J.mjs.map} +1 -1
  12. package/dist/{chunk-2RHUGVV3.mjs → chunk-WOBG6I4T.mjs} +175 -12
  13. package/dist/chunk-WOBG6I4T.mjs.map +1 -0
  14. package/dist/chunk-YCUKTVVA.mjs +69 -0
  15. package/dist/chunk-YCUKTVVA.mjs.map +1 -0
  16. package/dist/enums/index.cjs +1 -1
  17. package/dist/enums/index.cjs.map +1 -1
  18. package/dist/enums/index.d.mts +2 -2
  19. package/dist/enums/index.d.ts +2 -2
  20. package/dist/enums/index.mjs +1 -1
  21. package/dist/formFields/index.cjs +2 -1
  22. package/dist/formFields/index.cjs.map +1 -1
  23. package/dist/formFields/index.mjs +5 -5
  24. package/dist/graphql/index.cjs +193 -13
  25. package/dist/graphql/index.cjs.map +1 -1
  26. package/dist/graphql/index.d.mts +46 -3
  27. package/dist/graphql/index.d.ts +46 -3
  28. package/dist/graphql/index.mjs +9 -3
  29. package/dist/hooks/index.cjs +25 -14
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +1 -1
  32. package/dist/hooks/index.d.ts +1 -1
  33. package/dist/hooks/index.mjs +7 -7
  34. package/dist/index.cjs +211 -14
  35. package/dist/index.cjs.map +1 -1
  36. package/dist/index.d.mts +69 -9
  37. package/dist/index.d.ts +69 -9
  38. package/dist/index.mjs +198 -10
  39. package/dist/index.mjs.map +1 -1
  40. package/dist/region/index.cjs.map +1 -1
  41. package/dist/region/index.mjs +1 -1
  42. package/dist/sharing/index.cjs.map +1 -1
  43. package/dist/sharing/index.mjs +3 -3
  44. package/dist/types/index.d.mts +1 -1
  45. package/dist/types/index.d.ts +1 -1
  46. package/dist/types/index.mjs +1 -1
  47. package/dist/utils/index.cjs +36 -1
  48. package/dist/utils/index.cjs.map +1 -1
  49. package/dist/utils/index.d.mts +23 -6
  50. package/dist/utils/index.d.ts +23 -6
  51. package/dist/utils/index.mjs +17 -5
  52. package/package.json +1 -1
  53. package/dist/chunk-2RHUGVV3.mjs.map +0 -1
  54. package/dist/chunk-7DQBUZXY.mjs +0 -41
  55. package/dist/chunk-7DQBUZXY.mjs.map +0 -1
  56. package/dist/chunk-J72IMZ6E.mjs.map +0 -1
  57. package/dist/chunk-XGGFB7HY.mjs.map +0 -1
  58. /package/dist/{chunk-LHKJJ7SO.mjs.map → chunk-CQ26N3W6.mjs.map} +0 -0
  59. /package/dist/{chunk-LEAXY4DI.mjs.map → chunk-H6HM2FOZ.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,8 +199,8 @@ import {
196
199
  useStartImpersonation,
197
200
  useValidateVerificationToken
198
201
  } from "../chunk-TKSBCN3N.mjs";
199
- import "../chunk-7DQBUZXY.mjs";
200
- import "../chunk-XGGFB7HY.mjs";
202
+ import "../chunk-YCUKTVVA.mjs";
203
+ import "../chunk-A52C6JDT.mjs";
201
204
  export {
202
205
  ACTIVATE_VENDOR_CLAIM_MUTATION,
203
206
  AD_BOOKING_FIELDS_FRAGMENT,
@@ -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,
@@ -175,12 +175,12 @@ var yup = __toESM(require("yup"));
175
175
  // src/enums/index.ts
176
176
  var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
177
177
  EnumInviteStatus2["ACCEPTED"] = "Accepted";
178
+ EnumInviteStatus2["CANCELED"] = "Canceled";
178
179
  EnumInviteStatus2["COMPLETED"] = "Completed";
179
180
  EnumInviteStatus2["EXPIRED"] = "Expired";
180
181
  EnumInviteStatus2["NO_STATUS"] = "No_Status";
181
182
  EnumInviteStatus2["PENDING"] = "Pending";
182
183
  EnumInviteStatus2["REJECTED"] = "Rejected";
183
- EnumInviteStatus2["UNAVAILABLE"] = "Unavailable";
184
184
  return EnumInviteStatus2;
185
185
  })(EnumInviteStatus || {});
186
186
  var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
@@ -1809,6 +1809,7 @@ var INITIAL_BILLING_CATALOG = [
1809
1809
  // src/utils/relations/preservedRelationDateStatuses.ts
1810
1810
  var PRESERVED_RELATION_DATE_STATUSES = /* @__PURE__ */ new Set([
1811
1811
  "Accepted" /* ACCEPTED */,
1812
+ "Canceled" /* CANCELED */,
1812
1813
  "Completed" /* COMPLETED */,
1813
1814
  "Rejected" /* REJECTED */
1814
1815
  ]);
@@ -4998,6 +4999,7 @@ var import_client43 = require("@apollo/client");
4998
4999
 
4999
5000
  // src/graphql/hooks/ad/hooksMutation.ts
5000
5001
  var import_client48 = require("@apollo/client");
5002
+ var import_react = require("react");
5001
5003
 
5002
5004
  // src/graphql/mutations/ad.ts
5003
5005
  var import_client45 = require("@apollo/client");
@@ -5163,6 +5165,15 @@ var GET_AD_SETTINGS = import_client46.gql`
5163
5165
  }
5164
5166
  }
5165
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
+ `;
5166
5177
 
5167
5178
  // src/graphql/mutations/adBooking.ts
5168
5179
  var CREATE_AD_CHECKOUT_MUTATION = import_client47.gql`
@@ -6342,7 +6353,7 @@ var import_client87 = require("@apollo/client");
6342
6353
 
6343
6354
  // src/graphql/hooks/usePaginatedList.ts
6344
6355
  var import_client88 = require("@apollo/client");
6345
- var import_react = require("react");
6356
+ var import_react2 = require("react");
6346
6357
 
6347
6358
  // src/images/index.ts
6348
6359
  var PKG = "@timardex/cluemart-shared";
@@ -7500,7 +7511,7 @@ function useResetPasswordForm() {
7500
7511
 
7501
7512
  // src/hooks/useContactUsForm.ts
7502
7513
  var import_yup12 = require("@hookform/resolvers/yup");
7503
- var import_react2 = __toESM(require("react"));
7514
+ var import_react3 = __toESM(require("react"));
7504
7515
  var import_react_hook_form12 = require("react-hook-form");
7505
7516
 
7506
7517
  // src/yupSchema/contactUs.ts
@@ -7532,7 +7543,7 @@ function useContactUsForm(data) {
7532
7543
  defaultValues: defaultValues7,
7533
7544
  resolver: (0, import_yup12.yupResolver)(contactUsSchema)
7534
7545
  });
7535
- import_react2.default.useEffect(() => {
7546
+ import_react3.default.useEffect(() => {
7536
7547
  if (data) {
7537
7548
  reset({
7538
7549
  email: data.email,
@@ -7564,7 +7575,7 @@ function useContactUsForm(data) {
7564
7575
 
7565
7576
  // src/hooks/useAdForm.ts
7566
7577
  var import_yup13 = require("@hookform/resolvers/yup");
7567
- var import_react3 = __toESM(require("react"));
7578
+ var import_react4 = __toESM(require("react"));
7568
7579
  var import_react_hook_form13 = require("react-hook-form");
7569
7580
  var defaultValues8 = {
7570
7581
  active: true,
@@ -7601,7 +7612,7 @@ function useAdForm(data) {
7601
7612
  defaultValues: defaultValues8,
7602
7613
  resolver: (0, import_yup13.yupResolver)(adSchema)
7603
7614
  });
7604
- import_react3.default.useEffect(() => {
7615
+ import_react4.default.useEffect(() => {
7605
7616
  if (data) {
7606
7617
  reset({
7607
7618
  active: data.active,
@@ -7719,7 +7730,7 @@ function usePartnerForm(data) {
7719
7730
 
7720
7731
  // src/hooks/usePostForm.ts
7721
7732
  var import_yup15 = require("@hookform/resolvers/yup");
7722
- var import_react4 = __toESM(require("react"));
7733
+ var import_react5 = __toESM(require("react"));
7723
7734
  var import_react_hook_form15 = require("react-hook-form");
7724
7735
  var defaultValues9 = {
7725
7736
  active: false,
@@ -7745,7 +7756,7 @@ function usePostForm(data) {
7745
7756
  defaultValues: defaultValues9,
7746
7757
  resolver: (0, import_yup15.yupResolver)(postSchema)
7747
7758
  });
7748
- import_react4.default.useEffect(() => {
7759
+ import_react5.default.useEffect(() => {
7749
7760
  if (data) {
7750
7761
  reset({
7751
7762
  active: data.active,
@@ -7797,7 +7808,7 @@ function usePostForm(data) {
7797
7808
 
7798
7809
  // src/hooks/useAppSettingsForm.ts
7799
7810
  var import_yup16 = require("@hookform/resolvers/yup");
7800
- var import_react5 = __toESM(require("react"));
7811
+ var import_react6 = __toESM(require("react"));
7801
7812
  var import_react_hook_form16 = require("react-hook-form");
7802
7813
  var defaultValues10 = {
7803
7814
  adSettings: {
@@ -7821,7 +7832,7 @@ function useAppSettingsForm(data) {
7821
7832
  defaultValues: defaultValues10,
7822
7833
  resolver: (0, import_yup16.yupResolver)(appSettingsSchema)
7823
7834
  });
7824
- import_react5.default.useEffect(() => {
7835
+ import_react6.default.useEffect(() => {
7825
7836
  if (data) {
7826
7837
  reset({
7827
7838
  adSettings: {
@@ -7861,7 +7872,7 @@ function useAppSettingsForm(data) {
7861
7872
 
7862
7873
  // src/hooks/useSchoolForm.ts
7863
7874
  var import_yup17 = require("@hookform/resolvers/yup");
7864
- var import_react6 = require("react");
7875
+ var import_react7 = require("react");
7865
7876
  var import_react_hook_form17 = require("react-hook-form");
7866
7877
 
7867
7878
  // src/yupSchema/school.ts
@@ -7906,7 +7917,7 @@ function useSchoolForm(data) {
7906
7917
  defaultValues: defaultSchoolFormValues,
7907
7918
  resolver: (0, import_yup17.yupResolver)(schoolSchema)
7908
7919
  });
7909
- (0, import_react6.useEffect)(() => {
7920
+ (0, import_react7.useEffect)(() => {
7910
7921
  if (data) {
7911
7922
  reset({
7912
7923
  _id: data._id,
@@ -7964,7 +7975,7 @@ function useSchoolForm(data) {
7964
7975
 
7965
7976
  // src/hooks/useAffiliateForm.ts
7966
7977
  var import_yup18 = require("@hookform/resolvers/yup");
7967
- var import_react7 = require("react");
7978
+ var import_react8 = require("react");
7968
7979
  var import_react_hook_form18 = require("react-hook-form");
7969
7980
 
7970
7981
  // src/yupSchema/affiliate.ts
@@ -8020,7 +8031,7 @@ function useAffiliateForm(data) {
8020
8031
  defaultValues: defaultAffiliateFormValues,
8021
8032
  resolver: (0, import_yup18.yupResolver)(affiliateSchema)
8022
8033
  });
8023
- (0, import_react7.useEffect)(() => {
8034
+ (0, import_react8.useEffect)(() => {
8024
8035
  if (data) {
8025
8036
  reset({
8026
8037
  bankAccountDetails: data.bankAccountDetails,