@deboxsoft/module-core
Advanced tools
Comparing version 2.5.34 to 2.5.35
import * as _deboxsoft_zod from '@deboxsoft/zod'; | ||
import { z, ZodType } from '@deboxsoft/zod'; | ||
export * from '@deboxsoft/zod'; | ||
export { z } from '@deboxsoft/zod'; | ||
export * from 'change-case'; | ||
@@ -5,0 +5,0 @@ export { Base64 as base64 } from 'js-base64'; |
@@ -66,3 +66,4 @@ var __defProp = Object.defineProperty; | ||
pull: () => pull, | ||
throttle: () => throttle | ||
throttle: () => throttle, | ||
z: () => z2 | ||
}); | ||
@@ -94,19 +95,2 @@ | ||
// src/zod/index.ts | ||
var zod_exports = {}; | ||
__export(zod_exports, { | ||
BooleanResponse: () => BooleanResponse, | ||
CreateResponse: () => CreateResponse, | ||
DateSchema: () => DateSchema, | ||
IdParams: () => IdParams, | ||
IdSchema: () => IdSchema, | ||
ImportResponse: () => ImportResponse, | ||
NumberResponse: () => NumberResponse, | ||
RangeDateSchema: () => RangeDateSchema, | ||
RemoveResponse: () => RemoveResponse, | ||
StringResponse: () => StringResponse, | ||
TimeStampSchema: () => TimeStampSchema, | ||
UpdateResponse: () => UpdateResponse | ||
}); | ||
// src/zod/schema.ts | ||
@@ -151,35 +135,34 @@ import { z } from "@deboxsoft/zod"; | ||
// src/zod/index.ts | ||
__reExport(zod_exports, zod_star); | ||
import * as zod_star from "@deboxsoft/zod"; | ||
import { z as z2 } from "@deboxsoft/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() | ||
@@ -718,3 +701,2 @@ }) | ||
__reExport(src_exports, utils_exports); | ||
__reExport(src_exports, zod_exports); | ||
@@ -789,3 +771,4 @@ // src/network/protocols.ts | ||
pull, | ||
throttle | ||
throttle, | ||
z2 as z | ||
}; |
{ | ||
"name": "@deboxsoft/module-core", | ||
"version": "2.5.34", | ||
"version": "2.5.35", | ||
"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
70304
2045