Skip to content

Commit

Permalink
add subcircuit id to source port and trace
Browse files Browse the repository at this point in the history
  • Loading branch information
seveibar committed Feb 10, 2025
1 parent 24138ca commit 954e8e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/source/source_port.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const source_port = z.object({
name: z.string(),
source_port_id: z.string(),
source_component_id: z.string(),
subcircuit_id: z.string().optional(),
})

export type SourcePortInput = z.input<typeof source_port>
Expand All @@ -23,6 +24,7 @@ export interface SourcePort {
name: string
source_port_id: string
source_component_id: string
subcircuit_id?: string
}

expectTypesMatch<SourcePort, InferredSourcePort>(true)
2 changes: 2 additions & 0 deletions src/source/source_trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface SourceTrace {
source_trace_id: string
connected_source_port_ids: string[]
connected_source_net_ids: string[]
subcircuit_id?: string
subcircuit_connectivity_map_key?: string
max_length?: number
display_name?: string
Expand All @@ -16,6 +17,7 @@ export const source_trace = z.object({
source_trace_id: z.string(),
connected_source_port_ids: z.array(z.string()),
connected_source_net_ids: z.array(z.string()),
subcircuit_id: z.string().optional(),
subcircuit_connectivity_map_key: z.string().optional(),
max_length: z.number().optional(),
display_name: z.string().optional(),
Expand Down

0 comments on commit 954e8e0

Please sign in to comment.