circuit-json 0.0.210 → 0.0.212

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.mjs CHANGED
@@ -327,7 +327,8 @@ var source_component_base = z8.object({
327
327
  display_value: z8.string().optional(),
328
328
  are_pins_interchangeable: z8.boolean().optional(),
329
329
  internally_connected_source_port_ids: z8.array(z8.array(z8.string())).optional(),
330
- source_group_id: z8.string().optional()
330
+ source_group_id: z8.string().optional(),
331
+ subcircuit_id: z8.string().optional()
331
332
  });
332
333
  expectTypesMatch(true);
333
334
 
@@ -412,7 +413,8 @@ expectTypesMatch(true);
412
413
  import { z as z18 } from "zod";
413
414
  var source_simple_inductor = source_component_base.extend({
414
415
  ftype: z18.literal("simple_inductor"),
415
- inductance
416
+ inductance,
417
+ max_current_rating: z18.number().optional()
416
418
  });
417
419
  expectTypesMatch(true);
418
420
 
@@ -518,6 +520,7 @@ var source_missing_property_error = z29.object({
518
520
  ),
519
521
  source_component_id: z29.string(),
520
522
  property_name: z29.string(),
523
+ subcircuit_id: z29.string().optional(),
521
524
  error_type: z29.literal("source_missing_property_error").default("source_missing_property_error"),
522
525
  message: z29.string()
523
526
  }).describe("The source code is missing a property");
@@ -651,7 +654,8 @@ var schematic_box = z37.object({
651
654
  height: distance,
652
655
  is_dashed: z37.boolean().default(false),
653
656
  x: distance,
654
- y: distance
657
+ y: distance,
658
+ subcircuit_id: z37.string().optional()
655
659
  }).describe("Draws a box on the schematic");
656
660
  expectTypesMatch(true);
657
661
 
@@ -662,7 +666,8 @@ var schematic_path = z38.object({
662
666
  schematic_component_id: z38.string(),
663
667
  fill_color: z38.enum(["red", "blue"]).optional(),
664
668
  is_filled: z38.boolean().optional(),
665
- points: z38.array(point)
669
+ points: z38.array(point),
670
+ subcircuit_id: z38.string().optional()
666
671
  });
667
672
  expectTypesMatch(true);
668
673
 
@@ -736,7 +741,8 @@ var schematic_line = z40.object({
736
741
  x1: distance,
737
742
  x2: distance,
738
743
  y1: distance,
739
- y2: distance
744
+ y2: distance,
745
+ subcircuit_id: z40.string().optional()
740
746
  });
741
747
  expectTypesMatch(true);
742
748
 
@@ -766,7 +772,8 @@ var schematic_trace = z41.object({
766
772
  from_schematic_port_id: z41.string().optional(),
767
773
  to_schematic_port_id: z41.string().optional()
768
774
  })
769
- )
775
+ ),
776
+ subcircuit_id: z41.string().optional()
770
777
  });
771
778
  expectTypesMatch(true);
772
779
 
@@ -797,7 +804,8 @@ var schematic_text = z43.object({
797
804
  }),
798
805
  rotation: z43.number().default(0),
799
806
  anchor: z43.union([fivePointAnchor.describe("legacy"), ninePointAnchor]).default("center"),
800
- color: z43.string().default("#000000")
807
+ color: z43.string().default("#000000"),
808
+ subcircuit_id: z43.string().optional()
801
809
  });
802
810
  expectTypesMatch(true);
803
811
 
@@ -814,7 +822,8 @@ var schematic_port = z44.object({
814
822
  side_of_component: z44.enum(["top", "bottom", "left", "right"]).optional(),
815
823
  true_ccw_index: z44.number().optional(),
816
824
  pin_number: z44.number().optional(),
817
- display_pin_label: z44.string().optional()
825
+ display_pin_label: z44.string().optional(),
826
+ subcircuit_id: z44.string().optional()
818
827
  }).describe("Defines a port on a schematic component");
819
828
  expectTypesMatch(true);
820
829
 
@@ -830,7 +839,8 @@ var schematic_net_label = z45.object({
830
839
  anchor_position: point.optional(),
831
840
  anchor_side: z45.enum(["top", "bottom", "left", "right"]),
832
841
  text: z45.string(),
833
- symbol_name: z45.string().optional()
842
+ symbol_name: z45.string().optional(),
843
+ subcircuit_id: z45.string().optional()
834
844
  });
835
845
  expectTypesMatch(true);
836
846
 
@@ -841,7 +851,8 @@ var schematic_error = z46.object({
841
851
  schematic_error_id: z46.string(),
842
852
  // eventually each error type should be broken out into a dir of files
843
853
  error_type: z46.literal("schematic_port_not_found").default("schematic_port_not_found"),
844
- message: z46.string()
854
+ message: z46.string(),
855
+ subcircuit_id: z46.string().optional()
845
856
  }).describe("Defines a schematic error on the schematic");
846
857
  expectTypesMatch(true);
847
858
 
