circuit-json 0.0.126 → 0.0.128
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 +16 -0
- package/dist/index.d.mts +216 -1
- package/dist/index.mjs +421 -408
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,7 @@ and is the primary way that Circuit JSON is defined and maintained.
|
|
|
52
52
|
- [SourceSimpleDiode](#sourcesimplediode)
|
|
53
53
|
- [SourceSimpleGround](#sourcesimpleground)
|
|
54
54
|
- [SourceSimpleInductor](#sourcesimpleinductor)
|
|
55
|
+
- [SourceSimpleMosfet](#sourcesimplemosfet)
|
|
55
56
|
- [SourceSimplePowerSource](#sourcesimplepowersource)
|
|
56
57
|
- [SourceSimplePushButton](#sourcesimplepushbutton)
|
|
57
58
|
- [SourceSimpleResistor](#sourcesimpleresistor)
|
|
@@ -283,6 +284,20 @@ interface SourceSimpleInductor extends SourceComponentBase {
|
|
|
283
284
|
}
|
|
284
285
|
```
|
|
285
286
|
|
|
287
|
+
### SourceSimpleMosfet
|
|
288
|
+
|
|
289
|
+
```typescript
|
|
290
|
+
/** Defines a simple mosfet component
|
|
291
|
+
* This is a three-pin semiconductor device (source, gate, drain)
|
|
292
|
+
* Pin configuration is handled by the schematic port system */
|
|
293
|
+
|
|
294
|
+
interface SourceSimpleMosfet extends SourceComponentBase {
|
|
295
|
+
ftype: "simple_mosfet"
|
|
296
|
+
channel_type: "n" | "p"
|
|
297
|
+
mosfet_mode: "enhancement" | "depletion"
|
|
298
|
+
}
|
|
299
|
+
```
|
|
300
|
+
|
|
286
301
|
### SourceSimplePowerSource
|
|
287
302
|
|
|
288
303
|
Defines a simple power source component
|
|
@@ -356,6 +371,7 @@ interface SourceTrace {
|
|
|
356
371
|
connected_source_net_ids: string[]
|
|
357
372
|
subcircuit_connectivity_map_key?: string
|
|
358
373
|
max_length?: number
|
|
374
|
+
display_name?: string
|
|
359
375
|
}
|
|
360
376
|
```
|
|
361
377
|
|
package/dist/index.d.mts
CHANGED
|
@@ -903,6 +903,38 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
|
|
|
903
903
|
manufacturer_part_number?: string | undefined;
|
|
904
904
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
905
905
|
display_value?: string | undefined;
|
|
906
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
907
|
+
type: z.ZodLiteral<"source_component">;
|
|
908
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
909
|
+
source_component_id: z.ZodString;
|
|
910
|
+
name: z.ZodString;
|
|
911
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
912
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
913
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
914
|
+
}, {
|
|
915
|
+
ftype: z.ZodLiteral<"simple_mosfet">;
|
|
916
|
+
channel_type: z.ZodEnum<["n", "p"]>;
|
|
917
|
+
mosfet_mode: z.ZodEnum<["enhancement", "depletion"]>;
|
|
918
|
+
}>, "strip", z.ZodTypeAny, {
|
|
919
|
+
type: "source_component";
|
|
920
|
+
ftype: "simple_mosfet";
|
|
921
|
+
source_component_id: string;
|
|
922
|
+
name: string;
|
|
923
|
+
channel_type: "n" | "p";
|
|
924
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
925
|
+
manufacturer_part_number?: string | undefined;
|
|
926
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
927
|
+
display_value?: string | undefined;
|
|
928
|
+
}, {
|
|
929
|
+
type: "source_component";
|
|
930
|
+
ftype: "simple_mosfet";
|
|
931
|
+
source_component_id: string;
|
|
932
|
+
name: string;
|
|
933
|
+
channel_type: "n" | "p";
|
|
934
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
935
|
+
manufacturer_part_number?: string | undefined;
|
|
936
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
937
|
+
display_value?: string | undefined;
|
|
906
938
|
}>]>;
|
|
907
939
|
type AnySourceComponent = z.infer<typeof any_source_component>;
|
|
908
940
|
|
|
@@ -948,6 +980,7 @@ interface SourceTrace {
|
|
|
948
980
|
connected_source_net_ids: string[];
|
|
949
981
|
subcircuit_connectivity_map_key?: string;
|
|
950
982
|
max_length?: number;
|
|
983
|
+
display_name?: string;
|
|
951
984
|
}
|
|
952
985
|
declare const source_trace: z.ZodObject<{
|
|
953
986
|
type: z.ZodLiteral<"source_trace">;
|
|
@@ -956,6 +989,7 @@ declare const source_trace: z.ZodObject<{
|
|
|
956
989
|
connected_source_net_ids: z.ZodArray<z.ZodString, "many">;
|
|
957
990
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
958
991
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
992
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
959
993
|
}, "strip", z.ZodTypeAny, {
|
|
960
994
|
type: "source_trace";
|
|
961
995
|
source_trace_id: string;
|
|
@@ -963,6 +997,7 @@ declare const source_trace: z.ZodObject<{
|
|
|
963
997
|
connected_source_net_ids: string[];
|
|
964
998
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
965
999
|
max_length?: number | undefined;
|
|
1000
|
+
display_name?: string | undefined;
|
|
966
1001
|
}, {
|
|
967
1002
|
type: "source_trace";
|
|
968
1003
|
source_trace_id: string;
|
|
@@ -970,6 +1005,7 @@ declare const source_trace: z.ZodObject<{
|
|
|
970
1005
|
connected_source_net_ids: string[];
|
|
971
1006
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
972
1007
|
max_length?: number | undefined;
|
|
1008
|
+
display_name?: string | undefined;
|
|
973
1009
|
}>;
|
|
974
1010
|
|
|
975
1011
|
declare const source_group: z.ZodObject<{
|
|
@@ -1335,6 +1371,51 @@ interface SourceSimpleTransistor extends SourceComponentBase {
|
|
|
1335
1371
|
transistor_type: "npn" | "pnp";
|
|
1336
1372
|
}
|
|
1337
1373
|
|
|
1374
|
+
declare const source_simple_mosfet: z.ZodObject<z.objectUtil.extendShape<{
|
|
1375
|
+
type: z.ZodLiteral<"source_component">;
|
|
1376
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
1377
|
+
source_component_id: z.ZodString;
|
|
1378
|
+
name: z.ZodString;
|
|
1379
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
1380
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
1381
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
1382
|
+
}, {
|
|
1383
|
+
ftype: z.ZodLiteral<"simple_mosfet">;
|
|
1384
|
+
channel_type: z.ZodEnum<["n", "p"]>;
|
|
1385
|
+
mosfet_mode: z.ZodEnum<["enhancement", "depletion"]>;
|
|
1386
|
+
}>, "strip", z.ZodTypeAny, {
|
|
1387
|
+
type: "source_component";
|
|
1388
|
+
ftype: "simple_mosfet";
|
|
1389
|
+
source_component_id: string;
|
|
1390
|
+
name: string;
|
|
1391
|
+
channel_type: "n" | "p";
|
|
1392
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
1393
|
+
manufacturer_part_number?: string | undefined;
|
|
1394
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1395
|
+
display_value?: string | undefined;
|
|
1396
|
+
}, {
|
|
1397
|
+
type: "source_component";
|
|
1398
|
+
ftype: "simple_mosfet";
|
|
1399
|
+
source_component_id: string;
|
|
1400
|
+
name: string;
|
|
1401
|
+
channel_type: "n" | "p";
|
|
1402
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
1403
|
+
manufacturer_part_number?: string | undefined;
|
|
1404
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
1405
|
+
display_value?: string | undefined;
|
|
1406
|
+
}>;
|
|
1407
|
+
type SourceSimpleMosfetInput = z.input<typeof source_simple_mosfet>;
|
|
1408
|
+
/**
|
|
1409
|
+
* Defines a simple mosfet component
|
|
1410
|
+
* This is a three-pin semiconductor device (source, gate, drain)
|
|
1411
|
+
* Pin configuration is handled by the schematic port system
|
|
1412
|
+
*/
|
|
1413
|
+
interface SourceSimpleMosfet extends SourceComponentBase {
|
|
1414
|
+
ftype: "simple_mosfet";
|
|
1415
|
+
channel_type: "n" | "p";
|
|
1416
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1338
1419
|
interface SchematicBox {
|
|
1339
1420
|
type: "schematic_box";
|
|
1340
1421
|
schematic_component_id: string;
|
|
@@ -5087,6 +5168,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5087
5168
|
connected_source_net_ids: z.ZodArray<z.ZodString, "many">;
|
|
5088
5169
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
5089
5170
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
5171
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
5090
5172
|
}, "strip", z.ZodTypeAny, {
|
|
5091
5173
|
type: "source_trace";
|
|
5092
5174
|
source_trace_id: string;
|
|
@@ -5094,6 +5176,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5094
5176
|
connected_source_net_ids: string[];
|
|
5095
5177
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
5096
5178
|
max_length?: number | undefined;
|
|
5179
|
+
display_name?: string | undefined;
|
|
5097
5180
|
}, {
|
|
5098
5181
|
type: "source_trace";
|
|
5099
5182
|
source_trace_id: string;
|
|
@@ -5101,6 +5184,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5101
5184
|
connected_source_net_ids: string[];
|
|
5102
5185
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
5103
5186
|
max_length?: number | undefined;
|
|
5187
|
+
display_name?: string | undefined;
|
|
5104
5188
|
}>, z.ZodObject<{
|
|
5105
5189
|
type: z.ZodLiteral<"source_port">;
|
|
5106
5190
|
pin_number: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5591,6 +5675,38 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5591
5675
|
manufacturer_part_number?: string | undefined;
|
|
5592
5676
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
5593
5677
|
display_value?: string | undefined;
|
|
5678
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
5679
|
+
type: z.ZodLiteral<"source_component">;
|
|
5680
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
5681
|
+
source_component_id: z.ZodString;
|
|
5682
|
+
name: z.ZodString;
|
|
5683
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
5684
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
5685
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
5686
|
+
}, {
|
|
5687
|
+
ftype: z.ZodLiteral<"simple_mosfet">;
|
|
5688
|
+
channel_type: z.ZodEnum<["n", "p"]>;
|
|
5689
|
+
mosfet_mode: z.ZodEnum<["enhancement", "depletion"]>;
|
|
5690
|
+
}>, "strip", z.ZodTypeAny, {
|
|
5691
|
+
type: "source_component";
|
|
5692
|
+
ftype: "simple_mosfet";
|
|
5693
|
+
source_component_id: string;
|
|
5694
|
+
name: string;
|
|
5695
|
+
channel_type: "n" | "p";
|
|
5696
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
5697
|
+
manufacturer_part_number?: string | undefined;
|
|
5698
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
5699
|
+
display_value?: string | undefined;
|
|
5700
|
+
}, {
|
|
5701
|
+
type: "source_component";
|
|
5702
|
+
ftype: "simple_mosfet";
|
|
5703
|
+
source_component_id: string;
|
|
5704
|
+
name: string;
|
|
5705
|
+
channel_type: "n" | "p";
|
|
5706
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
5707
|
+
manufacturer_part_number?: string | undefined;
|
|
5708
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
5709
|
+
display_value?: string | undefined;
|
|
5594
5710
|
}>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
5595
5711
|
type: z.ZodLiteral<"source_component">;
|
|
5596
5712
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -5997,6 +6113,38 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
5997
6113
|
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
5998
6114
|
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
5999
6115
|
display_value: z.ZodOptional<z.ZodString>;
|
|
6116
|
+
}, {
|
|
6117
|
+
ftype: z.ZodLiteral<"simple_mosfet">;
|
|
6118
|
+
channel_type: z.ZodEnum<["n", "p"]>;
|
|
6119
|
+
mosfet_mode: z.ZodEnum<["enhancement", "depletion"]>;
|
|
6120
|
+
}>, "strip", z.ZodTypeAny, {
|
|
6121
|
+
type: "source_component";
|
|
6122
|
+
ftype: "simple_mosfet";
|
|
6123
|
+
source_component_id: string;
|
|
6124
|
+
name: string;
|
|
6125
|
+
channel_type: "n" | "p";
|
|
6126
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
6127
|
+
manufacturer_part_number?: string | undefined;
|
|
6128
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6129
|
+
display_value?: string | undefined;
|
|
6130
|
+
}, {
|
|
6131
|
+
type: "source_component";
|
|
6132
|
+
ftype: "simple_mosfet";
|
|
6133
|
+
source_component_id: string;
|
|
6134
|
+
name: string;
|
|
6135
|
+
channel_type: "n" | "p";
|
|
6136
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
6137
|
+
manufacturer_part_number?: string | undefined;
|
|
6138
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6139
|
+
display_value?: string | undefined;
|
|
6140
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
6141
|
+
type: z.ZodLiteral<"source_component">;
|
|
6142
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
6143
|
+
source_component_id: z.ZodString;
|
|
6144
|
+
name: z.ZodString;
|
|
6145
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
6146
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
6147
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
6000
6148
|
}, {
|
|
6001
6149
|
ftype: z.ZodLiteral<"simple_potentiometer">;
|
|
6002
6150
|
max_resistance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -8333,6 +8481,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8333
8481
|
connected_source_net_ids: z.ZodArray<z.ZodString, "many">;
|
|
8334
8482
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
8335
8483
|
max_length: z.ZodOptional<z.ZodNumber>;
|
|
8484
|
+
display_name: z.ZodOptional<z.ZodString>;
|
|
8336
8485
|
}, "strip", z.ZodTypeAny, {
|
|
8337
8486
|
type: "source_trace";
|
|
8338
8487
|
source_trace_id: string;
|
|
@@ -8340,6 +8489,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8340
8489
|
connected_source_net_ids: string[];
|
|
8341
8490
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
8342
8491
|
max_length?: number | undefined;
|
|
8492
|
+
display_name?: string | undefined;
|
|
8343
8493
|
}, {
|
|
8344
8494
|
type: "source_trace";
|
|
8345
8495
|
source_trace_id: string;
|
|
@@ -8347,6 +8497,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8347
8497
|
connected_source_net_ids: string[];
|
|
8348
8498
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
8349
8499
|
max_length?: number | undefined;
|
|
8500
|
+
display_name?: string | undefined;
|
|
8350
8501
|
}>, z.ZodObject<{
|
|
8351
8502
|
type: z.ZodLiteral<"source_port">;
|
|
8352
8503
|
pin_number: z.ZodOptional<z.ZodNumber>;
|
|
@@ -8837,6 +8988,38 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8837
8988
|
manufacturer_part_number?: string | undefined;
|
|
8838
8989
|
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
8839
8990
|
display_value?: string | undefined;
|
|
8991
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8992
|
+
type: z.ZodLiteral<"source_component">;
|
|
8993
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
8994
|
+
source_component_id: z.ZodString;
|
|
8995
|
+
name: z.ZodString;
|
|
8996
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
8997
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
8998
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
8999
|
+
}, {
|
|
9000
|
+
ftype: z.ZodLiteral<"simple_mosfet">;
|
|
9001
|
+
channel_type: z.ZodEnum<["n", "p"]>;
|
|
9002
|
+
mosfet_mode: z.ZodEnum<["enhancement", "depletion"]>;
|
|
9003
|
+
}>, "strip", z.ZodTypeAny, {
|
|
9004
|
+
type: "source_component";
|
|
9005
|
+
ftype: "simple_mosfet";
|
|
9006
|
+
source_component_id: string;
|
|
9007
|
+
name: string;
|
|
9008
|
+
channel_type: "n" | "p";
|
|
9009
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
9010
|
+
manufacturer_part_number?: string | undefined;
|
|
9011
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
9012
|
+
display_value?: string | undefined;
|
|
9013
|
+
}, {
|
|
9014
|
+
type: "source_component";
|
|
9015
|
+
ftype: "simple_mosfet";
|
|
9016
|
+
source_component_id: string;
|
|
9017
|
+
name: string;
|
|
9018
|
+
channel_type: "n" | "p";
|
|
9019
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
9020
|
+
manufacturer_part_number?: string | undefined;
|
|
9021
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
9022
|
+
display_value?: string | undefined;
|
|
8840
9023
|
}>]>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
8841
9024
|
type: z.ZodLiteral<"source_component">;
|
|
8842
9025
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -9243,6 +9426,38 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9243
9426
|
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
9244
9427
|
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
9245
9428
|
display_value: z.ZodOptional<z.ZodString>;
|
|
9429
|
+
}, {
|
|
9430
|
+
ftype: z.ZodLiteral<"simple_mosfet">;
|
|
9431
|
+
channel_type: z.ZodEnum<["n", "p"]>;
|
|
9432
|
+
mosfet_mode: z.ZodEnum<["enhancement", "depletion"]>;
|
|
9433
|
+
}>, "strip", z.ZodTypeAny, {
|
|
9434
|
+
type: "source_component";
|
|
9435
|
+
ftype: "simple_mosfet";
|
|
9436
|
+
source_component_id: string;
|
|
9437
|
+
name: string;
|
|
9438
|
+
channel_type: "n" | "p";
|
|
9439
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
9440
|
+
manufacturer_part_number?: string | undefined;
|
|
9441
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
9442
|
+
display_value?: string | undefined;
|
|
9443
|
+
}, {
|
|
9444
|
+
type: "source_component";
|
|
9445
|
+
ftype: "simple_mosfet";
|
|
9446
|
+
source_component_id: string;
|
|
9447
|
+
name: string;
|
|
9448
|
+
channel_type: "n" | "p";
|
|
9449
|
+
mosfet_mode: "enhancement" | "depletion";
|
|
9450
|
+
manufacturer_part_number?: string | undefined;
|
|
9451
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
9452
|
+
display_value?: string | undefined;
|
|
9453
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
9454
|
+
type: z.ZodLiteral<"source_component">;
|
|
9455
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
9456
|
+
source_component_id: z.ZodString;
|
|
9457
|
+
name: z.ZodString;
|
|
9458
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
9459
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
9460
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
9246
9461
|
}, {
|
|
9247
9462
|
ftype: z.ZodLiteral<"simple_potentiometer">;
|
|
9248
9463
|
max_resistance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -11585,4 +11800,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
11585
11800
|
*/
|
|
11586
11801
|
type CircuitJson = AnyCircuitElement[];
|
|
11587
11802
|
|
|
11588
|
-
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 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 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_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_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 };
|
|
11803
|
+
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 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_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 };
|