@intelact/bright 0.7.4 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/lib/dtos/admin.dto.d.ts +0 -9
  2. package/lib/dtos/admin.dto.js +1 -13
  3. package/lib/dtos/admin.dto.js.map +1 -1
  4. package/lib/dtos/author.dto.d.ts +2 -2
  5. package/lib/dtos/author.dto.js +7 -7
  6. package/lib/dtos/author.dto.js.map +1 -1
  7. package/lib/dtos/boost.dto.d.ts +2 -2
  8. package/lib/dtos/boost.dto.js +8 -9
  9. package/lib/dtos/boost.dto.js.map +1 -1
  10. package/lib/dtos/brand.dto.d.ts +17 -3
  11. package/lib/dtos/brand.dto.js +54 -9
  12. package/lib/dtos/brand.dto.js.map +1 -1
  13. package/lib/dtos/browse.dto.d.ts +3 -0
  14. package/lib/dtos/browse.dto.js +10 -1
  15. package/lib/dtos/browse.dto.js.map +1 -1
  16. package/lib/dtos/bulk.dto.d.ts +3 -0
  17. package/lib/dtos/bulk.dto.js +22 -0
  18. package/lib/dtos/bulk.dto.js.map +1 -0
  19. package/lib/dtos/category.dto.d.ts +1 -4
  20. package/lib/dtos/category.dto.js +5 -13
  21. package/lib/dtos/category.dto.js.map +1 -1
  22. package/lib/dtos/feedback.dto.d.ts +2 -2
  23. package/lib/dtos/feedback.dto.js +7 -9
  24. package/lib/dtos/feedback.dto.js.map +1 -1
  25. package/lib/dtos/index.d.ts +2 -1
  26. package/lib/dtos/index.js +2 -1
  27. package/lib/dtos/index.js.map +1 -1
  28. package/lib/dtos/notification.js.map +1 -1
  29. package/lib/dtos/post.dto.d.ts +7 -10
  30. package/lib/dtos/post.dto.js +22 -30
  31. package/lib/dtos/post.dto.js.map +1 -1
  32. package/lib/dtos/promotion.dto.d.ts +4 -7
  33. package/lib/dtos/promotion.dto.js +18 -27
  34. package/lib/dtos/promotion.dto.js.map +1 -1
  35. package/lib/dtos/publisher.dto.d.ts +2 -13
  36. package/lib/dtos/publisher.dto.js +4 -38
  37. package/lib/dtos/publisher.dto.js.map +1 -1
  38. package/lib/dtos/question.dto.d.ts +4 -7
  39. package/lib/dtos/question.dto.js +22 -31
  40. package/lib/dtos/question.dto.js.map +1 -1
  41. package/lib/dtos/survey.dto.d.ts +5 -20
  42. package/lib/dtos/survey.dto.js +19 -62
  43. package/lib/dtos/survey.dto.js.map +1 -1
  44. package/lib/dtos/topic.dto.d.ts +1 -4
  45. package/lib/dtos/topic.dto.js +6 -14
  46. package/lib/dtos/topic.dto.js.map +1 -1
  47. package/lib/dtos/user.dto.d.ts +25 -0
  48. package/lib/dtos/user.dto.js +91 -0
  49. package/lib/dtos/user.dto.js.map +1 -0
  50. package/lib/models/index.d.ts +0 -1
  51. package/lib/models/index.js +0 -1
  52. package/lib/models/index.js.map +1 -1
  53. package/lib/models/user.d.ts +9 -4
  54. package/lib/models/user.js +6 -21
  55. package/lib/models/user.js.map +1 -1
  56. package/lib/tsconfig.tsbuildinfo +1 -1
  57. package/package.json +1 -1
@@ -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,GAAE;IACZ,IAAA,wBAAM,EAAC,kBAAU,CAAC;;+CACA;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;kDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC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,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
+ }
@@ -0,0 +1,91 @@
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.UserRolesDto = exports.UserStatusDto = exports.UserPhoneDto = exports.UserNameDto = exports.UserPasswordDto = exports.UserEmailDto = exports.InviteUserDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const enums_1 = require("../enums");
15
+ const security_1 = require("../security");
16
+ class InviteUserDto {
17
+ email;
18
+ roles;
19
+ }
20
+ exports.InviteUserDto = InviteUserDto;
21
+ __decorate([
22
+ (0, class_validator_1.IsNotEmpty)(),
23
+ (0, class_validator_1.IsEmail)(),
24
+ __metadata("design:type", String)
25
+ ], InviteUserDto.prototype, "email", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ (0, class_validator_1.IsEnum)(security_1.Role, { each: true }),
29
+ __metadata("design:type", Array)
30
+ ], InviteUserDto.prototype, "roles", void 0);
31
+ class UserEmailDto {
32
+ email;
33
+ }
34
+ exports.UserEmailDto = UserEmailDto;
35
+ __decorate([
36
+ (0, class_validator_1.IsNotEmpty)(),
37
+ (0, class_validator_1.IsEmail)(),
38
+ __metadata("design:type", String)
39
+ ], UserEmailDto.prototype, "email", void 0);
40
+ class UserPasswordDto {
41
+ password;
42
+ repeatPassword;
43
+ }
44
+ exports.UserPasswordDto = UserPasswordDto;
45
+ __decorate([
46
+ (0, class_validator_1.IsNotEmpty)(),
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], UserPasswordDto.prototype, "password", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsNotEmpty)(),
52
+ (0, class_validator_1.IsString)(),
53
+ __metadata("design:type", String)
54
+ ], UserPasswordDto.prototype, "repeatPassword", void 0);
55
+ class UserNameDto {
56
+ name;
57
+ }
58
+ exports.UserNameDto = UserNameDto;
59
+ __decorate([
60
+ (0, class_validator_1.IsNotEmpty)(),
61
+ (0, class_validator_1.IsString)(),
62
+ __metadata("design:type", String)
63
+ ], UserNameDto.prototype, "name", void 0);
64
+ class UserPhoneDto {
65
+ phone;
66
+ }
67
+ exports.UserPhoneDto = UserPhoneDto;
68
+ __decorate([
69
+ (0, class_validator_1.IsNotEmpty)(),
70
+ (0, class_validator_1.IsString)(),
71
+ __metadata("design:type", String)
72
+ ], UserPhoneDto.prototype, "phone", void 0);
73
+ class UserStatusDto {
74
+ status;
75
+ }
76
+ exports.UserStatusDto = UserStatusDto;
77
+ __decorate([
78
+ (0, class_validator_1.IsNotEmpty)(),
79
+ (0, class_validator_1.IsEnum)(enums_1.AccountStatusType),
80
+ __metadata("design:type", String)
81
+ ], UserStatusDto.prototype, "status", void 0);
82
+ class UserRolesDto {
83
+ roles;
84
+ }
85
+ exports.UserRolesDto = UserRolesDto;
86
+ __decorate([
87
+ (0, class_validator_1.IsNotEmpty)(),
88
+ (0, class_validator_1.IsIn)(Object.values(security_1.Role), { each: true }),
89
+ __metadata("design:type", Array)
90
+ ], UserRolesDto.prototype, "roles", void 0);
91
+ //# sourceMappingURL=user.dto.js.map
@@ -0,0 +1 @@
1
+ {"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I,EAAE,IAAI,EAAE,CAAC;;2CAC5B"}
@@ -1,4 +1,3 @@
1
- export * from './administrator';
2
1
  export * from './asset';
