circuit-json 0.0.199 → 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 +6 -0
- package/dist/index.d.mts +98 -26
- package/dist/index.mjs +10 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -484,6 +484,7 @@ var source_project_metadata = z28.object({
|
|
|
484
484
|
type: z28.literal("source_project_metadata"),
|
|
485
485
|
name: z28.string().optional(),
|
|
486
486
|
software_used_string: z28.string().optional(),
|
|
487
|
+
project_url: z28.string().optional(),
|
|
487
488
|
created_at: z28.string().datetime().optional()
|
|
488
489
|
});
|
|
489
490
|
expectTypesMatch(true);
|
|
@@ -497,7 +498,7 @@ var source_missing_property_error = z29.object({
|
|
|
497
498
|
),
|
|
498
499
|
source_component_id: z29.string(),
|
|
499
500
|
property_name: z29.string(),
|
|
500
|
-
error_type: z29.literal("source_missing_property_error"),
|
|
501
|
+
error_type: z29.literal("source_missing_property_error").default("source_missing_property_error"),
|
|
501
502
|
message: z29.string()
|
|
502
503
|
}).describe("The source code is missing a property");
|
|
503
504
|
expectTypesMatch(true);
|
|
@@ -509,6 +510,7 @@ var source_failed_to_create_component_error = z30.object({
|
|
|
509
510
|
source_failed_to_create_component_error_id: getZodPrefixedIdWithDefault(
|
|
510
511
|
"source_failed_to_create_component_error"
|
|
511
512
|
),
|
|
513
|
+
error_type: z30.literal("source_failed_to_create_component_error").default("source_failed_to_create_component_error"),
|
|
512
514
|
component_name: z30.string().optional(),
|
|
513
515
|
subcircuit_id: z30.string().optional(),
|
|
514
516
|
parent_source_component_id: z30.string().optional(),
|
|
@@ -818,7 +820,7 @@ var schematic_error = z46.object({
|
|
|
818
820
|
type: z46.literal("schematic_error"),
|
|
819
821
|
schematic_error_id: z46.string(),
|
|
820
822
|
// eventually each error type should be broken out into a dir of files
|
|
821
|
-
error_type: z46.literal("schematic_port_not_found"),
|
|
823
|
+
error_type: z46.literal("schematic_port_not_found").default("schematic_port_not_found"),
|
|
822
824
|
message: z46.string()
|
|
823
825
|
}).describe("Defines a schematic error on the schematic");
|
|
824
826
|
expectTypesMatch(true);
|
|
@@ -830,6 +832,7 @@ var schematic_layout_error = z47.object({
|
|
|
830
832
|
schematic_layout_error_id: getZodPrefixedIdWithDefault(
|
|
831
833
|
"schematic_layout_error"
|
|
832
834
|
),
|
|
835
|
+
error_type: z47.literal("schematic_layout_error").default("schematic_layout_error"),
|
|
833
836
|
message: z47.string(),
|
|
834
837
|
source_group_id: z47.string(),
|
|
835
838
|
schematic_group_id: z47.string()
|
|
@@ -1340,7 +1343,7 @@ import { z as z63 } from "zod";
|
|
|
1340
1343
|
var pcb_trace_error = z63.object({
|
|
1341
1344
|
type: z63.literal("pcb_trace_error"),
|
|
1342
1345
|
pcb_trace_error_id: getZodPrefixedIdWithDefault("pcb_trace_error"),
|
|
1343
|
-
error_type: z63.literal("pcb_trace_error"),
|
|
1346
|
+
error_type: z63.literal("pcb_trace_error").default("pcb_trace_error"),
|
|
1344
1347
|
message: z63.string(),
|
|
1345
1348
|
center: point.optional(),
|
|
1346
1349
|
pcb_trace_id: z63.string(),
|
|
@@ -1355,6 +1358,7 @@ import { z as z64 } from "zod";
|
|
|
1355
1358
|
var pcb_port_not_matched_error = z64.object({
|
|
1356
1359
|
type: z64.literal("pcb_port_not_matched_error"),
|
|
1357
1360
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_error"),
|
|
1361
|
+
error_type: z64.literal("pcb_port_not_matched_error").default("pcb_port_not_matched_error"),
|
|
1358
1362
|
message: z64.string(),
|
|
1359
1363
|
pcb_component_ids: z64.array(z64.string())
|
|
1360
1364
|
}).describe("Defines a trace error on the PCB where a port is not matched");
|
|
@@ -1402,6 +1406,7 @@ import { z as z67 } from "zod";
|
|
|
1402
1406
|
var pcb_placement_error = z67.object({
|
|
1403
1407
|
type: z67.literal("pcb_placement_error"),
|
|
1404
1408
|
pcb_placement_error_id: getZodPrefixedIdWithDefault("pcb_placement_error"),
|
|
1409
|
+
error_type: z67.literal("pcb_placement_error").default("pcb_placement_error"),
|
|
1405
1410
|
message: z67.string()
|
|
1406
1411
|
}).describe("Defines a placement error on the PCB");
|
|
1407
1412
|
expectTypesMatch(true);
|
|
@@ -1632,7 +1637,7 @@ var pcb_missing_footprint_error = z79.object({
|
|
|
1632
1637
|
),
|
|
1633
1638
|
pcb_group_id: z79.string().optional(),
|
|
1634
1639
|
subcircuit_id: z79.string().optional(),
|
|
1635
|
-
error_type: z79.literal("pcb_missing_footprint_error"),
|
|
1640
|
+
error_type: z79.literal("pcb_missing_footprint_error").default("pcb_missing_footprint_error"),
|
|
1636
1641
|
source_component_id: z79.string(),
|
|
1637
1642
|
message: z79.string()
|
|
1638
1643
|
}).describe("Defines a missing footprint error on the PCB");
|
|
@@ -1662,6 +1667,7 @@ import { z as z81 } from "zod";
|
|
|
1662
1667
|
var pcb_autorouting_error = z81.object({
|
|
1663
1668
|
type: z81.literal("pcb_autorouting_error"),
|
|
1664
1669
|
pcb_error_id: getZodPrefixedIdWithDefault("pcb_autorouting_error"),
|
|
1670
|
+
error_type: z81.literal("pcb_autorouting_error").default("pcb_autorouting_error"),
|
|
1665
1671
|
message: z81.string()
|
|
1666
1672
|
}).describe("The autorouting has failed to route a portion of the board");
|
|
1667
1673
|
expectTypesMatch(true);
|