@timardex/cluemart-shared 1.2.47 → 1.2.49
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-WPUxx9MQ.d.ts → ad-BBJMdfCl.d.ts} +18 -2
- package/dist/{ad-BWRIcE3i.d.mts → ad-DPP5n_ZS.d.mts} +18 -2
- package/dist/{chunk-7WFI7PUD.mjs → chunk-HFYQRL77.mjs} +2 -2
- package/dist/{chunk-TGZY4O6C.mjs → chunk-WNRV4DSZ.mjs} +15 -6
- package/dist/{chunk-TGZY4O6C.mjs.map → chunk-WNRV4DSZ.mjs.map} +1 -1
- package/dist/enums/index.cjs +14 -4
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +13 -6
- package/dist/enums/index.d.ts +13 -6
- package/dist/enums/index.mjs +3 -1
- package/dist/formFields/index.cjs +4 -4
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/graphql/index.cjs +86 -2
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +25 -2
- package/dist/graphql/index.d.ts +25 -2
- package/dist/graphql/index.mjs +83 -3
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +9 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +7 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +105 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +52 -6
- package/dist/index.d.ts +52 -6
- package/dist/index.mjs +100 -6
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.cjs +4 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- /package/dist/{chunk-7WFI7PUD.mjs.map → chunk-HFYQRL77.mjs.map} +0 -0
package/dist/graphql/index.d.ts
CHANGED
|
@@ -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-
|
|
5
|
+
import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData } from '../ad-BBJMdfCl.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
|
-
|
|
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 };
|
package/dist/graphql/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../chunk-
|
|
1
|
+
import "../chunk-WNRV4DSZ.mjs";
|
|
2
2
|
|
|
3
3
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
4
4
|
import { useMutation } from "@apollo/client";
|
|
@@ -124,11 +124,11 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
124
124
|
createdAt
|
|
125
125
|
deletedAt
|
|
126
126
|
email
|
|
127
|
-
|
|
127
|
+
events
|
|
128
128
|
firstName
|
|
129
|
+
isTester
|
|
129
130
|
lastName
|
|
130
131
|
licences
|
|
131
|
-
events
|
|
132
132
|
platform
|
|
133
133
|
preferredRegion
|
|
134
134
|
partners {
|
|
@@ -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,
|