@@ -855,7 +866,8 @@ var schematic_layout_error = z47.object({
855
866
  error_type: z47.literal("schematic_layout_error").default("schematic_layout_error"),
856
867
  message: z47.string(),
857
868
  source_group_id: z47.string(),
858
- schematic_group_id: z47.string()
869
+ schematic_group_id: z47.string(),
870
+ subcircuit_id: z47.string().optional()
859
871
  }).describe("Error emitted when schematic layout fails for a group");
860
872
  expectTypesMatch(true);
861
873
 
@@ -863,7 +875,8 @@ expectTypesMatch(true);
863
875
  import { z as z48 } from "zod";
864
876
  var schematic_debug_object_base = z48.object({
865
877
  type: z48.literal("schematic_debug_object"),
866
- label: z48.string().optional()
878
+ label: z48.string().optional(),
879
+ subcircuit_id: z48.string().optional()
867
880
  });
868
881
  var schematic_debug_rect = schematic_debug_object_base.extend({
869
882
  shape: z48.literal("rect"),
@@ -893,7 +906,8 @@ var schematic_voltage_probe = z49.object({
893
906
  schematic_voltage_probe_id: z49.string(),
894
907
  position: point,
895
908
  schematic_trace_id: z49.string(),
896
- voltage: voltage.optional()
909
+ voltage: voltage.optional(),
910
+ subcircuit_id: z49.string().optional()
897
911
  }).describe("Defines a voltage probe measurement point on a schematic trace");
898
912
  expectTypesMatch(true);
899
913
 
@@ -1374,7 +1388,8 @@ var pcb_trace_error = z63.object({
1374
1388
  pcb_trace_id: z63.string(),
1375
1389
  source_trace_id: z63.string(),
1376
1390
  pcb_component_ids: z63.array(z63.string()),
1377
- pcb_port_ids: z63.array(z63.string())
1391
+ pcb_port_ids: z63.array(z63.string()),
1392
+ subcircuit_id: z63.string().optional()
1378
1393
  }).describe("Defines a trace error on the PCB");
1379
1394
  expectTypesMatch(true);
1380
1395
 
@@ -1385,7 +1400,8 @@ var pcb_port_not_matched_error = z64.object({
1385
1400
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1386
1401
  error_type: z64.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1387
1402
  message: z64.string(),
1388
- pcb_component_ids: z64.array(z64.string())
1403
+ pcb_component_ids: z64.array(z64.string()),
1404
+ subcircuit_id: z64.string().optional()
1389
1405
  }).describe("Defines a trace error on the PCB where a port is not matched");
1390
1406
  expectTypesMatch(true);
1391
1407
 
@@ -1432,7 +1448,8 @@ var pcb_placement_error = z67.object({
1432
1448
  type: z67.literal("pcb_placement_error"),
1433
1449
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1434
1450
  error_type: z67.literal("pcb_placement_error").default("pcb_placement_error"),
1435
- message: z67.string()
1451
+ message: z67.string(),
1452
+ subcircuit_id: z67.string().optional()
1436
1453
  }).describe("Defines a placement error on the PCB");
1437
1454
  expectTypesMatch(true);
1438
1455
 
@@ -1443,7 +1460,8 @@ var pcb_trace_hint = z68.object({
1443
1460
  pcb_trace_hint_id: getZodPrefixedIdWithDefault("pcb_trace_hint"),
1444
1461
  pcb_port_id: z68.string(),
1445
1462
  pcb_component_id: z68.string(),
1446
- route: z68.array(route_hint_point)
1463
+ route: z68.array(route_hint_point),
1464
+ subcircuit_id: z68.string().optional()
1447
1465
  }).describe("A hint that can be used during generation of a PCB trace");
1448
1466
  expectTypesMatch(true);
1449
1467
 
@@ -1694,7 +1712,8 @@ var pcb_autorouting_error = z81.object({
1694
1712
  type: z81.literal("pcb_autorouting_error"),
1695
1713
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1696
1714
  error_type: z81.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1697
- message: z81.string()
1715
+ message: z81.string(),
1716
+ subcircuit_id: z81.string().optional()
1698
1717
  }).describe("The autorouting has failed to route a portion of the board");
1699
1718
  expectTypesMatch(true);
1700
1719
 
@@ -1771,7 +1790,8 @@ var pcb_thermal_spoke = z86.object({
1771
1790
  spoke_thickness: distance,
1772
1791
  spoke_inner_diameter: distance,
1773
1792
  spoke_outer_diameter: distance,
1774
- pcb_plated_hole_id: z86.string().optional()
1793
+ pcb_plated_hole_id: z86.string().optional(),
1794
+ subcircuit_id: z86.string().optional()
1775
1795
  }).describe("Pattern for connecting a ground plane to a plated hole");
1776
1796
  expectTypesMatch(true);
1777
1797
 
@@ -1786,6 +1806,7 @@ var cad_component = z87.object({
1786
1806
  rotation: point3.optional(),
1787
1807
  size: point3.optional(),
1788
1808
  layer: layer_ref.optional(),
1809
+ subcircuit_id: z87.string().optional(),
1789
1810
  // These are all ways to generate/load the 3d model
1790
1811
  footprinter_string: z87.string().optional(),
1791
1812
  model_obj_url: z87.string().optional(),