feat(housekeeping): define typed poll query contract
This commit is contained in:
1 parent
e69633b753
commit
cbc3075e5a
4 files changed
+432
-8
No files matched your search
@@ -92,5 +92,8 @@ export function parseContentListInput(
|
||||
status: text(searchParams.status, 32).toLocaleLowerCase(),
|
||||
pageSize: bounded(searchParams.pageSize, 25, 1, 100),
|
||||
offset: bounded(searchParams.offset, 0, 0, 100_000),
|
||||
responseQuestionId: text(searchParams.responseQuestionId, 32),
|
||||
responsePageSize: bounded(searchParams.responsePageSize, 25, 1, 50),
|
||||
responseOffset: bounded(searchParams.responseOffset, 0, 0, 100_000),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user