@schematichq/schematic-typescript-node 1.2.1 → 1.2.3
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 +114 -0
- package/dist/Client.d.ts +2 -2
- package/dist/api/resources/accesstokens/client/Client.d.ts +3 -3
- package/dist/api/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +1 -3
- package/dist/api/resources/accounts/client/Client.d.ts +29 -8
- package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.d.ts +4 -1
- package/dist/api/resources/accounts/client/requests/CountApiRequestsRequest.d.ts +7 -1
- package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.d.ts +4 -1
- package/dist/api/resources/accounts/client/requests/ListApiRequestsRequest.d.ts +7 -1
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +4 -1
- package/dist/api/resources/accounts/types/ListApiKeysResponse.d.ts +0 -1
- package/dist/api/resources/accounts/types/ListApiRequestsResponse.d.ts +0 -1
- package/dist/api/resources/accounts/types/ListEnvironmentsResponse.d.ts +0 -1
- package/dist/api/resources/billing/client/Client.d.ts +87 -15
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +12 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +7 -1
- package/dist/api/resources/billing/client/requests/{CreateBillingSubscriptionsRequestBody.d.ts → CreateBillingSubscriptionRequestBody.d.ts} +3 -2
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +12 -1
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +6 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +7 -1
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +5 -1
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +12 -1
- package/dist/api/resources/billing/client/requests/SearchBillingPricesRequest.d.ts +28 -3
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -1
- package/dist/api/resources/billing/types/CreateBillingSubscriptionRequestBodyTrialEndSetting.d.ts +8 -0
- package/dist/api/resources/billing/types/ListBillingProductsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListCouponsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListCustomersWithSubscriptionsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListMetersResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/ListProductPricesResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/SearchBillingPricesParams.d.ts +7 -0
- package/dist/api/resources/billing/types/SearchBillingPricesResponse.d.ts +0 -1
- package/dist/api/resources/billing/types/index.d.ts +2 -2
- package/dist/api/resources/checkout/client/Client.d.ts +59 -3
- package/dist/api/resources/checkout/types/CheckoutInternalResponse.d.ts +1 -1
- package/dist/api/resources/checkout/types/ManagePlanResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/PreviewManagePlanResponse.d.ts +9 -0
- package/dist/api/resources/checkout/types/index.d.ts +2 -0
- package/dist/api/resources/companies/client/Client.d.ts +132 -19
- package/dist/api/resources/companies/client/requests/CountCompaniesForAdvancedFilterRequest.d.ts +15 -2
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +9 -1
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +5 -1
- package/dist/api/resources/companies/client/requests/GetActiveDealsRequest.d.ts +3 -1
- package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.d.ts +4 -1
- package/dist/api/resources/companies/client/requests/ListCompaniesForAdvancedFilterRequest.d.ts +15 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +9 -1
- package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +6 -1
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +7 -1
- package/dist/api/resources/companies/client/requests/UpdatePlanTraitBulkRequestBody.d.ts +18 -0
- package/dist/api/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/api/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +3 -1
- package/dist/api/resources/companies/types/GetActiveCompanySubscriptionResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/GetActiveDealsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/GetEntityTraitValuesResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +3 -1
- package/dist/api/resources/companies/types/ListCompaniesForAdvancedFilterResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListCompaniesResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListCompanyMembershipsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListEntityKeyDefinitionsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListEntityTraitDefinitionsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListPlanTraitsResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/ListUsersResponse.d.ts +0 -1
- package/dist/api/resources/companies/types/UpdatePlanTraitsBulkResponse.d.ts +9 -0
- package/dist/api/resources/companies/types/index.d.ts +1 -0
- package/dist/api/resources/components/client/Client.d.ts +17 -6
- package/dist/api/resources/components/client/requests/CountComponentsRequest.d.ts +5 -1
- package/dist/api/resources/components/client/requests/ListComponentsRequest.d.ts +5 -1
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +4 -1
- package/dist/api/resources/components/types/ListComponentsResponse.d.ts +0 -1
- package/dist/api/resources/credits/client/Client.d.ts +104 -12
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +6 -1
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +7 -1
- package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +33 -0
- package/dist/api/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +4 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +5 -0
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +33 -0
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +6 -1
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +7 -1
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +7 -1
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +5 -1
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +2 -0
- package/dist/api/resources/credits/types/CountCreditLedgerParams.d.ts +19 -0
- package/dist/api/resources/credits/types/CountCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/CountCreditLedgerResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/CountCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +11 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetType.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCompanyCreditGrantExpiryType.d.ts +11 -0
- package/dist/api/resources/credits/types/CreateCompanyCreditGrantExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +5 -2
- package/dist/api/resources/credits/types/CreateCreditBundleRequestBodyExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +19 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +9 -0
- package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/api/resources/credits/types/ListBillingCreditsResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListBillingPlanCreditGrantsResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListCompanyGrantsResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListCreditBundlesResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/ListGrantsForCreditResponse.d.ts +0 -1
- package/dist/api/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryType.d.ts +5 -2
- package/dist/api/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryUnit.d.ts +8 -0
- package/dist/api/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +2 -1
- package/dist/api/resources/credits/types/index.d.ts +15 -0
- package/dist/api/resources/crm/client/Client.d.ts +8 -4
- package/dist/api/resources/crm/client/requests/ListCrmProductsRequest.d.ts +5 -1
- package/dist/api/resources/crm/types/ListCrmProductsResponse.d.ts +0 -1
- package/dist/api/resources/dataexports/client/Client.d.ts +3 -3
- package/dist/api/resources/entitlements/client/Client.d.ts +65 -13
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +7 -1
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +7 -1
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.d.ts +4 -1
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +8 -1
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListFeatureCompaniesResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListFeatureUsageResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListFeatureUsersResponse.d.ts +0 -1
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsResponse.d.ts +0 -1
- package/dist/api/resources/events/client/Client.d.ts +16 -5
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +5 -1
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +8 -1
- package/dist/api/resources/events/types/GetEventSummariesResponse.d.ts +0 -1
- package/dist/api/resources/events/types/ListEventsResponse.d.ts +0 -1
- package/dist/api/resources/features/client/Client.d.ts +31 -7
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +11 -1
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +9 -1
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +11 -1
- package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +9 -1
- package/dist/api/resources/features/types/CountFeaturesParams.d.ts +1 -0
- package/dist/api/resources/features/types/CountFlagsParams.d.ts +1 -0
- package/dist/api/resources/features/types/ListAudienceCompaniesResponse.d.ts +0 -1
- package/dist/api/resources/features/types/ListAudienceUsersResponse.d.ts +0 -1
- package/dist/api/resources/features/types/ListFeaturesParams.d.ts +1 -0
- package/dist/api/resources/features/types/ListFeaturesResponse.d.ts +0 -1
- package/dist/api/resources/features/types/ListFlagsParams.d.ts +1 -0
- package/dist/api/resources/features/types/ListFlagsResponse.d.ts +0 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +21 -5
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +22 -1
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +22 -1
- package/dist/api/resources/plans/client/Client.d.ts +50 -5
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +31 -1
- package/dist/api/resources/plans/client/requests/ListPlanIssuesRequest.d.ts +12 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +31 -1
- package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +8 -0
- package/dist/api/resources/plans/types/ListPlanIssuesParams.d.ts +9 -0
- package/dist/api/resources/plans/types/ListPlanIssuesResponse.d.ts +9 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +8 -0
- package/dist/api/resources/plans/types/ListPlansResponse.d.ts +0 -1
- package/dist/api/resources/plans/types/index.d.ts +2 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +25 -7
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +6 -1
- package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.d.ts +5 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +6 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +5 -1
- package/dist/api/resources/webhooks/types/ListWebhookEventsResponse.d.ts +0 -1
- package/dist/api/resources/webhooks/types/ListWebhooksResponse.d.ts +0 -1
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +0 -3
- package/dist/api/types/ApiKeyRequestResponseData.d.ts +0 -3
- package/dist/api/types/ApiKeyResponseData.d.ts +0 -3
- package/dist/api/types/BillingCreditBundleResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
- package/dist/api/types/BillingCreditLedgerResponseData.d.ts +11 -0
- package/dist/api/types/BillingCustomerResponseData.d.ts +0 -3
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
- package/dist/api/types/BillingProductDetailResponseData.d.ts +2 -1
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +2 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +0 -3
- package/dist/api/types/BillingProductPricing.d.ts +2 -0
- package/dist/api/types/BillingProductResponseData.d.ts +2 -1
- package/dist/api/types/BillingSubscriptionView.d.ts +0 -3
- package/dist/api/types/CheckFlagResponseData.d.ts +0 -3
- package/dist/api/types/CheckFlagsResponseData.d.ts +0 -3
- package/dist/api/types/CheckoutDataResponseData.d.ts +0 -3
- package/dist/api/types/CheckoutSettingsResponseData.d.ts +8 -0
- package/dist/api/types/CheckoutSubscription.d.ts +25 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyLedgerResponseData.d.ts +8 -0
- package/dist/api/types/CompanyOverrideNoteResponseData.d.ts +11 -0
- package/dist/api/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyViewWithFeatureUsageResponseData.d.ts +1 -0
- package/dist/api/types/ComponentCheckoutSettings.d.ts +9 -0
- package/dist/api/types/ComponentHydrateResponseData.d.ts +4 -0
- package/dist/api/types/ComponentPreviewResponseData.d.ts +4 -3
- package/dist/api/types/ComponentResponseData.d.ts +0 -3
- package/dist/api/types/Condition.d.ts +21 -0
- package/dist/api/types/ConditionGroup.d.ts +7 -0
- package/dist/api/types/CountResponse.d.ts +2 -4
- package/dist/api/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/api/types/CreditGrantDetail.d.ts +10 -0
- package/dist/api/types/CreditGrantDetailGrantReason.d.ts +9 -0
- package/dist/api/types/CreditLedgerEnrichedEntryResponseData.d.ts +27 -0
- package/dist/api/types/CreditUsage.d.ts +14 -0
- package/dist/api/types/CreditUsageResponseData.d.ts +14 -0
- package/dist/api/types/CrmDealResponseData.d.ts +0 -3
- package/dist/api/types/CrmLineItemResponseData.d.ts +0 -3
- package/dist/api/types/CrmProductResponseData.d.ts +0 -3
- package/dist/api/types/DataExportResponseData.d.ts +0 -3
- package/dist/api/types/EnvironmentDetailResponseData.d.ts +0 -3
- package/dist/api/types/EnvironmentResponseData.d.ts +0 -3
- package/dist/api/types/FeatureCompanyResponseData.d.ts +34 -1
- package/dist/api/types/FeatureCompanyResponseDataCreditGrantReason.d.ts +12 -0
- package/dist/api/types/FeatureCompanyUserResponseDataAllocationType.d.ts +2 -1
- package/dist/api/types/FeatureLedgerResponseData.d.ts +9 -0
- package/dist/api/types/FeatureUsageDataResponseData.d.ts +8 -0
- package/dist/api/types/FeatureUsageResponseData.d.ts +25 -0
- package/dist/api/types/FeatureUsageResponseDataCreditGrantReason.d.ts +12 -0
- package/dist/api/types/IssueTemporaryAccessTokenResponseData.d.ts +0 -3
- package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +7 -0
- package/dist/api/types/ManagePlanRequest.d.ts +15 -0
- package/dist/api/types/ManagePlanResponseResponseData.d.ts +8 -0
- package/dist/api/types/PlanAudienceDetailResponseData.d.ts +0 -3
- package/dist/api/types/PlanCreditGrantView.d.ts +4 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +16 -3
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +11 -3
- package/dist/api/types/PlanIssueResponseData.d.ts +9 -0
- package/dist/api/types/PlanSelection.d.ts +7 -0
- package/dist/api/types/PlanTraitResponseData.d.ts +0 -3
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +0 -3
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
- package/dist/api/types/RawEventBatchResponseData.d.ts +0 -3
- package/dist/api/types/Rule.d.ts +16 -0
- package/dist/api/types/RulesDetailResponseData.d.ts +0 -3
- package/dist/api/types/SegmentStatusResp.d.ts +0 -3
- package/dist/api/types/TraitDefinition.d.ts +8 -0
- package/dist/api/types/UpdatePlanTraitTraitRequestBody.d.ts +7 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/api/types/index.d.ts +24 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/accesstokens/client/requests/IssueTemporaryAccessTokenRequestBody.d.ts +0 -1
- package/dist/serialization/resources/billing/client/requests/{CreateBillingSubscriptionsRequestBody.d.ts → CreateBillingSubscriptionRequestBody.d.ts} +5 -4
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionRequestBodyTrialEndSetting.d.ts +10 -0
- package/dist/serialization/resources/billing/types/SearchBillingPricesParams.d.ts +4 -0
- package/dist/serialization/resources/billing/types/index.d.ts +2 -2
- package/dist/serialization/resources/checkout/types/CheckoutInternalResponse.d.ts +2 -2
- package/dist/serialization/resources/checkout/types/ManagePlanResponse.d.ts +14 -0
- package/dist/serialization/resources/checkout/types/PreviewManagePlanResponse.d.ts +14 -0
- package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
- package/dist/serialization/resources/companies/client/requests/UpdatePlanTraitBulkRequestBody.d.ts +14 -0
- package/dist/serialization/resources/companies/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesForAdvancedFilterParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesForAdvancedFilterParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/UpdatePlanTraitsBulkResponse.d.ts +14 -0
- package/dist/serialization/resources/companies/types/index.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateBillingPlanCreditGrantRequestBody.d.ts +7 -0
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +6 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerParams.d.ts +20 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/CountCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateBillingPlanCreditGrantRequestBodyResetType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCompanyCreditGrantExpiryType.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCompanyCreditGrantExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryType.d.ts +1 -1
- package/dist/serialization/resources/credits/types/CreateCreditBundleRequestBodyExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +20 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerRequestPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +15 -0
- package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponseParamsPeriod.d.ts +10 -0
- package/dist/serialization/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryType.d.ts +1 -1
- package/dist/serialization/resources/credits/types/UpdateCreditBundleDetailsRequestBodyExpiryUnit.d.ts +10 -0
- package/dist/serialization/resources/credits/types/ZeroOutGrantRequestBodyReason.d.ts +1 -1
- package/dist/serialization/resources/credits/types/index.d.ts +15 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +13 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/serialization/resources/plans/types/ListPlanIssuesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListPlanIssuesResponse.d.ts +15 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/serialization/resources/plans/types/index.d.ts +2 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditBundleView.d.ts +1 -0
- package/dist/serialization/types/BillingCreditLedgerResponseData.d.ts +17 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +7 -0
- package/dist/serialization/types/BillingProductDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -0
- package/dist/serialization/types/BillingProductResponseData.d.ts +1 -1
- package/dist/serialization/types/CheckoutSettingsResponseData.d.ts +14 -0
- package/dist/serialization/types/CheckoutSubscription.d.ts +31 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyLedgerResponseData.d.ts +14 -0
- package/dist/serialization/types/CompanyOverrideNoteResponseData.d.ts +17 -0
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyViewWithFeatureUsageResponseData.d.ts +2 -0
- package/dist/serialization/types/ComponentCheckoutSettings.d.ts +15 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +5 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +5 -0
- package/dist/serialization/types/Condition.d.ts +27 -0
- package/dist/serialization/types/ConditionGroup.d.ts +13 -0
- package/dist/serialization/types/CountResponse.d.ts +1 -1
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -0
- package/dist/serialization/types/CreditGrantDetail.d.ts +16 -0
- package/dist/serialization/types/CreditGrantDetailGrantReason.d.ts +10 -0
- package/dist/serialization/types/CreditLedgerEnrichedEntryResponseData.d.ts +35 -0
- package/dist/serialization/types/CreditUsage.d.ts +20 -0
- package/dist/serialization/types/CreditUsageResponseData.d.ts +20 -0
- package/dist/serialization/types/FeatureCompanyResponseData.d.ts +28 -0
- package/dist/serialization/types/FeatureCompanyResponseDataCreditGrantReason.d.ts +10 -0
- package/dist/serialization/types/FeatureCompanyUserResponseDataAllocationType.d.ts +1 -1
- package/dist/serialization/types/FeatureLedgerResponseData.d.ts +15 -0
- package/dist/serialization/types/FeatureUsageDataResponseData.d.ts +9 -0
- package/dist/serialization/types/FeatureUsageResponseData.d.ts +17 -0
- package/dist/serialization/types/FeatureUsageResponseDataCreditGrantReason.d.ts +10 -0
- package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +13 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +23 -0
- package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +4 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +18 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +12 -0
- package/dist/serialization/types/PlanIssueResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanSelection.d.ts +13 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +3 -0
- package/dist/serialization/types/Rule.d.ts +23 -0
- package/dist/serialization/types/TraitDefinition.d.ts +14 -0
- package/dist/serialization/types/UpdatePlanTraitTraitRequestBody.d.ts +13 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
- package/dist/serialization/types/UsageBasedEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/index.d.ts +24 -0
- package/dist/wrapper.d.ts +8 -0
- package/package.json +2 -1
- package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -8
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -10
|
@@ -6,8 +6,14 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FeatureCompanyResponseDataAllocationType } from "./FeatureCompanyResponseDataAllocationType";
|
|
8
8
|
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
9
|
+
import { CompanyOverrideResponseData } from "./CompanyOverrideResponseData";
|
|
10
|
+
import { CreditGrantDetail } from "./CreditGrantDetail";
|
|
11
|
+
import { FeatureCompanyResponseDataCreditGrantReason } from "./FeatureCompanyResponseDataCreditGrantReason";
|
|
12
|
+
import { CreditUsage } from "./CreditUsage";
|
|
9
13
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
14
|
+
import { BillingPriceView } from "./BillingPriceView";
|
|
10
15
|
import { PlanResponseData } from "./PlanResponseData";
|
|
16
|
+
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
11
17
|
export declare const FeatureCompanyResponseData: core.serialization.ObjectSchema<serializers.FeatureCompanyResponseData.Raw, Schematic.FeatureCompanyResponseData>;
|
|
12
18
|
export declare namespace FeatureCompanyResponseData {
|
|
13
19
|
interface Raw {
|
|
@@ -15,14 +21,36 @@ export declare namespace FeatureCompanyResponseData {
|
|
|
15
21
|
allocation?: number | null;
|
|
16
22
|
allocation_type: FeatureCompanyResponseDataAllocationType.Raw;
|
|
17
23
|
company?: CompanyDetailResponseData.Raw | null;
|
|
24
|
+
company_override?: CompanyOverrideResponseData.Raw | null;
|
|
25
|
+
credit_consumption_rate?: number | null;
|
|
26
|
+
credit_grant_counts?: Record<string, number> | null;
|
|
27
|
+
credit_grant_details?: CreditGrantDetail.Raw[] | null;
|
|
28
|
+
credit_grant_reason?: FeatureCompanyResponseDataCreditGrantReason.Raw | null;
|
|
29
|
+
credit_remaining?: number | null;
|
|
30
|
+
credit_total?: number | null;
|
|
31
|
+
credit_type_icon?: string | null;
|
|
32
|
+
credit_usage?: CreditUsage.Raw | null;
|
|
33
|
+
credit_used?: number | null;
|
|
34
|
+
effective_limit?: number | null;
|
|
35
|
+
effective_price?: number | null;
|
|
18
36
|
entitlement_expiration_date?: string | null;
|
|
19
37
|
entitlement_id: string;
|
|
38
|
+
entitlement_source?: string | null;
|
|
20
39
|
entitlement_type: string;
|
|
21
40
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
41
|
+
has_valid_allocation?: boolean | null;
|
|
42
|
+
is_unlimited?: boolean | null;
|
|
22
43
|
metric_reset_at?: string | null;
|
|
23
44
|
month_reset?: string | null;
|
|
45
|
+
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
46
|
+
overuse?: number | null;
|
|
47
|
+
percent_used?: number | null;
|
|
24
48
|
period?: string | null;
|
|
25
49
|
plan?: PlanResponseData.Raw | null;
|
|
50
|
+
plan_entitlement?: PlanEntitlementResponseData.Raw | null;
|
|
51
|
+
price_behavior?: string | null;
|
|
52
|
+
soft_limit?: number | null;
|
|
26
53
|
usage?: number | null;
|
|
54
|
+
yearly_usage_based_price?: BillingPriceView.Raw | null;
|
|
27
55
|
}
|
|
28
56
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const FeatureCompanyResponseDataCreditGrantReason: core.serialization.Schema<serializers.FeatureCompanyResponseDataCreditGrantReason.Raw, Schematic.FeatureCompanyResponseDataCreditGrantReason>;
|
|
8
|
+
export declare namespace FeatureCompanyResponseDataCreditGrantReason {
|
|
9
|
+
type Raw = "free" | "plan" | "purchased";
|
|
10
|
+
}
|
|
@@ -6,5 +6,5 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
export declare const FeatureCompanyUserResponseDataAllocationType: core.serialization.Schema<serializers.FeatureCompanyUserResponseDataAllocationType.Raw, Schematic.FeatureCompanyUserResponseDataAllocationType>;
|
|
8
8
|
export declare namespace FeatureCompanyUserResponseDataAllocationType {
|
|
9
|
-
type Raw = "boolean" | "numeric" | "trait" | "unlimited";
|
|
9
|
+
type Raw = "boolean" | "numeric" | "trait" | "unlimited" | "unknown";
|
|
10
10
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const FeatureLedgerResponseData: core.serialization.ObjectSchema<serializers.FeatureLedgerResponseData.Raw, Schematic.FeatureLedgerResponseData>;
|
|
8
|
+
export declare namespace FeatureLedgerResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
description?: string | null;
|
|
11
|
+
icon?: string | null;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -4,9 +4,13 @@
|
|
|
4
4
|
import * as serializers from "../index";
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
|
+
import { CreditUsageResponseData } from "./CreditUsageResponseData";
|
|
8
|
+
import { BillingPriceView } from "./BillingPriceView";
|
|
7
9
|
export declare const FeatureUsageDataResponseData: core.serialization.ObjectSchema<serializers.FeatureUsageDataResponseData.Raw, Schematic.FeatureUsageDataResponseData>;
|
|
8
10
|
export declare namespace FeatureUsageDataResponseData {
|
|
9
11
|
interface Raw {
|
|
12
|
+
credit_type_id?: string | null;
|
|
13
|
+
credit_usage?: CreditUsageResponseData.Raw | null;
|
|
10
14
|
entitlement_source: string;
|
|
11
15
|
entitlement_value_type: string;
|
|
12
16
|
feature_id: string;
|
|
@@ -14,7 +18,12 @@ export declare namespace FeatureUsageDataResponseData {
|
|
|
14
18
|
feature_type: string;
|
|
15
19
|
hard_limit: string;
|
|
16
20
|
has_access: boolean;
|
|
21
|
+
metric_reset_at?: string | null;
|
|
22
|
+
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
23
|
+
price_behavior?: string | null;
|
|
17
24
|
soft_limit: string;
|
|
18
25
|
usage: string;
|
|
26
|
+
value_numeric?: number | null;
|
|
27
|
+
yearly_usage_based_price?: BillingPriceView.Raw | null;
|
|
19
28
|
}
|
|
20
29
|
}
|
|
@@ -6,6 +6,8 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { FeatureUsageResponseDataAllocationType } from "./FeatureUsageResponseDataAllocationType";
|
|
8
8
|
import { CompanyOverrideResponseData } from "./CompanyOverrideResponseData";
|
|
9
|
+
import { CreditGrantDetail } from "./CreditGrantDetail";
|
|
10
|
+
import { FeatureUsageResponseDataCreditGrantReason } from "./FeatureUsageResponseDataCreditGrantReason";
|
|
9
11
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
10
12
|
import { BillingPriceView } from "./BillingPriceView";
|
|
11
13
|
import { PlanResponseData } from "./PlanResponseData";
|
|
@@ -17,13 +19,28 @@ export declare namespace FeatureUsageResponseData {
|
|
|
17
19
|
allocation?: number | null;
|
|
18
20
|
allocation_type: FeatureUsageResponseDataAllocationType.Raw;
|
|
19
21
|
company_override?: CompanyOverrideResponseData.Raw | null;
|
|
22
|
+
credit_consumption_rate?: number | null;
|
|
23
|
+
credit_grant_counts?: Record<string, number> | null;
|
|
24
|
+
credit_grant_details?: CreditGrantDetail.Raw[] | null;
|
|
25
|
+
credit_grant_reason?: FeatureUsageResponseDataCreditGrantReason.Raw | null;
|
|
26
|
+
credit_remaining?: number | null;
|
|
27
|
+
credit_total?: number | null;
|
|
28
|
+
credit_type_icon?: string | null;
|
|
29
|
+
credit_used?: number | null;
|
|
30
|
+
effective_limit?: number | null;
|
|
31
|
+
effective_price?: number | null;
|
|
20
32
|
entitlement_expiration_date?: string | null;
|
|
21
33
|
entitlement_id: string;
|
|
34
|
+
entitlement_source?: string | null;
|
|
22
35
|
entitlement_type: string;
|
|
23
36
|
feature?: FeatureDetailResponseData.Raw | null;
|
|
37
|
+
has_valid_allocation?: boolean | null;
|
|
38
|
+
is_unlimited?: boolean | null;
|
|
24
39
|
metric_reset_at?: string | null;
|
|
25
40
|
month_reset?: string | null;
|
|
26
41
|
monthly_usage_based_price?: BillingPriceView.Raw | null;
|
|
42
|
+
overuse?: number | null;
|
|
43
|
+
percent_used?: number | null;
|
|
27
44
|
period?: string | null;
|
|
28
45
|
plan?: PlanResponseData.Raw | null;
|
|
29
46
|
plan_entitlement?: PlanEntitlementResponseData.Raw | null;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const FeatureUsageResponseDataCreditGrantReason: core.serialization.Schema<serializers.FeatureUsageResponseDataCreditGrantReason.Raw, Schematic.FeatureUsageResponseDataCreditGrantReason>;
|
|
8
|
+
export declare namespace FeatureUsageResponseDataCreditGrantReason {
|
|
9
|
+
type Raw = "free" | "plan" | "purchased";
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { PreviewSubscriptionChangeResponseData } from "./PreviewSubscriptionChangeResponseData";
|
|
8
|
+
export declare const ManagePlanPreviewResponseResponseData: core.serialization.ObjectSchema<serializers.ManagePlanPreviewResponseResponseData.Raw, Schematic.ManagePlanPreviewResponseResponseData>;
|
|
9
|
+
export declare namespace ManagePlanPreviewResponseResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
subscription_change_preview?: PreviewSubscriptionChangeResponseData.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { PlanSelection } from "./PlanSelection";
|
|
8
|
+
import { UpdateCreditBundleRequestBody } from "./UpdateCreditBundleRequestBody";
|
|
9
|
+
import { UpdatePayInAdvanceRequestBody } from "./UpdatePayInAdvanceRequestBody";
|
|
10
|
+
export declare const ManagePlanRequest: core.serialization.ObjectSchema<serializers.ManagePlanRequest.Raw, Schematic.ManagePlanRequest>;
|
|
11
|
+
export declare namespace ManagePlanRequest {
|
|
12
|
+
interface Raw {
|
|
13
|
+
add_on_selections: PlanSelection.Raw[];
|
|
14
|
+
base_plan_id?: string | null;
|
|
15
|
+
base_plan_price_id?: string | null;
|
|
16
|
+
company_id: string;
|
|
17
|
+
coupon_external_id?: string | null;
|
|
18
|
+
credit_bundles: UpdateCreditBundleRequestBody.Raw[];
|
|
19
|
+
pay_in_advance_entitlements: UpdatePayInAdvanceRequestBody.Raw[];
|
|
20
|
+
payment_method_external_id?: string | null;
|
|
21
|
+
promo_code?: string | null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { CompanyDetailResponseData } from "./CompanyDetailResponseData";
|
|
8
|
+
export declare const ManagePlanResponseResponseData: core.serialization.ObjectSchema<serializers.ManagePlanResponseResponseData.Raw, Schematic.ManagePlanResponseResponseData>;
|
|
9
|
+
export declare namespace ManagePlanResponseResponseData {
|
|
10
|
+
interface Raw {
|
|
11
|
+
company?: CompanyDetailResponseData.Raw | null;
|
|
12
|
+
success: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -13,12 +13,16 @@ export declare namespace PlanCreditGrantView {
|
|
|
13
13
|
credit_icon?: string | null;
|
|
14
14
|
credit_id: string;
|
|
15
15
|
credit_name: string;
|
|
16
|
+
expiry_type?: string | null;
|
|
17
|
+
expiry_unit?: string | null;
|
|
18
|
+
expiry_unit_count?: number | null;
|
|
16
19
|
id: string;
|
|
17
20
|
plan_id: string;
|
|
18
21
|
plan_name: string;
|
|
19
22
|
plural_name?: string | null;
|
|
20
23
|
reset_cadence: string;
|
|
21
24
|
reset_start: string;
|
|
25
|
+
reset_type: string;
|
|
22
26
|
singular_name?: string | null;
|
|
23
27
|
updated_at: string;
|
|
24
28
|
}
|
|
@@ -6,6 +6,7 @@ import * as Schematic from "../../api/index";
|
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
8
8
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
9
|
+
import { BillingPlanCreditGrantResponseData } from "./BillingPlanCreditGrantResponseData";
|
|
9
10
|
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
10
11
|
export declare const PlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanDetailResponseData.Raw, Schematic.PlanDetailResponseData>;
|
|
11
12
|
export declare namespace PlanDetailResponseData {
|
|
@@ -20,6 +21,7 @@ export declare namespace PlanDetailResponseData {
|
|
|
20
21
|
features: FeatureDetailResponseData.Raw[];
|
|
21
22
|
icon: string;
|
|
22
23
|
id: string;
|
|
24
|
+
included_credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
|
|
23
25
|
is_default: boolean;
|
|
24
26
|
is_free: boolean;
|
|
25
27
|
is_trialable: boolean;
|
|
@@ -13,6 +13,7 @@ import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionRespon
|
|
|
13
13
|
export declare const PlanEntitlementResponseData: core.serialization.ObjectSchema<serializers.PlanEntitlementResponseData.Raw, Schematic.PlanEntitlementResponseData>;
|
|
14
14
|
export declare namespace PlanEntitlementResponseData {
|
|
15
15
|
interface Raw {
|
|
16
|
+
billing_threshold?: number | null;
|
|
16
17
|
consumption_rate?: number | null;
|
|
17
18
|
created_at: string;
|
|
18
19
|
environment_id: string;
|
|
@@ -5,24 +5,42 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { PlanGroupPlanDetailResponseData } from "./PlanGroupPlanDetailResponseData";
|
|
8
|
+
import { CheckoutSettingsResponseData } from "./CheckoutSettingsResponseData";
|
|
8
9
|
import { CustomPlanViewConfigResponseData } from "./CustomPlanViewConfigResponseData";
|
|
10
|
+
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
9
11
|
import { PlanGroupPlanEntitlementsOrder } from "./PlanGroupPlanEntitlementsOrder";
|
|
10
12
|
import { PlanGroupBundleOrder } from "./PlanGroupBundleOrder";
|
|
11
13
|
export declare const PlanGroupDetailResponseData: core.serialization.ObjectSchema<serializers.PlanGroupDetailResponseData.Raw, Schematic.PlanGroupDetailResponseData>;
|
|
12
14
|
export declare namespace PlanGroupDetailResponseData {
|
|
13
15
|
interface Raw {
|
|
14
16
|
add_ons: PlanGroupPlanDetailResponseData.Raw[];
|
|
17
|
+
checkout_settings: CheckoutSettingsResponseData.Raw;
|
|
15
18
|
custom_plan_config?: CustomPlanViewConfigResponseData.Raw | null;
|
|
16
19
|
custom_plan_id?: string | null;
|
|
17
20
|
default_plan?: PlanGroupPlanDetailResponseData.Raw | null;
|
|
18
21
|
default_plan_id?: string | null;
|
|
22
|
+
fallback_plan?: PlanGroupPlanDetailResponseData.Raw | null;
|
|
23
|
+
fallback_plan_id?: string | null;
|
|
19
24
|
id: string;
|
|
25
|
+
initial_plan?: PlanGroupPlanDetailResponseData.Raw | null;
|
|
26
|
+
initial_plan_id?: string | null;
|
|
27
|
+
initial_plan_price?: BillingPriceResponseData.Raw | null;
|
|
28
|
+
initial_plan_price_id?: string | null;
|
|
20
29
|
ordered_add_on_list: PlanGroupPlanEntitlementsOrder.Raw[];
|
|
21
30
|
ordered_bundle_list: PlanGroupBundleOrder.Raw[];
|
|
22
31
|
ordered_plan_list: PlanGroupPlanEntitlementsOrder.Raw[];
|
|
23
32
|
plans: PlanGroupPlanDetailResponseData.Raw[];
|
|
33
|
+
prevent_downgrades_when_over_limit: boolean;
|
|
34
|
+
show_credits: boolean;
|
|
24
35
|
show_period_toggle: boolean;
|
|
36
|
+
show_zero_price_as_free: boolean;
|
|
37
|
+
sync_customer_billing_details_for_tax: boolean;
|
|
38
|
+
tax_collection_enabled: boolean;
|
|
25
39
|
trial_days?: number | null;
|
|
40
|
+
trial_expiry_plan?: PlanGroupPlanDetailResponseData.Raw | null;
|
|
41
|
+
trial_expiry_plan_id?: string | null;
|
|
42
|
+
trial_expiry_plan_price?: BillingPriceResponseData.Raw | null;
|
|
43
|
+
trial_expiry_plan_price_id?: string | null;
|
|
26
44
|
trial_payment_method_required?: boolean | null;
|
|
27
45
|
}
|
|
28
46
|
}
|
|
@@ -8,6 +8,7 @@ import { BillingProductDetailResponseData } from "./BillingProductDetailResponse
|
|
|
8
8
|
import { CustomPlanViewConfigResponseData } from "./CustomPlanViewConfigResponseData";
|
|
9
9
|
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
10
10
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
11
|
+
import { BillingPlanCreditGrantResponseData } from "./BillingPlanCreditGrantResponseData";
|
|
11
12
|
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
12
13
|
export declare const PlanGroupPlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanGroupPlanDetailResponseData.Raw, Schematic.PlanGroupPlanDetailResponseData>;
|
|
13
14
|
export declare namespace PlanGroupPlanDetailResponseData {
|
|
@@ -25,6 +26,7 @@ export declare namespace PlanGroupPlanDetailResponseData {
|
|
|
25
26
|
features: FeatureDetailResponseData.Raw[];
|
|
26
27
|
icon: string;
|
|
27
28
|
id: string;
|
|
29
|
+
included_credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
|
|
28
30
|
is_custom: boolean;
|
|
29
31
|
is_default: boolean;
|
|
30
32
|
is_free: boolean;
|
|
@@ -5,18 +5,30 @@ import * as serializers from "../index";
|
|
|
5
5
|
import * as Schematic from "../../api/index";
|
|
6
6
|
import * as core from "../../core";
|
|
7
7
|
import { CompatiblePlansResponseData } from "./CompatiblePlansResponseData";
|
|
8
|
+
import { CheckoutSettingsResponseData } from "./CheckoutSettingsResponseData";
|
|
8
9
|
import { OrderedPlansInGroup } from "./OrderedPlansInGroup";
|
|
9
10
|
export declare const PlanGroupResponseData: core.serialization.ObjectSchema<serializers.PlanGroupResponseData.Raw, Schematic.PlanGroupResponseData>;
|
|
10
11
|
export declare namespace PlanGroupResponseData {
|
|
11
12
|
interface Raw {
|
|
12
13
|
add_on_compatibilities: CompatiblePlansResponseData.Raw[];
|
|
13
14
|
add_on_ids: string[];
|
|
15
|
+
checkout_settings: CheckoutSettingsResponseData.Raw;
|
|
14
16
|
default_plan_id?: string | null;
|
|
17
|
+
fallback_plan_id?: string | null;
|
|
15
18
|
id: string;
|
|
19
|
+
initial_plan_id?: string | null;
|
|
20
|
+
initial_plan_price_id?: string | null;
|
|
16
21
|
ordered_add_on_ids: OrderedPlansInGroup.Raw[];
|
|
17
22
|
plan_ids: OrderedPlansInGroup.Raw[];
|
|
23
|
+
prevent_downgrades_when_over_limit: boolean;
|
|
24
|
+
show_credits: boolean;
|
|
18
25
|
show_period_toggle: boolean;
|
|
26
|
+
show_zero_price_as_free: boolean;
|
|
27
|
+
sync_customer_billing_details_for_tax: boolean;
|
|
28
|
+
tax_collection_enabled: boolean;
|
|
19
29
|
trial_days?: number | null;
|
|
30
|
+
trial_expiry_plan_id?: string | null;
|
|
31
|
+
trial_expiry_plan_price_id?: string | null;
|
|
20
32
|
trial_payment_method_required?: boolean | null;
|
|
21
33
|
}
|
|
22
34
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PlanIssueResponseData: core.serialization.ObjectSchema<serializers.PlanIssueResponseData.Raw, Schematic.PlanIssueResponseData>;
|
|
8
|
+
export declare namespace PlanIssueResponseData {
|
|
9
|
+
interface Raw {
|
|
10
|
+
code: string;
|
|
11
|
+
description: string;
|
|
12
|
+
detail?: string | null;
|
|
13
|
+
id?: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const PlanSelection: core.serialization.ObjectSchema<serializers.PlanSelection.Raw, Schematic.PlanSelection>;
|
|
8
|
+
export declare namespace PlanSelection {
|
|
9
|
+
interface Raw {
|
|
10
|
+
plan_id: string;
|
|
11
|
+
price_id?: string | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -15,6 +15,9 @@ export declare namespace PreviewSubscriptionFinanceResponseData {
|
|
|
15
15
|
period_start: string;
|
|
16
16
|
promo_code_applied: boolean;
|
|
17
17
|
proration: number;
|
|
18
|
+
tax_amount?: number | null;
|
|
19
|
+
tax_display_name?: string | null;
|
|
20
|
+
tax_require_billing_details: boolean;
|
|
18
21
|
trial_end?: string | null;
|
|
19
22
|
upcoming_invoice_line_items: PreviewSubscriptionUpcomingInvoiceLineItems.Raw[];
|
|
20
23
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
import { ConditionGroup } from "./ConditionGroup";
|
|
8
|
+
import { Condition } from "./Condition";
|
|
9
|
+
export declare const Rule: core.serialization.ObjectSchema<serializers.Rule.Raw, Schematic.Rule>;
|
|
10
|
+
export declare namespace Rule {
|
|
11
|
+
interface Raw {
|
|
12
|
+
account_id: string;
|
|
13
|
+
condition_groups: ConditionGroup.Raw[];
|
|
14
|
+
conditions: Condition.Raw[];
|
|
15
|
+
environment_id: string;
|
|
16
|
+
flag_id?: string | null;
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
priority: number;
|
|
20
|
+
rule_type: string;
|
|
21
|
+
value: boolean;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const TraitDefinition: core.serialization.ObjectSchema<serializers.TraitDefinition.Raw, Schematic.TraitDefinition>;
|
|
8
|
+
export declare namespace TraitDefinition {
|
|
9
|
+
interface Raw {
|
|
10
|
+
comparable_type: string;
|
|
11
|
+
entity_type: string;
|
|
12
|
+
id: string;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../index";
|
|
5
|
+
import * as Schematic from "../../api/index";
|
|
6
|
+
import * as core from "../../core";
|
|
7
|
+
export declare const UpdatePlanTraitTraitRequestBody: core.serialization.ObjectSchema<serializers.UpdatePlanTraitTraitRequestBody.Raw, Schematic.UpdatePlanTraitTraitRequestBody>;
|
|
8
|
+
export declare namespace UpdatePlanTraitTraitRequestBody {
|
|
9
|
+
interface Raw {
|
|
10
|
+
trait_id: string;
|
|
11
|
+
trait_value: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -10,6 +10,7 @@ export declare const UsageBasedEntitlementRequestBody: core.serialization.Object
|
|
|
10
10
|
export declare namespace UsageBasedEntitlementRequestBody {
|
|
11
11
|
interface Raw {
|
|
12
12
|
billing_product_id?: string | null;
|
|
13
|
+
billing_threshold?: number | null;
|
|
13
14
|
currency?: string | null;
|
|
14
15
|
monthly_metered_price_id?: string | null;
|
|
15
16
|
monthly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
|
|
@@ -8,6 +8,7 @@ import { BillingPriceView } from "./BillingPriceView";
|
|
|
8
8
|
export declare const UsageBasedEntitlementResponseData: core.serialization.ObjectSchema<serializers.UsageBasedEntitlementResponseData.Raw, Schematic.UsageBasedEntitlementResponseData>;
|
|
9
9
|
export declare namespace UsageBasedEntitlementResponseData {
|
|
10
10
|
interface Raw {
|
|
11
|
+
billing_threshold?: number | null;
|
|
11
12
|
consumption_rate?: number | null;
|
|
12
13
|
feature_id: string;
|
|
13
14
|
metered_price?: BillingPriceView.Raw | null;
|
|
@@ -8,6 +8,7 @@ export * from "./BillingCouponResponseData";
|
|
|
8
8
|
export * from "./BillingCreditBundleResponseData";
|
|
9
9
|
export * from "./BillingCreditBundleView";
|
|
10
10
|
export * from "./BillingCreditGrantResponseData";
|
|
11
|
+
export * from "./BillingCreditLedgerResponseData";
|
|
11
12
|
export * from "./BillingCreditResponseData";
|
|
12
13
|
export * from "./BillingCustomerResponseData";
|
|
13
14
|
export * from "./BillingCustomerSubscription";
|
|
@@ -34,11 +35,15 @@ export * from "./CheckFlagRequestBody";
|
|
|
34
35
|
export * from "./CheckFlagResponseData";
|
|
35
36
|
export * from "./CheckFlagsResponseData";
|
|
36
37
|
export * from "./CheckoutDataResponseData";
|
|
38
|
+
export * from "./CheckoutSettingsResponseData";
|
|
39
|
+
export * from "./CheckoutSubscription";
|
|
37
40
|
export * from "./CompanyCrmDealsResponseData";
|
|
38
41
|
export * from "./CompanyDetailResponseData";
|
|
39
42
|
export * from "./CompanyEventPeriodMetricsResponseData";
|
|
43
|
+
export * from "./CompanyLedgerResponseData";
|
|
40
44
|
export * from "./CompanyMembershipDetailResponseData";
|
|
41
45
|
export * from "./CompanyMembershipResponseData";
|
|
46
|
+
export * from "./CompanyOverrideNoteResponseData";
|
|
42
47
|
export * from "./CompanyOverrideResponseData";
|
|
43
48
|
export * from "./CompanyPlanDetailResponseData";
|
|
44
49
|
export * from "./CompanyPlanWithBillingSubView";
|
|
@@ -48,9 +53,12 @@ export * from "./CompanyViewWithFeatureUsageResponseData";
|
|
|
48
53
|
export * from "./CompatiblePlans";
|
|
49
54
|
export * from "./CompatiblePlansResponseData";
|
|
50
55
|
export * from "./ComponentCapabilities";
|
|
56
|
+
export * from "./ComponentCheckoutSettings";
|
|
51
57
|
export * from "./ComponentHydrateResponseData";
|
|
52
58
|
export * from "./ComponentPreviewResponseData";
|
|
53
59
|
export * from "./ComponentResponseData";
|
|
60
|
+
export * from "./Condition";
|
|
61
|
+
export * from "./ConditionGroup";
|
|
54
62
|
export * from "./CountResponse";
|
|
55
63
|
export * from "./CouponRequestBody";
|
|
56
64
|
export * from "./CreateBillingPriceTierRequestBody";
|
|
@@ -78,7 +86,12 @@ export * from "./CreateOrUpdateRuleRequestBody";
|
|
|
78
86
|
export * from "./CreatePriceTierRequestBody";
|
|
79
87
|
export * from "./CreditBundlePurchaseResponseData";
|
|
80
88
|
export * from "./CreditCompanyGrantView";
|
|
89
|
+
export * from "./CreditGrantDetailGrantReason";
|
|
90
|
+
export * from "./CreditGrantDetail";
|
|
91
|
+
export * from "./CreditLedgerEnrichedEntryResponseData";
|
|
81
92
|
export * from "./CreditTriggerConfig";
|
|
93
|
+
export * from "./CreditUsage";
|
|
94
|
+
export * from "./CreditUsageResponseData";
|
|
82
95
|
export * from "./CrmDealLineItem";
|
|
83
96
|
export * from "./CrmDealResponseData";
|
|
84
97
|
export * from "./CrmLineItemResponseData";
|
|
@@ -103,14 +116,17 @@ export * from "./EventDetailResponseData";
|
|
|
103
116
|
export * from "./EventResponseData";
|
|
104
117
|
export * from "./EventSummaryResponseData";
|
|
105
118
|
export * from "./FeatureCompanyResponseDataAllocationType";
|
|
119
|
+
export * from "./FeatureCompanyResponseDataCreditGrantReason";
|
|
106
120
|
export * from "./FeatureCompanyResponseData";
|
|
107
121
|
export * from "./FeatureCompanyUserResponseDataAllocationType";
|
|
108
122
|
export * from "./FeatureCompanyUserResponseData";
|
|
109
123
|
export * from "./FeatureDetailResponseData";
|
|
124
|
+
export * from "./FeatureLedgerResponseData";
|
|
110
125
|
export * from "./FeatureResponseData";
|
|
111
126
|
export * from "./FeatureUsageDataResponseData";
|
|
112
127
|
export * from "./FeatureUsageDetailResponseData";
|
|
113
128
|
export * from "./FeatureUsageResponseDataAllocationType";
|
|
129
|
+
export * from "./FeatureUsageResponseDataCreditGrantReason";
|
|
114
130
|
export * from "./FeatureUsageResponseData";
|
|
115
131
|
export * from "./FlagDetailResponseData";
|
|
116
132
|
export * from "./FlagResponseData";
|
|
@@ -119,6 +135,9 @@ export * from "./InvoiceRequestBody";
|
|
|
119
135
|
export * from "./InvoiceResponseData";
|
|
120
136
|
export * from "./IssueTemporaryAccessTokenResponseData";
|
|
121
137
|
export * from "./KeysRequestBody";
|
|
138
|
+
export * from "./ManagePlanPreviewResponseResponseData";
|
|
139
|
+
export * from "./ManagePlanRequest";
|
|
140
|
+
export * from "./ManagePlanResponseResponseData";
|
|
122
141
|
export * from "./MeterRequestBody";
|
|
123
142
|
export * from "./OrderedPlansInGroup";
|
|
124
143
|
export * from "./PaginationFilter";
|
|
@@ -135,7 +154,9 @@ export * from "./PlanGroupDetailResponseData";
|
|
|
135
154
|
export * from "./PlanGroupPlanDetailResponseData";
|
|
136
155
|
export * from "./PlanGroupPlanEntitlementsOrder";
|
|
137
156
|
export * from "./PlanGroupResponseData";
|
|
157
|
+
export * from "./PlanIssueResponseData";
|
|
138
158
|
export * from "./PlanResponseData";
|
|
159
|
+
export * from "./PlanSelection";
|
|
139
160
|
export * from "./PlanTraitResponseData";
|
|
140
161
|
export * from "./PreviewObject";
|
|
141
162
|
export * from "./PreviewObjectResponseData";
|
|
@@ -145,6 +166,7 @@ export * from "./PreviewSubscriptionUpcomingInvoiceLineItems";
|
|
|
145
166
|
export * from "./QuickstartResp";
|
|
146
167
|
export * from "./RawEventBatchResponseData";
|
|
147
168
|
export * from "./RawEventResponseData";
|
|
169
|
+
export * from "./Rule";
|
|
148
170
|
export * from "./RuleConditionDetailResponseData";
|
|
149
171
|
export * from "./RuleConditionGroupDetailResponseData";
|
|
150
172
|
export * from "./RuleConditionGroupResponseData";
|
|
@@ -155,6 +177,7 @@ export * from "./RulesDetailResponseData";
|
|
|
155
177
|
export * from "./SegmentStatusResp";
|
|
156
178
|
export * from "./StripeEmbedInfo";
|
|
157
179
|
export * from "./TemporaryAccessTokenResponseData";
|
|
180
|
+
export * from "./TraitDefinition";
|
|
158
181
|
export * from "./UpdateAddOnRequestBody";
|
|
159
182
|
export * from "./UpdateCreditBundleRequestBody";
|
|
160
183
|
export * from "./UpdateEntitlementReqCommonMetricPeriod";
|
|
@@ -162,6 +185,7 @@ export * from "./UpdateEntitlementReqCommonMetricPeriodMonthReset";
|
|
|
162
185
|
export * from "./UpdateEntitlementReqCommonValueType";
|
|
163
186
|
export * from "./UpdateEntitlementReqCommon";
|
|
164
187
|
export * from "./UpdatePayInAdvanceRequestBody";
|
|
188
|
+
export * from "./UpdatePlanTraitTraitRequestBody";
|
|
165
189
|
export * from "./UpdateRuleRequestBody";
|
|
166
190
|
export * from "./UpsertCompanyRequestBody";
|
|
167
191
|
export * from "./UpsertTraitRequestBody";
|
package/dist/wrapper.d.ts
CHANGED
|
@@ -49,6 +49,14 @@ export declare class SchematicClient extends BaseClient {
|
|
|
49
49
|
* @throws Will log error and return flag default if check fails
|
|
50
50
|
*/
|
|
51
51
|
checkFlag(evalCtx: api.CheckFlagRequestBody, key: string): Promise<boolean>;
|
|
52
|
+
/**
|
|
53
|
+
* Checks multiple feature flags with caching optimization
|
|
54
|
+
* @param evalCtx - The context (company and/or user) for evaluating the feature flags
|
|
55
|
+
* @param keys - Optional array of flag keys to check. If empty, calls standard checkFlags API
|
|
56
|
+
* @returns Promise resolving to an array of flag check results
|
|
57
|
+
* @throws Will log error and return default values if check fails
|
|
58
|
+
*/
|
|
59
|
+
checkFlags(evalCtx: api.CheckFlagRequestBody, keys?: string[]): Promise<api.CheckFlagResponseData[]>;
|
|
52
60
|
/**
|
|
53
61
|
* Gracefully shuts down the client by stopping the event buffer
|
|
54
62
|
* @returns Promise that resolves when the event buffer has been stopped
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-typescript-node",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": "https://github.com/schematichq/schematic-node",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"format": "prettier . --write --ignore-unknown",
|
|
10
10
|
"build": "node build.js",
|
|
11
|
+
"prepack": "cp -rv dist/. .",
|
|
11
12
|
"test": "jest",
|
|
12
13
|
"build:legacy": "tsc"
|
|
13
14
|
},
|
package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
export type CreateBillingSubscriptionsRequestBodyTrialEndSetting = "subscribe" | "cancel";
|
|
5
|
-
export declare const CreateBillingSubscriptionsRequestBodyTrialEndSetting: {
|
|
6
|
-
readonly Subscribe: "subscribe";
|
|
7
|
-
readonly Cancel: "cancel";
|
|
8
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index";
|
|
5
|
-
import * as Schematic from "../../../../api/index";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const CreateBillingSubscriptionsRequestBodyTrialEndSetting: core.serialization.Schema<serializers.CreateBillingSubscriptionsRequestBodyTrialEndSetting.Raw, Schematic.CreateBillingSubscriptionsRequestBodyTrialEndSetting>;
|
|
8
|
-
export declare namespace CreateBillingSubscriptionsRequestBodyTrialEndSetting {
|
|
9
|
-
type Raw = "subscribe" | "cancel";
|
|
10
|
-
}
|