circuit-json 0.0.535 → 0.0.537

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
@@ -172,6 +172,7 @@ https://github.com/user-attachments/assets/2f28b7ba-689e-4d80-85b2-5bdef84b41f8
172
172
  - [PcbPortNotConnectedError](#pcbportnotconnectederror)
173
173
  - [PcbPortNotMatchedError](#pcbportnotmatchederror)
174
174
  - [PcbPreflightRoutingError](#pcbpreflightroutingerror)
175
+ - [PcbQuoteEstimate](#pcbquoteestimate)
175
176
  - [PcbRouteHints](#pcbroutehints)
176
177
  - [PcbSilkscreenCircle](#pcbsilkscreencircle)
177
178
  - [PcbSilkscreenGraphic](#pcbsilkscreengraphic)
@@ -3075,6 +3076,78 @@ interface PcbPreflightRoutingError extends BaseCircuitJsonError {
3075
3076
  }
3076
3077
  ```
3077
3078
 
3079
+ ### PcbQuoteEstimate
3080
+
3081
+ [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/pcb_quote_estimate.ts)
3082
+
3083
+ Use a supplier-combined import charge only when duty/import tax cannot be separated.
3084
+
3085
+ ```typescript
3086
+ /** Itemized estimate for an entire PCB order; all costs use currency major units.
3087
+ * Undefined costs are unknown, never implicitly zero. manufacturing_cost is the
3088
+ * sum of manufacturing attributes before discounts. total_cost adds delivery,
3089
+ * duties, tax and brokerage and subtracts discount_cost. unit_cost is total_cost
3090
+ * divided by quantity. Do not emit total_cost for an incomplete landed estimate.
3091
+ * Assembly costs apply to assembled_quantity; quantity is fabricated PCB count.
3092
+ * Destination is the shipping destination, not nationality or IP geolocation. */
3093
+ interface PcbQuoteEstimate {
3094
+ type: "pcb_quote_estimate"
3095
+ pcb_quote_estimate_id: string
3096
+ pcb_board_id: string
3097
+ supplier_name: string
3098
+ currency: string
3099
+ quantity: number
3100
+ assembled_quantity?: number
3101
+ estimated_at: string
3102
+ expires_at?: string
3103
+ pricing_model_version?: string
3104
+ quote_request_hash?: string
3105
+ destination_country_code?: string
3106
+ shipping_service?: string
3107
+ is_manufacturing_cost_complete: boolean
3108
+ is_landed_cost_complete: boolean
3109
+ pcb_fabrication_cost?: number
3110
+ pcb_setup_cost?: number
3111
+ assembly_setup_cost?: number
3112
+ assembly_placement_cost?: number
3113
+ assembly_labor_cost?: number
3114
+ stencil_cost?: number
3115
+ packaging_cost?: number
3116
+ parts_placement_confirmation_cost?: number
3117
+ special_components_cost?: number
3118
+ expedited_build_cost?: number
3119
+ components_cost?: number
3120
+ extended_component_loading_cost?: number
3121
+ component_attrition_cost?: number
3122
+ component_baking_cost?: number
3123
+ hand_soldering_cost?: number
3124
+ x_ray_inspection_cost?: number
3125
+ small_hole_cost?: number
3126
+ via_in_pad_cost?: number
3127
+ via_filling_cost?: number
3128
+ kelvin_test_cost?: number
3129
+ impedance_control_cost?: number
3130
+ surface_finish_cost?: number
3131
+ panelization_cost?: number
3132
+ engineering_cost?: number
3133
+ other_manufacturing_cost?: number
3134
+ shipping_cost?: number
3135
+ duties_cost?: number
3136
+ import_tax_cost?: number
3137
+ /** Use a supplier-combined import charge only when duty/import tax cannot be separated. */
3138
+ customs_duties_and_taxes_cost?: number
3139
+ /** Sales tax or domestic VAT, excluding import taxes. */
3140
+ tax_cost?: number
3141
+ brokerage_cost?: number
3142
+ discount_cost?: number
3143
+ manufacturing_cost?: number
3144
+ total_cost?: number
3145
+ unit_cost?: number
3146
+ assumptions?: string[]
3147
+ warnings?: string[]
3148
+ }
3149
+ ```
3150
+
3078
3151
  ### PcbRouteHints
3079
3152
 
3080
3153
  [Source](https://github.com/tscircuit/circuit-json/blob/main/src/pcb/properties/pcb_route_hints.ts)
@@ -4641,6 +4714,7 @@ interface SimulationExperiment {
4641
4714
  time_per_step?: number // ms
4642
4715
  start_time_ms?: number // ms
4643
4716
  end_time_ms?: number // ms
4717
+ pcb_spice_channel?: PcbSpiceChannel
4644
4718
  spice_options?: SpiceSimulationOptions
4645
4719
  dc_sweep_voltage_source_id?: string
4646
4720
  dc_sweep_current_source_id?: string
@@ -4661,6 +4735,49 @@ interface SpiceSimulationOptions {
4661
4735
  abstol?: number | string
4662
4736
  vntol?: number | string
4663
4737
  }
4738
+
4739
+ interface PcbSpiceChannel {
4740
+ reduction: "routed-copper" | "straightened-stages"
4741
+ sections: number
4742
+ lanes: Array<{
4743
+ name: string
4744
+ driver_source_port_id: string
4745
+ receiver_source_port_id: string
4746
+ }>
4747
+ reference_source_port_id: string
4748
+ passive_source_component_ids?: string[]
4749
+ extraction: {
4750
+ minimum_frequency_hz: number
4751
+ maximum_frequency_hz: number
4752
+ model_frequency_hz: number
4753
+ filaments: number
4754
+ refinement_filaments: number
4755
+ convergence_tolerance: number
4756
+ capacitance_tolerance: number
4757
+ reciprocity_tolerance: number
4758
+ dc_resistance_tolerance: number
4759
+ max_panel_length_mm: number
4760
+ ground_mesh_size_mm?: number
4761
+ }
4762
+ relative_permittivity?: number
4763
+ via_plating_thickness_mm?: number
4764
+ via_equivalent_width_mm?: number
4765
+ omit_through_via_stubs?: boolean
4766
+ straightened_stage_profiles?: Record<
4767
+ string,
4768
+ {
4769
+ spacing_mm: number
4770
+ relative_permittivity: number
4771
+ return: {
4772
+ width_mm: number
4773
+ thickness_mm: number
4774
+ length_factor: number
4775
+ center_y_mm: number
4776
+ center_z_mm: number
4777
+ }
4778
+ }
4779
+ >
4780
+ }
4664
4781
  ```
4665
4782
 
4666
4783
  ### SimulationOpAmp