@schematichq/schematic-typescript-node 1.5.0 → 1.5.1

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 (47) hide show
  1. package/dist/Client.d.ts +8 -0
  2. package/dist/api/resources/credits/client/Client.d.ts +0 -48
  3. package/dist/api/resources/credits/client/requests/index.d.ts +0 -2
  4. package/dist/api/resources/credits/types/index.d.ts +0 -4
  5. package/dist/api/resources/plangroups/client/Client.d.ts +2 -0
  6. package/dist/api/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +4 -0
  7. package/dist/api/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +4 -0
  8. package/dist/api/resources/plans/client/Client.d.ts +1 -5
  9. package/dist/api/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +1 -6
  10. package/dist/api/types/BillingCreditGrantZeroedOutReason.d.ts +1 -0
  11. package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  12. package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  13. package/dist/api/types/CheckoutSettingsResponseData.d.ts +3 -0
  14. package/dist/api/types/FeatureEntitlement.d.ts +5 -1
  15. package/dist/api/types/PlanChangeResponseData.d.ts +2 -0
  16. package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
  17. package/dist/api/types/RulesengineFeatureEntitlement.d.ts +5 -1
  18. package/dist/api/types/index.d.ts +0 -2
  19. package/dist/index.js +9 -9
  20. package/dist/serialization/resources/credits/types/index.d.ts +0 -4
  21. package/dist/serialization/resources/plangroups/client/requests/CreatePlanGroupRequestBody.d.ts +3 -0
  22. package/dist/serialization/resources/plangroups/client/requests/UpdatePlanGroupRequestBody.d.ts +3 -0
  23. package/dist/serialization/resources/plans/client/requests/RetryCustomPlanBillingRequestBody.d.ts +0 -2
  24. package/dist/serialization/types/BillingCreditGrantZeroedOutReason.d.ts +1 -1
  25. package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -0
  26. package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +1 -0
  27. package/dist/serialization/types/CheckoutSettingsResponseData.d.ts +3 -0
  28. package/dist/serialization/types/FeatureEntitlement.d.ts +2 -0
  29. package/dist/serialization/types/PlanChangeResponseData.d.ts +1 -0
  30. package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +3 -0
  31. package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +2 -0
  32. package/dist/serialization/types/index.d.ts +0 -2
  33. package/package.json +1 -1
  34. package/dist/api/resources/credits/client/requests/CountCreditLedgerRequest.d.ts +0 -26
  35. package/dist/api/resources/credits/client/requests/GetEnrichedCreditLedgerRequest.d.ts +0 -26
  36. package/dist/api/resources/credits/types/CountCreditLedgerParams.d.ts +0 -16
  37. package/dist/api/resources/credits/types/CountCreditLedgerResponse.d.ts +0 -6
  38. package/dist/api/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +0 -16
  39. package/dist/api/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +0 -6
  40. package/dist/api/types/CreditLedgerEnrichedEntryResponseData.d.ts +0 -25
  41. package/dist/api/types/CreditLedgerPeriod.d.ts +0 -7
  42. package/dist/serialization/resources/credits/types/CountCreditLedgerParams.d.ts +0 -17
  43. package/dist/serialization/resources/credits/types/CountCreditLedgerResponse.d.ts +0 -12
  44. package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerParams.d.ts +0 -17
  45. package/dist/serialization/resources/credits/types/GetEnrichedCreditLedgerResponse.d.ts +0 -12
  46. package/dist/serialization/types/CreditLedgerEnrichedEntryResponseData.d.ts +0 -33
  47. package/dist/serialization/types/CreditLedgerPeriod.d.ts +0 -7
@@ -11,8 +11,6 @@ export * from "./CountCreditBundlesParams";
11
11
  export * from "./CountCreditBundlesResponse";
12
12
  export * from "./CountCreditEventLedgerParams";
13
13
  export * from "./CountCreditEventLedgerResponse";
14
- export * from "./CountCreditLedgerParams";
15
- export * from "./CountCreditLedgerResponse";
16
14
  export * from "./CreateBillingCreditResponse";
17
15
  export * from "./CreateBillingPlanCreditGrantResponse";
18
16
  export * from "./CreateCreditBundleResponse";
