circuit-json 0.0.185 → 0.0.186
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 +271 -2
- package/dist/index.mjs +634 -622
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
59
59
|
- [SourceSimpleDiode](#sourcesimplediode)
|
|
60
60
|
- [SourceSimpleGround](#sourcesimpleground)
|
|
61
61
|
- [SourceSimpleInductor](#sourcesimpleinductor)
|
|
62
|
+
- [SourceSimpleLed](#sourcesimpleled)
|
|
62
63
|
- [SourceSimpleMosfet](#sourcesimplemosfet)
|
|
63
64
|
- [SourceSimplePowerSource](#sourcesimplepowersource)
|
|
64
65
|
- [SourceSimplePushButton](#sourcesimplepushbutton)
|
|
@@ -383,6 +384,21 @@ interface SourceSimpleInductor extends SourceComponentBase {
|
|
|
383
384
|
}
|
|
384
385
|
```
|
|
385
386
|
|
|
387
|
+
### SourceSimpleLed
|
|
388
|
+
|
|
389
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_led.ts)
|
|
390
|
+
|
|
391
|
+
Defines a simple led component
|
|
392
|
+
|
|
393
|
+
```typescript
|
|
394
|
+
/** Defines a simple led component */
|
|
395
|
+
interface SourceSimpleLed extends Omit<SourceSimpleDiode, "ftype"> {
|
|
396
|
+
ftype: "simple_led"
|
|
397
|
+
color?: string
|
|
398
|
+
wavelength?: string
|
|
399
|
+
}
|
|
400
|
+
```
|
|
401
|
+
|
|
386
402
|
### SourceSimpleMosfet
|
|
387
403
|
|
|
388
404
|
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_simple_mosfet.ts)
|
package/dist/index.d.mts
CHANGED
|
@@ -5093,6 +5093,60 @@ interface SourceSimpleDiode extends SourceComponentBase {
|
|
|
5093
5093
|
ftype: "simple_diode";
|
|
5094
5094
|
}
|
|
5095
5095
|
|
|
5096
|
+
declare const source_simple_led: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
5097
|
+
type: z.ZodLiteral<"source_component">;
|
|
5098
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
5099
|
+
source_component_id: z.ZodString;
|
|
5100
|
+
name: z.ZodString;
|
|
5101
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
5102
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
5103
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
5104
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
5105
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
5106
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
5107
|
+
}, {
|
|
5108
|
+
ftype: z.ZodLiteral<"simple_diode">;
|
|
5109
|
+
}>, {
|
|
5110
|
+
ftype: z.ZodLiteral<"simple_led">;
|
|
5111
|
+
color: z.ZodOptional<z.ZodString>;
|
|
5112
|
+
wavelength: z.ZodOptional<z.ZodString>;
|
|
5113
|
+
}>, "strip", z.ZodTypeAny, {
|
|
5114
|
+
type: "source_component";
|
|
5115
|
+
name: string;
|
|
5116
|
+
source_component_id: string;
|
|
5117
|
+
ftype: "simple_led";
|
|
5118
|
+
color?: string | undefined;
|
|
5119
|
+
source_group_id?: string | undefined;
|
|
5120
|
+
manufacturer_part_number?: string | undefined;
|
|
5121
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
5122
|
+
display_value?: string | undefined;
|
|
5123
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
5124
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
5125
|
+
wavelength?: string | undefined;
|
|
5126
|
+
}, {
|
|
5127
|
+
type: "source_component";
|
|
5128
|
+
name: string;
|
|
5129
|
+
source_component_id: string;
|
|
5130
|
+
ftype: "simple_led";
|
|
5131
|
+
color?: string | undefined;
|
|
5132
|
+
source_group_id?: string | undefined;
|
|
5133
|
+
manufacturer_part_number?: string | undefined;
|
|
5134
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
5135
|
+
display_value?: string | undefined;
|
|
5136
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
5137
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
5138
|
+
wavelength?: string | undefined;
|
|
5139
|
+
}>;
|
|
5140
|
+
type SourceSimpleLedInput = z.input<typeof source_simple_led>;
|
|
5141
|
+
/**
|
|
5142
|
+
* Defines a simple led component
|
|
5143
|
+
*/
|
|
5144
|
+
interface SourceSimpleLed extends Omit<SourceSimpleDiode, "ftype"> {
|
|
5145
|
+
ftype: "simple_led";
|
|
5146
|
+
color?: string;
|
|
5147
|
+
wavelength?: string;
|
|
5148
|
+
}
|
|
5149
|
+
|
|
5096
5150
|
declare const source_simple_ground: z.ZodObject<z.objectUtil.extendShape<{
|
|
5097
5151
|
type: z.ZodLiteral<"source_component">;
|
|
5098
5152
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -6062,6 +6116,49 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
|
|
|
6062
6116
|
display_value?: string | undefined;
|
|
6063
6117
|
are_pins_interchangeable?: boolean | undefined;
|
|
6064
6118
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6119
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
6120
|
+
type: z.ZodLiteral<"source_component">;
|
|
6121
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
6122
|
+
source_component_id: z.ZodString;
|
|
6123
|
+
name: z.ZodString;
|
|
6124
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
6125
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
6126
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
6127
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
6128
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
6129
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
6130
|
+
}, {
|
|
6131
|
+
ftype: z.ZodLiteral<"simple_diode">;
|
|
6132
|
+
}>, {
|
|
6133
|
+
ftype: z.ZodLiteral<"simple_led">;
|
|
6134
|
+
color: z.ZodOptional<z.ZodString>;
|
|
6135
|
+
wavelength: z.ZodOptional<z.ZodString>;
|
|
6136
|
+
}>, "strip", z.ZodTypeAny, {
|
|
6137
|
+
type: "source_component";
|
|
6138
|
+
name: string;
|
|
6139
|
+
source_component_id: string;
|
|
6140
|
+
ftype: "simple_led";
|
|
6141
|
+
color?: string | undefined;
|
|
6142
|
+
source_group_id?: string | undefined;
|
|
6143
|
+
manufacturer_part_number?: string | undefined;
|
|
6144
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6145
|
+
display_value?: string | undefined;
|
|
6146
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
6147
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6148
|
+
wavelength?: string | undefined;
|
|
6149
|
+
}, {
|
|
6150
|
+
type: "source_component";
|
|
6151
|
+
name: string;
|
|
6152
|
+
source_component_id: string;
|
|
6153
|
+
ftype: "simple_led";
|
|
6154
|
+
color?: string | undefined;
|
|
6155
|
+
source_group_id?: string | undefined;
|
|
6156
|
+
manufacturer_part_number?: string | undefined;
|
|
6157
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
6158
|
+
display_value?: string | undefined;
|
|
6159
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
6160
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
6161
|
+
wavelength?: string | undefined;
|
|
6065
6162
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
6066
6163
|
type: z.ZodLiteral<"source_component">;
|
|
6067
6164
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -6729,7 +6826,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<z.objectUtil.extendS
|
|
|
6729
6826
|
* Deprecated: use `AnySourceElement` instead
|
|
6730
6827
|
*/
|
|
6731
6828
|
type AnySourceComponent = z.infer<typeof any_source_component>;
|
|
6732
|
-
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleGround | SourceSimpleChip | SourceLed | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleMosfet | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError;
|
|
6829
|
+
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceLed | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleMosfet | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError;
|
|
6733
6830
|
|
|
6734
6831
|
declare const source_port: z.ZodObject<{
|
|
6735
6832
|
type: z.ZodLiteral<"source_port">;
|
|
@@ -7168,6 +7265,49 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
7168
7265
|
display_value?: string | undefined;
|
|
7169
7266
|
are_pins_interchangeable?: boolean | undefined;
|
|
7170
7267
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7268
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
7269
|
+
type: z.ZodLiteral<"source_component">;
|
|
7270
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
7271
|
+
source_component_id: z.ZodString;
|
|
7272
|
+
name: z.ZodString;
|
|
7273
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
7274
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
7275
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
7276
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
7277
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
7278
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
7279
|
+
}, {
|
|
7280
|
+
ftype: z.ZodLiteral<"simple_diode">;
|
|
7281
|
+
}>, {
|
|
7282
|
+
ftype: z.ZodLiteral<"simple_led">;
|
|
7283
|
+
color: z.ZodOptional<z.ZodString>;
|
|
7284
|
+
wavelength: z.ZodOptional<z.ZodString>;
|
|
7285
|
+
}>, "strip", z.ZodTypeAny, {
|
|
7286
|
+
type: "source_component";
|
|
7287
|
+
name: string;
|
|
7288
|
+
source_component_id: string;
|
|
7289
|
+
ftype: "simple_led";
|
|
7290
|
+
color?: string | undefined;
|
|
7291
|
+
source_group_id?: string | undefined;
|
|
7292
|
+
manufacturer_part_number?: string | undefined;
|
|
7293
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7294
|
+
display_value?: string | undefined;
|
|
7295
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
7296
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7297
|
+
wavelength?: string | undefined;
|
|
7298
|
+
}, {
|
|
7299
|
+
type: "source_component";
|
|
7300
|
+
name: string;
|
|
7301
|
+
source_component_id: string;
|
|
7302
|
+
ftype: "simple_led";
|
|
7303
|
+
color?: string | undefined;
|
|
7304
|
+
source_group_id?: string | undefined;
|
|
7305
|
+
manufacturer_part_number?: string | undefined;
|
|
7306
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
7307
|
+
display_value?: string | undefined;
|
|
7308
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
7309
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
7310
|
+
wavelength?: string | undefined;
|
|
7171
7311
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
7172
7312
|
type: z.ZodLiteral<"source_component">;
|
|
7173
7313
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -8073,6 +8213,49 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
8073
8213
|
display_value?: string | undefined;
|
|
8074
8214
|
are_pins_interchangeable?: boolean | undefined;
|
|
8075
8215
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8216
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
8217
|
+
type: z.ZodLiteral<"source_component">;
|
|
8218
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
8219
|
+
source_component_id: z.ZodString;
|
|
8220
|
+
name: z.ZodString;
|
|
8221
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
8222
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
8223
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
8224
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
8225
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
8226
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
8227
|
+
}, {
|
|
8228
|
+
ftype: z.ZodLiteral<"simple_diode">;
|
|
8229
|
+
}>, {
|
|
8230
|
+
ftype: z.ZodLiteral<"simple_led">;
|
|
8231
|
+
color: z.ZodOptional<z.ZodString>;
|
|
8232
|
+
wavelength: z.ZodOptional<z.ZodString>;
|
|
8233
|
+
}>, "strip", z.ZodTypeAny, {
|
|
8234
|
+
type: "source_component";
|
|
8235
|
+
name: string;
|
|
8236
|
+
source_component_id: string;
|
|
8237
|
+
ftype: "simple_led";
|
|
8238
|
+
color?: string | undefined;
|
|
8239
|
+
source_group_id?: string | undefined;
|
|
8240
|
+
manufacturer_part_number?: string | undefined;
|
|
8241
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
8242
|
+
display_value?: string | undefined;
|
|
8243
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
8244
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8245
|
+
wavelength?: string | undefined;
|
|
8246
|
+
}, {
|
|
8247
|
+
type: "source_component";
|
|
8248
|
+
name: string;
|
|
8249
|
+
source_component_id: string;
|
|
8250
|
+
ftype: "simple_led";
|
|
8251
|
+
color?: string | undefined;
|
|
8252
|
+
source_group_id?: string | undefined;
|
|
8253
|
+
manufacturer_part_number?: string | undefined;
|
|
8254
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
8255
|
+
display_value?: string | undefined;
|
|
8256
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
8257
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
8258
|
+
wavelength?: string | undefined;
|
|
8076
8259
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
8077
8260
|
type: z.ZodLiteral<"source_component">;
|
|
8078
8261
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -11667,6 +11850,49 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
11667
11850
|
display_value?: string | undefined;
|
|
11668
11851
|
are_pins_interchangeable?: boolean | undefined;
|
|
11669
11852
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
11853
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
11854
|
+
type: z.ZodLiteral<"source_component">;
|
|
11855
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
11856
|
+
source_component_id: z.ZodString;
|
|
11857
|
+
name: z.ZodString;
|
|
11858
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
11859
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
11860
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
11861
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
11862
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
11863
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
11864
|
+
}, {
|
|
11865
|
+
ftype: z.ZodLiteral<"simple_diode">;
|
|
11866
|
+
}>, {
|
|
11867
|
+
ftype: z.ZodLiteral<"simple_led">;
|
|
11868
|
+
color: z.ZodOptional<z.ZodString>;
|
|
11869
|
+
wavelength: z.ZodOptional<z.ZodString>;
|
|
11870
|
+
}>, "strip", z.ZodTypeAny, {
|
|
11871
|
+
type: "source_component";
|
|
11872
|
+
name: string;
|
|
11873
|
+
source_component_id: string;
|
|
11874
|
+
ftype: "simple_led";
|
|
11875
|
+
color?: string | undefined;
|
|
11876
|
+
source_group_id?: string | undefined;
|
|
11877
|
+
manufacturer_part_number?: string | undefined;
|
|
11878
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
11879
|
+
display_value?: string | undefined;
|
|
11880
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
11881
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
11882
|
+
wavelength?: string | undefined;
|
|
11883
|
+
}, {
|
|
11884
|
+
type: "source_component";
|
|
11885
|
+
name: string;
|
|
11886
|
+
source_component_id: string;
|
|
11887
|
+
ftype: "simple_led";
|
|
11888
|
+
color?: string | undefined;
|
|
11889
|
+
source_group_id?: string | undefined;
|
|
11890
|
+
manufacturer_part_number?: string | undefined;
|
|
11891
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
11892
|
+
display_value?: string | undefined;
|
|
11893
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
11894
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
11895
|
+
wavelength?: string | undefined;
|
|
11670
11896
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
11671
11897
|
type: z.ZodLiteral<"source_component">;
|
|
11672
11898
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -12572,6 +12798,49 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12572
12798
|
display_value?: string | undefined;
|
|
12573
12799
|
are_pins_interchangeable?: boolean | undefined;
|
|
12574
12800
|
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12801
|
+
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
12802
|
+
type: z.ZodLiteral<"source_component">;
|
|
12803
|
+
ftype: z.ZodOptional<z.ZodString>;
|
|
12804
|
+
source_component_id: z.ZodString;
|
|
12805
|
+
name: z.ZodString;
|
|
12806
|
+
manufacturer_part_number: z.ZodOptional<z.ZodString>;
|
|
12807
|
+
supplier_part_numbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
12808
|
+
display_value: z.ZodOptional<z.ZodString>;
|
|
12809
|
+
are_pins_interchangeable: z.ZodOptional<z.ZodBoolean>;
|
|
12810
|
+
internally_connected_source_port_ids: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">>;
|
|
12811
|
+
source_group_id: z.ZodOptional<z.ZodString>;
|
|
12812
|
+
}, {
|
|
12813
|
+
ftype: z.ZodLiteral<"simple_diode">;
|
|
12814
|
+
}>, {
|
|
12815
|
+
ftype: z.ZodLiteral<"simple_led">;
|
|
12816
|
+
color: z.ZodOptional<z.ZodString>;
|
|
12817
|
+
wavelength: z.ZodOptional<z.ZodString>;
|
|
12818
|
+
}>, "strip", z.ZodTypeAny, {
|
|
12819
|
+
type: "source_component";
|
|
12820
|
+
name: string;
|
|
12821
|
+
source_component_id: string;
|
|
12822
|
+
ftype: "simple_led";
|
|
12823
|
+
color?: string | undefined;
|
|
12824
|
+
source_group_id?: string | undefined;
|
|
12825
|
+
manufacturer_part_number?: string | undefined;
|
|
12826
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
12827
|
+
display_value?: string | undefined;
|
|
12828
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
12829
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12830
|
+
wavelength?: string | undefined;
|
|
12831
|
+
}, {
|
|
12832
|
+
type: "source_component";
|
|
12833
|
+
name: string;
|
|
12834
|
+
source_component_id: string;
|
|
12835
|
+
ftype: "simple_led";
|
|
12836
|
+
color?: string | undefined;
|
|
12837
|
+
source_group_id?: string | undefined;
|
|
12838
|
+
manufacturer_part_number?: string | undefined;
|
|
12839
|
+
supplier_part_numbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
12840
|
+
display_value?: string | undefined;
|
|
12841
|
+
are_pins_interchangeable?: boolean | undefined;
|
|
12842
|
+
internally_connected_source_port_ids?: string[][] | undefined;
|
|
12843
|
+
wavelength?: string | undefined;
|
|
12575
12844
|
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
12576
12845
|
type: z.ZodLiteral<"source_component">;
|
|
12577
12846
|
ftype: z.ZodOptional<z.ZodString>;
|
|
@@ -16002,4 +16271,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
16002
16271
|
*/
|
|
16003
16272
|
type CircuitJson = AnyCircuitElement[];
|
|
16004
16273
|
|
|
16005
|
-
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, 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 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 PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, 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 PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, 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 PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, 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 SchematicGroup, type SchematicGroupInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, 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 SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, 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_autorouting_error, pcb_board, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, 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_warning, 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_group, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_led, source_missing_property_error, source_net, source_port, source_project_metadata, 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 };
|
|
16274
|
+
export { type AnyCircuitElement, type AnyCircuitElementInput, type AnySoupElement, type AnySoupElementInput, type AnySourceComponent, type AnySourceElement, type CadComponent, type CadComponentInput, type CircuitJson, type CircuitJsonError, type Distance, type InferredProjectMetadata, type InferredSchematicNetLabel, 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 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 PcbAutoroutingError, type PcbAutoroutingErrorInput, type PcbAutoroutingErrorInterface, type PcbBoard, type PcbBoardInput, type PcbCircuitElement, type PcbComponent, type PcbComponentInput, type PcbCutout, type PcbCutoutCircle, type PcbCutoutCircleInput, type PcbCutoutInput, type PcbCutoutPolygon, type PcbCutoutPolygonInput, type PcbCutoutRect, type PcbCutoutRectInput, 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 PcbHolePillWithRectPad, type PcbManualEditConflictWarning, type PcbManualEditConflictWarningInput, 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 PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, 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 SchematicGroup, type SchematicGroupInput, type SchematicLine, type SchematicLineInput, type SchematicManualEditConflictWarning, type SchematicManualEditConflictWarningInput, 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 SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceLed, type SourceLedInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, 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 SourceSimpleLed, type SourceSimpleLedInput, 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_autorouting_error, pcb_board, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, 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_warning, 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_group, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_text, schematic_trace, schematic_voltage_probe, size, source_component_base, source_failed_to_create_component_error, source_group, source_led, source_missing_property_error, source_net, source_port, source_project_metadata, 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_led, 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 };
|