@deboxsoft/module-core
Advanced tools
Comparing version 2.6.0 to 2.6.1
@@ -233,16 +233,2 @@ import { z, ZodType } from 'zod'; | ||
}>, z.ZodObject<{ | ||
current: z.ZodDefault<z.ZodNumber>; | ||
size: z.ZodDefault<z.ZodNumber>; | ||
}, "strip", z.ZodTypeAny, { | ||
current: number; | ||
size: number; | ||
}, { | ||
current?: number | undefined; | ||
size?: number | undefined; | ||
}>]>; | ||
sortField: z.ZodOptional<z.ZodString>; | ||
sortAsc: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; | ||
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>>>; | ||
filter: z.ZodOptional<z.ZodAny>; | ||
cursor: z.ZodOptional<z.ZodObject<{ | ||
previous: z.ZodOptional<z.ZodAny>; | ||
@@ -265,3 +251,7 @@ before: z.ZodOptional<z.ZodAny>; | ||
hint?: string | Record<string, string> | undefined; | ||
}>>; | ||
}>]>; | ||
sortField: z.ZodOptional<z.ZodString>; | ||
sortAsc: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>; | ||
sort: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<-1>]>>>; | ||
filter: z.ZodOptional<z.ZodAny>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -271,3 +261,5 @@ sort?: Record<string, 1 | -1> | undefined; | ||
type?: "cursor" | "default" | undefined; | ||
cursor?: { | ||
sortField?: string | undefined; | ||
sortAsc?: boolean | undefined; | ||
params: { | ||
previous?: any; | ||
@@ -278,6 +270,3 @@ before?: any; | ||
hint?: string | Record<string, string> | undefined; | ||
} | undefined; | ||
sortField?: string | undefined; | ||
sortAsc?: boolean | undefined; | ||
params: { | ||
} | { | ||
current: number; | ||
@@ -290,3 +279,5 @@ size: number; | ||
type?: "cursor" | "default" | undefined; | ||
cursor?: { | ||
sortField?: string | undefined; | ||
sortAsc?: boolean | undefined; | ||
params: { | ||
previous?: any; | ||
@@ -297,6 +288,3 @@ before?: any; | ||
hint?: string | Record<string, string> | undefined; | ||
} | undefined; | ||
sortField?: string | undefined; | ||
sortAsc?: boolean | undefined; | ||
params: { | ||
} | { | ||
current?: number | undefined; | ||
@@ -303,0 +291,0 @@ size?: number | undefined; |
@@ -151,8 +151,7 @@ var __defProp = Object.defineProperty; | ||
type: PaginationType.optional(), | ||
params: z2.union([PageDefaultParams, PageDefaultParams]), | ||
params: z2.union([PageDefaultParams, PageCursorParams]), | ||
sortField: z2.string().optional(), | ||
sortAsc: z2.boolean().default(true).optional(), | ||
sort: z2.record(z2.string(), z2.union([z2.literal(1), z2.literal(-1)])).optional(), | ||
filter: z2.any().optional(), | ||
cursor: PageCursorParams.optional() | ||
filter: z2.any().optional() | ||
}); | ||
@@ -159,0 +158,0 @@ var Pagination = z2.object({ |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.6.0", | ||
"version": "2.6.1", | ||
"license": "SEE LICENSE IN LICENSE", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
Sorry, the diff of this file is not supported yet
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
67497
2058