autumn-js 0.0.61 → 0.0.63
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/{chunk-YQVUFNOA.mjs → chunk-52ERHSRF.mjs} +1 -1
- package/dist/libraries/backend/{chunk-3OKYXLTN.mjs → chunk-IWZ4KYSH.mjs} +1 -1
- package/dist/libraries/backend/{chunk-EWE7GADM.mjs → chunk-J6BWOIM2.mjs} +1 -1
- package/dist/libraries/backend/{chunk-EJQ2IWD7.mjs → chunk-MCSTMHRF.mjs} +5 -5
- package/dist/libraries/backend/{chunk-ONFOZVN3.mjs → chunk-NXXTBCPD.mjs} +1 -1
- package/dist/libraries/backend/{chunk-I45FNCR5.mjs → chunk-R27FUM7G.mjs} +1 -1
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/express.js +1 -1
- package/dist/libraries/backend/express.mjs +6 -6
- package/dist/libraries/backend/fastify.js +1 -1
- package/dist/libraries/backend/fastify.mjs +6 -6
- package/dist/libraries/backend/hono.js +1 -1
- package/dist/libraries/backend/hono.mjs +6 -6
- package/dist/libraries/backend/next.d.mts +2 -1
- package/dist/libraries/backend/next.d.ts +2 -1
- package/dist/libraries/backend/next.js +2 -2
- package/dist/libraries/backend/next.mjs +7 -7
- package/dist/libraries/backend/react-router.js +1 -1
- package/dist/libraries/backend/react-router.mjs +6 -6
- package/dist/libraries/backend/{referralTypes-B7FSGa5b.d.mts → referralTypes-CIEzOYwT.d.mts} +3 -0
- package/dist/libraries/backend/{referralTypes-CGt7XaEI.d.ts → referralTypes-D6dBIcVj.d.ts} +3 -0
- package/dist/libraries/backend/remix_dep.js +1 -1
- package/dist/libraries/backend/remix_dep.mjs +6 -6
- package/dist/libraries/backend/routes/backendRouter.d.mts +1 -1
- package/dist/libraries/backend/routes/backendRouter.d.ts +1 -1
- package/dist/libraries/backend/routes/backendRouter.js +1 -1
- package/dist/libraries/backend/routes/backendRouter.mjs +6 -6
- package/dist/libraries/backend/routes/entityRoutes.js +1 -1
- package/dist/libraries/backend/routes/entityRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/genRoutes.js +1 -1
- package/dist/libraries/backend/routes/genRoutes.mjs +3 -3
- package/dist/libraries/backend/routes/referralRoutes.js +1 -1
- package/dist/libraries/backend/routes/referralRoutes.mjs +3 -3
- package/dist/libraries/backend/supabase.js +1 -1
- package/dist/libraries/backend/supabase.mjs +6 -6
- package/dist/libraries/backend/tanstack.js +1 -1
- package/dist/libraries/backend/tanstack.mjs +6 -6
- package/dist/libraries/backend/utils/backendRes.js +1 -1
- package/dist/libraries/backend/utils/backendRes.mjs +1 -1
- package/dist/libraries/backend/utils/withAuth.d.mts +1 -1
- package/dist/libraries/backend/utils/withAuth.d.ts +1 -1
- package/dist/libraries/backend/utils/withAuth.js +1 -1
- package/dist/libraries/backend/utils/withAuth.mjs +2 -2
- package/dist/libraries/react/AutumnContext.d.mts +4 -4
- package/dist/libraries/react/AutumnContext.d.ts +4 -4
- package/dist/libraries/react/AutumnContext.js +1 -1
- package/dist/libraries/react/AutumnContext.mjs +3 -3
- package/dist/libraries/react/BaseAutumnProvider.d.mts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.d.ts +4 -4
- package/dist/libraries/react/BaseAutumnProvider.js +1 -1
- package/dist/libraries/react/BaseAutumnProvider.mjs +6 -6
- package/dist/libraries/react/{ReactAutumnClient-DoXXU_vr.d.mts → ReactAutumnClient-BQtmw21U.d.mts} +3 -3
- package/dist/libraries/react/{ReactAutumnClient-BgrRcTEM.d.ts → ReactAutumnClient-DNcV0gAT.d.ts} +3 -3
- package/dist/libraries/react/ReactAutumnProvider.d.mts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.d.ts +1 -1
- package/dist/libraries/react/ReactAutumnProvider.js +1 -1
- package/dist/libraries/react/ReactAutumnProvider.mjs +7 -7
- package/dist/libraries/react/{chunk-5JQ57BOG.mjs → chunk-2Q72AFTY.mjs} +3 -3
- package/dist/libraries/react/{chunk-2K3UAVSN.mjs → chunk-3PIWTU6F.mjs} +1 -1
- package/dist/libraries/react/{chunk-LRYO52RU.mjs → chunk-544EFZUX.mjs} +1 -1
- package/dist/libraries/react/{chunk-526NIDUN.mjs → chunk-ENHBWPHN.mjs} +2 -2
- package/dist/libraries/react/{chunk-VIXAYSBW.mjs → chunk-H2V37JOA.mjs} +1 -1
- package/dist/libraries/react/{chunk-PC4OCHJB.mjs → chunk-HU6NIBMZ.mjs} +1 -1
- package/dist/libraries/react/{chunk-5PFGJ7NT.mjs → chunk-KKQ43XGE.mjs} +1 -1
- package/dist/libraries/react/{chunk-XSMSOCIP.mjs → chunk-NIZX6KAM.mjs} +1 -1
- package/dist/libraries/react/{chunk-WFJJYHON.mjs → chunk-ODYKGMMO.mjs} +1 -1
- package/dist/libraries/react/{chunk-YOMNTOJZ.mjs → chunk-TRNJQQVR.mjs} +1 -1
- package/dist/libraries/react/{chunk-IHEJDHR2.mjs → chunk-UP5NZZNP.mjs} +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.d.mts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.d.ts +4 -4
- package/dist/libraries/react/client/ReactAutumnClient.js +1 -1
- package/dist/libraries/react/client/ReactAutumnClient.mjs +2 -2
- package/dist/libraries/react/client/clientCompMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCompMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientCusMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientEntityMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientGenMethods.d.ts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.mts +4 -4
- package/dist/libraries/react/client/clientReferralMethods.d.ts +4 -4
- package/dist/libraries/react/{cusTypes-BTcZvjbB.d.mts → cusTypes-Cf-s9PYP.d.mts} +2 -0
- package/dist/libraries/react/{cusTypes-BTcZvjbB.d.ts → cusTypes-Cf-s9PYP.d.ts} +2 -0
- package/dist/libraries/react/{entTypes-CIjIxPas.d.ts → entTypes-BbIk0Toa.d.ts} +1 -1
- package/dist/libraries/react/{entTypes-_9_C-00R.d.mts → entTypes-CV-165S-.d.mts} +1 -1
- package/dist/libraries/react/hooks/useAutumn.d.mts +2 -2
- package/dist/libraries/react/hooks/useAutumn.d.ts +2 -2
- package/dist/libraries/react/hooks/useAutumn.js +1 -1
- package/dist/libraries/react/hooks/useAutumn.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -4
- package/dist/libraries/react/hooks/useCustomer.js +1 -1
- package/dist/libraries/react/hooks/useCustomer.mjs +4 -4
- package/dist/libraries/react/hooks/useCustomerProvider.d.mts +4 -4
- package/dist/libraries/react/hooks/useCustomerProvider.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntity.d.mts +2 -2
- package/dist/libraries/react/hooks/useEntity.d.ts +2 -2
- package/dist/libraries/react/hooks/useEntity.js +1 -1
- package/dist/libraries/react/hooks/useEntity.mjs +4 -4
- package/dist/libraries/react/hooks/useEntityProvider.d.mts +4 -4
- package/dist/libraries/react/hooks/useEntityProvider.d.ts +4 -4
- package/dist/libraries/react/hooks/useEntityProvider.js +1 -1
- package/dist/libraries/react/hooks/useEntityProvider.mjs +2 -2
- package/dist/libraries/react/hooks/usePricingTable.js +1 -1
- package/dist/libraries/react/hooks/usePricingTable.mjs +4 -4
- package/dist/libraries/react/hooks/usePricingTableProvider.d.mts +4 -4
- package/dist/libraries/react/hooks/usePricingTableProvider.d.ts +4 -4
- package/dist/libraries/react/hooks/usePricingTableProvider.js +1 -1
- package/dist/libraries/react/hooks/usePricingTableProvider.mjs +2 -2
- package/dist/libraries/react/index.d.mts +4 -4
- package/dist/libraries/react/index.d.ts +4 -4
- package/dist/libraries/react/index.js +1 -1
- package/dist/libraries/react/index.mjs +11 -11
- package/dist/libraries/react/{response-CuJBOgCX.d.ts → response-B1KyqUB9.d.ts} +1 -1
- package/dist/libraries/react/{response-BqFGIMug.d.mts → response-B5dHU3I9.d.mts} +1 -1
- package/dist/next/client/AutumnContext.d.mts +2 -2
- package/dist/next/client/AutumnContext.d.ts +2 -2
- package/dist/next/client/AutumnProvider.d.mts +1 -1
- package/dist/next/client/AutumnProvider.d.ts +1 -1
- package/dist/next/client/clientUtils.d.mts +2 -2
- package/dist/next/client/clientUtils.d.ts +2 -2
- package/dist/next/client/{cusTypes-BGfMicAw.d.ts → cusTypes-sh5_cN7N.d.mts} +2 -0
- package/dist/next/client/{cusTypes-BGfMicAw.d.mts → cusTypes-sh5_cN7N.d.ts} +2 -0
- package/dist/next/client/{entTypes-C81tVu3a.d.ts → entTypes-BDqnMLZ4.d.ts} +1 -1
- package/dist/next/client/{entTypes-Dmm2Us0w.d.mts → entTypes-C9TNWMk6.d.mts} +1 -1
- package/dist/next/client/hooks/useCustomer.d.mts +2 -2
- package/dist/next/client/hooks/useCustomer.d.ts +2 -2
- package/dist/next/client/hooks/useEntity.d.mts +2 -2
- package/dist/next/client/hooks/useEntity.d.ts +2 -2
- package/dist/next/client/hooks/usePricingTable.d.mts +2 -2
- package/dist/next/client/hooks/usePricingTable.d.ts +2 -2
- package/dist/next/client/types.d.mts +2 -2
- package/dist/next/client/types.d.ts +2 -2
- package/dist/next/index.d.mts +4 -1
- package/dist/next/index.d.ts +4 -1
- package/dist/next/server/auth/withAuth.d.mts +1 -1
- package/dist/next/server/auth/withAuth.d.ts +1 -1
- package/dist/next/server/{clientEntTypes-DCLnLdr2.d.mts → clientEntTypes-C_HhGHvK.d.mts} +1 -1
- package/dist/next/server/{clientEntTypes-DX4iApM4.d.ts → clientEntTypes-ZZHurPcy.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 +3 -2
- package/dist/next/server/cusActions.d.ts +3 -2
- package/dist/next/server/{cusTypes-VlsM-bzW.d.mts → cusTypes-BD42O-7Z.d.mts} +2 -0
- package/dist/next/server/{cusTypes-VlsM-bzW.d.ts → cusTypes-BD42O-7Z.d.ts} +2 -0
- package/dist/next/server/genActions.d.mts +2 -2
- package/dist/next/server/genActions.d.ts +2 -2
- package/dist/sdk/{cusTypes-D6sQTXPy.d.ts → cusTypes-BTV6ui4e.d.ts} +2 -0
- package/dist/sdk/{cusTypes-T1IdN-ez.d.mts → cusTypes-wBxbodEe.d.mts} +2 -0
- package/dist/sdk/customers.d.mts +1 -1
- package/dist/sdk/customers.d.ts +1 -1
- package/dist/sdk/{entTypes-BCt_cXXf.d.ts → entTypes-BwLV9Jn4.d.ts} +1 -1
- package/dist/sdk/{entTypes-BDv4ErLm.d.mts → entTypes-CJjjWn54.d.mts} +1 -1
- package/dist/sdk/entities.d.mts +2 -2
- package/dist/sdk/entities.d.ts +2 -2
- package/dist/sdk/general.d.mts +2 -2
- package/dist/sdk/general.d.ts +2 -2
- package/dist/sdk/index.d.mts +5 -4
- package/dist/sdk/index.d.ts +5 -4
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/index.mjs +1 -1
- package/dist/utils/encryptUtils.js +1 -1
- package/dist/utils/encryptUtils.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice, C as CustomerData, A as AppEnv, I as Infinite, P as ProductItemIntervalType, g as UsageModel, F as FreeTrialDuration, h as UsageModelType } from './cusTypes-
|
|
1
|
+
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice, C as CustomerData, A as AppEnv, I as Infinite, P as ProductItemIntervalType, g as UsageModel, F as FreeTrialDuration, h as UsageModelType } from './cusTypes-BD42O-7Z.js';
|
|
2
2
|
|
|
3
3
|
type EntityExpandOption = "invoices";
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Product, C as CreateProductParams, L as ListProductsParams, G as GetEntityParams, E as Entity, a as CreateEntityParams, b as CreateEntityResult, D as DeleteEntityResult, A as AttachParams, c as AttachResult, U as UsageParams, d as UsageResult, e as CancelParams, f as CancelResult, g as CheckParams, h as CheckResult, T as TrackParams, i as TrackResult, j as GetEntityParams$1 } from './clientEntTypes-
|
|
1
|
+
import { P as Product, C as CreateProductParams, L as ListProductsParams, G as GetEntityParams, E as Entity, a as CreateEntityParams, b as CreateEntityResult, D as DeleteEntityResult, A as AttachParams, c as AttachResult, U as UsageParams, d as UsageResult, e as CancelParams, f as CancelResult, g as CheckParams, h as CheckResult, T as TrackParams, i as TrackResult, j as GetEntityParams$1 } from './clientEntTypes-C_HhGHvK.mjs';
|
|
2
2
|
import { R as Result, A as AutumnError } from './response-BCg7kiiN.mjs';
|
|
3
|
-
import { G as GetCustomerParams, a as Customer, b as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, c as BillingPortalResponse, C as CustomerData } from './cusTypes-
|
|
3
|
+
import { G as GetCustomerParams, a as Customer, b as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, c as BillingPortalResponse, C as CustomerData } from './cusTypes-BD42O-7Z.mjs';
|
|
4
4
|
|
|
5
5
|
declare class Autumn {
|
|
6
6
|
private readonly secretKey;
|
|
@@ -13,6 +13,7 @@ declare class Autumn {
|
|
|
13
13
|
publishableKey?: string;
|
|
14
14
|
url?: string;
|
|
15
15
|
version?: string;
|
|
16
|
+
headers?: Record<string, string>;
|
|
16
17
|
});
|
|
17
18
|
getLevel(): "secret" | "publishable";
|
|
18
19
|
get(path: string): Promise<Result<any, AutumnError>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { P as Product, C as CreateProductParams, L as ListProductsParams, G as GetEntityParams, E as Entity, a as CreateEntityParams, b as CreateEntityResult, D as DeleteEntityResult, A as AttachParams, c as AttachResult, U as UsageParams, d as UsageResult, e as CancelParams, f as CancelResult, g as CheckParams, h as CheckResult, T as TrackParams, i as TrackResult, j as GetEntityParams$1 } from './clientEntTypes-
|
|
1
|
+
import { P as Product, C as CreateProductParams, L as ListProductsParams, G as GetEntityParams, E as Entity, a as CreateEntityParams, b as CreateEntityResult, D as DeleteEntityResult, A as AttachParams, c as AttachResult, U as UsageParams, d as UsageResult, e as CancelParams, f as CancelResult, g as CheckParams, h as CheckResult, T as TrackParams, i as TrackResult, j as GetEntityParams$1 } from './clientEntTypes-ZZHurPcy.js';
|
|
2
2
|
import { R as Result, A as AutumnError } from './response-BCg7kiiN.js';
|
|
3
|
-
import { G as GetCustomerParams, a as Customer, b as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, c as BillingPortalResponse, C as CustomerData } from './cusTypes-
|
|
3
|
+
import { G as GetCustomerParams, a as Customer, b as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, c as BillingPortalResponse, C as CustomerData } from './cusTypes-BD42O-7Z.js';
|
|
4
4
|
|
|
5
5
|
declare class Autumn {
|
|
6
6
|
private readonly secretKey;
|
|
@@ -13,6 +13,7 @@ declare class Autumn {
|
|
|
13
13
|
publishableKey?: string;
|
|
14
14
|
url?: string;
|
|
15
15
|
version?: string;
|
|
16
|
+
headers?: Record<string, string>;
|
|
16
17
|
});
|
|
17
18
|
getLevel(): "secret" | "publishable";
|
|
18
19
|
get(path: string): Promise<Result<any, AutumnError>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as AttachFeatureOptions, l as EntityDataParams } from './clientEntTypes-
|
|
2
|
-
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-
|
|
1
|
+
import { k as AttachFeatureOptions, l as EntityDataParams } from './clientEntTypes-C_HhGHvK.mjs';
|
|
2
|
+
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-BD42O-7Z.mjs';
|
|
3
3
|
|
|
4
4
|
declare const attachAction: (args: Omit<{
|
|
5
5
|
customerId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as AttachFeatureOptions, l as EntityDataParams } from './clientEntTypes-
|
|
2
|
-
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-
|
|
1
|
+
import { k as AttachFeatureOptions, l as EntityDataParams } from './clientEntTypes-ZZHurPcy.js';
|
|
2
|
+
import { C as CustomerData, B as BillingPortalParams } from './cusTypes-BD42O-7Z.js';
|
|
3
3
|
|
|
4
4
|
declare const attachAction: (args: Omit<{
|
|
5
5
|
customerId: string;
|
package/dist/sdk/customers.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './prodEnums-C1lccCWI.mjs';
|
|
2
|
-
export { B as BillingPortalParams, b as BillingPortalResponse, a as CreateCustomerParams, C as Customer, e as CustomerData, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, G as GetCustomerParams, U as UpdateCustomerParams } from './cusTypes-
|
|
2
|
+
export { B as BillingPortalParams, b as BillingPortalResponse, a as CreateCustomerParams, C as Customer, e as CustomerData, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, G as GetCustomerParams, U as UpdateCustomerParams } from './cusTypes-wBxbodEe.mjs';
|
package/dist/sdk/customers.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import './prodEnums-C1lccCWI.js';
|
|
2
|
-
export { B as BillingPortalParams, b as BillingPortalResponse, a as CreateCustomerParams, C as Customer, e as CustomerData, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, G as GetCustomerParams, U as UpdateCustomerParams } from './cusTypes-
|
|
2
|
+
export { B as BillingPortalParams, b as BillingPortalResponse, a as CreateCustomerParams, C as Customer, e as CustomerData, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, G as GetCustomerParams, U as UpdateCustomerParams } from './cusTypes-BTV6ui4e.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CustomerData, d as CustomerProduct, c as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
1
|
+
import { e as CustomerData, d as CustomerProduct, c as CustomerFeature, f as CustomerInvoice } from './cusTypes-BTV6ui4e.js';
|
|
2
2
|
|
|
3
3
|
type EntityExpandOption = "invoices";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CustomerData, d as CustomerProduct, c as CustomerFeature, f as CustomerInvoice } from './cusTypes-
|
|
1
|
+
import { e as CustomerData, d as CustomerProduct, c as CustomerFeature, f as CustomerInvoice } from './cusTypes-wBxbodEe.mjs';
|
|
2
2
|
|
|
3
3
|
type EntityExpandOption = "invoices";
|
|
4
4
|
|
package/dist/sdk/entities.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './cusTypes-
|
|
2
|
-
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-
|
|
1
|
+
import './cusTypes-wBxbodEe.mjs';
|
|
2
|
+
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-CJjjWn54.mjs';
|
|
3
3
|
import './prodEnums-C1lccCWI.mjs';
|
package/dist/sdk/entities.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import './cusTypes-
|
|
2
|
-
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-
|
|
1
|
+
import './cusTypes-BTV6ui4e.js';
|
|
2
|
+
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-BwLV9Jn4.js';
|
|
3
3
|
import './prodEnums-C1lccCWI.js';
|
package/dist/sdk/general.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as CustomerData } from './cusTypes-
|
|
2
|
-
import { b as EntityData } from './entTypes-
|
|
1
|
+
import { e as CustomerData } from './cusTypes-wBxbodEe.mjs';
|
|
2
|
+
import { b as EntityData } from './entTypes-CJjjWn54.mjs';
|
|
3
3
|
import { CheckProductFormattedPreview, CheckFeatureFormattedPreview } from './check.mjs';
|
|
4
4
|
import './prodEnums-C1lccCWI.mjs';
|
|
5
5
|
import './products.mjs';
|
package/dist/sdk/general.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { e as CustomerData } from './cusTypes-
|
|
2
|
-
import { b as EntityData } from './entTypes-
|
|
1
|
+
import { e as CustomerData } from './cusTypes-BTV6ui4e.js';
|
|
2
|
+
import { b as EntityData } from './entTypes-BwLV9Jn4.js';
|
|
3
3
|
import { CheckProductFormattedPreview, CheckFeatureFormattedPreview } from './check.js';
|
|
4
4
|
import './prodEnums-C1lccCWI.js';
|
|
5
5
|
import './products.js';
|
package/dist/sdk/index.d.mts
CHANGED
|
@@ -2,10 +2,10 @@ import { AttachParams, AttachResult, UsageParams, UsageResult, CancelParams, Can
|
|
|
2
2
|
export { AttachFeatureOptions, EntitledBalance } from './general.mjs';
|
|
3
3
|
import { Product, CreateProductParams, ListProductsParams } from './products.mjs';
|
|
4
4
|
export { FreeTrial, PriceTier, ProductItem } from './products.mjs';
|
|
5
|
-
import { G as GetCustomerParams, C as Customer, a as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, b as BillingPortalResponse } from './cusTypes-
|
|
6
|
-
export { e as CustomerData, g as CustomerExpandOption, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, P as ProductStatus } from './cusTypes-
|
|
7
|
-
import { G as GetEntityParams, E as Entity, C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult } from './entTypes-
|
|
8
|
-
export { b as EntityData, c as EntityExpandOption } from './entTypes-
|
|
5
|
+
import { G as GetCustomerParams, C as Customer, a as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, b as BillingPortalResponse } from './cusTypes-wBxbodEe.mjs';
|
|
6
|
+
export { e as CustomerData, g as CustomerExpandOption, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, P as ProductStatus } from './cusTypes-wBxbodEe.mjs';
|
|
7
|
+
import { G as GetEntityParams, E as Entity, C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult } from './entTypes-CJjjWn54.mjs';
|
|
8
|
+
export { b as EntityData, c as EntityExpandOption } from './entTypes-CJjjWn54.mjs';
|
|
9
9
|
import { CreateReferralCodeParams, RedeemReferralCodeParams } from './referrals.mjs';
|
|
10
10
|
export { CreateReferralCodeResult, RedeemReferralCodeResult } from './referrals.mjs';
|
|
11
11
|
export { CheckFeatureFormattedPreview, CheckFeatureScenario, CheckProductFormattedPreview, CheckProductScenario } from './check.mjs';
|
|
@@ -51,6 +51,7 @@ declare class Autumn {
|
|
|
51
51
|
publishableKey?: string;
|
|
52
52
|
url?: string;
|
|
53
53
|
version?: string;
|
|
54
|
+
headers?: Record<string, string>;
|
|
54
55
|
});
|
|
55
56
|
getLevel(): "secret" | "publishable";
|
|
56
57
|
get(path: string): Promise<Result<any, AutumnError>>;
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -2,10 +2,10 @@ import { AttachParams, AttachResult, UsageParams, UsageResult, CancelParams, Can
|
|
|
2
2
|
export { AttachFeatureOptions, EntitledBalance } from './general.js';
|
|
3
3
|
import { Product, CreateProductParams, ListProductsParams } from './products.js';
|
|
4
4
|
export { FreeTrial, PriceTier, ProductItem } from './products.js';
|
|
5
|
-
import { G as GetCustomerParams, C as Customer, a as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, b as BillingPortalResponse } from './cusTypes-
|
|
6
|
-
export { e as CustomerData, g as CustomerExpandOption, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, P as ProductStatus } from './cusTypes-
|
|
7
|
-
import { G as GetEntityParams, E as Entity, C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult } from './entTypes-
|
|
8
|
-
export { b as EntityData, c as EntityExpandOption } from './entTypes-
|
|
5
|
+
import { G as GetCustomerParams, C as Customer, a as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, b as BillingPortalResponse } from './cusTypes-BTV6ui4e.js';
|
|
6
|
+
export { e as CustomerData, g as CustomerExpandOption, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, P as ProductStatus } from './cusTypes-BTV6ui4e.js';
|
|
7
|
+
import { G as GetEntityParams, E as Entity, C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult } from './entTypes-BwLV9Jn4.js';
|
|
8
|
+
export { b as EntityData, c as EntityExpandOption } from './entTypes-BwLV9Jn4.js';
|
|
9
9
|
import { CreateReferralCodeParams, RedeemReferralCodeParams } from './referrals.js';
|
|
10
10
|
export { CreateReferralCodeResult, RedeemReferralCodeResult } from './referrals.js';
|
|
11
11
|
export { CheckFeatureFormattedPreview, CheckFeatureScenario, CheckProductFormattedPreview, CheckProductScenario } from './check.js';
|
|
@@ -51,6 +51,7 @@ declare class Autumn {
|
|
|
51
51
|
publishableKey?: string;
|
|
52
52
|
url?: string;
|
|
53
53
|
version?: string;
|
|
54
|
+
headers?: Record<string, string>;
|
|
54
55
|
});
|
|
55
56
|
getLevel(): "secret" | "publishable";
|
|
56
57
|
get(path: string): Promise<Result<any, AutumnError>>;
|
package/dist/sdk/index.js
CHANGED
|
@@ -305,7 +305,7 @@ var Autumn = class {
|
|
|
305
305
|
if (!this.secretKey && !this.publishableKey) {
|
|
306
306
|
throw new Error("Autumn secret key or publishable key is required");
|
|
307
307
|
}
|
|
308
|
-
this.headers = {
|
|
308
|
+
this.headers = options?.headers || {
|
|
309
309
|
Authorization: `Bearer ${this.secretKey || this.publishableKey}`,
|
|
310
310
|
"Content-Type": "application/json"
|
|
311
311
|
};
|
package/dist/sdk/index.mjs
CHANGED
|
@@ -303,7 +303,7 @@ var Autumn = class {
|
|
|
303
303
|
if (!this.secretKey && !this.publishableKey) {
|
|
304
304
|
throw new Error("Autumn secret key or publishable key is required");
|
|
305
305
|
}
|
|
306
|
-
this.headers = {
|
|
306
|
+
this.headers = options?.headers || {
|
|
307
307
|
Authorization: `Bearer ${this.secretKey || this.publishableKey}`,
|
|
308
308
|
"Content-Type": "application/json"
|
|
309
309
|
};
|
|
@@ -333,7 +333,7 @@ var Autumn = class {
|
|
|
333
333
|
if (!this.secretKey && !this.publishableKey) {
|
|
334
334
|
throw new Error("Autumn secret key or publishable key is required");
|
|
335
335
|
}
|
|
336
|
-
this.headers = {
|
|
336
|
+
this.headers = options?.headers || {
|
|
337
337
|
Authorization: `Bearer ${this.secretKey || this.publishableKey}`,
|
|
338
338
|
"Content-Type": "application/json"
|
|
339
339
|
};
|
|
@@ -298,7 +298,7 @@ var Autumn = class {
|
|
|
298
298
|
if (!this.secretKey && !this.publishableKey) {
|
|
299
299
|
throw new Error("Autumn secret key or publishable key is required");
|
|
300
300
|
}
|
|
301
|
-
this.headers = {
|
|
301
|
+
this.headers = options?.headers || {
|
|
302
302
|
Authorization: `Bearer ${this.secretKey || this.publishableKey}`,
|
|
303
303
|
"Content-Type": "application/json"
|
|
304
304
|
};
|