circuit-json 0.0.226 → 0.0.227
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 +7 -7
- package/dist/index.d.mts +62 -62
- package/dist/index.mjs +9 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,7 +72,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
|
|
|
72
72
|
- [SourceSimpleTestPoint](#sourcesimpletestpoint)
|
|
73
73
|
- [SourceSimpleTransistor](#sourcesimpletransistor)
|
|
74
74
|
- [SourceTrace](#sourcetrace)
|
|
75
|
-
- [
|
|
75
|
+
- [SourceTraceNotConnectedError](#sourcetracenotconnectederror)
|
|
76
76
|
- [PCB Elements](#pcb-elements)
|
|
77
77
|
- [PcbAutoroutingError](#pcbautoroutingerror)
|
|
78
78
|
- [PcbBoard](#pcbboard)
|
|
@@ -617,18 +617,18 @@ interface SourceTrace {
|
|
|
617
617
|
}
|
|
618
618
|
```
|
|
619
619
|
|
|
620
|
-
###
|
|
620
|
+
### SourceTraceNotConnectedError
|
|
621
621
|
|
|
622
|
-
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/
|
|
622
|
+
[Source](https://github.com/tscircuit/circuit-json/blob/main/src/source/source_trace_not_connected_error.ts)
|
|
623
623
|
|
|
624
624
|
Occurs when a source trace selector does not match any ports
|
|
625
625
|
|
|
626
626
|
```typescript
|
|
627
627
|
/** Occurs when a source trace selector does not match any ports */
|
|
628
|
-
interface
|
|
629
|
-
type: "
|
|
630
|
-
|
|
631
|
-
error_type: "
|
|
628
|
+
interface SourceTraceNotConnectedError {
|
|
629
|
+
type: "source_trace_not_connected_error"
|
|
630
|
+
source_trace_not_connected_error_id: string
|
|
631
|
+
error_type: "source_trace_not_connected_error"
|
|
632
632
|
message: string
|
|
633
633
|
subcircuit_id?: string
|
|
634
634
|
source_group_id?: string
|
package/dist/index.d.mts
CHANGED
|
@@ -6907,10 +6907,10 @@ interface SourceFailedToCreateComponentError {
|
|
|
6907
6907
|
};
|
|
6908
6908
|
}
|
|
6909
6909
|
|
|
6910
|
-
declare const
|
|
6911
|
-
type: z.ZodLiteral<"
|
|
6912
|
-
|
|
6913
|
-
error_type: z.ZodDefault<z.ZodLiteral<"
|
|
6910
|
+
declare const source_trace_not_connected_error: z.ZodObject<{
|
|
6911
|
+
type: z.ZodLiteral<"source_trace_not_connected_error">;
|
|
6912
|
+
source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
6913
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
|
|
6914
6914
|
message: z.ZodString;
|
|
6915
6915
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
6916
6916
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -6919,9 +6919,9 @@ declare const source_trace_not_connected: z.ZodObject<{
|
|
|
6919
6919
|
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6920
6920
|
}, "strip", z.ZodTypeAny, {
|
|
6921
6921
|
message: string;
|
|
6922
|
-
type: "
|
|
6923
|
-
error_type: "
|
|
6924
|
-
|
|
6922
|
+
type: "source_trace_not_connected_error";
|
|
6923
|
+
error_type: "source_trace_not_connected_error";
|
|
6924
|
+
source_trace_not_connected_error_id: string;
|
|
6925
6925
|
subcircuit_id?: string | undefined;
|
|
6926
6926
|
source_trace_id?: string | undefined;
|
|
6927
6927
|
source_group_id?: string | undefined;
|
|
@@ -6929,23 +6929,23 @@ declare const source_trace_not_connected: z.ZodObject<{
|
|
|
6929
6929
|
selectors_not_found?: string[] | undefined;
|
|
6930
6930
|
}, {
|
|
6931
6931
|
message: string;
|
|
6932
|
-
type: "
|
|
6932
|
+
type: "source_trace_not_connected_error";
|
|
6933
6933
|
subcircuit_id?: string | undefined;
|
|
6934
6934
|
source_trace_id?: string | undefined;
|
|
6935
|
-
error_type?: "
|
|
6935
|
+
error_type?: "source_trace_not_connected_error" | undefined;
|
|
6936
6936
|
source_group_id?: string | undefined;
|
|
6937
|
-
|
|
6937
|
+
source_trace_not_connected_error_id?: string | undefined;
|
|
6938
6938
|
connected_source_port_ids?: string[] | undefined;
|
|
6939
6939
|
selectors_not_found?: string[] | undefined;
|
|
6940
6940
|
}>;
|
|
6941
|
-
type
|
|
6941
|
+
type SourceTraceNotConnectedErrorInput = z.input<typeof source_trace_not_connected_error>;
|
|
6942
6942
|
/**
|
|
6943
6943
|
* Occurs when a source trace selector does not match any ports
|
|
6944
6944
|
*/
|
|
6945
|
-
interface
|
|
6946
|
-
type: "
|
|
6947
|
-
|
|
6948
|
-
error_type: "
|
|
6945
|
+
interface SourceTraceNotConnectedError {
|
|
6946
|
+
type: "source_trace_not_connected_error";
|
|
6947
|
+
source_trace_not_connected_error_id: string;
|
|
6948
|
+
error_type: "source_trace_not_connected_error";
|
|
6949
6949
|
message: string;
|
|
6950
6950
|
subcircuit_id?: string;
|
|
6951
6951
|
source_group_id?: string;
|
|
@@ -7853,9 +7853,9 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
7853
7853
|
y?: number | undefined;
|
|
7854
7854
|
} | undefined;
|
|
7855
7855
|
}>, z.ZodObject<{
|
|
7856
|
-
type: z.ZodLiteral<"
|
|
7857
|
-
|
|
7858
|
-
error_type: z.ZodDefault<z.ZodLiteral<"
|
|
7856
|
+
type: z.ZodLiteral<"source_trace_not_connected_error">;
|
|
7857
|
+
source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
7858
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
|
|
7859
7859
|
message: z.ZodString;
|
|
7860
7860
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
7861
7861
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -7864,9 +7864,9 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
7864
7864
|
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7865
7865
|
}, "strip", z.ZodTypeAny, {
|
|
7866
7866
|
message: string;
|
|
7867
|
-
type: "
|
|
7868
|
-
error_type: "
|
|
7869
|
-
|
|
7867
|
+
type: "source_trace_not_connected_error";
|
|
7868
|
+
error_type: "source_trace_not_connected_error";
|
|
7869
|
+
source_trace_not_connected_error_id: string;
|
|
7870
7870
|
subcircuit_id?: string | undefined;
|
|
7871
7871
|
source_trace_id?: string | undefined;
|
|
7872
7872
|
source_group_id?: string | undefined;
|
|
@@ -7874,12 +7874,12 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
7874
7874
|
selectors_not_found?: string[] | undefined;
|
|
7875
7875
|
}, {
|
|
7876
7876
|
message: string;
|
|
7877
|
-
type: "
|
|
7877
|
+
type: "source_trace_not_connected_error";
|
|
7878
7878
|
subcircuit_id?: string | undefined;
|
|
7879
7879
|
source_trace_id?: string | undefined;
|
|
7880
|
-
error_type?: "
|
|
7880
|
+
error_type?: "source_trace_not_connected_error" | undefined;
|
|
7881
7881
|
source_group_id?: string | undefined;
|
|
7882
|
-
|
|
7882
|
+
source_trace_not_connected_error_id?: string | undefined;
|
|
7883
7883
|
connected_source_port_ids?: string[] | undefined;
|
|
7884
7884
|
selectors_not_found?: string[] | undefined;
|
|
7885
7885
|
}>]>;
|
|
@@ -7887,7 +7887,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
|
|
|
7887
7887
|
* Deprecated: use `AnySourceElement` instead
|
|
7888
7888
|
*/
|
|
7889
7889
|
type AnySourceComponent = z.infer<typeof any_source_component>;
|
|
7890
|
-
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleTestPoint | SourceSimpleMosfet | SourceSimpleFuse | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError |
|
|
7890
|
+
type AnySourceElement = SourceSimpleResistor | SourceSimpleCapacitor | SourceSimpleDiode | SourceSimpleLed | SourceSimpleGround | SourceSimpleChip | SourceSimplePowerSource | SourceSimpleBattery | SourceSimpleInductor | SourceSimplePushButton | SourceSimplePotentiometer | SourceSimpleCrystal | SourceSimplePinHeader | SourceSimpleResonator | SourceSimpleSwitch | SourceSimpleTransistor | SourceSimpleTestPoint | SourceSimpleMosfet | SourceSimpleFuse | SourceProjectMetadata | SourceMissingPropertyError | SourceFailedToCreateComponentError | SourceTraceNotConnectedError;
|
|
7891
7891
|
|
|
7892
7892
|
declare const source_port: z.ZodObject<{
|
|
7893
7893
|
type: z.ZodLiteral<"source_port">;
|
|
@@ -9224,9 +9224,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9224
9224
|
y?: number | undefined;
|
|
9225
9225
|
} | undefined;
|
|
9226
9226
|
}>, z.ZodObject<{
|
|
9227
|
-
type: z.ZodLiteral<"
|
|
9228
|
-
|
|
9229
|
-
error_type: z.ZodDefault<z.ZodLiteral<"
|
|
9227
|
+
type: z.ZodLiteral<"source_trace_not_connected_error">;
|
|
9228
|
+
source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
9229
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
|
|
9230
9230
|
message: z.ZodString;
|
|
9231
9231
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
9232
9232
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -9235,9 +9235,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9235
9235
|
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9236
9236
|
}, "strip", z.ZodTypeAny, {
|
|
9237
9237
|
message: string;
|
|
9238
|
-
type: "
|
|
9239
|
-
error_type: "
|
|
9240
|
-
|
|
9238
|
+
type: "source_trace_not_connected_error";
|
|
9239
|
+
error_type: "source_trace_not_connected_error";
|
|
9240
|
+
source_trace_not_connected_error_id: string;
|
|
9241
9241
|
subcircuit_id?: string | undefined;
|
|
9242
9242
|
source_trace_id?: string | undefined;
|
|
9243
9243
|
source_group_id?: string | undefined;
|
|
@@ -9245,12 +9245,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
9245
9245
|
selectors_not_found?: string[] | undefined;
|
|
9246
9246
|
}, {
|
|
9247
9247
|
message: string;
|
|
9248
|
-
type: "
|
|
9248
|
+
type: "source_trace_not_connected_error";
|
|
9249
9249
|
subcircuit_id?: string | undefined;
|
|
9250
9250
|
source_trace_id?: string | undefined;
|
|
9251
|
-
error_type?: "
|
|
9251
|
+
error_type?: "source_trace_not_connected_error" | undefined;
|
|
9252
9252
|
source_group_id?: string | undefined;
|
|
9253
|
-
|
|
9253
|
+
source_trace_not_connected_error_id?: string | undefined;
|
|
9254
9254
|
connected_source_port_ids?: string[] | undefined;
|
|
9255
9255
|
selectors_not_found?: string[] | undefined;
|
|
9256
9256
|
}>]>, z.ZodObject<{
|
|
@@ -10023,9 +10023,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10023
10023
|
project_url?: string | undefined;
|
|
10024
10024
|
created_at?: string | undefined;
|
|
10025
10025
|
}>, z.ZodObject<{
|
|
10026
|
-
type: z.ZodLiteral<"
|
|
10027
|
-
|
|
10028
|
-
error_type: z.ZodDefault<z.ZodLiteral<"
|
|
10026
|
+
type: z.ZodLiteral<"source_trace_not_connected_error">;
|
|
10027
|
+
source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10028
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
|
|
10029
10029
|
message: z.ZodString;
|
|
10030
10030
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
10031
10031
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -10034,9 +10034,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10034
10034
|
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10035
10035
|
}, "strip", z.ZodTypeAny, {
|
|
10036
10036
|
message: string;
|
|
10037
|
-
type: "
|
|
10038
|
-
error_type: "
|
|
10039
|
-
|
|
10037
|
+
type: "source_trace_not_connected_error";
|
|
10038
|
+
error_type: "source_trace_not_connected_error";
|
|
10039
|
+
source_trace_not_connected_error_id: string;
|
|
10040
10040
|
subcircuit_id?: string | undefined;
|
|
10041
10041
|
source_trace_id?: string | undefined;
|
|
10042
10042
|
source_group_id?: string | undefined;
|
|
@@ -10044,12 +10044,12 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
10044
10044
|
selectors_not_found?: string[] | undefined;
|
|
10045
10045
|
}, {
|
|
10046
10046
|
message: string;
|
|
10047
|
-
type: "
|
|
10047
|
+
type: "source_trace_not_connected_error";
|
|
10048
10048
|
subcircuit_id?: string | undefined;
|
|
10049
10049
|
source_trace_id?: string | undefined;
|
|
10050
|
-
error_type?: "
|
|
10050
|
+
error_type?: "source_trace_not_connected_error" | undefined;
|
|
10051
10051
|
source_group_id?: string | undefined;
|
|
10052
|
-
|
|
10052
|
+
source_trace_not_connected_error_id?: string | undefined;
|
|
10053
10053
|
connected_source_port_ids?: string[] | undefined;
|
|
10054
10054
|
selectors_not_found?: string[] | undefined;
|
|
10055
10055
|
}>, z.ZodObject<{
|
|
@@ -14591,9 +14591,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14591
14591
|
y?: number | undefined;
|
|
14592
14592
|
} | undefined;
|
|
14593
14593
|
}>, z.ZodObject<{
|
|
14594
|
-
type: z.ZodLiteral<"
|
|
14595
|
-
|
|
14596
|
-
error_type: z.ZodDefault<z.ZodLiteral<"
|
|
14594
|
+
type: z.ZodLiteral<"source_trace_not_connected_error">;
|
|
14595
|
+
source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
14596
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
|
|
14597
14597
|
message: z.ZodString;
|
|
14598
14598
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
14599
14599
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -14602,9 +14602,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14602
14602
|
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
14603
14603
|
}, "strip", z.ZodTypeAny, {
|
|
14604
14604
|
message: string;
|
|
14605
|
-
type: "
|
|
14606
|
-
error_type: "
|
|
14607
|
-
|
|
14605
|
+
type: "source_trace_not_connected_error";
|
|
14606
|
+
error_type: "source_trace_not_connected_error";
|
|
14607
|
+
source_trace_not_connected_error_id: string;
|
|
14608
14608
|
subcircuit_id?: string | undefined;
|
|
14609
14609
|
source_trace_id?: string | undefined;
|
|
14610
14610
|
source_group_id?: string | undefined;
|
|
@@ -14612,12 +14612,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
14612
14612
|
selectors_not_found?: string[] | undefined;
|
|
14613
14613
|
}, {
|
|
14614
14614
|
message: string;
|
|
14615
|
-
type: "
|
|
14615
|
+
type: "source_trace_not_connected_error";
|
|
14616
14616
|
subcircuit_id?: string | undefined;
|
|
14617
14617
|
source_trace_id?: string | undefined;
|
|
14618
|
-
error_type?: "
|
|
14618
|
+
error_type?: "source_trace_not_connected_error" | undefined;
|
|
14619
14619
|
source_group_id?: string | undefined;
|
|
14620
|
-
|
|
14620
|
+
source_trace_not_connected_error_id?: string | undefined;
|
|
14621
14621
|
connected_source_port_ids?: string[] | undefined;
|
|
14622
14622
|
selectors_not_found?: string[] | undefined;
|
|
14623
14623
|
}>]>, z.ZodObject<{
|
|
@@ -15390,9 +15390,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15390
15390
|
project_url?: string | undefined;
|
|
15391
15391
|
created_at?: string | undefined;
|
|
15392
15392
|
}>, z.ZodObject<{
|
|
15393
|
-
type: z.ZodLiteral<"
|
|
15394
|
-
|
|
15395
|
-
error_type: z.ZodDefault<z.ZodLiteral<"
|
|
15393
|
+
type: z.ZodLiteral<"source_trace_not_connected_error">;
|
|
15394
|
+
source_trace_not_connected_error_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
15395
|
+
error_type: z.ZodDefault<z.ZodLiteral<"source_trace_not_connected_error">>;
|
|
15396
15396
|
message: z.ZodString;
|
|
15397
15397
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
15398
15398
|
source_group_id: z.ZodOptional<z.ZodString>;
|
|
@@ -15401,9 +15401,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15401
15401
|
selectors_not_found: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15402
15402
|
}, "strip", z.ZodTypeAny, {
|
|
15403
15403
|
message: string;
|
|
15404
|
-
type: "
|
|
15405
|
-
error_type: "
|
|
15406
|
-
|
|
15404
|
+
type: "source_trace_not_connected_error";
|
|
15405
|
+
error_type: "source_trace_not_connected_error";
|
|
15406
|
+
source_trace_not_connected_error_id: string;
|
|
15407
15407
|
subcircuit_id?: string | undefined;
|
|
15408
15408
|
source_trace_id?: string | undefined;
|
|
15409
15409
|
source_group_id?: string | undefined;
|
|
@@ -15411,12 +15411,12 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15411
15411
|
selectors_not_found?: string[] | undefined;
|
|
15412
15412
|
}, {
|
|
15413
15413
|
message: string;
|
|
15414
|
-
type: "
|
|
15414
|
+
type: "source_trace_not_connected_error";
|
|
15415
15415
|
subcircuit_id?: string | undefined;
|
|
15416
15416
|
source_trace_id?: string | undefined;
|
|
15417
|
-
error_type?: "
|
|
15417
|
+
error_type?: "source_trace_not_connected_error" | undefined;
|
|
15418
15418
|
source_group_id?: string | undefined;
|
|
15419
|
-
|
|
15419
|
+
source_trace_not_connected_error_id?: string | undefined;
|
|
15420
15420
|
connected_source_port_ids?: string[] | undefined;
|
|
15421
15421
|
selectors_not_found?: string[] | undefined;
|
|
15422
15422
|
}>, z.ZodObject<{
|
|
@@ -19015,4 +19015,4 @@ type AnySoupElementInput = AnyCircuitElementInput;
|
|
|
19015
19015
|
*/
|
|
19016
19016
|
type CircuitJson = AnyCircuitElement[];
|
|
19017
19017
|
|
|
19018
|
-
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 NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, 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 PcbBreakoutPoint, type PcbBreakoutPointInput, 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 PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, 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 PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, 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 SchematicLayoutError, type SchematicLayoutErrorInput, 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 SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, 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 SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type
|
|
19018
|
+
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 NinePointAnchor, type PCBBoard, type PCBComponent, type PCBFabricationNotePath, type PCBFabricationNoteText, type PCBHole, type PCBHoleInput, type PCBKeepout, type PCBKeepoutCircle, type PCBKeepoutInput, type PCBKeepoutRect, 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 PcbBreakoutPoint, type PcbBreakoutPointInput, 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 PcbFootprintOverlapError, type PcbFootprintOverlapErrorInput, type PcbGroundPlane, type PcbGroundPlaneInput, type PcbGroundPlaneRegion, type PcbGroundPlaneRegionInput, type PcbGroup, type PcbGroupInput, type PcbHole, type PcbHoleCircleOrSquare, type PcbHoleCircleOrSquareInput, type PcbHoleCircularWithRectPad, type PcbHoleOval, type PcbHoleOvalInput, type PcbHolePillWithRectPad, type PcbHoleRotatedPillWithRectPad, 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 PcbSmtPadPolygon, type PcbSmtPadRect, type PcbSmtPadRotatedPill, type PcbSmtPadRotatedRect, type PcbSolderPaste, type PcbSolderPasteCircle, type PcbSolderPasteOval, type PcbSolderPastePill, type PcbSolderPasteRect, type PcbSolderPasteRotatedRect, type PcbText, type PcbTextInput, type PcbThermalSpoke, type PcbThermalSpokeInput, 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 SchematicLayoutError, type SchematicLayoutErrorInput, 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 SchematicTable, type SchematicTableCell, type SchematicTableCellInput, type SchematicTableInput, type SchematicText, type SchematicTextInput, type SchematicTrace, type SchematicTraceEdge, type SchematicTraceInput, type SchematicVoltageProbe, type SchematicVoltageProbeInput, type SimulationVoltageSource, type SimulationVoltageSourceInput, type Size, type SizeInput, type SourceComponentBase, type SourceFailedToCreateComponentError, type SourceFailedToCreateComponentErrorInput, type SourceGroup, type SourceGroupInput, type SourceMissingPropertyError, type SourceMissingPropertyErrorInput, type SourceNet, type SourceNetInput, type SourcePcbGroundPlane, type SourcePcbGroundPlaneInput, type SourcePort, type SourcePortInput, type SourceProjectMetadata, type SourceSimpleBattery, type SourceSimpleBatteryInput, 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 SourceSimpleTestPoint, type SourceSimpleTestPointInput, type SourceSimpleTransistor, type SourceSimpleTransistorInput, type SourceTrace, type SourceTraceNotConnectedError, type SourceTraceNotConnectedErrorInput, 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, ninePointAnchor, pcb_autorouting_error, pcb_board, pcb_breakout_point, pcb_component, pcb_cutout, pcb_cutout_circle, pcb_cutout_polygon, pcb_cutout_rect, pcb_fabrication_note_path, pcb_fabrication_note_text, pcb_footprint_overlap_error, pcb_ground_plane, pcb_ground_plane_region, 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_thermal_spoke, 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_layout_error, schematic_line, schematic_manual_edit_conflict_warning, schematic_net_label, schematic_path, schematic_pin_styles, schematic_port, schematic_table, schematic_table_cell, schematic_text, schematic_trace, schematic_voltage_probe, simulation_voltage_source, size, source_component_base, source_failed_to_create_component_error, source_group, source_missing_property_error, source_net, source_pcb_ground_plane, source_port, source_project_metadata, source_simple_battery, 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_test_point, source_simple_transistor, source_trace, source_trace_not_connected_error, supplier_name, time, visible_layer, voltage };
|
package/dist/index.mjs
CHANGED
|
@@ -549,14 +549,14 @@ var source_failed_to_create_component_error = z30.object({
|
|
|
549
549
|
}).describe("Error emitted when a component fails to be constructed");
|
|
550
550
|
expectTypesMatch(true);
|
|
551
551
|
|
|
552
|
-
// src/source/
|
|
552
|
+
// src/source/source_trace_not_connected_error.ts
|
|
553
553
|
import { z as z31 } from "zod";
|
|
554
|
-
var
|
|
555
|
-
type: z31.literal("
|
|
556
|
-
|
|
557
|
-
"
|
|
554
|
+
var source_trace_not_connected_error = z31.object({
|
|
555
|
+
type: z31.literal("source_trace_not_connected_error"),
|
|
556
|
+
source_trace_not_connected_error_id: getZodPrefixedIdWithDefault(
|
|
557
|
+
"source_trace_not_connected_error"
|
|
558
558
|
),
|
|
559
|
-
error_type: z31.literal("
|
|
559
|
+
error_type: z31.literal("source_trace_not_connected_error").default("source_trace_not_connected_error"),
|
|
560
560
|
message: z31.string(),
|
|
561
561
|
subcircuit_id: z31.string().optional(),
|
|
562
562
|
source_group_id: z31.string().optional(),
|
|
@@ -590,7 +590,7 @@ var any_source_component = z32.union([
|
|
|
590
590
|
source_project_metadata,
|
|
591
591
|
source_missing_property_error,
|
|
592
592
|
source_failed_to_create_component_error,
|
|
593
|
-
|
|
593
|
+
source_trace_not_connected_error
|
|
594
594
|
]);
|
|
595
595
|
expectTypesMatch(true);
|
|
596
596
|
|
|
@@ -1980,7 +1980,7 @@ var any_circuit_element = z93.union([
|
|
|
1980
1980
|
source_simple_push_button,
|
|
1981
1981
|
source_pcb_ground_plane,
|
|
1982
1982
|
source_project_metadata,
|
|
1983
|
-
|
|
1983
|
+
source_trace_not_connected_error,
|
|
1984
1984
|
pcb_component,
|
|
1985
1985
|
pcb_hole,
|
|
1986
1986
|
pcb_missing_footprint_error,
|
|
@@ -2157,7 +2157,7 @@ export {
|
|
|
2157
2157
|
source_simple_test_point,
|
|
2158
2158
|
source_simple_transistor,
|
|
2159
2159
|
source_trace,
|
|
2160
|
-
|
|
2160
|
+
source_trace_not_connected_error,
|
|
2161
2161
|
supplier_name,
|
|
2162
2162
|
time,
|
|
2163
2163
|
visible_layer,
|