@intelact/bright 0.9.76 → 0.9.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (110) hide show
  1. package/lib/dtos/boost.dto.d.ts +0 -12
  2. package/lib/dtos/boost.dto.js +1 -50
  3. package/lib/dtos/boost.dto.js.map +1 -1
  4. package/lib/dtos/brand.dto.d.ts +0 -15
  5. package/lib/dtos/brand.dto.js +1 -46
  6. package/lib/dtos/brand.dto.js.map +1 -1
  7. package/lib/dtos/feedback.dto.d.ts +0 -9
  8. package/lib/dtos/feedback.dto.js +1 -28
  9. package/lib/dtos/feedback.dto.js.map +1 -1
  10. package/lib/dtos/general.dto.d.ts +3 -0
  11. package/lib/dtos/general.dto.js +10 -1
  12. package/lib/dtos/general.dto.js.map +1 -1
  13. package/lib/dtos/index.d.ts +0 -4
  14. package/lib/dtos/index.js +0 -4
  15. package/lib/dtos/index.js.map +1 -1
  16. package/lib/dtos/post.dto.d.ts +0 -22
  17. package/lib/dtos/post.dto.js +1 -65
  18. package/lib/dtos/post.dto.js.map +1 -1
  19. package/lib/dtos/promotion.dto.d.ts +0 -8
  20. package/lib/dtos/promotion.dto.js +1 -37
  21. package/lib/dtos/promotion.dto.js.map +1 -1
  22. package/lib/dtos/question.dto.d.ts +0 -19
  23. package/lib/dtos/question.dto.js +1 -62
  24. package/lib/dtos/question.dto.js.map +1 -1
  25. package/lib/dtos/search.dto.d.ts +12 -0
  26. package/lib/dtos/search.dto.js +72 -0
  27. package/lib/dtos/search.dto.js.map +1 -0
  28. package/lib/dtos/survey.dto.d.ts +0 -24
  29. package/lib/dtos/survey.dto.js +1 -90
  30. package/lib/dtos/survey.dto.js.map +1 -1
  31. package/lib/dtos/user.dto.d.ts +0 -3
  32. package/lib/dtos/user.dto.js +1 -10
  33. package/lib/dtos/user.dto.js.map +1 -1
  34. package/lib/enums/asset.enum.js.map +1 -1
  35. package/lib/enums/index.d.ts +0 -1
  36. package/lib/enums/index.js +0 -1
  37. package/lib/enums/index.js.map +1 -1
  38. package/lib/enums/module.enum.d.ts +0 -19
  39. package/lib/enums/module.enum.js +1 -21
  40. package/lib/enums/module.enum.js.map +1 -1
  41. package/lib/enums/setting.enum.d.ts +2 -2
  42. package/lib/enums/setting.enum.js +2 -2
  43. package/lib/enums/tracks.enum.d.ts +13 -2
  44. package/lib/enums/tracks.enum.js +23 -11
  45. package/lib/enums/tracks.enum.js.map +1 -1
  46. package/lib/helpers/index.d.ts +2 -0
  47. package/lib/helpers/index.js +19 -0
  48. package/lib/helpers/index.js.map +1 -0
  49. package/lib/helpers/popularity.helper.d.ts +2 -0
  50. package/lib/helpers/popularity.helper.js +58 -0
  51. package/lib/helpers/popularity.helper.js.map +1 -0
  52. package/lib/helpers/post.helper.d.ts +2 -0
  53. package/lib/helpers/post.helper.js +22 -0
  54. package/lib/helpers/post.helper.js.map +1 -0
  55. package/lib/index.d.ts +1 -0
  56. package/lib/index.js +1 -0
  57. package/lib/index.js.map +1 -1
  58. package/lib/models/author.d.ts +6 -4
  59. package/lib/models/author.js +22 -18
  60. package/lib/models/author.js.map +1 -1
  61. package/lib/models/boost.d.ts +6 -7
  62. package/lib/models/boost.js +22 -29
  63. package/lib/models/boost.js.map +1 -1
  64. package/lib/models/brand.d.ts +6 -4
  65. package/lib/models/brand.js +38 -18
  66. package/lib/models/brand.js.map +1 -1
  67. package/lib/models/category.d.ts +2 -1
  68. package/lib/models/category.js +6 -5
  69. package/lib/models/category.js.map +1 -1
  70. package/lib/models/collection.d.ts +5 -5
  71. package/lib/models/collection.js +20 -20
  72. package/lib/models/collection.js.map +1 -1
  73. package/lib/models/feedback.d.ts +8 -5
  74. package/lib/models/feedback.js +37 -54
  75. package/lib/models/feedback.js.map +1 -1
  76. package/lib/models/index.d.ts +2 -1
  77. package/lib/models/index.js +2 -1
  78. package/lib/models/index.js.map +1 -1
  79. package/lib/models/log.d.ts +11 -0
  80. package/lib/models/log.js +16 -0
  81. package/lib/models/log.js.map +1 -0
  82. package/lib/models/metric.d.ts +20 -0
  83. package/lib/models/metric.js +186 -0
  84. package/lib/models/metric.js.map +1 -0
  85. package/lib/models/post.d.ts +26 -36
  86. package/lib/models/post.js +238 -358
  87. package/lib/models/post.js.map +1 -1
  88. package/lib/models/promotion.d.ts +9 -3
  89. package/lib/models/promotion.js +40 -8
  90. package/lib/models/promotion.js.map +1 -1
  91. package/lib/models/publisher.d.ts +8 -3
  92. package/lib/models/publisher.js +34 -14
  93. package/lib/models/publisher.js.map +1 -1
  94. package/lib/models/question.d.ts +21 -27
  95. package/lib/models/question.js +95 -162
  96. package/lib/models/question.js.map +1 -1
  97. package/lib/models/quote.d.ts +0 -1
  98. package/lib/models/quote.js +0 -6
  99. package/lib/models/quote.js.map +1 -1
  100. package/lib/models/survey.d.ts +15 -9
  101. package/lib/models/survey.js +70 -54
  102. package/lib/models/survey.js.map +1 -1
  103. package/lib/models/topic.d.ts +5 -1
  104. package/lib/models/topic.js +21 -55
  105. package/lib/models/topic.js.map +1 -1
  106. package/lib/models/user.d.ts +4 -4
  107. package/lib/models/user.js +100 -22
  108. package/lib/models/user.js.map +1 -1
  109. package/lib/tsconfig.tsbuildinfo +1 -1
  110. package/package.json +3 -3
