circuit-json 0.0.534 → 0.0.535

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
@@ -1110,7 +1110,9 @@ Defines a simple crystal oscillator component
1110
1110
  interface SourceSimpleCrystal extends SourceComponentBase {
1111
1111
  ftype: "simple_crystal"
1112
1112
  frequency: number
1113
+ display_frequency?: string
1113
1114
  load_capacitance?: number
1115
+ display_load_capacitance?: string
1114
1116
  pin_variant?: "two_pin" | "four_pin"
1115
1117
  }
1116
1118
  ```
package/dist/index.d.mts CHANGED
@@ -35424,8 +35424,10 @@ declare const source_simple_crystal: z.ZodObject<{
35424
35424
  subcircuit_id: z.ZodOptional<z.ZodString>;
35425
35425
  } & {
35426
35426
  ftype: z.ZodLiteral<"simple_crystal">;
35427
- frequency: z.ZodNumber;
35428
- load_capacitance: z.ZodOptional<z.ZodNumber>;
35427
+ frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
35428
+ display_frequency: z.ZodOptional<z.ZodString>;
35429
+ load_capacitance: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>>;
35430
+ display_load_capacitance: z.ZodOptional<z.ZodString>;
35429
35431
  pin_variant: z.ZodOptional<z.ZodEnum<["two_pin", "four_pin"]>>;
35430
35432
  }, "strip", z.ZodTypeAny, {
35431
35433
  type: "source_component";
@@ -35441,13 +35443,15 @@ declare const source_simple_crystal: z.ZodObject<{
35441
35443
  display_value?: string | undefined;
35442
35444
  are_pins_interchangeable?: boolean | undefined;
35443
35445
  internally_connected_source_port_ids?: string[][] | undefined;
35446
+ display_frequency?: string | undefined;
35444
35447
  load_capacitance?: number | undefined;
35448
+ display_load_capacitance?: string | undefined;
35445
35449
  pin_variant?: "two_pin" | "four_pin" | undefined;
35446
35450
  }, {
35447
35451
  type: "source_component";
35448
35452
  name: string;
35449
35453
  source_component_id: string;
35450
- frequency: number;
35454
+ frequency: string | number;
35451
35455
  ftype: "simple_crystal";
35452
35456
  subcircuit_id?: string | undefined;
35453
35457
  source_group_id?: string | undefined;
@@ -35457,7 +35461,9 @@ declare const source_simple_crystal: z.ZodObject<{
35457
35461
  display_value?: string | undefined;
35458
35462
  are_pins_interchangeable?: boolean | undefined;
35459
35463
  internally_connected_source_port_ids?: string[][] | undefined;
35460
- load_capacitance?: number | undefined;
35464
+ display_frequency?: string | undefined;
35465
+ load_capacitance?: string | number | undefined;
35466
+ display_load_capacitance?: string | undefined;
35461
35467
  pin_variant?: "two_pin" | "four_pin" | undefined;
35462
35468
  }>;
35463
35469
  type SourceSimpleCrystalInput = z.input<typeof source_simple_crystal>;
@@ -35467,7 +35473,9 @@ type SourceSimpleCrystalInput = z.input<typeof source_simple_crystal>;
35467
35473
  interface SourceSimpleCrystal extends SourceComponentBase {
35468
35474
  ftype: "simple_crystal";
35469
35475
  frequency: number;
35476
+ display_frequency?: string;
35470
35477
  load_capacitance?: number;
35478
+ display_load_capacitance?: string;
35471
35479
  pin_variant?: "two_pin" | "four_pin";
35472
35480
  }
35473
35481
 
@@ -37525,8 +37533,10 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
37525
37533
  subcircuit_id: z.ZodOptional<z.ZodString>;
37526
37534
  } & {
37527
37535
  ftype: z.ZodLiteral<"simple_crystal">;
37528
- frequency: z.ZodNumber;
37529
- load_capacitance: z.ZodOptional<z.ZodNumber>;
37536
+ frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
37537
+ display_frequency: z.ZodOptional<z.ZodString>;
37538
+ load_capacitance: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>>;
37539
+ display_load_capacitance: z.ZodOptional<z.ZodString>;
37530
37540
  pin_variant: z.ZodOptional<z.ZodEnum<["two_pin", "four_pin"]>>;
37531
37541
  }, "strip", z.ZodTypeAny, {
37532
37542
  type: "source_component";
@@ -37542,13 +37552,15 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
37542
37552
  display_value?: string | undefined;
37543
37553
  are_pins_interchangeable?: boolean | undefined;
37544
37554
  internally_connected_source_port_ids?: string[][] | undefined;
37555
+ display_frequency?: string | undefined;
37545
37556
  load_capacitance?: number | undefined;
37557
+ display_load_capacitance?: string | undefined;
37546
37558
  pin_variant?: "two_pin" | "four_pin" | undefined;
37547
37559
  }, {
37548
37560
  type: "source_component";
37549
37561
  name: string;
37550
37562
  source_component_id: string;
37551
- frequency: number;
37563
+ frequency: string | number;
37552
37564
  ftype: "simple_crystal";
37553
37565
  subcircuit_id?: string | undefined;
37554
37566
  source_group_id?: string | undefined;
@@ -37558,7 +37570,9 @@ declare const any_source_component: z.ZodUnion<[z.ZodObject<{
37558
37570
  display_value?: string | undefined;
37559
37571
  are_pins_interchangeable?: boolean | undefined;
37560
37572
  internally_connected_source_port_ids?: string[][] | undefined;
37561
- load_capacitance?: number | undefined;
37573
+ display_frequency?: string | undefined;
37574
+ load_capacitance?: string | number | undefined;
37575
+ display_load_capacitance?: string | undefined;
37562
37576
  pin_variant?: "two_pin" | "four_pin" | undefined;
37563
37577
  }>, z.ZodObject<{
37564
37578
  type: z.ZodLiteral<"source_component">;
@@ -44415,8 +44429,10 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
44415
44429
  subcircuit_id: z.ZodOptional<z.ZodString>;
44416
44430
  } & {
44417
44431
  ftype: z.ZodLiteral<"simple_crystal">;
44418
- frequency: z.ZodNumber;
44419
- load_capacitance: z.ZodOptional<z.ZodNumber>;
44432
+ frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
44433
+ display_frequency: z.ZodOptional<z.ZodString>;
44434
+ load_capacitance: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>>;
44435
+ display_load_capacitance: z.ZodOptional<z.ZodString>;
44420
44436
  pin_variant: z.ZodOptional<z.ZodEnum<["two_pin", "four_pin"]>>;
44421
44437
  }, "strip", z.ZodTypeAny, {
44422
44438
  type: "source_component";
@@ -44432,13 +44448,15 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
44432
44448
  display_value?: string | undefined;
44433
44449
  are_pins_interchangeable?: boolean | undefined;
44434
44450
  internally_connected_source_port_ids?: string[][] | undefined;
44451
+ display_frequency?: string | undefined;
44435
44452
  load_capacitance?: number | undefined;
44453
+ display_load_capacitance?: string | undefined;
44436
44454
  pin_variant?: "two_pin" | "four_pin" | undefined;
44437
44455
  }, {
44438
44456
  type: "source_component";
44439
44457
  name: string;
44440
44458
  source_component_id: string;
44441
- frequency: number;
44459
+ frequency: string | number;
44442
44460
  ftype: "simple_crystal";
44443
44461
  subcircuit_id?: string | undefined;
44444
44462
  source_group_id?: string | undefined;
@@ -44448,7 +44466,9 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
44448
44466
  display_value?: string | undefined;
44449
44467
  are_pins_interchangeable?: boolean | undefined;
44450
44468
  internally_connected_source_port_ids?: string[][] | undefined;
44451
- load_capacitance?: number | undefined;
44469
+ display_frequency?: string | undefined;
44470
+ load_capacitance?: string | number | undefined;
44471
+ display_load_capacitance?: string | undefined;
44452
44472
  pin_variant?: "two_pin" | "four_pin" | undefined;
44453
44473
  }>, z.ZodObject<{
44454
44474
  type: z.ZodLiteral<"source_component">;
@@ -69364,8 +69384,10 @@ declare const any_soup_element: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
69364
69384
  subcircuit_id: z.ZodOptional<z.ZodString>;
69365
69385
  } & {
69366
69386
  ftype: z.ZodLiteral<"simple_crystal">;
69367
- frequency: z.ZodNumber;
69368
- load_capacitance: z.ZodOptional<z.ZodNumber>;
69387
+ frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
69388
+ display_frequency: z.ZodOptional<z.ZodString>;
69389
+ load_capacitance: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>>;
69390
+ display_load_capacitance: z.ZodOptional<z.ZodString>;
69369
69391
  pin_variant: z.ZodOptional<z.ZodEnum<["two_pin", "four_pin"]>>;
69370
69392
  }, "strip", z.ZodTypeAny, {
69371
69393
  type: "source_component";
@@ -69381,13 +69403,15 @@ declare const any_soup_element: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
69381
69403
  display_value?: string | undefined;
69382
69404
  are_pins_interchangeable?: boolean | undefined;
69383
69405
  internally_connected_source_port_ids?: string[][] | undefined;
69406
+ display_frequency?: string | undefined;
69384
69407
  load_capacitance?: number | undefined;
69408
+ display_load_capacitance?: string | undefined;
69385
69409
  pin_variant?: "two_pin" | "four_pin" | undefined;
69386
69410
  }, {
69387
69411
  type: "source_component";
69388
69412
  name: string;
69389
69413
  source_component_id: string;
69390
- frequency: number;
69414
+ frequency: string | number;
69391
69415
  ftype: "simple_crystal";
69392
69416
  subcircuit_id?: string | undefined;
69393
69417
  source_group_id?: string | undefined;
@@ -69397,7 +69421,9 @@ declare const any_soup_element: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
69397
69421
  display_value?: string | undefined;
69398
69422
  are_pins_interchangeable?: boolean | undefined;
69399
69423
  internally_connected_source_port_ids?: string[][] | undefined;
69400
- load_capacitance?: number | undefined;
69424
+ display_frequency?: string | undefined;
69425
+ load_capacitance?: string | number | undefined;
69426
+ display_load_capacitance?: string | undefined;
69401
69427
  pin_variant?: "two_pin" | "four_pin" | undefined;
69402
69428
  }>, z.ZodObject<{
69403
69429
  type: z.ZodLiteral<"source_component">;
package/dist/index.mjs CHANGED
@@ -599,8 +599,10 @@ expectTypesMatch(
599
599
  import { z as z34 } from "zod";
600
600
  var source_simple_crystal = source_component_base.extend({
601
601
  ftype: z34.literal("simple_crystal"),
602
- frequency: z34.number().describe("Frequency in Hz"),
603
- load_capacitance: z34.number().optional().describe("Load capacitance in pF"),
602
+ frequency: frequency.describe("Frequency in Hz"),
603
+ display_frequency: z34.string().optional(),
604
+ load_capacitance: capacitance.optional().describe("Load capacitance in pF"),
605
+ display_load_capacitance: z34.string().optional(),
604
606
  pin_variant: z34.enum(["two_pin", "four_pin"]).optional()
605
607
  });
606
608
  expectTypesMatch(true);