autumn-js 1.3.28 → 1.3.30
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 +1231 -375
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.js +1231 -375
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.js +1231 -375
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +1231 -375
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.js +1231 -375
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-RPS2BYZQ.mjs → chunk-MRFQEKBR.mjs} +1 -1
- package/dist/backend/{chunk-FMYC62PB.mjs → chunk-N4L4DLFM.mjs} +6 -6
- package/dist/backend/{chunk-QMG7DDIG.mjs → chunk-OWSZPOV7.mjs} +1 -1
- package/dist/backend/{chunk-746ER4JF.mjs → chunk-QRJFDPO4.mjs} +1231 -375
- package/dist/backend/{chunk-Y4KIFJY4.mjs → chunk-SAUYRKWO.mjs} +1 -1
- package/dist/backend/{chunk-BQADVXTY.mjs → chunk-SESSECCJ.mjs} +1 -1
- package/dist/backend/{chunk-MZAOYQT4.mjs → chunk-YFZ7FT2F.mjs} +4 -4
- 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 +1231 -375
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- 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/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +1231 -375
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- 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 +1231 -375
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +1231 -375
- package/dist/backend/core/index.mjs +9 -9
- 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.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.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/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +1231 -375
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-HV2JbO7a.d.ts → routeTypes-DoJj_pOC.d.ts} +882 -57
- package/dist/backend/{routeTypes-CRMMAwhb.d.mts → routeTypes-fIoCsrzJ.d.mts} +882 -57
- package/dist/better-auth/{chunk-EBLVOVTN.mjs → chunk-FOW6KLFG.mjs} +1231 -375
- package/dist/better-auth/index.js +1231 -375
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +1231 -375
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +1231 -375
- package/dist/better-auth/utils/index.mjs +1 -1
- 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-BTjLs-GK.d.mts → params-Yk7M-n-7.d.mts} +28 -21
- package/dist/react/{params-CDDVDhfW.d.ts → params-k6ijFeOE.d.ts} +28 -21
- package/dist/sdk/index.d.mts +1162 -149
- package/dist/sdk/index.d.ts +1162 -149
- package/dist/sdk/index.js +1416 -209
- package/dist/sdk/index.mjs +1285 -210
- package/package.json +2 -2
- package/dist/backend/{chunk-MOHYGUMA.mjs → chunk-IXUCY7AU.mjs} +3 -3
|
@@ -2350,14 +2350,15 @@ type AttachInvoiceMode = {
|
|
|
2350
2350
|
netTermsDays?: number | undefined;
|
|
2351
2351
|
};
|
|
2352
2352
|
/**
|
|
2353
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
2353
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
2354
2354
|
*/
|
|
2355
2355
|
declare const AttachProrationBehavior: {
|
|
2356
2356
|
readonly ProrateImmediately: "prorate_immediately";
|
|
2357
2357
|
readonly None: "none";
|
|
2358
|
+
readonly BillDifference: "bill_difference";
|
|
2358
2359
|
};
|
|
2359
2360
|
/**
|
|
2360
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
2361
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
2361
2362
|
*/
|
|
2362
2363
|
type AttachProrationBehavior = ClosedEnum<typeof AttachProrationBehavior>;
|
|
2363
2364
|
/**
|
|
@@ -2485,7 +2486,7 @@ type AttachParams = {
|
|
|
2485
2486
|
*/
|
|
2486
2487
|
invoiceMode?: AttachInvoiceMode | undefined;
|
|
2487
2488
|
/**
|
|
2488
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
2489
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
2489
2490
|
*/
|
|
2490
2491
|
prorationBehavior?: AttachProrationBehavior | undefined;
|
|
2491
2492
|
/**
|
|
@@ -4796,14 +4797,15 @@ type BillingUpdateInvoiceMode = {
|
|
|
4796
4797
|
netTermsDays?: number | undefined;
|
|
4797
4798
|
};
|
|
4798
4799
|
/**
|
|
4799
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
4800
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
4800
4801
|
*/
|
|
4801
4802
|
declare const BillingUpdateProrationBehavior: {
|
|
4802
4803
|
readonly ProrateImmediately: "prorate_immediately";
|
|
4803
4804
|
readonly None: "none";
|
|
4805
|
+
readonly BillDifference: "bill_difference";
|
|
4804
4806
|
};
|
|
4805
4807
|
/**
|
|
4806
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
4808
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
4807
4809
|
*/
|
|
4808
4810
|
type BillingUpdateProrationBehavior = ClosedEnum<typeof BillingUpdateProrationBehavior>;
|
|
4809
4811
|
/**
|
|
@@ -4939,7 +4941,7 @@ type UpdateSubscriptionParams = {
|
|
|
4939
4941
|
*/
|
|
4940
4942
|
invoiceMode?: BillingUpdateInvoiceMode | undefined;
|
|
4941
4943
|
/**
|
|
4942
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
4944
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
4943
4945
|
*/
|
|
4944
4946
|
prorationBehavior?: BillingUpdateProrationBehavior | undefined;
|
|
4945
4947
|
/**
|
|
@@ -9229,14 +9231,15 @@ type MultiAttachAttachDiscount = {
|
|
|
9229
9231
|
promotionCode?: string | undefined;
|
|
9230
9232
|
};
|
|
9231
9233
|
/**
|
|
9232
|
-
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
9234
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
9233
9235
|
*/
|
|
9234
9236
|
declare const MultiAttachBillingBehavior: {
|
|
9235
9237
|
readonly ProrateImmediately: "prorate_immediately";
|
|
9236
9238
|
readonly None: "none";
|
|
9239
|
+
readonly BillDifference: "bill_difference";
|
|
9237
9240
|
};
|
|
9238
9241
|
/**
|
|
9239
|
-
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
9242
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
9240
9243
|
*/
|
|
9241
9244
|
type MultiAttachBillingBehavior = ClosedEnum<typeof MultiAttachBillingBehavior>;
|
|
9242
9245
|
/**
|
|
@@ -9485,7 +9488,7 @@ type MultiAttachParams = {
|
|
|
9485
9488
|
*/
|
|
9486
9489
|
discounts?: Array<MultiAttachAttachDiscount> | undefined;
|
|
9487
9490
|
/**
|
|
9488
|
-
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
9491
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
9489
9492
|
*/
|
|
9490
9493
|
billingBehavior?: MultiAttachBillingBehavior | undefined;
|
|
9491
9494
|
/**
|
|
@@ -11759,14 +11762,15 @@ type PreviewAttachInvoiceMode = {
|
|
|
11759
11762
|
netTermsDays?: number | undefined;
|
|
11760
11763
|
};
|
|
11761
11764
|
/**
|
|
11762
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
11765
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
11763
11766
|
*/
|
|
11764
11767
|
declare const PreviewAttachProrationBehavior: {
|
|
11765
11768
|
readonly ProrateImmediately: "prorate_immediately";
|
|
11766
11769
|
readonly None: "none";
|
|
11770
|
+
readonly BillDifference: "bill_difference";
|
|
11767
11771
|
};
|
|
11768
11772
|
/**
|
|
11769
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
11773
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
11770
11774
|
*/
|
|
11771
11775
|
type PreviewAttachProrationBehavior = ClosedEnum<typeof PreviewAttachProrationBehavior>;
|
|
11772
11776
|
/**
|
|
@@ -11894,7 +11898,7 @@ type PreviewAttachParams = {
|
|
|
11894
11898
|
*/
|
|
11895
11899
|
invoiceMode?: PreviewAttachInvoiceMode | undefined;
|
|
11896
11900
|
/**
|
|
11897
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
11901
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
11898
11902
|
*/
|
|
11899
11903
|
prorationBehavior?: PreviewAttachProrationBehavior | undefined;
|
|
11900
11904
|
/**
|
|
@@ -13029,14 +13033,15 @@ type PreviewMultiAttachAttachDiscount = {
|
|
|
13029
13033
|
promotionCode?: string | undefined;
|
|
13030
13034
|
};
|
|
13031
13035
|
/**
|
|
13032
|
-
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
13036
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
13033
13037
|
*/
|
|
13034
13038
|
declare const PreviewMultiAttachBillingBehavior: {
|
|
13035
13039
|
readonly ProrateImmediately: "prorate_immediately";
|
|
13036
13040
|
readonly None: "none";
|
|
13041
|
+
readonly BillDifference: "bill_difference";
|
|
13037
13042
|
};
|
|
13038
13043
|
/**
|
|
13039
|
-
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
13044
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
13040
13045
|
*/
|
|
13041
13046
|
type PreviewMultiAttachBillingBehavior = ClosedEnum<typeof PreviewMultiAttachBillingBehavior>;
|
|
13042
13047
|
/**
|
|
@@ -13285,7 +13290,7 @@ type PreviewMultiAttachParams = {
|
|
|
13285
13290
|
*/
|
|
13286
13291
|
discounts?: Array<PreviewMultiAttachAttachDiscount> | undefined;
|
|
13287
13292
|
/**
|
|
13288
|
-
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything.
|
|
13293
|
+
* How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
13289
13294
|
*/
|
|
13290
13295
|
billingBehavior?: PreviewMultiAttachBillingBehavior | undefined;
|
|
13291
13296
|
/**
|
|
@@ -15807,14 +15812,15 @@ type PreviewUpdateInvoiceMode = {
|
|
|
15807
15812
|
netTermsDays?: number | undefined;
|
|
15808
15813
|
};
|
|
15809
15814
|
/**
|
|
15810
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
15815
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
15811
15816
|
*/
|
|
15812
15817
|
declare const PreviewUpdateProrationBehavior: {
|
|
15813
15818
|
readonly ProrateImmediately: "prorate_immediately";
|
|
15814
15819
|
readonly None: "none";
|
|
15820
|
+
readonly BillDifference: "bill_difference";
|
|
15815
15821
|
};
|
|
15816
15822
|
/**
|
|
15817
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
15823
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
15818
15824
|
*/
|
|
15819
15825
|
type PreviewUpdateProrationBehavior = ClosedEnum<typeof PreviewUpdateProrationBehavior>;
|
|
15820
15826
|
/**
|
|
@@ -15950,7 +15956,7 @@ type PreviewUpdateParams = {
|
|
|
15950
15956
|
*/
|
|
15951
15957
|
invoiceMode?: PreviewUpdateInvoiceMode | undefined;
|
|
15952
15958
|
/**
|
|
15953
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
15959
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
15954
15960
|
*/
|
|
15955
15961
|
prorationBehavior?: PreviewUpdateProrationBehavior | undefined;
|
|
15956
15962
|
/**
|
|
@@ -18498,14 +18504,15 @@ type SetupPaymentCustomize = {
|
|
|
18498
18504
|
removeLicenses?: Array<SetupPaymentRemoveLicense> | undefined;
|
|
18499
18505
|
};
|
|
18500
18506
|
/**
|
|
18501
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
18507
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
18502
18508
|
*/
|
|
18503
18509
|
declare const SetupPaymentProrationBehavior: {
|
|
18504
18510
|
readonly ProrateImmediately: "prorate_immediately";
|
|
18505
18511
|
readonly None: "none";
|
|
18512
|
+
readonly BillDifference: "bill_difference";
|
|
18506
18513
|
};
|
|
18507
18514
|
/**
|
|
18508
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
18515
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
18509
18516
|
*/
|
|
18510
18517
|
type SetupPaymentProrationBehavior = ClosedEnum<typeof SetupPaymentProrationBehavior>;
|
|
18511
18518
|
/**
|
|
@@ -18606,7 +18613,7 @@ type SetupPaymentParams = {
|
|
|
18606
18613
|
*/
|
|
18607
18614
|
customize?: SetupPaymentCustomize | undefined;
|
|
18608
18615
|
/**
|
|
18609
|
-
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges.
|
|
18616
|
+
* How to handle proration when updating an existing subscription. 'prorate_immediately' charges/credits prorated amounts now, 'none' skips creating any charges, 'bill_difference' charges/credits the full-period price difference now without changing the billing cycle.
|
|
18610
18617
|
*/
|
|
18611
18618
|
prorationBehavior?: SetupPaymentProrationBehavior | undefined;
|
|
18612
18619
|
/**
|