@@ -21,8 +19,6 @@ export * from "./DeleteBillingPlanCreditGrantResponse";
21
19
  export * from "./DeleteCreditBundleResponse";
22
20
  export * from "./ExtendCreditLeaseResponse";
23
21
  export * from "./GetCreditBundleResponse";
24
- export * from "./GetEnrichedCreditLedgerParams";
25
- export * from "./GetEnrichedCreditLedgerResponse";
26
22
  export * from "./GetSingleBillingCreditResponse";
27
23
  export * from "./GetSingleBillingPlanCreditGrantResponse";
28
24
  export * from "./GrantBillingCreditsToCompanyResponse";
@@ -23,6 +23,9 @@ export declare namespace CreatePlanGroupRequestBody {
23
23
  fallback_plan_id?: string | null;
24
24
  initial_plan_id?: string | null;
25
25
  initial_plan_price_id?: string | null;
26
+ opt_in_enabled: boolean;
27
+ opt_in_text?: string | null;
28
+ opt_in_title?: string | null;
26
29
  ordered_add_ons: OrderedPlansInGroup.Raw[];
27
30
  ordered_bundle_list: PlanGroupBundleOrder.Raw[];
28
31
  ordered_plans: OrderedPlansInGroup.Raw[];
@@ -23,6 +23,9 @@ export declare namespace UpdatePlanGroupRequestBody {
23
23
  fallback_plan_id?: string | null;
24
24
  initial_plan_id?: string | null;
25
25
  initial_plan_price_id?: string | null;
26
+ opt_in_enabled: boolean;
27
+ opt_in_text?: string | null;
28
+ opt_in_title?: string | null;
26
29
  ordered_add_ons: OrderedPlansInGroup.Raw[];
27
30
  ordered_bundle_list: PlanGroupBundleOrder.Raw[];
28
31
  ordered_plans: OrderedPlansInGroup.Raw[];
@@ -2,13 +2,11 @@ import type * as Schematic from "../../../../../api/index";
2
2
  import * as core from "../../../../../core";
3
3
  import type * as serializers from "../../../../index";
4
4
  import { CustomPlanActivationStrategy } from "../../../../types/CustomPlanActivationStrategy";
5
- import { UpdatePayInAdvanceRequestBody } from "../../../../types/UpdatePayInAdvanceRequestBody";
6
5
  export declare const RetryCustomPlanBillingRequestBody: core.serialization.Schema<serializers.RetryCustomPlanBillingRequestBody.Raw, Schematic.RetryCustomPlanBillingRequestBody>;
7
6
  export declare namespace RetryCustomPlanBillingRequestBody {
8
7
  interface Raw {
9
8
  activation_strategy?: CustomPlanActivationStrategy.Raw | null;
10
9
  customer_email: string;
11
10
  days_until_due?: number | null;
12
- pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
13
11
  }
14
12
  }
@@ -3,5 +3,5 @@ import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  export declare const BillingCreditGrantZeroedOutReason: core.serialization.Schema<serializers.BillingCreditGrantZeroedOutReason.Raw, Schematic.BillingCreditGrantZeroedOutReason>;
5
5
  export declare namespace BillingCreditGrantZeroedOutReason {
6
- type Raw = "expired" | "manual" | "plan_change" | "plan_period_reset";
6
+ type Raw = "expired" | "manual" | "plan_change" | "plan_period_reset" | "reconciled";
7
7
  }
@@ -17,6 +17,7 @@ export declare namespace ChangeSubscriptionInternalRequestBody {
17
17
  custom_field_values: CheckoutFieldValue.Raw[];
18
18
  new_plan_id: string;
19
19
  new_price_id: string;
20
+ opt_in_accepted?: boolean | null;
20
21
  pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
21
22
  payment_method_id?: string | null;
22
23
  promo_code?: string | null;
@@ -16,6 +16,7 @@ export declare namespace ChangeSubscriptionRequestBody {
16
16
  custom_field_values: CheckoutFieldValue.Raw[];
17
17
  new_plan_id: string;
18
18
  new_price_id: string;
19
+ opt_in_accepted?: boolean | null;
19
20
  pay_in_advance: UpdatePayInAdvanceRequestBody.Raw[];
20
21
  payment_method_id?: string | null;
21
22
  promo_code?: string | null;
@@ -7,5 +7,8 @@ export declare namespace CheckoutSettingsResponseData {
7
7
  collect_address: boolean;
8
8
  collect_email: boolean;
9
9
  collect_phone: boolean;
10
+ opt_in_enabled: boolean;
11
+ opt_in_text?: string | null;
12
+ opt_in_title?: string | null;
10
13
  }
11
14
  }
@@ -10,6 +10,8 @@ export declare namespace FeatureEntitlement {
10
10
  allocation?: number | null;
11
11
  credit_id?: string | null;
12
12
  credit_remaining?: number | null;
13
+ credit_reserved?: number | null;
14
+ credit_settled?: number | null;
13
15
  credit_total?: number | null;
14
16
  credit_used?: number | null;
15
17
  event_name?: string | null;
@@ -28,6 +28,7 @@ export declare namespace PlanChangeResponseData {
28
28
  created_at: string;
29
29
  environment_id: string;
30
30
  id: string;
31
+ is_version_upgrade: boolean;
31
32
  previous_base_plan?: PlanSnapshotView.Raw | null;
32
33
  previous_base_plan_version?: PlanVersionSnapshotView.Raw | null;
33
34
  request_id?: string | null;
@@ -11,6 +11,9 @@ export declare namespace PreviewSubscriptionChangeResponseData {
11
11
  finance?: PreviewSubscriptionFinanceResponseData.Raw | null;
12
12
  is_scheduled_downgrade: boolean;
13
13
  new_charges: number;
14
+ opt_in_required: boolean;
15
+ opt_in_text?: string | null;
16
+ opt_in_title?: string | null;
14
17
  payment_method_required: boolean;
15
18
  percent_off: number;
16
19
  period_start: string;
@@ -10,6 +10,8 @@ export declare namespace RulesengineFeatureEntitlement {
10
10
  allocation?: number | null;
11
11
  credit_id?: string | null;
12
12
  credit_remaining?: number | null;
13
+ credit_reserved?: number | null;
14
+ credit_settled?: number | null;
13
15
  credit_total?: number | null;
14
16
  credit_used?: number | null;
15
17
  event_name?: string | null;
@@ -137,8 +137,6 @@ export * from "./CreditGrantDetail";
137
137
  export * from "./CreditGrantExpiryRequestBody";
138
138
  export * from "./CreditGrantSortOrder";
139
139
  export * from "./CreditLeaseResponseData";
140
- export * from "./CreditLedgerEnrichedEntryResponseData";
141
- export * from "./CreditLedgerPeriod";
142
140
  export * from "./CreditsAutoTopupCompanySummary";
143
141
  export * from "./CreditsAutoTopupCreditSummary";
144
142
  export * from "./CreditsAutoTopupHardFailure";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-typescript-node",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,26 +0,0 @@
1
- import type * as Schematic from "../../../../index";
2
- /**
3
- * @example
4
- * {
5
- * companyId: "company_id",
6
- * billingCreditId: "billing_credit_id",
7
- * featureId: "feature_id",
8
- * period: "daily",
9
- * startTime: "start_time",
10
- * endTime: "end_time",
11
- * limit: 1000000,
12
- * offset: 1000000
13
- * }
14
- */
15
- export interface CountCreditLedgerRequest {
16
- companyId: string;
17
- billingCreditId?: string;
18
- featureId?: string;
19
- period: Schematic.CreditLedgerPeriod;
20
- startTime?: string;
21
- endTime?: string;
22
- /** Page limit (default 100) */
23
- limit?: number;
24
- /** Page offset (default 0) */
25
- offset?: number;
26
- }
@@ -1,26 +0,0 @@
1
- import type * as Schematic from "../../../../index";
2
- /**
3
- * @example
4
- * {
5
- * companyId: "company_id",
6
- * billingCreditId: "billing_credit_id",
7
- * featureId: "feature_id",
8
- * period: "daily",
9
- * startTime: "start_time",
10
- * endTime: "end_time",
11
- * limit: 1000000,
12
- * offset: 1000000
13
- * }
14
- */
15
- export interface GetEnrichedCreditLedgerRequest {
16
- companyId: string;
17
- billingCreditId?: string;
18
- featureId?: string;
19
- period: Schematic.CreditLedgerPeriod;
20
- startTime?: string;
21
- endTime?: string;
22
- /** Page limit (default 100) */
23
- limit?: number;
24
- /** Page offset (default 0) */
25
- offset?: number;
26
- }
@@ -1,16 +0,0 @@
1
- import type * as Schematic from "../../../index";
2
- /**
3
- * Input parameters
4
- */
5
- export interface CountCreditLedgerParams {
6
- billingCreditId?: string;
7
- companyId?: string;
8
- endTime?: string;
9
- featureId?: string;
10
- /** Page limit (default 100) */
11
- limit?: number;
12
- /** Page offset (default 0) */
13
- offset?: number;
14
- period?: Schematic.CreditLedgerPeriod;
15
- startTime?: string;
16
- }
@@ -1,6 +0,0 @@
1
- import type * as Schematic from "../../../index";
2
- export interface CountCreditLedgerResponse {
3
- data: Schematic.CountResponse;
4
- /** Input parameters */
5
- params: Schematic.CountCreditLedgerParams;
6
- }
@@ -1,16 +0,0 @@
1
- import type * as Schematic from "../../../index";
2
- /**
3
- * Input parameters
4
- */
5
- export interface GetEnrichedCreditLedgerParams {
6
- billingCreditId?: string;
7
- companyId?: string;
8
- endTime?: string;
9
- featureId?: string;
10
- /** Page limit (default 100) */
11
- limit?: number;
12
- /** Page offset (default 0) */
13
- offset?: number;
14
- period?: Schematic.CreditLedgerPeriod;
15
- startTime?: string;
16
- }
@@ -1,6 +0,0 @@
1
- import type * as Schematic from "../../../index";
2
- export interface GetEnrichedCreditLedgerResponse {
3
- data: Schematic.CreditLedgerEnrichedEntryResponseData[];
4
- /** Input parameters */
5
- params: Schematic.GetEnrichedCreditLedgerParams;
6
- }
@@ -1,25 +0,0 @@
1
- import type * as Schematic from "../index";
2
- export interface CreditLedgerEnrichedEntryResponseData {
3
- billingCreditAutoTopupGrantCount: number;
4
- billingCreditId: string;
5
- company?: Schematic.CompanyLedgerResponseData;
6
- companyId: string;
7
- credit?: Schematic.BillingCreditLedgerResponseData;
8
- expiredGrantCount: number;
9
- feature?: Schematic.FeatureLedgerResponseData;
10
- featureId?: string;
11
- firstTransactionAt: Date;
12
- freeGrantCount: number;
13
- grantCount: number;
14
- lastTransactionAt: Date;
15
- manuallyZeroedCount: number;
16
- netChange: number;
17
- planGrantCount: number;
18
- purchasedGrantCount: number;
19
- timeBucket: Date;
20
- totalConsumed: number;
21
- totalGranted: number;
22
- transactionCount: number;
23
- usageCount: number;
24
- zeroedOutCount: number;
25
- }
@@ -1,7 +0,0 @@
1
- export declare const CreditLedgerPeriod: {
2
- readonly Daily: "daily";
3
- readonly Monthly: "monthly";
4
- readonly Raw: "raw";
5
- readonly Weekly: "weekly";
6
- };
7
- export type CreditLedgerPeriod = (typeof CreditLedgerPeriod)[keyof typeof CreditLedgerPeriod];
@@ -1,17 +0,0 @@
1
- import type * as Schematic from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { CreditLedgerPeriod } from "../../../types/CreditLedgerPeriod";
5
- export declare const CountCreditLedgerParams: core.serialization.ObjectSchema<serializers.CountCreditLedgerParams.Raw, Schematic.CountCreditLedgerParams>;
6
- export declare namespace CountCreditLedgerParams {
7
- interface Raw {
8
- billing_credit_id?: string | null;
9
- company_id?: string | null;
10
- end_time?: string | null;
11
- feature_id?: string | null;
12
- limit?: number | null;
13
- offset?: number | null;
14
- period?: CreditLedgerPeriod.Raw | null;
15
- start_time?: string | null;
16
- }
17
- }
@@ -1,12 +0,0 @@
1
- import type * as Schematic from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { CountResponse } from "../../../types/CountResponse";
5
- import { CountCreditLedgerParams } from "./CountCreditLedgerParams";
6
- export declare const CountCreditLedgerResponse: core.serialization.ObjectSchema<serializers.CountCreditLedgerResponse.Raw, Schematic.CountCreditLedgerResponse>;
7
- export declare namespace CountCreditLedgerResponse {
8
- interface Raw {
9
- data: CountResponse.Raw;
10
- params: CountCreditLedgerParams.Raw;
11
- }
12
- }
@@ -1,17 +0,0 @@
1
- import type * as Schematic from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { CreditLedgerPeriod } from "../../../types/CreditLedgerPeriod";
5
- export declare const GetEnrichedCreditLedgerParams: core.serialization.ObjectSchema<serializers.GetEnrichedCreditLedgerParams.Raw, Schematic.GetEnrichedCreditLedgerParams>;
6
- export declare namespace GetEnrichedCreditLedgerParams {
7
- interface Raw {
8
- billing_credit_id?: string | null;
9
- company_id?: string | null;
10
- end_time?: string | null;
11
- feature_id?: string | null;
12
- limit?: number | null;
13
- offset?: number | null;
14
- period?: CreditLedgerPeriod.Raw | null;
15
- start_time?: string | null;
16
- }
17
- }
@@ -1,12 +0,0 @@
1
- import type * as Schematic from "../../../../api/index";
2
- import * as core from "../../../../core";
3
- import type * as serializers from "../../../index";
4
- import { CreditLedgerEnrichedEntryResponseData } from "../../../types/CreditLedgerEnrichedEntryResponseData";
5
- import { GetEnrichedCreditLedgerParams } from "./GetEnrichedCreditLedgerParams";
6
- export declare const GetEnrichedCreditLedgerResponse: core.serialization.ObjectSchema<serializers.GetEnrichedCreditLedgerResponse.Raw, Schematic.GetEnrichedCreditLedgerResponse>;
7
- export declare namespace GetEnrichedCreditLedgerResponse {
8
- interface Raw {
9
- data: CreditLedgerEnrichedEntryResponseData.Raw[];
10
- params: GetEnrichedCreditLedgerParams.Raw;
11
- }
12
- }
@@ -1,33 +0,0 @@
1
- import type * as Schematic from "../../api/index";
2
- import * as core from "../../core";
3
- import type * as serializers from "../index";
4
- import { BillingCreditLedgerResponseData } from "./BillingCreditLedgerResponseData";
5
- import { CompanyLedgerResponseData } from "./CompanyLedgerResponseData";
6
- import { FeatureLedgerResponseData } from "./FeatureLedgerResponseData";
7
- export declare const CreditLedgerEnrichedEntryResponseData: core.serialization.ObjectSchema<serializers.CreditLedgerEnrichedEntryResponseData.Raw, Schematic.CreditLedgerEnrichedEntryResponseData>;
8
- export declare namespace CreditLedgerEnrichedEntryResponseData {
9
- interface Raw {
10
- billing_credit_auto_topup_grant_count: number;
11
- billing_credit_id: string;
12
- company?: CompanyLedgerResponseData.Raw | null;
13
- company_id: string;
14
- credit?: BillingCreditLedgerResponseData.Raw | null;
15
- expired_grant_count: number;
16
- feature?: FeatureLedgerResponseData.Raw | null;
17
- feature_id?: string | null;
18
- first_transaction_at: string;
19
- free_grant_count: number;
20
- grant_count: number;
21
- last_transaction_at: string;
22
- manually_zeroed_count: number;
23
- net_change: number;
24
- plan_grant_count: number;
25
- purchased_grant_count: number;
26
- time_bucket: string;
27
- total_consumed: number;
28
- total_granted: number;
29
- transaction_count: number;
30
- usage_count: number;
31
- zeroed_out_count: number;
32
- }
33
- }
@@ -1,7 +0,0 @@
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 CreditLedgerPeriod: core.serialization.Schema<serializers.CreditLedgerPeriod.Raw, Schematic.CreditLedgerPeriod>;
5
- export declare namespace CreditLedgerPeriod {
6
- type Raw = "daily" | "monthly" | "raw" | "weekly";
7
- }