circuit-json 0.0.409 → 0.0.411

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 CHANGED
@@ -678,6 +678,7 @@ Defines a simple inductor component
678
678
  interface SourceSimpleInductor extends SourceComponentBase {
679
679
  ftype: "simple_inductor"
680
680
  inductance: number
681
+ display_inductance?: string
681
682
  max_current_rating?: number
682
683
  }
683
684
  ```
package/dist/index.d.mts CHANGED
@@ -2426,6 +2426,7 @@ declare const pcb_component: z.ZodObject<{
2426
2426
  x: string | number;
2427
2427
  y: string | number;
2428
2428
  }>>;
2429
+ insertion_direction: z.ZodOptional<z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>>;
2429
2430
  metadata: z.ZodOptional<z.ZodObject<{
2430
2431
  kicad_footprint: z.ZodOptional<z.ZodObject<{
2431
2432
  footprintName: z.ZodOptional<z.ZodString>;
@@ -3723,6 +3724,7 @@ declare const pcb_component: z.ZodObject<{
3723
3724
  x: number;
3724
3725
  y: number;
3725
3726
  } | undefined;
3727
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
3726
3728
  metadata?: {
3727
3729
  kicad_footprint?: {
3728
3730
  layer?: string | undefined;
@@ -3889,6 +3891,7 @@ declare const pcb_component: z.ZodObject<{
3889
3891
  x: string | number;
3890
3892
  y: string | number;
3891
3893
  } | undefined;
3894
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
3892
3895
  metadata?: {
3893
3896
  kicad_footprint?: {
3894
3897
  layer?: string | undefined;
@@ -4050,6 +4053,7 @@ interface PcbComponent {
4050
4053
  positioned_relative_to_pcb_group_id?: string;
4051
4054
  positioned_relative_to_pcb_board_id?: string;
4052
4055
  cable_insertion_center?: Point;
4056
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back";
4053
4057
  metadata?: PcbComponentMetadata;
4054
4058
  obstructs_within_bounds: boolean;
4055
4059
  }
@@ -26114,6 +26118,7 @@ declare const source_simple_inductor: z.ZodObject<{
26114
26118
  } & {
26115
26119
  ftype: z.ZodLiteral<"simple_inductor">;
26116
26120
  inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
26121
+ display_inductance: z.ZodOptional<z.ZodString>;
26117
26122
  max_current_rating: z.ZodOptional<z.ZodNumber>;
26118
26123
  }, "strip", z.ZodTypeAny, {
26119
26124
  type: "source_component";
@@ -26129,6 +26134,7 @@ declare const source_simple_inductor: z.ZodObject<{
26129
26134
  display_name?: string | undefined;
26130
26135
  are_pins_interchangeable?: boolean | undefined;
26131
26136
  internally_connected_source_port_ids?: string[][] | undefined;
26137
+ display_inductance?: string | undefined;
26132
26138
  max_current_rating?: number | undefined;
26133
26139
  }, {
26134
26140
  type: "source_component";
@@ -26144,6 +26150,7 @@ declare const source_simple_inductor: z.ZodObject<{
26144
26150
  display_name?: string | undefined;
26145
26151
  are_pins_interchangeable?: boolean | undefined;
26146
26152
  internally_connected_source_port_ids?: string[][] | undefined;
26153
+ display_inductance?: string | undefined;
26147
26154
  max_current_rating?: number | undefined;
26148
26155
  }>;
26149
26156
  type SourceSimpleInductorInput = z.input<typeof source_simple_inductor>;
@@ -26153,6 +26160,7 @@ type SourceSimpleInductorInput = z.input<typeof source_simple_inductor>;
26153
26160
  interface SourceSimpleInductor extends SourceComponentBase {
26154
26161
  ftype: "simple_inductor";
26155
26162
  inductance: number;
26163
+ display_inductance?: string;
26156
26164
  max_current_rating?: number;
26157
26165
  }
26158
26166
 
@@ -27866,6 +27874,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
27866
27874
  } & {
27867
27875
  ftype: z.ZodLiteral<"simple_inductor">;
27868
27876
  inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
27877
+ display_inductance: z.ZodOptional<z.ZodString>;
27869
27878
  max_current_rating: z.ZodOptional<z.ZodNumber>;
27870
27879
  }, "strip", z.ZodTypeAny, {
27871
27880
  type: "source_component";
@@ -27881,6 +27890,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
27881
27890
  display_name?: string | undefined;
27882
27891
  are_pins_interchangeable?: boolean | undefined;
27883
27892
  internally_connected_source_port_ids?: string[][] | undefined;
27893
+ display_inductance?: string | undefined;
27884
27894
  max_current_rating?: number | undefined;
27885
27895
  }, {
27886
27896
  type: "source_component";
@@ -27896,6 +27906,7 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
27896
27906
  display_name?: string | undefined;
27897
27907
  are_pins_interchangeable?: boolean | undefined;
27898
27908
  internally_connected_source_port_ids?: string[][] | undefined;
27909
+ display_inductance?: string | undefined;
27899
27910
  max_current_rating?: number | undefined;
27900
27911
  }>, z.ZodObject<{
27901
27912
  type: z.ZodLiteral<"source_component">;
@@ -33064,6 +33075,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
33064
33075
  } & {
33065
33076
  ftype: z.ZodLiteral<"simple_inductor">;
33066
33077
  inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
33078
+ display_inductance: z.ZodOptional<z.ZodString>;
33067
33079
  max_current_rating: z.ZodOptional<z.ZodNumber>;
33068
33080
  }, "strip", z.ZodTypeAny, {
33069
33081
  type: "source_component";
@@ -33079,6 +33091,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
33079
33091
  display_name?: string | undefined;
33080
33092
  are_pins_interchangeable?: boolean | undefined;
33081
33093
  internally_connected_source_port_ids?: string[][] | undefined;
33094
+ display_inductance?: string | undefined;
33082
33095
  max_current_rating?: number | undefined;
33083
33096
  }, {
33084
33097
  type: "source_component";
@@ -33094,6 +33107,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
33094
33107
  display_name?: string | undefined;
33095
33108
  are_pins_interchangeable?: boolean | undefined;
33096
33109
  internally_connected_source_port_ids?: string[][] | undefined;
33110
+ display_inductance?: string | undefined;
33097
33111
  max_current_rating?: number | undefined;
33098
33112
  }>, z.ZodObject<{
33099
33113
  type: z.ZodLiteral<"source_component">;
@@ -34485,6 +34499,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
34485
34499
  } & {
34486
34500
  ftype: z.ZodLiteral<"simple_inductor">;
34487
34501
  inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
34502
+ display_inductance: z.ZodOptional<z.ZodString>;
34488
34503
  max_current_rating: z.ZodOptional<z.ZodNumber>;
34489
34504
  }, "strip", z.ZodTypeAny, {
34490
34505
  type: "source_component";
@@ -34500,6 +34515,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
34500
34515
  display_name?: string | undefined;
34501
34516
  are_pins_interchangeable?: boolean | undefined;
34502
34517
  internally_connected_source_port_ids?: string[][] | undefined;
34518
+ display_inductance?: string | undefined;
34503
34519
  max_current_rating?: number | undefined;
34504
34520
  }, {
34505
34521
  type: "source_component";
@@ -34515,6 +34531,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
34515
34531
  display_name?: string | undefined;
34516
34532
  are_pins_interchangeable?: boolean | undefined;
34517
34533
  internally_connected_source_port_ids?: string[][] | undefined;
34534
+ display_inductance?: string | undefined;
34518
34535
  max_current_rating?: number | undefined;
34519
34536
  }>, z.ZodObject<{
34520
34537
  type: z.ZodLiteral<"source_component">;
@@ -35380,6 +35397,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
35380
35397
  x: string | number;
35381
35398
  y: string | number;
35382
35399
  }>>;
35400
+ insertion_direction: z.ZodOptional<z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>>;
35383
35401
  metadata: z.ZodOptional<z.ZodObject<{
35384
35402
  kicad_footprint: z.ZodOptional<z.ZodObject<{
35385
35403
  footprintName: z.ZodOptional<z.ZodString>;
@@ -36677,6 +36695,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
36677
36695
  x: number;
36678
36696
  y: number;
36679
36697
  } | undefined;
36698
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
36680
36699
  metadata?: {
36681
36700
  kicad_footprint?: {
36682
36701
  layer?: string | undefined;
@@ -36843,6 +36862,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
36843
36862
  x: string | number;
36844
36863
  y: string | number;
36845
36864
  } | undefined;
36865
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
36846
36866
  metadata?: {
36847
36867
  kicad_footprint?: {
36848
36868
  layer?: string | undefined;
@@ -50958,6 +50978,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
50958
50978
  } & {
50959
50979
  ftype: z.ZodLiteral<"simple_inductor">;
50960
50980
  inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
50981
+ display_inductance: z.ZodOptional<z.ZodString>;
50961
50982
  max_current_rating: z.ZodOptional<z.ZodNumber>;
50962
50983
  }, "strip", z.ZodTypeAny, {
50963
50984
  type: "source_component";
@@ -50973,6 +50994,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
50973
50994
  display_name?: string | undefined;
50974
50995
  are_pins_interchangeable?: boolean | undefined;
50975
50996
  internally_connected_source_port_ids?: string[][] | undefined;
50997
+ display_inductance?: string | undefined;
50976
50998
  max_current_rating?: number | undefined;
50977
50999
  }, {
50978
51000
  type: "source_component";
@@ -50988,6 +51010,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
50988
51010
  display_name?: string | undefined;
50989
51011
  are_pins_interchangeable?: boolean | undefined;
50990
51012
  internally_connected_source_port_ids?: string[][] | undefined;
51013
+ display_inductance?: string | undefined;
50991
51014
  max_current_rating?: number | undefined;
50992
51015
  }>, z.ZodObject<{
50993
51016
  type: z.ZodLiteral<"source_component">;
@@ -52379,6 +52402,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
52379
52402
  } & {
52380
52403
  ftype: z.ZodLiteral<"simple_inductor">;
52381
52404
  inductance: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
52405
+ display_inductance: z.ZodOptional<z.ZodString>;
52382
52406
  max_current_rating: z.ZodOptional<z.ZodNumber>;
52383
52407
  }, "strip", z.ZodTypeAny, {
52384
52408
  type: "source_component";
@@ -52394,6 +52418,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
52394
52418
  display_name?: string | undefined;
52395
52419
  are_pins_interchangeable?: boolean | undefined;
52396
52420
  internally_connected_source_port_ids?: string[][] | undefined;
52421
+ display_inductance?: string | undefined;
52397
52422
  max_current_rating?: number | undefined;
52398
52423
  }, {
52399
52424
  type: "source_component";
@@ -52409,6 +52434,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
52409
52434
  display_name?: string | undefined;
52410
52435
  are_pins_interchangeable?: boolean | undefined;
52411
52436
  internally_connected_source_port_ids?: string[][] | undefined;
52437
+ display_inductance?: string | undefined;
52412
52438
  max_current_rating?: number | undefined;
52413
52439
  }>, z.ZodObject<{
52414
52440
  type: z.ZodLiteral<"source_component">;
@@ -53274,6 +53300,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
53274
53300
  x: string | number;
53275
53301
  y: string | number;
53276
53302
  }>>;
53303
+ insertion_direction: z.ZodOptional<z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>>;
53277
53304
  metadata: z.ZodOptional<z.ZodObject<{
53278
53305
  kicad_footprint: z.ZodOptional<z.ZodObject<{
53279
53306
  footprintName: z.ZodOptional<z.ZodString>;
@@ -54571,6 +54598,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
54571
54598
  x: number;
54572
54599
  y: number;
54573
54600
  } | undefined;
54601
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
54574
54602
  metadata?: {
54575
54603
  kicad_footprint?: {
54576
54604
  layer?: string | undefined;
@@ -54737,6 +54765,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
54737
54765
  x: string | number;
54738
54766
  y: string | number;
54739
54767
  } | undefined;
54768
+ insertion_direction?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
54740
54769
  metadata?: {
54741
54770
  kicad_footprint?: {
54742
54771
  layer?: string | undefined;
package/dist/index.mjs CHANGED
@@ -666,6 +666,7 @@ import { z as z26 } from "zod";
666
666
  var source_simple_inductor = source_component_base.extend({
667
667
  ftype: z26.literal("simple_inductor"),
668
668
  inductance,
669
+ display_inductance: z26.string().optional(),
669
670
  max_current_rating: z26.number().optional()
670
671
  });
671
672
  expectTypesMatch(true);
@@ -1745,6 +1746,13 @@ var pcb_component = z92.object({
1745
1746
  positioned_relative_to_pcb_group_id: z92.string().optional(),
1746
1747
  positioned_relative_to_pcb_board_id: z92.string().optional(),
1747
1748
  cable_insertion_center: point.optional(),
1749
+ insertion_direction: z92.enum([
1750
+ "from_above",
1751
+ "from_left",
1752
+ "from_right",
1753
+ "from_front",
1754
+ "from_back"
1755
+ ]).optional(),
1748
1756
  metadata: z92.object({
1749
1757
  kicad_footprint: kicadFootprintMetadata.optional()
1750
1758
  }).optional(),