@tsed/mongoose 7.70.1 → 7.71.0
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/jest.config.js +3 -1
- package/lib/cjs/MongooseModule.js +4 -4
- package/lib/cjs/MongooseModule.js.map +1 -1
- package/lib/cjs/decorators/auto.js +2 -2
- package/lib/cjs/decorators/auto.js.map +1 -1
- package/lib/cjs/decorators/dynamicRef.js +4 -4
- package/lib/cjs/decorators/dynamicRef.js.map +1 -1
- package/lib/cjs/decorators/excludeIndexes.js +2 -2
- package/lib/cjs/decorators/excludeIndexes.js.map +1 -1
- package/lib/cjs/decorators/expires.js +2 -2
- package/lib/cjs/decorators/expires.js.map +1 -1
- package/lib/cjs/decorators/immutable.js +2 -2
- package/lib/cjs/decorators/immutable.js.map +1 -1
- package/lib/cjs/decorators/indexed.js +2 -2
- package/lib/cjs/decorators/indexed.js.map +1 -1
- package/lib/cjs/decorators/lowercase.js +2 -2
- package/lib/cjs/decorators/lowercase.js.map +1 -1
- package/lib/cjs/decorators/model.js +9 -9
- package/lib/cjs/decorators/model.js.map +1 -1
- package/lib/cjs/decorators/mongooseIndex.js +2 -2
- package/lib/cjs/decorators/mongooseIndex.js.map +1 -1
- package/lib/cjs/decorators/mongooseIndexes.js +2 -2
- package/lib/cjs/decorators/mongooseIndexes.js.map +1 -1
- package/lib/cjs/decorators/mongoosePlugin.js +2 -2
- package/lib/cjs/decorators/mongoosePlugin.js.map +1 -1
- package/lib/cjs/decorators/numberDecimal.js +2 -2
- package/lib/cjs/decorators/numberDecimal.js.map +1 -1
- package/lib/cjs/decorators/objectID.js +3 -3
- package/lib/cjs/decorators/objectID.js.map +1 -1
- package/lib/cjs/decorators/postHook.js +2 -2
- package/lib/cjs/decorators/postHook.js.map +1 -1
- package/lib/cjs/decorators/preHook.js +2 -2
- package/lib/cjs/decorators/preHook.js.map +1 -1
- package/lib/cjs/decorators/ref.js +7 -7
- package/lib/cjs/decorators/ref.js.map +1 -1
- package/lib/cjs/decorators/schema.js +5 -5
- package/lib/cjs/decorators/schema.js.map +1 -1
- package/lib/cjs/decorators/schemaIgnore.js +2 -2
- package/lib/cjs/decorators/schemaIgnore.js.map +1 -1
- package/lib/cjs/decorators/select.js +2 -2
- package/lib/cjs/decorators/select.js.map +1 -1
- package/lib/cjs/decorators/sparse.js +2 -2
- package/lib/cjs/decorators/sparse.js.map +1 -1
- package/lib/cjs/decorators/text.js +2 -2
- package/lib/cjs/decorators/text.js.map +1 -1
- package/lib/cjs/decorators/trim.js +2 -2
- package/lib/cjs/decorators/trim.js.map +1 -1
- package/lib/cjs/decorators/unique.js +2 -2
- package/lib/cjs/decorators/unique.js.map +1 -1
- package/lib/cjs/decorators/uppercase.js +2 -2
- package/lib/cjs/decorators/uppercase.js.map +1 -1
- package/lib/cjs/decorators/versionKey.js +2 -2
- package/lib/cjs/decorators/versionKey.js.map +1 -1
- package/lib/cjs/decorators/virtualRef.js +5 -5
- package/lib/cjs/decorators/virtualRef.js.map +1 -1
- package/lib/cjs/index.js +47 -47
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/services/MongooseConnections.js +2 -2
- package/lib/cjs/services/MongooseConnections.js.map +1 -1
- package/lib/cjs/utils/createModel.js +8 -8
- package/lib/cjs/utils/createModel.js.map +1 -1
- package/lib/cjs/utils/createSchema.js +11 -11
- package/lib/cjs/utils/createSchema.js.map +1 -1
- package/lib/cjs/utils/resolveRefType.js +2 -2
- package/lib/cjs/utils/resolveRefType.js.map +1 -1
- package/lib/cjs/utils/schemaOptions.js +5 -5
- package/lib/cjs/utils/schemaOptions.js.map +1 -1
- package/lib/esm/MongooseModule.js.map +1 -1
- package/lib/esm/decorators/auto.js.map +1 -1
- package/lib/esm/decorators/dynamicRef.js.map +1 -1
- package/lib/esm/decorators/excludeIndexes.js.map +1 -1
- package/lib/esm/decorators/expires.js.map +1 -1
- package/lib/esm/decorators/immutable.js.map +1 -1
- package/lib/esm/decorators/indexed.js.map +1 -1
- package/lib/esm/decorators/lowercase.js.map +1 -1
- package/lib/esm/decorators/model.js.map +1 -1
- package/lib/esm/decorators/mongooseIndex.js.map +1 -1
- package/lib/esm/decorators/mongooseIndexes.js.map +1 -1
- package/lib/esm/decorators/mongoosePlugin.js.map +1 -1
- package/lib/esm/decorators/numberDecimal.js.map +1 -1
- package/lib/esm/decorators/objectID.js.map +1 -1
- package/lib/esm/decorators/postHook.js.map +1 -1
- package/lib/esm/decorators/preHook.js.map +1 -1
- package/lib/esm/decorators/ref.js.map +1 -1
- package/lib/esm/decorators/schema.js.map +1 -1
- package/lib/esm/decorators/schemaIgnore.js.map +1 -1
- package/lib/esm/decorators/select.js.map +1 -1
- package/lib/esm/decorators/sparse.js.map +1 -1
- package/lib/esm/decorators/text.js.map +1 -1
- package/lib/esm/decorators/trim.js.map +1 -1
- package/lib/esm/decorators/unique.js.map +1 -1
- package/lib/esm/decorators/uppercase.js.map +1 -1
- package/lib/esm/decorators/versionKey.js.map +1 -1
- package/lib/esm/decorators/virtualRef.js.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/services/MongooseConnections.js.map +1 -1
- package/lib/esm/utils/createModel.js.map +1 -1
- package/lib/esm/utils/createSchema.js.map +1 -1
- package/lib/esm/utils/resolveRefType.js.map +1 -1
- package/lib/esm/utils/schemaOptions.js.map +1 -1
- package/lib/types/MongooseModule.d.ts +1 -1
- package/lib/types/decorators/model.d.ts +1 -1
- package/lib/types/decorators/postHook.d.ts +1 -1
- package/lib/types/decorators/preHook.d.ts +1 -1
- package/lib/types/decorators/ref.d.ts +1 -1
- package/lib/types/decorators/schema.d.ts +1 -1
- package/lib/types/decorators/virtualRef.d.ts +1 -1
- package/lib/types/index.d.ts +45 -45
- package/lib/types/interfaces/MongooseModelOptions.d.ts +1 -1
- package/lib/types/interfaces/MongooseSchemaOptions.d.ts +1 -1
- package/lib/types/interfaces/interfaces.d.ts +1 -1
- package/lib/types/services/MongooseConnections.d.ts +1 -1
- package/lib/types/utils/createSchema.d.ts +2 -2
- package/lib/types/utils/schemaOptions.d.ts +1 -1
- package/package.json +14 -14
- package/readme.md +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Sparse = void 0;
|
|
4
|
-
const
|
|
4
|
+
const schema_js_1 = require("./schema.js");
|
|
5
5
|
/**
|
|
6
6
|
* If [truthy](https://masteringjs.io/tutorials/fundamentals/truthy), Mongoose will
|
|
7
7
|
* disallow changes to this path once the document is saved to the database for the first time. Read more
|
|
@@ -24,7 +24,7 @@ const schema_1 = require("./schema");
|
|
|
24
24
|
* @property
|
|
25
25
|
*/
|
|
26
26
|
function Sparse(sparse = true) {
|
|
27
|
-
return (0,
|
|
27
|
+
return (0, schema_js_1.MongooseSchema)({ sparse });
|
|
28
28
|
}
|
|
29
29
|
exports.Sparse = Sparse;
|
|
30
30
|
//# sourceMappingURL=sparse.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sparse.js","sourceRoot":"","sources":["../../../src/decorators/sparse.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"sparse.js","sourceRoot":"","sources":["../../../src/decorators/sparse.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAE3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,SAAgB,MAAM,CAAC,SAA2B,IAAI;IACpD,OAAO,IAAA,0BAAc,EAAC,EAAC,MAAM,EAAQ,CAAC,CAAC;AACzC,CAAC;AAFD,wBAEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Text = void 0;
|
|
4
|
-
const
|
|
4
|
+
const schema_js_1 = require("./schema.js");
|
|
5
5
|
/**
|
|
6
6
|
* If [truthy](https://masteringjs.io/tutorials/fundamentals/truthy), Mongoose
|
|
7
7
|
* will build a text index on this path.
|
|
@@ -23,7 +23,7 @@ const schema_1 = require("./schema");
|
|
|
23
23
|
* @property
|
|
24
24
|
*/
|
|
25
25
|
function Text(text = true) {
|
|
26
|
-
return (0,
|
|
26
|
+
return (0, schema_js_1.MongooseSchema)({ text });
|
|
27
27
|
}
|
|
28
28
|
exports.Text = Text;
|
|
29
29
|
//# sourceMappingURL=text.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/decorators/text.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../src/decorators/text.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAE3C;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,IAAI,CAAC,OAA+B,IAAI;IACtD,OAAO,IAAA,0BAAc,EAAC,EAAC,IAAI,EAAQ,CAAC,CAAC;AACvC,CAAC;AAFD,oBAEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Trim = void 0;
|
|
4
|
-
const
|
|
4
|
+
const schema_js_1 = require("./schema.js");
|
|
5
5
|
/**
|
|
6
6
|
* Tell Mongoose to make the property trimmable.
|
|
7
7
|
*
|
|
@@ -21,7 +21,7 @@ const schema_1 = require("./schema");
|
|
|
21
21
|
* @property
|
|
22
22
|
*/
|
|
23
23
|
function Trim() {
|
|
24
|
-
return (0,
|
|
24
|
+
return (0, schema_js_1.MongooseSchema)({ trim: true });
|
|
25
25
|
}
|
|
26
26
|
exports.Trim = Trim;
|
|
27
27
|
//# sourceMappingURL=trim.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trim.js","sourceRoot":"","sources":["../../../src/decorators/trim.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"trim.js","sourceRoot":"","sources":["../../../src/decorators/trim.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAE3C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,IAAI;IAClB,OAAO,IAAA,0BAAc,EAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC;AACtC,CAAC;AAFD,oBAEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Unique = void 0;
|
|
4
|
-
const
|
|
4
|
+
const schema_js_1 = require("./schema.js");
|
|
5
5
|
/**
|
|
6
6
|
* Tell Mongoose to ensure a unique index is created for this path.
|
|
7
7
|
*
|
|
@@ -21,7 +21,7 @@ const schema_1 = require("./schema");
|
|
|
21
21
|
* @mongoose
|
|
22
22
|
*/
|
|
23
23
|
function Unique(unique = true) {
|
|
24
|
-
return (0,
|
|
24
|
+
return (0, schema_js_1.MongooseSchema)({ unique });
|
|
25
25
|
}
|
|
26
26
|
exports.Unique = Unique;
|
|
27
27
|
//# sourceMappingURL=unique.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unique.js","sourceRoot":"","sources":["../../../src/decorators/unique.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"unique.js","sourceRoot":"","sources":["../../../src/decorators/unique.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAE3C;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,MAAM,CAAC,SAAwB,IAAI;IACjD,OAAO,IAAA,0BAAc,EAAC,EAAC,MAAM,EAAC,CAAC,CAAC;AAClC,CAAC;AAFD,wBAEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Uppercase = void 0;
|
|
4
|
-
const
|
|
4
|
+
const schema_js_1 = require("./schema.js");
|
|
5
5
|
/**
|
|
6
6
|
* If truthy, Mongoose will add a custom setter that uppercases this string using JavaScript's built-in String#toUpperCase().
|
|
7
7
|
*
|
|
@@ -22,7 +22,7 @@ const schema_1 = require("./schema");
|
|
|
22
22
|
* @property
|
|
23
23
|
*/
|
|
24
24
|
function Uppercase(uppercase = true) {
|
|
25
|
-
return (0,
|
|
25
|
+
return (0, schema_js_1.MongooseSchema)({ uppercase });
|
|
26
26
|
}
|
|
27
27
|
exports.Uppercase = Uppercase;
|
|
28
28
|
//# sourceMappingURL=uppercase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uppercase.js","sourceRoot":"","sources":["../../../src/decorators/uppercase.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"uppercase.js","sourceRoot":"","sources":["../../../src/decorators/uppercase.ts"],"names":[],"mappings":";;;AAAA,2CAA2C;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,SAAS,CAAC,YAAqB,IAAI;IACjD,OAAO,IAAA,0BAAc,EAAC,EAAC,SAAS,EAAQ,CAAC,CAAC;AAC5C,CAAC;AAFD,8BAEC"}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VersionKey = void 0;
|
|
4
4
|
const core_1 = require("@tsed/core");
|
|
5
|
-
const
|
|
5
|
+
const constants_js_1 = require("../constants/constants.js");
|
|
6
6
|
function VersionKey() {
|
|
7
7
|
return (target, propertyKey) => {
|
|
8
|
-
core_1.Store.from(target).merge(
|
|
8
|
+
core_1.Store.from(target).merge(constants_js_1.MONGOOSE_SCHEMA_OPTIONS, { versionKey: propertyKey });
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
exports.VersionKey = VersionKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"versionKey.js","sourceRoot":"","sources":["../../../src/decorators/versionKey.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"versionKey.js","sourceRoot":"","sources":["../../../src/decorators/versionKey.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AACjC,4DAAkE;AAElE,SAAgB,UAAU;IACxB,OAAO,CAAC,MAAW,EAAE,WAAmB,EAAE,EAAE;QAC1C,YAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,sCAAuB,EAAE,EAAC,UAAU,EAAE,WAAW,EAAC,CAAC,CAAC;IAC/E,CAAC,CAAC;AACJ,CAAC;AAJD,gCAIC"}
|
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VirtualRef = void 0;
|
|
4
4
|
const core_1 = require("@tsed/core");
|
|
5
5
|
const schema_1 = require("@tsed/schema");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
6
|
+
const constants_js_1 = require("../constants/constants.js");
|
|
7
|
+
const MongooseModels_js_1 = require("../registries/MongooseModels.js");
|
|
8
8
|
function getRef(opts) {
|
|
9
9
|
const ref = opts.ref;
|
|
10
|
-
return (0, core_1.isString)(ref) ? ref : core_1.Store.from(ref).get(
|
|
10
|
+
return (0, core_1.isString)(ref) ? ref : core_1.Store.from(ref).get(constants_js_1.MONGOOSE_MODEL_NAME);
|
|
11
11
|
}
|
|
12
12
|
function getType(opts) {
|
|
13
13
|
const ref = opts.ref;
|
|
14
|
-
return !(0, core_1.isString)(ref) ? ref :
|
|
14
|
+
return !(0, core_1.isString)(ref) ? ref : MongooseModels_js_1.MongooseModels.get(ref) || (() => MongooseModels_js_1.MongooseModels.get(ref) || Object);
|
|
15
15
|
}
|
|
16
16
|
function getInitialOpts(options, foreignField) {
|
|
17
17
|
return (0, core_1.isPlainObject)(options) ? options : { ref: options, foreignField };
|
|
@@ -32,7 +32,7 @@ function VirtualRef(options, foreignField) {
|
|
|
32
32
|
const opts = getInitialOpts(options, foreignField);
|
|
33
33
|
const schema = mapToSchema(opts);
|
|
34
34
|
const type = getType(opts);
|
|
35
|
-
return (0, core_1.useDecorators)((0, core_1.StoreMerge)(
|
|
35
|
+
return (0, core_1.useDecorators)((0, core_1.StoreMerge)(constants_js_1.MONGOOSE_SCHEMA, schema), schema.count ? (0, schema_1.Property)(Number) : type && (schema.justOne ? (0, schema_1.Property)(type) : (0, schema_1.CollectionOf)(type, Array)));
|
|
36
36
|
}
|
|
37
37
|
exports.VirtualRef = VirtualRef;
|
|
38
38
|
//# sourceMappingURL=virtualRef.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualRef.js","sourceRoot":"","sources":["../../../src/decorators/virtualRef.ts"],"names":[],"mappings":";;;AAAA,qCAAqF;AACrF,yCAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"virtualRef.js","sourceRoot":"","sources":["../../../src/decorators/virtualRef.ts"],"names":[],"mappings":";;;AAAA,qCAAqF;AACrF,yCAAoD;AACpD,4DAA+E;AAE/E,uEAA+D;AAE/D,SAAS,MAAM,CAAC,IAAS;IACvB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IAErB,OAAO,IAAA,eAAQ,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,YAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,kCAAmB,CAAC,CAAC;AACxE,CAAC;AAED,SAAS,OAAO,CAAC,IAAS;IACxB,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;IACrB,OAAO,CAAC,IAAA,eAAQ,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,kCAAc,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,kCAAc,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC;AACrG,CAAC;AAED,SAAS,cAAc,CAAC,OAA2C,EAAE,YAAqB;IACxF,OAAO,IAAA,oBAAa,EAAC,OA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.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
const tslib_1 = require("tslib");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
tslib_1.__exportStar(require("./
|
|
11
|
-
tslib_1.__exportStar(require("./decorators/
|
|
12
|
-
tslib_1.__exportStar(require("./decorators/
|
|
13
|
-
tslib_1.__exportStar(require("./decorators/
|
|
14
|
-
tslib_1.__exportStar(require("./decorators/
|
|
15
|
-
tslib_1.__exportStar(require("./decorators/
|
|
16
|
-
tslib_1.__exportStar(require("./decorators/
|
|
17
|
-
tslib_1.__exportStar(require("./decorators/
|
|
18
|
-
tslib_1.__exportStar(require("./decorators/
|
|
19
|
-
tslib_1.__exportStar(require("./decorators/
|
|
20
|
-
tslib_1.__exportStar(require("./decorators/
|
|
21
|
-
tslib_1.__exportStar(require("./decorators/
|
|
22
|
-
tslib_1.__exportStar(require("./decorators/
|
|
23
|
-
tslib_1.__exportStar(require("./decorators/
|
|
24
|
-
tslib_1.__exportStar(require("./decorators/
|
|
25
|
-
tslib_1.__exportStar(require("./decorators/
|
|
26
|
-
tslib_1.__exportStar(require("./decorators/
|
|
27
|
-
tslib_1.__exportStar(require("./decorators/
|
|
28
|
-
tslib_1.__exportStar(require("./decorators/
|
|
29
|
-
tslib_1.__exportStar(require("./decorators/
|
|
30
|
-
tslib_1.__exportStar(require("./decorators/
|
|
31
|
-
tslib_1.__exportStar(require("./decorators/
|
|
32
|
-
tslib_1.__exportStar(require("./decorators/
|
|
33
|
-
tslib_1.__exportStar(require("./decorators/
|
|
34
|
-
tslib_1.__exportStar(require("./decorators/
|
|
35
|
-
tslib_1.__exportStar(require("./decorators/
|
|
36
|
-
tslib_1.__exportStar(require("./
|
|
37
|
-
tslib_1.__exportStar(require("./
|
|
38
|
-
tslib_1.__exportStar(require("./interfaces/
|
|
39
|
-
tslib_1.__exportStar(require("./interfaces/
|
|
40
|
-
tslib_1.__exportStar(require("./interfaces/
|
|
41
|
-
tslib_1.__exportStar(require("./interfaces/
|
|
42
|
-
tslib_1.__exportStar(require("./interfaces/
|
|
43
|
-
tslib_1.__exportStar(require("./interfaces/
|
|
44
|
-
tslib_1.__exportStar(require("./
|
|
45
|
-
tslib_1.__exportStar(require("./
|
|
46
|
-
tslib_1.__exportStar(require("./
|
|
47
|
-
tslib_1.__exportStar(require("./
|
|
48
|
-
tslib_1.__exportStar(require("./
|
|
49
|
-
tslib_1.__exportStar(require("./
|
|
50
|
-
tslib_1.__exportStar(require("./utils/
|
|
4
|
+
/**
|
|
5
|
+
* @file Automatically generated by @tsed/barrels.
|
|
6
|
+
*/
|
|
7
|
+
tslib_1.__exportStar(require("./constants/constants.js"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./decorators/auto.js"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./decorators/discriminatorKey.js"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./decorators/dynamicRef.js"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./decorators/excludeIndexes.js"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./decorators/expires.js"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./decorators/immutable.js"), exports);
|
|
14
|
+
tslib_1.__exportStar(require("./decorators/indexed.js"), exports);
|
|
15
|
+
tslib_1.__exportStar(require("./decorators/lowercase.js"), exports);
|
|
16
|
+
tslib_1.__exportStar(require("./decorators/model.js"), exports);
|
|
17
|
+
tslib_1.__exportStar(require("./decorators/mongooseIndex.js"), exports);
|
|
18
|
+
tslib_1.__exportStar(require("./decorators/mongooseIndexes.js"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./decorators/mongoosePlugin.js"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./decorators/numberDecimal.js"), exports);
|
|
21
|
+
tslib_1.__exportStar(require("./decorators/objectID.js"), exports);
|
|
22
|
+
tslib_1.__exportStar(require("./decorators/postHook.js"), exports);
|
|
23
|
+
tslib_1.__exportStar(require("./decorators/preHook.js"), exports);
|
|
24
|
+
tslib_1.__exportStar(require("./decorators/ref.js"), exports);
|
|
25
|
+
tslib_1.__exportStar(require("./decorators/schema.js"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./decorators/schemaIgnore.js"), exports);
|
|
27
|
+
tslib_1.__exportStar(require("./decorators/select.js"), exports);
|
|
28
|
+
tslib_1.__exportStar(require("./decorators/sparse.js"), exports);
|
|
29
|
+
tslib_1.__exportStar(require("./decorators/text.js"), exports);
|
|
30
|
+
tslib_1.__exportStar(require("./decorators/trim.js"), exports);
|
|
31
|
+
tslib_1.__exportStar(require("./decorators/unique.js"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./decorators/uppercase.js"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./decorators/versionKey.js"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./decorators/virtualRef.js"), exports);
|
|
35
|
+
tslib_1.__exportStar(require("./interfaces/interfaces.js"), exports);
|
|
36
|
+
tslib_1.__exportStar(require("./interfaces/MongooseConnectionOptions.js"), exports);
|
|
37
|
+
tslib_1.__exportStar(require("./interfaces/MongooseDocument.js"), exports);
|
|
38
|
+
tslib_1.__exportStar(require("./interfaces/MongooseModel.js"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./interfaces/MongooseModelOptions.js"), exports);
|
|
40
|
+
tslib_1.__exportStar(require("./interfaces/MongooseSchemaOptions.js"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./interfaces/MongooseSchemaTypes.js"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./interfaces/MongooseVirtualRefOptions.js"), exports);
|
|
43
|
+
tslib_1.__exportStar(require("./MongooseModule.js"), exports);
|
|
44
|
+
tslib_1.__exportStar(require("./registries/MongooseModels.js"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./services/MongooseConnections.js"), exports);
|
|
46
|
+
tslib_1.__exportStar(require("./services/MongooseService.js"), exports);
|
|
47
|
+
tslib_1.__exportStar(require("./utils/createModel.js"), exports);
|
|
48
|
+
tslib_1.__exportStar(require("./utils/createSchema.js"), exports);
|
|
49
|
+
tslib_1.__exportStar(require("./utils/resolveRefType.js"), exports);
|
|
50
|
+
tslib_1.__exportStar(require("./utils/schemaOptions.js"), exports);
|
|
51
51
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,mEAAyC;AACzC,+DAAqC;AACrC,2EAAiD;AACjD,qEAA2C;AAC3C,yEAA+C;AAC/C,kEAAwC;AACxC,oEAA0C;AAC1C,kEAAwC;AACxC,oEAA0C;AAC1C,gEAAsC;AACtC,wEAA8C;AAC9C,0EAAgD;AAChD,yEAA+C;AAC/C,wEAA8C;AAC9C,mEAAyC;AACzC,mEAAyC;AACzC,kEAAwC;AACxC,8DAAoC;AACpC,iEAAuC;AACvC,uEAA6C;AAC7C,iEAAuC;AACvC,iEAAuC;AACvC,+DAAqC;AACrC,+DAAqC;AACrC,iEAAuC;AACvC,oEAA0C;AAC1C,qEAA2C;AAC3C,qEAA2C;AAC3C,qEAA2C;AAC3C,oFAA0D;AAC1D,2EAAiD;AACjD,wEAA8C;AAC9C,+EAAqD;AACrD,gFAAsD;AACtD,8EAAoD;AACpD,oFAA0D;AAC1D,8DAAoC;AACpC,yEAA+C;AAC/C,4EAAkD;AAClD,wEAA8C;AAC9C,iEAAuC;AACvC,kEAAwC;AACxC,oEAA0C;AAC1C,mEAAyC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.MONGOOSE_CONNECTIONS = void 0;
|
|
4
4
|
const di_1 = require("@tsed/di");
|
|
5
5
|
const core_1 = require("@tsed/core");
|
|
6
|
-
const
|
|
6
|
+
const MongooseService_js_1 = require("../services/MongooseService.js");
|
|
7
7
|
/**
|
|
8
8
|
* @ignore
|
|
9
9
|
*/
|
|
@@ -33,7 +33,7 @@ function mapOptions(options) {
|
|
|
33
33
|
(0, di_1.registerProvider)({
|
|
34
34
|
provide: exports.MONGOOSE_CONNECTIONS,
|
|
35
35
|
injectable: false,
|
|
36
|
-
deps: [di_1.Configuration,
|
|
36
|
+
deps: [di_1.Configuration, MongooseService_js_1.MongooseService],
|
|
37
37
|
async useAsyncFactory(configuration, mongooseService) {
|
|
38
38
|
const settings = mapOptions(configuration.get("mongoose"));
|
|
39
39
|
let isDefault = true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MongooseConnections.js","sourceRoot":"","sources":["../../../src/services/MongooseConnections.ts"],"names":[],"mappings":";;;AAAA,iCAAyD;AACzD,qCAAmC;AAEnC,
|
|
1
|
+
{"version":3,"file":"MongooseConnections.js","sourceRoot":"","sources":["../../../src/services/MongooseConnections.ts"],"names":[],"mappings":";;;AAAA,iCAAyD;AACzD,qCAAmC;AAEnC,uEAA+D;AAE/D;;GAEG;AACH,yCAAyC;AAC5B,QAAA,oBAAoB,GAAG,MAAM,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;AAMvE,SAAS,UAAU,CAAC,OAA4E;IAC9F,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,EAAE,CAAC;KACX;IAED,IAAI,CAAC,IAAA,cAAO,EAAC,OAAO,CAAC,EAAE;QACrB,MAAM,EAAC,GAAG,EAAE,iBAAiB,EAAC,GAAG,OAAO,IAAI,EAAE,CAAC;QAE/C,OAAO;YACL;gBACE,EAAE,EAAE,SAAS;gBACb,GAAG;gBACH,iBAAiB;aAClB;SACF,CAAC;KACH;IAED,OAAQ,OAAuC,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE;QAC/D,OAAO;YACL,GAAG,QAAQ;YACX,iBAAiB,EAAE,QAAQ,CAAC,iBAAiB;SAC9C,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC;AAED,IAAA,qBAAgB,EAAC;IACf,OAAO,EAAE,4BAAoB;IAC7B,UAAU,EAAE,KAAK;IACjB,IAAI,EAAE,CAAC,kBAAa,EAAE,oCAAe,CAAC;IACtC,KAAK,CAAC,eAAe,CAAC,aAA4B,EAAE,eAAgC;QAClF,MAAM,QAAQ,GAAG,UAAU,CAAC,aAAa,CAAC,GAAG,CAA0D,UAAU,CAAC,CAAC,CAAC;QACpH,IAAI,SAAS,GAAG,IAAI,CAAC;QAErB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE;YAC9B,MAAM,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,iBAAiB,IAAI,EAAE,EAAE,SAAS,CAAC,CAAC;YAEnG,SAAS,GAAG,KAAK,CAAC;SACnB;QAED,OAAO,eAAe,CAAC;IACzB,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -5,13 +5,13 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const core_1 = require("@tsed/core");
|
|
6
6
|
const schema_1 = require("@tsed/schema");
|
|
7
7
|
const mongoose_1 = tslib_1.__importDefault(require("mongoose"));
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
8
|
+
const constants_js_1 = require("../constants/constants.js");
|
|
9
|
+
const MongooseModels_js_1 = require("../registries/MongooseModels.js");
|
|
10
|
+
const createSchema_js_1 = require("./createSchema.js");
|
|
11
11
|
function getModelToken(target, options) {
|
|
12
|
-
const { collectionName, token } = (0,
|
|
13
|
-
core_1.Store.from(target).set(
|
|
14
|
-
|
|
12
|
+
const { collectionName, token } = (0, createSchema_js_1.getSchemaToken)(target, options);
|
|
13
|
+
core_1.Store.from(target).set(constants_js_1.MONGOOSE_MODEL_NAME, collectionName);
|
|
14
|
+
MongooseModels_js_1.MongooseModels.set(collectionName, target);
|
|
15
15
|
return { token, collectionName };
|
|
16
16
|
}
|
|
17
17
|
exports.getModelToken = getModelToken;
|
|
@@ -30,14 +30,14 @@ function createModel(target, schema, name = (0, core_1.nameOf)(target), collecti
|
|
|
30
30
|
const entity = schema_1.JsonEntityStore.from(target);
|
|
31
31
|
if (entity.isDiscriminatorChild) {
|
|
32
32
|
const discriminatorName = entity.discriminatorAncestor.schema.discriminator().getDefaultValue(target);
|
|
33
|
-
const ancestorModel = entity.discriminatorAncestor.get(
|
|
33
|
+
const ancestorModel = entity.discriminatorAncestor.get(constants_js_1.MONGOOSE_MODEL);
|
|
34
34
|
// check if discriminator is already registered on model before creating it
|
|
35
35
|
return ancestorModel.discriminators?.[discriminatorName] || ancestorModel.discriminator(discriminatorName, schema);
|
|
36
36
|
}
|
|
37
37
|
const opts = overwriteModels ? { overwriteModels } : undefined;
|
|
38
38
|
const c = connection || mongoose_1.default;
|
|
39
39
|
const model = c.model(name, schema, collection, opts);
|
|
40
|
-
core_1.Store.from(target).set(
|
|
40
|
+
core_1.Store.from(target).set(constants_js_1.MONGOOSE_MODEL, model);
|
|
41
41
|
return model;
|
|
42
42
|
}
|
|
43
43
|
exports.createModel = createModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createModel.js","sourceRoot":"","sources":["../../../src/utils/createModel.ts"],"names":[],"mappings":";;;;AAAA,qCAA+C;AAC/C,yCAA6C;AAC7C,gEAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"createModel.js","sourceRoot":"","sources":["../../../src/utils/createModel.ts"],"names":[],"mappings":";;;;AAAA,qCAA+C;AAC/C,yCAA6C;AAC7C,gEAA8C;AAC9C,4DAA8E;AAC9E,uEAA+D;AAC/D,uDAAiD;AAEjD,SAAgB,aAAa,CAAC,MAAiB,EAAE,OAAY;IAC3D,MAAM,EAAC,cAAc,EAAE,KAAK,EAAC,GAAG,IAAA,gCAAc,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEhE,YAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,kCAAmB,EA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ema");
|
|
8
8
|
const change_case_1 = require("change-case");
|
|
9
9
|
const mongoose_1 = tslib_1.__importDefault(require("mongoose"));
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
10
|
+
const constants_js_1 = require("../constants/constants.js");
|
|
11
|
+
const resolveRefType_js_1 = require("./resolveRefType.js");
|
|
12
|
+
const schemaOptions_js_1 = require("./schemaOptions.js");
|
|
13
13
|
/**
|
|
14
14
|
* @ignore
|
|
15
15
|
*/
|
|
@@ -35,13 +35,13 @@ function hasVersionField(schema, versionKey) {
|
|
|
35
35
|
}
|
|
36
36
|
function createSchema(target, options = {}) {
|
|
37
37
|
const entity = schema_1.JsonEntityStore.from(target);
|
|
38
|
-
const schemaOptionsFromStore = entity.store.get(
|
|
38
|
+
const schemaOptionsFromStore = entity.store.get(constants_js_1.MONGOOSE_SCHEMA_OPTIONS) || {};
|
|
39
39
|
options.schemaOptions = { ...options.schemaOptions, ...schemaOptionsFromStore };
|
|
40
40
|
if (entity.schema.isDiscriminator) {
|
|
41
41
|
options.schemaOptions.discriminatorKey = entity.schema.discriminator().propertyName;
|
|
42
42
|
}
|
|
43
43
|
const schema = setUpSchema(buildMongooseSchema(target), options.schemaOptions);
|
|
44
|
-
(0,
|
|
44
|
+
(0, schemaOptions_js_1.schemaOptions)(target, options);
|
|
45
45
|
const outputVersionKey = hasVersionField(schema, options.schemaOptions?.versionKey);
|
|
46
46
|
schema.methods.toClass = function toClass() {
|
|
47
47
|
return (0, json_mapper_1.deserialize)(this.toObject({
|
|
@@ -60,7 +60,7 @@ function createSchema(target, options = {}) {
|
|
|
60
60
|
return (0, json_mapper_1.serialize)(this.toClass(), options);
|
|
61
61
|
};
|
|
62
62
|
schema.loadClass(target);
|
|
63
|
-
core_1.Store.from(target).set(
|
|
63
|
+
core_1.Store.from(target).set(constants_js_1.MONGOOSE_SCHEMA, schema);
|
|
64
64
|
return schema;
|
|
65
65
|
}
|
|
66
66
|
exports.createSchema = createSchema;
|
|
@@ -71,10 +71,10 @@ exports.createSchema = createSchema;
|
|
|
71
71
|
*/
|
|
72
72
|
function getSchema(target, options = {}) {
|
|
73
73
|
const store = core_1.Store.from(target);
|
|
74
|
-
if (!store.has(
|
|
74
|
+
if (!store.has(constants_js_1.MONGOOSE_SCHEMA)) {
|
|
75
75
|
createSchema(target, options);
|
|
76
76
|
}
|
|
77
|
-
return store.get(
|
|
77
|
+
return store.get(constants_js_1.MONGOOSE_SCHEMA);
|
|
78
78
|
}
|
|
79
79
|
exports.getSchema = getSchema;
|
|
80
80
|
function getSchemaToken(target, options) {
|
|
@@ -91,12 +91,12 @@ function buildMongooseSchema(target) {
|
|
|
91
91
|
const schema = { schema: {}, virtuals: new Map() };
|
|
92
92
|
properties.forEach((propertyMetadata, key) => {
|
|
93
93
|
// Keeping the Mongoose Schema separate, so it can overwrite everything once schema has been built.
|
|
94
|
-
const schemaTypeOptions = propertyMetadata.store.get(
|
|
94
|
+
const schemaTypeOptions = propertyMetadata.store.get(constants_js_1.MONGOOSE_SCHEMA) || {};
|
|
95
95
|
if (schemaTypeOptions.schemaIgnore || propertyMetadata.isDiscriminatorKey() || propertyMetadata.isGetterOnly()) {
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
98
|
if (schemaTypeOptions.ref) {
|
|
99
|
-
schemaTypeOptions.ref = (0,
|
|
99
|
+
schemaTypeOptions.ref = (0, resolveRefType_js_1.resolveRefType)(schemaTypeOptions.ref);
|
|
100
100
|
}
|
|
101
101
|
if (isVirtualRef(schemaTypeOptions)) {
|
|
102
102
|
schema.virtuals.set(key, schemaTypeOptions);
|
|
@@ -112,7 +112,7 @@ exports.buildMongooseSchema = buildMongooseSchema;
|
|
|
112
112
|
*/
|
|
113
113
|
function createSchemaTypeOptions(propEntity) {
|
|
114
114
|
const key = propEntity.propertyKey;
|
|
115
|
-
const rawMongooseSchema = propEntity.store.get(
|
|
115
|
+
const rawMongooseSchema = propEntity.store.get(constants_js_1.MONGOOSE_SCHEMA) || {};
|
|
116
116
|
let schemaTypeOptions = {
|
|
117
117
|
required: propEntity.required
|
|
118
118
|
? function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createSchema.js","sourceRoot":"","sources":["../../../src/utils/createSchema.ts"],"names":[],"mappings":";;;;AAAA,qCAA4D;AAC5D,mDAAyD;AACzD,yCAAwE;AACxE,6CAAuC;AACvC,gEAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"createSchema.js","sourceRoot":"","sources":["../../../src/utils/createSchema.ts"],"names":[],"mappings":";;;;AAAA,qCAA4D;AAC5D,mDAAyD;AACzD,yCAAwE;AACxE,6CAAuC;AACvC,gEAA8F;AAC9F,4DAAmF;AAGnF,2DAAmD;AACnD,yDAAiD;AAOjD;;GAEG;AACH,SAAS,WAAW,CAAC,EAAC,MAAM,EAAE,QAAQ,EAAyB,EAAE,OAAuB;IACtF,MAAM,cAAc,GAAG,IAAI,kBAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAE5D,KAAK,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,IAAI,QAAQ,CAAC,OAAO,EAAE,EAAE;QAC/C,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;KACtC;IAED,OAAO,cAAc,CAAC;AACxB,CAAC;AAED;;GAEG;AACH,SAAS,YAAY,CAAC,MAA0C;IAC9D,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,IAAI,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC;AACpE,CAAC;AAED,SAAS,eAAe,CAAC,MAAuB,EAAE,UAA6B;IAC7E,8CAA8C;IAC9C,IAAI,CAAC,UAAU;QAAE,OAAO,KAAK,CAAC;IAE9B,gDAAgD;IAChD,OAAQ,UAAqB,IAAI,MAAM,CAAC,KAAK,CAAC;AAChD,CAAC;AAED,SAAgB,YAAY,CAAC,MAAiB,EAAE,UAAiC,EAAE;IACjF,MAAM,MAAM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AC,OAAO,CAAC;QAChD,IAAI,KAAK,EAAE;YACT,KAAK,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;SAC3B;QAED,iBAAiB,GAAG;YAClB,GAAG,iBAAiB;YACpB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,KAAe;YACtB,GAAG;YACH,GAAG;YACH,SAAS;YACT,SAAS;YACT,IAAI,EAAE,iFAAiF,CAAC,UAAU,CAAC,MAAM,CAAC;YAC1G,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC;SAC/B,CAAC;KACH;SAAM,IAAI,CAAC,iBAAiB,CAAC,GAAG,EAAE;QACjC,4CAA4C;QAC5C,iBAAiB,GAAG,EAAC,GAAG,iBAAiB,EAAE,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,IAAI,CAAQ,EAAC,CAAC;KACrF;IAED,iBAAiB,GAAG,IAAA,kBAAW,EAAC,EAAC,GAAG,iBAAiB,EAAE,GAAG,iBAAiB,EAAC,CAAC,CAAC;IAE9E,IAAI,UAAU,CAAC,YAAY,EAAE;QAC3B,IAAI,UAAU,CAAC,OAAO,EAAE;YACtB,OAAO,CAAC,iBAAiB,CAAC,CAAC;SAC5B;QACD,yBAAyB;QACzB,gCAAgC;QAChC,IAAI,UAAU,CAAC,cAAc,KAAK,GAAG,EAAE;YACrC,MAAM,IAAI,KAAK,CAAC,4BAA4B,IAAA,aAAM,EAAC,UAAU,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;SACpG;QAED,OAAO,EAAC,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,iBAAiB,EAAoC,CAAC;KAC9E;IAED,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AArDD,0DAqDC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveRefType = void 0;
|
|
4
4
|
const core_1 = require("@tsed/core");
|
|
5
|
-
const
|
|
5
|
+
const constants_js_1 = require("../constants/constants.js");
|
|
6
6
|
/**
|
|
7
7
|
* @ignore
|
|
8
8
|
*/
|
|
@@ -13,7 +13,7 @@ function resolveRefType(type) {
|
|
|
13
13
|
if (!(0, core_1.isClass)(type)) {
|
|
14
14
|
type = type();
|
|
15
15
|
}
|
|
16
|
-
return core_1.Store.from(type).get(
|
|
16
|
+
return core_1.Store.from(type).get(constants_js_1.MONGOOSE_MODEL_NAME) || (0, core_1.nameOf)(type);
|
|
17
17
|
}
|
|
18
18
|
exports.resolveRefType = resolveRefType;
|
|
19
19
|
//# sourceMappingURL=resolveRefType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolveRefType.js","sourceRoot":"","sources":["../../../src/utils/resolveRefType.ts"],"names":[],"mappings":";;;AAAA,qCAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"resolveRefType.js","sourceRoot":"","sources":["../../../src/utils/resolveRefType.ts"],"names":[],"mappings":";;;AAAA,qCAAkE;AAClE,4DAA8D;AAE9D;;GAEG;AACH,SAAgB,cAAc,CAAC,IAA4C;IACzE,IAAI,IAAA,eAAQ,EAAC,IAAI,CAAC,EAAE;QAClB,OAAO,IAAI,CAAC;KACb;IAED,IAAI,CAAC,IAAA,cAAO,EAAC,IAAI,CAAC,EAAE;QAClB,IAAI,GAAI,IAAY,EAAE,CAAC;KACxB;IAED,OAAO,YAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,kCAAmB,CAAC,IAAI,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC;AACnE,CAAC;AAVD,wCAUC"}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.applySchemaOptions = exports.buildPreHook = exports.schemaOptions = void 0;
|
|
4
4
|
const core_1 = require("@tsed/core");
|
|
5
|
-
const
|
|
5
|
+
const constants_js_1 = require("../constants/constants.js");
|
|
6
6
|
/**
|
|
7
7
|
* @ignore
|
|
8
8
|
*/
|
|
9
9
|
function schemaOptions(target, options) {
|
|
10
10
|
const store = core_1.Store.from(target);
|
|
11
|
-
if (!store.has(
|
|
12
|
-
store.set(
|
|
11
|
+
if (!store.has(constants_js_1.MONGOOSE_SCHEMA_OPTIONS)) {
|
|
12
|
+
store.set(constants_js_1.MONGOOSE_SCHEMA_OPTIONS, {});
|
|
13
13
|
}
|
|
14
14
|
if (options) {
|
|
15
|
-
store.set(
|
|
15
|
+
store.set(constants_js_1.MONGOOSE_SCHEMA_OPTIONS, (0, core_1.deepMerge)(store.get(constants_js_1.MONGOOSE_SCHEMA_OPTIONS), options));
|
|
16
16
|
}
|
|
17
|
-
return store.get(
|
|
17
|
+
return store.get(constants_js_1.MONGOOSE_SCHEMA_OPTIONS);
|
|
18
18
|
}
|
|
19
19
|
exports.schemaOptions = schemaOptions;
|
|
20
20
|
function mapHookArgs(hook) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaOptions.js","sourceRoot":"","sources":["../../../src/utils/schemaOptions.ts"],"names":[],"mappings":";;;AAAA,qCAA4C;AAE5C,
|
|
1
|
+
{"version":3,"file":"schemaOptions.js","sourceRoot":"","sources":["../../../src/utils/schemaOptions.ts"],"names":[],"mappings":";;;AAAA,qCAA4C;AAE5C,4DAAkE;AAUlE;;GAEG;AACH,SAAgB,aAAa,CAAC,MAAW,EAAE,OAA+B;IACxE,MAAM,KAAK,GAAG,YAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,sCAAuB,CAAC,EAAE;QACvC,KAAK,CAAC,GAAG,CAAC,sCAAuB,EAAE,EAAE,CAAC,CAAC;KACxC;IAED,IAAI,OAAO,EAAE;QACX,KAAK,CAAC,GAAG,CAAC,sCAAuB,EAAE,IAAA,gBAAS,EAAC,KAAK,CAAC,GAAG,CAAC,sCAAuB,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;KAC5F;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AAE,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC;aAC1B,CAAC;YAED,MAAM,CAAC,GAAW,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;KACJ;IAED,IAAI,OAAO,CAAC,IAAI,EAAE;QAChB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAE,MAAM,CAAC,IAAY,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;KAC5E;AACH,CAAC;AAvBD,gDAuBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MongooseModule.js","sourceRoot":"","sources":["../../src/MongooseModule.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAS,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAC,MAAM,EAAY,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,oBAAoB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"MongooseModule.js","sourceRoot":"","sources":["../../src/MongooseModule.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,aAAa,EAAS,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAC,MAAM,EAAY,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAC,oBAAoB,EAAC,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAE9D;;GAEG;AAII,IAAM,cAAc,GAApB,MAAM,cAAc;IAEf;IACiB;IAF3B,YACU,eAAgC,EACf,QAAuB;QADxC,oBAAe,GAAf,eAAe,CAAiB;QACf,aAAQ,GAAR,QAAQ,CAAe;QAEhD,6EAA6E;QAC7E,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAM,OAAO,CAAC,CAAC;QAE9C,uBAAuB;QACvB,IAAI,KAAK,EAAE,QAAQ,EAAE;YACnB,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC;SAC/C;IACH,CAAC;IAED,OAAO,KAAyB,CAAC;IAEjC,UAAU;QACR,OAAO,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,CAAC;IACjD,CAAC;CACF,CAAA;AAnBY,cAAc;IAH1B,MAAM,CAAC;QACN,OAAO,EAAE,CAAC,oBAAoB,CAAC;KAChC,CAAC;IAIG,WAAA,aAAa,EAAE,CAAA;qCADS,eAAe;GAF/B,cAAc,CAmB1B;SAnBY,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto.js","sourceRoot":"","sources":["../../../src/decorators/auto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"auto.js","sourceRoot":"","sources":["../../../src/decorators/auto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,IAAI,CAAC,OAAgB,IAAI;IACvC,OAAO,cAAc,CAAC,EAAC,IAAI,EAAQ,CAAC,CAAC;AACvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicRef.js","sourceRoot":"","sources":["../../../src/decorators/dynamicRef.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,QAAQ,EAAE,UAAU,EAAQ,aAAa,EAAC,MAAM,YAAY,CAAC;AACzF,OAAO,EAAC,WAAW,EAAE,OAAO,EAAmB,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,cAAc,CAAC;AAC5F,OAAO,EAAC,MAAM,IAAI,cAAc,EAAC,MAAM,UAAU,CAAC;AAClD,OAAO,EAAC,eAAe,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"dynamicRef.js","sourceRoot":"","sources":["../../../src/decorators/dynamicRef.ts"],"names":[],"mappings":"AAAA,OAAO,E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WAAW,CAAC,KAAK,EAAE,EAAC,GAAG,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,EAAC,CAAC,CAAC;IACnE,CAAC,CAAC,EACF,WAAW,CAAC,CAAC,KAAU,EAAE,GAAG,EAAE,EAAE;QAC9B,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE;YAChB,OAAO,KAAK,CAAC,QAAQ,EAAE,CAAC;SACzB;QAED,OAAO,SAAS,CAAC,KAAK,EAAE,EAAC,GAAG,GAAG,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,EAAC,CAAC,CAAC;IACjE,CAAC,CAAC,EACF,KAAK,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,0BAA0B,CAAC,CAAC,WAAW,CAAC,sBAAsB,CAAC,EAAE,GAAG,KAAK,CAAC,CAC7E,CAAC;AACzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excludeIndexes.js","sourceRoot":"","sources":["../../../src/decorators/excludeIndexes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"excludeIndexes.js","sourceRoot":"","sources":["../../../src/decorators/excludeIndexes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,cAAc,CAAC,iBAA0B,IAAI;IAC3D,OAAO,cAAc,CAAC,EAAC,cAAc,EAAQ,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expires.js","sourceRoot":"","sources":["../../../src/decorators/expires.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"expires.js","sourceRoot":"","sources":["../../../src/decorators/expires.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,OAAO,CAAC,OAA+B;IACrD,OAAO,cAAc,CAAC,EAAC,OAAO,EAAQ,CAAC,CAAC;AAC1C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"immutable.js","sourceRoot":"","sources":["../../../src/decorators/immutable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,SAAS,CAAC,YAA0D,IAAI;IACtF,OAAO,cAAc,CAAC,EAAC,SAAS,EAAQ,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indexed.js","sourceRoot":"","sources":["../../../src/decorators/indexed.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"indexed.js","sourceRoot":"","sources":["../../../src/decorators/indexed.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,OAAO,CAAC,QAAyC,IAAI;IACnE,OAAO,cAAc,CAAC,EAAC,KAAK,EAAQ,CAAC,CAAC;AACxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lowercase.js","sourceRoot":"","sources":["../../../src/decorators/lowercase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"lowercase.js","sourceRoot":"","sources":["../../../src/decorators/lowercase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,aAAa,CAAC;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,SAAS,CAAC,YAAqB,IAAI;IACjD,OAAO,cAAc,CAAC,EAAC,SAAS,EAAQ,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/decorators/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAC,MAAM,YAAY,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAC,oBAAoB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../../src/decorators/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,aAAa,EAAC,MAAM,YAAY,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAC,kBAAkB,EAAC,MAAM,cAAc,CAAC;AAGhD,OAAO,EAAC,oBAAoB,EAAC,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAC,SAAS,EAAC,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,2BAA2B,CAAC;AAE5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,MAAM,UAAU,KAAK,CAAC,UAAgC,EAAE;IACtD,OAAO,aAAa,CAAC,CAAC,MAAW,EAAE,EAAE;QACnC,MAAM,EAAC,KAAK,EAAE,cAAc,EAAC,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAE/D,OAAO,CAAC,kBAAkB,IAAI,kBAAkB,CAAC,OAAO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