Comparing version 1.0.211 to 1.0.212
@@ -59,3 +59,3 @@ import { Db, Filter, Document } from "mongodb"; | ||
}; | ||
distinct<K_1 extends keyof T>(key: K_1): Promise<any[]>; | ||
distinct<K_1 extends keyof T>(key: K_1): any[]; | ||
upsert_all(objs: T[]): Promise<void>; | ||
@@ -72,2 +72,3 @@ upsert(obj: T): Promise<string>; | ||
stamp(): number; | ||
name(): string; | ||
keys(): string[]; | ||
@@ -81,3 +82,3 @@ map(): Readonly<{ | ||
list(): Active<T>[]; | ||
distinct<K extends keyof T>(key: K): Promise<any[]>; | ||
distinct<K extends keyof T>(key: K): any[]; | ||
aggregate(filter: Document[], paging: PagingOptions, order: OrderingOptions): Promise<{ | ||
@@ -84,0 +85,0 @@ data: Activity<T>[]; |
@@ -95,3 +95,3 @@ "use strict"; | ||
var query_fn = function (opt, paging, order) { | ||
return AgAsyncComputed_1.AgAsyncComputed.create('messageQuery', api_id, key, table.stamp()) | ||
return AgAsyncComputed_1.AgAsyncComputed.create(table.name(), 'messageQuery', api_id, key, table.stamp()) | ||
.withArgs(opt, paging, order) | ||
@@ -104,3 +104,3 @@ .compute(function (opt, paging, order) { return table.aggregate(fn(opt), paging, order); }); | ||
var query_fn = function (opt, paging, order) { | ||
return AgAsyncComputed_1.AgAsyncComputed.create('messageQuery', api_id, key, table.stamp()) | ||
return AgAsyncComputed_1.AgAsyncComputed.create(table.name(), 'messageQuery', api_id, key, table.stamp()) | ||
.withArgs(opt, paging, order) | ||
@@ -316,2 +316,5 @@ .compute(function (opt, paging, order) { return table.query(fn(opt), paging, order); }); | ||
; | ||
table.prototype.name = function () { | ||
return this.collection.collectionName; | ||
}; | ||
table.prototype.item = function (id) { | ||
@@ -385,3 +388,6 @@ return this.data[id]; | ||
table.prototype.distinct = function (key) { | ||
return this.collection.distinct(key); | ||
var _this = this; | ||
return AgAsyncComputed_1.AgAsyncComputed.create(this.collection.collectionName, 'distinct', key, this.stamp()) | ||
.withArgs() | ||
.compute(function () { return _this.collection.distinct(key); }); | ||
}; | ||
@@ -388,0 +394,0 @@ table.prototype.filter = function (filter, paging, orderby) { |
{ | ||
"name": "ag-repo", | ||
"version": "1.0.211", | ||
"version": "1.0.212", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
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
168997
3776