circuit-json 0.0.104 → 0.0.106
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/dist/index.d.mts +301 -4
- package/dist/index.mjs +395 -368
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -5,6 +5,7 @@ declare const capacitance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>,
|
|
|
5
5
|
declare const inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
6
6
|
declare const voltage: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
7
7
|
declare const length: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8
|
+
declare const frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8
9
|
/**
|
|
9
10
|
* Length in meters
|
|
10
11
|
*/
|
|
@@ -677,6 +678,38 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
|
|
|
677
678
|
manufacturer_part_number?: string | undefined;
|
|
678
679
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
679
680
|
display_value?: string | undefined;
|
|
681
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
682
|
+
type: z.ZodLiteral<"source_component">;
|
|
683
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
684
|
+
source_component_id: z.ZodString;
|
|
685
|
+
name: z.ZodString;
|
|
686
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
687
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
688
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
689
|
+
}, {
|
|
690
|
+
ftype: z.ZodLiteral<"simple_crystal">;
|
|
691
|
+
frequency: z.ZodNumber;
|
|
692
|
+
load_capacitance: z.ZodOptional<z.ZodNumber>;
|
|
693
|
+
}>, "strip", z.ZodTypeAny, {
|
|
694
|
+
type: "source_component";
|
|
695
|
+
ftype: "simple_crystal";
|
|
696
|
+
source_component_id: string;
|
|
697
|
+
name: string;
|
|
698
|
+
frequency: number;
|
|
699
|
+
manufacturer_part_number?: string | undefined;
|
|
700
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
701
|
+
display_value?: string | undefined;
|
|
702
|
+
load_capacitance?: number | undefined;
|
|
703
|
+
}, {
|
|
704
|
+
type: "source_component";
|
|
705
|
+
ftype: "simple_crystal";
|
|
706
|
+
source_component_id: string;
|
|
707
|
+
name: string;
|
|
708
|
+
frequency: number;
|
|
709
|
+
manufacturer_part_number?: string | undefined;
|
|
710
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
711
|
+
display_value?: string | undefined;
|
|
712
|
+
load_capacitance?: number | undefined;
|
|
680
713
|
}>]>;
|
|
681
714
|
type AnySourceComponent = z.infer<typeof any_source_component>;
|
|
682
715
|
|
|
@@ -948,6 +981,42 @@ declare const source_simple_potentiometer: z.ZodObject<z.objectUtil.extendShape<
|
|
|
948
981
|
type SourceSimplePotentiometer = z.infer<typeof source_simple_potentiometer>;
|
|
949
982
|
type SourceSimplePotentiometerInput = z.input<typeof source_simple_potentiometer>;
|
|
950
983
|
|
|
984
|
+
declare const source_simple_crystal: z.ZodObject<z.objectUtil.extendShape<{
|
|
985
|
+
type: z.ZodLiteral<"source_component">;
|
|
986
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
987
|
+
source_component_id: z.ZodString;
|
|
988
|
+
name: z.ZodString;
|
|
989
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
990
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
991
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
992
|
+
}, {
|
|
993
|
+
ftype: z.ZodLiteral<"simple_crystal">;
|
|
994
|
+
frequency: z.ZodNumber;
|
|
995
|
+
load_capacitance: z.ZodOptional<z.ZodNumber>;
|
|
996
|
+
}>, "strip", z.ZodTypeAny, {
|
|
997
|
+
type: "source_component";
|
|
998
|
+
ftype: "simple_crystal";
|
|
999
|
+
source_component_id: string;
|
|
1000
|
+
name: string;
|
|
1001
|
+
frequency: number;
|
|
1002
|
+
manufacturer_part_number?: string | undefined;
|
|
1003
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1004
|
+
display_value?: string | undefined;
|
|
1005
|
+
load_capacitance?: number | undefined;
|
|
1006
|
+
}, {
|
|
1007
|
+
type: "source_component";
|
|
1008
|
+
ftype: "simple_crystal";
|
|
1009
|
+
source_component_id: string;
|
|
1010
|
+
name: string;
|
|
1011
|
+
frequency: number;
|
|
1012
|
+
manufacturer_part_number?: string | undefined;
|
|
1013
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1014
|
+
display_value?: string | undefined;
|
|
1015
|
+
load_capacitance?: number | undefined;
|
|
1016
|
+
}>;
|
|
1017
|
+
type SourceSimpleCrystal = z.infer<typeof source_simple_crystal>;
|
|
1018
|
+
type SourceSimpleCrystalInput = z.input<typeof source_simple_crystal>;
|
|
1019
|
+
|
|
951
1020
|
declare const schematic_box: z.ZodObject<{
|
|
952
1021
|
type: z.ZodLiteral<"schematic_box">;
|
|
953
1022
|
schematic_component_id: z.ZodString;
|
|
@@ -2772,10 +2841,59 @@ declare const pcb_smtpad: z.ZodUnion<[z.ZodObject<{
|
|
|
2772
2841
|
pcb_component_id?: string | undefined;
|
|
2773
2842
|
pcb_port_id?: string | undefined;
|
|
2774
2843
|
pcb_smtpad_id?: string | undefined;
|
|
2844
|
+
}>, z.ZodObject<{
|
|
2845
|
+
type: z.ZodLiteral<"pcb_smtpad">;
|
|
2846
|
+
shape: z.ZodLiteral<"rotated_rect">;
|
|
2847
|
+
pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
2848
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2849
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2850
|
+
width: z.ZodNumber;
|
|
2851
|
+
height: z.ZodNumber;
|
|
2852
|
+
ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2853
|
+
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
2854
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
2855
|
+
}, "strip", z.ZodTypeAny, {
|
|
2856
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2857
|
+
}, {
|
|
2858
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2859
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
2860
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2861
|
+
}>;
|
|
2862
|
+
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2863
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
2864
|
+
pcb_port_id: z.ZodOptional<z.ZodString>;
|
|
2865
|
+
}, "strip", z.ZodTypeAny, {
|
|
2866
|
+
x: number;
|
|
2867
|
+
y: number;
|
|
2868
|
+
type: "pcb_smtpad";
|
|
2869
|
+
width: number;
|
|
2870
|
+
height: number;
|
|
2871
|
+
shape: "rotated_rect";
|
|
2872
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2873
|
+
pcb_smtpad_id: string;
|
|
2874
|
+
ccw_rotation: number;
|
|
2875
|
+
port_hints?: string[] | undefined;
|
|
2876
|
+
pcb_component_id?: string | undefined;
|
|
2877
|
+
pcb_port_id?: string | undefined;
|
|
2878
|
+
}, {
|
|
2879
|
+
x: string | number;
|
|
2880
|
+
y: string | number;
|
|
2881
|
+
type: "pcb_smtpad";
|
|
2882
|
+
width: number;
|
|
2883
|
+
height: number;
|
|
2884
|
+
shape: "rotated_rect";
|
|
2885
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
2886
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2887
|
+
};
|
|
2888
|
+
ccw_rotation: string | number;
|
|
2889
|
+
port_hints?: string[] | undefined;
|
|
2890
|
+
pcb_component_id?: string | undefined;
|
|
2891
|
+
pcb_port_id?: string | undefined;
|
|
2892
|
+
pcb_smtpad_id?: string | undefined;
|
|
2775
2893
|
}>]>;
|
|
2776
2894
|
type PCBSMTPadInput = z.input<typeof pcb_smtpad>;
|
|
2777
2895
|
/**
|
|
2778
|
-
* Defines
|
|
2896
|
+
* Defines a circular SMT pad on the PCB
|
|
2779
2897
|
*/
|
|
2780
2898
|
interface PcbSmtPadCircle {
|
|
2781
2899
|
type: "pcb_smtpad";
|
|
@@ -2790,7 +2908,7 @@ interface PcbSmtPadCircle {
|
|
|
2790
2908
|
pcb_port_id?: string;
|
|
2791
2909
|
}
|
|
2792
2910
|
/**
|
|
2793
|
-
* Defines
|
|
2911
|
+
* Defines a rectangular SMT pad on the PCB
|
|
2794
2912
|
*/
|
|
2795
2913
|
interface PcbSmtPadRect {
|
|
2796
2914
|
type: "pcb_smtpad";
|
|
@@ -2805,7 +2923,24 @@ interface PcbSmtPadRect {
|
|
|
2805
2923
|
pcb_component_id?: string;
|
|
2806
2924
|
pcb_port_id?: string;
|
|
2807
2925
|
}
|
|
2808
|
-
|
|
2926
|
+
/**
|
|
2927
|
+
* Defines a rotated rectangular SMT pad on the PCB
|
|
2928
|
+
*/
|
|
2929
|
+
interface PcbSmtPadRotatedRect {
|
|
2930
|
+
type: "pcb_smtpad";
|
|
2931
|
+
shape: "rotated_rect";
|
|
2932
|
+
pcb_smtpad_id: string;
|
|
2933
|
+
x: Distance;
|
|
2934
|
+
y: Distance;
|
|
2935
|
+
width: number;
|
|
2936
|
+
height: number;
|
|
2937
|
+
ccw_rotation: Rotation;
|
|
2938
|
+
layer: LayerRef;
|
|
2939
|
+
port_hints?: string[];
|
|
2940
|
+
pcb_component_id?: string;
|
|
2941
|
+
pcb_port_id?: string;
|
|
2942
|
+
}
|
|
2943
|
+
type PcbSmtPad = PcbSmtPadCircle | PcbSmtPadRect | PcbSmtPadRotatedRect;
|
|
2809
2944
|
/**
|
|
2810
2945
|
* @deprecated use PcbSmtPad
|
|
2811
2946
|
*/
|
|
@@ -4741,6 +4876,38 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
4741
4876
|
manufacturer_part_number?: string | undefined;
|
|
4742
4877
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4743
4878
|
display_value?: string | undefined;
|
|
4879
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4880
|
+
type: z.ZodLiteral<"source_component">;
|
|
4881
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
4882
|
+
source_component_id: z.ZodString;
|
|
4883
|
+
name: z.ZodString;
|
|
4884
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
4885
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
4886
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
4887
|
+
}, {
|
|
4888
|
+
ftype: z.ZodLiteral<"simple_crystal">;
|
|
4889
|
+
frequency: z.ZodNumber;
|
|
4890
|
+
load_capacitance: z.ZodOptional<z.ZodNumber>;
|
|
4891
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4892
|
+
type: "source_component";
|
|
4893
|
+
ftype: "simple_crystal";
|
|
4894
|
+
source_component_id: string;
|
|
4895
|
+
name: string;
|
|
4896
|
+
frequency: number;
|
|
4897
|
+
manufacturer_part_number?: string | undefined;
|
|
4898
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4899
|
+
display_value?: string | undefined;
|
|
4900
|
+
load_capacitance?: number | undefined;
|
|
4901
|
+
}, {
|
|
4902
|
+
type: "source_component";
|
|
4903
|
+
ftype: "simple_crystal";
|
|
4904
|
+
source_component_id: string;
|
|
4905
|
+
name: string;
|
|
4906
|
+
frequency: number;
|
|
4907
|
+
manufacturer_part_number?: string | undefined;
|
|
4908
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4909
|
+
display_value?: string | undefined;
|
|
4910
|
+
load_capacitance?: number | undefined;
|
|
4744
4911
|
}>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
4745
4912
|
type: z.ZodLiteral<"source_component">;
|
|
4746
4913
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -5735,6 +5902,55 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5735
5902
|
pcb_component_id?: string | undefined;
|
|
5736
5903
|
pcb_port_id?: string | undefined;
|
|
5737
5904
|
pcb_smtpad_id?: string | undefined;
|
|
5905
|
+
}>, z.ZodObject<{
|
|
5906
|
+
type: z.ZodLiteral<"pcb_smtpad">;
|
|
5907
|
+
shape: z.ZodLiteral<"rotated_rect">;
|
|
5908
|
+
pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5909
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5910
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5911
|
+
width: z.ZodNumber;
|
|
5912
|
+
height: z.ZodNumber;
|
|
5913
|
+
ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
5914
|
+
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
5915
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
5916
|
+
}, "strip", z.ZodTypeAny, {
|
|
5917
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5918
|
+
}, {
|
|
5919
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5920
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5921
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5922
|
+
}>;
|
|
5923
|
+
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5924
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
5925
|
+
pcb_port_id: z.ZodOptional<z.ZodString>;
|
|
5926
|
+
}, "strip", z.ZodTypeAny, {
|
|
5927
|
+
x: number;
|
|
5928
|
+
y: number;
|
|
5929
|
+
type: "pcb_smtpad";
|
|
5930
|
+
width: number;
|
|
5931
|
+
height: number;
|
|
5932
|
+
shape: "rotated_rect";
|
|
5933
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5934
|
+
pcb_smtpad_id: string;
|
|
5935
|
+
ccw_rotation: number;
|
|
5936
|
+
port_hints?: string[] | undefined;
|
|
5937
|
+
pcb_component_id?: string | undefined;
|
|
5938
|
+
pcb_port_id?: string | undefined;
|
|
5939
|
+
}, {
|
|
5940
|
+
x: string | number;
|
|
5941
|
+
y: string | number;
|
|
5942
|
+
type: "pcb_smtpad";
|
|
5943
|
+
width: number;
|
|
5944
|
+
height: number;
|
|
5945
|
+
shape: "rotated_rect";
|
|
5946
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5947
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5948
|
+
};
|
|
5949
|
+
ccw_rotation: string | number;
|
|
5950
|
+
port_hints?: string[] | undefined;
|
|
5951
|
+
pcb_component_id?: string | undefined;
|
|
5952
|
+
pcb_port_id?: string | undefined;
|
|
5953
|
+
pcb_smtpad_id?: string | undefined;
|
|
5738
5954
|
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
5739
5955
|
type: z.ZodLiteral<"pcb_solder_paste">;
|
|
5740
5956
|
shape: z.ZodLiteral<"circle">;
|
|
@@ -7541,6 +7757,38 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7541
7757
|
manufacturer_part_number?: string | undefined;
|
|
7542
7758
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7543
7759
|
display_value?: string | undefined;
|
|
7760
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
7761
|
+
type: z.ZodLiteral<"source_component">;
|
|
7762
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
7763
|
+
source_component_id: z.ZodString;
|
|
7764
|
+
name: z.ZodString;
|
|
7765
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
7766
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
7767
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
7768
|
+
}, {
|
|
7769
|
+
ftype: z.ZodLiteral<"simple_crystal">;
|
|
7770
|
+
frequency: z.ZodNumber;
|
|
7771
|
+
load_capacitance: z.ZodOptional<z.ZodNumber>;
|
|
7772
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7773
|
+
type: "source_component";
|
|
7774
|
+
ftype: "simple_crystal";
|
|
7775
|
+
source_component_id: string;
|
|
7776
|
+
name: string;
|
|
7777
|
+
frequency: number;
|
|
7778
|
+
manufacturer_part_number?: string | undefined;
|
|
7779
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7780
|
+
display_value?: string | undefined;
|
|
7781
|
+
load_capacitance?: number | undefined;
|
|
7782
|
+
}, {
|
|
7783
|
+
type: "source_component";
|
|
7784
|
+
ftype: "simple_crystal";
|
|
7785
|
+
source_component_id: string;
|
|
7786
|
+
name: string;
|
|
7787
|
+
frequency: number;
|
|
7788
|
+
manufacturer_part_number?: string | undefined;
|
|
7789
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7790
|
+
display_value?: string | undefined;
|
|
7791
|
+
load_capacitance?: number | undefined;
|
|
7544
7792
|
}>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
7545
7793
|
type: z.ZodLiteral<"source_component">;
|
|
7546
7794
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -8535,6 +8783,55 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8535
8783
|
pcb_component_id?: string | undefined;
|
|
8536
8784
|
pcb_port_id?: string | undefined;
|
|
8537
8785
|
pcb_smtpad_id?: string | undefined;
|
|
8786
|
+
}>, z.ZodObject<{
|
|
8787
|
+
type: z.ZodLiteral<"pcb_smtpad">;
|
|
8788
|
+
shape: z.ZodLiteral<"rotated_rect">;
|
|
8789
|
+
pcb_smtpad_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8790
|
+
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8791
|
+
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8792
|
+
width: z.ZodNumber;
|
|
8793
|
+
height: z.ZodNumber;
|
|
8794
|
+
ccw_rotation: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
8795
|
+
layer: z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
8796
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
8797
|
+
}, "strip", z.ZodTypeAny, {
|
|
8798
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8799
|
+
}, {
|
|
8800
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8801
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8802
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8803
|
+
}>;
|
|
8804
|
+
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8805
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
8806
|
+
pcb_port_id: z.ZodOptional<z.ZodString>;
|
|
8807
|
+
}, "strip", z.ZodTypeAny, {
|
|
8808
|
+
x: number;
|
|
8809
|
+
y: number;
|
|
8810
|
+
type: "pcb_smtpad";
|
|
8811
|
+
width: number;
|
|
8812
|
+
height: number;
|
|
8813
|
+
shape: "rotated_rect";
|
|
8814
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8815
|
+
pcb_smtpad_id: string;
|
|
8816
|
+
ccw_rotation: number;
|
|
8817
|
+
port_hints?: string[] | undefined;
|
|
8818
|
+
pcb_component_id?: string | undefined;
|
|
8819
|
+
pcb_port_id?: string | undefined;
|
|
8820
|
+
}, {
|
|
8821
|
+
x: string | number;
|
|
8822
|
+
y: string | number;
|
|
8823
|
+
type: "pcb_smtpad";
|
|
8824
|
+
width: number;
|
|
8825
|
+
height: number;
|
|
8826
|
+
shape: "rotated_rect";
|
|
8827
|
+
layer: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
8828
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
8829
|
+
};
|
|
8830
|
+
ccw_rotation: string | number;
|
|
8831
|
+
port_hints?: string[] | undefined;
|
|
8832
|
+
pcb_component_id?: string | undefined;
|
|
8833
|
+
pcb_port_id?: string | undefined;
|
|
8834
|
+
pcb_smtpad_id?: string | undefined;
|
|
8538
8835
|
}>]>, z.ZodUnion<[z.ZodObject<{
|
|
8539
8836
|
type: z.ZodLiteral<"pcb_solder_paste">;
|
|
8540
8837
|
shape: z.ZodLiteral<"circle">;
|
|
@@ -9978,4 +10275,4 @@ type AnySoupElement = AnyCircuitElement;
|
|
|
9978
10275
|
*/
|
|
9979
10276
|
type AnySoupElementInput = AnyCircuitElementInput;
|
|
9980
10277
|
|
|
9981
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, 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 PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, 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 PcbSmtPadRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, 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 SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushbutton, type SourceSimplePushbuttonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, 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, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, 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_solder_paste, pcb_text, 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_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
|
|
10278
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, 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 PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleOval, type PcbHoleOvalInput, 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 PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, 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 SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, 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 SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushbutton, type SourceSimplePushbuttonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, 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, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, 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_solder_paste, pcb_text, 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_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
|