@intelact/bright 0.7.5 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/lib/dtos/author.dto.d.ts +2 -2
  2. package/lib/dtos/author.dto.js +7 -7
  3. package/lib/dtos/author.dto.js.map +1 -1
  4. package/lib/dtos/boost.dto.d.ts +2 -2
  5. package/lib/dtos/boost.dto.js +8 -9
  6. package/lib/dtos/boost.dto.js.map +1 -1
  7. package/lib/dtos/brand.dto.d.ts +17 -3
  8. package/lib/dtos/brand.dto.js +54 -9
  9. package/lib/dtos/brand.dto.js.map +1 -1
  10. package/lib/dtos/browse.dto.js.map +1 -1
  11. package/lib/dtos/bulk.dto.d.ts +3 -0
  12. package/lib/dtos/bulk.dto.js +22 -0
  13. package/lib/dtos/bulk.dto.js.map +1 -0
  14. package/lib/dtos/category.dto.d.ts +1 -4
  15. package/lib/dtos/category.dto.js +5 -13
  16. package/lib/dtos/category.dto.js.map +1 -1
  17. package/lib/dtos/feedback.dto.d.ts +2 -2
  18. package/lib/dtos/feedback.dto.js +7 -9
  19. package/lib/dtos/feedback.dto.js.map +1 -1
  20. package/lib/dtos/index.d.ts +2 -1
  21. package/lib/dtos/index.js +2 -1
  22. package/lib/dtos/index.js.map +1 -1
  23. package/lib/dtos/notification.js.map +1 -1
  24. package/lib/dtos/post.dto.d.ts +7 -10
  25. package/lib/dtos/post.dto.js +22 -30
  26. package/lib/dtos/post.dto.js.map +1 -1
  27. package/lib/dtos/promotion.dto.d.ts +4 -7
  28. package/lib/dtos/promotion.dto.js +18 -27
  29. package/lib/dtos/promotion.dto.js.map +1 -1
  30. package/lib/dtos/publisher.dto.d.ts +2 -13
  31. package/lib/dtos/publisher.dto.js +4 -38
  32. package/lib/dtos/publisher.dto.js.map +1 -1
  33. package/lib/dtos/question.dto.d.ts +4 -7
  34. package/lib/dtos/question.dto.js +22 -31
  35. package/lib/dtos/question.dto.js.map +1 -1
  36. package/lib/dtos/survey.dto.d.ts +5 -20
  37. package/lib/dtos/survey.dto.js +19 -62
  38. package/lib/dtos/survey.dto.js.map +1 -1
  39. package/lib/dtos/topic.dto.d.ts +1 -4
  40. package/lib/dtos/topic.dto.js +6 -14
  41. package/lib/dtos/topic.dto.js.map +1 -1
  42. package/lib/dtos/user.dto.d.ts +25 -0
  43. package/lib/dtos/user.dto.js +91 -0
  44. package/lib/dtos/user.dto.js.map +1 -0
  45. package/lib/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +1 -1
@@ -9,87 +9,78 @@ 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.UpdatePromotionUrlDto = exports.UpdatePromotionPeriodDto = exports.UpdatePromotionTitleDto = exports.CreatePromotionDto = exports.PromotionFilterDto = void 0;
12
+ exports.PromotionUrlDto = exports.PromotionPeriodDto = exports.PromotionTitleDto = exports.PromotionParamsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const enums_1 = require("../enums");
16
- class PromotionFilterDto {
16
+ class PromotionParamsDto {
17
17
  status;
18
18
  startDate;
19
19
  endDate;
20
20
  term;
21
21
  sort;
22
22
  }
23
- exports.PromotionFilterDto = PromotionFilterDto;
23
+ exports.PromotionParamsDto = PromotionParamsDto;
24
24
  __decorate([
25
25
  (0, class_validator_1.IsNotEmpty)(),
26
26
  (0, class_validator_1.IsEnum)(enums_1.StatusType),
27
27
  __metadata("design:type", String)
28
- ], PromotionFilterDto.prototype, "status", void 0);
28
+ ], PromotionParamsDto.prototype, "status", void 0);
29
29
  __decorate([
30
30
  (0, class_validator_1.IsOptional)(),
31
31
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
32
32
  (0, class_validator_1.IsDate)(),
33
33
  __metadata("design:type", Date)
34
- ], PromotionFilterDto.prototype, "startDate", void 0);
34
+ ], PromotionParamsDto.prototype, "startDate", void 0);
35
35
  __decorate([
36
36
  (0, class_validator_1.IsOptional)(),
37
37
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
38
38
  (0, class_validator_1.IsDate)(),
39
39
  __metadata("design:type", Date)
40
- ], PromotionFilterDto.prototype, "endDate", void 0);
40
+ ], PromotionParamsDto.prototype, "endDate", void 0);
41
41
  __decorate([
42
42
  (0, class_validator_1.IsOptional)(),
43
43
  (0, class_validator_1.IsString)(),
44
44
  __metadata("design:type", String)
45
- ], PromotionFilterDto.prototype, "term", void 0);
45
+ ], PromotionParamsDto.prototype, "term", void 0);
46
46
  __decorate([
47
47
  (0, class_validator_1.IsOptional)(),
48
48
  (0, class_validator_1.IsEnum)(enums_1.SortType),
49
49
  __metadata("design:type", String)
50
- ], PromotionFilterDto.prototype, "sort", void 0);
51
- class CreatePromotionDto {
50
+ ], PromotionParamsDto.prototype, "sort", void 0);
51
+ class PromotionTitleDto {
52
52
  title;
53
53
  }
