Filter packet history on the server when a single type, route or scope is selected

This commit is contained in:
MrAlders0n
2026-07-14 22:31:50 -04:00
parent 82a83fd33f
commit 2e2b845137
9 changed files with 244 additions and 26 deletions
+4 -1
View File
@@ -58,12 +58,15 @@ function iatasParam(iatas?: string[]): string | undefined {
export function getPackets(
iatas: string[] | undefined,
params?: { cursor?: number; limit?: number },
params?: { cursor?: number; limit?: number; payloadType?: number; routeType?: number; scope?: string },
): Promise<CursorPage<PacketSummary>> {
return request("/packets", {
iatas: iatasParam(iatas),
cursor: params?.cursor,
limit: params?.limit ?? DEFAULT_PAGE_SIZE,
payloadType: params?.payloadType,
routeType: params?.routeType,
scope: params?.scope,
});
}