@schematichq/schematic-typescript-node 1.4.4 → 1.4.6
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/LICENSE +1 -1
- package/dist/BaseClient.d.ts +1 -1
- package/dist/Client.d.ts +14 -0
- package/dist/api/resources/accesstokens/exports.d.ts +2 -0
- package/dist/api/resources/accounts/client/Client.d.ts +43 -10
- package/dist/api/resources/accounts/client/requests/CountApiKeysRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/CountAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +17 -0
- package/dist/api/resources/accounts/client/requests/ListApiKeysRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListAuditLogsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/ListEnvironmentsRequest.d.ts +2 -2
- package/dist/api/resources/accounts/client/requests/index.d.ts +1 -0
- package/dist/api/resources/accounts/exports.d.ts +2 -0
- package/dist/api/resources/accounts/types/GetAccountMemberResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
- package/dist/api/resources/accounts/types/ListAccountMembersResponse.d.ts +6 -0
- package/dist/api/resources/accounts/types/index.d.ts +3 -0
- package/dist/api/resources/billing/client/Client.d.ts +42 -40
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +4 -3
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +4 -4
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +4 -4
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +7 -4
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +7 -4
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/ListCouponsRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/ListInvoicesRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListMetersRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListPaymentMethodsRequest.d.ts +2 -2
- package/dist/api/resources/billing/exports.d.ts +2 -0
- package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +2 -0
- package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -0
- package/dist/api/resources/checkout/client/Client.d.ts +8 -8
- package/dist/api/resources/checkout/exports.d.ts +2 -0
- package/dist/api/resources/companies/client/Client.d.ts +38 -30
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +5 -2
- package/dist/api/resources/companies/client/requests/CountEntityKeyDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountEntityTraitDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountPlanTraitsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/CountUsersRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/GetActiveCompanySubscriptionRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/GetEntityTraitValuesRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +5 -2
- package/dist/api/resources/companies/client/requests/ListCompanyMembershipsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListEntityKeyDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListEntityTraitDefinitionsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +7 -6
- package/dist/api/resources/companies/client/requests/ListPlanTraitsRequest.d.ts +2 -2
- package/dist/api/resources/companies/client/requests/ListUsersRequest.d.ts +2 -2
- package/dist/api/resources/companies/exports.d.ts +2 -0
- package/dist/api/resources/companies/types/CountCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListCompaniesParams.d.ts +2 -0
- package/dist/api/resources/companies/types/ListPlanChangesParams.d.ts +3 -2
- package/dist/api/resources/components/client/Client.d.ts +4 -4
- package/dist/api/resources/components/client/requests/CountComponentsRequest.d.ts +2 -2
- package/dist/api/resources/components/client/requests/ListComponentsRequest.d.ts +2 -2
- package/dist/api/resources/components/exports.d.ts +2 -0
- package/dist/api/resources/componentspublic/exports.d.ts +2 -0
- package/dist/api/resources/credits/client/Client.d.ts +47 -33
- package/dist/api/resources/credits/client/requests/CountBillingCreditsGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountBillingCreditsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountBillingPlanCreditGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCompanyGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditBundlesRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditEventLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +3 -2
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
- package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListBillingCreditsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListBillingPlanCreditGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCompanyGrantsRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCreditBundlesRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListCreditEventLedgerRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/ListGrantsForCreditRequest.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -1
- package/dist/api/resources/credits/exports.d.ts +2 -0
- package/dist/api/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +1 -0
- package/dist/api/resources/dataexports/exports.d.ts +2 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +41 -20
- package/dist/api/resources/entitlements/client/requests/CountCompanyOverridesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsageRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountFeatureUsersRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CountPlanEntitlementsRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +44 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/ListCompanyOverridesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureCompaniesRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsageRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListFeatureUsersRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/ListPlanEntitlementsRequest.d.ts +2 -2
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -0
- package/dist/api/resources/entitlements/exports.d.ts +2 -0
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/api/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +5 -0
- package/dist/api/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/index.d.ts +3 -0
- package/dist/api/resources/events/client/Client.d.ts +4 -4
- package/dist/api/resources/events/client/requests/GetEventSummariesRequest.d.ts +2 -2
- package/dist/api/resources/events/client/requests/ListEventsRequest.d.ts +2 -2
- package/dist/api/resources/events/exports.d.ts +2 -0
- package/dist/api/resources/features/client/Client.d.ts +34 -13
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +10 -10
- package/dist/api/resources/features/client/requests/CountFlagsRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +26 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +10 -10
- package/dist/api/resources/features/client/requests/ListFlagsRequest.d.ts +2 -2
- package/dist/api/resources/features/client/requests/UpdateFlagRulesRequestBody.d.ts +1 -1
- package/dist/api/resources/features/client/requests/index.d.ts +1 -0
- package/dist/api/resources/features/exports.d.ts +2 -0
- package/dist/api/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/features/types/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +27 -0
- package/dist/api/resources/integrationsapi/client/index.d.ts +1 -0
- package/dist/api/resources/integrationsapi/exports.d.ts +2 -0
- package/dist/api/resources/integrationsapi/index.d.ts +2 -0
- package/dist/api/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +6 -0
- package/dist/api/resources/integrationsapi/types/index.d.ts +1 -0
- package/dist/api/resources/planbundle/exports.d.ts +2 -0
- package/dist/api/resources/plangroups/exports.d.ts +2 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +8 -8
- package/dist/api/resources/planmigrations/client/requests/CountCompanyMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/CountMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/ListCompanyMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/client/requests/ListMigrationsRequest.d.ts +2 -2
- package/dist/api/resources/planmigrations/exports.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +98 -7
- package/dist/api/resources/plans/client/requests/CountBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +8 -2
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +16 -0
- package/dist/api/resources/plans/client/requests/DeletePlanVersionRequest.d.ts +9 -0
- package/dist/api/resources/plans/client/requests/ListBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/ListPlansRequest.d.ts +8 -2
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +9 -1
- package/dist/api/resources/plans/client/requests/index.d.ts +5 -0
- package/dist/api/resources/plans/exports.d.ts +2 -0
- package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +13 -0
- package/dist/api/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/CountPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/CreateCustomPlanResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/DeletePlanVersionParams.d.ts +6 -0
- package/dist/api/resources/plans/types/DeletePlanVersionResponse.d.ts +1 -1
- package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +13 -0
- package/dist/api/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/ListPlansParams.d.ts +4 -0
- package/dist/api/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/index.d.ts +7 -0
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +2 -2
- package/dist/api/resources/scheduledcheckout/client/requests/ListScheduledCheckoutsRequest.d.ts +2 -2
- package/dist/api/resources/scheduledcheckout/exports.d.ts +2 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +8 -8
- package/dist/api/resources/webhooks/client/requests/CountWebhookEventsRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/CountWebhooksRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/ListWebhookEventsRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/client/requests/ListWebhooksRequest.d.ts +2 -2
- package/dist/api/resources/webhooks/exports.d.ts +2 -0
- package/dist/api/types/AccountMemberPermission.d.ts +18 -0
- package/dist/api/types/AccountMemberResponseData.d.ts +11 -0
- package/dist/api/types/AccountMemberRole.d.ts +5 -0
- package/dist/api/types/BillingCreditBundleResponseData.d.ts +2 -0
- package/dist/api/types/BillingCreditBundleView.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantReason.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditResponseData.d.ts +1 -0
- package/dist/api/types/BillingLinkedResourceResponseData.d.ts +6 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
- package/dist/api/types/BillingProductPlanResponseData.d.ts +1 -1
- package/dist/api/types/BillingProviderType.d.ts +1 -0
- package/dist/api/types/CheckoutSubscription.d.ts +1 -0
- package/dist/api/types/CompanyDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +7 -2
- package/dist/api/types/ConditionGroupResponseData.d.ts +0 -1
- package/dist/api/types/ConditionGroupView.d.ts +0 -1
- package/dist/api/types/ConditionResponseData.d.ts +0 -1
- package/dist/api/types/ConditionView.d.ts +0 -1
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
- package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/types/CreditBundleCurrencyPrice.d.ts +5 -0
- package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +5 -0
- package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +5 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +1 -0
- package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +5 -0
- package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +5 -0
- package/dist/api/types/CurrencyPriceRequestBody.d.ts +10 -0
- package/dist/api/types/CustomPlanActivationStrategy.d.ts +5 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +14 -0
- package/dist/api/types/CustomPlanBillingStatus.d.ts +6 -0
- package/dist/api/types/DatastreamCompanyPlan.d.ts +2 -0
- package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +6 -0
- package/dist/api/types/FeatureDetailResponseData.d.ts +1 -0
- package/dist/api/types/FeatureView.d.ts +1 -0
- package/dist/api/types/IntegrationType.d.ts +7 -0
- package/dist/api/types/IntegrationWebhookUrlResponseData.d.ts +5 -0
- package/dist/api/types/ManagePlanRequest.d.ts +1 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +1 -0
- package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +6 -0
- package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +7 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +7 -2
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +7 -2
- package/dist/api/types/PlanIcon.d.ts +28 -0
- package/dist/api/types/PlanResponseData.d.ts +3 -1
- package/dist/api/types/PlanSelection.d.ts +1 -0
- package/dist/api/types/PlanVersionResponseData.d.ts +1 -1
- package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -2
- package/dist/api/types/RuleView.d.ts +0 -1
- package/dist/api/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/api/types/TrialStatus.d.ts +6 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/UpdatePlanRequestBody.d.ts +2 -1
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -0
- package/dist/api/types/WebScheduledDowngradeWebhookOutput.d.ts +10 -0
- package/dist/api/types/WebhookRequestType.d.ts +1 -0
- package/dist/api/types/WebhookUrl.d.ts +5 -0
- package/dist/api/types/index.d.ts +22 -1
- package/dist/auth/HeaderAuthProvider.d.ts +14 -10
- package/dist/core/fetcher/BinaryResponse.d.ts +1 -1
- package/dist/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/core/fetcher/Fetcher.d.ts +1 -2
- package/dist/core/fetcher/index.d.ts +2 -0
- package/dist/core/fetcher/makePassthroughRequest.d.ts +49 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/core/headers.d.ts +2 -2
- package/dist/core/schemas/builders/record/index.d.ts +2 -2
- package/dist/core/schemas/builders/record/record.d.ts +2 -1
- package/dist/core/schemas/builders/record/types.d.ts +2 -0
- package/dist/datastream/merge.d.ts +25 -0
- package/dist/datastream/types.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/accounts/types/GetAccountMemberResponse.d.ts +11 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersParams.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersResponse.d.ts +12 -0
- package/dist/serialization/resources/accounts/types/index.d.ts +3 -0
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
- package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +1 -0
- package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/CountCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListCompaniesParams.d.ts +1 -0
- package/dist/serialization/resources/companies/types/ListPlanChangesParams.d.ts +4 -2
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -0
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +2 -0
- package/dist/serialization/resources/credits/types/GetSingleBillingPlanCreditGrantResponse.d.ts +11 -0
- package/dist/serialization/resources/credits/types/index.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +46 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/resources/entitlements/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod.d.ts +7 -0
- package/dist/serialization/resources/entitlements/types/CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset.d.ts +7 -0
- package/dist/serialization/resources/entitlements/types/UpsertPlanEntitlementForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +3 -0
- package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +25 -0
- package/dist/serialization/resources/features/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/features/types/UpsertFeatureForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/features/types/index.d.ts +1 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/integrationsapi/index.d.ts +1 -0
- package/dist/serialization/resources/integrationsapi/types/GetIntegrationWebhookUrlResponse.d.ts +11 -0
- package/dist/serialization/resources/integrationsapi/types/index.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +17 -0
- package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +14 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
- package/dist/serialization/resources/plans/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/CountBillingProductMatchCompaniesResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/CountPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/CreateCustomPlanResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/DeletePlanVersionParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/DeletePlanVersionResponse.d.ts +2 -1
- package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesParams.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListBillingProductMatchCompaniesResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/ListPlansParams.d.ts +2 -0
- package/dist/serialization/resources/plans/types/UpsertPlanForBillingProductResponse.d.ts +11 -0
- package/dist/serialization/resources/plans/types/index.d.ts +7 -0
- package/dist/serialization/types/AccountMemberPermission.d.ts +7 -0
- package/dist/serialization/types/AccountMemberResponseData.d.ts +18 -0
- package/dist/serialization/types/AccountMemberRole.d.ts +7 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +3 -0
- package/dist/serialization/types/BillingCreditBundleView.d.ts +2 -0
- package/dist/serialization/types/BillingCreditGrantReason.d.ts +1 -1
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditResponseData.d.ts +2 -0
- package/dist/serialization/types/BillingLinkedResourceResponseData.d.ts +12 -0
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingProductPlanResponseData.d.ts +2 -2
- package/dist/serialization/types/BillingProviderType.d.ts +1 -1
- package/dist/serialization/types/CheckoutSubscription.d.ts +1 -0
- package/dist/serialization/types/CompanyDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +10 -3
- package/dist/serialization/types/ConditionGroupResponseData.d.ts +0 -1
- package/dist/serialization/types/ConditionGroupView.d.ts +0 -1
- package/dist/serialization/types/ConditionResponseData.d.ts +0 -1
- package/dist/serialization/types/ConditionView.d.ts +0 -1
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +11 -0
- package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +11 -0
- package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +11 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +1 -0
- package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +11 -0
- package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +11 -0
- package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +16 -0
- package/dist/serialization/types/CustomPlanActivationStrategy.d.ts +7 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +21 -0
- package/dist/serialization/types/CustomPlanBillingStatus.d.ts +7 -0
- package/dist/serialization/types/DatastreamCompanyPlan.d.ts +2 -0
- package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +12 -0
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureView.d.ts +2 -0
- package/dist/serialization/types/IntegrationType.d.ts +7 -0
- package/dist/serialization/types/IntegrationWebhookUrlResponseData.d.ts +11 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +1 -0
- package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +12 -0
- package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +13 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +10 -3
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +4 -0
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +10 -3
- package/dist/serialization/types/PlanIcon.d.ts +7 -0
- package/dist/serialization/types/PlanResponseData.d.ts +4 -1
- package/dist/serialization/types/PlanSelection.d.ts +1 -0
- package/dist/serialization/types/PlanVersionResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -3
- package/dist/serialization/types/RuleView.d.ts +0 -1
- package/dist/serialization/types/RulesEngineSchemaVersion.d.ts +1 -1
- package/dist/serialization/types/TrialStatus.d.ts +7 -0
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/serialization/types/UpdatePlanRequestBody.d.ts +2 -1
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -0
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -0
- package/dist/serialization/types/WebScheduledDowngradeWebhookOutput.d.ts +17 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/WebhookUrl.d.ts +11 -0
- package/dist/serialization/types/index.d.ts +22 -1
- package/dist/wasm/rulesengine.d.ts +10 -0
- package/dist/wasm/rulesengine.js +193 -0
- package/dist/wasm/rulesengine_bg.wasm +0 -0
- package/dist/wasm/rulesengine_bg.wasm.d.ts +25 -0
- package/package.json +9 -9
- package/dist/api/types/PlanControlledByType.d.ts +0 -5
- package/dist/serialization/types/PlanControlledByType.d.ts +0 -7
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
5
|
+
export declare const PlanCurrencyPricesResponseData: core.serialization.ObjectSchema<serializers.PlanCurrencyPricesResponseData.Raw, Schematic.PlanCurrencyPricesResponseData>;
|
|
6
|
+
export declare namespace PlanCurrencyPricesResponseData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
currency: string;
|
|
9
|
+
monthly_price?: BillingPriceResponseData.Raw | null;
|
|
10
|
+
one_time_price?: BillingPriceResponseData.Raw | null;
|
|
11
|
+
yearly_price?: BillingPriceResponseData.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
|
|
4
5
|
import { BillingPlanCreditGrantResponseData } from "./BillingPlanCreditGrantResponseData";
|
|
5
6
|
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
6
7
|
import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
7
8
|
import { ChargeType } from "./ChargeType";
|
|
8
9
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
9
|
-
import {
|
|
10
|
+
import { PlanCurrencyPricesResponseData } from "./PlanCurrencyPricesResponseData";
|
|
11
|
+
import { PlanIcon } from "./PlanIcon";
|
|
10
12
|
import { PlanType } from "./PlanType";
|
|
11
13
|
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
12
14
|
export declare const PlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanDetailResponseData.Raw, Schematic.PlanDetailResponseData>;
|
|
@@ -14,15 +16,20 @@ export declare namespace PlanDetailResponseData {
|
|
|
14
16
|
interface Raw {
|
|
15
17
|
active_version?: PlanVersionResponseData.Raw | null;
|
|
16
18
|
audience_type?: string | null;
|
|
19
|
+
billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
|
|
17
20
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
18
21
|
charge_type: ChargeType.Raw;
|
|
19
22
|
company_count: number;
|
|
20
|
-
|
|
23
|
+
company_id?: string | null;
|
|
24
|
+
company_name?: string | null;
|
|
25
|
+
controlled_by: string;
|
|
26
|
+
copied_from_plan_id?: string | null;
|
|
21
27
|
created_at: string;
|
|
28
|
+
currency_prices: PlanCurrencyPricesResponseData.Raw[];
|
|
22
29
|
description: string;
|
|
23
30
|
draft_version?: PlanVersionResponseData.Raw | null;
|
|
24
31
|
features: FeatureDetailResponseData.Raw[];
|
|
25
|
-
icon:
|
|
32
|
+
icon: PlanIcon.Raw;
|
|
26
33
|
id: string;
|
|
27
34
|
included_credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
|
|
28
35
|
is_default: boolean;
|
|
@@ -2,8 +2,10 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { BillingCreditResponseData } from "./BillingCreditResponseData";
|
|
5
|
+
import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
|
|
5
6
|
import { BillingPriceView } from "./BillingPriceView";
|
|
6
7
|
import { BillingProductResponseData } from "./BillingProductResponseData";
|
|
8
|
+
import { EntitlementCurrencyPricesResponseData } from "./EntitlementCurrencyPricesResponseData";
|
|
7
9
|
import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
|
|
8
10
|
import { EntitlementValueType } from "./EntitlementValueType";
|
|
9
11
|
import { EntityTraitDefinitionResponseData } from "./EntityTraitDefinitionResponseData";
|
|
@@ -12,9 +14,11 @@ import { PlanResponseData } from "./PlanResponseData";
|
|
|
12
14
|
export declare const PlanEntitlementResponseData: core.serialization.ObjectSchema<serializers.PlanEntitlementResponseData.Raw, Schematic.PlanEntitlementResponseData>;
|
|
13
15
|
export declare namespace PlanEntitlementResponseData {
|
|
14
16
|
interface Raw {
|
|
17
|
+
billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
|
|
15
18
|
billing_threshold?: number | null;
|
|
16
19
|
consumption_rate?: number | null;
|
|
17
20
|
created_at: string;
|
|
21
|
+
currency_prices: EntitlementCurrencyPricesResponseData.Raw[];
|
|
18
22
|
environment_id: string;
|
|
19
23
|
feature?: FeatureResponseData.Raw | null;
|
|
20
24
|
feature_id: string;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
|
|
4
5
|
import { BillingPlanCreditGrantResponseData } from "./BillingPlanCreditGrantResponseData";
|
|
5
6
|
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
6
7
|
import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
7
8
|
import { ChargeType } from "./ChargeType";
|
|
8
9
|
import { CustomPlanViewConfigResponseData } from "./CustomPlanViewConfigResponseData";
|
|
9
10
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
10
|
-
import {
|
|
11
|
+
import { PlanCurrencyPricesResponseData } from "./PlanCurrencyPricesResponseData";
|
|
11
12
|
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
13
|
+
import { PlanIcon } from "./PlanIcon";
|
|
12
14
|
import { PlanType } from "./PlanType";
|
|
13
15
|
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
14
16
|
export declare const PlanGroupPlanDetailResponseData: core.serialization.ObjectSchema<serializers.PlanGroupPlanDetailResponseData.Raw, Schematic.PlanGroupPlanDetailResponseData>;
|
|
@@ -16,18 +18,23 @@ export declare namespace PlanGroupPlanDetailResponseData {
|
|
|
16
18
|
interface Raw {
|
|
17
19
|
active_version?: PlanVersionResponseData.Raw | null;
|
|
18
20
|
audience_type?: string | null;
|
|
21
|
+
billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
|
|
19
22
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
20
23
|
charge_type: ChargeType.Raw;
|
|
21
24
|
company_count: number;
|
|
25
|
+
company_id?: string | null;
|
|
26
|
+
company_name?: string | null;
|
|
22
27
|
compatible_plan_ids: string[];
|
|
23
|
-
controlled_by:
|
|
28
|
+
controlled_by: string;
|
|
29
|
+
copied_from_plan_id?: string | null;
|
|
24
30
|
created_at: string;
|
|
31
|
+
currency_prices: PlanCurrencyPricesResponseData.Raw[];
|
|
25
32
|
custom_plan_config?: CustomPlanViewConfigResponseData.Raw | null;
|
|
26
33
|
description: string;
|
|
27
34
|
draft_version?: PlanVersionResponseData.Raw | null;
|
|
28
35
|
entitlements: PlanEntitlementResponseData.Raw[];
|
|
29
36
|
features: FeatureDetailResponseData.Raw[];
|
|
30
|
-
icon:
|
|
37
|
+
icon: PlanIcon.Raw;
|
|
31
38
|
id: string;
|
|
32
39
|
included_credit_grants?: BillingPlanCreditGrantResponseData.Raw[] | null;
|
|
33
40
|
is_custom: boolean;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const PlanIcon: core.serialization.Schema<serializers.PlanIcon.Raw, Schematic.PlanIcon>;
|
|
5
|
+
export declare namespace PlanIcon {
|
|
6
|
+
type Raw = "amber" | "blue" | "blueGray" | "blueGreen" | "cyan" | "emerald" | "fuchsia" | "gray" | "green" | "indigo" | "lightBlue" | "lime" | "orange" | "pink" | "purple" | "red" | "redOrange" | "rose" | "sky" | "slate" | "teal" | "trueGray" | "violet" | "warmGray" | "yellow";
|
|
7
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { PlanIcon } from "./PlanIcon";
|
|
4
5
|
import { PlanType } from "./PlanType";
|
|
5
6
|
export declare const PlanResponseData: core.serialization.ObjectSchema<serializers.PlanResponseData.Raw, Schematic.PlanResponseData>;
|
|
6
7
|
export declare namespace PlanResponseData {
|
|
7
8
|
interface Raw {
|
|
8
9
|
audience_type?: string | null;
|
|
10
|
+
company_id?: string | null;
|
|
11
|
+
copied_from_plan_id?: string | null;
|
|
9
12
|
created_at: string;
|
|
10
13
|
description: string;
|
|
11
|
-
icon:
|
|
14
|
+
icon: PlanIcon.Raw;
|
|
12
15
|
id: string;
|
|
13
16
|
name: string;
|
|
14
17
|
plan_type: PlanType.Raw;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { PlanIcon } from "./PlanIcon";
|
|
4
5
|
import { PlanType } from "./PlanType";
|
|
5
6
|
import { PlanVersionStatus } from "./PlanVersionStatus";
|
|
6
7
|
export declare const PlanVersionResponseData: core.serialization.ObjectSchema<serializers.PlanVersionResponseData.Raw, Schematic.PlanVersionResponseData>;
|
|
@@ -9,7 +10,7 @@ export declare namespace PlanVersionResponseData {
|
|
|
9
10
|
created_at: string;
|
|
10
11
|
description: string;
|
|
11
12
|
environment_id: string;
|
|
12
|
-
icon:
|
|
13
|
+
icon: PlanIcon.Raw;
|
|
13
14
|
id: string;
|
|
14
15
|
name: string;
|
|
15
16
|
original_plan_id?: string | null;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { BillingLinkedResourceResponseData } from "./BillingLinkedResourceResponseData";
|
|
4
5
|
import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
5
6
|
import { BillingProductDetailResponseData } from "./BillingProductDetailResponseData";
|
|
6
7
|
import { ChargeType } from "./ChargeType";
|
|
7
8
|
import { CustomPlanConfig } from "./CustomPlanConfig";
|
|
8
9
|
import { FeatureDetailResponseData } from "./FeatureDetailResponseData";
|
|
9
|
-
import { PlanControlledByType } from "./PlanControlledByType";
|
|
10
10
|
import { PlanCreditGrantView } from "./PlanCreditGrantView";
|
|
11
|
+
import { PlanCurrencyPricesResponseData } from "./PlanCurrencyPricesResponseData";
|
|
11
12
|
import { PlanEntitlementResponseData } from "./PlanEntitlementResponseData";
|
|
13
|
+
import { PlanIcon } from "./PlanIcon";
|
|
12
14
|
import { PlanType } from "./PlanType";
|
|
13
15
|
import { PlanVersionResponseData } from "./PlanVersionResponseData";
|
|
14
16
|
export declare const PlanViewPublicResponseData: core.serialization.ObjectSchema<serializers.PlanViewPublicResponseData.Raw, Schematic.PlanViewPublicResponseData>;
|
|
@@ -16,19 +18,24 @@ export declare namespace PlanViewPublicResponseData {
|
|
|
16
18
|
interface Raw {
|
|
17
19
|
active_version?: PlanVersionResponseData.Raw | null;
|
|
18
20
|
audience_type?: string | null;
|
|
21
|
+
billing_linked_resource?: BillingLinkedResourceResponseData.Raw | null;
|
|
19
22
|
billing_product?: BillingProductDetailResponseData.Raw | null;
|
|
20
23
|
charge_type: ChargeType.Raw;
|
|
21
24
|
company_count: number;
|
|
25
|
+
company_id?: string | null;
|
|
26
|
+
company_name?: string | null;
|
|
22
27
|
compatible_plan_ids: string[];
|
|
23
|
-
controlled_by:
|
|
28
|
+
controlled_by: string;
|
|
29
|
+
copied_from_plan_id?: string | null;
|
|
24
30
|
created_at: string;
|
|
31
|
+
currency_prices: PlanCurrencyPricesResponseData.Raw[];
|
|
25
32
|
custom: boolean;
|
|
26
33
|
custom_plan_config?: CustomPlanConfig.Raw | null;
|
|
27
34
|
description: string;
|
|
28
35
|
draft_version?: PlanVersionResponseData.Raw | null;
|
|
29
36
|
entitlements: PlanEntitlementResponseData.Raw[];
|
|
30
37
|
features: FeatureDetailResponseData.Raw[];
|
|
31
|
-
icon:
|
|
38
|
+
icon: PlanIcon.Raw;
|
|
32
39
|
id: string;
|
|
33
40
|
included_credit_grants: PlanCreditGrantView.Raw[];
|
|
34
41
|
is_custom: boolean;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const RulesEngineSchemaVersion: core.serialization.Schema<serializers.RulesEngineSchemaVersion.Raw, Schematic.RulesEngineSchemaVersion>;
|
|
5
5
|
export declare namespace RulesEngineSchemaVersion {
|
|
6
|
-
type Raw = "
|
|
6
|
+
type Raw = "v313fa646" | "placeholder-for-fern-compatibility";
|
|
7
7
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const TrialStatus: core.serialization.Schema<serializers.TrialStatus.Raw, Schematic.TrialStatus>;
|
|
5
|
+
export declare namespace TrialStatus {
|
|
6
|
+
type Raw = "active" | "converted" | "expired";
|
|
7
|
+
}
|
|
@@ -17,6 +17,7 @@ export declare namespace UpdateBillingPlanCreditGrantRequestBody {
|
|
|
17
17
|
auto_topup_expiry_type?: BillingCreditExpiryType.Raw | null;
|
|
18
18
|
auto_topup_expiry_unit?: BillingCreditExpiryUnit.Raw | null;
|
|
19
19
|
auto_topup_expiry_unit_count?: number | null;
|
|
20
|
+
auto_topup_threshold_credits?: number | null;
|
|
20
21
|
auto_topup_threshold_percent?: number | null;
|
|
21
22
|
credit_amount?: number | null;
|
|
22
23
|
expiry_type?: BillingCreditExpiryType.Raw | null;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
+
import { PlanIcon } from "./PlanIcon";
|
|
4
5
|
export declare const UpdatePlanRequestBody: core.serialization.ObjectSchema<serializers.UpdatePlanRequestBody.Raw, Schematic.UpdatePlanRequestBody>;
|
|
5
6
|
export declare namespace UpdatePlanRequestBody {
|
|
6
7
|
interface Raw {
|
|
7
8
|
description?: string | null;
|
|
8
|
-
icon?:
|
|
9
|
+
icon?: PlanIcon.Raw | null;
|
|
9
10
|
name: string;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -2,12 +2,14 @@ import type * as Schematic from "../../api/index";
|
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { ChargeType } from "./ChargeType";
|
|
5
|
+
import { PlanCurrencyPriceRequestBody } from "./PlanCurrencyPriceRequestBody";
|
|
5
6
|
export declare const UpsertBillingProductRequestBody: core.serialization.ObjectSchema<serializers.UpsertBillingProductRequestBody.Raw, Schematic.UpsertBillingProductRequestBody>;
|
|
6
7
|
export declare namespace UpsertBillingProductRequestBody {
|
|
7
8
|
interface Raw {
|
|
8
9
|
billing_product_id?: string | null;
|
|
9
10
|
charge_type: ChargeType.Raw;
|
|
10
11
|
currency?: string | null;
|
|
12
|
+
currency_prices?: PlanCurrencyPriceRequestBody.Raw[] | null;
|
|
11
13
|
is_trialable: boolean;
|
|
12
14
|
monthly_price?: number | null;
|
|
13
15
|
monthly_price_id?: string | null;
|
|
@@ -3,6 +3,7 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
import { BillingTiersMode } from "./BillingTiersMode";
|
|
5
5
|
import { CreatePriceTierRequestBody } from "./CreatePriceTierRequestBody";
|
|
6
|
+
import { CurrencyPriceRequestBody } from "./CurrencyPriceRequestBody";
|
|
6
7
|
import { EntitlementPriceBehavior } from "./EntitlementPriceBehavior";
|
|
7
8
|
export declare const UsageBasedEntitlementRequestBody: core.serialization.ObjectSchema<serializers.UsageBasedEntitlementRequestBody.Raw, Schematic.UsageBasedEntitlementRequestBody>;
|
|
8
9
|
export declare namespace UsageBasedEntitlementRequestBody {
|
|
@@ -10,6 +11,7 @@ export declare namespace UsageBasedEntitlementRequestBody {
|
|
|
10
11
|
billing_product_id?: string | null;
|
|
11
12
|
billing_threshold?: number | null;
|
|
12
13
|
currency?: string | null;
|
|
14
|
+
currency_prices?: CurrencyPriceRequestBody.Raw[] | null;
|
|
13
15
|
monthly_metered_price_id?: string | null;
|
|
14
16
|
monthly_price_tiers?: CreatePriceTierRequestBody.Raw[] | null;
|
|
15
17
|
monthly_unit_price?: number | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CompanyResponseData } from "./CompanyResponseData";
|
|
5
|
+
import { PlanSnapshotView } from "./PlanSnapshotView";
|
|
6
|
+
export declare const WebScheduledDowngradeWebhookOutput: core.serialization.ObjectSchema<serializers.WebScheduledDowngradeWebhookOutput.Raw, Schematic.WebScheduledDowngradeWebhookOutput>;
|
|
7
|
+
export declare namespace WebScheduledDowngradeWebhookOutput {
|
|
8
|
+
interface Raw {
|
|
9
|
+
company?: CompanyResponseData.Raw | null;
|
|
10
|
+
execute_after: string;
|
|
11
|
+
from_plan?: PlanSnapshotView.Raw | null;
|
|
12
|
+
id: string;
|
|
13
|
+
scheduled_interval?: string | null;
|
|
14
|
+
scheduled_price?: number | null;
|
|
15
|
+
to_plan?: PlanSnapshotView.Raw | null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const WebhookRequestType: core.serialization.Schema<serializers.WebhookRequestType.Raw, Schematic.WebhookRequestType>;
|
|
5
5
|
export declare namespace WebhookRequestType {
|
|
6
|
-
type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "plan_version.deleted" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded";
|
|
6
|
+
type Raw = "subscription.trial.ended" | "company.created" | "company.deleted" | "company.override.created" | "company.override.deleted" | "company.override.expired" | "company.override.updated" | "company.plan_changed" | "company.scheduled_downgrade" | "company.updated" | "credit.limit.reached" | "credit.limit.warning" | "entitlement.limit.reached" | "entitlement.limit.warning" | "entitlement.soft_limit.reached" | "entitlement.soft_limit.warning" | "entitlement.tier_limit.reached" | "entitlement.tier_limit.warning" | "feature.created" | "feature.deleted" | "feature.updated" | "flag.created" | "flag.deleted" | "flag_rules.updated" | "flag.updated" | "plan.created" | "plan.deleted" | "plan.entitlement.created" | "plan.entitlement.deleted" | "plan.entitlement.updated" | "plan.updated" | "plan_version.deleted" | "rule.deleted" | "test.send" | "user.created" | "user.deleted" | "user.updated" | "auto.topup.hard.failure" | "auto.topup.retry.exceeded";
|
|
7
7
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { IntegrationType } from "./IntegrationType";
|
|
5
|
+
export declare const WebhookUrl: core.serialization.ObjectSchema<serializers.WebhookUrl.Raw, Schematic.WebhookUrl>;
|
|
6
|
+
export declare namespace WebhookUrl {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: IntegrationType.Raw;
|
|
9
|
+
url: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "./AccountMemberPermission";
|
|
2
|
+
export * from "./AccountMemberResponseData";
|
|
3
|
+
export * from "./AccountMemberRole";
|
|
1
4
|
export * from "./ActorType";
|
|
2
5
|
export * from "./ApiError";
|
|
3
6
|
export * from "./ApiKeyCreateResponseData";
|
|
@@ -23,6 +26,7 @@ export * from "./BillingCreditView";
|
|
|
23
26
|
export * from "./BillingCustomerResponseData";
|
|
24
27
|
export * from "./BillingCustomerSubscription";
|
|
25
28
|
export * from "./BillingCustomerWithSubscriptionsResponseData";
|
|
29
|
+
export * from "./BillingLinkedResourceResponseData";
|
|
26
30
|
export * from "./BillingMeterResponseData";
|
|
27
31
|
export * from "./BillingPlanCreditGrantResetCadence";
|
|
28
32
|
export * from "./BillingPlanCreditGrantResetStart";
|
|
@@ -116,8 +120,13 @@ export * from "./CreateOrUpdateRuleRequestBodyRuleType";
|
|
|
116
120
|
export * from "./CreatePlanRequestBody";
|
|
117
121
|
export * from "./CreatePriceTierRequestBody";
|
|
118
122
|
export * from "./CreditAutoTopupAmountType";
|
|
123
|
+
export * from "./CreditBundleCurrencyPrice";
|
|
124
|
+
export * from "./CreditBundleCurrencyPriceRequestBody";
|
|
125
|
+
export * from "./CreditBundleCurrencyPriceResponseData";
|
|
119
126
|
export * from "./CreditBundlePurchaseResponseData";
|
|
120
127
|
export * from "./CreditCompanyGrantView";
|
|
128
|
+
export * from "./CreditCurrencyPriceRequestBody";
|
|
129
|
+
export * from "./CreditCurrencyPriceResponseData";
|
|
121
130
|
export * from "./CreditEventLedgerResponseData";
|
|
122
131
|
export * from "./CreditEventType";
|
|
123
132
|
export * from "./CreditGrantDetail";
|
|
@@ -134,6 +143,10 @@ export * from "./CreditTransferView";
|
|
|
134
143
|
export * from "./CreditTriggerConfig";
|
|
135
144
|
export * from "./CreditUsage";
|
|
136
145
|
export * from "./CreditUsageAggregation";
|
|
146
|
+
export * from "./CurrencyPriceRequestBody";
|
|
147
|
+
export * from "./CustomPlanActivationStrategy";
|
|
148
|
+
export * from "./CustomPlanBillingResponseData";
|
|
149
|
+
export * from "./CustomPlanBillingStatus";
|
|
137
150
|
export * from "./CustomPlanConfig";
|
|
138
151
|
export * from "./CustomPlanViewConfigResponseData";
|
|
139
152
|
export * from "./DataEventPayload";
|
|
@@ -145,6 +158,7 @@ export * from "./DatastreamCompanyPlan";
|
|
|
145
158
|
export * from "./DeleteBillingPlanCreditGrantRequestBody";
|
|
146
159
|
export * from "./DeleteResponse";
|
|
147
160
|
export * from "./DuplicatePlanEntitlementsResponseResponseData";
|
|
161
|
+
export * from "./EntitlementCurrencyPricesResponseData";
|
|
148
162
|
export * from "./EntitlementPriceBehavior";
|
|
149
163
|
export * from "./EntitlementsInPlan";
|
|
150
164
|
export * from "./EntitlementTriggerConfig";
|
|
@@ -191,6 +205,8 @@ export * from "./FlagResponseData";
|
|
|
191
205
|
export * from "./FlagType";
|
|
192
206
|
export * from "./FlagView";
|
|
193
207
|
export * from "./GenericPreviewObject";
|
|
208
|
+
export * from "./IntegrationType";
|
|
209
|
+
export * from "./IntegrationWebhookUrlResponseData";
|
|
194
210
|
export * from "./InvoiceRequestBody";
|
|
195
211
|
export * from "./InvoiceResponseData";
|
|
196
212
|
export * from "./InvoiceStatus";
|
|
@@ -212,8 +228,9 @@ export * from "./PlanChangeAction";
|
|
|
212
228
|
export * from "./PlanChangeBasePlanAction";
|
|
213
229
|
export * from "./PlanChangeResponseData";
|
|
214
230
|
export * from "./PlanChangeSubscriptionAction";
|
|
215
|
-
export * from "./PlanControlledByType";
|
|
216
231
|
export * from "./PlanCreditGrantView";
|
|
232
|
+
export * from "./PlanCurrencyPriceRequestBody";
|
|
233
|
+
export * from "./PlanCurrencyPricesResponseData";
|
|
217
234
|
export * from "./PlanDetailResponseData";
|
|
218
235
|
export * from "./PlanEntitlementResponseData";
|
|
219
236
|
export * from "./PlanEntitlementsOrder";
|
|
@@ -222,6 +239,7 @@ export * from "./PlanGroupDetailResponseData";
|
|
|
222
239
|
export * from "./PlanGroupPlanDetailResponseData";
|
|
223
240
|
export * from "./PlanGroupPlanEntitlementsOrder";
|
|
224
241
|
export * from "./PlanGroupResponseData";
|
|
242
|
+
export * from "./PlanIcon";
|
|
225
243
|
export * from "./PlanIssueResponseData";
|
|
226
244
|
export * from "./PlanResponseData";
|
|
227
245
|
export * from "./PlanSelection";
|
|
@@ -302,6 +320,7 @@ export * from "./TimeSeriesGranularity";
|
|
|
302
320
|
export * from "./TraitDefinition";
|
|
303
321
|
export * from "./TraitDefinitionComparableType";
|
|
304
322
|
export * from "./TraitType";
|
|
323
|
+
export * from "./TrialStatus";
|
|
305
324
|
export * from "./UpdateAddOnRequestBody";
|
|
306
325
|
export * from "./UpdateBillingPlanCreditGrantRequestBody";
|
|
307
326
|
export * from "./UpdateCreditBundleRequestBody";
|
|
@@ -329,4 +348,6 @@ export * from "./WebhookEventStatus";
|
|
|
329
348
|
export * from "./WebhookRequestType";
|
|
330
349
|
export * from "./WebhookResponseData";
|
|
331
350
|
export * from "./WebhookStatus";
|
|
351
|
+
export * from "./WebhookUrl";
|
|
352
|
+
export * from "./WebScheduledDowngradeWebhookOutput";
|
|
332
353
|
export * from "./WhoAmIResponseData";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export class RulesEngineJS {
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
checkFlag(flag_json: string, company_json?: string | null, user_json?: string | null): string;
|
|
8
|
+
getVersionKey(): string;
|
|
9
|
+
constructor();
|
|
10
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/* @ts-self-types="./rulesengine.d.ts" */
|
|
2
|
+
|
|
3
|
+
class RulesEngineJS {
|
|
4
|
+
__destroy_into_raw() {
|
|
5
|
+
const ptr = this.__wbg_ptr;
|
|
6
|
+
this.__wbg_ptr = 0;
|
|
7
|
+
RulesEngineJSFinalization.unregister(this);
|
|
8
|
+
return ptr;
|
|
9
|
+
}
|
|
10
|
+
free() {
|
|
11
|
+
const ptr = this.__destroy_into_raw();
|
|
12
|
+
wasm.__wbg_rulesenginejs_free(ptr, 0);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @param {string} flag_json
|
|
16
|
+
* @param {string | null} [company_json]
|
|
17
|
+
* @param {string | null} [user_json]
|
|
18
|
+
* @returns {string}
|
|
19
|
+
*/
|
|
20
|
+
checkFlag(flag_json, company_json, user_json) {
|
|
21
|
+
let deferred5_0;
|
|
22
|
+
let deferred5_1;
|
|
23
|
+
try {
|
|
24
|
+
const ptr0 = passStringToWasm0(flag_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
25
|
+
const len0 = WASM_VECTOR_LEN;
|
|
26
|
+
var ptr1 = isLikeNone(company_json) ? 0 : passStringToWasm0(company_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
27
|
+
var len1 = WASM_VECTOR_LEN;
|
|
28
|
+
var ptr2 = isLikeNone(user_json) ? 0 : passStringToWasm0(user_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
29
|
+
var len2 = WASM_VECTOR_LEN;
|
|
30
|
+
const ret = wasm.rulesenginejs_checkFlag(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
31
|
+
var ptr4 = ret[0];
|
|
32
|
+
var len4 = ret[1];
|
|
33
|
+
if (ret[3]) {
|
|
34
|
+
ptr4 = 0; len4 = 0;
|
|
35
|
+
throw takeFromExternrefTable0(ret[2]);
|
|
36
|
+
}
|
|
37
|
+
deferred5_0 = ptr4;
|
|
38
|
+
deferred5_1 = len4;
|
|
39
|
+
return getStringFromWasm0(ptr4, len4);
|
|
40
|
+
} finally {
|
|
41
|
+
wasm.__wbindgen_free(deferred5_0, deferred5_1, 1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @returns {string}
|
|
46
|
+
*/
|
|
47
|
+
getVersionKey() {
|
|
48
|
+
let deferred1_0;
|
|
49
|
+
let deferred1_1;
|
|
50
|
+
try {
|
|
51
|
+
const ret = wasm.rulesenginejs_getVersionKey(this.__wbg_ptr);
|
|
52
|
+
deferred1_0 = ret[0];
|
|
53
|
+
deferred1_1 = ret[1];
|
|
54
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
55
|
+
} finally {
|
|
56
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
constructor() {
|
|
60
|
+
const ret = wasm.rulesenginejs_new();
|
|
61
|
+
this.__wbg_ptr = ret >>> 0;
|
|
62
|
+
RulesEngineJSFinalization.register(this, this.__wbg_ptr, this);
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
if (Symbol.dispose) RulesEngineJS.prototype[Symbol.dispose] = RulesEngineJS.prototype.free;
|
|
67
|
+
exports.RulesEngineJS = RulesEngineJS;
|
|
68
|
+
|
|
69
|
+
function __wbg_get_imports() {
|
|
70
|
+
const import0 = {
|
|
71
|
+
__proto__: null,
|
|
72
|
+
__wbg___wbindgen_throw_81fc77679af83bc6: function(arg0, arg1) {
|
|
73
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
74
|
+
},
|
|
75
|
+
__wbg_getTime_f6ac312467f7cf09: function(arg0) {
|
|
76
|
+
const ret = arg0.getTime();
|
|
77
|
+
return ret;
|
|
78
|
+
},
|
|
79
|
+
__wbg_new_0_bfa2ef4bc447daa2: function() {
|
|
80
|
+
const ret = new Date();
|
|
81
|
+
return ret;
|
|
82
|
+
},
|
|
83
|
+
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
84
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
85
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
86
|
+
return ret;
|
|
87
|
+
},
|
|
88
|
+
__wbindgen_init_externref_table: function() {
|
|
89
|
+
const table = wasm.__wbindgen_externrefs;
|
|
90
|
+
const offset = table.grow(4);
|
|
91
|
+
table.set(0, undefined);
|
|
92
|
+
table.set(offset + 0, undefined);
|
|
93
|
+
table.set(offset + 1, null);
|
|
94
|
+
table.set(offset + 2, true);
|
|
95
|
+
table.set(offset + 3, false);
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
return {
|
|
99
|
+
__proto__: null,
|
|
100
|
+
"./rulesengine_bg.js": import0,
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const RulesEngineJSFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
105
|
+
? { register: () => {}, unregister: () => {} }
|
|
106
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_rulesenginejs_free(ptr >>> 0, 1));
|
|
107
|
+
|
|
108
|
+
function getStringFromWasm0(ptr, len) {
|
|
109
|
+
ptr = ptr >>> 0;
|
|
110
|
+
return decodeText(ptr, len);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let cachedUint8ArrayMemory0 = null;
|
|
114
|
+
function getUint8ArrayMemory0() {
|
|
115
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
116
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
117
|
+
}
|
|
118
|
+
return cachedUint8ArrayMemory0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
function isLikeNone(x) {
|
|
122
|
+
return x === undefined || x === null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
126
|
+
if (realloc === undefined) {
|
|
127
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
128
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
129
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
130
|
+
WASM_VECTOR_LEN = buf.length;
|
|
131
|
+
return ptr;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
let len = arg.length;
|
|
135
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
136
|
+
|
|
137
|
+
const mem = getUint8ArrayMemory0();
|
|
138
|
+
|
|
139
|
+
let offset = 0;
|
|
140
|
+
|
|
141
|
+
for (; offset < len; offset++) {
|
|
142
|
+
const code = arg.charCodeAt(offset);
|
|
143
|
+
if (code > 0x7F) break;
|
|
144
|
+
mem[ptr + offset] = code;
|
|
145
|
+
}
|
|
146
|
+
if (offset !== len) {
|
|
147
|
+
if (offset !== 0) {
|
|
148
|
+
arg = arg.slice(offset);
|
|
149
|
+
}
|
|
150
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
151
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
152
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
153
|
+
|
|
154
|
+
offset += ret.written;
|
|
155
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
WASM_VECTOR_LEN = offset;
|
|
159
|
+
return ptr;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function takeFromExternrefTable0(idx) {
|
|
163
|
+
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
164
|
+
wasm.__externref_table_dealloc(idx);
|
|
165
|
+
return value;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
169
|
+
cachedTextDecoder.decode();
|
|
170
|
+
function decodeText(ptr, len) {
|
|
171
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
const cachedTextEncoder = new TextEncoder();
|
|
175
|
+
|
|
176
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
177
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
178
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
179
|
+
view.set(buf);
|
|
180
|
+
return {
|
|
181
|
+
read: arg.length,
|
|
182
|
+
written: buf.length
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
let WASM_VECTOR_LEN = 0;
|
|
188
|
+
|
|
189
|
+
const wasmPath = `${__dirname}/rulesengine_bg.wasm`;
|
|
190
|
+
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
191
|
+
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
192
|
+
let wasm = new WebAssembly.Instance(wasmModule, __wbg_get_imports()).exports;
|
|
193
|
+
wasm.__wbindgen_start();
|
|
Binary file
|