@deboxsoft/module-core
Advanced tools
Comparing version 2.6.88 to 2.6.89
@@ -48,21 +48,21 @@ import * as _zod from 'zod'; | ||
}, { | ||
current: z.ZodDefault<z.ZodNumber>; | ||
page: z.ZodDefault<z.ZodNumber>; | ||
}>, { | ||
total: z.ZodNumber; | ||
}>, "strip", z.ZodTypeAny, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
}, { | ||
page?: number | undefined; | ||
size?: number | undefined; | ||
current?: number | undefined; | ||
total: number; | ||
}>, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
last: number; | ||
pageCount: number; | ||
}, { | ||
page?: number | undefined; | ||
size?: number | undefined; | ||
current?: number | undefined; | ||
total: number; | ||
@@ -75,9 +75,9 @@ }>; | ||
}, { | ||
current: z.ZodDefault<z.ZodNumber>; | ||
page: z.ZodDefault<z.ZodNumber>; | ||
}>, "strip", z.ZodTypeAny, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
}, { | ||
page?: number | undefined; | ||
size?: number | undefined; | ||
current?: number | undefined; | ||
}>, z.ZodObject<z.extendShape<{ | ||
@@ -121,4 +121,4 @@ size: z.ZodDefault<z.ZodNumber>; | ||
} | { | ||
page: number; | ||
size: number; | ||
current: number; | ||
} | undefined; | ||
@@ -139,4 +139,4 @@ type?: "cursor" | "page" | "default" | undefined; | ||
} | { | ||
page?: number | undefined; | ||
size?: number | undefined; | ||
current?: number | undefined; | ||
} | undefined; | ||
@@ -168,14 +168,14 @@ type?: "cursor" | "page" | "default" | undefined; | ||
size: z.ZodNumber; | ||
current: z.ZodNumber; | ||
last: z.ZodNumber; | ||
page: z.ZodNumber; | ||
pageCount: z.ZodNumber; | ||
}>, "strip", z.ZodTypeAny, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
last: number; | ||
pageCount: number; | ||
}, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
last: number; | ||
pageCount: number; | ||
}>; | ||
@@ -211,14 +211,14 @@ type PageDefaultInfo = z.output<typeof PageDefaultInfo>; | ||
size: z.ZodNumber; | ||
current: z.ZodNumber; | ||
last: z.ZodNumber; | ||
page: z.ZodNumber; | ||
pageCount: z.ZodNumber; | ||
}>, "strip", z.ZodTypeAny, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
last: number; | ||
pageCount: number; | ||
}, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
last: number; | ||
pageCount: number; | ||
}>, z.ZodObject<z.extendShape<{ | ||
@@ -261,6 +261,6 @@ total: z.ZodOptional<z.ZodNumber>; | ||
} | { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
last: number; | ||
pageCount: number; | ||
}; | ||
@@ -278,6 +278,6 @@ }, { | ||
} | { | ||
page: number; | ||
size: number; | ||
current: number; | ||
total: number; | ||
last: number; | ||
pageCount: number; | ||
}; | ||
@@ -316,9 +316,9 @@ }>; | ||
}, { | ||
current: z.ZodDefault<z.ZodNumber>; | ||
page: z.ZodDefault<z.ZodNumber>; | ||
}>, "strip", z.ZodTypeAny, { | ||
page: number; | ||
size: number; | ||
current: number; | ||
}, { | ||
page?: number | undefined; | ||
size?: number | undefined; | ||
current?: number | undefined; | ||
}>; | ||
@@ -325,0 +325,0 @@ type PageDefaultParams = z.input<typeof PageDefaultParams>; |
@@ -119,3 +119,3 @@ import { __export, CONFIG_KEY, Container, ContainerDIClass, DbxError, getConfig, getConfigService, __reExport } from './chunk-3BIZMSTQ.js'; | ||
var PageDefaultParams = PageParams.extend({ | ||
current: z.number().default(1) | ||
page: z.number().default(1) | ||
}); | ||
@@ -134,4 +134,4 @@ var PageInfo = z.object({ | ||
size: z.number(), | ||
current: z.number(), | ||
last: z.number() | ||
page: z.number(), | ||
pageCount: z.number() | ||
}); | ||
@@ -152,3 +152,3 @@ var PaginationOptions = z.object({ | ||
total: z.number() | ||
}).transform(({ size, current, total }) => { | ||
}).transform(({ size, page, total }) => { | ||
const pageCount = Math.ceil(total / size); | ||
@@ -158,4 +158,4 @@ return { | ||
size, | ||
current, | ||
last: pageCount | ||
page, | ||
pageCount | ||
}; | ||
@@ -162,0 +162,0 @@ }); |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.6.88", | ||
"version": "2.6.89", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
148120