autumn-js 0.0.46 → 0.0.47
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/{client-DJJAbrX7.d.ts → client-W8zaXEoh.d.ts} +1 -0
- package/dist/libraries/backend/{client-C4aZxBxK.d.mts → client-nfo5MENW.d.mts} +1 -0
- package/dist/libraries/backend/express.d.mts +1 -1
- package/dist/libraries/backend/express.d.ts +1 -1
- package/dist/libraries/backend/routes/backendRouter.d.mts +1 -1
- package/dist/libraries/backend/routes/backendRouter.d.ts +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/react/hooks/useCustomer.d.mts +4 -3
- package/dist/libraries/react/hooks/useCustomer.d.ts +4 -3
- package/dist/next/server/cusActions.d.mts +1 -1
- package/dist/next/server/cusActions.d.ts +1 -1
- package/dist/next/server/genActions.d.mts +1 -1
- package/dist/next/server/genActions.d.ts +1 -1
- package/dist/next/server/{genTypes-DNndDcib.d.mts → genTypes-8tvMa4lq.d.ts} +2 -1
- package/dist/next/server/{genTypes-DaYkl9Ex.d.ts → genTypes-D0BvK77f.d.mts} +2 -1
- package/dist/sdk/{entTypes-oQpX0x_Y.d.ts → entTypes-CL-fMvnC.d.mts} +2 -1
- package/dist/sdk/{entTypes-DAoQnp8D.d.mts → entTypes-DtPO-a4R.d.ts} +2 -1
- package/dist/sdk/entities.d.mts +1 -1
- package/dist/sdk/entities.d.ts +1 -1
- package/dist/sdk/general.d.mts +1 -1
- package/dist/sdk/general.d.ts +1 -1
- package/dist/sdk/index.d.mts +2 -2
- package/dist/sdk/index.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { UseCustomerParams } from './useCustomerProvider.mjs';
|
|
2
2
|
import { A as AutumnError } from '../error-CG2LXoa7.mjs';
|
|
3
3
|
import { b as Customer } from '../cusTypes-CrKQos3U.mjs';
|
|
4
|
+
import { E as Entity } from '../entTypes-D5hhz3BB.mjs';
|
|
5
|
+
import { A as AutumnPromise } from '../response-T-FFa-qt.mjs';
|
|
6
|
+
import { CreateEntityParams } from '../client/types/clientEntTypes.mjs';
|
|
4
7
|
import '../ReactAutumnClient-b8N5xZyk.mjs';
|
|
5
|
-
import '../client/types/clientEntTypes.mjs';
|
|
6
8
|
import '../client/types/clientGenTypes.mjs';
|
|
7
|
-
import '../response-T-FFa-qt.mjs';
|
|
8
|
-
import '../entTypes-D5hhz3BB.mjs';
|
|
9
9
|
|
|
10
10
|
interface UseCustomerResult {
|
|
11
11
|
customer: Customer | null;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
error: AutumnError | null;
|
|
14
14
|
refetch: () => Promise<void>;
|
|
15
|
+
createEntity: (params: CreateEntityParams | CreateEntityParams[]) => AutumnPromise<Entity | Entity[]>;
|
|
15
16
|
}
|
|
16
17
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
17
18
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { UseCustomerParams } from './useCustomerProvider.js';
|
|
2
2
|
import { A as AutumnError } from '../error-CG2LXoa7.js';
|
|
3
3
|
import { b as Customer } from '../cusTypes-CrKQos3U.js';
|
|
4
|
+
import { E as Entity } from '../entTypes-Pu4KEgBU.js';
|
|
5
|
+
import { A as AutumnPromise } from '../response-muDt0SJZ.js';
|
|
6
|
+
import { CreateEntityParams } from '../client/types/clientEntTypes.js';
|
|
4
7
|
import '../ReactAutumnClient-CXWgmZSf.js';
|
|
5
|
-
import '../client/types/clientEntTypes.js';
|
|
6
8
|
import '../client/types/clientGenTypes.js';
|
|
7
|
-
import '../response-muDt0SJZ.js';
|
|
8
|
-
import '../entTypes-Pu4KEgBU.js';
|
|
9
9
|
|
|
10
10
|
interface UseCustomerResult {
|
|
11
11
|
customer: Customer | null;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
error: AutumnError | null;
|
|
14
14
|
refetch: () => Promise<void>;
|
|
15
|
+
createEntity: (params: CreateEntityParams | CreateEntityParams[]) => AutumnPromise<Entity | Entity[]>;
|
|
15
16
|
}
|
|
16
17
|
declare const useCustomer: (params?: UseCustomerParams) => UseCustomerResult;
|
|
17
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
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 } from './genTypes-
|
|
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 } from './genTypes-D0BvK77f.mjs';
|
|
2
2
|
import { R as Result, A as AutumnError } from './response-BCg7kiiN.mjs';
|
|
3
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-BY1nr3mk.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
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 } from './genTypes-
|
|
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 } from './genTypes-8tvMa4lq.js';
|
|
2
2
|
import { R as Result, A as AutumnError } from './response-BCg7kiiN.js';
|
|
3
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-BY1nr3mk.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice, A as AppEnv, I as Infinite, P as ProductItemIntervalType, g as UsageModel, F as FreeTrialDuration, h as UsageModelType
|
|
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-BY1nr3mk.js';
|
|
2
2
|
|
|
3
3
|
type EntityExpandOption = "invoices";
|
|
4
4
|
|
|
@@ -6,6 +6,7 @@ interface CreateEntityParams {
|
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
feature_id: string;
|
|
9
|
+
customer_data?: CustomerData;
|
|
9
10
|
}
|
|
10
11
|
interface CreateEntityResult {
|
|
11
12
|
success: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as CustomerProduct, e as CustomerFeature, f as CustomerInvoice, A as AppEnv, I as Infinite, P as ProductItemIntervalType, g as UsageModel, F as FreeTrialDuration, h as UsageModelType
|
|
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-BY1nr3mk.mjs';
|
|
2
2
|
|
|
3
3
|
type EntityExpandOption = "invoices";
|
|
4
4
|
|
|
@@ -6,6 +6,7 @@ interface CreateEntityParams {
|
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
feature_id: string;
|
|
9
|
+
customer_data?: CustomerData;
|
|
9
10
|
}
|
|
10
11
|
interface CreateEntityResult {
|
|
11
12
|
success: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { 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-pV7nKIcc.mjs';
|
|
2
2
|
|
|
3
3
|
type EntityExpandOption = "invoices";
|
|
4
4
|
|
|
@@ -6,6 +6,7 @@ interface CreateEntityParams {
|
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
feature_id: string;
|
|
9
|
+
customer_data?: CustomerData;
|
|
9
10
|
}
|
|
10
11
|
interface CreateEntityResult {
|
|
11
12
|
success: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { 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-Cw74Oy0H.js';
|
|
2
2
|
|
|
3
3
|
type EntityExpandOption = "invoices";
|
|
4
4
|
|
|
@@ -6,6 +6,7 @@ interface CreateEntityParams {
|
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
8
8
|
feature_id: string;
|
|
9
|
+
customer_data?: CustomerData;
|
|
9
10
|
}
|
|
10
11
|
interface CreateEntityResult {
|
|
11
12
|
success: boolean;
|
package/dist/sdk/entities.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './cusTypes-pV7nKIcc.mjs';
|
|
2
|
-
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-
|
|
2
|
+
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-CL-fMvnC.mjs';
|
|
3
3
|
import './prodEnums-C1lccCWI.mjs';
|
package/dist/sdk/entities.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import './cusTypes-Cw74Oy0H.js';
|
|
2
|
-
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-
|
|
2
|
+
export { C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult, E as Entity, b as EntityData, G as GetEntityParams } from './entTypes-DtPO-a4R.js';
|
|
3
3
|
import './prodEnums-C1lccCWI.js';
|
package/dist/sdk/general.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { e as CustomerData } from './cusTypes-pV7nKIcc.mjs';
|
|
2
|
-
import { b as EntityData } from './entTypes-
|
|
2
|
+
import { b as EntityData } from './entTypes-CL-fMvnC.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
1
|
import { e as CustomerData } from './cusTypes-Cw74Oy0H.js';
|
|
2
|
-
import { b as EntityData } from './entTypes-
|
|
2
|
+
import { b as EntityData } from './entTypes-DtPO-a4R.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
|
@@ -4,8 +4,8 @@ import { Product, CreateProductParams, ListProductsParams } from './products.mjs
|
|
|
4
4
|
export { FreeTrial, PriceTier, ProductItem } from './products.mjs';
|
|
5
5
|
import { G as GetCustomerParams, C as Customer, a as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, b as BillingPortalResponse } from './cusTypes-pV7nKIcc.mjs';
|
|
6
6
|
export { e as CustomerData, g as CustomerExpandOption, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, P as ProductStatus } from './cusTypes-pV7nKIcc.mjs';
|
|
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-
|
|
7
|
+
import { G as GetEntityParams, E as Entity, C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult } from './entTypes-CL-fMvnC.mjs';
|
|
8
|
+
export { b as EntityData, c as EntityExpandOption } from './entTypes-CL-fMvnC.mjs';
|
|
9
9
|
export { CheckFeatureFormattedPreview, CheckFeatureScenario, CheckProductFormattedPreview, CheckProductScenario } from './check.mjs';
|
|
10
10
|
export { A as AppEnv, F as FreeTrialDuration, I as Infinite, P as ProductItemInterval, b as ProductItemIntervalType, U as UsageModel, a as UsageModelType } from './prodEnums-C1lccCWI.mjs';
|
|
11
11
|
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import { Product, CreateProductParams, ListProductsParams } from './products.js'
|
|
|
4
4
|
export { FreeTrial, PriceTier, ProductItem } from './products.js';
|
|
5
5
|
import { G as GetCustomerParams, C as Customer, a as CreateCustomerParams, U as UpdateCustomerParams, B as BillingPortalParams, b as BillingPortalResponse } from './cusTypes-Cw74Oy0H.js';
|
|
6
6
|
export { e as CustomerData, g as CustomerExpandOption, c as CustomerFeature, f as CustomerInvoice, d as CustomerProduct, P as ProductStatus } from './cusTypes-Cw74Oy0H.js';
|
|
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-
|
|
7
|
+
import { G as GetEntityParams, E as Entity, C as CreateEntityParams, a as CreateEntityResult, D as DeleteEntityResult } from './entTypes-DtPO-a4R.js';
|
|
8
|
+
export { b as EntityData, c as EntityExpandOption } from './entTypes-DtPO-a4R.js';
|
|
9
9
|
export { CheckFeatureFormattedPreview, CheckFeatureScenario, CheckProductFormattedPreview, CheckProductScenario } from './check.js';
|
|
10
10
|
export { A as AppEnv, F as FreeTrialDuration, I as Infinite, P as ProductItemInterval, b as ProductItemIntervalType, U as UsageModel, a as UsageModelType } from './prodEnums-C1lccCWI.js';
|
|
11
11
|
|