@schematichq/schematic-typescript-node 1.5.5 → 1.5.7
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 +2 -0
- package/dist/api/resources/accounts/client/requests/CountAccountMembersRequest.d.ts +4 -0
- package/dist/api/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/api/resources/accounts/client/requests/ListAccountMembersRequest.d.ts +4 -0
- package/dist/api/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -0
- package/dist/api/resources/accounts/types/CountAccountMembersParams.d.ts +3 -0
- package/dist/api/resources/accounts/types/ListAccountMembersParams.d.ts +3 -0
- package/dist/api/resources/billing/client/Client.d.ts +2 -0
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +3 -0
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +3 -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/catalogs/client/Client.d.ts +0 -1
- package/dist/api/resources/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -2
- package/dist/api/resources/checkout/client/Client.d.ts +35 -0
- package/dist/api/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +17 -0
- package/dist/api/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/api/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +6 -0
- package/dist/api/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +6 -0
- package/dist/api/resources/checkout/types/index.d.ts +2 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +38 -0
- package/dist/api/resources/entitlements/client/requests/GetUserUsageByCompanyRequest.d.ts +19 -0
- package/dist/api/resources/entitlements/client/requests/GetUserUsageDetailRequest.d.ts +19 -0
- package/dist/api/resources/entitlements/client/requests/index.d.ts +2 -0
- package/dist/api/resources/entitlements/types/GetUserUsageByCompanyParams.d.ts +13 -0
- package/dist/api/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/GetUserUsageDetailParams.d.ts +13 -0
- package/dist/api/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +6 -0
- package/dist/api/resources/entitlements/types/index.d.ts +4 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/licenses/client/Client.d.ts +69 -0
- package/dist/api/resources/licenses/client/index.d.ts +1 -0
- package/dist/api/resources/licenses/client/requests/CountLicensesRequest.d.ts +19 -0
- package/dist/api/resources/licenses/client/requests/ListLicensesRequest.d.ts +19 -0
- package/dist/api/resources/licenses/client/requests/index.d.ts +2 -0
- package/dist/api/resources/licenses/exports.d.ts +2 -0
- package/dist/api/resources/licenses/index.d.ts +2 -0
- package/dist/api/resources/licenses/types/CountLicensesParams.d.ts +12 -0
- package/dist/api/resources/licenses/types/CountLicensesResponse.d.ts +6 -0
- package/dist/api/resources/licenses/types/GetSingleLicenseResponse.d.ts +6 -0
- package/dist/api/resources/licenses/types/ListLicensesParams.d.ts +12 -0
- package/dist/api/resources/licenses/types/ListLicensesResponse.d.ts +6 -0
- package/dist/api/resources/licenses/types/index.d.ts +5 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +20 -0
- package/dist/api/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +16 -0
- package/dist/api/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/api/resources/planmigrations/types/PreviewMigrationResponse.d.ts +6 -0
- package/dist/api/resources/planmigrations/types/index.d.ts +1 -0
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +6 -0
- package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +2 -0
- package/dist/api/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/api/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +4 -0
- package/dist/api/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
- package/dist/api/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
- package/dist/api/types/CatalogResponseData.d.ts +0 -1
- package/dist/api/types/CompanyBillingAddressView.d.ts +8 -0
- package/dist/api/types/CompanyBillingCheckoutSettings.d.ts +5 -0
- package/dist/api/types/CompanyBillingDetailsResponseData.d.ts +9 -0
- package/dist/api/types/CompanyBillingDetailsView.d.ts +9 -0
- package/dist/api/types/CompanyPlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +2 -2
- package/dist/api/types/CompanyTaxIdView.d.ts +7 -0
- package/dist/api/types/ComponentCheckoutSettings.d.ts +2 -0
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +4 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -0
- package/dist/api/types/CreditsAutoTopupSuccess.d.ts +7 -0
- package/dist/api/types/CreditsCreditPurchaseSuccess.d.ts +9 -0
- package/dist/api/types/CreditsWebhookCompanySummary.d.ts +4 -0
- package/dist/api/types/CreditsWebhookCreditSummary.d.ts +4 -0
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/api/types/CustomerBillingAddress.d.ts +8 -0
- package/dist/api/types/FeatureDetailResponseData.d.ts +6 -0
- package/dist/api/types/FeatureInPlanResponseData.d.ts +4 -0
- package/dist/api/types/FeatureResponseData.d.ts +4 -0
- package/dist/api/types/FeatureType.d.ts +1 -0
- package/dist/api/types/FeatureView.d.ts +2 -0
- package/dist/api/types/LicenseResponseData.d.ts +6 -0
- package/dist/api/types/PlanCreditGrantScaling.d.ts +5 -0
- package/dist/api/types/PlanCreditGrantView.d.ts +2 -0
- package/dist/api/types/PlanDetailResponseData.d.ts +2 -2
- package/dist/api/types/PlanGroupPlanDetailResponseData.d.ts +2 -2
- package/dist/api/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +8 -0
- package/dist/api/types/PlanVersionMigrationPreviewResponseData.d.ts +4 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +2 -2
- package/dist/api/types/TaxIdInput.d.ts +5 -0
- package/dist/api/types/TaxIdType.d.ts +41 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +4 -0
- package/dist/api/types/UserCreditUsageResponseData.d.ts +14 -0
- package/dist/api/types/UserDailyCreditPointResponseData.d.ts +6 -0
- package/dist/api/types/UserDailyUsagePointResponseData.d.ts +8 -0
- package/dist/api/types/UserFeatureUsageResponseData.d.ts +14 -0
- package/dist/api/types/UserUsageByCompanyResponseData.d.ts +11 -0
- package/dist/api/types/UserUsageDetailResponseData.d.ts +16 -0
- package/dist/api/types/WebhookRequestType.d.ts +2 -0
- package/dist/api/types/index.d.ts +22 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/accounts/client/requests/CreateApiKeyRequestBody.d.ts +1 -0
- package/dist/serialization/resources/accounts/client/requests/UpdateApiKeyRequestBody.d.ts +1 -0
- package/dist/serialization/resources/accounts/types/CountAccountMembersParams.d.ts +2 -0
- package/dist/serialization/resources/accounts/types/ListAccountMembersParams.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/catalogs/client/requests/CreateCatalogRequestBody.d.ts +0 -1
- package/dist/serialization/resources/checkout/client/requests/UpdateCompanyBillingDetailsRequestBody.d.ts +16 -0
- package/dist/serialization/resources/checkout/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/checkout/types/GetCompanyBillingDetailsResponse.d.ts +11 -0
- package/dist/serialization/resources/checkout/types/UpdateCompanyBillingDetailsResponse.d.ts +11 -0
- package/dist/serialization/resources/checkout/types/index.d.ts +2 -0
- package/dist/serialization/resources/entitlements/types/GetUserUsageByCompanyParams.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetUserUsageByCompanyResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetUserUsageDetailParams.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/GetUserUsageDetailResponse.d.ts +12 -0
- package/dist/serialization/resources/entitlements/types/index.d.ts +4 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/licenses/index.d.ts +1 -0
- package/dist/serialization/resources/licenses/types/CountLicensesParams.d.ts +13 -0
- package/dist/serialization/resources/licenses/types/CountLicensesResponse.d.ts +12 -0
- package/dist/serialization/resources/licenses/types/GetSingleLicenseResponse.d.ts +11 -0
- package/dist/serialization/resources/licenses/types/ListLicensesParams.d.ts +13 -0
- package/dist/serialization/resources/licenses/types/ListLicensesResponse.d.ts +12 -0
- package/dist/serialization/resources/licenses/types/index.d.ts +5 -0
- package/dist/serialization/resources/planmigrations/client/requests/PreviewMigrationRequestBody.d.ts +13 -0
- package/dist/serialization/resources/planmigrations/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/planmigrations/types/PreviewMigrationResponse.d.ts +11 -0
- package/dist/serialization/resources/planmigrations/types/index.d.ts +1 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +8 -0
- package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -0
- package/dist/serialization/types/ApiKeyCreateResponseData.d.ts +1 -0
- package/dist/serialization/types/ApiKeyResponseData.d.ts +1 -0
- package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
- package/dist/serialization/types/BillingPlanCreditGrantResponseData.d.ts +3 -0
- package/dist/serialization/types/CatalogConfigOrderedEntitlement.d.ts +1 -1
- package/dist/serialization/types/CatalogConfigOrderedEntitlementResponseData.d.ts +1 -1
- package/dist/serialization/types/CatalogResponseData.d.ts +0 -1
- package/dist/serialization/types/CompanyBillingAddressView.d.ts +14 -0
- package/dist/serialization/types/CompanyBillingCheckoutSettings.d.ts +11 -0
- package/dist/serialization/types/CompanyBillingDetailsResponseData.d.ts +18 -0
- package/dist/serialization/types/CompanyBillingDetailsView.d.ts +18 -0
- package/dist/serialization/types/CompanyPlanCreditGrantView.d.ts +3 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/CompanyTaxIdView.d.ts +13 -0
- package/dist/serialization/types/ComponentCheckoutSettings.d.ts +2 -0
- package/dist/serialization/types/CreateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +2 -0
- package/dist/serialization/types/CreditsAutoTopupSuccess.d.ts +14 -0
- package/dist/serialization/types/CreditsCreditPurchaseSuccess.d.ts +16 -0
- package/dist/serialization/types/CreditsWebhookCompanySummary.d.ts +10 -0
- package/dist/serialization/types/CreditsWebhookCreditSummary.d.ts +10 -0
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +1 -0
- package/dist/serialization/types/CustomerBillingAddress.d.ts +14 -0
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +4 -0
- package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureType.d.ts +1 -1
- package/dist/serialization/types/FeatureView.d.ts +3 -0
- package/dist/serialization/types/LicenseResponseData.d.ts +12 -0
- package/dist/serialization/types/PlanCreditGrantScaling.d.ts +7 -0
- package/dist/serialization/types/PlanCreditGrantView.d.ts +3 -0
- package/dist/serialization/types/PlanDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/PlanGroupPlanDetailResponseData.d.ts +1 -1
- package/dist/serialization/types/PlanVersionMigrationPreviewCompanyResponseData.d.ts +14 -0
- package/dist/serialization/types/PlanVersionMigrationPreviewResponseData.d.ts +10 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +1 -1
- package/dist/serialization/types/TaxIdInput.d.ts +11 -0
- package/dist/serialization/types/TaxIdType.d.ts +7 -0
- package/dist/serialization/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +3 -0
- package/dist/serialization/types/UserCreditUsageResponseData.d.ts +15 -0
- package/dist/serialization/types/UserDailyCreditPointResponseData.d.ts +10 -0
- package/dist/serialization/types/UserDailyUsagePointResponseData.d.ts +12 -0
- package/dist/serialization/types/UserFeatureUsageResponseData.d.ts +16 -0
- package/dist/serialization/types/UserUsageByCompanyResponseData.d.ts +14 -0
- package/dist/serialization/types/UserUsageDetailResponseData.d.ts +20 -0
- package/dist/serialization/types/WebhookRequestType.d.ts +1 -1
- package/dist/serialization/types/index.d.ts +22 -0
- package/dist/wasm/rulesengine.js +1 -1
- package/package.json +1 -1
|
@@ -162,4 +162,24 @@ export declare class PlanmigrationsClient {
|
|
|
162
162
|
*/
|
|
163
163
|
countMigrations(request?: Schematic.CountMigrationsRequest, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.CountMigrationsResponse>;
|
|
164
164
|
private __countMigrations;
|
|
165
|
+
/**
|
|
166
|
+
* @param {Schematic.PreviewMigrationRequestBody} request
|
|
167
|
+
* @param {PlanmigrationsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
|
+
*
|
|
169
|
+
* @throws {@link Schematic.BadRequestError}
|
|
170
|
+
* @throws {@link Schematic.UnauthorizedError}
|
|
171
|
+
* @throws {@link Schematic.ForbiddenError}
|
|
172
|
+
* @throws {@link Schematic.NotFoundError}
|
|
173
|
+
* @throws {@link Schematic.InternalServerError}
|
|
174
|
+
*
|
|
175
|
+
* @example
|
|
176
|
+
* await client.planmigrations.previewMigration({
|
|
177
|
+
* companyIds: ["company_ids"],
|
|
178
|
+
* planId: "plan_id",
|
|
179
|
+
* planVersionIdTo: "plan_version_id_to",
|
|
180
|
+
* targetPlanType: "plan"
|
|
181
|
+
* })
|
|
182
|
+
*/
|
|
183
|
+
previewMigration(request: Schematic.PreviewMigrationRequestBody, requestOptions?: PlanmigrationsClient.RequestOptions): core.HttpResponsePromise<Schematic.PreviewMigrationResponse>;
|
|
184
|
+
private __previewMigration;
|
|
165
185
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Schematic from "../../../../index";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* companyIds: ["company_ids"],
|
|
6
|
+
* planId: "plan_id",
|
|
7
|
+
* planVersionIdTo: "plan_version_id_to",
|
|
8
|
+
* targetPlanType: "plan"
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface PreviewMigrationRequestBody {
|
|
12
|
+
companyIds: string[];
|
|
13
|
+
planId: string;
|
|
14
|
+
planVersionIdTo: string;
|
|
15
|
+
targetPlanType: Schematic.PlanType;
|
|
16
|
+
}
|
|
@@ -3,4 +3,5 @@ export type { CountMigrationsRequest } from "./CountMigrationsRequest";
|
|
|
3
3
|
export type { CreateMigrationInput } from "./CreateMigrationInput";
|
|
4
4
|
export type { ListCompanyMigrationsRequest } from "./ListCompanyMigrationsRequest";
|
|
5
5
|
export type { ListMigrationsRequest } from "./ListMigrationsRequest";
|
|
6
|
+
export type { PreviewMigrationRequestBody } from "./PreviewMigrationRequestBody";
|
|
6
7
|
export type { RetryMigrationRequestBody } from "./RetryMigrationRequestBody";
|
|
@@ -8,5 +8,6 @@ export * from "./ListCompanyMigrationsParams";
|
|
|
8
8
|
export * from "./ListCompanyMigrationsResponse";
|
|
9
9
|
export * from "./ListMigrationsParams";
|
|
10
10
|
export * from "./ListMigrationsResponse";
|
|
11
|
+
export * from "./PreviewMigrationResponse";
|
|
11
12
|
export * from "./RetryCompanyMigrationResponse";
|
|
12
13
|
export * from "./RetryMigrationResponse";
|
|
@@ -8,9 +8,15 @@ import type * as Schematic from "../../../../index";
|
|
|
8
8
|
*/
|
|
9
9
|
export interface PublishPlanVersionRequestBody {
|
|
10
10
|
activationStrategy?: Schematic.CustomPlanActivationStrategy;
|
|
11
|
+
address?: Schematic.CustomerBillingAddress;
|
|
11
12
|
couponExternalId?: string;
|
|
13
|
+
customFieldValues?: Schematic.CheckoutFieldValue[];
|
|
12
14
|
customerEmail?: string;
|
|
13
15
|
daysUntilDue?: number;
|
|
14
16
|
excludedCompanyIds: string[];
|
|
15
17
|
migrationStrategy: Schematic.PlanVersionMigrationStrategy;
|
|
18
|
+
phone?: string;
|
|
19
|
+
/** Whether Stripe emails the invoice when it is finalized. Defaults to true. */
|
|
20
|
+
sendInvoice?: boolean;
|
|
21
|
+
taxId?: Schematic.TaxIdInput;
|
|
16
22
|
}
|
|
@@ -9,4 +9,6 @@ export interface RetryCustomPlanBillingRequestBody {
|
|
|
9
9
|
activationStrategy?: Schematic.CustomPlanActivationStrategy;
|
|
10
10
|
customerEmail: string;
|
|
11
11
|
daysUntilDue?: number;
|
|
12
|
+
/** Whether Stripe emails the invoice when it is finalized. Defaults to true. */
|
|
13
|
+
sendInvoice?: boolean;
|
|
12
14
|
}
|
|
@@ -2,6 +2,7 @@ export declare const BillingCreditGrantZeroedOutReason: {
|
|
|
2
2
|
readonly CustomerArchived: "customer_archived";
|
|
3
3
|
readonly Expired: "expired";
|
|
4
4
|
readonly IntegrationUninstalled: "integration_uninstalled";
|
|
5
|
+
readonly LicenseRetired: "license_retired";
|
|
5
6
|
readonly Manual: "manual";
|
|
6
7
|
readonly PlanChange: "plan_change";
|
|
7
8
|
readonly PlanPeriodReset: "plan_period_reset";
|
|
@@ -28,6 +28,8 @@ export interface BillingPlanCreditGrantResponseData {
|
|
|
28
28
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
29
29
|
expiryUnitCount?: number;
|
|
30
30
|
id: string;
|
|
31
|
+
/** The license whose quantity scales this grant. Set only when scaling is per_license. */
|
|
32
|
+
licenseId?: string;
|
|
31
33
|
plan?: Schematic.PreviewObjectResponseData;
|
|
32
34
|
planId: string;
|
|
33
35
|
/** Use plan.name from the nested plan object instead */
|
|
@@ -38,5 +40,7 @@ export interface BillingPlanCreditGrantResponseData {
|
|
|
38
40
|
resetType?: Schematic.BillingPlanCreditGrantResetType;
|
|
39
41
|
/** Percentage of unused credits that carry over when this grant resets. Only meaningful when reset_type is plan_period. */
|
|
40
42
|
rolloverPercentage: number;
|
|
43
|
+
/** Whether the grant is a fixed amount per company, or issued once per license the company holds. */
|
|
44
|
+
scaling: Schematic.PlanCreditGrantScaling;
|
|
41
45
|
updatedAt: Date;
|
|
42
46
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CompanyBillingDetailsResponseData {
|
|
3
|
+
address?: Schematic.CompanyBillingAddressView;
|
|
4
|
+
checkoutSettings: Schematic.CompanyBillingCheckoutSettings;
|
|
5
|
+
customFields: Schematic.CheckoutFieldWithValue[];
|
|
6
|
+
email?: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
taxIds: Schematic.CompanyTaxIdView[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CompanyBillingDetailsView {
|
|
3
|
+
address?: Schematic.CompanyBillingAddressView;
|
|
4
|
+
checkoutSettings: Schematic.CompanyBillingCheckoutSettings;
|
|
5
|
+
customFields: Schematic.CheckoutFieldWithValue[];
|
|
6
|
+
email?: string;
|
|
7
|
+
phone?: string;
|
|
8
|
+
taxIds: Schematic.CompanyTaxIdView[];
|
|
9
|
+
}
|
|
@@ -28,6 +28,7 @@ export interface CompanyPlanCreditGrantView {
|
|
|
28
28
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
29
29
|
expiryUnitCount?: number;
|
|
30
30
|
id: string;
|
|
31
|
+
licenseId?: string;
|
|
31
32
|
plan?: Schematic.GenericPreviewObject;
|
|
32
33
|
planId: string;
|
|
33
34
|
planVersionId?: string;
|
|
@@ -37,6 +38,7 @@ export interface CompanyPlanCreditGrantView {
|
|
|
37
38
|
resetStart?: Schematic.BillingPlanCreditGrantResetStart;
|
|
38
39
|
resetType: Schematic.BillingPlanCreditGrantResetType;
|
|
39
40
|
rolloverPercentage: number;
|
|
41
|
+
scaling: Schematic.PlanCreditGrantScaling;
|
|
40
42
|
/** Deprecated field, will be removed in the future. Use Credit.SingularName instead. */
|
|
41
43
|
singularName?: string;
|
|
42
44
|
updatedAt: Date;
|
|
@@ -32,8 +32,8 @@ export interface CompanyPlanDetailResponseData {
|
|
|
32
32
|
invalidReason?: Schematic.CompanyPlanInvalidReason;
|
|
33
33
|
isCustom: boolean;
|
|
34
34
|
isDefault: boolean;
|
|
35
|
-
/** Deprecated:
|
|
36
|
-
isFree
|
|
35
|
+
/** Deprecated: reports the plan's charge type, not its price. Read the plan's prices to tell whether it costs anything, or billing_strategy to tell how it is billed. */
|
|
36
|
+
isFree?: boolean;
|
|
37
37
|
isTrialable: boolean;
|
|
38
38
|
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
39
39
|
name: string;
|
|
@@ -17,6 +17,8 @@ export interface CreateBillingPlanCreditGrantRequestBody {
|
|
|
17
17
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
18
18
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
19
19
|
expiryUnitCount?: number;
|
|
20
|
+
/** The license whose quantity scales this grant. Required when scaling is per_license. */
|
|
21
|
+
licenseId?: string;
|
|
20
22
|
planId: string;
|
|
21
23
|
planVersionId?: string;
|
|
22
24
|
resetCadence: Schematic.BillingPlanCreditGrantResetCadence;
|
|
@@ -24,4 +26,6 @@ export interface CreateBillingPlanCreditGrantRequestBody {
|
|
|
24
26
|
resetType?: Schematic.BillingPlanCreditGrantResetType;
|
|
25
27
|
/** Percentage of unused credits that carry over when this grant resets. Only applies when reset_type is plan_period. Rolled-over credits expire at the next reset and are not rolled again. Defaults to 0. */
|
|
26
28
|
rolloverPercentage?: number;
|
|
29
|
+
/** Whether the grant is a fixed amount per company, or issued once per license the company holds. Defaults to fixed. */
|
|
30
|
+
scaling?: Schematic.PlanCreditGrantScaling;
|
|
27
31
|
}
|
|
@@ -31,6 +31,7 @@ export interface CreateEntitlementInBundleRequestBody {
|
|
|
31
31
|
valueNumeric?: number;
|
|
32
32
|
valueTraitId?: string;
|
|
33
33
|
valueType: Schematic.EntitlementValueType;
|
|
34
|
+
warningTiers?: Schematic.WarningTierRequestBody[];
|
|
34
35
|
yearlyMeteredPriceId?: string;
|
|
35
36
|
yearlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
36
37
|
yearlyUnitPrice?: number;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CreditsCreditPurchaseSuccess {
|
|
3
|
+
bundleId: string;
|
|
4
|
+
bundleName: string;
|
|
5
|
+
company?: Schematic.CreditsWebhookCompanySummary;
|
|
6
|
+
credit?: Schematic.CreditsWebhookCreditSummary;
|
|
7
|
+
grantIds: string[];
|
|
8
|
+
quantity: number;
|
|
9
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type * as Schematic from "../index";
|
|
2
2
|
export interface FeatureDetailResponseData {
|
|
3
3
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
4
|
+
/** The billing provider product that sells this feature in the current environment. Set for license features once they have been priced in a plan; a feature priced in several environments has a different product in each. */
|
|
5
|
+
billingProduct?: Schematic.BillingProductResponseData;
|
|
4
6
|
createdAt: Date;
|
|
5
7
|
description: string;
|
|
6
8
|
eventSubtype?: string;
|
|
@@ -9,6 +11,8 @@ export interface FeatureDetailResponseData {
|
|
|
9
11
|
flags: Schematic.FlagDetailResponseData[];
|
|
10
12
|
icon: string;
|
|
11
13
|
id: string;
|
|
14
|
+
/** The license sold through this feature. Set only on features of type license, and created automatically with them. */
|
|
15
|
+
licenseId?: string;
|
|
12
16
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
13
17
|
maintainer?: Schematic.AccountMemberResponseData;
|
|
14
18
|
maintainerAccountMemberId?: string;
|
|
@@ -19,4 +23,6 @@ export interface FeatureDetailResponseData {
|
|
|
19
23
|
trait?: Schematic.EntityTraitDefinitionResponseData;
|
|
20
24
|
traitId?: string;
|
|
21
25
|
updatedAt: Date;
|
|
26
|
+
/** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
|
|
27
|
+
usageLimitTraitId?: string;
|
|
22
28
|
}
|
|
@@ -9,6 +9,8 @@ export interface FeatureInPlanResponseData {
|
|
|
9
9
|
flags: Schematic.FlagInPlanResponseData[];
|
|
10
10
|
icon: string;
|
|
11
11
|
id: string;
|
|
12
|
+
/** The license sold through this feature. Set only on features of type license, and created automatically with them. */
|
|
13
|
+
licenseId?: string;
|
|
12
14
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
13
15
|
maintainerAccountMemberId?: string;
|
|
14
16
|
name: string;
|
|
@@ -18,4 +20,6 @@ export interface FeatureInPlanResponseData {
|
|
|
18
20
|
trait?: Schematic.EntityTraitDefinitionResponseData;
|
|
19
21
|
traitId?: string;
|
|
20
22
|
updatedAt: Date;
|
|
23
|
+
/** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
|
|
24
|
+
usageLimitTraitId?: string;
|
|
21
25
|
}
|
|
@@ -6,6 +6,8 @@ export interface FeatureResponseData {
|
|
|
6
6
|
featureType: Schematic.FeatureType;
|
|
7
7
|
icon: string;
|
|
8
8
|
id: string;
|
|
9
|
+
/** The license sold through this feature. Set only on features of type license, and created automatically with them. */
|
|
10
|
+
licenseId?: string;
|
|
9
11
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
10
12
|
maintainerAccountMemberId?: string;
|
|
11
13
|
name: string;
|
|
@@ -13,4 +15,6 @@ export interface FeatureResponseData {
|
|
|
13
15
|
singularName?: string;
|
|
14
16
|
traitId?: string;
|
|
15
17
|
updatedAt: Date;
|
|
18
|
+
/** Set when the feature carries a pay-in-advance quantity. Provisioned lazily for other feature types, and at creation for license features. */
|
|
19
|
+
usageLimitTraitId?: string;
|
|
16
20
|
}
|
|
@@ -2,6 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface FeatureView {
|
|
3
3
|
accountId: string;
|
|
4
4
|
billingLinkedResource?: Schematic.BillingLinkedResourceResponseData;
|
|
5
|
+
billingProduct?: Schematic.BillingProductResponseData;
|
|
5
6
|
createdAt: Date;
|
|
6
7
|
description: string;
|
|
7
8
|
eventSubtype?: string;
|
|
@@ -10,6 +11,7 @@ export interface FeatureView {
|
|
|
10
11
|
flags: Schematic.FlagView[];
|
|
11
12
|
icon: string;
|
|
12
13
|
id: string;
|
|
14
|
+
licenseId?: string;
|
|
13
15
|
lifecyclePhase?: Schematic.FeatureLifecyclePhase;
|
|
14
16
|
name: string;
|
|
15
17
|
plans: Schematic.PreviewObject[];
|
|
@@ -25,6 +25,7 @@ export interface PlanCreditGrantView {
|
|
|
25
25
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
26
26
|
expiryUnitCount?: number;
|
|
27
27
|
id: string;
|
|
28
|
+
licenseId?: string;
|
|
28
29
|
plan?: Schematic.GenericPreviewObject;
|
|
29
30
|
planId: string;
|
|
30
31
|
planVersionId?: string;
|
|
@@ -34,6 +35,7 @@ export interface PlanCreditGrantView {
|
|
|
34
35
|
resetStart?: Schematic.BillingPlanCreditGrantResetStart;
|
|
35
36
|
resetType: Schematic.BillingPlanCreditGrantResetType;
|
|
36
37
|
rolloverPercentage: number;
|
|
38
|
+
scaling: Schematic.PlanCreditGrantScaling;
|
|
37
39
|
/** Deprecated field, will be removed in the future. Use Credit.SingularName instead. */
|
|
38
40
|
singularName?: string;
|
|
39
41
|
updatedAt: Date;
|
|
@@ -24,8 +24,8 @@ export interface PlanDetailResponseData {
|
|
|
24
24
|
id: string;
|
|
25
25
|
includedCreditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
|
|
26
26
|
isDefault: boolean;
|
|
27
|
-
/** Deprecated:
|
|
28
|
-
isFree
|
|
27
|
+
/** Deprecated: reports the plan's charge type, not its price. Read the plan's prices to tell whether it costs anything, or billing_strategy to tell how it is billed. */
|
|
28
|
+
isFree?: boolean;
|
|
29
29
|
isTrialable: boolean;
|
|
30
30
|
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
31
31
|
name: string;
|
|
@@ -28,8 +28,8 @@ export interface PlanGroupPlanDetailResponseData {
|
|
|
28
28
|
includedCreditGrants?: Schematic.BillingPlanCreditGrantResponseData[];
|
|
29
29
|
isCustom: boolean;
|
|
30
30
|
isDefault: boolean;
|
|
31
|
-
/** Deprecated:
|
|
32
|
-
isFree
|
|
31
|
+
/** Deprecated: reports the plan's charge type, not its price. Read the plan's prices to tell whether it costs anything, or billing_strategy to tell how it is billed. */
|
|
32
|
+
isFree?: boolean;
|
|
33
33
|
isTrialable: boolean;
|
|
34
34
|
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
35
35
|
name: string;
|
|
@@ -29,8 +29,8 @@ export interface PlanViewPublicResponseData {
|
|
|
29
29
|
includedCreditGrants: Schematic.PlanCreditGrantView[];
|
|
30
30
|
isCustom: boolean;
|
|
31
31
|
isDefault: boolean;
|
|
32
|
-
/** Deprecated:
|
|
33
|
-
isFree
|
|
32
|
+
/** Deprecated: reports the plan's charge type, not its price. Read the plan's prices to tell whether it costs anything, or billing_strategy to tell how it is billed. */
|
|
33
|
+
isFree?: boolean;
|
|
34
34
|
isTrialable: boolean;
|
|
35
35
|
monthlyPrice?: Schematic.BillingPriceResponseData;
|
|
36
36
|
name: string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
export declare const TaxIdType: {
|
|
2
|
+
readonly AeTrn: "ae_trn";
|
|
3
|
+
readonly AuAbn: "au_abn";
|
|
4
|
+
readonly AuArn: "au_arn";
|
|
5
|
+
readonly BrCnpj: "br_cnpj";
|
|
6
|
+
readonly BrCpf: "br_cpf";
|
|
7
|
+
readonly CaBn: "ca_bn";
|
|
8
|
+
readonly CaGstHst: "ca_gst_hst";
|
|
9
|
+
readonly CaPstBc: "ca_pst_bc";
|
|
10
|
+
readonly CaPstMb: "ca_pst_mb";
|
|
11
|
+
readonly CaPstSk: "ca_pst_sk";
|
|
12
|
+
readonly CaQst: "ca_qst";
|
|
13
|
+
readonly ChUid: "ch_uid";
|
|
14
|
+
readonly ChVat: "ch_vat";
|
|
15
|
+
readonly EuVat: "eu_vat";
|
|
16
|
+
readonly GbVat: "gb_vat";
|
|
17
|
+
readonly HkBr: "hk_br";
|
|
18
|
+
readonly IdNpwp: "id_npwp";
|
|
19
|
+
readonly IlVat: "il_vat";
|
|
20
|
+
readonly InGst: "in_gst";
|
|
21
|
+
readonly JpCn: "jp_cn";
|
|
22
|
+
readonly JpRn: "jp_rn";
|
|
23
|
+
readonly JpTrn: "jp_trn";
|
|
24
|
+
readonly KrBrn: "kr_brn";
|
|
25
|
+
readonly MxRfc: "mx_rfc";
|
|
26
|
+
readonly MyFrp: "my_frp";
|
|
27
|
+
readonly MyItn: "my_itn";
|
|
28
|
+
readonly MySst: "my_sst";
|
|
29
|
+
readonly NoVat: "no_vat";
|
|
30
|
+
readonly NzGst: "nz_gst";
|
|
31
|
+
readonly PhTin: "ph_tin";
|
|
32
|
+
readonly SaVat: "sa_vat";
|
|
33
|
+
readonly SgGst: "sg_gst";
|
|
34
|
+
readonly SgUen: "sg_uen";
|
|
35
|
+
readonly ThVat: "th_vat";
|
|
36
|
+
readonly TrTin: "tr_tin";
|
|
37
|
+
readonly TwVat: "tw_vat";
|
|
38
|
+
readonly UsEin: "us_ein";
|
|
39
|
+
readonly ZaVat: "za_vat";
|
|
40
|
+
};
|
|
41
|
+
export type TaxIdType = (typeof TaxIdType)[keyof typeof TaxIdType];
|
|
@@ -16,9 +16,13 @@ export interface UpdateBillingPlanCreditGrantRequestBody {
|
|
|
16
16
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
17
17
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|
|
18
18
|
expiryUnitCount?: number;
|
|
19
|
+
/** The license whose quantity scales this grant. Cannot be changed after creation. */
|
|
20
|
+
licenseId?: string;
|
|
19
21
|
resetCadence: Schematic.BillingPlanCreditGrantResetCadence;
|
|
20
22
|
resetStart: Schematic.BillingPlanCreditGrantResetStart;
|
|
21
23
|
resetType?: Schematic.BillingPlanCreditGrantResetType;
|
|
22
24
|
/** Percentage of unused credits that carry over when this grant resets. Only applies when reset_type is plan_period. Rolled-over credits expire at the next reset and are not rolled again. */
|
|
23
25
|
rolloverPercentage?: number;
|
|
26
|
+
/** Whether the grant is a fixed amount per company, or issued once per license the company holds. Cannot be changed after creation. */
|
|
27
|
+
scaling?: Schematic.PlanCreditGrantScaling;
|
|
24
28
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface UserCreditUsageResponseData {
|
|
3
|
+
billingCreditId: string;
|
|
4
|
+
/** The display name of the credit type */
|
|
5
|
+
creditName: string;
|
|
6
|
+
/** The user's net track-driven consumption of the credit within the window (draws minus refunds) */
|
|
7
|
+
creditsUsed: number;
|
|
8
|
+
/** This row's fraction (0-1) of the company's total track-driven consumption of the credit within the window, including unattributed consumption */
|
|
9
|
+
share: number;
|
|
10
|
+
/** The user the consumption is attributed to; null for consumption from events sent without a user */
|
|
11
|
+
user?: Schematic.UserResponseData;
|
|
12
|
+
/** The user the consumption is attributed to; null for unattributed consumption */
|
|
13
|
+
userId?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface UserFeatureUsageResponseData {
|
|
3
|
+
feature?: Schematic.FeatureResponseData;
|
|
4
|
+
/** When the user last used the feature within the window */
|
|
5
|
+
lastSeen: Date;
|
|
6
|
+
/** This row's fraction (0-1) of the company's total usage of the feature within the window, including unattributed usage */
|
|
7
|
+
share: number;
|
|
8
|
+
/** The user the usage is attributed to; null for usage from events sent without a user */
|
|
9
|
+
user?: Schematic.UserResponseData;
|
|
10
|
+
/** The user the usage is attributed to; null for unattributed usage */
|
|
11
|
+
userId?: string;
|
|
12
|
+
/** The user's usage of the feature within the window */
|
|
13
|
+
value: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface UserUsageByCompanyResponseData {
|
|
3
|
+
/** Per-user net credit consumption within the window */
|
|
4
|
+
credits: Schematic.UserCreditUsageResponseData[];
|
|
5
|
+
/** End of the usage window (exclusive) */
|
|
6
|
+
endTime: Date;
|
|
7
|
+
/** Per-user, per-feature usage within the window; rows for a feature sum to the company total */
|
|
8
|
+
rows: Schematic.UserFeatureUsageResponseData[];
|
|
9
|
+
/** Start of the usage window */
|
|
10
|
+
startTime: Date;
|
|
11
|
+
}
|