@deboxsoft/module-core
Advanced tools
Comparing version 2.5.39 to 2.5.40
import { z, ZodType } from 'zod'; | ||
export * from 'zod'; | ||
export { z } from 'zod'; | ||
export * from 'change-case'; | ||
@@ -4,0 +4,0 @@ export { Base64 as base64 } from 'js-base64'; |
@@ -60,3 +60,4 @@ var __defProp = Object.defineProperty; | ||
pull: () => pull, | ||
throttle: () => throttle | ||
throttle: () => throttle, | ||
z: () => z2 | ||
}); | ||
@@ -88,16 +89,2 @@ | ||
// src/zod/index.ts | ||
var zod_exports = {}; | ||
__export(zod_exports, { | ||
BooleanResponse: () => BooleanResponse, | ||
DateSchema: () => DateSchema, | ||
IdParams: () => IdParams, | ||
IdSchema: () => IdSchema, | ||
NumberResponse: () => NumberResponse, | ||
RangeDateSchema: () => RangeDateSchema, | ||
StringResponse: () => StringResponse, | ||
TimeStampSchema: () => TimeStampSchema, | ||
makeSchemaResponse: () => makeSchemaResponse | ||
}); | ||
// src/zod/schema.ts | ||
@@ -135,35 +122,34 @@ import { z } from "zod"; | ||
// src/zod/index.ts | ||
__reExport(zod_exports, zod_star); | ||
import * as zod_star from "zod"; | ||
import { z as z2 } from "zod"; | ||
// src/pagination/models.ts | ||
var PaginationType = zod_exports.z.enum(["cursor", "default"]).default("default"); | ||
var PageCursorParams = zod_exports.z.object({ | ||
previous: zod_exports.z.any().optional(), | ||
before: zod_exports.z.any().optional(), | ||
next: zod_exports.z.any().optional(), | ||
after: zod_exports.z.any().optional(), | ||
hint: zod_exports.z.union([zod_exports.z.string(), zod_exports.z.record(zod_exports.z.string())]).optional() | ||
var PaginationType = z2.enum(["cursor", "default"]).default("default"); | ||
var PageCursorParams = z2.object({ | ||
previous: z2.any().optional(), | ||
before: z2.any().optional(), | ||
next: z2.any().optional(), | ||
after: z2.any().optional(), | ||
hint: z2.union([z2.string(), z2.record(z2.string())]).optional() | ||
}); | ||
var PageCursorInfo = zod_exports.z.object({ | ||
next: zod_exports.z.string().optional(), | ||
hasNext: zod_exports.z.boolean().optional(), | ||
previous: zod_exports.z.string().optional(), | ||
hasPrevious: zod_exports.z.boolean().optional() | ||
var PageCursorInfo = z2.object({ | ||
next: z2.string().optional(), | ||
hasNext: z2.boolean().optional(), | ||
previous: z2.string().optional(), | ||
hasPrevious: z2.boolean().optional() | ||
}); | ||
var PaginationOptions = zod_exports.z.object({ | ||
var PaginationOptions = z2.object({ | ||
type: PaginationType, | ||
limit: zod_exports.z.number().default(30).optional(), | ||
page: zod_exports.z.number().default(1).optional(), | ||
sortField: zod_exports.z.string().optional(), | ||
sortAsc: zod_exports.z.boolean().default(true).optional(), | ||
sort: zod_exports.z.record(zod_exports.z.string(), zod_exports.z.union([zod_exports.z.literal(1), zod_exports.z.literal(-1)])).optional(), | ||
filter: zod_exports.z.any().optional(), | ||
limit: z2.number().default(30).optional(), | ||
page: z2.number().default(1).optional(), | ||
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() | ||
}); | ||
var Pagination = zod_exports.z.object({ | ||
data: zod_exports.z.array(zod_exports.z.any()), | ||
pageInfo: zod_exports.z.object({ | ||
total: zod_exports.z.number().nullish(), | ||
page: zod_exports.z.number().nullish(), | ||
var Pagination = z2.object({ | ||
data: z2.array(z2.any()), | ||
pageInfo: z2.object({ | ||
total: z2.number().nullish(), | ||
page: z2.number().nullish(), | ||
cursor: PageCursorInfo.nullish() | ||
@@ -702,3 +688,2 @@ }) | ||
__reExport(src_exports, utils_exports); | ||
__reExport(src_exports, zod_exports); | ||
import { default as default2, pMapSkip } from "p-map"; | ||
@@ -744,3 +729,4 @@ export { | ||
pull, | ||
throttle | ||
throttle, | ||
z2 as z | ||
}; |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.5.39", | ||
"version": "2.5.40", | ||
"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
65445
1918