owservable 1.0.85 → 1.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/mongodb/collections.models.map.d.ts +1 -0
- package/lib/mongodb/functions/index/add.both.indices.to.attributes.d.ts +1 -0
- package/lib/mongodb/functions/index/add.down.indices.to.attributes.d.ts +1 -0
- package/lib/mongodb/functions/index/add.index.to.attributes.d.ts +1 -0
- package/lib/mongodb/functions/index/add.up.and.down.indices.to.attributes.d.ts +1 -0
- package/lib/mongodb/functions/index/add.up.indices.to.attributes.d.ts +1 -0
- package/lib/mongodb/functions/observable.model.d.ts +1 -0
- package/lib/mongodb/mongodb.connector.d.ts +1 -0
- package/lib/store/a.store.d.ts +1 -0
- package/lib/store/collection.store.d.ts +2 -1
- package/lib/store/collection.store.js.map +1 -1
- package/lib/store/count.store.d.ts +1 -0
- package/package.json +8 -8
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Model } from 'mongoose';
|
|
26
27
|
export default class CollectionsModelsMap {
|
|
27
28
|
static addCollectionToModelMapping(model: Model<any>): void;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Schema } from 'mongoose';
|
|
26
27
|
declare const addBothIndicesToAttributes: (schema: Schema, attributes: string[]) => void;
|
|
27
28
|
export default addBothIndicesToAttributes;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Schema } from 'mongoose';
|
|
26
27
|
declare const addDownIndicesToAttributes: (schema: Schema, attributes: string[]) => void;
|
|
27
28
|
export default addDownIndicesToAttributes;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Schema } from 'mongoose';
|
|
26
27
|
declare const addIndexToAttributes: (schema: Schema, attributes: string[], index: 1 | -1) => void;
|
|
27
28
|
export default addIndexToAttributes;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Schema } from 'mongoose';
|
|
26
27
|
declare const addUpAndDownIndicesToAttributes: (schema: Schema, attributes: string[]) => void;
|
|
27
28
|
export default addUpAndDownIndicesToAttributes;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Schema } from 'mongoose';
|
|
26
27
|
declare const addUpIndicesToAttributes: (schema: Schema, attributes: string[]) => void;
|
|
27
28
|
export default addUpIndicesToAttributes;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Model } from 'mongoose';
|
|
26
27
|
import { Subject } from 'rxjs';
|
|
27
28
|
declare const observableModel: (model: Model<any>) => Subject<any>;
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Connection } from 'mongoose';
|
|
26
27
|
export default class MongoDBConnector {
|
|
27
28
|
static init(mongoDbUri: string): Promise<Connection>;
|
package/lib/store/a.store.d.ts
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Model } from 'mongoose';
|
|
26
27
|
import { Subject, Subscription } from 'rxjs';
|
|
27
28
|
import EStoreType from '../_enums/store.type.enum';
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import * as _ from 'lodash';
|
|
26
27
|
import { Model } from 'mongoose';
|
|
27
28
|
import AStore from './a.store';
|
|
@@ -30,7 +31,7 @@ export default class CollectionStore extends AStore {
|
|
|
30
31
|
constructor(model: Model<any>, target: string);
|
|
31
32
|
protected shouldReload(change: any): boolean;
|
|
32
33
|
protected sendCount(subscriptionId: string): Promise<void>;
|
|
33
|
-
protected delaySendCount: _.
|
|
34
|
+
protected delaySendCount: _.DebouncedFuncLeading<any>;
|
|
34
35
|
protected load(change: any): Promise<void>;
|
|
35
36
|
protected extractFromConfig(): void;
|
|
36
37
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection.store.js","sourceRoot":"","sources":["../../src/store/collection.store.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,4BAA4B;AAG5B,uCAA+B;AAC/B,+DAAmD;AAEnD,MAAqB,eAAgB,SAAQ,iBAAM;IAGlD,YAAY,KAAiB,EAAE,MAAc;QAC5C,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAqCZ,mBAAc,
|
|
1
|
+
{"version":3,"file":"collection.store.js","sourceRoot":"","sources":["../../src/store/collection.store.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;AAEb,4BAA4B;AAG5B,uCAA+B;AAC/B,+DAAmD;AAEnD,MAAqB,eAAgB,SAAQ,iBAAM;IAGlD,YAAY,KAAiB,EAAE,MAAc;QAC5C,KAAK,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAqCZ,mBAAc,GAAgC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;QAnCxF,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,yBAAU,CAAC,UAAU,CAAC;QACnC,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;IACxD,CAAC;IAES,YAAY,CAAC,MAAW;QACjC,IAAI,IAAI,CAAC,qBAAqB,CAAC,MAAM,CAAC;YAAE,OAAO,IAAI,CAAC;QAEpD,MAAM,EAAC,aAAa,EAAE,IAAI,EAAE,iBAAiB,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAC,GAAG,MAAM,CAAC;QAE7F,QAAQ,IAAI,EAAE,CAAC;YACd,KAAK,QAAQ,CAAC;YACd,KAAK,QAAQ;gBACZ,OAAO,IAAI,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AAC,WAAW,EAAE,IAAI,EAAC,CAAC,CAAC;wBAE1E,IAAI,CAAC,cAAc,CAAC,yBAAyB,CAAC,CAAC;oBAChD,CAAC;oBAED,IAAI,CAAC,sBAAsB,CAAC,yBAAyB,CAAC,CAAC;gBACxD,CAAC;YACF,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,OAAO,CAAC,KAAK,CAAC,+CAA+C,EAAE,EAAC,MAAM,EAAE,KAAK,EAAC,CAAC,CAAC;gBAChF,IAAI,CAAC,SAAS,CAAC,yBAAyB,EAAE,KAAK,CAAC,CAAC;YAClD,CAAC;QACF,CAAC;KAAA;IAES,iBAAiB;QAC1B,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAE1B,MAAM,EAAC,WAAW,GAAG,KAAK,EAAE,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAC,GAAG,IAAI,CAAC,OAAO,CAAC;QAC/D,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAEhC,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;QAClB,IAAI,QAAQ,EAAE,CAAC;YACd,IAAI,CAAC,OAAO,GAAG;gBACd,IAAI,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,QAAQ;gBAC3B,KAAK,EAAE,QAAQ;aACf,CAAC;QACH,CAAC;IACF,CAAC;CACD;AA/HD,kCA+HC"}
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
25
26
|
import { Model } from 'mongoose';
|
|
26
27
|
import AStore from './a.store';
|
|
27
28
|
export default class CountStore extends AStore {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "owservable",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.87",
|
|
4
4
|
"description": "owservable backend",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16"
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"srctree": "dir src /s /b > srctree.txt"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@owservable/actions": "^0.1.
|
|
39
|
-
"@owservable/folders": "^0.1.
|
|
40
|
-
"@types/lodash": "^4.17.
|
|
41
|
-
"@types/node": "^20.12.
|
|
38
|
+
"@owservable/actions": "^0.1.93",
|
|
39
|
+
"@owservable/folders": "^0.1.93",
|
|
40
|
+
"@types/lodash": "^4.17.4",
|
|
41
|
+
"@types/node": "^20.12.13",
|
|
42
42
|
"@types/node-cron": "^3.0.11",
|
|
43
43
|
"deprecated-decorator": "^0.1.6",
|
|
44
44
|
"jsondiffpatch": "^0.5.0",
|
|
45
45
|
"lodash": "^4.17.20",
|
|
46
|
-
"mongoose": "^8.
|
|
46
|
+
"mongoose": "^8.4.0",
|
|
47
47
|
"node-cron": "^3.0.3",
|
|
48
48
|
"rxjs": "^7.8.1",
|
|
49
|
-
"sift": "^17.
|
|
49
|
+
"sift": "^17.1.3"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@danmasta/mocha-sonar": "^1.1.0",
|
|
53
|
-
"@types/chai": "^4.3.
|
|
53
|
+
"@types/chai": "^4.3.16",
|
|
54
54
|
"@types/mocha": "^10.0.6",
|
|
55
55
|
"@types/rewire": "^2.5.30",
|
|
56
56
|
"chai": "4.4.0",
|