appwrite-utils
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -1,4 +0,1 @@ | ||
import { z } from "zod"; | ||
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi"; | ||
extendZodWithOpenApi(z); | ||
export { areCollectionNamesSame } from "./functions/collections.js"; | ||
@@ -5,0 +2,0 @@ export { converterFunctions, } from "./functions/converters.js"; |
import { z } from "zod"; | ||
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi"; | ||
extendZodWithOpenApi(z); | ||
export const AuthUserSchema = z | ||
@@ -24,7 +26,3 @@ .object({ | ||
.openapi({ description: "The user's phone number" }), | ||
prefs: z | ||
.record(z.string()) | ||
.optional() | ||
.default({}) | ||
.openapi({ | ||
prefs: z.record(z.string()).optional().default({}).openapi({ | ||
description: "User preferences, key-value pairs up to 16KB in size", | ||
@@ -31,0 +29,0 @@ }), |
{ | ||
"name": "appwrite-utils", | ||
"module": "dist/index.js", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
import { z } from "zod"; | ||
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi"; | ||
extendZodWithOpenApi(z); | ||
export { areCollectionNamesSame } from "./functions/collections.js"; | ||
@@ -7,0 +4,0 @@ export { |
import { z } from "zod"; | ||
import { extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi"; | ||
extendZodWithOpenApi(z); | ||
@@ -25,9 +27,5 @@ export const AuthUserSchema = z | ||
.openapi({ description: "The user's phone number" }), | ||
prefs: z | ||
.record(z.string()) | ||
.optional() | ||
.default({}) | ||
.openapi({ | ||
description: "User preferences, key-value pairs up to 16KB in size", | ||
}), | ||
prefs: z.record(z.string()).optional().default({}).openapi({ | ||
description: "User preferences, key-value pairs up to 16KB in size", | ||
}), | ||
labels: z | ||
@@ -34,0 +32,0 @@ .array(z.string()) |
329546
8640