@ts-ghost/core-api
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -20,3 +20,3 @@ 'use strict'; | ||
page: zod.z.number(), | ||
limit: zod.z.number(), | ||
limit: zod.z.union([zod.z.number(), zod.z.literal("all")]), | ||
total: zod.z.number(), | ||
@@ -984,5 +984,8 @@ prev: zod.z.number().nullable(), | ||
order: zod.z.string().optional(), | ||
limit: zod.z.number().refine((n) => n && n > 0 && n <= 15, { | ||
message: "Limit must be between 1 and 15" | ||
}).optional(), | ||
limit: zod.z.union([ | ||
zod.z.literal("all"), | ||
zod.z.number().refine((n) => n && n > 0 && n <= 15, { | ||
message: "Limit must be between 1 and 15" | ||
}) | ||
]).optional(), | ||
page: zod.z.number().refine((n) => n && n >= 1, { | ||
@@ -989,0 +992,0 @@ message: "Page must be greater than 1" |
@@ -20,3 +20,3 @@ 'use strict'; | ||
page: zod.z.number(), | ||
limit: zod.z.number(), | ||
limit: zod.z.union([zod.z.number(), zod.z.literal("all")]), | ||
total: zod.z.number(), | ||
@@ -984,5 +984,8 @@ prev: zod.z.number().nullable(), | ||
order: zod.z.string().optional(), | ||
limit: zod.z.number().refine((n) => n && n > 0 && n <= 15, { | ||
message: "Limit must be between 1 and 15" | ||
}).optional(), | ||
limit: zod.z.union([ | ||
zod.z.literal("all"), | ||
zod.z.number().refine((n) => n && n > 0 && n <= 15, { | ||
message: "Limit must be between 1 and 15" | ||
}) | ||
]).optional(), | ||
page: zod.z.number().refine((n) => n && n >= 1, { | ||
@@ -989,0 +992,0 @@ message: "Page must be greater than 1" |
@@ -19,3 +19,3 @@ { | ||
}, | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"main": "./dist/index.js", | ||
@@ -22,0 +22,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
444706
6778