@intelact/bright 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dtos/asset.dto.d.ts +14 -0
- package/lib/dtos/asset.dto.js +70 -0
- package/lib/dtos/asset.dto.js.map +1 -0
- package/lib/dtos/auth.dto.d.ts +27 -0
- package/lib/dtos/auth.dto.js +127 -0
- package/lib/dtos/auth.dto.js.map +1 -0
- package/lib/dtos/author.dto.d.ts +14 -0
- package/lib/dtos/author.dto.js +57 -0
- package/lib/dtos/author.dto.js.map +1 -0
- package/lib/dtos/boost.dto.d.ts +12 -0
- package/lib/dtos/boost.dto.js +65 -0
- package/lib/dtos/boost.dto.js.map +1 -0
- package/lib/dtos/brand.dto.d.ts +9 -0
- package/lib/dtos/brand.dto.js +39 -0
- package/lib/dtos/brand.dto.js.map +1 -0
- package/lib/dtos/browse.dto.d.ts +8 -0
- package/lib/dtos/browse.dto.js +48 -0
- package/lib/dtos/browse.dto.js.map +1 -0
- package/lib/dtos/category.dto.d.ts +7 -0
- package/lib/dtos/category.dto.js +37 -0
- package/lib/dtos/category.dto.js.map +1 -0
- package/lib/dtos/contact.dto.d.ts +5 -0
- package/lib/dtos/contact.dto.js +35 -0
- package/lib/dtos/contact.dto.js.map +1 -0
- package/lib/dtos/feedback.dto.d.ts +11 -0
- package/lib/dtos/feedback.dto.js +51 -0
- package/lib/dtos/feedback.dto.js.map +1 -0
- package/lib/dtos/index.d.ts +15 -0
- package/lib/dtos/index.js +28 -0
- package/lib/dtos/index.js.map +1 -0
- package/lib/dtos/post.dto.d.ts +38 -0
- package/lib/dtos/post.dto.js +139 -0
- package/lib/dtos/post.dto.js.map +1 -0
- package/lib/dtos/promotion.dto.d.ts +21 -0
- package/lib/dtos/promotion.dto.js +95 -0
- package/lib/dtos/promotion.dto.js.map +1 -0
- package/lib/dtos/publisher.dto.d.ts +19 -0
- package/lib/dtos/publisher.dto.js +73 -0
- package/lib/dtos/publisher.dto.js.map +1 -0
- package/lib/dtos/question.dto.d.ts +30 -0
- package/lib/dtos/question.dto.js +132 -0
- package/lib/dtos/question.dto.js.map +1 -0
- package/lib/dtos/survey.dto.d.ts +40 -0
- package/lib/dtos/survey.dto.js +153 -0
- package/lib/dtos/survey.dto.js.map +1 -0
- package/lib/dtos/topic.dto.d.ts +8 -0
- package/lib/dtos/topic.dto.js +43 -0
- package/lib/dtos/topic.dto.js.map +1 -0
- package/lib/enums/account.enum.js +2 -2
- package/lib/enums/account.enum.js.map +1 -1
- package/lib/enums/asset.enum.js +2 -2
- package/lib/enums/asset.enum.js.map +1 -1
- package/lib/enums/color.enum.js +3 -3
- package/lib/enums/color.enum.js.map +1 -1
- package/lib/enums/index.d.ts +12 -12
- package/lib/enums/index.js +22 -34
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/module.enum.js +2 -2
- package/lib/enums/module.enum.js.map +1 -1
- package/lib/enums/notification.enum.js +2 -2
- package/lib/enums/notification.enum.js.map +1 -1
- package/lib/enums/post.enum.js +1 -1
- package/lib/enums/post.enum.js.map +1 -1
- package/lib/enums/setting.enum.js +1 -1
- package/lib/enums/setting.enum.js.map +1 -1
- package/lib/enums/social.enum.js +2 -2
- package/lib/enums/social.enum.js.map +1 -1
- package/lib/enums/sort.enum.d.ts +5 -0
- package/lib/enums/sort.enum.js +8 -2
- package/lib/enums/sort.enum.js.map +1 -1
- package/lib/enums/status.enum.js +1 -1
- package/lib/enums/status.enum.js.map +1 -1
- package/lib/enums/tracks.enum.js +3 -3
- package/lib/enums/tracks.enum.js.map +1 -1
- package/lib/enums/verification.enum.js +1 -1
- package/lib/enums/verification.enum.js.map +1 -1
- package/lib/index.js +1 -5
- package/lib/index.js.map +1 -1
- package/lib/models/index.d.ts +21 -21
- package/lib/models/index.js +31 -43
- package/lib/models/index.js.map +1 -1
- package/lib/security/index.d.ts +3 -3
- package/lib/security/index.js +13 -7
- package/lib/security/index.js.map +1 -1
- package/lib/security/permissions.js +1 -1
- package/lib/security/permissions.js.map +1 -1
- package/lib/security/role.js +1 -1
- package/lib/security/role.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -4
@@ -0,0 +1,51 @@
|
|
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.UpdateFeedbackDescriptionDto = exports.UpdateFeedbackNameDto = exports.CreateFeedbackDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
class CreateFeedbackDto {
|
16
|
+
name;
|
17
|
+
postType;
|
18
|
+
}
|
19
|
+
__decorate([
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
21
|
+
(0, class_validator_1.IsString)(),
|
22
|
+
(0, class_validator_1.MaxLength)(255),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], CreateFeedbackDto.prototype, "name", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
27
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
28
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], CreateFeedbackDto.prototype, "postType", void 0);
|
31
|
+
exports.CreateFeedbackDto = CreateFeedbackDto;
|
32
|
+
class UpdateFeedbackNameDto {
|
33
|
+
name;
|
34
|
+
}
|
35
|
+
__decorate([
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
37
|
+
(0, class_validator_1.IsString)(),
|
38
|
+
(0, class_validator_1.MaxLength)(255),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], UpdateFeedbackNameDto.prototype, "name", void 0);
|
41
|
+
exports.UpdateFeedbackNameDto = UpdateFeedbackNameDto;
|
42
|
+
class UpdateFeedbackDescriptionDto {
|
43
|
+
description;
|
44
|
+
}
|
45
|
+
__decorate([
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
47
|
+
(0, class_validator_1.IsString)(),
|
48
|
+
__metadata("design:type", String)
|
49
|
+
], UpdateFeedbackDescriptionDto.prototype, "description", void 0);
|
50
|
+
exports.UpdateFeedbackDescriptionDto = UpdateFeedbackDescriptionDto;
|
51
|
+
//# sourceMappingURL=feedback.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/dtos/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,oCAAoC;AAEpC,MAAa,iBAAiB;IAK7B,IAAI,CAAS;IAKb,QAAQ,CAAW;CACnB;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;+CACF;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;IAChB,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;mDACE;AAVpB,8CAWC;AAED,MAAa,qBAAqB;IAKjC,IAAI,CAAS;CACb;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;mDACF;AALd,sDAMC;AAED,MAAa,4BAA4B;IAGxC,WAAW,CAAS;CACpB;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACS;AAHrB,oEAIC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export * from './asset.dto';
|
2
|
+
export * from './auth.dto';
|
3
|
+
export * from './author.dto';
|
4
|
+
export * from './boost.dto';
|
5
|
+
export * from './brand.dto';
|
6
|
+
export * from './browse.dto';
|
7
|
+
export * from './category.dto';
|
8
|
+
export * from './contact.dto';
|
9
|
+
export * from './feedback.dto';
|
10
|
+
export * from './post.dto';
|
11
|
+
export * from './promotion.dto';
|
12
|
+
export * from './publisher.dto';
|
13
|
+
export * from './question.dto';
|
14
|
+
export * from './survey.dto';
|
15
|
+
export * from './topic.dto';
|
@@ -0,0 +1,28 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
5
|
+
}) : (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
o[k2] = m[k];
|
8
|
+
}));
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
11
|
+
};
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
13
|
+
__exportStar(require("./asset.dto"), exports);
|
14
|
+
__exportStar(require("./auth.dto"), exports);
|
15
|
+
__exportStar(require("./author.dto"), exports);
|
16
|
+
__exportStar(require("./boost.dto"), exports);
|
17
|
+
__exportStar(require("./brand.dto"), exports);
|
18
|
+
__exportStar(require("./browse.dto"), exports);
|
19
|
+
__exportStar(require("./category.dto"), exports);
|
20
|
+
__exportStar(require("./contact.dto"), exports);
|
21
|
+
__exportStar(require("./feedback.dto"), exports);
|
22
|
+
__exportStar(require("./post.dto"), exports);
|
23
|
+
__exportStar(require("./promotion.dto"), exports);
|
24
|
+
__exportStar(require("./publisher.dto"), exports);
|
25
|
+
__exportStar(require("./question.dto"), exports);
|
26
|
+
__exportStar(require("./survey.dto"), exports);
|
27
|
+
__exportStar(require("./topic.dto"), exports);
|
28
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,8CAA4B"}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { PostType, SortType, StatusType } from '../enums';
|
2
|
+
import { IPostAdditionals } from '../models';
|
3
|
+
export declare class PostParamsDto {
|
4
|
+
type: PostType;
|
5
|
+
status: StatusType;
|
6
|
+
term: string;
|
7
|
+
sort: SortType;
|
8
|
+
topics: string[];
|
9
|
+
authors: string[];
|
10
|
+
}
|
11
|
+
export declare class CreatePostDto {
|
12
|
+
title: string;
|
13
|
+
type: PostType;
|
14
|
+
}
|
15
|
+
export declare class UpdatePostTitleDto {
|
16
|
+
title: string;
|
17
|
+
}
|
18
|
+
export declare class UpdatePostAuthorDto {
|
19
|
+
author: number;
|
20
|
+
}
|
21
|
+
export declare class UpdatePostDescriptionDto {
|
22
|
+
description: string;
|
23
|
+
}
|
24
|
+
export declare class UpdatePostWeightDto {
|
25
|
+
weight: number;
|
26
|
+
}
|
27
|
+
export declare class UpdatePostTopicDto {
|
28
|
+
topics: number[];
|
29
|
+
}
|
30
|
+
export declare class UpdatePostContentDto {
|
31
|
+
content: string;
|
32
|
+
}
|
33
|
+
export declare class UpdatePostInfoDto {
|
34
|
+
info: Partial<IPostAdditionals>;
|
35
|
+
}
|
36
|
+
export declare class SortPostGalleryDto {
|
37
|
+
ids: number[];
|
38
|
+
}
|
@@ -0,0 +1,139 @@
|
|
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.SortPostGalleryDto = exports.UpdatePostInfoDto = exports.UpdatePostContentDto = exports.UpdatePostTopicDto = exports.UpdatePostWeightDto = exports.UpdatePostDescriptionDto = exports.UpdatePostAuthorDto = exports.UpdatePostTitleDto = exports.CreatePostDto = exports.PostParamsDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
class PostParamsDto {
|
16
|
+
type;
|
17
|
+
status;
|
18
|
+
term;
|
19
|
+
sort;
|
20
|
+
topics;
|
21
|
+
authors;
|
22
|
+
}
|
23
|
+
__decorate([
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
25
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], PostParamsDto.prototype, "type", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
30
|
+
(0, class_validator_1.IsEnum)(enums_1.StatusType),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], PostParamsDto.prototype, "status", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
35
|
+
(0, class_validator_1.IsString)(),
|
36
|
+
__metadata("design:type", String)
|
37
|
+
], PostParamsDto.prototype, "term", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
40
|
+
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], PostParamsDto.prototype, "sort", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
45
|
+
__metadata("design:type", Array)
|
46
|
+
], PostParamsDto.prototype, "topics", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
49
|
+
__metadata("design:type", Array)
|
50
|
+
], PostParamsDto.prototype, "authors", void 0);
|
51
|
+
exports.PostParamsDto = PostParamsDto;
|
52
|
+
class CreatePostDto {
|
53
|
+
title;
|
54
|
+
type;
|
55
|
+
}
|
56
|
+
__decorate([
|
57
|
+
(0, class_validator_1.IsNotEmpty)(),
|
58
|
+
(0, class_validator_1.IsString)(),
|
59
|
+
__metadata("design:type", String)
|
60
|
+
], CreatePostDto.prototype, "title", void 0);
|
61
|
+
__decorate([
|
62
|
+
(0, class_validator_1.IsNotEmpty)(),
|
63
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType),
|
64
|
+
__metadata("design:type", String)
|
65
|
+
], CreatePostDto.prototype, "type", void 0);
|
66
|
+
exports.CreatePostDto = CreatePostDto;
|
67
|
+
class UpdatePostTitleDto {
|
68
|
+
title;
|
69
|
+
}
|
70
|
+
__decorate([
|
71
|
+
(0, class_validator_1.IsNotEmpty)(),
|
72
|
+
(0, class_validator_1.IsString)(),
|
73
|
+
__metadata("design:type", String)
|
74
|
+
], UpdatePostTitleDto.prototype, "title", void 0);
|
75
|
+
exports.UpdatePostTitleDto = UpdatePostTitleDto;
|
76
|
+
class UpdatePostAuthorDto {
|
77
|
+
author;
|
78
|
+
}
|
79
|
+
__decorate([
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
81
|
+
(0, class_validator_1.IsNumber)(),
|
82
|
+
__metadata("design:type", Number)
|
83
|
+
], UpdatePostAuthorDto.prototype, "author", void 0);
|
84
|
+
exports.UpdatePostAuthorDto = UpdatePostAuthorDto;
|
85
|
+
class UpdatePostDescriptionDto {
|
86
|
+
description;
|
87
|
+
}
|
88
|
+
__decorate([
|
89
|
+
(0, class_validator_1.IsOptional)(),
|
90
|
+
(0, class_validator_1.IsString)(),
|
91
|
+
__metadata("design:type", String)
|
92
|
+
], UpdatePostDescriptionDto.prototype, "description", void 0);
|
93
|
+
exports.UpdatePostDescriptionDto = UpdatePostDescriptionDto;
|
94
|
+
class UpdatePostWeightDto {
|
95
|
+
weight;
|
96
|
+
}
|
97
|
+
__decorate([
|
98
|
+
(0, class_validator_1.IsNotEmpty)(),
|
99
|
+
(0, class_validator_1.IsNumber)(),
|
100
|
+
__metadata("design:type", Number)
|
101
|
+
], UpdatePostWeightDto.prototype, "weight", void 0);
|
102
|
+
exports.UpdatePostWeightDto = UpdatePostWeightDto;
|
103
|
+
class UpdatePostTopicDto {
|
104
|
+
topics;
|
105
|
+
}
|
106
|
+
__decorate([
|
107
|
+
(0, class_validator_1.IsNotEmpty)(),
|
108
|
+
(0, class_validator_1.IsNumber)({}, { each: true }),
|
109
|
+
__metadata("design:type", Array)
|
110
|
+
], UpdatePostTopicDto.prototype, "topics", void 0);
|
111
|
+
exports.UpdatePostTopicDto = UpdatePostTopicDto;
|
112
|
+
class UpdatePostContentDto {
|
113
|
+
content;
|
114
|
+
}
|
115
|
+
__decorate([
|
116
|
+
(0, class_validator_1.IsOptional)(),
|
117
|
+
(0, class_validator_1.IsString)(),
|
118
|
+
__metadata("design:type", String)
|
119
|
+
], UpdatePostContentDto.prototype, "content", void 0);
|
120
|
+
exports.UpdatePostContentDto = UpdatePostContentDto;
|
121
|
+
class UpdatePostInfoDto {
|
122
|
+
info;
|
123
|
+
}
|
124
|
+
__decorate([
|
125
|
+
(0, class_validator_1.IsOptional)(),
|
126
|
+
(0, class_validator_1.IsString)(),
|
127
|
+
(0, class_validator_1.IsJSON)(),
|
128
|
+
__metadata("design:type", Object)
|
129
|
+
], UpdatePostInfoDto.prototype, "info", void 0);
|
130
|
+
exports.UpdatePostInfoDto = UpdatePostInfoDto;
|
131
|
+
class SortPostGalleryDto {
|
132
|
+
ids;
|
133
|
+
}
|
134
|
+
__decorate([
|
135
|
+
(0, class_validator_1.IsNotEmpty)(),
|
136
|
+
__metadata("design:type", Array)
|
137
|
+
], SortPostGalleryDto.prototype, "ids", void 0);
|
138
|
+
exports.SortPostGalleryDto = SortPostGalleryDto;
|
139
|
+
//# sourceMappingURL=post.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"post.dto.js","sourceRoot":"","sources":["../../src/dtos/post.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6F;AAC7F,oCAA0D;AAG1D,MAAa,aAAa;IAUzB,IAAI,CAAW;IASf,MAAM,CAAa;IAOnB,IAAI,CAAS;IAOb,IAAI,CAAW;IAMf,MAAM,CAAW;IAMjB,OAAO,CAAW;CAClB;AApCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AASf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;6CACA;AAOnB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAOb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAMf;IADC,IAAA,4BAAU,GAAE;;6CACI;AAMjB;IADC,IAAA,4BAAU,GAAE;;8CACK;AA7CnB,sCA8CC;AAED,MAAa,aAAa;IAGzB,KAAK,CAAS;IAId,IAAI,CAAW;CACf;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;2CACF;AAPhB,sCAQC;AAED,MAAa,kBAAkB;IAG9B,KAAK,CAAS;CACd;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAHf,gDAIC;AAED,MAAa,mBAAmB;IAG/B,MAAM,CAAS;CACf;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI;AAHhB,kDAIC;AAED,MAAa,wBAAwB;IAGpC,WAAW,CAAS;CACpB;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACS;AAHrB,4DAIC;AAED,MAAa,mBAAmB;IAG/B,MAAM,CAAS;CACf;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACI;AAHhB,kDAIC;AAED,MAAa,kBAAkB;IAG9B,MAAM,CAAW;CACjB;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;kDACZ;AAHlB,gDAIC;AAED,MAAa,oBAAoB;IAGhC,OAAO,CAAS;CAChB;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACK;AAHjB,oDAIC;AAED,MAAa,iBAAiB;IAI7B,IAAI,CAA4B;CAChC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,GAAE;;+CACuB;AAJjC,8CAKC;AAED,MAAa,kBAAkB;IAE9B,GAAG,CAAW;CACd;AADA;IADC,IAAA,4BAAU,GAAE;;+CACC;AAFf,gDAGC"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { StatusType, SortType } from '../enums';
|
2
|
+
export declare class PromotionFilterDto {
|
3
|
+
status: StatusType;
|
4
|
+
startDate: Date;
|
5
|
+
endDate: Date;
|
6
|
+
term: string;
|
7
|
+
sort: SortType;
|
8
|
+
}
|
9
|
+
export declare class CreatePromotionDto {
|
10
|
+
title: string;
|
11
|
+
}
|
12
|
+
export declare class UpdatePromotionTitleDto {
|
13
|
+
title: string;
|
14
|
+
}
|
15
|
+
export declare class UpdatePromotionPeriodDto {
|
16
|
+
startDate: Date;
|
17
|
+
endDate: Date;
|
18
|
+
}
|
19
|
+
export declare class UpdatePromotionUrlDto {
|
20
|
+
url: string;
|
21
|
+
}
|
@@ -0,0 +1,95 @@
|
|
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.UpdatePromotionUrlDto = exports.UpdatePromotionPeriodDto = exports.UpdatePromotionTitleDto = exports.CreatePromotionDto = exports.PromotionFilterDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
15
|
+
const enums_1 = require("../enums");
|
16
|
+
class PromotionFilterDto {
|
17
|
+
status;
|
18
|
+
startDate;
|
19
|
+
endDate;
|
20
|
+
term;
|
21
|
+
sort;
|
22
|
+
}
|
23
|
+
__decorate([
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
25
|
+
(0, class_validator_1.IsEnum)(enums_1.StatusType),
|
26
|
+
__metadata("design:type", String)
|
27
|
+
], PromotionFilterDto.prototype, "status", void 0);
|
28
|
+
__decorate([
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
30
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
31
|
+
(0, class_validator_1.IsDate)(),
|
32
|
+
__metadata("design:type", Date)
|
33
|
+
], PromotionFilterDto.prototype, "startDate", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
36
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
37
|
+
(0, class_validator_1.IsDate)(),
|
38
|
+
__metadata("design:type", Date)
|
39
|
+
], PromotionFilterDto.prototype, "endDate", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
42
|
+
(0, class_validator_1.IsString)(),
|
43
|
+
__metadata("design:type", String)
|
44
|
+
], PromotionFilterDto.prototype, "term", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
47
|
+
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
48
|
+
__metadata("design:type", String)
|
49
|
+
], PromotionFilterDto.prototype, "sort", void 0);
|
50
|
+
exports.PromotionFilterDto = PromotionFilterDto;
|
51
|
+
class CreatePromotionDto {
|
52
|
+
title;
|
53
|
+
}
|
54
|
+
__decorate([
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
56
|
+
(0, class_validator_1.IsString)(),
|
57
|
+
__metadata("design:type", String)
|
58
|
+
], CreatePromotionDto.prototype, "title", void 0);
|
59
|
+
exports.CreatePromotionDto = CreatePromotionDto;
|
60
|
+
class UpdatePromotionTitleDto {
|
61
|
+
title;
|
62
|
+
}
|
63
|
+
__decorate([
|
64
|
+
(0, class_validator_1.IsNotEmpty)(),
|
65
|
+
(0, class_validator_1.IsString)(),
|
66
|
+
__metadata("design:type", String)
|
67
|
+
], UpdatePromotionTitleDto.prototype, "title", void 0);
|
68
|
+
exports.UpdatePromotionTitleDto = UpdatePromotionTitleDto;
|
69
|
+
class UpdatePromotionPeriodDto {
|
70
|
+
startDate;
|
71
|
+
endDate;
|
72
|
+
}
|
73
|
+
__decorate([
|
74
|
+
(0, class_validator_1.IsNotEmpty)(),
|
75
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
76
|
+
(0, class_validator_1.IsDate)(),
|
77
|
+
__metadata("design:type", Date)
|
78
|
+
], UpdatePromotionPeriodDto.prototype, "startDate", void 0);
|
79
|
+
__decorate([
|
80
|
+
(0, class_validator_1.IsNotEmpty)(),
|
81
|
+
(0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
|
82
|
+
(0, class_validator_1.IsDate)(),
|
83
|
+
__metadata("design:type", Date)
|
84
|
+
], UpdatePromotionPeriodDto.prototype, "endDate", void 0);
|
85
|
+
exports.UpdatePromotionPeriodDto = UpdatePromotionPeriodDto;
|
86
|
+
class UpdatePromotionUrlDto {
|
87
|
+
url;
|
88
|
+
}
|
89
|
+
__decorate([
|
90
|
+
(0, class_validator_1.IsNotEmpty)(),
|
91
|
+
(0, class_validator_1.IsUrl)(),
|
92
|
+
__metadata("design:type", String)
|
93
|
+
], UpdatePromotionUrlDto.prototype, "url", void 0);
|
94
|
+
exports.UpdatePromotionUrlDto = UpdatePromotionUrlDto;
|
95
|
+
//# sourceMappingURL=promotion.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"promotion.dto.js","sourceRoot":"","sources":["../../src/dtos/promotion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqG;AACrG,yDAA8C;AAC9C,oCAAgD;AAEhD,MAAa,kBAAkB;IAI9B,MAAM,CAAa;IAKnB,SAAS,CAAO;IAKhB,OAAO,CAAO;IAId,IAAI,CAAS;IAIb,IAAI,CAAW;CACf;AAnBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;kDACA;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACE,IAAI;qDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACA,IAAI;mDAAC;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;gDACF;AAtBhB,gDAuBC;AAED,MAAa,kBAAkB;IAG9B,KAAK,CAAS;CACd;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAHf,gDAIC;AAED,MAAa,uBAAuB;IAGnC,KAAK,CAAS;CACd;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACG;AAHf,0DAIC;AAED,MAAa,wBAAwB;IAIpC,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AANA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACE,IAAI;2DAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IACtD,IAAA,wBAAM,GAAE;8BACA,IAAI;yDAAC;AATf,4DAUC;AAED,MAAa,qBAAqB;IAGjC,GAAG,CAAS;CACZ;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;kDACI;AAHb,sDAIC"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { AccountStatusType, PostType } from '../enums';
|
2
|
+
import { Permission } from '../security';
|
3
|
+
export declare class InvitePublisherDto {
|
4
|
+
email: string;
|
5
|
+
postTypes: PostType[];
|
6
|
+
}
|
7
|
+
export declare class UpdatePublisherPostTypesDto {
|
8
|
+
postTypes: PostType[];
|
9
|
+
}
|
10
|
+
export declare class InvitePublisherUserDto {
|
11
|
+
email: string;
|
12
|
+
permissions: Permission[];
|
13
|
+
}
|
14
|
+
export declare class ChangePublisherUserStatusDto {
|
15
|
+
status: AccountStatusType;
|
16
|
+
}
|
17
|
+
export declare class UpdatePublisherUserPermissionsDto {
|
18
|
+
permissions: Permission[];
|
19
|
+
}
|
@@ -0,0 +1,73 @@
|
|
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.UpdatePublisherUserPermissionsDto = exports.ChangePublisherUserStatusDto = exports.InvitePublisherUserDto = exports.UpdatePublisherPostTypesDto = exports.InvitePublisherDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
const security_1 = require("../security");
|
16
|
+
class InvitePublisherDto {
|
17
|
+
email;
|
18
|
+
postTypes;
|
19
|
+
}
|
20
|
+
__decorate([
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
22
|
+
(0, class_validator_1.IsEmail)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], InvitePublisherDto.prototype, "email", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
27
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
|
28
|
+
__metadata("design:type", Array)
|
29
|
+
], InvitePublisherDto.prototype, "postTypes", void 0);
|
30
|
+
exports.InvitePublisherDto = InvitePublisherDto;
|
31
|
+
class UpdatePublisherPostTypesDto {
|
32
|
+
postTypes;
|
33
|
+
}
|
34
|
+
__decorate([
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
36
|
+
(0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
|
37
|
+
__metadata("design:type", Array)
|
38
|
+
], UpdatePublisherPostTypesDto.prototype, "postTypes", void 0);
|
39
|
+
exports.UpdatePublisherPostTypesDto = UpdatePublisherPostTypesDto;
|
40
|
+
class InvitePublisherUserDto {
|
41
|
+
email;
|
42
|
+
permissions;
|
43
|
+
}
|
44
|
+
__decorate([
|
45
|
+
(0, class_validator_1.IsNotEmpty)(),
|
46
|
+
(0, class_validator_1.IsEmail)(),
|
47
|
+
__metadata("design:type", String)
|
48
|
+
], InvitePublisherUserDto.prototype, "email", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, class_validator_1.IsNotEmpty)(),
|
51
|
+
(0, class_validator_1.IsEnum)(security_1.Permission, { each: true }),
|
52
|
+
__metadata("design:type", Array)
|
53
|
+
], InvitePublisherUserDto.prototype, "permissions", void 0);
|
54
|
+
exports.InvitePublisherUserDto = InvitePublisherUserDto;
|
55
|
+
class ChangePublisherUserStatusDto {
|
56
|
+
status;
|
57
|
+
}
|
58
|
+
__decorate([
|
59
|
+
(0, class_validator_1.IsNotEmpty)(),
|
60
|
+
(0, class_validator_1.IsEnum)(enums_1.AccountStatusType),
|
61
|
+
__metadata("design:type", String)
|
62
|
+
], ChangePublisherUserStatusDto.prototype, "status", void 0);
|
63
|
+
exports.ChangePublisherUserStatusDto = ChangePublisherUserStatusDto;
|
64
|
+
class UpdatePublisherUserPermissionsDto {
|
65
|
+
permissions;
|
66
|
+
}
|
67
|
+
__decorate([
|
68
|
+
(0, class_validator_1.IsNotEmpty)(),
|
69
|
+
(0, class_validator_1.IsEnum)(security_1.Permission, { each: true }),
|
70
|
+
__metadata("design:type", Array)
|
71
|
+
], UpdatePublisherUserPermissionsDto.prototype, "permissions", void 0);
|
72
|
+
exports.UpdatePublisherUserPermissionsDto = UpdatePublisherUserPermissionsDto;
|
73
|
+
//# sourceMappingURL=publisher.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publisher.dto.js","sourceRoot":"","sources":["../../src/dtos/publisher.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AACpE,oCAAuD;AACvD,0CAAyC;AAEzC,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,SAAS,CAAa;CACtB;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACX;AARvB,gDASC;AAED,MAAa,2BAA2B;IAIvC,SAAS,CAAa;CACtB;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;8DACX;AAJvB,kEAKC;AAED,MAAa,sBAAsB;IAI/B,KAAK,CAAS;IAId,WAAW,CAAe;CAC7B;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;qDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qBAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;2DACT;AAR9B,wDASC;AAED,MAAa,4BAA4B;IAGrC,MAAM,CAAoB;CAC7B;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,yBAAiB,CAAC;;4DACA;AAH9B,oEAIC;AAED,MAAa,iCAAiC;IAG1C,WAAW,CAAe;CAC7B;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qBAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sEACT;AAH9B,8EAIC"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { SortType } from '../enums';
|
2
|
+
export declare class QuestionParamsDto {
|
3
|
+
term: string;
|
4
|
+
topics: string[];
|
5
|
+
sort: SortType;
|
6
|
+
authors: number[];
|
7
|
+
}
|
8
|
+
export declare class SubmitQuestionDto {
|
9
|
+
slug: string;
|
10
|
+
topics: string[];
|
11
|
+
title: string;
|
12
|
+
question: string;
|
13
|
+
name: string;
|
14
|
+
email: string;
|
15
|
+
phone: string;
|
16
|
+
private: boolean;
|
17
|
+
}
|
18
|
+
export declare class SubmitCommentDto {
|
19
|
+
comment: string;
|
20
|
+
}
|
21
|
+
export declare class UpdateQuestionTitleDto {
|
22
|
+
title: string;
|
23
|
+
}
|
24
|
+
export declare class UpdateQuestionDto {
|
25
|
+
question: string;
|
26
|
+
}
|
27
|
+
export declare class SubmitAuthorCommentDto {
|
28
|
+
content: string;
|
29
|
+
authorId: number;
|
30
|
+
}
|
@@ -0,0 +1,132 @@
|
|
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.SubmitAuthorCommentDto = exports.UpdateQuestionDto = exports.UpdateQuestionTitleDto = exports.SubmitCommentDto = exports.SubmitQuestionDto = exports.QuestionParamsDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const enums_1 = require("../enums");
|
15
|
+
class QuestionParamsDto {
|
16
|
+
term;
|
17
|
+
topics;
|
18
|
+
sort;
|
19
|
+
authors;
|
20
|
+
}
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
23
|
+
(0, class_validator_1.IsString)(),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], QuestionParamsDto.prototype, "term", void 0);
|
26
|
+
__decorate([
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
28
|
+
__metadata("design:type", Array)
|
29
|
+
], QuestionParamsDto.prototype, "topics", void 0);
|
30
|
+
__decorate([
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
32
|
+
(0, class_validator_1.IsEnum)(enums_1.SortType),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], QuestionParamsDto.prototype, "sort", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
37
|
+
__metadata("design:type", Array)
|
38
|
+
], QuestionParamsDto.prototype, "authors", void 0);
|
39
|
+
exports.QuestionParamsDto = QuestionParamsDto;
|
40
|
+
class SubmitQuestionDto {
|
41
|
+
slug;
|
42
|
+
topics;
|
43
|
+
title;
|
44
|
+
question;
|
45
|
+
name;
|
46
|
+
email;
|
47
|
+
phone;
|
48
|
+
private;
|
49
|
+
}
|
50
|
+
__decorate([
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
52
|
+
(0, class_validator_1.IsString)(),
|
53
|
+
__metadata("design:type", String)
|
54
|
+
], SubmitQuestionDto.prototype, "slug", void 0);
|
55
|
+
__decorate([
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
57
|
+
__metadata("design:type", Array)
|
58
|
+
], SubmitQuestionDto.prototype, "topics", void 0);
|
59
|
+
__decorate([
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
61
|
+
(0, class_validator_1.IsString)(),
|
62
|
+
__metadata("design:type", String)
|
63
|
+
], SubmitQuestionDto.prototype, "title", void 0);
|
64
|
+
__decorate([
|
65
|
+
(0, class_validator_1.IsNotEmpty)(),
|
66
|
+
(0, class_validator_1.IsString)(),
|
67
|
+
__metadata("design:type", String)
|
68
|
+
], SubmitQuestionDto.prototype, "question", void 0);
|
69
|
+
__decorate([
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
71
|
+
(0, class_validator_1.IsString)(),
|
72
|
+
__metadata("design:type", String)
|
73
|
+
], SubmitQuestionDto.prototype, "name", void 0);
|
74
|
+
__decorate([
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
76
|
+
(0, class_validator_1.IsString)(),
|
77
|
+
__metadata("design:type", String)
|
78
|
+
], SubmitQuestionDto.prototype, "email", void 0);
|
79
|
+
__decorate([
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
81
|
+
(0, class_validator_1.IsString)(),
|
82
|
+
__metadata("design:type", String)
|
83
|
+
], SubmitQuestionDto.prototype, "phone", void 0);
|
84
|
+
__decorate([
|
85
|
+
(0, class_validator_1.IsOptional)(),
|
86
|
+
(0, class_validator_1.IsBoolean)(),
|
87
|
+
__metadata("design:type", Boolean)
|
88
|
+
], SubmitQuestionDto.prototype, "private", void 0);
|
89
|
+
exports.SubmitQuestionDto = SubmitQuestionDto;
|
90
|
+
class SubmitCommentDto {
|
91
|
+
comment;
|
92
|
+
}
|
93
|
+
__decorate([
|
94
|
+
(0, class_validator_1.IsNotEmpty)(),
|
95
|
+
(0, class_validator_1.IsString)(),
|
96
|
+
__metadata("design:type", String)
|
97
|
+
], SubmitCommentDto.prototype, "comment", void 0);
|
98
|
+
exports.SubmitCommentDto = SubmitCommentDto;
|
99
|
+
class UpdateQuestionTitleDto {
|
100
|
+
title;
|
101
|
+
}
|
102
|
+
__decorate([
|
103
|
+
(0, class_validator_1.IsNotEmpty)(),
|
104
|
+
(0, class_validator_1.IsString)(),
|
105
|
+
__metadata("design:type", String)
|
106
|
+
], UpdateQuestionTitleDto.prototype, "title", void 0);
|
107
|
+
exports.UpdateQuestionTitleDto = UpdateQuestionTitleDto;
|
108
|
+
class UpdateQuestionDto {
|
109
|
+
question;
|
110
|
+
}
|
111
|
+
__decorate([
|
112
|
+
(0, class_validator_1.IsNotEmpty)(),
|
113
|
+
(0, class_validator_1.IsString)(),
|
114
|
+
__metadata("design:type", String)
|
115
|
+
], UpdateQuestionDto.prototype, "question", void 0);
|
116
|
+
exports.UpdateQuestionDto = UpdateQuestionDto;
|
117
|
+
class SubmitAuthorCommentDto {
|
118
|
+
content;
|
119
|
+
authorId;
|
120
|
+
}
|
121
|
+
__decorate([
|
122
|
+
(0, class_validator_1.IsNotEmpty)(),
|
123
|
+
(0, class_validator_1.IsString)(),
|
124
|
+
__metadata("design:type", String)
|
125
|
+
], SubmitAuthorCommentDto.prototype, "content", void 0);
|
126
|
+
__decorate([
|
127
|
+
(0, class_validator_1.IsNotEmpty)(),
|
128
|
+
(0, class_validator_1.IsNumber)(),
|
129
|
+
__metadata("design:type", Number)
|
130
|
+
], SubmitAuthorCommentDto.prototype, "authorId", void 0);
|
131
|
+
exports.SubmitAuthorCommentDto = SubmitAuthorCommentDto;
|
132
|
+
//# sourceMappingURL=question.dto.js.map
|