circuit-json 0.0.200 → 0.0.202

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
@@ -498,7 +498,7 @@ var source_missing_property_error = z29.object({
498
498
  ),
499
499
  source_component_id: z29.string(),
500
500
  property_name: z29.string(),
501
- error_type: z29.literal("source_missing_property_error"),
501
+ error_type: z29.literal("source_missing_property_error").default("source_missing_property_error"),
502
502
  message: z29.string()
503
503
  }).describe("The source code is missing a property");
504
504
  expectTypesMatch(true);
@@ -510,6 +510,7 @@ var source_failed_to_create_component_error = z30.object({
510
510
  source_failed_to_create_component_error_id: getZodPrefixedIdWithDefault(
511
511
  "source_failed_to_create_component_error"
512
512
  ),
513
+ error_type: z30.literal("source_failed_to_create_component_error").default("source_failed_to_create_component_error"),
513
514
  component_name: z30.string().optional(),
514
515
  subcircuit_id: z30.string().optional(),
515
516
  parent_source_component_id: z30.string().optional(),
@@ -819,7 +820,7 @@ var schematic_error = z46.object({
819
820
  type: z46.literal("schematic_error"),
820
821
  schematic_error_id: z46.string(),
821
822
  // eventually each error type should be broken out into a dir of files
822
- error_type: z46.literal("schematic_port_not_found"),
823
+ error_type: z46.literal("schematic_port_not_found").default("schematic_port_not_found"),
823
824
  message: z46.string()
824
825
  }).describe("Defines a schematic error on the schematic");
825
826
  expectTypesMatch(true);
@@ -831,6 +832,7 @@ var schematic_layout_error = z47.object({
831
832
  schematic_layout_error_id: getZodPrefixedIdWithDefault(
832
833
  "schematic_layout_error"
833
834
  ),
835
+ error_type: z47.literal("schematic_layout_error").default("schematic_layout_error"),
834
836
  message: z47.string(),
835
837
  source_group_id: z47.string(),
836
838
  schematic_group_id: z47.string()
@@ -882,6 +884,7 @@ var schematic_manual_edit_conflict_warning = z50.object({
882
884
  schematic_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
883
885
  "schematic_manual_edit_conflict_warning"
884
886
  ),
887
+ warning_type: z50.literal("schematic_manual_edit_conflict_warning").default("schematic_manual_edit_conflict_warning"),
885
888
  message: z50.string(),
886
889
  schematic_component_id: z50.string(),
887
890
  schematic_group_id: z50.string().optional(),
@@ -1341,7 +1344,7 @@ import { z as z63 } from "zod";
1341
1344
  var pcb_trace_error = z63.object({
1342
1345
  type: z63.literal("pcb_trace_error"),
1343
1346
  pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
1344
- error_type: z63.literal("pcb_trace_error"),
1347
+ error_type: z63.literal("pcb_trace_error").default("pcb_trace_error"),
1345
1348
  message: z63.string(),
1346
1349
  center: point.optional(),
1347
1350
  pcb_trace_id: z63.string(),
@@ -1356,6 +1359,7 @@ import { z as z64 } from "zod";
1356
1359
  var pcb_port_not_matched_error = z64.object({
1357
1360
  type: z64.literal("pcb_port_not_matched_error"),
1358
1361
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
1362
+ error_type: z64.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
1359
1363
  message: z64.string(),
1360
1364
  pcb_component_ids: z64.array(z64.string())
1361
1365
  }).describe("Defines a trace error on the PCB where a port is not matched");
@@ -1403,6 +1407,7 @@ import { z as z67 } from "zod";
1403
1407
  var pcb_placement_error = z67.object({
1404
1408
  type: z67.literal("pcb_placement_error"),
1405
1409
  pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
1410
+ error_type: z67.literal("pcb_placement_error").default("pcb_placement_error"),
1406
1411
  message: z67.string()
1407
1412
  }).describe("Defines a placement error on the PCB");
1408
1413
  expectTypesMatch(true);
@@ -1633,7 +1638,7 @@ var pcb_missing_footprint_error = z79.object({
1633
1638
  ),
1634
1639
  pcb_group_id: z79.string().optional(),
1635
1640
  subcircuit_id: z79.string().optional(),
1636
- error_type: z79.literal("pcb_missing_footprint_error"),
1641
+ error_type: z79.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
1637
1642
  source_component_id: z79.string(),
1638
1643
  message: z79.string()
1639
1644
  }).describe("Defines a missing footprint error on the PCB");
@@ -1663,6 +1668,7 @@ import { z as z81 } from "zod";
1663
1668
  var pcb_autorouting_error = z81.object({
1664
1669
  type: z81.literal("pcb_autorouting_error"),
1665
1670
  pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
1671
+ error_type: z81.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
1666
1672
  message: z81.string()
1667
1673
  }).describe("The autorouting has failed to route a portion of the board");
1668
1674
  expectTypesMatch(true);
@@ -1674,6 +1680,7 @@ var pcb_manual_edit_conflict_warning = z82.object({
1674
1680
  pcb_manual_edit_conflict_warning_id: getZodPrefixedIdWithDefault(
1675
1681
  "pcb_manual_edit_conflict_warning"
1676
1682
  ),
1683
+ warning_type: z82.literal("pcb_manual_edit_conflict_warning").default("pcb_manual_edit_conflict_warning"),
1677
1684
  message: z82.string(),
1678
1685
  pcb_component_id: z82.string(),
1679
1686
  pcb_group_id: z82.string().optional(),