@timardex/cluemart-shared 2.2.0 → 2.2.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.
- package/dist/{ad-rrCulESo.d.ts → ad-C4L_-r-4.d.ts} +12 -3
- package/dist/{ad-D0xWGTAB.d.mts → ad-XtBAH4rD.d.mts} +12 -3
- package/dist/{affiliate-C9eTAxEj.d.ts → affiliate-CxZHVZb2.d.ts} +2 -2
- package/dist/{affiliate-CGe0hR-U.d.mts → affiliate-D-L_UtL8.d.mts} +2 -2
- package/dist/apollo/index.cjs +12 -7
- package/dist/apollo/index.cjs.map +1 -1
- package/dist/apollo/index.d.mts +11 -0
- package/dist/apollo/index.d.ts +11 -0
- package/dist/apollo/index.mjs +12 -7
- package/dist/apollo/index.mjs.map +1 -1
- package/dist/auth/index.cjs +42 -3
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +5 -4
- package/dist/auth/index.d.ts +5 -4
- package/dist/auth/index.mjs +7 -5
- package/dist/auth/index.mjs.map +1 -1
- package/dist/{chunk-OSSBKFNH.mjs → chunk-BR4XNXE7.mjs} +52 -1
- package/dist/chunk-BR4XNXE7.mjs.map +1 -0
- package/dist/{chunk-PIEXGXTD.mjs → chunk-FWKZZMQR.mjs} +1 -1
- package/dist/chunk-FWKZZMQR.mjs.map +1 -0
- package/dist/{chunk-KT65YYOB.mjs → chunk-KHC57ZNS.mjs} +16 -12
- package/dist/chunk-KHC57ZNS.mjs.map +1 -0
- package/dist/{chunk-T7A7ZG55.mjs → chunk-MTBH5LMV.mjs} +111 -22
- package/dist/chunk-MTBH5LMV.mjs.map +1 -0
- package/dist/{chunk-OK3BPZYA.mjs → chunk-PUX53EZX.mjs} +3 -3
- package/dist/{chunk-YPWBK4WU.mjs → chunk-Q2WLLXTA.mjs} +2 -1
- package/dist/chunk-Q2WLLXTA.mjs.map +1 -0
- package/dist/{chunk-GOWIY4NZ.mjs → chunk-TCV735VY.mjs} +10 -2
- package/dist/chunk-TCV735VY.mjs.map +1 -0
- package/dist/{chunk-BTZIWVSF.mjs → chunk-YKJAOTF7.mjs} +3 -3
- package/dist/chunk-YKJAOTF7.mjs.map +1 -0
- package/dist/{contactUs-Be0zqd9Q.d.ts → contactUs-CR-nghbk.d.ts} +1 -1
- package/dist/{contactUs-CQXyz40A.d.mts → contactUs-CwHKoGEt.d.mts} +1 -1
- package/dist/enums/index.cjs +1 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +1 -0
- package/dist/enums/index.d.ts +1 -0
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +16 -7
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +5 -5
- package/dist/{global-CAf04GRC.d.ts → global-B4mmQo6R.d.ts} +25 -7
- package/dist/{global-d8RFwoYS.d.mts → global-D1r5ZuQO.d.mts} +25 -7
- package/dist/graphql/index.cjs +62 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +33 -6
- package/dist/graphql/index.d.ts +33 -6
- package/dist/graphql/index.mjs +9 -3
- package/dist/hooks/index.cjs +84 -37
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -5
- package/dist/hooks/index.d.ts +5 -5
- package/dist/hooks/index.mjs +20 -20
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +190 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +90 -15
- package/dist/index.d.ts +90 -15
- package/dist/index.mjs +185 -32
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/region/index.cjs.map +1 -1
- package/dist/region/index.d.mts +1 -1
- package/dist/region/index.d.ts +1 -1
- package/dist/region/index.mjs +1 -1
- package/dist/{resourceActivities-DO_PjmMN.d.mts → resourceActivities-DUReu_jD.d.mts} +1 -1
- package/dist/{resourceActivities-ByCZO0rJ.d.ts → resourceActivities-Uz9uavhK.d.ts} +1 -1
- package/dist/sharing/index.cjs +21 -10
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.mjs +2 -2
- package/dist/{user-BHYl7drL.d.mts → user-BpR-FTW2.d.mts} +1 -1
- package/dist/{user-DCqDbTLd.d.ts → user-IR0bHKFb.d.ts} +1 -1
- package/dist/utils/index.cjs +126 -31
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +32 -12
- package/dist/utils/index.d.ts +32 -12
- package/dist/utils/index.mjs +9 -5
- package/package.json +1 -1
- package/dist/chunk-BTZIWVSF.mjs.map +0 -1
- package/dist/chunk-GOWIY4NZ.mjs.map +0 -1
- package/dist/chunk-KT65YYOB.mjs.map +0 -1
- package/dist/chunk-OSSBKFNH.mjs.map +0 -1
- package/dist/chunk-PIEXGXTD.mjs.map +0 -1
- package/dist/chunk-T7A7ZG55.mjs.map +0 -1
- package/dist/chunk-YPWBK4WU.mjs.map +0 -1
- /package/dist/{chunk-OK3BPZYA.mjs.map → chunk-PUX53EZX.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode as DocumentNode$1, ApolloError } from '@apollo/client';
|
|
3
3
|
import { DocumentNode } from 'graphql';
|
|
4
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
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 ResourceConnectionsType, V as VendorClaimTokenValidation, h as UnregisteredVendorType, i as VendorType, j as VendorInfoType, k as MyPendingVendorClaim, l as UserLicenceType, m as PostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-
|
|
6
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-
|
|
7
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType,
|
|
4
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-DUReu_jD.mjs';
|
|
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 ResourceConnectionsType, V as VendorClaimTokenValidation, h as UnregisteredVendorType, i as VendorType, j as VendorInfoType, k as MyPendingVendorClaim, l as UserLicenceType, m as PostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-D1r5ZuQO.mjs';
|
|
6
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-BpR-FTW2.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-XtBAH4rD.mjs';
|
|
8
8
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
|
|
9
9
|
import { B as BillingCatalogEntryType } from '../billingCatalog-DDAU9BWV.mjs';
|
|
10
|
-
import { A as AffiliateType } from '../affiliate-
|
|
10
|
+
import { A as AffiliateType } from '../affiliate-D-L_UtL8.mjs';
|
|
11
11
|
import 'react-hook-form';
|
|
12
12
|
import '../images/index.mjs';
|
|
13
13
|
|
|
@@ -115,6 +115,33 @@ declare const useRefreshToken: () => {
|
|
|
115
115
|
refreshToken: RefreshTokenMutationResponse;
|
|
116
116
|
}>>;
|
|
117
117
|
};
|
|
118
|
+
declare const useStartImpersonation: () => {
|
|
119
|
+
error: _apollo_client.ApolloError | undefined;
|
|
120
|
+
loading: boolean;
|
|
121
|
+
startImpersonation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
122
|
+
startImpersonation: StartImpersonationMutationResponse;
|
|
123
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
124
|
+
startImpersonation: StartImpersonationMutationResponse;
|
|
125
|
+
}>>;
|
|
126
|
+
};
|
|
127
|
+
declare const useRefreshImpersonation: () => {
|
|
128
|
+
error: _apollo_client.ApolloError | undefined;
|
|
129
|
+
loading: boolean;
|
|
130
|
+
refreshImpersonation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
131
|
+
refreshImpersonation: RefreshImpersonationMutationResponse;
|
|
132
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
133
|
+
refreshImpersonation: RefreshImpersonationMutationResponse;
|
|
134
|
+
}>>;
|
|
135
|
+
};
|
|
136
|
+
declare const useEndImpersonation: () => {
|
|
137
|
+
endImpersonation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
138
|
+
endImpersonation: MessageOnlyResponse;
|
|
139
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
140
|
+
endImpersonation: MessageOnlyResponse;
|
|
141
|
+
}>>;
|
|
142
|
+
error: _apollo_client.ApolloError | undefined;
|
|
143
|
+
loading: boolean;
|
|
144
|
+
};
|
|
118
145
|
declare const useRequestPasswordReset: () => {
|
|
119
146
|
error: _apollo_client.ApolloError | undefined;
|
|
120
147
|
loading: boolean;
|
|
@@ -1582,4 +1609,4 @@ interface UsePaginatedListResult<TItem> {
|
|
|
1582
1609
|
*/
|
|
1583
1610
|
declare function usePaginatedList<TData, TItem>({ document, getItems, variables, skip, pageSize, getId, }: UsePaginatedListArgs<TData, TItem>): UsePaginatedListResult<TItem>;
|
|
1584
1611
|
|
|
1585
|
-
export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, CLAIM_RESERVED_AD_DAY_MUTATION, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, 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_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, 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, 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, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
|
1612
|
+
export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, CLAIM_RESERVED_AD_DAY_MUTATION, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, 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_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, 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, 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 };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode as DocumentNode$1, ApolloError } from '@apollo/client';
|
|
3
3
|
import { DocumentNode } from 'graphql';
|
|
4
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
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 ResourceConnectionsType, V as VendorClaimTokenValidation, h as UnregisteredVendorType, i as VendorType, j as VendorInfoType, k as MyPendingVendorClaim, l as UserLicenceType, m as PostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-
|
|
6
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-
|
|
7
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType,
|
|
4
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-Uz9uavhK.js';
|
|
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 ResourceConnectionsType, V as VendorClaimTokenValidation, h as UnregisteredVendorType, i as VendorType, j as VendorInfoType, k as MyPendingVendorClaim, l as UserLicenceType, m as PostType, G as GameDocType, n as GameLeaderboard, o as CouponType, p as CouponTypeList } from '../global-B4mmQo6R.js';
|
|
6
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, U as UsersByPromoCode, c as SubscriptionStatusData, d as SubscriptionPlansResponse } from '../user-IR0bHKFb.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-C4L_-r-4.js';
|
|
8
8
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
|
|
9
9
|
import { B as BillingCatalogEntryType } from '../billingCatalog-oWAfZX95.js';
|
|
10
|
-
import { A as AffiliateType } from '../affiliate-
|
|
10
|
+
import { A as AffiliateType } from '../affiliate-CxZHVZb2.js';
|
|
11
11
|
import 'react-hook-form';
|
|
12
12
|
import '../images/index.js';
|
|
13
13
|
|
|
@@ -115,6 +115,33 @@ declare const useRefreshToken: () => {
|
|
|
115
115
|
refreshToken: RefreshTokenMutationResponse;
|
|
116
116
|
}>>;
|
|
117
117
|
};
|
|
118
|
+
declare const useStartImpersonation: () => {
|
|
119
|
+
error: _apollo_client.ApolloError | undefined;
|
|
120
|
+
loading: boolean;
|
|
121
|
+
startImpersonation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
122
|
+
startImpersonation: StartImpersonationMutationResponse;
|
|
123
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
124
|
+
startImpersonation: StartImpersonationMutationResponse;
|
|
125
|
+
}>>;
|
|
126
|
+
};
|
|
127
|
+
declare const useRefreshImpersonation: () => {
|
|
128
|
+
error: _apollo_client.ApolloError | undefined;
|
|
129
|
+
loading: boolean;
|
|
130
|
+
refreshImpersonation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
131
|
+
refreshImpersonation: RefreshImpersonationMutationResponse;
|
|
132
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
133
|
+
refreshImpersonation: RefreshImpersonationMutationResponse;
|
|
134
|
+
}>>;
|
|
135
|
+
};
|
|
136
|
+
declare const useEndImpersonation: () => {
|
|
137
|
+
endImpersonation: (options?: _apollo_client.MutationFunctionOptions<{
|
|
138
|
+
endImpersonation: MessageOnlyResponse;
|
|
139
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
140
|
+
endImpersonation: MessageOnlyResponse;
|
|
141
|
+
}>>;
|
|
142
|
+
error: _apollo_client.ApolloError | undefined;
|
|
143
|
+
loading: boolean;
|
|
144
|
+
};
|
|
118
145
|
declare const useRequestPasswordReset: () => {
|
|
119
146
|
error: _apollo_client.ApolloError | undefined;
|
|
120
147
|
loading: boolean;
|
|
@@ -1582,4 +1609,4 @@ interface UsePaginatedListResult<TItem> {
|
|
|
1582
1609
|
*/
|
|
1583
1610
|
declare function usePaginatedList<TData, TItem>({ document, getItems, variables, skip, pageSize, getId, }: UsePaginatedListArgs<TData, TItem>): UsePaginatedListResult<TItem>;
|
|
1584
1611
|
|
|
1585
|
-
export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, CLAIM_RESERVED_AD_DAY_MUTATION, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, 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_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, 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, 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, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useRewardCoupon, useScanCoupon, useSearchEvents, useSearchPartners, useSearchVendors, useSelectStandardPackage, useSendChatMessage, useStartGame, useSyncBillingCatalogPrice, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateBillingCatalogPrice, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
|
1612
|
+
export { ACTIVATE_VENDOR_CLAIM_MUTATION, AD_BOOKING_FIELDS_FRAGMENT, APPROVE_AD_BOOKING_MUTATION, CLAIM_RESERVED_AD_DAY_MUTATION, CREATE_AD_CHECKOUT_MUTATION, GET_AD_BOOKING, GET_AD_DAILY_PRICES, GET_AD_DAY_AVAILABILITY, 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_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, 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, 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 };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
useUpdateUser,
|
|
163
163
|
useUpdateVendor,
|
|
164
164
|
useUpdateVendorInfo
|
|
165
|
-
} from "../chunk-
|
|
165
|
+
} from "../chunk-TCV735VY.mjs";
|
|
166
166
|
import {
|
|
167
167
|
GET_EVENT,
|
|
168
168
|
GET_EVENTS,
|
|
@@ -175,6 +175,7 @@ import {
|
|
|
175
175
|
GET_VENDORS,
|
|
176
176
|
GET_VENDOR_INFO,
|
|
177
177
|
MY_PENDING_VENDOR_CLAIM,
|
|
178
|
+
useEndImpersonation,
|
|
178
179
|
useGetUser,
|
|
179
180
|
useGetUserActivities,
|
|
180
181
|
useGetUserEvents,
|
|
@@ -184,14 +185,16 @@ import {
|
|
|
184
185
|
useGetUsersByPromoCode,
|
|
185
186
|
useLogin,
|
|
186
187
|
useLogout,
|
|
188
|
+
useRefreshImpersonation,
|
|
187
189
|
useRefreshToken,
|
|
188
190
|
useRegister,
|
|
189
191
|
useRequestPasswordReset,
|
|
190
192
|
useResetPassword,
|
|
193
|
+
useStartImpersonation,
|
|
191
194
|
useValidateVerificationToken
|
|
192
|
-
} from "../chunk-
|
|
195
|
+
} from "../chunk-BR4XNXE7.mjs";
|
|
193
196
|
import "../chunk-7DQBUZXY.mjs";
|
|
194
|
-
import "../chunk-
|
|
197
|
+
import "../chunk-Q2WLLXTA.mjs";
|
|
195
198
|
export {
|
|
196
199
|
ACTIVATE_VENDOR_CLAIM_MUTATION,
|
|
197
200
|
AD_BOOKING_FIELDS_FRAGMENT,
|
|
@@ -276,6 +279,7 @@ export {
|
|
|
276
279
|
useDeleteUnregisteredVendor,
|
|
277
280
|
useDeleteUser,
|
|
278
281
|
useDeleteVendor,
|
|
282
|
+
useEndImpersonation,
|
|
279
283
|
useGetAd,
|
|
280
284
|
useGetAds,
|
|
281
285
|
useGetAdsByRegion,
|
|
@@ -339,6 +343,7 @@ export {
|
|
|
339
343
|
usePaginatedList,
|
|
340
344
|
useRedeemAffiliateReward,
|
|
341
345
|
useRedeemReward,
|
|
346
|
+
useRefreshImpersonation,
|
|
342
347
|
useRefreshToken,
|
|
343
348
|
useRegister,
|
|
344
349
|
useRemoveParticipantFromChat,
|
|
@@ -358,6 +363,7 @@ export {
|
|
|
358
363
|
useSelectStandardPackage,
|
|
359
364
|
useSendChatMessage,
|
|
360
365
|
useStartGame,
|
|
366
|
+
useStartImpersonation,
|
|
361
367
|
useSyncBillingCatalogPrice,
|
|
362
368
|
useToggleChatMessageLike,
|
|
363
369
|
useUnlinkUnregisteredVendorByInviterId,
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -170,8 +170,8 @@ var React = __toESM(require("react"));
|
|
|
170
170
|
var import_react_hook_form = require("react-hook-form");
|
|
171
171
|
|
|
172
172
|
// src/yupSchema/global.ts
|
|
173
|
-
var
|
|
174
|
-
var
|
|
173
|
+
var import_dayjs4 = __toESM(require("dayjs"));
|
|
174
|
+
var import_customParseFormat3 = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
175
175
|
var import_isSameOrAfter2 = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
176
176
|
var yup = __toESM(require("yup"));
|
|
177
177
|
|
|
@@ -381,13 +381,22 @@ var gameScreenIdentifierList = [
|
|
|
381
381
|
];
|
|
382
382
|
|
|
383
383
|
// src/utils/date.ts
|
|
384
|
-
var
|
|
385
|
-
var
|
|
384
|
+
var import_dayjs2 = __toESM(require("dayjs"));
|
|
385
|
+
var import_customParseFormat2 = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
386
386
|
var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
387
387
|
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
|
388
388
|
var import_utc = __toESM(require("dayjs/plugin/utc.js"));
|
|
389
389
|
|
|
390
|
+
// src/utils/dateFormats.ts
|
|
391
|
+
var dateFormat = "DD-MM-YYYY";
|
|
392
|
+
var timeFormat = "HH:mm";
|
|
393
|
+
|
|
390
394
|
// src/utils/eventDateStatus.ts
|
|
395
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
396
|
+
var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
|
|
397
|
+
var import_isoWeek = __toESM(require("dayjs/plugin/isoWeek.js"));
|
|
398
|
+
import_dayjs.default.extend(import_customParseFormat.default);
|
|
399
|
+
import_dayjs.default.extend(import_isoWeek.default);
|
|
391
400
|
var EVENT_DATE_STATUS_PERIOD_MAP = {
|
|
392
401
|
["Today" /* TODAY */]: [
|
|
393
402
|
"Started" /* STARTED */,
|
|
@@ -410,14 +419,16 @@ var FUTURE_EVENT_DATE_STATUSES = [
|
|
|
410
419
|
"Next_Week" /* NEXT_WEEK */,
|
|
411
420
|
"Upcoming" /* UPCOMING */
|
|
412
421
|
];
|
|
422
|
+
var MANUAL_DATE_STATUSES = /* @__PURE__ */ new Set([
|
|
423
|
+
"Canceled" /* CANCELED */,
|
|
424
|
+
"Rescheduled" /* RE_SCHEDULED */
|
|
425
|
+
]);
|
|
413
426
|
|
|
414
427
|
// src/utils/date.ts
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
import_dayjs.default.extend(import_timezone.default);
|
|
420
|
-
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
428
|
+
import_dayjs2.default.extend(import_customParseFormat2.default);
|
|
429
|
+
import_dayjs2.default.extend(import_utc.default);
|
|
430
|
+
import_dayjs2.default.extend(import_timezone.default);
|
|
431
|
+
import_dayjs2.default.extend(import_isSameOrAfter.default);
|
|
421
432
|
var futureTimePeriods = FUTURE_EVENT_DATE_STATUSES.filter(
|
|
422
433
|
(status) => status !== "Starting_Soon" /* STARTING_SOON */
|
|
423
434
|
).map((status) => ({
|
|
@@ -623,7 +634,7 @@ var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
|
|
|
623
634
|
var SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
624
635
|
|
|
625
636
|
// src/calendar/eventCalendar.ts
|
|
626
|
-
var
|
|
637
|
+
var import_dayjs3 = __toESM(require("dayjs"));
|
|
627
638
|
|
|
628
639
|
// src/formFields/categories/clothingAndFashion.ts
|
|
629
640
|
var clothingAndFashion = [
|
|
@@ -1819,8 +1830,8 @@ var toOptionalNumber = (originalValue) => {
|
|
|
1819
1830
|
}
|
|
1820
1831
|
return Number.isNaN(parsed) ? void 0 : parsed;
|
|
1821
1832
|
};
|
|
1822
|
-
|
|
1823
|
-
|
|
1833
|
+
import_dayjs4.default.extend(import_isSameOrAfter2.default);
|
|
1834
|
+
import_dayjs4.default.extend(import_customParseFormat3.default);
|
|
1824
1835
|
var emailRequiredSchema = yup.string().email("Invalid email address").required("Email is required").label("Email").transform(
|
|
1825
1836
|
(value) => typeof value === "string" ? value.trim().toLowerCase() : value
|
|
1826
1837
|
);
|
|
@@ -1851,12 +1862,12 @@ var contactDetailsSchema = yup.object({
|
|
|
1851
1862
|
landlinePhone: landlinePhoneSchema
|
|
1852
1863
|
}).nullable().default(void 0);
|
|
1853
1864
|
var endDateNotInPastTest = yup.string().test("not-in-past", "End date cannot be in the past", (value) => {
|
|
1854
|
-
const now = (0,
|
|
1855
|
-
return value ? (0,
|
|
1865
|
+
const now = (0, import_dayjs4.default)();
|
|
1866
|
+
return value ? (0, import_dayjs4.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
|
|
1856
1867
|
});
|
|
1857
1868
|
var startDateNotInPastTest = yup.string().test("not-in-past", "Start date cannot be in the past", (value) => {
|
|
1858
|
-
const now = (0,
|
|
1859
|
-
return value ? (0,
|
|
1869
|
+
const now = (0, import_dayjs4.default)();
|
|
1870
|
+
return value ? (0, import_dayjs4.default)(value, dateFormat, true).isSameOrAfter(now, "day") : false;
|
|
1860
1871
|
});
|
|
1861
1872
|
var endDateAfterStartDateTest = yup.string().test(
|
|
1862
1873
|
"end-after-start",
|
|
@@ -1864,8 +1875,8 @@ var endDateAfterStartDateTest = yup.string().test(
|
|
|
1864
1875
|
function(value) {
|
|
1865
1876
|
const { startDate } = this.parent;
|
|
1866
1877
|
if (!startDate || !value) return false;
|
|
1867
|
-
return (0,
|
|
1868
|
-
(0,
|
|
1878
|
+
return (0, import_dayjs4.default)(value, dateFormat, true).isSameOrAfter(
|
|
1879
|
+
(0, import_dayjs4.default)(startDate, dateFormat, true),
|
|
1869
1880
|
"day"
|
|
1870
1881
|
);
|
|
1871
1882
|
}
|
|
@@ -1876,12 +1887,12 @@ var endTimeMustBeAfterStartTimeTest = yup.string().test(
|
|
|
1876
1887
|
function(value) {
|
|
1877
1888
|
const { startDate, endDate, startTime } = this.parent;
|
|
1878
1889
|
if (!startDate || !endDate || !startTime || !value) return false;
|
|
1879
|
-
const startDateTime = (0,
|
|
1890
|
+
const startDateTime = (0, import_dayjs4.default)(
|
|
1880
1891
|
`${startDate} ${startTime}`,
|
|
1881
1892
|
`${dateFormat} ${timeFormat}`,
|
|
1882
1893
|
true
|
|
1883
1894
|
);
|
|
1884
|
-
const endDateTime = (0,
|
|
1895
|
+
const endDateTime = (0, import_dayjs4.default)(
|
|
1885
1896
|
`${endDate} ${value}`,
|
|
1886
1897
|
`${dateFormat} ${timeFormat}`,
|
|
1887
1898
|
true
|
|
@@ -1893,10 +1904,10 @@ var startTimeCannotBeInPastTest = yup.string().test(
|
|
|
1893
1904
|
"valid-start-time",
|
|
1894
1905
|
"Start time cannot be in the past",
|
|
1895
1906
|
function(value) {
|
|
1896
|
-
const now = (0,
|
|
1907
|
+
const now = (0, import_dayjs4.default)();
|
|
1897
1908
|
const { startDate } = this.parent;
|
|
1898
1909
|
if (!startDate || !value) return false;
|
|
1899
|
-
const startDateTime = (0,
|
|
1910
|
+
const startDateTime = (0, import_dayjs4.default)(
|
|
1900
1911
|
`${startDate} ${value}`,
|
|
1901
1912
|
`${dateFormat} ${timeFormat}`,
|
|
1902
1913
|
true
|
|
@@ -1906,25 +1917,25 @@ var startTimeCannotBeInPastTest = yup.string().test(
|
|
|
1906
1917
|
);
|
|
1907
1918
|
var dateTimeSchema = yup.object().shape({
|
|
1908
1919
|
dateStatus: yup.mixed().oneOf(Object.values(EnumEventDateStatus)).required("Date status is required"),
|
|
1909
|
-
endDate: yup.string().label("End Date").
|
|
1920
|
+
endDate: yup.string().label("End Date").when("dateStatus", {
|
|
1910
1921
|
is: (status) => status !== "Canceled" /* CANCELED */,
|
|
1911
|
-
then: () =>
|
|
1912
|
-
otherwise: () =>
|
|
1922
|
+
then: (schema) => schema.concat(endDateNotInPastTest).concat(endDateAfterStartDateTest).required("End date is required"),
|
|
1923
|
+
otherwise: (schema) => schema.notRequired()
|
|
1913
1924
|
}),
|
|
1914
|
-
endTime: yup.string().label("End Time").
|
|
1925
|
+
endTime: yup.string().label("End Time").when("dateStatus", {
|
|
1915
1926
|
is: (status) => status !== "Canceled" /* CANCELED */,
|
|
1916
|
-
then: () =>
|
|
1917
|
-
otherwise: () =>
|
|
1927
|
+
then: (schema) => schema.concat(endTimeMustBeAfterStartTimeTest).required("End time is required"),
|
|
1928
|
+
otherwise: (schema) => schema.notRequired()
|
|
1918
1929
|
}),
|
|
1919
|
-
startDate: yup.string().label("Start Date").
|
|
1930
|
+
startDate: yup.string().label("Start Date").when("dateStatus", {
|
|
1920
1931
|
is: (status) => status !== "Canceled" /* CANCELED */,
|
|
1921
|
-
then: () =>
|
|
1922
|
-
otherwise: () =>
|
|
1932
|
+
then: (schema) => schema.concat(startDateNotInPastTest).required("Start date is required"),
|
|
1933
|
+
otherwise: (schema) => schema.notRequired()
|
|
1923
1934
|
}),
|
|
1924
|
-
startTime: yup.string().label("Start Time").
|
|
1935
|
+
startTime: yup.string().label("Start Time").when("dateStatus", {
|
|
1925
1936
|
is: (status) => status !== "Canceled" /* CANCELED */,
|
|
1926
|
-
then: () =>
|
|
1927
|
-
otherwise: () =>
|
|
1937
|
+
then: (schema) => schema.concat(startTimeCannotBeInPastTest).required("Start time is required"),
|
|
1938
|
+
otherwise: (schema) => schema.notRequired()
|
|
1928
1939
|
})
|
|
1929
1940
|
});
|
|
1930
1941
|
var stallTypesSchema = yup.object({
|
|
@@ -4181,6 +4192,42 @@ var REFRESH_TOKEN_MUTATION = import_client14.gql`
|
|
|
4181
4192
|
}
|
|
4182
4193
|
}
|
|
4183
4194
|
`;
|
|
4195
|
+
var START_IMPERSONATION_MUTATION = import_client14.gql`
|
|
4196
|
+
mutation startImpersonation($input: StartImpersonationInputType!) {
|
|
4197
|
+
startImpersonation(input: $input) {
|
|
4198
|
+
data {
|
|
4199
|
+
expiresAt
|
|
4200
|
+
refreshToken
|
|
4201
|
+
sessionId
|
|
4202
|
+
token
|
|
4203
|
+
user {
|
|
4204
|
+
...UserFields
|
|
4205
|
+
}
|
|
4206
|
+
}
|
|
4207
|
+
message
|
|
4208
|
+
}
|
|
4209
|
+
}
|
|
4210
|
+
${USER_FIELDS_FRAGMENT}
|
|
4211
|
+
`;
|
|
4212
|
+
var REFRESH_IMPERSONATION_MUTATION = import_client14.gql`
|
|
4213
|
+
mutation refreshImpersonation($input: RefreshImpersonationInputType!) {
|
|
4214
|
+
refreshImpersonation(input: $input) {
|
|
4215
|
+
data {
|
|
4216
|
+
refreshToken
|
|
4217
|
+
token
|
|
4218
|
+
}
|
|
4219
|
+
message
|
|
4220
|
+
}
|
|
4221
|
+
}
|
|
4222
|
+
`;
|
|
4223
|
+
var END_IMPERSONATION_MUTATION = import_client14.gql`
|
|
4224
|
+
mutation endImpersonation {
|
|
4225
|
+
endImpersonation {
|
|
4226
|
+
data
|
|
4227
|
+
message
|
|
4228
|
+
}
|
|
4229
|
+
}
|
|
4230
|
+
`;
|
|
4184
4231
|
var RESET_PASSWORD_MUTATION = import_client14.gql`
|
|
4185
4232
|
mutation resetPassword($input: ResetPasswordInputType!) {
|
|
4186
4233
|
resetPassword(input: $input) {
|
|
@@ -7946,10 +7993,10 @@ function useAffiliateForm(data) {
|
|
|
7946
7993
|
|
|
7947
7994
|
// src/hooks/useCouponForm.tsx
|
|
7948
7995
|
var import_yup19 = require("@hookform/resolvers/yup");
|
|
7949
|
-
var
|
|
7996
|
+
var import_dayjs5 = __toESM(require("dayjs"));
|
|
7950
7997
|
var React12 = __toESM(require("react"));
|
|
7951
7998
|
var import_react_hook_form19 = require("react-hook-form");
|
|
7952
|
-
var defaultDate = (0,
|
|
7999
|
+
var defaultDate = (0, import_dayjs5.default)().add(1, "day").hour(0).minute(0).second(0).millisecond(0).toDate();
|
|
7953
8000
|
var defaultValues11 = {
|
|
7954
8001
|
couponDescription: "",
|
|
7955
8002
|
couponOption: null,
|