circuit-json 0.0.253 → 0.0.255
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 -1
- package/dist/index.d.mts +60 -10
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -267,6 +267,7 @@ interface SourceGroup {
|
|
|
267
267
|
parent_subcircuit_id?: string
|
|
268
268
|
parent_source_group_id?: string
|
|
269
269
|
is_subcircuit?: boolean
|
|
270
|
+
show_as_schematic_box?: boolean
|
|
270
271
|
name?: string
|
|
271
272
|
}
|
|
272
273
|
```
|
|
@@ -1186,6 +1187,7 @@ interface PcbPort {
|
|
|
1186
1187
|
x: Distance
|
|
1187
1188
|
y: Distance
|
|
1188
1189
|
layers: LayerRef[]
|
|
1190
|
+
is_board_pinout?: boolean
|
|
1189
1191
|
}
|
|
1190
1192
|
```
|
|
1191
1193
|
|
|
@@ -1606,7 +1608,7 @@ interface SchematicComponent {
|
|
|
1606
1608
|
type: "schematic_component"
|
|
1607
1609
|
size: Size
|
|
1608
1610
|
center: Point
|
|
1609
|
-
source_component_id
|
|
1611
|
+
source_component_id?: string
|
|
1610
1612
|
schematic_component_id: string
|
|
1611
1613
|
pin_spacing?: number
|
|
1612
1614
|
pin_styles?: Record<
|
|
@@ -1625,6 +1627,8 @@ interface SchematicComponent {
|
|
|
1625
1627
|
symbol_display_value?: string
|
|
1626
1628
|
subcircuit_id?: string
|
|
1627
1629
|
schematic_group_id?: string
|
|
1630
|
+
is_schematic_group?: boolean
|
|
1631
|
+
source_group_id?: string
|
|
1628
1632
|
}
|
|
1629
1633
|
|
|
1630
1634
|
interface SchematicPortArrangementBySize {
|
|
@@ -1718,6 +1722,7 @@ interface SchematicGroup {
|
|
|
1718
1722
|
height: Length
|
|
1719
1723
|
center: Point
|
|
1720
1724
|
schematic_component_ids: string[]
|
|
1725
|
+
show_as_schematic_box?: boolean
|
|
1721
1726
|
name?: string
|
|
1722
1727
|
description?: string
|
|
1723
1728
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -1120,6 +1120,7 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1120
1120
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
1121
1121
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
1122
1122
|
}>, "many">;
|
|
1123
|
+
is_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
1123
1124
|
}, "strip", z.ZodTypeAny, {
|
|
1124
1125
|
x: number;
|
|
1125
1126
|
y: number;
|
|
@@ -1130,6 +1131,7 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1130
1131
|
source_port_id: string;
|
|
1131
1132
|
subcircuit_id?: string | undefined;
|
|
1132
1133
|
pcb_group_id?: string | undefined;
|
|
1134
|
+
is_board_pinout?: boolean | undefined;
|
|
1133
1135
|
}, {
|
|
1134
1136
|
x: string | number;
|
|
1135
1137
|
y: string | number;
|
|
@@ -1142,6 +1144,7 @@ declare const pcb_port: z.ZodObject<{
|
|
|
1142
1144
|
subcircuit_id?: string | undefined;
|
|
1143
1145
|
pcb_group_id?: string | undefined;
|
|
1144
1146
|
pcb_port_id?: string | undefined;
|
|
1147
|
+
is_board_pinout?: boolean | undefined;
|
|
1145
1148
|
}>;
|
|
1146
1149
|
type PcbPortInput = z.input<typeof pcb_port>;
|
|
1147
1150
|
/**
|
|
@@ -1157,6 +1160,7 @@ interface PcbPort {
|
|
|
1157
1160
|
x: Distance;
|
|
1158
1161
|
y: Distance;
|
|
1159
1162
|
layers: LayerRef[];
|
|
1163
|
+
is_board_pinout?: boolean;
|
|
1160
1164
|
}
|
|
1161
1165
|
/**
|
|
1162
1166
|
* @deprecated use PcbPort
|
|
@@ -5284,7 +5288,7 @@ interface SchematicComponent {
|
|
|
5284
5288
|
type: "schematic_component";
|
|
5285
5289
|
size: Size;
|
|
5286
5290
|
center: Point;
|
|
5287
|
-
source_component_id
|
|
5291
|
+
source_component_id?: string;
|
|
5288
5292
|
schematic_component_id: string;
|
|
5289
5293
|
pin_spacing?: number;
|
|
5290
5294
|
pin_styles?: Record<string, {
|
|
@@ -5300,6 +5304,8 @@ interface SchematicComponent {
|
|
|
5300
5304
|
symbol_display_value?: string;
|
|
5301
5305
|
subcircuit_id?: string;
|
|
5302
5306
|
schematic_group_id?: string;
|
|
5307
|
+
is_schematic_group?: boolean;
|
|
5308
|
+
source_group_id?: string;
|
|
5303
5309
|
}
|
|
5304
5310
|
declare const schematic_component_port_arrangement_by_size: z.ZodObject<{
|
|
5305
5311
|
left_size: z.ZodNumber;
|
|
@@ -5506,7 +5512,7 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5506
5512
|
x: string | number;
|
|
5507
5513
|
y: string | number;
|
|
5508
5514
|
}>;
|
|
5509
|
-
source_component_id: z.ZodString
|
|
5515
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
5510
5516
|
schematic_component_id: z.ZodString;
|
|
5511
5517
|
pin_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5512
5518
|
pin_styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -5622,9 +5628,10 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5622
5628
|
symbol_display_value: z.ZodOptional<z.ZodString>;
|
|
5623
5629
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
5624
5630
|
schematic_group_id: z.ZodOptional<z.ZodString>;
|
|
5631
|
+
is_schematic_group: z.ZodOptional<z.ZodBoolean>;
|
|
5632
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
5625
5633
|
}, "strip", z.ZodTypeAny, {
|
|
5626
5634
|
type: "schematic_component";
|
|
5627
|
-
source_component_id: string;
|
|
5628
5635
|
center: {
|
|
5629
5636
|
x: number;
|
|
5630
5637
|
y: number;
|
|
@@ -5634,7 +5641,9 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5634
5641
|
width: number;
|
|
5635
5642
|
height: number;
|
|
5636
5643
|
};
|
|
5644
|
+
source_component_id?: string | undefined;
|
|
5637
5645
|
subcircuit_id?: string | undefined;
|
|
5646
|
+
source_group_id?: string | undefined;
|
|
5638
5647
|
pin_spacing?: number | undefined;
|
|
5639
5648
|
pin_styles?: Record<string, {
|
|
5640
5649
|
left_margin?: number | undefined;
|
|
@@ -5670,9 +5679,9 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5670
5679
|
port_labels?: Record<string, string> | undefined;
|
|
5671
5680
|
symbol_display_value?: string | undefined;
|
|
5672
5681
|
schematic_group_id?: string | undefined;
|
|
5682
|
+
is_schematic_group?: boolean | undefined;
|
|
5673
5683
|
}, {
|
|
5674
5684
|
type: "schematic_component";
|
|
5675
|
-
source_component_id: string;
|
|
5676
5685
|
center: {
|
|
5677
5686
|
x: string | number;
|
|
5678
5687
|
y: string | number;
|
|
@@ -5682,7 +5691,9 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5682
5691
|
width: number;
|
|
5683
5692
|
height: number;
|
|
5684
5693
|
};
|
|
5694
|
+
source_component_id?: string | undefined;
|
|
5685
5695
|
subcircuit_id?: string | undefined;
|
|
5696
|
+
source_group_id?: string | undefined;
|
|
5686
5697
|
pin_spacing?: string | number | undefined;
|
|
5687
5698
|
pin_styles?: Record<string, {
|
|
5688
5699
|
left_margin?: string | number | undefined;
|
|
@@ -5718,6 +5729,7 @@ declare const schematic_component: z.ZodObject<{
|
|
|
5718
5729
|
port_labels?: Record<string, string> | undefined;
|
|
5719
5730
|
symbol_display_value?: string | undefined;
|
|
5720
5731
|
schematic_group_id?: string | undefined;
|
|
5732
|
+
is_schematic_group?: boolean | undefined;
|
|
5721
5733
|
}>;
|
|
5722
5734
|
type SchematicComponentInput = z.input<typeof schematic_component>;
|
|
5723
5735
|
|
|
@@ -6636,6 +6648,7 @@ declare const schematic_group: z.ZodObject<{
|
|
|
6636
6648
|
y: string | number;
|
|
6637
6649
|
}>;
|
|
6638
6650
|
schematic_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
6651
|
+
show_as_schematic_box: z.ZodOptional<z.ZodBoolean>;
|
|
6639
6652
|
name: z.ZodOptional<z.ZodString>;
|
|
6640
6653
|
description: z.ZodOptional<z.ZodString>;
|
|
6641
6654
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -6653,6 +6666,7 @@ declare const schematic_group: z.ZodObject<{
|
|
|
6653
6666
|
name?: string | undefined;
|
|
6654
6667
|
subcircuit_id?: string | undefined;
|
|
6655
6668
|
is_subcircuit?: boolean | undefined;
|
|
6669
|
+
show_as_schematic_box?: boolean | undefined;
|
|
6656
6670
|
}, {
|
|
6657
6671
|
type: "schematic_group";
|
|
6658
6672
|
width: string | number;
|
|
@@ -6668,6 +6682,7 @@ declare const schematic_group: z.ZodObject<{
|
|
|
6668
6682
|
subcircuit_id?: string | undefined;
|
|
6669
6683
|
is_subcircuit?: boolean | undefined;
|
|
6670
6684
|
schematic_group_id?: string | undefined;
|
|
6685
|
+
show_as_schematic_box?: boolean | undefined;
|
|
6671
6686
|
}>;
|
|
6672
6687
|
type SchematicGroupInput = z.input<typeof schematic_group>;
|
|
6673
6688
|
/**
|
|
@@ -6683,6 +6698,7 @@ interface SchematicGroup {
|
|
|
6683
6698
|
height: Length;
|
|
6684
6699
|
center: Point;
|
|
6685
6700
|
schematic_component_ids: string[];
|
|
6701
|
+
show_as_schematic_box?: boolean;
|
|
6686
6702
|
name?: string;
|
|
6687
6703
|
description?: string;
|
|
6688
6704
|
}
|
|
@@ -9277,6 +9293,7 @@ declare const source_group: z.ZodObject<{
|
|
|
9277
9293
|
parent_subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
9278
9294
|
parent_source_group_id: z.ZodOptional<z.ZodString>;
|
|
9279
9295
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
9296
|
+
show_as_schematic_box: z.ZodOptional<z.ZodBoolean>;
|
|
9280
9297
|
name: z.ZodOptional<z.ZodString>;
|
|
9281
9298
|
}, "strip", z.ZodTypeAny, {
|
|
9282
9299
|
type: "source_group";
|
|
@@ -9284,6 +9301,7 @@ declare const source_group: z.ZodObject<{
|
|
|
9284
9301
|
name?: string | undefined;
|
|
9285
9302
|
subcircuit_id?: string | undefined;
|
|
9286
9303
|
is_subcircuit?: boolean | undefined;
|
|
9304
|
+
show_as_schematic_box?: boolean | undefined;
|
|
9287
9305
|
parent_subcircuit_id?: string | undefined;
|
|
9288
9306
|
parent_source_group_id?: string | undefined;
|
|
9289
9307
|
}, {
|
|
@@ -9292,6 +9310,7 @@ declare const source_group: z.ZodObject<{
|
|
|
9292
9310
|
name?: string | undefined;
|
|
9293
9311
|
subcircuit_id?: string | undefined;
|
|
9294
9312
|
is_subcircuit?: boolean | undefined;
|
|
9313
|
+
show_as_schematic_box?: boolean | undefined;
|
|
9295
9314
|
parent_subcircuit_id?: string | undefined;
|
|
9296
9315
|
parent_source_group_id?: string | undefined;
|
|
9297
9316
|
}>;
|
|
@@ -9303,6 +9322,7 @@ interface SourceGroup {
|
|
|
9303
9322
|
parent_subcircuit_id?: string;
|
|
9304
9323
|
parent_source_group_id?: string;
|
|
9305
9324
|
is_subcircuit?: boolean;
|
|
9325
|
+
show_as_schematic_box?: boolean;
|
|
9306
9326
|
name?: string;
|
|
9307
9327
|
}
|
|
9308
9328
|
|
|
@@ -10877,6 +10897,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10877
10897
|
parent_subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
10878
10898
|
parent_source_group_id: z.ZodOptional<z.ZodString>;
|
|
10879
10899
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
10900
|
+
show_as_schematic_box: z.ZodOptional<z.ZodBoolean>;
|
|
10880
10901
|
name: z.ZodOptional<z.ZodString>;
|
|
10881
10902
|
}, "strip", z.ZodTypeAny, {
|
|
10882
10903
|
type: "source_group";
|
|
@@ -10884,6 +10905,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10884
10905
|
name?: string | undefined;
|
|
10885
10906
|
subcircuit_id?: string | undefined;
|
|
10886
10907
|
is_subcircuit?: boolean | undefined;
|
|
10908
|
+
show_as_schematic_box?: boolean | undefined;
|
|
10887
10909
|
parent_subcircuit_id?: string | undefined;
|
|
10888
10910
|
parent_source_group_id?: string | undefined;
|
|
10889
10911
|
}, {
|
|
@@ -10892,6 +10914,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10892
10914
|
name?: string | undefined;
|
|
10893
10915
|
subcircuit_id?: string | undefined;
|
|
10894
10916
|
is_subcircuit?: boolean | undefined;
|
|
10917
|
+
show_as_schematic_box?: boolean | undefined;
|
|
10895
10918
|
parent_subcircuit_id?: string | undefined;
|
|
10896
10919
|
parent_source_group_id?: string | undefined;
|
|
10897
10920
|
}>, z.ZodObject<{
|
|
@@ -12342,6 +12365,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12342
12365
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
12343
12366
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
12344
12367
|
}>, "many">;
|
|
12368
|
+
is_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
12345
12369
|
}, "strip", z.ZodTypeAny, {
|
|
12346
12370
|
x: number;
|
|
12347
12371
|
y: number;
|
|
@@ -12352,6 +12376,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12352
12376
|
source_port_id: string;
|
|
12353
12377
|
subcircuit_id?: string | undefined;
|
|
12354
12378
|
pcb_group_id?: string | undefined;
|
|
12379
|
+
is_board_pinout?: boolean | undefined;
|
|
12355
12380
|
}, {
|
|
12356
12381
|
x: string | number;
|
|
12357
12382
|
y: string | number;
|
|
@@ -12364,6 +12389,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12364
12389
|
subcircuit_id?: string | undefined;
|
|
12365
12390
|
pcb_group_id?: string | undefined;
|
|
12366
12391
|
pcb_port_id?: string | undefined;
|
|
12392
|
+
is_board_pinout?: boolean | undefined;
|
|
12367
12393
|
}>, z.ZodObject<{
|
|
12368
12394
|
type: z.ZodLiteral<"pcb_text">;
|
|
12369
12395
|
pcb_text_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -14778,7 +14804,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14778
14804
|
x: string | number;
|
|
14779
14805
|
y: string | number;
|
|
14780
14806
|
}>;
|
|
14781
|
-
source_component_id: z.ZodString
|
|
14807
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
14782
14808
|
schematic_component_id: z.ZodString;
|
|
14783
14809
|
pin_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
14784
14810
|
pin_styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -14894,9 +14920,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14894
14920
|
symbol_display_value: z.ZodOptional<z.ZodString>;
|
|
14895
14921
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14896
14922
|
schematic_group_id: z.ZodOptional<z.ZodString>;
|
|
14923
|
+
is_schematic_group: z.ZodOptional<z.ZodBoolean>;
|
|
14924
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
14897
14925
|
}, "strip", z.ZodTypeAny, {
|
|
14898
14926
|
type: "schematic_component";
|
|
14899
|
-
source_component_id: string;
|
|
14900
14927
|
center: {
|
|
14901
14928
|
x: number;
|
|
14902
14929
|
y: number;
|
|
@@ -14906,7 +14933,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14906
14933
|
width: number;
|
|
14907
14934
|
height: number;
|
|
14908
14935
|
};
|
|
14936
|
+
source_component_id?: string | undefined;
|
|
14909
14937
|
subcircuit_id?: string | undefined;
|
|
14938
|
+
source_group_id?: string | undefined;
|
|
14910
14939
|
pin_spacing?: number | undefined;
|
|
14911
14940
|
pin_styles?: Record<string, {
|
|
14912
14941
|
left_margin?: number | undefined;
|
|
@@ -14942,9 +14971,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14942
14971
|
port_labels?: Record<string, string> | undefined;
|
|
14943
14972
|
symbol_display_value?: string | undefined;
|
|
14944
14973
|
schematic_group_id?: string | undefined;
|
|
14974
|
+
is_schematic_group?: boolean | undefined;
|
|
14945
14975
|
}, {
|
|
14946
14976
|
type: "schematic_component";
|
|
14947
|
-
source_component_id: string;
|
|
14948
14977
|
center: {
|
|
14949
14978
|
x: string | number;
|
|
14950
14979
|
y: string | number;
|
|
@@ -14954,7 +14983,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14954
14983
|
width: number;
|
|
14955
14984
|
height: number;
|
|
14956
14985
|
};
|
|
14986
|
+
source_component_id?: string | undefined;
|
|
14957
14987
|
subcircuit_id?: string | undefined;
|
|
14988
|
+
source_group_id?: string | undefined;
|
|
14958
14989
|
pin_spacing?: string | number | undefined;
|
|
14959
14990
|
pin_styles?: Record<string, {
|
|
14960
14991
|
left_margin?: string | number | undefined;
|
|
@@ -14990,6 +15021,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14990
15021
|
port_labels?: Record<string, string> | undefined;
|
|
14991
15022
|
symbol_display_value?: string | undefined;
|
|
14992
15023
|
schematic_group_id?: string | undefined;
|
|
15024
|
+
is_schematic_group?: boolean | undefined;
|
|
14993
15025
|
}>, z.ZodObject<{
|
|
14994
15026
|
type: z.ZodLiteral<"schematic_port">;
|
|
14995
15027
|
schematic_port_id: z.ZodString;
|
|
@@ -15531,6 +15563,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15531
15563
|
y: string | number;
|
|
15532
15564
|
}>;
|
|
15533
15565
|
schematic_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
15566
|
+
show_as_schematic_box: z.ZodOptional<z.ZodBoolean>;
|
|
15534
15567
|
name: z.ZodOptional<z.ZodString>;
|
|
15535
15568
|
description: z.ZodOptional<z.ZodString>;
|
|
15536
15569
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -15548,6 +15581,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15548
15581
|
name?: string | undefined;
|
|
15549
15582
|
subcircuit_id?: string | undefined;
|
|
15550
15583
|
is_subcircuit?: boolean | undefined;
|
|
15584
|
+
show_as_schematic_box?: boolean | undefined;
|
|
15551
15585
|
}, {
|
|
15552
15586
|
type: "schematic_group";
|
|
15553
15587
|
width: string | number;
|
|
@@ -15563,6 +15597,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15563
15597
|
subcircuit_id?: string | undefined;
|
|
15564
15598
|
is_subcircuit?: boolean | undefined;
|
|
15565
15599
|
schematic_group_id?: string | undefined;
|
|
15600
|
+
show_as_schematic_box?: boolean | undefined;
|
|
15566
15601
|
}>, z.ZodObject<{
|
|
15567
15602
|
type: z.ZodLiteral<"schematic_table">;
|
|
15568
15603
|
schematic_table_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -16993,6 +17028,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
16993
17028
|
parent_subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
16994
17029
|
parent_source_group_id: z.ZodOptional<z.ZodString>;
|
|
16995
17030
|
is_subcircuit: z.ZodOptional<z.ZodBoolean>;
|
|
17031
|
+
show_as_schematic_box: z.ZodOptional<z.ZodBoolean>;
|
|
16996
17032
|
name: z.ZodOptional<z.ZodString>;
|
|
16997
17033
|
}, "strip", z.ZodTypeAny, {
|
|
16998
17034
|
type: "source_group";
|
|
@@ -17000,6 +17036,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17000
17036
|
name?: string | undefined;
|
|
17001
17037
|
subcircuit_id?: string | undefined;
|
|
17002
17038
|
is_subcircuit?: boolean | undefined;
|
|
17039
|
+
show_as_schematic_box?: boolean | undefined;
|
|
17003
17040
|
parent_subcircuit_id?: string | undefined;
|
|
17004
17041
|
parent_source_group_id?: string | undefined;
|
|
17005
17042
|
}, {
|
|
@@ -17008,6 +17045,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
17008
17045
|
name?: string | undefined;
|
|
17009
17046
|
subcircuit_id?: string | undefined;
|
|
17010
17047
|
is_subcircuit?: boolean | undefined;
|
|
17048
|
+
show_as_schematic_box?: boolean | undefined;
|
|
17011
17049
|
parent_subcircuit_id?: string | undefined;
|
|
17012
17050
|
parent_source_group_id?: string | undefined;
|
|
17013
17051
|
}>, z.ZodObject<{
|
|
@@ -18458,6 +18496,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18458
18496
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
18459
18497
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
18460
18498
|
}>, "many">;
|
|
18499
|
+
is_board_pinout: z.ZodOptional<z.ZodBoolean>;
|
|
18461
18500
|
}, "strip", z.ZodTypeAny, {
|
|
18462
18501
|
x: number;
|
|
18463
18502
|
y: number;
|
|
@@ -18468,6 +18507,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18468
18507
|
source_port_id: string;
|
|
18469
18508
|
subcircuit_id?: string | undefined;
|
|
18470
18509
|
pcb_group_id?: string | undefined;
|
|
18510
|
+
is_board_pinout?: boolean | undefined;
|
|
18471
18511
|
}, {
|
|
18472
18512
|
x: string | number;
|
|
18473
18513
|
y: string | number;
|
|
@@ -18480,6 +18520,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
18480
18520
|
subcircuit_id?: string | undefined;
|
|
18481
18521
|
pcb_group_id?: string | undefined;
|
|
18482
18522
|
pcb_port_id?: string | undefined;
|
|
18523
|
+
is_board_pinout?: boolean | undefined;
|
|
18483
18524
|
}>, z.ZodObject<{
|
|
18484
18525
|
type: z.ZodLiteral<"pcb_text">;
|
|
18485
18526
|
pcb_text_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -20894,7 +20935,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
20894
20935
|
x: string | number;
|
|
20895
20936
|
y: string | number;
|
|
20896
20937
|
}>;
|
|
20897
|
-
source_component_id: z.ZodString
|
|
20938
|
+
source_component_id: z.ZodOptional<z.ZodString>;
|
|
20898
20939
|
schematic_component_id: z.ZodString;
|
|
20899
20940
|
pin_spacing: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
20900
20941
|
pin_styles: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -21010,9 +21051,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21010
21051
|
symbol_display_value: z.ZodOptional<z.ZodString>;
|
|
21011
21052
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
21012
21053
|
schematic_group_id: z.ZodOptional<z.ZodString>;
|
|
21054
|
+
is_schematic_group: z.ZodOptional<z.ZodBoolean>;
|
|
21055
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
21013
21056
|
}, "strip", z.ZodTypeAny, {
|
|
21014
21057
|
type: "schematic_component";
|
|
21015
|
-
source_component_id: string;
|
|
21016
21058
|
center: {
|
|
21017
21059
|
x: number;
|
|
21018
21060
|
y: number;
|
|
@@ -21022,7 +21064,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21022
21064
|
width: number;
|
|
21023
21065
|
height: number;
|
|
21024
21066
|
};
|
|
21067
|
+
source_component_id?: string | undefined;
|
|
21025
21068
|
subcircuit_id?: string | undefined;
|
|
21069
|
+
source_group_id?: string | undefined;
|
|
21026
21070
|
pin_spacing?: number | undefined;
|
|
21027
21071
|
pin_styles?: Record<string, {
|
|
21028
21072
|
left_margin?: number | undefined;
|
|
@@ -21058,9 +21102,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21058
21102
|
port_labels?: Record<string, string> | undefined;
|
|
21059
21103
|
symbol_display_value?: string | undefined;
|
|
21060
21104
|
schematic_group_id?: string | undefined;
|
|
21105
|
+
is_schematic_group?: boolean | undefined;
|
|
21061
21106
|
}, {
|
|
21062
21107
|
type: "schematic_component";
|
|
21063
|
-
source_component_id: string;
|
|
21064
21108
|
center: {
|
|
21065
21109
|
x: string | number;
|
|
21066
21110
|
y: string | number;
|
|
@@ -21070,7 +21114,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21070
21114
|
width: number;
|
|
21071
21115
|
height: number;
|
|
21072
21116
|
};
|
|
21117
|
+
source_component_id?: string | undefined;
|
|
21073
21118
|
subcircuit_id?: string | undefined;
|
|
21119
|
+
source_group_id?: string | undefined;
|
|
21074
21120
|
pin_spacing?: string | number | undefined;
|
|
21075
21121
|
pin_styles?: Record<string, {
|
|
21076
21122
|
left_margin?: string | number | undefined;
|
|
@@ -21106,6 +21152,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21106
21152
|
port_labels?: Record<string, string> | undefined;
|
|
21107
21153
|
symbol_display_value?: string | undefined;
|
|
21108
21154
|
schematic_group_id?: string | undefined;
|
|
21155
|
+
is_schematic_group?: boolean | undefined;
|
|
21109
21156
|
}>, z.ZodObject<{
|
|
21110
21157
|
type: z.ZodLiteral<"schematic_port">;
|
|
21111
21158
|
schematic_port_id: z.ZodString;
|
|
@@ -21647,6 +21694,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21647
21694
|
y: string | number;
|
|
21648
21695
|
}>;
|
|
21649
21696
|
schematic_component_ids: z.ZodArray<z.ZodString, "many">;
|
|
21697
|
+
show_as_schematic_box: z.ZodOptional<z.ZodBoolean>;
|
|
21650
21698
|
name: z.ZodOptional<z.ZodString>;
|
|
21651
21699
|
description: z.ZodOptional<z.ZodString>;
|
|
21652
21700
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -21664,6 +21712,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21664
21712
|
name?: string | undefined;
|
|
21665
21713
|
subcircuit_id?: string | undefined;
|
|
21666
21714
|
is_subcircuit?: boolean | undefined;
|
|
21715
|
+
show_as_schematic_box?: boolean | undefined;
|
|
21667
21716
|
}, {
|
|
21668
21717
|
type: "schematic_group";
|
|
21669
21718
|
width: string | number;
|
|
@@ -21679,6 +21728,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
21679
21728
|
subcircuit_id?: string | undefined;
|
|
21680
21729
|
is_subcircuit?: boolean | undefined;
|
|
21681
21730
|
schematic_group_id?: string | undefined;
|
|
21731
|
+
show_as_schematic_box?: boolean | undefined;
|
|
21682
21732
|
}>, z.ZodObject<{
|
|
21683
21733
|
type: z.ZodLiteral<"schematic_table">;
|
|
21684
21734
|
schematic_table_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
package/dist/index.mjs
CHANGED
|
@@ -680,6 +680,7 @@ var source_group = z38.object({
|
|
|
680
680
|
parent_subcircuit_id: z38.string().optional(),
|
|
681
681
|
parent_source_group_id: z38.string().optional(),
|
|
682
682
|
is_subcircuit: z38.boolean().optional(),
|
|
683
|
+
show_as_schematic_box: z38.boolean().optional(),
|
|
683
684
|
name: z38.string().optional()
|
|
684
685
|
});
|
|
685
686
|
expectTypesMatch(true);
|
|
@@ -827,7 +828,7 @@ var schematic_component = z45.object({
|
|
|
827
828
|
type: z45.literal("schematic_component"),
|
|
828
829
|
size,
|
|
829
830
|
center: point,
|
|
830
|
-
source_component_id: z45.string(),
|
|
831
|
+
source_component_id: z45.string().optional(),
|
|
831
832
|
schematic_component_id: z45.string(),
|
|
832
833
|
pin_spacing: length.optional(),
|
|
833
834
|
pin_styles: schematic_pin_styles.optional(),
|
|
@@ -837,7 +838,9 @@ var schematic_component = z45.object({
|
|
|
837
838
|
port_labels: z45.record(z45.string()).optional(),
|
|
838
839
|
symbol_display_value: z45.string().optional(),
|
|
839
840
|
subcircuit_id: z45.string().optional(),
|
|
840
|
-
schematic_group_id: z45.string().optional()
|
|
841
|
+
schematic_group_id: z45.string().optional(),
|
|
842
|
+
is_schematic_group: z45.boolean().optional(),
|
|
843
|
+
source_group_id: z45.string().optional()
|
|
841
844
|
});
|
|
842
845
|
expectTypesMatch(true);
|
|
843
846
|
|
|
@@ -1055,6 +1058,7 @@ var schematic_group = z57.object({
|
|
|
1055
1058
|
height: length,
|
|
1056
1059
|
center: point,
|
|
1057
1060
|
schematic_component_ids: z57.array(z57.string()),
|
|
1061
|
+
show_as_schematic_box: z57.boolean().optional(),
|
|
1058
1062
|
name: z57.string().optional(),
|
|
1059
1063
|
description: z57.string().optional()
|
|
1060
1064
|
}).describe("Defines a group of components on the schematic");
|
|
@@ -1312,7 +1316,8 @@ var pcb_port = z66.object({
|
|
|
1312
1316
|
pcb_component_id: z66.string(),
|
|
1313
1317
|
x: distance,
|
|
1314
1318
|
y: distance,
|
|
1315
|
-
layers: z66.array(layer_ref)
|
|
1319
|
+
layers: z66.array(layer_ref),
|
|
1320
|
+
is_board_pinout: z66.boolean().optional()
|
|
1316
1321
|
}).describe("Defines a port on the PCB");
|
|
1317
1322
|
expectTypesMatch(true);
|
|
1318
1323
|
|