@steroidsjs/nest 3.2.5 → 3.2.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/infrastructure/applications/console/ConsoleApplication.d.ts +2 -1
- package/infrastructure/applications/console/ConsoleApplication.js.map +1 -1
- package/infrastructure/applications/rest/RestApplication.d.ts +6 -2
- package/infrastructure/applications/rest/RestApplication.js +3 -0
- package/infrastructure/applications/rest/RestApplication.js.map +1 -1
- package/infrastructure/decorators/ApiOkAutocompleteResponse.d.ts +6 -0
- package/infrastructure/decorators/ApiOkAutocompleteResponse.js +30 -0
- package/infrastructure/decorators/ApiOkAutocompleteResponse.js.map +1 -0
- package/infrastructure/decorators/fields/EnumField.js +19 -7
- package/infrastructure/decorators/fields/EnumField.js.map +1 -1
- package/infrastructure/decorators/fields/EnumField.test.js +31 -0
- package/infrastructure/decorators/fields/EnumField.test.js.map +1 -0
- package/infrastructure/decorators/fields/JSONBField.js +1 -0
- package/infrastructure/decorators/fields/JSONBField.js.map +1 -1
- package/package.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/usecases/dtos/SearchInputDto.d.ts +2 -0
- package/usecases/dtos/SearchInputDto.js +19 -3
- package/usecases/dtos/SearchInputDto.js.map +1 -1
- package/usecases/services/ReadService.d.ts +13 -1
- package/usecases/services/ReadService.js +21 -1
- package/usecases/services/ReadService.js.map +1 -1
- package/usecases/useCases/AutocompleteSearch/AutoCompleteSearchUseCase.d.ts +10 -0
- package/usecases/useCases/AutocompleteSearch/AutoCompleteSearchUseCase.js +36 -0
- package/usecases/useCases/AutocompleteSearch/AutoCompleteSearchUseCase.js.map +1 -0
- package/usecases/useCases/AutocompleteSearch/dtos/AutocompleteBaseDto.d.ts +4 -0
- package/{infrastructure/tests/app/schemas/FileSchema.js → usecases/useCases/AutocompleteSearch/dtos/AutocompleteBaseDto.js} +13 -13
- package/usecases/useCases/AutocompleteSearch/dtos/AutocompleteBaseDto.js.map +1 -0
- package/usecases/useCases/AutocompleteSearch/dtos/AutocompleteBaseSchema.d.ts +9 -0
- package/usecases/useCases/AutocompleteSearch/dtos/AutocompleteBaseSchema.js +56 -0
- package/usecases/useCases/AutocompleteSearch/dtos/AutocompleteBaseSchema.js.map +1 -0
- package/infrastructure/tests/ModelTest.test.js +0 -146
- package/infrastructure/tests/ModelTest.test.js.map +0 -1
- package/infrastructure/tests/app/models/ArticleModel.d.ts +0 -15
- package/infrastructure/tests/app/models/ArticleModel.js +0 -79
- package/infrastructure/tests/app/models/ArticleModel.js.map +0 -1
- package/infrastructure/tests/app/models/CommentModel.d.ts +0 -11
- package/infrastructure/tests/app/models/CommentModel.js +0 -58
- package/infrastructure/tests/app/models/CommentModel.js.map +0 -1
- package/infrastructure/tests/app/models/FileModel.d.ts +0 -7
- package/infrastructure/tests/app/models/FileModel.js +0 -41
- package/infrastructure/tests/app/models/FileModel.js.map +0 -1
- package/infrastructure/tests/app/models/ImageModel.d.ts +0 -8
- package/infrastructure/tests/app/models/ImageModel.js +0 -45
- package/infrastructure/tests/app/models/ImageModel.js.map +0 -1
- package/infrastructure/tests/app/models/TagModel.d.ts +0 -4
- package/infrastructure/tests/app/models/TagModel.js +0 -25
- package/infrastructure/tests/app/models/TagModel.js.map +0 -1
- package/infrastructure/tests/app/models/UserInfoModel.d.ts +0 -10
- package/infrastructure/tests/app/models/UserInfoModel.js +0 -56
- package/infrastructure/tests/app/models/UserInfoModel.js.map +0 -1
- package/infrastructure/tests/app/models/UserModel.d.ts +0 -12
- package/infrastructure/tests/app/models/UserModel.js +0 -71
- package/infrastructure/tests/app/models/UserModel.js.map +0 -1
- package/infrastructure/tests/app/repositories/ArticleRepository.d.ts +0 -9
- package/infrastructure/tests/app/repositories/ArticleRepository.js +0 -35
- package/infrastructure/tests/app/repositories/ArticleRepository.js.map +0 -1
- package/infrastructure/tests/app/repositories/CommentRepository.d.ts +0 -9
- package/infrastructure/tests/app/repositories/CommentRepository.js +0 -35
- package/infrastructure/tests/app/repositories/CommentRepository.js.map +0 -1
- package/infrastructure/tests/app/repositories/FileRepository.d.ts +0 -9
- package/infrastructure/tests/app/repositories/FileRepository.js +0 -35
- package/infrastructure/tests/app/repositories/FileRepository.js.map +0 -1
- package/infrastructure/tests/app/repositories/ImageRepository.d.ts +0 -9
- package/infrastructure/tests/app/repositories/ImageRepository.js +0 -35
- package/infrastructure/tests/app/repositories/ImageRepository.js.map +0 -1
- package/infrastructure/tests/app/repositories/TagRepository.d.ts +0 -9
- package/infrastructure/tests/app/repositories/TagRepository.js +0 -35
- package/infrastructure/tests/app/repositories/TagRepository.js.map +0 -1
- package/infrastructure/tests/app/repositories/UserRepository.d.ts +0 -9
- package/infrastructure/tests/app/repositories/UserRepository.js +0 -35
- package/infrastructure/tests/app/repositories/UserRepository.js.map +0 -1
- package/infrastructure/tests/app/schemas/ArticleSchema.d.ts +0 -11
- package/infrastructure/tests/app/schemas/ArticleSchema.js +0 -54
- package/infrastructure/tests/app/schemas/ArticleSchema.js.map +0 -1
- package/infrastructure/tests/app/schemas/FileSchema.d.ts +0 -4
- package/infrastructure/tests/app/schemas/FileSchema.js.map +0 -1
- package/infrastructure/tests/app/schemas/ImageSchema.d.ts +0 -5
- package/infrastructure/tests/app/schemas/ImageSchema.js +0 -30
- package/infrastructure/tests/app/schemas/ImageSchema.js.map +0 -1
- package/infrastructure/tests/app/schemas/UserInfoSchema.d.ts +0 -6
- package/infrastructure/tests/app/schemas/UserInfoSchema.js +0 -33
- package/infrastructure/tests/app/schemas/UserInfoSchema.js.map +0 -1
- package/infrastructure/tests/app/schemas/UserSchema.d.ts +0 -8
- package/infrastructure/tests/app/schemas/UserSchema.js +0 -40
- package/infrastructure/tests/app/schemas/UserSchema.js.map +0 -1
- package/infrastructure/tests/app/services/ArticleService.d.ts +0 -12
- package/infrastructure/tests/app/services/ArticleService.js +0 -31
- package/infrastructure/tests/app/services/ArticleService.js.map +0 -1
- package/infrastructure/tests/app/services/CommentService.d.ts +0 -12
- package/infrastructure/tests/app/services/CommentService.js +0 -31
- package/infrastructure/tests/app/services/CommentService.js.map +0 -1
- package/infrastructure/tests/app/services/FileService.d.ts +0 -12
- package/infrastructure/tests/app/services/FileService.js +0 -31
- package/infrastructure/tests/app/services/FileService.js.map +0 -1
- package/infrastructure/tests/app/services/ImageService.d.ts +0 -12
- package/infrastructure/tests/app/services/ImageService.js +0 -31
- package/infrastructure/tests/app/services/ImageService.js.map +0 -1
- package/infrastructure/tests/app/services/TagService.d.ts +0 -12
- package/infrastructure/tests/app/services/TagService.js +0 -31
- package/infrastructure/tests/app/services/TagService.js.map +0 -1
- package/infrastructure/tests/app/services/UserService.d.ts +0 -12
- package/infrastructure/tests/app/services/UserService.js +0 -31
- package/infrastructure/tests/app/services/UserService.js.map +0 -1
- package/infrastructure/tests/app/tables/ArticleTable.d.ts +0 -3
- package/infrastructure/tests/app/tables/ArticleTable.js +0 -18
- package/infrastructure/tests/app/tables/ArticleTable.js.map +0 -1
- package/infrastructure/tests/app/tables/CommentTable.d.ts +0 -3
- package/infrastructure/tests/app/tables/CommentTable.js +0 -18
- package/infrastructure/tests/app/tables/CommentTable.js.map +0 -1
- package/infrastructure/tests/app/tables/FileTable.d.ts +0 -3
- package/infrastructure/tests/app/tables/FileTable.js +0 -18
- package/infrastructure/tests/app/tables/FileTable.js.map +0 -1
- package/infrastructure/tests/app/tables/ImageTable.d.ts +0 -3
- package/infrastructure/tests/app/tables/ImageTable.js +0 -18
- package/infrastructure/tests/app/tables/ImageTable.js.map +0 -1
- package/infrastructure/tests/app/tables/TagTable.d.ts +0 -3
- package/infrastructure/tests/app/tables/TagTable.js +0 -18
- package/infrastructure/tests/app/tables/TagTable.js.map +0 -1
- package/infrastructure/tests/app/tables/UserInfoTable.d.ts +0 -3
- package/infrastructure/tests/app/tables/UserInfoTable.js +0 -18
- package/infrastructure/tests/app/tables/UserInfoTable.js.map +0 -1
- package/infrastructure/tests/app/tables/UserTable.d.ts +0 -3
- package/infrastructure/tests/app/tables/UserTable.js +0 -18
- package/infrastructure/tests/app/tables/UserTable.js.map +0 -1
- package/infrastructure/tests/bootstrap.d.ts +0 -1
- package/infrastructure/tests/bootstrap.js +0 -55
- package/infrastructure/tests/bootstrap.js.map +0 -1
- /package/infrastructure/{tests/ModelTest.test.d.ts → decorators/fields/EnumField.test.d.ts} +0 -0
|
@@ -1,58 +0,0 @@
|
|
|
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 __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
|
-
exports.CommentModel = void 0;
|
|
13
|
-
const fields_1 = require("../../../decorators/fields");
|
|
14
|
-
const ArticleModel_1 = require("./ArticleModel");
|
|
15
|
-
const UserModel_1 = require("./UserModel");
|
|
16
|
-
class CommentModel {
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, fields_1.PrimaryKeyField)(),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], CommentModel.prototype, "id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, fields_1.StringField)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], CommentModel.prototype, "message", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, fields_1.RelationIdField)({
|
|
28
|
-
relationName: 'article',
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], CommentModel.prototype, "articleId", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, fields_1.RelationIdField)({
|
|
34
|
-
relationName: 'user',
|
|
35
|
-
}),
|
|
36
|
-
__metadata("design:type", Number)
|
|
37
|
-
], CommentModel.prototype, "userId", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, fields_1.CreateTimeField)(),
|
|
40
|
-
__metadata("design:type", Date)
|
|
41
|
-
], CommentModel.prototype, "createTime", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, fields_1.RelationField)({
|
|
44
|
-
type: 'ManyToOne',
|
|
45
|
-
relationClass: () => ArticleModel_1.ArticleModel,
|
|
46
|
-
}),
|
|
47
|
-
__metadata("design:type", ArticleModel_1.ArticleModel)
|
|
48
|
-
], CommentModel.prototype, "article", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, fields_1.RelationField)({
|
|
51
|
-
type: 'ManyToOne',
|
|
52
|
-
relationClass: () => UserModel_1.UserModel,
|
|
53
|
-
nullable: true,
|
|
54
|
-
}),
|
|
55
|
-
__metadata("design:type", UserModel_1.UserModel)
|
|
56
|
-
], CommentModel.prototype, "user", void 0);
|
|
57
|
-
exports.CommentModel = CommentModel;
|
|
58
|
-
//# sourceMappingURL=CommentModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommentModel.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/models/CommentModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAIoC;AACpC,iDAA4C;AAC5C,2CAAsC;AAEtC,MAAa,YAAY;CAiCxB;AAhCG;IAAC,IAAA,wBAAe,GAAE;;wCACP;AAEX;IAAC,IAAA,oBAAW,GAAE;;6CACE;AAEhB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,SAAS;KAC1B,CAAC;;+CACgB;AAElB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,MAAM;KACvB,CAAC;;4CACa;AAEf;IAAC,IAAA,wBAAe,GAAE;8BACN,IAAI;gDAAC;AAEjB;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,2BAAY;KACpC,CAAC;8BACO,2BAAY;6CAAC;AAEtB;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,qBAAS;QAC9B,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACI,qBAAS;0CAAC;AA/BpB,oCAiCC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
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 __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
|
-
exports.FileModel = void 0;
|
|
13
|
-
const fields_1 = require("../../../decorators/fields");
|
|
14
|
-
const ImageModel_1 = require("./ImageModel");
|
|
15
|
-
class FileModel {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, fields_1.PrimaryKeyField)(),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], FileModel.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, fields_1.StringField)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], FileModel.prototype, "name", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, fields_1.RelationField)({
|
|
27
|
-
type: 'OneToMany',
|
|
28
|
-
inverseSide: image => image.file,
|
|
29
|
-
relationClass: () => ImageModel_1.ImageModel,
|
|
30
|
-
}),
|
|
31
|
-
__metadata("design:type", Array)
|
|
32
|
-
], FileModel.prototype, "images", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, fields_1.RelationIdField)({
|
|
35
|
-
relationName: 'images',
|
|
36
|
-
isArray: true,
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", Array)
|
|
39
|
-
], FileModel.prototype, "imagesIds", void 0);
|
|
40
|
-
exports.FileModel = FileModel;
|
|
41
|
-
//# sourceMappingURL=FileModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileModel.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/models/FileModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAEoC;AACpC,6CAAwC;AAExC,MAAa,SAAS;CAmBrB;AAlBG;IAAC,IAAA,wBAAe,GAAE;;qCACN;AAEZ;IAAC,IAAA,oBAAW,GAAE;;uCACA;AAEd;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI;QAChC,aAAa,EAAE,GAAG,EAAE,CAAC,uBAAU;KAClC,CAAC;;yCACoB;AAEtB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,QAAQ;QACtB,OAAO,EAAE,IAAI;KAChB,CAAC;;4CACkB;AAlBxB,8BAmBC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
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 __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
|
-
exports.ImageModel = void 0;
|
|
13
|
-
const fields_1 = require("../../../decorators/fields");
|
|
14
|
-
const FileModel_1 = require("./FileModel");
|
|
15
|
-
class ImageModel {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, fields_1.PrimaryKeyField)(),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], ImageModel.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, fields_1.StringField)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ImageModel.prototype, "size", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, fields_1.StringField)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ImageModel.prototype, "url", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, fields_1.RelationField)({
|
|
31
|
-
type: 'ManyToOne',
|
|
32
|
-
relationClass: () => FileModel_1.FileModel,
|
|
33
|
-
nullable: true,
|
|
34
|
-
}),
|
|
35
|
-
__metadata("design:type", FileModel_1.FileModel)
|
|
36
|
-
], ImageModel.prototype, "file", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, fields_1.RelationIdField)({
|
|
39
|
-
relationName: 'file',
|
|
40
|
-
nullable: true,
|
|
41
|
-
}),
|
|
42
|
-
__metadata("design:type", Number)
|
|
43
|
-
], ImageModel.prototype, "fileId", void 0);
|
|
44
|
-
exports.ImageModel = ImageModel;
|
|
45
|
-
//# sourceMappingURL=ImageModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageModel.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/models/ImageModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAGoC;AACpC,2CAAsC;AAEtC,MAAa,UAAU;CAsBtB;AArBG;IAAC,IAAA,wBAAe,GAAE;;sCACN;AAEZ;IAAC,IAAA,oBAAW,GAAE;;wCACA;AAEd;IAAC,IAAA,oBAAW,GAAE;;uCACD;AAEb;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,qBAAS;QAC9B,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACK,qBAAS;wCAAC;AAEjB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,MAAM;QACpB,QAAQ,EAAE,IAAI;KACjB,CAAC;;0CACc;AArBpB,gCAsBC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
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 __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
|
-
exports.TagModel = void 0;
|
|
13
|
-
const fields_1 = require("../../../decorators/fields");
|
|
14
|
-
class TagModel {
|
|
15
|
-
}
|
|
16
|
-
__decorate([
|
|
17
|
-
(0, fields_1.PrimaryKeyField)(),
|
|
18
|
-
__metadata("design:type", Number)
|
|
19
|
-
], TagModel.prototype, "id", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, fields_1.StringField)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], TagModel.prototype, "title", void 0);
|
|
24
|
-
exports.TagModel = TagModel;
|
|
25
|
-
//# sourceMappingURL=TagModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagModel.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/models/TagModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAEmD;AAEnD,MAAa,QAAQ;CAMpB;AALG;IAAC,IAAA,wBAAe,GAAE;;oCACP;AAEX;IAAC,IAAA,oBAAW,GAAE;;uCACA;AALlB,4BAMC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
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 __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
|
-
exports.UserInfoModel = void 0;
|
|
13
|
-
const fields_1 = require("../../../decorators/fields");
|
|
14
|
-
const UserModel_1 = require("./UserModel");
|
|
15
|
-
const FileModel_1 = require("./FileModel");
|
|
16
|
-
class UserInfoModel {
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, fields_1.PrimaryKeyField)(),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], UserInfoModel.prototype, "id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, fields_1.StringField)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], UserInfoModel.prototype, "passport", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, fields_1.RelationIdField)({
|
|
28
|
-
relationName: 'passportScan',
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], UserInfoModel.prototype, "passportScanId", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, fields_1.RelationField)({
|
|
34
|
-
type: 'ManyToOne',
|
|
35
|
-
relationClass: () => FileModel_1.FileModel,
|
|
36
|
-
nullable: true,
|
|
37
|
-
}),
|
|
38
|
-
__metadata("design:type", FileModel_1.FileModel)
|
|
39
|
-
], UserInfoModel.prototype, "passportScan", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, fields_1.RelationIdField)({
|
|
42
|
-
relationName: 'user',
|
|
43
|
-
}),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], UserInfoModel.prototype, "userId", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, fields_1.RelationField)({
|
|
48
|
-
type: 'OneToOne',
|
|
49
|
-
relationClass: () => UserModel_1.UserModel,
|
|
50
|
-
isOwningSide: false,
|
|
51
|
-
nullable: true,
|
|
52
|
-
}),
|
|
53
|
-
__metadata("design:type", UserModel_1.UserModel)
|
|
54
|
-
], UserInfoModel.prototype, "user", void 0);
|
|
55
|
-
exports.UserInfoModel = UserInfoModel;
|
|
56
|
-
//# sourceMappingURL=UserInfoModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfoModel.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/models/UserInfoModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAGoC;AACpC,2CAAsC;AACtC,2CAAsC;AAEtC,MAAa,aAAa;CA+BzB;AA9BG;IAAC,IAAA,wBAAe,GAAE;;yCACP;AAEX;IAAC,IAAA,oBAAW,GAAE;;+CACG;AAEjB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,cAAc;KAC/B,CAAC;;qDACqB;AAEvB;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,qBAAS;QAC9B,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACY,qBAAS;mDAAC;AAExB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,MAAM;KACvB,CAAC;;6CACa;AAEf;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,GAAG,EAAE,CAAC,qBAAS;QAC9B,YAAY,EAAE,KAAK;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACI,qBAAS;2CAAC;AA9BpB,sCA+BC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { FileModel } from './FileModel';
|
|
2
|
-
import { UserInfoModel } from './UserInfoModel';
|
|
3
|
-
export declare class UserModel {
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
infoId: number;
|
|
7
|
-
info: UserInfoModel;
|
|
8
|
-
mainPhotoId: number;
|
|
9
|
-
mainPhoto: FileModel;
|
|
10
|
-
galleryPhotosIds: number[];
|
|
11
|
-
galleryPhotos: FileModel[];
|
|
12
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
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 __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
|
-
exports.UserModel = void 0;
|
|
13
|
-
const fields_1 = require("../../../decorators/fields");
|
|
14
|
-
const FileModel_1 = require("./FileModel");
|
|
15
|
-
const UserInfoModel_1 = require("./UserInfoModel");
|
|
16
|
-
class UserModel {
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, fields_1.PrimaryKeyField)(),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], UserModel.prototype, "id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, fields_1.StringField)(),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], UserModel.prototype, "name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, fields_1.RelationIdField)({
|
|
28
|
-
relationName: 'info',
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:type", Number)
|
|
31
|
-
], UserModel.prototype, "infoId", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, fields_1.RelationField)({
|
|
34
|
-
type: 'OneToOne',
|
|
35
|
-
relationClass: () => UserInfoModel_1.UserInfoModel,
|
|
36
|
-
isOwningSide: true,
|
|
37
|
-
nullable: true,
|
|
38
|
-
}),
|
|
39
|
-
__metadata("design:type", UserInfoModel_1.UserInfoModel)
|
|
40
|
-
], UserModel.prototype, "info", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, fields_1.RelationIdField)({
|
|
43
|
-
relationName: 'mainPhoto',
|
|
44
|
-
}),
|
|
45
|
-
__metadata("design:type", Number)
|
|
46
|
-
], UserModel.prototype, "mainPhotoId", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, fields_1.RelationField)({
|
|
49
|
-
type: 'ManyToOne',
|
|
50
|
-
relationClass: () => FileModel_1.FileModel,
|
|
51
|
-
nullable: true,
|
|
52
|
-
}),
|
|
53
|
-
__metadata("design:type", FileModel_1.FileModel)
|
|
54
|
-
], UserModel.prototype, "mainPhoto", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, fields_1.RelationIdField)({
|
|
57
|
-
relationName: 'galleryPhotos',
|
|
58
|
-
isArray: true,
|
|
59
|
-
}),
|
|
60
|
-
__metadata("design:type", Array)
|
|
61
|
-
], UserModel.prototype, "galleryPhotosIds", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, fields_1.RelationField)({
|
|
64
|
-
type: 'ManyToMany',
|
|
65
|
-
isOwningSide: true,
|
|
66
|
-
relationClass: () => FileModel_1.FileModel,
|
|
67
|
-
}),
|
|
68
|
-
__metadata("design:type", Array)
|
|
69
|
-
], UserModel.prototype, "galleryPhotos", void 0);
|
|
70
|
-
exports.UserModel = UserModel;
|
|
71
|
-
//# sourceMappingURL=UserModel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserModel.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/models/UserModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAGoC;AACpC,2CAAsC;AACtC,mDAA8C;AAE9C,MAAa,SAAS;CA4CrB;AA3CG;IAAC,IAAA,wBAAe,GAAE;;qCACP;AAEX;IAAC,IAAA,oBAAW,GAAE;;uCACD;AAEb;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,MAAM;KACvB,CAAC;;yCACa;AAEf;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,GAAG,EAAE,CAAC,6BAAa;QAClC,YAAY,EAAE,IAAI;QAClB,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACI,6BAAa;uCAAC;AAEpB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,WAAW;KAC5B,CAAC;;8CACkB;AAEpB;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,WAAW;QACjB,aAAa,EAAE,GAAG,EAAE,CAAC,qBAAS;QAC9B,QAAQ,EAAE,IAAI;KACjB,CAAC;8BACS,qBAAS;4CAAC;AAErB;IAAC,IAAA,wBAAe,EAAC;QACb,YAAY,EAAE,eAAe;QAC7B,OAAO,EAAE,IAAI;KAChB,CAAC;;mDACyB;AAE3B;IAAC,IAAA,sBAAa,EAAC;QACX,IAAI,EAAE,YAAY;QAClB,YAAY,EAAE,IAAI;QAClB,aAAa,EAAE,GAAG,EAAE,CAAC,qBAAS;KACjC,CAAC;;gDACyB;AA3C/B,8BA4CC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Repository } from '@steroidsjs/typeorm';
|
|
2
|
-
import { CrudRepository } from '../../../repositories/CrudRepository';
|
|
3
|
-
import { ArticleModel } from '../models/ArticleModel';
|
|
4
|
-
import { ArticleTable } from '../tables/ArticleTable';
|
|
5
|
-
export declare class ArticleRepository extends CrudRepository<ArticleModel> {
|
|
6
|
-
dbRepository: Repository<ArticleTable>;
|
|
7
|
-
protected modelClass: typeof ArticleModel;
|
|
8
|
-
constructor(dbRepository: Repository<ArticleTable>);
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ArticleRepository = void 0;
|
|
16
|
-
const typeorm_1 = require("@steroidsjs/typeorm");
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
const nest_typeorm_1 = require("@steroidsjs/nest-typeorm");
|
|
19
|
-
const CrudRepository_1 = require("../../../repositories/CrudRepository");
|
|
20
|
-
const ArticleModel_1 = require("../models/ArticleModel");
|
|
21
|
-
const ArticleTable_1 = require("../tables/ArticleTable");
|
|
22
|
-
let ArticleRepository = class ArticleRepository extends CrudRepository_1.CrudRepository {
|
|
23
|
-
constructor(dbRepository) {
|
|
24
|
-
super();
|
|
25
|
-
this.dbRepository = dbRepository;
|
|
26
|
-
this.modelClass = ArticleModel_1.ArticleModel;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
ArticleRepository = __decorate([
|
|
30
|
-
(0, common_1.Injectable)(),
|
|
31
|
-
__param(0, (0, nest_typeorm_1.InjectRepository)(ArticleTable_1.ArticleTable)),
|
|
32
|
-
__metadata("design:paramtypes", [typeorm_1.Repository])
|
|
33
|
-
], ArticleRepository);
|
|
34
|
-
exports.ArticleRepository = ArticleRepository;
|
|
35
|
-
//# sourceMappingURL=ArticleRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleRepository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/repositories/ArticleRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAA+C;AAC/C,2CAA0C;AAC1C,2DAA0D;AAC1D,yEAAoE;AACpE,yDAAoD;AACpD,yDAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+BAA4B;IAG/D,YAEW,YAAsC;QAE7C,KAAK,EAAE,CAAC;QAFD,iBAAY,GAAZ,YAAY,CAA0B;QAJvC,eAAU,GAAG,2BAAY,CAAC;IAOpC,CAAC;CACJ,CAAA;AATY,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAKJ,WAAA,IAAA,+BAAgB,EAAC,2BAAY,CAAC,CAAA;qCACV,oBAAU;GAL1B,iBAAiB,CAS7B;AATY,8CAAiB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Repository } from '@steroidsjs/typeorm';
|
|
2
|
-
import { CrudRepository } from '../../../repositories/CrudRepository';
|
|
3
|
-
import { CommentModel } from '../models/CommentModel';
|
|
4
|
-
import { CommentTable } from '../tables/CommentTable';
|
|
5
|
-
export declare class CommentRepository extends CrudRepository<CommentModel> {
|
|
6
|
-
dbRepository: Repository<CommentTable>;
|
|
7
|
-
protected modelClass: typeof CommentModel;
|
|
8
|
-
constructor(dbRepository: Repository<CommentTable>);
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.CommentRepository = void 0;
|
|
16
|
-
const typeorm_1 = require("@steroidsjs/typeorm");
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
const nest_typeorm_1 = require("@steroidsjs/nest-typeorm");
|
|
19
|
-
const CrudRepository_1 = require("../../../repositories/CrudRepository");
|
|
20
|
-
const CommentModel_1 = require("../models/CommentModel");
|
|
21
|
-
const CommentTable_1 = require("../tables/CommentTable");
|
|
22
|
-
let CommentRepository = class CommentRepository extends CrudRepository_1.CrudRepository {
|
|
23
|
-
constructor(dbRepository) {
|
|
24
|
-
super();
|
|
25
|
-
this.dbRepository = dbRepository;
|
|
26
|
-
this.modelClass = CommentModel_1.CommentModel;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
CommentRepository = __decorate([
|
|
30
|
-
(0, common_1.Injectable)(),
|
|
31
|
-
__param(0, (0, nest_typeorm_1.InjectRepository)(CommentTable_1.CommentTable)),
|
|
32
|
-
__metadata("design:paramtypes", [typeorm_1.Repository])
|
|
33
|
-
], CommentRepository);
|
|
34
|
-
exports.CommentRepository = CommentRepository;
|
|
35
|
-
//# sourceMappingURL=CommentRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommentRepository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/repositories/CommentRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAA+C;AAC/C,2CAA0C;AAC1C,2DAA0D;AAC1D,yEAAoE;AACpE,yDAAoD;AACpD,yDAAoD;AAG7C,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+BAA4B;IAG/D,YAEW,YAAsC;QAE7C,KAAK,EAAE,CAAC;QAFD,iBAAY,GAAZ,YAAY,CAA0B;QAJvC,eAAU,GAAG,2BAAY,CAAC;IAOpC,CAAC;CACJ,CAAA;AATY,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;IAKJ,WAAA,IAAA,+BAAgB,EAAC,2BAAY,CAAC,CAAA;qCACV,oBAAU;GAL1B,iBAAiB,CAS7B;AATY,8CAAiB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Repository } from '@steroidsjs/typeorm';
|
|
2
|
-
import { CrudRepository } from '../../../repositories/CrudRepository';
|
|
3
|
-
import { FileModel } from '../models/FileModel';
|
|
4
|
-
import { FileTable } from '../tables/FileTable';
|
|
5
|
-
export declare class FileRepository extends CrudRepository<FileModel> {
|
|
6
|
-
dbRepository: Repository<FileTable>;
|
|
7
|
-
protected modelClass: typeof FileModel;
|
|
8
|
-
constructor(dbRepository: Repository<FileTable>);
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.FileRepository = void 0;
|
|
16
|
-
const typeorm_1 = require("@steroidsjs/typeorm");
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
const nest_typeorm_1 = require("@steroidsjs/nest-typeorm");
|
|
19
|
-
const CrudRepository_1 = require("../../../repositories/CrudRepository");
|
|
20
|
-
const FileModel_1 = require("../models/FileModel");
|
|
21
|
-
const FileTable_1 = require("../tables/FileTable");
|
|
22
|
-
let FileRepository = class FileRepository extends CrudRepository_1.CrudRepository {
|
|
23
|
-
constructor(dbRepository) {
|
|
24
|
-
super();
|
|
25
|
-
this.dbRepository = dbRepository;
|
|
26
|
-
this.modelClass = FileModel_1.FileModel;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
FileRepository = __decorate([
|
|
30
|
-
(0, common_1.Injectable)(),
|
|
31
|
-
__param(0, (0, nest_typeorm_1.InjectRepository)(FileTable_1.FileTable)),
|
|
32
|
-
__metadata("design:paramtypes", [typeorm_1.Repository])
|
|
33
|
-
], FileRepository);
|
|
34
|
-
exports.FileRepository = FileRepository;
|
|
35
|
-
//# sourceMappingURL=FileRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileRepository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/repositories/FileRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAA+C;AAC/C,2CAA0C;AAC1C,2DAA0D;AAC1D,yEAAoE;AACpE,mDAA8C;AAC9C,mDAA8C;AAGvC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,+BAAyB;IAGzD,YAEW,YAAmC;QAE1C,KAAK,EAAE,CAAC;QAFD,iBAAY,GAAZ,YAAY,CAAuB;QAJpC,eAAU,GAAG,qBAAS,CAAC;IAOjC,CAAC;CACJ,CAAA;AATY,cAAc;IAD1B,IAAA,mBAAU,GAAE;IAKJ,WAAA,IAAA,+BAAgB,EAAC,qBAAS,CAAC,CAAA;qCACP,oBAAU;GAL1B,cAAc,CAS1B;AATY,wCAAc"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Repository } from '@steroidsjs/typeorm';
|
|
2
|
-
import { CrudRepository } from '../../../repositories/CrudRepository';
|
|
3
|
-
import { ImageModel } from '../models/ImageModel';
|
|
4
|
-
import { ImageTable } from '../tables/ImageTable';
|
|
5
|
-
export declare class ImageRepository extends CrudRepository<ImageModel> {
|
|
6
|
-
dbRepository: Repository<ImageTable>;
|
|
7
|
-
protected modelClass: typeof ImageModel;
|
|
8
|
-
constructor(dbRepository: Repository<ImageTable>);
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ImageRepository = void 0;
|
|
16
|
-
const typeorm_1 = require("@steroidsjs/typeorm");
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
const nest_typeorm_1 = require("@steroidsjs/nest-typeorm");
|
|
19
|
-
const CrudRepository_1 = require("../../../repositories/CrudRepository");
|
|
20
|
-
const ImageModel_1 = require("../models/ImageModel");
|
|
21
|
-
const ImageTable_1 = require("../tables/ImageTable");
|
|
22
|
-
let ImageRepository = class ImageRepository extends CrudRepository_1.CrudRepository {
|
|
23
|
-
constructor(dbRepository) {
|
|
24
|
-
super();
|
|
25
|
-
this.dbRepository = dbRepository;
|
|
26
|
-
this.modelClass = ImageModel_1.ImageModel;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
ImageRepository = __decorate([
|
|
30
|
-
(0, common_1.Injectable)(),
|
|
31
|
-
__param(0, (0, nest_typeorm_1.InjectRepository)(ImageTable_1.ImageTable)),
|
|
32
|
-
__metadata("design:paramtypes", [typeorm_1.Repository])
|
|
33
|
-
], ImageRepository);
|
|
34
|
-
exports.ImageRepository = ImageRepository;
|
|
35
|
-
//# sourceMappingURL=ImageRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageRepository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/repositories/ImageRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAA+C;AAC/C,2CAA0C;AAC1C,2DAA0D;AAC1D,yEAAoE;AACpE,qDAAgD;AAChD,qDAAgD;AAGzC,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+BAA0B;IAG3D,YAEW,YAAoC;QAE3C,KAAK,EAAE,CAAC;QAFD,iBAAY,GAAZ,YAAY,CAAwB;QAJrC,eAAU,GAAG,uBAAU,CAAC;IAOlC,CAAC;CACJ,CAAA;AATY,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAKJ,WAAA,IAAA,+BAAgB,EAAC,uBAAU,CAAC,CAAA;qCACR,oBAAU;GAL1B,eAAe,CAS3B;AATY,0CAAe"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Repository } from '@steroidsjs/typeorm';
|
|
2
|
-
import { CrudRepository } from '../../../repositories/CrudRepository';
|
|
3
|
-
import { TagModel } from '../models/TagModel';
|
|
4
|
-
import { TagTable } from '../tables/TagTable';
|
|
5
|
-
export declare class TagRepository extends CrudRepository<TagModel> {
|
|
6
|
-
dbRepository: Repository<TagTable>;
|
|
7
|
-
protected modelClass: typeof TagModel;
|
|
8
|
-
constructor(dbRepository: Repository<TagTable>);
|
|
9
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
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 __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.TagRepository = void 0;
|
|
16
|
-
const typeorm_1 = require("@steroidsjs/typeorm");
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
const nest_typeorm_1 = require("@steroidsjs/nest-typeorm");
|
|
19
|
-
const CrudRepository_1 = require("../../../repositories/CrudRepository");
|
|
20
|
-
const TagModel_1 = require("../models/TagModel");
|
|
21
|
-
const TagTable_1 = require("../tables/TagTable");
|
|
22
|
-
let TagRepository = class TagRepository extends CrudRepository_1.CrudRepository {
|
|
23
|
-
constructor(dbRepository) {
|
|
24
|
-
super();
|
|
25
|
-
this.dbRepository = dbRepository;
|
|
26
|
-
this.modelClass = TagModel_1.TagModel;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
TagRepository = __decorate([
|
|
30
|
-
(0, common_1.Injectable)(),
|
|
31
|
-
__param(0, (0, nest_typeorm_1.InjectRepository)(TagTable_1.TagTable)),
|
|
32
|
-
__metadata("design:paramtypes", [typeorm_1.Repository])
|
|
33
|
-
], TagRepository);
|
|
34
|
-
exports.TagRepository = TagRepository;
|
|
35
|
-
//# sourceMappingURL=TagRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TagRepository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/repositories/TagRepository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iDAA+C;AAC/C,2CAA0C;AAC1C,2DAA0D;AAC1D,yEAAoE;AACpE,iDAA4C;AAC5C,iDAA4C;AAGrC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,+BAAwB;IAGvD,YAEW,YAAkC;QAEzC,KAAK,EAAE,CAAC;QAFD,iBAAY,GAAZ,YAAY,CAAsB;QAJnC,eAAU,GAAG,mBAAQ,CAAC;IAOhC,CAAC;CACJ,CAAA;AATY,aAAa;IADzB,IAAA,mBAAU,GAAE;IAKJ,WAAA,IAAA,+BAAgB,EAAC,mBAAQ,CAAC,CAAA;qCACN,oBAAU;GAL1B,aAAa,CASzB;AATY,sCAAa"}
|