autumn-js 0.0.104 → 0.0.105

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 (139) hide show
  1. package/dist/libraries/backend/better-auth.d.mts +18 -18
  2. package/dist/libraries/backend/better-auth.d.ts +18 -18
  3. package/dist/libraries/backend/better-auth.mjs +2 -2
  4. package/dist/libraries/backend/convex.mjs +2 -2
  5. package/dist/libraries/backend/elysia.mjs +2 -2
  6. package/dist/libraries/backend/express.d.mts +1 -1
  7. package/dist/libraries/backend/express.d.ts +1 -1
  8. package/dist/libraries/backend/express.mjs +2 -2
  9. package/dist/libraries/backend/fastify.mjs +2 -2
  10. package/dist/libraries/backend/hono.mjs +2 -2
  11. package/dist/libraries/backend/next.mjs +2 -2
  12. package/dist/libraries/backend/react-router.mjs +2 -2
  13. package/dist/libraries/backend/remix_dep.mjs +2 -2
  14. package/dist/libraries/backend/routes/backendRouter.mjs +2 -2
  15. package/dist/libraries/backend/supabase.mjs +2 -2
  16. package/dist/libraries/backend/tanstack.mjs +2 -2
  17. package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
  18. package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
  19. package/dist/libraries/react/AutumnContext.d.mts +5 -5
  20. package/dist/libraries/react/AutumnContext.d.ts +5 -5
  21. package/dist/libraries/react/AutumnContext.mjs +4 -4
  22. package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -5
  23. package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -5
  24. package/dist/libraries/react/BaseAutumnProvider.mjs +8 -8
  25. package/dist/libraries/react/{ReactAutumnClient-CEv9YGLM.d.ts → ReactAutumnClient-BICsMJ-m.d.ts} +4 -4
  26. package/dist/libraries/react/{ReactAutumnClient-BGI56QI_.d.mts → ReactAutumnClient-BuQHr-be.d.mts} +4 -4
  27. package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
  28. package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
  29. package/dist/libraries/react/ReactAutumnProvider.mjs +9 -9
  30. package/dist/libraries/react/{attachTypes-Cexub7bN.d.ts → attachTypes-Cb7EQun_.d.ts} +1 -1
  31. package/dist/{next/client/attachTypes-BPYeJ6E4.d.mts → libraries/react/attachTypes-CsFmlhk3.d.mts} +7 -7
  32. package/dist/libraries/react/{chunk-MNOH7Q3B.mjs → chunk-4CHWEUKX.mjs} +2 -2
  33. package/dist/libraries/react/{chunk-PIENO233.mjs → chunk-6RNG47NV.mjs} +1 -1
  34. package/dist/libraries/react/{chunk-P5MIFIIO.mjs → chunk-7DINVACK.mjs} +2 -2
  35. package/dist/libraries/react/{chunk-EBQBPZCM.mjs → chunk-DRAIZ3UZ.mjs} +3 -3
  36. package/dist/libraries/react/{chunk-4VXBAIPC.mjs → chunk-KDD5RMQ3.mjs} +2 -2
  37. package/dist/libraries/react/{chunk-ZITEHPEQ.mjs → chunk-KJLHVBV4.mjs} +2 -2
  38. package/dist/libraries/react/{chunk-ZFIJI37N.mjs → chunk-LXD6AEZW.mjs} +1 -1
  39. package/dist/libraries/react/{chunk-G6NOGGDA.mjs → chunk-N7LPH3DU.mjs} +3 -3
  40. package/dist/libraries/react/{chunk-ASL5VH2W.mjs → chunk-OEIUKLFH.mjs} +2 -2
  41. package/dist/libraries/react/{chunk-4BQDSIWM.mjs → chunk-OM3ROIZO.mjs} +2 -2
  42. package/dist/libraries/react/{chunk-473LVTGN.mjs → chunk-OTYSAMRH.mjs} +2 -2
  43. package/dist/libraries/react/{chunk-3N6WLQH3.mjs → chunk-XXGKLOAK.mjs} +1 -1
  44. package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
  45. package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
  46. package/dist/libraries/react/client/ReactAutumnClient.mjs +3 -3
  47. package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
  48. package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
  49. package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
  50. package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
  51. package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
  52. package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
  53. package/dist/libraries/react/client/clientGenMethods.d.mts +5 -5
  54. package/dist/libraries/react/client/clientGenMethods.d.ts +5 -5
  55. package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
  56. package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
  57. package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
  58. package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
  59. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.mts +2 -2
  60. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.d.ts +2 -2
  61. package/dist/libraries/react/components/attach-dialog/attach-dialog-synced.mjs +15 -15
  62. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.mts +2 -2
  63. package/dist/libraries/react/components/attach-dialog/lib/attach-content.d.ts +2 -2
  64. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.mts +1 -1
  65. package/dist/libraries/react/components/check-dialog/check-dialog-synced.d.ts +1 -1
  66. package/dist/libraries/react/components/check-dialog/lib/check-content.d.mts +1 -1
  67. package/dist/libraries/react/components/check-dialog/lib/check-content.d.ts +1 -1
  68. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
  69. package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
  70. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
  71. package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
  72. package/dist/libraries/react/components/pricing-table/pricing-table-synced.js +1 -1
  73. package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +15 -15
  74. package/dist/libraries/react/{entTypes-BJD_Hxbp.d.ts → entTypes-CFDcayTF.d.ts} +1 -1
  75. package/dist/libraries/react/{entTypes-CJhJFCKD.d.mts → entTypes-Diy1Q4vW.d.mts} +1 -1
  76. package/dist/libraries/react/hooks/handleAllowed.d.mts +2 -2
  77. package/dist/libraries/react/hooks/handleAllowed.d.ts +2 -2
  78. package/dist/libraries/react/hooks/useAutumn.d.mts +7 -7
  79. package/dist/libraries/react/hooks/useAutumn.d.ts +7 -7
  80. package/dist/libraries/react/hooks/useAutumn.mjs +7 -7
  81. package/dist/libraries/react/hooks/useAutumnBase.d.mts +5 -5
  82. package/dist/libraries/react/hooks/useAutumnBase.d.ts +5 -5
  83. package/dist/libraries/react/hooks/useAutumnBase.mjs +6 -6
  84. package/dist/libraries/react/hooks/useCustomer.d.mts +5 -5
  85. package/dist/libraries/react/hooks/useCustomer.d.ts +5 -5
  86. package/dist/libraries/react/hooks/useCustomer.mjs +8 -8
  87. package/dist/libraries/react/hooks/useCustomerBase.d.mts +5 -5
  88. package/dist/libraries/react/hooks/useCustomerBase.d.ts +5 -5
  89. package/dist/libraries/react/hooks/useCustomerBase.mjs +7 -7
  90. package/dist/libraries/react/hooks/useEntity.d.mts +9 -9
  91. package/dist/libraries/react/hooks/useEntity.d.ts +9 -9
  92. package/dist/libraries/react/hooks/useEntity.mjs +8 -8
  93. package/dist/libraries/react/hooks/useEntityBase.d.mts +11 -11
  94. package/dist/libraries/react/hooks/useEntityBase.d.ts +11 -11
  95. package/dist/libraries/react/hooks/useEntityBase.mjs +7 -7
  96. package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
  97. package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
  98. package/dist/libraries/react/hooks/usePricingTable.mjs +6 -6
  99. package/dist/libraries/react/hooks/usePricingTableBase.d.mts +5 -5
  100. package/dist/libraries/react/hooks/usePricingTableBase.d.ts +5 -5
  101. package/dist/libraries/react/hooks/usePricingTableBase.mjs +5 -5
  102. package/dist/libraries/react/hooks/useProductsBase.mjs +4 -4
  103. package/dist/libraries/react/index.js +1 -1
  104. package/dist/libraries/react/index.mjs +1 -1
  105. package/dist/libraries/react/{response-Dek2TEnE.d.ts → response-BFBmXYPK.d.ts} +1 -1
  106. package/dist/libraries/react/{response-HZAWTgGp.d.mts → response-D3QhcRLa.d.mts} +1 -1
  107. package/dist/next/client/NextAutumnClient.d.mts +6 -6
  108. package/dist/next/client/NextAutumnClient.d.ts +6 -6
  109. package/dist/next/client/NextAutumnProvider.d.mts +1 -1
  110. package/dist/next/client/NextAutumnProvider.d.ts +1 -1
  111. package/dist/{libraries/react/attachTypes-DqI7qtXD.d.mts → next/client/attachTypes-BbjEGh-Q.d.mts} +5 -5
  112. package/dist/next/client/{attachTypes-BL6x9Zbx.d.ts → attachTypes-BmvzLAdZ.d.ts} +3 -3
  113. package/dist/next/client/{clientAttachTypes-Dj6U8D7o.d.ts → clientAttachTypes-DWV50ToQ.d.ts} +3 -3
  114. package/dist/next/client/{clientAttachTypes-fN66J754.d.mts → clientAttachTypes-xaEzXIt3.d.mts} +3 -3
  115. package/dist/next/client/clientUtils.d.mts +2 -2
  116. package/dist/next/client/clientUtils.d.ts +2 -2
  117. package/dist/next/client/{entTypes-Li6ZrG0C.d.mts → entTypes-BRNi52gE.d.mts} +1 -1
  118. package/dist/next/client/{entTypes-BrHkjvC9.d.ts → entTypes-DtUiQ3Ms.d.ts} +1 -1
  119. package/dist/next/client/hooks/useAutumn.d.mts +3 -3
  120. package/dist/next/client/hooks/useAutumn.d.ts +3 -3
  121. package/dist/next/client/hooks/useCustomer.d.mts +4 -4
  122. package/dist/next/client/hooks/useCustomer.d.ts +4 -4
  123. package/dist/next/client/hooks/useEntity.d.mts +3 -3
  124. package/dist/next/client/hooks/useEntity.d.ts +3 -3
  125. package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
  126. package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
  127. package/dist/next/client/types.d.mts +2 -2
  128. package/dist/next/client/types.d.ts +2 -2
  129. package/dist/next/server/cusActions.d.mts +8 -8
  130. package/dist/next/server/cusActions.d.ts +8 -8
  131. package/package.json +1 -1
  132. package/dist/libraries/backend/{chunk-2RZ2FZX2.mjs → chunk-ICPSX5WQ.mjs} +3 -3
  133. package/dist/libraries/backend/{referralTypes-jA7MQ1y5.d.mts → referralTypes-CILDqqIc.d.mts} +27 -27
  134. package/dist/libraries/backend/{referralTypes-CnYanpMd.d.ts → referralTypes-DKd7XOdW.d.ts} +27 -27
  135. package/dist/libraries/react/{chunk-E5EYSQYJ.mjs → chunk-2PVRCDDK.mjs} +6 -6
  136. package/dist/libraries/react/{cusTypes-DCeNEQLu.d.mts → cusTypes-l9ZWuqVq.d.mts} +2 -2
  137. package/dist/libraries/react/{cusTypes-DCeNEQLu.d.ts → cusTypes-l9ZWuqVq.d.ts} +2 -2
  138. package/dist/next/client/{cusTypes-BoVZ2omf.d.mts → cusTypes-mflRCYE_.d.mts} +2 -2
  139. package/dist/next/client/{cusTypes-BoVZ2omf.d.ts → cusTypes-mflRCYE_.d.ts} +2 -2
