@schematichq/schematic-typescript-node 1.4.1 → 1.4.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/README.md +91 -0
- package/dist/api/resources/billing/client/Client.d.ts +0 -1
- package/dist/api/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -2
- package/dist/api/resources/plangroups/client/Client.d.ts +5 -2
- package/dist/api/resources/plangroups/client/requests/GetPlanGroupRequest.d.ts +9 -0
- package/dist/api/resources/plangroups/client/requests/index.d.ts +1 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupParams.d.ts +6 -0
- package/dist/api/resources/plangroups/types/GetPlanGroupResponse.d.ts +1 -1
- package/dist/api/resources/plangroups/types/index.d.ts +1 -0
- package/dist/api/types/BillingCreditBundleResponseData.d.ts +0 -1
- package/dist/api/types/BillingCreditBundleView.d.ts +0 -1
- package/dist/api/types/CaptureRawEvent.d.ts +7 -0
- package/dist/api/types/CaptureRawEventBatch.d.ts +4 -0
- package/dist/api/types/CheckFlagsResponseData.d.ts +1 -0
- package/dist/api/types/DatastreamCompanyPlan.d.ts +5 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +4 -0
- package/dist/api/types/PlanVersionSnapshotView.d.ts +5 -0
- package/dist/api/types/WhoAmIResponseData.d.ts +1 -1
- package/dist/api/types/index.d.ts +4 -0
- package/dist/index.js +3 -3
- package/dist/serialization/resources/billing/client/requests/CreateBillingProductRequestBody.d.ts +1 -1
- package/dist/serialization/resources/plangroups/types/GetPlanGroupParams.d.ts +9 -0
- package/dist/serialization/resources/plangroups/types/GetPlanGroupResponse.d.ts +2 -1
- package/dist/serialization/resources/plangroups/types/index.d.ts +1 -0
- package/dist/serialization/types/BillingCreditBundleResponseData.d.ts +0 -1
- package/dist/serialization/types/BillingCreditBundleView.d.ts +0 -1
- package/dist/serialization/types/CaptureRawEvent.d.ts +13 -0
- package/dist/serialization/types/CaptureRawEventBatch.d.ts +10 -0
- package/dist/serialization/types/CheckFlagsResponseData.d.ts +2 -0
- package/dist/serialization/types/DatastreamCompanyPlan.d.ts +11 -0
- package/dist/serialization/types/PlanChangeResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanVersionSnapshotView.d.ts +11 -0
- package/dist/serialization/types/WhoAmIResponseData.d.ts +2 -1
- package/dist/serialization/types/index.d.ts +4 -0
- package/package.json +6 -4
|
@@ -0,0 +1,9 @@
|
|
|
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 GetPlanGroupParams: core.serialization.ObjectSchema<serializers.GetPlanGroupParams.Raw, Schematic.GetPlanGroupParams>;
|
|
5
|
+
export declare namespace GetPlanGroupParams {
|
|
6
|
+
interface Raw {
|
|
7
|
+
include_company_counts?: boolean | null;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -2,10 +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 { PlanGroupDetailResponseData } from "../../../types/PlanGroupDetailResponseData";
|
|
5
|
+
import { GetPlanGroupParams } from "./GetPlanGroupParams";
|
|
5
6
|
export declare const GetPlanGroupResponse: core.serialization.ObjectSchema<serializers.GetPlanGroupResponse.Raw, Schematic.GetPlanGroupResponse>;
|
|
6
7
|
export declare namespace GetPlanGroupResponse {
|
|
7
8
|
interface Raw {
|
|
8
9
|
data: PlanGroupDetailResponseData.Raw;
|
|
9
|
-
params:
|
|
10
|
+
params: GetPlanGroupParams.Raw;
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -9,7 +9,6 @@ import { BillingPriceResponseData } from "./BillingPriceResponseData";
|
|
|
9
9
|
export declare const BillingCreditBundleResponseData: core.serialization.ObjectSchema<serializers.BillingCreditBundleResponseData.Raw, Schematic.BillingCreditBundleResponseData>;
|
|
10
10
|
export declare namespace BillingCreditBundleResponseData {
|
|
11
11
|
interface Raw {
|
|
12
|
-
billing_invoice_id?: string | null;
|
|
13
12
|
bundle_type: BillingCreditBundleType.Raw;
|
|
14
13
|
created_at: string;
|
|
15
14
|
credit_description?: string | null;
|
|
@@ -9,7 +9,6 @@ import { BillingProductPriceResponseData } from "./BillingProductPriceResponseDa
|
|
|
9
9
|
export declare const BillingCreditBundleView: core.serialization.ObjectSchema<serializers.BillingCreditBundleView.Raw, Schematic.BillingCreditBundleView>;
|
|
10
10
|
export declare namespace BillingCreditBundleView {
|
|
11
11
|
interface Raw {
|
|
12
|
-
billing_invoice_id?: string | null;
|
|
13
12
|
bundle_type: BillingCreditBundleType.Raw;
|
|
14
13
|
created_at: string;
|
|
15
14
|
credit_description?: string | null;
|
|
@@ -0,0 +1,13 @@
|
|
|
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 CaptureRawEvent: core.serialization.ObjectSchema<serializers.CaptureRawEvent.Raw, Schematic.CaptureRawEvent>;
|
|
5
|
+
export declare namespace CaptureRawEvent {
|
|
6
|
+
interface Raw {
|
|
7
|
+
captured_at: string;
|
|
8
|
+
event_id?: string | null;
|
|
9
|
+
raw_bytes: number[];
|
|
10
|
+
remote_ip: string;
|
|
11
|
+
user_agent: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../../api/index";
|
|
2
|
+
import * as core from "../../core";
|
|
3
|
+
import type * as serializers from "../index";
|
|
4
|
+
import { CaptureRawEvent } from "./CaptureRawEvent";
|
|
5
|
+
export declare const CaptureRawEventBatch: core.serialization.ObjectSchema<serializers.CaptureRawEventBatch.Raw, Schematic.CaptureRawEventBatch>;
|
|
6
|
+
export declare namespace CaptureRawEventBatch {
|
|
7
|
+
interface Raw {
|
|
8
|
+
events: CaptureRawEvent.Raw[];
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -2,9 +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 { CheckFlagResponseData } from "./CheckFlagResponseData";
|
|
5
|
+
import { DatastreamCompanyPlan } from "./DatastreamCompanyPlan";
|
|
5
6
|
export declare const CheckFlagsResponseData: core.serialization.ObjectSchema<serializers.CheckFlagsResponseData.Raw, Schematic.CheckFlagsResponseData>;
|
|
6
7
|
export declare namespace CheckFlagsResponseData {
|
|
7
8
|
interface Raw {
|
|
8
9
|
flags: CheckFlagResponseData.Raw[];
|
|
10
|
+
plan?: DatastreamCompanyPlan.Raw | null;
|
|
9
11
|
}
|
|
10
12
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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 DatastreamCompanyPlan: core.serialization.ObjectSchema<serializers.DatastreamCompanyPlan.Raw, Schematic.DatastreamCompanyPlan>;
|
|
5
|
+
export declare namespace DatastreamCompanyPlan {
|
|
6
|
+
interface Raw {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
trial_end_date?: string | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -9,6 +9,7 @@ import { PlanChangeAction } from "./PlanChangeAction";
|
|
|
9
9
|
import { PlanChangeBasePlanAction } from "./PlanChangeBasePlanAction";
|
|
10
10
|
import { PlanChangeSubscriptionAction } from "./PlanChangeSubscriptionAction";
|
|
11
11
|
import { PlanSnapshotView } from "./PlanSnapshotView";
|
|
12
|
+
import { PlanVersionSnapshotView } from "./PlanVersionSnapshotView";
|
|
12
13
|
import { SubscriptionTraitUpdate } from "./SubscriptionTraitUpdate";
|
|
13
14
|
export declare const PlanChangeResponseData: core.serialization.ObjectSchema<serializers.PlanChangeResponseData.Raw, Schematic.PlanChangeResponseData>;
|
|
14
15
|
export declare namespace PlanChangeResponseData {
|
|
@@ -21,12 +22,14 @@ export declare namespace PlanChangeResponseData {
|
|
|
21
22
|
audit_log?: AuditLogListResponseData.Raw | null;
|
|
22
23
|
base_plan?: PlanSnapshotView.Raw | null;
|
|
23
24
|
base_plan_action?: PlanChangeBasePlanAction.Raw | null;
|
|
25
|
+
base_plan_version?: PlanVersionSnapshotView.Raw | null;
|
|
24
26
|
company?: CompanyResponseData.Raw | null;
|
|
25
27
|
company_id: string;
|
|
26
28
|
created_at: string;
|
|
27
29
|
environment_id: string;
|
|
28
30
|
id: string;
|
|
29
31
|
previous_base_plan?: PlanSnapshotView.Raw | null;
|
|
32
|
+
previous_base_plan_version?: PlanVersionSnapshotView.Raw | null;
|
|
30
33
|
request_id?: string | null;
|
|
31
34
|
subscription_change_action?: PlanChangeSubscriptionAction.Raw | null;
|
|
32
35
|
traits_updated: SubscriptionTraitUpdate.Raw[];
|
|
@@ -0,0 +1,11 @@
|
|
|
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 PlanVersionSnapshotView: core.serialization.ObjectSchema<serializers.PlanVersionSnapshotView.Raw, Schematic.PlanVersionSnapshotView>;
|
|
5
|
+
export declare namespace PlanVersionSnapshotView {
|
|
6
|
+
interface Raw {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
version: number;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
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 { ActorType } from "./ActorType";
|
|
4
5
|
import { EnvironmentResponseData } from "./EnvironmentResponseData";
|
|
5
6
|
export declare const WhoAmIResponseData: core.serialization.ObjectSchema<serializers.WhoAmIResponseData.Raw, Schematic.WhoAmIResponseData>;
|
|
6
7
|
export declare namespace WhoAmIResponseData {
|
|
7
8
|
interface Raw {
|
|
8
9
|
account_id: string;
|
|
9
10
|
account_name: string;
|
|
10
|
-
actor_type:
|
|
11
|
+
actor_type: ActorType.Raw;
|
|
11
12
|
api_key_id?: string | null;
|
|
12
13
|
environment_id?: string | null;
|
|
13
14
|
environments: EnvironmentResponseData.Raw[];
|
|
@@ -47,6 +47,8 @@ export * from "./BillingSubscriptionResponseData";
|
|
|
47
47
|
export * from "./BillingSubscriptionTrialEndSetting";
|
|
48
48
|
export * from "./BillingSubscriptionView";
|
|
49
49
|
export * from "./BillingTiersMode";
|
|
50
|
+
export * from "./CaptureRawEvent";
|
|
51
|
+
export * from "./CaptureRawEventBatch";
|
|
50
52
|
export * from "./ChangeSubscriptionInternalRequestBody";
|
|
51
53
|
export * from "./ChangeSubscriptionRequestBody";
|
|
52
54
|
export * from "./ChargeType";
|
|
@@ -138,6 +140,7 @@ export * from "./DataExportOutputFileType";
|
|
|
138
140
|
export * from "./DataExportResponseData";
|
|
139
141
|
export * from "./DataExportStatus";
|
|
140
142
|
export * from "./DataExportType";
|
|
143
|
+
export * from "./DatastreamCompanyPlan";
|
|
141
144
|
export * from "./DeleteBillingPlanCreditGrantRequestBody";
|
|
142
145
|
export * from "./DeleteResponse";
|
|
143
146
|
export * from "./DuplicatePlanEntitlementsResponseResponseData";
|
|
@@ -230,6 +233,7 @@ export * from "./PlanVersionMigrationResponseData";
|
|
|
230
233
|
export * from "./PlanVersionMigrationStatus";
|
|
231
234
|
export * from "./PlanVersionMigrationStrategy";
|
|
232
235
|
export * from "./PlanVersionResponseData";
|
|
236
|
+
export * from "./PlanVersionSnapshotView";
|
|
233
237
|
export * from "./PlanVersionStatus";
|
|
234
238
|
export * from "./PlanViewPublicResponseData";
|
|
235
239
|
export * from "./PreviewObject";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schematichq/schematic-typescript-node",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,11 +17,12 @@
|
|
|
17
17
|
"check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
|
|
18
18
|
"build": "node build.js",
|
|
19
19
|
"prepack": "cp -rv dist/. .",
|
|
20
|
-
"pretest": "node scripts/generate-wasm-base64.js",
|
|
21
20
|
"test": "jest --config jest.config.mjs",
|
|
22
21
|
"test:unit": "jest --selectProjects unit",
|
|
23
22
|
"test:wire": "jest --selectProjects wire",
|
|
24
|
-
"build:legacy": "tsc"
|
|
23
|
+
"build:legacy": "tsc",
|
|
24
|
+
"pretest": "node scripts/generate-wasm-base64.js",
|
|
25
|
+
"test:cloudflare": "node scripts/test-cloudflare.mjs"
|
|
25
26
|
},
|
|
26
27
|
"dependencies": {
|
|
27
28
|
"form-data": "^4.0.4",
|
|
@@ -45,7 +46,8 @@
|
|
|
45
46
|
"@types/node": "^18.19.70",
|
|
46
47
|
"typescript": "~5.7.2",
|
|
47
48
|
"@biomejs/biome": "2.3.1",
|
|
48
|
-
"esbuild": "^0.25.9"
|
|
49
|
+
"esbuild": "^0.25.9",
|
|
50
|
+
"miniflare": "^4.20260305.0"
|
|
49
51
|
},
|
|
50
52
|
"browser": {
|
|
51
53
|
"fs": false,
|