circuit-json 0.0.135 → 0.0.137
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 +14 -0
- package/dist/index.d.mts +140 -7
- package/dist/index.mjs +490 -479
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,7 @@ and is the primary way that Circuit JSON is defined and maintained.
|
|
|
57
57
|
- [SourceSimplePushButton](#sourcesimplepushbutton)
|
|
58
58
|
- [SourceSimpleResistor](#sourcesimpleresistor)
|
|
59
59
|
- [SourceSimpleResonator](#sourcesimpleresonator)
|
|
60
|
+
- [SourceSimpleSwitch](#sourcesimpleswitch)
|
|
60
61
|
- [SourceSimpleTransistor](#sourcesimpletransistor)
|
|
61
62
|
- [SourceTrace](#sourcetrace)
|
|
62
63
|
- [PCB Elements](#pcb-elements)
|
|
@@ -197,6 +198,7 @@ interface SourcePort {
|
|
|
197
198
|
name: string
|
|
198
199
|
source_port_id: string
|
|
199
200
|
source_component_id: string
|
|
201
|
+
subcircuit_id?: string
|
|
200
202
|
}
|
|
201
203
|
```
|
|
202
204
|
|
|
@@ -348,6 +350,17 @@ interface SourceSimpleResonator extends SourceComponentBase {
|
|
|
348
350
|
}
|
|
349
351
|
```
|
|
350
352
|
|
|
353
|
+
### SourceSimpleSwitch
|
|
354
|
+
|
|
355
|
+
Defines a simple switch component
|
|
356
|
+
|
|
357
|
+
```typescript
|
|
358
|
+
/** Defines a simple switch component */
|
|
359
|
+
interface SourceSimpleSwitch extends SourceComponentBase {
|
|
360
|
+
ftype: "simple_switch"
|
|
361
|
+
}
|
|
362
|
+
```
|
|
363
|
+
|
|
351
364
|
### SourceSimpleTransistor
|
|
352
365
|
|
|
353
366
|
```typescript
|
|
@@ -369,6 +382,7 @@ interface SourceTrace {
|
|
|
369
382
|
source_trace_id: string
|
|
370
383
|
connected_source_port_ids: string[]
|
|
371
384
|
connected_source_net_ids: string[]
|
|
385
|
+
subcircuit_id?: string
|
|
372
386
|
subcircuit_connectivity_map_key?: string
|
|
373
387
|
max_length?: number
|
|
374
388
|
display_name?: string
|
package/dist/index.d.mts
CHANGED
|
@@ -882,6 +882,32 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
|
|
|
882
882
|
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
883
883
|
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
884
884
|
display_value: z.ZodOptional<z.ZodString>;
|
|
885
|
+
}, {
|
|
886
|
+
ftype: z.ZodLiteral<"simple_switch">;
|
|
887
|
+
}>, "strip", z.ZodTypeAny, {
|
|
888
|
+
type: "source_component";
|
|
889
|
+
ftype: "simple_switch";
|
|
890
|
+
source_component_id: string;
|
|
891
|
+
name: string;
|
|
892
|
+
manufacturer_part_number?: string | undefined;
|
|
893
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
894
|
+
display_value?: string | undefined;
|
|
895
|
+
}, {
|
|
896
|
+
type: "source_component";
|
|
897
|
+
ftype: "simple_switch";
|
|
898
|
+
source_component_id: string;
|
|
899
|
+
name: string;
|
|
900
|
+
manufacturer_part_number?: string | undefined;
|
|
901
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
902
|
+
display_value?: string | undefined;
|
|
903
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
904
|
+
type: z.ZodLiteral<"source_component">;
|
|
905
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
906
|
+
source_component_id: z.ZodString;
|
|
907
|
+
name: z.ZodString;
|
|
908
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
909
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
910
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
885
911
|
}, {
|
|
886
912
|
ftype: z.ZodLiteral<"simple_transistor">;
|
|
887
913
|
transistor_type: z.ZodEnum<["npn", "pnp"]>;
|
|
@@ -945,6 +971,7 @@ declare const source_port: z.ZodObject<{
|
|
|
945
971
|
name: z.ZodString;
|
|
946
972
|
source_port_id: z.ZodString;
|
|
947
973
|
source_component_id: z.ZodString;
|
|
974
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
948
975
|
}, "strip", z.ZodTypeAny, {
|
|
949
976
|
type: "source_port";
|
|
950
977
|
source_component_id: string;
|
|
@@ -952,6 +979,7 @@ declare const source_port: z.ZodObject<{
|
|
|
952
979
|
source_port_id: string;
|
|
953
980
|
pin_number?: number | undefined;
|
|
954
981
|
port_hints?: string[] | undefined;
|
|
982
|
+
subcircuit_id?: string | undefined;
|
|
955
983
|
}, {
|
|
956
984
|
type: "source_port";
|
|
957
985
|
source_component_id: string;
|
|
@@ -959,6 +987,7 @@ declare const source_port: z.ZodObject<{
|
|
|
959
987
|
source_port_id: string;
|
|
960
988
|
pin_number?: number | undefined;
|
|
961
989
|
port_hints?: string[] | undefined;
|
|
990
|
+
subcircuit_id?: string | undefined;
|
|
962
991
|
}>;
|
|
963
992
|
type SourcePortInput = z.input<typeof source_port>;
|
|
964
993
|
/**
|
|
@@ -971,6 +1000,7 @@ interface SourcePort {
|
|
|
971
1000
|
name: string;
|
|
972
1001
|
source_port_id: string;
|
|
973
1002
|
source_component_id: string;
|
|
1003
|
+
subcircuit_id?: string;
|
|
974
1004
|
}
|
|
975
1005
|
|
|
976
1006
|
interface SourceTrace {
|
|
@@ -978,6 +1008,7 @@ interface SourceTrace {
|
|
|
978
1008
|
source_trace_id: string;
|
|
979
1009
|
connected_source_port_ids: string[];
|
|
980
1010
|
connected_source_net_ids: string[];
|
|
1011
|
+
subcircuit_id?: string;
|
|
981
1012
|
subcircuit_connectivity_map_key?: string;
|
|
982
1013
|
max_length?: number;
|
|
983
1014
|
display_name?: string;
|
|
@@ -987,6 +1018,7 @@ declare const source_trace: z.ZodObject<{
|
|
|
987
1018
|
source_trace_id: z.ZodString;
|
|
988
1019
|
connected_source_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
989
1020
|
connected_source_net_ids: z.ZodArray<z.ZodString, "many">;
|
|
1021
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
990
1022
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
991
1023
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
992
1024
|
display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -995,6 +1027,7 @@ declare const source_trace: z.ZodObject<{
|
|
|
995
1027
|
source_trace_id: string;
|
|
996
1028
|
connected_source_port_ids: string[];
|
|
997
1029
|
connected_source_net_ids: string[];
|
|
1030
|
+
subcircuit_id?: string | undefined;
|
|
998
1031
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
999
1032
|
max_length?: number | undefined;
|
|
1000
1033
|
display_name?: string | undefined;
|
|
@@ -1003,6 +1036,7 @@ declare const source_trace: z.ZodObject<{
|
|
|
1003
1036
|
source_trace_id: string;
|
|
1004
1037
|
connected_source_port_ids: string[];
|
|
1005
1038
|
connected_source_net_ids: string[];
|
|
1039
|
+
subcircuit_id?: string | undefined;
|
|
1006
1040
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
1007
1041
|
max_length?: number | undefined;
|
|
1008
1042
|
display_name?: string | undefined;
|
|
@@ -1339,6 +1373,41 @@ interface SourceSimpleResonator extends SourceComponentBase {
|
|
|
1339
1373
|
frequency: number;
|
|
1340
1374
|
}
|
|
1341
1375
|
|
|
1376
|
+
declare const source_simple_switch: z.ZodObject<z.objectUtil.extendShape<{
|
|
1377
|
+
type: z.ZodLiteral<"source_component">;
|
|
1378
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
1379
|
+
source_component_id: z.ZodString;
|
|
1380
|
+
name: z.ZodString;
|
|
1381
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
1383
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
1384
|
+
}, {
|
|
1385
|
+
ftype: z.ZodLiteral<"simple_switch">;
|
|
1386
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1387
|
+
type: "source_component";
|
|
1388
|
+
ftype: "simple_switch";
|
|
1389
|
+
source_component_id: string;
|
|
1390
|
+
name: string;
|
|
1391
|
+
manufacturer_part_number?: string | undefined;
|
|
1392
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1393
|
+
display_value?: string | undefined;
|
|
1394
|
+
}, {
|
|
1395
|
+
type: "source_component";
|
|
1396
|
+
ftype: "simple_switch";
|
|
1397
|
+
source_component_id: string;
|
|
1398
|
+
name: string;
|
|
1399
|
+
manufacturer_part_number?: string | undefined;
|
|
1400
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1401
|
+
display_value?: string | undefined;
|
|
1402
|
+
}>;
|
|
1403
|
+
type SourceSimpleSwitchInput = z.input<typeof source_simple_switch>;
|
|
1404
|
+
/**
|
|
1405
|
+
* Defines a simple switch component
|
|
1406
|
+
*/
|
|
1407
|
+
interface SourceSimpleSwitch extends SourceComponentBase {
|
|
1408
|
+
ftype: "simple_switch";
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1342
1411
|
declare const source_simple_transistor: z.ZodObject<z.objectUtil.extendShape<{
|
|
1343
1412
|
type: z.ZodLiteral<"source_component">;
|
|
1344
1413
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -4145,8 +4214,8 @@ declare const pcb_trace: z.ZodObject<{
|
|
|
4145
4214
|
route_type: "via";
|
|
4146
4215
|
from_layer: string;
|
|
4147
4216
|
})[];
|
|
4148
|
-
source_trace_id?: string | undefined;
|
|
4149
4217
|
subcircuit_id?: string | undefined;
|
|
4218
|
+
source_trace_id?: string | undefined;
|
|
4150
4219
|
pcb_component_id?: string | undefined;
|
|
4151
4220
|
pcb_group_id?: string | undefined;
|
|
4152
4221
|
route_thickness_mode?: "constant" | "interpolated" | undefined;
|
|
@@ -4172,8 +4241,8 @@ declare const pcb_trace: z.ZodObject<{
|
|
|
4172
4241
|
route_type: "via";
|
|
4173
4242
|
from_layer: string;
|
|
4174
4243
|
})[];
|
|
4175
|
-
source_trace_id?: string | undefined;
|
|
4176
4244
|
subcircuit_id?: string | undefined;
|
|
4245
|
+
source_trace_id?: string | undefined;
|
|
4177
4246
|
pcb_component_id?: string | undefined;
|
|
4178
4247
|
pcb_group_id?: string | undefined;
|
|
4179
4248
|
pcb_trace_id?: string | undefined;
|
|
@@ -5553,6 +5622,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5553
5622
|
source_trace_id: z.ZodString;
|
|
5554
5623
|
connected_source_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
5555
5624
|
connected_source_net_ids: z.ZodArray<z.ZodString, "many">;
|
|
5625
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
5556
5626
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
5557
5627
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
5558
5628
|
display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -5561,6 +5631,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5561
5631
|
source_trace_id: string;
|
|
5562
5632
|
connected_source_port_ids: string[];
|
|
5563
5633
|
connected_source_net_ids: string[];
|
|
5634
|
+
subcircuit_id?: string | undefined;
|
|
5564
5635
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
5565
5636
|
max_length?: number | undefined;
|
|
5566
5637
|
display_name?: string | undefined;
|
|
@@ -5569,6 +5640,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5569
5640
|
source_trace_id: string;
|
|
5570
5641
|
connected_source_port_ids: string[];
|
|
5571
5642
|
connected_source_net_ids: string[];
|
|
5643
|
+
subcircuit_id?: string | undefined;
|
|
5572
5644
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
5573
5645
|
max_length?: number | undefined;
|
|
5574
5646
|
display_name?: string | undefined;
|
|
@@ -5579,6 +5651,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5579
5651
|
name: z.ZodString;
|
|
5580
5652
|
source_port_id: z.ZodString;
|
|
5581
5653
|
source_component_id: z.ZodString;
|
|
5654
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
5582
5655
|
}, "strip", z.ZodTypeAny, {
|
|
5583
5656
|
type: "source_port";
|
|
5584
5657
|
source_component_id: string;
|
|
@@ -5586,6 +5659,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5586
5659
|
source_port_id: string;
|
|
5587
5660
|
pin_number?: number | undefined;
|
|
5588
5661
|
port_hints?: string[] | undefined;
|
|
5662
|
+
subcircuit_id?: string | undefined;
|
|
5589
5663
|
}, {
|
|
5590
5664
|
type: "source_port";
|
|
5591
5665
|
source_component_id: string;
|
|
@@ -5593,6 +5667,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5593
5667
|
source_port_id: string;
|
|
5594
5668
|
pin_number?: number | undefined;
|
|
5595
5669
|
port_hints?: string[] | undefined;
|
|
5670
|
+
subcircuit_id?: string | undefined;
|
|
5596
5671
|
}>, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
5597
5672
|
type: z.ZodLiteral<"source_component">;
|
|
5598
5673
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -6041,6 +6116,32 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
6041
6116
|
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
6042
6117
|
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
6043
6118
|
display_value: z.ZodOptional<z.ZodString>;
|
|
6119
|
+
}, {
|
|
6120
|
+
ftype: z.ZodLiteral<"simple_switch">;
|
|
6121
|
+
}>, "strip", z.ZodTypeAny, {
|
|
6122
|
+
type: "source_component";
|
|
6123
|
+
ftype: "simple_switch";
|
|
6124
|
+
source_component_id: string;
|
|
6125
|
+
name: string;
|
|
6126
|
+
manufacturer_part_number?: string | undefined;
|
|
6127
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6128
|
+
display_value?: string | undefined;
|
|
6129
|
+
}, {
|
|
6130
|
+
type: "source_component";
|
|
6131
|
+
ftype: "simple_switch";
|
|
6132
|
+
source_component_id: string;
|
|
6133
|
+
name: string;
|
|
6134
|
+
manufacturer_part_number?: string | undefined;
|
|
6135
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6136
|
+
display_value?: string | undefined;
|
|
6137
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
6138
|
+
type: z.ZodLiteral<"source_component">;
|
|
6139
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
6140
|
+
source_component_id: z.ZodString;
|
|
6141
|
+
name: z.ZodString;
|
|
6142
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
6143
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
6144
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
6044
6145
|
}, {
|
|
6045
6146
|
ftype: z.ZodLiteral<"simple_transistor">;
|
|
6046
6147
|
transistor_type: z.ZodEnum<["npn", "pnp"]>;
|
|
@@ -7195,8 +7296,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7195
7296
|
route_type: "via";
|
|
7196
7297
|
from_layer: string;
|
|
7197
7298
|
})[];
|
|
7198
|
-
source_trace_id?: string | undefined;
|
|
7199
7299
|
subcircuit_id?: string | undefined;
|
|
7300
|
+
source_trace_id?: string | undefined;
|
|
7200
7301
|
pcb_component_id?: string | undefined;
|
|
7201
7302
|
pcb_group_id?: string | undefined;
|
|
7202
7303
|
route_thickness_mode?: "constant" | "interpolated" | undefined;
|
|
@@ -7222,8 +7323,8 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7222
7323
|
route_type: "via";
|
|
7223
7324
|
from_layer: string;
|
|
7224
7325
|
})[];
|
|
7225
|
-
source_trace_id?: string | undefined;
|
|
7226
7326
|
subcircuit_id?: string | undefined;
|
|
7327
|
+
source_trace_id?: string | undefined;
|
|
7227
7328
|
pcb_component_id?: string | undefined;
|
|
7228
7329
|
pcb_group_id?: string | undefined;
|
|
7229
7330
|
pcb_trace_id?: string | undefined;
|
|
@@ -9101,6 +9202,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9101
9202
|
source_trace_id: z.ZodString;
|
|
9102
9203
|
connected_source_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
9103
9204
|
connected_source_net_ids: z.ZodArray<z.ZodString, "many">;
|
|
9205
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
9104
9206
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
9105
9207
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
9106
9208
|
display_name: z.ZodOptional<z.ZodString>;
|
|
@@ -9109,6 +9211,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9109
9211
|
source_trace_id: string;
|
|
9110
9212
|
connected_source_port_ids: string[];
|
|
9111
9213
|
connected_source_net_ids: string[];
|
|
9214
|
+
subcircuit_id?: string | undefined;
|
|
9112
9215
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
9113
9216
|
max_length?: number | undefined;
|
|
9114
9217
|
display_name?: string | undefined;
|
|
@@ -9117,6 +9220,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9117
9220
|
source_trace_id: string;
|
|
9118
9221
|
connected_source_port_ids: string[];
|
|
9119
9222
|
connected_source_net_ids: string[];
|
|
9223
|
+
subcircuit_id?: string | undefined;
|
|
9120
9224
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
9121
9225
|
max_length?: number | undefined;
|
|
9122
9226
|
display_name?: string | undefined;
|
|
@@ -9127,6 +9231,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9127
9231
|
name: z.ZodString;
|
|
9128
9232
|
source_port_id: z.ZodString;
|
|
9129
9233
|
source_component_id: z.ZodString;
|
|
9234
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
9130
9235
|
}, "strip", z.ZodTypeAny, {
|
|
9131
9236
|
type: "source_port";
|
|
9132
9237
|
source_component_id: string;
|
|
@@ -9134,6 +9239,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9134
9239
|
source_port_id: string;
|
|
9135
9240
|
pin_number?: number | undefined;
|
|
9136
9241
|
port_hints?: string[] | undefined;
|
|
9242
|
+
subcircuit_id?: string | undefined;
|
|
9137
9243
|
}, {
|
|
9138
9244
|
type: "source_port";
|
|
9139
9245
|
source_component_id: string;
|
|
@@ -9141,6 +9247,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9141
9247
|
source_port_id: string;
|
|
9142
9248
|
pin_number?: number | undefined;
|
|
9143
9249
|
port_hints?: string[] | undefined;
|
|
9250
|
+
subcircuit_id?: string | undefined;
|
|
9144
9251
|
}>, z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
9145
9252
|
type: z.ZodLiteral<"source_component">;
|
|
9146
9253
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -9589,6 +9696,32 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9589
9696
|
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
9590
9697
|
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
9591
9698
|
display_value: z.ZodOptional<z.ZodString>;
|
|
9699
|
+
}, {
|
|
9700
|
+
ftype: z.ZodLiteral<"simple_switch">;
|
|
9701
|
+
}>, "strip", z.ZodTypeAny, {
|
|
9702
|
+
type: "source_component";
|
|
9703
|
+
ftype: "simple_switch";
|
|
9704
|
+
source_component_id: string;
|
|
9705
|
+
name: string;
|
|
9706
|
+
manufacturer_part_number?: string | undefined;
|
|
9707
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
9708
|
+
display_value?: string | undefined;
|
|
9709
|
+
}, {
|
|
9710
|
+
type: "source_component";
|
|
9711
|
+
ftype: "simple_switch";
|
|
9712
|
+
source_component_id: string;
|
|
9713
|
+
name: string;
|
|
9714
|
+
manufacturer_part_number?: string | undefined;
|
|
9715
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
9716
|
+
display_value?: string | undefined;
|
|
9717
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
9718
|
+
type: z.ZodLiteral<"source_component">;
|
|
9719
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
9720
|
+
source_component_id: z.ZodString;
|
|
9721
|
+
name: z.ZodString;
|
|
9722
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
9723
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
9724
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
9592
9725
|
}, {
|
|
9593
9726
|
ftype: z.ZodLiteral<"simple_transistor">;
|
|
9594
9727
|
transistor_type: z.ZodEnum<["npn", "pnp"]>;
|
|
@@ -10743,8 +10876,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10743
10876
|
route_type: "via";
|
|
10744
10877
|
from_layer: string;
|
|
10745
10878
|
})[];
|
|
10746
|
-
source_trace_id?: string | undefined;
|
|
10747
10879
|
subcircuit_id?: string | undefined;
|
|
10880
|
+
source_trace_id?: string | undefined;
|
|
10748
10881
|
pcb_component_id?: string | undefined;
|
|
10749
10882
|
pcb_group_id?: string | undefined;
|
|
10750
10883
|
route_thickness_mode?: "constant" | "interpolated" | undefined;
|
|
@@ -10770,8 +10903,8 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10770
10903
|
route_type: "via";
|
|
10771
10904
|
from_layer: string;
|
|
10772
10905
|
})[];
|
|
10773
|
-
source_trace_id?: string | undefined;
|
|
10774
10906
|
subcircuit_id?: string | undefined;
|
|
10907
|
+
source_trace_id?: string | undefined;
|
|
10775
10908
|
pcb_component_id?: string | undefined;
|
|
10776
10909
|
pcb_group_id?: string | undefined;
|
|
10777
10910
|
pcb_trace_id?: string | undefined;
|
|
@@ -12657,4 +12790,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
12657
12790
|
*/
|
|
12658
12791
|
type CircuitJson = AnyCircuitElement[];
|
|
12659
12792
|
|
|
12660
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type CircuitJson, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBManualEditConflictError, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbManualEditConflictError, type PcbManualEditConflictErrorInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_error, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
|
|
12793
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type CadComponent, type CadComponentInput, type CircuitJson, type Distance, type InputPoint, type InputPosition, type InputRotation, type LayerRef, type LayerRefInput, type Length, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutInput, type PCBManualEditConflictError, type PCBMissingFootprintError, type PCBPlacementError, type PCBPlatedHole, type PCBPlatedHoleInput, type PCBPort, type PCBPortInput, type PCBPortNotMatchedError, type PCBSMTPad, type PCBSMTPadInput, type PCBSilkscreenLine, type PCBSilkscreenText, type PCBSolderPasteInput, type PCBText, type PCBTrace, type PCBTraceError, type PCBTraceHint, type PCBTraceInput, type PCBVia, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbFabricationNotePath, type PcbFabricationNotePathInput, type PcbFabricationNoteText, type PcbFabricationNoteTextInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbManualEditConflictError, type PcbManualEditConflictErrorInput, type PcbMissingFootprintError, type PcbMissingFootprintErrorInput, type PcbPlacementError, type PcbPlacementErrorInput, type PcbPlatedHole, type PcbPlatedHoleCircle, type PcbPlatedHoleInput, type PcbPlatedHoleOval, type PcbPort, type PcbPortInput, type PcbPortNotMatchedError, type PcbPortNotMatchedErrorInput, type PcbRouteHint, type PcbRouteHintInput, type PcbRouteHints, type PcbRouteHintsInput, type PcbSilkscreenCircle, type PcbSilkscreenCircleInput, type PcbSilkscreenLine, type PcbSilkscreenLineInput, type PcbSilkscreenOval, type PcbSilkscreenOvalDeprecated, type PcbSilkscreenOvalInput, type PcbSilkscreenPath, type PcbSilkscreenPathDeprecated, type PcbSilkscreenPathInput, type PcbSilkscreenRect, type PcbSilkscreenRectInput, type PcbSilkscreenRectOld, type PcbSilkscreenText, type PcbSilkscreenTextInput, type PcbSmtPad, type PcbSmtPadCircle, type PcbSmtPadPill, type PcbSmtPadRect, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteRect, type PcbText, type PcbTextInput, type PcbTrace, type PcbTraceError, type PcbTraceErrorInput, type PcbTraceHint, type PcbTraceHintInput, type PcbTraceInput, type PcbTraceRoutePoint, type PcbTraceRoutePointVia, type PcbTraceRoutePointWire, type PcbVia, type PcbViaInput, type Point, type Point3, type Position, type Rotation, type RouteHintPoint, type RouteHintPointInput, type SchematicBox, type SchematicBoxInput, type SchematicComponent, type SchematicComponentInput, type SchematicDebugLine, type SchematicDebugObject, type SchematicDebugObjectInput, type SchematicDebugPoint, type SchematicDebugRect, type SchematicError, type SchematicErrorInput, type SchematicLine, type SchematicLineInput, type SchematicNetLabel, type SchematicNetLabelInput, type SchematicPath, type SchematicPathInput, type SchematicPort, type SchematicPortArrangement, type SchematicPortArrangementBySides, type SchematicPortArrangementBySize, type SchematicPortInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type Size, type SourceComponentBase, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceSimpleBattery, type SourceSimpleBatteryInput, type SourceSimpleBugInput, type SourceSimpleCapacitor, type SourceSimpleCapacitorInput, type SourceSimpleChip, type SourceSimpleChipInput, type SourceSimpleCrystal, type SourceSimpleCrystalInput, type SourceSimpleDiode, type SourceSimpleDiodeInput, type SourceSimpleGround, type SourceSimpleGroundInput, type SourceSimpleInductor, type SourceSimpleInductorInput, type SourceSimpleMosfet, type SourceSimpleMosfetInput, type SourceSimplePinHeader, type SourceSimplePinHeaderInput, type SourceSimplePotentiometer, type SourceSimplePotentiometerInput, type SourceSimplePowerSource, type SourceSimplePowerSourceInput, type SourceSimplePushButton, type SourceSimplePushButtonInput, type SourceSimpleResistor, type SourceSimpleResistorInput, type SourceSimpleResonator, type SourceSimpleResonatorInput, type SourceSimpleSwitch, type SourceSimpleSwitchInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SupplierName, type VisibleLayer, type VisibleLayerRef, all_layers, any_circuit_element, any_soup_element, any_source_component, battery_capacity, cad_component, capacitance, current, distance, frequency, getZodPrefixedIdWithDefault, inductance, layer_ref, layer_string, length, pcb_board, pcb_component, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_group, pcb_hole, pcb_hole_circle_or_square_shape, pcb_hole_oval_shape, pcb_keepout, pcb_manual_edit_conflict_error, pcb_missing_footprint_error, pcb_placement_error, pcb_plated_hole, pcb_port, pcb_port_not_matched_error, pcb_route_hint, pcb_route_hints, pcb_silkscreen_circle, pcb_silkscreen_line, pcb_silkscreen_oval, pcb_silkscreen_path, pcb_silkscreen_rect, pcb_silkscreen_text, pcb_smtpad, pcb_smtpad_pill, pcb_solder_paste, pcb_text, pcb_trace, pcb_trace_error, pcb_trace_hint, pcb_trace_route_point, pcb_trace_route_point_via, pcb_trace_route_point_wire, pcb_via, point, point3, port_arrangement, position, position3, resistance, rotation, route_hint_point, schematic_box, schematic_component, schematic_component_port_arrangement_by_sides, schematic_component_port_arrangement_by_size, schematic_debug_line, schematic_debug_object, schematic_debug_object_base, schematic_debug_point, schematic_debug_rect, schematic_error, schematic_line, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_group, source_led, source_net, source_port, source_simple_battery, source_simple_bug, source_simple_capacitor, source_simple_chip, source_simple_crystal, source_simple_diode, source_simple_ground, source_simple_inductor, source_simple_mosfet, source_simple_pin_header, source_simple_potentiometer, source_simple_power_source, source_simple_push_button, source_simple_resistor, source_simple_resonator, source_simple_switch, source_simple_transistor, source_trace, supplier_name, time, visible_layer, voltage };
|