@@ -1,17 +1,17 @@
1
- import { A as AutumnPromise, a as CheckResult, R as Result } from '../response-Dek2TEnE.js';
1
+ import { A as AutumnPromise, a as CheckResult, R as Result } from '../response-BFBmXYPK.js';
2
2
  import * as swr from 'swr';
3
3
  import { A as AutumnError } from '../error-DHbclCVh.js';
4
- import { E as Entity } from '../entTypes-BJD_Hxbp.js';
4
+ import { E as Entity } from '../entTypes-CFDcayTF.js';
5
5
  import { GetEntityParams } from '../client/types/clientEntTypes.js';
6
6
  import { AutumnContextParams } from '../AutumnContext.js';
7
7
  import { AllowedParams } from './handleAllowed.js';
8
8
  import { CheckParams, CancelParams, TrackParams } from '../client/types/clientGenTypes.js';
9
9
  import { AttachParams } from '../client/types/clientAttachTypes.js';
10
- import '../cusTypes-DCeNEQLu.js';
10
+ import '../cusTypes-l9ZWuqVq.js';
11
11
  import 'zod';
12
12
  import 'react';
13
- import '../ReactAutumnClient-CEv9YGLM.js';
14
- import '../attachTypes-Cexub7bN.js';
13
+ import '../ReactAutumnClient-BICsMJ-m.js';
14
+ import '../attachTypes-Cb7EQun_.js';
15
15
 
