mormati-mongoose 0.1.1
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/dist/const/const.provider.d.ts +1 -0
- package/dist/const/const.provider.js +5 -0
- package/dist/const/const.provider.js.map +1 -0
- package/dist/const/index.d.ts +1 -0
- package/dist/const/index.js +6 -0
- package/dist/const/index.js.map +1 -0
- package/dist/helper/index.d.ts +2 -0
- package/dist/helper/index.js +19 -0
- package/dist/helper/index.js.map +1 -0
- package/dist/helper/model/index.d.ts +4 -0
- package/dist/helper/model/index.js +21 -0
- package/dist/helper/model/index.js.map +1 -0
- package/dist/helper/model/model.dto.d.ts +18 -0
- package/dist/helper/model/model.dto.js +126 -0
- package/dist/helper/model/model.dto.js.map +1 -0
- package/dist/helper/model/model.method.d.ts +4 -0
- package/dist/helper/model/model.method.js +28 -0
- package/dist/helper/model/model.method.js.map +1 -0
- package/dist/helper/model/model.option.d.ts +3 -0
- package/dist/helper/model/model.option.js +6 -0
- package/dist/helper/model/model.option.js.map +1 -0
- package/dist/helper/model/model.schema.d.ts +29 -0
- package/dist/helper/model/model.schema.js +107 -0
- package/dist/helper/model/model.schema.js.map +1 -0
- package/dist/helper/query/index.d.ts +4 -0
- package/dist/helper/query/index.js +18 -0
- package/dist/helper/query/index.js.map +1 -0
- package/dist/helper/query/quer.type.d.ts +6 -0
- package/dist/helper/query/quer.type.js +3 -0
- package/dist/helper/query/quer.type.js.map +1 -0
- package/dist/helper/query/query.dto.d.ts +22 -0
- package/dist/helper/query/query.dto.js +29 -0
- package/dist/helper/query/query.dto.js.map +1 -0
- package/dist/helper/query/query.engine.d.ts +8 -0
- package/dist/helper/query/query.engine.js +253 -0
- package/dist/helper/query/query.engine.js.map +1 -0
- package/dist/helper/query/query.expression.d.ts +55 -0
- package/dist/helper/query/query.expression.js +57 -0
- package/dist/helper/query/query.expression.js.map +1 -0
- package/dist/helper/query/query.method.d.ts +21 -0
- package/dist/helper/query/query.method.js +106 -0
- package/dist/helper/query/query.method.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/modules/mongoose-connection/mongoose-config.service.d.ts +6 -0
- package/dist/modules/mongoose-connection/mongoose-config.service.js +45 -0
- package/dist/modules/mongoose-connection/mongoose-config.service.js.map +1 -0
- package/dist/modules/mongoose-connection/mongoose-connection.module.d.ts +5 -0
- package/dist/modules/mongoose-connection/mongoose-connection.module.js +38 -0
- package/dist/modules/mongoose-connection/mongoose-connection.module.js.map +1 -0
- package/dist/modules/mongoose-connection/mongoose-connection.type.d.ts +3 -0
- package/dist/modules/mongoose-connection/mongoose-connection.type.js +3 -0
- package/dist/modules/mongoose-connection/mongoose-connection.type.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +18 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var MongooseConnectionModule_1;
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.MongooseConnectionModule = void 0;
|
|
11
|
+
const common_1 = require("@nestjs/common");
|
|
12
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
13
|
+
const mongoose_config_service_1 = require("./mongoose-config.service");
|
|
14
|
+
let MongooseConnectionModule = MongooseConnectionModule_1 = class MongooseConnectionModule {
|
|
15
|
+
static forRootAsync(options) {
|
|
16
|
+
return {
|
|
17
|
+
module: MongooseConnectionModule_1,
|
|
18
|
+
imports: [
|
|
19
|
+
mongoose_1.MongooseModule.forRootAsync({
|
|
20
|
+
imports: [],
|
|
21
|
+
useClass: mongoose_config_service_1.MongodbConfigService,
|
|
22
|
+
})
|
|
23
|
+
],
|
|
24
|
+
providers: [
|
|
25
|
+
...options.providers
|
|
26
|
+
],
|
|
27
|
+
exports: [
|
|
28
|
+
...options.providers
|
|
29
|
+
],
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
exports.MongooseConnectionModule = MongooseConnectionModule;
|
|
34
|
+
exports.MongooseConnectionModule = MongooseConnectionModule = MongooseConnectionModule_1 = __decorate([
|
|
35
|
+
(0, common_1.Global)(),
|
|
36
|
+
(0, common_1.Module)({})
|
|
37
|
+
], MongooseConnectionModule);
|
|
38
|
+
//# sourceMappingURL=mongoose-connection.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongoose-connection.module.js","sourceRoot":"","sources":["../../../../../libs/mongoose/src/modules/mongoose-connection/mongoose-connection.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAA+D;AAC/D,+CAAkD;AAClD,uEAAiE;AAK1D,IAAM,wBAAwB,gCAA9B,MAAM,wBAAwB;IACjC,MAAM,CAAC,YAAY,CAAC,OAA8C;QAC9D,OAAO;YACH,MAAM,EAAE,0BAAwB;YAChC,OAAO,EAAE;gBACL,yBAAc,CAAC,YAAY,CAAC;oBACxB,OAAO,EAAE,EAAE;oBACX,QAAQ,EAAE,8CAAoB;iBACjC,CAAC;aACL;YACD,SAAS,EAAE;gBACP,GAAG,OAAO,CAAC,SAAS;aACvB;YACD,OAAO,EAAE;gBACL,GAAG,OAAO,CAAC,SAAS;aACvB;SACJ,CAAC;IACN,CAAC;CACJ,CAAA;AAlBY,4DAAwB;mCAAxB,wBAAwB;IAFpC,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,wBAAwB,CAkBpC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongoose-connection.type.js","sourceRoot":"","sources":["../../../../../libs/mongoose/src/modules/mongoose-connection/mongoose-connection.type.ts"],"names":[],"mappings":""}
|