circuit-json 0.0.294 → 0.0.295
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 +3 -2
- package/dist/index.d.mts +30 -20
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -426,7 +426,8 @@ interface SourcePort {
|
|
|
426
426
|
port_hints?: string[]
|
|
427
427
|
name: string
|
|
428
428
|
source_port_id: string
|
|
429
|
-
source_component_id
|
|
429
|
+
source_component_id?: string
|
|
430
|
+
source_group_id?: string
|
|
430
431
|
subcircuit_id?: string
|
|
431
432
|
subcircuit_connectivity_map_key?: string
|
|
432
433
|
}
|
|
@@ -1660,7 +1661,7 @@ interface PcbPort {
|
|
|
1660
1661
|
pcb_group_id?: string
|
|
1661
1662
|
subcircuit_id?: string
|
|
1662
1663
|
source_port_id: string
|
|
1663
|
-
pcb_component_id
|
|
1664
|
+
pcb_component_id?: string
|
|
1664
1665
|
x: Distance
|
|
1665
1666
|
y: Distance
|
|
1666
1667
|
layers: LayerRef[]
|
package/dist/index.d.mts
CHANGED
|
@@ -1363,7 +1363,7 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1363
1363
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
1364
1364
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
1365
1365
|
source_port_id: z.ZodString;
|
|
1366
|
-
pcb_component_id: z.ZodString
|
|
1366
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
1367
1367
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
1368
1368
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
1369
1369
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
@@ -1380,10 +1380,10 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1380
1380
|
x: number;
|
|
1381
1381
|
y: number;
|
|
1382
1382
|
type: "pcb_port";
|
|
1383
|
-
pcb_component_id: string;
|
|
1384
1383
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
|
|
1385
1384
|
pcb_port_id: string;
|
|
1386
1385
|
source_port_id: string;
|
|
1386
|
+
pcb_component_id?: string | undefined;
|
|
1387
1387
|
subcircuit_id?: string | undefined;
|
|
1388
1388
|
pcb_group_id?: string | undefined;
|
|
1389
1389
|
is_board_pinout?: boolean | undefined;
|
|
@@ -1391,11 +1391,11 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1391
1391
|
x: string | number;
|
|
1392
1392
|
y: string | number;
|
|
1393
1393
|
type: "pcb_port";
|
|
1394
|
-
pcb_component_id: string;
|
|
1395
1394
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1396
1395
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1397
1396
|
})[];
|
|
1398
1397
|
source_port_id: string;
|
|
1398
|
+
pcb_component_id?: string | undefined;
|
|
1399
1399
|
subcircuit_id?: string | undefined;
|
|
1400
1400
|
pcb_group_id?: string | undefined;
|
|
1401
1401
|
pcb_port_id?: string | undefined;
|
|
@@ -1411,7 +1411,7 @@ interface PcbPort {
|
|
|
1411
1411
|
pcb_group_id?: string;
|
|
1412
1412
|
subcircuit_id?: string;
|
|
1413
1413
|
source_port_id: string;
|
|
1414
|
-
pcb_component_id
|
|
1414
|
+
pcb_component_id?: string;
|
|
1415
1415
|
x: Distance;
|
|
1416
1416
|
y: Distance;
|
|
1417
1417
|
layers: LayerRef[];
|
|
@@ -10938,25 +10938,28 @@ declare const source_port: z.ZodObject<{
|
|
|
10938
10938
|
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10939
10939
|
name: z.ZodString;
|
|
10940
10940
|
source_port_id: z.ZodString;
|
|
10941
|
-
source_component_id: z.ZodString
|
|
10941
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
10942
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
10942
10943
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
10943
10944
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
10944
10945
|
}, "strip", z.ZodTypeAny, {
|
|
10945
10946
|
type: "source_port";
|
|
10946
10947
|
name: string;
|
|
10947
|
-
source_component_id: string;
|
|
10948
10948
|
source_port_id: string;
|
|
10949
|
+
source_component_id?: string | undefined;
|
|
10949
10950
|
subcircuit_id?: string | undefined;
|
|
10950
10951
|
port_hints?: string[] | undefined;
|
|
10952
|
+
source_group_id?: string | undefined;
|
|
10951
10953
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
10952
10954
|
pin_number?: number | undefined;
|
|
10953
10955
|
}, {
|
|
10954
10956
|
type: "source_port";
|
|
10955
10957
|
name: string;
|
|
10956
|
-
source_component_id: string;
|
|
10957
10958
|
source_port_id: string;
|
|
10959
|
+
source_component_id?: string | undefined;
|
|
10958
10960
|
subcircuit_id?: string | undefined;
|
|
10959
10961
|
port_hints?: string[] | undefined;
|
|
10962
|
+
source_group_id?: string | undefined;
|
|
10960
10963
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
10961
10964
|
pin_number?: number | undefined;
|
|
10962
10965
|
}>;
|
|
@@ -10970,7 +10973,8 @@ interface SourcePort {
|
|
|
10970
10973
|
port_hints?: string[];
|
|
10971
10974
|
name: string;
|
|
10972
10975
|
source_port_id: string;
|
|
10973
|
-
source_component_id
|
|
10976
|
+
source_component_id?: string;
|
|
10977
|
+
source_group_id?: string;
|
|
10974
10978
|
subcircuit_id?: string;
|
|
10975
10979
|
subcircuit_connectivity_map_key?: string;
|
|
10976
10980
|
}
|
|
@@ -11798,25 +11802,28 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11798
11802
|
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
11799
11803
|
name: z.ZodString;
|
|
11800
11804
|
source_port_id: z.ZodString;
|
|
11801
|
-
source_component_id: z.ZodString
|
|
11805
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
11806
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
11802
11807
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
11803
11808
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
11804
11809
|
}, "strip", z.ZodTypeAny, {
|
|
11805
11810
|
type: "source_port";
|
|
11806
11811
|
name: string;
|
|
11807
|
-
source_component_id: string;
|
|
11808
11812
|
source_port_id: string;
|
|
11813
|
+
source_component_id?: string | undefined;
|
|
11809
11814
|
subcircuit_id?: string | undefined;
|
|
11810
11815
|
port_hints?: string[] | undefined;
|
|
11816
|
+
source_group_id?: string | undefined;
|
|
11811
11817
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
11812
11818
|
pin_number?: number | undefined;
|
|
11813
11819
|
}, {
|
|
11814
11820
|
type: "source_port";
|
|
11815
11821
|
name: string;
|
|
11816
|
-
source_component_id: string;
|
|
11817
11822
|
source_port_id: string;
|
|
11823
|
+
source_component_id?: string | undefined;
|
|
11818
11824
|
subcircuit_id?: string | undefined;
|
|
11819
11825
|
port_hints?: string[] | undefined;
|
|
11826
|
+
source_group_id?: string | undefined;
|
|
11820
11827
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
11821
11828
|
pin_number?: number | undefined;
|
|
11822
11829
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
@@ -14487,7 +14494,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14487
14494
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
14488
14495
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14489
14496
|
source_port_id: z.ZodString;
|
|
14490
|
-
pcb_component_id: z.ZodString
|
|
14497
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
14491
14498
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
14492
14499
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
14493
14500
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
@@ -14504,10 +14511,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14504
14511
|
x: number;
|
|
14505
14512
|
y: number;
|
|
14506
14513
|
type: "pcb_port";
|
|
14507
|
-
pcb_component_id: string;
|
|
14508
14514
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
|
|
14509
14515
|
pcb_port_id: string;
|
|
14510
14516
|
source_port_id: string;
|
|
14517
|
+
pcb_component_id?: string | undefined;
|
|
14511
14518
|
subcircuit_id?: string | undefined;
|
|
14512
14519
|
pcb_group_id?: string | undefined;
|
|
14513
14520
|
is_board_pinout?: boolean | undefined;
|
|
@@ -14515,11 +14522,11 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14515
14522
|
x: string | number;
|
|
14516
14523
|
y: string | number;
|
|
14517
14524
|
type: "pcb_port";
|
|
14518
|
-
pcb_component_id: string;
|
|
14519
14525
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
14520
14526
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
14521
14527
|
})[];
|
|
14522
14528
|
source_port_id: string;
|
|
14529
|
+
pcb_component_id?: string | undefined;
|
|
14523
14530
|
subcircuit_id?: string | undefined;
|
|
14524
14531
|
pcb_group_id?: string | undefined;
|
|
14525
14532
|
pcb_port_id?: string | undefined;
|
|
@@ -19251,25 +19258,28 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
19251
19258
|
port_hints: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19252
19259
|
name: z.ZodString;
|
|
19253
19260
|
source_port_id: z.ZodString;
|
|
19254
|
-
source_component_id: z.ZodString
|
|
19261
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
19262
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
19255
19263
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
19256
19264
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
19257
19265
|
}, "strip", z.ZodTypeAny, {
|
|
19258
19266
|
type: "source_port";
|
|
19259
19267
|
name: string;
|
|
19260
|
-
source_component_id: string;
|
|
19261
19268
|
source_port_id: string;
|
|
19269
|
+
source_component_id?: string | undefined;
|
|
19262
19270
|
subcircuit_id?: string | undefined;
|
|
19263
19271
|
port_hints?: string[] | undefined;
|
|
19272
|
+
source_group_id?: string | undefined;
|
|
19264
19273
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
19265
19274
|
pin_number?: number | undefined;
|
|
19266
19275
|
}, {
|
|
19267
19276
|
type: "source_port";
|
|
19268
19277
|
name: string;
|
|
19269
|
-
source_component_id: string;
|
|
19270
19278
|
source_port_id: string;
|
|
19279
|
+
source_component_id?: string | undefined;
|
|
19271
19280
|
subcircuit_id?: string | undefined;
|
|
19272
19281
|
port_hints?: string[] | undefined;
|
|
19282
|
+
source_group_id?: string | undefined;
|
|
19273
19283
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
19274
19284
|
pin_number?: number | undefined;
|
|
19275
19285
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
@@ -21940,7 +21950,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21940
21950
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
21941
21951
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
21942
21952
|
source_port_id: z.ZodString;
|
|
21943
|
-
pcb_component_id: z.ZodString
|
|
21953
|
+
pcb_component_id: z.ZodOptional<z.ZodString>;
|
|
21944
21954
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
21945
21955
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
21946
21956
|
layers: z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
@@ -21957,10 +21967,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21957
21967
|
x: number;
|
|
21958
21968
|
y: number;
|
|
21959
21969
|
type: "pcb_port";
|
|
21960
|
-
pcb_component_id: string;
|
|
21961
21970
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6")[];
|
|
21962
21971
|
pcb_port_id: string;
|
|
21963
21972
|
source_port_id: string;
|
|
21973
|
+
pcb_component_id?: string | undefined;
|
|
21964
21974
|
subcircuit_id?: string | undefined;
|
|
21965
21975
|
pcb_group_id?: string | undefined;
|
|
21966
21976
|
is_board_pinout?: boolean | undefined;
|
|
@@ -21968,11 +21978,11 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21968
21978
|
x: string | number;
|
|
21969
21979
|
y: string | number;
|
|
21970
21980
|
type: "pcb_port";
|
|
21971
|
-
pcb_component_id: string;
|
|
21972
21981
|
layers: ("top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
21973
21982
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
21974
21983
|
})[];
|
|
21975
21984
|
source_port_id: string;
|
|
21985
|
+
pcb_component_id?: string | undefined;
|
|
21976
21986
|
subcircuit_id?: string | undefined;
|
|
21977
21987
|
pcb_group_id?: string | undefined;
|
|
21978
21988
|
pcb_port_id?: string | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -664,7 +664,8 @@ var source_port = z36.object({
|
|
|
664
664
|
port_hints: z36.array(z36.string()).optional(),
|
|
665
665
|
name: z36.string(),
|
|
666
666
|
source_port_id: z36.string(),
|
|
667
|
-
source_component_id: z36.string(),
|
|
667
|
+
source_component_id: z36.string().optional(),
|
|
668
|
+
source_group_id: z36.string().optional(),
|
|
668
669
|
subcircuit_id: z36.string().optional(),
|
|
669
670
|
subcircuit_connectivity_map_key: z36.string().optional()
|
|
670
671
|
});
|
|
@@ -1453,7 +1454,7 @@ var pcb_port = z71.object({
|
|
|
1453
1454
|
pcb_group_id: z71.string().optional(),
|
|
1454
1455
|
subcircuit_id: z71.string().optional(),
|
|
1455
1456
|
source_port_id: z71.string(),
|
|
1456
|
-
pcb_component_id: z71.string(),
|
|
1457
|
+
pcb_component_id: z71.string().optional(),
|
|
1457
1458
|
x: distance,
|
|
1458
1459
|
y: distance,
|
|
1459
1460
|
layers: z71.array(layer_ref),
|