54
- exports.CreatePromotionDto = CreatePromotionDto;
54
+ exports.PromotionTitleDto = PromotionTitleDto;
55
55
  __decorate([
56
56
  (0, class_validator_1.IsNotEmpty)(),
57
57
  (0, class_validator_1.IsString)(),
58
58
  __metadata("design:type", String)
59
- ], CreatePromotionDto.prototype, "title", void 0);
60
- class UpdatePromotionTitleDto {
61
- title;
62
- }
63
- exports.UpdatePromotionTitleDto = UpdatePromotionTitleDto;
64
- __decorate([
65
- (0, class_validator_1.IsNotEmpty)(),
66
- (0, class_validator_1.IsString)(),
67
- __metadata("design:type", String)
68
- ], UpdatePromotionTitleDto.prototype, "title", void 0);
69
- class UpdatePromotionPeriodDto {
59
+ ], PromotionTitleDto.prototype, "title", void 0);
60
+ class PromotionPeriodDto {
70
61
  startDate;
71
62
  endDate;
72
63
  }
73
- exports.UpdatePromotionPeriodDto = UpdatePromotionPeriodDto;
64
+ exports.PromotionPeriodDto = PromotionPeriodDto;
74
65
  __decorate([
75
66
  (0, class_validator_1.IsNotEmpty)(),
76
67
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
77
68
  (0, class_validator_1.IsDate)(),
78
69
  __metadata("design:type", Date)
79
- ], UpdatePromotionPeriodDto.prototype, "startDate", void 0);
70
+ ], PromotionPeriodDto.prototype, "startDate", void 0);
80
71
  __decorate([
81
72
  (0, class_validator_1.IsNotEmpty)(),
82
73
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
83
74
  (0, class_validator_1.IsDate)(),
84
75
  __metadata("design:type", Date)
85
- ], UpdatePromotionPeriodDto.prototype, "endDate", void 0);
86
- class UpdatePromotionUrlDto {
76
+ ], PromotionPeriodDto.prototype, "endDate", void 0);
77
+ class PromotionUrlDto {
87
78
  url;
88
79
  }
89
- exports.UpdatePromotionUrlDto = UpdatePromotionUrlDto;
80
+ exports.PromotionUrlDto = PromotionUrlDto;
90
81
  __decorate([
91
82
  (0, class_validator_1.IsNotEmpty)(),
92
83
  (0, class_validator_1.IsUrl)(),
93
84
  __metadata("design:type", String)
94
- ], UpdatePromotionUrlDto.prototype, "url", void 0);
85
+ ], PromotionUrlDto.prototype, "url", void 0);
95
86
  //# sourceMappingURL=promotion.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.dto.js","sourceRoot":"","sources":["../../src/dtos/promotion.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0F;AAC1F,yDAA8C;AAC9C,oCAAgD;AAEhD,MAAa,kBAAkB;IAI9B,MAAM,CAAa;IAKnB,SAAS,CAAO;IAKhB,OAAO,CAAO;IAId,IAAI,CAAS;IAIb,IAAI,CAAW;CACf;AAvBD,gDAuBC;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,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E,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;AAGf,MAAa,eAAe;IAG3B,GAAG,CAAS;CACZ;AAJD,0CAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,uBAAK,GAAE;;4CACI"}
