@intelact/bright 0.7.5 → 0.7.7

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 +7 -4
  34. package/lib/dtos/question.dto.js +30 -21
  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
@@ -6,9 +6,9 @@ export declare class AuthorParamsDto {
6
6
  export declare class CreateAuthorDto {
7
7
  name: string;
8
8
  }
9
- export declare class UpdateAuthorNameDto {
9
+ export declare class AuthorNameDto {
10
10
  name: string;
11
11
  }
12
- export declare class UpdateAuthorBiographyDto {
12
+ export declare class AuthorBiographyDto {
13
13
  biography: string;
14
14
  }
@@ -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.UpdateAuthorBiographyDto = exports.UpdateAuthorNameDto = exports.CreateAuthorDto = exports.AuthorParamsDto = void 0;
12
+ exports.AuthorBiographyDto = exports.AuthorNameDto = exports.CreateAuthorDto = exports.AuthorParamsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const enums_1 = require("../enums");
15
15
  class AuthorParamsDto {
@@ -36,22 +36,22 @@ __decorate([
36
36
  (0, class_validator_1.IsString)(),
37
37
  __metadata("design:type", String)
38
38
  ], CreateAuthorDto.prototype, "name", void 0);
39
- class UpdateAuthorNameDto {
39
+ class AuthorNameDto {
40
40
  name;
41
41
  }
42
- exports.UpdateAuthorNameDto = UpdateAuthorNameDto;
42
+ exports.AuthorNameDto = AuthorNameDto;
43
43
  __decorate([
44
44
  (0, class_validator_1.IsNotEmpty)(),
45
45
  (0, class_validator_1.IsString)(),
46
46
  __metadata("design:type", String)
47
- ], UpdateAuthorNameDto.prototype, "name", void 0);
48
- class UpdateAuthorBiographyDto {
47
+ ], AuthorNameDto.prototype, "name", void 0);
48
+ class AuthorBiographyDto {
49
49
  biography;
50
50
  }
51
- exports.UpdateAuthorBiographyDto = UpdateAuthorBiographyDto;
51
+ exports.AuthorBiographyDto = AuthorBiographyDto;
52
52
  __decorate([
53
53
  (0, class_validator_1.IsOptional)(),
54
54
  (0, class_validator_1.IsString)(),
55
55
  __metadata("design:type", String)
56
- ], UpdateAuthorBiographyDto.prototype, "biography", void 0);
56
+ ], AuthorBiographyDto.prototype, "biography", void 0);
57
57
  //# sourceMappingURL=author.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"author.dto.js","sourceRoot":"","sources":["../../src/dtos/author.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,oCAA0C;AAE1C,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,IAAI,CAAiB;CACrB;AATD,0CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,sBAAc,CAAC;;6CACF;AAGtB,MAAa,eAAe;IAI3B,IAAI,CAAS;CACb;AALD,0CAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGd,MAAa,mBAAmB;IAG/B,IAAI,CAAS;CACb;AAJD,kDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACE;AAGd,MAAa,wBAAwB;IAIpC,SAAS,CAAS;CAClB;AALD,4DAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACO"}
1
+ {"version":3,"file":"author.dto.js","sourceRoot":"","sources":["../../src/dtos/author.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,oCAA0C;AAE1C,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,IAAI,CAAiB;CACrB;AATD,0CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,sBAAc,CAAC;;6CACF;AAGtB,MAAa,eAAe;IAI3B,IAAI,CAAS;CACb;AALD,0CAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGd,MAAa,aAAa;IAGzB,IAAI,CAAS;CACb;AAJD,sCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAGd,MAAa,kBAAkB;IAI9B,SAAS,CAAS;CAClB;AALD,gDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACO"}
@@ -3,10 +3,10 @@ export declare class CreateBoostDto {
3
3
  startDate: Date;
4
4
  endDate: Date;
5
5
  }
6
- export declare class UpdateBoostTitleDto {
6
+ export declare class BoostTitleDto {
7
7
  title: string;
8
8
  }
9
- export declare class UpdateBoostPeriodDto {
9
+ export declare class BoostPeriodDto {
10
10
  startDate: Date;
11
11
  endDate: Date;
12
12
  }
@@ -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.UpdateBoostPeriodDto = exports.UpdateBoostTitleDto = exports.CreateBoostDto = void 0;
12
+ exports.BoostPeriodDto = exports.BoostTitleDto = 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,31 +35,30 @@ __decorate([
35
35
  (0, class_validator_1.IsDate)(),
36
36
  __metadata("design:type", Date)
37
37
  ], CreateBoostDto.prototype, "endDate", void 0);
38
- class UpdateBoostTitleDto {
38
+ class BoostTitleDto {
39
39
  title;
40
40
  }
41
- exports.UpdateBoostTitleDto = UpdateBoostTitleDto;
41
+ exports.BoostTitleDto = BoostTitleDto;
42
42
  __decorate([
43
43
  (0, class_validator_1.IsNotEmpty)(),
44
44
  (0, class_validator_1.IsString)(),
45
- (0, class_validator_1.MaxLength)(255),
46
45
  __metadata("design:type", String)
47
- ], UpdateBoostTitleDto.prototype, "title", void 0);
48
- class UpdateBoostPeriodDto {
46
+ ], BoostTitleDto.prototype, "title", void 0);
47
+ class BoostPeriodDto {
49
48
  startDate;
50
49
  endDate;
51
50
  }
52
- exports.UpdateBoostPeriodDto = UpdateBoostPeriodDto;
51
+ exports.BoostPeriodDto = BoostPeriodDto;
53
52
  __decorate([
54
53
  (0, class_validator_1.IsNotEmpty)(),
55
54
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
56
55
  (0, class_validator_1.IsDate)(),
57
56
  __metadata("design:type", Date)
58
- ], UpdateBoostPeriodDto.prototype, "startDate", void 0);
57
+ ], BoostPeriodDto.prototype, "startDate", void 0);
59
58
  __decorate([
60
59
  (0, class_validator_1.IsNotEmpty)(),
61
60
  (0, class_transformer_1.Transform)(({ value }) => (new Date(value.toString()))),
62
61
  (0, class_validator_1.IsDate)(),
63
62
  __metadata("design:type", Date)
64
- ], UpdateBoostPeriodDto.prototype, "endDate", void 0);
63
+ ], BoostPeriodDto.prototype, "endDate", void 0);
65
64
  //# sourceMappingURL=boost.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"boost.dto.js","sourceRoot":"","sources":["../../src/dtos/boost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA8C;AAC9C,qDAA0E;AAE1E,MAAa,cAAc;IAI1B,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,wCAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GA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Dto {
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 {
3
11
  email: string;
4
- permissions: Permission[];
12
+ }
13
+ export declare class BrandDescriptionDto {
14
+ description: string;
15
+ }
16
+ export declare class BrandSettingDto {
17
+ name: string;
18
+ value: any;
5
19
  }
@@ -9,21 +9,66 @@ 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.InviteBrandUserDto = void 0;
12
+ exports.BrandSettingDto = exports.BrandDescriptionDto = exports.BrandEmailDto = exports.BrandUrlDto = exports.BrandSloganDto = exports.BrandNameDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class InviteBrandUserDto {
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 {
15
42
  email;
16
- permissions;
17
43
  }
18
- exports.InviteBrandUserDto = InviteBrandUserDto;
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
+ class BrandSettingDto {
60
+ name;
61
+ value;
62
+ }
63
+ exports.BrandSettingDto = BrandSettingDto;
19
64
  __decorate([
20
65
  (0, class_validator_1.IsNotEmpty)(),
21
- (0, class_validator_1.IsEmail)(),
66
+ (0, class_validator_1.IsString)(),
22
67
  __metadata("design:type", String)
23
- ], InviteBrandUserDto.prototype, "email", void 0);
68
+ ], BrandSettingDto.prototype, "name", void 0);
24
69
  __decorate([
25
70
  (0, class_validator_1.IsNotEmpty)(),
26
- (0, class_validator_1.IsEnum)({ each: true }),
27
- __metadata("design:type", Array)
28
- ], InviteBrandUserDto.prototype, "permissions", void 0);
71
+ (0, class_validator_1.IsString)(),
72
+ __metadata("design:type", Object)
73
+ ], BrandSettingDto.prototype, "value", void 0);
29
74
  //# sourceMappingURL=brand.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../src/dtos/brand.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAI9D,MAAa,kBAAkB;IAI3B,KAAK,CAAS;IAId,WAAW,CAAe;CAC7B;AATD,gDASC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;uDACG"}
