circuit-json 0.0.219 → 0.0.221
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 +21 -0
- package/dist/index.d.mts +108 -3
- package/dist/index.mjs +124 -105
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -80,6 +80,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
80
80
|
- [PcbCutout](#pcbcutout)
|
|
81
81
|
- [PcbFabricationNotePath](#pcbfabricationnotepath)
|
|
82
82
|
- [PcbFabricationNoteText](#pcbfabricationnotetext)
|
|
83
|
+
- [PcbFootprintOverlapError](#pcbfootprintoverlaperror)
|
|
83
84
|
- [PcbGroundPlane](#pcbgroundplane)
|
|
84
85
|
- [PcbGroundPlaneRegion](#pcbgroundplaneregion)
|
|
85
86
|
- [PcbGroup](#pcbgroup)
|
|
@@ -253,6 +254,7 @@ interface SourceGroup {
|
|
|
253
254
|
source_group_id: string
|
|
254
255
|
subcircuit_id?: string
|
|
255
256
|
parent_subcircuit_id?: string
|
|
257
|
+
parent_source_group_id?: string
|
|
256
258
|
is_subcircuit?: boolean
|
|
257
259
|
name?: string
|
|
258
260
|
}
|
|
@@ -764,6 +766,25 @@ interface PcbFabricationNoteText {
|
|
|
764
766
|
}
|
|
765
767
|
```
|
|
766
768
|
|
|
769
|
+
### PcbFootprintOverlapError
|
|
770
|
+
|
|
771
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_footprint_overlap_error.ts)
|
|
772
|
+
|
|
773
|
+
Error emitted when a pcb footprint overlaps with another element
|
|
774
|
+
|
|
775
|
+
```typescript
|
|
776
|
+
/** Error emitted when a pcb footprint overlaps with another element */ interface PcbFootprintOverlapError {
|
|
777
|
+
type: "pcb_footprint_overlap_error"
|
|
778
|
+
pcb_error_id: string
|
|
779
|
+
error_type: "pcb_footprint_overlap_error"
|
|
780
|
+
message: string
|
|
781
|
+
pcb_smtpad_ids?: string[]
|
|
782
|
+
pcb_plated_hole_ids?: string[]
|
|
783
|
+
pcb_hole_ids?: string[]
|
|
784
|
+
pcb_keepout_ids?: string[]
|
|
785
|
+
}
|
|
786
|
+
```
|
|
787
|
+
|
|
767
788
|
### PcbGroundPlane
|
|
768
789
|
|
|
769
790
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_ground_plane.ts)
|
package/dist/index.d.mts
CHANGED
|
@@ -3047,6 +3047,47 @@ interface PcbFabricationNotePath {
|
|
|
3047
3047
|
*/
|
|
3048
3048
|
type PCBFabricationNotePath = PcbFabricationNotePath;
|
|
3049
3049
|
|
|
3050
|
+
declare const pcb_footprint_overlap_error: z.ZodObject<{
|
|
3051
|
+
type: z.ZodLiteral<"pcb_footprint_overlap_error">;
|
|
3052
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
3053
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_footprint_overlap_error">>;
|
|
3054
|
+
message: z.ZodString;
|
|
3055
|
+
pcb_smtpad_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3056
|
+
pcb_plated_hole_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3057
|
+
pcb_hole_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3058
|
+
pcb_keepout_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3059
|
+
}, "strip", z.ZodTypeAny, {
|
|
3060
|
+
message: string;
|
|
3061
|
+
type: "pcb_footprint_overlap_error";
|
|
3062
|
+
error_type: "pcb_footprint_overlap_error";
|
|
3063
|
+
pcb_error_id: string;
|
|
3064
|
+
pcb_smtpad_ids?: string[] | undefined;
|
|
3065
|
+
pcb_plated_hole_ids?: string[] | undefined;
|
|
3066
|
+
pcb_hole_ids?: string[] | undefined;
|
|
3067
|
+
pcb_keepout_ids?: string[] | undefined;
|
|
3068
|
+
}, {
|
|
3069
|
+
message: string;
|
|
3070
|
+
type: "pcb_footprint_overlap_error";
|
|
3071
|
+
error_type?: "pcb_footprint_overlap_error" | undefined;
|
|
3072
|
+
pcb_error_id?: string | undefined;
|
|
3073
|
+
pcb_smtpad_ids?: string[] | undefined;
|
|
3074
|
+
pcb_plated_hole_ids?: string[] | undefined;
|
|
3075
|
+
pcb_hole_ids?: string[] | undefined;
|
|
3076
|
+
pcb_keepout_ids?: string[] | undefined;
|
|
3077
|
+
}>;
|
|
3078
|
+
type PcbFootprintOverlapErrorInput = z.input<typeof pcb_footprint_overlap_error>;
|
|
3079
|
+
/** Error emitted when a pcb footprint overlaps with another element */
|
|
3080
|
+
interface PcbFootprintOverlapError {
|
|
3081
|
+
type: "pcb_footprint_overlap_error";
|
|
3082
|
+
pcb_error_id: string;
|
|
3083
|
+
error_type: "pcb_footprint_overlap_error";
|
|
3084
|
+
message: string;
|
|
3085
|
+
pcb_smtpad_ids?: string[];
|
|
3086
|
+
pcb_plated_hole_ids?: string[];
|
|
3087
|
+
pcb_hole_ids?: string[];
|
|
3088
|
+
pcb_keepout_ids?: string[];
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3050
3091
|
declare const pcb_keepout: z.ZodUnion<[z.ZodObject<{
|
|
3051
3092
|
type: z.ZodLiteral<"pcb_keepout">;
|
|
3052
3093
|
shape: z.ZodLiteral<"rect">;
|
|
@@ -3863,7 +3904,7 @@ interface PcbThermalSpoke {
|
|
|
3863
3904
|
subcircuit_id?: string;
|
|
3864
3905
|
}
|
|
3865
3906
|
|
|
3866
|
-
type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbMissingFootprintError | PcbManualEditConflictWarning | PcbPortNotMatchedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle | PcbAutoroutingError | PcbCutout | PcbBreakoutPoint | PcbGroundPlane | PcbGroundPlaneRegion | PcbThermalSpoke;
|
|
3907
|
+
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;
|
|
3867
3908
|
|
|
3868
3909
|
interface SchematicBox {
|
|
3869
3910
|
type: "schematic_box";
|
|
@@ -5539,7 +5580,7 @@ interface SchematicTableCell {
|
|
|
5539
5580
|
subcircuit_id?: string;
|
|
5540
5581
|
}
|
|
5541
5582
|
|
|
5542
|
-
type CircuitJsonError = PcbTraceError | PcbPlacementError | PcbPortNotMatchedError | PcbAutoroutingError | PcbMissingFootprintError | SchematicError;
|
|
5583
|
+
type CircuitJsonError = PcbTraceError | PcbPlacementError | PcbPortNotMatchedError | PcbAutoroutingError | PcbFootprintOverlapError | PcbMissingFootprintError | SchematicError;
|
|
5543
5584
|
|
|
5544
5585
|
interface SourceComponentBase {
|
|
5545
5586
|
type: "source_component";
|
|
@@ -7689,6 +7730,7 @@ declare const source_group: z.ZodObject<{
|
|
|
7689
7730
|
source_group_id: z.ZodString;
|
|
7690
7731
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
7691
7732
|
parent_subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
7733
|
+
parent_source_group_id: z.ZodOptional<z.ZodString>;
|
|
7692
7734
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
7693
7735
|
name: z.ZodOptional<z.ZodString>;
|
|
7694
7736
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -7698,6 +7740,7 @@ declare const source_group: z.ZodObject<{
|
|
|
7698
7740
|
subcircuit_id?: string | undefined;
|
|
7699
7741
|
is_subcircuit?: boolean | undefined;
|
|
7700
7742
|
parent_subcircuit_id?: string | undefined;
|
|
7743
|
+
parent_source_group_id?: string | undefined;
|
|
7701
7744
|
}, {
|
|
7702
7745
|
type: "source_group";
|
|
7703
7746
|
source_group_id: string;
|
|
@@ -7705,6 +7748,7 @@ declare const source_group: z.ZodObject<{
|
|
|
7705
7748
|
subcircuit_id?: string | undefined;
|
|
7706
7749
|
is_subcircuit?: boolean | undefined;
|
|
7707
7750
|
parent_subcircuit_id?: string | undefined;
|
|
7751
|
+
parent_source_group_id?: string | undefined;
|
|
7708
7752
|
}>;
|
|
7709
7753
|
type SourceGroupInput = z.input<typeof source_group>;
|
|
7710
7754
|
interface SourceGroup {
|
|
@@ -7712,6 +7756,7 @@ interface SourceGroup {
|
|
|
7712
7756
|
source_group_id: string;
|
|
7713
7757
|
subcircuit_id?: string;
|
|
7714
7758
|
parent_subcircuit_id?: string;
|
|
7759
|
+
parent_source_group_id?: string;
|
|
7715
7760
|
is_subcircuit?: boolean;
|
|
7716
7761
|
name?: string;
|
|
7717
7762
|
}
|
|
@@ -8929,6 +8974,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8929
8974
|
source_group_id: z.ZodString;
|
|
8930
8975
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
8931
8976
|
parent_subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
8977
|
+
parent_source_group_id: z.ZodOptional<z.ZodString>;
|
|
8932
8978
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
8933
8979
|
name: z.ZodOptional<z.ZodString>;
|
|
8934
8980
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -8938,6 +8984,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8938
8984
|
subcircuit_id?: string | undefined;
|
|
8939
8985
|
is_subcircuit?: boolean | undefined;
|
|
8940
8986
|
parent_subcircuit_id?: string | undefined;
|
|
8987
|
+
parent_source_group_id?: string | undefined;
|
|
8941
8988
|
}, {
|
|
8942
8989
|
type: "source_group";
|
|
8943
8990
|
source_group_id: string;
|
|
@@ -8945,6 +8992,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8945
8992
|
subcircuit_id?: string | undefined;
|
|
8946
8993
|
is_subcircuit?: boolean | undefined;
|
|
8947
8994
|
parent_subcircuit_id?: string | undefined;
|
|
8995
|
+
parent_source_group_id?: string | undefined;
|
|
8948
8996
|
}>, z.ZodObject<{
|
|
8949
8997
|
type: z.ZodLiteral<"source_component">;
|
|
8950
8998
|
source_component_id: z.ZodString;
|
|
@@ -11672,6 +11720,33 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11672
11720
|
subcircuit_id?: string | undefined;
|
|
11673
11721
|
error_type?: "pcb_autorouting_error" | undefined;
|
|
11674
11722
|
pcb_error_id?: string | undefined;
|
|
11723
|
+
}>, z.ZodObject<{
|
|
11724
|
+
type: z.ZodLiteral<"pcb_footprint_overlap_error">;
|
|
11725
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
11726
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_footprint_overlap_error">>;
|
|
11727
|
+
message: z.ZodString;
|
|
11728
|
+
pcb_smtpad_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11729
|
+
pcb_plated_hole_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11730
|
+
pcb_hole_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11731
|
+
pcb_keepout_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11732
|
+
}, "strip", z.ZodTypeAny, {
|
|
11733
|
+
message: string;
|
|
11734
|
+
type: "pcb_footprint_overlap_error";
|
|
11735
|
+
error_type: "pcb_footprint_overlap_error";
|
|
11736
|
+
pcb_error_id: string;
|
|
11737
|
+
pcb_smtpad_ids?: string[] | undefined;
|
|
11738
|
+
pcb_plated_hole_ids?: string[] | undefined;
|
|
11739
|
+
pcb_hole_ids?: string[] | undefined;
|
|
11740
|
+
pcb_keepout_ids?: string[] | undefined;
|
|
11741
|
+
}, {
|
|
11742
|
+
message: string;
|
|
11743
|
+
type: "pcb_footprint_overlap_error";
|
|
11744
|
+
error_type?: "pcb_footprint_overlap_error" | undefined;
|
|
11745
|
+
pcb_error_id?: string | undefined;
|
|
11746
|
+
pcb_smtpad_ids?: string[] | undefined;
|
|
11747
|
+
pcb_plated_hole_ids?: string[] | undefined;
|
|
11748
|
+
pcb_hole_ids?: string[] | undefined;
|
|
11749
|
+
pcb_keepout_ids?: string[] | undefined;
|
|
11675
11750
|
}>, z.ZodObject<{
|
|
11676
11751
|
type: z.ZodLiteral<"pcb_breakout_point">;
|
|
11677
11752
|
pcb_breakout_point_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -14051,6 +14126,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14051
14126
|
source_group_id: z.ZodString;
|
|
14052
14127
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14053
14128
|
parent_subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14129
|
+
parent_source_group_id: z.ZodOptional<z.ZodString>;
|
|
14054
14130
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
14055
14131
|
name: z.ZodOptional<z.ZodString>;
|
|
14056
14132
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -14060,6 +14136,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14060
14136
|
subcircuit_id?: string | undefined;
|
|
14061
14137
|
is_subcircuit?: boolean | undefined;
|
|
14062
14138
|
parent_subcircuit_id?: string | undefined;
|
|
14139
|
+
parent_source_group_id?: string | undefined;
|
|
14063
14140
|
}, {
|
|
14064
14141
|
type: "source_group";
|
|
14065
14142
|
source_group_id: string;
|
|
@@ -14067,6 +14144,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14067
14144
|
subcircuit_id?: string | undefined;
|
|
14068
14145
|
is_subcircuit?: boolean | undefined;
|
|
14069
14146
|
parent_subcircuit_id?: string | undefined;
|
|
14147
|
+
parent_source_group_id?: string | undefined;
|
|
14070
14148
|
}>, z.ZodObject<{
|
|
14071
14149
|
type: z.ZodLiteral<"source_component">;
|
|
14072
14150
|
source_component_id: z.ZodString;
|
|
@@ -16794,6 +16872,33 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16794
16872
|
subcircuit_id?: string | undefined;
|
|
16795
16873
|
error_type?: "pcb_autorouting_error" | undefined;
|
|
16796
16874
|
pcb_error_id?: string | undefined;
|
|
16875
|
+
}>, z.ZodObject<{
|
|
16876
|
+
type: z.ZodLiteral<"pcb_footprint_overlap_error">;
|
|
16877
|
+
pcb_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16878
|
+
error_type: z.ZodDefault<z.ZodLiteral<"pcb_footprint_overlap_error">>;
|
|
16879
|
+
message: z.ZodString;
|
|
16880
|
+
pcb_smtpad_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16881
|
+
pcb_plated_hole_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16882
|
+
pcb_hole_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16883
|
+
pcb_keepout_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
16884
|
+
}, "strip", z.ZodTypeAny, {
|
|
16885
|
+
message: string;
|
|
16886
|
+
type: "pcb_footprint_overlap_error";
|
|
16887
|
+
error_type: "pcb_footprint_overlap_error";
|
|
16888
|
+
pcb_error_id: string;
|
|
16889
|
+
pcb_smtpad_ids?: string[] | undefined;
|
|
16890
|
+
pcb_plated_hole_ids?: string[] | undefined;
|
|
16891
|
+
pcb_hole_ids?: string[] | undefined;
|
|
16892
|
+
pcb_keepout_ids?: string[] | undefined;
|
|
16893
|
+
}, {
|
|
16894
|
+
message: string;
|
|
16895
|
+
type: "pcb_footprint_overlap_error";
|
|
16896
|
+
error_type?: "pcb_footprint_overlap_error" | undefined;
|
|
16897
|
+
pcb_error_id?: string | undefined;
|
|
16898
|
+
pcb_smtpad_ids?: string[] | undefined;
|
|
16899
|
+
pcb_plated_hole_ids?: string[] | undefined;
|
|
16900
|
+
pcb_hole_ids?: string[] | undefined;
|
|
16901
|
+
pcb_keepout_ids?: string[] | undefined;
|
|
16797
16902
|
}>, z.ZodObject<{
|
|
16798
16903
|
type: z.ZodLiteral<"pcb_breakout_point">;
|
|
16799
16904
|
pcb_breakout_point_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -18190,4 +18295,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
18190
18295
|
*/
|
|
18191
18296
|
type CircuitJson = AnyCircuitElement[];
|
|
18192
18297
|
|
|
18193
|
-
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 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 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 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 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 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_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, 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, supplier_name, time, visible_layer, voltage };
|
|
18298
|
+
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 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 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 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 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, 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, supplier_name, time, visible_layer, voltage };
|
package/dist/index.mjs
CHANGED
|
@@ -612,6 +612,7 @@ var source_group = z34.object({
|
|
|
612
612
|
source_group_id: z34.string(),
|
|
613
613
|
subcircuit_id: z34.string().optional(),
|
|
614
614
|
parent_subcircuit_id: z34.string().optional(),
|
|
615
|
+
parent_source_group_id: z34.string().optional(),
|
|
615
616
|
is_subcircuit: z34.boolean().optional(),
|
|
616
617
|
name: z34.string().optional()
|
|
617
618
|
});
|
|
@@ -1647,48 +1648,64 @@ var pcb_fabrication_note_path = z78.object({
|
|
|
1647
1648
|
);
|
|
1648
1649
|
expectTypesMatch(true);
|
|
1649
1650
|
|
|
1650
|
-
// src/pcb/
|
|
1651
|
+
// src/pcb/pcb_footprint_overlap_error.ts
|
|
1651
1652
|
import { z as z79 } from "zod";
|
|
1652
|
-
var
|
|
1653
|
-
type: z79.literal("
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1653
|
+
var pcb_footprint_overlap_error = z79.object({
|
|
1654
|
+
type: z79.literal("pcb_footprint_overlap_error"),
|
|
1655
|
+
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
1656
|
+
error_type: z79.literal("pcb_footprint_overlap_error").default("pcb_footprint_overlap_error"),
|
|
1657
|
+
message: z79.string(),
|
|
1658
|
+
pcb_smtpad_ids: z79.array(z79.string()).optional(),
|
|
1659
|
+
pcb_plated_hole_ids: z79.array(z79.string()).optional(),
|
|
1660
|
+
pcb_hole_ids: z79.array(z79.string()).optional(),
|
|
1661
|
+
pcb_keepout_ids: z79.array(z79.string()).optional()
|
|
1662
|
+
}).describe("Error emitted when a pcb footprint overlaps with another element");
|
|
1663
|
+
expectTypesMatch(
|
|
1664
|
+
true
|
|
1665
|
+
);
|
|
1666
|
+
|
|
1667
|
+
// src/pcb/pcb_keepout.ts
|
|
1668
|
+
import { z as z80 } from "zod";
|
|
1669
|
+
var pcb_keepout = z80.object({
|
|
1670
|
+
type: z80.literal("pcb_keepout"),
|
|
1671
|
+
shape: z80.literal("rect"),
|
|
1672
|
+
pcb_group_id: z80.string().optional(),
|
|
1673
|
+
subcircuit_id: z80.string().optional(),
|
|
1657
1674
|
center: point,
|
|
1658
1675
|
width: distance,
|
|
1659
1676
|
height: distance,
|
|
1660
|
-
pcb_keepout_id:
|
|
1661
|
-
layers:
|
|
1677
|
+
pcb_keepout_id: z80.string(),
|
|
1678
|
+
layers: z80.array(z80.string()),
|
|
1662
1679
|
// Specify layers where the keepout applies
|
|
1663
|
-
description:
|
|
1680
|
+
description: z80.string().optional()
|
|
1664
1681
|
// Optional description of the keepout
|
|
1665
1682
|
}).or(
|
|
1666
|
-
|
|
1667
|
-
type:
|
|
1668
|
-
shape:
|
|
1669
|
-
pcb_group_id:
|
|
1670
|
-
subcircuit_id:
|
|
1683
|
+
z80.object({
|
|
1684
|
+
type: z80.literal("pcb_keepout"),
|
|
1685
|
+
shape: z80.literal("circle"),
|
|
1686
|
+
pcb_group_id: z80.string().optional(),
|
|
1687
|
+
subcircuit_id: z80.string().optional(),
|
|
1671
1688
|
center: point,
|
|
1672
1689
|
radius: distance,
|
|
1673
|
-
pcb_keepout_id:
|
|
1674
|
-
layers:
|
|
1690
|
+
pcb_keepout_id: z80.string(),
|
|
1691
|
+
layers: z80.array(z80.string()),
|
|
1675
1692
|
// Specify layers where the keepout applies
|
|
1676
|
-
description:
|
|
1693
|
+
description: z80.string().optional()
|
|
1677
1694
|
// Optional description of the keepout
|
|
1678
1695
|
})
|
|
1679
1696
|
);
|
|
1680
1697
|
expectTypesMatch(true);
|
|
1681
1698
|
|
|
1682
1699
|
// src/pcb/pcb_cutout.ts
|
|
1683
|
-
import { z as
|
|
1684
|
-
var pcb_cutout_base =
|
|
1685
|
-
type:
|
|
1700
|
+
import { z as z81 } from "zod";
|
|
1701
|
+
var pcb_cutout_base = z81.object({
|
|
1702
|
+
type: z81.literal("pcb_cutout"),
|
|
1686
1703
|
pcb_cutout_id: getZodPrefixedIdWithDefault("pcb_cutout"),
|
|
1687
|
-
pcb_group_id:
|
|
1688
|
-
subcircuit_id:
|
|
1704
|
+
pcb_group_id: z81.string().optional(),
|
|
1705
|
+
subcircuit_id: z81.string().optional()
|
|
1689
1706
|
});
|
|
1690
1707
|
var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
1691
|
-
shape:
|
|
1708
|
+
shape: z81.literal("rect"),
|
|
1692
1709
|
center: point,
|
|
1693
1710
|
width: length,
|
|
1694
1711
|
height: length,
|
|
@@ -1696,17 +1713,17 @@ var pcb_cutout_rect = pcb_cutout_base.extend({
|
|
|
1696
1713
|
});
|
|
1697
1714
|
expectTypesMatch(true);
|
|
1698
1715
|
var pcb_cutout_circle = pcb_cutout_base.extend({
|
|
1699
|
-
shape:
|
|
1716
|
+
shape: z81.literal("circle"),
|
|
1700
1717
|
center: point,
|
|
1701
1718
|
radius: length
|
|
1702
1719
|
});
|
|
1703
1720
|
expectTypesMatch(true);
|
|
1704
1721
|
var pcb_cutout_polygon = pcb_cutout_base.extend({
|
|
1705
|
-
shape:
|
|
1706
|
-
points:
|
|
1722
|
+
shape: z81.literal("polygon"),
|
|
1723
|
+
points: z81.array(point)
|
|
1707
1724
|
});
|
|
1708
1725
|
expectTypesMatch(true);
|
|
1709
|
-
var pcb_cutout =
|
|
1726
|
+
var pcb_cutout = z81.discriminatedUnion("shape", [
|
|
1710
1727
|
pcb_cutout_rect,
|
|
1711
1728
|
pcb_cutout_circle,
|
|
1712
1729
|
pcb_cutout_polygon
|
|
@@ -1714,82 +1731,82 @@ var pcb_cutout = z80.discriminatedUnion("shape", [
|
|
|
1714
1731
|
expectTypesMatch(true);
|
|
1715
1732
|
|
|
1716
1733
|
// src/pcb/pcb_missing_footprint_error.ts
|
|
1717
|
-
import { z as
|
|
1718
|
-
var pcb_missing_footprint_error =
|
|
1719
|
-
type:
|
|
1734
|
+
import { z as z82 } from "zod";
|
|
1735
|
+
var pcb_missing_footprint_error = z82.object({
|
|
1736
|
+
type: z82.literal("pcb_missing_footprint_error"),
|
|
1720
1737
|
pcb_missing_footprint_error_id: getZodPrefixedIdWithDefault(
|
|
1721
1738
|
"pcb_missing_footprint_error"
|
|
1722
1739
|
),
|
|
1723
|
-
pcb_group_id:
|
|
1724
|
-
subcircuit_id:
|
|
1725
|
-
error_type:
|
|
1726
|
-
source_component_id:
|
|
1727
|
-
message:
|
|
1740
|
+
pcb_group_id: z82.string().optional(),
|
|
1741
|
+
subcircuit_id: z82.string().optional(),
|
|
1742
|
+
error_type: z82.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
|
|
1743
|
+
source_component_id: z82.string(),
|
|
1744
|
+
message: z82.string()
|
|
1728
1745
|
}).describe("Defines a missing footprint error on the PCB");
|
|
1729
1746
|
expectTypesMatch(
|
|
1730
1747
|
true
|
|
1731
1748
|
);
|
|
1732
1749
|
|
|
1733
1750
|
// src/pcb/pcb_group.ts
|
|
1734
|
-
import { z as
|
|
1735
|
-
var pcb_group =
|
|
1736
|
-
type:
|
|
1751
|
+
import { z as z83 } from "zod";
|
|
1752
|
+
var pcb_group = z83.object({
|
|
1753
|
+
type: z83.literal("pcb_group"),
|
|
1737
1754
|
pcb_group_id: getZodPrefixedIdWithDefault("pcb_group"),
|
|
1738
|
-
source_group_id:
|
|
1739
|
-
is_subcircuit:
|
|
1740
|
-
subcircuit_id:
|
|
1755
|
+
source_group_id: z83.string(),
|
|
1756
|
+
is_subcircuit: z83.boolean().optional(),
|
|
1757
|
+
subcircuit_id: z83.string().optional(),
|
|
1741
1758
|
width: length,
|
|
1742
1759
|
height: length,
|
|
1743
1760
|
center: point,
|
|
1744
|
-
pcb_component_ids:
|
|
1745
|
-
name:
|
|
1746
|
-
description:
|
|
1747
|
-
autorouter_configuration:
|
|
1761
|
+
pcb_component_ids: z83.array(z83.string()),
|
|
1762
|
+
name: z83.string().optional(),
|
|
1763
|
+
description: z83.string().optional(),
|
|
1764
|
+
autorouter_configuration: z83.object({
|
|
1748
1765
|
trace_clearance: length
|
|
1749
1766
|
}).optional(),
|
|
1750
|
-
autorouter_used_string:
|
|
1767
|
+
autorouter_used_string: z83.string().optional()
|
|
1751
1768
|
}).describe("Defines a group of components on the PCB");
|
|
1752
1769
|
expectTypesMatch(true);
|
|
1753
1770
|
|
|
1754
1771
|
// src/pcb/pcb_autorouting_error.ts
|
|
1755
|
-
import { z as
|
|
1756
|
-
var pcb_autorouting_error =
|
|
1757
|
-
type:
|
|
1772
|
+
import { z as z84 } from "zod";
|
|
1773
|
+
var pcb_autorouting_error = z84.object({
|
|
1774
|
+
type: z84.literal("pcb_autorouting_error"),
|
|
1758
1775
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
|
|
1759
|
-
error_type:
|
|
1760
|
-
message:
|
|
1761
|
-
subcircuit_id:
|
|
1776
|
+
error_type: z84.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
|
|
1777
|
+
message: z84.string(),
|
|
1778
|
+
subcircuit_id: z84.string().optional()
|
|
1762
1779
|
}).describe("The autorouting has failed to route a portion of the board");
|
|
1763
1780
|
expectTypesMatch(true);
|
|
1764
1781
|
|
|
1765
1782
|
// src/pcb/pcb_manual_edit_conflict_warning.ts
|
|
1766
|
-
import { z as
|
|
1767
|
-
var pcb_manual_edit_conflict_warning =
|
|
1768
|
-
type:
|
|
1783
|
+
import { z as z85 } from "zod";
|
|
1784
|
+
var pcb_manual_edit_conflict_warning = z85.object({
|
|
1785
|
+
type: z85.literal("pcb_manual_edit_conflict_warning"),
|
|
1769
1786
|
pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
|
|
1770
1787
|
"pcb_manual_edit_conflict_warning"
|
|
1771
1788
|
),
|
|
1772
|
-
warning_type:
|
|
1773
|
-
message:
|
|
1774
|
-
pcb_component_id:
|
|
1775
|
-
pcb_group_id:
|
|
1776
|
-
subcircuit_id:
|
|
1777
|
-
source_component_id:
|
|
1789
|
+
warning_type: z85.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
|
|
1790
|
+
message: z85.string(),
|
|
1791
|
+
pcb_component_id: z85.string(),
|
|
1792
|
+
pcb_group_id: z85.string().optional(),
|
|
1793
|
+
subcircuit_id: z85.string().optional(),
|
|
1794
|
+
source_component_id: z85.string()
|
|
1778
1795
|
}).describe(
|
|
1779
1796
|
"Warning emitted when a component has both manual placement and explicit pcbX/pcbY coordinates"
|
|
1780
1797
|
);
|
|
1781
1798
|
expectTypesMatch(true);
|
|
1782
1799
|
|
|
1783
1800
|
// src/pcb/pcb_breakout_point.ts
|
|
1784
|
-
import { z as
|
|
1785
|
-
var pcb_breakout_point =
|
|
1786
|
-
type:
|
|
1801
|
+
import { z as z86 } from "zod";
|
|
1802
|
+
var pcb_breakout_point = z86.object({
|
|
1803
|
+
type: z86.literal("pcb_breakout_point"),
|
|
1787
1804
|
pcb_breakout_point_id: getZodPrefixedIdWithDefault("pcb_breakout_point"),
|
|
1788
|
-
pcb_group_id:
|
|
1789
|
-
subcircuit_id:
|
|
1790
|
-
source_trace_id:
|
|
1791
|
-
source_port_id:
|
|
1792
|
-
source_net_id:
|
|
1805
|
+
pcb_group_id: z86.string(),
|
|
1806
|
+
subcircuit_id: z86.string().optional(),
|
|
1807
|
+
source_trace_id: z86.string().optional(),
|
|
1808
|
+
source_port_id: z86.string().optional(),
|
|
1809
|
+
source_net_id: z86.string().optional(),
|
|
1793
1810
|
x: distance,
|
|
1794
1811
|
y: distance
|
|
1795
1812
|
}).describe(
|
|
@@ -1798,72 +1815,72 @@ var pcb_breakout_point = z85.object({
|
|
|
1798
1815
|
expectTypesMatch(true);
|
|
1799
1816
|
|
|
1800
1817
|
// src/pcb/pcb_ground_plane.ts
|
|
1801
|
-
import { z as
|
|
1802
|
-
var pcb_ground_plane =
|
|
1803
|
-
type:
|
|
1818
|
+
import { z as z87 } from "zod";
|
|
1819
|
+
var pcb_ground_plane = z87.object({
|
|
1820
|
+
type: z87.literal("pcb_ground_plane"),
|
|
1804
1821
|
pcb_ground_plane_id: getZodPrefixedIdWithDefault("pcb_ground_plane"),
|
|
1805
|
-
source_pcb_ground_plane_id:
|
|
1806
|
-
source_net_id:
|
|
1807
|
-
pcb_group_id:
|
|
1808
|
-
subcircuit_id:
|
|
1822
|
+
source_pcb_ground_plane_id: z87.string(),
|
|
1823
|
+
source_net_id: z87.string(),
|
|
1824
|
+
pcb_group_id: z87.string().optional(),
|
|
1825
|
+
subcircuit_id: z87.string().optional()
|
|
1809
1826
|
}).describe("Defines a ground plane on the PCB");
|
|
1810
1827
|
expectTypesMatch(true);
|
|
1811
1828
|
|
|
1812
1829
|
// src/pcb/pcb_ground_plane_region.ts
|
|
1813
|
-
import { z as
|
|
1814
|
-
var pcb_ground_plane_region =
|
|
1815
|
-
type:
|
|
1830
|
+
import { z as z88 } from "zod";
|
|
1831
|
+
var pcb_ground_plane_region = z88.object({
|
|
1832
|
+
type: z88.literal("pcb_ground_plane_region"),
|
|
1816
1833
|
pcb_ground_plane_region_id: getZodPrefixedIdWithDefault(
|
|
1817
1834
|
"pcb_ground_plane_region"
|
|
1818
1835
|
),
|
|
1819
|
-
pcb_ground_plane_id:
|
|
1820
|
-
pcb_group_id:
|
|
1821
|
-
subcircuit_id:
|
|
1836
|
+
pcb_ground_plane_id: z88.string(),
|
|
1837
|
+
pcb_group_id: z88.string().optional(),
|
|
1838
|
+
subcircuit_id: z88.string().optional(),
|
|
1822
1839
|
layer: layer_ref,
|
|
1823
|
-
points:
|
|
1840
|
+
points: z88.array(point)
|
|
1824
1841
|
}).describe("Defines a polygon region of a ground plane");
|
|
1825
1842
|
expectTypesMatch(true);
|
|
1826
1843
|
|
|
1827
1844
|
// src/pcb/pcb_thermal_spoke.ts
|
|
1828
|
-
import { z as
|
|
1829
|
-
var pcb_thermal_spoke =
|
|
1830
|
-
type:
|
|
1845
|
+
import { z as z89 } from "zod";
|
|
1846
|
+
var pcb_thermal_spoke = z89.object({
|
|
1847
|
+
type: z89.literal("pcb_thermal_spoke"),
|
|
1831
1848
|
pcb_thermal_spoke_id: getZodPrefixedIdWithDefault("pcb_thermal_spoke"),
|
|
1832
|
-
pcb_ground_plane_id:
|
|
1833
|
-
shape:
|
|
1834
|
-
spoke_count:
|
|
1849
|
+
pcb_ground_plane_id: z89.string(),
|
|
1850
|
+
shape: z89.string(),
|
|
1851
|
+
spoke_count: z89.number(),
|
|
1835
1852
|
spoke_thickness: distance,
|
|
1836
1853
|
spoke_inner_diameter: distance,
|
|
1837
1854
|
spoke_outer_diameter: distance,
|
|
1838
|
-
pcb_plated_hole_id:
|
|
1839
|
-
subcircuit_id:
|
|
1855
|
+
pcb_plated_hole_id: z89.string().optional(),
|
|
1856
|
+
subcircuit_id: z89.string().optional()
|
|
1840
1857
|
}).describe("Pattern for connecting a ground plane to a plated hole");
|
|
1841
1858
|
expectTypesMatch(true);
|
|
1842
1859
|
|
|
1843
1860
|
// src/cad/cad_component.ts
|
|
1844
|
-
import { z as
|
|
1845
|
-
var cad_component =
|
|
1846
|
-
type:
|
|
1847
|
-
cad_component_id:
|
|
1848
|
-
pcb_component_id:
|
|
1849
|
-
source_component_id:
|
|
1861
|
+
import { z as z90 } from "zod";
|
|
1862
|
+
var cad_component = z90.object({
|
|
1863
|
+
type: z90.literal("cad_component"),
|
|
1864
|
+
cad_component_id: z90.string(),
|
|
1865
|
+
pcb_component_id: z90.string(),
|
|
1866
|
+
source_component_id: z90.string(),
|
|
1850
1867
|
position: point3,
|
|
1851
1868
|
rotation: point3.optional(),
|
|
1852
1869
|
size: point3.optional(),
|
|
1853
1870
|
layer: layer_ref.optional(),
|
|
1854
|
-
subcircuit_id:
|
|
1871
|
+
subcircuit_id: z90.string().optional(),
|
|
1855
1872
|
// These are all ways to generate/load the 3d model
|
|
1856
|
-
footprinter_string:
|
|
1857
|
-
model_obj_url:
|
|
1858
|
-
model_stl_url:
|
|
1859
|
-
model_3mf_url:
|
|
1860
|
-
model_jscad:
|
|
1873
|
+
footprinter_string: z90.string().optional(),
|
|
1874
|
+
model_obj_url: z90.string().optional(),
|
|
1875
|
+
model_stl_url: z90.string().optional(),
|
|
1876
|
+
model_3mf_url: z90.string().optional(),
|
|
1877
|
+
model_jscad: z90.any().optional()
|
|
1861
1878
|
}).describe("Defines a component on the PCB");
|
|
1862
1879
|
expectTypesMatch(true);
|
|
1863
1880
|
|
|
1864
1881
|
// src/any_circuit_element.ts
|
|
1865
|
-
import { z as
|
|
1866
|
-
var any_circuit_element =
|
|
1882
|
+
import { z as z91 } from "zod";
|
|
1883
|
+
var any_circuit_element = z91.union([
|
|
1867
1884
|
source_trace,
|
|
1868
1885
|
source_port,
|
|
1869
1886
|
any_source_component,
|
|
@@ -1914,6 +1931,7 @@ var any_circuit_element = z90.union([
|
|
|
1914
1931
|
pcb_fabrication_note_path,
|
|
1915
1932
|
pcb_fabrication_note_text,
|
|
1916
1933
|
pcb_autorouting_error,
|
|
1934
|
+
pcb_footprint_overlap_error,
|
|
1917
1935
|
pcb_breakout_point,
|
|
1918
1936
|
pcb_cutout,
|
|
1919
1937
|
pcb_ground_plane,
|
|
@@ -1967,6 +1985,7 @@ export {
|
|
|
1967
1985
|
pcb_cutout_rect,
|
|
1968
1986
|
pcb_fabrication_note_path,
|
|
1969
1987
|
pcb_fabrication_note_text,
|
|
1988
|
+
pcb_footprint_overlap_error,
|
|
1970
1989
|
pcb_ground_plane,
|
|
1971
1990
|
pcb_ground_plane_region,
|
|
1972
1991
|
pcb_group,
|