@kalutskii/foundation 0.6.16 → 0.6.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -280,8 +280,8 @@ declare class ZodJWTService<TPayloadOrSchema> {
|
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
declare const zodPaginationSchema: z.ZodObject<{
|
|
283
|
-
offset: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
284
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
283
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
284
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
285
285
|
}, z.core.$strip>;
|
|
286
286
|
/**
|
|
287
287
|
* Reusable pagination fields for flat query schemas, allowing for
|
|
@@ -291,8 +291,8 @@ declare const zodPaginationSchema: z.ZodObject<{
|
|
|
291
291
|
* or use `zodPaginationSchema.extend(...)` when building directly from the schema.
|
|
292
292
|
*/
|
|
293
293
|
declare const zodPaginationShape: {
|
|
294
|
-
offset: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
295
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown
|
|
294
|
+
offset: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
295
|
+
limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
|
|
296
296
|
};
|
|
297
297
|
/**
|
|
298
298
|
* TypeScript type representing the pagination options validated by the `zodPaginationSchema`.
|
package/dist/index.js
CHANGED
|
@@ -218,9 +218,9 @@ var refinePagination = (options) => ({
|
|
|
218
218
|
import z from "zod";
|
|
219
219
|
var zodPaginationSchema = z.object({
|
|
220
220
|
/** Integer representing the starting point for pagination. */
|
|
221
|
-
offset: z.coerce.number().int().nonnegative().optional(),
|
|
221
|
+
offset: z.coerce.number().int().nonnegative().default(0).optional(),
|
|
222
222
|
/** Integer representing the maximum number of items to return. */
|
|
223
|
-
limit: z.coerce.number().int().positive().optional()
|
|
223
|
+
limit: z.coerce.number().int().positive().default(10).optional()
|
|
224
224
|
});
|
|
225
225
|
var zodPaginationShape = zodPaginationSchema.shape;
|
|
226
226
|
|