@usethrottle/subscriptions 3.0.0 → 3.1.0

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.
@@ -62,7 +62,7 @@ interface Subscription {
62
62
  interface SubscriptionRenewalIssue {
63
63
  kind: 'system_error' | 'orphan_charge';
64
64
  /** Stable code; `message` is its fixed, merchant-safe sentence. */
65
- reason: 'tax_quote_failed' | 'internal_error' | 'record_failed';
65
+ reason: 'tax_quote_failed' | 'internal_error' | 'period_not_advanced' | 'record_failed';
66
66
  count: number;
67
67
  firstAt?: string;
68
68
  lastAt: string;
@@ -62,7 +62,7 @@ interface Subscription {
62
62
  interface SubscriptionRenewalIssue {
63
63
  kind: 'system_error' | 'orphan_charge';
64
64
  /** Stable code; `message` is its fixed, merchant-safe sentence. */
65
- reason: 'tax_quote_failed' | 'internal_error' | 'record_failed';
65
+ reason: 'tax_quote_failed' | 'internal_error' | 'period_not_advanced' | 'record_failed';
66
66
  count: number;
67
67
  firstAt?: string;
68
68
  lastAt: string;
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { r as SubscriptionProviderProps, z as SubscriptionsClientContract, m as SubscriptionFetcher, M as MutationState, S as Subscription, C as CancelSubscriptionInput, a as ChangePlanInput, e as CheckoutSession, f as CreateCheckoutSessionInput, g as CreateSubscriptionInput, Q as QueryOptions, h as Customer, k as QueryState, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, H as TrialEligibilityResult, F as TrialEligibilityInput, U as UpdateSubscriptionInput, D as DunningBannerProps, v as SubscriptionStatusBadgeProps, E as TrialCountdownProps, u as SubscriptionStatus } from './errors-CfjKk5CU.cjs';
2
- export { b as ChangeQuantityInput, c as CheckoutCollectInput, d as CheckoutCustomerInput, j as Pagination, R as RecordUsageInput, l as RecurringIntent, n as SubscriptionInterval, o as SubscriptionIntervalUnit, p as SubscriptionInvoiceRefund, q as SubscriptionProration, s as SubscriptionRenewalIssue, t as SubscriptionSort, w as SubscriptionTaxAddress, x as SubscriptionUsageItem, y as SubscriptionsClient, A as SubscriptionsClientOptions, T as ThrottleEnvelope, B as ThrottleSubscriptionsError, G as TrialEligibilityReason, W as WaivePeriodInput, I as createSubscriptionsClient } from './errors-CfjKk5CU.cjs';
1
+ import { r as SubscriptionProviderProps, z as SubscriptionsClientContract, m as SubscriptionFetcher, M as MutationState, S as Subscription, C as CancelSubscriptionInput, a as ChangePlanInput, e as CheckoutSession, f as CreateCheckoutSessionInput, g as CreateSubscriptionInput, Q as QueryOptions, h as Customer, k as QueryState, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, H as TrialEligibilityResult, F as TrialEligibilityInput, U as UpdateSubscriptionInput, D as DunningBannerProps, v as SubscriptionStatusBadgeProps, E as TrialCountdownProps, u as SubscriptionStatus } from './errors-DH3G3yDp.cjs';
2
+ export { b as ChangeQuantityInput, c as CheckoutCollectInput, d as CheckoutCustomerInput, j as Pagination, R as RecordUsageInput, l as RecurringIntent, n as SubscriptionInterval, o as SubscriptionIntervalUnit, p as SubscriptionInvoiceRefund, q as SubscriptionProration, s as SubscriptionRenewalIssue, t as SubscriptionSort, w as SubscriptionTaxAddress, x as SubscriptionUsageItem, y as SubscriptionsClient, A as SubscriptionsClientOptions, T as ThrottleEnvelope, B as ThrottleSubscriptionsError, G as TrialEligibilityReason, W as WaivePeriodInput, I as createSubscriptionsClient } from './errors-DH3G3yDp.cjs';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
  export { ThrottleError, isThrottleError } from '@usethrottle/errors';
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { r as SubscriptionProviderProps, z as SubscriptionsClientContract, m as SubscriptionFetcher, M as MutationState, S as Subscription, C as CancelSubscriptionInput, a as ChangePlanInput, e as CheckoutSession, f as CreateCheckoutSessionInput, g as CreateSubscriptionInput, Q as QueryOptions, h as Customer, k as QueryState, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, H as TrialEligibilityResult, F as TrialEligibilityInput, U as UpdateSubscriptionInput, D as DunningBannerProps, v as SubscriptionStatusBadgeProps, E as TrialCountdownProps, u as SubscriptionStatus } from './errors-CfjKk5CU.js';
2
- export { b as ChangeQuantityInput, c as CheckoutCollectInput, d as CheckoutCustomerInput, j as Pagination, R as RecordUsageInput, l as RecurringIntent, n as SubscriptionInterval, o as SubscriptionIntervalUnit, p as SubscriptionInvoiceRefund, q as SubscriptionProration, s as SubscriptionRenewalIssue, t as SubscriptionSort, w as SubscriptionTaxAddress, x as SubscriptionUsageItem, y as SubscriptionsClient, A as SubscriptionsClientOptions, T as ThrottleEnvelope, B as ThrottleSubscriptionsError, G as TrialEligibilityReason, W as WaivePeriodInput, I as createSubscriptionsClient } from './errors-CfjKk5CU.js';
1
+ import { r as SubscriptionProviderProps, z as SubscriptionsClientContract, m as SubscriptionFetcher, M as MutationState, S as Subscription, C as CancelSubscriptionInput, a as ChangePlanInput, e as CheckoutSession, f as CreateCheckoutSessionInput, g as CreateSubscriptionInput, Q as QueryOptions, h as Customer, k as QueryState, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, H as TrialEligibilityResult, F as TrialEligibilityInput, U as UpdateSubscriptionInput, D as DunningBannerProps, v as SubscriptionStatusBadgeProps, E as TrialCountdownProps, u as SubscriptionStatus } from './errors-DH3G3yDp.js';
2
+ export { b as ChangeQuantityInput, c as CheckoutCollectInput, d as CheckoutCustomerInput, j as Pagination, R as RecordUsageInput, l as RecurringIntent, n as SubscriptionInterval, o as SubscriptionIntervalUnit, p as SubscriptionInvoiceRefund, q as SubscriptionProration, s as SubscriptionRenewalIssue, t as SubscriptionSort, w as SubscriptionTaxAddress, x as SubscriptionUsageItem, y as SubscriptionsClient, A as SubscriptionsClientOptions, T as ThrottleEnvelope, B as ThrottleSubscriptionsError, G as TrialEligibilityReason, W as WaivePeriodInput, I as createSubscriptionsClient } from './errors-DH3G3yDp.js';
3
3
  import * as react_jsx_runtime from 'react/jsx-runtime';
4
4
  import { ReactNode } from 'react';
5
5
  export { ThrottleError, isThrottleError } from '@usethrottle/errors';
package/dist/server.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Subscription } from './errors-CfjKk5CU.cjs';
2
- export { e as CheckoutSession, f as CreateCheckoutSessionInput, h as Customer, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, y as SubscriptionsClient, z as SubscriptionsClientContract, A as SubscriptionsClientOptions, B as ThrottleSubscriptionsError, F as TrialEligibilityInput, H as TrialEligibilityResult, I as createSubscriptionsClient } from './errors-CfjKk5CU.cjs';
1
+ import { S as Subscription } from './errors-DH3G3yDp.cjs';
2
+ export { e as CheckoutSession, f as CreateCheckoutSessionInput, h as Customer, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, y as SubscriptionsClient, z as SubscriptionsClientContract, A as SubscriptionsClientOptions, B as ThrottleSubscriptionsError, F as TrialEligibilityInput, H as TrialEligibilityResult, I as createSubscriptionsClient } from './errors-DH3G3yDp.cjs';
3
3
  import 'react';
4
4
  import '@usethrottle/errors';
5
5
 
package/dist/server.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Subscription } from './errors-CfjKk5CU.js';
2
- export { e as CheckoutSession, f as CreateCheckoutSessionInput, h as Customer, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, y as SubscriptionsClient, z as SubscriptionsClientContract, A as SubscriptionsClientOptions, B as ThrottleSubscriptionsError, F as TrialEligibilityInput, H as TrialEligibilityResult, I as createSubscriptionsClient } from './errors-CfjKk5CU.js';
1
+ import { S as Subscription } from './errors-DH3G3yDp.js';
2
+ export { e as CheckoutSession, f as CreateCheckoutSessionInput, h as Customer, i as CustomerPaymentMethod, L as ListSubscriptionsParams, P as PaginatedSubscriptions, y as SubscriptionsClient, z as SubscriptionsClientContract, A as SubscriptionsClientOptions, B as ThrottleSubscriptionsError, F as TrialEligibilityInput, H as TrialEligibilityResult, I as createSubscriptionsClient } from './errors-DH3G3yDp.js';
3
3
  import 'react';
4
4
  import '@usethrottle/errors';
5
5
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usethrottle/subscriptions",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "React hooks, server proxy helpers, and primitive components for Throttle subscriptions.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",