@@ -1,19 +1,8 @@
1
- import { AccountStatusType, PostType } from '../enums';
2
- import { Permission } from '../security';
1
+ import { PostType } from '../enums';
3
2
  export declare class InvitePublisherDto {
4
3
  email: string;
5
4
  postTypes: PostType[];
6
5
  }
7
- export declare class UpdatePublisherPostTypesDto {
6
+ export declare class PublisherPostTypesDto {
8
7
  postTypes: PostType[];
9
8
  }
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
- }
@@ -9,10 +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.UpdatePublisherUserPermissionsDto = exports.ChangePublisherUserStatusDto = exports.InvitePublisherUserDto = exports.UpdatePublisherPostTypesDto = exports.InvitePublisherDto = void 0;
12
+ exports.PublisherPostTypesDto = exports.InvitePublisherDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const enums_1 = require("../enums");
15
- const security_1 = require("../security");
16
15
  class InvitePublisherDto {
17
16
  email;
18
17
  postTypes;
@@ -28,46 +27,13 @@ __decorate([
28
27
  (0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
29
28
  __metadata("design:type", Array)
30
29
  ], InvitePublisherDto.prototype, "postTypes", void 0);
31
- class UpdatePublisherPostTypesDto {
30
+ class PublisherPostTypesDto {
32
31
  postTypes;
33
32
  }
34
- exports.UpdatePublisherPostTypesDto = UpdatePublisherPostTypesDto;
33
+ exports.PublisherPostTypesDto = PublisherPostTypesDto;
35
34
  __decorate([
36
35
  (0, class_validator_1.IsNotEmpty)(),
37
36
  (0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
38
37
  __metadata("design:type", Array)
39
- ], UpdatePublisherPostTypesDto.prototype, "postTypes", void 0);
40
- class InvitePublisherUserDto {
41
- email;
42
- permissions;
43
- }
44
- exports.InvitePublisherUserDto = InvitePublisherUserDto;
45
- __decorate([
46
- (0, class_validator_1.IsNotEmpty)(),
47
- (0, class_validator_1.IsEmail)(),
48
- __metadata("design:type", String)
49
- ], InvitePublisherUserDto.prototype, "email", void 0);
50
- __decorate([
51
- (0, class_validator_1.IsNotEmpty)(),
52
- (0, class_validator_1.IsEnum)(security_1.Permission, { each: true }),
53
- __metadata("design:type", Array)
54
- ], InvitePublisherUserDto.prototype, "permissions", void 0);
55
- class ChangePublisherUserStatusDto {
56
- status;
57
- }
58
- exports.ChangePublisherUserStatusDto = ChangePublisherUserStatusDto;
59
- __decorate([
60
- (0, class_validator_1.IsNotEmpty)(),
61
- (0, class_validator_1.IsEnum)(enums_1.AccountStatusType),
62
- __metadata("design:type", String)
63
- ], ChangePublisherUserStatusDto.prototype, "status", void 0);
64
- class UpdatePublisherUserPermissionsDto {
65
- permissions;
66
- }
67
- exports.UpdatePublisherUserPermissionsDto = UpdatePublisherUserPermissionsDto;
68
- __decorate([
69
- (0, class_validator_1.IsNotEmpty)(),
70
- (0, class_validator_1.IsEnum)(security_1.Permission, { each: true }),
71
- __metadata("design:type", Array)
72
- ], UpdatePublisherUserPermissionsDto.prototype, "permissions", void 0);
38
+ ], PublisherPostTypesDto.prototype, "postTypes", void 0);
73
39
  //# sourceMappingURL=publisher.dto.js.map
@@ -1 +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;AATD,gDASC;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;AAGvB,MAAa,2BAA2B;IAIvC,SAAS,CAAa;CACtB;AALD,kEAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;8DACX;AAGvB,MAAa,sBAAsB;IAI/B,KAAK,CAAS;IAId,WAAW,CAAe;CAC7B;AATD,wDASC;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;AAG9B,MAAa,4BAA4B;IAGrC,MAAM,CAAoB;CAC7B;AAJD,oEAIC;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,yBAAiB,CAAC;;4DACA;AAG9B,MAAa,iCAAiC;IAG1C,WAAW,CAAe;CAC7B;AAJD,8EAIC;AADG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qBAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sEACT"}
1
+ {"version":3,"file":"publisher.dto.js","sourceRoot":"","sources":["../../src/dtos/publisher.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoE;AACpE,oCAAuD;AAGvD,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,SAAS,CAAa;CACtB;AATD,gDASC;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;AAGvB,MAAa,qBAAqB;IAIjC,SAAS,CAAa;CACtB;AALD,sDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACX"}
@@ -5,7 +5,7 @@ export declare class QuestionParamsDto {
5
5
  sort: SortType;
6
6
  authors: number[];
7
7
  }
8
- export declare class SubmitQuestionDto {
8
+ export declare class AskQuestionDto {
9
9
  slug: string;
10
10
  topics: string[];
11
11
  title: string;
@@ -15,16 +15,13 @@ export declare class SubmitQuestionDto {
15
15
  phone: string;
16
16
  private: boolean;
17
17
  }
18
- export declare class SubmitCommentDto {
19
- comment: string;
20
- }
21
- export declare class UpdateQuestionTitleDto {
18
+ export declare class QuestionTitleDto {
22
19
  title: string;
23
20
  }
24
- export declare class UpdateQuestionDto {
21
+ export declare class QuestionContentDto {
25
22
  question: string;
26
23
  }
27
- export declare class SubmitAuthorCommentDto {
24
+ export declare class QuestionCommentDto {
28
25
  content: string;
29
26
  authorId: number;
30
27
  }
@@ -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.SubmitAuthorCommentDto = exports.UpdateQuestionDto = exports.UpdateQuestionTitleDto = exports.SubmitCommentDto = exports.SubmitQuestionDto = exports.QuestionParamsDto = void 0;
12
+ exports.QuestionCommentDto = exports.QuestionContentDto = exports.QuestionTitleDto = exports.AskQuestionDto = exports.QuestionParamsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const enums_1 = require("../enums");
15
15
  class QuestionParamsDto {
@@ -37,7 +37,7 @@ __decorate([
37
37
  (0, class_validator_1.IsOptional)(),
38
38
  __metadata("design:type", Array)
39
39
  ], QuestionParamsDto.prototype, "authors", void 0);
40
- class SubmitQuestionDto {
40
+ class AskQuestionDto {
41
41
  slug;
42
42
  topics;
43
43
  title;
@@ -47,86 +47,77 @@ class SubmitQuestionDto {
47
47
  phone;
48
48
  private;
49
49
  }
50
- exports.SubmitQuestionDto = SubmitQuestionDto;
50
+ exports.AskQuestionDto = AskQuestionDto;
51
51
  __decorate([
52
52
  (0, class_validator_1.IsOptional)(),
53
53
  (0, class_validator_1.IsString)(),
54
54
  __metadata("design:type", String)
55
- ], SubmitQuestionDto.prototype, "slug", void 0);
55
+ ], AskQuestionDto.prototype, "slug", void 0);
56
56
  __decorate([
57
57
  (0, class_validator_1.IsOptional)(),
58
58
  __metadata("design:type", Array)
59
- ], SubmitQuestionDto.prototype, "topics", void 0);
59
+ ], AskQuestionDto.prototype, "topics", void 0);
60
60
  __decorate([
61
61
  (0, class_validator_1.IsOptional)(),
62
62
  (0, class_validator_1.IsString)(),
63
63
  __metadata("design:type", String)
64
- ], SubmitQuestionDto.prototype, "title", void 0);
64
+ ], AskQuestionDto.prototype, "title", void 0);
65
65
  __decorate([
66
66
  (0, class_validator_1.IsNotEmpty)(),
67
67
  (0, class_validator_1.IsString)(),
68
68
  __metadata("design:type", String)
69
- ], SubmitQuestionDto.prototype, "question", void 0);
69
+ ], AskQuestionDto.prototype, "question", void 0);
70
70
  __decorate([
71
71
  (0, class_validator_1.IsOptional)(),
72
72
  (0, class_validator_1.IsString)(),
73
73
  __metadata("design:type", String)
74
- ], SubmitQuestionDto.prototype, "name", void 0);
74
+ ], AskQuestionDto.prototype, "name", void 0);
75
75
  __decorate([
76
76
  (0, class_validator_1.IsOptional)(),
77
77
  (0, class_validator_1.IsString)(),
78
78
  __metadata("design:type", String)
79
- ], SubmitQuestionDto.prototype, "email", void 0);
79
+ ], AskQuestionDto.prototype, "email", void 0);
80
80
  __decorate([
81
81
  (0, class_validator_1.IsOptional)(),
82
82
  (0, class_validator_1.IsString)(),
83
83
  __metadata("design:type", String)
84
- ], SubmitQuestionDto.prototype, "phone", void 0);
84
+ ], AskQuestionDto.prototype, "phone", void 0);
85
85
  __decorate([
86
86
  (0, class_validator_1.IsOptional)(),
87
87
  (0, class_validator_1.IsBoolean)(),
88
88
  __metadata("design:type", Boolean)
89
- ], SubmitQuestionDto.prototype, "private", void 0);
90
- class SubmitCommentDto {
91
- comment;
92
- }
93
- exports.SubmitCommentDto = SubmitCommentDto;
94
- __decorate([
95
- (0, class_validator_1.IsNotEmpty)(),
96
- (0, class_validator_1.IsString)(),
97
- __metadata("design:type", String)
98
- ], SubmitCommentDto.prototype, "comment", void 0);
99
- class UpdateQuestionTitleDto {
89
+ ], AskQuestionDto.prototype, "private", void 0);
90
+ class QuestionTitleDto {
100
91
  title;
101
92
  }
