@openmeter/sdk 1.0.0-beta.229 → 1.0.0-beta.230
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/cjs/src/client/schemas.d.cts +40 -5
- package/dist/cjs/src/react/context.d.cts +1 -1
- package/dist/cjs/src/zod/index.cjs +316 -337
- package/dist/cjs/src/zod/index.cjs.map +1 -1
- package/dist/cjs/src/zod/index.d.cts +250 -244
- package/dist/src/client/schemas.d.ts +40 -5
- package/dist/src/react/context.d.ts +1 -1
- package/dist/src/zod/index.d.ts +250 -244
- package/dist/src/zod/index.js +293 -314
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -12
- package/Makefile +0 -42
- package/biome.json +0 -67
- package/orval.config.ts +0 -38
- package/patches/openapi-typescript.patch +0 -7122
- package/pnpm-workspace.yaml +0 -3
|
@@ -3370,9 +3370,26 @@ export interface components {
|
|
|
3370
3370
|
* @default true
|
|
3371
3371
|
*/
|
|
3372
3372
|
progressiveBilling?: boolean;
|
|
3373
|
-
/**
|
|
3373
|
+
/**
|
|
3374
|
+
* @description Controls how subscription-ending shortened service periods are billed.
|
|
3375
|
+
* @default bill_actual_period
|
|
3376
|
+
*/
|
|
3377
|
+
subscriptionEndProrationMode?: components['schemas']['BillingWorkflowInvoicingSubscriptionEndProrationMode'];
|
|
3378
|
+
/**
|
|
3379
|
+
* @description Default tax configuration to apply to the invoices.
|
|
3380
|
+
*
|
|
3381
|
+
* Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
|
|
3382
|
+
* deprecated and can no longer be added or changed: the organization default tax code is
|
|
3383
|
+
* used instead. Existing tax-code values may still be removed, and `behavior` remains
|
|
3384
|
+
* fully supported.
|
|
3385
|
+
*/
|
|
3374
3386
|
defaultTaxConfig?: components['schemas']['TaxConfig'];
|
|
3375
3387
|
};
|
|
3388
|
+
/**
|
|
3389
|
+
* @description Billing workflow subscription end proration mode.
|
|
3390
|
+
* @enum {string}
|
|
3391
|
+
*/
|
|
3392
|
+
BillingWorkflowInvoicingSubscriptionEndProrationMode: 'bill_full_period' | 'bill_actual_period';
|
|
3376
3393
|
/**
|
|
3377
3394
|
* Workflow payment settings
|
|
3378
3395
|
* @description BillingWorkflowPaymentSettings represents the payment settings for a billing workflow
|
|
@@ -7628,7 +7645,10 @@ export interface components {
|
|
|
7628
7645
|
* When null, the feature or service is free.
|
|
7629
7646
|
*/
|
|
7630
7647
|
price: components['schemas']['RateCardUsageBasedPrice'] | null;
|
|
7631
|
-
/**
|
|
7648
|
+
/**
|
|
7649
|
+
* @deprecated
|
|
7650
|
+
* @description The discounts that are applied to the line.
|
|
7651
|
+
*/
|
|
7632
7652
|
discounts?: components['schemas']['BillingDiscounts'];
|
|
7633
7653
|
};
|
|
7634
7654
|
/** @description InvoiceWorkflowInvoicingSettingsReplaceUpdate represents the update model for the invoicing settings of an invoice workflow. */
|
|
@@ -7653,7 +7673,19 @@ export interface components {
|
|
|
7653
7673
|
* @example P30D
|
|
7654
7674
|
*/
|
|
7655
7675
|
dueAfter?: string;
|
|
7656
|
-
/**
|
|
7676
|
+
/**
|
|
7677
|
+
* @description Controls how subscription-ending shortened service periods are billed.
|
|
7678
|
+
* @default bill_actual_period
|
|
7679
|
+
*/
|
|
7680
|
+
subscriptionEndProrationMode?: components['schemas']['BillingWorkflowInvoicingSubscriptionEndProrationMode'];
|
|
7681
|
+
/**
|
|
7682
|
+
* @description Default tax configuration to apply to the invoices.
|
|
7683
|
+
*
|
|
7684
|
+
* Setting a tax code (`stripe.code` / `taxCodeId`) on a profile's default tax config is
|
|
7685
|
+
* deprecated and can no longer be added or changed: the organization default tax code is
|
|
7686
|
+
* used instead. Existing tax-code values may still be removed, and `behavior` remains
|
|
7687
|
+
* fully supported.
|
|
7688
|
+
*/
|
|
7657
7689
|
defaultTaxConfig?: components['schemas']['TaxConfig'];
|
|
7658
7690
|
};
|
|
7659
7691
|
/**
|
|
@@ -9761,6 +9793,8 @@ export interface components {
|
|
|
9761
9793
|
* @example 2023-01-01T01:01:01.001Z
|
|
9762
9794
|
*/
|
|
9763
9795
|
billingAnchor?: Date;
|
|
9796
|
+
/** @description The settlement mode of the subscription. */
|
|
9797
|
+
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
9764
9798
|
};
|
|
9765
9799
|
/**
|
|
9766
9800
|
* Create from plan
|
|
@@ -9782,6 +9816,8 @@ export interface components {
|
|
|
9782
9816
|
name?: string;
|
|
9783
9817
|
/** @description Description for the Subscription. */
|
|
9784
9818
|
description?: string;
|
|
9819
|
+
/** @description The settlement mode of the subscription. */
|
|
9820
|
+
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
9785
9821
|
/**
|
|
9786
9822
|
* @description Timing configuration for the change, when the change should take effect.
|
|
9787
9823
|
* The default is immediate.
|
|
@@ -9801,8 +9837,6 @@ export interface components {
|
|
|
9801
9837
|
* @example 2023-01-01T01:01:01.001Z
|
|
9802
9838
|
*/
|
|
9803
9839
|
billingAnchor?: Date;
|
|
9804
|
-
/** @description The settlement mode of the subscription. */
|
|
9805
|
-
settlementMode?: components['schemas']['BillingSettlementMode'];
|
|
9806
9840
|
};
|
|
9807
9841
|
/**
|
|
9808
9842
|
* @description A consumer portal token.
|
|
@@ -12297,6 +12331,7 @@ export type BillingWorkflowCollectionAlignmentSubscription = components['schemas
|
|
|
12297
12331
|
export type BillingWorkflowCollectionSettings = components['schemas']['BillingWorkflowCollectionSettings'];
|
|
12298
12332
|
export type BillingWorkflowCreate = components['schemas']['BillingWorkflowCreate'];
|
|
12299
12333
|
export type BillingWorkflowInvoicingSettings = components['schemas']['BillingWorkflowInvoicingSettings'];
|
|
12334
|
+
export type BillingWorkflowInvoicingSubscriptionEndProrationMode = components['schemas']['BillingWorkflowInvoicingSubscriptionEndProrationMode'];
|
|
12300
12335
|
export type BillingWorkflowPaymentSettings = components['schemas']['BillingWorkflowPaymentSettings'];
|
|
12301
12336
|
export type BillingWorkflowTaxSettings = components['schemas']['BillingWorkflowTaxSettings'];
|
|
12302
12337
|
export type CheckoutSessionCustomTextAfterSubmitParams = components['schemas']['CheckoutSessionCustomTextAfterSubmitParams'];
|
|
@@ -5,5 +5,5 @@ export type OpenMeterProviderProps = {
|
|
|
5
5
|
children?: React.ReactNode;
|
|
6
6
|
value: OpenMeter | null;
|
|
7
7
|
};
|
|
8
|
-
export declare function OpenMeterProvider({ children, value }: OpenMeterProviderProps): import("react
|
|
8
|
+
export declare function OpenMeterProvider({ children, value }: OpenMeterProviderProps): import("react").JSX.Element;
|
|
9
9
|
export declare function useOpenMeter(): OpenMeter | null;
|