@timardex/cluemart-shared 1.2.47 → 1.2.48

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 (38) hide show
  1. package/dist/{ad-BWRIcE3i.d.mts → ad-BkTdN8xM.d.mts} +17 -2
  2. package/dist/{ad-WPUxx9MQ.d.ts → ad-STgnIJ8B.d.ts} +17 -2
  3. package/dist/{chunk-TGZY4O6C.mjs → chunk-HL4SAT7R.mjs} +14 -6
  4. package/dist/chunk-HL4SAT7R.mjs.map +1 -0
  5. package/dist/{chunk-7WFI7PUD.mjs → chunk-KZ2VLPYF.mjs} +2 -2
  6. package/dist/enums/index.cjs +13 -4
  7. package/dist/enums/index.cjs.map +1 -1
  8. package/dist/enums/index.d.mts +12 -6
  9. package/dist/enums/index.d.ts +12 -6
  10. package/dist/enums/index.mjs +3 -1
  11. package/dist/formFields/index.cjs +4 -4
  12. package/dist/formFields/index.cjs.map +1 -1
  13. package/dist/formFields/index.mjs +2 -2
  14. package/dist/graphql/index.cjs +84 -0
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +25 -2
  17. package/dist/graphql/index.d.ts +25 -2
  18. package/dist/graphql/index.mjs +81 -1
  19. package/dist/graphql/index.mjs.map +1 -1
  20. package/dist/hooks/index.cjs +4 -4
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.d.mts +1 -1
  23. package/dist/hooks/index.d.ts +1 -1
  24. package/dist/hooks/index.mjs +2 -2
  25. package/dist/index.cjs +97 -4
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +50 -6
  28. package/dist/index.d.ts +50 -6
  29. package/dist/index.mjs +92 -4
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/types/index.d.mts +1 -1
  32. package/dist/types/index.d.ts +1 -1
  33. package/dist/utils/index.cjs +4 -4
  34. package/dist/utils/index.cjs.map +1 -1
  35. package/dist/utils/index.mjs +2 -2
  36. package/package.json +1 -1
  37. package/dist/chunk-TGZY4O6C.mjs.map +0 -1
  38. /package/dist/{chunk-7WFI7PUD.mjs.map → chunk-KZ2VLPYF.mjs.map} +0 -0
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-BjvoQkGD.js';
3
3
  import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-Be5v6emI.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../ad-WPUxx9MQ.js';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData } from '../ad-STgnIJ8B.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -520,4 +520,27 @@ declare const useGetResourceActivities: (resourceId: string, resourceType: EnumR
520
520
  resourceActivities: ResourceActivityType[];
521
521
  };
522
522
 
523
- export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
523
+ declare const useCreateCheckoutSession: () => {
524
+ createCheckoutSession: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
525
+ error: _apollo_client.ApolloError | undefined;
526
+ loading: boolean;
527
+ };
528
+ declare const useCancelSubscription: () => {
529
+ cancelSubscription: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
530
+ error: _apollo_client.ApolloError | undefined;
531
+ loading: boolean;
532
+ };
533
+ declare const useUpdateSubscriptionPlan: () => {
534
+ error: _apollo_client.ApolloError | undefined;
535
+ loading: boolean;
536
+ updateSubscriptionPlan: (options?: _apollo_client.MutationFunctionOptions<any, _apollo_client.OperationVariables, _apollo_client.DefaultContext, _apollo_client.ApolloCache<any>> | undefined) => Promise<_apollo_client.FetchResult<any>>;
537
+ };
538
+
539
+ declare const useGetSubscriptionStatus: () => {
540
+ data: SubscriptionStatusData | undefined;
541
+ error: _apollo_client.ApolloError | undefined;
542
+ loading: boolean;
543
+ refetch: (variables?: Partial<_apollo_client.OperationVariables> | undefined) => Promise<_apollo_client.ApolloQueryResult<any>>;
544
+ };
545
+
546
+ export { useAddParticipantToChat, useAddUserFavouriteResource, useAddUserGoingResource, useAddUserInterestResource, useAddUserPresentResource, useAdminUpdateResourceType, useCancelSubscription, useContactUs, useCreateAd, useCreateBulkNotifications, useCreateCheckoutSession, useCreateEvent, useCreateEventInfo, useCreatePoster, useCreatePushToken, useCreateRelation, useCreateResourceActivity, useCreateTester, useCreateUser, useCreateVendor, useCreateVendorInfo, useDeleteAd, useDeleteAllNotifications, useDeleteChat, useDeleteEvent, useDeleteNotification, useDeleteRelation, useDeleteTester, useDeleteUser, useDeleteVendor, useGetAd, useGetAds, useGetAdsByRegion, useGetChat, useGetChatSubscription, useGetEvent, useGetEventInfo, useGetEventRelations, useGetEvents, useGetEventsByRegion, useGetEventsNearMe, useGetNotificationCount, useGetNotificationCountSubscription, useGetRelation, useGetRelationByEventAndVendor, useGetResourceActivities, useGetResourceConnections, useGetSubscriptionStatus, useGetTester, useGetTesters, useGetUser, useGetUserActivities, useGetUserChats, useGetUserEvents, useGetUserNotifications, useGetUserNotificationsSubscription, useGetUserVendors, useGetUsers, useGetVendor, useGetVendorInfo, useGetVendorRelations, useGetVendors, useGetVendorsByRegion, useLogin, useLogout, useMarkAllNotificationsRead, useMarkNotificationRead, useRefreshToken, useRegister, useRemoveParticipantFromChat, useRemoveUserFavouriteResource, useRemoveUserGoingResource, useRemoveUserInterestResource, useRemoveUserPresentResource, useRequestPasswordReset, useResetPassword, useSearchEvents, useSearchVendors, useSelectPackage, useSendChatMessage, useUpdateAd, useUpdateEvent, useUpdateEventInfo, useUpdateRelation, useUpdateSubscriptionPlan, useUpdateTester, useUpdateUser, useUpdateVendor, useUpdateVendorInfo, useValidateVerificationToken };
@@ -1,4 +1,4 @@
1
- import "../chunk-TGZY4O6C.mjs";
1
+ import "../chunk-HL4SAT7R.mjs";
2
2
 