1
+ {"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../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
1
+ export declare class SortDto {
2
+ ids: number[];
3
+ }
@@ -0,0 +1,22 @@
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.SortDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SortDto {
15
+ ids;
16
+ }
17
+ exports.SortDto = SortDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsNotEmpty)(),
20
+ __metadata("design:type", Array)
21
+ ], SortDto.prototype, "ids", void 0);
22
+ //# sourceMappingURL=bulk.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bulk.dto.js","sourceRoot":"","sources":["../../src/dtos/bulk.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA6C;AAE7C,MAAa,OAAO;IAGnB,GAAG,CAAW;CACd;AAJD,0BAIC;AADA;IADC,IAAA,4BAAU,GAAE;;oCACC"}
@@ -1,7 +1,4 @@
1
- export declare class SubmitCategoryDto {
1
+ export declare class CategoryDto {
2
2
  title: string;
3
3
  description: string;
4
4
  }
5
- export declare class SortCategoriesDto {
6
- ids: number[];
7
- }
@@ -9,29 +9,21 @@ 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.SortCategoriesDto = exports.SubmitCategoryDto = void 0;
12
+ exports.CategoryDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class SubmitCategoryDto {
14
+ class CategoryDto {
15
15
  title;
16
16
  description;
17
17
  }
18
- exports.SubmitCategoryDto = SubmitCategoryDto;
18
+ exports.CategoryDto = CategoryDto;
19
19
  __decorate([
20
20
  (0, class_validator_1.IsNotEmpty)(),
21
21
  (0, class_validator_1.IsString)(),
22
22
  __metadata("design:type", String)
23
- ], SubmitCategoryDto.prototype, "title", void 0);
23
+ ], CategoryDto.prototype, "title", void 0);
24
24
  __decorate([
25
25
  (0, class_validator_1.IsOptional)(),
26
26
  (0, class_validator_1.IsString)(),
27
27
  __metadata("design:type", String)
28
- ], SubmitCategoryDto.prototype, "description", void 0);
29
- class SortCategoriesDto {
30
- ids;
31
- }
32
- exports.SortCategoriesDto = SortCategoriesDto;
33
- __decorate([
34
- (0, class_validator_1.IsNotEmpty)(),
35
- __metadata("design:type", Array)
36
- ], SortCategoriesDto.prototype, "ids", void 0);
28
+ ], CategoryDto.prototype, "description", void 0);
37
29
  //# sourceMappingURL=category.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"category.dto.js","sourceRoot":"","sources":["../../src/dtos/category.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,iBAAiB;IAI7B,KAAK,CAAS;IAId,WAAW,CAAS;CACpB;AATD,8CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sDACS;AAGrB,MAAa,iBAAiB;IAE7B,GAAG,CAAW;CACd;AAHD,8CAGC;AADA;IADC,IAAA,4BAAU,GAAE;;8CACC"}
