circuit-json 0.0.99 → 0.0.101
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 +326 -37
- package/dist/index.mjs +402 -375
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -280,39 +280,6 @@ declare const source_simple_chip: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
280
280
|
type SourceSimpleChip = z.infer<typeof source_simple_chip>;
|
|
281
281
|
type SourceSimpleChipInput = z.input<typeof source_simple_chip>;
|
|
282
282
|
|
|
283
|
-
declare const source_simple_inductor: z.ZodObject<z.objectUtil.extendShape<{
|
|
284
|
-
type: z.ZodLiteral<"source_component">;
|
|
285
|
-
ftype: z.ZodOptional<z.ZodString>;
|
|
286
|
-
source_component_id: z.ZodString;
|
|
287
|
-
name: z.ZodString;
|
|
288
|
-
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
289
|
-
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
290
|
-
display_value: z.ZodOptional<z.ZodString>;
|
|
291
|
-
}, {
|
|
292
|
-
ftype: z.ZodLiteral<"simple_inductor">;
|
|
293
|
-
inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
294
|
-
}>, "strip", z.ZodTypeAny, {
|
|
295
|
-
type: "source_component";
|
|
296
|
-
ftype: "simple_inductor";
|
|
297
|
-
source_component_id: string;
|
|
298
|
-
name: string;
|
|
299
|
-
inductance: number;
|
|
300
|
-
manufacturer_part_number?: string | undefined;
|
|
301
|
-
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
302
|
-
display_value?: string | undefined;
|
|
303
|
-
}, {
|
|
304
|
-
type: "source_component";
|
|
305
|
-
ftype: "simple_inductor";
|
|
306
|
-
source_component_id: string;
|
|
307
|
-
name: string;
|
|
308
|
-
inductance: string | number;
|
|
309
|
-
manufacturer_part_number?: string | undefined;
|
|
310
|
-
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
311
|
-
display_value?: string | undefined;
|
|
312
|
-
}>;
|
|
313
|
-
type SourceSimpleInductor = z.infer<typeof source_simple_inductor>;
|
|
314
|
-
type SourceSimpleInductorInput = z.input<typeof source_simple_inductor>;
|
|
315
|
-
|
|
316
283
|
declare const source_led: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
317
284
|
type: z.ZodLiteral<"source_component">;
|
|
318
285
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -655,6 +622,32 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
|
|
|
655
622
|
manufacturer_part_number?: string | undefined;
|
|
656
623
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
657
624
|
display_value?: string | undefined;
|
|
625
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
626
|
+
type: z.ZodLiteral<"source_component">;
|
|
627
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
628
|
+
source_component_id: z.ZodString;
|
|
629
|
+
name: z.ZodString;
|
|
630
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
631
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
632
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
633
|
+
}, {
|
|
634
|
+
ftype: z.ZodLiteral<"simple_push_button">;
|
|
635
|
+
}>, "strip", z.ZodTypeAny, {
|
|
636
|
+
type: "source_component";
|
|
637
|
+
ftype: "simple_push_button";
|
|
638
|
+
source_component_id: string;
|
|
639
|
+
name: string;
|
|
640
|
+
manufacturer_part_number?: string | undefined;
|
|
641
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
642
|
+
display_value?: string | undefined;
|
|
643
|
+
}, {
|
|
644
|
+
type: "source_component";
|
|
645
|
+
ftype: "simple_push_button";
|
|
646
|
+
source_component_id: string;
|
|
647
|
+
name: string;
|
|
648
|
+
manufacturer_part_number?: string | undefined;
|
|
649
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
650
|
+
display_value?: string | undefined;
|
|
658
651
|
}>]>;
|
|
659
652
|
type AnySourceComponent = z.infer<typeof any_source_component>;
|
|
660
653
|
|
|
@@ -819,6 +812,69 @@ declare const source_simple_battery: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
819
812
|
type SourceSimpleBattery = z.infer<typeof source_simple_battery>;
|
|
820
813
|
type SourceSimpleBatteryInput = z.input<typeof source_simple_battery>;
|
|
821
814
|
|
|
815
|
+
declare const source_simple_inductor: z.ZodObject<z.objectUtil.extendShape<{
|
|
816
|
+
type: z.ZodLiteral<"source_component">;
|
|
817
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
818
|
+
source_component_id: z.ZodString;
|
|
819
|
+
name: z.ZodString;
|
|
820
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
821
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
822
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
823
|
+
}, {
|
|
824
|
+
ftype: z.ZodLiteral<"simple_inductor">;
|
|
825
|
+
inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
826
|
+
}>, "strip", z.ZodTypeAny, {
|
|
827
|
+
type: "source_component";
|
|
828
|
+
ftype: "simple_inductor";
|
|
829
|
+
source_component_id: string;
|
|
830
|
+
name: string;
|
|
831
|
+
inductance: number;
|
|
832
|
+
manufacturer_part_number?: string | undefined;
|
|
833
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
834
|
+
display_value?: string | undefined;
|
|
835
|
+
}, {
|
|
836
|
+
type: "source_component";
|
|
837
|
+
ftype: "simple_inductor";
|
|
838
|
+
source_component_id: string;
|
|
839
|
+
name: string;
|
|
840
|
+
inductance: string | number;
|
|
841
|
+
manufacturer_part_number?: string | undefined;
|
|
842
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
843
|
+
display_value?: string | undefined;
|
|
844
|
+
}>;
|
|
845
|
+
type SourceSimpleInductor = z.infer<typeof source_simple_inductor>;
|
|
846
|
+
type SourceSimpleInductorInput = z.input<typeof source_simple_inductor>;
|
|
847
|
+
|
|
848
|
+
declare const source_simple_push_button: z.ZodObject<z.objectUtil.extendShape<{
|
|
849
|
+
type: z.ZodLiteral<"source_component">;
|
|
850
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
851
|
+
source_component_id: z.ZodString;
|
|
852
|
+
name: z.ZodString;
|
|
853
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
854
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
855
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
856
|
+
}, {
|
|
857
|
+
ftype: z.ZodLiteral<"simple_push_button">;
|
|
858
|
+
}>, "strip", z.ZodTypeAny, {
|
|
859
|
+
type: "source_component";
|
|
860
|
+
ftype: "simple_push_button";
|
|
861
|
+
source_component_id: string;
|
|
862
|
+
name: string;
|
|
863
|
+
manufacturer_part_number?: string | undefined;
|
|
864
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
865
|
+
display_value?: string | undefined;
|
|
866
|
+
}, {
|
|
867
|
+
type: "source_component";
|
|
868
|
+
ftype: "simple_push_button";
|
|
869
|
+
source_component_id: string;
|
|
870
|
+
name: string;
|
|
871
|
+
manufacturer_part_number?: string | undefined;
|
|
872
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
873
|
+
display_value?: string | undefined;
|
|
874
|
+
}>;
|
|
875
|
+
type SourceSimplePushbutton = z.infer<typeof source_simple_push_button>;
|
|
876
|
+
type SourceSimplePushbuttonInput = z.input<typeof source_simple_push_button>;
|
|
877
|
+
|
|
822
878
|
declare const schematic_box: z.ZodObject<{
|
|
823
879
|
type: z.ZodLiteral<"schematic_box">;
|
|
824
880
|
schematic_component_id: z.ZodString;
|
|
@@ -4091,7 +4147,42 @@ declare const pcb_keepout: z.ZodUnion<[z.ZodObject<{
|
|
|
4091
4147
|
type PCBKeepoutInput = z.input<typeof pcb_keepout>;
|
|
4092
4148
|
type PCBKeepout = z.infer<typeof pcb_keepout>;
|
|
4093
4149
|
|
|
4094
|
-
|
|
4150
|
+
declare const pcb_missing_footprint_error: z.ZodObject<{
|
|
4151
|
+
type: z.ZodLiteral<"pcb_missing_footprint_error">;
|
|
4152
|
+
pcb_missing_footprint_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
4153
|
+
error_type: z.ZodLiteral<"pcb_missing_footprint_error">;
|
|
4154
|
+
source_component_id: z.ZodString;
|
|
4155
|
+
message: z.ZodString;
|
|
4156
|
+
}, "strip", z.ZodTypeAny, {
|
|
4157
|
+
message: string;
|
|
4158
|
+
type: "pcb_missing_footprint_error";
|
|
4159
|
+
source_component_id: string;
|
|
4160
|
+
error_type: "pcb_missing_footprint_error";
|
|
4161
|
+
pcb_missing_footprint_error_id: string;
|
|
4162
|
+
}, {
|
|
4163
|
+
message: string;
|
|
4164
|
+
type: "pcb_missing_footprint_error";
|
|
4165
|
+
source_component_id: string;
|
|
4166
|
+
error_type: "pcb_missing_footprint_error";
|
|
4167
|
+
pcb_missing_footprint_error_id?: string | undefined;
|
|
4168
|
+
}>;
|
|
4169
|
+
type PcbMissingFootprintErrorInput = z.input<typeof pcb_missing_footprint_error>;
|
|
4170
|
+
/**
|
|
4171
|
+
* Defines a placement error on the PCB
|
|
4172
|
+
*/
|
|
4173
|
+
interface PcbMissingFootprintError {
|
|
4174
|
+
type: "pcb_missing_footprint_error";
|
|
4175
|
+
pcb_missing_footprint_error_id: string;
|
|
4176
|
+
error_type: "pcb_missing_footprint_error";
|
|
4177
|
+
source_component_id: string;
|
|
4178
|
+
message: string;
|
|
4179
|
+
}
|
|
4180
|
+
/**
|
|
4181
|
+
* @deprecated use PcbMissingFootprintError
|
|
4182
|
+
*/
|
|
4183
|
+
type PCBMissingFootprintError = PcbMissingFootprintError;
|
|
4184
|
+
|
|
4185
|
+
type PcbCircuitElement = PcbComponent | PcbHole | PcbPlatedHole | PcbPort | PcbSmtPad | PcbSolderPaste | PcbText | PcbTrace | PcbTraceError | PcbMissingFootprintError | PcbPortNotMatchedError | PcbVia | PcbBoard | PcbPlacementError | PcbTraceHint | PcbSilkscreenLine | PcbSilkscreenPath | PcbSilkscreenText | PcbSilkscreenRect | PcbSilkscreenCircle;
|
|
4095
4186
|
|
|
4096
4187
|
declare const cad_component: z.ZodObject<{
|
|
4097
4188
|
type: z.ZodLiteral<"cad_component">;
|
|
@@ -4525,6 +4616,32 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
4525
4616
|
manufacturer_part_number?: string | undefined;
|
|
4526
4617
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4527
4618
|
display_value?: string | undefined;
|
|
4619
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4620
|
+
type: z.ZodLiteral<"source_component">;
|
|
4621
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
4622
|
+
source_component_id: z.ZodString;
|
|
4623
|
+
name: z.ZodString;
|
|
4624
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
4625
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
4626
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
4627
|
+
}, {
|
|
4628
|
+
ftype: z.ZodLiteral<"simple_push_button">;
|
|
4629
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4630
|
+
type: "source_component";
|
|
4631
|
+
ftype: "simple_push_button";
|
|
4632
|
+
source_component_id: string;
|
|
4633
|
+
name: string;
|
|
4634
|
+
manufacturer_part_number?: string | undefined;
|
|
4635
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4636
|
+
display_value?: string | undefined;
|
|
4637
|
+
}, {
|
|
4638
|
+
type: "source_component";
|
|
4639
|
+
ftype: "simple_push_button";
|
|
4640
|
+
source_component_id: string;
|
|
4641
|
+
name: string;
|
|
4642
|
+
manufacturer_part_number?: string | undefined;
|
|
4643
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4644
|
+
display_value?: string | undefined;
|
|
4528
4645
|
}>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
4529
4646
|
type: z.ZodLiteral<"source_component">;
|
|
4530
4647
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -4789,6 +4906,61 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
4789
4906
|
manufacturer_part_number?: string | undefined;
|
|
4790
4907
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4791
4908
|
display_value?: string | undefined;
|
|
4909
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4910
|
+
type: z.ZodLiteral<"source_component">;
|
|
4911
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
4912
|
+
source_component_id: z.ZodString;
|
|
4913
|
+
name: z.ZodString;
|
|
4914
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
4915
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
4916
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
4917
|
+
}, {
|
|
4918
|
+
ftype: z.ZodLiteral<"simple_inductor">;
|
|
4919
|
+
inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
4920
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4921
|
+
type: "source_component";
|
|
4922
|
+
ftype: "simple_inductor";
|
|
4923
|
+
source_component_id: string;
|
|
4924
|
+
name: string;
|
|
4925
|
+
inductance: number;
|
|
4926
|
+
manufacturer_part_number?: string | undefined;
|
|
4927
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4928
|
+
display_value?: string | undefined;
|
|
4929
|
+
}, {
|
|
4930
|
+
type: "source_component";
|
|
4931
|
+
ftype: "simple_inductor";
|
|
4932
|
+
source_component_id: string;
|
|
4933
|
+
name: string;
|
|
4934
|
+
inductance: string | number;
|
|
4935
|
+
manufacturer_part_number?: string | undefined;
|
|
4936
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4937
|
+
display_value?: string | undefined;
|
|
4938
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
4939
|
+
type: z.ZodLiteral<"source_component">;
|
|
4940
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
4941
|
+
source_component_id: z.ZodString;
|
|
4942
|
+
name: z.ZodString;
|
|
4943
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
4944
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
4945
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
4946
|
+
}, {
|
|
4947
|
+
ftype: z.ZodLiteral<"simple_push_button">;
|
|
4948
|
+
}>, "strip", z.ZodTypeAny, {
|
|
4949
|
+
type: "source_component";
|
|
4950
|
+
ftype: "simple_push_button";
|
|
4951
|
+
source_component_id: string;
|
|
4952
|
+
name: string;
|
|
4953
|
+
manufacturer_part_number?: string | undefined;
|
|
4954
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4955
|
+
display_value?: string | undefined;
|
|
4956
|
+
}, {
|
|
4957
|
+
type: "source_component";
|
|
4958
|
+
ftype: "simple_push_button";
|
|
4959
|
+
source_component_id: string;
|
|
4960
|
+
name: string;
|
|
4961
|
+
manufacturer_part_number?: string | undefined;
|
|
4962
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
4963
|
+
display_value?: string | undefined;
|
|
4792
4964
|
}>, z.ZodObject<{
|
|
4793
4965
|
type: z.ZodLiteral<"pcb_component">;
|
|
4794
4966
|
pcb_component_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -4886,7 +5058,25 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
4886
5058
|
hole_width: number;
|
|
4887
5059
|
hole_height: number;
|
|
4888
5060
|
pcb_hole_id?: string | undefined;
|
|
4889
|
-
}>]>, z.
|
|
5061
|
+
}>]>, z.ZodObject<{
|
|
5062
|
+
type: z.ZodLiteral<"pcb_missing_footprint_error">;
|
|
5063
|
+
pcb_missing_footprint_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
5064
|
+
error_type: z.ZodLiteral<"pcb_missing_footprint_error">;
|
|
5065
|
+
source_component_id: z.ZodString;
|
|
5066
|
+
message: z.ZodString;
|
|
5067
|
+
}, "strip", z.ZodTypeAny, {
|
|
5068
|
+
message: string;
|
|
5069
|
+
type: "pcb_missing_footprint_error";
|
|
5070
|
+
source_component_id: string;
|
|
5071
|
+
error_type: "pcb_missing_footprint_error";
|
|
5072
|
+
pcb_missing_footprint_error_id: string;
|
|
5073
|
+
}, {
|
|
5074
|
+
message: string;
|
|
5075
|
+
type: "pcb_missing_footprint_error";
|
|
5076
|
+
source_component_id: string;
|
|
5077
|
+
error_type: "pcb_missing_footprint_error";
|
|
5078
|
+
pcb_missing_footprint_error_id?: string | undefined;
|
|
5079
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
4890
5080
|
type: z.ZodLiteral<"pcb_plated_hole">;
|
|
4891
5081
|
shape: z.ZodLiteral<"circle">;
|
|
4892
5082
|
outer_diameter: z.ZodNumber;
|
|
@@ -7166,6 +7356,32 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7166
7356
|
manufacturer_part_number?: string | undefined;
|
|
7167
7357
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7168
7358
|
display_value?: string | undefined;
|
|
7359
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
7360
|
+
type: z.ZodLiteral<"source_component">;
|
|
7361
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
7362
|
+
source_component_id: z.ZodString;
|
|
7363
|
+
name: z.ZodString;
|
|
7364
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
7365
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
7366
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
7367
|
+
}, {
|
|
7368
|
+
ftype: z.ZodLiteral<"simple_push_button">;
|
|
7369
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7370
|
+
type: "source_component";
|
|
7371
|
+
ftype: "simple_push_button";
|
|
7372
|
+
source_component_id: string;
|
|
7373
|
+
name: string;
|
|
7374
|
+
manufacturer_part_number?: string | undefined;
|
|
7375
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7376
|
+
display_value?: string | undefined;
|
|
7377
|
+
}, {
|
|
7378
|
+
type: "source_component";
|
|
7379
|
+
ftype: "simple_push_button";
|
|
7380
|
+
source_component_id: string;
|
|
7381
|
+
name: string;
|
|
7382
|
+
manufacturer_part_number?: string | undefined;
|
|
7383
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7384
|
+
display_value?: string | undefined;
|
|
7169
7385
|
}>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
7170
7386
|
type: z.ZodLiteral<"source_component">;
|
|
7171
7387
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -7430,6 +7646,61 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7430
7646
|
manufacturer_part_number?: string | undefined;
|
|
7431
7647
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7432
7648
|
display_value?: string | undefined;
|
|
7649
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
7650
|
+
type: z.ZodLiteral<"source_component">;
|
|
7651
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
7652
|
+
source_component_id: z.ZodString;
|
|
7653
|
+
name: z.ZodString;
|
|
7654
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
7655
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
7656
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
7657
|
+
}, {
|
|
7658
|
+
ftype: z.ZodLiteral<"simple_inductor">;
|
|
7659
|
+
inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
7660
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7661
|
+
type: "source_component";
|
|
7662
|
+
ftype: "simple_inductor";
|
|
7663
|
+
source_component_id: string;
|
|
7664
|
+
name: string;
|
|
7665
|
+
inductance: number;
|
|
7666
|
+
manufacturer_part_number?: string | undefined;
|
|
7667
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7668
|
+
display_value?: string | undefined;
|
|
7669
|
+
}, {
|
|
7670
|
+
type: "source_component";
|
|
7671
|
+
ftype: "simple_inductor";
|
|
7672
|
+
source_component_id: string;
|
|
7673
|
+
name: string;
|
|
7674
|
+
inductance: string | number;
|
|
7675
|
+
manufacturer_part_number?: string | undefined;
|
|
7676
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7677
|
+
display_value?: string | undefined;
|
|
7678
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
7679
|
+
type: z.ZodLiteral<"source_component">;
|
|
7680
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
7681
|
+
source_component_id: z.ZodString;
|
|
7682
|
+
name: z.ZodString;
|
|
7683
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
7684
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
7685
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
7686
|
+
}, {
|
|
7687
|
+
ftype: z.ZodLiteral<"simple_push_button">;
|
|
7688
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7689
|
+
type: "source_component";
|
|
7690
|
+
ftype: "simple_push_button";
|
|
7691
|
+
source_component_id: string;
|
|
7692
|
+
name: string;
|
|
7693
|
+
manufacturer_part_number?: string | undefined;
|
|
7694
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7695
|
+
display_value?: string | undefined;
|
|
7696
|
+
}, {
|
|
7697
|
+
type: "source_component";
|
|
7698
|
+
ftype: "simple_push_button";
|
|
7699
|
+
source_component_id: string;
|
|
7700
|
+
name: string;
|
|
7701
|
+
manufacturer_part_number?: string | undefined;
|
|
7702
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7703
|
+
display_value?: string | undefined;
|
|
7433
7704
|
}>, z.ZodObject<{
|
|
7434
7705
|
type: z.ZodLiteral<"pcb_component">;
|
|
7435
7706
|
pcb_component_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -7527,7 +7798,25 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7527
7798
|
hole_width: number;
|
|
7528
7799
|
hole_height: number;
|
|
7529
7800
|
pcb_hole_id?: string | undefined;
|
|
7530
|
-
}>]>, z.
|
|
7801
|
+
}>]>, z.ZodObject<{
|
|
7802
|
+
type: z.ZodLiteral<"pcb_missing_footprint_error">;
|
|
7803
|
+
pcb_missing_footprint_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7804
|
+
error_type: z.ZodLiteral<"pcb_missing_footprint_error">;
|
|
7805
|
+
source_component_id: z.ZodString;
|
|
7806
|
+
message: z.ZodString;
|
|
7807
|
+
}, "strip", z.ZodTypeAny, {
|
|
7808
|
+
message: string;
|
|
7809
|
+
type: "pcb_missing_footprint_error";
|
|
7810
|
+
source_component_id: string;
|
|
7811
|
+
error_type: "pcb_missing_footprint_error";
|
|
7812
|
+
pcb_missing_footprint_error_id: string;
|
|
7813
|
+
}, {
|
|
7814
|
+
message: string;
|
|
7815
|
+
type: "pcb_missing_footprint_error";
|
|
7816
|
+
source_component_id: string;
|
|
7817
|
+
error_type: "pcb_missing_footprint_error";
|
|
7818
|
+
pcb_missing_footprint_error_id?: string | undefined;
|
|
7819
|
+
}>, z.ZodUnion<[z.ZodObject<{
|
|
7531
7820
|
type: z.ZodLiteral<"pcb_plated_hole">;
|
|
7532
7821
|
shape: z.ZodLiteral<"circle">;
|
|
7533
7822
|
outer_diameter: z.ZodNumber;
|
|
@@ -9499,4 +9788,4 @@ type AnySoupElement = AnyCircuitElement;
|
|
|
9499
9788
|
*/
|
|
9500
9789
|
type AnySoupElementInput = AnyCircuitElementInput;
|
|
9501
9790
|
|
|
9502
|
-
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 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 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 SourceSimplePowerSource, type SourceSimplePowerSourceInput, 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_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_power_source, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
|
|
9791
|
+
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 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_power_source, source_simple_push_button, source_simple_resistor, source_trace, supplier_name, time, visible_layer, voltage };
|