@contember/schema
Advanced tools
Comparing version 0.8.0-alpha.3 to 0.8.0-alpha.4
@@ -69,2 +69,3 @@ import Value from './value'; | ||
by: UniqueWhere<E>; | ||
filter?: Where<Condition<Value.FieldValue<E>>>; | ||
data: UpdateDataInput<E>; | ||
@@ -77,2 +78,3 @@ } | ||
by: UniqueWhere<E>; | ||
filter?: Where<Condition<Value.FieldValue<E>>>; | ||
} | ||
@@ -103,6 +105,10 @@ interface UniqueQueryInput<E = never> { | ||
} | ||
type FieldOrderBy<T = OrderDirection> = T | OrderBy<T>; | ||
interface OrderBy<T = OrderDirection> { | ||
[fieldName: string]: FieldOrderBy<T>; | ||
type FieldOrderBy = OrderDirection | OrderBy; | ||
interface OrderByFields { | ||
[fieldName: string]: FieldOrderBy; | ||
} | ||
type OrderBy = OrderByFields & { | ||
_random?: boolean; | ||
_randomSeeded?: number; | ||
}; | ||
interface Condition<T = Value.FieldValue> { | ||
@@ -124,2 +130,5 @@ and?: Array<Condition<T>>; | ||
always?: true; | ||
contains?: string; | ||
startsWith?: string; | ||
endsWith?: string; | ||
} | ||
@@ -126,0 +135,0 @@ interface UniqueWhere<E = never> { |
{ | ||
"name": "@contember/schema", | ||
"version": "0.8.0-alpha.3", | ||
"version": "0.8.0-alpha.4", | ||
"license": "Apache-2.0", | ||
@@ -11,3 +11,3 @@ "main": "dist/src/index.js", | ||
}, | ||
"gitHead": "8c72aa88a27d3120a52e6968fe0e188490005b39" | ||
"gitHead": "4c622600158ead6c971b56393b2716625ac657dc" | ||
} |
@@ -78,2 +78,3 @@ import Value from './value' | ||
by: UniqueWhere<E> | ||
filter?: Where<Condition<Value.FieldValue<E>>> | ||
data: UpdateDataInput<E> | ||
@@ -88,2 +89,3 @@ } | ||
by: UniqueWhere<E> | ||
filter?: Where<Condition<Value.FieldValue<E>>> | ||
} | ||
@@ -133,8 +135,10 @@ | ||
export type FieldOrderBy<T = OrderDirection> = T | OrderBy<T> | ||
export type FieldOrderBy = OrderDirection | OrderBy | ||
export interface OrderBy<T = OrderDirection> { | ||
[fieldName: string]: FieldOrderBy<T> | ||
export interface OrderByFields { | ||
[fieldName: string]: FieldOrderBy | ||
} | ||
export type OrderBy = OrderByFields & { _random?: boolean; _randomSeeded?: number } | ||
export interface Condition<T = Value.FieldValue> { | ||
@@ -157,2 +161,5 @@ and?: Array<Condition<T>> | ||
always?: true | ||
contains?: string | ||
startsWith?: string | ||
endsWith?: string | ||
} | ||
@@ -159,0 +166,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
183437
1291