@intelact/bright 0.9.77 → 0.9.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/lib/helpers/index.d.ts +2 -0
  2. package/lib/helpers/index.js +19 -0
  3. package/lib/helpers/index.js.map +1 -0
  4. package/lib/helpers/popularity.helper.d.ts +2 -0
  5. package/lib/helpers/popularity.helper.js +58 -0
  6. package/lib/helpers/popularity.helper.js.map +1 -0
  7. package/lib/helpers/post.helper.d.ts +2 -0
  8. package/lib/helpers/post.helper.js +22 -0
  9. package/lib/helpers/post.helper.js.map +1 -0
  10. package/lib/index.d.ts +1 -0
  11. package/lib/index.js +1 -0
  12. package/lib/index.js.map +1 -1
  13. package/lib/models/author.d.ts +3 -3
  14. package/lib/models/author.js +7 -7
  15. package/lib/models/author.js.map +1 -1
  16. package/lib/models/boost.d.ts +3 -3
  17. package/lib/models/boost.js +10 -11
  18. package/lib/models/boost.js.map +1 -1
  19. package/lib/models/brand.d.ts +4 -4
  20. package/lib/models/brand.js +17 -17
  21. package/lib/models/brand.js.map +1 -1
  22. package/lib/models/category.js +0 -1
  23. package/lib/models/category.js.map +1 -1
  24. package/lib/models/collection.d.ts +3 -3
  25. package/lib/models/collection.js +10 -11
  26. package/lib/models/collection.js.map +1 -1
  27. package/lib/models/feedback.d.ts +3 -5
  28. package/lib/models/feedback.js +12 -36
  29. package/lib/models/feedback.js.map +1 -1
  30. package/lib/models/log.d.ts +4 -4
  31. package/lib/models/log.js +3 -3
  32. package/lib/models/log.js.map +1 -1
  33. package/lib/models/post.d.ts +15 -17
  34. package/lib/models/post.js +69 -160
  35. package/lib/models/post.js.map +1 -1
  36. package/lib/models/promotion.d.ts +5 -4
  37. package/lib/models/promotion.js +18 -14
  38. package/lib/models/promotion.js.map +1 -1
  39. package/lib/models/publisher.d.ts +4 -3
  40. package/lib/models/publisher.js +12 -8
  41. package/lib/models/publisher.js.map +1 -1
  42. package/lib/models/question.d.ts +20 -17
  43. package/lib/models/question.js +80 -61
  44. package/lib/models/question.js.map +1 -1
  45. package/lib/models/survey.d.ts +9 -11
  46. package/lib/models/survey.js +37 -47
  47. package/lib/models/survey.js.map +1 -1
  48. package/lib/models/topic.d.ts +2 -2
  49. package/lib/models/topic.js +6 -56
  50. package/lib/models/topic.js.map +1 -1
  51. package/lib/models/user.d.ts +4 -4
  52. package/lib/models/user.js +100 -22
  53. package/lib/models/user.js.map +1 -1
  54. package/lib/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +3 -3
@@ -17,24 +17,24 @@ const metric_1 = require("./metric");
17
17
  const log_1 = require("./log");
