autumn-js 1.3.19 → 1.3.21
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.
- package/dist/backend/adapters/express.js +80 -12
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +80 -12
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +80 -12
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +80 -12
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +80 -12
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-RGGW7MYQ.mjs → chunk-5MHFZETT.mjs} +50 -6
- package/dist/backend/{chunk-R6CWGJRR.mjs → chunk-7HAJHIDK.mjs} +2 -2
- package/dist/backend/{chunk-EETAZF3L.mjs → chunk-AZAFGMQX.mjs} +1 -1
- package/dist/backend/{chunk-NX3QPLEZ.mjs → chunk-CCYZDY2S.mjs} +1 -1
- package/dist/backend/{chunk-ET3EY5PE.mjs → chunk-IU4DGONB.mjs} +30 -6
- package/dist/backend/{chunk-ORQUSNYD.mjs → chunk-NCQMQWZZ.mjs} +1 -1
- package/dist/backend/{chunk-KPND33EK.mjs → chunk-UUXEUVUW.mjs} +2 -2
- package/dist/backend/{chunk-F6RWEUFE.mjs → chunk-ZL7TQVBF.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +80 -12
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +80 -12
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +80 -12
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +80 -12
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +30 -6
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +30 -6
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +80 -12
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CVNEIkWv.d.mts → routeTypes-BDhI1aVG.d.mts} +41 -0
- package/dist/backend/{routeTypes-DRaLLtYM.d.ts → routeTypes-S7the8kq.d.ts} +41 -0
- package/dist/better-auth/{chunk-24CG3YJD.mjs → chunk-I5EKFT6Q.mjs} +1 -1
- package/dist/better-auth/{chunk-LCFFOKLD.mjs → chunk-IZPM54OK.mjs} +30 -6
- package/dist/better-auth/{chunk-EU45GEWM.mjs → chunk-YTTMRMTV.mjs} +51 -7
- package/dist/better-auth/index.js +80 -12
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +30 -6
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +80 -12
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +80 -12
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-BNmjxPTb.d.mts → params-B1GU-u8Q.d.mts} +39 -0
- package/dist/react/{params-DOhtJtIQ.d.ts → params-Dp-az5AD.d.ts} +39 -0
- package/dist/sdk/index.d.mts +66 -1
- package/dist/sdk/index.d.ts +66 -1
- package/dist/sdk/index.js +73 -6
- package/dist/sdk/index.mjs +68 -7
- package/package.json +2 -2
|
@@ -2438,6 +2438,15 @@ type AttachLicenseQuantity = {
|
|
|
2438
2438
|
*/
|
|
2439
2439
|
quantity: number;
|
|
2440
2440
|
};
|
|
2441
|
+
/**
|
|
2442
|
+
* A discount to remove from the subscription. Discounts that are no longer applied are ignored.
|
|
2443
|
+
*/
|
|
2444
|
+
type AttachRemoveDiscount = {
|
|
2445
|
+
/**
|
|
2446
|
+
* The ID of the reward (or Stripe coupon) to remove.
|
|
2447
|
+
*/
|
|
2448
|
+
rewardId: string;
|
|
2449
|
+
};
|
|
2441
2450
|
type AttachParams = {
|
|
2442
2451
|
/**
|
|
2443
2452
|
* The ID of the customer to attach the plan to.
|
|
@@ -2567,6 +2576,10 @@ type AttachParams = {
|
|
|
2567
2576
|
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected.
|
|
2568
2577
|
*/
|
|
2569
2578
|
removePlanIds?: Array<string> | undefined;
|
|
2579
|
+
/**
|
|
2580
|
+
* Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
|
|
2581
|
+
*/
|
|
2582
|
+
removeDiscounts?: Array<AttachRemoveDiscount> | undefined;
|
|
2570
2583
|
};
|
|
2571
2584
|
/**
|
|
2572
2585
|
* Invoice details if an invoice was created. Only present when a charge was made.
|
|
@@ -11814,6 +11827,15 @@ type PreviewAttachLicenseQuantity = {
|
|
|
11814
11827
|
*/
|
|
11815
11828
|
quantity: number;
|
|
11816
11829
|
};
|
|
11830
|
+
/**
|
|
11831
|
+
* A discount to remove from the subscription. Discounts that are no longer applied are ignored.
|
|
11832
|
+
*/
|
|
11833
|
+
type PreviewAttachRemoveDiscount = {
|
|
11834
|
+
/**
|
|
11835
|
+
* The ID of the reward (or Stripe coupon) to remove.
|
|
11836
|
+
*/
|
|
11837
|
+
rewardId: string;
|
|
11838
|
+
};
|
|
11817
11839
|
type PreviewAttachParams = {
|
|
11818
11840
|
/**
|
|
11819
11841
|
* The ID of the customer to attach the plan to.
|
|
@@ -11943,6 +11965,10 @@ type PreviewAttachParams = {
|
|
|
11943
11965
|
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected.
|
|
11944
11966
|
*/
|
|
11945
11967
|
removePlanIds?: Array<string> | undefined;
|
|
11968
|
+
/**
|
|
11969
|
+
* Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
|
|
11970
|
+
*/
|
|
11971
|
+
removeDiscounts?: Array<PreviewAttachRemoveDiscount> | undefined;
|
|
11946
11972
|
};
|
|
11947
11973
|
type PreviewAttachDiscount = {
|
|
11948
11974
|
amountOff: number;
|
|
@@ -18517,6 +18543,15 @@ type SetupPaymentLicenseQuantity = {
|
|
|
18517
18543
|
*/
|
|
18518
18544
|
quantity: number;
|
|
18519
18545
|
};
|
|
18546
|
+
/**
|
|
18547
|
+
* A discount to remove from the subscription. Discounts that are no longer applied are ignored.
|
|
18548
|
+
*/
|
|
18549
|
+
type SetupPaymentRemoveDiscount = {
|
|
18550
|
+
/**
|
|
18551
|
+
* The ID of the reward (or Stripe coupon) to remove.
|
|
18552
|
+
*/
|
|
18553
|
+
rewardId: string;
|
|
18554
|
+
};
|
|
18520
18555
|
type SetupPaymentParams = {
|
|
18521
18556
|
/**
|
|
18522
18557
|
* The ID of the customer to attach the plan to.
|
|
@@ -18626,6 +18661,10 @@ type SetupPaymentParams = {
|
|
|
18626
18661
|
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected.
|
|
18627
18662
|
*/
|
|
18628
18663
|
removePlanIds?: Array<string> | undefined;
|
|
18664
|
+
/**
|
|
18665
|
+
* Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
|
|
18666
|
+
*/
|
|
18667
|
+
removeDiscounts?: Array<SetupPaymentRemoveDiscount> | undefined;
|
|
18629
18668
|
};
|
|
18630
18669
|
/**
|
|
18631
18670
|
* OK
|