@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.
Files changed (47) hide show
  1. package/dist/{ad-BnY_hAq4.d.ts → ad-BkTdN8xM.d.mts} +18 -3
  2. package/dist/{ad-8uwFwLyG.d.mts → ad-STgnIJ8B.d.ts} +18 -3
  3. package/dist/{auth-ASeQbrMo.d.mts → auth-CQPRj4DB.d.mts} +1 -1
  4. package/dist/{auth-DFjTVwMp.d.ts → auth-OLWCR6Zr.d.ts} +1 -1
  5. package/dist/{chunk-TGZY4O6C.mjs → chunk-HL4SAT7R.mjs} +14 -6
  6. package/dist/chunk-HL4SAT7R.mjs.map +1 -0
  7. package/dist/{chunk-7WFI7PUD.mjs → chunk-KZ2VLPYF.mjs} +2 -2
  8. package/dist/enums/index.cjs +13 -4
  9. package/dist/enums/index.cjs.map +1 -1
  10. package/dist/enums/index.d.mts +12 -6
  11. package/dist/enums/index.d.ts +12 -6
  12. package/dist/enums/index.mjs +3 -1
  13. package/dist/formFields/index.cjs +4 -4
  14. package/dist/formFields/index.cjs.map +1 -1
  15. package/dist/formFields/index.d.mts +1 -1
  16. package/dist/formFields/index.d.ts +1 -1
  17. package/dist/formFields/index.mjs +2 -2
  18. package/dist/{global-DNG_KXig.d.ts → global-Be5v6emI.d.ts} +5 -6
  19. package/dist/{global-4G0uUe2Y.d.mts → global-qg1lwtYo.d.mts} +5 -6
  20. package/dist/graphql/index.cjs +94 -6
  21. package/dist/graphql/index.cjs.map +1 -1
  22. package/dist/graphql/index.d.mts +26 -3
  23. package/dist/graphql/index.d.ts +26 -3
  24. package/dist/graphql/index.mjs +91 -7
  25. package/dist/graphql/index.mjs.map +1 -1
  26. package/dist/hooks/index.cjs +19 -4
  27. package/dist/hooks/index.cjs.map +1 -1
  28. package/dist/hooks/index.d.mts +3 -3
  29. package/dist/hooks/index.d.ts +3 -3
  30. package/dist/hooks/index.mjs +4 -2
  31. package/dist/hooks/index.mjs.map +1 -1
  32. package/dist/index.cjs +108 -10
  33. package/dist/index.cjs.map +1 -1
  34. package/dist/index.d.mts +54 -11
  35. package/dist/index.d.ts +54 -11
  36. package/dist/index.mjs +103 -10
  37. package/dist/index.mjs.map +1 -1
  38. package/dist/types/index.d.mts +3 -3
  39. package/dist/types/index.d.ts +3 -3
  40. package/dist/utils/index.cjs +4 -4
  41. package/dist/utils/index.cjs.map +1 -1
  42. package/dist/utils/index.d.mts +1 -1
  43. package/dist/utils/index.d.ts +1 -1
  44. package/dist/utils/index.mjs +2 -2
  45. package/package.json +1 -1
  46. package/dist/chunk-TGZY4O6C.mjs.map +0 -1
  47. /package/dist/{chunk-7WFI7PUD.mjs.map → chunk-KZ2VLPYF.mjs.map} +0 -0
