@schematichq/schematic-typescript-node 1.5.9 → 1.5.10
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/BaseClient.d.ts +12 -0
- package/dist/Client.d.ts +3 -0
- package/dist/api/errors/BadRequestError.d.ts +1 -0
- package/dist/api/errors/ForbiddenError.d.ts +1 -0
- package/dist/api/errors/InternalServerError.d.ts +1 -0
- package/dist/api/errors/NotFoundError.d.ts +1 -0
- package/dist/api/errors/UnauthorizedError.d.ts +1 -0
- package/dist/api/resources/accesstokens/client/Client.d.ts +2 -0
- package/dist/api/resources/accounts/client/Client.d.ts +42 -0
- package/dist/api/resources/billing/client/Client.d.ts +48 -0
- package/dist/api/resources/catalogs/client/Client.d.ts +28 -0
- package/dist/api/resources/checkout/client/Client.d.ts +18 -0
- package/dist/api/resources/companies/client/Client.d.ts +86 -0
- package/dist/api/resources/components/client/Client.d.ts +16 -0
- package/dist/api/resources/componentspublic/client/Client.d.ts +2 -0
- package/dist/api/resources/credits/client/Client.d.ts +60 -0
- package/dist/api/resources/dataexports/client/Client.d.ts +8 -0
- package/dist/api/resources/entitlements/client/Client.d.ts +50 -0
- package/dist/api/resources/events/client/Client.d.ts +12 -0
- package/dist/api/resources/features/client/Client.d.ts +34 -0
- package/dist/api/resources/insights/client/Client.d.ts +12 -0
- package/dist/api/resources/integrationsapi/client/Client.d.ts +18 -0
- package/dist/api/resources/licenses/client/Client.d.ts +6 -0
- package/dist/api/resources/planbundle/client/Client.d.ts +6 -2
- package/dist/api/resources/planbundle/client/requests/CreateCustomPlanBundleRequestBody.d.ts +0 -1
- package/dist/api/resources/planbundle/client/requests/CreatePlanBundleRequestBody.d.ts +0 -1
- package/dist/api/resources/plangroups/client/Client.d.ts +6 -0
- package/dist/api/resources/planmigrations/client/Client.d.ts +18 -0
- package/dist/api/resources/plans/client/Client.d.ts +36 -3
- package/dist/api/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -2
- package/dist/api/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +1 -2
- package/dist/api/resources/scheduledcheckout/client/Client.d.ts +8 -0
- package/dist/api/resources/webhooks/client/Client.d.ts +20 -0
- package/dist/api/types/AuditLogResponseData.d.ts +1 -0
- package/dist/api/types/BillingPlanCreditGrantResponseData.d.ts +1 -1
- package/dist/api/types/ComponentHydrateResponseData.d.ts +1 -1
- package/dist/api/types/ComponentPreviewResponseData.d.ts +1 -1
- package/dist/api/types/CreateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
- package/dist/api/types/CreatePlanRequestBody.d.ts +1 -1
- package/dist/api/types/OnboardingRequirementView.d.ts +1 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +6 -0
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
- package/dist/api/types/StripeIntegrationConfig.d.ts +2 -0
- package/dist/api/types/UpcomingInvoiceResponseData.d.ts +23 -0
- package/dist/api/types/UpdateBillingPlanCreditGrantRequestBody.d.ts +1 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/core/fetcher/redactUrl.d.ts +2 -0
- package/dist/core/requestBody.d.ts +12 -0
- package/dist/core/runtime/index.d.ts +1 -1
- package/dist/core/runtime/runtime.d.ts +19 -0
- package/dist/errors/SchematicError.d.ts +1 -0
- package/dist/errors/SchematicTimeoutError.d.ts +2 -2
- package/dist/events.d.ts +6 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts +1 -1
- package/dist/serialization/resources/plans/client/requests/CreateCustomPlanRequestBody.d.ts +1 -1
- package/dist/serialization/types/AuditLogResponseData.d.ts +1 -0
- package/dist/serialization/types/ComponentHydrateResponseData.d.ts +2 -2
- package/dist/serialization/types/ComponentPreviewResponseData.d.ts +2 -1
- package/dist/serialization/types/CreateCustomPlanBundlePlanRequestBody.d.ts +1 -1
- package/dist/serialization/types/CreatePlanRequestBody.d.ts +1 -1
- package/dist/serialization/types/OnboardingRequirementView.d.ts +1 -0
- package/dist/serialization/types/PlanChangeResponseData.d.ts +4 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
- package/dist/serialization/types/StripeIntegrationConfig.d.ts +1 -0
- package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +30 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/serialization/resources/plans/client/requests/CreateBillingLinkedPlanRequestBody.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare const CreateBillingLinkedPlanRequestBody: core.serialization.Sche
|
|
|
8
8
|
export declare namespace CreateBillingLinkedPlanRequestBody {
|
|
9
9
|
interface Raw {
|
|
10
10
|
billing_provider: BillingProviderType.Raw;
|
|
11
|
-
description
|
|
11
|
+
description?: string | null;
|
|
12
12
|
external_resource_id: string;
|
|
13
13
|
external_resource_version?: string | null;
|
|
14
14
|
icon?: PlanIcon.Raw | null;
|
|
@@ -7,6 +7,7 @@ import { EnvironmentResponseData } from "./EnvironmentResponseData";
|
|
|
7
7
|
export declare const AuditLogResponseData: core.serialization.ObjectSchema<serializers.AuditLogResponseData.Raw, Schematic.AuditLogResponseData>;
|
|
8
8
|
export declare namespace AuditLogResponseData {
|
|
9
9
|
interface Raw {
|
|
10
|
+
account_member_id?: string | null;
|
|
10
11
|
actor_type: ActorType.Raw;
|
|
11
12
|
api_key?: ApiKeyResponseData.Raw | null;
|
|
12
13
|
api_key_id?: string | null;
|
|
@@ -13,10 +13,10 @@ import { ComponentDisplaySettings } from "./ComponentDisplaySettings";
|
|
|
13
13
|
import { ComponentResponseData } from "./ComponentResponseData";
|
|
14
14
|
import { CreditCompanyGrantView } from "./CreditCompanyGrantView";
|
|
15
15
|
import { FeatureUsageDetailResponseData } from "./FeatureUsageDetailResponseData";
|
|
16
|
-
import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
17
16
|
import { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
18
17
|
import { ScheduledDowngradeResponseData } from "./ScheduledDowngradeResponseData";
|
|
19
18
|
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
19
|
+
import { UpcomingInvoiceResponseData } from "./UpcomingInvoiceResponseData";
|
|
20
20
|
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
21
21
|
export declare const ComponentHydrateResponseData: core.serialization.ObjectSchema<serializers.ComponentHydrateResponseData.Raw, Schematic.ComponentHydrateResponseData>;
|
|
22
22
|
export declare namespace ComponentHydrateResponseData {
|
|
@@ -47,6 +47,6 @@ export declare namespace ComponentHydrateResponseData {
|
|
|
47
47
|
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
48
48
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
49
49
|
trial_payment_method_required?: boolean | null;
|
|
50
|
-
upcoming_invoice?:
|
|
50
|
+
upcoming_invoice?: UpcomingInvoiceResponseData.Raw | null;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -17,6 +17,7 @@ import { InvoiceResponseData } from "./InvoiceResponseData";
|
|
|
17
17
|
import { PlanDetailResponseData } from "./PlanDetailResponseData";
|
|
18
18
|
import { ScheduledDowngradeResponseData } from "./ScheduledDowngradeResponseData";
|
|
19
19
|
import { StripeEmbedInfo } from "./StripeEmbedInfo";
|
|
20
|
+
import { UpcomingInvoiceResponseData } from "./UpcomingInvoiceResponseData";
|
|
20
21
|
import { UsageBasedEntitlementResponseData } from "./UsageBasedEntitlementResponseData";
|
|
21
22
|
export declare const ComponentPreviewResponseData: core.serialization.ObjectSchema<serializers.ComponentPreviewResponseData.Raw, Schematic.ComponentPreviewResponseData>;
|
|
22
23
|
export declare namespace ComponentPreviewResponseData {
|
|
@@ -48,6 +49,6 @@ export declare namespace ComponentPreviewResponseData {
|
|
|
48
49
|
stripe_embed?: StripeEmbedInfo.Raw | null;
|
|
49
50
|
subscription?: CompanySubscriptionResponseData.Raw | null;
|
|
50
51
|
trial_payment_method_required?: boolean | null;
|
|
51
|
-
upcoming_invoice?:
|
|
52
|
+
upcoming_invoice?: UpcomingInvoiceResponseData.Raw | null;
|
|
52
53
|
}
|
|
53
54
|
}
|
|
@@ -6,7 +6,7 @@ export declare const CreateCustomPlanBundlePlanRequestBody: core.serialization.O
|
|
|
6
6
|
export declare namespace CreateCustomPlanBundlePlanRequestBody {
|
|
7
7
|
interface Raw {
|
|
8
8
|
company_id: string;
|
|
9
|
-
description
|
|
9
|
+
description?: string | null;
|
|
10
10
|
icon?: PlanIcon.Raw | null;
|
|
11
11
|
name: string;
|
|
12
12
|
}
|
|
@@ -6,7 +6,7 @@ import { PlanType } from "./PlanType";
|
|
|
6
6
|
export declare const CreatePlanRequestBody: core.serialization.ObjectSchema<serializers.CreatePlanRequestBody.Raw, Schematic.CreatePlanRequestBody>;
|
|
7
7
|
export declare namespace CreatePlanRequestBody {
|
|
8
8
|
interface Raw {
|
|
9
|
-
description
|
|
9
|
+
description?: string | null;
|
|
10
10
|
icon?: PlanIcon.Raw | null;
|
|
11
11
|
name: string;
|
|
12
12
|
plan_type: PlanType.Raw;
|
|
@@ -8,6 +8,7 @@ export declare namespace OnboardingRequirementView {
|
|
|
8
8
|
interface Raw {
|
|
9
9
|
blocked_by?: OnboardingRequirement.Raw[] | null;
|
|
10
10
|
id: OnboardingRequirement.Raw;
|
|
11
|
+
reached_at?: string | null;
|
|
11
12
|
satisfied_by?: string | null;
|
|
12
13
|
status: OnboardingRequirementStatus.Raw;
|
|
13
14
|
}
|
|
@@ -12,6 +12,7 @@ import { PlanChangeSubscriptionAction } from "./PlanChangeSubscriptionAction";
|
|
|
12
12
|
import { PlanSnapshotView } from "./PlanSnapshotView";
|
|
13
13
|
import { PlanVersionSnapshotView } from "./PlanVersionSnapshotView";
|
|
14
14
|
import { SubscriptionTraitUpdate } from "./SubscriptionTraitUpdate";
|
|
15
|
+
import { TrialStatus } from "./TrialStatus";
|
|
15
16
|
export declare const PlanChangeResponseData: core.serialization.ObjectSchema<serializers.PlanChangeResponseData.Raw, Schematic.PlanChangeResponseData>;
|
|
16
17
|
export declare namespace PlanChangeResponseData {
|
|
17
18
|
interface Raw {
|
|
@@ -36,6 +37,9 @@ export declare namespace PlanChangeResponseData {
|
|
|
36
37
|
request_id?: string | null;
|
|
37
38
|
subscription_change_action?: PlanChangeSubscriptionAction.Raw | null;
|
|
38
39
|
traits_updated: SubscriptionTraitUpdate.Raw[];
|
|
40
|
+
trial_converted_at?: string | null;
|
|
41
|
+
trial_expires_at?: string | null;
|
|
42
|
+
trial_status?: TrialStatus.Raw | null;
|
|
39
43
|
updated_at: string;
|
|
40
44
|
user_id?: string | null;
|
|
41
45
|
user_name?: string | null;
|
|
@@ -16,6 +16,7 @@ export declare namespace PreviewSubscriptionFinanceResponseData {
|
|
|
16
16
|
period_start: string;
|
|
17
17
|
promo_code_applied: boolean;
|
|
18
18
|
proration: number;
|
|
19
|
+
proration_billed_at?: string | null;
|
|
19
20
|
tax_amount?: number | null;
|
|
20
21
|
tax_display_name?: string | null;
|
|
21
22
|
tax_require_billing_details: boolean;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { BillingProviderType } from "./BillingProviderType";
|
|
5
|
+
import { InvoiceStatus } from "./InvoiceStatus";
|
|
6
|
+
export declare const UpcomingInvoiceResponseData: core.serialization.ObjectSchema<serializers.UpcomingInvoiceResponseData.Raw, Schematic.UpcomingInvoiceResponseData>;
|
|
7
|
+
export declare namespace UpcomingInvoiceResponseData {
|
|
8
|
+
interface Raw {
|
|
9
|
+
amount_due: number;
|
|
10
|
+
amount_paid: number;
|
|
11
|
+
amount_remaining: number;
|
|
12
|
+
collection_method: string;
|
|
13
|
+
company_id?: string | null;
|
|
14
|
+
created_at: string;
|
|
15
|
+
currency: string;
|
|
16
|
+
customer_external_id: string;
|
|
17
|
+
due_date?: string | null;
|
|
18
|
+
ending_balance: number;
|
|
19
|
+
environment_id: string;
|
|
20
|
+
external_id?: string | null;
|
|
21
|
+
payment_method_external_id?: string | null;
|
|
22
|
+
provider_type: BillingProviderType.Raw;
|
|
23
|
+
starting_balance: number;
|
|
24
|
+
status?: InvoiceStatus.Raw | null;
|
|
25
|
+
subscription_external_id?: string | null;
|
|
26
|
+
subtotal: number;
|
|
27
|
+
updated_at: string;
|
|
28
|
+
url?: string | null;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -407,6 +407,7 @@ export * from "./TraitDefinition";
|
|
|
407
407
|
export * from "./TraitDefinitionComparableType";
|
|
408
408
|
export * from "./TraitType";
|
|
409
409
|
export * from "./TrialStatus";
|
|
410
|
+
export * from "./UpcomingInvoiceResponseData";
|
|
410
411
|
export * from "./UpdateAddOnRequestBody";
|
|
411
412
|
export * from "./UpdateAutoTopupOverrideRequestBody";
|
|
412
413
|
export * from "./UpdateBillingPlanCreditGrantRequestBody";
|