1
+ {"version":3,"file":"category.dto.js","sourceRoot":"","sources":["../../src/dtos/category.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,WAAW;IAIvB,KAAK,CAAS;IAId,WAAW,CAAS;CACpB;AATD,kCASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACS"}
@@ -3,9 +3,9 @@ export declare class CreateFeedbackDto {
3
3
  name: string;
4
4
  postType: PostType;
5
5
  }
6
- export declare class UpdateFeedbackNameDto {
6
+ export declare class FeedbackNameDto {
7
7
  name: string;
8
8
  }
9
- export declare class UpdateFeedbackDescriptionDto {
9
+ export declare class FeedbackDescriptionDto {
10
10
  description: string;
11
11
  }
@@ -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.UpdateFeedbackDescriptionDto = exports.UpdateFeedbackNameDto = exports.CreateFeedbackDto = void 0;
12
+ exports.FeedbackDescriptionDto = exports.FeedbackNameDto = exports.CreateFeedbackDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const enums_1 = require("../enums");
15
15
  class CreateFeedbackDto {
@@ -20,7 +20,6 @@ exports.CreateFeedbackDto = CreateFeedbackDto;
20
20
  __decorate([
21
21
  (0, class_validator_1.IsNotEmpty)(),
22
22
  (0, class_validator_1.IsString)(),
23
- (0, class_validator_1.MaxLength)(255),
24
23
  __metadata("design:type", String)
25
24
  ], CreateFeedbackDto.prototype, "name", void 0);
26
25
  __decorate([
@@ -29,23 +28,22 @@ __decorate([
29
28
  (0, class_validator_1.IsEnum)(enums_1.PostType),
30
29
  __metadata("design:type", String)
31
30
  ], CreateFeedbackDto.prototype, "postType", void 0);
32
- class UpdateFeedbackNameDto {
31
+ class FeedbackNameDto {
33
32
  name;
34
33
  }
35
- exports.UpdateFeedbackNameDto = UpdateFeedbackNameDto;
34
+ exports.FeedbackNameDto = FeedbackNameDto;
36
35
  __decorate([
37
36
  (0, class_validator_1.IsOptional)(),
38
37
  (0, class_validator_1.IsString)(),
39
- (0, class_validator_1.MaxLength)(255),
40
38
  __metadata("design:type", String)
41
- ], UpdateFeedbackNameDto.prototype, "name", void 0);
42
- class UpdateFeedbackDescriptionDto {
39
+ ], FeedbackNameDto.prototype, "name", void 0);
40
+ class FeedbackDescriptionDto {
43
41
  description;
44
42
  }
45
- exports.UpdateFeedbackDescriptionDto = UpdateFeedbackDescriptionDto;
43
+ exports.FeedbackDescriptionDto = FeedbackDescriptionDto;
46
44
  __decorate([
47
45
  (0, class_validator_1.IsOptional)(),
48
46
  (0, class_validator_1.IsString)(),
49
47
  __metadata("design:type", String)
50
- ], UpdateFeedbackDescriptionDto.prototype, "description", void 0);
48
+ ], FeedbackDescriptionDto.prototype, "description", void 0);
51
49
  //# 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;AAEpC,MAAa,iBAAiB;IAK7B,IAAI,CAAS;IAKb,QAAQ,CAAW;CACnB;AAXD,8CAWC;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;AAGpB,MAAa,qBAAqB;IAKjC,IAAI,CAAS;CACb;AAND,sDAMC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,GAAG,CAAC;;mDACF;AAGd,MAAa,4BAA4B;IAGxC,WAAW,CAAS;CACpB;AAJD,oEAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iEACS"}
1
+ {"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/dtos/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA2E;AAC3E,oCAAoC;AAEpC,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAKb,QAAQ,CAAW;CACnB;AAVD,8CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACE;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,CAAC;IAChB,IAAA,wBAAM,EAAC,gBAAQ,CAAC;;mDACE;AAGpB,MAAa,eAAe;IAI3B,IAAI,CAAS;CACb;AALD,0CAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGd,MAAa,sBAAsB;IAGlC,WAAW,CAAS;CACpB;AAJD,wDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACS"}
@@ -1,10 +1,10 @@
1
- export * from './admin.dto';
2
1
  export * from './asset.dto';
3
2
  export * from './auth.dto';
4
3
  export * from './author.dto';
5
4
  export * from './boost.dto';
6
5
  export * from './brand.dto';
7
6
  export * from './browse.dto';
7
+ export * from './bulk.dto';
8
8
  export * from './category.dto';
9
9
  export * from './contact.dto';
10
10
  export * from './feedback.dto';
@@ -15,3 +15,4 @@ export * from './publisher.dto';
15
15
  export * from './question.dto';
16
16
  export * from './survey.dto';
17
17
  export * from './topic.dto';
18
+ export * from './user.dto';
package/lib/dtos/index.js CHANGED
@@ -14,13 +14,13 @@ 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("./admin.dto"), exports);
18
17
  __exportStar(require("./asset.dto"), exports);
19
18
  __exportStar(require("./auth.dto"), exports);
20
19
  __exportStar(require("./author.dto"), exports);
21
20
  __exportStar(require("./boost.dto"), exports);
22
21
  __exportStar(require("./brand.dto"), exports);
23
22
  __exportStar(require("./browse.dto"), exports);
23
+ __exportStar(require("./bulk.dto"), exports);
24
24
  __exportStar(require("./category.dto"), exports);
25
25
  __exportStar(require("./contact.dto"), exports);
26
26
  __exportStar(require("./feedback.dto"), exports);
@@ -31,4 +31,5 @@ __exportStar(require("./publisher.dto"), exports);
31
31
  __exportStar(require("./question.dto"), exports);
32
32
  __exportStar(require("./survey.dto"), exports);
33
33
  __exportStar(require("./topic.dto"), exports);
34
+ __exportStar(require("./user.dto"), exports);
34
35
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,8CAA4B"}
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,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,iDAA+B;AAC/B,iDAA+B;AAC/B,6CAA2B;AAC3B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/dtos/notification.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;IAGhC,KAAK,CAAQ;IAIb,UAAU,CAAQ;CAClB;AARD,oDAQC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO"}
1
+ {"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/dtos/notification.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;IAIhC,KAAK,CAAQ;IAIb,UAAU,CAAQ;CAClB;AATD,oDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO"}
@@ -12,27 +12,24 @@ export declare class CreatePostDto {
12
12
  title: string;
13
13
  type: PostType;
14
14
  }
15
- export declare class UpdatePostTitleDto {
15
+ export declare class PostTitleDto {
16
16
  title: string;
17
17
  }
18
- export declare class UpdatePostAuthorDto {
18
+ export declare class PostAuthorDto {
19
19
  author: number;
20
20
  }
21
- export declare class UpdatePostDescriptionDto {
21
+ export declare class PostDescriptionDto {
22
22
  description: string;
23
23
  }
24
- export declare class UpdatePostWeightDto {
24
+ export declare class PostWeightDto {
25
25
  weight: number;
26
26
  }
27
- export declare class UpdatePostTopicDto {
27
+ export declare class PostTopicDto {
28
28
  topics: number[];
29
29
  }
30
- export declare class UpdatePostContentDto {
30
+ export declare class PostContentDto {
31
31
  content: string;
32
32
  }
33
- export declare class UpdatePostInfoDto {
33
+ export declare class PostInfoDto {
34
34
  info: Partial<IPostAdditionals>;
35
35
  }
36
- export declare class SortPostGalleryDto {
37
- ids: number[];
38
- }
@@ -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.SortPostGalleryDto = exports.UpdatePostInfoDto = exports.UpdatePostContentDto = exports.UpdatePostTopicDto = exports.UpdatePostWeightDto = exports.UpdatePostDescriptionDto = exports.UpdatePostAuthorDto = exports.UpdatePostTitleDto = exports.CreatePostDto = exports.PostParamsDto = void 0;
12
+ exports.PostInfoDto = exports.PostContentDto = exports.PostTopicDto = exports.PostWeightDto = exports.PostDescriptionDto = exports.PostAuthorDto = exports.PostTitleDto = exports.CreatePostDto = exports.PostParamsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const enums_1 = require("../enums");
15
15
  class PostParamsDto {
@@ -64,76 +64,68 @@ __decorate([
64
64
  (0, class_validator_1.IsEnum)(enums_1.PostType),
65
65
  __metadata("design:type", String)
66
66
  ], CreatePostDto.prototype, "type", void 0);
67
- class UpdatePostTitleDto {
67
+ class PostTitleDto {
68
68
  title;
69
69
  }
70
- exports.UpdatePostTitleDto = UpdatePostTitleDto;
70
+ exports.PostTitleDto = PostTitleDto;
71
71
  __decorate([
72
72
  (0, class_validator_1.IsNotEmpty)(),
73
73
  (0, class_validator_1.IsString)(),
74
74
  __metadata("design:type", String)
75
- ], UpdatePostTitleDto.prototype, "title", void 0);
76
- class UpdatePostAuthorDto {
75
+ ], PostTitleDto.prototype, "title", void 0);
76
+ class PostAuthorDto {
77
77
  author;
78
78
  }
79
- exports.UpdatePostAuthorDto = UpdatePostAuthorDto;
79
+ exports.PostAuthorDto = PostAuthorDto;
80
80
  __decorate([
81
81
  (0, class_validator_1.IsOptional)(),
82
82
  (0, class_validator_1.IsNumber)(),
83
83
  __metadata("design:type", Number)
84
- ], UpdatePostAuthorDto.prototype, "author", void 0);
85
- class UpdatePostDescriptionDto {
84
+ ], PostAuthorDto.prototype, "author", void 0);
85
+ class PostDescriptionDto {
86
86
  description;
87
87
  }
88
- exports.UpdatePostDescriptionDto = UpdatePostDescriptionDto;
88
+ exports.PostDescriptionDto = PostDescriptionDto;
89
89
  __decorate([
90
90
  (0, class_validator_1.IsOptional)(),
91
91
  (0, class_validator_1.IsString)(),
92
92
  __metadata("design:type", String)
93
- ], UpdatePostDescriptionDto.prototype, "description", void 0);
94
- class UpdatePostWeightDto {
93
+ ], PostDescriptionDto.prototype, "description", void 0);
94
+ class PostWeightDto {
95
95
  weight;
96
96
  }
97
- exports.UpdatePostWeightDto = UpdatePostWeightDto;
97
+ exports.PostWeightDto = PostWeightDto;
98
98
  __decorate([
99
99
  (0, class_validator_1.IsNotEmpty)(),
100
100
  (0, class_validator_1.IsNumber)(),
101
101
  __metadata("design:type", Number)
102
- ], UpdatePostWeightDto.prototype, "weight", void 0);
103
- class UpdatePostTopicDto {
102
+ ], PostWeightDto.prototype, "weight", void 0);
103
+ class PostTopicDto {
104
104
  topics;
105
105
  }
106
- exports.UpdatePostTopicDto = UpdatePostTopicDto;
106
+ exports.PostTopicDto = PostTopicDto;
107
107
  __decorate([
108
108
  (0, class_validator_1.IsNotEmpty)(),
109
109
  (0, class_validator_1.IsNumber)({}, { each: true }),
110
110
  __metadata("design:type", Array)
111
- ], UpdatePostTopicDto.prototype, "topics", void 0);
112
- class UpdatePostContentDto {
111
+ ], PostTopicDto.prototype, "topics", void 0);
112
+ class PostContentDto {
113
113
  content;
114
114
  }
115
- exports.UpdatePostContentDto = UpdatePostContentDto;
115
+ exports.PostContentDto = PostContentDto;
116
116
  __decorate([
117
117
  (0, class_validator_1.IsOptional)(),
118
118
  (0, class_validator_1.IsString)(),
119
119
  __metadata("design:type", String)
120
- ], UpdatePostContentDto.prototype, "content", void 0);
121
- class UpdatePostInfoDto {
120
+ ], PostContentDto.prototype, "content", void 0);
121
+ class PostInfoDto {
122
122
  info;
123
123
  }
124
- exports.UpdatePostInfoDto = UpdatePostInfoDto;
124
+ exports.PostInfoDto = PostInfoDto;
125
125
  __decorate([
126
126
  (0, class_validator_1.IsOptional)(),
127
127
  (0, class_validator_1.IsString)(),
128
128
  (0, class_validator_1.IsJSON)(),
129
129
  __metadata("design:type", Object)
130
- ], UpdatePostInfoDto.prototype, "info", void 0);
131
- class SortPostGalleryDto {
132
- ids;
133
- }
134
- exports.SortPostGalleryDto = SortPostGalleryDto;
135
- __decorate([
136
- (0, class_validator_1.IsNotEmpty)(),
137
- __metadata("design:type", Array)
138
- ], SortPostGalleryDto.prototype, "ids", void 0);
130
+ ], PostInfoDto.prototype, "info", void 0);
139
131
  //# sourceMappingURL=post.dto.js.map
@@ -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,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,w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IC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACZ;AAGlB,MAAa,cAAc;IAG1B,OAAO,CAAS;CAChB;AAJD,wCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACK;AAGjB,MAAa,WAAW;IAIvB,IAAI,CAA4B;CAChC;AALD,kCAKC;AADA;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,wBAAM,GAAE;;yCACuB"}
@@ -1,21 +1,18 @@
1
1
  import { StatusType, SortType } from '../enums';
2
- export declare class PromotionFilterDto {
2
+ export declare class PromotionParamsDto {
3
3
  status: StatusType;
4
4
  startDate: Date;
5
5
  endDate: Date;
6
6
  term: string;
7
7
  sort: SortType;
8
8
  }
9
- export declare class CreatePromotionDto {
9
+ export declare class PromotionTitleDto {
10
10
  title: string;
11
11
  }
12
- export declare class UpdatePromotionTitleDto {
13
- title: string;
14
- }
15
- export declare class UpdatePromotionPeriodDto {
12
+ export declare class PromotionPeriodDto {
16
13
  startDate: Date;
17
14
  endDate: Date;
18
15
  }
19
- export declare class UpdatePromotionUrlDto {
16
+ export declare class PromotionUrlDto {
20
17
  url: string;
21
18
  }