@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.
Files changed (38) hide show
  1. package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +1 -0
  2. package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +1 -1
  3. package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +1 -1
  4. package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +1 -1
  5. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -0
  6. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +2 -0
  7. package/dist/api/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +1 -0
  8. package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +1 -1
  9. package/dist/api/types/CreditEventLedgerResponseData.d.ts +1 -0
  10. package/dist/api/types/InvoiceRequestBody.d.ts +1 -0
  11. package/dist/api/types/InvoiceResponseData.d.ts +2 -0
  12. package/dist/api/types/ManagePlanRequest.d.ts +2 -0
  13. package/dist/api/types/PlanEntitlementResponseData.d.ts +1 -1
  14. package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -0
  15. package/dist/api/types/RulesengineComparableOperator.d.ts +11 -0
  16. package/dist/api/types/RulesengineCondition.d.ts +1 -1
  17. package/dist/api/types/UpcomingInvoiceResponseData.d.ts +2 -0
  18. package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
  19. package/dist/api/types/UsageBasedEntitlementResponseData.d.ts +1 -1
  20. package/dist/api/types/index.d.ts +1 -0
  21. package/dist/index.js +9 -9
  22. package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +1 -0
  23. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  24. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  25. package/dist/serialization/types/CompanyFeatureUsageExportMetadataVisibleColumnsItem.d.ts +1 -1
  26. package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +1 -0
  27. package/dist/serialization/types/InvoiceRequestBody.d.ts +1 -0
  28. package/dist/serialization/types/InvoiceResponseData.d.ts +1 -0
  29. package/dist/serialization/types/ManagePlanRequest.d.ts +1 -0
  30. package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -0
  31. package/dist/serialization/types/RulesengineComparableOperator.d.ts +7 -0
  32. package/dist/serialization/types/RulesengineCondition.d.ts +2 -2
  33. package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +1 -0
  34. package/dist/serialization/types/index.d.ts +1 -0
  35. package/dist/wasm/rulesengine.d.ts +1 -0
  36. package/dist/wasm/rulesengine.js +34 -4
  37. package/dist/wasm/rulesengine_bg.wasm.d.ts +2 -0
  38. package/package.json +3 -3
@@ -19,6 +19,7 @@ export declare namespace CreateInvoiceRequestBody {
19
19
  status?: InvoiceStatus.Raw | null;
20
20
  subscription_external_id?: string | null;
21
21
  subtotal: number;
22
+ total?: number | null;
22
23
  url?: string | null;
23
24
  }
24
25
  }
@@ -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
  }
@@ -18,6 +18,7 @@ export declare namespace InvoiceRequestBody {
18
18
  status?: InvoiceStatus.Raw | null;
19
19
  subscription_external_id?: string | null;
20
20
  subtotal: number;
21
+ total?: number | null;
21
22
  url?: string | null;
22
23
  }
23
24
  }
@@ -25,6 +25,7 @@ export declare namespace InvoiceResponseData {
25
25
  status?: InvoiceStatus.Raw | null;
26
26
  subscription_external_id?: string | null;
27
27
  subtotal: number;
28
+ total?: number | null;
28
29
  updated_at: string;
29
30
  url?: string | null;
30
31
  }
@@ -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 { ComparableOperator } from "./ComparableOperator";
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: ComparableOperator.Raw;
23
+ operator: RulesengineComparableOperator.Raw;
24
24
  resource_ids: string[];
25
25
  trait_definition?: RulesengineTraitDefinition.Raw | null;
26
26
  trait_value: string;
@@ -24,6 +24,7 @@ export declare namespace UpcomingInvoiceResponseData {
24
24
  status?: InvoiceStatus.Raw | null;
25
25
  subscription_external_id?: string | null;
26
26
  subtotal: number;
27
+ total?: number | null;
27
28
  updated_at: string;
28
29
  url?: string | null;
29
30
  }
@@ -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
  }