@@ -26,9 +26,11 @@ __export(graphql_exports, {
26
26
  useAddUserInterestResource: () => useAddUserInterestResource,
27
27
  useAddUserPresentResource: () => useAddUserPresentResource,
28
28
  useAdminUpdateResourceType: () => useAdminUpdateResourceType,
29
+ useCancelSubscription: () => useCancelSubscription,
29
30
  useContactUs: () => useContactUs,
30
31
  useCreateAd: () => useCreateAd,
31
32
  useCreateBulkNotifications: () => useCreateBulkNotifications,
33
+ useCreateCheckoutSession: () => useCreateCheckoutSession,
32
34
  useCreateEvent: () => useCreateEvent,
33
35
  useCreateEventInfo: () => useCreateEventInfo,
34
36
  useCreatePoster: () => useCreatePoster,
@@ -65,6 +67,7 @@ __export(graphql_exports, {
65
67
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
66
68
  useGetResourceActivities: () => useGetResourceActivities,
67
69
  useGetResourceConnections: () => useGetResourceConnections,
70
+ useGetSubscriptionStatus: () => useGetSubscriptionStatus,
68
71
  useGetTester: () => useGetTester,
69
72
  useGetTesters: () => useGetTesters,
70
73
  useGetUser: () => useGetUser,
@@ -101,6 +104,7 @@ __export(graphql_exports, {
101
104
  useUpdateEvent: () => useUpdateEvent,
102
105
  useUpdateEventInfo: () => useUpdateEventInfo,
103
106
  useUpdateRelation: () => useUpdateRelation,
107
+ useUpdateSubscriptionPlan: () => useUpdateSubscriptionPlan,
104
108
  useUpdateTester: () => useUpdateTester,
105
109
  useUpdateUser: () => useUpdateUser,
106
110
  useUpdateVendor: () => useUpdateVendor,
@@ -272,17 +276,21 @@ var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
272
276
  `;
273
277
  var RELATION_DATES_FRAGMENT = import_client2.gql`
274
278
  fragment RelationDates on RelationDateType {
279
+ dateTime {
280
+ dateStatus
281
+ endDate
282
+ endTime
283
+ startDate
284
+ startTime
285
+ stallType {
286
+ ...StallTypeFields
287
+ }
288
+ }
275
289
  lastUpdateBy {
276
290
  resourceId
277
291
  userEmail
278
292
  }
279
293
  paymentReference
280
- stallType {
281
- ...StallTypeFields
282
- }
283
- dateStatus
284
- startDate
285
- startTime
286
294
  status
287
295
  }
288
296
  ${STALL_TYPE_FIELDS_FRAGMENT}
@@ -2641,6 +2649,82 @@ var useGetResourceActivities = (resourceId, resourceType) => {
2641
2649
  resourceActivities: data?.resourceActivities
2642
2650
  };
2643
2651
  };
2652
+
2653
+ // src/graphql/hooks/stripe/hooksMutation.ts
2654
+ var import_client52 = require("@apollo/client");
2655
+
2656
+ // src/graphql/mutations/stripe.ts
2657
+ var import_client51 = require("@apollo/client");
2658
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client51.gql`
2659
+ mutation createCheckoutSession($planId: LicencesEnumType!) {
2660
+ createCheckoutSession(planId: $planId) {
2661
+ sessionId
2662
+ checkoutUrl
2663
+ }
2664
+ }
2665
+ `;
2666
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client51.gql`
2667
+ mutation cancelSubscription {
2668
+ cancelSubscription
2669
+ }
2670
+ `;
2671
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client51.gql`
2672
+ mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!) {
2673
+ updateSubscriptionPlan(newPlanId: $newPlanId) {
2674
+ subscriptionId
2675
+ status
2676
+ priceId
2677
+ currentPlan
2678
+ }
2679
+ }
2680
+ `;
2681
+
2682
+ // src/graphql/hooks/stripe/hooksMutation.ts
2683
+ var useCreateCheckoutSession = () => {
2684
+ const [createCheckoutSession, { loading, error }] = (0, import_client52.useMutation)(
2685
+ CREATE_CHECKOUT_SESSION_MUTATION
2686
+ );
2687
+ return { createCheckoutSession, error, loading };
2688
+ };
2689
+ var useCancelSubscription = () => {
2690
+ const [cancelSubscription, { loading, error }] = (0, import_client52.useMutation)(
2691
+ CANCEL_SUBSCRIPTION_MUTATION
2692
+ );
2693
+ return { cancelSubscription, error, loading };
2694
+ };
2695
+ var useUpdateSubscriptionPlan = () => {
2696
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client52.useMutation)(
2697
+ UPDATE_SUBSCRIPTION_PLAN_MUTATION
2698
+ );
2699
+ return { error, loading, updateSubscriptionPlan };
2700
+ };
2701
+
2702
+ // src/graphql/hooks/stripe/hooksQuery.ts
2703
+ var import_client54 = require("@apollo/client");
2704
+
2705
+ // src/graphql/queries/stripe.ts
2706
+ var import_client53 = require("@apollo/client");
2707
+ var GET_SUBSCRIPTION_STATUS = import_client53.gql`
2708
+ query getSubscriptionStatus {
2709
+ getSubscriptionStatus {
2710
+ subscriptionId
2711
+ status
2712
+ priceId
2713
+ currentPlan
2714
+ }
2715
+ }
2716
+ `;
2717
+
2718
+ // src/graphql/hooks/stripe/hooksQuery.ts
2719
+ var useGetSubscriptionStatus = () => {
2720
+ const { data, loading, error, refetch } = (0, import_client54.useQuery)(GET_SUBSCRIPTION_STATUS);
2721
+ return {
2722
+ data: data?.getSubscriptionStatus,
2723
+ error,
2724
+ loading,
2725
+ refetch
2726
+ };
2727
+ };
2644
2728
  // Annotate the CommonJS export names for ESM import in node:
2645
2729
  0 && (module.exports = {
2646
2730
  useAddParticipantToChat,
@@ -2649,9 +2733,11 @@ var useGetResourceActivities = (resourceId, resourceType) => {
2649
2733
  useAddUserInterestResource,
2650
2734
  useAddUserPresentResource,
2651
2735
  useAdminUpdateResourceType,
2736
+ useCancelSubscription,
2652
2737
  useContactUs,
2653
2738
  useCreateAd,
2654
2739
  useCreateBulkNotifications,
2740
+ useCreateCheckoutSession,
2655
2741
  useCreateEvent,
2656
2742
  useCreateEventInfo,
2657
2743
  useCreatePoster,
@@ -2688,6 +2774,7 @@ var useGetResourceActivities = (resourceId, resourceType) => {
2688
2774
  useGetRelationByEventAndVendor,
2689
2775
  useGetResourceActivities,
2690
2776
  useGetResourceConnections,
2777
+ useGetSubscriptionStatus,
2691
2778
  useGetTester,
2692
2779
  useGetTesters,
2693
2780
  useGetUser,
@@ -2724,6 +2811,7 @@ var useGetResourceActivities = (resourceId, resourceType) => {
2724
2811
  useUpdateEvent,
2725
2812
  useUpdateEventInfo,
2726
2813
  useUpdateRelation,
2814
+ useUpdateSubscriptionPlan,
2727
2815
  useUpdateTester,
2728
2816
  useUpdateUser,
2729
2817
  useUpdateVendor,