circuit-json 0.0.375 → 0.0.377

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/dist/index.d.mts CHANGED
@@ -7668,10 +7668,6 @@ declare const pcb_courtyard_outline: z.ZodObject<{
7668
7668
  x: string | number;
7669
7669
  y: string | number;
7670
7670
  }>, "many">;
7671
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
7672
- is_closed: z.ZodOptional<z.ZodBoolean>;
7673
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
7674
- color: z.ZodOptional<z.ZodString>;
7675
7671
  }, "strip", z.ZodTypeAny, {
7676
7672
  type: "pcb_courtyard_outline";
7677
7673
  pcb_component_id: string;
@@ -7680,13 +7676,9 @@ declare const pcb_courtyard_outline: z.ZodObject<{
7680
7676
  x: number;
7681
7677
  y: number;
7682
7678
  }[];
7683
- stroke_width: number;
7684
7679
  pcb_courtyard_outline_id: string;
7685
7680
  subcircuit_id?: string | undefined;
7686
7681
  pcb_group_id?: string | undefined;
7687
- is_stroke_dashed?: boolean | undefined;
7688
- color?: string | undefined;
7689
- is_closed?: boolean | undefined;
7690
7682
  }, {
7691
7683
  type: "pcb_courtyard_outline";
7692
7684
  pcb_component_id: string;
@@ -7697,11 +7689,7 @@ declare const pcb_courtyard_outline: z.ZodObject<{
7697
7689
  }[];
7698
7690
  subcircuit_id?: string | undefined;
7699
7691
  pcb_group_id?: string | undefined;
7700
- stroke_width?: string | number | undefined;
7701
- is_stroke_dashed?: boolean | undefined;
7702
- color?: string | undefined;
7703
7692
  pcb_courtyard_outline_id?: string | undefined;
7704
- is_closed?: boolean | undefined;
7705
7693
  }>;
7706
7694
  type PcbCourtyardOutlineInput = z.input<typeof pcb_courtyard_outline>;
