mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-15 23:12:04 +00:00
Merge branch 'fix/v1438-api' into release/v1.43.8
This commit is contained in:
commit
4a0db28713
99 files changed
+5219
-1018
No files matched your search
@@ -10,6 +10,8 @@
|
||||
*/
|
||||
import { z } from "zod/v4";
|
||||
|
||||
import { listOffsetField } from "@/lib/http/list-query-fields";
|
||||
|
||||
export const practitionerCreateSchema = z
|
||||
.object({
|
||||
name: z.string().min(1).max(160),
|
||||
@@ -50,6 +52,11 @@ export const practitionerListQuerySchema = z
|
||||
.object({
|
||||
q: z.string().min(1).max(160).optional(),
|
||||
limit: z.coerce.number().int().min(1).max(200).optional(),
|
||||
offset: listOffsetField()
|
||||
.optional()
|
||||
.describe(
|
||||
"Rows to skip, for reading the address book page by page; `meta.truncated` says whether another page exists.",
|
||||
),
|
||||
})
|
||||
.strict();
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
* moment the catalogue is authoritative, because the picker produced it.
|
||||
*/
|
||||
import { z } from "zod/v4";
|
||||
import { listOffsetField } from "@/lib/http/list-query-fields";
|
||||
|
||||
import {
|
||||
ANTIGEN_SLUGS,
|
||||
@@ -195,6 +196,11 @@ export const vaccinationListQuerySchema = z
|
||||
from: isoDateTime().optional(),
|
||||
to: isoDateTime().optional(),
|
||||
limit: z.coerce.number().int().min(1).max(500).optional(),
|
||||
offset: listOffsetField()
|
||||
.optional()
|
||||
.describe(
|
||||
"Doses to skip, for reading the log page by page; `meta.truncated` says whether another page exists.",
|
||||
),
|
||||
})
|
||||
.strict()
|
||||
.refine((q) => !(q.from && q.to) || q.from <= q.to, {
|
||||
|
||||
Reference in new issue
Block a user