autumn-js 0.1.64 → 0.1.67
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/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/index.d.mts +1 -1
- package/dist/libraries/backend/index.d.ts +1 -1
- package/dist/libraries/backend/{referralTypes-W06ad-YW.d.mts → referralTypes-DuFjXNs5.d.mts} +37 -38
- package/dist/libraries/backend/{referralTypes-BmDF5gIL.d.ts → referralTypes-mqPyzXt_.d.ts} +37 -38
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/react/AutumnContext.d.mts +5 -5
- package/dist/libraries/react/AutumnContext.d.ts +5 -5
- package/dist/libraries/react/AutumnContext.mjs +6 -6
- package/dist/libraries/react/BaseAutumnProvider.d.mts +5 -5
- package/dist/libraries/react/BaseAutumnProvider.d.ts +5 -5
- package/dist/libraries/react/BaseAutumnProvider.mjs +9 -9
- package/dist/libraries/react/{ReactAutumnClient-DO2TzIE2.d.ts → ReactAutumnClient-BDkjUBw6.d.ts} +5 -5
- package/dist/libraries/react/{ReactAutumnClient-8kyytiz_.d.mts → ReactAutumnClient-DwpVYLr8.d.mts} +5 -5
- package/dist/libraries/react/ReactAutumnProvider.d.mts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.d.ts +2 -2
- package/dist/libraries/react/ReactAutumnProvider.mjs +11 -11
- package/dist/libraries/react/{attachTypes-BHC3WC5D.d.mts → attachTypes-BNlJ6XXa.d.mts} +1 -1
- package/dist/libraries/react/{attachTypes-YaaK-7xS.d.ts → attachTypes-eg914-6v.d.ts} +1 -1
- package/dist/libraries/react/{chunk-DL7GGLPY.mjs → chunk-2P7TVBHU.mjs} +1 -1
- package/dist/libraries/react/{chunk-NBCD7YQN.mjs → chunk-36POY2CM.mjs} +17 -17
- package/dist/libraries/react/{chunk-VY2NRIBK.mjs → chunk-6EI2E6EZ.mjs} +4 -4
- package/dist/libraries/react/{chunk-R4I7MVEX.mjs → chunk-6I5DGTWH.mjs} +1 -1
- package/dist/libraries/react/{chunk-5XIEJCAZ.mjs → chunk-72K3ATBY.mjs} +2 -2
- package/dist/libraries/react/{chunk-Q24L3UDQ.mjs → chunk-C3LUB2Q3.mjs} +2 -2
- package/dist/libraries/react/{chunk-BN57H7DB.mjs → chunk-D5PK3RTV.mjs} +1 -1
- package/dist/libraries/react/{chunk-ZXCNYWO5.mjs → chunk-FQF2FCSY.mjs} +2 -2
- package/dist/libraries/react/{chunk-44ZF6DDE.mjs → chunk-IDK52OD5.mjs} +4 -4
- package/dist/libraries/react/{chunk-JACYXXFP.mjs → chunk-IEURGWN2.mjs} +1 -1
- package/dist/libraries/react/{chunk-ZBHCIMJH.mjs → chunk-JLY4L5PT.mjs} +6 -6
- package/dist/libraries/react/{chunk-IKJYNTI5.mjs → chunk-MJF25D7E.mjs} +1 -1
- package/dist/libraries/react/{chunk-V6L4453F.mjs → chunk-MT76Z323.mjs} +1 -1
- package/dist/libraries/react/{chunk-UVANC7FX.mjs → chunk-NYJRTMD5.mjs} +6 -6
- package/dist/libraries/react/{chunk-HKUFDDLP.mjs → chunk-UON3O4CM.mjs} +1 -1
- package/dist/libraries/react/{chunk-VOL2OZUM.mjs → chunk-W2QSIATF.mjs} +1 -1
- package/dist/libraries/react/{chunk-NLDP7BEO.mjs → chunk-WZHPY2S7.mjs} +6 -6
- package/dist/libraries/react/{chunk-TKV45733.mjs → chunk-X32WSBNK.mjs} +451 -453
- package/dist/libraries/react/{chunk-KEGHYZMH.mjs → chunk-Y626BPVN.mjs} +2 -2
- package/dist/libraries/react/{chunk-TPXR5NH5.mjs → chunk-YVNA775J.mjs} +1 -1
- package/dist/libraries/react/client/ConvexAutumnClient.d.mts +5 -5
- package/dist/libraries/react/client/ConvexAutumnClient.d.ts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +5 -5
- package/dist/libraries/react/client/ReactAutumnClient.mjs +5 -5
- package/dist/libraries/react/client/clientAnalyticsMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientAnalyticsMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCompMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientCusMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientEntityMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientGenMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientProdMethods.d.ts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.mts +5 -5
- package/dist/libraries/react/client/clientReferralMethods.d.ts +5 -5
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.d.ts +2 -2
- package/dist/libraries/react/components/checkout-dialog/checkout-dialog-synced.mjs +31 -31
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.mts +2 -2
- package/dist/libraries/react/components/checkout-dialog/lib/checkout-content.d.ts +2 -2
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.mts +1 -1
- package/dist/libraries/react/components/paywall-dialog/lib/paywall-content.d.ts +1 -1
- package/dist/libraries/react/components/paywall-dialog/paywall-dialog-synced.mjs +31 -31
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/lib/pricing-table-content.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.mts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.d.ts +1 -1
- package/dist/libraries/react/components/pricing-table/pricing-table-synced.mjs +31 -31
- package/dist/libraries/react/components/ui/accordion.mjs +3 -3
- package/dist/libraries/react/components/ui/dialog.mjs +4 -4
- package/dist/libraries/react/components/ui/popover.mjs +5 -5
- package/dist/libraries/react/components/ui/switch.mjs +3 -3
- package/dist/libraries/react/{cusTypes-fVeDwBP5.d.ts → cusTypes-B-sKMFFk.d.mts} +43 -3
- package/dist/libraries/react/{cusTypes-BcKq1BTx.d.mts → cusTypes-B0LuEIjj.d.ts} +43 -3
- package/dist/libraries/react/{entTypes-VbMQfEJF.d.ts → genTypes-BouhbtKm.d.ts} +2 -17
- package/dist/libraries/react/{entTypes-DqKL6zHM.d.mts → genTypes-DT5O0rCP.d.mts} +2 -17
- package/dist/libraries/react/hooks/helpers/handleCheck.d.mts +5 -5
- package/dist/libraries/react/hooks/helpers/handleCheck.d.ts +5 -5
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.mts +5 -5
- package/dist/libraries/react/hooks/helpers/useAutumnBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useAggregateEvents.mjs +7 -7
- package/dist/libraries/react/hooks/useAnalytics.mjs +7 -7
- package/dist/libraries/react/hooks/useCustomer.d.mts +14 -6
- package/dist/libraries/react/hooks/useCustomer.d.ts +14 -6
- package/dist/libraries/react/hooks/useCustomer.mjs +9 -9
- package/dist/libraries/react/hooks/useCustomerBase.d.mts +13 -13
- package/dist/libraries/react/hooks/useCustomerBase.d.ts +13 -13
- package/dist/libraries/react/hooks/useCustomerBase.mjs +8 -8
- package/dist/libraries/react/hooks/useEntity.d.mts +3 -3
- package/dist/libraries/react/hooks/useEntity.d.ts +3 -3
- package/dist/libraries/react/hooks/useEntity.mjs +9 -9
- package/dist/libraries/react/hooks/useEntityBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useEntityBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useEntityBase.mjs +8 -8
- package/dist/libraries/react/hooks/useListEvents.mjs +7 -7
- package/dist/libraries/react/hooks/usePaywall.d.mts +1 -1
- package/dist/libraries/react/hooks/usePaywall.d.ts +1 -1
- package/dist/libraries/react/hooks/usePaywall.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTable.d.mts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.d.ts +1 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +7 -7
- package/dist/libraries/react/hooks/usePricingTableBase.d.mts +5 -5
- package/dist/libraries/react/hooks/usePricingTableBase.d.ts +5 -5
- package/dist/libraries/react/hooks/useProductsBase.d.mts +5 -5
- package/dist/libraries/react/hooks/useProductsBase.d.ts +5 -5
- package/dist/libraries/react/index.d.mts +52 -18
- package/dist/libraries/react/index.d.ts +52 -18
- package/dist/libraries/react/{prodTypes-DVvNGoR7.d.ts → prodTypes-C4aZSZfO.d.mts} +1 -1
- package/dist/libraries/react/{prodTypes-DVvNGoR7.d.mts → prodTypes-C4aZSZfO.d.ts} +1 -1
- package/dist/next/client/NextAutumnClient.d.mts +4 -5
- package/dist/next/client/NextAutumnClient.d.ts +4 -5
- package/dist/next/client/NextAutumnProvider.d.mts +2 -2
- package/dist/next/client/NextAutumnProvider.d.ts +2 -2
- package/dist/next/client/{clientAttachTypes-CugoThHh.d.ts → clientAttachTypes-BKYU9JhV.d.ts} +1 -1
- package/dist/next/client/{clientAttachTypes-Bt2nJCCu.d.mts → clientAttachTypes-rRBh7kw-.d.mts} +1 -1
- package/dist/next/client/{clientEntTypes-DtmpIviv.d.ts → clientEntTypes-CeaZbrIq.d.ts} +1 -1
- package/dist/next/client/{clientEntTypes--IF-i2B5.d.mts → clientEntTypes-jltPLNQ5.d.mts} +1 -1
- package/dist/next/client/clientUtils.d.mts +2 -3
- package/dist/next/client/clientUtils.d.ts +2 -3
- package/dist/next/client/{cusTypes-Cny6ELGC.d.mts → cusTypes-9cDUkGrx.d.ts} +48 -3
- package/dist/next/client/{cusTypes-DJ8I9f_a.d.ts → cusTypes-KT4py2Im.d.mts} +48 -3
- package/dist/next/client/hooks/useAutumn.d.mts +3 -3
- package/dist/next/client/hooks/useAutumn.d.ts +3 -3
- package/dist/next/client/hooks/useCustomer.d.mts +10 -11
- package/dist/next/client/hooks/useCustomer.d.ts +10 -11
- package/dist/next/client/hooks/useEntity.d.mts +3 -4
- package/dist/next/client/hooks/useEntity.d.ts +3 -4
- package/dist/next/client/hooks/usePricingTable.d.mts +1 -1
- package/dist/next/client/hooks/usePricingTable.d.ts +1 -1
- package/dist/next/client/{prodTypes-HrKk7bUE.d.mts → prodTypes-G6W3NUPg.d.mts} +1 -1
- package/dist/next/client/{prodTypes-HrKk7bUE.d.ts → prodTypes-G6W3NUPg.d.ts} +1 -1
- package/dist/next/client/types.d.mts +2 -3
- package/dist/next/client/types.d.ts +2 -3
- package/dist/next/server/auth/withNextAuth.d.mts +1 -1
- package/dist/next/server/auth/withNextAuth.d.ts +1 -1
- package/dist/next/server/componentActions.d.mts +1 -1
- package/dist/next/server/componentActions.d.ts +1 -1
- package/dist/next/server/cusActions.d.mts +38 -38
- package/dist/next/server/cusActions.d.ts +38 -38
- package/dist/next/server/{cusTypes-BtTPLKaK.d.ts → cusTypes-sMpfkSdH.d.mts} +1 -2
- package/dist/next/server/{cusTypes-BtTPLKaK.d.mts → cusTypes-sMpfkSdH.d.ts} +1 -2
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/sdk/index.d.mts +70 -44
- package/dist/sdk/index.d.ts +70 -44
- package/package.json +4 -1
- package/dist/next/client/entTypes-2N5YUUiP.d.mts +0 -22
- package/dist/next/client/entTypes-D04IFxc9.d.ts +0 -22
- package/dist/libraries/react/{chunk-XGG7IZUQ.mjs → chunk-7N75YTVM.mjs} +11 -11
- package/dist/libraries/react/{chunk-5WUHZFLP.mjs → chunk-JPO4E4SD.mjs} +14 -14
package/dist/libraries/backend/{referralTypes-W06ad-YW.d.mts → referralTypes-DuFjXNs5.d.mts}
RENAMED
|
@@ -180,6 +180,43 @@ declare enum ProductStatus {
|
|
|
180
180
|
}
|
|
181
181
|
type CustomerExpandOption = "invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method";
|
|
182
182
|
|
|
183
|
+
type EntityExpandOption = "invoices";
|
|
184
|
+
|
|
185
|
+
interface CreateEntityParams {
|
|
186
|
+
id: string;
|
|
187
|
+
name: string;
|
|
188
|
+
feature_id: string;
|
|
189
|
+
customer_data?: CustomerData;
|
|
190
|
+
}
|
|
191
|
+
interface CreateEntityResult {
|
|
192
|
+
success: boolean;
|
|
193
|
+
}
|
|
194
|
+
interface DeleteEntityResult {
|
|
195
|
+
success: boolean;
|
|
196
|
+
}
|
|
197
|
+
interface GetEntityParams {
|
|
198
|
+
expand?: EntityExpandOption[];
|
|
199
|
+
}
|
|
200
|
+
interface Entity {
|
|
201
|
+
id: string;
|
|
202
|
+
name: string;
|
|
203
|
+
customer_id: string;
|
|
204
|
+
created_at: number;
|
|
205
|
+
env: string;
|
|
206
|
+
products: CustomerProduct[];
|
|
207
|
+
features: Record<string, CustomerFeature>;
|
|
208
|
+
invoices?: CustomerInvoice[];
|
|
209
|
+
}
|
|
210
|
+
declare const TransferProductParamsSchema: z.ZodObject<{
|
|
211
|
+
from_entity_id: z.ZodString;
|
|
212
|
+
to_entity_id: z.ZodString;
|
|
213
|
+
product_id: z.ZodString;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
type TransferProductParams = z.infer<typeof TransferProductParamsSchema>;
|
|
216
|
+
type TransferProductResult = {
|
|
217
|
+
success: boolean;
|
|
218
|
+
};
|
|
219
|
+
|
|
183
220
|
declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
184
221
|
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
185
222
|
interval: z.ZodOptional<z.ZodEnum<typeof ProductItemInterval>>;
|
|
@@ -249,7 +286,6 @@ interface Customer {
|
|
|
249
286
|
metadata: Record<string, any>;
|
|
250
287
|
products: CustomerProduct[];
|
|
251
288
|
features: Record<string, CustomerFeature>;
|
|
252
|
-
invoices?: CustomerInvoice[];
|
|
253
289
|
payment_method?: any;
|
|
254
290
|
referrals?: CustomerReferral[];
|
|
255
291
|
}
|
|
@@ -918,43 +954,6 @@ declare class Autumn {
|
|
|
918
954
|
query(params: QueryParams): Promise<Result<QueryResult, AutumnError>>;
|
|
919
955
|
}
|
|
920
956
|
|
|
921
|
-
type EntityExpandOption = "invoices";
|
|
922
|
-
|
|
923
|
-
interface CreateEntityParams {
|
|
924
|
-
id: string;
|
|
925
|
-
name: string;
|
|
926
|
-
feature_id: string;
|
|
927
|
-
customer_data?: CustomerData;
|
|
928
|
-
}
|
|
929
|
-
interface CreateEntityResult {
|
|
930
|
-
success: boolean;
|
|
931
|
-
}
|
|
932
|
-
interface DeleteEntityResult {
|
|
933
|
-
success: boolean;
|
|
934
|
-
}
|
|
935
|
-
interface GetEntityParams {
|
|
936
|
-
expand?: EntityExpandOption[];
|
|
937
|
-
}
|
|
938
|
-
interface Entity {
|
|
939
|
-
id: string;
|
|
940
|
-
name: string;
|
|
941
|
-
customer_id: string;
|
|
942
|
-
created_at: number;
|
|
943
|
-
env: string;
|
|
944
|
-
products: CustomerProduct[];
|
|
945
|
-
features: Record<string, CustomerFeature>;
|
|
946
|
-
invoices?: CustomerInvoice[];
|
|
947
|
-
}
|
|
948
|
-
declare const TransferProductParamsSchema: z.ZodObject<{
|
|
949
|
-
from_entity_id: z.ZodString;
|
|
950
|
-
to_entity_id: z.ZodString;
|
|
951
|
-
product_id: z.ZodString;
|
|
952
|
-
}, z.core.$strip>;
|
|
953
|
-
type TransferProductParams = z.infer<typeof TransferProductParamsSchema>;
|
|
954
|
-
type TransferProductResult = {
|
|
955
|
-
success: boolean;
|
|
956
|
-
};
|
|
957
|
-
|
|
958
957
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
959
958
|
customer_id: z.ZodString;
|
|
960
959
|
program_id: z.ZodString;
|
|
@@ -180,6 +180,43 @@ declare enum ProductStatus {
|
|
|
180
180
|
}
|
|
181
181
|
type CustomerExpandOption = "invoices" | "rewards" | "trials_used" | "entities" | "referrals" | "payment_method";
|
|
182
182
|
|
|
183
|
+
type EntityExpandOption = "invoices";
|
|
184
|
+
|
|
185
|
+
interface CreateEntityParams {
|
|
186
|
+
id: string;
|
|
187
|
+
name: string;
|
|
188
|
+
feature_id: string;
|
|
189
|
+
customer_data?: CustomerData;
|
|
190
|
+
}
|
|
191
|
+
interface CreateEntityResult {
|
|
192
|
+
success: boolean;
|
|
193
|
+
}
|
|
194
|
+
interface DeleteEntityResult {
|
|
195
|
+
success: boolean;
|
|
196
|
+
}
|
|
197
|
+
interface GetEntityParams {
|
|
198
|
+
expand?: EntityExpandOption[];
|
|
199
|
+
}
|
|
200
|
+
interface Entity {
|
|
201
|
+
id: string;
|
|
202
|
+
name: string;
|
|
203
|
+
customer_id: string;
|
|
204
|
+
created_at: number;
|
|
205
|
+
env: string;
|
|
206
|
+
products: CustomerProduct[];
|
|
207
|
+
features: Record<string, CustomerFeature>;
|
|
208
|
+
invoices?: CustomerInvoice[];
|
|
209
|
+
}
|
|
210
|
+
declare const TransferProductParamsSchema: z.ZodObject<{
|
|
211
|
+
from_entity_id: z.ZodString;
|
|
212
|
+
to_entity_id: z.ZodString;
|
|
213
|
+
product_id: z.ZodString;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
type TransferProductParams = z.infer<typeof TransferProductParamsSchema>;
|
|
216
|
+
type TransferProductResult = {
|
|
217
|
+
success: boolean;
|
|
218
|
+
};
|
|
219
|
+
|
|
183
220
|
declare const CoreCusFeatureSchema: z.ZodObject<{
|
|
184
221
|
unlimited: z.ZodOptional<z.ZodBoolean>;
|
|
185
222
|
interval: z.ZodOptional<z.ZodEnum<typeof ProductItemInterval>>;
|
|
@@ -249,7 +286,6 @@ interface Customer {
|
|
|
249
286
|
metadata: Record<string, any>;
|
|
250
287
|
products: CustomerProduct[];
|
|
251
288
|
features: Record<string, CustomerFeature>;
|
|
252
|
-
invoices?: CustomerInvoice[];
|
|
253
289
|
payment_method?: any;
|
|
254
290
|
referrals?: CustomerReferral[];
|
|
255
291
|
}
|
|
@@ -918,43 +954,6 @@ declare class Autumn {
|
|
|
918
954
|
query(params: QueryParams): Promise<Result<QueryResult, AutumnError>>;
|
|
919
955
|
}
|
|
920
956
|
|
|
921
|
-
type EntityExpandOption = "invoices";
|
|
922
|
-
|
|
923
|
-
interface CreateEntityParams {
|
|
924
|
-
id: string;
|
|
925
|
-
name: string;
|
|
926
|
-
feature_id: string;
|
|
927
|
-
customer_data?: CustomerData;
|
|
928
|
-
}
|
|
929
|
-
interface CreateEntityResult {
|
|
930
|
-
success: boolean;
|
|
931
|
-
}
|
|
932
|
-
interface DeleteEntityResult {
|
|
933
|
-
success: boolean;
|
|
934
|
-
}
|
|
935
|
-
interface GetEntityParams {
|
|
936
|
-
expand?: EntityExpandOption[];
|
|
937
|
-
}
|
|
938
|
-
interface Entity {
|
|
939
|
-
id: string;
|
|
940
|
-
name: string;
|
|
941
|
-
customer_id: string;
|
|
942
|
-
created_at: number;
|
|
943
|
-
env: string;
|
|
944
|
-
products: CustomerProduct[];
|
|
945
|
-
features: Record<string, CustomerFeature>;
|
|
946
|
-
invoices?: CustomerInvoice[];
|
|
947
|
-
}
|
|
948
|
-
declare const TransferProductParamsSchema: z.ZodObject<{
|
|
949
|
-
from_entity_id: z.ZodString;
|
|
950
|
-
to_entity_id: z.ZodString;
|
|
951
|
-
product_id: z.ZodString;
|
|
952
|
-
}, z.core.$strip>;
|
|
953
|
-
type TransferProductParams = z.infer<typeof TransferProductParamsSchema>;
|
|
954
|
-
type TransferProductResult = {
|
|
955
|
-
success: boolean;
|
|
956
|
-
};
|
|
957
|
-
|
|
958
957
|
declare const CreateReferralCodeParamsSchema: z.ZodObject<{
|
|
959
958
|
customer_id: z.ZodString;
|
|
960
959
|
program_id: z.ZodString;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import './
|
|
4
|
-
import './prodTypes-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-DwpVYLr8.mjs';
|
|
3
|
+
import './genTypes-DT5O0rCP.mjs';
|
|
4
|
+
import './prodTypes-C4aZSZfO.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import './
|
|
7
|
-
import './attachTypes-BHC3WC5D.mjs';
|
|
6
|
+
import './attachTypes-BNlJ6XXa.mjs';
|
|
8
7
|
import './eventTypes-5iJYcv30.mjs';
|
|
9
8
|
import './error-DHbclCVh.mjs';
|
|
9
|
+
import './cusTypes-B-sKMFFk.mjs';
|
|
10
10
|
import './client/types/clientAnalyticsTypes.mjs';
|
|
11
11
|
|
|
12
12
|
interface AutumnDialogContext {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import './
|
|
4
|
-
import './prodTypes-
|
|
2
|
+
import { A as AutumnClient } from './ReactAutumnClient-BDkjUBw6.js';
|
|
3
|
+
import './genTypes-BouhbtKm.js';
|
|
4
|
+
import './prodTypes-C4aZSZfO.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import './
|
|
7
|
-
import './attachTypes-YaaK-7xS.js';
|
|
6
|
+
import './attachTypes-eg914-6v.js';
|
|
8
7
|
import './eventTypes-5iJYcv30.js';
|
|
9
8
|
import './error-DHbclCVh.js';
|
|
9
|
+
import './cusTypes-B0LuEIjj.js';
|
|
10
10
|
import './client/types/clientAnalyticsTypes.js';
|
|
11
11
|
|
|
12
12
|
interface AutumnDialogContext {
|
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
import {
|
|
4
4
|
AutumnContext,
|
|
5
5
|
useAutumnContext
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-SUENW2KS.mjs";
|
|
9
|
-
import "./chunk-XDQLJ7QR.mjs";
|
|
10
|
-
import "./chunk-WFFVOEUG.mjs";
|
|
6
|
+
} from "./chunk-IEURGWN2.mjs";
|
|
7
|
+
import "./chunk-JPO4E4SD.mjs";
|
|
11
8
|
import "./chunk-OYBOLAL5.mjs";
|
|
12
9
|
import "./chunk-6EXNYWJX.mjs";
|
|
13
10
|
import "./chunk-V575SGOW.mjs";
|
|
14
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-SUENW2KS.mjs";
|
|
15
12
|
import "./chunk-JVCOY7ZL.mjs";
|
|
16
13
|
import "./chunk-CIBQ4BJU.mjs";
|
|
14
|
+
import "./chunk-4E6PXYFI.mjs";
|
|
15
|
+
import "./chunk-XDQLJ7QR.mjs";
|
|
16
|
+
import "./chunk-WFFVOEUG.mjs";
|
|
17
17
|
export {
|
|
18
18
|
AutumnContext,
|
|
19
19
|
useAutumnContext
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { I as IAutumnClient } from './ReactAutumnClient-
|
|
3
|
-
import './
|
|
4
|
-
import './prodTypes-
|
|
2
|
+
import { I as IAutumnClient } from './ReactAutumnClient-DwpVYLr8.mjs';
|
|
3
|
+
import './genTypes-DT5O0rCP.mjs';
|
|
4
|
+
import './prodTypes-C4aZSZfO.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import './
|
|
7
|
-
import './attachTypes-BHC3WC5D.mjs';
|
|
6
|
+
import './attachTypes-BNlJ6XXa.mjs';
|
|
8
7
|
import './eventTypes-5iJYcv30.mjs';
|
|
9
8
|
import './error-DHbclCVh.mjs';
|
|
9
|
+
import './cusTypes-B-sKMFFk.mjs';
|
|
10
10
|
import './client/types/clientAnalyticsTypes.mjs';
|
|
11
11
|
|
|
12
12
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { I as IAutumnClient } from './ReactAutumnClient-
|
|
3
|
-
import './
|
|
4
|
-
import './prodTypes-
|
|
2
|
+
import { I as IAutumnClient } from './ReactAutumnClient-BDkjUBw6.js';
|
|
3
|
+
import './genTypes-BouhbtKm.js';
|
|
4
|
+
import './prodTypes-C4aZSZfO.js';
|
|
5
5
|
import 'zod/v4';
|
|
6
|
-
import './
|
|
7
|
-
import './attachTypes-YaaK-7xS.js';
|
|
6
|
+
import './attachTypes-eg914-6v.js';
|
|
8
7
|
import './eventTypes-5iJYcv30.js';
|
|
9
8
|
import './error-DHbclCVh.js';
|
|
9
|
+
import './cusTypes-B0LuEIjj.js';
|
|
10
10
|
import './client/types/clientAnalyticsTypes.js';
|
|
11
11
|
|
|
12
12
|
declare function BaseAutumnProvider({ client, children, AutumnContext, }: {
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
"use client";
|
|
4
4
|
import {
|
|
5
5
|
BaseAutumnProvider
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YVNA775J.mjs";
|
|
7
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-3H4PJQPK.mjs";
|
|
8
|
+
import "./chunk-IDK52OD5.mjs";
|
|
10
9
|
import "./chunk-CAAHUXGP.mjs";
|
|
10
|
+
import "./chunk-3H4PJQPK.mjs";
|
|
11
11
|
import "./chunk-743TUZSP.mjs";
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-SUENW2KS.mjs";
|
|
15
|
-
import "./chunk-XDQLJ7QR.mjs";
|
|
16
|
-
import "./chunk-WFFVOEUG.mjs";
|
|
12
|
+
import "./chunk-IEURGWN2.mjs";
|
|
13
|
+
import "./chunk-JPO4E4SD.mjs";
|
|
17
14
|
import "./chunk-OYBOLAL5.mjs";
|
|
18
15
|
import "./chunk-6EXNYWJX.mjs";
|
|
19
16
|
import "./chunk-V575SGOW.mjs";
|
|
20
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-SUENW2KS.mjs";
|
|
21
18
|
import "./chunk-JVCOY7ZL.mjs";
|
|
22
19
|
import "./chunk-CIBQ4BJU.mjs";
|
|
20
|
+
import "./chunk-4E6PXYFI.mjs";
|
|
21
|
+
import "./chunk-XDQLJ7QR.mjs";
|
|
22
|
+
import "./chunk-WFFVOEUG.mjs";
|
|
23
23
|
export {
|
|
24
24
|
BaseAutumnProvider
|
|
25
25
|
};
|
package/dist/libraries/react/{ReactAutumnClient-DO2TzIE2.d.ts → ReactAutumnClient-BDkjUBw6.d.ts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as CheckoutResult } from './attachTypes-
|
|
1
|
+
import { a as CheckResult, S as SetupPaymentResult } from './genTypes-BouhbtKm.js';
|
|
2
|
+
import { C as CheckoutResult } from './attachTypes-eg914-6v.js';
|
|
3
3
|
import { E as EventsListResponse, Q as QueryResult } from './eventTypes-5iJYcv30.js';
|
|
4
4
|
import { A as AutumnError } from './error-DHbclCVh.js';
|
|
5
|
-
import { P as Product } from './prodTypes-
|
|
6
|
-
import { C as CustomerData,
|
|
5
|
+
import { P as Product } from './prodTypes-C4aZSZfO.js';
|
|
6
|
+
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult, E as Entity, D as DeleteEntityResult } from './cusTypes-B0LuEIjj.js';
|
|
7
7
|
import { EventsListParams, EventAggregationParams, EventAggregationResponse } from './client/types/clientAnalyticsTypes.js';
|
|
8
8
|
|
|
9
9
|
type Success<T> = {
|
|
@@ -300,4 +300,4 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export {
|
|
303
|
+
export { AutumnClient as A, type CreateReferralCodeResult as C, type ErrorResponse as E, type IAutumnClient as I, type OmitCustomerType as O, type RedeemReferralCodeResult as R, type Success as S, type AutumnPromise as a, type AutumnClientConfig as b };
|
package/dist/libraries/react/{ReactAutumnClient-8kyytiz_.d.mts → ReactAutumnClient-DwpVYLr8.d.mts}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as CheckoutResult } from './attachTypes-
|
|
1
|
+
import { a as CheckResult, S as SetupPaymentResult } from './genTypes-DT5O0rCP.mjs';
|
|
2
|
+
import { C as CheckoutResult } from './attachTypes-BNlJ6XXa.mjs';
|
|
3
3
|
import { E as EventsListResponse, Q as QueryResult } from './eventTypes-5iJYcv30.mjs';
|
|
4
4
|
import { A as AutumnError } from './error-DHbclCVh.mjs';
|
|
5
|
-
import { P as Product } from './prodTypes-
|
|
6
|
-
import { C as CustomerData,
|
|
5
|
+
import { P as Product } from './prodTypes-C4aZSZfO.mjs';
|
|
6
|
+
import { C as CustomerData, a as CreateCustomerParams, b as Customer, B as BillingPortalResult, E as Entity, D as DeleteEntityResult } from './cusTypes-B-sKMFFk.mjs';
|
|
7
7
|
import { EventsListParams, EventAggregationParams, EventAggregationResponse } from './client/types/clientAnalyticsTypes.mjs';
|
|
8
8
|
|
|
9
9
|
type Success<T> = {
|
|
@@ -300,4 +300,4 @@ declare class AutumnClient implements IAutumnClient {
|
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export {
|
|
303
|
+
export { AutumnClient as A, type CreateReferralCodeResult as C, type ErrorResponse as E, type IAutumnClient as I, type OmitCustomerType as O, type RedeemReferralCodeResult as R, type Success as S, type AutumnPromise as a, type AutumnClientConfig as b };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CustomerData } from './cusTypes-
|
|
1
|
+
import { C as CustomerData } from './cusTypes-B-sKMFFk.mjs';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './prodTypes-
|
|
3
|
+
import './prodTypes-C4aZSZfO.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
declare const ReactAutumnProvider: ({ children, getBearerToken, convex, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, convexApi, pathPrefix, suppressLogs, }: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as CustomerData } from './cusTypes-
|
|
1
|
+
import { C as CustomerData } from './cusTypes-B0LuEIjj.js';
|
|
2
2
|
import React__default from 'react';
|
|
3
|
-
import './prodTypes-
|
|
3
|
+
import './prodTypes-C4aZSZfO.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
6
6
|
declare const ReactAutumnProvider: ({ children, getBearerToken, convex, backendUrl, customerData, includeCredentials, betterAuthUrl, headers, convexApi, pathPrefix, suppressLogs, }: {
|
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ReactAutumnProvider
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-TPXR5NH5.mjs";
|
|
5
|
+
} from "./chunk-NYJRTMD5.mjs";
|
|
6
|
+
import "./chunk-YVNA775J.mjs";
|
|
8
7
|
import "./chunk-RFSQBGLO.mjs";
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-3H4PJQPK.mjs";
|
|
8
|
+
import "./chunk-IDK52OD5.mjs";
|
|
11
9
|
import "./chunk-CAAHUXGP.mjs";
|
|
10
|
+
import "./chunk-3H4PJQPK.mjs";
|
|
12
11
|
import "./chunk-743TUZSP.mjs";
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-XDQLJ7QR.mjs";
|
|
17
|
-
import "./chunk-WFFVOEUG.mjs";
|
|
12
|
+
import "./chunk-IEURGWN2.mjs";
|
|
13
|
+
import "./chunk-OD7MUHHZ.mjs";
|
|
14
|
+
import "./chunk-JPO4E4SD.mjs";
|
|
18
15
|
import "./chunk-OYBOLAL5.mjs";
|
|
19
16
|
import "./chunk-6EXNYWJX.mjs";
|
|
20
17
|
import "./chunk-V575SGOW.mjs";
|
|
21
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-SUENW2KS.mjs";
|
|
22
19
|
import "./chunk-JVCOY7ZL.mjs";
|
|
23
20
|
import "./chunk-CIBQ4BJU.mjs";
|
|
21
|
+
import "./chunk-4E6PXYFI.mjs";
|
|
22
|
+
import "./chunk-XDQLJ7QR.mjs";
|
|
23
|
+
import "./chunk-WFFVOEUG.mjs";
|
|
24
24
|
export {
|
|
25
25
|
ReactAutumnProvider
|
|
26
26
|
};
|
|
@@ -2,28 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useLayoutEffect2
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7N75YTVM.mjs";
|
|
6
6
|
import {
|
|
7
7
|
useComposedRefs
|
|
8
8
|
} from "./chunk-ACRIHVEO.mjs";
|
|
9
9
|
|
|
10
|
-
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
11
|
-
import * as React from "react";
|
|
12
|
-
var useReactId = React[" useId ".trim().toString()] || (() => void 0);
|
|
13
|
-
var count = 0;
|
|
14
|
-
function useId(deterministicId) {
|
|
15
|
-
const [id, setId] = React.useState(useReactId());
|
|
16
|
-
useLayoutEffect2(() => {
|
|
17
|
-
if (!deterministicId) setId((reactId) => reactId ?? String(count++));
|
|
18
|
-
}, [deterministicId]);
|
|
19
|
-
return deterministicId || (id ? `radix-${id}` : "");
|
|
20
|
-
}
|
|
21
|
-
|
|
22
10
|
// ../node_modules/.pnpm/@radix-ui+react-presence@1.1.4_@types+react-dom@19.2.3_@types+react@19.1.10__@types+rea_8360ff57be752315af757bc04841172a/node_modules/@radix-ui/react-presence/dist/index.mjs
|
|
23
11
|
import * as React2 from "react";
|
|
24
|
-
import * as
|
|
12
|
+
import * as React from "react";
|
|
25
13
|
function useStateMachine(initialState, machine) {
|
|
26
|
-
return
|
|
14
|
+
return React.useReducer((state, event) => {
|
|
27
15
|
const nextState = machine[state][event];
|
|
28
16
|
return nextState ?? state;
|
|
29
17
|
}, initialState);
|
|
@@ -145,7 +133,19 @@ function getElementRef(element) {
|
|
|
145
133
|
return element.props.ref || element.ref;
|
|
146
134
|
}
|
|
147
135
|
|
|
136
|
+
// ../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-id/dist/index.mjs
|
|
137
|
+
import * as React3 from "react";
|
|
138
|
+
var useReactId = React3[" useId ".trim().toString()] || (() => void 0);
|
|
139
|
+
var count = 0;
|
|
140
|
+
function useId(deterministicId) {
|
|
141
|
+
const [id, setId] = React3.useState(useReactId());
|
|
142
|
+
useLayoutEffect2(() => {
|
|
143
|
+
if (!deterministicId) setId((reactId) => reactId ?? String(count++));
|
|
144
|
+
}, [deterministicId]);
|
|
145
|
+
return deterministicId || (id ? `radix-${id}` : "");
|
|
146
|
+
}
|
|
147
|
+
|
|
148
148
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
Presence,
|
|
150
|
+
useId
|
|
151
151
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
useAutumnBase
|
|
5
|
+
} from "./chunk-CAAHUXGP.mjs";
|
|
3
6
|
import {
|
|
4
7
|
handleCheck,
|
|
5
8
|
openDialog
|
|
6
9
|
} from "./chunk-3H4PJQPK.mjs";
|
|
7
|
-
import {
|
|
8
|
-
useAutumnBase
|
|
9
|
-
} from "./chunk-CAAHUXGP.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useAutumnContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IEURGWN2.mjs";
|
|
13
13
|
|
|
14
14
|
// src/libraries/react/hooks/useEntityBase.tsx
|
|
15
15
|
import useSWR from "swr";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useLayoutEffect2
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7N75YTVM.mjs";
|
|
6
6
|
|
|
7
7
|
// ../node_modules/.pnpm/@radix-ui+react-use-size@1.1.1_@types+react@19.1.10_react@19.2.3/node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
8
8
|
import * as React from "react";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useEntityBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6EI2E6EZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IEURGWN2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/useEntity.tsx
|
|
11
11
|
var useEntity = (entityId, params) => {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useSize
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6I5DGTWH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
Primitive,
|
|
8
8
|
composeEventHandlers,
|
|
9
9
|
createContextScope,
|
|
10
10
|
useControllableState
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7N75YTVM.mjs";
|
|
12
12
|
import {
|
|
13
13
|
useComposedRefs
|
|
14
14
|
} from "./chunk-ACRIHVEO.mjs";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
useCustomerBase
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-IDK52OD5.mjs";
|
|
6
6
|
import {
|
|
7
7
|
AutumnContext
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IEURGWN2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/libraries/react/hooks/useCustomer.tsx
|
|
11
11
|
var useCustomer = (params) => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import {
|
|
4
|
+
useAutumnBase
|
|
5
|
+
} from "./chunk-CAAHUXGP.mjs";
|
|
3
6
|
import {
|
|
4
7
|
handleCheck,
|
|
5
8
|
openDialog
|
|
6
9
|
} from "./chunk-3H4PJQPK.mjs";
|
|
7
|
-
import {
|
|
8
|
-
useAutumnBase
|
|
9
|
-
} from "./chunk-CAAHUXGP.mjs";
|
|
10
10
|
import {
|
|
11
11
|
useAutumnContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IEURGWN2.mjs";
|
|
13
13
|
|
|
14
14
|
// src/libraries/react/hooks/useCustomerBase.tsx
|
|
15
15
|
import useSWR from "swr";
|