autumn-js 1.2.45 → 1.2.46
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 +109 -23
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +109 -23
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +109 -23
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +109 -23
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +109 -23
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-L7N6FVEE.mjs → chunk-564D2O3W.mjs} +1 -1
- package/dist/backend/{chunk-DY6WMOCT.mjs → chunk-KW47VZ73.mjs} +5 -5
- package/dist/backend/{chunk-PVDDMLWT.mjs → chunk-RPUV2OZA.mjs} +91 -19
- package/dist/backend/{chunk-5DLBV5WP.mjs → chunk-SBZEXVB4.mjs} +7 -7
- package/dist/backend/{chunk-67LHAREL.mjs → chunk-TEDQUFQV.mjs} +1 -1
- package/dist/backend/{chunk-YKRFY5TK.mjs → chunk-UJS4Q7J4.mjs} +18 -4
- package/dist/backend/{chunk-P2TFPTAM.mjs → chunk-WR6ZPCQG.mjs} +1 -1
- package/dist/backend/{chunk-J2VZ3UZS.mjs → chunk-XOAX5KAL.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 +109 -23
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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 +109 -23
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- 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 +109 -23
- 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 +109 -23
- package/dist/backend/core/index.mjs +10 -10
- 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 +18 -4
- package/dist/backend/core/routes/index.mjs +2 -2
- 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 +18 -4
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- 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 +109 -23
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-UN48tvoc.d.mts → routeTypes-DnUY8ksp.d.mts} +121 -8
- package/dist/backend/{routeTypes-COLvwrcx.d.ts → routeTypes-TbN5QHEp.d.ts} +121 -8
- package/dist/better-auth/{chunk-MOCG3CBD.mjs → chunk-SABPXZTZ.mjs} +92 -20
- package/dist/better-auth/{chunk-3LKXO3EE.mjs → chunk-TOQRV6D7.mjs} +1 -1
- package/dist/better-auth/{chunk-J3W4EO5H.mjs → chunk-YRHQ4VL7.mjs} +18 -4
- package/dist/better-auth/index.js +109 -23
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +18 -4
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +109 -23
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +109 -23
- 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/AutumnProvider.js +1 -1
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-EE3XPYSL.mjs → chunk-2C6RX3EW.mjs} +1 -1
- package/dist/react/{chunk-SBCI4L22.mjs → chunk-2X7HXG2W.mjs} +1 -1
- package/dist/react/{chunk-7SRCZYRC.mjs → chunk-3WU4ZFXU.mjs} +1 -1
- package/dist/react/{chunk-LUBYNTYC.mjs → chunk-4HU5BGSM.mjs} +1 -1
- package/dist/react/{chunk-RTZAB46K.mjs → chunk-7RF3IGDO.mjs} +1 -1
- package/dist/react/{chunk-KCOHZSS3.mjs → chunk-C6I2RW56.mjs} +8 -8
- package/dist/react/{chunk-CQF3ER2L.mjs → chunk-NWF7OFFQ.mjs} +2 -2
- package/dist/react/{chunk-CSJHU3F2.mjs → chunk-SRSYG5ZV.mjs} +1 -1
- package/dist/react/{chunk-QUGX6XRQ.mjs → chunk-UNQZV3K5.mjs} +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/index.js +7 -7
- package/dist/react/hooks/index.mjs +8 -8
- 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/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.js +7 -7
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useCustomer.js +7 -7
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useEntity.js +7 -7
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListEvents.js +7 -7
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useListPlans.js +7 -7
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/hooks/useReferrals.js +7 -7
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +7 -7
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params-DlzWLPN2.d.mts → params-BrFcJdeO.d.mts} +50 -4
- package/dist/react/{params-ChMwkOJA.d.ts → params-BwHZca3H.d.ts} +50 -4
- package/dist/sdk/index.d.mts +151 -10
- package/dist/sdk/index.d.ts +151 -10
- package/dist/sdk/index.js +110 -21
- package/dist/sdk/index.mjs +99 -20
- package/package.json +1 -1
- package/dist/backend/{chunk-IXUCY7AU.mjs → chunk-MOHYGUMA.mjs} +3 -3
|
@@ -1647,7 +1647,8 @@ var multiAttachPlanOutboundSchema = import_v47.z.object({
|
|
|
1647
1647
|
customize: import_v47.z.union([multiAttachCustomizeOutboundSchema, import_v47.z.undefined()]).optional(),
|
|
1648
1648
|
feature_quantities: import_v47.z.union([import_v47.z.array(multiAttachFeatureQuantityOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
1649
1649
|
version: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
1650
|
-
subscription_id: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
1650
|
+
subscription_id: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1651
|
+
entity_id: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional().nullable()
|
|
1651
1652
|
});
|
|
1652
1653
|
var multiAttachFreeTrialParamsOutboundSchema = import_v47.z.object({
|
|
1653
1654
|
duration_length: import_v47.z.number(),
|
|
@@ -1775,7 +1776,8 @@ var multiAttachPlanSchema = import_v47.z.object({
|
|
|
1775
1776
|
customize: import_v47.z.union([multiAttachCustomizeSchema, import_v47.z.undefined()]).optional(),
|
|
1776
1777
|
featureQuantities: import_v47.z.union([import_v47.z.array(multiAttachFeatureQuantitySchema), import_v47.z.undefined()]).optional(),
|
|
1777
1778
|
version: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
1778
|
-
subscriptionId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional()
|
|
1779
|
+
subscriptionId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1780
|
+
entityId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional().nullable()
|
|
1779
1781
|
});
|
|
1780
1782
|
var multiAttachDurationTypeSchema = closedEnumSchema4;
|
|
1781
1783
|
var multiAttachOnEndSchema = closedEnumSchema4;
|
|
@@ -1785,6 +1787,7 @@ var multiAttachFreeTrialParamsSchema = import_v47.z.object({
|
|
|
1785
1787
|
cardRequired: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
1786
1788
|
onEnd: import_v47.z.union([multiAttachOnEndSchema, import_v47.z.undefined()]).optional()
|
|
1787
1789
|
});
|
|
1790
|
+
var multiAttachBillingBehaviorSchema = closedEnumSchema4;
|
|
1788
1791
|
var multiAttachRedirectModeSchema = closedEnumSchema4;
|
|
1789
1792
|
var multiAttachLimitTypeSchema = closedEnumSchema4;
|
|
1790
1793
|
var multiAttachSpendLimitSchema = import_v47.z.object({
|
|
@@ -1826,9 +1829,11 @@ var multiAttachParamsSchema = import_v47.z.object({
|
|
|
1826
1829
|
entityId: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1827
1830
|
plans: import_v47.z.array(multiAttachPlanSchema),
|
|
1828
1831
|
freeTrial: import_v47.z.union([multiAttachFreeTrialParamsSchema, import_v47.z.undefined()]).optional().nullable(),
|
|
1832
|
+
startsAt: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
1829
1833
|
currency: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1830
1834
|
invoiceMode: import_v47.z.union([multiAttachInvoiceModeSchema, import_v47.z.undefined()]).optional(),
|
|
1831
1835
|
discounts: import_v47.z.union([import_v47.z.array(multiAttachAttachDiscountSchema), import_v47.z.undefined()]).optional(),
|
|
1836
|
+
billingBehavior: import_v47.z.union([multiAttachBillingBehaviorSchema, import_v47.z.undefined()]).optional(),
|
|
1832
1837
|
successUrl: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1833
1838
|
checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
1834
1839
|
redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
|
|
@@ -1854,9 +1859,11 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
|
|
|
1854
1859
|
entity_id: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1855
1860
|
plans: import_v47.z.array(multiAttachPlanOutboundSchema),
|
|
1856
1861
|
free_trial: import_v47.z.union([multiAttachFreeTrialParamsOutboundSchema, import_v47.z.undefined()]).optional().nullable(),
|
|
1862
|
+
starts_at: import_v47.z.union([import_v47.z.number(), import_v47.z.undefined()]).optional(),
|
|
1857
1863
|
currency: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1858
1864
|
invoice_mode: import_v47.z.union([multiAttachInvoiceModeOutboundSchema, import_v47.z.undefined()]).optional(),
|
|
1859
1865
|
discounts: import_v47.z.union([import_v47.z.array(multiAttachAttachDiscountOutboundSchema), import_v47.z.undefined()]).optional(),
|
|
1866
|
+
billing_behavior: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1860
1867
|
success_url: import_v47.z.union([import_v47.z.string(), import_v47.z.undefined()]).optional(),
|
|
1861
1868
|
checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
1862
1869
|
redirect_mode: import_v47.z.string(),
|
|
@@ -3002,7 +3009,8 @@ var previewMultiAttachPlanOutboundSchema = import_v410.z.object({
|
|
|
3002
3009
|
import_v410.z.undefined()
|
|
3003
3010
|
]).optional(),
|
|
3004
3011
|
version: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
3005
|
-
subscription_id: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
3012
|
+
subscription_id: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3013
|
+
entity_id: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional().nullable()
|
|
3006
3014
|
});
|
|
3007
3015
|
var previewMultiAttachFreeTrialParamsOutboundSchema = import_v410.z.object({
|
|
3008
3016
|
duration_length: import_v410.z.number(),
|
|
@@ -3140,7 +3148,8 @@ var previewMultiAttachPlanSchema = import_v410.z.object({
|
|
|
3140
3148
|
import_v410.z.undefined()
|
|
3141
3149
|
]).optional(),
|
|
3142
3150
|
version: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
3143
|
-
subscriptionId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional()
|
|
3151
|
+
subscriptionId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3152
|
+
entityId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional().nullable()
|
|
3144
3153
|
});
|
|
3145
3154
|
var previewMultiAttachDurationTypeSchema = closedEnumSchema6;
|
|
3146
3155
|
var previewMultiAttachOnEndSchema = closedEnumSchema6;
|
|
@@ -3150,6 +3159,7 @@ var previewMultiAttachFreeTrialParamsSchema = import_v410.z.object({
|
|
|
3150
3159
|
cardRequired: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
3151
3160
|
onEnd: import_v410.z.union([previewMultiAttachOnEndSchema, import_v410.z.undefined()]).optional()
|
|
3152
3161
|
});
|
|
3162
|
+
var previewMultiAttachBillingBehaviorSchema = closedEnumSchema6;
|
|
3153
3163
|
var previewMultiAttachRedirectModeSchema = closedEnumSchema6;
|
|
3154
3164
|
var previewMultiAttachLimitTypeSchema = closedEnumSchema6;
|
|
3155
3165
|
var previewMultiAttachSpendLimitSchema = import_v410.z.object({
|
|
@@ -3191,9 +3201,11 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
|
|
|
3191
3201
|
entityId: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3192
3202
|
plans: import_v410.z.array(previewMultiAttachPlanSchema),
|
|
3193
3203
|
freeTrial: import_v410.z.union([previewMultiAttachFreeTrialParamsSchema, import_v410.z.undefined()]).optional().nullable(),
|
|
3204
|
+
startsAt: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
3194
3205
|
currency: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3195
3206
|
invoiceMode: import_v410.z.union([previewMultiAttachInvoiceModeSchema, import_v410.z.undefined()]).optional(),
|
|
3196
3207
|
discounts: import_v410.z.union([import_v410.z.array(previewMultiAttachAttachDiscountSchema), import_v410.z.undefined()]).optional(),
|
|
3208
|
+
billingBehavior: import_v410.z.union([previewMultiAttachBillingBehaviorSchema, import_v410.z.undefined()]).optional(),
|
|
3197
3209
|
successUrl: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3198
3210
|
checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
3199
3211
|
redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
|
|
@@ -3247,12 +3259,14 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
|
3247
3259
|
entity_id: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3248
3260
|
plans: import_v410.z.array(previewMultiAttachPlanOutboundSchema),
|
|
3249
3261
|
free_trial: import_v410.z.union([previewMultiAttachFreeTrialParamsOutboundSchema, import_v410.z.undefined()]).optional().nullable(),
|
|
3262
|
+
starts_at: import_v410.z.union([import_v410.z.number(), import_v410.z.undefined()]).optional(),
|
|
3250
3263
|
currency: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3251
3264
|
invoice_mode: import_v410.z.union([previewMultiAttachInvoiceModeOutboundSchema, import_v410.z.undefined()]).optional(),
|
|
3252
3265
|
discounts: import_v410.z.union([
|
|
3253
3266
|
import_v410.z.array(previewMultiAttachAttachDiscountOutboundSchema),
|
|
3254
3267
|
import_v410.z.undefined()
|
|
3255
3268
|
]).optional(),
|
|
3269
|
+
billing_behavior: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3256
3270
|
success_url: import_v410.z.union([import_v410.z.string(), import_v410.z.undefined()]).optional(),
|
|
3257
3271
|
checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
3258
3272
|
redirect_mode: import_v410.z.string(),
|
|
@@ -14453,6 +14467,15 @@ var CreateReferralCodeResponse$inboundSchema = z38.pipe(
|
|
|
14453
14467
|
|
|
14454
14468
|
// ../sdk/src/models/create-schedule-op.ts
|
|
14455
14469
|
var z39 = __toESM(require("zod/v4-mini"), 1);
|
|
14470
|
+
var CreateScheduleFreeTrialDurationType = {
|
|
14471
|
+
Day: "day",
|
|
14472
|
+
Month: "month",
|
|
14473
|
+
Year: "year"
|
|
14474
|
+
};
|
|
14475
|
+
var CreateScheduleOnEnd = {
|
|
14476
|
+
Bill: "bill",
|
|
14477
|
+
Revert: "revert"
|
|
14478
|
+
};
|
|
14456
14479
|
var CreateScheduleRedirectMode = {
|
|
14457
14480
|
Always: "always",
|
|
14458
14481
|
IfRequired: "if_required",
|
|
@@ -14462,7 +14485,7 @@ var CreateScheduleBillingBehavior = {
|
|
|
14462
14485
|
ProrateImmediately: "prorate_immediately",
|
|
14463
14486
|
None: "none"
|
|
14464
14487
|
};
|
|
14465
|
-
var
|
|
14488
|
+
var PhaseStartDurationType = {
|
|
14466
14489
|
Month: "month",
|
|
14467
14490
|
Year: "year"
|
|
14468
14491
|
};
|
|
@@ -14620,6 +14643,27 @@ var CreateScheduleCode = {
|
|
|
14620
14643
|
PaymentFailed: "payment_failed",
|
|
14621
14644
|
PaymentProcessing: "payment_processing"
|
|
14622
14645
|
};
|
|
14646
|
+
var CreateScheduleFreeTrialDurationType$outboundSchema = z39.enum(CreateScheduleFreeTrialDurationType);
|
|
14647
|
+
var CreateScheduleOnEnd$outboundSchema = z39.enum(CreateScheduleOnEnd);
|
|
14648
|
+
var CreateScheduleFreeTrialParams$outboundSchema = z39.pipe(
|
|
14649
|
+
z39.object({
|
|
14650
|
+
durationLength: z39.number(),
|
|
14651
|
+
durationType: z39._default(
|
|
14652
|
+
CreateScheduleFreeTrialDurationType$outboundSchema,
|
|
14653
|
+
"month"
|
|
14654
|
+
),
|
|
14655
|
+
cardRequired: z39._default(z39.boolean(), true),
|
|
14656
|
+
onEnd: z39.optional(CreateScheduleOnEnd$outboundSchema)
|
|
14657
|
+
}),
|
|
14658
|
+
z39.transform((v) => {
|
|
14659
|
+
return remap(v, {
|
|
14660
|
+
durationLength: "duration_length",
|
|
14661
|
+
durationType: "duration_type",
|
|
14662
|
+
cardRequired: "card_required",
|
|
14663
|
+
onEnd: "on_end"
|
|
14664
|
+
});
|
|
14665
|
+
})
|
|
14666
|
+
);
|
|
14623
14667
|
var CreateScheduleInvoiceMode$outboundSchema = z39.pipe(
|
|
14624
14668
|
z39.object({
|
|
14625
14669
|
enabled: z39.boolean(),
|
|
@@ -14651,10 +14695,10 @@ var CreateScheduleAttachDiscount$outboundSchema = z39.pipe(
|
|
|
14651
14695
|
var CreateScheduleRedirectMode$outboundSchema = z39.enum(CreateScheduleRedirectMode);
|
|
14652
14696
|
var CreateScheduleBillingBehavior$outboundSchema = z39.enum(CreateScheduleBillingBehavior);
|
|
14653
14697
|
var StartsAt2$outboundSchema = smartUnion([z39.number(), z39.string()]);
|
|
14654
|
-
var
|
|
14698
|
+
var PhaseStartDurationType$outboundSchema = z39.enum(PhaseStartDurationType);
|
|
14655
14699
|
var StartingAfter2$outboundSchema = z39.pipe(
|
|
14656
14700
|
z39.object({
|
|
14657
|
-
durationType:
|
|
14701
|
+
durationType: PhaseStartDurationType$outboundSchema,
|
|
14658
14702
|
durationCount: z39.int()
|
|
14659
14703
|
}),
|
|
14660
14704
|
z39.transform((v) => {
|
|
@@ -15113,6 +15157,7 @@ var CreateScheduleCustomize2$outboundSchema = z39.pipe(
|
|
|
15113
15157
|
var CreateSchedulePlan2$outboundSchema = z39.pipe(
|
|
15114
15158
|
z39.object({
|
|
15115
15159
|
planId: z39.string(),
|
|
15160
|
+
entityId: z39.optional(z39.nullable(z39.string())),
|
|
15116
15161
|
featureQuantities: z39.optional(
|
|
15117
15162
|
z39.array(z39.lazy(() => CreateScheduleFeatureQuantity2$outboundSchema))
|
|
15118
15163
|
),
|
|
@@ -15125,6 +15170,7 @@ var CreateSchedulePlan2$outboundSchema = z39.pipe(
|
|
|
15125
15170
|
z39.transform((v) => {
|
|
15126
15171
|
return remap(v, {
|
|
15127
15172
|
planId: "plan_id",
|
|
15173
|
+
entityId: "entity_id",
|
|
15128
15174
|
featureQuantities: "feature_quantities",
|
|
15129
15175
|
subscriptionId: "subscription_id"
|
|
15130
15176
|
});
|
|
@@ -15151,6 +15197,10 @@ var CreateScheduleParams$outboundSchema = z39.pipe(
|
|
|
15151
15197
|
z39.object({
|
|
15152
15198
|
customerId: z39.string(),
|
|
15153
15199
|
entityId: z39.optional(z39.string()),
|
|
15200
|
+
freeTrial: z39.optional(
|
|
15201
|
+
z39.nullable(z39.lazy(() => CreateScheduleFreeTrialParams$outboundSchema))
|
|
15202
|
+
),
|
|
15203
|
+
currency: z39.optional(z39.string()),
|
|
15154
15204
|
invoiceMode: z39.optional(
|
|
15155
15205
|
z39.lazy(() => CreateScheduleInvoiceMode$outboundSchema)
|
|
15156
15206
|
),
|
|
@@ -15166,19 +15216,22 @@ var CreateScheduleParams$outboundSchema = z39.pipe(
|
|
|
15166
15216
|
billingBehavior: z39.optional(CreateScheduleBillingBehavior$outboundSchema),
|
|
15167
15217
|
billingCycleAnchor: z39.optional(z39.literal("now")),
|
|
15168
15218
|
enablePlanImmediately: z39.optional(z39.boolean()),
|
|
15219
|
+
preserveAddOns: z39.optional(z39.boolean()),
|
|
15169
15220
|
phases: z39.array(z39.lazy(() => PhaseStart$outboundSchema))
|
|
15170
15221
|
}),
|
|
15171
15222
|
z39.transform((v) => {
|
|
15172
15223
|
return remap(v, {
|
|
15173
15224
|
customerId: "customer_id",
|
|
15174
15225
|
entityId: "entity_id",
|
|
15226
|
+
freeTrial: "free_trial",
|
|
15175
15227
|
invoiceMode: "invoice_mode",
|
|
15176
15228
|
successUrl: "success_url",
|
|
15177
15229
|
checkoutSessionParams: "checkout_session_params",
|
|
15178
15230
|
redirectMode: "redirect_mode",
|
|
15179
15231
|
billingBehavior: "billing_behavior",
|
|
15180
15232
|
billingCycleAnchor: "billing_cycle_anchor",
|
|
15181
|
-
enablePlanImmediately: "enable_plan_immediately"
|
|
15233
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
15234
|
+
preserveAddOns: "preserve_add_ons"
|
|
15182
15235
|
});
|
|
15183
15236
|
})
|
|
15184
15237
|
);
|
|
@@ -20926,6 +20979,10 @@ var MultiAttachOnEnd = {
|
|
|
20926
20979
|
Bill: "bill",
|
|
20927
20980
|
Revert: "revert"
|
|
20928
20981
|
};
|
|
20982
|
+
var MultiAttachBillingBehavior = {
|
|
20983
|
+
ProrateImmediately: "prorate_immediately",
|
|
20984
|
+
None: "none"
|
|
20985
|
+
};
|
|
20929
20986
|
var MultiAttachRedirectMode = {
|
|
20930
20987
|
Always: "always",
|
|
20931
20988
|
IfRequired: "if_required",
|
|
@@ -21120,13 +21177,15 @@ var MultiAttachPlan$outboundSchema = z65.pipe(
|
|
|
21120
21177
|
z65.array(z65.lazy(() => MultiAttachFeatureQuantity$outboundSchema))
|
|
21121
21178
|
),
|
|
21122
21179
|
version: z65.optional(z65.number()),
|
|
21123
|
-
subscriptionId: z65.optional(z65.string())
|
|
21180
|
+
subscriptionId: z65.optional(z65.string()),
|
|
21181
|
+
entityId: z65.optional(z65.nullable(z65.string()))
|
|
21124
21182
|
}),
|
|
21125
21183
|
z65.transform((v) => {
|
|
21126
21184
|
return remap(v, {
|
|
21127
21185
|
planId: "plan_id",
|
|
21128
21186
|
featureQuantities: "feature_quantities",
|
|
21129
|
-
subscriptionId: "subscription_id"
|
|
21187
|
+
subscriptionId: "subscription_id",
|
|
21188
|
+
entityId: "entity_id"
|
|
21130
21189
|
});
|
|
21131
21190
|
})
|
|
21132
21191
|
);
|
|
@@ -21176,6 +21235,7 @@ var MultiAttachAttachDiscount$outboundSchema = z65.pipe(
|
|
|
21176
21235
|
});
|
|
21177
21236
|
})
|
|
21178
21237
|
);
|
|
21238
|
+
var MultiAttachBillingBehavior$outboundSchema = z65.enum(MultiAttachBillingBehavior);
|
|
21179
21239
|
var MultiAttachRedirectMode$outboundSchema = z65.enum(MultiAttachRedirectMode);
|
|
21180
21240
|
var MultiAttachLimitType$outboundSchema = z65.enum(MultiAttachLimitType);
|
|
21181
21241
|
var MultiAttachSpendLimit$outboundSchema = z65.pipe(
|
|
@@ -21291,6 +21351,7 @@ var MultiAttachParams$outboundSchema = z65.pipe(
|
|
|
21291
21351
|
freeTrial: z65.optional(
|
|
21292
21352
|
z65.nullable(z65.lazy(() => MultiAttachFreeTrialParams$outboundSchema))
|
|
21293
21353
|
),
|
|
21354
|
+
startsAt: z65.optional(z65.int()),
|
|
21294
21355
|
currency: z65.optional(z65.string()),
|
|
21295
21356
|
invoiceMode: z65.optional(
|
|
21296
21357
|
z65.lazy(() => MultiAttachInvoiceMode$outboundSchema)
|
|
@@ -21298,6 +21359,7 @@ var MultiAttachParams$outboundSchema = z65.pipe(
|
|
|
21298
21359
|
discounts: z65.optional(
|
|
21299
21360
|
z65.array(z65.lazy(() => MultiAttachAttachDiscount$outboundSchema))
|
|
21300
21361
|
),
|
|
21362
|
+
billingBehavior: z65.optional(MultiAttachBillingBehavior$outboundSchema),
|
|
21301
21363
|
successUrl: z65.optional(z65.string()),
|
|
21302
21364
|
checkoutSessionParams: z65.optional(z65.record(z65.string(), z65.any())),
|
|
21303
21365
|
redirectMode: z65._default(
|
|
@@ -21314,7 +21376,9 @@ var MultiAttachParams$outboundSchema = z65.pipe(
|
|
|
21314
21376
|
customerId: "customer_id",
|
|
21315
21377
|
entityId: "entity_id",
|
|
21316
21378
|
freeTrial: "free_trial",
|
|
21379
|
+
startsAt: "starts_at",
|
|
21317
21380
|
invoiceMode: "invoice_mode",
|
|
21381
|
+
billingBehavior: "billing_behavior",
|
|
21318
21382
|
successUrl: "success_url",
|
|
21319
21383
|
checkoutSessionParams: "checkout_session_params",
|
|
21320
21384
|
redirectMode: "redirect_mode",
|
|
@@ -22899,6 +22963,10 @@ var PreviewMultiAttachOnEnd = {
|
|
|
22899
22963
|
Bill: "bill",
|
|
22900
22964
|
Revert: "revert"
|
|
22901
22965
|
};
|
|
22966
|
+
var PreviewMultiAttachBillingBehavior = {
|
|
22967
|
+
ProrateImmediately: "prorate_immediately",
|
|
22968
|
+
None: "none"
|
|
22969
|
+
};
|
|
22902
22970
|
var PreviewMultiAttachRedirectMode = {
|
|
22903
22971
|
Always: "always",
|
|
22904
22972
|
IfRequired: "if_required",
|
|
@@ -23109,13 +23177,15 @@ var PreviewMultiAttachPlan$outboundSchema = z69.pipe(
|
|
|
23109
23177
|
)
|
|
23110
23178
|
),
|
|
23111
23179
|
version: z69.optional(z69.number()),
|
|
23112
|
-
subscriptionId: z69.optional(z69.string())
|
|
23180
|
+
subscriptionId: z69.optional(z69.string()),
|
|
23181
|
+
entityId: z69.optional(z69.nullable(z69.string()))
|
|
23113
23182
|
}),
|
|
23114
23183
|
z69.transform((v) => {
|
|
23115
23184
|
return remap(v, {
|
|
23116
23185
|
planId: "plan_id",
|
|
23117
23186
|
featureQuantities: "feature_quantities",
|
|
23118
|
-
subscriptionId: "subscription_id"
|
|
23187
|
+
subscriptionId: "subscription_id",
|
|
23188
|
+
entityId: "entity_id"
|
|
23119
23189
|
});
|
|
23120
23190
|
})
|
|
23121
23191
|
);
|
|
@@ -23168,6 +23238,7 @@ var PreviewMultiAttachAttachDiscount$outboundSchema = z69.pipe(
|
|
|
23168
23238
|
});
|
|
23169
23239
|
})
|
|
23170
23240
|
);
|
|
23241
|
+
var PreviewMultiAttachBillingBehavior$outboundSchema = z69.enum(PreviewMultiAttachBillingBehavior);
|
|
23171
23242
|
var PreviewMultiAttachRedirectMode$outboundSchema = z69.enum(PreviewMultiAttachRedirectMode);
|
|
23172
23243
|
var PreviewMultiAttachLimitType$outboundSchema = z69.enum(PreviewMultiAttachLimitType);
|
|
23173
23244
|
var PreviewMultiAttachSpendLimit$outboundSchema = z69.pipe(
|
|
@@ -23285,6 +23356,7 @@ var PreviewMultiAttachParams$outboundSchema = z69.pipe(
|
|
|
23285
23356
|
z69.lazy(() => PreviewMultiAttachFreeTrialParams$outboundSchema)
|
|
23286
23357
|
)
|
|
23287
23358
|
),
|
|
23359
|
+
startsAt: z69.optional(z69.int()),
|
|
23288
23360
|
currency: z69.optional(z69.string()),
|
|
23289
23361
|
invoiceMode: z69.optional(
|
|
23290
23362
|
z69.lazy(() => PreviewMultiAttachInvoiceMode$outboundSchema)
|
|
@@ -23292,6 +23364,9 @@ var PreviewMultiAttachParams$outboundSchema = z69.pipe(
|
|
|
23292
23364
|
discounts: z69.optional(
|
|
23293
23365
|
z69.array(z69.lazy(() => PreviewMultiAttachAttachDiscount$outboundSchema))
|
|
23294
23366
|
),
|
|
23367
|
+
billingBehavior: z69.optional(
|
|
23368
|
+
PreviewMultiAttachBillingBehavior$outboundSchema
|
|
23369
|
+
),
|
|
23295
23370
|
successUrl: z69.optional(z69.string()),
|
|
23296
23371
|
checkoutSessionParams: z69.optional(z69.record(z69.string(), z69.any())),
|
|
23297
23372
|
redirectMode: z69._default(
|
|
@@ -23310,7 +23385,9 @@ var PreviewMultiAttachParams$outboundSchema = z69.pipe(
|
|
|
23310
23385
|
customerId: "customer_id",
|
|
23311
23386
|
entityId: "entity_id",
|
|
23312
23387
|
freeTrial: "free_trial",
|
|
23388
|
+
startsAt: "starts_at",
|
|
23313
23389
|
invoiceMode: "invoice_mode",
|
|
23390
|
+
billingBehavior: "billing_behavior",
|
|
23314
23391
|
successUrl: "success_url",
|
|
23315
23392
|
checkoutSessionParams: "checkout_session_params",
|
|
23316
23393
|
redirectMode: "redirect_mode",
|
|
@@ -30841,15 +30918,17 @@ var FailOpenHook = class {
|
|
|
30841
30918
|
var DEFAULT_TIMEOUT_MS = 5e3;
|
|
30842
30919
|
var AUTO_TIMEOUT_OPERATION_IDS = /* @__PURE__ */ new Set(["check", "track"]);
|
|
30843
30920
|
var TimeoutFixHook = class {
|
|
30844
|
-
|
|
30845
|
-
|
|
30846
|
-
|
|
30847
|
-
|
|
30848
|
-
|
|
30849
|
-
|
|
30850
|
-
|
|
30851
|
-
|
|
30852
|
-
|
|
30921
|
+
beforeCreateRequest(hookCtx, input) {
|
|
30922
|
+
if (input.options?.signal || !AUTO_TIMEOUT_OPERATION_IDS.has(hookCtx.operationID)) {
|
|
30923
|
+
return input;
|
|
30924
|
+
}
|
|
30925
|
+
return {
|
|
30926
|
+
...input,
|
|
30927
|
+
options: {
|
|
30928
|
+
...input.options,
|
|
30929
|
+
signal: AbortSignal.timeout(DEFAULT_TIMEOUT_MS)
|
|
30930
|
+
}
|
|
30931
|
+
};
|
|
30853
30932
|
}
|
|
30854
30933
|
};
|
|
30855
30934
|
|
|
@@ -30858,7 +30937,7 @@ function initHooks(hooks) {
|
|
|
30858
30937
|
const failOpenHook = new FailOpenHook();
|
|
30859
30938
|
const timeoutFixHook = new TimeoutFixHook();
|
|
30860
30939
|
hooks.registerSDKInitHook(failOpenHook);
|
|
30861
|
-
hooks.
|
|
30940
|
+
hooks.registerBeforeCreateRequestHook(timeoutFixHook);
|
|
30862
30941
|
hooks.registerAfterErrorHook(failOpenHook);
|
|
30863
30942
|
}
|
|
30864
30943
|
|
|
@@ -32704,11 +32783,13 @@ var Billing = class extends ClientSDK {
|
|
|
32704
32783
|
* @example
|
|
32705
32784
|
* ```typescript
|
|
32706
32785
|
* // Schedule a transition from a trial plan to a paid plan
|
|
32707
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
32786
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1785760797907,"plans":[{"planId":"trial_plan"}]},{"startsAt":1786970397907,"plans":[{"planId":"pro_plan"}]}] });
|
|
32708
32787
|
* ```
|
|
32709
32788
|
*
|
|
32710
32789
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
32711
32790
|
* @param entityId - Optional entity ID for an entity-scoped schedule. (optional)
|
|
32791
|
+
* @param freeTrial - Free trial configuration applied to every plan in the immediate phase. (optional)
|
|
32792
|
+
* @param currency - Currency used to bill the immediate phase. (optional)
|
|
32712
32793
|
* @param invoiceMode - Invoice mode creates and sends an invoice instead of charging the customer's payment method immediately for the first phase. (optional)
|
|
32713
32794
|
* @param discounts - List of discounts to apply to the immediate phase. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
32714
32795
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
@@ -32717,6 +32798,7 @@ var Billing = class extends ClientSDK {
|
|
|
32717
32798
|
* @param billingBehavior - Whether to prorate the immediate phase. 'none' skips proration charges and credits. (optional)
|
|
32718
32799
|
* @param billingCycleAnchor - Pass 'now' to reset the billing cycle anchor of the immediate phase to the current time. (optional)
|
|
32719
32800
|
* @param enablePlanImmediately - If true, the immediate-phase cusProducts are activated immediately (and scheduled-phase cusProducts pre-inserted) even when payment is pending via Stripe checkout. The Autumn schedule rows are persisted on checkout.session.completed. (optional)
|
|
32801
|
+
* @param preserveAddOns - If true, active recurring add-ons in scopes represented by the phase plans are retained. (optional)
|
|
32720
32802
|
* @param phases - Ordered phase definitions for the schedule.
|
|
32721
32803
|
*
|
|
32722
32804
|
* @returns A create-schedule response with the schedule ID, persisted phases, and any required payment or checkout URL.
|
|
@@ -32755,9 +32837,11 @@ var Billing = class extends ClientSDK {
|
|
|
32755
32837
|
* @param entityId - The ID of the entity to attach the plans to. (optional)
|
|
32756
32838
|
* @param plans - The list of plans to attach to the customer.
|
|
32757
32839
|
* @param freeTrial - Free trial configuration applied to all plans. Pass an object to set a custom trial, or null to remove any trial. (optional)
|
|
32840
|
+
* @param startsAt - Unix timestamp in milliseconds for backdating every plan in this multi-attach. (optional)
|
|
32758
32841
|
* @param currency - Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
32759
32842
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
32760
32843
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
32844
|
+
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
32761
32845
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
32762
32846
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
32763
32847
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
@@ -32838,9 +32922,11 @@ var Billing = class extends ClientSDK {
|
|
|
32838
32922
|
* @param entityId - The ID of the entity to attach the plans to. (optional)
|
|
32839
32923
|
* @param plans - The list of plans to attach to the customer.
|
|
32840
32924
|
* @param freeTrial - Free trial configuration applied to all plans. Pass an object to set a custom trial, or null to remove any trial. (optional)
|
|
32925
|
+
* @param startsAt - Unix timestamp in milliseconds for backdating every plan in this multi-attach. (optional)
|
|
32841
32926
|
* @param currency - Currency to bill this multi-attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and every plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
32842
32927
|
* @param invoiceMode - Invoice mode creates a draft or open invoice and sends it to the customer, instead of charging their card immediately. (optional)
|
|
32843
32928
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
32929
|
+
* @param billingBehavior - How to handle billing. 'prorate_immediately' charges/credits prorated amounts now, 'none' does not charge/credit anything. (optional)
|
|
32844
32930
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
32845
32931
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
32846
32932
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-TOQRV6D7.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-SABPXZTZ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveIdentityFromScope
|
|
10
10
|
} from "../chunk-J2WYVGHS.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-YRHQ4VL7.mjs";
|
|
12
12
|
import {
|
|
13
13
|
getActiveOrganization
|
|
14
14
|
} from "../chunk-BT3EAYVW.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.mjs';
|
|
3
|
-
import './params-
|
|
3
|
+
import './params-BrFcJdeO.mjs';
|
|
4
4
|
import './plan-DBswUtWr.mjs';
|
|
5
5
|
import './customer-VD6pkmpz.mjs';
|
|
6
6
|
import './list-plans-op-CvGXtKAO.mjs';
|
|
@@ -2057,7 +2057,7 @@ var QueryClient = class {
|
|
|
2057
2057
|
}
|
|
2058
2058
|
};
|
|
2059
2059
|
|
|
2060
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2060
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
2061
2061
|
var React = __toESM(require("react"), 1);
|
|
2062
2062
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
2063
2063
|
var QueryClientContext = React.createContext(
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
4
|
AutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-2C6RX3EW.mjs";
|
|
6
6
|
import "./chunk-QOFGTXEX.mjs";
|
|
7
7
|
import "./chunk-SCDO26YC.mjs";
|
|
8
8
|
import "./chunk-IC3QHWR6.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-C6I2RW56.mjs";
|
|
10
10
|
import "./chunk-SOA7GEAN.mjs";
|
|
11
11
|
export {
|
|
12
12
|
AutumnProvider
|
|
@@ -2491,7 +2491,7 @@ function shouldAssignObserverCurrentProperties(observer, optimisticResult) {
|
|
|
2491
2491
|
return false;
|
|
2492
2492
|
}
|
|
2493
2493
|
|
|
2494
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2494
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
|
|
2495
2495
|
import * as React from "react";
|
|
2496
2496
|
import { jsx } from "react/jsx-runtime";
|
|
2497
2497
|
var QueryClientContext = React.createContext(
|
|
@@ -2520,10 +2520,10 @@ var QueryClientProvider = ({
|
|
|
2520
2520
|
return /* @__PURE__ */ jsx(QueryClientContext.Provider, { value: client, children });
|
|
2521
2521
|
};
|
|
2522
2522
|
|
|
2523
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2523
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
2524
2524
|
import * as React5 from "react";
|
|
2525
2525
|
|
|
2526
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2526
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/QueryErrorResetBoundary.js
|
|
2527
2527
|
import * as React2 from "react";
|
|
2528
2528
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
2529
2529
|
function createValue() {
|
|
@@ -2543,7 +2543,7 @@ function createValue() {
|
|
|
2543
2543
|
var QueryErrorResetBoundaryContext = React2.createContext(createValue());
|
|
2544
2544
|
var useQueryErrorResetBoundary = () => React2.useContext(QueryErrorResetBoundaryContext);
|
|
2545
2545
|
|
|
2546
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2546
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/errorBoundaryUtils.js
|
|
2547
2547
|
import * as React3 from "react";
|
|
2548
2548
|
var ensurePreventErrorBoundaryRetry = (options, errorResetBoundary, query) => {
|
|
2549
2549
|
const throwOnError = query?.state.error && typeof options.throwOnError === "function" ? shouldThrowError(options.throwOnError, [query.state.error, query]) : options.throwOnError;
|
|
@@ -2568,13 +2568,13 @@ var getHasError = ({
|
|
|
2568
2568
|
return result.isError && !errorResetBoundary.isReset() && !result.isFetching && query && (suspense && result.data === void 0 || shouldThrowError(throwOnError, [result.error, query]));
|
|
2569
2569
|
};
|
|
2570
2570
|
|
|
2571
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2571
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/IsRestoringProvider.js
|
|
2572
2572
|
import * as React4 from "react";
|
|
2573
2573
|
var IsRestoringContext = React4.createContext(false);
|
|
2574
2574
|
var useIsRestoring = () => React4.useContext(IsRestoringContext);
|
|
2575
2575
|
var IsRestoringProvider = IsRestoringContext.Provider;
|
|
2576
2576
|
|
|
2577
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2577
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/suspense.js
|
|
2578
2578
|
var ensureSuspenseTimers = (defaultedOptions) => {
|
|
2579
2579
|
if (defaultedOptions.suspense) {
|
|
2580
2580
|
const MIN_SUSPENSE_TIME_MS = 1e3;
|
|
@@ -2595,7 +2595,7 @@ var fetchOptimistic = (defaultedOptions, observer, errorResetBoundary) => observ
|
|
|
2595
2595
|
errorResetBoundary.clearReset();
|
|
2596
2596
|
});
|
|
2597
2597
|
|
|
2598
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2598
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useBaseQuery.js
|
|
2599
2599
|
function useBaseQuery(options, Observer, queryClient) {
|
|
2600
2600
|
if (process.env.NODE_ENV !== "production") {
|
|
2601
2601
|
if (typeof options !== "object" || Array.isArray(options)) {
|
|
@@ -2680,7 +2680,7 @@ function useBaseQuery(options, Observer, queryClient) {
|
|
|
2680
2680
|
return !defaultedOptions.notifyOnChangeProps ? observer.trackResult(result) : result;
|
|
2681
2681
|
}
|
|
2682
2682
|
|
|
2683
|
-
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+
|
|
2683
|
+
// ../../node_modules/.bun/@tanstack+react-query@5.101.1+0f58469d5b3bd39f/node_modules/@tanstack/react-query/build/modern/useQuery.js
|
|
2684
2684
|
function useQuery(options, queryClient) {
|
|
2685
2685
|
return useBaseQuery(options, QueryObserver, queryClient);
|
|
2686
2686
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
useCustomerActions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-4HU5BGSM.mjs";
|
|
5
5
|
import {
|
|
6
6
|
useQuery
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-C6I2RW56.mjs";
|
|
8
8
|
import {
|
|
9
9
|
useAutumnClient
|
|
10
10
|
} from "./chunk-SOA7GEAN.mjs";
|