@schematichq/schematic-typescript-node 1.3.0 → 1.4.0
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/README.md +36 -2
- package/dist/Client.d.ts +12 -0
- package/dist/api/resources/accounts/client/Client.d.ts +33 -16
- package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +24 -0
- package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +24 -0
- package/dist/api/resources/accounts/client/requests/index.d.ts +2 -2
- package/dist/api/resources/accounts/types/{ListApiRequestsParams.d.ts → CountAuditLogsParams.d.ts} +5 -2
- package/dist/api/resources/accounts/types/{CountApiRequestsResponse.d.ts → CountAuditLogsResponse.d.ts} +2 -2
- package/dist/api/resources/accounts/types/{GetApiRequestResponse.d.ts → GetAuditLogResponse.d.ts} +2 -2
- package/dist/api/resources/accounts/types/GetWhoAmIResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/{CountApiRequestsParams.d.ts → ListAuditLogsParams.d.ts} +5 -2
- package/dist/api/resources/accounts/types/ListAuditLogsResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +6 -5
- package/dist/api/resources/billing/client/Client.d.ts +0 -3
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -2
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +0 -2
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +1 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/api/resources/companies/client/Client.d.ts +12 -48
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +27 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +27 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +0 -2
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +21 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +21 -0
- package/dist/api/resources/companies/types/index.d.ts +0 -4
- package/dist/api/resources/componentspublic/client/Client.d.ts +26 -0
- package/dist/api/resources/componentspublic/client/index.d.ts +1 -0
- package/dist/api/resources/componentspublic/index.d.ts +2 -0
- package/dist/api/resources/componentspublic/types/GetPublicPlansResponse.d.ts +6 -0
- package/dist/api/resources/componentspublic/types/index.d.ts +1 -0
- package/dist/api/resources/credits/client/Client.d.ts +71 -0
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +3 -1
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +20 -0
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +3 -1
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +26 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +3 -2
- package/dist/api/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsParams.d.ts +13 -0
- package/dist/api/resources/credits/types/CountCompanyGrantsResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/CountCreditEventLedgerParams.d.ts +16 -0
- package/dist/api/resources/credits/types/CountCreditEventLedgerResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/api/resources/credits/types/ListCreditEventLedgerParams.d.ts +16 -0
- package/dist/api/resources/credits/types/ListCreditEventLedgerResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +6 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +22 -0
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/GetFeatureUsageTimeSeriesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +5 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +4 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +11 -0
- package/dist/api/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +4 -0
- package/dist/api/resources/entitlements/types/index.d.ts +2 -0
- package/dist/api/resources/features/client/Client.d.ts +2 -0
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +3 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +3 -0
- package/dist/api/resources/features/types/CountFeaturesParams.d.ts +2 -0
- package/dist/api/resources/features/types/ListFeaturesParams.d.ts +2 -0
- package/dist/api/resources/index.d.ts +11 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +52 -0
- package/dist/api/resources/planbundle/client/index.d.ts +1 -0
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +16 -0
- package/dist/api/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +17 -0
- package/dist/api/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/api/resources/planbundle/index.d.ts +2 -0
- package/dist/api/resources/planbundle/types/CreatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +6 -0
- package/dist/api/resources/planbundle/types/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/Client.d.ts +4 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +6 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +6 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +109 -0
- package/dist/api/resources/planmigrations/client/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +18 -0
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +18 -0
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +4 -0
- package/dist/api/resources/planmigrations/index.d.ts +2 -0
- package/dist/api/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +13 -0
- package/dist/api/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsParams.d.ts +12 -0
- package/dist/api/resources/planmigrations/types/CountMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/GetMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +13 -0
- package/dist/api/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsParams.d.ts +12 -0
- package/dist/api/resources/planmigrations/types/ListMigrationsResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +9 -0
- package/dist/api/resources/plans/client/Client.d.ts +41 -3
- package/dist/api/resources/plans/client/requests/GetPlanRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/ListPlanIssuesRequest.d.ts +3 -1
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +12 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +2 -3
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +1 -0
- package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/GetPlanParams.d.ts +7 -0
- package/dist/api/resources/plans/types/GetPlanResponse.d.ts +1 -1
- package/dist/api/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +1 -0
- package/dist/api/resources/plans/types/PublishPlanVersionResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +3 -0
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +83 -0
- package/dist/api/resources/scheduledcheckout/client/index.d.ts +1 -0
- package/dist/api/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +15 -0
- package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +18 -0
- package/dist/api/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +9 -0
- package/dist/api/resources/scheduledcheckout/client/requests/index.d.ts +3 -0
- package/dist/api/resources/scheduledcheckout/index.d.ts +2 -0
- package/dist/api/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +12 -0
- package/dist/api/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +6 -0
- package/dist/api/resources/scheduledcheckout/types/index.d.ts +5 -0
- package/dist/api/types/{PlanChangeActorType.d.ts → ActorType.d.ts} +3 -2
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/api/types/{ApiKeyRequestListResponseData.d.ts → AuditLogListResponseData.d.ts} +4 -4
- package/dist/api/types/{ApiKeyRequestResponseData.d.ts → AuditLogResponseData.d.ts} +3 -5
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditView.d.ts +22 -0
- package/dist/api/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/api/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +9 -2
- package/dist/api/types/CheckFlagResponseData.d.ts +8 -5
- package/dist/api/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/api/types/ComponentDisplaySettings.d.ts +2 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -0
- package/dist/api/types/ComponentSettingsResponseData.d.ts +2 -0
- package/dist/api/types/ConditionConditionType.d.ts +1 -1
- package/dist/api/types/ConditionGroupResponseData.d.ts +10 -0
- package/dist/api/types/ConditionGroupView.d.ts +12 -0
- package/dist/api/types/ConditionResponseData.d.ts +28 -0
- package/dist/api/types/ConditionView.d.ts +35 -0
- package/dist/api/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +2 -11
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +31 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/types/CreateEventRequestBody.d.ts +1 -0
- package/dist/api/types/CreatePlanRequestBody.d.ts +7 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +2 -0
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +34 -0
- package/dist/api/types/CreditEventType.d.ts +7 -0
- package/dist/api/types/CreditsAutoTopupCompanySummary.d.ts +4 -0
- package/dist/api/types/CreditsAutoTopupCreditSummary.d.ts +4 -0
- package/dist/api/types/CreditsAutoTopupHardFailure.d.ts +7 -0
- package/dist/api/types/CreditsAutoTopupRetryFailure.d.ts +8 -0
- package/dist/api/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/api/types/EventDetailResponseData.d.ts +1 -1
- package/dist/api/types/EventResponseData.d.ts +1 -1
- package/dist/api/types/FeatureCompanyResponseData.d.ts +3 -0
- package/dist/api/types/FeatureCompanyUserResponseData.d.ts +1 -0
- package/dist/api/types/FeatureEntitlement.d.ts +31 -0
- package/dist/api/types/FeatureEntitlementMetricPeriod.d.ts +8 -0
- package/dist/api/types/FeatureEntitlementMonthReset.d.ts +6 -0
- package/dist/api/types/FeatureUsageLegacyResponseData.d.ts +9 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +3 -0
- package/dist/api/types/FeatureUsageTimeSeriesResponseData.d.ts +8 -0
- package/dist/api/types/FeatureView.d.ts +21 -0
- package/dist/api/types/FlagView.d.ts +17 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/api/types/InvoiceResponseData.d.ts +1 -0
- package/dist/api/types/InvoiceStatus.d.ts +8 -0
- package/dist/api/types/LimitTimeSeriesPointResponseData.d.ts +9 -0
- package/dist/api/types/PlanBundleAction.d.ts +6 -0
- package/dist/api/types/PlanBundleCreditGrantRequestBody.d.ts +8 -0
- package/dist/api/types/PlanBundleEntitlementRequestBody.d.ts +6 -0
- package/dist/api/types/PlanBundleResponseData.d.ts +8 -0
- package/dist/api/types/PlanChangeAction.d.ts +1 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +4 -2
- package/dist/api/types/PlanChangeSubscriptionAction.d.ts +1 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +10 -3
- package/dist/api/types/PlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +3 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/api/types/PlanVersionCompanyMigrationResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionCompanyMigrationStatus.d.ts +8 -0
- package/dist/api/types/PlanVersionMigrationResponseData.d.ts +18 -0
- package/dist/api/types/PlanVersionMigrationStatus.d.ts +7 -0
- package/dist/api/types/PlanVersionMigrationStrategy.d.ts +5 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +14 -0
- package/dist/api/types/PlanVersionStatus.d.ts +6 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +32 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/api/types/PublicPlansResponseData.d.ts +12 -0
- package/dist/api/types/RawEventResponseData.d.ts +1 -1
- package/dist/api/types/RuleView.d.ts +16 -0
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/RulesengineCheckFlagResult.d.ts +1 -0
- package/dist/api/types/RulesengineCompany.d.ts +2 -1
- package/dist/api/types/RulesengineConditionConditionType.d.ts +1 -1
- package/dist/api/types/RulesengineEntitlementValueType.d.ts +9 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +31 -0
- package/dist/api/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +8 -0
- package/dist/api/types/RulesengineFeatureEntitlementMonthReset.d.ts +6 -0
- package/dist/api/types/ScheduledCheckoutResponseData.d.ts +17 -0
- package/dist/api/types/ScheduledCheckoutStatus.d.ts +8 -0
- package/dist/api/types/ScheduledDowngradeConfigBehavior.d.ts +5 -0
- package/dist/api/types/ScheduledDowngradeResponseData.d.ts +13 -0
- package/dist/api/types/TimeSeriesGranularity.d.ts +7 -0
- package/dist/api/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -8
- package/dist/api/{resources/plans/client/requests → types}/UpdatePlanRequestBody.d.ts +0 -6
- package/dist/api/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +1 -8
- package/dist/api/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/api/types/UsageTimeSeriesPointResponseData.d.ts +6 -0
- package/dist/api/types/WebFeatureUsageWebhookOutput.d.ts +10 -0
- package/dist/api/types/WebhookRequestType.d.ts +3 -0
- package/dist/api/types/WhoAmIResponseData.d.ts +12 -0
- package/dist/api/types/index.d.ts +58 -6
- package/dist/cache/index.d.ts +3 -0
- package/dist/{cache.d.ts → cache/local.d.ts} +9 -10
- package/dist/cache/redis.d.ts +38 -0
- package/dist/cache/types.d.ts +19 -0
- package/dist/datastream/datastream-client.d.ts +239 -0
- package/dist/datastream/index.d.ts +2 -0
- package/dist/datastream/types.d.ts +48 -0
- package/dist/datastream/websocket-client.d.ts +127 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +3 -3
- package/dist/rules-engine.d.ts +54 -0
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/CountAuditLogsParams.d.ts +16 -0
- package/dist/serialization/resources/accounts/types/CountAuditLogsResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/GetAuditLogResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/GetWhoAmIResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/ListAuditLogsParams.d.ts +16 -0
- package/dist/serialization/resources/accounts/types/ListAuditLogsResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +6 -5
- package/dist/serialization/resources/billing/client/requests/CreateBillingCustomerRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/types/CountCustomersParams.d.ts +0 -1
- package/dist/serialization/resources/billing/types/ListCustomersWithSubscriptionsParams.d.ts +0 -1
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +13 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +13 -0
- package/dist/serialization/resources/companies/types/index.d.ts +0 -4
- package/dist/serialization/resources/componentspublic/index.d.ts +1 -0
- package/dist/serialization/resources/componentspublic/types/GetPublicPlansResponse.d.ts +11 -0
- package/dist/serialization/resources/componentspublic/types/index.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/index.d.ts +0 -2
- package/dist/serialization/resources/credits/types/CountBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsParams.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCompanyGrantsResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/CountCreditEventLedgerParams.d.ts +17 -0
- package/dist/serialization/resources/credits/types/CountCreditEventLedgerResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/ListBillingPlanCreditGrantsParams.d.ts +1 -0
- package/dist/serialization/resources/credits/types/ListCreditEventLedgerParams.d.ts +17 -0
- package/dist/serialization/resources/credits/types/ListCreditEventLedgerResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/index.d.ts +6 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesParams.d.ts +14 -0
- package/dist/serialization/resources/entitlements/types/GetFeatureUsageTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +2 -0
- package/dist/serialization/resources/features/types/CountFeaturesParams.d.ts +1 -0
- package/dist/serialization/resources/features/types/ListFeaturesParams.d.ts +1 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/planbundle/client/index.d.ts +1 -0
- package/dist/serialization/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +18 -0
- package/dist/serialization/resources/planbundle/client/requests/UpdatePlanBundleRequestBody.d.ts +19 -0
- package/dist/serialization/resources/planbundle/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/index.d.ts +2 -0
- package/dist/serialization/resources/planbundle/types/CreatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/UpdatePlanBundleResponse.d.ts +11 -0
- package/dist/serialization/resources/planbundle/types/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +5 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +5 -0
- package/dist/serialization/resources/planmigrations/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsParams.d.ts +14 -0
- package/dist/serialization/resources/planmigrations/types/CountCompanyMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsParams.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/types/CountMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/GetMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsParams.d.ts +14 -0
- package/dist/serialization/resources/planmigrations/types/ListCompanyMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsParams.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/types/ListMigrationsResponse.d.ts +12 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +9 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +11 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +1 -3
- package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/GetPlanParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/GetPlanResponse.d.ts +2 -1
- package/dist/serialization/resources/plans/types/ListPlanIssuesParams.d.ts +1 -0
- package/dist/serialization/resources/plans/types/PublishPlanVersionResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +3 -0
- package/dist/serialization/resources/scheduledcheckout/client/index.d.ts +1 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/CreateScheduledCheckoutRequest.d.ts +12 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/UpdateScheduledCheckoutRequest.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/scheduledcheckout/index.d.ts +2 -0
- package/dist/serialization/resources/scheduledcheckout/types/CreateScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/GetScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsParams.d.ts +13 -0
- package/dist/serialization/resources/scheduledcheckout/types/ListScheduledCheckoutsResponse.d.ts +12 -0
- package/dist/serialization/resources/scheduledcheckout/types/UpdateScheduledCheckoutResponse.d.ts +11 -0
- package/dist/serialization/resources/scheduledcheckout/types/index.d.ts +5 -0
- package/dist/serialization/types/ActorType.d.ts +7 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/serialization/types/{ApiKeyRequestListResponseData.d.ts → AuditLogListResponseData.d.ts} +5 -5
- package/dist/serialization/types/{ApiKeyRequestResponseData.d.ts → AuditLogResponseData.d.ts} +5 -7
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditView.d.ts +32 -0
- package/dist/serialization/types/BillingCustomerResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingCustomerWithSubscriptionsResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -2
- package/dist/serialization/types/CheckFlagResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +1 -0
- package/dist/serialization/types/ComponentDisplaySettings.d.ts +2 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentSettingsResponseData.d.ts +2 -0
- package/dist/serialization/types/ConditionConditionType.d.ts +1 -1
- package/dist/serialization/types/ConditionGroupResponseData.d.ts +16 -0
- package/dist/serialization/types/ConditionGroupView.d.ts +18 -0
- package/dist/serialization/types/ConditionResponseData.d.ts +34 -0
- package/dist/serialization/types/ConditionView.d.ts +43 -0
- package/dist/serialization/{resources/credits/client/requests → types}/CreateBillingPlanCreditGrantRequestBody.d.ts +11 -10
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +41 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBodyMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +13 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +47 -0
- package/dist/serialization/types/CreditEventType.d.ts +7 -0
- package/dist/serialization/types/CreditsAutoTopupCompanySummary.d.ts +10 -0
- package/dist/serialization/types/CreditsAutoTopupCreditSummary.d.ts +10 -0
- package/dist/serialization/types/CreditsAutoTopupHardFailure.d.ts +14 -0
- package/dist/serialization/types/CreditsAutoTopupRetryFailure.d.ts +15 -0
- package/dist/serialization/types/DeleteBillingPlanCreditGrantRequestBody.d.ts +9 -0
- package/dist/serialization/types/EventDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/EventResponseData.d.ts +1 -1
- package/dist/serialization/types/FeatureEntitlement.d.ts +25 -0
- package/dist/serialization/types/FeatureEntitlementMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/FeatureEntitlementMonthReset.d.ts +7 -0
- package/dist/serialization/types/FeatureUsageLegacyResponseData.d.ts +16 -0
- package/dist/serialization/types/FeatureUsageTimeSeriesResponseData.d.ts +16 -0
- package/dist/serialization/types/FeatureView.d.ts +32 -0
- package/dist/serialization/types/FlagView.d.ts +25 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +2 -0
- package/dist/serialization/types/InvoiceStatus.d.ts +7 -0
- package/dist/serialization/types/LimitTimeSeriesPointResponseData.d.ts +16 -0
- package/dist/serialization/types/PlanBundleAction.d.ts +7 -0
- package/dist/serialization/types/PlanBundleCreditGrantRequestBody.d.ts +17 -0
- package/dist/serialization/types/PlanBundleEntitlementRequestBody.d.ts +13 -0
- package/dist/serialization/types/PlanBundleResponseData.d.ts +18 -0
- package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
- package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -4
- package/dist/serialization/types/PlanChangeSubscriptionAction.d.ts +1 -1
- package/dist/serialization/types/PlanCreditGrantView.d.ts +7 -3
- package/dist/serialization/types/PlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationResponseData.d.ts +20 -0
- package/dist/serialization/types/PlanVersionCompanyMigrationStatus.d.ts +7 -0
- package/dist/serialization/types/PlanVersionMigrationResponseData.d.ts +25 -0
- package/dist/serialization/types/PlanVersionMigrationStatus.d.ts +7 -0
- package/dist/serialization/types/PlanVersionMigrationStrategy.d.ts +7 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +21 -0
- package/dist/serialization/types/PlanVersionStatus.d.ts +7 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +47 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/serialization/types/PublicPlansResponseData.d.ts +21 -0
- package/dist/serialization/types/RawEventResponseData.d.ts +1 -1
- package/dist/serialization/types/RuleView.d.ts +23 -0
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/RulesengineCheckFlagResult.d.ts +2 -0
- package/dist/serialization/types/RulesengineCompany.d.ts +3 -1
- package/dist/serialization/types/RulesengineConditionConditionType.d.ts +1 -1
- package/dist/serialization/types/RulesengineEntitlementValueType.d.ts +7 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +25 -0
- package/dist/serialization/types/RulesengineFeatureEntitlementMetricPeriod.d.ts +7 -0
- package/dist/serialization/types/RulesengineFeatureEntitlementMonthReset.d.ts +7 -0
- package/dist/serialization/types/ScheduledCheckoutResponseData.d.ts +23 -0
- package/dist/serialization/types/ScheduledCheckoutStatus.d.ts +7 -0
- package/dist/serialization/types/ScheduledDowngradeConfigBehavior.d.ts +7 -0
- package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +19 -0
- package/dist/serialization/types/TimeSeriesGranularity.d.ts +7 -0
- package/dist/serialization/{resources/credits/client/requests → types}/UpdateBillingPlanCreditGrantRequestBody.d.ts +10 -10
- package/dist/serialization/types/UpdatePlanRequestBody.d.ts +11 -0
- package/dist/serialization/{resources/plans/client/requests → types}/UpsertBillingProductRequestBody.d.ts +5 -5
- package/dist/serialization/types/UpsertCompanyRequestBody.d.ts +1 -0
- package/dist/serialization/types/UsageTimeSeriesPointResponseData.d.ts +12 -0
- package/dist/serialization/types/WebFeatureUsageWebhookOutput.d.ts +18 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/WhoAmIResponseData.d.ts +18 -0
- package/dist/serialization/types/index.d.ts +58 -6
- package/dist/wrapper.d.ts +58 -5
- package/package.json +4 -2
- package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.d.ts +0 -19
- package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.d.ts +0 -19
- package/dist/api/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -6
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +0 -46
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +0 -46
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -35
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -6
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -35
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -6
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -15
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -26
- package/dist/api/types/CreditUsageResponseData.d.ts +0 -12
- package/dist/api/types/FeatureUsageDataResponseData.d.ts +0 -19
- package/dist/serialization/resources/accounts/types/CountApiRequestsParams.d.ts +0 -13
- package/dist/serialization/resources/accounts/types/CountApiRequestsResponse.d.ts +0 -12
- package/dist/serialization/resources/accounts/types/GetApiRequestResponse.d.ts +0 -11
- package/dist/serialization/resources/accounts/types/ListApiRequestsParams.d.ts +0 -13
- package/dist/serialization/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -12
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +0 -26
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterResponse.d.ts +0 -12
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +0 -26
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -12
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -13
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -11
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +0 -39
- package/dist/serialization/types/CreditUsageResponseData.d.ts +0 -17
- package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +0 -27
- package/dist/serialization/types/PlanChangeActorType.d.ts +0 -7
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { FeatureType } from "./FeatureType";
|
|
5
|
+
import { LimitTimeSeriesPointResponseData } from "./LimitTimeSeriesPointResponseData";
|
|
6
|
+
import { UsageTimeSeriesPointResponseData } from "./UsageTimeSeriesPointResponseData";
|
|
7
|
+
export declare const FeatureUsageTimeSeriesResponseData: core.serialization.ObjectSchema<serializers.FeatureUsageTimeSeriesResponseData.Raw, Schematic.FeatureUsageTimeSeriesResponseData>;
|
|
8
|
+
export declare namespace FeatureUsageTimeSeriesResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
feature_id: string;
|
|
11
|
+
feature_type: FeatureType.Raw;
|
|
12
|
+
limits: LimitTimeSeriesPointResponseData.Raw[];
|
|
13
|
+
period_type?: string | null;
|
|
14
|
+
usage_points: UsageTimeSeriesPointResponseData.Raw[];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
|
|
5
|
+
import { EventSummaryResponseData } from "./EventSummaryResponseData";
|
|
6
|
+
import { FeatureLifecyclePhase } from "./FeatureLifecyclePhase";
|
|
7
|
+
import { FeatureType } from "./FeatureType";
|
|
8
|
+
import { FlagView } from "./FlagView";
|
|
9
|
+
import { PreviewObject } from "./PreviewObject";
|
|
10
|
+
export declare const FeatureView: core.serialization.ObjectSchema<serializers.FeatureView.Raw, Schematic.FeatureView>;
|
|
11
|
+
export declare namespace FeatureView {
|
|
12
|
+
interface Raw {
|
|
13
|
+
account_id: string;
|
|
14
|
+
created_at: string;
|
|
15
|
+
description: string;
|
|
16
|
+
event_subtype?: string | null;
|
|
17
|
+
event_summary?: EventSummaryResponseData.Raw | null;
|
|
18
|
+
feature_type: FeatureType.Raw;
|
|
19
|
+
flags: FlagView.Raw[];
|
|
20
|
+
icon: string;
|
|
21
|
+
id: string;
|
|
22
|
+
lifecycle_phase?: FeatureLifecyclePhase.Raw | null;
|
|
23
|
+
maintainer_id?: string | null;
|
|
24
|
+
name: string;
|
|
25
|
+
plans: PreviewObject.Raw[];
|
|
26
|
+
plural_name?: string | null;
|
|
27
|
+
singular_name?: string | null;
|
|
28
|
+
trait?: EntityTraitDefinitionResponseData.Raw | null;
|
|
29
|
+
trait_id?: string | null;
|
|
30
|
+
updated_at: string;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { FeatureResponseData } from "./FeatureResponseData";
|
|
5
|
+
import { FlagType } from "./FlagType";
|
|
6
|
+
import { RuleView } from "./RuleView";
|
|
7
|
+
export declare const FlagView: core.serialization.ObjectSchema<serializers.FlagView.Raw, Schematic.FlagView>;
|
|
8
|
+
export declare namespace FlagView {
|
|
9
|
+
interface Raw {
|
|
10
|
+
account_id: string;
|
|
11
|
+
created_at: string;
|
|
12
|
+
default_value: boolean;
|
|
13
|
+
description: string;
|
|
14
|
+
feature?: FeatureResponseData.Raw | null;
|
|
15
|
+
feature_id?: string | null;
|
|
16
|
+
flag_type: FlagType.Raw;
|
|
17
|
+
id: string;
|
|
18
|
+
key: string;
|
|
19
|
+
last_checked_at?: string | null;
|
|
20
|
+
maintainer_id?: string | null;
|
|
21
|
+
name: string;
|
|
22
|
+
rules: RuleView.Raw[];
|
|
23
|
+
updated_at: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { InvoiceStatus } from "./InvoiceStatus";
|
|
4
5
|
export declare const InvoiceRequestBody: core.serialization.ObjectSchema<serializers.InvoiceRequestBody.Raw, Schematic.InvoiceRequestBody>;
|
|
5
6
|
export declare namespace InvoiceRequestBody {
|
|
6
7
|
interface Raw {
|
|
@@ -12,6 +13,7 @@ export declare namespace InvoiceRequestBody {
|
|
|
12
13
|
customer_external_id: string;
|
|
13
14
|
due_date?: string | null;
|
|
14
15
|
payment_method_external_id?: string | null;
|
|
16
|
+
status?: InvoiceStatus.Raw | null;
|
|
15
17
|
subscription_external_id?: string | null;
|
|
16
18
|
subtotal: number;
|
|
17
19
|
url?: string | null;
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { BillingProviderType } from "./BillingProviderType";
|
|
5
|
+
import { InvoiceStatus } from "./InvoiceStatus";
|
|
5
6
|
export declare const InvoiceResponseData: core.serialization.ObjectSchema<serializers.InvoiceResponseData.Raw, Schematic.InvoiceResponseData>;
|
|
6
7
|
export declare namespace InvoiceResponseData {
|
|
7
8
|
interface Raw {
|
|
@@ -19,6 +20,7 @@ export declare namespace InvoiceResponseData {
|
|
|
19
20
|
id: string;
|
|
20
21
|
payment_method_external_id?: string | null;
|
|
21
22
|
provider_type: BillingProviderType.Raw;
|
|
23
|
+
status?: InvoiceStatus.Raw | null;
|
|
22
24
|
subscription_external_id?: string | null;
|
|
23
25
|
subtotal: number;
|
|
24
26
|
updated_at: string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const InvoiceStatus: core.serialization.Schema<serializers.InvoiceStatus.Raw, Schematic.InvoiceStatus>;
|
|
5
|
+
export declare namespace InvoiceStatus {
|
|
6
|
+
type Raw = "draft" | "open" | "paid" | "uncollectible" | "void";
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
|
|
5
|
+
import { EntitlementType } from "./EntitlementType";
|
|
6
|
+
export declare const LimitTimeSeriesPointResponseData: core.serialization.ObjectSchema<serializers.LimitTimeSeriesPointResponseData.Raw, Schematic.LimitTimeSeriesPointResponseData>;
|
|
7
|
+
export declare namespace LimitTimeSeriesPointResponseData {
|
|
8
|
+
interface Raw {
|
|
9
|
+
effective_at: string;
|
|
10
|
+
is_soft_limit: boolean;
|
|
11
|
+
limit_source: EntitlementType.Raw;
|
|
12
|
+
limit_value?: number | null;
|
|
13
|
+
plan_id?: string | null;
|
|
14
|
+
price_behavior?: EntitlementPriceBehavior.Raw | null;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const PlanBundleAction: core.serialization.Schema<serializers.PlanBundleAction.Raw, Schematic.PlanBundleAction>;
|
|
5
|
+
export declare namespace PlanBundleAction {
|
|
6
|
+
type Raw = "create" | "update" | "delete";
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CreateBillingPlanCreditGrantRequestBody } from "./CreateBillingPlanCreditGrantRequestBody";
|
|
5
|
+
import { DeleteBillingPlanCreditGrantRequestBody } from "./DeleteBillingPlanCreditGrantRequestBody";
|
|
6
|
+
import { PlanBundleAction } from "./PlanBundleAction";
|
|
7
|
+
import { UpdateBillingPlanCreditGrantRequestBody } from "./UpdateBillingPlanCreditGrantRequestBody";
|
|
8
|
+
export declare const PlanBundleCreditGrantRequestBody: core.serialization.ObjectSchema<serializers.PlanBundleCreditGrantRequestBody.Raw, Schematic.PlanBundleCreditGrantRequestBody>;
|
|
9
|
+
export declare namespace PlanBundleCreditGrantRequestBody {
|
|
10
|
+
interface Raw {
|
|
11
|
+
action: PlanBundleAction.Raw;
|
|
12
|
+
create_req?: CreateBillingPlanCreditGrantRequestBody.Raw | null;
|
|
13
|
+
credit_grant_id?: string | null;
|
|
14
|
+
delete_req?: DeleteBillingPlanCreditGrantRequestBody.Raw | null;
|
|
15
|
+
update_req?: UpdateBillingPlanCreditGrantRequestBody.Raw | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CreateEntitlementInBundleRequestBody } from "./CreateEntitlementInBundleRequestBody";
|
|
5
|
+
import { PlanBundleAction } from "./PlanBundleAction";
|
|
6
|
+
export declare const PlanBundleEntitlementRequestBody: core.serialization.ObjectSchema<serializers.PlanBundleEntitlementRequestBody.Raw, Schematic.PlanBundleEntitlementRequestBody>;
|
|
7
|
+
export declare namespace PlanBundleEntitlementRequestBody {
|
|
8
|
+
interface Raw {
|
|
9
|
+
action: PlanBundleAction.Raw;
|
|
10
|
+
entitlement_id?: string | null;
|
|
11
|
+
req?: CreateEntitlementInBundleRequestBody.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingPlanCreditGrantResponseData } from "./BillingPlanCreditGrantResponseData";
|
|
5
|
+
import { BillingProductPlanResponseData } from "./BillingProductPlanResponseData";
|
|
6
|
+
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
7
|
+
import { PlanResponseData } from "./PlanResponseData";
|
|
8
|
+
import { PlanTraitResponseData } from "./PlanTraitResponseData";
|
|
9
|
+
export declare const PlanBundleResponseData: core.serialization.ObjectSchema<serializers.PlanBundleResponseData.Raw, Schematic.PlanBundleResponseData>;
|
|
10
|
+
export declare namespace PlanBundleResponseData {
|
|
11
|
+
interface Raw {
|
|
12
|
+
billing_product?: BillingProductPlanResponseData.Raw | null;
|
|
13
|
+
credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
|
|
14
|
+
entitlements?: PlanEntitlementResponseData.Raw[] | null;
|
|
15
|
+
plan?: PlanResponseData.Raw | null;
|
|
16
|
+
traits?: PlanTraitResponseData.Raw[] | null;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const PlanChangeAction: core.serialization.Schema<serializers.PlanChangeAction.Raw, Schematic.PlanChangeAction>;
|
|
5
5
|
export declare namespace PlanChangeAction {
|
|
6
|
-
type Raw = "checkout" | "company_upsert" | "fallback_plan" | "manage_plan" | "migration" | "plan_billing_product_changed" | "plan_deleted" | "plan_trait_change" | "quickstart" | "subscription_change";
|
|
6
|
+
type Raw = "checkout" | "company_upsert" | "fallback_plan" | "manage_plan" | "migration" | "plan_billing_product_changed" | "plan_deleted" | "plan_trait_change" | "plan_version_migration" | "quickstart" | "subscription_change";
|
|
7
7
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
-
import {
|
|
4
|
+
import { ActorType } from "./ActorType";
|
|
5
5
|
import { ApiKeyResponseData } from "./ApiKeyResponseData";
|
|
6
|
+
import { AuditLogListResponseData } from "./AuditLogListResponseData";
|
|
6
7
|
import { CompanyResponseData } from "./CompanyResponseData";
|
|
7
8
|
import { PlanChangeAction } from "./PlanChangeAction";
|
|
8
|
-
import { PlanChangeActorType } from "./PlanChangeActorType";
|
|
9
9
|
import { PlanChangeBasePlanAction } from "./PlanChangeBasePlanAction";
|
|
10
10
|
import { PlanChangeSubscriptionAction } from "./PlanChangeSubscriptionAction";
|
|
11
11
|
import { PlanSnapshotView } from "./PlanSnapshotView";
|
|
@@ -14,11 +14,11 @@ export declare const PlanChangeResponseData: core.serialization.ObjectSchema<ser
|
|
|
14
14
|
export declare namespace PlanChangeResponseData {
|
|
15
15
|
interface Raw {
|
|
16
16
|
action: PlanChangeAction.Raw;
|
|
17
|
-
actor_type:
|
|
17
|
+
actor_type: ActorType.Raw;
|
|
18
18
|
add_ons_added: PlanSnapshotView.Raw[];
|
|
19
19
|
add_ons_removed: PlanSnapshotView.Raw[];
|
|
20
20
|
api_key?: ApiKeyResponseData.Raw | null;
|
|
21
|
-
|
|
21
|
+
audit_log?: AuditLogListResponseData.Raw | null;
|
|
22
22
|
base_plan?: PlanSnapshotView.Raw | null;
|
|
23
23
|
base_plan_action?: PlanChangeBasePlanAction.Raw | null;
|
|
24
24
|
company?: CompanyResponseData.Raw | null;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const PlanChangeSubscriptionAction: core.serialization.Schema<serializers.PlanChangeSubscriptionAction.Raw, Schematic.PlanChangeSubscriptionAction>;
|
|
5
5
|
export declare namespace PlanChangeSubscriptionAction {
|
|
6
|
-
type Raw = "downgrade" | "invalid" | "subscribe" | "unsubscribe" | "upgrade" | "upgrade_trial";
|
|
6
|
+
type Raw = "adjustment" | "downgrade" | "invalid" | "subscribe" | "unsubscribe" | "upgrade" | "upgrade_trial";
|
|
7
7
|
}
|
|
@@ -3,9 +3,11 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { BillingCreditExpiryType } from "./BillingCreditExpiryType";
|
|
5
5
|
import { BillingCreditExpiryUnit } from "./BillingCreditExpiryUnit";
|
|
6
|
+
import { BillingCreditView } from "./BillingCreditView";
|
|
6
7
|
import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
|
|
7
8
|
import { BillingPlanCreditGrantResetStart } from "./BillingPlanCreditGrantResetStart";
|
|
8
9
|
import { BillingPlanCreditGrantResetType } from "./BillingPlanCreditGrantResetType";
|
|
10
|
+
import { GenericPreviewObject } from "./GenericPreviewObject";
|
|
9
11
|
export declare const PlanCreditGrantView: core.serialization.ObjectSchema<serializers.PlanCreditGrantView.Raw, Schematic.PlanCreditGrantView>;
|
|
10
12
|
export declare namespace PlanCreditGrantView {
|
|
11
13
|
interface Raw {
|
|
@@ -17,6 +19,7 @@ export declare namespace PlanCreditGrantView {
|
|
|
17
19
|
billing_credit_auto_topup_expiry_unit_count?: number | null;
|
|
18
20
|
billing_credit_auto_topup_threshold_percent?: number | null;
|
|
19
21
|
created_at: string;
|
|
22
|
+
credit?: BillingCreditView.Raw | null;
|
|
20
23
|
credit_amount: number;
|
|
21
24
|
credit_description: string;
|
|
22
25
|
credit_icon?: string | null;
|
|
@@ -26,11 +29,12 @@ export declare namespace PlanCreditGrantView {
|
|
|
26
29
|
expiry_unit?: BillingCreditExpiryUnit.Raw | null;
|
|
27
30
|
expiry_unit_count?: number | null;
|
|
28
31
|
id: string;
|
|
32
|
+
plan?: GenericPreviewObject.Raw | null;
|
|
29
33
|
plan_id: string;
|
|
30
|
-
|
|
34
|
+
plan_version_id?: string | null;
|
|
31
35
|
plural_name?: string | null;
|
|
32
|
-
reset_cadence
|
|
33
|
-
reset_start
|
|
36
|
+
reset_cadence?: BillingPlanCreditGrantResetCadence.Raw | null;
|
|
37
|
+
reset_start?: BillingPlanCreditGrantResetStart.Raw | null;
|
|
34
38
|
reset_type: BillingPlanCreditGrantResetType.Raw;
|
|
35
39
|
singular_name?: string | null;
|
|
36
40
|
updated_at: string;
|
|
@@ -8,9 +8,11 @@ import { ChargeType } from "./ChargeType";
|
|
|
8
8
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
9
9
|
import { PlanControlledByType } from "./PlanControlledByType";
|
|
10
10
|
import { PlanType } from "./PlanType";
|
|
11
|
+
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
11
12
|
export declare const PlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanDetailResponseData.Raw, Schematic.PlanDetailResponseData>;
|
|
12
13
|
export declare namespace PlanDetailResponseData {
|
|
13
14
|
interface Raw {
|
|
15
|
+
active_version?: PlanVersionResponseData.Raw | null;
|
|
14
16
|
audience_type?: string | null;
|
|
15
17
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
16
18
|
charge_type: ChargeType.Raw;
|
|
@@ -18,6 +20,7 @@ export declare namespace PlanDetailResponseData {
|
|
|
18
20
|
controlled_by: PlanControlledByType.Raw;
|
|
19
21
|
created_at: string;
|
|
20
22
|
description: string;
|
|
23
|
+
draft_version?: PlanVersionResponseData.Raw | null;
|
|
21
24
|
features: FeatureDetailResponseData.Raw[];
|
|
22
25
|
icon: string;
|
|
23
26
|
id: string;
|
|
@@ -31,6 +34,7 @@ export declare namespace PlanDetailResponseData {
|
|
|
31
34
|
plan_type: PlanType.Raw;
|
|
32
35
|
trial_days?: number | null;
|
|
33
36
|
updated_at: string;
|
|
37
|
+
versions: PlanVersionResponseData.Raw[];
|
|
34
38
|
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
35
39
|
}
|
|
36
40
|
}
|
|
@@ -34,6 +34,8 @@ export declare namespace PlanGroupDetailResponseData {
|
|
|
34
34
|
prevent_self_service_downgrade_button_text?: string | null;
|
|
35
35
|
prevent_self_service_downgrade_url?: string | null;
|
|
36
36
|
proration_behavior: string;
|
|
37
|
+
scheduled_downgrade_behavior?: string | null;
|
|
38
|
+
scheduled_downgrade_prevent_when_over_limit?: boolean | null;
|
|
37
39
|
show_as_monthly_prices: boolean;
|
|
38
40
|
show_credits: boolean;
|
|
39
41
|
show_period_toggle: boolean;
|
|
@@ -10,9 +10,11 @@ import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
|
10
10
|
import { PlanControlledByType } from "./PlanControlledByType";
|
|
11
11
|
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
12
12
|
import { PlanType } from "./PlanType";
|
|
13
|
+
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
13
14
|
export declare const PlanGroupPlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanGroupPlanDetailResponseData.Raw, Schematic.PlanGroupPlanDetailResponseData>;
|
|
14
15
|
export declare namespace PlanGroupPlanDetailResponseData {
|
|
15
16
|
interface Raw {
|
|
17
|
+
active_version?: PlanVersionResponseData.Raw | null;
|
|
16
18
|
audience_type?: string | null;
|
|
17
19
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
18
20
|
charge_type: ChargeType.Raw;
|
|
@@ -22,6 +24,7 @@ export declare namespace PlanGroupPlanDetailResponseData {
|
|
|
22
24
|
created_at: string;
|
|
23
25
|
custom_plan_config?: CustomPlanViewConfigResponseData.Raw | null;
|
|
24
26
|
description: string;
|
|
27
|
+
draft_version?: PlanVersionResponseData.Raw | null;
|
|
25
28
|
entitlements: PlanEntitlementResponseData.Raw[];
|
|
26
29
|
features: FeatureDetailResponseData.Raw[];
|
|
27
30
|
icon: string;
|
|
@@ -37,6 +40,7 @@ export declare namespace PlanGroupPlanDetailResponseData {
|
|
|
37
40
|
plan_type: PlanType.Raw;
|
|
38
41
|
trial_days?: number | null;
|
|
39
42
|
updated_at: string;
|
|
43
|
+
versions: PlanVersionResponseData.Raw[];
|
|
40
44
|
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
41
45
|
}
|
|
42
46
|
}
|
|
@@ -24,6 +24,8 @@ export declare namespace PlanGroupResponseData {
|
|
|
24
24
|
prevent_self_service_downgrade_button_text?: string | null;
|
|
25
25
|
prevent_self_service_downgrade_url?: string | null;
|
|
26
26
|
proration_behavior: string;
|
|
27
|
+
scheduled_downgrade_behavior?: string | null;
|
|
28
|
+
scheduled_downgrade_prevent_when_over_limit?: boolean | null;
|
|
27
29
|
show_as_monthly_prices: boolean;
|
|
28
30
|
show_credits: boolean;
|
|
29
31
|
show_period_toggle: boolean;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { PlanVersionCompanyMigrationStatus } from "./PlanVersionCompanyMigrationStatus";
|
|
5
|
+
export declare const PlanVersionCompanyMigrationResponseData: core.serialization.ObjectSchema<serializers.PlanVersionCompanyMigrationResponseData.Raw, Schematic.PlanVersionCompanyMigrationResponseData>;
|
|
6
|
+
export declare namespace PlanVersionCompanyMigrationResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
company_id: string;
|
|
9
|
+
company_name: string;
|
|
10
|
+
completed_at?: string | null;
|
|
11
|
+
created_at: string;
|
|
12
|
+
error?: string | null;
|
|
13
|
+
id: string;
|
|
14
|
+
migration_id: string;
|
|
15
|
+
plan_version_id_from?: string | null;
|
|
16
|
+
started_at?: string | null;
|
|
17
|
+
status: PlanVersionCompanyMigrationStatus.Raw;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const PlanVersionCompanyMigrationStatus: core.serialization.Schema<serializers.PlanVersionCompanyMigrationStatus.Raw, Schematic.PlanVersionCompanyMigrationStatus>;
|
|
5
|
+
export declare namespace PlanVersionCompanyMigrationStatus {
|
|
6
|
+
type Raw = "completed" | "failed" | "in_progress" | "pending" | "skipped";
|
|
7
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { PlanVersionMigrationStatus } from "./PlanVersionMigrationStatus";
|
|
5
|
+
import { PlanVersionMigrationStrategy } from "./PlanVersionMigrationStrategy";
|
|
6
|
+
export declare const PlanVersionMigrationResponseData: core.serialization.ObjectSchema<serializers.PlanVersionMigrationResponseData.Raw, Schematic.PlanVersionMigrationResponseData>;
|
|
7
|
+
export declare namespace PlanVersionMigrationResponseData {
|
|
8
|
+
interface Raw {
|
|
9
|
+
completed_at?: string | null;
|
|
10
|
+
completed_companies: number;
|
|
11
|
+
created_at: string;
|
|
12
|
+
error?: string | null;
|
|
13
|
+
failed_companies: number;
|
|
14
|
+
id: string;
|
|
15
|
+
plan_id: string;
|
|
16
|
+
plan_version_id_from?: string | null;
|
|
17
|
+
plan_version_id_to: string;
|
|
18
|
+
skipped_companies: number;
|
|
19
|
+
started_at?: string | null;
|
|
20
|
+
status: PlanVersionMigrationStatus.Raw;
|
|
21
|
+
strategy: PlanVersionMigrationStrategy.Raw;
|
|
22
|
+
total_companies: number;
|
|
23
|
+
updated_at: string;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const PlanVersionMigrationStatus: core.serialization.Schema<serializers.PlanVersionMigrationStatus.Raw, Schematic.PlanVersionMigrationStatus>;
|
|
5
|
+
export declare namespace PlanVersionMigrationStatus {
|
|
6
|
+
type Raw = "completed" | "failed" | "in_progress" | "pending";
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const PlanVersionMigrationStrategy: core.serialization.Schema<serializers.PlanVersionMigrationStrategy.Raw, Schematic.PlanVersionMigrationStrategy>;
|
|
5
|
+
export declare namespace PlanVersionMigrationStrategy {
|
|
6
|
+
type Raw = "immediate" | "leave";
|
|
7
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { PlanType } from "./PlanType";
|
|
5
|
+
import { PlanVersionStatus } from "./PlanVersionStatus";
|
|
6
|
+
export declare const PlanVersionResponseData: core.serialization.ObjectSchema<serializers.PlanVersionResponseData.Raw, Schematic.PlanVersionResponseData>;
|
|
7
|
+
export declare namespace PlanVersionResponseData {
|
|
8
|
+
interface Raw {
|
|
9
|
+
created_at: string;
|
|
10
|
+
description: string;
|
|
11
|
+
environment_id: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
id: string;
|
|
14
|
+
name: string;
|
|
15
|
+
original_plan_id?: string | null;
|
|
16
|
+
plan_type: PlanType.Raw;
|
|
17
|
+
status: PlanVersionStatus.Raw;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
version: number;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const PlanVersionStatus: core.serialization.Schema<serializers.PlanVersionStatus.Raw, Schematic.PlanVersionStatus>;
|
|
5
|
+
export declare namespace PlanVersionStatus {
|
|
6
|
+
type Raw = "published" | "draft" | "archived";
|
|
7
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
5
|
+
import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
6
|
+
import { ChargeType } from "./ChargeType";
|
|
7
|
+
import { CustomPlanConfig } from "./CustomPlanConfig";
|
|
8
|
+
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
9
|
+
import { PlanControlledByType } from "./PlanControlledByType";
|
|
10
|
+
import { PlanCreditGrantView } from "./PlanCreditGrantView";
|
|
11
|
+
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
12
|
+
import { PlanType } from "./PlanType";
|
|
13
|
+
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
14
|
+
export declare const PlanViewPublicResponseData: core.serialization.ObjectSchema<serializers.PlanViewPublicResponseData.Raw, Schematic.PlanViewPublicResponseData>;
|
|
15
|
+
export declare namespace PlanViewPublicResponseData {
|
|
16
|
+
interface Raw {
|
|
17
|
+
active_version?: PlanVersionResponseData.Raw | null;
|
|
18
|
+
audience_type?: string | null;
|
|
19
|
+
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
20
|
+
charge_type: ChargeType.Raw;
|
|
21
|
+
company_count: number;
|
|
22
|
+
compatible_plan_ids: string[];
|
|
23
|
+
controlled_by: PlanControlledByType.Raw;
|
|
24
|
+
created_at: string;
|
|
25
|
+
custom: boolean;
|
|
26
|
+
custom_plan_config?: CustomPlanConfig.Raw | null;
|
|
27
|
+
description: string;
|
|
28
|
+
draft_version?: PlanVersionResponseData.Raw | null;
|
|
29
|
+
entitlements: PlanEntitlementResponseData.Raw[];
|
|
30
|
+
features: FeatureDetailResponseData.Raw[];
|
|
31
|
+
icon: string;
|
|
32
|
+
id: string;
|
|
33
|
+
included_credit_grants: PlanCreditGrantView.Raw[];
|
|
34
|
+
is_custom: boolean;
|
|
35
|
+
is_default: boolean;
|
|
36
|
+
is_free: boolean;
|
|
37
|
+
is_trialable: boolean;
|
|
38
|
+
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
39
|
+
name: string;
|
|
40
|
+
one_time_price?: BillingPriceResponseData.Raw | null;
|
|
41
|
+
plan_type: PlanType.Raw;
|
|
42
|
+
trial_days?: number | null;
|
|
43
|
+
updated_at: string;
|
|
44
|
+
versions: PlanVersionResponseData.Raw[];
|
|
45
|
+
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -9,12 +9,14 @@ export declare namespace PreviewSubscriptionChangeResponseData {
|
|
|
9
9
|
amount_off: number;
|
|
10
10
|
due_now: number;
|
|
11
11
|
finance?: PreviewSubscriptionFinanceResponseData.Raw | null;
|
|
12
|
+
is_scheduled_downgrade: boolean;
|
|
12
13
|
new_charges: number;
|
|
13
14
|
payment_method_required: boolean;
|
|
14
15
|
percent_off: number;
|
|
15
16
|
period_start: string;
|
|
16
17
|
promo_code_applied: boolean;
|
|
17
18
|
proration: number;
|
|
19
|
+
scheduled_change_time?: string | null;
|
|
18
20
|
trial_end?: string | null;
|
|
19
21
|
usage_violations: FeatureUsageResponseData.Raw[];
|
|
20
22
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CompatiblePlans } from "./CompatiblePlans";
|
|
5
|
+
import { ComponentCapabilities } from "./ComponentCapabilities";
|
|
6
|
+
import { ComponentDisplaySettings } from "./ComponentDisplaySettings";
|
|
7
|
+
import { PlanViewPublicResponseData } from "./PlanViewPublicResponseData";
|
|
8
|
+
export declare const PublicPlansResponseData: core.serialization.ObjectSchema<serializers.PublicPlansResponseData.Raw, Schematic.PublicPlansResponseData>;
|
|
9
|
+
export declare namespace PublicPlansResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
active_add_ons: PlanViewPublicResponseData.Raw[];
|
|
12
|
+
active_plans: PlanViewPublicResponseData.Raw[];
|
|
13
|
+
add_on_compatibilities: CompatiblePlans.Raw[];
|
|
14
|
+
capabilities?: ComponentCapabilities.Raw | null;
|
|
15
|
+
display_settings: ComponentDisplaySettings.Raw;
|
|
16
|
+
show_as_monthly_prices: boolean;
|
|
17
|
+
show_credits: boolean;
|
|
18
|
+
show_period_toggle: boolean;
|
|
19
|
+
show_zero_price_as_free: boolean;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { ConditionGroupView } from "./ConditionGroupView";
|
|
5
|
+
import { ConditionView } from "./ConditionView";
|
|
6
|
+
export declare const RuleView: core.serialization.ObjectSchema<serializers.RuleView.Raw, Schematic.RuleView>;
|
|
7
|
+
export declare namespace RuleView {
|
|
8
|
+
interface Raw {
|
|
9
|
+
account_id: string;
|
|
10
|
+
condition_groups: ConditionGroupView.Raw[];
|
|
11
|
+
conditions: ConditionView.Raw[];
|
|
12
|
+
created_at: string;
|
|
13
|
+
environment_id: string;
|
|
14
|
+
flag_id?: string | null;
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
plan_version_id?: string | null;
|
|
18
|
+
priority: number;
|
|
19
|
+
rule_type: string;
|
|
20
|
+
updated_at: string;
|
|
21
|
+
value: boolean;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const RulesEngineSchemaVersion: core.serialization.Schema<serializers.RulesEngineSchemaVersion.Raw, Schematic.RulesEngineSchemaVersion>;
|
|
5
5
|
export declare namespace RulesEngineSchemaVersion {
|
|
6
|
-
type Raw = "
|
|
6
|
+
type Raw = "v0f048dd3" | "placeholder-for-fern-compatibility";
|
|
7
7
|
}
|
|
@@ -3,10 +3,12 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { RulesengineCheckFlagResultFeatureUsagePeriod } from "./RulesengineCheckFlagResultFeatureUsagePeriod";
|
|
5
5
|
import { RulesengineCheckFlagResultRuleType } from "./RulesengineCheckFlagResultRuleType";
|
|
6
|
+
import { RulesengineFeatureEntitlement } from "./RulesengineFeatureEntitlement";
|
|
6
7
|
export declare const RulesengineCheckFlagResult: core.serialization.ObjectSchema<serializers.RulesengineCheckFlagResult.Raw, Schematic.RulesengineCheckFlagResult>;
|
|
7
8
|
export declare namespace RulesengineCheckFlagResult {
|
|
8
9
|
interface Raw {
|
|
9
10
|
company_id?: string | null;
|
|
11
|
+
entitlement?: RulesengineFeatureEntitlement.Raw | null;
|
|
10
12
|
err?: string | null;
|
|
11
13
|
feature_allocation?: number | null;
|
|
12
14
|
feature_usage?: number | null;
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { RulesengineCompanyMetric } from "./RulesengineCompanyMetric";
|
|
5
|
+
import { RulesengineFeatureEntitlement } from "./RulesengineFeatureEntitlement";
|
|
5
6
|
import { RulesengineRule } from "./RulesengineRule";
|
|
6
7
|
import { RulesengineSubscription } from "./RulesengineSubscription";
|
|
7
8
|
import { RulesengineTrait } from "./RulesengineTrait";
|
|
@@ -12,12 +13,13 @@ export declare namespace RulesengineCompany {
|
|
|
12
13
|
base_plan_id?: string | null;
|
|
13
14
|
billing_product_ids: string[];
|
|
14
15
|
credit_balances: Record<string, number>;
|
|
15
|
-
|
|
16
|
+
entitlements?: RulesengineFeatureEntitlement.Raw[] | null;
|
|
16
17
|
environment_id: string;
|
|
17
18
|
id: string;
|
|
18
19
|
keys: Record<string, string>;
|
|
19
20
|
metrics: RulesengineCompanyMetric.Raw[];
|
|
20
21
|
plan_ids: string[];
|
|
22
|
+
plan_version_ids: string[];
|
|
21
23
|
rules: RulesengineRule.Raw[];
|
|
22
24
|
subscription?: RulesengineSubscription.Raw | null;
|
|
23
25
|
traits: RulesengineTrait.Raw[];
|