appwrite-utils
Advanced tools
Comparing version 0.1.221 to 0.1.222
@@ -17,3 +17,3 @@ export { areCollectionNamesSame } from "./functions/collections.js"; | ||
export { type AppwriteConfig, AppwriteConfigSchema, type ConfigCollection, type ConfigCollections, type ConfigDatabase, type ConfigDatabases, } from "./schemas/appwriteConfig.js"; | ||
export { type CollectionCreate, CollectionCreateSchema, collectionSchema, type Collection, type Collections, } from "./schemas/collection.js"; | ||
export { type CollectionCreate, CollectionCreateSchema, CollectionSchema, type Collection, type Collections, } from "./schemas/collection.js"; | ||
export { type Attribute, attributeSchema, type Attributes, attributesSchema, } from "./schemas/attribute.js"; | ||
@@ -20,0 +20,0 @@ export { indexSchema, type Index, indexesSchema, type Indexes, } from "./schemas/index.js"; |
@@ -16,3 +16,3 @@ export { areCollectionNamesSame } from "./functions/collections.js"; | ||
export { AppwriteConfigSchema, } from "./schemas/appwriteConfig.js"; | ||
export { CollectionCreateSchema, collectionSchema, } from "./schemas/collection.js"; | ||
export { CollectionCreateSchema, CollectionSchema, } from "./schemas/collection.js"; | ||
export { attributeSchema, attributesSchema, } from "./schemas/attribute.js"; | ||
@@ -19,0 +19,0 @@ export { indexSchema, indexesSchema, } from "./schemas/index.js"; |
@@ -6,3 +6,3 @@ import { z } from "zod"; | ||
import { indexSchema } from "./index.js"; | ||
export const collectionSchema = z.object({ | ||
export const CollectionSchema = z.object({ | ||
name: z.string().describe("The name of the collection"), | ||
@@ -53,3 +53,3 @@ $id: z | ||
}); | ||
export const CollectionCreateSchema = collectionSchema.omit({ | ||
export const CollectionCreateSchema = CollectionSchema.omit({ | ||
$createdAt: true, | ||
@@ -59,3 +59,3 @@ $updatedAt: true, | ||
export const CollectionsSchema = z | ||
.array(collectionSchema) | ||
.array(CollectionSchema) | ||
.describe("An array of collections to create"); |
{ | ||
"name": "appwrite-utils", | ||
"module": "src/index.ts", | ||
"version": "0.1.221", | ||
"version": "0.1.222", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -60,3 +60,3 @@ export { areCollectionNamesSame } from "./functions/collections.js"; | ||
CollectionCreateSchema, | ||
collectionSchema, | ||
CollectionSchema, | ||
type Collection, | ||
@@ -63,0 +63,0 @@ type Collections, |
@@ -7,3 +7,3 @@ import { z } from "zod"; | ||
export const collectionSchema = z.object({ | ||
export const CollectionSchema = z.object({ | ||
name: z.string().describe("The name of the collection"), | ||
@@ -59,3 +59,3 @@ $id: z | ||
export const CollectionCreateSchema = collectionSchema.omit({ | ||
export const CollectionCreateSchema = CollectionSchema.omit({ | ||
$createdAt: true, | ||
@@ -66,7 +66,7 @@ $updatedAt: true, | ||
export const CollectionsSchema = z | ||
.array(collectionSchema) | ||
.array(CollectionSchema) | ||
.describe("An array of collections to create"); | ||
export type Collection = z.infer<typeof collectionSchema>; | ||
export type Collection = z.infer<typeof CollectionSchema>; | ||
export type Collections = z.infer<typeof CollectionsSchema>; | ||
export type CollectionCreate = z.infer<typeof CollectionCreateSchema>; |
@@ -18,3 +18,2 @@ { | ||
"allowSyntheticDefaultImports": true, | ||
"checkJs": true, | ||
"outDir": "dist", | ||
@@ -21,0 +20,0 @@ "rootDir": "src" |
Sorry, the diff of this file is too big to display
322212
8471