18
18
  class Survey {
19
19
  id;
20
+ slug;
20
21
  name;
21
22
  description;
22
23
  imageUrl;
23
- startDate;
24
- endDate;
25
- slug;
26
24
  items;
27
- isStarted;
28
25
  status;
29
26
  label;
27
+ startDate;
28
+ endDate;
29
+ isStarted;
30
30
  metricSeen;
31
31
  metricOpens;
32
32
  metricQuestions;
33
33
  metricUsers;
34
- logCreated;
35
- logUpdated;
36
- logPublished;
37
- logStatusChange;
34
+ statusChanged;
35
+ published;
36
+ created;
37
+ updated;
38
38
  constructor(props) {
39
39
  Object.assign(this, props);
40
40
  }
@@ -45,6 +45,10 @@ __decorate([
45
45
  (0, class_transformer_1.Type)(() => Number),
46
46
  __metadata("design:type", Number)
47
47
  ], Survey.prototype, "id", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", String)
51
+ ], Survey.prototype, "slug", void 0);
48
52
  __decorate([
49
53
  (0, class_transformer_1.Expose)(),
50
54
  __metadata("design:type", String)
@@ -57,6 +61,19 @@ __decorate([
57
61
  (0, class_transformer_1.Expose)(),
58
62
  __metadata("design:type", String)
59
63
  ], Survey.prototype, "imageUrl", void 0);
64
+ __decorate([
65
+ (0, class_transformer_1.Expose)(),
66
+ (0, class_transformer_1.Type)(() => SurveyItem),
67
+ __metadata("design:type", Array)
68
+ ], Survey.prototype, "items", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
71
+ __metadata("design:type", String)
72
+ ], Survey.prototype, "status", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
75
+ __metadata("design:type", String)
76
+ ], Survey.prototype, "label", void 0);
60
77
  __decorate([
61
78
  (0, class_transformer_1.Expose)(),
62
79
  (0, class_transformer_1.Type)(() => Date),
@@ -67,72 +84,51 @@ __decorate([
67
84
  (0, class_transformer_1.Type)(() => Date),
68
85
  __metadata("design:type", Date)
69
86
  ], Survey.prototype, "endDate", void 0);
70
- __decorate([
71
- (0, class_transformer_1.Expose)(),
72
- __metadata("design:type", String)
73
- ], Survey.prototype, "slug", void 0);
74
- __decorate([
75
- (0, class_transformer_1.Expose)(),
76
- (0, class_transformer_1.Type)(() => SurveyItem),
77
- __metadata("design:type", Array)
78
- ], Survey.prototype, "items", void 0);
79
87
  __decorate([
80
88
  (0, class_transformer_1.Expose)(),
81
89
  (0, class_transformer_1.Type)(() => Boolean),
82
90
  __metadata("design:type", Boolean)
83
91
  ], Survey.prototype, "isStarted", void 0);
84
- __decorate([
85
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
86
- __metadata("design:type", String)
87
- ], Survey.prototype, "status", void 0);
88
- __decorate([
89
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
90
- __metadata("design:type", String)
91
- ], Survey.prototype, "label", void 0);
92
92
  __decorate([
93
93
  (0, class_transformer_1.Expose)(),
94
94
  (0, class_transformer_1.Type)(() => metric_1.Metric),
95
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalSeen, obj?.hasSeen)),
96
95
  __metadata("design:type", metric_1.Metric)
97
96
  ], Survey.prototype, "metricSeen", void 0);
98
97
  __decorate([
99
98
  (0, class_transformer_1.Expose)(),
100
99
  (0, class_transformer_1.Type)(() => item_1.Item),
101
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalClicks', obj?.totalClicks, ['fas', 'computer-mouse'])),
102
100
  __metadata("design:type", metric_1.Metric)
103
101
  ], Survey.prototype, "metricOpens", void 0);
104
102
  __decorate([
105
103
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
106
104
  (0, class_transformer_1.Type)(() => metric_1.Metric),
107
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestion', obj?.totalPosts, ['fas', 'circle-question'])),
108
105
  __metadata("design:type", metric_1.Metric)
109
106
  ], Survey.prototype, "metricQuestions", void 0);
110
107
  __decorate([
111
108
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
112
109
  (0, class_transformer_1.Type)(() => metric_1.Metric),
113
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalusers', obj?.totalUsers, ['fas', 'users'])),
114
110
  __metadata("design:type", metric_1.Metric)
115
111
  ], Survey.prototype, "metricUsers", void 0);