102
- exports.UpdateQuestionTitleDto = UpdateQuestionTitleDto;
93
+ exports.QuestionTitleDto = QuestionTitleDto;
103
94
  __decorate([
104
95
  (0, class_validator_1.IsNotEmpty)(),
105
96
  (0, class_validator_1.IsString)(),
106
97
  __metadata("design:type", String)
107
- ], UpdateQuestionTitleDto.prototype, "title", void 0);
108
- class UpdateQuestionDto {
98
+ ], QuestionTitleDto.prototype, "title", void 0);
99
+ class QuestionContentDto {
109
100
  question;
110
101
  }
111
- exports.UpdateQuestionDto = UpdateQuestionDto;
102
+ exports.QuestionContentDto = QuestionContentDto;
112
103
  __decorate([
113
104
  (0, class_validator_1.IsNotEmpty)(),
114
105
  (0, class_validator_1.IsString)(),
115
106
  __metadata("design:type", String)
116
- ], UpdateQuestionDto.prototype, "question", void 0);
117
- class SubmitAuthorCommentDto {
107
+ ], QuestionContentDto.prototype, "question", void 0);
108
+ class QuestionCommentDto {
118
109
  content;
119
110
  authorId;
120
111
  }
121
- exports.SubmitAuthorCommentDto = SubmitAuthorCommentDto;
112
+ exports.QuestionCommentDto = QuestionCommentDto;
122
113
  __decorate([
123
114
  (0, class_validator_1.IsNotEmpty)(),
124
115
  (0, class_validator_1.IsString)(),
125
116
  __metadata("design:type", String)
126
- ], SubmitAuthorCommentDto.prototype, "content", void 0);
117
+ ], QuestionCommentDto.prototype, "content", void 0);
127
118
  __decorate([
128
- (0, class_validator_1.IsNotEmpty)(),
119
+ (0, class_validator_1.IsOptional)(),
129
120
  (0, class_validator_1.IsNumber)(),
130
121
  __metadata("design:type", Number)
131
- ], SubmitAuthorCommentDto.prototype, "authorId", void 0);
122
+ ], QuestionCommentDto.prototype, "authorId", void 0);
132
123
  //# sourceMappingURL=question.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"question.dto.js","sourceRoot":"","sources":["../../src/dtos/question.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgG;AAChG,oCAAoC;AAEpC,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAGb,MAAM,CAAW;IAIjB,IAAI,CAAW;IAGf,OAAO,CAAW;CAClB;AAfD,8CAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACE;AAGb;IADC,IAAA,4BAAU,GAAE;;iDACI;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;+CACF;AAGf;IADC,IAAA,4BAAU,GAAE;;kDACK;AAGnB,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAGb,MAAM,CAAW;IAIjB,KAAK,CAAS;IAId,QAAQ,CAAS;IAIjB,IAAI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ADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM;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"}
