Common read query params (-Limit, -Sort, -Filter, -TotalOnly, plus -Name/-Id → names/ids) are mapped by hand in every cmdlet body (if ($Sort) { $q['sort'] = $Sort } …). ConvertTo-PfbQueryString only stringifies an already-built hashtable — there is no helper mapping $PSBoundParameters → the query hashtable.
A user-facing parameter must still be declared in each cmdlet's param() block — this issue centralizes the behaviour/mapping, not the declarations (that sweep is the follow-up migration issue).
Per-parameter merit (roadmap): -Limit and -TotalOnly are load-bearing (auto-pagination means the pipeline cannot cap fetch); -Sort/-Filter are consistency-only. Consider landing the -Limit paginator fix in the same pass.
Blocked on: nothing.
Owner: Justin - fixed as PR #49
Common read query params (
-Limit,-Sort,-Filter,-TotalOnly, plus-Name/-Id→names/ids) are mapped by hand in every cmdlet body (if ($Sort) { $q['sort'] = $Sort }…).ConvertTo-PfbQueryStringonly stringifies an already-built hashtable — there is no helper mapping$PSBoundParameters→ the query hashtable.Add-PfbCommonQueryParams -BoundParameters $PSBoundParameters -Into $queryParams) encoding the standard name→key conventions-TotalOnlycount-return handling (already partly inInvoke-PfbApiRequest)A user-facing parameter must still be declared in each cmdlet's
param()block — this issue centralizes the behaviour/mapping, not the declarations (that sweep is the follow-up migration issue).Per-parameter merit (roadmap):
-Limitand-TotalOnlyare load-bearing (auto-pagination means the pipeline cannot cap fetch);-Sort/-Filterare consistency-only. Consider landing the-Limitpaginator fix in the same pass.Blocked on: nothing.
Owner: Justin - fixed as PR #49