circuit-json 0.0.227 → 0.0.229
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 +42 -0
- package/dist/index.d.mts +245 -2
- package/dist/index.mjs +254 -216
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -91,6 +91,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
91
91
|
- [PcbPlacementError](#pcbplacementerror)
|
|
92
92
|
- [PcbPlatedHole](#pcbplatedhole)
|
|
93
93
|
- [PcbPort](#pcbport)
|
|
94
|
+
- [PcbPortNotConnectedError](#pcbportnotconnectederror)
|
|
94
95
|
- [PcbPortNotMatchedError](#pcbportnotmatchederror)
|
|
95
96
|
- [PcbRouteHints](#pcbroutehints)
|
|
96
97
|
- [PcbSilkscreenCircle](#pcbsilkscreencircle)
|
|
@@ -106,6 +107,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
106
107
|
- [PcbTrace](#pcbtrace)
|
|
107
108
|
- [PcbTraceError](#pcbtraceerror)
|
|
108
109
|
- [PcbTraceHint](#pcbtracehint)
|
|
110
|
+
- [PcbTraceMissingError](#pcbtracemissingerror)
|
|
109
111
|
- [PcbVia](#pcbvia)
|
|
110
112
|
- [Schematic Elements](#schematic-elements)
|
|
111
113
|
- [SchematicBox](#schematicbox)
|
|
@@ -1057,6 +1059,25 @@ interface PcbPort {
|
|
|
1057
1059
|
}
|
|
1058
1060
|
```
|
|
1059
1061
|
|
|
1062
|
+
### PcbPortNotConnectedError
|
|
1063
|
+
|
|
1064
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_port_not_connected_error.ts)
|
|
1065
|
+
|
|
1066
|
+
Defines an error when a pcb port is not connected to any trace
|
|
1067
|
+
|
|
1068
|
+
```typescript
|
|
1069
|
+
/** Defines an error when a pcb port is not connected to any trace */
|
|
1070
|
+
interface PcbPortNotConnectedError {
|
|
1071
|
+
type: "pcb_port_not_connected_error"
|
|
1072
|
+
pcb_error_id: string
|
|
1073
|
+
error_type: "pcb_port_not_connected_error"
|
|
1074
|
+
message: string
|
|
1075
|
+
pcb_port_ids: string[]
|
|
1076
|
+
pcb_component_ids: string[]
|
|
1077
|
+
subcircuit_id?: string
|
|
1078
|
+
}
|
|
1079
|
+
```
|
|
1080
|
+
|
|
1060
1081
|
### PcbPortNotMatchedError
|
|
1061
1082
|
|
|
1062
1083
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_port_not_matched_error.ts)
|
|
@@ -1373,6 +1394,27 @@ interface PcbTraceHint {
|
|
|
1373
1394
|
}
|
|
1374
1395
|
```
|
|
1375
1396
|
|
|
1397
|
+
### PcbTraceMissingError
|
|
1398
|
+
|
|
1399
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_trace_missing_error.ts)
|
|
1400
|
+
|
|
1401
|
+
Defines an error when a source trace has no corresponding PCB trace
|
|
1402
|
+
|
|
1403
|
+
```typescript
|
|
1404
|
+
/** Defines an error when a source trace has no corresponding PCB trace */
|
|
1405
|
+
interface PcbTraceMissingError {
|
|
1406
|
+
type: "pcb_trace_missing_error"
|
|
1407
|
+
pcb_trace_missing_error_id: string
|
|
1408
|
+
error_type: "pcb_trace_missing_error"
|
|
1409
|
+
message: string
|
|
1410
|
+
center?: Point
|
|
1411
|
+
source_trace_id: string
|
|
1412
|
+
pcb_component_ids: string[]
|
|
1413
|
+
pcb_port_ids: string[]
|
|
1414
|
+
subcircuit_id?: string
|
|
1415
|
+
}
|
|
1416
|
+
```
|
|
1417
|
+
|
|
1376
1418
|
### PcbVia
|
|
1377
1419
|
|
|
1378
1420
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_via.ts)
|
package/dist/index.d.mts
CHANGED
|
@@ -2289,6 +2289,72 @@ interface PcbTraceError {
|
|
|
2289
2289
|
*/
|
|
2290
2290
|
type PCBTraceError = PcbTraceError;
|
|
2291
2291
|
|
|
2292
|
+
declare const pcb_trace_missing_error: z.ZodObject<{
|
|
2293
|
+
type: z.ZodLiteral<"pcb_trace_missing_error">;
|
|
2294
|
+
pcb_trace_missing_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2295
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_trace_missing_error">>;
|
|
2296
|
+
message: z.ZodString;
|
|
2297
|
+
center: z.ZodOptional<z.ZodObject<{
|
|
2298
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2299
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2300
|
+
}, "strip", z.ZodTypeAny, {
|
|
2301
|
+
x: number;
|
|
2302
|
+
y: number;
|
|
2303
|
+
}, {
|
|
2304
|
+
x: string | number;
|
|
2305
|
+
y: string | number;
|
|
2306
|
+
}>>;
|
|
2307
|
+
source_trace_id: z.ZodString;
|
|
2308
|
+
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
2309
|
+
pcb_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
2310
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
2311
|
+
}, "strip", z.ZodTypeAny, {
|
|
2312
|
+
message: string;
|
|
2313
|
+
type: "pcb_trace_missing_error";
|
|
2314
|
+
source_trace_id: string;
|
|
2315
|
+
error_type: "pcb_trace_missing_error";
|
|
2316
|
+
pcb_component_ids: string[];
|
|
2317
|
+
pcb_port_ids: string[];
|
|
2318
|
+
pcb_trace_missing_error_id: string;
|
|
2319
|
+
center?: {
|
|
2320
|
+
x: number;
|
|
2321
|
+
y: number;
|
|
2322
|
+
} | undefined;
|
|
2323
|
+
subcircuit_id?: string | undefined;
|
|
2324
|
+
}, {
|
|
2325
|
+
message: string;
|
|
2326
|
+
type: "pcb_trace_missing_error";
|
|
2327
|
+
source_trace_id: string;
|
|
2328
|
+
pcb_component_ids: string[];
|
|
2329
|
+
pcb_port_ids: string[];
|
|
2330
|
+
center?: {
|
|
2331
|
+
x: string | number;
|
|
2332
|
+
y: string | number;
|
|
2333
|
+
} | undefined;
|
|
2334
|
+
subcircuit_id?: string | undefined;
|
|
2335
|
+
error_type?: "pcb_trace_missing_error" | undefined;
|
|
2336
|
+
pcb_trace_missing_error_id?: string | undefined;
|
|
2337
|
+
}>;
|
|
2338
|
+
type PcbTraceMissingErrorInput = z.input<typeof pcb_trace_missing_error>;
|
|
2339
|
+
/**
|
|
2340
|
+
* Defines an error when a source trace has no corresponding PCB trace
|
|
2341
|
+
*/
|
|
2342
|
+
interface PcbTraceMissingError {
|
|
2343
|
+
type: "pcb_trace_missing_error";
|
|
2344
|
+
pcb_trace_missing_error_id: string;
|
|
2345
|
+
error_type: "pcb_trace_missing_error";
|
|
2346
|
+
message: string;
|
|
2347
|
+
center?: Point;
|
|
2348
|
+
source_trace_id: string;
|
|
2349
|
+
pcb_component_ids: string[];
|
|
2350
|
+
pcb_port_ids: string[];
|
|
2351
|
+
subcircuit_id?: string;
|
|
2352
|
+
}
|
|
2353
|
+
/**
|
|
2354
|
+
* @deprecated use PcbTraceMissingError
|
|
2355
|
+
*/
|
|
2356
|
+
type PCBTraceMissingError = PcbTraceMissingError;
|
|
2357
|
+
|
|
2292
2358
|
declare const pcb_port_not_matched_error: z.ZodObject<{
|
|
2293
2359
|
type: z.ZodLiteral<"pcb_port_not_matched_error">;
|
|
2294
2360
|
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -2328,6 +2394,45 @@ interface PcbPortNotMatchedError {
|
|
|
2328
2394
|
*/
|
|
2329
2395
|
type PCBPortNotMatchedError = PcbPortNotMatchedError;
|
|
2330
2396
|
|
|
2397
|
+
declare const pcb_port_not_connected_error: z.ZodObject<{
|
|
2398
|
+
type: z.ZodLiteral<"pcb_port_not_connected_error">;
|
|
2399
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2400
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_port_not_connected_error">>;
|
|
2401
|
+
message: z.ZodString;
|
|
2402
|
+
pcb_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
2403
|
+
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
2404
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
2405
|
+
}, "strip", z.ZodTypeAny, {
|
|
2406
|
+
message: string;
|
|
2407
|
+
type: "pcb_port_not_connected_error";
|
|
2408
|
+
error_type: "pcb_port_not_connected_error";
|
|
2409
|
+
pcb_component_ids: string[];
|
|
2410
|
+
pcb_port_ids: string[];
|
|
2411
|
+
pcb_error_id: string;
|
|
2412
|
+
subcircuit_id?: string | undefined;
|
|
2413
|
+
}, {
|
|
2414
|
+
message: string;
|
|
2415
|
+
type: "pcb_port_not_connected_error";
|
|
2416
|
+
pcb_component_ids: string[];
|
|
2417
|
+
pcb_port_ids: string[];
|
|
2418
|
+
subcircuit_id?: string | undefined;
|
|
2419
|
+
error_type?: "pcb_port_not_connected_error" | undefined;
|
|
2420
|
+
pcb_error_id?: string | undefined;
|
|
2421
|
+
}>;
|
|
2422
|
+
type PcbPortNotConnectedErrorInput = z.input<typeof pcb_port_not_connected_error>;
|
|
2423
|
+
/**
|
|
2424
|
+
* Defines an error when a pcb port is not connected to any trace
|
|
2425
|
+
*/
|
|
2426
|
+
interface PcbPortNotConnectedError {
|
|
2427
|
+
type: "pcb_port_not_connected_error";
|
|
2428
|
+
pcb_error_id: string;
|
|
2429
|
+
error_type: "pcb_port_not_connected_error";
|
|
2430
|
+
message: string;
|
|
2431
|
+
pcb_port_ids: string[];
|
|
2432
|
+
pcb_component_ids: string[];
|
|
2433
|
+
subcircuit_id?: string;
|
|
2434
|
+
}
|
|
2435
|
+
|
|
2331
2436
|
declare const pcb_via: z.ZodObject<{
|
|
2332
2437
|
type: z.ZodLiteral<"pcb_via">;
|
|
2333
2438
|
pcb_via_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -4077,7 +4182,7 @@ interface PcbThermalSpoke {
|
|
|
4077
4182
|
subcircuit_id?: string;
|
|
4078
4183
|
}
|
|
4079
4184
|
|
|
4080
|
-
type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbMissingFootprintError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke;
|
|
4185
|
+
type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbTraceMissingError | PcbMissingFootprintError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbPortNotConnectedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbFootprintOverlapError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke;
|
|
4081
4186
|
|
|
4082
4187
|
interface SchematicBox {
|
|
4083
4188
|
type: "schematic_box";
|
|
@@ -12038,6 +12143,51 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12038
12143
|
subcircuit_id?: string | undefined;
|
|
12039
12144
|
pcb_trace_error_id?: string | undefined;
|
|
12040
12145
|
error_type?: "pcb_trace_error" | undefined;
|
|
12146
|
+
}>, z.ZodObject<{
|
|
12147
|
+
type: z.ZodLiteral<"pcb_trace_missing_error">;
|
|
12148
|
+
pcb_trace_missing_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12149
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_trace_missing_error">>;
|
|
12150
|
+
message: z.ZodString;
|
|
12151
|
+
center: z.ZodOptional<z.ZodObject<{
|
|
12152
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
12153
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
12154
|
+
}, "strip", z.ZodTypeAny, {
|
|
12155
|
+
x: number;
|
|
12156
|
+
y: number;
|
|
12157
|
+
}, {
|
|
12158
|
+
x: string | number;
|
|
12159
|
+
y: string | number;
|
|
12160
|
+
}>>;
|
|
12161
|
+
source_trace_id: z.ZodString;
|
|
12162
|
+
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
12163
|
+
pcb_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
12164
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
12165
|
+
}, "strip", z.ZodTypeAny, {
|
|
12166
|
+
message: string;
|
|
12167
|
+
type: "pcb_trace_missing_error";
|
|
12168
|
+
source_trace_id: string;
|
|
12169
|
+
error_type: "pcb_trace_missing_error";
|
|
12170
|
+
pcb_component_ids: string[];
|
|
12171
|
+
pcb_port_ids: string[];
|
|
12172
|
+
pcb_trace_missing_error_id: string;
|
|
12173
|
+
center?: {
|
|
12174
|
+
x: number;
|
|
12175
|
+
y: number;
|
|
12176
|
+
} | undefined;
|
|
12177
|
+
subcircuit_id?: string | undefined;
|
|
12178
|
+
}, {
|
|
12179
|
+
message: string;
|
|
12180
|
+
type: "pcb_trace_missing_error";
|
|
12181
|
+
source_trace_id: string;
|
|
12182
|
+
pcb_component_ids: string[];
|
|
12183
|
+
pcb_port_ids: string[];
|
|
12184
|
+
center?: {
|
|
12185
|
+
x: string | number;
|
|
12186
|
+
y: string | number;
|
|
12187
|
+
} | undefined;
|
|
12188
|
+
subcircuit_id?: string | undefined;
|
|
12189
|
+
error_type?: "pcb_trace_missing_error" | undefined;
|
|
12190
|
+
pcb_trace_missing_error_id?: string | undefined;
|
|
12041
12191
|
}>, z.ZodObject<{
|
|
12042
12192
|
type: z.ZodLiteral<"pcb_placement_error">;
|
|
12043
12193
|
pcb_placement_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -12077,6 +12227,30 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12077
12227
|
subcircuit_id?: string | undefined;
|
|
12078
12228
|
error_type?: "pcb_port_not_matched_error" | undefined;
|
|
12079
12229
|
pcb_error_id?: string | undefined;
|
|
12230
|
+
}>, z.ZodObject<{
|
|
12231
|
+
type: z.ZodLiteral<"pcb_port_not_connected_error">;
|
|
12232
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
12233
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_port_not_connected_error">>;
|
|
12234
|
+
message: z.ZodString;
|
|
12235
|
+
pcb_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
12236
|
+
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
12237
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
12238
|
+
}, "strip", z.ZodTypeAny, {
|
|
12239
|
+
message: string;
|
|
12240
|
+
type: "pcb_port_not_connected_error";
|
|
12241
|
+
error_type: "pcb_port_not_connected_error";
|
|
12242
|
+
pcb_component_ids: string[];
|
|
12243
|
+
pcb_port_ids: string[];
|
|
12244
|
+
pcb_error_id: string;
|
|
12245
|
+
subcircuit_id?: string | undefined;
|
|
12246
|
+
}, {
|
|
12247
|
+
message: string;
|
|
12248
|
+
type: "pcb_port_not_connected_error";
|
|
12249
|
+
pcb_component_ids: string[];
|
|
12250
|
+
pcb_port_ids: string[];
|
|
12251
|
+
subcircuit_id?: string | undefined;
|
|
12252
|
+
error_type?: "pcb_port_not_connected_error" | undefined;
|
|
12253
|
+
pcb_error_id?: string | undefined;
|
|
12080
12254
|
}>, z.ZodObject<{
|
|
12081
12255
|
type: z.ZodLiteral<"pcb_fabrication_note_path">;
|
|
12082
12256
|
pcb_fabrication_note_path_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -17405,6 +17579,51 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17405
17579
|
subcircuit_id?: string | undefined;
|
|
17406
17580
|
pcb_trace_error_id?: string | undefined;
|
|
17407
17581
|
error_type?: "pcb_trace_error" | undefined;
|
|
17582
|
+
}>, z.ZodObject<{
|
|
17583
|
+
type: z.ZodLiteral<"pcb_trace_missing_error">;
|
|
17584
|
+
pcb_trace_missing_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17585
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_trace_missing_error">>;
|
|
17586
|
+
message: z.ZodString;
|
|
17587
|
+
center: z.ZodOptional<z.ZodObject<{
|
|
17588
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
17589
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
17590
|
+
}, "strip", z.ZodTypeAny, {
|
|
17591
|
+
x: number;
|
|
17592
|
+
y: number;
|
|
17593
|
+
}, {
|
|
17594
|
+
x: string | number;
|
|
17595
|
+
y: string | number;
|
|
17596
|
+
}>>;
|
|
17597
|
+
source_trace_id: z.ZodString;
|
|
17598
|
+
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
17599
|
+
pcb_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
17600
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
17601
|
+
}, "strip", z.ZodTypeAny, {
|
|
17602
|
+
message: string;
|
|
17603
|
+
type: "pcb_trace_missing_error";
|
|
17604
|
+
source_trace_id: string;
|
|
17605
|
+
error_type: "pcb_trace_missing_error";
|
|
17606
|
+
pcb_component_ids: string[];
|
|
17607
|
+
pcb_port_ids: string[];
|
|
17608
|
+
pcb_trace_missing_error_id: string;
|
|
17609
|
+
center?: {
|
|
17610
|
+
x: number;
|
|
17611
|
+
y: number;
|
|
17612
|
+
} | undefined;
|
|
17613
|
+
subcircuit_id?: string | undefined;
|
|
17614
|
+
}, {
|
|
17615
|
+
message: string;
|
|
17616
|
+
type: "pcb_trace_missing_error";
|
|
17617
|
+
source_trace_id: string;
|
|
17618
|
+
pcb_component_ids: string[];
|
|
17619
|
+
pcb_port_ids: string[];
|
|
17620
|
+
center?: {
|
|
17621
|
+
x: string | number;
|
|
17622
|
+
y: string | number;
|
|
17623
|
+
} | undefined;
|
|
17624
|
+
subcircuit_id?: string | undefined;
|
|
17625
|
+
error_type?: "pcb_trace_missing_error" | undefined;
|
|
17626
|
+
pcb_trace_missing_error_id?: string | undefined;
|
|
17408
17627
|
}>, z.ZodObject<{
|
|
17409
17628
|
type: z.ZodLiteral<"pcb_placement_error">;
|
|
17410
17629
|
pcb_placement_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -17444,6 +17663,30 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17444
17663
|
subcircuit_id?: string | undefined;
|
|
17445
17664
|
error_type?: "pcb_port_not_matched_error" | undefined;
|
|
17446
17665
|
pcb_error_id?: string | undefined;
|
|
17666
|
+
}>, z.ZodObject<{
|
|
17667
|
+
type: z.ZodLiteral<"pcb_port_not_connected_error">;
|
|
17668
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17669
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_port_not_connected_error">>;
|
|
17670
|
+
message: z.ZodString;
|
|
17671
|
+
pcb_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
17672
|
+
pcb_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
17673
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
17674
|
+
}, "strip", z.ZodTypeAny, {
|
|
17675
|
+
message: string;
|
|
17676
|
+
type: "pcb_port_not_connected_error";
|
|
17677
|
+
error_type: "pcb_port_not_connected_error";
|
|
17678
|
+
pcb_component_ids: string[];
|
|
17679
|
+
pcb_port_ids: string[];
|
|
17680
|
+
pcb_error_id: string;
|
|
17681
|
+
subcircuit_id?: string | undefined;
|
|
17682
|
+
}, {
|
|
17683
|
+
message: string;
|
|
17684
|
+
type: "pcb_port_not_connected_error";
|
|
17685
|
+
pcb_component_ids: string[];
|
|
17686
|
+
pcb_port_ids: string[];
|
|
17687
|
+
subcircuit_id?: string | undefined;
|
|
17688
|
+
error_type?: "pcb_port_not_connected_error" | undefined;
|
|
17689
|
+
pcb_error_id?: string | undefined;
|
|
17447
17690
|
}>, z.ZodObject<{
|
|
17448
17691
|
type: z.ZodLiteral<"pcb_fabrication_note_path">;
|
|
17449
17692
|
pcb_fabrication_note_path_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -19015,4 +19258,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
19015
19258
|
*/
|
|
19016
19259
|
type CircuitJson = AnyCircuitElement[];
|
|
19017
19260
|
|
|
19018
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage };
|
|
19261
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBTraceMissingError, type PCBVia, type PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbBreakoutPoint, type PcbBreakoutPointInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotConnectedError, type PcbPortNotConnectedErrorInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceMissingError, type PcbTraceMissingErrorInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicGroup, type SchematicGroupInput, type SchematicLayoutError, type SchematicLayoutErrorInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleLed, type SourceSimpleLedInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_warning, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_connected_error, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_thermal_spoke, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_missing_error, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_group, schematic_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_led, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage };
|