@interweave/interweave
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -1,6 +0,6 @@ | ||
import { type Schema, type KeyConfiguration, type Request, type Error, type SchemaKeys } from "./interfaces"; | ||
import { type Schema, type KeyConfiguration, type Request, type Error, type SchemaKeys, type Permissions, type Users } from "./interfaces"; | ||
import { validate, type ExternalValidateOptions as ValidateOptions, type ErrorsReturnObject } from "./validate"; | ||
import { validateSchema } from "./validateSchema"; | ||
import { buildInterface } from "./sync"; | ||
export { type Schema, type KeyConfiguration, type Request, type Error, type SchemaKeys, type ValidateOptions, type ErrorsReturnObject, }; | ||
export { type Schema, type KeyConfiguration, type Request, type Error, type SchemaKeys, type Permissions, type Users, type ValidateOptions, type ErrorsReturnObject, }; | ||
export { buildInterface, validate, validateSchema }; |
@@ -232,9 +232,10 @@ export interface Error { | ||
*/ | ||
users?: { | ||
email: string; | ||
permissions?: Permissions; | ||
}[]; | ||
users?: Users; | ||
}; | ||
} | ||
export type Users = { | ||
email: string; | ||
permissions?: Permissions; | ||
}[]; | ||
export type Permissions = "Create" | "Read" | "Update" | "Delete" | "All"[]; | ||
export {}; |
{ | ||
"name": "@interweave/interweave", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -7,2 +7,4 @@ import { | ||
type SchemaKeys, | ||
type Permissions, | ||
type Users, | ||
} from "./interfaces"; | ||
@@ -24,2 +26,4 @@ import { | ||
type SchemaKeys, | ||
type Permissions, | ||
type Users, | ||
// From validate() | ||
@@ -26,0 +30,0 @@ type ValidateOptions, |
@@ -262,9 +262,9 @@ export interface Error { | ||
*/ | ||
users?: { | ||
email: string; | ||
permissions?: Permissions; | ||
}[]; | ||
users?: Users; | ||
}; | ||
} | ||
export type Users = { | ||
email: string; | ||
permissions?: Permissions; | ||
}[]; | ||
export type Permissions = "Create" | "Read" | "Update" | "Delete" | "All"[]; |
86473
2417