@@ -13,44 +13,31 @@ exports.SurveyOption = exports.SurveyItem = exports.Survey = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const enums_1 = require("../enums");
15
15
  const item_1 = require("./item");
16
+ const metric_1 = require("./metric");
17
+ const log_1 = require("./log");
16
18
  class Survey {
17
19
  id;
20
+ slug;
18
21
  name;
19
22
  description;
20
23
  imageUrl;
21
- startDate;
22
- endDate;
23
- slug;
24
24
  items;
25
- isStarted;
26
25
  status;
27
26
  label;
28
- metrics;
27
+ startDate;
28
+ endDate;
29
+ isStarted;
30
+ metricSeen;
31
+ metricOpens;
32
+ metricQuestions;
33
+ metricUsers;
34
+ statusChanged;
35
+ published;
36
+ created;
37
+ updated;
29
38
  constructor(props) {
30
39
  Object.assign(this, props);
31
40
  }
32
- updateMetrics() {
33
- if (!this.metrics || this.metrics.length === 0) {
34
- return;
35
- }
36
- let totalQuestion = 0;
37
- let totalOptions = 0;
38
- if (this.items?.length > 0) {
39
- for (const question of this.items) {
40
- totalQuestion++;
41
- totalOptions += question?.options?.length;
42
- }
43
- }
44
- this.metrics = this.metrics.map(item => {
45
- if (item.name === 'items') {
46
- item.value = totalQuestion;
47
- }
48
- if (item.name === 'options') {
49
- item.value = totalOptions;
50
- }
51
- return item;
52
- });
53
- }
54
41
  }
