@schematichq/schematic-typescript-node 1.2.2 → 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/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/package.json +1 -1
- package/dist/api/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -8
- package/dist/serialization/resources/billing/types/CreateBillingSubscriptionsRequestBodyTrialEndSetting.d.ts +0 -10
|
@@ -3,11 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
* @example
|
|
6
|
-
* {
|
|
6
|
+
* {
|
|
7
|
+
* featureId: "feature_id",
|
|
8
|
+
* q: "q",
|
|
9
|
+
* limit: 1,
|
|
10
|
+
* offset: 1
|
|
11
|
+
* }
|
|
7
12
|
*/
|
|
8
13
|
export interface ListFlagsRequest {
|
|
9
14
|
featureId?: string;
|
|
10
15
|
ids?: string | string[];
|
|
16
|
+
/**
|
|
17
|
+
* Search by flag name, key, or ID
|
|
18
|
+
*/
|
|
11
19
|
q?: string;
|
|
12
20
|
/**
|
|
13
21
|
* Page limit (default 100)
|
|
@@ -14,6 +14,7 @@ export interface CountFeaturesParams {
|
|
|
14
14
|
limit?: number;
|
|
15
15
|
/** Page offset (default 0) */
|
|
16
16
|
offset?: number;
|
|
17
|
+
/** Search by feature name or ID */
|
|
17
18
|
q?: string;
|
|
18
19
|
/** Filter out features that already have a company override for the specified company ID */
|
|
19
20
|
withoutCompanyOverrideFor?: string;
|
|
@@ -14,6 +14,7 @@ export interface ListFeaturesParams {
|
|
|
14
14
|
limit?: number;
|
|
15
15
|
/** Page offset (default 0) */
|
|
16
16
|
offset?: number;
|
|
17
|
+
/** Search by feature name or ID */
|
|
17
18
|
q?: string;
|
|
18
19
|
/** Filter out features that already have a company override for the specified company ID */
|
|
19
20
|
withoutCompanyOverrideFor?: string;
|
|
@@ -9,7 +9,7 @@ export declare namespace Plangroups {
|
|
|
9
9
|
environment?: core.Supplier<environments.SchematicEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey
|
|
12
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
fetcher?: core.FetchFunction;
|
|
14
14
|
}
|
|
15
15
|
interface RequestOptions {
|
|
@@ -25,7 +25,7 @@ export declare namespace Plangroups {
|
|
|
25
25
|
}
|
|
26
26
|
export declare class Plangroups {
|
|
27
27
|
protected readonly _options: Plangroups.Options;
|
|
28
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: Plangroups.Options);
|
|
29
29
|
/**
|
|
30
30
|
* @param {Plangroups.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
31
|
*
|
|
@@ -52,6 +52,10 @@ export declare class Plangroups {
|
|
|
52
52
|
* @example
|
|
53
53
|
* await client.plangroups.createPlanGroup({
|
|
54
54
|
* addOnIds: ["add_on_ids"],
|
|
55
|
+
* checkoutCollectAddress: true,
|
|
56
|
+
* checkoutCollectEmail: true,
|
|
57
|
+
* checkoutCollectPhone: true,
|
|
58
|
+
* enableTaxCollection: true,
|
|
55
59
|
* orderedAddOns: [{
|
|
56
60
|
* planId: "plan_id"
|
|
57
61
|
* }],
|
|
@@ -61,7 +65,11 @@ export declare class Plangroups {
|
|
|
61
65
|
* orderedPlans: [{
|
|
62
66
|
* planId: "plan_id"
|
|
63
67
|
* }],
|
|
64
|
-
*
|
|
68
|
+
* preventDowngradesWhenOverLimit: true,
|
|
69
|
+
* showCredits: true,
|
|
70
|
+
* showPeriodToggle: true,
|
|
71
|
+
* showZeroPriceAsFree: true,
|
|
72
|
+
* syncCustomerBillingDetailsForTax: true
|
|
65
73
|
* })
|
|
66
74
|
*/
|
|
67
75
|
createPlanGroup(request: Schematic.CreatePlanGroupRequestBody, requestOptions?: Plangroups.RequestOptions): core.HttpResponsePromise<Schematic.CreatePlanGroupResponse>;
|
|
@@ -80,6 +88,10 @@ export declare class Plangroups {
|
|
|
80
88
|
* @example
|
|
81
89
|
* await client.plangroups.updatePlanGroup("plan_group_id", {
|
|
82
90
|
* addOnIds: ["add_on_ids"],
|
|
91
|
+
* checkoutCollectAddress: true,
|
|
92
|
+
* checkoutCollectEmail: true,
|
|
93
|
+
* checkoutCollectPhone: true,
|
|
94
|
+
* enableTaxCollection: true,
|
|
83
95
|
* orderedAddOns: [{
|
|
84
96
|
* planId: "plan_id"
|
|
85
97
|
* }],
|
|
@@ -89,12 +101,16 @@ export declare class Plangroups {
|
|
|
89
101
|
* orderedPlans: [{
|
|
90
102
|
* planId: "plan_id"
|
|
91
103
|
* }],
|
|
92
|
-
*
|
|
104
|
+
* preventDowngradesWhenOverLimit: true,
|
|
105
|
+
* showCredits: true,
|
|
106
|
+
* showPeriodToggle: true,
|
|
107
|
+
* showZeroPriceAsFree: true,
|
|
108
|
+
* syncCustomerBillingDetailsForTax: true
|
|
93
109
|
* })
|
|
94
110
|
*/
|
|
95
111
|
updatePlanGroup(planGroupId: string, request: Schematic.UpdatePlanGroupRequestBody, requestOptions?: Plangroups.RequestOptions): core.HttpResponsePromise<Schematic.UpdatePlanGroupResponse>;
|
|
96
112
|
private __updatePlanGroup;
|
|
97
113
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
98
|
-
"X-Schematic-Api-Key": string;
|
|
114
|
+
"X-Schematic-Api-Key": string | undefined;
|
|
99
115
|
}>;
|
|
100
116
|
}
|
|
@@ -6,6 +6,10 @@ import * as Schematic from "../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* addOnIds: ["add_on_ids"],
|
|
9
|
+
* checkoutCollectAddress: true,
|
|
10
|
+
* checkoutCollectEmail: true,
|
|
11
|
+
* checkoutCollectPhone: true,
|
|
12
|
+
* enableTaxCollection: true,
|
|
9
13
|
* orderedAddOns: [{
|
|
10
14
|
* planId: "plan_id"
|
|
11
15
|
* }],
|
|
@@ -15,20 +19,37 @@ import * as Schematic from "../../../../index";
|
|
|
15
19
|
* orderedPlans: [{
|
|
16
20
|
* planId: "plan_id"
|
|
17
21
|
* }],
|
|
18
|
-
*
|
|
22
|
+
* preventDowngradesWhenOverLimit: true,
|
|
23
|
+
* showCredits: true,
|
|
24
|
+
* showPeriodToggle: true,
|
|
25
|
+
* showZeroPriceAsFree: true,
|
|
26
|
+
* syncCustomerBillingDetailsForTax: true
|
|
19
27
|
* }
|
|
20
28
|
*/
|
|
21
29
|
export interface CreatePlanGroupRequestBody {
|
|
22
30
|
addOnCompatibilities?: Schematic.CompatiblePlans[];
|
|
23
31
|
/** Use OrderedAddOns instead */
|
|
24
32
|
addOnIds: string[];
|
|
33
|
+
checkoutCollectAddress: boolean;
|
|
34
|
+
checkoutCollectEmail: boolean;
|
|
35
|
+
checkoutCollectPhone: boolean;
|
|
25
36
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
26
37
|
customPlanId?: string;
|
|
27
38
|
defaultPlanId?: string;
|
|
39
|
+
enableTaxCollection: boolean;
|
|
40
|
+
fallbackPlanId?: string;
|
|
41
|
+
initialPlanId?: string;
|
|
42
|
+
initialPlanPriceId?: string;
|
|
28
43
|
orderedAddOns: Schematic.OrderedPlansInGroup[];
|
|
29
44
|
orderedBundleList: Schematic.PlanGroupBundleOrder[];
|
|
30
45
|
orderedPlans: Schematic.OrderedPlansInGroup[];
|
|
46
|
+
preventDowngradesWhenOverLimit: boolean;
|
|
47
|
+
showCredits: boolean;
|
|
31
48
|
showPeriodToggle: boolean;
|
|
49
|
+
showZeroPriceAsFree: boolean;
|
|
50
|
+
syncCustomerBillingDetailsForTax: boolean;
|
|
32
51
|
trialDays?: number;
|
|
52
|
+
trialExpiryPlanId?: string;
|
|
53
|
+
trialExpiryPlanPriceId?: string;
|
|
33
54
|
trialPaymentMethodRequired?: boolean;
|
|
34
55
|
}
|
|
@@ -6,6 +6,10 @@ import * as Schematic from "../../../../index";
|
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
8
|
* addOnIds: ["add_on_ids"],
|
|
9
|
+
* checkoutCollectAddress: true,
|
|
10
|
+
* checkoutCollectEmail: true,
|
|
11
|
+
* checkoutCollectPhone: true,
|
|
12
|
+
* enableTaxCollection: true,
|
|
9
13
|
* orderedAddOns: [{
|
|
10
14
|
* planId: "plan_id"
|
|
11
15
|
* }],
|
|
@@ -15,20 +19,37 @@ import * as Schematic from "../../../../index";
|
|
|
15
19
|
* orderedPlans: [{
|
|
16
20
|
* planId: "plan_id"
|
|
17
21
|
* }],
|
|
18
|
-
*
|
|
22
|
+
* preventDowngradesWhenOverLimit: true,
|
|
23
|
+
* showCredits: true,
|
|
24
|
+
* showPeriodToggle: true,
|
|
25
|
+
* showZeroPriceAsFree: true,
|
|
26
|
+
* syncCustomerBillingDetailsForTax: true
|
|
19
27
|
* }
|
|
20
28
|
*/
|
|
21
29
|
export interface UpdatePlanGroupRequestBody {
|
|
22
30
|
addOnCompatibilities?: Schematic.CompatiblePlans[];
|
|
23
31
|
/** Use OrderedAddOns instead */
|
|
24
32
|
addOnIds: string[];
|
|
33
|
+
checkoutCollectAddress: boolean;
|
|
34
|
+
checkoutCollectEmail: boolean;
|
|
35
|
+
checkoutCollectPhone: boolean;
|
|
25
36
|
customPlanConfig?: Schematic.CustomPlanConfig;
|
|
26
37
|
customPlanId?: string;
|
|
27
38
|
defaultPlanId?: string;
|
|
39
|
+
enableTaxCollection: boolean;
|
|
40
|
+
fallbackPlanId?: string;
|
|
41
|
+
initialPlanId?: string;
|
|
42
|
+
initialPlanPriceId?: string;
|
|
28
43
|
orderedAddOns: Schematic.OrderedPlansInGroup[];
|
|
29
44
|
orderedBundleList: Schematic.PlanGroupBundleOrder[];
|
|
30
45
|
orderedPlans: Schematic.OrderedPlansInGroup[];
|
|
46
|
+
preventDowngradesWhenOverLimit: boolean;
|
|
47
|
+
showCredits: boolean;
|
|
31
48
|
showPeriodToggle: boolean;
|
|
49
|
+
showZeroPriceAsFree: boolean;
|
|
50
|
+
syncCustomerBillingDetailsForTax: boolean;
|
|
32
51
|
trialDays?: number;
|
|
52
|
+
trialExpiryPlanId?: string;
|
|
53
|
+
trialExpiryPlanPriceId?: string;
|
|
33
54
|
trialPaymentMethodRequired?: boolean;
|
|
34
55
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Plans {
|
|
|
9
9
|
environment?: core.Supplier<environments.SchematicEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey
|
|
12
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
fetcher?: core.FetchFunction;
|
|
14
14
|
}
|
|
15
15
|
interface RequestOptions {
|
|
@@ -25,7 +25,7 @@ export declare namespace Plans {
|
|
|
25
25
|
}
|
|
26
26
|
export declare class Plans {
|
|
27
27
|
protected readonly _options: Plans.Options;
|
|
28
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: Plans.Options);
|
|
29
29
|
/**
|
|
30
30
|
* @param {string} companyPlanId - company_plan_id
|
|
31
31
|
* @param {Schematic.UpdateCompanyPlansRequestBody} request
|
|
@@ -113,7 +113,21 @@ export declare class Plans {
|
|
|
113
113
|
* @throws {@link Schematic.InternalServerError}
|
|
114
114
|
*
|
|
115
115
|
* @example
|
|
116
|
-
* await client.plans.listPlans(
|
|
116
|
+
* await client.plans.listPlans({
|
|
117
|
+
* companyId: "company_id",
|
|
118
|
+
* forFallbackPlan: true,
|
|
119
|
+
* forInitialPlan: true,
|
|
120
|
+
* forTrialExpiryPlan: true,
|
|
121
|
+
* hasProductId: true,
|
|
122
|
+
* planType: "plan",
|
|
123
|
+
* q: "q",
|
|
124
|
+
* requiresPaymentMethod: true,
|
|
125
|
+
* withoutEntitlementFor: "without_entitlement_for",
|
|
126
|
+
* withoutProductId: true,
|
|
127
|
+
* withoutPaidProductId: true,
|
|
128
|
+
* limit: 1,
|
|
129
|
+
* offset: 1
|
|
130
|
+
* })
|
|
117
131
|
*/
|
|
118
132
|
listPlans(request?: Schematic.ListPlansRequest, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.ListPlansResponse>;
|
|
119
133
|
private __listPlans;
|
|
@@ -213,11 +227,42 @@ export declare class Plans {
|
|
|
213
227
|
* @throws {@link Schematic.InternalServerError}
|
|
214
228
|
*
|
|
215
229
|
* @example
|
|
216
|
-
* await client.plans.countPlans(
|
|
230
|
+
* await client.plans.countPlans({
|
|
231
|
+
* companyId: "company_id",
|
|
232
|
+
* forFallbackPlan: true,
|
|
233
|
+
* forInitialPlan: true,
|
|
234
|
+
* forTrialExpiryPlan: true,
|
|
235
|
+
* hasProductId: true,
|
|
236
|
+
* planType: "plan",
|
|
237
|
+
* q: "q",
|
|
238
|
+
* requiresPaymentMethod: true,
|
|
239
|
+
* withoutEntitlementFor: "without_entitlement_for",
|
|
240
|
+
* withoutProductId: true,
|
|
241
|
+
* withoutPaidProductId: true,
|
|
242
|
+
* limit: 1,
|
|
243
|
+
* offset: 1
|
|
244
|
+
* })
|
|
217
245
|
*/
|
|
218
246
|
countPlans(request?: Schematic.CountPlansRequest, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.CountPlansResponse>;
|
|
219
247
|
private __countPlans;
|
|
248
|
+
/**
|
|
249
|
+
* @param {Schematic.ListPlanIssuesRequest} request
|
|
250
|
+
* @param {Plans.RequestOptions} requestOptions - Request-specific configuration.
|
|
251
|
+
*
|
|
252
|
+
* @throws {@link Schematic.BadRequestError}
|
|
253
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
254
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
255
|
+
* @throws {@link Schematic.NotFoundError}
|
|
256
|
+
* @throws {@link Schematic.InternalServerError}
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* await client.plans.listPlanIssues({
|
|
260
|
+
* planId: "plan_id"
|
|
261
|
+
* })
|
|
262
|
+
*/
|
|
263
|
+
listPlanIssues(request: Schematic.ListPlanIssuesRequest, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Schematic.ListPlanIssuesResponse>;
|
|
264
|
+
private __listPlanIssues;
|
|
220
265
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
221
|
-
"X-Schematic-Api-Key": string;
|
|
266
|
+
"X-Schematic-Api-Key": string | undefined;
|
|
222
267
|
}>;
|
|
223
268
|
}
|
|
@@ -4,10 +4,36 @@
|
|
|
4
4
|
import * as Schematic from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* companyId: "company_id",
|
|
9
|
+
* forFallbackPlan: true,
|
|
10
|
+
* forInitialPlan: true,
|
|
11
|
+
* forTrialExpiryPlan: true,
|
|
12
|
+
* hasProductId: true,
|
|
13
|
+
* planType: "plan",
|
|
14
|
+
* q: "q",
|
|
15
|
+
* requiresPaymentMethod: true,
|
|
16
|
+
* withoutEntitlementFor: "without_entitlement_for",
|
|
17
|
+
* withoutProductId: true,
|
|
18
|
+
* withoutPaidProductId: true,
|
|
19
|
+
* limit: 1,
|
|
20
|
+
* offset: 1
|
|
21
|
+
* }
|
|
8
22
|
*/
|
|
9
23
|
export interface CountPlansRequest {
|
|
10
24
|
companyId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Filter for plans valid as fallback plans (not linked to billing)
|
|
27
|
+
*/
|
|
28
|
+
forFallbackPlan?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial)
|
|
31
|
+
*/
|
|
32
|
+
forInitialPlan?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Filter for plans valid as trial expiry plans (not linked to billing or free)
|
|
35
|
+
*/
|
|
36
|
+
forTrialExpiryPlan?: boolean;
|
|
11
37
|
/**
|
|
12
38
|
* Filter out plans that do not have a billing product ID
|
|
13
39
|
*/
|
|
@@ -18,6 +44,10 @@ export interface CountPlansRequest {
|
|
|
18
44
|
*/
|
|
19
45
|
planType?: Schematic.CountPlansRequestPlanType;
|
|
20
46
|
q?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Filter for plans that require a payment method (inverse of ForInitialPlan)
|
|
49
|
+
*/
|
|
50
|
+
requiresPaymentMethod?: boolean;
|
|
21
51
|
/**
|
|
22
52
|
* Filter out plans that already have a plan entitlement for the specified feature ID
|
|
23
53
|
*/
|
|
@@ -4,10 +4,36 @@
|
|
|
4
4
|
import * as Schematic from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
7
|
+
* {
|
|
8
|
+
* companyId: "company_id",
|
|
9
|
+
* forFallbackPlan: true,
|
|
10
|
+
* forInitialPlan: true,
|
|
11
|
+
* forTrialExpiryPlan: true,
|
|
12
|
+
* hasProductId: true,
|
|
13
|
+
* planType: "plan",
|
|
14
|
+
* q: "q",
|
|
15
|
+
* requiresPaymentMethod: true,
|
|
16
|
+
* withoutEntitlementFor: "without_entitlement_for",
|
|
17
|
+
* withoutProductId: true,
|
|
18
|
+
* withoutPaidProductId: true,
|
|
19
|
+
* limit: 1,
|
|
20
|
+
* offset: 1
|
|
21
|
+
* }
|
|
8
22
|
*/
|
|
9
23
|
export interface ListPlansRequest {
|
|
10
24
|
companyId?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Filter for plans valid as fallback plans (not linked to billing)
|
|
27
|
+
*/
|
|
28
|
+
forFallbackPlan?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial)
|
|
31
|
+
*/
|
|
32
|
+
forInitialPlan?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Filter for plans valid as trial expiry plans (not linked to billing or free)
|
|
35
|
+
*/
|
|
36
|
+
forTrialExpiryPlan?: boolean;
|
|
11
37
|
/**
|
|
12
38
|
* Filter out plans that do not have a billing product ID
|
|
13
39
|
*/
|
|
@@ -18,6 +44,10 @@ export interface ListPlansRequest {
|
|
|
18
44
|
*/
|
|
19
45
|
planType?: Schematic.ListPlansRequestPlanType;
|
|
20
46
|
q?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Filter for plans that require a payment method (inverse of ForInitialPlan)
|
|
49
|
+
*/
|
|
50
|
+
requiresPaymentMethod?: boolean;
|
|
21
51
|
/**
|
|
22
52
|
* Filter out plans that already have a plan entitlement for the specified feature ID
|
|
23
53
|
*/
|
|
@@ -5,3 +5,4 @@ export { type CreatePlanRequestBody } from "./CreatePlanRequestBody";
|
|
|
5
5
|
export { type UpdatePlanRequestBody } from "./UpdatePlanRequestBody";
|
|
6
6
|
export { type UpsertBillingProductRequestBody } from "./UpsertBillingProductRequestBody";
|
|
7
7
|
export { type CountPlansRequest } from "./CountPlansRequest";
|
|
8
|
+
export { type ListPlanIssuesRequest } from "./ListPlanIssuesRequest";
|
|
@@ -7,6 +7,12 @@ import * as Schematic from "../../../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface CountPlansParams {
|
|
9
9
|
companyId?: string;
|
|
10
|
+
/** Filter for plans valid as fallback plans (not linked to billing) */
|
|
11
|
+
forFallbackPlan?: boolean;
|
|
12
|
+
/** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
|
|
13
|
+
forInitialPlan?: boolean;
|
|
14
|
+
/** Filter for plans valid as trial expiry plans (not linked to billing or free) */
|
|
15
|
+
forTrialExpiryPlan?: boolean;
|
|
10
16
|
/** Filter out plans that do not have a billing product ID */
|
|
11
17
|
hasProductId?: boolean;
|
|
12
18
|
ids?: string[];
|
|
@@ -17,6 +23,8 @@ export interface CountPlansParams {
|
|
|
17
23
|
/** Filter by plan type */
|
|
18
24
|
planType?: Schematic.CountPlansResponseParamsPlanType;
|
|
19
25
|
q?: string;
|
|
26
|
+
/** Filter for plans that require a payment method (inverse of ForInitialPlan) */
|
|
27
|
+
requiresPaymentMethod?: boolean;
|
|
20
28
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
21
29
|
withoutEntitlementFor?: string;
|
|
22
30
|
/** Filter out plans that have a paid billing product ID */
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Schematic from "../../../index";
|
|
5
|
+
export interface ListPlanIssuesResponse {
|
|
6
|
+
data: Schematic.PlanIssueResponseData[];
|
|
7
|
+
/** Input parameters */
|
|
8
|
+
params: Schematic.ListPlanIssuesParams;
|
|
9
|
+
}
|
|
@@ -7,6 +7,12 @@ import * as Schematic from "../../../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface ListPlansParams {
|
|
9
9
|
companyId?: string;
|
|
10
|
+
/** Filter for plans valid as fallback plans (not linked to billing) */
|
|
11
|
+
forFallbackPlan?: boolean;
|
|
12
|
+
/** Filter for plans valid as initial plans (not linked to billing, free, or auto-cancelling trial) */
|
|
13
|
+
forInitialPlan?: boolean;
|
|
14
|
+
/** Filter for plans valid as trial expiry plans (not linked to billing or free) */
|
|
15
|
+
forTrialExpiryPlan?: boolean;
|
|
10
16
|
/** Filter out plans that do not have a billing product ID */
|
|
11
17
|
hasProductId?: boolean;
|
|
12
18
|
ids?: string[];
|
|
@@ -17,6 +23,8 @@ export interface ListPlansParams {
|
|
|
17
23
|
/** Filter by plan type */
|
|
18
24
|
planType?: Schematic.ListPlansResponseParamsPlanType;
|
|
19
25
|
q?: string;
|
|
26
|
+
/** Filter for plans that require a payment method (inverse of ForInitialPlan) */
|
|
27
|
+
requiresPaymentMethod?: boolean;
|
|
20
28
|
/** Filter out plans that already have a plan entitlement for the specified feature ID */
|
|
21
29
|
withoutEntitlementFor?: string;
|
|
22
30
|
/** Filter out plans that have a paid billing product ID */
|
|
@@ -9,7 +9,7 @@ export declare namespace Webhooks {
|
|
|
9
9
|
environment?: core.Supplier<environments.SchematicEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
apiKey
|
|
12
|
+
apiKey?: core.Supplier<string | undefined>;
|
|
13
13
|
fetcher?: core.FetchFunction;
|
|
14
14
|
}
|
|
15
15
|
interface RequestOptions {
|
|
@@ -25,7 +25,7 @@ export declare namespace Webhooks {
|
|
|
25
25
|
}
|
|
26
26
|
export declare class Webhooks {
|
|
27
27
|
protected readonly _options: Webhooks.Options;
|
|
28
|
-
constructor(_options
|
|
28
|
+
constructor(_options?: Webhooks.Options);
|
|
29
29
|
/**
|
|
30
30
|
* @param {Schematic.ListWebhookEventsRequest} request
|
|
31
31
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -37,7 +37,12 @@ export declare class Webhooks {
|
|
|
37
37
|
* @throws {@link Schematic.InternalServerError}
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* await client.webhooks.listWebhookEvents(
|
|
40
|
+
* await client.webhooks.listWebhookEvents({
|
|
41
|
+
* q: "q",
|
|
42
|
+
* webhookId: "webhook_id",
|
|
43
|
+
* limit: 1,
|
|
44
|
+
* offset: 1
|
|
45
|
+
* })
|
|
41
46
|
*/
|
|
42
47
|
listWebhookEvents(request?: Schematic.ListWebhookEventsRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Schematic.ListWebhookEventsResponse>;
|
|
43
48
|
private __listWebhookEvents;
|
|
@@ -66,7 +71,12 @@ export declare class Webhooks {
|
|
|
66
71
|
* @throws {@link Schematic.InternalServerError}
|
|
67
72
|
*
|
|
68
73
|
* @example
|
|
69
|
-
* await client.webhooks.countWebhookEvents(
|
|
74
|
+
* await client.webhooks.countWebhookEvents({
|
|
75
|
+
* q: "q",
|
|
76
|
+
* webhookId: "webhook_id",
|
|
77
|
+
* limit: 1,
|
|
78
|
+
* offset: 1
|
|
79
|
+
* })
|
|
70
80
|
*/
|
|
71
81
|
countWebhookEvents(request?: Schematic.CountWebhookEventsRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Schematic.CountWebhookEventsResponse>;
|
|
72
82
|
private __countWebhookEvents;
|
|
@@ -81,7 +91,11 @@ export declare class Webhooks {
|
|
|
81
91
|
* @throws {@link Schematic.InternalServerError}
|
|
82
92
|
*
|
|
83
93
|
* @example
|
|
84
|
-
* await client.webhooks.listWebhooks(
|
|
94
|
+
* await client.webhooks.listWebhooks({
|
|
95
|
+
* q: "q",
|
|
96
|
+
* limit: 1,
|
|
97
|
+
* offset: 1
|
|
98
|
+
* })
|
|
85
99
|
*/
|
|
86
100
|
listWebhooks(request?: Schematic.ListWebhooksRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Schematic.ListWebhooksResponse>;
|
|
87
101
|
private __listWebhooks;
|
|
@@ -160,11 +174,15 @@ export declare class Webhooks {
|
|
|
160
174
|
* @throws {@link Schematic.InternalServerError}
|
|
161
175
|
*
|
|
162
176
|
* @example
|
|
163
|
-
* await client.webhooks.countWebhooks(
|
|
177
|
+
* await client.webhooks.countWebhooks({
|
|
178
|
+
* q: "q",
|
|
179
|
+
* limit: 1,
|
|
180
|
+
* offset: 1
|
|
181
|
+
* })
|
|
164
182
|
*/
|
|
165
183
|
countWebhooks(request?: Schematic.CountWebhooksRequest, requestOptions?: Webhooks.RequestOptions): core.HttpResponsePromise<Schematic.CountWebhooksResponse>;
|
|
166
184
|
private __countWebhooks;
|
|
167
185
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
|
168
|
-
"X-Schematic-Api-Key": string;
|
|
186
|
+
"X-Schematic-Api-Key": string | undefined;
|
|
169
187
|
}>;
|
|
170
188
|
}
|