@steroidsjs/nest 4.3.0 → 4.4.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/infrastructure/adapters/QueryAdapterTypeORM.js +2 -1
- package/infrastructure/adapters/QueryAdapterTypeORM.js.map +1 -1
- package/infrastructure/applications/rest/IRestAppModuleConfig.d.ts +4 -0
- package/infrastructure/applications/rest/RestApplication.d.ts +5 -0
- package/infrastructure/applications/rest/RestApplication.js +9 -0
- package/infrastructure/applications/rest/RestApplication.js.map +1 -1
- package/infrastructure/decorators/Transform.d.ts +2 -2
- package/infrastructure/decorators/fields/BaseField.d.ts +15 -47
- package/infrastructure/decorators/fields/BaseField.js +36 -105
- package/infrastructure/decorators/fields/BaseField.js.map +1 -1
- package/infrastructure/decorators/fields/BooleanField.js +1 -1
- package/infrastructure/decorators/fields/BooleanField.js.map +1 -1
- package/infrastructure/decorators/fields/ComputableField.js +0 -1
- package/infrastructure/decorators/fields/ComputableField.js.map +1 -1
- package/infrastructure/decorators/fields/CoordinateField.js +1 -1
- package/infrastructure/decorators/fields/CoordinateField.js.map +1 -1
- package/infrastructure/decorators/fields/CreateTimeField.js +1 -1
- package/infrastructure/decorators/fields/CreateTimeField.js.map +1 -1
- package/infrastructure/decorators/fields/DateField.js +1 -1
- package/infrastructure/decorators/fields/DateField.js.map +1 -1
- package/infrastructure/decorators/fields/DateTimeField.js +2 -2
- package/infrastructure/decorators/fields/DateTimeField.js.map +1 -1
- package/infrastructure/decorators/fields/DecimalField.js +1 -1
- package/infrastructure/decorators/fields/DecimalField.js.map +1 -1
- package/infrastructure/decorators/fields/DecimalNumberField.js +1 -1
- package/infrastructure/decorators/fields/DecimalNumberField.js.map +1 -1
- package/infrastructure/decorators/fields/DeleteDateField.js +1 -1
- package/infrastructure/decorators/fields/DeleteDateField.js.map +1 -1
- package/infrastructure/decorators/fields/EmailField.js +1 -1
- package/infrastructure/decorators/fields/EmailField.js.map +1 -1
- package/infrastructure/decorators/fields/EnumField.js +1 -1
- package/infrastructure/decorators/fields/EnumField.js.map +1 -1
- package/infrastructure/decorators/fields/FileField.js +1 -1
- package/infrastructure/decorators/fields/FileField.js.map +1 -1
- package/infrastructure/decorators/fields/GeometryField.d.ts +2 -0
- package/infrastructure/decorators/fields/GeometryField.js +2 -1
- package/infrastructure/decorators/fields/GeometryField.js.map +1 -1
- package/infrastructure/decorators/fields/HtmlField.js +1 -1
- package/infrastructure/decorators/fields/HtmlField.js.map +1 -1
- package/infrastructure/decorators/fields/IntegerField.js +1 -1
- package/infrastructure/decorators/fields/IntegerField.js.map +1 -1
- package/infrastructure/decorators/fields/JSONBField.d.ts +4 -1
- package/infrastructure/decorators/fields/JSONBField.js +2 -2
- package/infrastructure/decorators/fields/JSONBField.js.map +1 -1
- package/infrastructure/decorators/fields/PasswordField.js +1 -1
- package/infrastructure/decorators/fields/PasswordField.js.map +1 -1
- package/infrastructure/decorators/fields/PhoneField.js +1 -1
- package/infrastructure/decorators/fields/PhoneField.js.map +1 -1
- package/infrastructure/decorators/fields/PrimaryKeyField.js +1 -1
- package/infrastructure/decorators/fields/PrimaryKeyField.js.map +1 -1
- package/infrastructure/decorators/fields/RelationField.d.ts +6 -4
- package/infrastructure/decorators/fields/RelationField.js +5 -8
- package/infrastructure/decorators/fields/RelationField.js.map +1 -1
- package/infrastructure/decorators/fields/RelationIdField.js +1 -1
- package/infrastructure/decorators/fields/RelationIdField.js.map +1 -1
- package/infrastructure/decorators/fields/StringField.js +1 -1
- package/infrastructure/decorators/fields/StringField.js.map +1 -1
- package/infrastructure/decorators/fields/TextField.js +1 -1
- package/infrastructure/decorators/fields/TextField.js.map +1 -1
- package/infrastructure/decorators/fields/TimeField.js +1 -1
- package/infrastructure/decorators/fields/TimeField.js.map +1 -1
- package/infrastructure/decorators/fields/UidField.js +1 -1
- package/infrastructure/decorators/fields/UidField.js.map +1 -1
- package/infrastructure/decorators/fields/UpdateTimeField.js +1 -1
- package/infrastructure/decorators/fields/UpdateTimeField.js.map +1 -1
- package/infrastructure/decorators/fields/helpers/InternalFieldMetadataHelpers.d.ts +27 -0
- package/infrastructure/decorators/fields/helpers/InternalFieldMetadataHelpers.js +104 -0
- package/infrastructure/decorators/fields/helpers/InternalFieldMetadataHelpers.js.map +1 -0
- package/infrastructure/decorators/typeorm/TypeOrmDecoratorFactory.d.ts +3 -2
- package/infrastructure/decorators/typeorm/TypeOrmDecoratorFactory.js.map +1 -1
- package/infrastructure/decorators/typeorm/TypeOrmTableFromModel.js.map +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmBooleanField/index.js +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmBooleanField/index.js.map +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmUidField/index.js +1 -1
- package/infrastructure/decorators/typeorm/fields/TypeOrmUidField/index.js.map +1 -1
- package/infrastructure/pipes/CreateDtoPipe.d.ts +5 -1
- package/infrastructure/pipes/CreateDtoPipe.js +23 -4
- package/infrastructure/pipes/CreateDtoPipe.js.map +1 -1
- package/infrastructure/pipes/CreateDtoPipe.test.d.ts +1 -0
- package/infrastructure/pipes/CreateDtoPipe.test.js +98 -0
- package/infrastructure/pipes/CreateDtoPipe.test.js.map +1 -0
- package/package.json +5 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/usecases/base/SearchQuery.d.ts +11 -0
- package/usecases/base/SearchQuery.js +28 -2
- package/usecases/base/SearchQuery.js.map +1 -1
- package/usecases/base/SearchQuery.test.d.ts +1 -0
- package/usecases/base/SearchQuery.test.js +102 -0
- package/usecases/base/SearchQuery.test.js.map +1 -0
- package/usecases/helpers/DataMapper.js +4 -2
- package/usecases/helpers/DataMapper.js.map +1 -1
- package/usecases/helpers/getMetaRelationsFromObject.js +3 -2
- package/usecases/helpers/getMetaRelationsFromObject.js.map +1 -1
- package/usecases/utils/wrapInDoubleQuotes.d.ts +1 -0
- package/usecases/utils/wrapInDoubleQuotes.js +15 -0
- package/usecases/utils/wrapInDoubleQuotes.js.map +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/decorators/typeorm/fields/TypeOrmBooleanField/index.ts"],"names":[],"mappings":";;AAAA,iDAA2C;AAG3C,kBAAe,CAAC,OAA0B,EAAE,EAAE;;IAAC,OAAA;QAC3C,IAAA,gBAAM,EAAC;YACH,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/decorators/typeorm/fields/TypeOrmBooleanField/index.ts"],"names":[],"mappings":";;AAAA,iDAA2C;AAG3C,kBAAe,CAAC,OAA0B,EAAE,EAAE;;IAAC,OAAA;QAC3C,IAAA,gBAAM,EAAC;YACH,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,MAAA,OAAO,CAAC,YAAY,mCAAI,KAAK;YACtC,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,mCAAI,KAAK;SACtC,CAAC;KACL,CAAA;CAAA,CAAC"}
|
|
@@ -4,7 +4,7 @@ const typeorm_1 = require("@steroidsjs/typeorm");
|
|
|
4
4
|
const TypeOrmUidBehaviour_1 = require("./TypeOrmUidBehaviour");
|
|
5
5
|
exports.default = (options) => [
|
|
6
6
|
(0, typeorm_1.Column)({
|
|
7
|
-
type:
|
|
7
|
+
type: 'varchar',
|
|
8
8
|
length: 36,
|
|
9
9
|
default: null,
|
|
10
10
|
update: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/decorators/typeorm/fields/TypeOrmUidField/index.ts"],"names":[],"mappings":";;AAAA,iDAA2C;AAC3C,+DAA0D;AAG1D,kBAAe,CAAC,OAA0B,EAAE,EAAE,CAAC;IAC3C,IAAA,gBAAM,EAAC;QACH,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/infrastructure/decorators/typeorm/fields/TypeOrmUidField/index.ts"],"names":[],"mappings":";;AAAA,iDAA2C;AAC3C,+DAA0D;AAG1D,kBAAe,CAAC,OAA0B,EAAE,EAAE,CAAC;IAC3C,IAAA,gBAAM,EAAC;QACH,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,KAAK;KAChB,CAAC;IACF,yCAAmB;CACtB,CAAC"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { ArgumentMetadata, PipeTransform } from '@nestjs/common';
|
|
2
|
+
import { IType } from '../../usecases/interfaces/IType';
|
|
2
3
|
export declare class CreateDtoPipe implements PipeTransform<any> {
|
|
3
|
-
|
|
4
|
+
private readonly itemMetatype?;
|
|
5
|
+
constructor(itemMetatype?: IType);
|
|
6
|
+
transform(value: unknown, metadata: ArgumentMetadata): Promise<unknown>;
|
|
7
|
+
protected createDto(metatype: IType, value: unknown): unknown;
|
|
4
8
|
}
|
|
@@ -5,6 +5,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.CreateDtoPipe = void 0;
|
|
10
13
|
const common_1 = require("@nestjs/common");
|
|
@@ -12,17 +15,33 @@ const DataMapper_1 = require("../../usecases/helpers/DataMapper");
|
|
|
12
15
|
const BaseField_1 = require("../decorators/fields/BaseField");
|
|
13
16
|
const class_transformer_1 = require("class-transformer");
|
|
14
17
|
let CreateDtoPipe = class CreateDtoPipe {
|
|
18
|
+
constructor(itemMetatype) {
|
|
19
|
+
this.itemMetatype = itemMetatype;
|
|
20
|
+
}
|
|
15
21
|
async transform(value, metadata) {
|
|
22
|
+
const metatype = this.itemMetatype || metadata.metatype;
|
|
23
|
+
// pipe не знает тип элементов массива.
|
|
24
|
+
// Если он вызовет createDto(Array, value), то испортит value, поэтому value пропускается без изменений
|
|
25
|
+
if (!this.itemMetatype && metadata.metatype === Array) {
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
if (Array.isArray(value)) {
|
|
29
|
+
return value.map(item => this.createDto(metatype, item));
|
|
30
|
+
}
|
|
31
|
+
return this.createDto(metatype, value);
|
|
32
|
+
}
|
|
33
|
+
createDto(metatype, value) {
|
|
16
34
|
// Оставляем plainToInstance для конвертации значений 'false' -> false, '10' -> 10, ...
|
|
17
|
-
value = (0, class_transformer_1.plainToInstance)(
|
|
18
|
-
if ((0, BaseField_1.isMetaClass)(
|
|
19
|
-
value = DataMapper_1.DataMapper.create(
|
|
35
|
+
value = (0, class_transformer_1.plainToInstance)(metatype, value);
|
|
36
|
+
if ((0, BaseField_1.isMetaClass)(metatype)) {
|
|
37
|
+
value = DataMapper_1.DataMapper.create(metatype, value);
|
|
20
38
|
}
|
|
21
39
|
return value;
|
|
22
40
|
}
|
|
23
41
|
};
|
|
24
42
|
CreateDtoPipe = __decorate([
|
|
25
|
-
(0, common_1.Injectable)()
|
|
43
|
+
(0, common_1.Injectable)(),
|
|
44
|
+
__metadata("design:paramtypes", [Object])
|
|
26
45
|
], CreateDtoPipe);
|
|
27
46
|
exports.CreateDtoPipe = CreateDtoPipe;
|
|
28
47
|
//# sourceMappingURL=CreateDtoPipe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateDtoPipe.js","sourceRoot":"","sources":["../../../src/infrastructure/pipes/CreateDtoPipe.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CreateDtoPipe.js","sourceRoot":"","sources":["../../../src/infrastructure/pipes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(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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const CreateDtoPipe_1 = require("./CreateDtoPipe");
|
|
13
|
+
const fields_1 = require("../decorators/fields");
|
|
14
|
+
class PipeNestedDto {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, fields_1.IntegerField)(),
|
|
18
|
+
__metadata("design:type", Number)
|
|
19
|
+
], PipeNestedDto.prototype, "id", void 0);
|
|
20
|
+
class PipeDto {
|
|
21
|
+
}
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, fields_1.IntegerField)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], PipeDto.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, fields_1.StringField)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PipeDto.prototype, "title", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, fields_1.RelationField)({
|
|
32
|
+
type: 'ManyToOne',
|
|
33
|
+
relationClass: () => PipeNestedDto,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", PipeNestedDto)
|
|
36
|
+
], PipeDto.prototype, "nested", void 0);
|
|
37
|
+
const createMetadata = (metatype) => ({
|
|
38
|
+
type: 'body',
|
|
39
|
+
metatype,
|
|
40
|
+
data: undefined,
|
|
41
|
+
});
|
|
42
|
+
describe('CreateDtoPipe', () => {
|
|
43
|
+
it('creates DTO instance for plain object', async () => {
|
|
44
|
+
const result = await new CreateDtoPipe_1.CreateDtoPipe().transform({
|
|
45
|
+
id: '10',
|
|
46
|
+
title: 'First',
|
|
47
|
+
nested: {
|
|
48
|
+
id: '20',
|
|
49
|
+
},
|
|
50
|
+
}, createMetadata(PipeDto));
|
|
51
|
+
expect(result).toBeInstanceOf(PipeDto);
|
|
52
|
+
expect(result.id).toBe(10);
|
|
53
|
+
expect(result.title).toBe('First');
|
|
54
|
+
expect(result.nested).toBeInstanceOf(PipeNestedDto);
|
|
55
|
+
expect(result.nested.id).toBe(20);
|
|
56
|
+
});
|
|
57
|
+
it('does not transform array in global pipe when item metatype is unknown', async () => {
|
|
58
|
+
const value = [
|
|
59
|
+
{
|
|
60
|
+
id: '10',
|
|
61
|
+
title: 'First',
|
|
62
|
+
},
|
|
63
|
+
];
|
|
64
|
+
const result = await new CreateDtoPipe_1.CreateDtoPipe().transform(value, createMetadata(Array));
|
|
65
|
+
expect(result).toBe(value);
|
|
66
|
+
});
|
|
67
|
+
it('creates DTO instances for array when item metatype is passed explicitly', async () => {
|
|
68
|
+
const globalPipe = new CreateDtoPipe_1.CreateDtoPipe();
|
|
69
|
+
const localPipe = new CreateDtoPipe_1.CreateDtoPipe(PipeDto);
|
|
70
|
+
const value = [
|
|
71
|
+
{
|
|
72
|
+
id: '10',
|
|
73
|
+
title: 'First',
|
|
74
|
+
nested: {
|
|
75
|
+
id: '20',
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: '30',
|
|
80
|
+
title: 'Second',
|
|
81
|
+
nested: {
|
|
82
|
+
id: '40',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
];
|
|
86
|
+
const valueAfterGlobalPipe = await globalPipe.transform(value, createMetadata(Array));
|
|
87
|
+
const result = await localPipe.transform(valueAfterGlobalPipe, createMetadata(Array));
|
|
88
|
+
expect(result).toHaveLength(2);
|
|
89
|
+
expect(result[0]).toBeInstanceOf(PipeDto);
|
|
90
|
+
expect(result[0].id).toBe(10);
|
|
91
|
+
expect(result[0].nested).toBeInstanceOf(PipeNestedDto);
|
|
92
|
+
expect(result[0].nested.id).toBe(20);
|
|
93
|
+
expect(result[1]).toBeInstanceOf(PipeDto);
|
|
94
|
+
expect(result[1].id).toBe(30);
|
|
95
|
+
expect(result[1].nested.id).toBe(40);
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=CreateDtoPipe.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CreateDtoPipe.test.js","sourceRoot":"","sources":["../../../src/infrastructure/pipes/CreateDtoPipe.test.ts"],"names":[],"mappings":";;;;;;;;;;;AACA,mDAA8C;AAC9C,iDAA8E;AAE9E,MAAM,aAAa;CAGlB;AAFG;IAAC,IAAA,qBAAY,GAAE;;yCACJ;AAGf,MAAM,OAAO;CAYZ;AAXG;IAAC,IAAA,qBAAY,GAAE;;mCACJ;AAEX;IAAC,IAAA,oBAAW,GAAE;;sCACA;AAEd;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,aAAa;KACrC,CAAC;8BACM,aAAa;uCAAC;AAG1B,MAAM,cAAc,GAAG,CAAC,QAAsC,EAAoB,EAAE,CAAC,CAAC;IAClF,IAAI,EAAE,MAAM;IACZ,QAAQ;IACR,IAAI,EAAE,SAAS;CAClB,CAAC,CAAC;AAEH,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,uCAAuC,EAAE,KAAK,IAAI,EAAE;QACnD,MAAM,MAAM,GAAG,MAAM,IAAI,6BAAa,EAAE,CAAC,SAAS,CAC9C;YACI,EAAE,EAAE,IAAI;YACR,KAAK,EAAE,OAAO;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6
6
|
"watch": "nps watch",
|
|
7
7
|
"build": "nps build",
|
|
8
8
|
"test": "nps test",
|
|
9
|
-
"test-unit": "jest --config jest.unit.config.ts"
|
|
9
|
+
"test-unit": "jest --config jest.unit.config.ts",
|
|
10
|
+
"postinstall": "jest --clearCache"
|
|
10
11
|
},
|
|
11
12
|
"description": "",
|
|
12
13
|
"main": "index.js",
|
|
@@ -27,6 +28,7 @@
|
|
|
27
28
|
"@supercharge/request-ip": "^1.2.0",
|
|
28
29
|
"body-parser": "^2.2.1",
|
|
29
30
|
"class-transformer": "^0.5.1",
|
|
31
|
+
"cookie-parser": "^1.4.7",
|
|
30
32
|
"date-fns": "^2.29.3",
|
|
31
33
|
"express": "^4.18.2",
|
|
32
34
|
"lodash": "^4.17.21",
|
|
@@ -57,6 +59,7 @@
|
|
|
57
59
|
"@steroidsjs/eslint-config": "2.1.2",
|
|
58
60
|
"@steroidsjs/nest-typeorm": "^10.0.3",
|
|
59
61
|
"@steroidsjs/typeorm": "^0.3.23",
|
|
62
|
+
"@types/cookie-parser": "^1.4.10",
|
|
60
63
|
"@types/jest": "^29.4.0",
|
|
61
64
|
"@types/lodash": "^4.17.23",
|
|
62
65
|
"@types/node": "^18.11.18",
|