@@ -6,35 +6,20 @@ export declare class SurveyParamsDto {
6
6
  term: string;
7
7
  sort: SortType;
8
8
  }
9
- export declare class CreateSurveyDto {
9
+ export declare class SurveyNameDto {
10
10
  name: string;
11
11
  }
12
- export declare class UpdateSurveyNameDto {
13
- name: string;
14
- }
15
- export declare class UpdateSurveyDescriptionDto {
12
+ export declare class SurveyDescriptionDto {
16
13
  description: string;
17
14
  }
18
- export declare class UpdateSurveyPeriodDto {
15
+ export declare class SurveyPeriodDto {
19
16
  startDate: Date;
20
17
  endDate: Date;
21
18
  }
22
- export declare class CreateSurveyQuestionDto {
19
+ export declare class SurveyQuestionDto {
23
20
  question: string;
24
21
  multiple: boolean;
25
22
  }
26
- export declare class UpdateSurveyQuestionDto {
27
- question: string;
28
- }
29
- export declare class SortSurveyQuestionsDto {
30
- ids: number[];
31
- }
32
- export declare class CreateSurveyOptionDto {
33
- content: string;
34
- }
35
- export declare class UpdateSurveyOptionDto {
23
+ export declare class SurveyOptionDto {
36
24
  content: string;
37
25
  }
38
- export declare class SortSurveyOptionsDto {
39
- ids: number[];
40
- }
@@ -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.SortSurveyOptionsDto = exports.UpdateSurveyOptionDto = exports.CreateSurveyOptionDto = exports.SortSurveyQuestionsDto = exports.UpdateSurveyQuestionDto = exports.CreateSurveyQuestionDto = exports.UpdateSurveyPeriodDto = exports.UpdateSurveyDescriptionDto = exports.UpdateSurveyNameDto = exports.CreateSurveyDto = exports.SurveyParamsDto = void 0;
12
+ exports.SurveyOptionDto = exports.SurveyQuestionDto = exports.SurveyPeriodDto = exports.SurveyDescriptionDto = exports.SurveyNameDto = exports.SurveyParamsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const enums_1 = require("../enums");
@@ -48,106 +48,63 @@ __decorate([
48
48
  (0, class_validator_1.IsEnum)(enums_1.SortType),
49
49
  __metadata("design:type", String)
50
50
  ], SurveyParamsDto.prototype, "sort", void 0);
51
- class CreateSurveyDto {
51
+ class SurveyNameDto {
52
52
  name;
53
53
  }
54
- exports.CreateSurveyDto = CreateSurveyDto;
54
+ exports.SurveyNameDto = SurveyNameDto;
55
55
  __decorate([
56
56
  (0, class_validator_1.IsNotEmpty)(),
57
57
  (0, class_validator_1.IsString)(),
58
58
  __metadata("design:type", String)
59
- ], CreateSurveyDto.prototype, "name", void 0);
60
- class UpdateSurveyNameDto {
61
- name;
62
- }
63
- exports.UpdateSurveyNameDto = UpdateSurveyNameDto;
64
- __decorate([
65
- (0, class_validator_1.IsNotEmpty)(),
66
- (0, class_validator_1.IsString)(),
67
- __metadata("design:type", String)
68
- ], UpdateSurveyNameDto.prototype, "name", void 0);
69
- class UpdateSurveyDescriptionDto {
59
+ ], SurveyNameDto.prototype, "name", void 0);
60
+ class SurveyDescriptionDto {
70
61
  description;
71
62
  }
72
- exports.UpdateSurveyDescriptionDto = UpdateSurveyDescriptionDto;
63
+ exports.SurveyDescriptionDto = SurveyDescriptionDto;
73
64
  __decorate([
74
65
  (0, class_validator_1.IsNotEmpty)(),
75
66
  (0, class_validator_1.IsString)(),
76
67
  __metadata("design:type", String)
77
- ], UpdateSurveyDescriptionDto.prototype, "description", void 0);
78
- class UpdateSurveyPeriodDto {
68
+ ], SurveyDescriptionDto.prototype, "description", void 0);
69
+ class SurveyPeriodDto {
79
70
  startDate;
80
71
  endDate;
81
72
  }
82
- exports.UpdateSurveyPeriodDto = UpdateSurveyPeriodDto;
73
+ exports.SurveyPeriodDto = SurveyPeriodDto;
83
74
  __decorate([
84
75
  (0, class_validator_1.IsNotEmpty)(),
85
76
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
86
77
  (0, class_validator_1.IsDate)(),
87
78
  __metadata("design:type", Date)
88
- ], UpdateSurveyPeriodDto.prototype, "startDate", void 0);
79
+ ], SurveyPeriodDto.prototype, "startDate", void 0);
89
80
  __decorate([
90
81
  (0, class_validator_1.IsNotEmpty)(),
91
82
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
92
83
  (0, class_validator_1.IsDate)(),
93
84
  __metadata("design:type", Date)
94
- ], UpdateSurveyPeriodDto.prototype, "endDate", void 0);
95
- class CreateSurveyQuestionDto {
85
+ ], SurveyPeriodDto.prototype, "endDate", void 0);
86
+ class SurveyQuestionDto {
96
87
  question;
97
88
  multiple;
98
89
  }
99
- exports.CreateSurveyQuestionDto = CreateSurveyQuestionDto;
90
+ exports.SurveyQuestionDto = SurveyQuestionDto;
100
91
  __decorate([
101
92
  (0, class_validator_1.IsNotEmpty)(),
102
93
  (0, class_validator_1.IsString)(),
103
94
  __metadata("design:type", String)
104
- ], CreateSurveyQuestionDto.prototype, "question", void 0);
95
+ ], SurveyQuestionDto.prototype, "question", void 0);
105
96
  __decorate([
106
- (0, class_validator_1.IsNotEmpty)(),
97
+ (0, class_validator_1.IsOptional)(),
107
98
  (0, class_validator_1.IsBoolean)(),
108
99
  __metadata("design:type", Boolean)
109
- ], CreateSurveyQuestionDto.prototype, "multiple", void 0);
110
- class UpdateSurveyQuestionDto {
111
- question;
112
- }
113
- exports.UpdateSurveyQuestionDto = UpdateSurveyQuestionDto;
114
- __decorate([
115
- (0, class_validator_1.IsNotEmpty)(),
116
- (0, class_validator_1.IsString)(),
117
- __metadata("design:type", String)
118
- ], UpdateSurveyQuestionDto.prototype, "question", void 0);
119
- class SortSurveyQuestionsDto {
120
- ids;
121
- }
122
- exports.SortSurveyQuestionsDto = SortSurveyQuestionsDto;
123
- __decorate([
124
- (0, class_validator_1.IsNotEmpty)(),
125
- __metadata("design:type", Array)
126
- ], SortSurveyQuestionsDto.prototype, "ids", void 0);
127
- class CreateSurveyOptionDto {
100
+ ], SurveyQuestionDto.prototype, "multiple", void 0);
101
+ class SurveyOptionDto {
128
102
  content;
129
103
  }
