@timardex/cluemart-shared 1.7.24 → 1.7.26
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-DChdPAkx.d.mts → ad-BNumAVY7.d.mts} +2 -2
- package/dist/{ad-BZcVngc3.d.ts → ad-xMotoDzt.d.ts} +2 -2
- package/dist/auth/index.d.mts +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.mjs +1 -1
- package/dist/{chunk-LZQG3BQM.mjs → chunk-336EZBSA.mjs} +159 -6
- package/dist/chunk-336EZBSA.mjs.map +1 -0
- package/dist/{chunk-3VDFBRRK.mjs → chunk-WPBHYGXW.mjs} +2 -1
- package/dist/{contactUs-KVN1Iw60.d.mts → contactUs-5t9rb3U4.d.mts} +1 -1
- package/dist/{contactUs-l3ciX1_d.d.ts → contactUs-BJiiMuGX.d.ts} +1 -1
- package/dist/{affiliate-BM1h7pwc.d.ts → coupon-CqCTYMW1.d.ts} +47 -3
- package/dist/{affiliate-C1EG9HbN.d.mts → coupon-O__x-VRW.d.mts} +47 -3
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-D8aPAI5b.d.ts → global-B6VyEshc.d.ts} +1 -1
- package/dist/{global-BrnExI9t.d.mts → global-BKGlrm75.d.mts} +1 -1
- package/dist/graphql/index.cjs +158 -1
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +52 -7
- package/dist/graphql/index.d.ts +52 -7
- package/dist/graphql/index.mjs +12 -2
- package/dist/hooks/index.cjs +117 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +5 -6
- package/dist/hooks/index.d.ts +5 -6
- package/dist/hooks/index.mjs +2 -2
- package/dist/index.cjs +158 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +48 -3
- package/dist/index.d.ts +48 -3
- package/dist/index.mjs +153 -1
- 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/{resourceActivities-DIXjrgOD.d.ts → resourceActivities-HkorPbJU.d.ts} +1 -1
- package/dist/{resourceActivities-DuftR4Ts.d.mts → resourceActivities-l4Q014eT.d.mts} +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/types/index.d.mts +7 -8
- package/dist/types/index.d.ts +7 -8
- package/dist/{user-BY5AtgYc.d.ts → user-Cg80mIww.d.ts} +1 -1
- package/dist/{user-CjYZ7tJ4.d.mts → user-go-eqanx.d.mts} +1 -1
- package/dist/utils/index.d.mts +3 -4
- package/dist/utils/index.d.ts +3 -4
- package/package.json +1 -1
- package/dist/chunk-LZQG3BQM.mjs.map +0 -1
- package/dist/coupon-CYL-fG6W.d.ts +0 -47
- package/dist/coupon-DE-6YTb6.d.mts +0 -47
- /package/dist/{chunk-3VDFBRRK.mjs.map → chunk-WPBHYGXW.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard } from '../global-
|
|
5
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-
|
|
3
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-l4Q014eT.mjs';
|
|
4
|
+
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard } from '../global-BKGlrm75.mjs';
|
|
5
|
+
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-BNumAVY7.mjs';
|
|
6
6
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.mjs';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
8
|
-
import { A as AffiliateType } from '../
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-go-eqanx.mjs';
|
|
8
|
+
import { A as AffiliateType, C as CouponType } from '../coupon-O__x-VRW.mjs';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import '../images/index.mjs';
|
|
11
11
|
|
|
@@ -670,7 +670,7 @@ declare const useGetVendor: (_id: string) => {
|
|
|
670
670
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
671
671
|
vendor: VendorType;
|
|
672
672
|
}>>;
|
|
673
|
-
vendor: VendorType |
|
|
673
|
+
vendor: VendorType | null;
|
|
674
674
|
};
|
|
675
675
|
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
676
676
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1459,4 +1459,49 @@ declare const useAssignAffiliateBonusReward: () => {
|
|
|
1459
1459
|
loading: boolean;
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
1462
|
-
|
|
1462
|
+
declare const useCreateCoupon: () => {
|
|
1463
|
+
createCoupon: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1464
|
+
createCoupon: MutationResponse<CouponType>;
|
|
1465
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1466
|
+
createCoupon: MutationResponse<CouponType>;
|
|
1467
|
+
}>>;
|
|
1468
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1469
|
+
loading: boolean;
|
|
1470
|
+
};
|
|
1471
|
+
declare const useUpdateCoupon: () => {
|
|
1472
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1473
|
+
loading: boolean;
|
|
1474
|
+
updateCoupon: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1475
|
+
updateCoupon: MutationResponse<CouponType>;
|
|
1476
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1477
|
+
updateCoupon: MutationResponse<CouponType>;
|
|
1478
|
+
}>>;
|
|
1479
|
+
};
|
|
1480
|
+
declare const useDeleteCoupon: () => {
|
|
1481
|
+
deleteCoupon: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1482
|
+
deleteCoupon: MutationResponse<boolean>;
|
|
1483
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1484
|
+
deleteCoupon: MutationResponse<boolean>;
|
|
1485
|
+
}>>;
|
|
1486
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1487
|
+
loading: boolean;
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
declare const useGetCoupons: () => {
|
|
1491
|
+
coupons: CouponType[];
|
|
1492
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1493
|
+
loading: boolean;
|
|
1494
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1495
|
+
coupons: CouponType[];
|
|
1496
|
+
}>>;
|
|
1497
|
+
};
|
|
1498
|
+
declare const useGetCoupon: (_id: string) => {
|
|
1499
|
+
coupon: CouponType | null;
|
|
1500
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1501
|
+
loading: boolean;
|
|
1502
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1503
|
+
coupon: CouponType | null;
|
|
1504
|
+
}>>;
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
export { ACTIVATE_VENDOR_CLAIM_MUTATION, GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, MY_PENDING_VENDOR_CLAIM, toGraphqlQueryString, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, 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, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetRelationChats, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { DocumentNode } from 'graphql';
|
|
3
|
-
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard } from '../global-
|
|
5
|
-
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-
|
|
3
|
+
import { A as AdminUpdateResourceType, C as ChatType, R as ReportChatUser, N as NotificationType, a as NotificationCount, b as ResourceActivityType } from '../resourceActivities-HkorPbJU.js';
|
|
4
|
+
import { M as MutationResponse, E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, P as PosterUsageType, e as RelationType, f as ResourceConnectionsType, V as VendorClaimTokenValidation, g as UnregisteredVendorType, h as VendorType, i as VendorInfoType, j as MyPendingVendorClaim, k as UserLicenceType, l as PostType, m as EnumPostType, G as GameDocType, n as GameLeaderboard } from '../global-B6VyEshc.js';
|
|
5
|
+
import { A as AuthMutationResponse, R as RefreshTokenMutationResponse, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolType, c as SchoolReturnType } from '../ad-xMotoDzt.js';
|
|
6
6
|
import { EnumEventDateStatus, EnumResourceType } from '../enums/index.js';
|
|
7
|
-
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-
|
|
8
|
-
import { A as AffiliateType } from '../
|
|
7
|
+
import { S as SafeUserType, R as RedeemRewardMutationResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-Cg80mIww.js';
|
|
8
|
+
import { A as AffiliateType, C as CouponType } from '../coupon-CqCTYMW1.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
import '../images/index.js';
|
|
11
11
|
|
|
@@ -670,7 +670,7 @@ declare const useGetVendor: (_id: string) => {
|
|
|
670
670
|
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
671
671
|
vendor: VendorType;
|
|
672
672
|
}>>;
|
|
673
|
-
vendor: VendorType |
|
|
673
|
+
vendor: VendorType | null;
|
|
674
674
|
};
|
|
675
675
|
declare const useGetVendorsByRegion: (region: string, options?: UseGetResourcesByRegionOptions) => {
|
|
676
676
|
error: _apollo_client.ApolloError | undefined;
|
|
@@ -1459,4 +1459,49 @@ declare const useAssignAffiliateBonusReward: () => {
|
|
|
1459
1459
|
loading: boolean;
|
|
1460
1460
|
};
|
|
1461
1461
|
|
|
1462
|
-
|
|
1462
|
+
declare const useCreateCoupon: () => {
|
|
1463
|
+
createCoupon: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1464
|
+
createCoupon: MutationResponse<CouponType>;
|
|
1465
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1466
|
+
createCoupon: MutationResponse<CouponType>;
|
|
1467
|
+
}>>;
|
|
1468
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1469
|
+
loading: boolean;
|
|
1470
|
+
};
|
|
1471
|
+
declare const useUpdateCoupon: () => {
|
|
1472
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1473
|
+
loading: boolean;
|
|
1474
|
+
updateCoupon: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1475
|
+
updateCoupon: MutationResponse<CouponType>;
|
|
1476
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1477
|
+
updateCoupon: MutationResponse<CouponType>;
|
|
1478
|
+
}>>;
|
|
1479
|
+
};
|
|
1480
|
+
declare const useDeleteCoupon: () => {
|
|
1481
|
+
deleteCoupon: (options?: _apollo_client.MutationFunctionOptions<{
|
|
1482
|
+
deleteCoupon: MutationResponse<boolean>;
|
|
1483
|
+
}, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<{
|
|
1484
|
+
deleteCoupon: MutationResponse<boolean>;
|
|
1485
|
+
}>>;
|
|
1486
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1487
|
+
loading: boolean;
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
declare const useGetCoupons: () => {
|
|
1491
|
+
coupons: CouponType[];
|
|
1492
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1493
|
+
loading: boolean;
|
|
1494
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1495
|
+
coupons: CouponType[];
|
|
1496
|
+
}>>;
|
|
1497
|
+
};
|
|
1498
|
+
declare const useGetCoupon: (_id: string) => {
|
|
1499
|
+
coupon: CouponType | null;
|
|
1500
|
+
error: _apollo_client.ApolloError | undefined;
|
|
1501
|
+
loading: boolean;
|
|
1502
|
+
refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<{
|
|
1503
|
+
coupon: CouponType | null;
|
|
1504
|
+
}>>;
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
export { ACTIVATE_VENDOR_CLAIM_MUTATION, GET_EVENT, GET_EVENT_BY_SLUG, GET_EVENT_INFO, GET_PARTNER, GET_PARTNER_BY_SLUG, GET_POST, GET_POST_BY_SLUG, GET_RESOURCE_CONNECTIONS, GET_VENDOR, GET_VENDOR_BY_SLUG, GET_VENDOR_INFO, MY_PENDING_VENDOR_CLAIM, toGraphqlQueryString, useActivateVendorClaim, useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminPermanentlyDeleteResource, useAdminResendUserVerificationEmail, useAdminUpdateResourceType, useAssignAffiliateBonusReward, useAssignAffiliateResourceReward, useCancelSubscription, useContactUs, useCrawlGoogleMarkets, useCreateAd, 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, useGetChat, useGetChatSubscription, useGetChatsByRegion, useGetCoupon, useGetCoupons, useGetEvent, useGetEventByPlaceId, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetGame, useGetGameLeaderboard, useGetGames, useGetNotificationCount, useGetNotificationCountSubscription, useGetPartner, useGetPartners, useGetPartnersByRegion, useGetPost, useGetPosts, useGetPostsByType, useGetPrivateChats, useGetRelation, useGetRelationByEventAndVendor, useGetRelationChats, useGetReportedChatUsers, useGetResourceActivity, useGetResourceConnections, useGetSchool, useGetSchools, useGetSubscriptionPlans, useGetSubscriptionStatus, useGetUnregisteredVendor, useGetUnregisteredVendors, useGetUnregisteredVendorsByInviterId, useGetUser, useGetUserActivities, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserPartners, useGetUserResources, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLeaveGame, useLogin, useLogout, useMarkAllNotificationsRead, useMarkChatMessagesSeen, useMarkNotificationRead, useMyPendingVendorClaim, useRedeemAffiliateReward, useRedeemReward, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useReportChatUser, useRequestMarketingMaterial, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchPartners, useSearchVendors, useSelectPackage, useSelectStandardPackage, useSendChatMessage, useStartGame, useToggleChatMessageLike, useUnlinkUnregisteredVendorByInviterId, useUpdateAd, useUpdateAffiliateDetails, useUpdateAppSettings, useUpdateCoupon, useUpdateDailyClueGame, useUpdateEvent, useUpdateEventInfo, useUpdateGoogleImportedMarkets, useUpdatePartner, useUpdatePost, useUpdatePuzzleGame, useUpdateRelation, useUpdateSchool, useUpdateSubscriptionPlan, useUpdateUnregisteredVendor, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -24,6 +24,7 @@ import {
|
|
|
24
24
|
useCreateAd,
|
|
25
25
|
useCreateBulkNotifications,
|
|
26
26
|
useCreateCheckoutSession,
|
|
27
|
+
useCreateCoupon,
|
|
27
28
|
useCreateCustomerPortal,
|
|
28
29
|
useCreateEvent,
|
|
29
30
|
useCreateEventInfo,
|
|
@@ -43,6 +44,7 @@ import {
|
|
|
43
44
|
useDeleteAffiliate,
|
|
44
45
|
useDeleteAllNotifications,
|
|
45
46
|
useDeleteChat,
|
|
47
|
+
useDeleteCoupon,
|
|
46
48
|
useDeleteEvent,
|
|
47
49
|
useDeleteNotification,
|
|
48
50
|
useDeletePartner,
|
|
@@ -61,6 +63,8 @@ import {
|
|
|
61
63
|
useGetChat,
|
|
62
64
|
useGetChatSubscription,
|
|
63
65
|
useGetChatsByRegion,
|
|
66
|
+
useGetCoupon,
|
|
67
|
+
useGetCoupons,
|
|
64
68
|
useGetEvent,
|
|
65
69
|
useGetEventByPlaceId,
|
|
66
70
|
useGetEventInfo,
|
|
@@ -126,6 +130,7 @@ import {
|
|
|
126
130
|
useUpdateAd,
|
|
127
131
|
useUpdateAffiliateDetails,
|
|
128
132
|
useUpdateAppSettings,
|
|
133
|
+
useUpdateCoupon,
|
|
129
134
|
useUpdateDailyClueGame,
|
|
130
135
|
useUpdateEvent,
|
|
131
136
|
useUpdateEventInfo,
|
|
@@ -140,7 +145,7 @@ import {
|
|
|
140
145
|
useUpdateUser,
|
|
141
146
|
useUpdateVendor,
|
|
142
147
|
useUpdateVendorInfo
|
|
143
|
-
} from "../chunk-
|
|
148
|
+
} from "../chunk-336EZBSA.mjs";
|
|
144
149
|
import {
|
|
145
150
|
GET_EVENT,
|
|
146
151
|
GET_EVENT_INFO,
|
|
@@ -162,7 +167,7 @@ import {
|
|
|
162
167
|
useRequestPasswordReset,
|
|
163
168
|
useResetPassword,
|
|
164
169
|
useValidateVerificationToken
|
|
165
|
-
} from "../chunk-
|
|
170
|
+
} from "../chunk-WPBHYGXW.mjs";
|
|
166
171
|
import "../chunk-X3OLM35T.mjs";
|
|
167
172
|
export {
|
|
168
173
|
ACTIVATE_VENDOR_CLAIM_MUTATION,
|
|
@@ -196,6 +201,7 @@ export {
|
|
|
196
201
|
useCreateAd,
|
|
197
202
|
useCreateBulkNotifications,
|
|
198
203
|
useCreateCheckoutSession,
|
|
204
|
+
useCreateCoupon,
|
|
199
205
|
useCreateCustomerPortal,
|
|
200
206
|
useCreateEvent,
|
|
201
207
|
useCreateEventInfo,
|
|
@@ -215,6 +221,7 @@ export {
|
|
|
215
221
|
useDeleteAffiliate,
|
|
216
222
|
useDeleteAllNotifications,
|
|
217
223
|
useDeleteChat,
|
|
224
|
+
useDeleteCoupon,
|
|
218
225
|
useDeleteEvent,
|
|
219
226
|
useDeleteNotification,
|
|
220
227
|
useDeletePartner,
|
|
@@ -233,6 +240,8 @@ export {
|
|
|
233
240
|
useGetChat,
|
|
234
241
|
useGetChatSubscription,
|
|
235
242
|
useGetChatsByRegion,
|
|
243
|
+
useGetCoupon,
|
|
244
|
+
useGetCoupons,
|
|
236
245
|
useGetEvent,
|
|
237
246
|
useGetEventByPlaceId,
|
|
238
247
|
useGetEventInfo,
|
|
@@ -311,6 +320,7 @@ export {
|
|
|
311
320
|
useUpdateAd,
|
|
312
321
|
useUpdateAffiliateDetails,
|
|
313
322
|
useUpdateAppSettings,
|
|
323
|
+
useUpdateCoupon,
|
|
314
324
|
useUpdateDailyClueGame,
|
|
315
325
|
useUpdateEvent,
|
|
316
326
|
useUpdateEventInfo,
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -5535,6 +5535,123 @@ var ASSIGN_AFFILIATE_BONUS_REWARD_MUTATION = import_client76.gql`
|
|
|
5535
5535
|
${AFFILIATE_FIELDS_FRAGMENT}
|
|
5536
5536
|
`;
|
|
5537
5537
|
|
|
5538
|
+
// src/graphql/hooks/coupon/hooksMutation.ts
|
|
5539
|
+
var import_client80 = require("@apollo/client");
|
|
5540
|
+
|
|
5541
|
+
// src/graphql/mutations/coupon.ts
|
|
5542
|
+
var import_client79 = require("@apollo/client");
|
|
5543
|
+
|
|
5544
|
+
// src/graphql/queries/coupon.ts
|
|
5545
|
+
var import_client78 = require("@apollo/client");
|
|
5546
|
+
var COUPON_CODE_FIELDS_FRAGMENT = import_client78.gql`
|
|
5547
|
+
fragment CouponCodeFields on CouponCodeType {
|
|
5548
|
+
code
|
|
5549
|
+
qrCode {
|
|
5550
|
+
...ResourceImageFields
|
|
5551
|
+
}
|
|
5552
|
+
}
|
|
5553
|
+
${RESOURCE_IMAGE_FIELDS_FRAGMENT}
|
|
5554
|
+
`;
|
|
5555
|
+
var COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT = import_client78.gql`
|
|
5556
|
+
fragment CouponParticipantUserFields on CouponParticipantUserType {
|
|
5557
|
+
couponCount
|
|
5558
|
+
couponRedeemedAt
|
|
5559
|
+
createdAt
|
|
5560
|
+
updatedAt
|
|
5561
|
+
userId
|
|
5562
|
+
}
|
|
5563
|
+
`;
|
|
5564
|
+
var PRODUCT_COUPON_FIELDS_FRAGMENT = import_client78.gql`
|
|
5565
|
+
fragment ProductCouponFields on ProductCouponType {
|
|
5566
|
+
_id
|
|
5567
|
+
active
|
|
5568
|
+
couponCode {
|
|
5569
|
+
...CouponCodeFields
|
|
5570
|
+
}
|
|
5571
|
+
couponDescription
|
|
5572
|
+
couponOption
|
|
5573
|
+
createdAt
|
|
5574
|
+
endDate
|
|
5575
|
+
participantProduct {
|
|
5576
|
+
...VendorProductListFields
|
|
5577
|
+
}
|
|
5578
|
+
participantUsers {
|
|
5579
|
+
...CouponParticipantUserFields
|
|
5580
|
+
}
|
|
5581
|
+
startDate
|
|
5582
|
+
updatedAt
|
|
5583
|
+
}
|
|
5584
|
+
${COUPON_CODE_FIELDS_FRAGMENT}
|
|
5585
|
+
${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
|
|
5586
|
+
${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
|
|
5587
|
+
`;
|
|
5588
|
+
var COUPON = import_client78.gql`
|
|
5589
|
+
fragment CouponFields on CouponType {
|
|
5590
|
+
_id
|
|
5591
|
+
active
|
|
5592
|
+
productCoupons {
|
|
5593
|
+
...ProductCouponFields
|
|
5594
|
+
}
|
|
5595
|
+
createdAt
|
|
5596
|
+
deletedAt
|
|
5597
|
+
updatedAt
|
|
5598
|
+
}
|
|
5599
|
+
${PRODUCT_COUPON_FIELDS_FRAGMENT}
|
|
5600
|
+
${COUPON_CODE_FIELDS_FRAGMENT}
|
|
5601
|
+
${COUPON_PARTICIPANT_USER_FIELDS_FRAGMENT}
|
|
5602
|
+
`;
|
|
5603
|
+
var GET_COUPONS = import_client78.gql`
|
|
5604
|
+
query getCoupons {
|
|
5605
|
+
coupons {
|
|
5606
|
+
...CouponFields
|
|
5607
|
+
}
|
|
5608
|
+
}
|
|
5609
|
+
${COUPON}
|
|
5610
|
+
`;
|
|
5611
|
+
var GET_COUPON = import_client78.gql`
|
|
5612
|
+
query getCoupon($_id: ID!) {
|
|
5613
|
+
coupon(_id: $_id) {
|
|
5614
|
+
...CouponFields
|
|
5615
|
+
}
|
|
5616
|
+
}
|
|
5617
|
+
${COUPON}
|
|
5618
|
+
`;
|
|
5619
|
+
|
|
5620
|
+
// src/graphql/mutations/coupon.ts
|
|
5621
|
+
var CREATE_COUPON_MUTATION = import_client79.gql`
|
|
5622
|
+
mutation createCoupon($input: CouponInputType!) {
|
|
5623
|
+
createCoupon(input: $input) {
|
|
5624
|
+
data {
|
|
5625
|
+
...CouponFields
|
|
5626
|
+
}
|
|
5627
|
+
message
|
|
5628
|
+
}
|
|
5629
|
+
}
|
|
5630
|
+
${COUPON}
|
|
5631
|
+
`;
|
|
5632
|
+
var UPDATE_COUPON_MUTATION = import_client79.gql`
|
|
5633
|
+
mutation updateCoupon($_id: ID!, $input: CouponInputType!) {
|
|
5634
|
+
updateCoupon(_id: $_id, input: $input) {
|
|
5635
|
+
data {
|
|
5636
|
+
...CouponFields
|
|
5637
|
+
}
|
|
5638
|
+
message
|
|
5639
|
+
}
|
|
5640
|
+
}
|
|
5641
|
+
${COUPON}
|
|
5642
|
+
`;
|
|
5643
|
+
var DELETE_COUPON_MUTATION = import_client79.gql`
|
|
5644
|
+
mutation deleteCoupon($_id: ID!) {
|
|
5645
|
+
deleteCoupon(_id: $_id) {
|
|
5646
|
+
data
|
|
5647
|
+
message
|
|
5648
|
+
}
|
|
5649
|
+
}
|
|
5650
|
+
`;
|
|
5651
|
+
|
|
5652
|
+
// src/graphql/hooks/coupon/hooksQuery.ts
|
|
5653
|
+
var import_client81 = require("@apollo/client");
|
|
5654
|
+
|
|
5538
5655
|
// src/images/index.ts
|
|
5539
5656
|
var PKG = "@timardex/cluemart-shared";
|
|
5540
5657
|
var IMAGE_EXTENSION = ".webp";
|