16
16
  declare const useEntityBase: ({ entityId, params, AutumnContext, }: {
17
17
  entityId: string | null;
@@ -24,23 +24,23 @@ declare const useEntityBase: ({ entityId, params, AutumnContext, }: {
24
24
  refetch: swr.KeyedMutator<Entity | null>;
25
25
  allowed: (params: AllowedParams) => boolean;
26
26
  check: (params: CheckParams) => AutumnPromise<CheckResult>;
27
- attach: (params: AttachParams) => Promise<Result<{
28
- customer_id: string;
27
+ attach: (params: AttachParams) => Promise<Result<CheckResult | {
29
28
  code: string;
30
29
  message: string;
30
+ customer_id: string;
31
31
  product_ids: string[];
32
- customer_data?: any;
33
32
  checkout_url?: string | undefined;
34
- } | CheckResult, AutumnError>>;
33
+ customer_data?: any;
34
+ }, AutumnError>>;
35
35
  cancel: (params: CancelParams) => AutumnPromise<{
36
36
  customer_id: string;
37
- product_id: string;
38
37
  success: boolean;
38
+ product_id: string;
39
39
  }>;
40
40
  track: (params: TrackParams) => AutumnPromise<{
41
- customer_id: string;
42
41
  code: string;
43
42
  id: string;
43
+ customer_id: string;
44
44
  feature_id?: string | undefined;
45
45
  event_name?: string | undefined;
46
46
  }>;
@@ -2,16 +2,16 @@
2
2
 
3
3
  import {
4
4
  useEntityBase
5
- } from "../chunk-PIENO233.mjs";
5
+ } from "../chunk-6RNG47NV.mjs";
6
6
  import "../chunk-3JJC2VU5.mjs";
7
- import "../chunk-ZITEHPEQ.mjs";
8
- import "../chunk-4BQDSIWM.mjs";
9
- import "../chunk-ZFIJI37N.mjs";
10
- import "../chunk-E5EYSQYJ.mjs";
11
- import "../chunk-JVCOY7ZL.mjs";
12
- import "../chunk-CIBQ4BJU.mjs";
7
+ import "../chunk-KJLHVBV4.mjs";
8
+ import "../chunk-OM3ROIZO.mjs";
9
+ import "../chunk-LXD6AEZW.mjs";
10
+ import "../chunk-2PVRCDDK.mjs";
13
11
  import "../chunk-V575SGOW.mjs";
14
12
  import "../chunk-ZV4RPZTM.mjs";
13
+ import "../chunk-JVCOY7ZL.mjs";
14
+ import "../chunk-CIBQ4BJU.mjs";
15
15
  import "../chunk-VTGR7VVK.mjs";
16
16
  import "../chunk-WFFVOEUG.mjs";
17
17
  import "../chunk-ZF2HUCN6.mjs";
@@ -1,6 +1,6 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { P as Product } from '../cusTypes-DCeNEQLu.mjs';
3
+ import { P as Product } from '../cusTypes-l9ZWuqVq.mjs';
4
4
  import { ProductDetails } from '../client/types/clientPricingTableTypes.mjs';
5
5
  import 'zod';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { P as Product } from '../cusTypes-DCeNEQLu.js';
3
+ import { P as Product } from '../cusTypes-l9ZWuqVq.js';
4
4
  import { ProductDetails } from '../client/types/clientPricingTableTypes.js';
5
5
  import 'zod';
6
6
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  import {
4
4
  usePricingTable
5
- } from "../chunk-473LVTGN.mjs";
6
- import "../chunk-4BQDSIWM.mjs";
7
- import "../chunk-ZFIJI37N.mjs";
8
- import "../chunk-E5EYSQYJ.mjs";
9
- import "../chunk-JVCOY7ZL.mjs";
10
- import "../chunk-CIBQ4BJU.mjs";
5
+ } from "../chunk-OTYSAMRH.mjs";
6
+ import "../chunk-OM3ROIZO.mjs";
7
+ import "../chunk-LXD6AEZW.mjs";
8
+ import "../chunk-2PVRCDDK.mjs";
11
9
  import "../chunk-V575SGOW.mjs";
12
10
  import "../chunk-ZV4RPZTM.mjs";
11
+ import "../chunk-JVCOY7ZL.mjs";
12
+ import "../chunk-CIBQ4BJU.mjs";
13
13
  import "../chunk-VTGR7VVK.mjs";
14
14
  import "../chunk-WFFVOEUG.mjs";
15
15
  import "../chunk-ZF2HUCN6.mjs";
@@ -1,16 +1,16 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { P as Product } from '../cusTypes-DCeNEQLu.mjs';
3
+ import { P as Product } from '../cusTypes-l9ZWuqVq.mjs';
4
4
  import { ProductDetails } from '../client/types/clientPricingTableTypes.mjs';
5
5
  import { AutumnContextParams } from '../AutumnContext.mjs';
6
6
  import 'zod';
7
7
  import 'react';
8
- import '../ReactAutumnClient-BGI56QI_.mjs';
8
+ import '../ReactAutumnClient-BuQHr-be.mjs';
9
9
  import '../client/types/clientEntTypes.mjs';
10
10
  import '../client/types/clientGenTypes.mjs';
11
- import '../response-HZAWTgGp.mjs';
12
- import '../attachTypes-DqI7qtXD.mjs';
13
- import '../entTypes-CJhJFCKD.mjs';
11
+ import '../response-D3QhcRLa.mjs';
12
+ import '../attachTypes-CsFmlhk3.mjs';
13
+ import '../entTypes-Diy1Q4vW.mjs';
14
14
 
15
15
  declare const usePricingTableBase: ({ AutumnContext, params, }: {
16
16
  AutumnContext: React.Context<AutumnContextParams>;
@@ -1,16 +1,16 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { P as Product } from '../cusTypes-DCeNEQLu.js';
3
+ import { P as Product } from '../cusTypes-l9ZWuqVq.js';
4
4
  import { ProductDetails } from '../client/types/clientPricingTableTypes.js';
5
5
  import { AutumnContextParams } from '../AutumnContext.js';
6
6
  import 'zod';
7
7
  import 'react';
8
- import '../ReactAutumnClient-CEv9YGLM.js';
8
+ import '../ReactAutumnClient-BICsMJ-m.js';
9
9
  import '../client/types/clientEntTypes.js';
10
10
  import '../client/types/clientGenTypes.js';
11
- import '../response-Dek2TEnE.js';
12
- import '../attachTypes-Cexub7bN.js';
13
- import '../entTypes-BJD_Hxbp.js';
11
+ import '../response-BFBmXYPK.js';
12
+ import '../attachTypes-Cb7EQun_.js';
13
+ import '../entTypes-CFDcayTF.js';
14
14
 
15
15
  declare const usePricingTableBase: ({ AutumnContext, params, }: {
16
16
  AutumnContext: React.Context<AutumnContextParams>;
@@ -2,13 +2,13 @@
2
2
 
3
3
  import {
4
4
  usePricingTableBase
5
- } from "../chunk-4BQDSIWM.mjs";
6
- import "../chunk-ZFIJI37N.mjs";
7
- import "../chunk-E5EYSQYJ.mjs";
8
- import "../chunk-JVCOY7ZL.mjs";
9
- import "../chunk-CIBQ4BJU.mjs";
5
+ } from "../chunk-OM3ROIZO.mjs";
6
+ import "../chunk-LXD6AEZW.mjs";
7
+ import "../chunk-2PVRCDDK.mjs";
10
8
  import "../chunk-V575SGOW.mjs";
11
9
  import "../chunk-ZV4RPZTM.mjs";
10
+ import "../chunk-JVCOY7ZL.mjs";
11
+ import "../chunk-CIBQ4BJU.mjs";
12
12
  import "../chunk-VTGR7VVK.mjs";
13
13
  import "../chunk-WFFVOEUG.mjs";
14
14
  import "../chunk-ZF2HUCN6.mjs";
@@ -3,12 +3,12 @@
3
3
  import {
4
4
  AutumnContext,
5
5
  useAutumnContext
6
- } from "../chunk-ZFIJI37N.mjs";
7
- import "../chunk-E5EYSQYJ.mjs";
8
- import "../chunk-JVCOY7ZL.mjs";
9
- import "../chunk-CIBQ4BJU.mjs";
6
+ } from "../chunk-LXD6AEZW.mjs";
7
+ import "../chunk-2PVRCDDK.mjs";
10
8
  import "../chunk-V575SGOW.mjs";
11
9
  import "../chunk-ZV4RPZTM.mjs";
10
+ import "../chunk-JVCOY7ZL.mjs";
11
+ import "../chunk-CIBQ4BJU.mjs";
12
12
  import "../chunk-VTGR7VVK.mjs";
13
13
  import "../chunk-WFFVOEUG.mjs";
14
14
  import "../chunk-ZF2HUCN6.mjs";
@@ -7587,7 +7587,7 @@ function PricingTable({
7587
7587
  {
7588
7588
  productId: product.id,
7589
7589
  buttonProps: {
7590
- disabled: product.scenario === "active" || product.scenario === "scheduled",
7590
+ disabled: product.scenario === "active" && !product.properties.has_prepaid || product.scenario === "scheduled",
7591
7591
  onClick: async () => {
7592
7592
  if (product.id) {
7593
7593
  await checkout({
@@ -7545,7 +7545,7 @@ function PricingTable({
7545
7545
  {
7546
7546
  productId: product.id,
7547
7547
  buttonProps: {
7548
- disabled: product.scenario === "active" || product.scenario === "scheduled",
7548
+ disabled: product.scenario === "active" && !product.properties.has_prepaid || product.scenario === "scheduled",
7549
7549
  onClick: async () => {
7550
7550
  if (product.id) {
7551
7551
  await checkout({
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-DCeNEQLu.js';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-l9ZWuqVq.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-DCeNEQLu.mjs';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-l9ZWuqVq.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
 
@@ -1,7 +1,7 @@
1
- import { R as Result, b as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, d as CancelParams, e as CancelResult, a as CheckParams, T as TrackParams, c as TrackResult } from './clientAttachTypes-fN66J754.mjs';
2
- import { C as CheckoutResult, A as AttachResult } from './attachTypes-BPYeJ6E4.mjs';
3
- import { P as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, b as Product } from './cusTypes-BoVZ2omf.mjs';
4
- import { E as Entity, D as DeleteEntityResult } from './entTypes-Li6ZrG0C.mjs';
1
+ import { R as Result, b as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, d as CancelParams, e as CancelResult, a as CheckParams, T as TrackParams, c as TrackResult } from './clientAttachTypes-xaEzXIt3.mjs';
2
+ import { C as CheckoutResult, A as AttachResult } from './attachTypes-BbjEGh-Q.mjs';
3
+ import { P as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, b as Product } from './cusTypes-mflRCYE_.mjs';
4
+ import { E as Entity, D as DeleteEntityResult } from './entTypes-BRNi52gE.mjs';
5
5
  import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.mjs';
6
6
  import { A as AutumnError } from './error-DHbclCVh.mjs';
7
7
  import 'zod';
@@ -79,9 +79,9 @@ declare class AutumnClient {
79
79
  reward?: string | undefined;
80
80
  checkoutSessionParams?: Record<string, any> | undefined;
81
81
  }) => AutumnPromise<{
82
+ customer_id: string;
82
83
  code: string;
83
84
  message: string;
84
- customer_id: string;
85
85
  product_ids: string[];
86
86
  checkout_url?: string | undefined;
87
87
  customer_data?: any;
@@ -124,9 +124,9 @@ declare class AutumnClient {
124
124
  eventName?: string | undefined;
125
125
  idempotencyKey?: string | undefined;
126
126
  }) => AutumnPromise<{
127
- code: string;
128
127
  id: string;
129
128
  customer_id: string;
129
+ code: string;
130
130
  feature_id?: string | undefined;
131
131
  event_name?: string | undefined;
132
132
  }>;
@@ -1,7 +1,7 @@
1
- import { R as Result, b as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, d as CancelParams, e as CancelResult, a as CheckParams, T as TrackParams, c as TrackResult } from './clientAttachTypes-Dj6U8D7o.js';
2
- import { C as CheckoutResult, A as AttachResult } from './attachTypes-BL6x9Zbx.js';
3
- import { P as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, b as Product } from './cusTypes-BoVZ2omf.js';
4
- import { E as Entity, D as DeleteEntityResult } from './entTypes-BrHkjvC9.js';
1
+ import { R as Result, b as AutumnPromise, C as CheckResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, A as AttachParams, d as CancelParams, e as CancelResult, a as CheckParams, T as TrackParams, c as TrackResult } from './clientAttachTypes-DWV50ToQ.js';
2
+ import { C as CheckoutResult, A as AttachResult } from './attachTypes-BmvzLAdZ.js';
3
+ import { P as ProductItem, f as ProductScenario, C as CustomerData, g as CreateCustomerParams, a as Customer, B as BillingPortalResult, b as Product } from './cusTypes-mflRCYE_.js';
4
+ import { E as Entity, D as DeleteEntityResult } from './entTypes-DtUiQ3Ms.js';
5
5
  import { C as CreateEntityParams, G as GetEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from './clientEntTypes-BFkleT6a.js';
6
6
  import { A as AutumnError } from './error-DHbclCVh.js';
7
7
  import 'zod';
@@ -79,9 +79,9 @@ declare class AutumnClient {
79
79
  reward?: string | undefined;
80
80
  checkoutSessionParams?: Record<string, any> | undefined;
81
81
  }) => AutumnPromise<{
82
+ customer_id: string;
82
83
  code: string;
83
84
  message: string;
84
- customer_id: string;
85
85
  product_ids: string[];
86
86
  checkout_url?: string | undefined;
87
87
  customer_data?: any;
@@ -124,9 +124,9 @@ declare class AutumnClient {
124
124
  eventName?: string | undefined;
125
125
  idempotencyKey?: string | undefined;
126
126
  }) => AutumnPromise<{
127
- code: string;
128
127
  id: string;
129
128
  customer_id: string;
129
+ code: string;
130
130
  feature_id?: string | undefined;
131
131
  event_name?: string | undefined;
132
132
  }>;
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-BoVZ2omf.mjs';
2
+ import { C as CustomerData } from './cusTypes-mflRCYE_.mjs';
3
3
  import 'zod';
4
4
 
5
5
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,5 +1,5 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CustomerData } from './cusTypes-BoVZ2omf.js';
2
+ import { C as CustomerData } from './cusTypes-mflRCYE_.js';
3
3
  import 'zod';
4
4
 
5
5
  declare const NextAutumnProvider: ({ encryptedCustomerId, customerData, children, }: {
@@ -1,15 +1,15 @@
1
- import { g as ProductItem, P as Product } from './cusTypes-DCeNEQLu.mjs';
1
+ import { P as ProductItem, b as Product } from './cusTypes-mflRCYE_.mjs';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const AttachFeatureOptionsSchema: z.ZodObject<{
5
5
  feature_id: z.ZodString;
6
6
  quantity: z.ZodNumber;
7
7
  }, "strip", z.ZodTypeAny, {
8
- feature_id: string;
9
8
  quantity: number;
10
- }, {
11
9
  feature_id: string;
10
+ }, {
12
11
  quantity: number;
12
+ feature_id: string;
13
13
  }>;
14
14
  type AttachFeatureOptions = z.infer<typeof AttachFeatureOptionsSchema>;
15
15
  declare const AttachResultSchema: z.ZodObject<{
@@ -24,15 +24,15 @@ declare const AttachResultSchema: z.ZodObject<{
24
24
  code: string;
25
25
  message: string;
26
26
  product_ids: string[];
27
- customer_data?: any;
28
27
  checkout_url?: string | undefined;
28
+ customer_data?: any;
29
29
  }, {
30
30
  customer_id: string;
31
31
  code: string;
32
32
  message: string;
33
33
  product_ids: string[];
34
- customer_data?: any;
35
34
  checkout_url?: string | undefined;
35
+ customer_data?: any;
36
36
  }>;
37
37
  type AttachResult = z.infer<typeof AttachResultSchema>;
38
38
  type CheckoutResult = {
@@ -1,4 +1,4 @@
1
- import { P as ProductItem, b as Product } from './cusTypes-BoVZ2omf.js';
1
+ import { P as ProductItem, b as Product } from './cusTypes-mflRCYE_.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const AttachFeatureOptionsSchema: z.ZodObject<{
@@ -20,16 +20,16 @@ declare const AttachResultSchema: z.ZodObject<{
20
20
  message: z.ZodString;
21
21
  customer_data: z.ZodOptional<z.ZodAny>;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ customer_id: string;
23
24
  code: string;
24
25
  message: string;
25
- customer_id: string;
26
26
  product_ids: string[];
27
27
  checkout_url?: string | undefined;
28
28
  customer_data?: any;
29
29
  }, {
30
+ customer_id: string;
30
31
  code: string;
31
32
  message: string;
32
- customer_id: string;
33
33
  product_ids: string[];
34
34
  checkout_url?: string | undefined;
35
35
  customer_data?: any;
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-BoVZ2omf.js';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-mflRCYE_.js';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.js';
4
4
 
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
23
23
  feature_id: z.ZodOptional<z.ZodString>;
24
24
  event_name: z.ZodOptional<z.ZodString>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- code: string;
27
26
  id: string;
28
27
  customer_id: string;
28
+ code: string;
29
29
  feature_id?: string | undefined;
30
30
  event_name?: string | undefined;
31
31
  }, {
32
- code: string;
33
32
  id: string;
34
33
  customer_id: string;
34
+ code: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;
@@ -1,4 +1,4 @@
1
- import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-BoVZ2omf.mjs';
1
+ import { i as CheckFeatureResult, j as CheckProductResult } from './cusTypes-mflRCYE_.mjs';
2
2
  import { z } from 'zod';
3
3
  import { A as AutumnError } from './error-DHbclCVh.mjs';
4
4
 
@@ -23,15 +23,15 @@ declare const TrackResultSchema: z.ZodObject<{
23
23
  feature_id: z.ZodOptional<z.ZodString>;
24
24
  event_name: z.ZodOptional<z.ZodString>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- code: string;
27
26
  id: string;
28
27
  customer_id: string;
28
+ code: string;
29
29
  feature_id?: string | undefined;
30
30
  event_name?: string | undefined;
31
31
  }, {
32
- code: string;
33
32
  id: string;
34
33
  customer_id: string;
34
+ code: string;
35
35
  feature_id?: string | undefined;
36
36
  event_name?: string | undefined;
37
37
  }>;
@@ -1,7 +1,7 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.mjs';
2
- import './cusTypes-BoVZ2omf.mjs';
2
+ import './cusTypes-mflRCYE_.mjs';
3
3
  import 'zod';
4
- import './entTypes-Li6ZrG0C.mjs';
4
+ import './entTypes-BRNi52gE.mjs';
5
5
 
6
6
  declare const toClientErrorResponse: (error: any) => {
7
7
  data: null;
@@ -1,7 +1,7 @@
1
1
  import { AutumnClientError, PricingTableProduct } from './types.js';
2
- import './cusTypes-BoVZ2omf.js';
2
+ import './cusTypes-mflRCYE_.js';
3
3
  import 'zod';
4
- import './entTypes-BrHkjvC9.js';
4
+ import './entTypes-DtUiQ3Ms.js';
5
5
 
6
6
  declare const toClientErrorResponse: (error: any) => {
7
7
  data: null;
@@ -1,4 +1,4 @@
1
- import { c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice } from './cusTypes-BoVZ2omf.mjs';
1
+ import { c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice } from './cusTypes-mflRCYE_.mjs';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,4 +1,4 @@
1
- import { c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice } from './cusTypes-BoVZ2omf.js';
1
+ import { c as CustomerProduct, d as CustomerFeature, e as CustomerInvoice } from './cusTypes-mflRCYE_.js';
2
2
 
3
3
  type EntityExpandOption = "invoices";
4
4
 
@@ -1,7 +1,7 @@
1
- import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-fN66J754.mjs';
1
+ import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-xaEzXIt3.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { C as CheckoutResult } from '../attachTypes-BPYeJ6E4.mjs';
4
- import { B as BillingPortalResult } from '../cusTypes-BoVZ2omf.mjs';
3
+ import { C as CheckoutResult } from '../attachTypes-BbjEGh-Q.mjs';
4
+ import { B as BillingPortalResult } from '../cusTypes-mflRCYE_.mjs';
5
5
  import 'zod';
6
6
 
7
7
  declare const useAutumn: () => {
@@ -1,7 +1,7 @@
1
- import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-Dj6U8D7o.js';
1
+ import { A as AttachParams, R as Result, C as CheckResult, a as CheckParams, b as AutumnPromise, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, O as OpenBillingPortalParams, S as SetupPaymentParams, f as SetupPaymentResult, g as CheckoutParams } from '../clientAttachTypes-DWV50ToQ.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { C as CheckoutResult } from '../attachTypes-BL6x9Zbx.js';
4
- import { B as BillingPortalResult } from '../cusTypes-BoVZ2omf.js';
3
+ import { C as CheckoutResult } from '../attachTypes-BmvzLAdZ.js';
4
+ import { B as BillingPortalResult } from '../cusTypes-mflRCYE_.js';
5
5
  import 'zod';
6
6
 
7
7
  declare const useAutumn: () => {
@@ -1,8 +1,8 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
2
- import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-fN66J754.mjs';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BPYeJ6E4.mjs';
4
- import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-BoVZ2omf.mjs';
5
- import { E as Entity } from '../entTypes-Li6ZrG0C.mjs';
2
+ import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-xaEzXIt3.mjs';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BbjEGh-Q.mjs';
4
+ import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-mflRCYE_.mjs';
5
+ import { E as Entity } from '../entTypes-BRNi52gE.mjs';
6
6
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.mjs';
7
7
  import { z } from 'zod';
8
8
  import { SWRConfiguration } from 'swr';
@@ -1,8 +1,8 @@
1
1
  import { A as AutumnError } from '../error-DHbclCVh.js';
2
- import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-Dj6U8D7o.js';
3
- import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BL6x9Zbx.js';
4
- import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-BoVZ2omf.js';
5
- import { E as Entity } from '../entTypes-BrHkjvC9.js';
2
+ import { A as AttachParams, b as AutumnPromise, a as CheckParams, C as CheckResult, T as TrackParams, c as TrackResult, d as CancelParams, e as CancelResult, S as SetupPaymentParams, f as SetupPaymentResult, O as OpenBillingPortalParams, g as CheckoutParams } from '../clientAttachTypes-DWV50ToQ.js';
3
+ import { A as AttachResult, C as CheckoutResult } from '../attachTypes-BmvzLAdZ.js';
4
+ import { h as CustomerExpandOption, a as Customer, B as BillingPortalResult } from '../cusTypes-mflRCYE_.js';
5
+ import { E as Entity } from '../entTypes-DtUiQ3Ms.js';
6
6
  import { C as CreateEntityParams, a as CreateReferralCodeResult, R as RedeemReferralCodeResult } from '../clientEntTypes-BFkleT6a.js';
7
7
  import { z } from 'zod';
8
8
  import { SWRConfiguration } from 'swr';
@@ -1,9 +1,9 @@
1
- import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-fN66J754.mjs';
1
+ import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-xaEzXIt3.mjs';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-Li6ZrG0C.mjs';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-BRNi52gE.mjs';
4
4
  import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.mjs';
5
5
  import * as swr from 'swr';
6
- import '../cusTypes-BoVZ2omf.mjs';
6
+ import '../cusTypes-mflRCYE_.mjs';
7
7
  import 'zod';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
@@ -1,9 +1,9 @@
1
- import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-Dj6U8D7o.js';
1
+ import { a as CheckParams, b as AutumnPromise, C as CheckResult, A as AttachParams, R as Result, d as CancelParams, T as TrackParams } from '../clientAttachTypes-DWV50ToQ.js';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { G as GetEntityParams, E as Entity } from '../entTypes-BrHkjvC9.js';
3
+ import { G as GetEntityParams, E as Entity } from '../entTypes-DtUiQ3Ms.js';
4
4
  import { A as AllowedParams } from '../handleAllowed-B8TBAzfI.js';
5
5
  import * as swr from 'swr';
6
- import '../cusTypes-BoVZ2omf.js';
6
+ import '../cusTypes-mflRCYE_.js';
7
7
  import 'zod';
8
8
 
9
9
  declare const useEntity: (entityId: string | null, params?: GetEntityParams) => {
@@ -1,6 +1,6 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.mjs';
3
- import { b as Product } from '../cusTypes-BoVZ2omf.mjs';
3
+ import { b as Product } from '../cusTypes-mflRCYE_.mjs';
4
4
  import 'zod';
5
5
 
6
6
  interface ProductDetails {
@@ -1,6 +1,6 @@
1
1
  import * as swr from 'swr';
2
2
  import { A as AutumnError } from '../error-DHbclCVh.js';
3
- import { b as Product } from '../cusTypes-BoVZ2omf.js';
3
+ import { b as Product } from '../cusTypes-mflRCYE_.js';
4
4
  import 'zod';
5
5
 
6
6
  interface ProductDetails {
@@ -1,5 +1,5 @@
1
- import { C as CustomerData, a as Customer } from './cusTypes-BoVZ2omf.mjs';
2
- import { E as Entity } from './entTypes-Li6ZrG0C.mjs';
1
+ import { C as CustomerData, a as Customer } from './cusTypes-mflRCYE_.mjs';
2
+ import { E as Entity } from './entTypes-BRNi52gE.mjs';
3
3
  import 'zod';
4
4
 
5
5
  interface ProductDetails {
@@ -1,5 +1,5 @@
1
- import { C as CustomerData, a as Customer } from './cusTypes-BoVZ2omf.js';
2
- import { E as Entity } from './entTypes-BrHkjvC9.js';
1
+ import { C as CustomerData, a as Customer } from './cusTypes-mflRCYE_.js';
2
+ import { E as Entity } from './entTypes-DtUiQ3Ms.js';
3
3
  import 'zod';
4
4
 
5
5
  interface ProductDetails {