130
- exports.CreateSurveyOptionDto = CreateSurveyOptionDto;
104
+ exports.SurveyOptionDto = SurveyOptionDto;
131
105
  __decorate([
132
106
  (0, class_validator_1.IsNotEmpty)(),
133
107
  (0, class_validator_1.IsString)(),
134
108
  __metadata("design:type", String)
135
- ], CreateSurveyOptionDto.prototype, "content", void 0);
136
- class UpdateSurveyOptionDto {
137
- content;
138
- }
139
- exports.UpdateSurveyOptionDto = UpdateSurveyOptionDto;
140
- __decorate([
141
- (0, class_validator_1.IsNotEmpty)(),
142
- (0, class_validator_1.IsString)(),
143
- __metadata("design:type", String)
144
- ], UpdateSurveyOptionDto.prototype, "content", void 0);
145
- class SortSurveyOptionsDto {
146
- ids;
147
- }
148
- exports.SortSurveyOptionsDto = SortSurveyOptionsDto;
149
- __decorate([
150
- (0, class_validator_1.IsNotEmpty)(),
151
- __metadata("design:type", Array)
152
- ], SortSurveyOptionsDto.prototype, "ids", void 0);
109
+ ], SurveyOptionDto.prototype, "content", void 0);
153
110
  //# sourceMappingURL=survey.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey.dto.js","sourceRoot":"","sources":["../../src/dtos/survey.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8F;AAC9F,yDAA8C;AAC9C,oCAAgD;AAEhD,MAAa,eAAe;IAI3B,MAAM,CAAa;IAKnB,SAAS,CAAO;IAKhB,OAAO,CAAO;IAId,IAAI,CAAS;IAIb,IAAI,CAAW;CACf;AAvBD,0CAuBC;AAnBA;IAFC,IAAA,4BAAU,G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B;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;gDAAC;AAGf,MAAa,iBAAiB;IAI7B,QAAQ,CAAS;IAIjB,QAAQ,CAAU;CAClB;AATD,8CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;mDACM;AAGnB,MAAa,eAAe;IAG3B,OAAO,CAAS;CAChB;AAJD,0CAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACK"}
