circuit-json 0.0.104 → 0.0.105

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 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;
@@ -4741,6 +4810,38 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
4741
4810
  manufacturer_part_number?: string | undefined;
4742
4811
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4743
4812
  display_value?: string | undefined;
4813
+ }>, z.ZodObject<z.objectUtil.extendShape<{
4814
+ type: z.ZodLiteral<"source_component">;
4815
+ ftype: z.ZodOptional<z.ZodString>;
4816
+ source_component_id: z.ZodString;
4817
+ name: z.ZodString;
4818
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
4819
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
4820
+ display_value: z.ZodOptional<z.ZodString>;
4821
+ }, {
4822
+ ftype: z.ZodLiteral<"simple_crystal">;
4823
+ frequency: z.ZodNumber;
4824
+ load_capacitance: z.ZodOptional<z.ZodNumber>;
4825
+ }>, "strip", z.ZodTypeAny, {
4826
+ type: "source_component";
4827
+ ftype: "simple_crystal";
4828
+ source_component_id: string;
4829
+ name: string;
4830
+ frequency: number;
4831
+ manufacturer_part_number?: string | undefined;
4832
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4833
+ display_value?: string | undefined;
4834
+ load_capacitance?: number | undefined;
4835
+ }, {
4836
+ type: "source_component";
4837
+ ftype: "simple_crystal";
4838
+ source_component_id: string;
4839
+ name: string;
4840
+ frequency: number;
4841
+ manufacturer_part_number?: string | undefined;
4842
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
4843
+ display_value?: string | undefined;
4844
+ load_capacitance?: number | undefined;
4744
4845
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
4745
4846
  type: z.ZodLiteral<"source_component">;
4746
4847
  ftype: z.ZodOptional<z.ZodString>;
@@ -7541,6 +7642,38 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
7541
7642
  manufacturer_part_number?: string | undefined;
7542
7643
  supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
7543
7644
  display_value?: string | undefined;
7645
+ }>, z.ZodObject<z.objectUtil.extendShape<{
7646
+ type: z.ZodLiteral<"source_component">;
7647
+ ftype: z.ZodOptional<z.ZodString>;
7648
+ source_component_id: z.ZodString;
7649
+ name: z.ZodString;
7650
+ manufacturer_part_number: z.ZodOptional<z.ZodString>;
7651
+ supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
7652
+ display_value: z.ZodOptional<z.ZodString>;
7653
+ }, {
7654
+ ftype: z.ZodLiteral<"simple_crystal">;
7655
+ frequency: z.ZodNumber;
7656
+ load_capacitance: z.ZodOptional<z.ZodNumber>;
7657
+ }>, "strip", z.ZodTypeAny, {
7658
+ type: "source_component";
7659
+ ftype: "simple_crystal";
7660
+ source_component_id: string;
7661
+ name: string;
7662
+ frequency: number;
7663
+ manufacturer_part_number?: string | undefined;
7664
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
7665
+ display_value?: string | undefined;
7666
+ load_capacitance?: number | undefined;
7667
+ }, {
7668
+ type: "source_component";
7669
+ ftype: "simple_crystal";
7670
+ source_component_id: string;
7671
+ name: string;
7672
+ frequency: number;
7673
+ manufacturer_part_number?: string | undefined;
7674
+ supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
7675
+ display_value?: string | undefined;
7676
+ load_capacitance?: number | undefined;
7544
7677
  }>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
7545
7678
  type: z.ZodLiteral<"source_component">;
7546
7679
  ftype: z.ZodOptional<z.ZodString>;
@@ -9978,4 +10111,4 @@ type AnySoupElement = AnyCircuitElement;
9978
10111
  */
9979
10112
  type AnySoupElementInput = AnyCircuitElementInput;
9980
10113
 
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 };
10114
+ 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 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 };