116
112
  __decorate([
117
113
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
118
114
  (0, class_transformer_1.Type)(() => log_1.Log),
119
115
  __metadata("design:type", log_1.Log)
120
- ], Survey.prototype, "logCreated", void 0);
116
+ ], Survey.prototype, "statusChanged", void 0);
121
117
  __decorate([
122
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
118
+ (0, class_transformer_1.Expose)(),
123
119
  (0, class_transformer_1.Type)(() => log_1.Log),
124
120
  __metadata("design:type", log_1.Log)
125
- ], Survey.prototype, "logUpdated", void 0);
121
+ ], Survey.prototype, "published", void 0);
126
122
  __decorate([
127
- (0, class_transformer_1.Expose)(),
123
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
128
124
  (0, class_transformer_1.Type)(() => log_1.Log),
129
125
  __metadata("design:type", log_1.Log)
130
- ], Survey.prototype, "logPublished", void 0);
126
+ ], Survey.prototype, "created", void 0);
131
127
  __decorate([
132
128
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
133
129
  (0, class_transformer_1.Type)(() => log_1.Log),
134
130
  __metadata("design:type", log_1.Log)
135
- ], Survey.prototype, "logStatusChange", void 0);
131
+ ], Survey.prototype, "updated", void 0);
136
132
  class SurveyItem {
137
133
  id;
138
134
  question;
@@ -141,7 +137,6 @@ class SurveyItem {
141
137
  sort;
142
138
  survey;
143
139
  options;
144
- metrics;
145
140
  constructor(props) {
146
141
  Object.assign(this, props);
147
142
  }
@@ -181,17 +176,12 @@ __decorate([
181
176
  (0, class_transformer_1.Type)(() => SurveyOption),
182
177
  __metadata("design:type", Array)
183
178
  ], SurveyItem.prototype, "options", void 0);
184
- __decorate([
185
- (0, class_transformer_1.Expose)(),
186
- (0, class_transformer_1.Type)(() => item_1.Item),
187
- __metadata("design:type", Array)
188
- ], SurveyItem.prototype, "metrics", void 0);
189
179
  class SurveyOption {
190
180
  id;
191
181
  content;
192
182
  sort;
193
- item;
194
183
  isSelected;
184
+ item;
195
185
  constructor(props) {
196
186
  Object.assign(this, props);
197
187
  }
@@ -211,14 +201,14 @@ __decorate([
211
201
  (0, class_transformer_1.Type)(() => Number),
212
202
  __metadata("design:type", Number)
213
203
  ], SurveyOption.prototype, "sort", void 0);
214
- __decorate([
215
- (0, class_transformer_1.Expose)(),
216
- (0, class_transformer_1.Type)(() => SurveyItem),
217
- __metadata("design:type", SurveyItem)
218
- ], SurveyOption.prototype, "item", void 0);
219
204
  __decorate([
220
205
  (0, class_transformer_1.Expose)(),
221
206
  (0, class_transformer_1.Type)(() => Boolean),
222
207
  __metadata("design:type", Boolean)
223
208
  ], SurveyOption.prototype, "isSelected", void 0);
209
+ __decorate([
210
+ (0, class_transformer_1.Expose)(),
211
+ (0, class_transformer_1.Type)(() => SurveyItem),
212
+ __metadata("design:type", SurveyItem)
213
+ ], SurveyOption.prototype, "item", void 0);
224
214
  //# sourceMappingURL=survey.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey.js","sourceRoot":"","sources":["../../src/models/survey.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,oCAAmD;AACnD,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAK5B,MAAa,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,IAAI,CAAa;IAEjB,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA9BD,oCA8BC;AA1BA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;6CACO;AAMhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACN;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;gDACA;AAMpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,UAAU,CAAC;8BACjB,UAAU;0CAAC"}
@@ -10,8 +10,8 @@ export declare class Topic {
10
10
  weight: number;
11
11
  popularity: Item<number>;
12
12
  metricPosts: Metric;
13
- logCreated: Log;
14
- logUpdated: Log;
13
+ created: Log;
14
+ updated: Log;
15
15
  constructor(props?: Partial<Topic>);
16
16
  static toItemList(data: Topic[], key?: 'id' | 'slug'): Item<any>[];
17
17
  }
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Topic = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const item_1 = require("./item");
15
- const enums_1 = require("../enums");
16
15
  const metric_1 = require("./metric");
17
16
  const log_1 = require("./log");
17
+ const helpers_1 = require("../helpers");
18
18
  class Topic {
19
19
  id;
20
20
  title;
@@ -24,8 +24,8 @@ class Topic {
24
24
  weight;
25
25
  popularity;
26
26
  metricPosts;
27
- logCreated;
28
- logUpdated;
27
+ created;
28
+ updated;
29
29
  constructor(props) {
30
30
  Object.assign(this, props);
31
31
  }
@@ -69,57 +69,7 @@ __decorate([
69
69
  __decorate([
70
70
  (0, class_transformer_1.Expose)(),
71
71
  (0, class_transformer_1.Type)(() => item_1.Item),
72
- (0, class_transformer_1.Transform)(({ obj }) => {
73
- if (!obj.weight) {
74
- return new item_1.Item({
75
- title: 'n/A',
76
- value: 0,
77
- context: enums_1.Context.Light
78
- });
79
- }
80
- if (obj.weight < 1.9999) {
81
- return new item_1.Item({
82
- title: enums_1.Popularity.Poor,
83
- value: obj.weight,
84
- context: enums_1.Context.Secondary
85
- });
86
- }
87
- if (obj.weight >= 2 && obj.weight < 3.9999) {
88
- return new item_1.Item({
89
- title: enums_1.Popularity.Week,
90
- value: obj.weight,
91
- context: enums_1.Context.Dark
92
- });
93
- }
94
- if (obj.weight >= 4 && obj.weight < 5.9999) {
95
- return new item_1.Item({
96
- title: enums_1.Popularity.Fair,
97
- value: obj.weight,
98
- context: enums_1.Context.Primary
99
- });
100
- }
101
- if (obj.weight >= 6 && obj.weight < 7.9999) {
102
- return new item_1.Item({
103
- title: enums_1.Popularity.Great,
104
- value: obj.weight,
105
- context: enums_1.Context.Info
106
- });
107
- }
108
- if (obj.weight >= 8 && obj.weight < 8.9999) {
109
- return new item_1.Item({
110
- title: enums_1.Popularity.Excellent,
111
- value: obj.weight,
112
- context: enums_1.Context.Success
113
- });
114
- }
115
- if (obj.weight >= 9 && obj.weight <= 10) {
116
- return new item_1.Item({
117
- title: enums_1.Popularity.Exceptional,
118
- value: obj.weight,
119
- context: enums_1.Context.Danger
120
- });
121
- }
122
- }),
72
+ (0, class_transformer_1.Transform)(({ obj }) => (0, helpers_1.getPopularityByWeight)(obj.weight)),
123
73
  __metadata("design:type", item_1.Item)
124
74
  ], Topic.prototype, "popularity", void 0);
125
75
  __decorate([
@@ -131,10 +81,10 @@ __decorate([
131
81
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
132
82
  (0, class_transformer_1.Type)(() => log_1.Log),
133
83
  __metadata("design:type", log_1.Log)
134
- ], Topic.prototype, "logCreated", void 0);
84
+ ], Topic.prototype, "created", void 0);
135
85
  __decorate([
136
86
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
137
87
  (0, class_transformer_1.Type)(() => log_1.Log),
138
88
  __metadata("design:type", log_1.Log)
139
- ], Topic.prototype, "logUpdated", void 0);
89
+ ], Topic.prototype, "updated", void 0);
140
90
  //# sourceMappingURL=topic.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"topic.js","sourceRoot":"","sources":["../../src/models/topic.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,iCAA8B;AAC9B,oCAA+C;AAC/C,qCAAkC;AAClC,+BAA4B;AAE5B,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAIpB,IAAI,CAAS;IAIb,MAAM,CAAS;IA8Df,UAAU,CAAe;IAUzB,WAAW,CAAS;IAMpB,UAAU,CAAM;IAIhB,UAAU,CAAM;IAEhB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAa,EAAE,MAAgB,IAAI;QACpD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAG,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,WAAI,CAAC;YAC7B,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AA1HD,sBA0HC;AAtHA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAA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AE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;sCAAC"}
@@ -12,15 +12,15 @@ export declare class User {
12
12
  image: string;
13
13
  status: AccountStatusType;
14
14
  accountType: AccountType;
15
- roles: Role[];
16
15
  provider: SocialLoginType;
17
- brand: Brand;
18
16
  isBrand: boolean;
19
- publisher: Publisher;
20
17
  isPublisher: boolean;
18
+ roles: Role[];
19
+ permissions: Permission[];
21
20
  selectedPublisher: Publisher;
22
21
  accessPublishers: Publisher[];
23
- permissions: Permission[];
22
+ brand: Brand;
23
+ publisher: Publisher;
24
24
  constructor(props?: Partial<User>);
25
25
  isActive(): boolean;
26
26
  hasRole(role: Role): boolean;
@@ -25,15 +25,15 @@ class User {
25
25
  image;
26
26
  status;
27
27
  accountType;
28
- roles;
29
28
  provider;
30
- brand;
31
29
  isBrand;
32
- publisher;
33
30
  isPublisher;
31
+ roles;
32
+ permissions;
34
33
  selectedPublisher;
35
34
  accessPublishers;
36
- permissions;
35
+ brand;
36
+ publisher;
37
37
  constructor(props) {
38
38
  Object.assign(this, props);
39
39
  }
@@ -135,34 +135,28 @@ __decorate([
135
135
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
136
136
  __metadata("design:type", String)
137
137
  ], User.prototype, "accountType", void 0);
138
- __decorate([
139
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
140
- __metadata("design:type", Array)
141
- ], User.prototype, "roles", void 0);
142
138
  __decorate([
143
139
  (0, class_transformer_1.Expose)(),
144
140
  __metadata("design:type", String)
145
141
  ], User.prototype, "provider", void 0);
146
142
  __decorate([
147
- (0, class_transformer_1.Expose)(),
148
- (0, class_transformer_1.Type)(() => brand_1.Brand),
149
- __metadata("design:type", brand_1.Brand)
150
- ], User.prototype, "brand", void 0);
151
- __decorate([
152
- (0, class_transformer_1.Expose)(),
143
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
153
144
  (0, class_transformer_1.Type)(() => Boolean),
154
145
  __metadata("design:type", Boolean)
155
146
  ], User.prototype, "isBrand", void 0);
156
147
  __decorate([
157
- (0, class_transformer_1.Expose)(),
158
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
159
- __metadata("design:type", publisher_1.Publisher)
160
- ], User.prototype, "publisher", void 0);
161
- __decorate([
162
- (0, class_transformer_1.Expose)(),
148
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
163
149
  (0, class_transformer_1.Type)(() => Boolean),
164
150
  __metadata("design:type", Boolean)
165
151
  ], User.prototype, "isPublisher", void 0);
152
+ __decorate([
153
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
154
+ __metadata("design:type", Array)
155
+ ], User.prototype, "roles", void 0);
156
+ __decorate([
157
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
158
+ __metadata("design:type", Array)
159
+ ], User.prototype, "permissions", void 0);
166
160
  __decorate([
167
161
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
168
162
  (0, class_transformer_1.Type)(() => publisher_1.Publisher),
@@ -175,6 +169,90 @@ __decorate([
175
169
  ], User.prototype, "accessPublishers", void 0);
176
170
  __decorate([
177
171
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
178
- __metadata("design:type", Array)
179
- ], User.prototype, "permissions", void 0);
172
+ (0, class_transformer_1.Type)(() => brand_1.Brand),
173
+ __metadata("design:type", brand_1.Brand)
174
+ ], User.prototype, "brand", void 0);
175
+ __decorate([
176
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
177
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
178
+ __metadata("design:type", publisher_1.Publisher)
179
+ ], User.prototype, "publisher", void 0);
180
+ __decorate([
181
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
182
+ __metadata("design:type", Function),
183
+ __metadata("design:paramtypes", []),
184
+ __metadata("design:returntype", Boolean)
185
+ ], User.prototype, "isActive", null);
186
+ __decorate([
187
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
188
+ __metadata("design:type", Function),
189
+ __metadata("design:paramtypes", [String]),
190
+ __metadata("design:returntype", Boolean)
191
+ ], User.prototype, "hasRole", null);
192
+ __decorate([
193
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
194
+ __metadata("design:type", Function),
195
+ __metadata("design:paramtypes", [Array]),
196
+ __metadata("design:returntype", Boolean)
197
+ ], User.prototype, "hasRoles", null);
198
+ __decorate([
199
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
200
+ __metadata("design:type", Function),
201
+ __metadata("design:paramtypes", [String]),
202
+ __metadata("design:returntype", Boolean)
203
+ ], User.prototype, "hasPermission", null);
204
+ __decorate([
205
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
206
+ __metadata("design:type", Function),
207
+ __metadata("design:paramtypes", [Array]),
208
+ __metadata("design:returntype", Boolean)
209
+ ], User.prototype, "hasPermissions", null);
210
+ __decorate([
211
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
212
+ __metadata("design:type", Function),
213
+ __metadata("design:paramtypes", []),
214
+ __metadata("design:returntype", Boolean)
215
+ ], User.prototype, "isBrandUser", null);
216
+ __decorate([
217
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
218
+ __metadata("design:type", Function),
219
+ __metadata("design:paramtypes", [Number]),
220
+ __metadata("design:returntype", Boolean)
221
+ ], User.prototype, "belongsToBrand", null);
222
+ __decorate([
223
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
224
+ __metadata("design:type", Function),
225
+ __metadata("design:paramtypes", []),
226
+ __metadata("design:returntype", Boolean)
227
+ ], User.prototype, "isPublisherUser", null);
228
+ __decorate([
229
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
230
+ __metadata("design:type", Function),
231
+ __metadata("design:paramtypes", [Number]),
232
+ __metadata("design:returntype", void 0)
233
+ ], User.prototype, "belongsToPublisher", null);
234
+ __decorate([
235
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
236
+ __metadata("design:type", Function),
237
+ __metadata("design:paramtypes", []),
238
+ __metadata("design:returntype", publisher_1.Publisher)
239
+ ], User.prototype, "getPublisher", null);
240
+ __decorate([
241
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
242
+ __metadata("design:type", Function),
243
+ __metadata("design:paramtypes", [Number]),
244
+ __metadata("design:returntype", void 0)
245
+ ], User.prototype, "hasBrandAuthorization", null);
246
+ __decorate([
247
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
248
+ __metadata("design:type", Function),
249
+ __metadata("design:paramtypes", [Number]),
250
+ __metadata("design:returntype", void 0)
251
+ ], User.prototype, "hasPublisherAuthorization", null);
252
+ __decorate([
253
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
254
+ __metadata("design:type", Function),
255
+ __metadata("design:paramtypes", [Number]),
256
+ __metadata("design:returntype", Boolean)
257
+ ], User.prototype, "hasPublisherAccess", null);
180
258
  //# sourceMappingURL=user.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/models/user.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,oCAA2C;AAC3C,oCAA0D;AAC1D,0CAAqD;AACrD,mCAAgC;AAChC,2CAAwC;AAMxC,MAAa,IAAI;IAQhB,EAAE,CAAS;IAMX,GAAG,CAAS;IAMZ,IAAI,CAAS;IAMb,KAAK,CAAS;IAMd,KAAK,CAAS;IAMd,KAAK,CAAS;IAMd,MAAM,CAAoB;IAM1B,WAAW,CAAc;IAMzB,KAAK,CAAS;IAMd,QAAQ,CAAkB;IAQ1B,KAAK,CAAQ;IAOb,OAAO,CAAU;IAQjB,SAAS,CAAY;IAOrB,WAAW,CAAU;IAUrB,iBAAiB,CAAY;IAO7B,gBAAgB,CAAc;IAM9B,WAAW,CAAe;IAE1B,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,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