circuit-json 0.0.180 → 0.0.182
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 +21 -0
- package/dist/index.d.mts +390 -15
- package/dist/index.mjs +10 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -304,7 +304,8 @@ var source_component_base = z7.object({
|
|
|
304
304
|
supplier_part_numbers: z7.record(supplier_name, z7.array(z7.string())).optional(),
|
|
305
305
|
display_value: z7.string().optional(),
|
|
306
306
|
are_pins_interchangeable: z7.boolean().optional(),
|
|
307
|
-
internally_connected_source_port_ids: z7.array(z7.array(z7.string())).optional()
|
|
307
|
+
internally_connected_source_port_ids: z7.array(z7.array(z7.string())).optional(),
|
|
308
|
+
source_group_id: z7.string().optional()
|
|
308
309
|
});
|
|
309
310
|
expectTypesMatch(true);
|
|
310
311
|
|
|
@@ -657,7 +658,9 @@ var schematic_component = z36.object({
|
|
|
657
658
|
symbol_name: z36.string().optional(),
|
|
658
659
|
port_arrangement: port_arrangement.optional(),
|
|
659
660
|
port_labels: z36.record(z36.string()).optional(),
|
|
660
|
-
symbol_display_value: z36.string().optional()
|
|
661
|
+
symbol_display_value: z36.string().optional(),
|
|
662
|
+
subcircuit_id: z36.string().optional(),
|
|
663
|
+
schematic_group_id: z36.string().optional()
|
|
661
664
|
});
|
|
662
665
|
expectTypesMatch(true);
|
|
663
666
|
|
|
@@ -768,6 +771,8 @@ expectTypesMatch(true);
|
|
|
768
771
|
import { z as z43 } from "zod";
|
|
769
772
|
var schematic_net_label = z43.object({
|
|
770
773
|
type: z43.literal("schematic_net_label"),
|
|
774
|
+
schematic_net_label_id: getZodPrefixedIdWithDefault("schematic_net_label"),
|
|
775
|
+
schematic_trace_id: z43.string().optional(),
|
|
771
776
|
source_net_id: z43.string(),
|
|
772
777
|
center: point,
|
|
773
778
|
anchor_position: point.optional(),
|
|
@@ -775,6 +780,7 @@ var schematic_net_label = z43.object({
|
|
|
775
780
|
text: z43.string(),
|
|
776
781
|
symbol_name: z43.string().optional()
|
|
777
782
|
});
|
|
783
|
+
expectTypesMatch(true);
|
|
778
784
|
|
|
779
785
|
// src/schematic/schematic_error.ts
|
|
780
786
|
import { z as z44 } from "zod";
|
|
@@ -915,7 +921,8 @@ var pcb_component = z52.object({
|
|
|
915
921
|
rotation,
|
|
916
922
|
width: length,
|
|
917
923
|
height: length,
|
|
918
|
-
subcircuit_id: z52.string().optional()
|
|
924
|
+
subcircuit_id: z52.string().optional(),
|
|
925
|
+
pcb_group_id: z52.string().optional()
|
|
919
926
|
}).describe("Defines a component on the PCB");
|
|
920
927
|
expectTypesMatch(true);
|
|
921
928
|
|