@timardex/cluemart-shared 1.3.86 → 1.3.87

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.
@@ -85,6 +85,7 @@ __export(graphql_exports, {
85
85
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
86
86
  useGetResourceActivity: () => useGetResourceActivity,
87
87
  useGetResourceConnections: () => useGetResourceConnections,
88
+ useGetSubscriptionPlans: () => useGetSubscriptionPlans,
88
89
  useGetSubscriptionStatus: () => useGetSubscriptionStatus,
89
90
  useGetTester: () => useGetTester,
90
91
  useGetTesters: () => useGetTesters,
@@ -3136,6 +3137,34 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3136
3137
  }
3137
3138
  }
3138
3139
  `;
3140
+ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3141
+ query getSubscriptionPlans {
3142
+ getSubscriptionPlans {
3143
+ plans {
3144
+ name
3145
+ description
3146
+ licenceType
3147
+ billingPeriod
3148
+ stripeProductId
3149
+ stripePriceId
3150
+ isEligibleForDiscount
3151
+ pricing {
3152
+ basePrice
3153
+ discountedPrice
3154
+ hasDiscount
3155
+ discountPercent
3156
+ discountAmount
3157
+ currency
3158
+ formattedBasePrice
3159
+ formattedDiscountedPrice
3160
+ }
3161
+ }
3162
+ isNewUser
3163
+ isTester
3164
+ appliedDiscountType
3165
+ }
3166
+ }
3167
+ `;
3139
3168
 
3140
3169
  // src/graphql/hooks/stripe/hooksQuery.ts
3141
3170
  var useGetSubscriptionStatus = () => {
@@ -3147,6 +3176,15 @@ var useGetSubscriptionStatus = () => {
3147
3176
  refetch
3148
3177
  };
3149
3178
  };
3179
+ var useGetSubscriptionPlans = () => {
3180
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_PLANS);
3181
+ return {
3182
+ data: data?.getSubscriptionPlans,
3183
+ error,
3184
+ loading,
3185
+ refetch
3186
+ };
3187
+ };
3150
3188
 
3151
3189
  // src/graphql/hooks/partner/hooksMutation.ts
3152
3190
  var import_client57 = require("@apollo/client");
@@ -3538,6 +3576,7 @@ var useGetAppSettings = () => {
3538
3576
  useGetRelationByEventAndVendor,
3539
3577
  useGetResourceActivity,
3540
3578
  useGetResourceConnections,
3579
+ useGetSubscriptionPlans,
3541
3580
  useGetSubscriptionStatus,
3542
3581
  useGetTester,
3543
3582
  useGetTesters,