55
42
  exports.Survey = Survey;
56
43
  __decorate([
@@ -58,6 +45,10 @@ __decorate([
58
45
  (0, class_transformer_1.Type)(() => Number),
59
46
  __metadata("design:type", Number)
60
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);
61
52
  __decorate([
62
53
  (0, class_transformer_1.Expose)(),
63
54
  __metadata("design:type", String)
@@ -70,6 +61,19 @@ __decorate([
70
61
  (0, class_transformer_1.Expose)(),
71
62
  __metadata("design:type", String)
72
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);
73
77
  __decorate([
74
78
  (0, class_transformer_1.Expose)(),
75
79
  (0, class_transformer_1.Type)(() => Date),
@@ -82,31 +86,49 @@ __decorate([
82
86
  ], Survey.prototype, "endDate", void 0);
83
87
  __decorate([
84
88
  (0, class_transformer_1.Expose)(),
85
- __metadata("design:type", String)
86
- ], Survey.prototype, "slug", void 0);
89
+ (0, class_transformer_1.Type)(() => Boolean),
90
+ __metadata("design:type", Boolean)
91
+ ], Survey.prototype, "isStarted", void 0);
87
92
  __decorate([
88
93
  (0, class_transformer_1.Expose)(),
89
- (0, class_transformer_1.Type)(() => SurveyItem),
90
- __metadata("design:type", Array)
91
- ], Survey.prototype, "items", void 0);
94
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
95
+ __metadata("design:type", metric_1.Metric)
96
+ ], Survey.prototype, "metricSeen", void 0);
92
97
  __decorate([
93
98
  (0, class_transformer_1.Expose)(),
94
- (0, class_transformer_1.Type)(() => Boolean),
95
- __metadata("design:type", Boolean)
96
- ], Survey.prototype, "isStarted", void 0);
99
+ (0, class_transformer_1.Type)(() => item_1.Item),
100
+ __metadata("design:type", metric_1.Metric)
101
+ ], Survey.prototype, "metricOpens", void 0);
97
102
  __decorate([
98
103
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
99
- __metadata("design:type", String)
100
- ], Survey.prototype, "status", void 0);
104
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
105
+ __metadata("design:type", metric_1.Metric)
106
+ ], Survey.prototype, "metricQuestions", void 0);
101
107
  __decorate([
102
108
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
103
- __metadata("design:type", String)
104
- ], Survey.prototype, "label", void 0);
109
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
110
+ __metadata("design:type", metric_1.Metric)
111
+ ], Survey.prototype, "metricUsers", void 0);
112
+ __decorate([
113
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
114
+ (0, class_transformer_1.Type)(() => log_1.Log),
115
+ __metadata("design:type", log_1.Log)
116
+ ], Survey.prototype, "statusChanged", void 0);
105
117
  __decorate([
106
118
  (0, class_transformer_1.Expose)(),
107
- (0, class_transformer_1.Type)(() => item_1.Item),
108
- __metadata("design:type", Array)
109
- ], Survey.prototype, "metrics", void 0);
119
+ (0, class_transformer_1.Type)(() => log_1.Log),
120
+ __metadata("design:type", log_1.Log)
121
+ ], Survey.prototype, "published", void 0);
122
+ __decorate([
123
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
124
+ (0, class_transformer_1.Type)(() => log_1.Log),
125
+ __metadata("design:type", log_1.Log)
126
+ ], Survey.prototype, "created", void 0);
127
+ __decorate([
128
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
129
+ (0, class_transformer_1.Type)(() => log_1.Log),
130
+ __metadata("design:type", log_1.Log)
131
+ ], Survey.prototype, "updated", void 0);
110
132
  class SurveyItem {
111
133
  id;
112
134
  question;
@@ -115,7 +137,6 @@ class SurveyItem {
115
137
  sort;
116
138
  survey;
117
139
  options;
118
- metrics;
119
140
  constructor(props) {
120
141
  Object.assign(this, props);
121
142
  }
@@ -155,17 +176,12 @@ __decorate([
155
176
  (0, class_transformer_1.Type)(() => SurveyOption),
156
177
  __metadata("design:type", Array)
157
178
  ], SurveyItem.prototype, "options", void 0);
158
- __decorate([
159
- (0, class_transformer_1.Expose)(),
160
- (0, class_transformer_1.Type)(() => item_1.Item),
161
- __metadata("design:type", Array)
162
- ], SurveyItem.prototype, "metrics", void 0);
163
179
  class SurveyOption {
164
180
  id;
165
181
  content;
166
182
  sort;
167
- item;
168
183
  isSelected;
184
+ item;
169
185
  constructor(props) {
170
186
  Object.assign(this, props);
171
187
  }
@@ -185,14 +201,14 @@ __decorate([
185
201
  (0, class_transformer_1.Type)(() => Number),
186
202
  __metadata("design:type", Number)
187
203
  ], SurveyOption.prototype, "sort", void 0);
188
- __decorate([
189
- (0, class_transformer_1.Expose)(),
190
- (0, class_transformer_1.Type)(() => SurveyItem),
191
- __metadata("design:type", SurveyItem)
192
- ], SurveyOption.prototype, "item", void 0);
193
204
  __decorate([
194
205
  (0, class_transformer_1.Expose)(),
195
206
  (0, class_transformer_1.Type)(() => Boolean),
196
207
  __metadata("design:type", Boolean)
197
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);
198
214
  //# sourceMappingURL=survey.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey.js","sourceRoot":"","sources":["../../src/models/survey.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAmD;AACnD,iCAA8B;AAK9B,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAIjB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAGd,IAAI,CAAS;IAIb,KAAK,CAAe;IAIpB,SAAS,CAAU;IAGnB,MAAM,CAAa;IAGnB,KAAK,CAAc;IAInB,OAAO,CAAS;IAEhB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAMD,aAAa;QAEZ,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAG,CAAC,EAAE,CAAC;YAC9C,OAAO;QACR,CAAC;QAED,IAAI,aAAa,GAAG,CAAC,CAAC;QACtB,IAAI,YAAY,GAAW,CAAC,CAAC;QAE7B,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,EAAE,CAAC;YAC5B,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;gBACnC,aAAa,EAAE,CAAC;gBAChB,YAAY,IAAI,QAAQ,EAAE,OAAO,EAAE,MAAM,CAAC;YAC3C,CAAC;QACF,CAAC;QAED,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YACtC,IAAI,IAAI,CAAC,IAAI,KAAG,OAAO,EAAE,CAAC;gBACzB,IAAI,CAAC,KAAK,GAAG,aAAa,CAAC;YAC5B,CAAC;YACD,IAAI,IAAI,CAAC,IAAI,KAAG,SAAS,EAAE,CAAC;gBAC3B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O,CAAC;;4CACF;AAIlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACN;AAMb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;8BACX,MAAM;0CAAC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC;;2CACD;AAQzB,MAAa,YAAY;IAIxB,EAAE,CAAS;IAKX,OAAO,CAAS;IAMhB,IAAI,CAAS;IAIb,UAAU,CAAU;IAMpB,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"}
@@ -1,4 +1,6 @@
1
1
  import { Item } from "./item";
2
+ import { Metric } from "./metric";
3
+ import { Log } from "./log";
2
4
  export declare class Topic {
3
5
  id: number;
4
6
  title: string;
@@ -7,7 +9,9 @@ export declare class Topic {
7
9
  sort: number;
8
10
  weight: number;
9
11
  popularity: Item<number>;
10
- metrics: Item[];
12
+ metricPosts: Metric;
13
+ created: Log;
14
+ updated: Log;
11
15
  constructor(props?: Partial<Topic>);
12
16
  static toItemList(data: Topic[], key?: 'id' | 'slug'): Item<any>[];
13
17
  }
@@ -12,7 +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");
15
+ const metric_1 = require("./metric");
16
+ const log_1 = require("./log");
17
+ const helpers_1 = require("../helpers");
16
18
  class Topic {
17
19
  id;
18
20
  title;
@@ -21,7 +23,9 @@ class Topic {
21
23
  sort;
22
24
  weight;
23
25
  popularity;
24
- metrics;
26
+ metricPosts;
27
+ created;
28
+ updated;
25
29
  constructor(props) {
26
30
  Object.assign(this, props);
27
31
  }
@@ -65,60 +69,22 @@ __decorate([
65
69
  __decorate([
66
70
  (0, class_transformer_1.Expose)(),
67
71
  (0, class_transformer_1.Type)(() => item_1.Item),
68
- (0, class_transformer_1.Transform)(({ obj }) => {
69
- if (obj.weight < 1.9999) {
70
- return new item_1.Item({
71
- title: enums_1.Popularity.Poor,
72
- value: obj.weight,
73
- context: enums_1.Context.Secondary
74
- });
75
- }
76
- if (obj.weight >= 2 && obj.weight < 3.9999) {
77
- return new item_1.Item({
78
- title: enums_1.Popularity.Week,
79
- value: obj.weight,
80
- context: enums_1.Context.Dark
81
- });
82
- }
83
- if (obj.weight >= 4 && obj.weight < 5.9999) {
84
- return new item_1.Item({
85
- title: enums_1.Popularity.Fair,
86
- value: obj.weight,
87
- context: enums_1.Context.Primary
88
- });
89
- }
90
- if (obj.weight >= 6 && obj.weight < 7.9999) {
91
- return new item_1.Item({
92
- title: enums_1.Popularity.Great,
93
- value: obj.weight,
94
- context: enums_1.Context.Info
95
- });
96
- }
97
- if (obj.weight >= 8 && obj.weight < 8.9999) {
98
- return new item_1.Item({
99
- title: enums_1.Popularity.Excellent,
100
- value: obj.weight,
101
- context: enums_1.Context.Success
102
- });
103
- }
104
- if (obj.weight >= 9 && obj.weight <= 10) {
105
- return new item_1.Item({
106
- title: enums_1.Popularity.Exceptional,
107
- value: obj.weight,
108
- context: enums_1.Context.Danger
109
- });
110
- }
111
- return new item_1.Item({
112
- title: 'n/A',
113
- value: 0,
114
- context: enums_1.Context.Light
115
- });
116
- }),
72
+ (0, class_transformer_1.Transform)(({ obj }) => (0, helpers_1.getPopularityByWeight)(obj.weight)),
117
73
  __metadata("design:type", item_1.Item)
118
74
  ], Topic.prototype, "popularity", void 0);
119
75
  __decorate([
120
- (0, class_transformer_1.Expose)(),
121
- (0, class_transformer_1.Type)(() => item_1.Item),
122
- __metadata("design:type", Array)
123
- ], Topic.prototype, "metrics", void 0);
76
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
77
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj.totalPosts, ['fas', 'book-open'])),
78
+ __metadata("design:type", metric_1.Metric)
79
+ ], Topic.prototype, "metricPosts", void 0);
80
+ __decorate([
81
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
82
+ (0, class_transformer_1.Type)(() => log_1.Log),
83
+ __metadata("design:type", log_1.Log)
84
+ ], Topic.prototype, "created", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
87
+ (0, class_transformer_1.Type)(() => log_1.Log),
88
+ __metadata("design:type", log_1.Log)
89
+ ], Topic.prototype, "updated", void 0);
124
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;AAE/C,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,IAAI,CAAS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,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;sCAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,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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