autumn-js 1.3.19 → 1.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/backend/adapters/express.js +80 -12
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +80 -12
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +80 -12
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +80 -12
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +80 -12
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-RGGW7MYQ.mjs → chunk-5MHFZETT.mjs} +50 -6
- package/dist/backend/{chunk-R6CWGJRR.mjs → chunk-7HAJHIDK.mjs} +2 -2
- package/dist/backend/{chunk-EETAZF3L.mjs → chunk-AZAFGMQX.mjs} +1 -1
- package/dist/backend/{chunk-NX3QPLEZ.mjs → chunk-CCYZDY2S.mjs} +1 -1
- package/dist/backend/{chunk-ET3EY5PE.mjs → chunk-IU4DGONB.mjs} +30 -6
- package/dist/backend/{chunk-ORQUSNYD.mjs → chunk-NCQMQWZZ.mjs} +1 -1
- package/dist/backend/{chunk-KPND33EK.mjs → chunk-UUXEUVUW.mjs} +2 -2
- package/dist/backend/{chunk-F6RWEUFE.mjs → chunk-ZL7TQVBF.mjs} +1 -1
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +80 -12
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +80 -12
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +80 -12
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +80 -12
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +30 -6
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +30 -6
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +80 -12
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CVNEIkWv.d.mts → routeTypes-BDhI1aVG.d.mts} +41 -0
- package/dist/backend/{routeTypes-DRaLLtYM.d.ts → routeTypes-S7the8kq.d.ts} +41 -0
- package/dist/better-auth/{chunk-24CG3YJD.mjs → chunk-I5EKFT6Q.mjs} +1 -1
- package/dist/better-auth/{chunk-LCFFOKLD.mjs → chunk-IZPM54OK.mjs} +30 -6
- package/dist/better-auth/{chunk-EU45GEWM.mjs → chunk-YTTMRMTV.mjs} +51 -7
- package/dist/better-auth/index.js +80 -12
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +30 -6
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +80 -12
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +80 -12
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-BNmjxPTb.d.mts → params-B1GU-u8Q.d.mts} +39 -0
- package/dist/react/{params-DOhtJtIQ.d.ts → params-Dp-az5AD.d.ts} +39 -0
- package/dist/sdk/index.d.mts +66 -1
- package/dist/sdk/index.d.ts +66 -1
- package/dist/sdk/index.js +73 -6
- package/dist/sdk/index.mjs +68 -7
- package/package.json +2 -2
|
@@ -246,6 +246,9 @@ var attachLicenseQuantitySchema = import_v42.z.object({
|
|
|
246
246
|
licensePlanId: import_v42.z.string(),
|
|
247
247
|
quantity: import_v42.z.number()
|
|
248
248
|
});
|
|
249
|
+
var attachRemoveDiscountSchema = import_v42.z.object({
|
|
250
|
+
rewardId: import_v42.z.string()
|
|
251
|
+
});
|
|
249
252
|
var attachInvoiceSchema = import_v42.z.object({
|
|
250
253
|
status: import_v42.z.string().nullable(),
|
|
251
254
|
stripeId: import_v42.z.string(),
|
|
@@ -470,6 +473,9 @@ var attachLicenseQuantityOutboundSchema = import_v42.z.object({
|
|
|
470
473
|
license_plan_id: import_v42.z.string(),
|
|
471
474
|
quantity: import_v42.z.number()
|
|
472
475
|
});
|
|
476
|
+
var attachRemoveDiscountOutboundSchema = import_v42.z.object({
|
|
477
|
+
reward_id: import_v42.z.string()
|
|
478
|
+
});
|
|
473
479
|
var closedEnumSchema2 = import_v42.z.any();
|
|
474
480
|
var attachUpsertLicenseThresholdBillingSchema = import_v42.z.any();
|
|
475
481
|
var attachUpsertLicenseResetSchema = import_v42.z.any();
|
|
@@ -695,7 +701,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
695
701
|
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
696
702
|
taxRateId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
697
703
|
currency: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
698
|
-
removePlanIds: import_v42.z.union([import_v42.z.array(import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
704
|
+
removePlanIds: import_v42.z.union([import_v42.z.array(import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
705
|
+
removeDiscounts: import_v42.z.union([import_v42.z.array(attachRemoveDiscountSchema), import_v42.z.undefined()]).optional()
|
|
699
706
|
});
|
|
700
707
|
var attachCodeSchema = openEnumSchema2;
|
|
701
708
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -779,7 +786,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
779
786
|
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
780
787
|
tax_rate_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
781
788
|
currency: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
782
|
-
remove_plan_ids: import_v42.z.union([import_v42.z.array(import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
789
|
+
remove_plan_ids: import_v42.z.union([import_v42.z.array(import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
790
|
+
remove_discounts: import_v42.z.union([import_v42.z.array(attachRemoveDiscountOutboundSchema), import_v42.z.undefined()]).optional()
|
|
783
791
|
});
|
|
784
792
|
|
|
785
793
|
// src/generated/createReferralCodeSchemas.ts
|
|
@@ -3046,6 +3054,9 @@ var previewAttachLicenseQuantitySchema = import_v412.z.object({
|
|
|
3046
3054
|
licensePlanId: import_v412.z.string(),
|
|
3047
3055
|
quantity: import_v412.z.number()
|
|
3048
3056
|
});
|
|
3057
|
+
var previewAttachRemoveDiscountSchema = import_v412.z.object({
|
|
3058
|
+
rewardId: import_v412.z.string()
|
|
3059
|
+
});
|
|
3049
3060
|
var previewAttachDiscountSchema = import_v412.z.object({
|
|
3050
3061
|
amountOff: import_v412.z.number(),
|
|
3051
3062
|
percentOff: import_v412.z.union([import_v412.z.number(), import_v412.z.undefined()]).optional(),
|
|
@@ -3334,6 +3345,9 @@ var previewAttachLicenseQuantityOutboundSchema = import_v412.z.object({
|
|
|
3334
3345
|
license_plan_id: import_v412.z.string(),
|
|
3335
3346
|
quantity: import_v412.z.number()
|
|
3336
3347
|
});
|
|
3348
|
+
var previewAttachRemoveDiscountOutboundSchema = import_v412.z.object({
|
|
3349
|
+
reward_id: import_v412.z.string()
|
|
3350
|
+
});
|
|
3337
3351
|
var closedEnumSchema8 = import_v412.z.any();
|
|
3338
3352
|
var previewAttachUpsertLicenseThresholdBillingSchema = import_v412.z.any();
|
|
3339
3353
|
var previewAttachUpsertLicenseResetSchema = import_v412.z.any();
|
|
@@ -3569,7 +3583,8 @@ var previewAttachParamsSchema = import_v412.z.object({
|
|
|
3569
3583
|
enablePlanImmediately: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
|
|
3570
3584
|
taxRateId: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
3571
3585
|
currency: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
3572
|
-
removePlanIds: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional()
|
|
3586
|
+
removePlanIds: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional(),
|
|
3587
|
+
removeDiscounts: import_v412.z.union([import_v412.z.array(previewAttachRemoveDiscountSchema), import_v412.z.undefined()]).optional()
|
|
3573
3588
|
});
|
|
3574
3589
|
var previewAttachIncomingSchema = import_v412.z.object({
|
|
3575
3590
|
planId: import_v412.z.string(),
|
|
@@ -3694,7 +3709,8 @@ var previewAttachParamsOutboundSchema = import_v412.z.object({
|
|
|
3694
3709
|
enable_plan_immediately: import_v412.z.union([import_v412.z.boolean(), import_v412.z.undefined()]).optional(),
|
|
3695
3710
|
tax_rate_id: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
3696
3711
|
currency: import_v412.z.union([import_v412.z.string(), import_v412.z.undefined()]).optional(),
|
|
3697
|
-
remove_plan_ids: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional()
|
|
3712
|
+
remove_plan_ids: import_v412.z.union([import_v412.z.array(import_v412.z.string()), import_v412.z.undefined()]).optional(),
|
|
3713
|
+
remove_discounts: import_v412.z.union([import_v412.z.array(previewAttachRemoveDiscountOutboundSchema), import_v412.z.undefined()]).optional()
|
|
3698
3714
|
});
|
|
3699
3715
|
|
|
3700
3716
|
// src/generated/previewMultiAttachSchemas.ts
|
|
@@ -5440,6 +5456,9 @@ var setupPaymentLicenseQuantitySchema = import_v416.z.object({
|
|
|
5440
5456
|
licensePlanId: import_v416.z.string(),
|
|
5441
5457
|
quantity: import_v416.z.number()
|
|
5442
5458
|
});
|
|
5459
|
+
var setupPaymentRemoveDiscountSchema = import_v416.z.object({
|
|
5460
|
+
rewardId: import_v416.z.string()
|
|
5461
|
+
});
|
|
5443
5462
|
var setupPaymentResponseSchema = import_v416.z.object({
|
|
5444
5463
|
customerId: import_v416.z.string(),
|
|
5445
5464
|
entityId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
@@ -5647,6 +5666,9 @@ var setupPaymentLicenseQuantityOutboundSchema = import_v416.z.object({
|
|
|
5647
5666
|
license_plan_id: import_v416.z.string(),
|
|
5648
5667
|
quantity: import_v416.z.number()
|
|
5649
5668
|
});
|
|
5669
|
+
var setupPaymentRemoveDiscountOutboundSchema = import_v416.z.object({
|
|
5670
|
+
reward_id: import_v416.z.string()
|
|
5671
|
+
});
|
|
5650
5672
|
var closedEnumSchema11 = import_v416.z.any();
|
|
5651
5673
|
var setupPaymentUpsertLicenseThresholdBillingSchema = import_v416.z.any();
|
|
5652
5674
|
var setupPaymentUpsertLicenseResetSchema = import_v416.z.any();
|
|
@@ -5870,7 +5892,8 @@ var setupPaymentParamsSchema = import_v416.z.object({
|
|
|
5870
5892
|
enablePlanImmediately: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional(),
|
|
5871
5893
|
taxRateId: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
5872
5894
|
currency: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
5873
|
-
removePlanIds: import_v416.z.union([import_v416.z.array(import_v416.z.string()), import_v416.z.undefined()]).optional()
|
|
5895
|
+
removePlanIds: import_v416.z.union([import_v416.z.array(import_v416.z.string()), import_v416.z.undefined()]).optional(),
|
|
5896
|
+
removeDiscounts: import_v416.z.union([import_v416.z.array(setupPaymentRemoveDiscountSchema), import_v416.z.undefined()]).optional()
|
|
5874
5897
|
});
|
|
5875
5898
|
var setupPaymentUpsertLicensePlanItemOutboundSchema = import_v416.z.object({
|
|
5876
5899
|
threshold_billing: import_v416.z.union([
|
|
@@ -5946,7 +5969,8 @@ var setupPaymentParamsOutboundSchema = import_v416.z.object({
|
|
|
5946
5969
|
enable_plan_immediately: import_v416.z.union([import_v416.z.boolean(), import_v416.z.undefined()]).optional(),
|
|
5947
5970
|
tax_rate_id: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
5948
5971
|
currency: import_v416.z.union([import_v416.z.string(), import_v416.z.undefined()]).optional(),
|
|
5949
|
-
remove_plan_ids: import_v416.z.union([import_v416.z.array(import_v416.z.string()), import_v416.z.undefined()]).optional()
|
|
5972
|
+
remove_plan_ids: import_v416.z.union([import_v416.z.array(import_v416.z.string()), import_v416.z.undefined()]).optional(),
|
|
5973
|
+
remove_discounts: import_v416.z.union([import_v416.z.array(setupPaymentRemoveDiscountOutboundSchema), import_v416.z.undefined()]).optional()
|
|
5950
5974
|
});
|
|
5951
5975
|
|
|
5952
5976
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -10274,6 +10298,16 @@ var AttachLicenseQuantity$outboundSchema = z32.pipe(
|
|
|
10274
10298
|
});
|
|
10275
10299
|
})
|
|
10276
10300
|
);
|
|
10301
|
+
var AttachRemoveDiscount$outboundSchema = z32.pipe(
|
|
10302
|
+
z32.object({
|
|
10303
|
+
rewardId: z32.string()
|
|
10304
|
+
}),
|
|
10305
|
+
z32.transform((v) => {
|
|
10306
|
+
return remap(v, {
|
|
10307
|
+
rewardId: "reward_id"
|
|
10308
|
+
});
|
|
10309
|
+
})
|
|
10310
|
+
);
|
|
10277
10311
|
var AttachParams$outboundSchema = z32.pipe(
|
|
10278
10312
|
z32.object({
|
|
10279
10313
|
customerId: z32.string(),
|
|
@@ -10318,7 +10352,10 @@ var AttachParams$outboundSchema = z32.pipe(
|
|
|
10318
10352
|
enablePlanImmediately: z32.optional(z32.boolean()),
|
|
10319
10353
|
taxRateId: z32.optional(z32.string()),
|
|
10320
10354
|
currency: z32.optional(z32.string()),
|
|
10321
|
-
removePlanIds: z32.optional(z32.array(z32.string()))
|
|
10355
|
+
removePlanIds: z32.optional(z32.array(z32.string())),
|
|
10356
|
+
removeDiscounts: z32.optional(
|
|
10357
|
+
z32.array(z32.lazy(() => AttachRemoveDiscount$outboundSchema))
|
|
10358
|
+
)
|
|
10322
10359
|
}),
|
|
10323
10360
|
z32.transform((v) => {
|
|
10324
10361
|
return remap(v, {
|
|
@@ -10347,7 +10384,8 @@ var AttachParams$outboundSchema = z32.pipe(
|
|
|
10347
10384
|
noBillingChanges: "no_billing_changes",
|
|
10348
10385
|
enablePlanImmediately: "enable_plan_immediately",
|
|
10349
10386
|
taxRateId: "tax_rate_id",
|
|
10350
|
-
removePlanIds: "remove_plan_ids"
|
|
10387
|
+
removePlanIds: "remove_plan_ids",
|
|
10388
|
+
removeDiscounts: "remove_discounts"
|
|
10351
10389
|
});
|
|
10352
10390
|
})
|
|
10353
10391
|
);
|
|
@@ -43860,6 +43898,16 @@ var PreviewAttachLicenseQuantity$outboundSchema = z99.pipe(
|
|
|
43860
43898
|
});
|
|
43861
43899
|
})
|
|
43862
43900
|
);
|
|
43901
|
+
var PreviewAttachRemoveDiscount$outboundSchema = z99.pipe(
|
|
43902
|
+
z99.object({
|
|
43903
|
+
rewardId: z99.string()
|
|
43904
|
+
}),
|
|
43905
|
+
z99.transform((v) => {
|
|
43906
|
+
return remap(v, {
|
|
43907
|
+
rewardId: "reward_id"
|
|
43908
|
+
});
|
|
43909
|
+
})
|
|
43910
|
+
);
|
|
43863
43911
|
var PreviewAttachParams$outboundSchema = z99.pipe(
|
|
43864
43912
|
z99.object({
|
|
43865
43913
|
customerId: z99.string(),
|
|
@@ -43913,7 +43961,10 @@ var PreviewAttachParams$outboundSchema = z99.pipe(
|
|
|
43913
43961
|
enablePlanImmediately: z99.optional(z99.boolean()),
|
|
43914
43962
|
taxRateId: z99.optional(z99.string()),
|
|
43915
43963
|
currency: z99.optional(z99.string()),
|
|
43916
|
-
removePlanIds: z99.optional(z99.array(z99.string()))
|
|
43964
|
+
removePlanIds: z99.optional(z99.array(z99.string())),
|
|
43965
|
+
removeDiscounts: z99.optional(
|
|
43966
|
+
z99.array(z99.lazy(() => PreviewAttachRemoveDiscount$outboundSchema))
|
|
43967
|
+
)
|
|
43917
43968
|
}),
|
|
43918
43969
|
z99.transform((v) => {
|
|
43919
43970
|
return remap(v, {
|
|
@@ -43942,7 +43993,8 @@ var PreviewAttachParams$outboundSchema = z99.pipe(
|
|
|
43942
43993
|
noBillingChanges: "no_billing_changes",
|
|
43943
43994
|
enablePlanImmediately: "enable_plan_immediately",
|
|
43944
43995
|
taxRateId: "tax_rate_id",
|
|
43945
|
-
removePlanIds: "remove_plan_ids"
|
|
43996
|
+
removePlanIds: "remove_plan_ids",
|
|
43997
|
+
removeDiscounts: "remove_discounts"
|
|
43946
43998
|
});
|
|
43947
43999
|
})
|
|
43948
44000
|
);
|
|
@@ -50865,6 +50917,16 @@ var SetupPaymentLicenseQuantity$outboundSchema = z113.pipe(
|
|
|
50865
50917
|
});
|
|
50866
50918
|
})
|
|
50867
50919
|
);
|
|
50920
|
+
var SetupPaymentRemoveDiscount$outboundSchema = z113.pipe(
|
|
50921
|
+
z113.object({
|
|
50922
|
+
rewardId: z113.string()
|
|
50923
|
+
}),
|
|
50924
|
+
z113.transform((v) => {
|
|
50925
|
+
return remap(v, {
|
|
50926
|
+
rewardId: "reward_id"
|
|
50927
|
+
});
|
|
50928
|
+
})
|
|
50929
|
+
);
|
|
50868
50930
|
var SetupPaymentParams$outboundSchema = z113.pipe(
|
|
50869
50931
|
z113.object({
|
|
50870
50932
|
customerId: z113.string(),
|
|
@@ -50906,7 +50968,10 @@ var SetupPaymentParams$outboundSchema = z113.pipe(
|
|
|
50906
50968
|
enablePlanImmediately: z113.optional(z113.boolean()),
|
|
50907
50969
|
taxRateId: z113.optional(z113.string()),
|
|
50908
50970
|
currency: z113.optional(z113.string()),
|
|
50909
|
-
removePlanIds: z113.optional(z113.array(z113.string()))
|
|
50971
|
+
removePlanIds: z113.optional(z113.array(z113.string())),
|
|
50972
|
+
removeDiscounts: z113.optional(
|
|
50973
|
+
z113.array(z113.lazy(() => SetupPaymentRemoveDiscount$outboundSchema))
|
|
50974
|
+
)
|
|
50910
50975
|
}),
|
|
50911
50976
|
z113.transform((v) => {
|
|
50912
50977
|
return remap(v, {
|
|
@@ -50930,7 +50995,8 @@ var SetupPaymentParams$outboundSchema = z113.pipe(
|
|
|
50930
50995
|
noBillingChanges: "no_billing_changes",
|
|
50931
50996
|
enablePlanImmediately: "enable_plan_immediately",
|
|
50932
50997
|
taxRateId: "tax_rate_id",
|
|
50933
|
-
removePlanIds: "remove_plan_ids"
|
|
50998
|
+
removePlanIds: "remove_plan_ids",
|
|
50999
|
+
removeDiscounts: "remove_discounts"
|
|
50934
51000
|
});
|
|
50935
51001
|
})
|
|
50936
51002
|
);
|
|
@@ -61815,6 +61881,7 @@ var Billing = class extends ClientSDK {
|
|
|
61815
61881
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
61816
61882
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
61817
61883
|
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected. (optional)
|
|
61884
|
+
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
61818
61885
|
*
|
|
61819
61886
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
61820
61887
|
*/
|
|
@@ -61952,6 +62019,7 @@ var Billing = class extends ClientSDK {
|
|
|
61952
62019
|
* @param taxRateId - Stripe tax rate ID (txr_...) to apply as the default tax rate on the created subscription, invoice, or checkout session line items. (optional)
|
|
61953
62020
|
* @param currency - Currency to bill this attach in (e.g. usd, eur). Must match the customer's currency if they are already locked to one, and the plan must offer a paid price in it. Defaults to the customer's currency, then the org default. (optional)
|
|
61954
62021
|
* @param removePlanIds - Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected. (optional)
|
|
62022
|
+
* @param removeDiscounts - Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged. (optional)
|
|
61955
62023
|
*
|
|
61956
62024
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
61957
62025
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-I5EKFT6Q.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-YTTMRMTV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveIdentityFromScope
|
|
10
10
|
} from "../chunk-J2WYVGHS.mjs";
|
|
11
|
-
import "../chunk-
|
|
11
|
+
import "../chunk-IZPM54OK.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-B1GU-u8Q.mjs';
|
|
4
4
|
import './plan-CrpW2EZo.mjs';
|
|
5
5
|
import './customer-RPAUbbhQ.mjs';
|
|
6
6
|
import './list-plans-response-CN5npYlB.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { IAutumnClient } from './client/IAutumnClient.js';
|
|
3
|
-
import './params-
|
|
3
|
+
import './params-Dp-az5AD.js';
|
|
4
4
|
import './plan-CrpW2EZo.js';
|
|
5
5
|
import './customer-D1yd7b5X.js';
|
|
6
6
|
import './list-plans-response-ZA4i4qbk.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B1GU-u8Q.mjs';
|
|
2
2
|
import { C as Customer } from '../customer-RPAUbbhQ.mjs';
|
|
3
3
|
import { L as ListPlansResponse } from '../list-plans-response-CN5npYlB.mjs';
|
|
4
4
|
import '../plan-CrpW2EZo.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse, t as ClientListPlansParams, e as ClientListEventsParams, L as ListEventsResponse, C as ClientAggregateEventsParams, u as AggregateEventsResponse, c as ClientGetEntityParams, G as GetEntityResponse } from '../params-Dp-az5AD.js';
|
|
2
2
|
import { C as Customer } from '../customer-D1yd7b5X.js';
|
|
3
3
|
import { L as ListPlansResponse } from '../list-plans-response-ZA4i4qbk.js';
|
|
4
4
|
import '../plan-CrpW2EZo.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.mjs';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.mjs';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.mjs';
|
|
4
|
-
import '../params-
|
|
4
|
+
import '../params-B1GU-u8Q.mjs';
|
|
5
5
|
import '../plan-CrpW2EZo.mjs';
|
|
6
6
|
import '../customer-RPAUbbhQ.mjs';
|
|
7
7
|
import '../list-plans-response-CN5npYlB.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { AutumnClientConfig, createAutumnClient } from './AutumnClient.js';
|
|
2
2
|
export { AutumnClientError } from './AutumnClientError.js';
|
|
3
3
|
export { IAutumnClient } from './IAutumnClient.js';
|
|
4
|
-
import '../params-
|
|
4
|
+
import '../params-Dp-az5AD.js';
|
|
5
5
|
import '../plan-CrpW2EZo.js';
|
|
6
6
|
import '../customer-D1yd7b5X.js';
|
|
7
7
|
import '../list-plans-response-ZA4i4qbk.js';
|
|
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.mjs';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.mjs';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.mjs';
|
|
10
|
-
import '../params-
|
|
10
|
+
import '../params-B1GU-u8Q.mjs';
|
|
11
11
|
import '../plan-CrpW2EZo.mjs';
|
|
12
12
|
import '../customer-RPAUbbhQ.mjs';
|
|
13
13
|
import '../list-plans-response-CN5npYlB.mjs';
|
|
@@ -7,7 +7,7 @@ export { UseListPlansParams, useListPlans } from './useListPlans.js';
|
|
|
7
7
|
export { UseReferralsParams, UseReferralsResult, useReferrals } from './useReferrals.js';
|
|
8
8
|
import '@tanstack/react-query';
|
|
9
9
|
import '../client/AutumnClientError.js';
|
|
10
|
-
import '../params-
|
|
10
|
+
import '../params-Dp-az5AD.js';
|
|
11
11
|
import '../plan-CrpW2EZo.js';
|
|
12
12
|
import '../customer-D1yd7b5X.js';
|
|
13
13
|
import '../list-plans-response-ZA4i4qbk.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClientCheckParams, o as CheckResponse } from '../../params-
|
|
1
|
+
import { n as ClientCheckParams, o as CheckResponse } from '../../params-B1GU-u8Q.mjs';
|
|
2
2
|
import { C as Customer } from '../../customer-RPAUbbhQ.mjs';
|
|
3
3
|
import '../../plan-CrpW2EZo.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClientCheckParams, o as CheckResponse } from '../../params-
|
|
1
|
+
import { n as ClientCheckParams, o as CheckResponse } from '../../params-Dp-az5AD.js';
|
|
2
2
|
import { C as Customer } from '../../customer-D1yd7b5X.js';
|
|
3
3
|
import '../../plan-CrpW2EZo.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
1
|
+
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-B1GU-u8Q.mjs';
|
|
2
2
|
import { C as Customer } from '../../customer-RPAUbbhQ.mjs';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.mjs';
|
|
4
4
|
import '../../plan-CrpW2EZo.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-
|
|
1
|
+
import { a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, n as ClientCheckParams, o as CheckResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse } from '../../params-Dp-az5AD.js';
|
|
2
2
|
import { C as Customer } from '../../customer-D1yd7b5X.js';
|
|
3
3
|
import { IAutumnClient } from '../../client/IAutumnClient.js';
|
|
4
4
|
import '../../plan-CrpW2EZo.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-B1GU-u8Q.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
5
|
import '../plan-CrpW2EZo.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-
|
|
2
|
+
import { C as ClientAggregateEventsParams, u as AggregateEventsResponse, v as AggregateEventsList, T as Total } from '../params-Dp-az5AD.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
5
|
import '../plan-CrpW2EZo.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
1
|
+
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-B1GU-u8Q.mjs';
|
|
2
2
|
import { C as Customer } from '../customer-RPAUbbhQ.mjs';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
4
4
|
import '../plan-CrpW2EZo.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-
|
|
1
|
+
import { n as ClientCheckParams, d as ClientGetOrCreateCustomerParams, a as ClientAttachParams, A as AttachResponse, h as ClientPreviewAttachParams, p as PreviewAttachResponse, m as ClientUpdateSubscriptionParams, B as BillingUpdateResponse, j as ClientPreviewUpdateSubscriptionParams, q as PreviewUpdateResponse, o as CheckResponse, f as ClientMultiAttachParams, M as MultiAttachResponse, i as ClientPreviewMultiAttachParams, r as PreviewMultiAttachResponse, l as ClientSetupPaymentParams, S as SetupPaymentResponse, g as ClientOpenCustomerPortalParams, O as OpenCustomerPortalResponse } from '../params-Dp-az5AD.js';
|
|
2
2
|
import { C as Customer } from '../customer-D1yd7b5X.js';
|
|
3
3
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
4
4
|
import '../plan-CrpW2EZo.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-B1GU-u8Q.mjs';
|
|
2
2
|
import { HookParams, HookResult } from './types.mjs';
|
|
3
3
|
import '../plan-CrpW2EZo.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-
|
|
1
|
+
import { c as ClientGetEntityParams, G as GetEntityResponse } from '../params-Dp-az5AD.js';
|
|
2
2
|
import { HookParams, HookResult } from './types.js';
|
|
3
3
|
import '../plan-CrpW2EZo.js';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-B1GU-u8Q.mjs';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
4
4
|
import { HookParams } from './types.mjs';
|
|
5
5
|
import '../plan-CrpW2EZo.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
-
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-
|
|
2
|
+
import { e as ClientListEventsParams, L as ListEventsResponse, w as ListEventsList } from '../params-Dp-az5AD.js';
|
|
3
3
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
4
4
|
import { HookParams } from './types.js';
|
|
5
5
|
import '../plan-CrpW2EZo.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { a as ListPlansList } from '../list-plans-response-CN5npYlB.mjs';
|
|
3
|
-
import { t as ClientListPlansParams } from '../params-
|
|
3
|
+
import { t as ClientListPlansParams } from '../params-B1GU-u8Q.mjs';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.mjs';
|
|
5
5
|
import { HookParams } from './types.mjs';
|
|
6
6
|
import '../plan-CrpW2EZo.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
2
|
import { a as ListPlansList } from '../list-plans-response-ZA4i4qbk.js';
|
|
3
|
-
import { t as ClientListPlansParams } from '../params-
|
|
3
|
+
import { t as ClientListPlansParams } from '../params-Dp-az5AD.js';
|
|
4
4
|
import { AutumnClientError } from '../client/AutumnClientError.js';
|
|
5
5
|
import { HookParams } from './types.js';
|
|
6
6
|
import '../plan-CrpW2EZo.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-B1GU-u8Q.mjs';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.mjs';
|
|
3
3
|
import '../plan-CrpW2EZo.mjs';
|
|
4
4
|
import '@tanstack/react-query';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-
|
|
1
|
+
import { b as ClientCreateReferralCodeParams, s as CreateReferralCodeResponse, k as ClientRedeemReferralCodeParams, R as RedeemReferralCodeResponse } from '../params-Dp-az5AD.js';
|
|
2
2
|
import { HookParams, HookResultWithMethods } from './types.js';
|
|
3
3
|
import '../plan-CrpW2EZo.js';
|
|
4
4
|
import '@tanstack/react-query';
|
package/dist/react/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-
|
|
1
|
+
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-B1GU-u8Q.mjs';
|
|
2
2
|
export { useAutumnClient } from './AutumnContext.mjs';
|
|
3
3
|
export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.mjs';
|
|
4
4
|
export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.mjs';
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-
|
|
1
|
+
export { C as ClientAggregateEventsParams, a as ClientAttachParams, b as ClientCreateReferralCodeParams, c as ClientGetEntityParams, d as ClientGetOrCreateCustomerParams, e as ClientListEventsParams, f as ClientMultiAttachParams, g as ClientOpenCustomerPortalParams, h as ClientPreviewAttachParams, i as ClientPreviewMultiAttachParams, j as ClientPreviewUpdateSubscriptionParams, k as ClientRedeemReferralCodeParams, l as ClientSetupPaymentParams, m as ClientUpdateSubscriptionParams, P as ProtectedFields } from './params-Dp-az5AD.js';
|
|
2
2
|
export { useAutumnClient } from './AutumnContext.js';
|
|
3
3
|
export { AutumnProvider, AutumnProviderProps } from './AutumnProvider.js';
|
|
4
4
|
export { AutumnClientConfig, createAutumnClient } from './client/AutumnClient.js';
|
|
@@ -2438,6 +2438,15 @@ type AttachLicenseQuantity = {
|
|
|
2438
2438
|
*/
|
|
2439
2439
|
quantity: number;
|
|
2440
2440
|
};
|
|
2441
|
+
/**
|
|
2442
|
+
* A discount to remove from the subscription. Discounts that are no longer applied are ignored.
|
|
2443
|
+
*/
|
|
2444
|
+
type AttachRemoveDiscount = {
|
|
2445
|
+
/**
|
|
2446
|
+
* The ID of the reward (or Stripe coupon) to remove.
|
|
2447
|
+
*/
|
|
2448
|
+
rewardId: string;
|
|
2449
|
+
};
|
|
2441
2450
|
type AttachParams = {
|
|
2442
2451
|
/**
|
|
2443
2452
|
* The ID of the customer to attach the plan to.
|
|
@@ -2567,6 +2576,10 @@ type AttachParams = {
|
|
|
2567
2576
|
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected.
|
|
2568
2577
|
*/
|
|
2569
2578
|
removePlanIds?: Array<string> | undefined;
|
|
2579
|
+
/**
|
|
2580
|
+
* Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
|
|
2581
|
+
*/
|
|
2582
|
+
removeDiscounts?: Array<AttachRemoveDiscount> | undefined;
|
|
2570
2583
|
};
|
|
2571
2584
|
/**
|
|
2572
2585
|
* Invoice details if an invoice was created. Only present when a charge was made.
|
|
@@ -11814,6 +11827,15 @@ type PreviewAttachLicenseQuantity = {
|
|
|
11814
11827
|
*/
|
|
11815
11828
|
quantity: number;
|
|
11816
11829
|
};
|
|
11830
|
+
/**
|
|
11831
|
+
* A discount to remove from the subscription. Discounts that are no longer applied are ignored.
|
|
11832
|
+
*/
|
|
11833
|
+
type PreviewAttachRemoveDiscount = {
|
|
11834
|
+
/**
|
|
11835
|
+
* The ID of the reward (or Stripe coupon) to remove.
|
|
11836
|
+
*/
|
|
11837
|
+
rewardId: string;
|
|
11838
|
+
};
|
|
11817
11839
|
type PreviewAttachParams = {
|
|
11818
11840
|
/**
|
|
11819
11841
|
* The ID of the customer to attach the plan to.
|
|
@@ -11943,6 +11965,10 @@ type PreviewAttachParams = {
|
|
|
11943
11965
|
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected.
|
|
11944
11966
|
*/
|
|
11945
11967
|
removePlanIds?: Array<string> | undefined;
|
|
11968
|
+
/**
|
|
11969
|
+
* Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
|
|
11970
|
+
*/
|
|
11971
|
+
removeDiscounts?: Array<PreviewAttachRemoveDiscount> | undefined;
|
|
11946
11972
|
};
|
|
11947
11973
|
type PreviewAttachDiscount = {
|
|
11948
11974
|
amountOff: number;
|
|
@@ -18517,6 +18543,15 @@ type SetupPaymentLicenseQuantity = {
|
|
|
18517
18543
|
*/
|
|
18518
18544
|
quantity: number;
|
|
18519
18545
|
};
|
|
18546
|
+
/**
|
|
18547
|
+
* A discount to remove from the subscription. Discounts that are no longer applied are ignored.
|
|
18548
|
+
*/
|
|
18549
|
+
type SetupPaymentRemoveDiscount = {
|
|
18550
|
+
/**
|
|
18551
|
+
* The ID of the reward (or Stripe coupon) to remove.
|
|
18552
|
+
*/
|
|
18553
|
+
rewardId: string;
|
|
18554
|
+
};
|
|
18520
18555
|
type SetupPaymentParams = {
|
|
18521
18556
|
/**
|
|
18522
18557
|
* The ID of the customer to attach the plan to.
|
|
@@ -18626,6 +18661,10 @@ type SetupPaymentParams = {
|
|
|
18626
18661
|
* Plan IDs to expire on the customer as part of this attach. Each must be an active plan billed on the same subscription as the attach (or a free plan); plans on a separate subscription are rejected.
|
|
18627
18662
|
*/
|
|
18628
18663
|
removePlanIds?: Array<string> | undefined;
|
|
18664
|
+
/**
|
|
18665
|
+
* Discounts to remove from the subscription, by reward ID. Discounts not listed are left unchanged.
|
|
18666
|
+
*/
|
|
18667
|
+
removeDiscounts?: Array<SetupPaymentRemoveDiscount> | undefined;
|
|
18629
18668
|
};
|
|
18630
18669
|
/**
|
|
18631
18670
|
* OK
|