circuit-json 0.0.200 → 0.0.201
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/README.md +5 -0
- package/dist/index.d.mts +79 -26
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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()
|
|
@@ -1341,7 +1343,7 @@ import { z as z63 } from "zod";
|
|
|
1341
1343
|
var pcb_trace_error = z63.object({
|
|
1342
1344
|
type: z63.literal("pcb_trace_error"),
|
|
1343
1345
|
pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
|
|
1344
|
-
error_type: z63.literal("pcb_trace_error"),
|
|
1346
|
+
error_type: z63.literal("pcb_trace_error").default("pcb_trace_error"),
|
|
1345
1347
|
message: z63.string(),
|
|
1346
1348
|
center: point.optional(),
|
|
1347
1349
|
pcb_trace_id: z63.string(),
|
|
@@ -1356,6 +1358,7 @@ import { z as z64 } from "zod";
|
|
|
1356
1358
|
var pcb_port_not_matched_error = z64.object({
|
|
1357
1359
|
type: z64.literal("pcb_port_not_matched_error"),
|
|
1358
1360
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
1361
|
+
error_type: z64.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
|
|
1359
1362
|
message: z64.string(),
|
|
1360
1363
|
pcb_component_ids: z64.array(z64.string())
|
|
1361
1364
|
}).describe("Defines a trace error on the PCB where a port is not matched");
|
|
@@ -1403,6 +1406,7 @@ import { z as z67 } from "zod";
|
|
|
1403
1406
|
var pcb_placement_error = z67.object({
|
|
1404
1407
|
type: z67.literal("pcb_placement_error"),
|
|
1405
1408
|
pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
|
|
1409
|
+
error_type: z67.literal("pcb_placement_error").default("pcb_placement_error"),
|
|
1406
1410
|
message: z67.string()
|
|
1407
1411
|
}).describe("Defines a placement error on the PCB");
|
|
1408
1412
|
expectTypesMatch(true);
|
|
@@ -1633,7 +1637,7 @@ var pcb_missing_footprint_error = z79.object({
|
|
|
1633
1637
|
),
|
|
1634
1638
|
pcb_group_id: z79.string().optional(),
|
|
1635
1639
|
subcircuit_id: z79.string().optional(),
|
|
1636
|
-
error_type: z79.literal("pcb_missing_footprint_error"),
|
|
1640
|
+
error_type: z79.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
|
|
1637
1641
|
source_component_id: z79.string(),
|
|
1638
1642
|
message: z79.string()
|
|
1639
1643
|
}).describe("Defines a missing footprint error on the PCB");
|
|
@@ -1663,6 +1667,7 @@ import { z as z81 } from "zod";
|
|
|
1663
1667
|
var pcb_autorouting_error = z81.object({
|
|
1664
1668
|
type: z81.literal("pcb_autorouting_error"),
|
|
1665
1669
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
|
|
1670
|
+
error_type: z81.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
|
|
1666
1671
|
message: z81.string()
|
|
1667
1672
|
}).describe("The autorouting has failed to route a portion of the board");
|
|
1668
1673
|
expectTypesMatch(true);
|