@timardex/cluemart-shared 1.3.85 → 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");
@@ -3386,11 +3424,14 @@ var useDeletePost = () => {
3386
3424
  // src/graphql/hooks/post/hooksQuery.ts
3387
3425
  var import_client62 = require("@apollo/client");
3388
3426
  var useGetPosts = () => {
3389
- const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS);
3427
+ const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS, {
3428
+ fetchPolicy: "network-only"
3429
+ });
3390
3430
  return { error, loading, posts: data?.posts || [], refetch };
3391
3431
  };
3392
3432
  var useGetPost = (_id) => {
3393
3433
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POST, {
3434
+ fetchPolicy: "network-only",
3394
3435
  skip: !_id,
3395
3436
  variables: { _id }
3396
3437
  });
@@ -3398,6 +3439,7 @@ var useGetPost = (_id) => {
3398
3439
  };
3399
3440
  var useGetPostsByType = (postType) => {
3400
3441
  const { data, loading, error, refetch } = (0, import_client62.useQuery)(GET_POSTS_BY_TYPE, {
3442
+ fetchPolicy: "network-only",
3401
3443
  skip: !postType,
3402
3444
  variables: { postType }
3403
3445
  });
@@ -3534,6 +3576,7 @@ var useGetAppSettings = () => {
3534
3576
  useGetRelationByEventAndVendor,
3535
3577
  useGetResourceActivity,
3536
3578
  useGetResourceConnections,
3579
+ useGetSubscriptionPlans,
3537
3580
  useGetSubscriptionStatus,
3538
3581
  useGetTester,
3539
3582
  useGetTesters,