nestjs-typeorm3-kit 0.1.6 → 0.1.7
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/helpers/index.d.ts +4 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +28 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/repository/config/types.d.ts +4 -1
- package/dist/repository/config/types.d.ts.map +1 -1
- package/dist/repository/config/types.js +20 -0
- package/dist/repository/config/types.js.map +1 -1
- package/dist/repository/index.d.ts +3 -3
- package/dist/repository/module/index.d.ts.map +1 -1
- package/dist/repository/module/index.js.map +1 -1
- package/package.json +2 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { INestApplication } from "@nestjs/common";
|
|
2
|
+
import { OpenAPIObject } from "@nestjs/swagger/dist/interfaces/open-api-spec.interface";
|
|
3
|
+
export declare const configSwaggerDocument: (app: INestApplication, document: OpenAPIObject, swaggerPath?: string) => void;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGlD,OAAO,EACL,aAAa,EAEd,MAAM,yDAAyD,CAAC;AAGjE,eAAO,MAAM,qBAAqB,GAChC,KAAK,gBAAgB,EACrB,UAAU,aAAa,EACvB,cAAa,MAAkB,SAsBhC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.configSwaggerDocument = void 0;
|
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
|
+
const class_validator_1 = require("class-validator");
|
|
6
|
+
const class_validator_jsonschema_1 = require("class-validator-jsonschema");
|
|
7
|
+
const configSwaggerDocument = (app, document, swaggerPath = "swagger") => {
|
|
8
|
+
const metadatas = (0, class_validator_1.getFromContainer)(class_validator_1.MetadataStorage)
|
|
9
|
+
.validationMetadatas;
|
|
10
|
+
const targetSchemas = document.components.schemas || {};
|
|
11
|
+
const schemasBinding = (0, class_validator_jsonschema_1.validationMetadatasToSchemas)(metadatas) || {};
|
|
12
|
+
Object.keys(schemasBinding).forEach((key) => {
|
|
13
|
+
const value = schemasBinding[key];
|
|
14
|
+
if (!targetSchemas[key]) {
|
|
15
|
+
Object.assign(targetSchemas, { key: value });
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
const targetValue = targetSchemas[key];
|
|
19
|
+
Object.assign(targetValue.properties, value.properties);
|
|
20
|
+
targetValue.required = value.required;
|
|
21
|
+
Object.assign(targetSchemas, { key: targetValue });
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
document.components.schemas = Object.assign({}, targetSchemas);
|
|
25
|
+
swagger_1.SwaggerModule.setup(swaggerPath, app, document);
|
|
26
|
+
};
|
|
27
|
+
exports.configSwaggerDocument = configSwaggerDocument;
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;AACA,6CAAgD;AAChD,qDAAoE;AAKpE,2EAA0E;AAEnE,MAAM,qBAAqB,GAAG,CACnC,GAAqB,EACrB,QAAuB,EACvB,cAAsB,SAAS,EAC/B,EAAE;IAEF,MAAM,SAAS,GAAI,IAAA,kCAAgB,EAAC,iCAAe,CAAS;SACzD,mBAAmB,CAAC;IACvB,MAAM,aAAa,GAAG,QAAQ,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC;IACxD,MAAM,cAAc,GAAG,IAAA,yDAA4B,EAAC,SAAS,CAAC,IAAI,EAAE,CAAC;IAErE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QAC1C,MAAM,KAAK,GAAG,cAAc,CAAC,GAAG,CAAkB,CAAC;QACnD,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACN,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,CAAkB,CAAC;YAExD,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;YACxD,WAAW,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;YACtC,MAAM,CAAC,MAAM,CAAC,aAAa,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC,CAAC;QACrD,CAAC;IACH,CAAC,CAAC,CAAC;IACH,QAAQ,CAAC,UAAU,CAAC,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;IAC/D,uBAAa,CAAC,KAAK,CAAC,WAAW,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC;AAClD,CAAC,CAAC;AAzBW,QAAA,qBAAqB,yBAyBhC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
1
|
+
export * from "./@types";
|
|
2
|
+
export * from "./controller";
|
|
3
|
+
export * from "./module";
|
|
4
|
+
export * from "./validate";
|
|
5
|
+
export * from "./common";
|
|
6
|
+
export * from "./repository";
|
|
7
|
+
export * from "./transaction";
|
|
8
|
+
export * from "./helpers";
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -21,4 +21,5 @@ __exportStar(require("./validate"), exports);
|
|
|
21
21
|
__exportStar(require("./common"), exports);
|
|
22
22
|
__exportStar(require("./repository"), exports);
|
|
23
23
|
__exportStar(require("./transaction"), exports);
|
|
24
|
+
__exportStar(require("./helpers"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B;AAC7B,2CAAyB;AACzB,6CAA2B;AAC3B,2CAAyB;AACzB,+CAA6B;AAC7B,gDAA8B;AAC9B,4CAA0B"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { EntityManager, EntityTarget, ObjectLiteral, QueryRunner, Repository as TypeOrmRepository } from
|
|
1
|
+
import { EntityManager, EntityTarget, FindOneOptions, ObjectLiteral, QueryRunner, Repository as TypeOrmRepository } from "typeorm";
|
|
2
2
|
export interface Repository extends Function {
|
|
3
3
|
new (target: EntityTarget<any>, manager: EntityManager, queryRunner?: QueryRunner): TypeOrmRepository<ObjectLiteral>;
|
|
4
4
|
}
|
|
5
|
+
export declare class RepositoryWrapper<Entity> extends TypeOrmRepository<Entity> {
|
|
6
|
+
findOne(options?: FindOneOptions<Entity>): Promise<Entity | null>;
|
|
7
|
+
}
|
|
5
8
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/repository/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,WAAW,EACX,UAAU,IAAI,iBAAiB,EAChC,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAW,SAAQ,QAAQ;IAC1C,KACE,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,EACzB,OAAO,EAAE,aAAa,EACtB,WAAW,CAAC,EAAE,WAAW,GACxB,iBAAiB,CAAC,aAAa,CAAC,CAAC;CACrC"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/repository/config/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,YAAY,EACZ,cAAc,EACd,aAAa,EACb,WAAW,EACX,UAAU,IAAI,iBAAiB,EAChC,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,UAAW,SAAQ,QAAQ;IAC1C,KACE,MAAM,EAAE,YAAY,CAAC,GAAG,CAAC,EACzB,OAAO,EAAE,aAAa,EACtB,WAAW,CAAC,EAAE,WAAW,GACxB,iBAAiB,CAAC,aAAa,CAAC,CAAC;CACrC;AAED,qBAAa,iBAAiB,CAAC,MAAM,CAAE,SAAQ,iBAAiB,CAAC,MAAM,CAAC;IACvD,OAAO,CACpB,OAAO,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,GAC/B,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC;CAoB1B"}
|
|
@@ -1,3 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepositoryWrapper = void 0;
|
|
4
|
+
const typeorm_1 = require("typeorm");
|
|
5
|
+
class RepositoryWrapper extends typeorm_1.Repository {
|
|
6
|
+
async findOne(options) {
|
|
7
|
+
const where = options === null || options === void 0 ? void 0 : options.where;
|
|
8
|
+
const primaryColumns = this.metadata.primaryColumns.map((col) => col.propertyName);
|
|
9
|
+
if (!where || typeof where !== "object") {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
for (const key of primaryColumns) {
|
|
13
|
+
if (where.hasOwnProperty(key)) {
|
|
14
|
+
if (where[key] === undefined) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return super.findOne(options);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.RepositoryWrapper = RepositoryWrapper;
|
|
3
23
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/repository/config/types.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/repository/config/types.ts"],"names":[],"mappings":";;;AAAA,qCAOiB;AAUjB,MAAa,iBAA0B,SAAQ,oBAAyB;IAC7D,KAAK,CAAC,OAAO,CACpB,OAAgC;QAEhC,MAAM,KAAK,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,CAAC;QAE7B,MAAM,cAAc,GAAG,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CACrD,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,YAAY,CAC1B,CAAC;QAEF,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;YACxC,OAAO,IAAI,CAAC;QACd,CAAC;QAED,KAAK,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;YACjC,IAAI,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC9B,IAAK,KAAa,CAAC,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;oBACtC,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAChC,CAAC;CACF;AAvBD,8CAuBC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export * from "./config";
|
|
2
|
+
export * from "./decorator";
|
|
3
|
+
export * from "./module";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/repository/module/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAY,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE/E,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/repository/module/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,cAAc,EAAY,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE/E,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAG7D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAOlD,MAAM,WAAW,0BAA0B;IACzC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,iBAAiB,CAAC;CACtD;AAED,MAAM,WAAW,2BAA2B;IAC1C,0BAA0B,IACtB,OAAO,CAAC,0BAA0B,CAAC,GACnC,0BAA0B,CAAC;CAChC;AAED,MAAM,WAAW,+BACf,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IACvC,UAAU,CAAC,EAAE,CACX,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,OAAO,CAAC,0BAA0B,CAAC,GAAG,0BAA0B,CAAC;IACtE,QAAQ,CAAC,EAAE,IAAI,CAAC,2BAA2B,CAAC,CAAC;IAC7C,WAAW,CAAC,EAAE,IAAI,CAAC,2BAA2B,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;CAChB;AAsBD,qBAAa,mBAAmB;IAI9B,MAAM,CAAC,UAAU,CACf,YAAY,EAAE,UAAU,EAAE,EAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,iBAAiB,GACnD,aAAa;WAQH,OAAO,CAClB,OAAO,EAAE,0BAA0B,GAClC,OAAO,CAAC,aAAa,CAAC;WAYZ,YAAY,CACvB,OAAO,EAAE,+BAA+B,GACvC,OAAO,CAAC,aAAa,CAAC;IAuBzB,OAAO,CAAC,MAAM,CAAC,oBAAoB;mBAmCd,cAAc;mBAiBd,gBAAgB;CAmBtC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/repository/module/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,6CAAqD;AAGrD,2CAA+E;AAE/E,0DAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","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AAE,CAAC;wBAClB,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;oBAC9B,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;CACF;AA7HD,kDA6HC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nestjs-typeorm3-kit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "NestJS utilities for TypeORM v0.3+",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -63,6 +63,7 @@
|
|
|
63
63
|
"@types/jest": "^30.0.0",
|
|
64
64
|
"class-transformer": "^0.5.1",
|
|
65
65
|
"class-validator": "^0.14.2",
|
|
66
|
+
"class-validator-jsonschema": "^5.0.2",
|
|
66
67
|
"eslint": "^9.29.0",
|
|
67
68
|
"fast-glob": "^3.3.3",
|
|
68
69
|
"jest": "^30.0.3",
|