@schematichq/schematic-typescript-node 1.5.3 → 1.5.5
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/Client.d.ts +3 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/api/resources/catalogs/client/Client.d.ts +232 -0
- package/dist/api/resources/catalogs/client/index.d.ts +1 -0
- package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +12 -0
- package/dist/api/resources/catalogs/client/requests/ListCatalogsRequest.d.ts +18 -0
- package/dist/api/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +16 -0
- package/dist/api/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +9 -0
- package/dist/api/resources/catalogs/client/requests/index.d.ts +4 -0
- package/dist/api/resources/catalogs/exports.d.ts +2 -0
- package/dist/api/resources/catalogs/index.d.ts +2 -0
- package/dist/api/resources/catalogs/types/CreateCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/DeleteCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetConfigurationResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
- package/dist/api/resources/catalogs/types/ListCatalogsResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/UpdateCatalogResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/UpdateConfigurationResponse.d.ts +6 -0
- package/dist/api/resources/catalogs/types/index.d.ts +11 -0
- package/dist/api/resources/companies/client/Client.d.ts +34 -0
- package/dist/api/resources/companies/client/requests/GetBillingEntityChildSubscriptionsRequest.d.ts +9 -0
- package/dist/api/resources/companies/client/requests/GetCompanyBillingEntityRequest.d.ts +9 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +2 -0
- package/dist/api/resources/companies/types/GetBillingEntityChildSubscriptionsParams.d.ts +6 -0
- package/dist/api/resources/companies/types/GetBillingEntityChildSubscriptionsResponse.d.ts +6 -0
- package/dist/api/resources/companies/types/GetCompanyBillingEntityParams.d.ts +6 -0
- package/dist/api/resources/companies/types/GetCompanyBillingEntityResponse.d.ts +6 -0
- package/dist/api/resources/companies/types/index.d.ts +4 -0
- package/dist/api/resources/components/client/Client.d.ts +16 -0
- package/dist/api/resources/components/client/requests/BindCatalogRequestBody.d.ts +7 -0
- package/dist/api/resources/components/client/requests/index.d.ts +1 -0
- package/dist/api/resources/components/types/BindCatalogResponse.d.ts +6 -0
- package/dist/api/resources/components/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/client/Client.d.ts +36 -1
- package/dist/api/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +6 -2
- package/dist/api/resources/dataexports/client/requests/ListDataExportsRequest.d.ts +18 -0
- package/dist/api/resources/dataexports/client/requests/index.d.ts +1 -0
- package/dist/api/resources/dataexports/types/GetDataExportResponse.d.ts +6 -0
- package/dist/api/resources/dataexports/types/ListDataExportsParams.d.ts +12 -0
- package/dist/api/resources/dataexports/types/ListDataExportsResponse.d.ts +6 -0
- package/dist/api/resources/dataexports/types/index.d.ts +3 -0
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +1 -0
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +0 -1
- package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +0 -1
- package/dist/api/types/AccountMemberPermission.d.ts +1 -0
- package/dist/api/types/AuditLogExportMetadata.d.ts +12 -0
- package/dist/api/types/BillingCreditAutoTopupAvailability.d.ts +6 -0
- package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +2 -0
- package/dist/api/types/BillingPlanCreditGrantResetCadence.d.ts +2 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +5 -0
- package/dist/api/types/CatalogConfigOrderedBundle.d.ts +3 -0
- package/dist/api/types/CatalogConfigOrderedBundleResponseData.d.ts +3 -0
- package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +4 -0
- package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +4 -0
- package/dist/api/types/CatalogConfigOrderedPlan.d.ts +5 -0
- package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +5 -0
- package/dist/api/types/CatalogConfigurationResponseData.d.ts +14 -0
- package/dist/api/types/CatalogCreditBundleIDsResponseData.d.ts +3 -0
- package/dist/api/types/CatalogDerivedFeatureResponseData.d.ts +5 -0
- package/dist/api/types/CatalogDerivedFeaturesResponseData.d.ts +4 -0
- package/dist/api/types/CatalogPlanIDsResponseData.d.ts +3 -0
- package/dist/api/types/CatalogResponseData.d.ts +16 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/types/CompanyBillingEntityResponseData.d.ts +5 -0
- package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +21 -0
- package/dist/api/types/CompanyFeatureUsageExportMetadata.d.ts +36 -0
- package/dist/api/types/CompanyPlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/ComponentResponseData.d.ts +1 -0
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -0
- package/dist/api/types/DataExportMetadata.d.ts +10 -0
- package/dist/api/types/DataExportOutputFileType.d.ts +5 -1
- package/dist/api/types/DataExportResponseData.d.ts +1 -1
- package/dist/api/types/DataExportType.d.ts +5 -1
- package/dist/api/types/EventBody.d.ts +1 -1
- package/dist/api/types/EventBodyInference.d.ts +30 -0
- package/dist/api/types/EventType.d.ts +1 -0
- package/dist/api/types/FeatureEntitlement.d.ts +2 -0
- package/dist/api/types/IntegrationsListResponseData.d.ts +1 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/api/types/InvoiceResponseData.d.ts +2 -0
- package/dist/api/types/ManagePlanRequest.d.ts +2 -0
- package/dist/api/types/MetronomeIntegrationConfig.d.ts +4 -1
- package/dist/api/types/PlanBundleResponseData.d.ts +0 -1
- package/dist/api/types/PlanCatalogMembershipResponseData.d.ts +4 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +3 -0
- package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +13 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
- package/dist/api/types/RulesengineWarningTier.d.ts +6 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +2 -0
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +4 -0
- package/dist/api/types/WarningTier.d.ts +6 -0
- package/dist/api/types/WarningTierRequestBody.d.ts +4 -0
- package/dist/api/types/WarningTierResponseData.d.ts +5 -0
- package/dist/api/types/index.d.ts +25 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/catalogs/client/index.d.ts +1 -0
- package/dist/serialization/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +11 -0
- package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogConfigurationRequestBody.d.ts +19 -0
- package/dist/serialization/resources/catalogs/client/requests/UpdateCatalogRequestBody.d.ts +11 -0
- package/dist/serialization/resources/catalogs/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/catalogs/index.d.ts +2 -0
- package/dist/serialization/resources/catalogs/types/CreateCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/DeleteCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetConfigurationResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetCreditBundlesInCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetDerivedFeaturesResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/GetPlansInCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/ListCatalogsParams.d.ts +12 -0
- package/dist/serialization/resources/catalogs/types/ListCatalogsResponse.d.ts +12 -0
- package/dist/serialization/resources/catalogs/types/UpdateCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/UpdateConfigurationResponse.d.ts +11 -0
- package/dist/serialization/resources/catalogs/types/index.d.ts +11 -0
- package/dist/serialization/resources/companies/types/GetBillingEntityChildSubscriptionsParams.d.ts +9 -0
- package/dist/serialization/resources/companies/types/GetBillingEntityChildSubscriptionsResponse.d.ts +12 -0
- package/dist/serialization/resources/companies/types/GetCompanyBillingEntityParams.d.ts +9 -0
- package/dist/serialization/resources/companies/types/GetCompanyBillingEntityResponse.d.ts +12 -0
- package/dist/serialization/resources/companies/types/index.d.ts +4 -0
- package/dist/serialization/resources/components/client/requests/BindCatalogRequestBody.d.ts +9 -0
- package/dist/serialization/resources/components/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/components/types/BindCatalogResponse.d.ts +11 -0
- package/dist/serialization/resources/components/types/index.d.ts +1 -0
- package/dist/serialization/resources/dataexports/client/requests/CreateDataExportRequestBody.d.ts +6 -1
- package/dist/serialization/resources/dataexports/types/GetDataExportResponse.d.ts +11 -0
- package/dist/serialization/resources/dataexports/types/ListDataExportsParams.d.ts +14 -0
- package/dist/serialization/resources/dataexports/types/ListDataExportsResponse.d.ts +12 -0
- package/dist/serialization/resources/dataexports/types/index.d.ts +3 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +2 -0
- package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +0 -2
- package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +0 -2
- package/dist/serialization/types/AccountMemberPermission.d.ts +1 -1
- package/dist/serialization/types/AuditLogExportMetadata.d.ts +13 -0
- package/dist/serialization/types/BillingCreditAutoTopupAvailability.d.ts +7 -0
- package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
- package/dist/serialization/types/BillingPlanCreditGrantResetCadence.d.ts +1 -1
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/CatalogConfigOrderedBundle.d.ts +9 -0
- package/dist/serialization/types/CatalogConfigOrderedBundleResponseData.d.ts +9 -0
- package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +10 -0
- package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +10 -0
- package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +11 -0
- package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +11 -0
- package/dist/serialization/types/CatalogConfigurationResponseData.d.ts +22 -0
- package/dist/serialization/types/CatalogCreditBundleIDsResponseData.d.ts +9 -0
- package/dist/serialization/types/CatalogDerivedFeatureResponseData.d.ts +11 -0
- package/dist/serialization/types/CatalogDerivedFeaturesResponseData.d.ts +10 -0
- package/dist/serialization/types/CatalogPlanIDsResponseData.d.ts +9 -0
- package/dist/serialization/types/CatalogResponseData.d.ts +22 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/types/CompanyBillingEntityResponseData.d.ts +11 -0
- package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +32 -0
- package/dist/serialization/types/CompanyFeatureUsageExportMetadata.d.ts +25 -0
- package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +3 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/ComponentResponseData.d.ts +1 -0
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/serialization/types/DataExportMetadata.d.ts +15 -0
- package/dist/serialization/types/DataExportOutputFileType.d.ts +1 -1
- package/dist/serialization/types/DataExportResponseData.d.ts +2 -1
- package/dist/serialization/types/DataExportType.d.ts +1 -1
- package/dist/serialization/types/EventBody.d.ts +2 -1
- package/dist/serialization/types/EventBodyInference.d.ts +22 -0
- package/dist/serialization/types/EventType.d.ts +1 -1
- package/dist/serialization/types/FeatureEntitlement.d.ts +2 -0
- package/dist/serialization/types/IntegrationsListResponseData.d.ts +1 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +2 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
- package/dist/serialization/types/MetronomeIntegrationConfig.d.ts +3 -1
- package/dist/serialization/types/PlanBundleResponseData.d.ts +0 -2
- package/dist/serialization/types/PlanCatalogMembershipResponseData.d.ts +10 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +3 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +5 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +5 -0
- package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +19 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +2 -0
- package/dist/serialization/types/RulesengineWarningTier.d.ts +10 -0
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +2 -0
- package/dist/serialization/types/WarningTier.d.ts +10 -0
- package/dist/serialization/types/WarningTierRequestBody.d.ts +10 -0
- package/dist/serialization/types/WarningTierResponseData.d.ts +11 -0
- package/dist/serialization/types/index.d.ts +25 -0
- package/dist/wasm/rulesengine.js +4 -4
- package/dist/wasm/rulesengine_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ export interface ManagePlanRequest {
|
|
|
4
4
|
basePlanId?: string;
|
|
5
5
|
basePlanPriceId?: string;
|
|
6
6
|
basePlanVersionId?: string;
|
|
7
|
+
/** The company that pays for this subscription. Must already have a Stripe customer. Only honored when starting a new subscription. */
|
|
8
|
+
billingEntityId?: string;
|
|
7
9
|
/** If false, subscription cancels at period end. Only applies when removing all plans. Defaults to true. */
|
|
8
10
|
cancelImmediately?: boolean;
|
|
9
11
|
companyId: string;
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface MetronomeIntegrationConfig {
|
|
2
|
+
/** Schematic company key used to store the Metronome customer's ingest alias; when unset, imported customers carry only metronome_customer_id */
|
|
3
|
+
externalCustomerIdKey?: string;
|
|
4
|
+
}
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface PlanCreditGrantView {
|
|
3
3
|
billingCreditAutoTopupAmount?: number;
|
|
4
4
|
billingCreditAutoTopupAmountType?: string;
|
|
5
|
+
billingCreditAutoTopupAvailability?: Schematic.BillingCreditAutoTopupAvailability;
|
|
5
6
|
billingCreditAutoTopupEnabled: boolean;
|
|
6
7
|
billingCreditAutoTopupExpiryType?: Schematic.BillingCreditExpiryType;
|
|
7
8
|
billingCreditAutoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
@@ -9,6 +10,7 @@ export interface PlanCreditGrantView {
|
|
|
9
10
|
billingCreditAutoTopupSelfService: boolean;
|
|
10
11
|
billingCreditAutoTopupThresholdCredits?: number;
|
|
11
12
|
billingCreditAutoTopupThresholdPercent?: number;
|
|
13
|
+
billingCreditCanBuyBundles: boolean;
|
|
12
14
|
createdAt: Date;
|
|
13
15
|
credit?: Schematic.BillingCreditView;
|
|
14
16
|
creditAmount: number;
|
|
@@ -5,13 +5,16 @@ export interface PlanDetailResponseData {
|
|
|
5
5
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
6
6
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
7
7
|
billingStrategy: Schematic.BillingStrategy;
|
|
8
|
+
catalogs?: Schematic.PlanCatalogMembershipResponseData[];
|
|
8
9
|
chargeType: Schematic.ChargeType;
|
|
9
10
|
companyCount: number;
|
|
10
11
|
companyId?: string;
|
|
12
|
+
companyLogoUrl?: string;
|
|
11
13
|
companyName?: string;
|
|
12
14
|
controlledBy: Schematic.BillingProviderType;
|
|
13
15
|
copiedFromPlanId?: string;
|
|
14
16
|
createdAt: Date;
|
|
17
|
+
credits: Schematic.BillingCreditResponseData[];
|
|
15
18
|
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
16
19
|
description: string;
|
|
17
20
|
draftVersion?: Schematic.PlanVersionResponseData;
|
|
@@ -6,14 +6,17 @@ export interface PlanGroupPlanDetailResponseData {
|
|
|
6
6
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
7
7
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
8
8
|
billingStrategy: Schematic.BillingStrategy;
|
|
9
|
+
catalogs?: Schematic.PlanCatalogMembershipResponseData[];
|
|
9
10
|
chargeType: Schematic.ChargeType;
|
|
10
11
|
companyCount: number;
|
|
11
12
|
companyId?: string;
|
|
13
|
+
companyLogoUrl?: string;
|
|
12
14
|
companyName?: string;
|
|
13
15
|
compatiblePlanIds: string[];
|
|
14
16
|
controlledBy: Schematic.BillingProviderType;
|
|
15
17
|
copiedFromPlanId?: string;
|
|
16
18
|
createdAt: Date;
|
|
19
|
+
credits: Schematic.BillingCreditResponseData[];
|
|
17
20
|
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
18
21
|
customPlanConfig?: Schematic.CustomPlanViewConfigResponseData;
|
|
19
22
|
description: string;
|
|
@@ -6,14 +6,17 @@ export interface PlanViewPublicResponseData {
|
|
|
6
6
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
7
7
|
billingProduct?: Schematic.BillingProductDetailResponseData;
|
|
8
8
|
billingStrategy: Schematic.BillingStrategy;
|
|
9
|
+
catalogs?: Schematic.PlanCatalogMembershipResponseData[];
|
|
9
10
|
chargeType: Schematic.ChargeType;
|
|
10
11
|
companyCount: number;
|
|
11
12
|
companyId?: string;
|
|
13
|
+
companyLogoUrl?: string;
|
|
12
14
|
companyName?: string;
|
|
13
15
|
compatiblePlanIds: string[];
|
|
14
16
|
controlledBy: Schematic.BillingProviderType;
|
|
15
17
|
copiedFromPlanId?: string;
|
|
16
18
|
createdAt: Date;
|
|
19
|
+
credits: Schematic.BillingCreditResponseData[];
|
|
17
20
|
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
18
21
|
custom: boolean;
|
|
19
22
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PreviewSubscriptionDiscountResponseData {
|
|
2
|
+
amountOff?: number;
|
|
3
|
+
couponName: string;
|
|
4
|
+
currency?: string;
|
|
5
|
+
customerFacingCode?: string;
|
|
6
|
+
duration: string;
|
|
7
|
+
durationInMonths?: number;
|
|
8
|
+
endedAt?: Date;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
percentOff?: number;
|
|
11
|
+
promoCodeExternalId?: string;
|
|
12
|
+
startedAt: Date;
|
|
13
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface PreviewSubscriptionFinanceResponseData {
|
|
3
3
|
amountOff: number;
|
|
4
|
+
discounts: Schematic.PreviewSubscriptionDiscountResponseData[];
|
|
4
5
|
dueNow: number;
|
|
5
6
|
newCharges: number;
|
|
6
7
|
percentOff: number;
|
|
8
|
+
periodEnd: Date;
|
|
7
9
|
periodStart: Date;
|
|
8
10
|
promoCodeApplied: boolean;
|
|
9
11
|
proration: number;
|
|
@@ -36,4 +36,6 @@ export interface RulesengineFeatureEntitlement {
|
|
|
36
36
|
usage?: number;
|
|
37
37
|
/** The type of the entitlement value */
|
|
38
38
|
valueType: Schematic.RulesengineEntitlementValueType;
|
|
39
|
+
/** Customer-defined usage warning thresholds configured on this entitlement */
|
|
40
|
+
warningTiers?: Schematic.RulesengineWarningTier[];
|
|
39
41
|
}
|
|
@@ -3,6 +3,7 @@ export interface UpdateBillingPlanCreditGrantRequestBody {
|
|
|
3
3
|
applyToExisting?: boolean;
|
|
4
4
|
autoTopupAmount?: number;
|
|
5
5
|
autoTopupAmountType?: Schematic.CreditAutoTopupAmountType;
|
|
6
|
+
autoTopupAvailability?: Schematic.BillingCreditAutoTopupAvailability;
|
|
6
7
|
autoTopupEnabled?: boolean;
|
|
7
8
|
autoTopupExpiryType?: Schematic.BillingCreditExpiryType;
|
|
8
9
|
autoTopupExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
@@ -10,6 +11,7 @@ export interface UpdateBillingPlanCreditGrantRequestBody {
|
|
|
10
11
|
autoTopupSelfService?: boolean;
|
|
11
12
|
autoTopupThresholdCredits?: number;
|
|
12
13
|
autoTopupThresholdPercent?: number;
|
|
14
|
+
canBuyBundles?: boolean;
|
|
13
15
|
creditAmount?: number;
|
|
14
16
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
15
17
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export interface UpsertCompanyRequestBody {
|
|
2
|
+
/** Assign this base plan when creating the company (starts with plan_). Takes precedence over the environment's initial plan and must be provisionable without a payment method. */
|
|
3
|
+
basePlanId?: string;
|
|
4
|
+
/** The Schematic price to provision for base_plan_id (starts with bilpp_). Required and must be $0 for a billing-linked plan; omit for a plan that is not billing-linked. */
|
|
5
|
+
basePlanPriceId?: string;
|
|
2
6
|
/** If you know the Schematic ID, you can use that here instead of keys */
|
|
3
7
|
id?: string;
|
|
4
8
|
/** See [Key Management](https://docs.schematichq.com/developer_resources/key_management) for more information */
|
|
@@ -9,9 +9,11 @@ export * from "./ApiKeyCreateResponseData";
|
|
|
9
9
|
export * from "./ApiKeyIntegrationResponseData";
|
|
10
10
|
export * from "./ApiKeyResponseData";
|
|
11
11
|
export * from "./ApiKeyScope";
|
|
12
|
+
export * from "./AuditLogExportMetadata";
|
|
12
13
|
export * from "./AuditLogListResponseData";
|
|
13
14
|
export * from "./AuditLogResponseData";
|
|
14
15
|
export * from "./BillingCouponResponseData";
|
|
16
|
+
export * from "./BillingCreditAutoTopupAvailability";
|
|
15
17
|
export * from "./BillingCreditBundleResponseData";
|
|
16
18
|
export * from "./BillingCreditBundleStatus";
|
|
17
19
|
export * from "./BillingCreditBundleType";
|
|
@@ -58,6 +60,18 @@ export * from "./BillingSubscriptionView";
|
|
|
58
60
|
export * from "./BillingTiersMode";
|
|
59
61
|
export * from "./CaptureRawEvent";
|
|
60
62
|
export * from "./CaptureRawEventBatch";
|
|
63
|
+
export * from "./CatalogConfigOrderedBundle";
|
|
64
|
+
export * from "./CatalogConfigOrderedBundleResponseData";
|
|
65
|
+
export * from "./CatalogConfigOrderedEntitlement";
|
|
66
|
+
export * from "./CatalogConfigOrderedEntitlementResponseData";
|
|
67
|
+
export * from "./CatalogConfigOrderedPlan";
|
|
68
|
+
export * from "./CatalogConfigOrderedPlanResponseData";
|
|
69
|
+
export * from "./CatalogConfigurationResponseData";
|
|
70
|
+
export * from "./CatalogCreditBundleIDsResponseData";
|
|
71
|
+
export * from "./CatalogDerivedFeatureResponseData";
|
|
72
|
+
export * from "./CatalogDerivedFeaturesResponseData";
|
|
73
|
+
export * from "./CatalogPlanIDsResponseData";
|
|
74
|
+
export * from "./CatalogResponseData";
|
|
61
75
|
export * from "./ChangeSubscriptionInternalRequestBody";
|
|
62
76
|
export * from "./ChangeSubscriptionRequestBody";
|
|
63
77
|
export * from "./ChargeType";
|
|
@@ -73,10 +87,13 @@ export * from "./CheckoutFieldWithValue";
|
|
|
73
87
|
export * from "./CheckoutSettingsResponseData";
|
|
74
88
|
export * from "./CheckoutSubscription";
|
|
75
89
|
export * from "./ClerkIntegrationConfig";
|
|
90
|
+
export * from "./CompanyBillingEntityResponseData";
|
|
91
|
+
export * from "./CompanyBillingEntitySubscriptionResponseData";
|
|
76
92
|
export * from "./CompanyCreditBalance";
|
|
77
93
|
export * from "./CompanyCreditBalanceResponseData";
|
|
78
94
|
export * from "./CompanyDetailResponseData";
|
|
79
95
|
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
96
|
+
export * from "./CompanyFeatureUsageExportMetadata";
|
|
80
97
|
export * from "./CompanyLedgerResponseData";
|
|
81
98
|
export * from "./CompanyMatchingCriteria";
|
|
82
99
|
export * from "./CompanyMembershipDetailResponseData";
|
|
@@ -155,6 +172,7 @@ export * from "./CustomPlanBillingStatus";
|
|
|
155
172
|
export * from "./CustomPlanConfig";
|
|
156
173
|
export * from "./CustomPlanViewConfigResponseData";
|
|
157
174
|
export * from "./DataEventPayload";
|
|
175
|
+
export * from "./DataExportMetadata";
|
|
158
176
|
export * from "./DataExportOutputFileType";
|
|
159
177
|
export * from "./DataExportResponseData";
|
|
160
178
|
export * from "./DataExportStatus";
|
|
@@ -187,6 +205,7 @@ export * from "./EventBody";
|
|
|
187
205
|
export * from "./EventBodyFlagCheck";
|
|
188
206
|
export * from "./EventBodyIdentify";
|
|
189
207
|
export * from "./EventBodyIdentifyCompany";
|
|
208
|
+
export * from "./EventBodyInference";
|
|
190
209
|
export * from "./EventBodyTrack";
|
|
191
210
|
export * from "./EventDetailResponseData";
|
|
192
211
|
export * from "./EventResponseData";
|
|
@@ -250,6 +269,7 @@ export * from "./PlanBundleAction";
|
|
|
250
269
|
export * from "./PlanBundleCreditGrantRequestBody";
|
|
251
270
|
export * from "./PlanBundleEntitlementRequestBody";
|
|
252
271
|
export * from "./PlanBundleResponseData";
|
|
272
|
+
export * from "./PlanCatalogMembershipResponseData";
|
|
253
273
|
export * from "./PlanChangeAction";
|
|
254
274
|
export * from "./PlanChangeBasePlanAction";
|
|
255
275
|
export * from "./PlanChangeResponseData";
|
|
@@ -287,6 +307,7 @@ export * from "./PlanViewPublicResponseData";
|
|
|
287
307
|
export * from "./PreviewObject";
|
|
288
308
|
export * from "./PreviewObjectResponseData";
|
|
289
309
|
export * from "./PreviewSubscriptionChangeResponseData";
|
|
310
|
+
export * from "./PreviewSubscriptionDiscountResponseData";
|
|
290
311
|
export * from "./PreviewSubscriptionFinanceResponseData";
|
|
291
312
|
export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
|
|
292
313
|
export * from "./ProrationBehavior";
|
|
@@ -323,6 +344,7 @@ export * from "./RulesengineTrait";
|
|
|
323
344
|
export * from "./RulesengineTraitDefinition";
|
|
324
345
|
export * from "./RulesengineTraitDefinitionComparableType";
|
|
325
346
|
export * from "./RulesengineUser";
|
|
347
|
+
export * from "./RulesengineWarningTier";
|
|
326
348
|
export * from "./RuleType";
|
|
327
349
|
export * from "./RuleView";
|
|
328
350
|
export * from "./ScheduledCheckoutResponseData";
|
|
@@ -367,6 +389,9 @@ export * from "./UsageBasedEntitlementResponseData";
|
|
|
367
389
|
export * from "./UsageTimeSeriesPointResponseData";
|
|
368
390
|
export * from "./UserDetailResponseData";
|
|
369
391
|
export * from "./UserResponseData";
|
|
392
|
+
export * from "./WarningTier";
|
|
393
|
+
export * from "./WarningTierRequestBody";
|
|
394
|
+
export * from "./WarningTierResponseData";
|
|
370
395
|
export * from "./WebFeatureUsageWebhookOutput";
|
|
371
396
|
export * from "./WebhookEventDetailResponseData";
|
|
372
397
|
export * from "./WebhookEventResponseData";
|