Comparing version 0.1.3 to 0.1.4
@@ -18,5 +18,5 @@ export { Field, FieldsMetadata, Entity, EntityBase, FieldRef, Fields, EntityMetadata, EntityOrderBy, EntityWhere, FindOptions, IterableResult, IterateOptions, Repository, FieldType, ComparisonFilterFactory, FilterFactories, FilterFactory, getFields, EntityRef, getEntityRef, SortSegments, ContainsFilterFactory, ValueListFieldType, DateOnlyField, IntegerField, CaptionTransformer } from './src/remult3'; | ||
export { OneToMany, CompoundIdField } from './src/column'; | ||
export { Filter, AndFilter, OrFilter } from './src/filter/filter-interfaces'; | ||
export { Filter, AndFilter, OrFilter, CustomFilterBuilder } from './src/filter/filter-interfaces'; | ||
export { FilterConsumerBridgeToSqlRequest } from './src/filter/filter-consumer-bridge-to-sql-request'; | ||
export { UrlBuilder } from './urlBuilder'; | ||
export { Validators } from './src/validators'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Validators = exports.UrlBuilder = exports.FilterConsumerBridgeToSqlRequest = exports.OrFilter = exports.AndFilter = exports.Filter = exports.CompoundIdField = exports.OneToMany = exports.Sort = exports.IdEntity = exports.EventSource = exports.Context = exports.Allow = exports.ProgressListener = exports.BackendMethod = exports.Controller = exports.JsonDataProvider = exports.SqlDatabase = exports.WebSqlDataProvider = exports.ArrayEntityDataProvider = exports.InMemoryDataProvider = exports.RestDataProvider = exports.CaptionTransformer = exports.IntegerField = exports.DateOnlyField = exports.ValueListFieldType = exports.getEntityRef = exports.getFields = exports.FieldType = exports.EntityBase = exports.Entity = exports.Field = void 0; | ||
exports.Validators = exports.UrlBuilder = exports.FilterConsumerBridgeToSqlRequest = exports.CustomFilterBuilder = exports.OrFilter = exports.AndFilter = exports.Filter = exports.CompoundIdField = exports.OneToMany = exports.Sort = exports.IdEntity = exports.EventSource = exports.Context = exports.Allow = exports.ProgressListener = exports.BackendMethod = exports.Controller = exports.JsonDataProvider = exports.SqlDatabase = exports.WebSqlDataProvider = exports.ArrayEntityDataProvider = exports.InMemoryDataProvider = exports.RestDataProvider = exports.CaptionTransformer = exports.IntegerField = exports.DateOnlyField = exports.ValueListFieldType = exports.getEntityRef = exports.getFields = exports.FieldType = exports.EntityBase = exports.Entity = exports.Field = void 0; | ||
/* | ||
@@ -50,2 +50,3 @@ * Public API Surface of remult | ||
Object.defineProperty(exports, "OrFilter", { enumerable: true, get: function () { return filter_interfaces_1.OrFilter; } }); | ||
Object.defineProperty(exports, "CustomFilterBuilder", { enumerable: true, get: function () { return filter_interfaces_1.CustomFilterBuilder; } }); | ||
var filter_consumer_bridge_to_sql_request_1 = require("./src/filter/filter-consumer-bridge-to-sql-request"); | ||
@@ -52,0 +53,0 @@ Object.defineProperty(exports, "FilterConsumerBridgeToSqlRequest", { enumerable: true, get: function () { return filter_consumer_bridge_to_sql_request_1.FilterConsumerBridgeToSqlRequest; } }); |
{ | ||
"name": "remult", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "remult core lib", | ||
@@ -5,0 +5,0 @@ "homepage": "https://remult.github.io/", |
@@ -48,3 +48,3 @@ import { ClassType } from '../classType'; | ||
private find; | ||
create(item?: Partial<T>): T; | ||
create(item?: Partial<T>): Promise<T>; | ||
} |
@@ -173,8 +173,18 @@ "use strict"; | ||
OneToMany.prototype.create = function (item) { | ||
var r = this.provider.create(); | ||
remult3_1.__updateEntityBasedOnWhere(this.provider.metadata, this.settings.where, r); | ||
set_1.set(r, item); | ||
if (this.settings.create) | ||
this.settings.create(r); | ||
return r; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var r; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
r = this.provider.create(); | ||
return [4 /*yield*/, remult3_1.__updateEntityBasedOnWhere(this.provider.metadata, this.settings.where, r)]; | ||
case 1: | ||
_a.sent(); | ||
set_1.set(r, item); | ||
if (this.settings.create) | ||
this.settings.create(r); | ||
return [2 /*return*/, r]; | ||
} | ||
}); | ||
}); | ||
}; | ||
@@ -181,0 +191,0 @@ return OneToMany; |
@@ -73,3 +73,3 @@ "use strict"; | ||
case 1: | ||
_a.trys.push([1, 3, , 4]); | ||
_a.trys.push([1, 5, , 6]); | ||
findOptions = {}; | ||
@@ -80,31 +80,34 @@ if (this.options && this.options.get) { | ||
findOptions.where = function (t) { return _this.buildWhere(t, request, filterBody); }; | ||
if (this.options.requireId) { | ||
hasId_1 = false; | ||
w = filter_interfaces_2.Filter.translateWhereToFilter(filter_interfaces_2.Filter.createFilterFactories(this.repository.metadata), findOptions.where); | ||
if (w) { | ||
w.__applyToConsumer({ | ||
containsCaseInsensitive: function () { }, | ||
isDifferentFrom: function () { }, | ||
isEqualTo: function (col, val) { | ||
if (_this.repository.metadata.idMetadata.isIdField(col)) | ||
hasId_1 = true; | ||
}, | ||
custom: function () { }, | ||
databaseCustom: function () { }, | ||
isGreaterOrEqualTo: function () { }, | ||
isGreaterThan: function () { }, | ||
isIn: function () { }, | ||
isLessOrEqualTo: function () { }, | ||
isLessThan: function () { }, | ||
isNotNull: function () { }, | ||
isNull: function () { }, | ||
startsWith: function () { }, | ||
or: function () { } | ||
}); | ||
} | ||
if (!hasId_1) { | ||
response.forbidden(); | ||
return [2 /*return*/]; | ||
} | ||
if (!this.options.requireId) return [3 /*break*/, 3]; | ||
hasId_1 = false; | ||
return [4 /*yield*/, filter_interfaces_2.Filter.translateWhereToFilter(filter_interfaces_2.Filter.createFilterFactories(this.repository.metadata), findOptions.where)]; | ||
case 2: | ||
w = _a.sent(); | ||
if (w) { | ||
w.__applyToConsumer({ | ||
containsCaseInsensitive: function () { }, | ||
isDifferentFrom: function () { }, | ||
isEqualTo: function (col, val) { | ||
if (_this.repository.metadata.idMetadata.isIdField(col)) | ||
hasId_1 = true; | ||
}, | ||
custom: function () { }, | ||
databaseCustom: function () { }, | ||
isGreaterOrEqualTo: function () { }, | ||
isGreaterThan: function () { }, | ||
isIn: function () { }, | ||
isLessOrEqualTo: function () { }, | ||
isLessThan: function () { }, | ||
isNotNull: function () { }, | ||
isNull: function () { }, | ||
startsWith: function () { }, | ||
or: function () { } | ||
}); | ||
} | ||
if (!hasId_1) { | ||
response.forbidden(); | ||
return [2 /*return*/]; | ||
} | ||
_a.label = 3; | ||
case 3: | ||
if (request) { | ||
@@ -139,10 +142,10 @@ sort = request.get("_sort"); | ||
}); })]; | ||
case 2: | ||
case 4: | ||
_a.sent(); | ||
return [3 /*break*/, 4]; | ||
case 3: | ||
return [3 /*break*/, 6]; | ||
case 5: | ||
err_2 = _a.sent(); | ||
response.error(err_2); | ||
return [3 /*break*/, 4]; | ||
case 4: return [2 /*return*/]; | ||
return [3 /*break*/, 6]; | ||
case 6: return [2 /*return*/]; | ||
} | ||
@@ -153,18 +156,29 @@ }); | ||
DataApi.prototype.buildWhere = function (entity, request, filterBody) { | ||
var where; | ||
if (this.options && this.options.get && this.options.get.where) | ||
where = filter_interfaces_2.Filter.translateWhereToFilter(entity, this.options.get.where); | ||
if (request) { | ||
where = new filter_interfaces_1.AndFilter(where, filter_interfaces_2.Filter.extractWhere(this.repository.metadata, { | ||
get: function (key) { | ||
var result = request.get(key); | ||
if (key == filter_interfaces_1.customUrlToken && result) | ||
return JSON.parse(result); | ||
return result; | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var where; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!(this.options && this.options.get && this.options.get.where)) return [3 /*break*/, 2]; | ||
return [4 /*yield*/, filter_interfaces_2.Filter.translateWhereToFilter(entity, this.options.get.where)]; | ||
case 1: | ||
where = _a.sent(); | ||
_a.label = 2; | ||
case 2: | ||
if (request) { | ||
where = new filter_interfaces_1.AndFilter(where, filter_interfaces_2.Filter.extractWhere(this.repository.metadata, { | ||
get: function (key) { | ||
var result = request.get(key); | ||
if (key == filter_interfaces_1.customUrlToken && result) | ||
return JSON.parse(result); | ||
return result; | ||
} | ||
})); | ||
} | ||
if (filterBody) | ||
where = new filter_interfaces_1.AndFilter(where, filter_interfaces_2.Filter.unpackWhere(this.repository.metadata, filterBody)); | ||
return [2 /*return*/, where]; | ||
} | ||
})); | ||
} | ||
if (filterBody) | ||
where = new filter_interfaces_1.AndFilter(where, filter_interfaces_2.Filter.unpackWhere(this.repository.metadata, filterBody)); | ||
return where; | ||
}); | ||
}); | ||
}; | ||
@@ -171,0 +185,0 @@ DataApi.prototype.doOnId = function (response, id, what) { |
@@ -75,3 +75,3 @@ "use strict"; | ||
if (where) { | ||
filterObject = filter_interfaces_1.packToRawWhere(where); | ||
filterObject = filter_interfaces_1.Filter.packToRawWhere(where); | ||
if (addFilterToUrlAndReturnTrueIfSuccessful(filterObject, url)) | ||
@@ -94,3 +94,3 @@ filterObject = undefined; | ||
if (options.where) { | ||
filterObject = filter_interfaces_1.packToRawWhere(options.where); // options.where.__applyToConsumer(new FilterConsumnerBridgeToUrlBuilder(url)); | ||
filterObject = filter_interfaces_1.Filter.packToRawWhere(options.where); // options.where.__applyToConsumer(new FilterConsumnerBridgeToUrlBuilder(url)); | ||
if (addFilterToUrlAndReturnTrueIfSuccessful(filterObject, url)) | ||
@@ -97,0 +97,0 @@ filterObject = undefined; |
@@ -11,4 +11,5 @@ import { FieldMetadata } from "../column-interfaces"; | ||
static createFilterFactories<T>(entityDefs: EntityMetadata<T>): FilterFactories<T>; | ||
static translateWhereToFilter<T>(entity: FilterFactories<T>, where: EntityWhere<T>): Filter; | ||
static packWhere<T>(entityDefs: EntityMetadata<T>, where: EntityWhere<T>): any; | ||
static translateWhereToFilter<T>(entity: FilterFactories<T>, where: EntityWhere<T>): Promise<Filter>; | ||
static packWhere<T>(entityDefs: EntityMetadata<T>, where: EntityWhere<T>): Promise<any>; | ||
static packToRawWhere(w: Filter): any; | ||
static unpackWhere<T>(entityDefs: EntityMetadata<T>, packed: any): Filter; | ||
@@ -18,2 +19,3 @@ static extractWhere<T>(entityDefs: EntityMetadata<T>, filterInfo: { | ||
}): Filter; | ||
static translateWhereForEntity<T>(entity: EntityMetadata<T>, where: EntityWhere<T>, context: Context, translateCustomFilter: boolean): Promise<Filter>; | ||
} | ||
@@ -82,3 +84,2 @@ export declare class filterHelper implements FilterFactory<any>, ComparisonFilterFactory<any>, ContainsFilterFactory<any> { | ||
}): AndFilter; | ||
export declare function packToRawWhere(w: Filter): any; | ||
export declare class CustomFilterBuilder<entityType, customFilterObject> { | ||
@@ -85,0 +86,0 @@ readonly translateFilter: (entityType: FilterFactories<entityType>, customFilter: customFilterObject, context: Context) => Filter | Promise<Filter>; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.CustomFilterBuilder = exports.packToRawWhere = exports.extractWhere = exports.unpackWhere = exports.FilterSerializer = exports.customUrlToken = exports.OrFilter = exports.AndFilter = exports.filterHelper = exports.Filter = void 0; | ||
exports.CustomFilterBuilder = exports.extractWhere = exports.unpackWhere = exports.FilterSerializer = exports.customUrlToken = exports.OrFilter = exports.AndFilter = exports.filterHelper = exports.Filter = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -41,26 +41,66 @@ var remult3_1 = require("../remult3"); | ||
Filter.translateWhereToFilter = function (entity, where) { | ||
var _this = this; | ||
if (Array.isArray(where)) { | ||
return new (AndFilter.bind.apply(AndFilter, tslib_1.__spread([void 0], where.map(function (x) { | ||
return Filter.translateWhereToFilter(entity, x); | ||
}))))(); | ||
} | ||
else if (typeof where === 'function') { | ||
var r = where(entity); | ||
if (Array.isArray(r)) | ||
return new (AndFilter.bind.apply(AndFilter, tslib_1.__spread([void 0], r.map(function (x) { | ||
if (typeof x === "function") | ||
return _this.translateWhereToFilter(entity, x); | ||
return x; | ||
}))))(); | ||
else if (typeof r === 'function') | ||
return this.translateWhereToFilter(entity, r); | ||
return r; | ||
} | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var _a, _b, _c, _d, r, _e, _f, _g, _h; | ||
var _this = this; | ||
return tslib_1.__generator(this, function (_j) { | ||
switch (_j.label) { | ||
case 0: | ||
if (!Array.isArray(where)) return [3 /*break*/, 2]; | ||
_b = (_a = AndFilter.bind).apply; | ||
_c = [AndFilter]; | ||
_d = [[void 0]]; | ||
return [4 /*yield*/, Promise.all(where.map(function (x) { | ||
return Filter.translateWhereToFilter(entity, x); | ||
}))]; | ||
case 1: return [2 /*return*/, new (_b.apply(_a, _c.concat([tslib_1.__spread.apply(void 0, _d.concat([_j.sent()]))])))()]; | ||
case 2: | ||
if (!(typeof where === 'function')) return [3 /*break*/, 6]; | ||
r = where(entity); | ||
if (!Array.isArray(r)) return [3 /*break*/, 4]; | ||
_f = (_e = AndFilter.bind).apply; | ||
_g = [AndFilter]; | ||
_h = [[void 0]]; | ||
return [4 /*yield*/, Promise.all(r.map(function (x) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (typeof x === "function") | ||
return [2 /*return*/, this.translateWhereToFilter(entity, x)]; | ||
return [4 /*yield*/, x]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); }))]; | ||
case 3: return [2 /*return*/, new (_f.apply(_e, _g.concat([tslib_1.__spread.apply(void 0, _h.concat([_j.sent()]))])))()]; | ||
case 4: | ||
if (typeof r === 'function') | ||
return [2 /*return*/, this.translateWhereToFilter(entity, r)]; | ||
_j.label = 5; | ||
case 5: return [2 /*return*/, r]; | ||
case 6: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Filter.packWhere = function (entityDefs, where) { | ||
if (!where) | ||
return {}; | ||
return packToRawWhere(this.translateWhereToFilter(this.createFilterFactories(entityDefs), where)); | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var _a, _b; | ||
return tslib_1.__generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
if (!where) | ||
return [2 /*return*/, {}]; | ||
_b = (_a = Filter).packToRawWhere; | ||
return [4 /*yield*/, this.translateWhereToFilter(this.createFilterFactories(entityDefs), where)]; | ||
case 1: return [2 /*return*/, _b.apply(_a, [_c.sent()])]; | ||
} | ||
}); | ||
}); | ||
}; | ||
Filter.packToRawWhere = function (w) { | ||
var r = new FilterSerializer(); | ||
if (w) | ||
w.__applyToConsumer(r); | ||
return r.result; | ||
}; | ||
Filter.unpackWhere = function (entityDefs, packed) { | ||
@@ -72,2 +112,35 @@ return this.extractWhere(entityDefs, { get: function (key) { return packed[key]; } }); | ||
}; | ||
Filter.translateWhereForEntity = function (entity, where, context, translateCustomFilter) { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var filterFactories, r, f_1; | ||
var _this = this; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (entity.options.fixedFilter) | ||
where = [where, entity.options.fixedFilter]; | ||
filterFactories = Filter.createFilterFactories(entity); | ||
return [4 /*yield*/, Filter.translateWhereToFilter(filterFactories, where)]; | ||
case 1: | ||
r = _a.sent(); | ||
if (!(r && translateCustomFilter)) return [3 /*break*/, 3]; | ||
f_1 = new customTranslator(function (custom) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, entity.options.customFilterTranslator.translateFilter(filterFactories, custom, context)]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
} | ||
}); | ||
}); }); | ||
r.__applyToConsumer(f_1); | ||
return [4 /*yield*/, f_1.resolve()]; | ||
case 2: | ||
_a.sent(); | ||
r = new Filter(function (x) { return f_1.applyTo(x); }); | ||
_a.label = 3; | ||
case 3: return [2 /*return*/, r]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return Filter; | ||
@@ -352,9 +425,2 @@ }()); | ||
exports.extractWhere = extractWhere; | ||
function packToRawWhere(w) { | ||
var r = new FilterSerializer(); | ||
if (w) | ||
w.__applyToConsumer(r); | ||
return r.result; | ||
} | ||
exports.packToRawWhere = packToRawWhere; | ||
var CustomFilterBuilder = /** @class */ (function () { | ||
@@ -370,2 +436,104 @@ function CustomFilterBuilder(translateFilter) { | ||
exports.CustomFilterBuilder = CustomFilterBuilder; | ||
var customTranslator = /** @class */ (function () { | ||
function customTranslator(translateCustom) { | ||
this.translateCustom = translateCustom; | ||
this.commands = []; | ||
this.promises = []; | ||
} | ||
customTranslator.prototype.applyTo = function (x) { | ||
this.commands.forEach(function (y) { return y(x); }); | ||
}; | ||
customTranslator.prototype.or = function (orElements) { | ||
var _this = this; | ||
var newOrElements; | ||
this.promises.push(Promise.all(orElements.map(function (element) { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var c; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
c = new customTranslator(this.translateCustom); | ||
element.__applyToConsumer(c); | ||
return [4 /*yield*/, c.resolve()]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/, new Filter(function (x) { return c.applyTo(x); })]; | ||
} | ||
}); | ||
}); })).then(function (x) { | ||
newOrElements = x; | ||
})); | ||
this.commands.push(function (x) { return x.or(newOrElements); }); | ||
}; | ||
customTranslator.prototype.isEqualTo = function (col, val) { | ||
this.commands.push(function (x) { return x.isEqualTo(col, val); }); | ||
}; | ||
customTranslator.prototype.isDifferentFrom = function (col, val) { | ||
this.commands.push(function (x) { return x.isDifferentFrom(col, val); }); | ||
}; | ||
customTranslator.prototype.isNull = function (col) { | ||
this.commands.push(function (x) { return x.isNull(col); }); | ||
}; | ||
customTranslator.prototype.isNotNull = function (col) { | ||
this.commands.push(function (x) { return x.isNotNull(col); }); | ||
}; | ||
customTranslator.prototype.isGreaterOrEqualTo = function (col, val) { | ||
this.commands.push(function (x) { return x.isGreaterOrEqualTo(col, val); }); | ||
}; | ||
customTranslator.prototype.isGreaterThan = function (col, val) { | ||
this.commands.push(function (x) { return x.isGreaterThan(col, val); }); | ||
}; | ||
customTranslator.prototype.isLessOrEqualTo = function (col, val) { | ||
this.commands.push(function (x) { return x.isLessOrEqualTo(col, val); }); | ||
}; | ||
customTranslator.prototype.isLessThan = function (col, val) { | ||
this.commands.push(function (x) { return x.isLessThan(col, val); }); | ||
}; | ||
customTranslator.prototype.containsCaseInsensitive = function (col, val) { | ||
this.commands.push(function (x) { return x.containsCaseInsensitive(col, val); }); | ||
}; | ||
customTranslator.prototype.startsWith = function (col, val) { | ||
this.commands.push(function (x) { return x.startsWith(col, val); }); | ||
}; | ||
customTranslator.prototype.isIn = function (col, val) { | ||
this.commands.push(function (x) { return x.isIn(col, val); }); | ||
}; | ||
customTranslator.prototype.custom = function (customItem) { | ||
var _this = this; | ||
this.promises.push((function () { return tslib_1.__awaiter(_this, void 0, void 0, function () { | ||
var r; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.translateCustom(customItem)]; | ||
case 1: | ||
r = _a.sent(); | ||
if (r) | ||
r.__applyToConsumer(this); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); })()); | ||
}; | ||
customTranslator.prototype.databaseCustom = function (custom) { | ||
this.commands.push(function (x) { return x.databaseCustom(custom); }); | ||
}; | ||
customTranslator.prototype.resolve = function () { | ||
return tslib_1.__awaiter(this, void 0, void 0, function () { | ||
var p; | ||
return tslib_1.__generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: | ||
if (!(this.promises.length > 0)) return [3 /*break*/, 2]; | ||
p = this.promises; | ||
this.promises = []; | ||
return [4 /*yield*/, Promise.all(p)]; | ||
case 1: | ||
_a.sent(); | ||
return [3 /*break*/, 0]; | ||
case 2: return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
return customTranslator; | ||
}()); | ||
//# sourceMappingURL=filter-interfaces.js.map |
@@ -116,3 +116,3 @@ import { FieldMetadata } from "../column-interfaces"; | ||
*/ | ||
export declare type EntityWhere<entityType> = ((entityType: FilterFactories<entityType>) => (Filter | Filter[] | EntityWhere<entityType>)) | EntityWhere<entityType>[]; | ||
export declare type EntityWhere<entityType> = ((entityType: FilterFactories<entityType>) => (Filter | Promise<Filter> | Filter[] | EntityWhere<entityType>)) | EntityWhere<entityType>[]; | ||
export interface FilterFactory<valueType> { | ||
@@ -119,0 +119,0 @@ isEqualTo(val: valueType): Filter; |
@@ -39,3 +39,3 @@ import { FieldMetadata, FieldOptions, ValueListItem } from "../column-interfaces"; | ||
} | ||
export declare function __updateEntityBasedOnWhere<T>(entityDefs: EntityMetadata<T>, where: EntityWhere<T>, r: T): void; | ||
export declare function __updateEntityBasedOnWhere<T>(entityDefs: EntityMetadata<T>, where: EntityWhere<T>, r: T): Promise<void>; | ||
export declare const entityInfo: unique symbol; | ||
@@ -42,0 +42,0 @@ export declare function getEntitySettings<T>(entity: ClassType<T>, throwError?: boolean): EntityOptions<any>; |
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
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 too big to display
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
549824
8288