@steroidsjs/nest 3.2.6 → 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/services/ReadService.d.ts +2 -1
- package/usecases/services/ReadService.js +3 -2
- package/usecases/services/ReadService.js.map +1 -1
- 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 +0 -26
- 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,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"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Repository } from '@steroidsjs/typeorm';
|
|
2
|
-
import { CrudRepository } from '../../../repositories/CrudRepository';
|
|
3
|
-
import { UserModel } from '../models/UserModel';
|
|
4
|
-
import { UserTable } from '../tables/UserTable';
|
|
5
|
-
export declare class UserRepository extends CrudRepository<UserModel> {
|
|
6
|
-
dbRepository: Repository<UserTable>;
|
|
7
|
-
protected modelClass: typeof UserModel;
|
|
8
|
-
constructor(dbRepository: Repository<UserTable>);
|
|
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.UserRepository = 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 UserModel_1 = require("../models/UserModel");
|
|
21
|
-
const UserTable_1 = require("../tables/UserTable");
|
|
22
|
-
let UserRepository = class UserRepository extends CrudRepository_1.CrudRepository {
|
|
23
|
-
constructor(dbRepository) {
|
|
24
|
-
super();
|
|
25
|
-
this.dbRepository = dbRepository;
|
|
26
|
-
this.modelClass = UserModel_1.UserModel;
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
UserRepository = __decorate([
|
|
30
|
-
(0, common_1.Injectable)(),
|
|
31
|
-
__param(0, (0, nest_typeorm_1.InjectRepository)(UserTable_1.UserTable)),
|
|
32
|
-
__metadata("design:paramtypes", [typeorm_1.Repository])
|
|
33
|
-
], UserRepository);
|
|
34
|
-
exports.UserRepository = UserRepository;
|
|
35
|
-
//# sourceMappingURL=UserRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserRepository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/repositories/UserRepository.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,11 +0,0 @@
|
|
|
1
|
-
import { TagModel } from '../models/TagModel';
|
|
2
|
-
import { UserSchema } from './UserSchema';
|
|
3
|
-
export declare class ArticleSchema {
|
|
4
|
-
id: number;
|
|
5
|
-
title: string;
|
|
6
|
-
shortTitle: string;
|
|
7
|
-
text: string;
|
|
8
|
-
createTime: Date;
|
|
9
|
-
tags: TagModel[];
|
|
10
|
-
creatorUser: UserSchema;
|
|
11
|
-
}
|
|
@@ -1,54 +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.ArticleSchema = void 0;
|
|
13
|
-
const ExtendField_1 = require("../../../decorators/fields/ExtendField");
|
|
14
|
-
const ArticleModel_1 = require("../models/ArticleModel");
|
|
15
|
-
const fields_1 = require("../../../decorators/fields");
|
|
16
|
-
const Computable_1 = require("../../../decorators/Computable");
|
|
17
|
-
const UserSchema_1 = require("./UserSchema");
|
|
18
|
-
class ArticleSchema {
|
|
19
|
-
}
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, ExtendField_1.ExtendField)(ArticleModel_1.ArticleModel),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], ArticleSchema.prototype, "id", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, ExtendField_1.ExtendField)(ArticleModel_1.ArticleModel, {
|
|
26
|
-
transform: ({ value }) => (value || '').toUpperCase(),
|
|
27
|
-
}),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], ArticleSchema.prototype, "title", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, fields_1.StringField)(),
|
|
32
|
-
(0, Computable_1.Computable)(({ item }) => (item.title || '').substr(0, 5)),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], ArticleSchema.prototype, "shortTitle", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, ExtendField_1.ExtendField)(ArticleModel_1.ArticleModel),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], ArticleSchema.prototype, "text", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, ExtendField_1.ExtendField)(ArticleModel_1.ArticleModel),
|
|
41
|
-
__metadata("design:type", Date)
|
|
42
|
-
], ArticleSchema.prototype, "createTime", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, ExtendField_1.ExtendField)(ArticleModel_1.ArticleModel),
|
|
45
|
-
__metadata("design:type", Array)
|
|
46
|
-
], ArticleSchema.prototype, "tags", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, ExtendField_1.ExtendField)(ArticleModel_1.ArticleModel, {
|
|
49
|
-
relationClass: () => UserSchema_1.UserSchema,
|
|
50
|
-
}),
|
|
51
|
-
__metadata("design:type", UserSchema_1.UserSchema)
|
|
52
|
-
], ArticleSchema.prototype, "creatorUser", void 0);
|
|
53
|
-
exports.ArticleSchema = ArticleSchema;
|
|
54
|
-
//# sourceMappingURL=ArticleSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArticleSchema.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/schemas/ArticleSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAmE;AACnE,yDAAoD;AAEpD,uDAAuD;AACvD,+DAA0D;AAC1D,6CAAwC;AAExC,MAAa,aAAa;CA0BzB;AAzBG;IAAC,IAAA,yBAAW,EAAC,2BAAY,CAAC;;yCACf;AAEX;IAAC,IAAA,yBAAW,EAAC,2BAAY,EAAE;QACvB,SAAS,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE;KACtD,CAAC;;4CACY;AAEd;IAAC,IAAA,oBAAW,GAAE;IACb,IAAA,uBAAU,EAAC,CAAC,EAAC,IAAI,EAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;;iDACrC;AAEnB;IAAC,IAAA,yBAAW,EAAC,2BAAY,CAAC;;2CACb;AAEb;IAAC,IAAA,yBAAW,EAAC,2BAAY,CAAC;8BACd,IAAI;iDAAC;AAEjB;IAAC,IAAA,yBAAW,EAAC,2BAAY,CAAC;;2CACT;AAEjB;IAAC,IAAA,yBAAW,EAAC,2BAAY,EAAE;QACvB,aAAa,EAAE,GAAG,EAAE,CAAC,uBAAU;KAClC,CAAC;8BACW,uBAAU;kDAAC;AAzB5B,sCA0BC"}
|
|
@@ -1,26 +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.FileSchema = void 0;
|
|
13
|
-
const ExtendField_1 = require("../../../decorators/fields/ExtendField");
|
|
14
|
-
const FileModel_1 = require("../models/FileModel");
|
|
15
|
-
class FileSchema {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ExtendField_1.ExtendField)(FileModel_1.FileModel),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], FileSchema.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, ExtendField_1.ExtendField)(FileModel_1.FileModel),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], FileSchema.prototype, "name", void 0);
|
|
25
|
-
exports.FileSchema = FileSchema;
|
|
26
|
-
//# sourceMappingURL=FileSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FileSchema.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/schemas/FileSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAmE;AACnE,mDAA8C;AAE9C,MAAa,UAAU;CAMtB;AALG;IAAC,IAAA,yBAAW,EAAC,qBAAS,CAAC;;sCACZ;AAEX;IAAC,IAAA,yBAAW,EAAC,qBAAS,CAAC;;wCACV;AALjB,gCAMC"}
|
|
@@ -1,30 +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.ImageSchema = void 0;
|
|
13
|
-
const ExtendField_1 = require("../../../decorators/fields/ExtendField");
|
|
14
|
-
const ImageModel_1 = require("../models/ImageModel");
|
|
15
|
-
class ImageSchema {
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, ExtendField_1.ExtendField)(ImageModel_1.ImageModel),
|
|
19
|
-
__metadata("design:type", Number)
|
|
20
|
-
], ImageSchema.prototype, "id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, ExtendField_1.ExtendField)(ImageModel_1.ImageModel),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], ImageSchema.prototype, "size", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, ExtendField_1.ExtendField)(ImageModel_1.ImageModel),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], ImageSchema.prototype, "url", void 0);
|
|
29
|
-
exports.ImageSchema = ImageSchema;
|
|
30
|
-
//# sourceMappingURL=ImageSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageSchema.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/schemas/ImageSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAmE;AACnE,qDAAgD;AAEhD,MAAa,WAAW;CASvB;AARG;IAAC,IAAA,yBAAW,EAAC,uBAAU,CAAC;;uCACb;AAEX;IAAC,IAAA,yBAAW,EAAC,uBAAU,CAAC;;yCACX;AAEb;IAAC,IAAA,yBAAW,EAAC,uBAAU,CAAC;;wCACZ;AARhB,kCASC"}
|
|
@@ -1,33 +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.UserInfoSchema = void 0;
|
|
13
|
-
const ExtendField_1 = require("../../../decorators/fields/ExtendField");
|
|
14
|
-
const UserInfoModel_1 = require("../models/UserInfoModel");
|
|
15
|
-
const FileSchema_1 = require("./FileSchema");
|
|
16
|
-
class UserInfoSchema {
|
|
17
|
-
}
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, ExtendField_1.ExtendField)(UserInfoModel_1.UserInfoModel),
|
|
20
|
-
__metadata("design:type", Number)
|
|
21
|
-
], UserInfoSchema.prototype, "id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, ExtendField_1.ExtendField)(UserInfoModel_1.UserInfoModel),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], UserInfoSchema.prototype, "passport", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, ExtendField_1.ExtendField)(UserInfoModel_1.UserInfoModel, {
|
|
28
|
-
relationClass: () => FileSchema_1.FileSchema,
|
|
29
|
-
}),
|
|
30
|
-
__metadata("design:type", FileSchema_1.FileSchema)
|
|
31
|
-
], UserInfoSchema.prototype, "passportScan", void 0);
|
|
32
|
-
exports.UserInfoSchema = UserInfoSchema;
|
|
33
|
-
//# sourceMappingURL=UserInfoSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfoSchema.js","sourceRoot":"","sources":["../../../../../src/infrastructure/tests/app/schemas/UserInfoSchema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wEAAmE;AACnE,2DAAsD;AACtD,6CAAwC;AAExC,MAAa,cAAc;CAW1B;AAVG;IAAC,IAAA,yBAAW,EAAC,6BAAa,CAAC;;0CAChB;AAEX;IAAC,IAAA,yBAAW,EAAC,6BAAa,CAAC;;gDACV;AAEjB;IAAC,IAAA,yBAAW,EAAC,6BAAa,EAAE;QACxB,aAAa,EAAE,GAAG,EAAE,CAAC,uBAAU;KAClC,CAAC;8BACY,uBAAU;oDAAC;AAV7B,wCAWC"}
|