Retrieves the parts view data for a named process step across all jobs and paths. This endpoint powers the Parts View page, showing all parts that are at, approaching, or queued for a specific step name (e.g. "Assembly", "Inspection"). Parts are grouped into three buckets based on their proximity to the target step.
The endpoint scans all jobs and paths looking for steps whose name matches the given parameter. Since the same step name can appear in multiple paths across different jobs, the response aggregates data from all matching instances.
The step name match is case-sensitive. "Assembly" and "assembly" are treated as different step names.
The location field returns the location from the first matching step that has one set. If no matching steps have a location, this field is undefined.
The vendorPartsCount counts serials at steps whose location field contains the substring "vendor" (case-insensitive check). This is a heuristic for identifying parts at external vendors.
The stepIds array contains all unique step IDs across all paths that match the given name. This is useful for creating notes or navigating to specific step instances.
comingSoon includes serials exactly one step before the target. backlog includes serials two or more steps before. Serials past the target step are not included.
nextStepName and nextStepLocation are only populated on currentParts items, showing where the part will go after the target step.
If no paths contain a step with the given name, the response is valid but empty (all arrays are empty, stepIds is empty). No 404 is returned.