Merge branch 'fix/v1438-api' into release/v1.43.8

This commit is contained in:
Marc-André Bombeck committed 2026-10-20 15:39:39 +02:00
commit 4a0db28713
99 files changed
+5219 -1018

No files matched your search

+7
View File
@@ -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();
+6
View File
@@ -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, {