7707
7695
  /**
@@ -7715,10 +7703,6 @@ interface PcbCourtyardOutline {
7715
7703
  subcircuit_id?: string;
7716
7704
  layer: VisibleLayer;
7717
7705
  outline: Point[];
7718
- stroke_width: Length;
7719
- is_closed?: boolean;
7720
- is_stroke_dashed?: boolean;
7721
- color?: string;
7722
7706
  }
7723
7707
  /**
7724
7708
  * @deprecated use PcbCourtyardOutline
@@ -7900,7 +7884,7 @@ interface SchematicPath {
7900
7884
  schematic_path_id: string;
7901
7885
  schematic_component_id?: string;
7902
7886
  schematic_symbol_id?: string;
7903
- fill_color?: "red" | "blue";
7887
+ fill_color?: string;
7904
7888
  is_filled?: boolean;
7905
7889
  stroke_width?: number | null;
7906
7890
  stroke_color?: string;
@@ -7912,7 +7896,7 @@ declare const schematic_path: z.ZodObject<{
7912
7896
  schematic_path_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
7913
7897
  schematic_component_id: z.ZodOptional<z.ZodString>;
7914
7898
  schematic_symbol_id: z.ZodOptional<z.ZodString>;
7915
- fill_color: z.ZodOptional<z.ZodEnum<["red", "blue"]>>;
7899
+ fill_color: z.ZodOptional<z.ZodString>;
7916
7900
  is_filled: z.ZodOptional<z.ZodBoolean>;
7917
7901
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
7918
7902
  stroke_color: z.ZodOptional<z.ZodString>;
@@ -7939,7 +7923,7 @@ declare const schematic_path: z.ZodObject<{
7939
7923
  is_filled?: boolean | undefined;
7940
7924
  schematic_component_id?: string | undefined;
7941
7925
  schematic_symbol_id?: string | undefined;
7942
- fill_color?: "red" | "blue" | undefined;
7926
+ fill_color?: string | undefined;
7943
7927
  stroke_color?: string | undefined;
7944
7928
  }, {
7945
7929
  type: "schematic_path";
@@ -7953,7 +7937,7 @@ declare const schematic_path: z.ZodObject<{
7953
7937
  schematic_component_id?: string | undefined;
7954
7938
  schematic_symbol_id?: string | undefined;
7955
7939
  schematic_path_id?: string | undefined;
7956
- fill_color?: "red" | "blue" | undefined;
7940
+ fill_color?: string | undefined;
7957
7941
  stroke_color?: string | undefined;
7958
7942
  }>;
7959
7943
  type SchematicPathInput = z.input<typeof schematic_path>;
@@ -21188,10 +21172,6 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
21188
21172
  x: string | number;
21189
21173
  y: string | number;
21190
21174
  }>, "many">;
21191
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
21192
- is_closed: z.ZodOptional<z.ZodBoolean>;
21193
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
21194
- color: z.ZodOptional<z.ZodString>;
21195
21175
  }, "strip", z.ZodTypeAny, {
21196
21176
  type: "pcb_courtyard_outline";
21197
21177
  pcb_component_id: string;
@@ -21200,13 +21180,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
21200
21180
  x: number;
21201
21181
  y: number;
21202
21182
  }[];
21203
- stroke_width: number;
21204
21183
  pcb_courtyard_outline_id: string;
21205
21184
  subcircuit_id?: string | undefined;
21206
21185
  pcb_group_id?: string | undefined;
21207
- is_stroke_dashed?: boolean | undefined;
21208
- color?: string | undefined;
21209
- is_closed?: boolean | undefined;
21210
21186
  }, {
21211
21187
  type: "pcb_courtyard_outline";
21212
21188
  pcb_component_id: string;
@@ -21217,11 +21193,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
21217
21193
  }[];
21218
21194
  subcircuit_id?: string | undefined;
21219
21195
  pcb_group_id?: string | undefined;
21220
- stroke_width?: string | number | undefined;
21221
- is_stroke_dashed?: boolean | undefined;
21222
- color?: string | undefined;
21223
21196
  pcb_courtyard_outline_id?: string | undefined;
21224
- is_closed?: boolean | undefined;
21225
21197
  }>, z.ZodObject<{
21226
21198
  type: z.ZodLiteral<"pcb_courtyard_polygon">;
21227
21199
  pcb_courtyard_polygon_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -22040,7 +22012,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
22040
22012
  schematic_path_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
22041
22013
  schematic_component_id: z.ZodOptional<z.ZodString>;
22042
22014
  schematic_symbol_id: z.ZodOptional<z.ZodString>;
22043
- fill_color: z.ZodOptional<z.ZodEnum<["red", "blue"]>>;
22015
+ fill_color: z.ZodOptional<z.ZodString>;
22044
22016
  is_filled: z.ZodOptional<z.ZodBoolean>;
22045
22017
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
22046
22018
  stroke_color: z.ZodOptional<z.ZodString>;
@@ -22067,7 +22039,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
22067
22039
  is_filled?: boolean | undefined;
22068
22040
  schematic_component_id?: string | undefined;
22069
22041
  schematic_symbol_id?: string | undefined;
22070
- fill_color?: "red" | "blue" | undefined;
22042
+ fill_color?: string | undefined;
22071
22043
  stroke_color?: string | undefined;
22072
22044
  }, {
22073
22045
  type: "schematic_path";
@@ -22081,7 +22053,7 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
22081
22053
  schematic_component_id?: string | undefined;
22082
22054
  schematic_symbol_id?: string | undefined;
22083
22055
  schematic_path_id?: string | undefined;
22084
- fill_color?: "red" | "blue" | undefined;
22056
+ fill_color?: string | undefined;
22085
22057
  stroke_color?: string | undefined;
22086
22058
  }>, z.ZodObject<{
22087
22059
  message: z.ZodString;
@@ -30032,10 +30004,6 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30032
30004
  x: string | number;
30033
30005
  y: string | number;
30034
30006
  }>, "many">;
30035
- stroke_width: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
30036
- is_closed: z.ZodOptional<z.ZodBoolean>;
30037
- is_stroke_dashed: z.ZodOptional<z.ZodBoolean>;
30038
- color: z.ZodOptional<z.ZodString>;
30039
30007
  }, "strip", z.ZodTypeAny, {
30040
30008
  type: "pcb_courtyard_outline";
30041
30009
  pcb_component_id: string;
@@ -30044,13 +30012,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30044
30012
  x: number;
30045
30013
  y: number;
30046
30014
  }[];
30047
- stroke_width: number;
30048
30015
  pcb_courtyard_outline_id: string;
30049
30016
  subcircuit_id?: string | undefined;
30050
30017
  pcb_group_id?: string | undefined;
30051
- is_stroke_dashed?: boolean | undefined;
30052
- color?: string | undefined;
30053
- is_closed?: boolean | undefined;
30054
30018
  }, {
30055
30019
  type: "pcb_courtyard_outline";
30056
30020
  pcb_component_id: string;
@@ -30061,11 +30025,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30061
30025
  }[];
30062
30026
  subcircuit_id?: string | undefined;
30063
30027
  pcb_group_id?: string | undefined;
30064
- stroke_width?: string | number | undefined;
30065
- is_stroke_dashed?: boolean | undefined;
30066
- color?: string | undefined;
30067
30028
  pcb_courtyard_outline_id?: string | undefined;
30068
- is_closed?: boolean | undefined;
30069
30029
  }>, z.ZodObject<{
30070
30030
  type: z.ZodLiteral<"pcb_courtyard_polygon">;
30071
30031
  pcb_courtyard_polygon_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
@@ -30884,7 +30844,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30884
30844
  schematic_path_id: z.ZodDefault<z.ZodOptional<z.ZodString>>;
30885
30845
  schematic_component_id: z.ZodOptional<z.ZodString>;
30886
30846
  schematic_symbol_id: z.ZodOptional<z.ZodString>;
30887
- fill_color: z.ZodOptional<z.ZodEnum<["red", "blue"]>>;
30847
+ fill_color: z.ZodOptional<z.ZodString>;
30888
30848
  is_filled: z.ZodOptional<z.ZodBoolean>;
30889
30849
  stroke_width: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>>;
30890
30850
  stroke_color: z.ZodOptional<z.ZodString>;
@@ -30911,7 +30871,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30911
30871
  is_filled?: boolean | undefined;
30912
30872
  schematic_component_id?: string | undefined;
30913
30873
  schematic_symbol_id?: string | undefined;
30914
- fill_color?: "red" | "blue" | undefined;
30874
+ fill_color?: string | undefined;
30915
30875
  stroke_color?: string | undefined;
30916
30876
  }, {
30917
30877
  type: "schematic_path";
@@ -30925,7 +30885,7 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
30925
30885
  schematic_component_id?: string | undefined;
30926
30886
  schematic_symbol_id?: string | undefined;
30927
30887
  schematic_path_id?: string | undefined;
30928
- fill_color?: "red" | "blue" | undefined;
30888
+ fill_color?: string | undefined;
30929
30889
  stroke_color?: string | undefined;
30930
30890
  }>, z.ZodObject<{
30931
30891
  message: z.ZodString;
package/dist/index.mjs CHANGED
@@ -294,10 +294,10 @@ expectTypesMatch(true);
294
294
 
295
295
  // src/common/getZodPrefixedIdWithDefault.ts
296
296
  import { z as z5 } from "zod";
297
- var randomId = (length3) => {
297
+ var randomId = (length4) => {
298
298
  const chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
299
299
  return Array.from(
300
- { length: length3 },
300
+ { length: length4 },
301
301
  () => chars[Math.floor(Math.random() * chars.length)]
302
302
  ).join("");
303
303
  };
@@ -946,7 +946,7 @@ var schematic_path = z56.object({
946
946
  schematic_path_id: getZodPrefixedIdWithDefault("schematic_path"),
947
947
  schematic_component_id: z56.string().optional(),
948
948
  schematic_symbol_id: z56.string().optional(),
949
- fill_color: z56.enum(["red", "blue"]).optional(),
949
+ fill_color: z56.string().optional(),
950
950
  is_filled: z56.boolean().optional(),
951
951
  stroke_width: distance.nullable().optional(),
952
952
  stroke_color: z56.string().optional(),
@@ -2912,11 +2912,7 @@ var pcb_courtyard_outline = z134.object({
2912
2912
  pcb_group_id: z134.string().optional(),
2913
2913
  subcircuit_id: z134.string().optional(),
2914
2914
  layer: visible_layer,
2915
- outline: z134.array(point).min(2),
2916
- stroke_width: length.default("0.1mm"),
2917
- is_closed: z134.boolean().optional(),
2918
- is_stroke_dashed: z134.boolean().optional(),
2919
- color: z134.string().optional()
2915
+ outline: z134.array(point).min(2)
2920
2916
  }).describe("Defines a courtyard outline on the PCB");
2921
2917
  expectTypesMatch(true);
2922
2918