@intelact/bright 0.9.76 → 0.9.77
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dtos/boost.dto.d.ts +0 -12
- package/lib/dtos/boost.dto.js +1 -50
- package/lib/dtos/boost.dto.js.map +1 -1
- package/lib/dtos/brand.dto.d.ts +0 -15
- package/lib/dtos/brand.dto.js +1 -46
- package/lib/dtos/brand.dto.js.map +1 -1
- package/lib/dtos/feedback.dto.d.ts +0 -9
- package/lib/dtos/feedback.dto.js +1 -28
- package/lib/dtos/feedback.dto.js.map +1 -1
- package/lib/dtos/general.dto.d.ts +3 -0
- package/lib/dtos/general.dto.js +10 -1
- package/lib/dtos/general.dto.js.map +1 -1
- package/lib/dtos/index.d.ts +0 -4
- package/lib/dtos/index.js +0 -4
- package/lib/dtos/index.js.map +1 -1
- package/lib/dtos/post.dto.d.ts +0 -22
- package/lib/dtos/post.dto.js +1 -65
- package/lib/dtos/post.dto.js.map +1 -1
- package/lib/dtos/promotion.dto.d.ts +0 -8
- package/lib/dtos/promotion.dto.js +1 -37
- package/lib/dtos/promotion.dto.js.map +1 -1
- package/lib/dtos/question.dto.d.ts +0 -19
- package/lib/dtos/question.dto.js +1 -62
- package/lib/dtos/question.dto.js.map +1 -1
- package/lib/dtos/search.dto.d.ts +12 -0
- package/lib/dtos/search.dto.js +72 -0
- package/lib/dtos/search.dto.js.map +1 -0
- package/lib/dtos/survey.dto.d.ts +0 -24
- package/lib/dtos/survey.dto.js +1 -90
- package/lib/dtos/survey.dto.js.map +1 -1
- package/lib/dtos/user.dto.d.ts +0 -3
- package/lib/dtos/user.dto.js +1 -10
- package/lib/dtos/user.dto.js.map +1 -1
- package/lib/enums/asset.enum.js.map +1 -1
- package/lib/enums/index.d.ts +0 -1
- package/lib/enums/index.js +0 -1
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/module.enum.d.ts +0 -19
- package/lib/enums/module.enum.js +1 -21
- package/lib/enums/module.enum.js.map +1 -1
- package/lib/enums/setting.enum.d.ts +2 -2
- package/lib/enums/setting.enum.js +2 -2
- package/lib/enums/tracks.enum.d.ts +13 -2
- package/lib/enums/tracks.enum.js +23 -11
- package/lib/enums/tracks.enum.js.map +1 -1
- package/lib/models/author.d.ts +6 -4
- package/lib/models/author.js +22 -18
- package/lib/models/author.js.map +1 -1
- package/lib/models/boost.d.ts +5 -6
- package/lib/models/boost.js +17 -23
- package/lib/models/boost.js.map +1 -1
- package/lib/models/brand.d.ts +3 -1
- package/lib/models/brand.js +23 -3
- package/lib/models/brand.js.map +1 -1
- package/lib/models/category.d.ts +2 -1
- package/lib/models/category.js +7 -5
- package/lib/models/category.js.map +1 -1
- package/lib/models/collection.d.ts +5 -5
- package/lib/models/collection.js +19 -18
- package/lib/models/collection.js.map +1 -1
- package/lib/models/feedback.d.ts +7 -2
- package/lib/models/feedback.js +35 -28
- package/lib/models/feedback.js.map +1 -1
- package/lib/models/index.d.ts +2 -1
- package/lib/models/index.js +2 -1
- package/lib/models/index.js.map +1 -1
- package/lib/models/log.d.ts +11 -0
- package/lib/models/log.js +16 -0
- package/lib/models/log.js.map +1 -0
- package/lib/models/metric.d.ts +20 -0
- package/lib/models/metric.js +186 -0
- package/lib/models/metric.js.map +1 -0
- package/lib/models/post.d.ts +21 -29
- package/lib/models/post.js +213 -242
- package/lib/models/post.js.map +1 -1
- package/lib/models/promotion.d.ts +7 -2
- package/lib/models/promotion.js +31 -3
- package/lib/models/promotion.js.map +1 -1
- package/lib/models/publisher.d.ts +7 -3
- package/lib/models/publisher.js +30 -14
- package/lib/models/publisher.js.map +1 -1
- package/lib/models/question.d.ts +20 -29
- package/lib/models/question.js +88 -174
- package/lib/models/question.js.map +1 -1
- package/lib/models/quote.d.ts +0 -1
- package/lib/models/quote.js +0 -6
- package/lib/models/quote.js.map +1 -1
- package/lib/models/survey.d.ts +10 -2
- package/lib/models/survey.js +51 -25
- package/lib/models/survey.js.map +1 -1
- package/lib/models/topic.d.ts +5 -1
- package/lib/models/topic.js +26 -10
- package/lib/models/topic.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/lib/dtos/boost.dto.d.ts
CHANGED
@@ -3,15 +3,3 @@ export declare class CreateBoostDto {
|
|
3
3
|
startDate: Date;
|
4
4
|
endDate: Date;
|
5
5
|
}
|
6
|
-
export declare class BoostTitleDto {
|
7
|
-
title: string;
|
8
|
-
}
|
9
|
-
export declare class BoostPeriodDto {
|
10
|
-
startDate: Date;
|
11
|
-
endDate: Date;
|
12
|
-
}
|
13
|
-
export declare class BoostParamsDto {
|
14
|
-
term: string;
|
15
|
-
startDate: Date;
|
16
|
-
endDate: Date;
|
17
|
-
}
|
package/lib/dtos/boost.dto.js
CHANGED
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.CreateBoostDto = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const class_validator_1 = require("class-validator");
|
15
15
|
class CreateBoostDto {
|
@@ -35,53 +35,4 @@ __decorate([
|
|
35
35
|
(0, class_transformer_1.Type)(() => Date),
|
36
36
|
__metadata("design:type", Date)
|
37
37
|
], CreateBoostDto.prototype, "endDate", void 0);
|
38
|
-
class BoostTitleDto {
|
39
|
-
title;
|
40
|
-
}
|
41
|
-
exports.BoostTitleDto = BoostTitleDto;
|
42
|
-
__decorate([
|
43
|
-
(0, class_validator_1.IsNotEmpty)(),
|
44
|
-
(0, class_validator_1.IsString)(),
|
45
|
-
__metadata("design:type", String)
|
46
|
-
], BoostTitleDto.prototype, "title", void 0);
|
47
|
-
class BoostPeriodDto {
|
48
|
-
startDate;
|
49
|
-
endDate;
|
50
|
-
}
|
51
|
-
exports.BoostPeriodDto = BoostPeriodDto;
|
52
|
-
__decorate([
|
53
|
-
(0, class_validator_1.IsNotEmpty)(),
|
54
|
-
(0, class_validator_1.IsDate)(),
|
55
|
-
(0, class_transformer_1.Type)(() => Date),
|
56
|
-
__metadata("design:type", Date)
|
57
|
-
], BoostPeriodDto.prototype, "startDate", void 0);
|
58
|
-
__decorate([
|
59
|
-
(0, class_validator_1.IsNotEmpty)(),
|
60
|
-
(0, class_validator_1.IsDate)(),
|
61
|
-
(0, class_transformer_1.Type)(() => Date),
|
62
|
-
__metadata("design:type", Date)
|
63
|
-
], BoostPeriodDto.prototype, "endDate", void 0);
|
64
|
-
class BoostParamsDto {
|
65
|
-
term;
|
66
|
-
startDate;
|
67
|
-
endDate;
|
68
|
-
}
|
69
|
-
exports.BoostParamsDto = BoostParamsDto;
|
70
|
-
__decorate([
|
71
|
-
(0, class_validator_1.IsOptional)(),
|
72
|
-
(0, class_validator_1.IsString)(),
|
73
|
-
__metadata("design:type", String)
|
74
|
-
], BoostParamsDto.prototype, "term", void 0);
|
75
|
-
__decorate([
|
76
|
-
(0, class_validator_1.IsOptional)(),
|
77
|
-
(0, class_validator_1.IsDate)(),
|
78
|
-
(0, class_transformer_1.Type)(() => Date),
|
79
|
-
__metadata("design:type", Date)
|
80
|
-
], BoostParamsDto.prototype, "startDate", void 0);
|
81
|
-
__decorate([
|
82
|
-
(0, class_validator_1.IsOptional)(),
|
83
|
-
(0, class_validator_1.IsDate)(),
|
84
|
-
(0, class_transformer_1.Type)(() => Date),
|
85
|
-
__metadata("design:type", Date)
|
86
|
-
], BoostParamsDto.prototype, "endDate", void 0);
|
87
38
|
//# sourceMappingURL=boost.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boost.dto.js","sourceRoot":"","sources":["../../src/dtos/boost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"boost.dto.js","sourceRoot":"","sources":["../../src/dtos/boost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA+D;AAE/D,MAAa,cAAc;IAI1B,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,wCAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;iDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;+CAAC"}
|
package/lib/dtos/brand.dto.d.ts
CHANGED
@@ -1,18 +1,3 @@
|
|
1
|
-
export declare class BrandNameDto {
|
2
|
-
name: string;
|
3
|
-
}
|
4
|
-
export declare class BrandSloganDto {
|
5
|
-
slogan: string;
|
6
|
-
}
|
7
|
-
export declare class BrandUrlDto {
|
8
|
-
url: string;
|
9
|
-
}
|
10
|
-
export declare class BrandEmailDto {
|
11
|
-
email: string;
|
12
|
-
}
|
13
|
-
export declare class BrandDescriptionDto {
|
14
|
-
description: string;
|
15
|
-
}
|
16
1
|
export declare class BrandSettingDto {
|
17
2
|
name: string;
|
18
3
|
value: string;
|
package/lib/dtos/brand.dto.js
CHANGED
@@ -9,53 +9,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.BrandSettingDto =
|
12
|
+
exports.BrandSettingDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
class BrandNameDto {
|
15
|
-
name;
|
16
|
-
}
|
17
|
-
exports.BrandNameDto = BrandNameDto;
|
18
|
-
__decorate([
|
19
|
-
(0, class_validator_1.IsOptional)(),
|
20
|
-
(0, class_validator_1.IsString)(),
|
21
|
-
__metadata("design:type", String)
|
22
|
-
], BrandNameDto.prototype, "name", void 0);
|
23
|
-
class BrandSloganDto {
|
24
|
-
slogan;
|
25
|
-
}
|
26
|
-
exports.BrandSloganDto = BrandSloganDto;
|
27
|
-
__decorate([
|
28
|
-
(0, class_validator_1.IsOptional)(),
|
29
|
-
(0, class_validator_1.IsString)(),
|
30
|
-
__metadata("design:type", String)
|
31
|
-
], BrandSloganDto.prototype, "slogan", void 0);
|
32
|
-
class BrandUrlDto {
|
33
|
-
url;
|
34
|
-
}
|
35
|
-
exports.BrandUrlDto = BrandUrlDto;
|
36
|
-
__decorate([
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
38
|
-
(0, class_validator_1.IsString)(),
|
39
|
-
__metadata("design:type", String)
|
40
|
-
], BrandUrlDto.prototype, "url", void 0);
|
41
|
-
class BrandEmailDto {
|
42
|
-
email;
|
43
|
-
}
|
44
|
-
exports.BrandEmailDto = BrandEmailDto;
|
45
|
-
__decorate([
|
46
|
-
(0, class_validator_1.IsOptional)(),
|
47
|
-
(0, class_validator_1.IsString)(),
|
48
|
-
__metadata("design:type", String)
|
49
|
-
], BrandEmailDto.prototype, "email", void 0);
|
50
|
-
class BrandDescriptionDto {
|
51
|
-
description;
|
52
|
-
}
|
53
|
-
exports.BrandDescriptionDto = BrandDescriptionDto;
|
54
|
-
__decorate([
|
55
|
-
(0, class_validator_1.IsOptional)(),
|
56
|
-
(0, class_validator_1.IsString)(),
|
57
|
-
__metadata("design:type", String)
|
58
|
-
], BrandDescriptionDto.prototype, "description", void 0);
|
59
14
|
class BrandSettingDto {
|
60
15
|
name;
|
61
16
|
value;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../src/dtos/brand.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,
|
1
|
+
{"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../src/dtos/brand.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAId,WAAW,CAAS;CACpB;AAjBD,0CAiBC;AAbA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS"}
|
@@ -3,16 +3,7 @@ export declare class CreateFeedbackDto {
|
|
3
3
|
name: string;
|
4
4
|
postType: PostType;
|
5
5
|
}
|
6
|
-
export declare class FeedbackNameDto {
|
7
|
-
name: string;
|
8
|
-
}
|
9
|
-
export declare class FeedbackDescriptionDto {
|
10
|
-
description: string;
|
11
|
-
}
|
12
6
|
export declare class FeedbackItemDto {
|
13
7
|
question: string;
|
14
8
|
multiple: boolean;
|
15
9
|
}
|
16
|
-
export declare class FeedbackOptionDto {
|
17
|
-
content: string;
|
18
|
-
}
|
package/lib/dtos/feedback.dto.js
CHANGED
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.FeedbackItemDto = exports.CreateFeedbackDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const enums_1 = require("../enums");
|
15
15
|
const class_transformer_1 = require("class-transformer");
|
@@ -28,24 +28,6 @@ __decorate([
|
|
28
28
|
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
29
29
|
__metadata("design:type", String)
|
30
30
|
], CreateFeedbackDto.prototype, "postType", void 0);
|
31
|
-
class FeedbackNameDto {
|
32
|
-
name;
|
33
|
-
}
|
34
|
-
exports.FeedbackNameDto = FeedbackNameDto;
|
35
|
-
__decorate([
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
37
|
-
(0, class_validator_1.IsString)(),
|
38
|
-
__metadata("design:type", String)
|
39
|
-
], FeedbackNameDto.prototype, "name", void 0);
|
40
|
-
class FeedbackDescriptionDto {
|
41
|
-
description;
|
42
|
-
}
|
43
|
-
exports.FeedbackDescriptionDto = FeedbackDescriptionDto;
|
44
|
-
__decorate([
|
45
|
-
(0, class_validator_1.IsOptional)(),
|
46
|
-
(0, class_validator_1.IsString)(),
|
47
|
-
__metadata("design:type", String)
|
48
|
-
], FeedbackDescriptionDto.prototype, "description", void 0);
|
49
31
|
class FeedbackItemDto {
|
50
32
|
question;
|
51
33
|
multiple;
|
@@ -62,13 +44,4 @@ __decorate([
|
|
62
44
|
(0, class_transformer_1.Type)(() => Boolean),
|
63
45
|
__metadata("design:type", Boolean)
|
64
46
|
], FeedbackItemDto.prototype, "multiple", void 0);
|
65
|
-
class FeedbackOptionDto {
|
66
|
-
content;
|
67
|
-
}
|
68
|
-
exports.FeedbackOptionDto = FeedbackOptionDto;
|
69
|
-
__decorate([
|
70
|
-
(0, class_validator_1.IsNotEmpty)(),
|
71
|
-
(0, class_validator_1.IsString)(),
|
72
|
-
__metadata("design:type", String)
|
73
|
-
], FeedbackOptionDto.prototype, "content", void 0);
|
74
47
|
//# sourceMappingURL=feedback.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/dtos/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,oCAAoC;AACpC,yDAAyC;AAEzC,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAIb,QAAQ,CAAW;CACnB;AATD,8CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;mDACE;AAGpB,MAAa,eAAe;IAI3B,
|
1
|
+
{"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/dtos/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,oCAAoC;AACpC,yDAAyC;AAEzC,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAIb,QAAQ,CAAW;CACnB;AATD,8CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;mDACE;AAGpB,MAAa,eAAe;IAI3B,QAAQ,CAAS;IAKjB,QAAQ,CAAU;CAClB;AAVD,0CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACF"}
|
package/lib/dtos/general.dto.js
CHANGED
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.UrlDto = exports.PeriodDto = exports.SortDto = exports.EmailDto = exports.ContentDto = exports.NameDto = exports.TitleDto = void 0;
|
12
|
+
exports.UrlDto = exports.PeriodDto = exports.SortDto = exports.PhoneDto = exports.EmailDto = exports.ContentDto = exports.NameDto = exports.TitleDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
15
15
|
class TitleDto {
|
@@ -48,6 +48,15 @@ __decorate([
|
|
48
48
|
(0, class_validator_1.IsEmail)(),
|
49
49
|
__metadata("design:type", String)
|
50
50
|
], EmailDto.prototype, "email", void 0);
|
51
|
+
class PhoneDto {
|
52
|
+
email;
|
53
|
+
}
|
54
|
+
exports.PhoneDto = PhoneDto;
|
55
|
+
__decorate([
|
56
|
+
(0, class_validator_1.IsNotEmpty)(),
|
57
|
+
(0, class_validator_1.IsPhoneNumber)(),
|
58
|
+
__metadata("design:type", String)
|
59
|
+
], PhoneDto.prototype, "email", void 0);
|
51
60
|
class SortDto {
|
52
61
|
ids;
|
53
62
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../src/dtos/general.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"general.dto.js","sourceRoot":"","sources":["../../src/dtos/general.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkH;AAClH,yDAAoD;AAGpD,MAAa,QAAQ;IAGpB,KAAK,CAAS;CACd;AAJD,4BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uCACG;AAGf,MAAa,OAAO;IAGnB,IAAI,CAAS;CACb;AAJD,0BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qCACE;AAGd,MAAa,UAAU;IAGtB,OAAO,CAAS;CAChB;AAJD,gCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACK;AAGjB,MAAa,QAAQ;IAGpB,KAAK,CAAS;CACd;AAJD,4BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;uCACI;AAGf,MAAa,QAAQ;IAGpB,KAAK,CAAS;CACd;AAJD,4BAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,+BAAa,GAAE;;uCACF;AAGf,MAAa,OAAO;IAEnB,GAAG,CAAW;CACd;AAHD,0BAGC;AADA;IADC,IAAA,4BAAU,GAAE;;oCACC;AAGf,MAAa,SAAS;IAKrB,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAXD,8BAWC;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;0CAAC;AAGf,MAAa,MAAM;IAGlB,GAAG,CAAS;CACZ;AAJD,wBAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;mCACI"}
|
package/lib/dtos/index.d.ts
CHANGED
@@ -1,10 +1,7 @@
|
|
1
|
-
export * from './asset.dto';
|
2
1
|
export * from './auth.dto';
|
3
|
-
export * from './author.dto';
|
4
2
|
export * from './boost.dto';
|
5
3
|
export * from './brand.dto';
|
6
4
|
export * from './browse.dto';
|
7
|
-
export * from './category.dto';
|
8
5
|
export * from './contact.dto';
|
9
6
|
export * from './feedback.dto';
|
10
7
|
export * from './general.dto';
|
@@ -14,5 +11,4 @@ export * from './promotion.dto';
|
|
14
11
|
export * from './publisher.dto';
|
15
12
|
export * from './question.dto';
|
16
13
|
export * from './survey.dto';
|
17
|
-
export * from './topic.dto';
|
18
14
|
export * from './user.dto';
|
package/lib/dtos/index.js
CHANGED
@@ -14,13 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./asset.dto"), exports);
|
18
17
|
__exportStar(require("./auth.dto"), exports);
|
19
|
-
__exportStar(require("./author.dto"), exports);
|
20
18
|
__exportStar(require("./boost.dto"), exports);
|
21
19
|
__exportStar(require("./brand.dto"), exports);
|
22
20
|
__exportStar(require("./browse.dto"), exports);
|
23
|
-
__exportStar(require("./category.dto"), exports);
|
24
21
|
__exportStar(require("./contact.dto"), exports);
|
25
22
|
__exportStar(require("./feedback.dto"), exports);
|
26
23
|
__exportStar(require("./general.dto"), exports);
|
@@ -30,6 +27,5 @@ __exportStar(require("./promotion.dto"), exports);
|
|
30
27
|
__exportStar(require("./publisher.dto"), exports);
|
31
28
|
__exportStar(require("./question.dto"), exports);
|
32
29
|
__exportStar(require("./survey.dto"), exports);
|
33
|
-
__exportStar(require("./topic.dto"), exports);
|
34
30
|
__exportStar(require("./user.dto"), exports);
|
35
31
|
//# sourceMappingURL=index.js.map
|
package/lib/dtos/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,6CAA2B"}
|
package/lib/dtos/post.dto.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PostType, SortType, StatusType } from '../enums';
|
2
|
-
import { IPostAdditionals } from '../models';
|
3
2
|
export declare class PostParamsDto {
|
4
3
|
type: PostType;
|
5
4
|
status: StatusType;
|
@@ -21,27 +20,6 @@ export declare class CreatePostDto {
|
|
21
20
|
title: string;
|
22
21
|
type: PostType;
|
23
22
|
}
|
24
|
-
export declare class PostTitleDto {
|
25
|
-
title: string;
|
26
|
-
}
|
27
23
|
export declare class PostAuthorDto {
|
28
24
|
author: number;
|
29
25
|
}
|
30
|
-
export declare class PostDescriptionDto {
|
31
|
-
description: string;
|
32
|
-
}
|
33
|
-
export declare class PostWeightDto {
|
34
|
-
weight: number;
|
35
|
-
}
|
36
|
-
export declare class PostTopicDto {
|
37
|
-
topics: number[];
|
38
|
-
}
|
39
|
-
export declare class PostContentDto {
|
40
|
-
content: string;
|
41
|
-
}
|
42
|
-
export declare class PostInfoDto {
|
43
|
-
info: Partial<IPostAdditionals>;
|
44
|
-
}
|
45
|
-
export declare class PostAssetDto {
|
46
|
-
url: string;
|
47
|
-
}
|
package/lib/dtos/post.dto.js
CHANGED
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.PostAuthorDto = exports.CreatePostDto = exports.PostAdminParamsDto = exports.PostParamsDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const enums_1 = require("../enums");
|
15
15
|
class PostParamsDto {
|
@@ -106,15 +106,6 @@ __decorate([
|
|
106
106
|
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
107
107
|
__metadata("design:type", String)
|
108
108
|
], CreatePostDto.prototype, "type", void 0);
|
109
|
-
class PostTitleDto {
|
110
|
-
title;
|
111
|
-
}
|
112
|
-
exports.PostTitleDto = PostTitleDto;
|
113
|
-
__decorate([
|
114
|
-
(0, class_validator_1.IsNotEmpty)(),
|
115
|
-
(0, class_validator_1.IsString)(),
|
116
|
-
__metadata("design:type", String)
|
117
|
-
], PostTitleDto.prototype, "title", void 0);
|
118
109
|
class PostAuthorDto {
|
119
110
|
author;
|
120
111
|
}
|
@@ -124,59 +115,4 @@ __decorate([
|
|
124
115
|
(0, class_validator_1.IsNumber)(),
|
125
116
|
__metadata("design:type", Number)
|
126
117
|
], PostAuthorDto.prototype, "author", void 0);
|
127
|
-
class PostDescriptionDto {
|
128
|
-
description;
|
129
|
-
}
|
130
|
-
exports.PostDescriptionDto = PostDescriptionDto;
|
131
|
-
__decorate([
|
132
|
-
(0, class_validator_1.IsOptional)(),
|
133
|
-
(0, class_validator_1.IsString)(),
|
134
|
-
__metadata("design:type", String)
|
135
|
-
], PostDescriptionDto.prototype, "description", void 0);
|
136
|
-
class PostWeightDto {
|
137
|
-
weight;
|
138
|
-
}
|
139
|
-
exports.PostWeightDto = PostWeightDto;
|
140
|
-
__decorate([
|
141
|
-
(0, class_validator_1.IsNotEmpty)(),
|
142
|
-
(0, class_validator_1.IsNumber)(),
|
143
|
-
__metadata("design:type", Number)
|
144
|
-
], PostWeightDto.prototype, "weight", void 0);
|
145
|
-
class PostTopicDto {
|
146
|
-
topics;
|
147
|
-
}
|
148
|
-
exports.PostTopicDto = PostTopicDto;
|
149
|
-
__decorate([
|
150
|
-
(0, class_validator_1.IsNotEmpty)(),
|
151
|
-
(0, class_validator_1.IsNumber)({}, { each: true }),
|
152
|
-
__metadata("design:type", Array)
|
153
|
-
], PostTopicDto.prototype, "topics", void 0);
|
154
|
-
class PostContentDto {
|
155
|
-
content;
|
156
|
-
}
|
157
|
-
exports.PostContentDto = PostContentDto;
|
158
|
-
__decorate([
|
159
|
-
(0, class_validator_1.IsOptional)(),
|
160
|
-
(0, class_validator_1.IsString)(),
|
161
|
-
__metadata("design:type", String)
|
162
|
-
], PostContentDto.prototype, "content", void 0);
|
163
|
-
class PostInfoDto {
|
164
|
-
info;
|
165
|
-
}
|
166
|
-
exports.PostInfoDto = PostInfoDto;
|
167
|
-
__decorate([
|
168
|
-
(0, class_validator_1.IsOptional)(),
|
169
|
-
(0, class_validator_1.IsString)(),
|
170
|
-
(0, class_validator_1.IsJSON)(),
|
171
|
-
__metadata("design:type", Object)
|
172
|
-
], PostInfoDto.prototype, "info", void 0);
|
173
|
-
class PostAssetDto {
|
174
|
-
url;
|
175
|
-
}
|
176
|
-
exports.PostAssetDto = PostAssetDto;
|
177
|
-
__decorate([
|
178
|
-
(0, class_validator_1.IsOptional)(),
|
179
|
-
(0, class_validator_1.IsString)(),
|
180
|
-
__metadata("design:type", String)
|
181
|
-
], PostAssetDto.prototype, "url", void 0);
|
182
118
|
//# sourceMappingURL=post.dto.js.map
|
package/lib/dtos/post.dto.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"post.dto.js","sourceRoot":"","sources":["../../src/dtos/post.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAC7F,oCAA0D;AAG1D,MAAa,aAAa;IAIzB,IAAI,CAAW;IAIf,MAAM,CAAa;IAInB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;CAClB;AAvBD,sCAuBC;AAnBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;6CACA;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAGf;IADC,IAAA,4BAAU,GAAE;;6CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;8CACK;AAGnB,MAAa,kBAAkB;IAI9B,KAAK,CAAa;IAIlB,QAAQ,CAAe;IAIvB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;IAGlB,UAAU,CAAW;CACrB;AA1BD,gDA0BC;AAtBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;iDACC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;oDACI;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;gDACF;AAGf;IADC,IAAA,4BAAU,GAAE;;kDACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;mDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;sDACQ;AAGtB,MAAa,aAAa;IAGzB,KAAK,CAAS;IAId,IAAI,CAAW;CACf;AARD,sCAQC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAGhB,MAAa,
|
1
|
+
{"version":3,"file":"post.dto.js","sourceRoot":"","sources":["../../src/dtos/post.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAC7F,oCAA0D;AAG1D,MAAa,aAAa;IAIzB,IAAI,CAAW;IAIf,MAAM,CAAa;IAInB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;CAClB;AAvBD,sCAuBC;AAnBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;6CACA;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAGf;IADC,IAAA,4BAAU,GAAE;;6CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;8CACK;AAGnB,MAAa,kBAAkB;IAI9B,KAAK,CAAa;IAIlB,QAAQ,CAAe;IAIvB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;IAGlB,UAAU,CAAW;CACrB;AA1BD,gDA0BC;AAtBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;iDACC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;oDACI;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;gDACF;AAGf;IADC,IAAA,4BAAU,GAAE;;kDACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;mDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;sDACQ;AAGtB,MAAa,aAAa;IAGzB,KAAK,CAAS;IAId,IAAI,CAAW;CACf;AARD,sCAQC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAGhB,MAAa,aAAa;IAGzB,MAAM,CAAS;CACf;AAJD,sCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACI"}
|
@@ -1,11 +1,3 @@
|
|
1
|
-
import { StatusType, SortType } from '../enums';
|
2
|
-
export declare class PromotionParamsDto {
|
3
|
-
status: StatusType;
|
4
|
-
startDate: Date;
|
5
|
-
endDate: Date;
|
6
|
-
term: string;
|
7
|
-
sort: SortType;
|
8
|
-
}
|
9
1
|
export declare class CreatePromotionDto {
|
10
2
|
title: string;
|
11
3
|
startDate: Date;
|
@@ -9,45 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.CreatePromotionDto =
|
12
|
+
exports.CreatePromotionDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
15
|
-
const enums_1 = require("../enums");
|
16
|
-
class PromotionParamsDto {
|
17
|
-
status;
|
18
|
-
startDate;
|
19
|
-
endDate;
|
20
|
-
term;
|
21
|
-
sort;
|
22
|
-
}
|
23
|
-
exports.PromotionParamsDto = PromotionParamsDto;
|
24
|
-
__decorate([
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
26
|
-
(0, class_validator_1.IsEnum)(enums_1.StatusType),
|
27
|
-
__metadata("design:type", String)
|
28
|
-
], PromotionParamsDto.prototype, "status", void 0);
|
29
|
-
__decorate([
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
31
|
-
(0, class_validator_1.IsDate)(),
|
32
|
-
(0, class_transformer_1.Type)(() => Date),
|
33
|
-
__metadata("design:type", Date)
|
34
|
-
], PromotionParamsDto.prototype, "startDate", void 0);
|
35
|
-
__decorate([
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
37
|
-
(0, class_validator_1.IsDate)(),
|
38
|
-
(0, class_transformer_1.Type)(() => Date),
|
39
|
-
__metadata("design:type", Date)
|
40
|
-
], PromotionParamsDto.prototype, "endDate", void 0);
|
41
|
-
__decorate([
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
43
|
-
(0, class_validator_1.IsString)(),
|
44
|
-
__metadata("design:type", String)
|
45
|
-
], PromotionParamsDto.prototype, "term", void 0);
|
46
|
-
__decorate([
|
47
|
-
(0, class_validator_1.IsOptional)(),
|
48
|
-
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
49
|
-
__metadata("design:type", String)
|
50
|
-
], PromotionParamsDto.prototype, "sort", void 0);
|
51
15
|
class CreatePromotionDto {
|
52
16
|
title;
|
53
17
|
startDate;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"promotion.dto.js","sourceRoot":"","sources":["../../src/dtos/promotion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"promotion.dto.js","sourceRoot":"","sources":["../../src/dtos/promotion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,yDAAyC;AAEzC,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,gDAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;qDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;mDAAC"}
|
@@ -1,10 +1,3 @@
|
|
1
|
-
import { SortType } from '../enums';
|
2
|
-
export declare class QuestionParamsDto {
|
3
|
-
term: string;
|
4
|
-
categories: string[];
|
5
|
-
sort: SortType;
|
6
|
-
authors: string[];
|
7
|
-
}
|
8
1
|
export declare class AskQuestionDto {
|
9
2
|
slug: string;
|
10
3
|
topics: string[];
|
@@ -16,19 +9,7 @@ export declare class AskQuestionDto {
|
|
16
9
|
phone: string;
|
17
10
|
private: boolean;
|
18
11
|
}
|
19
|
-
export declare class SubmitCommentDto {
|
20
|
-
comment: string;
|
21
|
-
}
|
22
|
-
export declare class QuestionTitleDto {
|
23
|
-
title: string;
|
24
|
-
}
|
25
|
-
export declare class QuestionContentDto {
|
26
|
-
question: string;
|
27
|
-
}
|
28
12
|
export declare class QuestionCommentDto {
|
29
13
|
content: string;
|
30
14
|
authorId: number;
|
31
15
|
}
|
32
|
-
export declare class QuestionCategoriesDto {
|
33
|
-
categories: number[];
|
34
|
-
}
|
package/lib/dtos/question.dto.js
CHANGED
@@ -9,35 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.QuestionCommentDto = exports.AskQuestionDto = void 0;
|
13
13
|
const class_validator_1 = require("class-validator");
|
14
|
-
const enums_1 = require("../enums");
|
15
14
|
const class_transformer_1 = require("class-transformer");
|
16
|
-
class QuestionParamsDto {
|
17
|
-
term;
|
18
|
-
categories;
|
19
|
-
sort;
|
20
|
-
authors;
|
21
|
-
}
|
22
|
-
exports.QuestionParamsDto = QuestionParamsDto;
|
23
|
-
__decorate([
|
24
|
-
(0, class_validator_1.IsOptional)(),
|
25
|
-
(0, class_validator_1.IsString)(),
|
26
|
-
__metadata("design:type", String)
|
27
|
-
], QuestionParamsDto.prototype, "term", void 0);
|
28
|
-
__decorate([
|
29
|
-
(0, class_validator_1.IsOptional)(),
|
30
|
-
__metadata("design:type", Array)
|
31
|
-
], QuestionParamsDto.prototype, "categories", void 0);
|
32
|
-
__decorate([
|
33
|
-
(0, class_validator_1.IsOptional)(),
|
34
|
-
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
35
|
-
__metadata("design:type", String)
|
36
|
-
], QuestionParamsDto.prototype, "sort", void 0);
|
37
|
-
__decorate([
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
39
|
-
__metadata("design:type", Array)
|
40
|
-
], QuestionParamsDto.prototype, "authors", void 0);
|
41
15
|
class AskQuestionDto {
|
42
16
|
slug;
|
43
17
|
topics;
|
@@ -94,33 +68,6 @@ __decorate([
|
|
94
68
|
(0, class_transformer_1.Type)(() => Boolean),
|
95
69
|
__metadata("design:type", Boolean)
|
96
70
|
], AskQuestionDto.prototype, "private", void 0);
|
97
|
-
class SubmitCommentDto {
|
98
|
-
comment;
|
99
|
-
}
|
100
|
-
exports.SubmitCommentDto = SubmitCommentDto;
|
101
|
-
__decorate([
|
102
|
-
(0, class_validator_1.IsNotEmpty)(),
|
103
|
-
(0, class_validator_1.IsString)(),
|
104
|
-
__metadata("design:type", String)
|
105
|
-
], SubmitCommentDto.prototype, "comment", void 0);
|
106
|
-
class QuestionTitleDto {
|
107
|
-
title;
|
108
|
-
}
|
109
|
-
exports.QuestionTitleDto = QuestionTitleDto;
|
110
|
-
__decorate([
|
111
|
-
(0, class_validator_1.IsNotEmpty)(),
|
112
|
-
(0, class_validator_1.IsString)(),
|
113
|
-
__metadata("design:type", String)
|
114
|
-
], QuestionTitleDto.prototype, "title", void 0);
|
115
|
-
class QuestionContentDto {
|
116
|
-
question;
|
117
|
-
}
|
118
|
-
exports.QuestionContentDto = QuestionContentDto;
|
119
|
-
__decorate([
|
120
|
-
(0, class_validator_1.IsNotEmpty)(),
|
121
|
-
(0, class_validator_1.IsString)(),
|
122
|
-
__metadata("design:type", String)
|
123
|
-
], QuestionContentDto.prototype, "question", void 0);
|
124
71
|
class QuestionCommentDto {
|
125
72
|
content;
|
126
73
|
authorId;
|
@@ -136,12 +83,4 @@ __decorate([
|
|
136
83
|
(0, class_validator_1.IsNumber)(),
|
137
84
|
__metadata("design:type", Number)
|
138
85
|
], QuestionCommentDto.prototype, "authorId", void 0);
|
139
|
-
class QuestionCategoriesDto {
|
140
|
-
categories;
|
141
|
-
}
|
142
|
-
exports.QuestionCategoriesDto = QuestionCategoriesDto;
|
143
|
-
__decorate([
|
144
|
-
(0, class_validator_1.IsNotEmpty)(),
|
145
|
-
__metadata("design:type", Array)
|
146
|
-
], QuestionCategoriesDto.prototype, "categories", void 0);
|
147
86
|
//# sourceMappingURL=question.dto.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"question.dto.js","sourceRoot":"","sources":["../../src/dtos/question.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"question.dto.js","sourceRoot":"","sources":["../../src/dtos/question.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwF;AACxF,yDAAyC;AAEzC,MAAa,cAAc;IAI1B,IAAI,CAAS;IAMb,MAAM,CAAW;IAGjB,UAAU,CAAW;IAIrB,KAAK,CAAS;IAId,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAKd,OAAO,CAAU;CACjB;AAvCD,wCAuCC;AAnCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AAMb;IADC,IAAA,4BAAU,GAAE;;8CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;kDACQ;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;+CACH;AAGlB,MAAa,kBAAkB;IAI9B,OAAO,CAAS;IAIhB,QAAQ,CAAS;CACjB;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM"}
|