autumn-js 1.5.24 → 1.5.26
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.d.mts +1 -0
- package/dist/backend/adapters/express.d.ts +1 -0
- package/dist/backend/adapters/express.js +83 -53
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.d.mts +1 -0
- package/dist/backend/adapters/fetch.d.ts +1 -0
- package/dist/backend/adapters/fetch.js +83 -53
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.d.mts +1 -0
- package/dist/backend/adapters/hono.d.ts +1 -0
- package/dist/backend/adapters/hono.js +83 -53
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.js +83 -53
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.d.mts +1 -0
- package/dist/backend/adapters/next.d.ts +1 -0
- package/dist/backend/adapters/next.js +83 -53
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{chunk-YTQLWUGE.mjs → chunk-E2WFV4XB.mjs} +1 -1
- package/dist/backend/{chunk-HK6BNGXN.mjs → chunk-I5WMDUR2.mjs} +1 -1
- package/dist/backend/{chunk-BE4ODIBC.mjs → chunk-LSFSQ6FZ.mjs} +1 -1
- package/dist/backend/{chunk-24X53XDV.mjs → chunk-OW7CL4LT.mjs} +6 -6
- package/dist/backend/{chunk-D7AAOSXV.mjs → chunk-RRDYTCML.mjs} +1 -1
- package/dist/backend/{chunk-TC5ZXKBC.mjs → chunk-SNL5PTPA.mjs} +4 -4
- package/dist/backend/{chunk-SXXEU2AH.mjs → chunk-XOVAC25I.mjs} +83 -53
- 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 +83 -53
- 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 +83 -53
- 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 +83 -53
- 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 +83 -53
- 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 +3 -2
- package/dist/backend/index.d.ts +3 -2
- package/dist/backend/index.js +83 -53
- package/dist/backend/index.mjs +9 -9
- package/dist/backend/{routeTypes-DH5QHF50.d.ts → routeTypes-DJWKrFfr.d.ts} +178 -106
- package/dist/backend/{routeTypes-C8T7saer.d.mts → routeTypes-DetCreAJ.d.mts} +178 -106
- package/dist/better-auth/{chunk-6DMCGR2Q.mjs → chunk-QJCOZXFG.mjs} +83 -53
- package/dist/better-auth/client.d.mts +1 -1
- package/dist/better-auth/client.d.ts +1 -1
- package/dist/better-auth/index.d.mts +1 -0
- package/dist/better-auth/index.d.ts +1 -0
- package/dist/better-auth/index.js +83 -53
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +83 -53
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +83 -53
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-aA86wzXW.d.mts → customer-Btf__XyU.d.mts} +12 -0
- package/dist/react/{customer-Ci8JUCQ6.d.ts → customer-SZkGcMTp.d.ts} +12 -0
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- 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 +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- 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 +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/{params-Bhimfqqu.d.ts → params-BYjxpQ4l.d.ts} +14 -2
- package/dist/react/{params-BaM-BbuK.d.mts → params-DFTZwiMH.d.mts} +14 -2
- package/dist/sdk/index.d.mts +178 -106
- package/dist/sdk/index.d.ts +178 -106
- package/dist/sdk/index.js +83 -53
- package/dist/sdk/index.mjs +83 -53
- package/package.json +2 -2
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -11,6 +11,7 @@ type ExpressAutumnHandlerOptions = {
|
|
|
11
11
|
/** Path prefix for routes (default: "/api/autumn") */
|
|
12
12
|
pathPrefix?: string;
|
|
13
13
|
};
|
|
14
|
+
/** @deprecated Autumn's backend handlers are deprecated, as requests from a client can always be modified by that client. Please call our backend SDK from your own server routes instead. */
|
|
14
15
|
declare function autumnHandler(options: ExpressAutumnHandlerOptions): RequestHandler;
|
|
15
16
|
|
|
16
17
|
export { type ExpressAutumnHandlerOptions, autumnHandler };
|
|
@@ -11,6 +11,7 @@ type ExpressAutumnHandlerOptions = {
|
|
|
11
11
|
/** Path prefix for routes (default: "/api/autumn") */
|
|
12
12
|
pathPrefix?: string;
|
|
13
13
|
};
|
|
14
|
+
/** @deprecated Autumn's backend handlers are deprecated, as requests from a client can always be modified by that client. Please call our backend SDK from your own server routes instead. */
|
|
14
15
|
declare function autumnHandler(options: ExpressAutumnHandlerOptions): RequestHandler;
|
|
15
16
|
|
|
16
17
|
export { type ExpressAutumnHandlerOptions, autumnHandler };
|
|
@@ -84897,6 +84897,7 @@ var CreateEntityBillingControlsResponse$inboundSchema = z61.pipe(
|
|
|
84897
84897
|
var CreateEntityProcessorType$inboundSchema = inboundSchema(CreateEntityProcessorType);
|
|
84898
84898
|
var CreateEntityInvoice$inboundSchema = z61.pipe(
|
|
84899
84899
|
z61.object({
|
|
84900
|
+
id: string5(),
|
|
84900
84901
|
plan_ids: z61.array(string5()),
|
|
84901
84902
|
stripe_id: string5(),
|
|
84902
84903
|
processor_type: z61._default(
|
|
@@ -84905,6 +84906,8 @@ var CreateEntityInvoice$inboundSchema = z61.pipe(
|
|
|
84905
84906
|
),
|
|
84906
84907
|
status: string5(),
|
|
84907
84908
|
total: number2(),
|
|
84909
|
+
amount_paid: nullable(number2()),
|
|
84910
|
+
refunded_amount: number2(),
|
|
84908
84911
|
currency: string5(),
|
|
84909
84912
|
created_at: number2(),
|
|
84910
84913
|
hosted_invoice_url: z61.optional(z61.nullable(string5()))
|
|
@@ -84914,6 +84917,8 @@ var CreateEntityInvoice$inboundSchema = z61.pipe(
|
|
|
84914
84917
|
"plan_ids": "planIds",
|
|
84915
84918
|
"stripe_id": "stripeId",
|
|
84916
84919
|
"processor_type": "processorType",
|
|
84920
|
+
"amount_paid": "amountPaid",
|
|
84921
|
+
"refunded_amount": "refundedAmount",
|
|
84917
84922
|
"created_at": "createdAt",
|
|
84918
84923
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
84919
84924
|
});
|
|
@@ -86086,6 +86091,7 @@ var CreateInvoiceInvoiceItem$inboundSchema = z63.pipe(
|
|
|
86086
86091
|
);
|
|
86087
86092
|
var CreateInvoiceInvoice$inboundSchema = z63.pipe(
|
|
86088
86093
|
z63.object({
|
|
86094
|
+
id: string5(),
|
|
86089
86095
|
plan_ids: z63.array(string5()),
|
|
86090
86096
|
stripe_id: string5(),
|
|
86091
86097
|
processor_type: z63._default(
|
|
@@ -86094,14 +86100,13 @@ var CreateInvoiceInvoice$inboundSchema = z63.pipe(
|
|
|
86094
86100
|
),
|
|
86095
86101
|
status: string5(),
|
|
86096
86102
|
total: number2(),
|
|
86103
|
+
amount_paid: nullable(number2()),
|
|
86104
|
+
refunded_amount: number2(),
|
|
86097
86105
|
currency: string5(),
|
|
86098
86106
|
created_at: number2(),
|
|
86099
86107
|
hosted_invoice_url: z63.optional(z63.nullable(string5())),
|
|
86100
|
-
id: string5(),
|
|
86101
86108
|
customer_id: nullable(string5()),
|
|
86102
86109
|
entity_id: nullable(string5()),
|
|
86103
|
-
amount_paid: nullable(number2()),
|
|
86104
|
-
refunded_amount: number2(),
|
|
86105
86110
|
items: optional3(
|
|
86106
86111
|
z63.array(z63.lazy(() => CreateInvoiceInvoiceItem$inboundSchema))
|
|
86107
86112
|
)
|
|
@@ -86111,12 +86116,12 @@ var CreateInvoiceInvoice$inboundSchema = z63.pipe(
|
|
|
86111
86116
|
"plan_ids": "planIds",
|
|
86112
86117
|
"stripe_id": "stripeId",
|
|
86113
86118
|
"processor_type": "processorType",
|
|
86119
|
+
"amount_paid": "amountPaid",
|
|
86120
|
+
"refunded_amount": "refundedAmount",
|
|
86114
86121
|
"created_at": "createdAt",
|
|
86115
86122
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
86116
86123
|
"customer_id": "customerId",
|
|
86117
|
-
"entity_id": "entityId"
|
|
86118
|
-
"amount_paid": "amountPaid",
|
|
86119
|
-
"refunded_amount": "refundedAmount"
|
|
86124
|
+
"entity_id": "entityId"
|
|
86120
86125
|
});
|
|
86121
86126
|
})
|
|
86122
86127
|
);
|
|
@@ -94179,11 +94184,14 @@ var CustomerProcessors$inboundSchema = z76.object({
|
|
|
94179
94184
|
var ProcessorType$inboundSchema = inboundSchema(ProcessorType);
|
|
94180
94185
|
var Invoice$inboundSchema = z76.pipe(
|
|
94181
94186
|
z76.object({
|
|
94187
|
+
id: string5(),
|
|
94182
94188
|
plan_ids: z76.array(string5()),
|
|
94183
94189
|
stripe_id: string5(),
|
|
94184
94190
|
processor_type: z76._default(ProcessorType$inboundSchema, "stripe"),
|
|
94185
94191
|
status: string5(),
|
|
94186
94192
|
total: number2(),
|
|
94193
|
+
amount_paid: nullable(number2()),
|
|
94194
|
+
refunded_amount: number2(),
|
|
94187
94195
|
currency: string5(),
|
|
94188
94196
|
created_at: number2(),
|
|
94189
94197
|
hosted_invoice_url: z76.optional(z76.nullable(string5()))
|
|
@@ -94193,6 +94201,8 @@ var Invoice$inboundSchema = z76.pipe(
|
|
|
94193
94201
|
"plan_ids": "planIds",
|
|
94194
94202
|
"stripe_id": "stripeId",
|
|
94195
94203
|
"processor_type": "processorType",
|
|
94204
|
+
"amount_paid": "amountPaid",
|
|
94205
|
+
"refunded_amount": "refundedAmount",
|
|
94196
94206
|
"created_at": "createdAt",
|
|
94197
94207
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
94198
94208
|
});
|
|
@@ -94680,6 +94690,7 @@ var FinalizeInvoiceItem$inboundSchema = z88.pipe(
|
|
|
94680
94690
|
);
|
|
94681
94691
|
var FinalizeInvoiceInvoice$inboundSchema = z88.pipe(
|
|
94682
94692
|
z88.object({
|
|
94693
|
+
id: string5(),
|
|
94683
94694
|
plan_ids: z88.array(string5()),
|
|
94684
94695
|
stripe_id: string5(),
|
|
94685
94696
|
processor_type: z88._default(
|
|
@@ -94688,14 +94699,13 @@ var FinalizeInvoiceInvoice$inboundSchema = z88.pipe(
|
|
|
94688
94699
|
),
|
|
94689
94700
|
status: string5(),
|
|
94690
94701
|
total: number2(),
|
|
94702
|
+
amount_paid: nullable(number2()),
|
|
94703
|
+
refunded_amount: number2(),
|
|
94691
94704
|
currency: string5(),
|
|
94692
94705
|
created_at: number2(),
|
|
94693
94706
|
hosted_invoice_url: z88.optional(z88.nullable(string5())),
|
|
94694
|
-
id: string5(),
|
|
94695
94707
|
customer_id: nullable(string5()),
|
|
94696
94708
|
entity_id: nullable(string5()),
|
|
94697
|
-
amount_paid: nullable(number2()),
|
|
94698
|
-
refunded_amount: number2(),
|
|
94699
94709
|
items: optional3(
|
|
94700
94710
|
z88.array(z88.lazy(() => FinalizeInvoiceItem$inboundSchema))
|
|
94701
94711
|
)
|
|
@@ -94705,12 +94715,12 @@ var FinalizeInvoiceInvoice$inboundSchema = z88.pipe(
|
|
|
94705
94715
|
"plan_ids": "planIds",
|
|
94706
94716
|
"stripe_id": "stripeId",
|
|
94707
94717
|
"processor_type": "processorType",
|
|
94718
|
+
"amount_paid": "amountPaid",
|
|
94719
|
+
"refunded_amount": "refundedAmount",
|
|
94708
94720
|
"created_at": "createdAt",
|
|
94709
94721
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
94710
94722
|
"customer_id": "customerId",
|
|
94711
|
-
"entity_id": "entityId"
|
|
94712
|
-
"amount_paid": "amountPaid",
|
|
94713
|
-
"refunded_amount": "refundedAmount"
|
|
94723
|
+
"entity_id": "entityId"
|
|
94714
94724
|
});
|
|
94715
94725
|
})
|
|
94716
94726
|
);
|
|
@@ -95527,6 +95537,7 @@ var GetCustomerProcessors$inboundSchema = z92.object({
|
|
|
95527
95537
|
var GetCustomerProcessorType$inboundSchema = inboundSchema(GetCustomerProcessorType);
|
|
95528
95538
|
var GetCustomerInvoice$inboundSchema = z92.pipe(
|
|
95529
95539
|
z92.object({
|
|
95540
|
+
id: string5(),
|
|
95530
95541
|
plan_ids: z92.array(string5()),
|
|
95531
95542
|
stripe_id: string5(),
|
|
95532
95543
|
processor_type: z92._default(
|
|
@@ -95535,6 +95546,8 @@ var GetCustomerInvoice$inboundSchema = z92.pipe(
|
|
|
95535
95546
|
),
|
|
95536
95547
|
status: string5(),
|
|
95537
95548
|
total: number2(),
|
|
95549
|
+
amount_paid: nullable(number2()),
|
|
95550
|
+
refunded_amount: number2(),
|
|
95538
95551
|
currency: string5(),
|
|
95539
95552
|
created_at: number2(),
|
|
95540
95553
|
hosted_invoice_url: z92.optional(z92.nullable(string5()))
|
|
@@ -95544,6 +95557,8 @@ var GetCustomerInvoice$inboundSchema = z92.pipe(
|
|
|
95544
95557
|
"plan_ids": "planIds",
|
|
95545
95558
|
"stripe_id": "stripeId",
|
|
95546
95559
|
"processor_type": "processorType",
|
|
95560
|
+
"amount_paid": "amountPaid",
|
|
95561
|
+
"refunded_amount": "refundedAmount",
|
|
95547
95562
|
"created_at": "createdAt",
|
|
95548
95563
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
95549
95564
|
});
|
|
@@ -96245,11 +96260,14 @@ var GetEntityBillingControls$inboundSchema = z93.pipe(
|
|
|
96245
96260
|
var GetEntityProcessorType$inboundSchema = inboundSchema(GetEntityProcessorType);
|
|
96246
96261
|
var GetEntityInvoice$inboundSchema = z93.pipe(
|
|
96247
96262
|
z93.object({
|
|
96263
|
+
id: string5(),
|
|
96248
96264
|
plan_ids: z93.array(string5()),
|
|
96249
96265
|
stripe_id: string5(),
|
|
96250
96266
|
processor_type: z93._default(GetEntityProcessorType$inboundSchema, "stripe"),
|
|
96251
96267
|
status: string5(),
|
|
96252
96268
|
total: number2(),
|
|
96269
|
+
amount_paid: nullable(number2()),
|
|
96270
|
+
refunded_amount: number2(),
|
|
96253
96271
|
currency: string5(),
|
|
96254
96272
|
created_at: number2(),
|
|
96255
96273
|
hosted_invoice_url: z93.optional(z93.nullable(string5()))
|
|
@@ -96259,6 +96277,8 @@ var GetEntityInvoice$inboundSchema = z93.pipe(
|
|
|
96259
96277
|
"plan_ids": "planIds",
|
|
96260
96278
|
"stripe_id": "stripeId",
|
|
96261
96279
|
"processor_type": "processorType",
|
|
96280
|
+
"amount_paid": "amountPaid",
|
|
96281
|
+
"refunded_amount": "refundedAmount",
|
|
96262
96282
|
"created_at": "createdAt",
|
|
96263
96283
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
96264
96284
|
});
|
|
@@ -99748,6 +99768,7 @@ var InsertInvoicesParams$outboundSchema = z104.object({
|
|
|
99748
99768
|
var InsertInvoicesProcessorTypeResponse$inboundSchema = inboundSchema(InsertInvoicesProcessorTypeResponse);
|
|
99749
99769
|
var InsertInvoicesInvoiceResponse$inboundSchema = z104.pipe(
|
|
99750
99770
|
z104.object({
|
|
99771
|
+
id: string5(),
|
|
99751
99772
|
plan_ids: z104.array(string5()),
|
|
99752
99773
|
stripe_id: string5(),
|
|
99753
99774
|
processor_type: z104._default(
|
|
@@ -99756,24 +99777,23 @@ var InsertInvoicesInvoiceResponse$inboundSchema = z104.pipe(
|
|
|
99756
99777
|
),
|
|
99757
99778
|
status: string5(),
|
|
99758
99779
|
total: number2(),
|
|
99780
|
+
amount_paid: nullable(number2()),
|
|
99781
|
+
refunded_amount: number2(),
|
|
99759
99782
|
currency: string5(),
|
|
99760
99783
|
created_at: number2(),
|
|
99761
99784
|
hosted_invoice_url: z104.optional(z104.nullable(string5())),
|
|
99762
|
-
|
|
99763
|
-
customer_id: string5(),
|
|
99764
|
-
amount_paid: nullable(number2()),
|
|
99765
|
-
refunded_amount: number2()
|
|
99785
|
+
customer_id: string5()
|
|
99766
99786
|
}),
|
|
99767
99787
|
z104.transform((v) => {
|
|
99768
99788
|
return remap(v, {
|
|
99769
99789
|
"plan_ids": "planIds",
|
|
99770
99790
|
"stripe_id": "stripeId",
|
|
99771
99791
|
"processor_type": "processorType",
|
|
99792
|
+
"amount_paid": "amountPaid",
|
|
99793
|
+
"refunded_amount": "refundedAmount",
|
|
99772
99794
|
"created_at": "createdAt",
|
|
99773
99795
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
99774
|
-
"customer_id": "customerId"
|
|
99775
|
-
"amount_paid": "amountPaid",
|
|
99776
|
-
"refunded_amount": "refundedAmount"
|
|
99796
|
+
"customer_id": "customerId"
|
|
99777
99797
|
});
|
|
99778
99798
|
})
|
|
99779
99799
|
);
|
|
@@ -101496,6 +101516,7 @@ var ListEntitiesBillingControls$inboundSchema = z111.pipe(
|
|
|
101496
101516
|
var ListEntitiesProcessorType$inboundSchema = inboundSchema(ListEntitiesProcessorType);
|
|
101497
101517
|
var ListEntitiesInvoice$inboundSchema = z111.pipe(
|
|
101498
101518
|
z111.object({
|
|
101519
|
+
id: string5(),
|
|
101499
101520
|
plan_ids: z111.array(string5()),
|
|
101500
101521
|
stripe_id: string5(),
|
|
101501
101522
|
processor_type: z111._default(
|
|
@@ -101504,6 +101525,8 @@ var ListEntitiesInvoice$inboundSchema = z111.pipe(
|
|
|
101504
101525
|
),
|
|
101505
101526
|
status: string5(),
|
|
101506
101527
|
total: number2(),
|
|
101528
|
+
amount_paid: nullable(number2()),
|
|
101529
|
+
refunded_amount: number2(),
|
|
101507
101530
|
currency: string5(),
|
|
101508
101531
|
created_at: number2(),
|
|
101509
101532
|
hosted_invoice_url: z111.optional(z111.nullable(string5()))
|
|
@@ -101513,6 +101536,8 @@ var ListEntitiesInvoice$inboundSchema = z111.pipe(
|
|
|
101513
101536
|
"plan_ids": "planIds",
|
|
101514
101537
|
"stripe_id": "stripeId",
|
|
101515
101538
|
"processor_type": "processorType",
|
|
101539
|
+
"amount_paid": "amountPaid",
|
|
101540
|
+
"refunded_amount": "refundedAmount",
|
|
101516
101541
|
"created_at": "createdAt",
|
|
101517
101542
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
101518
101543
|
});
|
|
@@ -101992,6 +102017,7 @@ var ListInvoicesItem$inboundSchema = z115.pipe(
|
|
|
101992
102017
|
);
|
|
101993
102018
|
var ListInvoicesList$inboundSchema = z115.pipe(
|
|
101994
102019
|
z115.object({
|
|
102020
|
+
id: string5(),
|
|
101995
102021
|
plan_ids: z115.array(string5()),
|
|
101996
102022
|
stripe_id: string5(),
|
|
101997
102023
|
processor_type: z115._default(
|
|
@@ -102000,14 +102026,13 @@ var ListInvoicesList$inboundSchema = z115.pipe(
|
|
|
102000
102026
|
),
|
|
102001
102027
|
status: string5(),
|
|
102002
102028
|
total: number2(),
|
|
102029
|
+
amount_paid: nullable(number2()),
|
|
102030
|
+
refunded_amount: number2(),
|
|
102003
102031
|
currency: string5(),
|
|
102004
102032
|
created_at: number2(),
|
|
102005
102033
|
hosted_invoice_url: z115.optional(z115.nullable(string5())),
|
|
102006
|
-
id: string5(),
|
|
102007
102034
|
customer_id: nullable(string5()),
|
|
102008
102035
|
entity_id: nullable(string5()),
|
|
102009
|
-
amount_paid: nullable(number2()),
|
|
102010
|
-
refunded_amount: number2(),
|
|
102011
102036
|
items: optional3(
|
|
102012
102037
|
z115.array(z115.lazy(() => ListInvoicesItem$inboundSchema))
|
|
102013
102038
|
)
|
|
@@ -102017,12 +102042,12 @@ var ListInvoicesList$inboundSchema = z115.pipe(
|
|
|
102017
102042
|
"plan_ids": "planIds",
|
|
102018
102043
|
"stripe_id": "stripeId",
|
|
102019
102044
|
"processor_type": "processorType",
|
|
102045
|
+
"amount_paid": "amountPaid",
|
|
102046
|
+
"refunded_amount": "refundedAmount",
|
|
102020
102047
|
"created_at": "createdAt",
|
|
102021
102048
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
102022
102049
|
"customer_id": "customerId",
|
|
102023
|
-
"entity_id": "entityId"
|
|
102024
|
-
"amount_paid": "amountPaid",
|
|
102025
|
-
"refunded_amount": "refundedAmount"
|
|
102050
|
+
"entity_id": "entityId"
|
|
102026
102051
|
});
|
|
102027
102052
|
})
|
|
102028
102053
|
);
|
|
@@ -107760,19 +107785,19 @@ var PayInvoiceItem$inboundSchema = z129.pipe(
|
|
|
107760
107785
|
);
|
|
107761
107786
|
var PayInvoiceInvoice$inboundSchema = z129.pipe(
|
|
107762
107787
|
z129.object({
|
|
107788
|
+
id: string5(),
|
|
107763
107789
|
plan_ids: z129.array(string5()),
|
|
107764
107790
|
stripe_id: string5(),
|
|
107765
107791
|
processor_type: z129._default(PayInvoiceProcessorType$inboundSchema, "stripe"),
|
|
107766
107792
|
status: string5(),
|
|
107767
107793
|
total: number2(),
|
|
107794
|
+
amount_paid: nullable(number2()),
|
|
107795
|
+
refunded_amount: number2(),
|
|
107768
107796
|
currency: string5(),
|
|
107769
107797
|
created_at: number2(),
|
|
107770
107798
|
hosted_invoice_url: z129.optional(z129.nullable(string5())),
|
|
107771
|
-
id: string5(),
|
|
107772
107799
|
customer_id: nullable(string5()),
|
|
107773
107800
|
entity_id: nullable(string5()),
|
|
107774
|
-
amount_paid: nullable(number2()),
|
|
107775
|
-
refunded_amount: number2(),
|
|
107776
107801
|
items: optional3(z129.array(z129.lazy(() => PayInvoiceItem$inboundSchema)))
|
|
107777
107802
|
}),
|
|
107778
107803
|
z129.transform((v) => {
|
|
@@ -107780,12 +107805,12 @@ var PayInvoiceInvoice$inboundSchema = z129.pipe(
|
|
|
107780
107805
|
"plan_ids": "planIds",
|
|
107781
107806
|
"stripe_id": "stripeId",
|
|
107782
107807
|
"processor_type": "processorType",
|
|
107808
|
+
"amount_paid": "amountPaid",
|
|
107809
|
+
"refunded_amount": "refundedAmount",
|
|
107783
107810
|
"created_at": "createdAt",
|
|
107784
107811
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
107785
107812
|
"customer_id": "customerId",
|
|
107786
|
-
"entity_id": "entityId"
|
|
107787
|
-
"amount_paid": "amountPaid",
|
|
107788
|
-
"refunded_amount": "refundedAmount"
|
|
107813
|
+
"entity_id": "entityId"
|
|
107789
107814
|
});
|
|
107790
107815
|
})
|
|
107791
107816
|
);
|
|
@@ -114772,6 +114797,7 @@ var ReissueInvoiceInvoiceItem$inboundSchema = z139.pipe(
|
|
|
114772
114797
|
);
|
|
114773
114798
|
var ReissueInvoiceInvoiceResponse$inboundSchema = z139.pipe(
|
|
114774
114799
|
z139.object({
|
|
114800
|
+
id: string5(),
|
|
114775
114801
|
plan_ids: z139.array(string5()),
|
|
114776
114802
|
stripe_id: string5(),
|
|
114777
114803
|
processor_type: z139._default(
|
|
@@ -114780,14 +114806,13 @@ var ReissueInvoiceInvoiceResponse$inboundSchema = z139.pipe(
|
|
|
114780
114806
|
),
|
|
114781
114807
|
status: string5(),
|
|
114782
114808
|
total: number2(),
|
|
114809
|
+
amount_paid: nullable(number2()),
|
|
114810
|
+
refunded_amount: number2(),
|
|
114783
114811
|
currency: string5(),
|
|
114784
114812
|
created_at: number2(),
|
|
114785
114813
|
hosted_invoice_url: z139.optional(z139.nullable(string5())),
|
|
114786
|
-
id: string5(),
|
|
114787
114814
|
customer_id: nullable(string5()),
|
|
114788
114815
|
entity_id: nullable(string5()),
|
|
114789
|
-
amount_paid: nullable(number2()),
|
|
114790
|
-
refunded_amount: number2(),
|
|
114791
114816
|
items: optional3(
|
|
114792
114817
|
z139.array(z139.lazy(() => ReissueInvoiceInvoiceItem$inboundSchema))
|
|
114793
114818
|
)
|
|
@@ -114797,12 +114822,12 @@ var ReissueInvoiceInvoiceResponse$inboundSchema = z139.pipe(
|
|
|
114797
114822
|
"plan_ids": "planIds",
|
|
114798
114823
|
"stripe_id": "stripeId",
|
|
114799
114824
|
"processor_type": "processorType",
|
|
114825
|
+
"amount_paid": "amountPaid",
|
|
114826
|
+
"refunded_amount": "refundedAmount",
|
|
114800
114827
|
"created_at": "createdAt",
|
|
114801
114828
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
114802
114829
|
"customer_id": "customerId",
|
|
114803
|
-
"entity_id": "entityId"
|
|
114804
|
-
"amount_paid": "amountPaid",
|
|
114805
|
-
"refunded_amount": "refundedAmount"
|
|
114830
|
+
"entity_id": "entityId"
|
|
114806
114831
|
});
|
|
114807
114832
|
})
|
|
114808
114833
|
);
|
|
@@ -119419,6 +119444,7 @@ var UpdateEntityBillingControlsResponse$inboundSchema = z153.pipe(
|
|
|
119419
119444
|
var UpdateEntityProcessorType$inboundSchema = inboundSchema(UpdateEntityProcessorType);
|
|
119420
119445
|
var UpdateEntityInvoice$inboundSchema = z153.pipe(
|
|
119421
119446
|
z153.object({
|
|
119447
|
+
id: string5(),
|
|
119422
119448
|
plan_ids: z153.array(string5()),
|
|
119423
119449
|
stripe_id: string5(),
|
|
119424
119450
|
processor_type: z153._default(
|
|
@@ -119427,6 +119453,8 @@ var UpdateEntityInvoice$inboundSchema = z153.pipe(
|
|
|
119427
119453
|
),
|
|
119428
119454
|
status: string5(),
|
|
119429
119455
|
total: number2(),
|
|
119456
|
+
amount_paid: nullable(number2()),
|
|
119457
|
+
refunded_amount: number2(),
|
|
119430
119458
|
currency: string5(),
|
|
119431
119459
|
created_at: number2(),
|
|
119432
119460
|
hosted_invoice_url: z153.optional(z153.nullable(string5()))
|
|
@@ -119436,6 +119464,8 @@ var UpdateEntityInvoice$inboundSchema = z153.pipe(
|
|
|
119436
119464
|
"plan_ids": "planIds",
|
|
119437
119465
|
"stripe_id": "stripeId",
|
|
119438
119466
|
"processor_type": "processorType",
|
|
119467
|
+
"amount_paid": "amountPaid",
|
|
119468
|
+
"refunded_amount": "refundedAmount",
|
|
119439
119469
|
"created_at": "createdAt",
|
|
119440
119470
|
"hosted_invoice_url": "hostedInvoiceUrl"
|
|
119441
119471
|
});
|
|
@@ -119890,6 +119920,7 @@ var UpdateInvoiceItem$inboundSchema = z155.pipe(
|
|
|
119890
119920
|
);
|
|
119891
119921
|
var UpdateInvoiceInvoice$inboundSchema = z155.pipe(
|
|
119892
119922
|
z155.object({
|
|
119923
|
+
id: string5(),
|
|
119893
119924
|
plan_ids: z155.array(string5()),
|
|
119894
119925
|
stripe_id: string5(),
|
|
119895
119926
|
processor_type: z155._default(
|
|
@@ -119898,14 +119929,13 @@ var UpdateInvoiceInvoice$inboundSchema = z155.pipe(
|
|
|
119898
119929
|
),
|
|
119899
119930
|
status: string5(),
|
|
119900
119931
|
total: number2(),
|
|
119932
|
+
amount_paid: nullable(number2()),
|
|
119933
|
+
refunded_amount: number2(),
|
|
119901
119934
|
currency: string5(),
|
|
119902
119935
|
created_at: number2(),
|
|
119903
119936
|
hosted_invoice_url: z155.optional(z155.nullable(string5())),
|
|
119904
|
-
id: string5(),
|
|
119905
119937
|
customer_id: nullable(string5()),
|
|
119906
119938
|
entity_id: nullable(string5()),
|
|
119907
|
-
amount_paid: nullable(number2()),
|
|
119908
|
-
refunded_amount: number2(),
|
|
119909
119939
|
items: optional3(
|
|
119910
119940
|
z155.array(z155.lazy(() => UpdateInvoiceItem$inboundSchema))
|
|
119911
119941
|
)
|
|
@@ -119915,12 +119945,12 @@ var UpdateInvoiceInvoice$inboundSchema = z155.pipe(
|
|
|
119915
119945
|
"plan_ids": "planIds",
|
|
119916
119946
|
"stripe_id": "stripeId",
|
|
119917
119947
|
"processor_type": "processorType",
|
|
119948
|
+
"amount_paid": "amountPaid",
|
|
119949
|
+
"refunded_amount": "refundedAmount",
|
|
119918
119950
|
"created_at": "createdAt",
|
|
119919
119951
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
119920
119952
|
"customer_id": "customerId",
|
|
119921
|
-
"entity_id": "entityId"
|
|
119922
|
-
"amount_paid": "amountPaid",
|
|
119923
|
-
"refunded_amount": "refundedAmount"
|
|
119953
|
+
"entity_id": "entityId"
|
|
119924
119954
|
});
|
|
119925
119955
|
})
|
|
119926
119956
|
);
|
|
@@ -125944,6 +125974,7 @@ var VoidInvoiceItem$inboundSchema = z163.pipe(
|
|
|
125944
125974
|
);
|
|
125945
125975
|
var VoidInvoiceInvoice$inboundSchema = z163.pipe(
|
|
125946
125976
|
z163.object({
|
|
125977
|
+
id: string5(),
|
|
125947
125978
|
plan_ids: z163.array(string5()),
|
|
125948
125979
|
stripe_id: string5(),
|
|
125949
125980
|
processor_type: z163._default(
|
|
@@ -125952,14 +125983,13 @@ var VoidInvoiceInvoice$inboundSchema = z163.pipe(
|
|
|
125952
125983
|
),
|
|
125953
125984
|
status: string5(),
|
|
125954
125985
|
total: number2(),
|
|
125986
|
+
amount_paid: nullable(number2()),
|
|
125987
|
+
refunded_amount: number2(),
|
|
125955
125988
|
currency: string5(),
|
|
125956
125989
|
created_at: number2(),
|
|
125957
125990
|
hosted_invoice_url: z163.optional(z163.nullable(string5())),
|
|
125958
|
-
id: string5(),
|
|
125959
125991
|
customer_id: nullable(string5()),
|
|
125960
125992
|
entity_id: nullable(string5()),
|
|
125961
|
-
amount_paid: nullable(number2()),
|
|
125962
|
-
refunded_amount: number2(),
|
|
125963
125993
|
items: optional3(z163.array(z163.lazy(() => VoidInvoiceItem$inboundSchema)))
|
|
125964
125994
|
}),
|
|
125965
125995
|
z163.transform((v) => {
|
|
@@ -125967,12 +125997,12 @@ var VoidInvoiceInvoice$inboundSchema = z163.pipe(
|
|
|
125967
125997
|
"plan_ids": "planIds",
|
|
125968
125998
|
"stripe_id": "stripeId",
|
|
125969
125999
|
"processor_type": "processorType",
|
|
126000
|
+
"amount_paid": "amountPaid",
|
|
126001
|
+
"refunded_amount": "refundedAmount",
|
|
125970
126002
|
"created_at": "createdAt",
|
|
125971
126003
|
"hosted_invoice_url": "hostedInvoiceUrl",
|
|
125972
126004
|
"customer_id": "customerId",
|
|
125973
|
-
"entity_id": "entityId"
|
|
125974
|
-
"amount_paid": "amountPaid",
|
|
125975
|
-
"refunded_amount": "refundedAmount"
|
|
126005
|
+
"entity_id": "entityId"
|
|
125976
126006
|
});
|
|
125977
126007
|
})
|
|
125978
126008
|
);
|
|
@@ -129609,7 +129639,7 @@ var Billing = class extends ClientSDK {
|
|
|
129609
129639
|
* @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
|
|
129610
129640
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
129611
129641
|
* @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
|
|
129612
|
-
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
|
|
129642
|
+
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. Fields Autumn manages itself are rejected with a 400; use invoice_mode to bill by invoice. (optional)
|
|
129613
129643
|
* @param recalculateBalances - Controls whether balances should be recalculated during the subscription update. (optional)
|
|
129614
129644
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
129615
129645
|
* @param licenseQuantities - Total seat quantities (inclusive of the license's included count) per license plan offered by this plan. Licenses not listed keep their current paid quantity. (optional)
|
|
@@ -129654,7 +129684,7 @@ var Billing = class extends ClientSDK {
|
|
|
129654
129684
|
* @param billingCycleAnchor - Reset the billing cycle immediately with 'now', or schedule a reset at a future Unix timestamp in milliseconds. (optional)
|
|
129655
129685
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
129656
129686
|
* @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
|
|
129657
|
-
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
|
|
129687
|
+
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. Fields Autumn manages itself are rejected with a 400; use invoice_mode to bill by invoice. (optional)
|
|
129658
129688
|
* @param recalculateBalances - Controls whether balances should be recalculated during the subscription update. (optional)
|
|
129659
129689
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
129660
129690
|
* @param licenseQuantities - Total seat quantities (inclusive of the license's included count) per license plan offered by this plan. Licenses not listed keep their current paid quantity. (optional)
|
|
@@ -129688,7 +129718,7 @@ var Billing = class extends ClientSDK {
|
|
|
129688
129718
|
* @param customerId - The ID of the customer to update plans for.
|
|
129689
129719
|
* @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
|
|
129690
129720
|
* @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
|
|
129691
|
-
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
|
|
129721
|
+
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. Fields Autumn manages itself are rejected with a 400; use invoice_mode to bill by invoice. (optional)
|
|
129692
129722
|
* @param updates - The list of plan updates to apply to the customer.
|
|
129693
129723
|
*
|
|
129694
129724
|
* @returns A billing response with the resulting invoice summary (one credit invoice per affected subscription for immediate cancels).
|
|
@@ -129714,7 +129744,7 @@ var Billing = class extends ClientSDK {
|
|
|
129714
129744
|
* @param customerId - The ID of the customer to update plans for.
|
|
129715
129745
|
* @param entityId - The ID of the entity to update plans for. Individual updates can override this with their own entity_id. (optional)
|
|
129716
129746
|
* @param refundLastPayment - Controls how the last payment is refunded on immediate cancellation. 'prorated' refunds the unused portion, 'full' refunds the entire last payment. (optional)
|
|
129717
|
-
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. (optional)
|
|
129747
|
+
* @param subscriptionParams - Additional parameters to pass into the Stripe subscription update or cancel call. Fields Autumn manages itself are rejected with a 400; use invoice_mode to bill by invoice. (optional)
|
|
129718
129748
|
* @param updates - The list of plan updates to apply to the customer.
|
|
129719
129749
|
*
|
|
129720
129750
|
* @returns A preview with the combined total plus one entry per subscription, each with its own line items, totals, and next-cycle preview.
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LSFSQ6FZ.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-SNL5PTPA.mjs";
|
|
7
|
+
import "../chunk-OW7CL4LT.mjs";
|
|
8
|
+
import "../chunk-XOVAC25I.mjs";
|
|
9
|
+
import "../chunk-MOHYGUMA.mjs";
|
|
10
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
8
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-SXXEU2AH.mjs";
|
|
11
14
|
import "../chunk-U6Y5XHR6.mjs";
|
|
12
|
-
import "../chunk-IXUCY7AU.mjs";
|
|
13
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
15
16
|
import "../chunk-I7CD6EB6.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
17
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -10,6 +10,7 @@ type FetchAutumnHandlerOptions = {
|
|
|
10
10
|
/** Path prefix for routes (default: "/api/autumn") */
|
|
11
11
|
pathPrefix?: string;
|
|
12
12
|
};
|
|
13
|
+
/** @deprecated Autumn's backend handlers are deprecated, as requests from a client can always be modified by that client. Please call our backend SDK from your own server routes instead. */
|
|
13
14
|
declare function autumnHandler(options: FetchAutumnHandlerOptions): (request: Request) => Promise<Response>;
|
|
14
15
|
|
|
15
16
|
export { type FetchAutumnHandlerOptions, autumnHandler };
|
|
@@ -10,6 +10,7 @@ type FetchAutumnHandlerOptions = {
|
|
|
10
10
|
/** Path prefix for routes (default: "/api/autumn") */
|
|
11
11
|
pathPrefix?: string;
|
|
12
12
|
};
|
|
13
|
+
/** @deprecated Autumn's backend handlers are deprecated, as requests from a client can always be modified by that client. Please call our backend SDK from your own server routes instead. */
|
|
13
14
|
declare function autumnHandler(options: FetchAutumnHandlerOptions): (request: Request) => Promise<Response>;
|
|
14
15
|
|
|
15
16
|
export { type FetchAutumnHandlerOptions, autumnHandler };
|