3
2
  export * from './author';
4
3
  export * from './boost';
@@ -14,7 +14,6 @@ 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("./administrator"), exports);
18
17
  __exportStar(require("./asset"), exports);
19
18
  __exportStar(require("./author"), exports);
20
19
  __exportStar(require("./boost"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,6CAA2B;AAC3B,+CAA6B;AAC7B,6CAA2B;AAC3B,4CAA0B;AAC1B,iDAA+B;AAC/B,+CAA6B;AAC7B,yCAAuB;AACvB,8CAA4B;AAC5B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,6CAA2B;AAC3B,2CAAyB;AACzB,0CAAwB;AACxB,0CAAwB;AACxB,yCAAuB"}
@@ -1,10 +1,18 @@
1
- import { PostType, SocialLoginType } from '../enums';
1
+ import { SocialLoginType } from '../enums';
2
+ import { AccountStatusType, AccountType } from '../enums';
3
+ import { Role } from '../security';
4
+ import { Publisher } from './publisher';
2
5
  export declare class User {
6
+ id: number;
3
7
  uid: string;
4
8
  name: string;
5
9
  email: string;
6
10
  image: string;
11
+ status: AccountStatusType;
12
+ accountType: AccountType;
13
+ roles: Role[];
7
14
  provider: SocialLoginType;
15
+ publishers: Publisher[];
8
16
  constructor(props?: Partial<User>);
9
17
  }
10
18
  export interface IUserAgent {
@@ -18,6 +26,3 @@ export interface IUserAgent {
18
26
  language: string;
19
27
  description: string;
20
28
  }
21
- export declare class UserBookmarksFilterDto {
22
- types: PostType[];
23
- }
@@ -1,35 +1,20 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.UserBookmarksFilterDto = exports.User = void 0;
13
- const class_validator_1 = require("class-validator");
14
- const enums_1 = require("../enums");
3
+ exports.User = void 0;
15
4
  class User {
5
+ id;
16
6
  uid;
17
7
  name;
18
8
  email;
19
9
  image;
10
+ status;
11
+ accountType;
12
+ roles;
20
13
  provider;
14
+ publishers;
21
15
  constructor(props) {
22
16
  Object.assign(this, props);
23
17
  }
24
18
  }
25
19
  exports.User = User;
26
- class UserBookmarksFilterDto {
27
- types;
28
- }
29
- exports.UserBookmarksFilterDto = UserBookmarksFilterDto;
30
- __decorate([
31
- (0, class_validator_1.IsOptional)(),
32
- (0, class_validator_1.IsEnum)(enums_1.PostType, { each: true }),
33
- __metadata("design:type", Array)
34
- ], UserBookmarksFilterDto.prototype, "types", void 0);
35
20
  //# sourceMappingURL=user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,oCAAqD;AAKrD,MAAa,IAAI;IAEhB,GAAG,CAAS;IAEZ,IAAI,CAAS;IAEb,KAAK,CAAS;IAEd,KAAK,CAAS;IAEd,QAAQ,CAAkB;IAE1B,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAfD,oBAeC;AAqDD,MAAa,sBAAsB;IAGlC,KAAK,CAAa;CAClB;AAJD,wDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,gBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACf"}
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":";;;AASA,MAAa,IAAI;IAMhB,EAAE,CAAS;IAKX,GAAG,CAAS;IAKZ,IAAI,CAAS;IAKb,KAAK,CAAS;IAKd,KAAK,CAAS;IAKd,MAAM,CAAoB;IAK1B,WAAW,CAAc;IAKzB,KAAK,CAAS;IAEd,QAAQ,CAAkB;IAK1B,UAAU,CAAc;IAExB,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArDD,oBAqDC"}