autumn-js 1.3.13 → 1.3.15
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 +10761 -10483
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +10761 -10483
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +10761 -10483
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +10761 -10483
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +10761 -10483
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-C2NPCEJI.mjs → chunk-3NWZ5JCS.mjs} +1 -1
- package/dist/backend/{chunk-C6ZZJ7EE.mjs → chunk-5L2FQENX.mjs} +1 -1
- package/dist/backend/{chunk-IAILCOBU.mjs → chunk-HLTECDHI.mjs} +10740 -10478
- package/dist/backend/{chunk-R6G7SG3N.mjs → chunk-ITZ2QE2R.mjs} +16 -0
- package/dist/backend/{chunk-DPUV4QAN.mjs → chunk-NFNIIF6U.mjs} +1 -1
- package/dist/backend/{chunk-2UUPONJZ.mjs → chunk-QRHOBVQP.mjs} +1 -1
- package/dist/backend/{chunk-SYMBZ24L.mjs → chunk-SQEGXZCR.mjs} +2 -2
- package/dist/backend/{chunk-XJWHTUI6.mjs → chunk-WTIOYLNM.mjs} +2 -2
- 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 +10761 -10483
- 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 +10761 -10483
- 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 +10761 -10483
- 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 +10761 -10483
- 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 +16 -0
- 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 +16 -0
- 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 +10761 -10483
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CIZ-ZBtX.d.ts → routeTypes-BO-VBvq4.d.ts} +108 -1
- package/dist/backend/{routeTypes-BoCJIb-T.d.mts → routeTypes-BPqyn4tP.d.mts} +108 -1
- package/dist/better-auth/{chunk-U5BLUB3E.mjs → chunk-AXWF2UCR.mjs} +16 -0
- package/dist/better-auth/{chunk-C6ATXDH4.mjs → chunk-IQCXDDKS.mjs} +10741 -10479
- package/dist/better-auth/{chunk-CWELMXBP.mjs → chunk-IT7LJSHT.mjs} +1 -1
- package/dist/better-auth/index.js +10761 -10483
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +16 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +10761 -10483
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +10761 -10483
- 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-B5IVa4Ut.d.mts → params-BNmjxPTb.d.mts} +26 -0
- package/dist/react/{params-CT8HBmlA.d.ts → params-DOhtJtIQ.d.ts} +26 -0
- package/dist/sdk/index.d.mts +158 -2
- package/dist/sdk/index.d.ts +158 -2
- package/dist/sdk/index.js +343 -39
- package/dist/sdk/index.mjs +328 -40
- package/package.json +2 -2
|
@@ -4540,6 +4540,9 @@ var previewUpdateAttachDiscountSchema = z14.object({
|
|
|
4540
4540
|
rewardId: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4541
4541
|
promotionCode: z14.union([z14.string(), z14.undefined()]).optional()
|
|
4542
4542
|
});
|
|
4543
|
+
var previewUpdateRemoveDiscountSchema = z14.object({
|
|
4544
|
+
rewardId: z14.string()
|
|
4545
|
+
});
|
|
4543
4546
|
var previewUpdateCustomLineItemSchema = z14.object({
|
|
4544
4547
|
amount: z14.number(),
|
|
4545
4548
|
description: z14.string()
|
|
@@ -4827,6 +4830,9 @@ var previewUpdateAttachDiscountOutboundSchema = z14.object({
|
|
|
4827
4830
|
reward_id: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
4828
4831
|
promotion_code: z14.union([z14.string(), z14.undefined()]).optional()
|
|
4829
4832
|
});
|
|
4833
|
+
var previewUpdateRemoveDiscountOutboundSchema = z14.object({
|
|
4834
|
+
reward_id: z14.string()
|
|
4835
|
+
});
|
|
4830
4836
|
var previewUpdateCustomLineItemOutboundSchema = z14.object({
|
|
4831
4837
|
amount: z14.number(),
|
|
4832
4838
|
description: z14.string()
|
|
@@ -5064,6 +5070,7 @@ var previewUpdateParamsSchema = z14.object({
|
|
|
5064
5070
|
redirectMode: z14.union([previewUpdateRedirectModeSchema, z14.undefined()]).optional(),
|
|
5065
5071
|
subscriptionId: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
5066
5072
|
discounts: z14.union([z14.array(previewUpdateAttachDiscountSchema), z14.undefined()]).optional(),
|
|
5073
|
+
removeDiscounts: z14.union([z14.array(previewUpdateRemoveDiscountSchema), z14.undefined()]).optional(),
|
|
5067
5074
|
customLineItems: z14.union([z14.array(previewUpdateCustomLineItemSchema), z14.undefined()]).optional(),
|
|
5068
5075
|
cancelAction: z14.union([previewUpdateCancelActionSchema, z14.undefined()]).optional(),
|
|
5069
5076
|
billingCycleAnchor: z14.union([z14.string(), z14.number(), z14.undefined()]).optional(),
|
|
@@ -5178,6 +5185,7 @@ var previewUpdateParamsOutboundSchema = z14.object({
|
|
|
5178
5185
|
redirect_mode: z14.string(),
|
|
5179
5186
|
subscription_id: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
5180
5187
|
discounts: z14.union([z14.array(previewUpdateAttachDiscountOutboundSchema), z14.undefined()]).optional(),
|
|
5188
|
+
remove_discounts: z14.union([z14.array(previewUpdateRemoveDiscountOutboundSchema), z14.undefined()]).optional(),
|
|
5181
5189
|
custom_line_items: z14.union([z14.array(previewUpdateCustomLineItemOutboundSchema), z14.undefined()]).optional(),
|
|
5182
5190
|
cancel_action: z14.union([z14.string(), z14.undefined()]).optional(),
|
|
5183
5191
|
billing_cycle_anchor: z14.union([z14.string(), z14.number(), z14.undefined()]).optional(),
|
|
@@ -5900,6 +5908,9 @@ var billingUpdateAttachDiscountSchema = z17.object({
|
|
|
5900
5908
|
rewardId: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
5901
5909
|
promotionCode: z17.union([z17.string(), z17.undefined()]).optional()
|
|
5902
5910
|
});
|
|
5911
|
+
var billingUpdateRemoveDiscountSchema = z17.object({
|
|
5912
|
+
rewardId: z17.string()
|
|
5913
|
+
});
|
|
5903
5914
|
var billingUpdateCustomLineItemSchema = z17.object({
|
|
5904
5915
|
amount: z17.number(),
|
|
5905
5916
|
description: z17.string()
|
|
@@ -6122,6 +6133,9 @@ var billingUpdateAttachDiscountOutboundSchema = z17.object({
|
|
|
6122
6133
|
reward_id: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
6123
6134
|
promotion_code: z17.union([z17.string(), z17.undefined()]).optional()
|
|
6124
6135
|
});
|
|
6136
|
+
var billingUpdateRemoveDiscountOutboundSchema = z17.object({
|
|
6137
|
+
reward_id: z17.string()
|
|
6138
|
+
});
|
|
6125
6139
|
var billingUpdateCustomLineItemOutboundSchema = z17.object({
|
|
6126
6140
|
amount: z17.number(),
|
|
6127
6141
|
description: z17.string()
|
|
@@ -6355,6 +6369,7 @@ var updateSubscriptionParamsSchema = z17.object({
|
|
|
6355
6369
|
redirectMode: z17.union([billingUpdateRedirectModeSchema, z17.undefined()]).optional(),
|
|
6356
6370
|
subscriptionId: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
6357
6371
|
discounts: z17.union([z17.array(billingUpdateAttachDiscountSchema), z17.undefined()]).optional(),
|
|
6372
|
+
removeDiscounts: z17.union([z17.array(billingUpdateRemoveDiscountSchema), z17.undefined()]).optional(),
|
|
6358
6373
|
customLineItems: z17.union([z17.array(billingUpdateCustomLineItemSchema), z17.undefined()]).optional(),
|
|
6359
6374
|
cancelAction: z17.union([billingUpdateCancelActionSchema, z17.undefined()]).optional(),
|
|
6360
6375
|
billingCycleAnchor: z17.union([z17.string(), z17.number(), z17.undefined()]).optional(),
|
|
@@ -6438,6 +6453,7 @@ var updateSubscriptionParamsOutboundSchema = z17.object({
|
|
|
6438
6453
|
redirect_mode: z17.string(),
|
|
6439
6454
|
subscription_id: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
6440
6455
|
discounts: z17.union([z17.array(billingUpdateAttachDiscountOutboundSchema), z17.undefined()]).optional(),
|
|
6456
|
+
remove_discounts: z17.union([z17.array(billingUpdateRemoveDiscountOutboundSchema), z17.undefined()]).optional(),
|
|
6441
6457
|
custom_line_items: z17.union([z17.array(billingUpdateCustomLineItemOutboundSchema), z17.undefined()]).optional(),
|
|
6442
6458
|
cancel_action: z17.union([z17.string(), z17.undefined()]).optional(),
|
|
6443
6459
|
billing_cycle_anchor: z17.union([z17.string(), z17.number(), z17.undefined()]).optional(),
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HLTECDHI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
executeRoute
|
|
6
6
|
} from "./chunk-MOHYGUMA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
routeConfigs
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ITZ2QE2R.mjs";
|
|
10
10
|
import {
|
|
11
11
|
secretKeyCheck
|
|
12
12
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HLTECDHI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
executeRoute
|
|
6
6
|
} from "./chunk-MOHYGUMA.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-UAR3TMWI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
routeConfigs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ITZ2QE2R.mjs";
|
|
13
13
|
import {
|
|
14
14
|
secretKeyCheck
|
|
15
15
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
2
|
import '../../authTypes-CE4qx_oC.mjs';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-BPqyn4tP.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
6
6
|
import '../types/responseTypes.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
2
|
import '../../authTypes-CE4qx_oC.js';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-BO-VBvq4.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
6
6
|
import '../types/responseTypes.js';
|