@timardex/cluemart-shared 1.2.46 → 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.
- package/dist/{ad-BnY_hAq4.d.ts → ad-BkTdN8xM.d.mts} +18 -3
- package/dist/{ad-8uwFwLyG.d.mts → ad-STgnIJ8B.d.ts} +18 -3
- package/dist/{auth-ASeQbrMo.d.mts → auth-CQPRj4DB.d.mts} +1 -1
- package/dist/{auth-DFjTVwMp.d.ts → auth-OLWCR6Zr.d.ts} +1 -1
- package/dist/{chunk-TGZY4O6C.mjs → chunk-HL4SAT7R.mjs} +14 -6
- package/dist/chunk-HL4SAT7R.mjs.map +1 -0
- package/dist/{chunk-7WFI7PUD.mjs → chunk-KZ2VLPYF.mjs} +2 -2
- package/dist/enums/index.cjs +13 -4
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +12 -6
- package/dist/enums/index.d.ts +12 -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.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +2 -2
- package/dist/{global-DNG_KXig.d.ts → global-Be5v6emI.d.ts} +5 -6
- package/dist/{global-4G0uUe2Y.d.mts → global-qg1lwtYo.d.mts} +5 -6
- package/dist/graphql/index.cjs +94 -6
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +26 -3
- package/dist/graphql/index.d.ts +26 -3
- package/dist/graphql/index.mjs +91 -7
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +19 -4
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +4 -2
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +108 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +54 -11
- package/dist/index.d.ts +54 -11
- package/dist/index.mjs +103 -10
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.cjs +4 -4
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-TGZY4O6C.mjs.map +0 -1
- /package/dist/{chunk-7WFI7PUD.mjs.map → chunk-KZ2VLPYF.mjs.map} +0 -0
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
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
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-
|
|
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-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
|
-
|
|
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-HL4SAT7R.mjs";
|
|
2
2
|
|
|
3
3
|
// src/graphql/hooks/admin/hooksMutation.ts
|
|
4
4
|
import { useMutation } from "@apollo/client";
|
|
@@ -163,17 +163,21 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql2`
|
|
|
163
163
|
`;
|
|
164
164
|
var RELATION_DATES_FRAGMENT = gql2`
|
|
165
165
|
fragment RelationDates on RelationDateType {
|
|
166
|
+
dateTime {
|
|
167
|
+
dateStatus
|
|
168
|
+
endDate
|
|
169
|
+
endTime
|
|
170
|
+
startDate
|
|
171
|
+
startTime
|
|
172
|
+
stallType {
|
|
173
|
+
...StallTypeFields
|
|
174
|
+
}
|
|
175
|
+
}
|
|
166
176
|
lastUpdateBy {
|
|
167
177
|
resourceId
|
|
168
178
|
userEmail
|
|
169
179
|
}
|
|
170
180
|
paymentReference
|
|
171
|
-
stallType {
|
|
172
|
-
...StallTypeFields
|
|
173
|
-
}
|
|
174
|
-
dateStatus
|
|
175
|
-
startDate
|
|
176
|
-
startTime
|
|
177
181
|
status
|
|
178
182
|
}
|
|
179
183
|
${STALL_TYPE_FIELDS_FRAGMENT}
|
|
@@ -2532,6 +2536,82 @@ var useGetResourceActivities = (resourceId, resourceType) => {
|
|
|
2532
2536
|
resourceActivities: data?.resourceActivities
|
|
2533
2537
|
};
|
|
2534
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
|
+
};
|
|
2535
2615
|
export {
|
|
2536
2616
|
useAddParticipantToChat,
|
|
2537
2617
|
useAddUserFavouriteResource,
|
|
@@ -2539,9 +2619,11 @@ export {
|
|
|
2539
2619
|
useAddUserInterestResource,
|
|
2540
2620
|
useAddUserPresentResource,
|
|
2541
2621
|
useAdminUpdateResourceType,
|
|
2622
|
+
useCancelSubscription,
|
|
2542
2623
|
useContactUs,
|
|
2543
2624
|
useCreateAd,
|
|
2544
2625
|
useCreateBulkNotifications,
|
|
2626
|
+
useCreateCheckoutSession,
|
|
2545
2627
|
useCreateEvent,
|
|
2546
2628
|
useCreateEventInfo,
|
|
2547
2629
|
useCreatePoster,
|
|
@@ -2578,6 +2660,7 @@ export {
|
|
|
2578
2660
|
useGetRelationByEventAndVendor,
|
|
2579
2661
|
useGetResourceActivities,
|
|
2580
2662
|
useGetResourceConnections,
|
|
2663
|
+
useGetSubscriptionStatus,
|
|
2581
2664
|
useGetTester,
|
|
2582
2665
|
useGetTesters,
|
|
2583
2666
|
useGetUser,
|
|
@@ -2614,6 +2697,7 @@ export {
|
|
|
2614
2697
|
useUpdateEvent,
|
|
2615
2698
|
useUpdateEventInfo,
|
|
2616
2699
|
useUpdateRelation,
|
|
2700
|
+
useUpdateSubscriptionPlan,
|
|
2617
2701
|
useUpdateTester,
|
|
2618
2702
|
useUpdateUser,
|
|
2619
2703
|
useUpdateVendor,
|