3
3
  // src/graphql/hooks/admin/hooksMutation.ts
4
4
  import { useMutation } from "@apollo/client";
@@ -2536,6 +2536,82 @@ var useGetResourceActivities = (resourceId, resourceType) => {
2536
2536
  resourceActivities: data?.resourceActivities
2537
2537
  };
2538
2538
  };
2539
+
2540
+ // src/graphql/hooks/stripe/hooksMutation.ts
2541
+ import { useMutation as useMutation15 } from "@apollo/client";
2542
+
2543
+ // src/graphql/mutations/stripe.ts
2544
+ import { gql as gql27 } from "@apollo/client";
2545
+ var CREATE_CHECKOUT_SESSION_MUTATION = gql27`
2546
+ mutation createCheckoutSession($planId: LicencesEnumType!) {
2547
+ createCheckoutSession(planId: $planId) {
2548
+ sessionId
2549
+ checkoutUrl
2550
+ }
2551
+ }
2552
+ `;
2553
+ var CANCEL_SUBSCRIPTION_MUTATION = gql27`
2554
+ mutation cancelSubscription {
2555
+ cancelSubscription
2556
+ }
2557
+ `;
2558
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = gql27`
2559
+ mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!) {
2560
+ updateSubscriptionPlan(newPlanId: $newPlanId) {
2561
+ subscriptionId
2562
+ status
2563
+ priceId
2564
+ currentPlan
2565
+ }
2566
+ }
2567
+ `;
2568
+
2569
+ // src/graphql/hooks/stripe/hooksMutation.ts
2570
+ var useCreateCheckoutSession = () => {
2571
+ const [createCheckoutSession, { loading, error }] = useMutation15(
2572
+ CREATE_CHECKOUT_SESSION_MUTATION
2573
+ );
2574
+ return { createCheckoutSession, error, loading };
2575
+ };
2576
+ var useCancelSubscription = () => {
2577
+ const [cancelSubscription, { loading, error }] = useMutation15(
2578
+ CANCEL_SUBSCRIPTION_MUTATION
2579
+ );
2580
+ return { cancelSubscription, error, loading };
2581
+ };
2582
+ var useUpdateSubscriptionPlan = () => {
2583
+ const [updateSubscriptionPlan, { loading, error }] = useMutation15(
2584
+ UPDATE_SUBSCRIPTION_PLAN_MUTATION
2585
+ );
2586
+ return { error, loading, updateSubscriptionPlan };
2587
+ };
2588
+
2589
+ // src/graphql/hooks/stripe/hooksQuery.ts
2590
+ import { useQuery as useQuery10 } from "@apollo/client";
2591
+
2592
+ // src/graphql/queries/stripe.ts
2593
+ import { gql as gql28 } from "@apollo/client";
2594
+ var GET_SUBSCRIPTION_STATUS = gql28`
2595
+ query getSubscriptionStatus {
2596
+ getSubscriptionStatus {
2597
+ subscriptionId
2598
+ status
2599
+ priceId
2600
+ currentPlan
2601
+ }
2602
+ }
2603
+ `;
2604
+
2605
+ // src/graphql/hooks/stripe/hooksQuery.ts
2606
+ var useGetSubscriptionStatus = () => {
2607
+ const { data, loading, error, refetch } = useQuery10(GET_SUBSCRIPTION_STATUS);
2608
+ return {
2609
+ data: data?.getSubscriptionStatus,
2610
+ error,
2611
+ loading,
2612
+ refetch
2613
+ };
2614
+ };
2539
2615
  export {
2540
2616
  useAddParticipantToChat,
2541
2617
  useAddUserFavouriteResource,
@@ -2543,9 +2619,11 @@ export {
2543
2619
  useAddUserInterestResource,
2544
2620
  useAddUserPresentResource,
2545
2621
  useAdminUpdateResourceType,
2622
+ useCancelSubscription,
2546
2623
  useContactUs,
2547
2624
  useCreateAd,
2548
2625
  useCreateBulkNotifications,
2626
+ useCreateCheckoutSession,
2549
2627
  useCreateEvent,
2550
2628
  useCreateEventInfo,
2551
2629
  useCreatePoster,
@@ -2582,6 +2660,7 @@ export {
2582
2660
  useGetRelationByEventAndVendor,
2583
2661
  useGetResourceActivities,
2584
2662
  useGetResourceConnections,
2663
+ useGetSubscriptionStatus,
2585
2664
  useGetTester,
2586
2665
  useGetTesters,
2587
2666
  useGetUser,
@@ -2618,6 +2697,7 @@ export {
2618
2697
  useUpdateEvent,
2619
2698
  useUpdateEventInfo,
2620
2699
  useUpdateRelation,
2700
+ useUpdateSubscriptionPlan,
2621
2701
  useUpdateTester,
2622
2702
  useUpdateUser,
2623
2703
  useUpdateVendor,