@schematichq/schematic-typescript-node 1.6.2 → 1.6.3
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/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +1 -0
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
- package/dist/api/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +1 -0
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -1
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +1 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +1 -0
- package/dist/api/types/InvoiceResponseData.d.ts +2 -0
- package/dist/api/types/ManagePlanRequest.d.ts +2 -0
- package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -1
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
- package/dist/api/types/RulesengineComparableOperator.d.ts +11 -0
- package/dist/api/types/RulesengineCondition.d.ts +1 -1
- package/dist/api/types/UpcomingInvoiceResponseData.d.ts +2 -0
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
- package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -1
- package/dist/api/types/index.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
- package/dist/serialization/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +1 -1
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +1 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +1 -0
- package/dist/serialization/types/InvoiceResponseData.d.ts +1 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
- package/dist/serialization/types/RulesengineComparableOperator.d.ts +7 -0
- package/dist/serialization/types/RulesengineCondition.d.ts +2 -2
- package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +1 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/wasm/rulesengine.d.ts +1 -0
- package/dist/wasm/rulesengine.js +34 -4
- package/dist/wasm/rulesengine_bg.wasm.d.ts +2 -0
- package/package.json +3 -3
|
@@ -15,6 +15,7 @@ export declare namespace ChangeSubscriptionInternalRequestBody {
|
|
|
15
15
|
company_id: string;
|
|
16
16
|
coupon_external_id?: string | null;
|
|
17
17
|
credit_bundles: UpdateCreditBundleRequestBody.Raw[];
|
|
18
|
+
currency?: string | null;
|
|
18
19
|
custom_field_values: CheckoutFieldValue.Raw[];
|
|
19
20
|
new_plan_id: string;
|
|
20
21
|
new_price_id: string;
|
|
@@ -14,6 +14,7 @@ export declare namespace ChangeSubscriptionRequestBody {
|
|
|
14
14
|
billing_entity_id?: string | null;
|
|
15
15
|
coupon_external_id?: string | null;
|
|
16
16
|
credit_bundles: UpdateCreditBundleRequestBody.Raw[];
|
|
17
|
+
currency?: string | null;
|
|
17
18
|
custom_field_values: CheckoutFieldValue.Raw[];
|
|
18
19
|
new_plan_id: string;
|
|
19
20
|
new_price_id: string;
|
|
@@ -3,5 +3,5 @@ import * as core from "../../core";
|
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
4
|
export declare const CompanyFeatureUsageExportMetadataVisibleColumnsItem: core.serialization.Schema<serializers.CompanyFeatureUsageExportMetadataVisibleColumnsItem.Raw, Schematic.CompanyFeatureUsageExportMetadataVisibleColumnsItem>;
|
|
5
5
|
export declare namespace CompanyFeatureUsageExportMetadataVisibleColumnsItem {
|
|
6
|
-
type Raw = "plan" | "subscription" | "users" | "last_seen_at";
|
|
6
|
+
type Raw = "plan" | "subscription" | "users" | "last_seen_at" | "created_at";
|
|
7
7
|
}
|
|
@@ -46,6 +46,7 @@ export declare namespace CreditEventLedgerResponseData {
|
|
|
46
46
|
transfer_reason?: CreditTransferReason.Raw | null;
|
|
47
47
|
usage_event_id?: string | null;
|
|
48
48
|
usage_reason?: CreditUsageReason.Raw | null;
|
|
49
|
+
user_id?: string | null;
|
|
49
50
|
zeroed_out_reason?: BillingCreditGrantZeroedOutReason.Raw | null;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
@@ -22,6 +22,7 @@ export declare namespace ManagePlanRequest {
|
|
|
22
22
|
company_id: string;
|
|
23
23
|
coupon_external_id?: string | null;
|
|
24
24
|
credit_bundles: UpdateCreditBundleRequestBody.Raw[];
|
|
25
|
+
currency?: string | null;
|
|
25
26
|
custom_field_values: CheckoutFieldValue.Raw[];
|
|
26
27
|
days_until_due?: number | null;
|
|
27
28
|
pay_in_advance_entitlements: UpdatePayInAdvanceRequestBody.Raw[];
|
|
@@ -7,6 +7,7 @@ export declare const PreviewSubscriptionFinanceResponseData: core.serialization.
|
|
|
7
7
|
export declare namespace PreviewSubscriptionFinanceResponseData {
|
|
8
8
|
interface Raw {
|
|
9
9
|
amount_off: number;
|
|
10
|
+
currency: string;
|
|
10
11
|
discount_amount: number;
|
|
11
12
|
discounts: PreviewSubscriptionDiscountResponseData.Raw[];
|
|
12
13
|
due_now: number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
export declare const RulesengineComparableOperator: core.serialization.Schema<serializers.RulesengineComparableOperator.Raw, Schematic.RulesengineComparableOperator>;
|
|
5
|
+
export declare namespace RulesengineComparableOperator {
|
|
6
|
+
type Raw = "eq" | "gt" | "gte" | "is_empty" | "lt" | "lte" | "not_empty" | "ne";
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type * as Schematic from "../../api/index";
|
|
2
2
|
import * as core from "../../core";
|
|
3
3
|
import type * as serializers from "../index";
|
|
4
|
-
import {
|
|
4
|
+
import { RulesengineComparableOperator } from "./RulesengineComparableOperator";
|
|
5
5
|
import { RulesengineConditionType } from "./RulesengineConditionType";
|
|
6
6
|
import { RulesengineMetricPeriod } from "./RulesengineMetricPeriod";
|
|
7
7
|
import { RulesengineMetricPeriodMonthReset } from "./RulesengineMetricPeriodMonthReset";
|
|
@@ -20,7 +20,7 @@ export declare namespace RulesengineCondition {
|
|
|
20
20
|
metric_period?: RulesengineMetricPeriod.Raw | null;
|
|
21
21
|
metric_period_month_reset?: RulesengineMetricPeriodMonthReset.Raw | null;
|
|
22
22
|
metric_value?: number | null;
|
|
23
|
-
operator:
|
|
23
|
+
operator: RulesengineComparableOperator.Raw;
|
|
24
24
|
resource_ids: string[];
|
|
25
25
|
trait_definition?: RulesengineTraitDefinition.Raw | null;
|
|
26
26
|
trait_value: string;
|
|
@@ -380,6 +380,7 @@ export * from "./RulesEngineSchemaVersion";
|
|
|
380
380
|
export * from "./RulesengineCheckFlagResult";
|
|
381
381
|
export * from "./RulesengineCompany";
|
|
382
382
|
export * from "./RulesengineCompanyMetric";
|
|
383
|
+
export * from "./RulesengineComparableOperator";
|
|
383
384
|
export * from "./RulesengineCondition";
|
|
384
385
|
export * from "./RulesengineConditionGroup";
|
|
385
386
|
export * from "./RulesengineConditionType";
|
|
@@ -6,6 +6,7 @@ export class RulesEngineJS {
|
|
|
6
6
|
[Symbol.dispose](): void;
|
|
7
7
|
checkFlagWithOptions(flag_json: string, company_json?: string | null, user_json?: string | null, options_json?: string | null): string;
|
|
8
8
|
checkFlag(flag_json: string, company_json?: string | null, user_json?: string | null): string;
|
|
9
|
+
checkFlags(flags_json: string, company_json?: string | null, user_json?: string | null): string;
|
|
9
10
|
getVersionKey(): string;
|
|
10
11
|
constructor();
|
|
11
12
|
}
|