circuit-json 0.0.508 → 0.0.509
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 +12 -0
- package/dist/index.d.mts +156 -0
- package/dist/index.mjs +12 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -702,6 +702,18 @@ interface SourcePcbGroundPlane {
|
|
|
702
702
|
|
|
703
703
|
```typescript
|
|
704
704
|
interface SourcePinAttributes {
|
|
705
|
+
is_input?: boolean
|
|
706
|
+
is_output?: boolean
|
|
707
|
+
is_bidirectional?: boolean
|
|
708
|
+
is_passive?: boolean
|
|
709
|
+
can_use_tri_state?: boolean
|
|
710
|
+
is_using_tri_state?: boolean
|
|
711
|
+
can_use_open_collector?: boolean
|
|
712
|
+
is_using_open_collector?: boolean
|
|
713
|
+
can_use_open_emitter?: boolean
|
|
714
|
+
is_using_open_emitter?: boolean
|
|
715
|
+
is_gpio?: boolean
|
|
716
|
+
highlight_color?: string
|
|
705
717
|
must_be_connected?: boolean
|
|
706
718
|
provides_power?: boolean
|
|
707
719
|
requires_power?: boolean
|
package/dist/index.d.mts
CHANGED
|
@@ -30942,6 +30942,18 @@ interface SourceSimpleAmmeter extends SourceComponentBase {
|
|
|
30942
30942
|
}
|
|
30943
30943
|
|
|
30944
30944
|
declare const source_pin_attributes: z.ZodObject<{
|
|
30945
|
+
is_input: z.ZodOptional<z.ZodBoolean>;
|
|
30946
|
+
is_output: z.ZodOptional<z.ZodBoolean>;
|
|
30947
|
+
is_bidirectional: z.ZodOptional<z.ZodBoolean>;
|
|
30948
|
+
is_passive: z.ZodOptional<z.ZodBoolean>;
|
|
30949
|
+
can_use_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
30950
|
+
is_using_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
30951
|
+
can_use_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
30952
|
+
is_using_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
30953
|
+
can_use_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
30954
|
+
is_using_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
30955
|
+
is_gpio: z.ZodOptional<z.ZodBoolean>;
|
|
30956
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
30945
30957
|
must_be_connected: z.ZodOptional<z.ZodBoolean>;
|
|
30946
30958
|
provides_power: z.ZodOptional<z.ZodBoolean>;
|
|
30947
30959
|
requires_power: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -30980,6 +30992,18 @@ declare const source_pin_attributes: z.ZodObject<{
|
|
|
30980
30992
|
supports_uart_tx: z.ZodOptional<z.ZodBoolean>;
|
|
30981
30993
|
supports_uart_rx: z.ZodOptional<z.ZodBoolean>;
|
|
30982
30994
|
}, "strip", z.ZodTypeAny, {
|
|
30995
|
+
highlight_color?: string | undefined;
|
|
30996
|
+
is_input?: boolean | undefined;
|
|
30997
|
+
is_output?: boolean | undefined;
|
|
30998
|
+
is_bidirectional?: boolean | undefined;
|
|
30999
|
+
is_passive?: boolean | undefined;
|
|
31000
|
+
can_use_tri_state?: boolean | undefined;
|
|
31001
|
+
is_using_tri_state?: boolean | undefined;
|
|
31002
|
+
can_use_open_collector?: boolean | undefined;
|
|
31003
|
+
is_using_open_collector?: boolean | undefined;
|
|
31004
|
+
can_use_open_emitter?: boolean | undefined;
|
|
31005
|
+
is_using_open_emitter?: boolean | undefined;
|
|
31006
|
+
is_gpio?: boolean | undefined;
|
|
30983
31007
|
must_be_connected?: boolean | undefined;
|
|
30984
31008
|
provides_power?: boolean | undefined;
|
|
30985
31009
|
requires_power?: boolean | undefined;
|
|
@@ -31018,6 +31042,18 @@ declare const source_pin_attributes: z.ZodObject<{
|
|
|
31018
31042
|
supports_uart_tx?: boolean | undefined;
|
|
31019
31043
|
supports_uart_rx?: boolean | undefined;
|
|
31020
31044
|
}, {
|
|
31045
|
+
highlight_color?: string | undefined;
|
|
31046
|
+
is_input?: boolean | undefined;
|
|
31047
|
+
is_output?: boolean | undefined;
|
|
31048
|
+
is_bidirectional?: boolean | undefined;
|
|
31049
|
+
is_passive?: boolean | undefined;
|
|
31050
|
+
can_use_tri_state?: boolean | undefined;
|
|
31051
|
+
is_using_tri_state?: boolean | undefined;
|
|
31052
|
+
can_use_open_collector?: boolean | undefined;
|
|
31053
|
+
is_using_open_collector?: boolean | undefined;
|
|
31054
|
+
can_use_open_emitter?: boolean | undefined;
|
|
31055
|
+
is_using_open_emitter?: boolean | undefined;
|
|
31056
|
+
is_gpio?: boolean | undefined;
|
|
31021
31057
|
must_be_connected?: boolean | undefined;
|
|
31022
31058
|
provides_power?: boolean | undefined;
|
|
31023
31059
|
requires_power?: boolean | undefined;
|
|
@@ -31057,6 +31093,18 @@ declare const source_pin_attributes: z.ZodObject<{
|
|
|
31057
31093
|
supports_uart_rx?: boolean | undefined;
|
|
31058
31094
|
}>;
|
|
31059
31095
|
interface SourcePinAttributes {
|
|
31096
|
+
is_input?: boolean;
|
|
31097
|
+
is_output?: boolean;
|
|
31098
|
+
is_bidirectional?: boolean;
|
|
31099
|
+
is_passive?: boolean;
|
|
31100
|
+
can_use_tri_state?: boolean;
|
|
31101
|
+
is_using_tri_state?: boolean;
|
|
31102
|
+
can_use_open_collector?: boolean;
|
|
31103
|
+
is_using_open_collector?: boolean;
|
|
31104
|
+
can_use_open_emitter?: boolean;
|
|
31105
|
+
is_using_open_emitter?: boolean;
|
|
31106
|
+
is_gpio?: boolean;
|
|
31107
|
+
highlight_color?: string;
|
|
31060
31108
|
must_be_connected?: boolean;
|
|
31061
31109
|
provides_power?: boolean;
|
|
31062
31110
|
requires_power?: boolean;
|
|
@@ -34209,6 +34257,18 @@ declare const source_port: z.ZodObject<{
|
|
|
34209
34257
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
34210
34258
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
34211
34259
|
} & {
|
|
34260
|
+
is_input: z.ZodOptional<z.ZodBoolean>;
|
|
34261
|
+
is_output: z.ZodOptional<z.ZodBoolean>;
|
|
34262
|
+
is_bidirectional: z.ZodOptional<z.ZodBoolean>;
|
|
34263
|
+
is_passive: z.ZodOptional<z.ZodBoolean>;
|
|
34264
|
+
can_use_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
34265
|
+
is_using_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
34266
|
+
can_use_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
34267
|
+
is_using_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
34268
|
+
can_use_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
34269
|
+
is_using_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
34270
|
+
is_gpio: z.ZodOptional<z.ZodBoolean>;
|
|
34271
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
34212
34272
|
must_be_connected: z.ZodOptional<z.ZodBoolean>;
|
|
34213
34273
|
provides_power: z.ZodOptional<z.ZodBoolean>;
|
|
34214
34274
|
requires_power: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -34253,9 +34313,21 @@ declare const source_port: z.ZodObject<{
|
|
|
34253
34313
|
source_component_id?: string | undefined;
|
|
34254
34314
|
subcircuit_id?: string | undefined;
|
|
34255
34315
|
port_hints?: string[] | undefined;
|
|
34316
|
+
highlight_color?: string | undefined;
|
|
34256
34317
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
34257
34318
|
source_group_id?: string | undefined;
|
|
34258
34319
|
pin_number?: number | undefined;
|
|
34320
|
+
is_input?: boolean | undefined;
|
|
34321
|
+
is_output?: boolean | undefined;
|
|
34322
|
+
is_bidirectional?: boolean | undefined;
|
|
34323
|
+
is_passive?: boolean | undefined;
|
|
34324
|
+
can_use_tri_state?: boolean | undefined;
|
|
34325
|
+
is_using_tri_state?: boolean | undefined;
|
|
34326
|
+
can_use_open_collector?: boolean | undefined;
|
|
34327
|
+
is_using_open_collector?: boolean | undefined;
|
|
34328
|
+
can_use_open_emitter?: boolean | undefined;
|
|
34329
|
+
is_using_open_emitter?: boolean | undefined;
|
|
34330
|
+
is_gpio?: boolean | undefined;
|
|
34259
34331
|
must_be_connected?: boolean | undefined;
|
|
34260
34332
|
provides_power?: boolean | undefined;
|
|
34261
34333
|
requires_power?: boolean | undefined;
|
|
@@ -34301,9 +34373,21 @@ declare const source_port: z.ZodObject<{
|
|
|
34301
34373
|
source_component_id?: string | undefined;
|
|
34302
34374
|
subcircuit_id?: string | undefined;
|
|
34303
34375
|
port_hints?: string[] | undefined;
|
|
34376
|
+
highlight_color?: string | undefined;
|
|
34304
34377
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
34305
34378
|
source_group_id?: string | undefined;
|
|
34306
34379
|
pin_number?: number | undefined;
|
|
34380
|
+
is_input?: boolean | undefined;
|
|
34381
|
+
is_output?: boolean | undefined;
|
|
34382
|
+
is_bidirectional?: boolean | undefined;
|
|
34383
|
+
is_passive?: boolean | undefined;
|
|
34384
|
+
can_use_tri_state?: boolean | undefined;
|
|
34385
|
+
is_using_tri_state?: boolean | undefined;
|
|
34386
|
+
can_use_open_collector?: boolean | undefined;
|
|
34387
|
+
is_using_open_collector?: boolean | undefined;
|
|
34388
|
+
can_use_open_emitter?: boolean | undefined;
|
|
34389
|
+
is_using_open_emitter?: boolean | undefined;
|
|
34390
|
+
is_gpio?: boolean | undefined;
|
|
34307
34391
|
must_be_connected?: boolean | undefined;
|
|
34308
34392
|
provides_power?: boolean | undefined;
|
|
34309
34393
|
requires_power?: boolean | undefined;
|
|
@@ -38054,6 +38138,18 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
38054
38138
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
38055
38139
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
38056
38140
|
} & {
|
|
38141
|
+
is_input: z.ZodOptional<z.ZodBoolean>;
|
|
38142
|
+
is_output: z.ZodOptional<z.ZodBoolean>;
|
|
38143
|
+
is_bidirectional: z.ZodOptional<z.ZodBoolean>;
|
|
38144
|
+
is_passive: z.ZodOptional<z.ZodBoolean>;
|
|
38145
|
+
can_use_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
38146
|
+
is_using_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
38147
|
+
can_use_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
38148
|
+
is_using_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
38149
|
+
can_use_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
38150
|
+
is_using_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
38151
|
+
is_gpio: z.ZodOptional<z.ZodBoolean>;
|
|
38152
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
38057
38153
|
must_be_connected: z.ZodOptional<z.ZodBoolean>;
|
|
38058
38154
|
provides_power: z.ZodOptional<z.ZodBoolean>;
|
|
38059
38155
|
requires_power: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -38098,9 +38194,21 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
38098
38194
|
source_component_id?: string | undefined;
|
|
38099
38195
|
subcircuit_id?: string | undefined;
|
|
38100
38196
|
port_hints?: string[] | undefined;
|
|
38197
|
+
highlight_color?: string | undefined;
|
|
38101
38198
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
38102
38199
|
source_group_id?: string | undefined;
|
|
38103
38200
|
pin_number?: number | undefined;
|
|
38201
|
+
is_input?: boolean | undefined;
|
|
38202
|
+
is_output?: boolean | undefined;
|
|
38203
|
+
is_bidirectional?: boolean | undefined;
|
|
38204
|
+
is_passive?: boolean | undefined;
|
|
38205
|
+
can_use_tri_state?: boolean | undefined;
|
|
38206
|
+
is_using_tri_state?: boolean | undefined;
|
|
38207
|
+
can_use_open_collector?: boolean | undefined;
|
|
38208
|
+
is_using_open_collector?: boolean | undefined;
|
|
38209
|
+
can_use_open_emitter?: boolean | undefined;
|
|
38210
|
+
is_using_open_emitter?: boolean | undefined;
|
|
38211
|
+
is_gpio?: boolean | undefined;
|
|
38104
38212
|
must_be_connected?: boolean | undefined;
|
|
38105
38213
|
provides_power?: boolean | undefined;
|
|
38106
38214
|
requires_power?: boolean | undefined;
|
|
@@ -38146,9 +38254,21 @@ declare const any_circuit_element: z.ZodUnion<[z.ZodObject<{
|
|
|
38146
38254
|
source_component_id?: string | undefined;
|
|
38147
38255
|
subcircuit_id?: string | undefined;
|
|
38148
38256
|
port_hints?: string[] | undefined;
|
|
38257
|
+
highlight_color?: string | undefined;
|
|
38149
38258
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
38150
38259
|
source_group_id?: string | undefined;
|
|
38151
38260
|
pin_number?: number | undefined;
|
|
38261
|
+
is_input?: boolean | undefined;
|
|
38262
|
+
is_output?: boolean | undefined;
|
|
38263
|
+
is_bidirectional?: boolean | undefined;
|
|
38264
|
+
is_passive?: boolean | undefined;
|
|
38265
|
+
can_use_tri_state?: boolean | undefined;
|
|
38266
|
+
is_using_tri_state?: boolean | undefined;
|
|
38267
|
+
can_use_open_collector?: boolean | undefined;
|
|
38268
|
+
is_using_open_collector?: boolean | undefined;
|
|
38269
|
+
can_use_open_emitter?: boolean | undefined;
|
|
38270
|
+
is_using_open_emitter?: boolean | undefined;
|
|
38271
|
+
is_gpio?: boolean | undefined;
|
|
38152
38272
|
must_be_connected?: boolean | undefined;
|
|
38153
38273
|
provides_power?: boolean | undefined;
|
|
38154
38274
|
requires_power?: boolean | undefined;
|
|
@@ -59335,6 +59455,18 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
59335
59455
|
subcircuit_id: z.ZodOptional<z.ZodString>;
|
|
59336
59456
|
subcircuit_connectivity_map_key: z.ZodOptional<z.ZodString>;
|
|
59337
59457
|
} & {
|
|
59458
|
+
is_input: z.ZodOptional<z.ZodBoolean>;
|
|
59459
|
+
is_output: z.ZodOptional<z.ZodBoolean>;
|
|
59460
|
+
is_bidirectional: z.ZodOptional<z.ZodBoolean>;
|
|
59461
|
+
is_passive: z.ZodOptional<z.ZodBoolean>;
|
|
59462
|
+
can_use_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
59463
|
+
is_using_tri_state: z.ZodOptional<z.ZodBoolean>;
|
|
59464
|
+
can_use_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
59465
|
+
is_using_open_collector: z.ZodOptional<z.ZodBoolean>;
|
|
59466
|
+
can_use_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
59467
|
+
is_using_open_emitter: z.ZodOptional<z.ZodBoolean>;
|
|
59468
|
+
is_gpio: z.ZodOptional<z.ZodBoolean>;
|
|
59469
|
+
highlight_color: z.ZodOptional<z.ZodString>;
|
|
59338
59470
|
must_be_connected: z.ZodOptional<z.ZodBoolean>;
|
|
59339
59471
|
provides_power: z.ZodOptional<z.ZodBoolean>;
|
|
59340
59472
|
requires_power: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -59379,9 +59511,21 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
59379
59511
|
source_component_id?: string | undefined;
|
|
59380
59512
|
subcircuit_id?: string | undefined;
|
|
59381
59513
|
port_hints?: string[] | undefined;
|
|
59514
|
+
highlight_color?: string | undefined;
|
|
59382
59515
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
59383
59516
|
source_group_id?: string | undefined;
|
|
59384
59517
|
pin_number?: number | undefined;
|
|
59518
|
+
is_input?: boolean | undefined;
|
|
59519
|
+
is_output?: boolean | undefined;
|
|
59520
|
+
is_bidirectional?: boolean | undefined;
|
|
59521
|
+
is_passive?: boolean | undefined;
|
|
59522
|
+
can_use_tri_state?: boolean | undefined;
|
|
59523
|
+
is_using_tri_state?: boolean | undefined;
|
|
59524
|
+
can_use_open_collector?: boolean | undefined;
|
|
59525
|
+
is_using_open_collector?: boolean | undefined;
|
|
59526
|
+
can_use_open_emitter?: boolean | undefined;
|
|
59527
|
+
is_using_open_emitter?: boolean | undefined;
|
|
59528
|
+
is_gpio?: boolean | undefined;
|
|
59385
59529
|
must_be_connected?: boolean | undefined;
|
|
59386
59530
|
provides_power?: boolean | undefined;
|
|
59387
59531
|
requires_power?: boolean | undefined;
|
|
@@ -59427,9 +59571,21 @@ declare const any_soup_element: z.ZodUnion<[z.ZodObject<{
|
|
|
59427
59571
|
source_component_id?: string | undefined;
|
|
59428
59572
|
subcircuit_id?: string | undefined;
|
|
59429
59573
|
port_hints?: string[] | undefined;
|
|
59574
|
+
highlight_color?: string | undefined;
|
|
59430
59575
|
subcircuit_connectivity_map_key?: string | undefined;
|
|
59431
59576
|
source_group_id?: string | undefined;
|
|
59432
59577
|
pin_number?: number | undefined;
|
|
59578
|
+
is_input?: boolean | undefined;
|
|
59579
|
+
is_output?: boolean | undefined;
|
|
59580
|
+
is_bidirectional?: boolean | undefined;
|
|
59581
|
+
is_passive?: boolean | undefined;
|
|
59582
|
+
can_use_tri_state?: boolean | undefined;
|
|
59583
|
+
is_using_tri_state?: boolean | undefined;
|
|
59584
|
+
can_use_open_collector?: boolean | undefined;
|
|
59585
|
+
is_using_open_collector?: boolean | undefined;
|
|
59586
|
+
can_use_open_emitter?: boolean | undefined;
|
|
59587
|
+
is_using_open_emitter?: boolean | undefined;
|
|
59588
|
+
is_gpio?: boolean | undefined;
|
|
59433
59589
|
must_be_connected?: boolean | undefined;
|
|
59434
59590
|
provides_power?: boolean | undefined;
|
|
59435
59591
|
requires_power?: boolean | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -417,6 +417,18 @@ expectTypesMatch(true);
|
|
|
417
417
|
// src/source/properties/source_pin_attributes.ts
|
|
418
418
|
import { z as z25 } from "zod";
|
|
419
419
|
var source_pin_attributes = z25.object({
|
|
420
|
+
is_input: z25.boolean().optional(),
|
|
421
|
+
is_output: z25.boolean().optional(),
|
|
422
|
+
is_bidirectional: z25.boolean().optional(),
|
|
423
|
+
is_passive: z25.boolean().optional(),
|
|
424
|
+
can_use_tri_state: z25.boolean().optional(),
|
|
425
|
+
is_using_tri_state: z25.boolean().optional(),
|
|
426
|
+
can_use_open_collector: z25.boolean().optional(),
|
|
427
|
+
is_using_open_collector: z25.boolean().optional(),
|
|
428
|
+
can_use_open_emitter: z25.boolean().optional(),
|
|
429
|
+
is_using_open_emitter: z25.boolean().optional(),
|
|
430
|
+
is_gpio: z25.boolean().optional(),
|
|
431
|
+
highlight_color: z25.string().optional(),
|
|
420
432
|
must_be_connected: z25.boolean().optional(),
|
|
421
433
|
provides_power: z25.boolean().optional(),
|
|
422
434
|
requires_power: z25.boolean().optional(),
|