@schematichq/schematic-typescript-node 1.1.2 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +13 -0
- package/Client.js +97 -4
- package/api/resources/accesstokens/client/Client.js +1 -1
- package/api/resources/accounts/client/Client.d.ts +1 -1
- package/api/resources/accounts/client/Client.js +15 -15
- package/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/api/resources/billing/client/Client.d.ts +131 -1
- package/api/resources/billing/client/Client.js +836 -11
- package/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
- package/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
- package/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
- package/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
- package/api/resources/{companies/client/requests/ListCompanyPlansRequest.d.ts → billing/client/requests/ListMetersRequest.d.ts} +2 -3
- package/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
- package/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
- package/api/resources/billing/client/requests/index.d.ts +7 -0
- package/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/api/resources/{components/types/HydrateComponentResponse.d.ts → billing/types/DeleteProductPriceResponse.d.ts} +2 -2
- package/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
- package/api/resources/billing/types/ListInvoicesParams.js +5 -0
- package/{dist/api/resources/companies/types/ListCompanyPlansResponse.d.ts → api/resources/billing/types/ListInvoicesResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListInvoicesResponse.js +5 -0
- package/api/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListMetersParams.d.ts} +2 -3
- package/api/resources/billing/types/ListMetersParams.js +5 -0
- package/api/resources/{companies/types/ListCompanyPlansResponse.d.ts → billing/types/ListMetersResponse.d.ts} +3 -3
- package/api/resources/billing/types/ListMetersResponse.js +5 -0
- package/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
- package/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
- package/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/{dist/api/resources/components/types/HydrateComponentResponse.d.ts → api/resources/billing/types/UpsertBillingMeterResponse.d.ts} +2 -2
- package/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
- package/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
- package/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
- package/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
- package/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
- package/api/resources/billing/types/index.d.ts +12 -0
- package/api/resources/billing/types/index.js +12 -0
- package/api/resources/companies/client/Client.d.ts +3 -16
- package/api/resources/companies/client/Client.js +50 -149
- package/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/api/resources/companies/client/requests/index.d.ts +0 -1
- package/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/api/resources/companies/types/index.d.ts +0 -2
- package/api/resources/companies/types/index.js +0 -2
- package/api/resources/components/client/Client.d.ts +9 -9
- package/api/resources/components/client/Client.js +49 -40
- package/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
- package/api/resources/components/client/requests/index.d.ts +1 -0
- package/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/api/resources/components/types/PreviewComponentDataParams.js +5 -0
- package/api/resources/components/types/PreviewComponentDataResponse.d.ts +9 -0
- package/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
- package/api/resources/components/types/index.d.ts +2 -1
- package/api/resources/components/types/index.js +2 -1
- package/api/resources/crm/client/Client.js +5 -5
- package/api/resources/entitlements/client/Client.d.ts +4 -4
- package/api/resources/entitlements/client/Client.js +31 -25
- package/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
- package/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
- package/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
- package/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/api/resources/events/client/Client.d.ts +2 -2
- package/api/resources/events/client/Client.js +10 -10
- package/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/api/resources/features/client/Client.d.ts +21 -21
- package/api/resources/features/client/Client.js +40 -40
- package/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/plangroups/client/Client.d.ts +74 -0
- package/api/resources/plangroups/client/Client.js +346 -0
- package/api/resources/plangroups/client/index.d.ts +1 -0
- package/api/resources/plangroups/client/index.js +17 -0
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +15 -0
- package/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +15 -0
- package/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/api/resources/plangroups/client/requests/index.js +2 -0
- package/api/resources/plangroups/index.d.ts +2 -0
- package/api/resources/plangroups/index.js +18 -0
- package/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/api/resources/plangroups/types/index.d.ts +3 -0
- package/api/resources/plangroups/types/index.js +19 -0
- package/api/resources/plans/client/Client.d.ts +5 -6
- package/api/resources/plans/client/Client.js +35 -24
- package/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -2
- package/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
- package/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/api/resources/webhooks/client/Client.d.ts +1 -1
- package/api/resources/webhooks/client/Client.js +18 -18
- package/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/api/types/BillingCustomerSubscription.d.ts +1 -0
- package/api/types/BillingMeterResponseData.d.ts +10 -0
- package/api/types/BillingMeterResponseData.js +5 -0
- package/api/types/BillingPriceResponseData.d.ts +1 -0
- package/api/types/BillingProductForSubscriptionResponseData.d.ts +18 -0
- package/api/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/api/types/BillingProductPricing.d.ts +3 -0
- package/api/types/BillingSubscriptionResponseData.d.ts +4 -4
- package/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/api/types/CompanyDetailResponseData.d.ts +4 -3
- package/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
- package/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/api/types/CompanyPlanWithBillingSubView.d.ts +12 -0
- package/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/api/types/CompanySubscriptionResponseData.d.ts +6 -1
- package/api/types/ComponentHydrateResponseData.d.ts +5 -3
- package/api/types/ComponentPreviewResponseData.d.ts +18 -0
- package/api/types/ComponentPreviewResponseData.js +5 -0
- package/api/types/ComponentResponseData.d.ts +3 -0
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
- package/api/types/CreateReqCommonMetricPeriod.js +1 -0
- package/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/api/types/GenericPreviewObject.d.ts +9 -0
- package/api/types/GenericPreviewObject.js +5 -0
- package/api/types/InvoiceRequestBody.d.ts +16 -0
- package/api/types/InvoiceRequestBody.js +5 -0
- package/api/types/InvoiceResponseData.d.ts +22 -0
- package/api/types/InvoiceResponseData.js +5 -0
- package/api/types/MeterRequestBody.d.ts +8 -0
- package/api/types/MeterRequestBody.js +5 -0
- package/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/api/types/PaymentMethodRequestBody.js +5 -0
- package/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/api/types/PaymentMethodResponseData.js +5 -0
- package/api/types/PlanDetailResponseData.d.ts +4 -4
- package/api/types/PlanEntitlementResponseData.d.ts +0 -3
- package/api/types/PlanGroupDetailResponseData.d.ts +13 -0
- package/api/types/PlanGroupDetailResponseData.js +5 -0
- package/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
- package/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/api/types/PlanGroupResponseData.d.ts +12 -0
- package/api/types/PlanGroupResponseData.js +5 -0
- package/api/types/PlanResponseData.d.ts +1 -1
- package/api/types/StripeEmbedInfo.d.ts +7 -0
- package/api/types/StripeEmbedInfo.js +5 -0
- package/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
- package/api/types/UpdateReqCommonMetricPeriod.js +1 -0
- package/api/types/index.d.ts +15 -1
- package/api/types/index.js +15 -1
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/Client.d.ts +13 -0
- package/dist/Client.js +97 -4
- package/dist/api/resources/accesstokens/client/Client.js +1 -1
- package/dist/api/resources/accounts/client/Client.d.ts +1 -1
- package/dist/api/resources/accounts/client/Client.js +15 -15
- package/dist/api/resources/accounts/client/requests/CreateEnvironmentRequestBody.d.ts +1 -1
- package/dist/api/resources/billing/client/Client.d.ts +131 -1
- package/dist/api/resources/billing/client/Client.js +836 -11
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +24 -0
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +8 -1
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +29 -0
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +18 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +26 -0
- package/dist/api/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +5 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.js +5 -0
- package/dist/api/resources/{companies/client/requests/ListCompanyPlansRequest.d.ts → billing/client/requests/ListMetersRequest.d.ts} +2 -3
- package/dist/api/resources/billing/client/requests/ListMetersRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +22 -0
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.js +5 -0
- package/dist/api/resources/billing/client/requests/ListProductPricesRequest.d.ts +4 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +7 -0
- package/dist/api/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/dist/api/resources/billing/types/CountBillingProductsParams.js +5 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/CountBillingProductsResponse.js +5 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/DeleteProductPriceResponse.js +5 -0
- package/dist/api/resources/billing/types/ListBillingProductsParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListInvoicesParams.js +5 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListInvoicesResponse.js +5 -0
- package/dist/api/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListMetersParams.d.ts} +2 -3
- package/dist/api/resources/billing/types/ListMetersParams.js +5 -0
- package/dist/api/resources/billing/types/ListMetersResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListMetersResponse.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.d.ts +15 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsParams.js +5 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.d.ts +10 -0
- package/dist/api/resources/billing/types/ListPaymentMethodsResponse.js +5 -0
- package/dist/api/resources/billing/types/ListProductPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertBillingMeterResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertInvoiceResponse.js +5 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.d.ts +9 -0
- package/dist/api/resources/billing/types/UpsertPaymentMethodResponse.js +5 -0
- package/dist/api/resources/billing/types/index.d.ts +12 -0
- package/dist/api/resources/billing/types/index.js +12 -0
- package/dist/api/resources/companies/client/Client.d.ts +3 -16
- package/dist/api/resources/companies/client/Client.js +50 -149
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/CreateEntityTraitDefinitionRequestBody.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +11 -1
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +10 -1
- package/dist/api/resources/companies/client/requests/UpdateEntityTraitDefinitionRequestBody.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/index.d.ts +0 -1
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/CountUsersParams.d.ts +4 -1
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +5 -1
- package/dist/api/resources/companies/types/ListUsersParams.d.ts +4 -1
- package/dist/api/resources/companies/types/index.d.ts +0 -2
- package/dist/api/resources/companies/types/index.js +0 -2
- package/dist/api/resources/components/client/Client.d.ts +9 -9
- package/dist/api/resources/components/client/Client.js +49 -40
- package/dist/api/resources/components/client/requests/CreateComponentRequestBody.d.ts +1 -1
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.d.ts +11 -0
- package/dist/api/resources/components/client/requests/PreviewComponentDataRequest.js +5 -0
- package/dist/api/resources/components/client/requests/index.d.ts +1 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.d.ts +10 -0
- package/dist/api/resources/components/types/PreviewComponentDataParams.js +5 -0
- package/dist/api/resources/components/types/PreviewComponentDataResponse.d.ts +9 -0
- package/dist/api/resources/components/types/PreviewComponentDataResponse.js +5 -0
- package/dist/api/resources/components/types/index.d.ts +2 -1
- package/dist/api/resources/components/types/index.js +2 -1
- package/dist/api/resources/crm/client/Client.js +5 -5
- package/dist/api/resources/entitlements/client/Client.d.ts +4 -4
- package/dist/api/resources/entitlements/client/Client.js +31 -25
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -1
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +18 -0
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/types/CountCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/CountPlanEntitlementsParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/ListCompanyOverridesParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/api/resources/entitlements/types/ListPlanEntitlementsParams.d.ts +6 -0
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -0
- package/dist/api/resources/events/client/Client.d.ts +2 -2
- package/dist/api/resources/events/client/Client.js +10 -10
- package/dist/api/resources/events/client/requests/CreateEventBatchRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/Client.d.ts +21 -21
- package/dist/api/resources/features/client/Client.js +40 -40
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +4 -4
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +74 -0
- package/dist/api/resources/plangroups/client/Client.js +346 -0
- package/dist/api/resources/plangroups/client/index.d.ts +1 -0
- package/dist/api/resources/plangroups/client/index.js +17 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +15 -0
- package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +15 -0
- package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +5 -0
- package/dist/api/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/api/resources/plangroups/client/requests/index.js +2 -0
- package/dist/api/resources/plangroups/index.d.ts +2 -0
- package/dist/api/resources/plangroups/index.js +18 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/CreatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +9 -0
- package/dist/api/resources/plangroups/types/UpdatePlanGroupResponse.js +5 -0
- package/dist/api/resources/plangroups/types/index.d.ts +3 -0
- package/dist/api/resources/plangroups/types/index.js +19 -0
- package/dist/api/resources/plans/client/Client.d.ts +5 -6
- package/dist/api/resources/plans/client/Client.js +35 -24
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/CreatePlanRequestBody.d.ts +1 -2
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/UpdateAudienceRequestBody.d.ts +4 -4
- package/dist/api/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -2
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +1 -1
- package/dist/api/resources/webhooks/client/Client.js +18 -18
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/CreateWebhookRequestBody.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +1 -1
- package/dist/api/types/BillingCustomerSubscription.d.ts +1 -0
- package/dist/api/types/BillingMeterResponseData.d.ts +10 -0
- package/dist/api/types/BillingMeterResponseData.js +5 -0
- package/dist/api/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +18 -0
- package/dist/api/types/BillingProductForSubscriptionResponseData.js +5 -0
- package/dist/api/types/BillingProductPricing.d.ts +3 -0
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +4 -4
- package/dist/api/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/api/types/CompanyDetailResponseData.d.ts +4 -3
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +23 -0
- package/dist/api/types/CompanyPlanDetailResponseData.js +5 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.d.ts +12 -0
- package/dist/api/types/CompanyPlanWithBillingSubView.js +5 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +6 -1
- package/dist/api/types/ComponentHydrateResponseData.d.ts +5 -3
- package/dist/api/types/ComponentPreviewResponseData.d.ts +18 -0
- package/dist/api/types/ComponentPreviewResponseData.js +5 -0
- package/dist/api/types/ComponentResponseData.d.ts +3 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyConditionType.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +2 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -0
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +3 -1
- package/dist/api/types/CreateOrUpdateConditionRequestBodyOperator.js +2 -0
- package/dist/api/types/CreateReqCommonMetricPeriod.d.ts +2 -1
- package/dist/api/types/CreateReqCommonMetricPeriod.js +1 -0
- package/dist/api/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/api/types/GenericPreviewObject.d.ts +9 -0
- package/dist/api/types/GenericPreviewObject.js +5 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +16 -0
- package/dist/api/types/InvoiceRequestBody.js +5 -0
- package/dist/api/types/InvoiceResponseData.d.ts +22 -0
- package/dist/api/types/InvoiceResponseData.js +5 -0
- package/dist/api/types/MeterRequestBody.d.ts +8 -0
- package/dist/api/types/MeterRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodRequestBody.d.ts +17 -0
- package/dist/api/types/PaymentMethodRequestBody.js +5 -0
- package/dist/api/types/PaymentMethodResponseData.d.ts +23 -0
- package/dist/api/types/PaymentMethodResponseData.js +5 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +4 -4
- package/dist/api/types/PlanEntitlementResponseData.d.ts +0 -3
- package/dist/api/types/PlanGroupDetailResponseData.d.ts +13 -0
- package/dist/api/types/PlanGroupDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +21 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.js +5 -0
- package/dist/api/types/PlanGroupResponseData.d.ts +12 -0
- package/dist/api/types/PlanGroupResponseData.js +5 -0
- package/dist/api/types/PlanResponseData.d.ts +1 -1
- package/dist/api/types/StripeEmbedInfo.d.ts +7 -0
- package/dist/api/types/StripeEmbedInfo.js +5 -0
- package/dist/api/types/UpdateReqCommonMetricPeriod.d.ts +2 -1
- package/dist/api/types/UpdateReqCommonMetricPeriod.js +1 -0
- package/dist/api/types/index.d.ts +15 -1
- package/dist/api/types/index.js +15 -1
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +8 -8
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +16 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +2 -1
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +23 -2
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +1 -1
- package/dist/core/schemas/Schema.d.ts +1 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/events.d.ts +3 -0
- package/dist/events.js +17 -5
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/dist/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/index.js +7 -1
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/dist/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/{serialization/resources/components/types/HydrateComponentResponse.js → dist/serialization/resources/billing/types/DeleteProductPriceResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
- package/dist/serialization/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListInvoicesParams.d.ts} +4 -3
- package/dist/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/dist/serialization/resources/{companies/types/ListCompanyPlansParams.js → billing/types/ListMetersParams.js} +3 -4
- package/dist/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/dist/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
- package/dist/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/dist/serialization/resources/{components/types/HydrateComponentResponse.js → billing/types/UpsertBillingMeterResponse.js} +4 -4
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/dist/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/dist/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
- package/dist/serialization/resources/billing/types/index.d.ts +12 -0
- package/dist/serialization/resources/billing/types/index.js +12 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/dist/serialization/resources/companies/types/index.d.ts +0 -2
- package/dist/serialization/resources/companies/types/index.js +0 -2
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/dist/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/dist/serialization/resources/{companies/types/ListCompanyPlansResponse.js → components/types/PreviewComponentDataResponse.js} +6 -6
- package/dist/serialization/resources/components/types/index.d.ts +2 -1
- package/dist/serialization/resources/components/types/index.js +2 -1
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/dist/serialization/resources/plangroups/client/index.js +17 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +35 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +35 -0
- package/dist/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/dist/serialization/resources/plangroups/index.d.ts +2 -0
- package/dist/serialization/resources/plangroups/index.js +18 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/dist/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/dist/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/dist/serialization/resources/plangroups/types/index.js +19 -0
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/dist/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
- package/dist/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/dist/serialization/types/BillingCustomerSubscription.d.ts +1 -0
- package/dist/serialization/types/BillingCustomerSubscription.js +1 -0
- package/dist/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/{serialization/types/CompanyPlanResponseData.js → dist/serialization/types/BillingMeterResponseData.js} +6 -7
- package/dist/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingPriceResponseData.js +1 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +24 -0
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.js +45 -0
- package/dist/serialization/types/BillingProductPricing.d.ts +3 -0
- package/dist/serialization/types/BillingProductPricing.js +3 -0
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
- package/dist/serialization/types/BillingSubscriptionResponseData.js +4 -1
- package/dist/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/dist/serialization/types/CheckFlagRequestBody.js +2 -2
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +7 -4
- package/dist/serialization/types/CompanyDetailResponseData.js +7 -4
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.d.ts +18 -0
- package/dist/serialization/types/CompanyPlanWithBillingSubView.js +39 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +9 -2
- package/dist/serialization/types/CompanySubscriptionResponseData.js +9 -2
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
- package/dist/serialization/types/ComponentHydrateResponseData.js +9 -0
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
- package/dist/serialization/types/ComponentPreviewResponseData.js +48 -0
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/dist/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/dist/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/dist/serialization/types/EventBodyFlagCheck.js +2 -2
- package/dist/serialization/types/GenericPreviewObject.d.ts +15 -0
- package/dist/serialization/types/GenericPreviewObject.js +36 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/dist/serialization/types/InvoiceRequestBody.js +43 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/dist/serialization/types/InvoiceResponseData.js +49 -0
- package/dist/serialization/types/MeterRequestBody.d.ts +14 -0
- package/dist/serialization/types/MeterRequestBody.js +35 -0
- package/dist/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/dist/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/dist/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/dist/serialization/types/PaymentMethodResponseData.js +50 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +5 -1
- package/dist/serialization/types/PlanDetailResponseData.js +5 -1
- package/dist/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/dist/serialization/types/PlanGroupDetailResponseData.js +37 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
- package/dist/serialization/types/PlanGroupResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanGroupResponseData.js +36 -0
- package/dist/serialization/types/PlanResponseData.d.ts +1 -1
- package/dist/serialization/types/PlanResponseData.js +1 -1
- package/dist/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/dist/serialization/types/StripeEmbedInfo.js +34 -0
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
- package/dist/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
- package/dist/serialization/types/index.d.ts +15 -1
- package/dist/serialization/types/index.js +15 -1
- package/dist/wrapper.js +20 -15
- package/events.d.ts +3 -0
- package/events.js +17 -5
- package/package.json +9 -3
- package/reference.md +691 -136
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.js +1 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.d.ts +3 -0
- package/serialization/resources/billing/client/requests/CreateBillingSubscriptionsRequestBody.js +3 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +23 -0
- package/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.js +44 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +15 -0
- package/serialization/resources/billing/client/requests/CreateMeterRequestBody.js +36 -0
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.d.ts +24 -0
- package/serialization/resources/billing/client/requests/CreatePaymentMethodRequestBody.js +45 -0
- package/serialization/resources/billing/client/requests/index.d.ts +3 -0
- package/serialization/resources/billing/client/requests/index.js +7 -1
- package/serialization/resources/billing/types/CountBillingProductsParams.d.ts +17 -0
- package/serialization/resources/billing/types/CountBillingProductsParams.js +38 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/CountBillingProductsResponse.js +36 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/DeleteProductPriceResponse.js +35 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.d.ts +1 -0
- package/serialization/resources/billing/types/ListBillingProductsParams.js +1 -0
- package/serialization/resources/{companies/types/ListCompanyPlansParams.d.ts → billing/types/ListInvoicesParams.d.ts} +4 -3
- package/serialization/resources/billing/types/ListInvoicesParams.js +37 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListInvoicesResponse.js +36 -0
- package/serialization/resources/billing/types/ListMetersParams.d.ts +14 -0
- package/serialization/resources/{companies/types/ListCompanyPlansParams.js → billing/types/ListMetersParams.js} +3 -4
- package/serialization/resources/billing/types/ListMetersResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListMetersResponse.js +36 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.d.ts +16 -0
- package/serialization/resources/billing/types/ListPaymentMethodsParams.js +37 -0
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.d.ts +15 -0
- package/serialization/resources/billing/types/ListPaymentMethodsResponse.js +36 -0
- package/serialization/resources/billing/types/ListProductPricesParams.d.ts +1 -0
- package/serialization/resources/billing/types/ListProductPricesParams.js +1 -0
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertBillingMeterResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertInvoiceResponse.js +35 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.d.ts +14 -0
- package/serialization/resources/billing/types/UpsertPaymentMethodResponse.js +35 -0
- package/serialization/resources/billing/types/index.d.ts +12 -0
- package/serialization/resources/billing/types/index.js +12 -0
- package/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/CountCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/serialization/resources/companies/types/ListCompaniesParams.js +1 -0
- package/serialization/resources/companies/types/index.d.ts +0 -2
- package/serialization/resources/companies/types/index.js +0 -2
- package/serialization/resources/components/types/PreviewComponentDataParams.d.ts +13 -0
- package/serialization/resources/components/types/PreviewComponentDataParams.js +34 -0
- package/serialization/resources/components/types/PreviewComponentDataResponse.d.ts +15 -0
- package/serialization/resources/components/types/PreviewComponentDataResponse.js +36 -0
- package/serialization/resources/components/types/index.d.ts +2 -1
- package/serialization/resources/components/types/index.js +2 -1
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/CountFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/CreatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.d.ts +1 -0
- package/serialization/resources/entitlements/types/ListFeatureUsageParams.js +1 -0
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdateCompanyOverrideRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/resources/entitlements/types/UpdatePlanEntitlementRequestBodyMetricPeriod.js +1 -1
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/plangroups/client/index.d.ts +1 -0
- package/serialization/resources/plangroups/client/index.js +17 -0
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +14 -0
- package/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.js +35 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +14 -0
- package/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.js +35 -0
- package/serialization/resources/plangroups/client/requests/index.d.ts +2 -0
- package/serialization/resources/plangroups/client/requests/index.js +7 -0
- package/serialization/resources/plangroups/index.d.ts +2 -0
- package/serialization/resources/plangroups/index.js +18 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/CreatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/GetPlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.d.ts +14 -0
- package/serialization/resources/plangroups/types/UpdatePlanGroupResponse.js +35 -0
- package/serialization/resources/plangroups/types/index.d.ts +3 -0
- package/serialization/resources/plangroups/types/index.js +19 -0
- package/serialization/resources/plans/client/requests/CreatePlanRequestBody.d.ts +0 -1
- package/serialization/resources/plans/client/requests/CreatePlanRequestBody.js +0 -1
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.d.ts +0 -1
- package/serialization/resources/plans/client/requests/UpdatePlanRequestBody.js +0 -1
- package/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/CountPlansParams.js +2 -0
- package/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/serialization/resources/plans/types/ListPlansParams.js +2 -0
- package/serialization/types/BillingCustomerSubscription.d.ts +1 -0
- package/serialization/types/BillingCustomerSubscription.js +1 -0
- package/serialization/types/BillingMeterResponseData.d.ts +16 -0
- package/{dist/serialization/types/CompanyPlanResponseData.js → serialization/types/BillingMeterResponseData.js} +6 -7
- package/serialization/types/BillingPriceResponseData.d.ts +1 -0
- package/serialization/types/BillingPriceResponseData.js +1 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.d.ts +24 -0
- package/serialization/types/BillingProductForSubscriptionResponseData.js +45 -0
- package/serialization/types/BillingProductPricing.d.ts +3 -0
- package/serialization/types/BillingProductPricing.js +3 -0
- package/serialization/types/BillingSubscriptionResponseData.d.ts +4 -1
- package/serialization/types/BillingSubscriptionResponseData.js +4 -1
- package/serialization/types/CheckFlagRequestBody.d.ts +2 -2
- package/serialization/types/CheckFlagRequestBody.js +2 -2
- package/serialization/types/CompanyDetailResponseData.d.ts +7 -4
- package/serialization/types/CompanyDetailResponseData.js +7 -4
- package/serialization/types/CompanyPlanDetailResponseData.d.ts +32 -0
- package/serialization/types/CompanyPlanDetailResponseData.js +53 -0
- package/serialization/types/CompanyPlanWithBillingSubView.d.ts +18 -0
- package/serialization/types/CompanyPlanWithBillingSubView.js +39 -0
- package/serialization/types/CompanySubscriptionResponseData.d.ts +9 -2
- package/serialization/types/CompanySubscriptionResponseData.js +9 -2
- package/serialization/types/ComponentHydrateResponseData.d.ts +9 -0
- package/serialization/types/ComponentHydrateResponseData.js +9 -0
- package/serialization/types/ComponentPreviewResponseData.d.ts +27 -0
- package/serialization/types/ComponentPreviewResponseData.js +48 -0
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyConditionType.js +10 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyMetricPeriod.js +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.d.ts +1 -1
- package/serialization/types/CreateOrUpdateConditionRequestBodyOperator.js +1 -1
- package/serialization/types/CreateReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/CreateReqCommonMetricPeriod.js +1 -1
- package/serialization/types/EventBodyFlagCheck.d.ts +2 -2
- package/serialization/types/EventBodyFlagCheck.js +2 -2
- package/serialization/types/GenericPreviewObject.d.ts +15 -0
- package/serialization/types/GenericPreviewObject.js +36 -0
- package/serialization/types/InvoiceRequestBody.d.ts +22 -0
- package/serialization/types/InvoiceRequestBody.js +43 -0
- package/serialization/types/InvoiceResponseData.d.ts +28 -0
- package/serialization/types/InvoiceResponseData.js +49 -0
- package/serialization/types/MeterRequestBody.d.ts +14 -0
- package/serialization/types/MeterRequestBody.js +35 -0
- package/serialization/types/PaymentMethodRequestBody.d.ts +23 -0
- package/serialization/types/PaymentMethodRequestBody.js +44 -0
- package/serialization/types/PaymentMethodResponseData.d.ts +29 -0
- package/serialization/types/PaymentMethodResponseData.js +50 -0
- package/serialization/types/PlanDetailResponseData.d.ts +5 -1
- package/serialization/types/PlanDetailResponseData.js +5 -1
- package/serialization/types/PlanGroupDetailResponseData.d.ts +16 -0
- package/serialization/types/PlanGroupDetailResponseData.js +37 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.d.ts +30 -0
- package/serialization/types/PlanGroupPlanDetailResponseData.js +51 -0
- package/serialization/types/PlanGroupResponseData.d.ts +15 -0
- package/serialization/types/PlanGroupResponseData.js +36 -0
- package/serialization/types/PlanResponseData.d.ts +1 -1
- package/serialization/types/PlanResponseData.js +1 -1
- package/serialization/types/StripeEmbedInfo.d.ts +13 -0
- package/serialization/types/StripeEmbedInfo.js +34 -0
- package/serialization/types/UpdateReqCommonMetricPeriod.d.ts +1 -1
- package/serialization/types/UpdateReqCommonMetricPeriod.js +1 -1
- package/serialization/types/index.d.ts +15 -1
- package/serialization/types/index.js +15 -1
- package/wrapper.js +20 -15
- package/api/types/CompanyPlanResponseData.d.ts +0 -11
- package/dist/api/types/CompanyPlanResponseData.d.ts +0 -11
- package/dist/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
- package/dist/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/dist/serialization/types/CompanyPlanResponseData.d.ts +0 -17
- package/serialization/resources/companies/types/ListCompanyPlansResponse.d.ts +0 -15
- package/serialization/resources/companies/types/ListCompanyPlansResponse.js +0 -36
- package/serialization/resources/components/types/HydrateComponentResponse.d.ts +0 -14
- package/serialization/types/CompanyPlanResponseData.d.ts +0 -17
- /package/api/resources/{companies/client/requests/ListCompanyPlansRequest.js → billing/client/requests/CountBillingProductsRequest.js} +0 -0
- /package/api/resources/{companies/types/ListCompanyPlansParams.js → billing/client/requests/CreateInvoiceRequestBody.js} +0 -0
- /package/api/resources/{companies/types/ListCompanyPlansResponse.js → billing/client/requests/CreateMeterRequestBody.js} +0 -0
- /package/api/resources/{components/types/HydrateComponentResponse.js → billing/client/requests/CreatePaymentMethodRequestBody.js} +0 -0
- /package/api/{types/CompanyPlanResponseData.js → resources/billing/client/requests/ListInvoicesRequest.js} +0 -0
- /package/{dist/api/resources/companies/client/requests/ListCompanyPlansRequest.js → api/resources/billing/client/requests/ListMetersRequest.js} +0 -0
- /package/{dist/api/resources/companies/types/ListCompanyPlansParams.js → api/resources/billing/client/requests/ListPaymentMethodsRequest.js} +0 -0
- /package/{dist/api/resources/companies/types/ListCompanyPlansResponse.js → api/resources/billing/types/CountBillingProductsParams.js} +0 -0
- /package/{dist/api/resources/components/types/HydrateComponentResponse.js → api/resources/billing/types/CountBillingProductsResponse.js} +0 -0
- /package/{dist/api/types/CompanyPlanResponseData.js → api/resources/billing/types/DeleteProductPriceResponse.js} +0 -0
|
@@ -64,7 +64,7 @@ class Companies {
|
|
|
64
64
|
listCompanies(request = {}, requestOptions) {
|
|
65
65
|
var _a, _b;
|
|
66
66
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
const { ids, planId, q, withoutFeatureOverrideFor, limit, offset } = request;
|
|
67
|
+
const { ids, planId, q, withoutFeatureOverrideFor, withoutPlan, limit, offset } = request;
|
|
68
68
|
const _queryParams = {};
|
|
69
69
|
if (ids != null) {
|
|
70
70
|
if (Array.isArray(ids)) {
|
|
@@ -83,6 +83,9 @@ class Companies {
|
|
|
83
83
|
if (withoutFeatureOverrideFor != null) {
|
|
84
84
|
_queryParams["without_feature_override_for"] = withoutFeatureOverrideFor;
|
|
85
85
|
}
|
|
86
|
+
if (withoutPlan != null) {
|
|
87
|
+
_queryParams["without_plan"] = withoutPlan.toString();
|
|
88
|
+
}
|
|
86
89
|
if (limit != null) {
|
|
87
90
|
_queryParams["limit"] = limit.toString();
|
|
88
91
|
}
|
|
@@ -92,7 +95,7 @@ class Companies {
|
|
|
92
95
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
93
96
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
|
|
94
97
|
method: "GET",
|
|
95
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
98
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
96
99
|
contentType: "application/json",
|
|
97
100
|
queryParameters: _queryParams,
|
|
98
101
|
requestType: "json",
|
|
@@ -187,7 +190,7 @@ class Companies {
|
|
|
187
190
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
188
191
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies"),
|
|
189
192
|
method: "POST",
|
|
190
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
193
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
191
194
|
contentType: "application/json",
|
|
192
195
|
requestType: "json",
|
|
193
196
|
body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -278,7 +281,7 @@ class Companies {
|
|
|
278
281
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
279
282
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `companies/${encodeURIComponent(companyId)}`),
|
|
280
283
|
method: "GET",
|
|
281
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
284
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
282
285
|
contentType: "application/json",
|
|
283
286
|
requestType: "json",
|
|
284
287
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -368,7 +371,7 @@ class Companies {
|
|
|
368
371
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
369
372
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `companies/${encodeURIComponent(companyId)}`),
|
|
370
373
|
method: "DELETE",
|
|
371
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
374
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
372
375
|
contentType: "application/json",
|
|
373
376
|
requestType: "json",
|
|
374
377
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -455,7 +458,7 @@ class Companies {
|
|
|
455
458
|
countCompanies(request = {}, requestOptions) {
|
|
456
459
|
var _a, _b;
|
|
457
460
|
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
const { ids, planId, q, withoutFeatureOverrideFor, limit, offset } = request;
|
|
461
|
+
const { ids, planId, q, withoutFeatureOverrideFor, withoutPlan, limit, offset } = request;
|
|
459
462
|
const _queryParams = {};
|
|
460
463
|
if (ids != null) {
|
|
461
464
|
if (Array.isArray(ids)) {
|
|
@@ -474,6 +477,9 @@ class Companies {
|
|
|
474
477
|
if (withoutFeatureOverrideFor != null) {
|
|
475
478
|
_queryParams["without_feature_override_for"] = withoutFeatureOverrideFor;
|
|
476
479
|
}
|
|
480
|
+
if (withoutPlan != null) {
|
|
481
|
+
_queryParams["without_plan"] = withoutPlan.toString();
|
|
482
|
+
}
|
|
477
483
|
if (limit != null) {
|
|
478
484
|
_queryParams["limit"] = limit.toString();
|
|
479
485
|
}
|
|
@@ -483,7 +489,7 @@ class Companies {
|
|
|
483
489
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
484
490
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/count"),
|
|
485
491
|
method: "GET",
|
|
486
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
492
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
487
493
|
contentType: "application/json",
|
|
488
494
|
queryParameters: _queryParams,
|
|
489
495
|
requestType: "json",
|
|
@@ -578,7 +584,7 @@ class Companies {
|
|
|
578
584
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
579
585
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/create"),
|
|
580
586
|
method: "POST",
|
|
581
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
587
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
582
588
|
contentType: "application/json",
|
|
583
589
|
requestType: "json",
|
|
584
590
|
body: serializers.UpsertCompanyRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -673,7 +679,7 @@ class Companies {
|
|
|
673
679
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
674
680
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/delete"),
|
|
675
681
|
method: "POST",
|
|
676
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
682
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
677
683
|
contentType: "application/json",
|
|
678
684
|
requestType: "json",
|
|
679
685
|
body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -773,7 +779,7 @@ class Companies {
|
|
|
773
779
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
774
780
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "companies/lookup"),
|
|
775
781
|
method: "GET",
|
|
776
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
782
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
777
783
|
contentType: "application/json",
|
|
778
784
|
queryParameters: _queryParams,
|
|
779
785
|
requestType: "json",
|
|
@@ -877,7 +883,7 @@ class Companies {
|
|
|
877
883
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
878
884
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-crm-deals"),
|
|
879
885
|
method: "GET",
|
|
880
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
886
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
881
887
|
contentType: "application/json",
|
|
882
888
|
queryParameters: _queryParams,
|
|
883
889
|
requestType: "json",
|
|
@@ -982,7 +988,7 @@ class Companies {
|
|
|
982
988
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
983
989
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-memberships"),
|
|
984
990
|
method: "GET",
|
|
985
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
991
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
986
992
|
contentType: "application/json",
|
|
987
993
|
queryParameters: _queryParams,
|
|
988
994
|
requestType: "json",
|
|
@@ -1076,7 +1082,7 @@ class Companies {
|
|
|
1076
1082
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1077
1083
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-memberships"),
|
|
1078
1084
|
method: "POST",
|
|
1079
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1085
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1080
1086
|
contentType: "application/json",
|
|
1081
1087
|
requestType: "json",
|
|
1082
1088
|
body: serializers.GetOrCreateCompanyMembershipRequestBody.jsonOrThrow(request, {
|
|
@@ -1169,7 +1175,7 @@ class Companies {
|
|
|
1169
1175
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1170
1176
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `company-memberships/${encodeURIComponent(companyMembershipId)}`),
|
|
1171
1177
|
method: "DELETE",
|
|
1172
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1178
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1173
1179
|
contentType: "application/json",
|
|
1174
1180
|
requestType: "json",
|
|
1175
1181
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1241,111 +1247,6 @@ class Companies {
|
|
|
1241
1247
|
}
|
|
1242
1248
|
});
|
|
1243
1249
|
}
|
|
1244
|
-
/**
|
|
1245
|
-
* @param {Schematic.ListCompanyPlansRequest} request
|
|
1246
|
-
* @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
|
|
1247
|
-
*
|
|
1248
|
-
* @throws {@link Schematic.BadRequestError}
|
|
1249
|
-
* @throws {@link Schematic.UnauthorizedError}
|
|
1250
|
-
* @throws {@link Schematic.ForbiddenError}
|
|
1251
|
-
* @throws {@link Schematic.InternalServerError}
|
|
1252
|
-
*
|
|
1253
|
-
* @example
|
|
1254
|
-
* await client.companies.listCompanyPlans()
|
|
1255
|
-
*/
|
|
1256
|
-
listCompanyPlans(request = {}, requestOptions) {
|
|
1257
|
-
var _a, _b;
|
|
1258
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
1259
|
-
const { companyId, planId, limit, offset } = request;
|
|
1260
|
-
const _queryParams = {};
|
|
1261
|
-
if (companyId != null) {
|
|
1262
|
-
_queryParams["company_id"] = companyId;
|
|
1263
|
-
}
|
|
1264
|
-
if (planId != null) {
|
|
1265
|
-
_queryParams["plan_id"] = planId;
|
|
1266
|
-
}
|
|
1267
|
-
if (limit != null) {
|
|
1268
|
-
_queryParams["limit"] = limit.toString();
|
|
1269
|
-
}
|
|
1270
|
-
if (offset != null) {
|
|
1271
|
-
_queryParams["offset"] = offset.toString();
|
|
1272
|
-
}
|
|
1273
|
-
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1274
|
-
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-plans"),
|
|
1275
|
-
method: "GET",
|
|
1276
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1277
|
-
contentType: "application/json",
|
|
1278
|
-
queryParameters: _queryParams,
|
|
1279
|
-
requestType: "json",
|
|
1280
|
-
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1281
|
-
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1282
|
-
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1283
|
-
});
|
|
1284
|
-
if (_response.ok) {
|
|
1285
|
-
return serializers.ListCompanyPlansResponse.parseOrThrow(_response.body, {
|
|
1286
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1287
|
-
allowUnrecognizedUnionMembers: true,
|
|
1288
|
-
allowUnrecognizedEnumValues: true,
|
|
1289
|
-
skipValidation: true,
|
|
1290
|
-
breadcrumbsPrefix: ["response"],
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
if (_response.error.reason === "status-code") {
|
|
1294
|
-
switch (_response.error.statusCode) {
|
|
1295
|
-
case 400:
|
|
1296
|
-
throw new Schematic.BadRequestError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1297
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1298
|
-
allowUnrecognizedUnionMembers: true,
|
|
1299
|
-
allowUnrecognizedEnumValues: true,
|
|
1300
|
-
skipValidation: true,
|
|
1301
|
-
breadcrumbsPrefix: ["response"],
|
|
1302
|
-
}));
|
|
1303
|
-
case 401:
|
|
1304
|
-
throw new Schematic.UnauthorizedError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1305
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1306
|
-
allowUnrecognizedUnionMembers: true,
|
|
1307
|
-
allowUnrecognizedEnumValues: true,
|
|
1308
|
-
skipValidation: true,
|
|
1309
|
-
breadcrumbsPrefix: ["response"],
|
|
1310
|
-
}));
|
|
1311
|
-
case 403:
|
|
1312
|
-
throw new Schematic.ForbiddenError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1313
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1314
|
-
allowUnrecognizedUnionMembers: true,
|
|
1315
|
-
allowUnrecognizedEnumValues: true,
|
|
1316
|
-
skipValidation: true,
|
|
1317
|
-
breadcrumbsPrefix: ["response"],
|
|
1318
|
-
}));
|
|
1319
|
-
case 500:
|
|
1320
|
-
throw new Schematic.InternalServerError(serializers.ApiError.parseOrThrow(_response.error.body, {
|
|
1321
|
-
unrecognizedObjectKeys: "passthrough",
|
|
1322
|
-
allowUnrecognizedUnionMembers: true,
|
|
1323
|
-
allowUnrecognizedEnumValues: true,
|
|
1324
|
-
skipValidation: true,
|
|
1325
|
-
breadcrumbsPrefix: ["response"],
|
|
1326
|
-
}));
|
|
1327
|
-
default:
|
|
1328
|
-
throw new errors.SchematicError({
|
|
1329
|
-
statusCode: _response.error.statusCode,
|
|
1330
|
-
body: _response.error.body,
|
|
1331
|
-
});
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
switch (_response.error.reason) {
|
|
1335
|
-
case "non-json":
|
|
1336
|
-
throw new errors.SchematicError({
|
|
1337
|
-
statusCode: _response.error.statusCode,
|
|
1338
|
-
body: _response.error.rawBody,
|
|
1339
|
-
});
|
|
1340
|
-
case "timeout":
|
|
1341
|
-
throw new errors.SchematicTimeoutError();
|
|
1342
|
-
case "unknown":
|
|
1343
|
-
throw new errors.SchematicError({
|
|
1344
|
-
message: _response.error.errorMessage,
|
|
1345
|
-
});
|
|
1346
|
-
}
|
|
1347
|
-
});
|
|
1348
|
-
}
|
|
1349
1250
|
/**
|
|
1350
1251
|
* @param {Schematic.GetActiveCompanySubscriptionRequest} request
|
|
1351
1252
|
* @param {Companies.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -1375,7 +1276,7 @@ class Companies {
|
|
|
1375
1276
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1376
1277
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-subscriptions"),
|
|
1377
1278
|
method: "GET",
|
|
1378
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1279
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1379
1280
|
contentType: "application/json",
|
|
1380
1281
|
queryParameters: _queryParams,
|
|
1381
1282
|
requestType: "json",
|
|
@@ -1471,7 +1372,7 @@ class Companies {
|
|
|
1471
1372
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1472
1373
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "company-traits"),
|
|
1473
1374
|
method: "POST",
|
|
1474
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1375
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1475
1376
|
contentType: "application/json",
|
|
1476
1377
|
requestType: "json",
|
|
1477
1378
|
body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -1584,7 +1485,7 @@ class Companies {
|
|
|
1584
1485
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1585
1486
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-key-definitions"),
|
|
1586
1487
|
method: "GET",
|
|
1587
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1488
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1588
1489
|
contentType: "application/json",
|
|
1589
1490
|
queryParameters: _queryParams,
|
|
1590
1491
|
requestType: "json",
|
|
@@ -1697,7 +1598,7 @@ class Companies {
|
|
|
1697
1598
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1698
1599
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-key-definitions/count"),
|
|
1699
1600
|
method: "GET",
|
|
1700
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1601
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1701
1602
|
contentType: "application/json",
|
|
1702
1603
|
queryParameters: _queryParams,
|
|
1703
1604
|
requestType: "json",
|
|
@@ -1785,7 +1686,7 @@ class Companies {
|
|
|
1785
1686
|
listEntityTraitDefinitions(request = {}, requestOptions) {
|
|
1786
1687
|
var _a, _b;
|
|
1787
1688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1788
|
-
const { entityType, ids,
|
|
1689
|
+
const { entityType, ids, q, traitType, limit, offset } = request;
|
|
1789
1690
|
const _queryParams = {};
|
|
1790
1691
|
if (entityType != null) {
|
|
1791
1692
|
_queryParams["entity_type"] = entityType;
|
|
@@ -1798,12 +1699,12 @@ class Companies {
|
|
|
1798
1699
|
_queryParams["ids"] = ids;
|
|
1799
1700
|
}
|
|
1800
1701
|
}
|
|
1801
|
-
if (traitType != null) {
|
|
1802
|
-
_queryParams["trait_type"] = traitType;
|
|
1803
|
-
}
|
|
1804
1702
|
if (q != null) {
|
|
1805
1703
|
_queryParams["q"] = q;
|
|
1806
1704
|
}
|
|
1705
|
+
if (traitType != null) {
|
|
1706
|
+
_queryParams["trait_type"] = traitType;
|
|
1707
|
+
}
|
|
1807
1708
|
if (limit != null) {
|
|
1808
1709
|
_queryParams["limit"] = limit.toString();
|
|
1809
1710
|
}
|
|
@@ -1813,7 +1714,7 @@ class Companies {
|
|
|
1813
1714
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1814
1715
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions"),
|
|
1815
1716
|
method: "GET",
|
|
1816
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1717
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1817
1718
|
contentType: "application/json",
|
|
1818
1719
|
queryParameters: _queryParams,
|
|
1819
1720
|
requestType: "json",
|
|
@@ -1897,9 +1798,9 @@ class Companies {
|
|
|
1897
1798
|
*
|
|
1898
1799
|
* @example
|
|
1899
1800
|
* await client.companies.getOrCreateEntityTraitDefinition({
|
|
1900
|
-
* entityType:
|
|
1801
|
+
* entityType: "company",
|
|
1901
1802
|
* hierarchy: ["hierarchy"],
|
|
1902
|
-
* traitType:
|
|
1803
|
+
* traitType: "boolean"
|
|
1903
1804
|
* })
|
|
1904
1805
|
*/
|
|
1905
1806
|
getOrCreateEntityTraitDefinition(request, requestOptions) {
|
|
@@ -1908,7 +1809,7 @@ class Companies {
|
|
|
1908
1809
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
1909
1810
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions"),
|
|
1910
1811
|
method: "POST",
|
|
1911
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1812
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
1912
1813
|
contentType: "application/json",
|
|
1913
1814
|
requestType: "json",
|
|
1914
1815
|
body: serializers.CreateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
|
|
@@ -2001,7 +1902,7 @@ class Companies {
|
|
|
2001
1902
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2002
1903
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
|
|
2003
1904
|
method: "GET",
|
|
2004
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1905
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2005
1906
|
contentType: "application/json",
|
|
2006
1907
|
requestType: "json",
|
|
2007
1908
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2086,7 +1987,7 @@ class Companies {
|
|
|
2086
1987
|
*
|
|
2087
1988
|
* @example
|
|
2088
1989
|
* await client.companies.updateEntityTraitDefinition("entity_trait_definition_id", {
|
|
2089
|
-
* traitType:
|
|
1990
|
+
* traitType: "boolean"
|
|
2090
1991
|
* })
|
|
2091
1992
|
*/
|
|
2092
1993
|
updateEntityTraitDefinition(entityTraitDefinitionId, request, requestOptions) {
|
|
@@ -2095,7 +1996,7 @@ class Companies {
|
|
|
2095
1996
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2096
1997
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `entity-trait-definitions/${encodeURIComponent(entityTraitDefinitionId)}`),
|
|
2097
1998
|
method: "PUT",
|
|
2098
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
1999
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2099
2000
|
contentType: "application/json",
|
|
2100
2001
|
requestType: "json",
|
|
2101
2002
|
body: serializers.UpdateEntityTraitDefinitionRequestBody.jsonOrThrow(request, {
|
|
@@ -2193,7 +2094,7 @@ class Companies {
|
|
|
2193
2094
|
countEntityTraitDefinitions(request = {}, requestOptions) {
|
|
2194
2095
|
var _a, _b;
|
|
2195
2096
|
return __awaiter(this, void 0, void 0, function* () {
|
|
2196
|
-
const { entityType, ids,
|
|
2097
|
+
const { entityType, ids, q, traitType, limit, offset } = request;
|
|
2197
2098
|
const _queryParams = {};
|
|
2198
2099
|
if (entityType != null) {
|
|
2199
2100
|
_queryParams["entity_type"] = entityType;
|
|
@@ -2206,12 +2107,12 @@ class Companies {
|
|
|
2206
2107
|
_queryParams["ids"] = ids;
|
|
2207
2108
|
}
|
|
2208
2109
|
}
|
|
2209
|
-
if (traitType != null) {
|
|
2210
|
-
_queryParams["trait_type"] = traitType;
|
|
2211
|
-
}
|
|
2212
2110
|
if (q != null) {
|
|
2213
2111
|
_queryParams["q"] = q;
|
|
2214
2112
|
}
|
|
2113
|
+
if (traitType != null) {
|
|
2114
|
+
_queryParams["trait_type"] = traitType;
|
|
2115
|
+
}
|
|
2215
2116
|
if (limit != null) {
|
|
2216
2117
|
_queryParams["limit"] = limit.toString();
|
|
2217
2118
|
}
|
|
@@ -2221,7 +2122,7 @@ class Companies {
|
|
|
2221
2122
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2222
2123
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-definitions/count"),
|
|
2223
2124
|
method: "GET",
|
|
2224
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2125
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2225
2126
|
contentType: "application/json",
|
|
2226
2127
|
queryParameters: _queryParams,
|
|
2227
2128
|
requestType: "json",
|
|
@@ -2326,7 +2227,7 @@ class Companies {
|
|
|
2326
2227
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2327
2228
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "entity-trait-values"),
|
|
2328
2229
|
method: "GET",
|
|
2329
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2230
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2330
2231
|
contentType: "application/json",
|
|
2331
2232
|
queryParameters: _queryParams,
|
|
2332
2233
|
requestType: "json",
|
|
@@ -2422,7 +2323,7 @@ class Companies {
|
|
|
2422
2323
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2423
2324
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "user-traits"),
|
|
2424
2325
|
method: "POST",
|
|
2425
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2326
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2426
2327
|
contentType: "application/json",
|
|
2427
2328
|
requestType: "json",
|
|
2428
2329
|
body: serializers.UpsertTraitRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2538,7 +2439,7 @@ class Companies {
|
|
|
2538
2439
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2539
2440
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
|
|
2540
2441
|
method: "GET",
|
|
2541
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2442
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2542
2443
|
contentType: "application/json",
|
|
2543
2444
|
queryParameters: _queryParams,
|
|
2544
2445
|
requestType: "json",
|
|
@@ -2636,7 +2537,7 @@ class Companies {
|
|
|
2636
2537
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2637
2538
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users"),
|
|
2638
2539
|
method: "POST",
|
|
2639
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2540
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2640
2541
|
contentType: "application/json",
|
|
2641
2542
|
requestType: "json",
|
|
2642
2543
|
body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -2727,7 +2628,7 @@ class Companies {
|
|
|
2727
2628
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2728
2629
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `users/${encodeURIComponent(userId)}`),
|
|
2729
2630
|
method: "GET",
|
|
2730
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2631
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2731
2632
|
contentType: "application/json",
|
|
2732
2633
|
requestType: "json",
|
|
2733
2634
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2817,7 +2718,7 @@ class Companies {
|
|
|
2817
2718
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2818
2719
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, `users/${encodeURIComponent(userId)}`),
|
|
2819
2720
|
method: "DELETE",
|
|
2820
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2721
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2821
2722
|
contentType: "application/json",
|
|
2822
2723
|
requestType: "json",
|
|
2823
2724
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -2932,7 +2833,7 @@ class Companies {
|
|
|
2932
2833
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
2933
2834
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/count"),
|
|
2934
2835
|
method: "GET",
|
|
2935
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2836
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
2936
2837
|
contentType: "application/json",
|
|
2937
2838
|
queryParameters: _queryParams,
|
|
2938
2839
|
requestType: "json",
|
|
@@ -3030,7 +2931,7 @@ class Companies {
|
|
|
3030
2931
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
3031
2932
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/create"),
|
|
3032
2933
|
method: "POST",
|
|
3033
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
2934
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
3034
2935
|
contentType: "application/json",
|
|
3035
2936
|
requestType: "json",
|
|
3036
2937
|
body: serializers.UpsertUserRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -3125,7 +3026,7 @@ class Companies {
|
|
|
3125
3026
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
3126
3027
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/delete"),
|
|
3127
3028
|
method: "POST",
|
|
3128
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
3029
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
3129
3030
|
contentType: "application/json",
|
|
3130
3031
|
requestType: "json",
|
|
3131
3032
|
body: serializers.KeysRequestBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -3225,7 +3126,7 @@ class Companies {
|
|
|
3225
3126
|
const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
|
|
3226
3127
|
url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.SchematicEnvironment.Default, "users/lookup"),
|
|
3227
3128
|
method: "GET",
|
|
3228
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.
|
|
3129
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@schematichq/schematic-typescript-node", "X-Fern-SDK-Version": "1.1.5", "User-Agent": "@schematichq/schematic-typescript-node/1.1.5", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
|
3229
3130
|
contentType: "application/json",
|
|
3230
3131
|
queryParameters: _queryParams,
|
|
3231
3132
|
requestType: "json",
|
|
@@ -6,16 +6,26 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface CountCompaniesRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Filter companies by multiple company IDs (starts with comp\_)
|
|
11
|
+
*/
|
|
9
12
|
ids?: string | string[];
|
|
13
|
+
/**
|
|
14
|
+
* Filter companies by plan ID (starts with plan\_)
|
|
15
|
+
*/
|
|
10
16
|
planId?: string;
|
|
11
17
|
/**
|
|
12
|
-
* Search
|
|
18
|
+
* Search for companies by name, keys or string traits
|
|
13
19
|
*/
|
|
14
20
|
q?: string;
|
|
15
21
|
/**
|
|
16
22
|
* Filter out companies that already have a company override for the specified feature ID
|
|
17
23
|
*/
|
|
18
24
|
withoutFeatureOverrideFor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Filter out companies that have a plan
|
|
27
|
+
*/
|
|
28
|
+
withoutPlan?: boolean;
|
|
19
29
|
/**
|
|
20
30
|
* Page limit (default 100)
|
|
21
31
|
*/
|
|
@@ -9,8 +9,8 @@ import * as Schematic from "../../../../index";
|
|
|
9
9
|
export interface CountEntityTraitDefinitionsRequest {
|
|
10
10
|
entityType?: Schematic.CountEntityTraitDefinitionsRequestEntityType;
|
|
11
11
|
ids?: string | string[];
|
|
12
|
-
traitType?: Schematic.CountEntityTraitDefinitionsRequestTraitType;
|
|
13
12
|
q?: string;
|
|
13
|
+
traitType?: Schematic.CountEntityTraitDefinitionsRequestTraitType;
|
|
14
14
|
/**
|
|
15
15
|
* Page limit (default 100)
|
|
16
16
|
*/
|
|
@@ -6,11 +6,20 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface CountUsersRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Filter users by company ID (starts with comp\_)
|
|
11
|
+
*/
|
|
9
12
|
companyId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Filter users by multiple user IDs (starts with user\_)
|
|
15
|
+
*/
|
|
10
16
|
ids?: string | string[];
|
|
17
|
+
/**
|
|
18
|
+
* Filter users by plan ID (starts with plan\_)
|
|
19
|
+
*/
|
|
11
20
|
planId?: string;
|
|
12
21
|
/**
|
|
13
|
-
* Search
|
|
22
|
+
* Search for users by name, keys or string traits
|
|
14
23
|
*/
|
|
15
24
|
q?: string;
|
|
16
25
|
/**
|
|
@@ -5,9 +5,9 @@ import * as Schematic from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* entityType:
|
|
8
|
+
* entityType: "company",
|
|
9
9
|
* hierarchy: ["hierarchy"],
|
|
10
|
-
* traitType:
|
|
10
|
+
* traitType: "boolean"
|
|
11
11
|
* }
|
|
12
12
|
*/
|
|
13
13
|
export interface CreateEntityTraitDefinitionRequestBody {
|
|
@@ -6,16 +6,26 @@
|
|
|
6
6
|
* {}
|
|
7
7
|
*/
|
|
8
8
|
export interface ListCompaniesRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Filter companies by multiple company IDs (starts with comp\_)
|
|
11
|
+
*/
|
|
9
12
|
ids?: string | string[];
|
|
13
|
+
/**
|
|
14
|
+
* Filter companies by plan ID (starts with plan\_)
|
|
15
|
+
*/
|
|
10
16
|
planId?: string;
|
|
11
17
|
/**
|
|
12
|
-
* Search
|
|
18
|
+
* Search for companies by name, keys or string traits
|
|
13
19
|
*/
|
|
14
20
|
q?: string;
|
|
15
21
|
/**
|
|
16
22
|
* Filter out companies that already have a company override for the specified feature ID
|
|
17
23
|
*/
|
|
18
24
|
withoutFeatureOverrideFor?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Filter out companies that have a plan
|
|
27
|
+
*/
|
|
28
|
+
withoutPlan?: boolean;
|
|
19
29
|
/**
|
|
20
30
|
* Page limit (default 100)
|
|
21
31
|
*/
|