@@ -1,8 +1,5 @@
1
- export declare class SubmitTopicDto {
1
+ export declare class TopicDto {
2
2
  title: string;
3
3
  description: string;
4
4
  weight: number;
5
5
  }
6
- export declare class SortTopicsDto {
7
- ids: number[];
8
- }
@@ -9,35 +9,27 @@ 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.SortTopicsDto = exports.SubmitTopicDto = void 0;
12
+ exports.TopicDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class SubmitTopicDto {
14
+ class TopicDto {
15
15
  title;
16
16
  description;
17
17
  weight;
18
18
  }
19
- exports.SubmitTopicDto = SubmitTopicDto;
19
+ exports.TopicDto = TopicDto;
20
20
  __decorate([
21
21
  (0, class_validator_1.IsNotEmpty)(),
22
22
  (0, class_validator_1.IsString)(),
23
23
  __metadata("design:type", String)
24
- ], SubmitTopicDto.prototype, "title", void 0);
24
+ ], TopicDto.prototype, "title", void 0);
25
25
  __decorate([
26
26
  (0, class_validator_1.IsOptional)(),
27
27
  (0, class_validator_1.IsString)(),
28
28
  __metadata("design:type", String)
29
- ], SubmitTopicDto.prototype, "description", void 0);
29
+ ], TopicDto.prototype, "description", void 0);
30
30
  __decorate([
31
31
  (0, class_validator_1.IsNotEmpty)(),
32
32
  (0, class_validator_1.IsNumber)(),
33
33
  __metadata("design:type", Number)
34
- ], SubmitTopicDto.prototype, "weight", void 0);
35
- class SortTopicsDto {
36
- ids;
37
- }
38
- exports.SortTopicsDto = SortTopicsDto;
39
- __decorate([
40
- (0, class_validator_1.IsNotEmpty)(),
41
- __metadata("design:type", Array)
42
- ], SortTopicsDto.prototype, "ids", void 0);
34
+ ], TopicDto.prototype, "weight", void 0);
43
35
  //# sourceMappingURL=topic.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"topic.dto.js","sourceRoot":"","sources":["../../src/dtos/topic.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,cAAc;IAG1B,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAS;CACf;AAZD,wCAYC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACI;AAGhB,MAAa,aAAa;IAEzB,GAAG,CAAW;CACd;AAHD,sCAGC;AADA;IADC,IAAA,4BAAU,GAAE;;0CACC"}
1
+ {"version":3,"file":"topic.dto.js","sourceRoot":"","sources":["../../src/dtos/topic.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6E;AAE7E,MAAa,QAAQ;IAIpB,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,MAAM,CAAS;CACf;AAbD,4BAaC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uCACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACI"}
@@ -0,0 +1,25 @@
1
+ import { AccountStatusType } from '../enums';
2
+ import { Role } from '../security';
3
+ export declare class InviteUserDto {
4
+ email: string;
5
+ roles: Role[];
6
+ }
7
+ export declare class UserEmailDto {
8
+ email: string;
9
+ }
10
+ export declare class UserPasswordDto {
11
+ password: string;
12
+ repeatPassword: string;
13
+ }
14
+ export declare class UserNameDto {
15
+ name: string;
16
+ }
17
+ export declare class UserPhoneDto {
18
+ phone: string;
19
+ }
20
+ export declare class UserStatusDto {
21
+ status: AccountStatusType;
22
+ }
23
+ export declare class UserRolesDto {
24
+ roles: Role[];
25
+ }