circuit-json 0.0.203 → 0.0.205

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.mjs CHANGED
@@ -259,12 +259,26 @@ var getZodPrefixedIdWithDefault = (prefix) => {
259
259
  return z5.string().optional().default(() => `${prefix}_${nanoid(10)}`);
260
260
  };
261
261
 
262
+ // src/common/NinePointAnchor.ts
263
+ import { z as z6 } from "zod";
264
+ var ninePointAnchor = z6.enum([
265
+ "top_left",
266
+ "top_center",
267
+ "top_right",
268
+ "center_left",
269
+ "center",
270
+ "center_right",
271
+ "bottom_left",
272
+ "bottom_center",
273
+ "bottom_right"
274
+ ]);
275
+
262
276
  // src/source/source_simple_capacitor.ts
263
- import { z as z8 } from "zod";
277
+ import { z as z9 } from "zod";
264
278
 
265
279
  // src/pcb/properties/supplier_name.ts
266
- import { z as z6 } from "zod";
267
- var supplier_name = z6.enum([
280
+ import { z as z7 } from "zod";
281
+ var supplier_name = z7.enum([
268
282
  "jlcpcb",
269
283
  "macrofab",
270
284
  "pcbway",
@@ -294,147 +308,150 @@ expectStringUnionsMatch(
294
308
  expectStringUnionsMatch(true);
295
309
 
296
310
  // src/source/base/source_component_base.ts
297
- import { z as z7 } from "zod";
298
- var source_component_base = z7.object({
299
- type: z7.literal("source_component"),
300
- ftype: z7.string().optional(),
301
- source_component_id: z7.string(),
302
- name: z7.string(),
303
- manufacturer_part_number: z7.string().optional(),
304
- supplier_part_numbers: z7.record(supplier_name, z7.array(z7.string())).optional(),
305
- display_value: z7.string().optional(),
306
- are_pins_interchangeable: z7.boolean().optional(),
307
- internally_connected_source_port_ids: z7.array(z7.array(z7.string())).optional(),
308
- source_group_id: z7.string().optional()
311
+ import { z as z8 } from "zod";
312
+ var source_component_base = z8.object({
313
+ type: z8.literal("source_component"),
314
+ ftype: z8.string().optional(),
315
+ source_component_id: z8.string(),
316
+ name: z8.string(),
317
+ manufacturer_part_number: z8.string().optional(),
318
+ supplier_part_numbers: z8.record(supplier_name, z8.array(z8.string())).optional(),
319
+ display_value: z8.string().optional(),
320
+ are_pins_interchangeable: z8.boolean().optional(),
321
+ internally_connected_source_port_ids: z8.array(z8.array(z8.string())).optional(),
322
+ source_group_id: z8.string().optional()
309
323
  });
310
324
  expectTypesMatch(true);
311
325
 
312
326
  // src/source/source_simple_capacitor.ts
313
327
  var source_simple_capacitor = source_component_base.extend({
314
- ftype: z8.literal("simple_capacitor"),
328
+ ftype: z9.literal("simple_capacitor"),
315
329
  capacitance,
316
330
  max_voltage_rating: voltage.optional(),
317
- display_capacitance: z8.string().optional(),
331
+ display_capacitance: z9.string().optional(),
318
332
  max_decoupling_trace_length: distance.optional()
319
333
  });
320
334
  expectTypesMatch(true);
321
335
 
322
336
  // src/source/source_simple_resistor.ts
323
- import { z as z9 } from "zod";
337
+ import { z as z10 } from "zod";
324
338
  var source_simple_resistor = source_component_base.extend({
325
- ftype: z9.literal("simple_resistor"),
339
+ ftype: z10.literal("simple_resistor"),
326
340
  resistance,
327
- display_resistance: z9.string().optional()
341
+ display_resistance: z10.string().optional()
328
342
  });
329
343
  expectTypesMatch(true);
330
344
 
331
345
  // src/source/source_simple_diode.ts
332
- import { z as z10 } from "zod";
346
+ import { z as z11 } from "zod";
333
347
  var source_simple_diode = source_component_base.extend({
334
- ftype: z10.literal("simple_diode")
348
+ ftype: z11.literal("simple_diode")
335
349
  });
336
350
  expectTypesMatch(true);
337
351
 
338
352
  // src/source/source_simple_led.ts
339
- import { z as z11 } from "zod";
353
+ import { z as z12 } from "zod";
340
354
  var source_simple_led = source_simple_diode.extend({
341
- ftype: z11.literal("simple_led"),
342
- color: z11.string().optional(),
343
- wavelength: z11.string().optional()
355
+ ftype: z12.literal("simple_led"),
356
+ color: z12.string().optional(),
357
+ wavelength: z12.string().optional()
344
358
  });
345
359
  expectTypesMatch(true);
346
360
 
347
361
  // src/source/source_simple_ground.ts
348
- import { z as z12 } from "zod";
362
+ import { z as z13 } from "zod";
349
363
  var source_simple_ground = source_component_base.extend({
350
- ftype: z12.literal("simple_ground")
364
+ ftype: z13.literal("simple_ground")
351
365
  });
352
366
  expectTypesMatch(true);
353
367
 
354
368
  // src/source/source_simple_bug.ts
355
- import { z as z13 } from "zod";
369
+ import { z as z14 } from "zod";
356
370
  var source_simple_bug = source_component_base.extend({
357
- ftype: z13.literal("simple_bug")
371
+ ftype: z14.literal("simple_bug")
358
372
  }).describe("@deprecated");
359
373
 
360
374
  // src/source/source_simple_chip.ts
361
- import { z as z14 } from "zod";
375
+ import { z as z15 } from "zod";
362
376
  var source_simple_chip = source_component_base.extend({
363
- ftype: z14.literal("simple_chip")
377
+ ftype: z15.literal("simple_chip")
364
378
  });
365
379
  expectTypesMatch(true);
366
380
 
367
381
  // src/source/source_simple_power_source.ts
368
- import { z as z15 } from "zod";
382
+ import { z as z16 } from "zod";
369
383
  var source_simple_power_source = source_component_base.extend({
370
- ftype: z15.literal("simple_power_source"),
384
+ ftype: z16.literal("simple_power_source"),
371
385
  voltage
372
386
  });
373
387
  expectTypesMatch(true);
374
388
 
375
389
  // src/source/any_source_component.ts
376
- import { z as z31 } from "zod";
390
+ import { z as z32 } from "zod";
377
391
 
378
392
  // src/source/source_simple_fuse.ts
379
- import { z as z16 } from "zod";
393
+ import { z as z17 } from "zod";
380
394
  var source_simple_fuse = source_component_base.extend({
381
- ftype: z16.literal("simple_fuse"),
382
- current_rating_amps: z16.number().describe("Nominal current in amps the fuse is rated for"),
383
- voltage_rating_volts: z16.number().describe("Voltage rating in volts, e.g. \xB15V would be 5")
395
+ ftype: z17.literal("simple_fuse"),
396
+ current_rating_amps: z17.number().describe("Nominal current in amps the fuse is rated for"),
397
+ voltage_rating_volts: z17.number().describe("Voltage rating in volts, e.g. \xB15V would be 5")
384
398
  });
385
399
  expectTypesMatch(true);
386
400
 
387
401
  // src/source/source_simple_battery.ts
388
- import { z as z17 } from "zod";
402
+ import { z as z18 } from "zod";
389
403
  var source_simple_battery = source_component_base.extend({
390
- ftype: z17.literal("simple_battery"),
404
+ ftype: z18.literal("simple_battery"),
391
405
  capacity: battery_capacity
392
406
  });
393
407
  expectTypesMatch(true);
394
408
 
395
409
  // src/source/source_simple_inductor.ts
396
- import { z as z18 } from "zod";
410
+ import { z as z19 } from "zod";
397
411
  var source_simple_inductor = source_component_base.extend({
398
- ftype: z18.literal("simple_inductor"),
412
+ ftype: z19.literal("simple_inductor"),
399
413
  inductance
400
414
  });
401
415
  expectTypesMatch(true);
402
416
 
403
417
  // src/source/source_simple_push_button.ts
404
- import { z as z19 } from "zod";
418
+ import { z as z20 } from "zod";
405
419
  var source_simple_push_button = source_component_base.extend({
406
- ftype: z19.literal("simple_push_button")
420
+ ftype: z20.literal("simple_push_button")
407
421
  });
408
422
  expectTypesMatch(true);
409
423
 
410
424
  // src/source/source_simple_potentiometer.ts
411
- import { z as z20 } from "zod";
425
+ import { z as z21 } from "zod";
412
426
  var source_simple_potentiometer = source_component_base.extend({
413
- ftype: z20.literal("simple_potentiometer"),
427
+ ftype: z21.literal("simple_potentiometer"),
414
428
  max_resistance: resistance
415
429
  });
430
+ expectTypesMatch(
431
+ true
432
+ );
416
433
 
417
434
  // src/source/source_simple_crystal.ts
418
- import { z as z21 } from "zod";
435
+ import { z as z22 } from "zod";
419
436
  var source_simple_crystal = source_component_base.extend({
420
- ftype: z21.literal("simple_crystal"),
421
- frequency: z21.number().describe("Frequency in Hz"),
422
- load_capacitance: z21.number().optional().describe("Load capacitance in pF")
437
+ ftype: z22.literal("simple_crystal"),
438
+ frequency: z22.number().describe("Frequency in Hz"),
439
+ load_capacitance: z22.number().optional().describe("Load capacitance in pF")
423
440
  });
424
441
  expectTypesMatch(true);
425
442
 
426
443
  // src/source/source_simple_pin_header.ts
427
- import { z as z22 } from "zod";
444
+ import { z as z23 } from "zod";
428
445
  var source_simple_pin_header = source_component_base.extend({
429
- ftype: z22.literal("simple_pin_header"),
430
- pin_count: z22.number(),
431
- gender: z22.enum(["male", "female"]).optional().default("male")
446
+ ftype: z23.literal("simple_pin_header"),
447
+ pin_count: z23.number(),
448
+ gender: z23.enum(["male", "female"]).optional().default("male")
432
449
  });
433
450
 
434
451
  // src/source/source_simple_resonator.ts
435
- import { z as z23 } from "zod";
452
+ import { z as z24 } from "zod";
436
453
  var source_simple_resonator = source_component_base.extend({
437
- ftype: z23.literal("simple_resonator"),
454
+ ftype: z24.literal("simple_resonator"),
438
455
  load_capacitance: capacitance,
439
456
  equivalent_series_resistance: resistance.optional(),
440
457
  frequency
@@ -442,92 +459,92 @@ var source_simple_resonator = source_component_base.extend({
442
459
  expectTypesMatch(true);
443
460
 
444
461
  // src/source/source_simple_transistor.ts
445
- import { z as z24 } from "zod";
462
+ import { z as z25 } from "zod";
446
463
  var source_simple_transistor = source_component_base.extend({
447
- ftype: z24.literal("simple_transistor"),
448
- transistor_type: z24.enum(["npn", "pnp"])
464
+ ftype: z25.literal("simple_transistor"),
465
+ transistor_type: z25.enum(["npn", "pnp"])
449
466
  });
450
467
  expectTypesMatch(true);
451
468
 
452
469
  // src/source/source_simple_test_point.ts
453
- import { z as z25 } from "zod";
470
+ import { z as z26 } from "zod";
454
471
  var source_simple_test_point = source_component_base.extend({
455
- ftype: z25.literal("simple_test_point"),
456
- footprint_variant: z25.enum(["pad", "through_hole"]).optional(),
457
- pad_shape: z25.enum(["rect", "circle"]).optional(),
458
- pad_diameter: z25.union([z25.number(), z25.string()]).optional(),
459
- hole_diameter: z25.union([z25.number(), z25.string()]).optional(),
460
- width: z25.union([z25.number(), z25.string()]).optional(),
461
- height: z25.union([z25.number(), z25.string()]).optional()
472
+ ftype: z26.literal("simple_test_point"),
473
+ footprint_variant: z26.enum(["pad", "through_hole"]).optional(),
474
+ pad_shape: z26.enum(["rect", "circle"]).optional(),
475
+ pad_diameter: z26.union([z26.number(), z26.string()]).optional(),
476
+ hole_diameter: z26.union([z26.number(), z26.string()]).optional(),
477
+ width: z26.union([z26.number(), z26.string()]).optional(),
478
+ height: z26.union([z26.number(), z26.string()]).optional()
462
479
  });
463
480
  expectTypesMatch(true);
464
481
 
465
482
  // src/source/source_simple_mosfet.ts
466
- import { z as z26 } from "zod";
483
+ import { z as z27 } from "zod";
467
484
  var source_simple_mosfet = source_component_base.extend({
468
- ftype: z26.literal("simple_mosfet"),
469
- channel_type: z26.enum(["n", "p"]),
470
- mosfet_mode: z26.enum(["enhancement", "depletion"])
485
+ ftype: z27.literal("simple_mosfet"),
486
+ channel_type: z27.enum(["n", "p"]),
487
+ mosfet_mode: z27.enum(["enhancement", "depletion"])
471
488
  });
472
489
  expectTypesMatch(true);
473
490
 
474
491
  // src/source/source_simple_switch.ts
475
- import { z as z27 } from "zod";
492
+ import { z as z28 } from "zod";
476
493
  var source_simple_switch = source_component_base.extend({
477
- ftype: z27.literal("simple_switch")
494
+ ftype: z28.literal("simple_switch")
478
495
  });
479
496
  expectTypesMatch(true);
480
497
 
481
498
  // src/source/source_project_metadata.ts
482
- import { z as z28 } from "zod";
483
- var source_project_metadata = z28.object({
484
- type: z28.literal("source_project_metadata"),
485
- name: z28.string().optional(),
486
- software_used_string: z28.string().optional(),
487
- project_url: z28.string().optional(),
488
- created_at: z28.string().datetime().optional()
499
+ import { z as z29 } from "zod";
500
+ var source_project_metadata = z29.object({
501
+ type: z29.literal("source_project_metadata"),
502
+ name: z29.string().optional(),
503
+ software_used_string: z29.string().optional(),
504
+ project_url: z29.string().optional(),
505
+ created_at: z29.string().datetime().optional()
489
506
  });
490
507
  expectTypesMatch(true);
491
508
 
492
509
  // src/source/source_missing_property_error.ts
493
- import { z as z29 } from "zod";
494
- var source_missing_property_error = z29.object({
495
- type: z29.literal("source_missing_property_error"),
510
+ import { z as z30 } from "zod";
511
+ var source_missing_property_error = z30.object({
512
+ type: z30.literal("source_missing_property_error"),
496
513
  source_missing_property_error_id: getZodPrefixedIdWithDefault(
497
514
  "source_missing_property_error"
498
515
  ),
499
- source_component_id: z29.string(),
500
- property_name: z29.string(),
501
- error_type: z29.literal("source_missing_property_error").default("source_missing_property_error"),
502
- message: z29.string()
516
+ source_component_id: z30.string(),
517
+ property_name: z30.string(),
518
+ error_type: z30.literal("source_missing_property_error").default("source_missing_property_error"),
519
+ message: z30.string()
503
520
  }).describe("The source code is missing a property");
504
521
  expectTypesMatch(true);
505
522
 
506
523
  // src/source/source_failed_to_create_component_error.ts
507
- import { z as z30 } from "zod";
508
- var source_failed_to_create_component_error = z30.object({
509
- type: z30.literal("source_failed_to_create_component_error"),
524
+ import { z as z31 } from "zod";
525
+ var source_failed_to_create_component_error = z31.object({
526
+ type: z31.literal("source_failed_to_create_component_error"),
510
527
  source_failed_to_create_component_error_id: getZodPrefixedIdWithDefault(
511
528
  "source_failed_to_create_component_error"
512
529
  ),
513
- error_type: z30.literal("source_failed_to_create_component_error").default("source_failed_to_create_component_error"),
514
- component_name: z30.string().optional(),
515
- subcircuit_id: z30.string().optional(),
516
- parent_source_component_id: z30.string().optional(),
517
- message: z30.string(),
518
- pcb_center: z30.object({
519
- x: z30.number().optional(),
520
- y: z30.number().optional()
530
+ error_type: z31.literal("source_failed_to_create_component_error").default("source_failed_to_create_component_error"),
531
+ component_name: z31.string().optional(),
532
+ subcircuit_id: z31.string().optional(),
533
+ parent_source_component_id: z31.string().optional(),
534
+ message: z31.string(),
535
+ pcb_center: z31.object({
536
+ x: z31.number().optional(),
537
+ y: z31.number().optional()
521
538
  }).optional(),
522
- schematic_center: z30.object({
523
- x: z30.number().optional(),
524
- y: z30.number().optional()
539
+ schematic_center: z31.object({
540
+ x: z31.number().optional(),
541
+ y: z31.number().optional()
525
542
  }).optional()
526
543
  }).describe("Error emitted when a component fails to be constructed");
527
544
  expectTypesMatch(true);
528
545
 
529
546
  // src/source/any_source_component.ts
530
- var any_source_component = z31.union([
547
+ var any_source_component = z32.union([
531
548
  source_simple_resistor,
532
549
  source_simple_capacitor,
533
550
  source_simple_diode,
@@ -554,152 +571,152 @@ var any_source_component = z31.union([
554
571
  ]);
555
572
 
556
573
  // src/source/source_port.ts
557
- import { z as z32 } from "zod";
558
- var source_port = z32.object({
559
- type: z32.literal("source_port"),
560
- pin_number: z32.number().optional(),
561
- port_hints: z32.array(z32.string()).optional(),
562
- name: z32.string(),
563
- source_port_id: z32.string(),
564
- source_component_id: z32.string(),
565
- subcircuit_id: z32.string().optional(),
566
- subcircuit_connectivity_map_key: z32.string().optional()
567
- });
568
- expectTypesMatch(true);
569
-
570
- // src/source/source_trace.ts
571
574
  import { z as z33 } from "zod";
572
- var source_trace = z33.object({
573
- type: z33.literal("source_trace"),
574
- source_trace_id: z33.string(),
575
- connected_source_port_ids: z33.array(z33.string()),
576
- connected_source_net_ids: z33.array(z33.string()),
575
+ var source_port = z33.object({
576
+ type: z33.literal("source_port"),
577
+ pin_number: z33.number().optional(),
578
+ port_hints: z33.array(z33.string()).optional(),
579
+ name: z33.string(),
580
+ source_port_id: z33.string(),
581
+ source_component_id: z33.string(),
577
582
  subcircuit_id: z33.string().optional(),
578
- subcircuit_connectivity_map_key: z33.string().optional(),
579
- max_length: z33.number().optional(),
580
- min_trace_thickness: z33.number().optional(),
581
- display_name: z33.string().optional()
583
+ subcircuit_connectivity_map_key: z33.string().optional()
582
584
  });
583
585
  expectTypesMatch(true);
584
586
 
585
- // src/source/source_group.ts
587
+ // src/source/source_trace.ts
586
588
  import { z as z34 } from "zod";
587
- var source_group = z34.object({
588
- type: z34.literal("source_group"),
589
- source_group_id: z34.string(),
589
+ var source_trace = z34.object({
590
+ type: z34.literal("source_trace"),
591
+ source_trace_id: z34.string(),
592
+ connected_source_port_ids: z34.array(z34.string()),
593
+ connected_source_net_ids: z34.array(z34.string()),
590
594
  subcircuit_id: z34.string().optional(),
591
- parent_subcircuit_id: z34.string().optional(),
592
- is_subcircuit: z34.boolean().optional(),
593
- name: z34.string().optional()
595
+ subcircuit_connectivity_map_key: z34.string().optional(),
596
+ max_length: z34.number().optional(),
597
+ min_trace_thickness: z34.number().optional(),
598
+ display_name: z34.string().optional()
594
599
  });
600
+ expectTypesMatch(true);
595
601
 
596
- // src/source/source_net.ts
602
+ // src/source/source_group.ts
597
603
  import { z as z35 } from "zod";
598
- var source_net = z35.object({
599
- type: z35.literal("source_net"),
600
- source_net_id: z35.string(),
601
- name: z35.string(),
602
- member_source_group_ids: z35.array(z35.string()),
603
- is_power: z35.boolean().optional(),
604
- is_ground: z35.boolean().optional(),
605
- is_digital_signal: z35.boolean().optional(),
606
- is_analog_signal: z35.boolean().optional(),
607
- trace_width: z35.number().optional(),
604
+ var source_group = z35.object({
605
+ type: z35.literal("source_group"),
606
+ source_group_id: z35.string(),
608
607
  subcircuit_id: z35.string().optional(),
609
- subcircuit_connectivity_map_key: z35.string().optional()
608
+ parent_subcircuit_id: z35.string().optional(),
609
+ is_subcircuit: z35.boolean().optional(),
610
+ name: z35.string().optional()
610
611
  });
611
612
 
612
- // src/schematic/schematic_box.ts
613
+ // src/source/source_net.ts
613
614
  import { z as z36 } from "zod";
614
- var schematic_box = z36.object({
615
- type: z36.literal("schematic_box"),
616
- schematic_component_id: z36.string(),
615
+ var source_net = z36.object({
616
+ type: z36.literal("source_net"),
617
+ source_net_id: z36.string(),
618
+ name: z36.string(),
619
+ member_source_group_ids: z36.array(z36.string()),
620
+ is_power: z36.boolean().optional(),
621
+ is_ground: z36.boolean().optional(),
622
+ is_digital_signal: z36.boolean().optional(),
623
+ is_analog_signal: z36.boolean().optional(),
624
+ trace_width: z36.number().optional(),
625
+ subcircuit_id: z36.string().optional(),
626
+ subcircuit_connectivity_map_key: z36.string().optional()
627
+ });
628
+
629
+ // src/schematic/schematic_box.ts
630
+ import { z as z37 } from "zod";
631
+ var schematic_box = z37.object({
632
+ type: z37.literal("schematic_box"),
633
+ schematic_component_id: z37.string(),
617
634
  width: distance,
618
635
  height: distance,
619
- is_dashed: z36.boolean().default(false),
636
+ is_dashed: z37.boolean().default(false),
620
637
  x: distance,
621
638
  y: distance
622
639
  }).describe("Draws a box on the schematic");
623
640
  expectTypesMatch(true);
624
641
 
625
642
  // src/schematic/schematic_path.ts
626
- import { z as z37 } from "zod";
627
- var schematic_path = z37.object({
628
- type: z37.literal("schematic_path"),
629
- schematic_component_id: z37.string(),
630
- fill_color: z37.enum(["red", "blue"]).optional(),
631
- is_filled: z37.boolean().optional(),
632
- points: z37.array(point)
643
+ import { z as z38 } from "zod";
644
+ var schematic_path = z38.object({
645
+ type: z38.literal("schematic_path"),
646
+ schematic_component_id: z38.string(),
647
+ fill_color: z38.enum(["red", "blue"]).optional(),
648
+ is_filled: z38.boolean().optional(),
649
+ points: z38.array(point)
633
650
  });
634
651
  expectTypesMatch(true);
635
652
 
636
653
  // src/schematic/schematic_component.ts
637
- import { z as z38 } from "zod";
638
- var schematic_pin_styles = z38.record(
639
- z38.object({
654
+ import { z as z39 } from "zod";
655
+ var schematic_pin_styles = z39.record(
656
+ z39.object({
640
657
  left_margin: length.optional(),
641
658
  right_margin: length.optional(),
642
659
  top_margin: length.optional(),
643
660
  bottom_margin: length.optional()
644
661
  })
645
662
  );
646
- var schematic_component_port_arrangement_by_size = z38.object({
647
- left_size: z38.number(),
648
- right_size: z38.number(),
649
- top_size: z38.number().optional(),
650
- bottom_size: z38.number().optional()
663
+ var schematic_component_port_arrangement_by_size = z39.object({
664
+ left_size: z39.number(),
665
+ right_size: z39.number(),
666
+ top_size: z39.number().optional(),
667
+ bottom_size: z39.number().optional()
651
668
  });
652
669
  expectTypesMatch(true);
653
- var schematic_component_port_arrangement_by_sides = z38.object({
654
- left_side: z38.object({
655
- pins: z38.array(z38.number()),
670
+ var schematic_component_port_arrangement_by_sides = z39.object({
671
+ left_side: z39.object({
672
+ pins: z39.array(z39.number()),
656
673
  // @ts-ignore
657
- direction: z38.enum(["top-to-bottom", "bottom-to-top"]).optional()
674
+ direction: z39.enum(["top-to-bottom", "bottom-to-top"]).optional()
658
675
  }).optional(),
659
- right_side: z38.object({
660
- pins: z38.array(z38.number()),
676
+ right_side: z39.object({
677
+ pins: z39.array(z39.number()),
661
678
  // @ts-ignore
662
- direction: z38.enum(["top-to-bottom", "bottom-to-top"]).optional()
679
+ direction: z39.enum(["top-to-bottom", "bottom-to-top"]).optional()
663
680
  }).optional(),
664
- top_side: z38.object({
665
- pins: z38.array(z38.number()),
681
+ top_side: z39.object({
682
+ pins: z39.array(z39.number()),
666
683
  // @ts-ignore
667
- direction: z38.enum(["left-to-right", "right-to-left"]).optional()
684
+ direction: z39.enum(["left-to-right", "right-to-left"]).optional()
668
685
  }).optional(),
669
- bottom_side: z38.object({
670
- pins: z38.array(z38.number()),
686
+ bottom_side: z39.object({
687
+ pins: z39.array(z39.number()),
671
688
  // @ts-ignore
672
- direction: z38.enum(["left-to-right", "right-to-left"]).optional()
689
+ direction: z39.enum(["left-to-right", "right-to-left"]).optional()
673
690
  }).optional()
674
691
  });
675
692
  expectTypesMatch(true);
676
- var port_arrangement = z38.union([
693
+ var port_arrangement = z39.union([
677
694
  schematic_component_port_arrangement_by_size,
678
695
  schematic_component_port_arrangement_by_sides
679
696
  ]);
680
- var schematic_component = z38.object({
681
- type: z38.literal("schematic_component"),
697
+ var schematic_component = z39.object({
698
+ type: z39.literal("schematic_component"),
682
699
  size,
683
700
  center: point,
684
- source_component_id: z38.string(),
685
- schematic_component_id: z38.string(),
701
+ source_component_id: z39.string(),
702
+ schematic_component_id: z39.string(),
686
703
  pin_spacing: length.optional(),
687
704
  pin_styles: schematic_pin_styles.optional(),
688
705
  box_width: length.optional(),
689
- symbol_name: z38.string().optional(),
706
+ symbol_name: z39.string().optional(),
690
707
  port_arrangement: port_arrangement.optional(),
691
- port_labels: z38.record(z38.string()).optional(),
692
- symbol_display_value: z38.string().optional(),
693
- subcircuit_id: z38.string().optional(),
694
- schematic_group_id: z38.string().optional()
708
+ port_labels: z39.record(z39.string()).optional(),
709
+ symbol_display_value: z39.string().optional(),
710
+ subcircuit_id: z39.string().optional(),
711
+ schematic_group_id: z39.string().optional()
695
712
  });
696
713
  expectTypesMatch(true);
697
714
 
698
715
  // src/schematic/schematic_line.ts
699
- import { z as z39 } from "zod";
700
- var schematic_line = z39.object({
701
- type: z39.literal("schematic_line"),
702
- schematic_component_id: z39.string(),
716
+ import { z as z40 } from "zod";
717
+ var schematic_line = z40.object({
718
+ type: z40.literal("schematic_line"),
719
+ schematic_component_id: z40.string(),
703
720
  x1: distance,
704
721
  x2: distance,
705
722
  y1: distance,
@@ -708,30 +725,30 @@ var schematic_line = z39.object({
708
725
  expectTypesMatch(true);
709
726
 
710
727
  // src/schematic/schematic_trace.ts
711
- import { z as z40 } from "zod";
712
- var schematic_trace = z40.object({
713
- type: z40.literal("schematic_trace"),
714
- schematic_trace_id: z40.string(),
715
- source_trace_id: z40.string(),
716
- junctions: z40.array(
717
- z40.object({
718
- x: z40.number(),
719
- y: z40.number()
728
+ import { z as z41 } from "zod";
729
+ var schematic_trace = z41.object({
730
+ type: z41.literal("schematic_trace"),
731
+ schematic_trace_id: z41.string(),
732
+ source_trace_id: z41.string(),
733
+ junctions: z41.array(
734
+ z41.object({
735
+ x: z41.number(),
736
+ y: z41.number()
720
737
  })
721
738
  ),
722
- edges: z40.array(
723
- z40.object({
724
- from: z40.object({
725
- x: z40.number(),
726
- y: z40.number()
739
+ edges: z41.array(
740
+ z41.object({
741
+ from: z41.object({
742
+ x: z41.number(),
743
+ y: z41.number()
727
744
  }),
728
- to: z40.object({
729
- x: z40.number(),
730
- y: z40.number()
745
+ to: z41.object({
746
+ x: z41.number(),
747
+ y: z41.number()
731
748
  }),
732
- is_crossing: z40.boolean().optional(),
733
- from_schematic_port_id: z40.string().optional(),
734
- to_schematic_port_id: z40.string().optional()
749
+ is_crossing: z41.boolean().optional(),
750
+ from_schematic_port_id: z41.string().optional(),
751
+ to_schematic_port_id: z41.string().optional()
735
752
  })
736
753
  )
737
754
  });
@@ -740,20 +757,6 @@ expectTypesMatch(true);
740
757
  // src/schematic/schematic_text.ts
741
758
  import { z as z43 } from "zod";
742
759
 
743
- // src/common/NinePointAnchor.ts
744
- import { z as z41 } from "zod";
745
- var ninePointAnchor = z41.enum([
746
- "top_left",
747
- "top_center",
748
- "top_right",
749
- "center_left",
750
- "center",
751
- "center_right",
752
- "bottom_left",
753
- "bottom_center",
754
- "bottom_right"
755
- ]);
756
-
757
760
  // src/common/FivePointAnchor.ts
758
761
  import { z as z42 } from "zod";
759
762
  var fivePointAnchor = z42.enum([
@@ -1817,6 +1820,7 @@ export {
1817
1820
  layer_ref,
1818
1821
  layer_string,
1819
1822
  length,
1823
+ ninePointAnchor,
1820
1824
  pcb_autorouting_error,
1821
1825
  pcb_board,
1822
1826
  pcb_breakout_point,