circuit-json 0.0.328 → 0.0.330
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 +2 -0
- package/dist/index.d.mts +20 -0
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -290,6 +290,7 @@ interface SourceComponentInternalConnection {
|
|
|
290
290
|
source_component_internal_connection_id: string
|
|
291
291
|
source_component_id: string
|
|
292
292
|
source_port_ids: string[]
|
|
293
|
+
subcircuit_id?: string
|
|
293
294
|
}
|
|
294
295
|
```
|
|
295
296
|
|
|
@@ -985,6 +986,7 @@ interface PcbComponent {
|
|
|
985
986
|
pcb_group_id?: string
|
|
986
987
|
position_mode?: "packed" | "relative_to_group_anchor" | "none"
|
|
987
988
|
positioned_relative_to_pcb_group_id?: string
|
|
989
|
+
positioned_relative_to_pcb_board_id?: string
|
|
988
990
|
obstructs_within_bounds: boolean
|
|
989
991
|
}
|
|
990
992
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -408,6 +408,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
408
408
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
409
409
|
position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
|
|
410
410
|
positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
411
|
+
positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
|
|
411
412
|
obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
|
|
412
413
|
}, "strip", z.ZodTypeAny, {
|
|
413
414
|
type: "pcb_component";
|
|
@@ -427,6 +428,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
427
428
|
pcb_group_id?: string | undefined;
|
|
428
429
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
429
430
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
431
|
+
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
430
432
|
}, {
|
|
431
433
|
type: "pcb_component";
|
|
432
434
|
width: string | number;
|
|
@@ -446,6 +448,7 @@ declare const pcb_component: z.ZodObject<{
|
|
|
446
448
|
pcb_group_id?: string | undefined;
|
|
447
449
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
448
450
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
451
|
+
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
449
452
|
obstructs_within_bounds?: boolean | undefined;
|
|
450
453
|
}>;
|
|
451
454
|
type PcbComponentInput = z.input<typeof pcb_component>;
|
|
@@ -466,6 +469,7 @@ interface PcbComponent {
|
|
|
466
469
|
pcb_group_id?: string;
|
|
467
470
|
position_mode?: "packed" | "relative_to_group_anchor" | "none";
|
|
468
471
|
positioned_relative_to_pcb_group_id?: string;
|
|
472
|
+
positioned_relative_to_pcb_board_id?: string;
|
|
469
473
|
obstructs_within_bounds: boolean;
|
|
470
474
|
}
|
|
471
475
|
/**
|
|
@@ -12387,22 +12391,26 @@ interface SourceComponentInternalConnection {
|
|
|
12387
12391
|
source_component_internal_connection_id: string;
|
|
12388
12392
|
source_component_id: string;
|
|
12389
12393
|
source_port_ids: string[];
|
|
12394
|
+
subcircuit_id?: string;
|
|
12390
12395
|
}
|
|
12391
12396
|
declare const source_component_internal_connection: z.ZodObject<{
|
|
12392
12397
|
type: z.ZodLiteral<"source_component_internal_connection">;
|
|
12393
12398
|
source_component_internal_connection_id: z.ZodString;
|
|
12394
12399
|
source_component_id: z.ZodString;
|
|
12395
12400
|
source_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
12401
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
12396
12402
|
}, "strip", z.ZodTypeAny, {
|
|
12397
12403
|
type: "source_component_internal_connection";
|
|
12398
12404
|
source_component_id: string;
|
|
12399
12405
|
source_component_internal_connection_id: string;
|
|
12400
12406
|
source_port_ids: string[];
|
|
12407
|
+
subcircuit_id?: string | undefined;
|
|
12401
12408
|
}, {
|
|
12402
12409
|
type: "source_component_internal_connection";
|
|
12403
12410
|
source_component_id: string;
|
|
12404
12411
|
source_component_internal_connection_id: string;
|
|
12405
12412
|
source_port_ids: string[];
|
|
12413
|
+
subcircuit_id?: string | undefined;
|
|
12406
12414
|
}>;
|
|
12407
12415
|
|
|
12408
12416
|
interface SourceTrace {
|
|
@@ -12945,16 +12953,19 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
12945
12953
|
source_component_internal_connection_id: z.ZodString;
|
|
12946
12954
|
source_component_id: z.ZodString;
|
|
12947
12955
|
source_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
12956
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
12948
12957
|
}, "strip", z.ZodTypeAny, {
|
|
12949
12958
|
type: "source_component_internal_connection";
|
|
12950
12959
|
source_component_id: string;
|
|
12951
12960
|
source_component_internal_connection_id: string;
|
|
12952
12961
|
source_port_ids: string[];
|
|
12962
|
+
subcircuit_id?: string | undefined;
|
|
12953
12963
|
}, {
|
|
12954
12964
|
type: "source_component_internal_connection";
|
|
12955
12965
|
source_component_id: string;
|
|
12956
12966
|
source_component_internal_connection_id: string;
|
|
12957
12967
|
source_port_ids: string[];
|
|
12968
|
+
subcircuit_id?: string | undefined;
|
|
12958
12969
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
12959
12970
|
type: z.ZodLiteral<"source_component">;
|
|
12960
12971
|
source_component_id: z.ZodString;
|
|
@@ -15023,6 +15034,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15023
15034
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
15024
15035
|
position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
|
|
15025
15036
|
positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
15037
|
+
positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
|
|
15026
15038
|
obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
|
|
15027
15039
|
}, "strip", z.ZodTypeAny, {
|
|
15028
15040
|
type: "pcb_component";
|
|
@@ -15042,6 +15054,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15042
15054
|
pcb_group_id?: string | undefined;
|
|
15043
15055
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
15044
15056
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
15057
|
+
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
15045
15058
|
}, {
|
|
15046
15059
|
type: "pcb_component";
|
|
15047
15060
|
width: string | number;
|
|
@@ -15061,6 +15074,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
15061
15074
|
pcb_group_id?: string | undefined;
|
|
15062
15075
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
15063
15076
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
15077
|
+
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
15064
15078
|
obstructs_within_bounds?: boolean | undefined;
|
|
15065
15079
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
15066
15080
|
type: z.ZodLiteral<"pcb_hole">;
|
|
@@ -20950,16 +20964,19 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
20950
20964
|
source_component_internal_connection_id: z.ZodString;
|
|
20951
20965
|
source_component_id: z.ZodString;
|
|
20952
20966
|
source_port_ids: z.ZodArray<z.ZodString, "many">;
|
|
20967
|
+
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
20953
20968
|
}, "strip", z.ZodTypeAny, {
|
|
20954
20969
|
type: "source_component_internal_connection";
|
|
20955
20970
|
source_component_id: string;
|
|
20956
20971
|
source_component_internal_connection_id: string;
|
|
20957
20972
|
source_port_ids: string[];
|
|
20973
|
+
subcircuit_id?: string | undefined;
|
|
20958
20974
|
}, {
|
|
20959
20975
|
type: "source_component_internal_connection";
|
|
20960
20976
|
source_component_id: string;
|
|
20961
20977
|
source_component_internal_connection_id: string;
|
|
20962
20978
|
source_port_ids: string[];
|
|
20979
|
+
subcircuit_id?: string | undefined;
|
|
20963
20980
|
}>, z.ZodUnion<[z.ZodObject<{
|
|
20964
20981
|
type: z.ZodLiteral<"source_component">;
|
|
20965
20982
|
source_component_id: z.ZodString;
|
|
@@ -23028,6 +23045,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23028
23045
|
pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
23029
23046
|
position_mode: z.ZodOptional<z.ZodEnum<["packed", "relative_to_group_anchor", "none"]>>;
|
|
23030
23047
|
positioned_relative_to_pcb_group_id: z.ZodOptional<z.ZodString>;
|
|
23048
|
+
positioned_relative_to_pcb_board_id: z.ZodOptional<z.ZodString>;
|
|
23031
23049
|
obstructs_within_bounds: z.ZodDefault<z.ZodBoolean>;
|
|
23032
23050
|
}, "strip", z.ZodTypeAny, {
|
|
23033
23051
|
type: "pcb_component";
|
|
@@ -23047,6 +23065,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23047
23065
|
pcb_group_id?: string | undefined;
|
|
23048
23066
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
23049
23067
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
23068
|
+
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
23050
23069
|
}, {
|
|
23051
23070
|
type: "pcb_component";
|
|
23052
23071
|
width: string | number;
|
|
@@ -23066,6 +23085,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
23066
23085
|
pcb_group_id?: string | undefined;
|
|
23067
23086
|
position_mode?: "packed" | "relative_to_group_anchor" | "none" | undefined;
|
|
23068
23087
|
positioned_relative_to_pcb_group_id?: string | undefined;
|
|
23088
|
+
positioned_relative_to_pcb_board_id?: string | undefined;
|
|
23069
23089
|
obstructs_within_bounds?: boolean | undefined;
|
|
23070
23090
|
}>, z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
23071
23091
|
type: z.ZodLiteral<"pcb_hole">;
|
package/dist/index.mjs
CHANGED
|
@@ -696,7 +696,8 @@ var source_component_internal_connection = z39.object({
|
|
|
696
696
|
type: z39.literal("source_component_internal_connection"),
|
|
697
697
|
source_component_internal_connection_id: z39.string(),
|
|
698
698
|
source_component_id: z39.string(),
|
|
699
|
-
source_port_ids: z39.array(z39.string())
|
|
699
|
+
source_port_ids: z39.array(z39.string()),
|
|
700
|
+
subcircuit_id: z39.string().optional()
|
|
700
701
|
});
|
|
701
702
|
expectTypesMatch(true);
|
|
702
703
|
|
|
@@ -1322,6 +1323,7 @@ var pcb_component = z73.object({
|
|
|
1322
1323
|
pcb_group_id: z73.string().optional(),
|
|
1323
1324
|
position_mode: z73.enum(["packed", "relative_to_group_anchor", "none"]).optional(),
|
|
1324
1325
|
positioned_relative_to_pcb_group_id: z73.string().optional(),
|
|
1326
|
+
positioned_relative_to_pcb_board_id: z73.string().optional(),
|
|
1325
1327
|
obstructs_within_bounds: z73.boolean().default(true).describe(
|
|
1326
1328
|
"Does this component take up all the space within its bounds on a layer. This is generally true except for when separated pin headers are being represented by a single component (in which case, chips can be placed between the pin headers) or for tall modules where chips fit underneath"
|
|
1327
1329
|
)
|