@magnetarjs/types
Advanced tools
Comparing version 0.16.5 to 0.16.6
@@ -121,2 +121,15 @@ import { Merge } from 'merge-anything'; | ||
type OrderByClause = [string, ('asc' | 'desc')?]; | ||
type NestedQueryClause = { | ||
and: (WhereClause | { | ||
and: (WhereClause | any)[]; | ||
} | { | ||
or: (WhereClause | any)[]; | ||
})[]; | ||
} | { | ||
or: (WhereClause | { | ||
and: (WhereClause | any)[]; | ||
} | { | ||
or: (WhereClause | any)[]; | ||
})[]; | ||
}; | ||
/** | ||
@@ -130,5 +143,5 @@ * Determines a complex queries of where-filter with ANDs and ORs. | ||
type QueryClause = { | ||
and: (WhereClause | QueryClause)[]; | ||
and: (WhereClause | NestedQueryClause)[]; | ||
} | { | ||
or: (WhereClause | QueryClause)[]; | ||
or: (WhereClause | NestedQueryClause)[]; | ||
}; | ||
@@ -156,6 +169,19 @@ /** | ||
]; | ||
type NestedQuery<T extends Record<string, any> = Record<string, any>> = { | ||
and: (WhereClauseTuple<T> | { | ||
and: (WhereClauseTuple<T> | any)[]; | ||
} | { | ||
or: (WhereClauseTuple<T> | any)[]; | ||
})[]; | ||
} | { | ||
or: (WhereClauseTuple<T> | { | ||
and: (WhereClauseTuple<T> | any)[]; | ||
} | { | ||
or: (WhereClauseTuple<T> | any)[]; | ||
})[]; | ||
}; | ||
type Query<T extends Record<string, any> = Record<string, any>> = { | ||
or: (WhereClauseTuple<T> | Query<T>)[]; | ||
or: (WhereClauseTuple<T> | NestedQuery<T>)[]; | ||
} | { | ||
and: (WhereClauseTuple<T> | Query<T>)[]; | ||
and: (WhereClauseTuple<T> | NestedQuery<T>)[]; | ||
}; | ||
@@ -1125,2 +1151,2 @@ | ||
export { ActionConfig, ActionName, ActionTernary, ActionType, ArrayValues, Clauses, CollectionFn, CollectionInstance, CollectionName, DeepGet, DeepPropType, DefaultTo, DoOnFetch, DoOnFetchCount, DoOnStream, DoOnStreamFns, DocFn, DocInstance, DocMetadata, Equals, EqualsAnyOfUnion, EventFn, EventFnBefore, EventFnError, EventFnRevert, EventFnSuccess, EventName, EventNameFnMap, EventNameFnsMap, ExecutionOrderConfig, FetchCountResponse, FetchMetaDataCollection, FetchPromises, FetchResponse, GlobalConfig, Intersect, IsFullStringLiteral, Limit, MODULE_IDENTIFIER_SPLIT, MagnetarDeleteAction, MagnetarDeletePropAction, MagnetarFetchAction, MagnetarFetchCountAction, MagnetarInsertAction, MagnetarInstance, MagnetarPlugin, MagnetarStreamAction, MagnetarWriteAction, MergeDeep, ModifyDeletePropPayload, ModifyPayloadFnMap, ModifyPayloadFnsMap, ModifyReadPayload, ModifyReadResponseFnMap, ModifyReadResponseFnsMap, ModifyWritePayload, ModuleConfig, MustExecuteOnRead, OLeaves, OPathsWithOptional, OPathsWithoutOptional, OnAddedFn, OnModifiedFn, OnRemovedFn, OrderByClause, PartialDeep, PathFilterIdentifier, PathWhereIdentifier, PathWhereOrderByIdentifier, PluginActionPayloadBase, PluginActionTernary, PluginDeleteAction, PluginDeleteActionPayload, PluginDeletePropAction, PluginDeletePropActionPayload, PluginFetchAction, PluginFetchActionPayload, PluginFetchCountAction, PluginFetchCountActionPayload, PluginInsertAction, PluginInsertActionPayload, PluginInstance, PluginModuleConfig, PluginModuleSetupPayload, PluginRevertAction, PluginRevertActionPayload, PluginStreamAction, PluginStreamActionPayload, PluginWriteAction, PluginWriteActionPayload, Query, QueryClause, Split, StoreName, StreamResponse, SyncBatch, TupleExcludingFirst, TupleExcludingLast, TupleFirst, TupleLast, TupleOf, WhereClause, WhereClauseTuple, WhereFilterOp, WhereFilterValue, WriteLock, actionNameTypeMap, getPathFilterIdentifier, getPathWhereIdentifier, getPathWhereOrderByIdentifier }; | ||
export { ActionConfig, ActionName, ActionTernary, ActionType, ArrayValues, Clauses, CollectionFn, CollectionInstance, CollectionName, DeepGet, DeepPropType, DefaultTo, DoOnFetch, DoOnFetchCount, DoOnStream, DoOnStreamFns, DocFn, DocInstance, DocMetadata, Equals, EqualsAnyOfUnion, EventFn, EventFnBefore, EventFnError, EventFnRevert, EventFnSuccess, EventName, EventNameFnMap, EventNameFnsMap, ExecutionOrderConfig, FetchCountResponse, FetchMetaDataCollection, FetchPromises, FetchResponse, GlobalConfig, Intersect, IsFullStringLiteral, Limit, MODULE_IDENTIFIER_SPLIT, MagnetarDeleteAction, MagnetarDeletePropAction, MagnetarFetchAction, MagnetarFetchCountAction, MagnetarInsertAction, MagnetarInstance, MagnetarPlugin, MagnetarStreamAction, MagnetarWriteAction, MergeDeep, ModifyDeletePropPayload, ModifyPayloadFnMap, ModifyPayloadFnsMap, ModifyReadPayload, ModifyReadResponseFnMap, ModifyReadResponseFnsMap, ModifyWritePayload, ModuleConfig, MustExecuteOnRead, NestedQuery, NestedQueryClause, OLeaves, OPathsWithOptional, OPathsWithoutOptional, OnAddedFn, OnModifiedFn, OnRemovedFn, OrderByClause, PartialDeep, PathFilterIdentifier, PathWhereIdentifier, PathWhereOrderByIdentifier, PluginActionPayloadBase, PluginActionTernary, PluginDeleteAction, PluginDeleteActionPayload, PluginDeletePropAction, PluginDeletePropActionPayload, PluginFetchAction, PluginFetchActionPayload, PluginFetchCountAction, PluginFetchCountActionPayload, PluginInsertAction, PluginInsertActionPayload, PluginInstance, PluginModuleConfig, PluginModuleSetupPayload, PluginRevertAction, PluginRevertActionPayload, PluginStreamAction, PluginStreamActionPayload, PluginWriteAction, PluginWriteActionPayload, Query, QueryClause, Split, StoreName, StreamResponse, SyncBatch, TupleExcludingFirst, TupleExcludingLast, TupleFirst, TupleLast, TupleOf, WhereClause, WhereClauseTuple, WhereFilterOp, WhereFilterValue, WriteLock, actionNameTypeMap, getPathFilterIdentifier, getPathWhereIdentifier, getPathWhereOrderByIdentifier }; |
{ | ||
"name": "@magnetarjs/types", | ||
"version": "0.16.5", | ||
"version": "0.16.6", | ||
"sideEffects": false, | ||
@@ -23,3 +23,3 @@ "description": "Magnetar shared types", | ||
"dependencies": { | ||
"merge-anything": "^5.1.1" | ||
"merge-anything": "^5.1.7" | ||
}, | ||
@@ -26,0 +26,0 @@ "keywords": [ |
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
59396
1268
Updatedmerge-anything@^5.1.7