appwrite-utils
Advanced tools
Comparing version 0.1.27 to 0.1.28
@@ -349,3 +349,3 @@ import { z } from "zod"; | ||
attributes: z.ZodArray<z.ZodString, "many">; | ||
orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>; | ||
orders: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -355,5 +355,5 @@ type: "key" | "unique" | "fulltext"; | ||
attributes: string[]; | ||
orders: (string | null)[]; | ||
status?: string | undefined; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
}, { | ||
@@ -365,3 +365,3 @@ key: string; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
orders?: (string | null)[] | undefined; | ||
}>, "many">>>; | ||
@@ -683,5 +683,5 @@ importDefs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{ | ||
attributes: string[]; | ||
orders: (string | null)[]; | ||
status?: string | undefined; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
}[] | undefined; | ||
@@ -803,3 +803,3 @@ databaseId?: string | undefined; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
orders?: (string | null)[] | undefined; | ||
}[] | undefined; | ||
@@ -1006,5 +1006,5 @@ importDefs?: { | ||
attributes: string[]; | ||
orders: (string | null)[]; | ||
status?: string | undefined; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
}[] | undefined; | ||
@@ -1145,3 +1145,3 @@ databaseId?: string | undefined; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
orders?: (string | null)[] | undefined; | ||
}[] | undefined; | ||
@@ -1148,0 +1148,0 @@ importDefs?: { |
@@ -8,3 +8,3 @@ import { z } from "zod"; | ||
attributes: z.ZodArray<z.ZodString, "many">; | ||
orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>; | ||
orders: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -14,5 +14,5 @@ type: "key" | "unique" | "fulltext"; | ||
attributes: string[]; | ||
orders: (string | null)[]; | ||
status?: string | undefined; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
}, { | ||
@@ -24,3 +24,3 @@ key: string; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
orders?: (string | null)[] | undefined; | ||
}>; | ||
@@ -33,3 +33,3 @@ export declare const indexesSchema: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{ | ||
attributes: z.ZodArray<z.ZodString, "many">; | ||
orders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>; | ||
orders: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodString>, "many">>>; | ||
}, "strip", z.ZodTypeAny, { | ||
@@ -39,5 +39,5 @@ type: "key" | "unique" | "fulltext"; | ||
attributes: string[]; | ||
orders: (string | null)[]; | ||
status?: string | undefined; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
}, { | ||
@@ -49,5 +49,5 @@ key: string; | ||
error?: string | undefined; | ||
orders?: string[] | null | undefined; | ||
orders?: (string | null)[] | undefined; | ||
}>, "many">>>; | ||
export type Index = z.infer<typeof indexSchema>; | ||
export type Indexes = z.infer<typeof indexesSchema>; |
@@ -8,4 +8,4 @@ import { z } from "zod"; | ||
attributes: z.array(z.string()), | ||
orders: z.array(z.string()).nullish(), | ||
orders: z.array(z.string().nullable()).optional().default([]), | ||
}); | ||
export const indexesSchema = z.array(indexSchema).nullish(); |
{ | ||
"name": "appwrite-utils", | ||
"module": "dist/index.js", | ||
"version": "0.1.27", | ||
"version": "0.1.28", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "dist/index.d.ts", |
@@ -9,3 +9,3 @@ import { z } from "zod"; | ||
attributes: z.array(z.string()), | ||
orders: z.array(z.string()).nullish(), | ||
orders: z.array(z.string().nullable()).optional().default([]), | ||
}); | ||
@@ -12,0 +12,0 @@ |
Sorry, the diff of this file is too big to display
323058