@schematichq/schematic-typescript-node 1.4.5 → 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/dist/Client.d.ts +3 -0
- package/dist/api/resources/accounts/client/Client.d.ts +33 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +17 -0
- package/dist/api/resources/accounts/client/requests/index.d.ts +1 -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 +8 -6
- package/dist/api/resources/billing/client/requests/CountBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CountCustomersRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +1 -0
- package/dist/api/resources/billing/client/requests/CreateMeterRequestBody.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +4 -1
- package/dist/api/resources/billing/client/requests/ListBillingProductsRequest.d.ts +1 -1
- package/dist/api/resources/billing/client/requests/ListCustomersWithSubscriptionsRequest.d.ts +1 -1
- 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/companies/client/Client.d.ts +4 -2
- package/dist/api/resources/companies/client/requests/CountCompaniesRequest.d.ts +3 -0
- package/dist/api/resources/companies/client/requests/ListCompaniesRequest.d.ts +3 -0
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +5 -4
- 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/credits/client/Client.d.ts +15 -1
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/UpdateBillingCreditRequestBody.d.ts +1 -0
- package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts +1 -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/entitlements/client/Client.d.ts +21 -0
- 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/UpdatePlanEntitlementRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +1 -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/features/client/Client.d.ts +25 -4
- package/dist/api/resources/features/client/requests/CountFeaturesRequest.d.ts +8 -8
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +26 -0
- package/dist/api/resources/features/client/requests/ListFeaturesRequest.d.ts +8 -8
- package/dist/api/resources/features/client/requests/index.d.ts +1 -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/plans/client/Client.d.ts +92 -3
- package/dist/api/resources/plans/client/requests/CountBillingProductMatchCompaniesRequest.d.ts +19 -0
- package/dist/api/resources/plans/client/requests/CountPlansRequest.d.ts +3 -0
- 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 +3 -0
- 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/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 +2 -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 +2 -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/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/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/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/PlanVersionResponseData.d.ts +1 -1
- package/dist/api/types/PlanViewPublicResponseData.d.ts +7 -2
- 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/WebhookUrl.d.ts +5 -0
- package/dist/api/types/index.d.ts +21 -1
- package/dist/datastream/merge.d.ts +2 -7
- 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 +1 -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 +1 -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/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/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/PlanVersionResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +10 -3
- 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/WebhookUrl.d.ts +11 -0
- package/dist/serialization/types/index.d.ts +21 -1
- package/dist/wasm/rulesengine.js +3 -3
- package/dist/wasm/rulesengine_bg.wasm +0 -0
- package/package.json +7 -7
- package/dist/api/types/PlanControlledByType.d.ts +0 -5
- package/dist/serialization/types/PlanControlledByType.d.ts +0 -7
package/dist/Client.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { DataexportsClient } from "./api/resources/dataexports/client/Client";
|
|
|
10
10
|
import { EntitlementsClient } from "./api/resources/entitlements/client/Client";
|
|
11
11
|
import { EventsClient } from "./api/resources/events/client/Client";
|
|
12
12
|
import { FeaturesClient } from "./api/resources/features/client/Client";
|
|
13
|
+
import { IntegrationsapiClient } from "./api/resources/integrationsapi/client/Client";
|
|
13
14
|
import { PlanbundleClient } from "./api/resources/planbundle/client/Client";
|
|
14
15
|
import { PlangroupsClient } from "./api/resources/plangroups/client/Client";
|
|
15
16
|
import { PlanmigrationsClient } from "./api/resources/planmigrations/client/Client";
|
|
@@ -37,6 +38,7 @@ export declare class SchematicClient {
|
|
|
37
38
|
protected _dataexports: DataexportsClient | undefined;
|
|
38
39
|
protected _events: EventsClient | undefined;
|
|
39
40
|
protected _features: FeaturesClient | undefined;
|
|
41
|
+
protected _integrationsapi: IntegrationsapiClient | undefined;
|
|
40
42
|
protected _planbundle: PlanbundleClient | undefined;
|
|
41
43
|
protected _plangroups: PlangroupsClient | undefined;
|
|
42
44
|
protected _planmigrations: PlanmigrationsClient | undefined;
|
|
@@ -56,6 +58,7 @@ export declare class SchematicClient {
|
|
|
56
58
|
get dataexports(): DataexportsClient;
|
|
57
59
|
get events(): EventsClient;
|
|
58
60
|
get features(): FeaturesClient;
|
|
61
|
+
get integrationsapi(): IntegrationsapiClient;
|
|
59
62
|
get planbundle(): PlanbundleClient;
|
|
60
63
|
get plangroups(): PlangroupsClient;
|
|
61
64
|
get planmigrations(): PlanmigrationsClient;
|
|
@@ -10,6 +10,39 @@ export declare namespace AccountsClient {
|
|
|
10
10
|
export declare class AccountsClient {
|
|
11
11
|
protected readonly _options: NormalizedClientOptionsWithAuth<AccountsClient.Options>;
|
|
12
12
|
constructor(options: AccountsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {Schematic.ListAccountMembersRequest} request
|
|
15
|
+
* @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link Schematic.BadRequestError}
|
|
18
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
19
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
20
|
+
* @throws {@link Schematic.NotFoundError}
|
|
21
|
+
* @throws {@link Schematic.InternalServerError}
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* await client.accounts.listAccountMembers({
|
|
25
|
+
* q: "q",
|
|
26
|
+
* limit: 1000000,
|
|
27
|
+
* offset: 1000000
|
|
28
|
+
* })
|
|
29
|
+
*/
|
|
30
|
+
listAccountMembers(request?: Schematic.ListAccountMembersRequest, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.ListAccountMembersResponse>;
|
|
31
|
+
private __listAccountMembers;
|
|
32
|
+
/**
|
|
33
|
+
* @param {string} account_member_id - account_member_id
|
|
34
|
+
* @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
37
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
38
|
+
* @throws {@link Schematic.NotFoundError}
|
|
39
|
+
* @throws {@link Schematic.InternalServerError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.accounts.getAccountMember("account_member_id")
|
|
43
|
+
*/
|
|
44
|
+
getAccountMember(account_member_id: string, requestOptions?: AccountsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetAccountMemberResponse>;
|
|
45
|
+
private __getAccountMember;
|
|
13
46
|
/**
|
|
14
47
|
* @param {Schematic.ListApiKeysRequest} request
|
|
15
48
|
* @param {AccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* q: "q",
|
|
5
|
+
* limit: 1000000,
|
|
6
|
+
* offset: 1000000
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface ListAccountMembersRequest {
|
|
10
|
+
ids?: string | string[];
|
|
11
|
+
/** Search filter */
|
|
12
|
+
q?: string;
|
|
13
|
+
/** Page limit (default 100) */
|
|
14
|
+
limit?: number;
|
|
15
|
+
/** Page offset (default 0) */
|
|
16
|
+
offset?: number;
|
|
17
|
+
}
|
|
@@ -2,6 +2,7 @@ export type { CountApiKeysRequest } from "./CountApiKeysRequest";
|
|
|
2
2
|
export type { CountAuditLogsRequest } from "./CountAuditLogsRequest";
|
|
3
3
|
export type { CreateApiKeyRequestBody } from "./CreateApiKeyRequestBody";
|
|
4
4
|
export type { CreateEnvironmentRequestBody } from "./CreateEnvironmentRequestBody";
|
|
5
|
+
export type { ListAccountMembersRequest } from "./ListAccountMembersRequest";
|
|
5
6
|
export type { ListApiKeysRequest } from "./ListApiKeysRequest";
|
|
6
7
|
export type { ListAuditLogsRequest } from "./ListAuditLogsRequest";
|
|
7
8
|
export type { ListEnvironmentsRequest } from "./ListEnvironmentsRequest";
|
|
@@ -6,10 +6,13 @@ export * from "./CreateApiKeyResponse";
|
|
|
6
6
|
export * from "./CreateEnvironmentResponse";
|
|
7
7
|
export * from "./DeleteApiKeyResponse";
|
|
8
8
|
export * from "./DeleteEnvironmentResponse";
|
|
9
|
+
export * from "./GetAccountMemberResponse";
|
|
9
10
|
export * from "./GetApiKeyResponse";
|
|
10
11
|
export * from "./GetAuditLogResponse";
|
|
11
12
|
export * from "./GetEnvironmentResponse";
|
|
12
13
|
export * from "./GetWhoAmIResponse";
|
|
14
|
+
export * from "./ListAccountMembersParams";
|
|
15
|
+
export * from "./ListAccountMembersResponse";
|
|
13
16
|
export * from "./ListApiKeysParams";
|
|
14
17
|
export * from "./ListApiKeysResponse";
|
|
15
18
|
export * from "./ListAuditLogsParams";
|
|
@@ -89,7 +89,7 @@ export declare class BillingClient {
|
|
|
89
89
|
* @example
|
|
90
90
|
* await client.billing.listCustomersWithSubscriptions({
|
|
91
91
|
* name: "name",
|
|
92
|
-
* providerType: "
|
|
92
|
+
* providerType: "orb",
|
|
93
93
|
* q: "q",
|
|
94
94
|
* limit: 1000000,
|
|
95
95
|
* offset: 1000000
|
|
@@ -110,7 +110,7 @@ export declare class BillingClient {
|
|
|
110
110
|
* @example
|
|
111
111
|
* await client.billing.countCustomers({
|
|
112
112
|
* name: "name",
|
|
113
|
-
* providerType: "
|
|
113
|
+
* providerType: "orb",
|
|
114
114
|
* q: "q",
|
|
115
115
|
* limit: 1000000,
|
|
116
116
|
* offset: 1000000
|
|
@@ -252,13 +252,14 @@ export declare class BillingClient {
|
|
|
252
252
|
*
|
|
253
253
|
* @example
|
|
254
254
|
* await client.billing.listBillingPrices({
|
|
255
|
+
* currency: "currency",
|
|
255
256
|
* forInitialPlan: true,
|
|
256
257
|
* forTrialExpiryPlan: true,
|
|
257
258
|
* interval: "interval",
|
|
258
259
|
* isActive: true,
|
|
259
260
|
* price: 1000000,
|
|
260
261
|
* productId: "product_id",
|
|
261
|
-
* providerType: "
|
|
262
|
+
* providerType: "orb",
|
|
262
263
|
* q: "q",
|
|
263
264
|
* tiersMode: "graduated",
|
|
264
265
|
* usageType: "licensed",
|
|
@@ -324,13 +325,14 @@ export declare class BillingClient {
|
|
|
324
325
|
*
|
|
325
326
|
* @example
|
|
326
327
|
* await client.billing.listBillingProductPrices({
|
|
328
|
+
* currency: "currency",
|
|
327
329
|
* forInitialPlan: true,
|
|
328
330
|
* forTrialExpiryPlan: true,
|
|
329
331
|
* interval: "interval",
|
|
330
332
|
* isActive: true,
|
|
331
333
|
* price: 1000000,
|
|
332
334
|
* productId: "product_id",
|
|
333
|
-
* providerType: "
|
|
335
|
+
* providerType: "orb",
|
|
334
336
|
* q: "q",
|
|
335
337
|
* tiersMode: "graduated",
|
|
336
338
|
* usageType: "licensed",
|
|
@@ -389,7 +391,7 @@ export declare class BillingClient {
|
|
|
389
391
|
* isActive: true,
|
|
390
392
|
* name: "name",
|
|
391
393
|
* priceUsageType: "licensed",
|
|
392
|
-
* providerType: "
|
|
394
|
+
* providerType: "orb",
|
|
393
395
|
* q: "q",
|
|
394
396
|
* withOneTimeCharges: true,
|
|
395
397
|
* withPricesOnly: true,
|
|
@@ -416,7 +418,7 @@ export declare class BillingClient {
|
|
|
416
418
|
* isActive: true,
|
|
417
419
|
* name: "name",
|
|
418
420
|
* priceUsageType: "licensed",
|
|
419
|
-
* providerType: "
|
|
421
|
+
* providerType: "orb",
|
|
420
422
|
* q: "q",
|
|
421
423
|
* withOneTimeCharges: true,
|
|
422
424
|
* withPricesOnly: true,
|
package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts
CHANGED
|
@@ -40,6 +40,7 @@ export interface CreateBillingSubscriptionRequestBody {
|
|
|
40
40
|
periodEnd?: number;
|
|
41
41
|
periodStart?: number;
|
|
42
42
|
productExternalIds: Schematic.BillingProductPricing[];
|
|
43
|
+
providerType?: Schematic.BillingProviderType;
|
|
43
44
|
status?: string;
|
|
44
45
|
subscriptionExternalId: string;
|
|
45
46
|
totalPrice: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
@@ -12,4 +13,5 @@ export interface CreateMeterRequestBody {
|
|
|
12
13
|
eventName: string;
|
|
13
14
|
eventPayloadKey: string;
|
|
14
15
|
externalId: string;
|
|
16
|
+
providerType?: Schematic.BillingProviderType;
|
|
15
17
|
}
|
|
@@ -2,13 +2,14 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* currency: "currency",
|
|
5
6
|
* forInitialPlan: true,
|
|
6
7
|
* forTrialExpiryPlan: true,
|
|
7
8
|
* interval: "interval",
|
|
8
9
|
* isActive: true,
|
|
9
10
|
* price: 1000000,
|
|
10
11
|
* productId: "product_id",
|
|
11
|
-
* providerType: "
|
|
12
|
+
* providerType: "orb",
|
|
12
13
|
* q: "q",
|
|
13
14
|
* tiersMode: "graduated",
|
|
14
15
|
* usageType: "licensed",
|
|
@@ -18,6 +19,8 @@ import type * as Schematic from "../../../../index";
|
|
|
18
19
|
* }
|
|
19
20
|
*/
|
|
20
21
|
export interface ListBillingPricesRequest {
|
|
22
|
+
/** Filter for prices in a specific currency (e.g. usd, eur) */
|
|
23
|
+
currency?: string;
|
|
21
24
|
/** Filter for prices valid for initial plans (free prices only) */
|
|
22
25
|
forInitialPlan?: boolean;
|
|
23
26
|
/** Filter for prices valid for trial expiry plans (free prices only) */
|
|
@@ -2,13 +2,14 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* currency: "currency",
|
|
5
6
|
* forInitialPlan: true,
|
|
6
7
|
* forTrialExpiryPlan: true,
|
|
7
8
|
* interval: "interval",
|
|
8
9
|
* isActive: true,
|
|
9
10
|
* price: 1000000,
|
|
10
11
|
* productId: "product_id",
|
|
11
|
-
* providerType: "
|
|
12
|
+
* providerType: "orb",
|
|
12
13
|
* q: "q",
|
|
13
14
|
* tiersMode: "graduated",
|
|
14
15
|
* usageType: "licensed",
|
|
@@ -18,6 +19,8 @@ import type * as Schematic from "../../../../index";
|
|
|
18
19
|
* }
|
|
19
20
|
*/
|
|
20
21
|
export interface ListBillingProductPricesRequest {
|
|
22
|
+
/** Filter for prices in a specific currency (e.g. usd, eur) */
|
|
23
|
+
currency?: string;
|
|
21
24
|
/** Filter for prices valid for initial plans (free prices only) */
|
|
22
25
|
forInitialPlan?: boolean;
|
|
23
26
|
/** Filter for prices valid for trial expiry plans (free prices only) */
|
|
@@ -3,6 +3,8 @@ import type * as Schematic from "../../../index";
|
|
|
3
3
|
* Input parameters
|
|
4
4
|
*/
|
|
5
5
|
export interface ListBillingPricesParams {
|
|
6
|
+
/** Filter for prices in a specific currency (e.g. usd, eur) */
|
|
7
|
+
currency?: string;
|
|
6
8
|
/** Filter for prices valid for initial plans (free prices only) */
|
|
7
9
|
forInitialPlan?: boolean;
|
|
8
10
|
/** Filter for prices valid for trial expiry plans (free prices only) */
|
|
@@ -3,6 +3,8 @@ import type * as Schematic from "../../../index";
|
|
|
3
3
|
* Input parameters
|
|
4
4
|
*/
|
|
5
5
|
export interface ListBillingProductPricesParams {
|
|
6
|
+
/** Filter for prices in a specific currency (e.g. usd, eur) */
|
|
7
|
+
currency?: string;
|
|
6
8
|
/** Filter for prices valid for initial plans (free prices only) */
|
|
7
9
|
forInitialPlan?: boolean;
|
|
8
10
|
/** Filter for prices valid for trial expiry plans (free prices only) */
|
|
@@ -22,6 +22,7 @@ export declare class CompaniesClient {
|
|
|
22
22
|
*
|
|
23
23
|
* @example
|
|
24
24
|
* await client.companies.listCompanies({
|
|
25
|
+
* hasScheduledDowngrade: true,
|
|
25
26
|
* monetizedSubscriptions: true,
|
|
26
27
|
* planId: "plan_id",
|
|
27
28
|
* planVersionId: "plan_version_id",
|
|
@@ -103,6 +104,7 @@ export declare class CompaniesClient {
|
|
|
103
104
|
*
|
|
104
105
|
* @example
|
|
105
106
|
* await client.companies.countCompanies({
|
|
107
|
+
* hasScheduledDowngrade: true,
|
|
106
108
|
* monetizedSubscriptions: true,
|
|
107
109
|
* planId: "plan_id",
|
|
108
110
|
* planVersionId: "plan_version_id",
|
|
@@ -439,8 +441,8 @@ export declare class CompaniesClient {
|
|
|
439
441
|
*
|
|
440
442
|
* @example
|
|
441
443
|
* await client.companies.listPlanChanges({
|
|
442
|
-
* action: "
|
|
443
|
-
* basePlanAction: "
|
|
444
|
+
* action: "checkout",
|
|
445
|
+
* basePlanAction: "fallback",
|
|
444
446
|
* companyId: "company_id",
|
|
445
447
|
* limit: 1000000,
|
|
446
448
|
* offset: 1000000
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* hasScheduledDowngrade: true,
|
|
5
6
|
* monetizedSubscriptions: true,
|
|
6
7
|
* planId: "plan_id",
|
|
7
8
|
* planVersionId: "plan_version_id",
|
|
@@ -20,6 +21,8 @@ import type * as Schematic from "../../../../index";
|
|
|
20
21
|
export interface CountCompaniesRequest {
|
|
21
22
|
/** Filter companies by one or more credit type IDs (each ID starts with bcrd_) */
|
|
22
23
|
creditTypeIds?: string | string[];
|
|
24
|
+
/** Filter companies that have a pending scheduled downgrade */
|
|
25
|
+
hasScheduledDowngrade?: boolean;
|
|
23
26
|
/** Filter companies by multiple company IDs (starts with comp_) */
|
|
24
27
|
ids?: string | string[];
|
|
25
28
|
/** Filter companies that have monetized subscriptions */
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../../../../index";
|
|
|
2
2
|
/**
|
|
3
3
|
* @example
|
|
4
4
|
* {
|
|
5
|
+
* hasScheduledDowngrade: true,
|
|
5
6
|
* monetizedSubscriptions: true,
|
|
6
7
|
* planId: "plan_id",
|
|
7
8
|
* planVersionId: "plan_version_id",
|
|
@@ -20,6 +21,8 @@ import type * as Schematic from "../../../../index";
|
|
|
20
21
|
export interface ListCompaniesRequest {
|
|
21
22
|
/** Filter companies by one or more credit type IDs (each ID starts with bcrd_) */
|
|
22
23
|
creditTypeIds?: string | string[];
|
|
24
|
+
/** Filter companies that have a pending scheduled downgrade */
|
|
25
|
+
hasScheduledDowngrade?: boolean;
|
|
23
26
|
/** Filter companies by multiple company IDs (starts with comp_) */
|
|
24
27
|
ids?: string | string[];
|
|
25
28
|
/** Filter companies that have monetized subscriptions */
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
4
|
-
* action: "
|
|
5
|
-
* basePlanAction: "
|
|
5
|
+
* action: "checkout",
|
|
6
|
+
* basePlanAction: "fallback",
|
|
6
7
|
* companyId: "company_id",
|
|
7
8
|
* limit: 1000000,
|
|
8
9
|
* offset: 1000000
|
|
9
10
|
* }
|
|
10
11
|
*/
|
|
11
12
|
export interface ListPlanChangesRequest {
|
|
12
|
-
action?:
|
|
13
|
-
basePlanAction?:
|
|
13
|
+
action?: Schematic.PlanChangeAction;
|
|
14
|
+
basePlanAction?: Schematic.PlanChangeBasePlanAction;
|
|
14
15
|
companyId?: string;
|
|
15
16
|
companyIds?: string | string[];
|
|
16
17
|
planIds?: string | string[];
|
|
@@ -5,6 +5,8 @@ import type * as Schematic from "../../../index";
|
|
|
5
5
|
export interface CountCompaniesParams {
|
|
6
6
|
/** Filter companies by one or more credit type IDs (each ID starts with bcrd_) */
|
|
7
7
|
creditTypeIds?: string[];
|
|
8
|
+
/** Filter companies that have a pending scheduled downgrade */
|
|
9
|
+
hasScheduledDowngrade?: boolean;
|
|
8
10
|
/** Filter companies by multiple company IDs (starts with comp_) */
|
|
9
11
|
ids?: string[];
|
|
10
12
|
/** Page limit (default 100) */
|
|
@@ -5,6 +5,8 @@ import type * as Schematic from "../../../index";
|
|
|
5
5
|
export interface ListCompaniesParams {
|
|
6
6
|
/** Filter companies by one or more credit type IDs (each ID starts with bcrd_) */
|
|
7
7
|
creditTypeIds?: string[];
|
|
8
|
+
/** Filter companies that have a pending scheduled downgrade */
|
|
9
|
+
hasScheduledDowngrade?: boolean;
|
|
8
10
|
/** Filter companies by multiple company IDs (starts with comp_) */
|
|
9
11
|
ids?: string[];
|
|
10
12
|
/** Page limit (default 100) */
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../../../index";
|
|
1
2
|
/**
|
|
2
3
|
* Input parameters
|
|
3
4
|
*/
|
|
4
5
|
export interface ListPlanChangesParams {
|
|
5
|
-
action?:
|
|
6
|
-
basePlanAction?:
|
|
6
|
+
action?: Schematic.PlanChangeAction;
|
|
7
|
+
basePlanAction?: Schematic.PlanChangeBasePlanAction;
|
|
7
8
|
companyId?: string;
|
|
8
9
|
companyIds?: string[];
|
|
9
10
|
/** Page limit (default 100) */
|
|
@@ -256,7 +256,7 @@ export declare class CreditsClient {
|
|
|
256
256
|
* companyId: "company_id",
|
|
257
257
|
* creditId: "credit_id",
|
|
258
258
|
* quantity: 1000000,
|
|
259
|
-
* reason: "
|
|
259
|
+
* reason: "adjustment"
|
|
260
260
|
* })
|
|
261
261
|
*/
|
|
262
262
|
grantBillingCreditsToCompany(request: Schematic.CreateCompanyCreditGrant, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.GrantBillingCreditsToCompanyResponse>;
|
|
@@ -431,6 +431,20 @@ export declare class CreditsClient {
|
|
|
431
431
|
*/
|
|
432
432
|
createBillingPlanCreditGrant(request: Schematic.CreateBillingPlanCreditGrantRequestBody, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.CreateBillingPlanCreditGrantResponse>;
|
|
433
433
|
private __createBillingPlanCreditGrant;
|
|
434
|
+
/**
|
|
435
|
+
* @param {string} plan_grant_id - plan_grant_id
|
|
436
|
+
* @param {CreditsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
437
|
+
*
|
|
438
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
439
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
440
|
+
* @throws {@link Schematic.NotFoundError}
|
|
441
|
+
* @throws {@link Schematic.InternalServerError}
|
|
442
|
+
*
|
|
443
|
+
* @example
|
|
444
|
+
* await client.credits.getSingleBillingPlanCreditGrant("plan_grant_id")
|
|
445
|
+
*/
|
|
446
|
+
getSingleBillingPlanCreditGrant(plan_grant_id: string, requestOptions?: CreditsClient.RequestOptions): core.HttpResponsePromise<Schematic.GetSingleBillingPlanCreditGrantResponse>;
|
|
447
|
+
private __getSingleBillingPlanCreditGrant;
|
|
434
448
|
/**
|
|
435
449
|
* @param {string} plan_grant_id - plan_grant_id
|
|
436
450
|
* @param {Schematic.UpdateBillingPlanCreditGrantRequestBody} request
|
|
@@ -10,6 +10,7 @@ import type * as Schematic from "../../../../index";
|
|
|
10
10
|
export interface CreateBillingCreditRequestBody {
|
|
11
11
|
burnStrategy?: Schematic.BillingCreditBurnStrategy;
|
|
12
12
|
currency: string;
|
|
13
|
+
currencyPrices?: Schematic.CreditCurrencyPriceRequestBody[];
|
|
13
14
|
defaultExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
14
15
|
defaultExpiryUnitCount?: number;
|
|
15
16
|
defaultRolloverPolicy?: Schematic.BillingCreditRolloverPolicy;
|
|
@@ -5,13 +5,14 @@ import type * as Schematic from "../../../../index";
|
|
|
5
5
|
* companyId: "company_id",
|
|
6
6
|
* creditId: "credit_id",
|
|
7
7
|
* quantity: 1000000,
|
|
8
|
-
* reason: "
|
|
8
|
+
* reason: "adjustment"
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
11
|
export interface CreateCompanyCreditGrant {
|
|
12
12
|
billingPeriodsCount?: number;
|
|
13
13
|
companyId: string;
|
|
14
14
|
creditId: string;
|
|
15
|
+
currency?: string;
|
|
15
16
|
expiresAt?: Date;
|
|
16
17
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
17
18
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
@@ -13,6 +13,7 @@ export interface CreateCreditBundleRequestBody {
|
|
|
13
13
|
bundleType?: Schematic.BillingCreditBundleType;
|
|
14
14
|
creditId: string;
|
|
15
15
|
currency: string;
|
|
16
|
+
currencyPrices?: Schematic.CreditBundleCurrencyPriceRequestBody[];
|
|
16
17
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
17
18
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
18
19
|
expiryUnitCount?: number;
|
|
@@ -8,6 +8,7 @@ import type * as Schematic from "../../../../index";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface UpdateBillingCreditRequestBody {
|
|
10
10
|
burnStrategy?: Schematic.BillingCreditBurnStrategy;
|
|
11
|
+
currencyPrices?: Schematic.CreditCurrencyPriceRequestBody[];
|
|
11
12
|
defaultExpiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
12
13
|
defaultExpiryUnitCount?: number;
|
|
13
14
|
defaultRolloverPolicy?: Schematic.BillingCreditRolloverPolicy;
|
package/dist/api/resources/credits/client/requests/UpdateCreditBundleDetailsRequestBody.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type * as Schematic from "../../../../index";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface UpdateCreditBundleDetailsRequestBody {
|
|
10
10
|
bundleName: string;
|
|
11
|
+
currencyPrices?: Schematic.CreditBundleCurrencyPriceRequestBody[];
|
|
11
12
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
12
13
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
13
14
|
expiryUnitCount?: number;
|
|
@@ -22,6 +22,7 @@ export * from "./GetCreditBundleResponse";
|
|
|
22
22
|
export * from "./GetEnrichedCreditLedgerParams";
|
|
23
23
|
export * from "./GetEnrichedCreditLedgerResponse";
|
|
24
24
|
export * from "./GetSingleBillingCreditResponse";
|
|
25
|
+
export * from "./GetSingleBillingPlanCreditGrantResponse";
|
|
25
26
|
export * from "./GrantBillingCreditsToCompanyResponse";
|
|
26
27
|
export * from "./ListBillingCreditsParams";
|
|
27
28
|
export * from "./ListBillingCreditsResponse";
|
|
@@ -353,6 +353,27 @@ export declare class EntitlementsClient {
|
|
|
353
353
|
*/
|
|
354
354
|
deletePlanEntitlement(plan_entitlement_id: string, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.DeletePlanEntitlementResponse>;
|
|
355
355
|
private __deletePlanEntitlement;
|
|
356
|
+
/**
|
|
357
|
+
* @param {Schematic.CreateBillingLinkedPlanEntitlementRequestBody} request
|
|
358
|
+
* @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
359
|
+
*
|
|
360
|
+
* @throws {@link Schematic.BadRequestError}
|
|
361
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
362
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
363
|
+
* @throws {@link Schematic.NotFoundError}
|
|
364
|
+
* @throws {@link Schematic.InternalServerError}
|
|
365
|
+
*
|
|
366
|
+
* @example
|
|
367
|
+
* await client.entitlements.upsertPlanEntitlementForBillingProduct({
|
|
368
|
+
* billingProvider: "orb",
|
|
369
|
+
* externalResourceId: "external_resource_id",
|
|
370
|
+
* featureId: "feature_id",
|
|
371
|
+
* planId: "plan_id",
|
|
372
|
+
* valueType: "boolean"
|
|
373
|
+
* })
|
|
374
|
+
*/
|
|
375
|
+
upsertPlanEntitlementForBillingProduct(request: Schematic.CreateBillingLinkedPlanEntitlementRequestBody, requestOptions?: EntitlementsClient.RequestOptions): core.HttpResponsePromise<Schematic.UpsertPlanEntitlementForBillingProductResponse>;
|
|
376
|
+
private __upsertPlanEntitlementForBillingProduct;
|
|
356
377
|
/**
|
|
357
378
|
* @param {Schematic.CountPlanEntitlementsRequest} request
|
|
358
379
|
* @param {EntitlementsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* billingProvider: "orb",
|
|
6
|
+
* externalResourceId: "external_resource_id",
|
|
7
|
+
* featureId: "feature_id",
|
|
8
|
+
* planId: "plan_id",
|
|
9
|
+
* valueType: "boolean"
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface CreateBillingLinkedPlanEntitlementRequestBody {
|
|
13
|
+
billingProductId?: string;
|
|
14
|
+
billingProvider: Schematic.BillingProviderType;
|
|
15
|
+
billingThreshold?: number;
|
|
16
|
+
creditConsumptionRate?: number;
|
|
17
|
+
currency?: string;
|
|
18
|
+
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
19
|
+
externalResourceId: string;
|
|
20
|
+
featureId: string;
|
|
21
|
+
metricPeriod?: Schematic.CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriod;
|
|
22
|
+
metricPeriodMonthReset?: Schematic.CreateBillingLinkedPlanEntitlementRequestBodyMetricPeriodMonthReset;
|
|
23
|
+
monthlyMeteredPriceId?: string;
|
|
24
|
+
monthlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
25
|
+
monthlyUnitPrice?: number;
|
|
26
|
+
monthlyUnitPriceDecimal?: string;
|
|
27
|
+
overageBillingProductId?: string;
|
|
28
|
+
planId: string;
|
|
29
|
+
planVersionId?: string;
|
|
30
|
+
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
31
|
+
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
32
|
+
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
33
|
+
softLimit?: number;
|
|
34
|
+
tierMode?: Schematic.BillingTiersMode;
|
|
35
|
+
valueBool?: boolean;
|
|
36
|
+
valueCreditId?: string;
|
|
37
|
+
valueNumeric?: number;
|
|
38
|
+
valueTraitId?: string;
|
|
39
|
+
valueType: Schematic.EntitlementValueType;
|
|
40
|
+
yearlyMeteredPriceId?: string;
|
|
41
|
+
yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
42
|
+
yearlyUnitPrice?: number;
|
|
43
|
+
yearlyUnitPriceDecimal?: string;
|
|
44
|
+
}
|
package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export interface CreatePlanEntitlementRequestBody {
|
|
|
12
12
|
billingThreshold?: number;
|
|
13
13
|
creditConsumptionRate?: number;
|
|
14
14
|
currency?: string;
|
|
15
|
+
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
15
16
|
featureId: string;
|
|
16
17
|
metricPeriod?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriod;
|
|
17
18
|
metricPeriodMonthReset?: Schematic.CreatePlanEntitlementRequestBodyMetricPeriodMonthReset;
|