@intelact/bright 0.9.76 → 0.9.77

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) 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/models/author.d.ts +6 -4
  47. package/lib/models/author.js +22 -18
  48. package/lib/models/author.js.map +1 -1
  49. package/lib/models/boost.d.ts +5 -6
  50. package/lib/models/boost.js +17 -23
  51. package/lib/models/boost.js.map +1 -1
  52. package/lib/models/brand.d.ts +3 -1
  53. package/lib/models/brand.js +23 -3
  54. package/lib/models/brand.js.map +1 -1
  55. package/lib/models/category.d.ts +2 -1
  56. package/lib/models/category.js +7 -5
  57. package/lib/models/category.js.map +1 -1
  58. package/lib/models/collection.d.ts +5 -5
  59. package/lib/models/collection.js +19 -18
  60. package/lib/models/collection.js.map +1 -1
  61. package/lib/models/feedback.d.ts +7 -2
  62. package/lib/models/feedback.js +35 -28
  63. package/lib/models/feedback.js.map +1 -1
  64. package/lib/models/index.d.ts +2 -1
  65. package/lib/models/index.js +2 -1
  66. package/lib/models/index.js.map +1 -1
  67. package/lib/models/log.d.ts +11 -0
  68. package/lib/models/log.js +16 -0
  69. package/lib/models/log.js.map +1 -0
  70. package/lib/models/metric.d.ts +20 -0
  71. package/lib/models/metric.js +186 -0
  72. package/lib/models/metric.js.map +1 -0
  73. package/lib/models/post.d.ts +21 -29
  74. package/lib/models/post.js +213 -242
  75. package/lib/models/post.js.map +1 -1
  76. package/lib/models/promotion.d.ts +7 -2
  77. package/lib/models/promotion.js +31 -3
  78. package/lib/models/promotion.js.map +1 -1
  79. package/lib/models/publisher.d.ts +7 -3
  80. package/lib/models/publisher.js +30 -14
  81. package/lib/models/publisher.js.map +1 -1
  82. package/lib/models/question.d.ts +20 -29
  83. package/lib/models/question.js +88 -174
  84. package/lib/models/question.js.map +1 -1
  85. package/lib/models/quote.d.ts +0 -1
  86. package/lib/models/quote.js +0 -6
  87. package/lib/models/quote.js.map +1 -1
  88. package/lib/models/survey.d.ts +10 -2
  89. package/lib/models/survey.js +51 -25
  90. package/lib/models/survey.js.map +1 -1
  91. package/lib/models/topic.d.ts +5 -1
  92. package/lib/models/topic.js +26 -10
  93. package/lib/models/topic.js.map +1 -1
  94. package/lib/tsconfig.tsbuildinfo +1 -1
  95. package/package.json +1 -1
@@ -13,6 +13,8 @@ exports.Promotion = 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 Promotion {
17
19
  id;
18
20
  title;
@@ -23,7 +25,11 @@ class Promotion {
23
25
  endDate;
24
26
  status;
25
27
  label;
26
- metrics;
28
+ metricSeen;
29
+ metricOpens;
30
+ logCreated;
31
+ logUpdated;
32
+ logPublished;
27
33
  constructor(props) {
28
34
  Object.assign(this, props);
29
35
  }
@@ -68,9 +74,31 @@ __decorate([
68
74
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
69
75
  __metadata("design:type", String)
70
76
  ], Promotion.prototype, "label", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Expose)(),
79
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
80
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalSeen, obj?.hasSeen)),
81
+ __metadata("design:type", metric_1.Metric)
82
+ ], Promotion.prototype, "metricSeen", void 0);
71
83
  __decorate([
72
84
  (0, class_transformer_1.Expose)(),
73
85
  (0, class_transformer_1.Type)(() => item_1.Item),
74
- __metadata("design:type", Array)
75
- ], Promotion.prototype, "metrics", void 0);
86
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalClicks', obj?.totalClicks, ['fas', 'computer-mouse'])),
87
+ __metadata("design:type", metric_1.Metric)
88
+ ], Promotion.prototype, "metricOpens", void 0);
89
+ __decorate([
90
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
91
+ (0, class_transformer_1.Type)(() => log_1.Log),
92
+ __metadata("design:type", log_1.Log)
93
+ ], Promotion.prototype, "logCreated", void 0);
94
+ __decorate([
95
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
96
+ (0, class_transformer_1.Type)(() => log_1.Log),
97
+ __metadata("design:type", log_1.Log)
98
+ ], Promotion.prototype, "logUpdated", void 0);
99
+ __decorate([
100
+ (0, class_transformer_1.Expose)(),
101
+ (0, class_transformer_1.Type)(() => log_1.Log),
102
+ __metadata("design:type", log_1.Log)
103
+ ], Promotion.prototype, "logPublished", void 0);
76
104
  //# sourceMappingURL=promotion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAmD;AACnD,iCAA8B;AAM9B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,GAAG,CAAS;IAIZ,SAAS,CAAO;IAIhB,OAAO,CAAO;IAGd,MAAM,CAAa;IAGnB,KAAK,CAAc;IAInB,OAAO,CAAS;IAEhB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAvCD,8BAuCC;AAnCA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;wCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;2CACQ;AAGjB;IADC,IAAA,0BAAM,GAAE;;0CACO;AAGhB;IADC,IAAA,0BAAM,GAAE;;sCACG;AAIZ;IAFC,IAAA,0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AAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACJ,SAAG;6CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACF,SAAG;+CAAC"}
@@ -1,4 +1,6 @@
1
1
  import { AccountStatusType, PostType } from '../enums';
2
+ import { Metric } from './metric';
3
+ import { Log } from './log';
2
4
  export declare class Publisher {
3
5
  id: number;
4
6
  name: string;
@@ -9,9 +11,11 @@ export declare class Publisher {
9
11
  status: AccountStatusType;
10
12
  allowedPostTypes: PostType[];
11
13
  publicVisibility: boolean;
12
- totalUsers: number;
13
- totalPosts: number;
14
- createdOn: Date;
14
+ metricPosts: Metric;
15
+ metricUsers: Metric;
16
+ logCreated: Log;
17
+ logUpdated: Log;
18
+ logStatusChange: Log;
15
19
  constructor(props?: Partial<Publisher>);
16
20
  isActive(): boolean;
17
21
  isDisabled(): boolean;
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Publisher = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const enums_1 = require("../enums");
15
+ const metric_1 = require("./metric");
16
+ const log_1 = require("./log");
15
17
  class Publisher {
16
18
  id;
17
19
  name;
@@ -22,9 +24,11 @@ class Publisher {
22
24
  status;
23
25
  allowedPostTypes;
24
26
  publicVisibility;
25
- totalUsers;
26
- totalPosts;
27
- createdOn;
27
+ metricPosts;
28
+ metricUsers;
29
+ logCreated;
30
+ logUpdated;
31
+ logStatusChange;
28
32
  constructor(props) {
29
33
  Object.assign(this, props);
30
34
  }
@@ -82,17 +86,29 @@ __decorate([
82
86
  ], Publisher.prototype, "publicVisibility", void 0);
83
87
  __decorate([
84
88
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
85
- (0, class_transformer_1.Type)(() => Number),
86
- __metadata("design:type", Number)
87
- ], Publisher.prototype, "totalUsers", void 0);
89
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
90
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
91
+ __metadata("design:type", metric_1.Metric)
92
+ ], Publisher.prototype, "metricPosts", void 0);
88
93
  __decorate([
89
- (0, class_transformer_1.Expose)(),
90
- (0, class_transformer_1.Type)(() => Number),
91
- __metadata("design:type", Number)
92
- ], Publisher.prototype, "totalPosts", void 0);
94
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
95
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
96
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalUsers', obj?.totalUsers, ['fas', 'users'])),
97
+ __metadata("design:type", metric_1.Metric)
98
+ ], Publisher.prototype, "metricUsers", void 0);
93
99
  __decorate([
94
- (0, class_transformer_1.Expose)(),
95
- (0, class_transformer_1.Type)(() => Date),
96
- __metadata("design:type", Date)
97
- ], Publisher.prototype, "createdOn", void 0);
100
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
101
+ (0, class_transformer_1.Type)(() => log_1.Log),
102
+ __metadata("design:type", log_1.Log)
103
+ ], Publisher.prototype, "logCreated", void 0);
104
+ __decorate([
105
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
106
+ (0, class_transformer_1.Type)(() => log_1.Log),
107
+ __metadata("design:type", log_1.Log)
108
+ ], Publisher.prototype, "logUpdated", void 0);
109
+ __decorate([
110
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
111
+ (0, class_transformer_1.Type)(() => log_1.Log),
112
+ __metadata("design:type", log_1.Log)
113
+ ], Publisher.prototype, "logStatusChange", void 0);
98
114
  //# sourceMappingURL=publisher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"publisher.js","sourceRoot":"","sources":["../../src/models/publisher.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAuD;AAKvD,MAAa,SAAS;IAIrB,EAAE,CAAS;IAGX,IAAI,CAAS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,EAAE,UAAU,EACf,CAAC,KAAK,EAAE,OAAO,CAAC,CAChB,CAAC;8BACW,eAAM;8CAAC;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACJ,SAAG;6CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACJ,SAAG;6CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACC,SAAG;kDAAC"}
@@ -2,43 +2,34 @@ import { Author } from './author';
2
2
  import { User } from './user';
3
3
  import { Category } from './category';
4
4
  import { StatusType } from '../enums';
5
- import { Item } from './item';
5
+ import { Metric } from './metric';
6
+ import { Log } from './log';
6
7
  export declare class Question {
7
8
  id: number;
8
- status: StatusType;
9
9
  slug: string;
10
- title: string;
10
+ user: User;
11
+ comments: QuestionComment[];
12
+ categories: Category[];
11
13
  name: string;
12
14
  email: string;
13
15
  phone: string;
16
+ title: string;
14
17
  question: string;
18
+ tags: string[];
19
+ status: StatusType;
15
20
  private: boolean;
16
21
  closed: boolean;
17
- totalHits: number;
18
- totalComments: number;
19
- totalItems: number;
20
- totalLikes: number;
21
- totalShares: number;
22
- totalBookmarks: number;
23
- isBookmarked: boolean;
24
- isLiked: boolean;
25
- isShared: boolean;
26
22
  myQuestion: boolean;
27
- attention: boolean;
28
- createdOn: Date;
29
- user: User;
30
- comments: QuestionComment[];
31
- items: QuestionComment[];
32
- categories: Category[];
33
- topics: Category[];
34
- tags: string[];
35
- bookmark: Item<number>;
36
- like: Item<number>;
37
- share: Item<number>;
38
- hit: Item<number>;
39
- reactions: Item<number>;
40
- badge: Item<string>;
41
- metrics: Item[];
23
+ metricVisits: Metric;
24
+ metricBookmarks: Metric;
25
+ metricLikes: Metric;
26
+ metricShares: Metric;
27
+ metricFeedbacks: Metric;
28
+ logCreated: Log;
29
+ logUpdated: Log;
30
+ logDeleted: Log;
31
+ logPublished: Log;
32
+ logAttention: Log;
42
33
  constructor(props?: Partial<Question>);
43
34
  }
44
35
  export declare class QuestionComment {
@@ -47,7 +38,7 @@ export declare class QuestionComment {
47
38
  author: Author;
48
39
  comment: string;
49
40
  status: StatusType;
50
- publishedDate: Date;
51
- createdOn: Date;
41
+ logCreated: Log;
42
+ logPublished: Log;
52
43
  constructor(props?: Partial<QuestionComment>);
53
44
  }
@@ -15,43 +15,34 @@ const author_1 = require("./author");
15
15
  const user_1 = require("./user");
16
16
  const category_1 = require("./category");
17
17
  const enums_1 = require("../enums");
18
- const item_1 = require("./item");
18
+ const metric_1 = require("./metric");
19
+ const log_1 = require("./log");
19
20
  class Question {
20
21
  id;
21
- status;
22
22
  slug;
23
- title;
23
+ user;
24
+ comments;
25
+ categories;
24
26
  name;
25
27
  email;
26
28
  phone;
29
+ title;
27
30
  question;
31
+ tags;
32
+ status;
28
33
  private;
29
34
  closed;
30
- totalHits;
31
- totalComments;
32
- totalItems;
33
- totalLikes;
34
- totalShares;
35
- totalBookmarks;
36
- isBookmarked;
37
- isLiked;
38
- isShared;
39
35
  myQuestion;
40
- attention;
41
- createdOn;
42
- user;
43
- comments;
44
- items;
45
- categories;
46
- topics;
47
- tags;
48
- bookmark;
49
- like;
50
- share;
51
- hit;
52
- reactions;
53
- badge;
54
- metrics;
36
+ metricVisits;
37
+ metricBookmarks;
38
+ metricLikes;
39
+ metricShares;
40
+ metricFeedbacks;
41
+ logCreated;
42
+ logUpdated;
43
+ logDeleted;
44
+ logPublished;
45
+ logAttention;
55
46
  constructor(props) {
56
47
  Object.assign(this, props);
57
48
  }
@@ -62,18 +53,25 @@ __decorate([
62
53
  (0, class_transformer_1.Type)(() => Number),
63
54
  __metadata("design:type", Number)
64
55
  ], Question.prototype, "id", void 0);
65
- __decorate([
66
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
67
- __metadata("design:type", String)
68
- ], Question.prototype, "status", void 0);
69
56
  __decorate([
70
57
  (0, class_transformer_1.Expose)(),
71
58
  __metadata("design:type", String)
72
59
  ], Question.prototype, "slug", void 0);
73
60
  __decorate([
74
61
  (0, class_transformer_1.Expose)(),
75
- __metadata("design:type", String)
76
- ], Question.prototype, "title", void 0);
62
+ (0, class_transformer_1.Type)(() => user_1.User),
63
+ __metadata("design:type", user_1.User)
64
+ ], Question.prototype, "user", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ (0, class_transformer_1.Type)(() => QuestionComment),
68
+ __metadata("design:type", Array)
69
+ ], Question.prototype, "comments", void 0);
70
+ __decorate([
71
+ (0, class_transformer_1.Expose)(),
72
+ (0, class_transformer_1.Type)(() => category_1.Category),
73
+ __metadata("design:type", Array)
74
+ ], Question.prototype, "categories", void 0);
77
75
  __decorate([
78
76
  (0, class_transformer_1.Expose)(),
79
77
  __metadata("design:type", String)
@@ -89,62 +87,30 @@ __decorate([
89
87
  __decorate([
90
88
  (0, class_transformer_1.Expose)(),
91
89
  __metadata("design:type", String)
92
- ], Question.prototype, "question", void 0);
93
- __decorate([
94
- (0, class_transformer_1.Expose)(),
95
- (0, class_transformer_1.Type)(() => Boolean),
96
- __metadata("design:type", Boolean)
97
- ], Question.prototype, "private", void 0);
98
- __decorate([
99
- (0, class_transformer_1.Expose)(),
100
- (0, class_transformer_1.Type)(() => Boolean),
101
- __metadata("design:type", Boolean)
102
- ], Question.prototype, "closed", void 0);
103
- __decorate([
104
- (0, class_transformer_1.Expose)(),
105
- (0, class_transformer_1.Type)(() => Number),
106
- __metadata("design:type", Number)
107
- ], Question.prototype, "totalHits", void 0);
108
- __decorate([
109
- (0, class_transformer_1.Expose)(),
110
- (0, class_transformer_1.Type)(() => Number),
111
- __metadata("design:type", Number)
112
- ], Question.prototype, "totalComments", void 0);
113
- __decorate([
114
- (0, class_transformer_1.Expose)(),
115
- (0, class_transformer_1.Type)(() => Number),
116
- __metadata("design:type", Number)
117
- ], Question.prototype, "totalItems", void 0);
118
- __decorate([
119
- (0, class_transformer_1.Expose)(),
120
- (0, class_transformer_1.Type)(() => Number),
121
- __metadata("design:type", Number)
122
- ], Question.prototype, "totalLikes", void 0);
90
+ ], Question.prototype, "title", void 0);
123
91
  __decorate([
124
92
  (0, class_transformer_1.Expose)(),
125
- (0, class_transformer_1.Type)(() => Number),
126
- __metadata("design:type", Number)
127
- ], Question.prototype, "totalShares", void 0);
93
+ __metadata("design:type", String)
94
+ ], Question.prototype, "question", void 0);
128
95
  __decorate([
129
96
  (0, class_transformer_1.Expose)(),
130
- (0, class_transformer_1.Type)(() => Number),
131
- __metadata("design:type", Number)
132
- ], Question.prototype, "totalBookmarks", void 0);
97
+ (0, class_transformer_1.Transform)(({ obj }) => (obj?.categories?.map((i) => i.hash) || [])),
98
+ __metadata("design:type", Array)
99
+ ], Question.prototype, "tags", void 0);
133
100
  __decorate([
134
- (0, class_transformer_1.Expose)(),
135
- (0, class_transformer_1.Type)(() => Boolean),
136
- __metadata("design:type", Boolean)
137
- ], Question.prototype, "isBookmarked", void 0);
101
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
102
+ __metadata("design:type", String)
103
+ ], Question.prototype, "status", void 0);
138
104
  __decorate([
139
105
  (0, class_transformer_1.Expose)(),
140
106
  (0, class_transformer_1.Type)(() => Boolean),
141
107
  __metadata("design:type", Boolean)
142
- ], Question.prototype, "isLiked", void 0);
108
+ ], Question.prototype, "private", void 0);
143
109
  __decorate([
144
110
  (0, class_transformer_1.Expose)(),
145
111
  (0, class_transformer_1.Type)(() => Boolean),
146
112
  __metadata("design:type", Boolean)
147
- ], Question.prototype, "isShared", void 0);
113
+ ], Question.prototype, "closed", void 0);
148
114
  __decorate([
149
115
  (0, class_transformer_1.Expose)(),
150
116
  (0, class_transformer_1.Type)(() => Boolean),
@@ -152,119 +118,67 @@ __decorate([
152
118
  ], Question.prototype, "myQuestion", void 0);
153
119
  __decorate([
154
120
  (0, class_transformer_1.Expose)(),
155
- (0, class_transformer_1.Type)(() => Boolean),
156
- __metadata("design:type", Boolean)
157
- ], Question.prototype, "attention", void 0);
121
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
122
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalVisits, obj?.hasSeen)),
123
+ __metadata("design:type", metric_1.Metric)
124
+ ], Question.prototype, "metricVisits", void 0);
158
125
  __decorate([
159
126
  (0, class_transformer_1.Expose)(),
160
- (0, class_transformer_1.Type)(() => Date),
161
- __metadata("design:type", Date)
162
- ], Question.prototype, "createdOn", void 0);
127
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
128
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalBookmarks, obj?.hasBookmark)),
129
+ __metadata("design:type", metric_1.Metric)
130
+ ], Question.prototype, "metricBookmarks", void 0);
163
131
  __decorate([
164
132
  (0, class_transformer_1.Expose)(),
165
- (0, class_transformer_1.Type)(() => user_1.User),
166
- __metadata("design:type", user_1.User)
167
- ], Question.prototype, "user", void 0);
133
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
134
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalLikes, obj?.hasLike)),
135
+ __metadata("design:type", metric_1.Metric)
136
+ ], Question.prototype, "metricLikes", void 0);
168
137
  __decorate([
169
138
  (0, class_transformer_1.Expose)(),
170
- (0, class_transformer_1.Type)(() => QuestionComment),
171
- __metadata("design:type", Array)
172
- ], Question.prototype, "comments", void 0);
173
- __decorate([
174
- (0, class_transformer_1.Expose)(),
175
- (0, class_transformer_1.Type)(() => QuestionComment),
176
- __metadata("design:type", Array)
177
- ], Question.prototype, "items", void 0);
178
- __decorate([
179
- (0, class_transformer_1.Expose)(),
180
- (0, class_transformer_1.Type)(() => category_1.Category),
181
- __metadata("design:type", Array)
182
- ], Question.prototype, "categories", void 0);
139
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
140
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalShares, obj?.hasShare)),
141
+ __metadata("design:type", metric_1.Metric)
142
+ ], Question.prototype, "metricShares", void 0);
183
143
  __decorate([
184
144
  (0, class_transformer_1.Expose)(),
185
- (0, class_transformer_1.Type)(() => category_1.Category),
186
- __metadata("design:type", Array)
187
- ], Question.prototype, "topics", void 0);
145
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
146
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.feedback(obj?.totalComments, obj?.hasComment)),
147
+ __metadata("design:type", metric_1.Metric)
148
+ ], Question.prototype, "metricFeedbacks", void 0);
188
149
  __decorate([
189
- (0, class_transformer_1.Expose)(),
190
- (0, class_transformer_1.Transform)(({ obj }) => (obj?.categories?.map((i) => i.hash) || [])),
191
- __metadata("design:type", Array)
192
- ], Question.prototype, "tags", void 0);
193
- __decorate([
194
- (0, class_transformer_1.Expose)(),
195
- (0, class_transformer_1.Type)(() => item_1.Item),
196
- (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
197
- value: obj.totalBookmarks || 0,
198
- active: obj.isBookmarked,
199
- icon: ['far', 'bookmark'],
200
- iconSelected: ['fas', 'bookmark'],
201
- })),
202
- __metadata("design:type", item_1.Item)
203
- ], Question.prototype, "bookmark", void 0);
204
- __decorate([
205
- (0, class_transformer_1.Expose)(),
206
- (0, class_transformer_1.Type)(() => item_1.Item),
207
- (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
208
- value: obj.totalLikes || 0,
209
- active: obj.isLiked,
210
- icon: ['far', 'heart'],
211
- iconSelected: ['fas', 'heart'],
212
- })),
213
- __metadata("design:type", item_1.Item)
214
- ], Question.prototype, "like", void 0);
215
- __decorate([
216
- (0, class_transformer_1.Expose)(),
217
- (0, class_transformer_1.Type)(() => item_1.Item),
218
- (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
219
- value: obj.totalShares || 0,
220
- active: obj.isShared,
221
- icon: ['far', 'share-from-square'],
222
- iconSelected: ['fas', 'share-from-square'],
223
- })),
224
- __metadata("design:type", item_1.Item)
225
- ], Question.prototype, "share", void 0);
150
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
151
+ (0, class_transformer_1.Type)(() => log_1.Log),
152
+ __metadata("design:type", log_1.Log)
153
+ ], Question.prototype, "logCreated", void 0);
226
154
  __decorate([
227
- (0, class_transformer_1.Expose)(),
228
- (0, class_transformer_1.Type)(() => item_1.Item),
229
- (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
230
- value: obj.totalHits || 0,
231
- icon: ['fas', 'eye'],
232
- iconSelected: ['fas', 'eye'],
233
- })),
234
- __metadata("design:type", item_1.Item)
235
- ], Question.prototype, "hit", void 0);
155
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
156
+ (0, class_transformer_1.Type)(() => log_1.Log),
157
+ __metadata("design:type", log_1.Log)
158
+ ], Question.prototype, "logUpdated", void 0);
236
159
  __decorate([
237
- (0, class_transformer_1.Expose)(),
238
- (0, class_transformer_1.Type)(() => item_1.Item),
239
- (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
240
- value: obj.totalComments || 0,
241
- active: obj.totalComments > 0,
242
- icon: ['far', 'comment'],
243
- iconSelected: ['fas', 'comment'],
244
- })),
245
- __metadata("design:type", item_1.Item)
246
- ], Question.prototype, "reactions", void 0);
160
+ (0, class_transformer_1.Expose)({ groups: ['console'] }),
161
+ (0, class_transformer_1.Type)(() => log_1.Log),
162
+ __metadata("design:type", log_1.Log)
163
+ ], Question.prototype, "logDeleted", void 0);
247
164
  __decorate([
248
165
  (0, class_transformer_1.Expose)(),
249
- (0, class_transformer_1.Transform)(() => new item_1.Item({
250
- title: 'myQuestion',
251
- value: 'text-bg-secondary',
252
- })),
253
- __metadata("design:type", item_1.Item)
254
- ], Question.prototype, "badge", void 0);
166
+ (0, class_transformer_1.Type)(() => log_1.Log),
167
+ __metadata("design:type", log_1.Log)
168
+ ], Question.prototype, "logPublished", void 0);
255
169
  __decorate([
256
170
  (0, class_transformer_1.Expose)(),
257
- (0, class_transformer_1.Type)(() => item_1.Item),
258
- __metadata("design:type", Array)
259
- ], Question.prototype, "metrics", void 0);
171
+ (0, class_transformer_1.Type)(() => log_1.Log),
172
+ __metadata("design:type", log_1.Log)
173
+ ], Question.prototype, "logAttention", void 0);
260
174
  class QuestionComment {
261
175
  id;
262
176
  question;
263
177
  author;
264
178
  comment;
265
179
  status;
266
- publishedDate;
267
- createdOn;
180
+ logCreated;
181
+ logPublished;
268
182
  constructor(props) {
269
183
  Object.assign(this, props);
270
184
  }
@@ -294,12 +208,12 @@ __decorate([
294
208
  ], QuestionComment.prototype, "status", void 0);
295
209
  __decorate([
296
210
  (0, class_transformer_1.Expose)(),
297
- (0, class_transformer_1.Type)(() => Date),
298
- __metadata("design:type", Date)
299
- ], QuestionComment.prototype, "publishedDate", void 0);
211
+ (0, class_transformer_1.Type)(() => log_1.Log),
212
+ __metadata("design:type", log_1.Log)
213
+ ], QuestionComment.prototype, "logCreated", void 0);
300
214
  __decorate([
301
215
  (0, class_transformer_1.Expose)(),
302
- (0, class_transformer_1.Type)(() => Date),
303
- __metadata("design:type", Date)
304
- ], QuestionComment.prototype, "createdOn", void 0);
216
+ (0, class_transformer_1.Type)(() => log_1.Log),
217
+ __metadata("design:type", log_1.Log)
218
+ ], QuestionComment.prototype, "logPublished", void 0);
305
219
  //# sourceMappingURL=question.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/models/question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qCAAkC;AAClC,iCAA8B;AAC9B,yCAAsC;AACtC,oCAAsC;AACtC,iCAA8B;AAK9B,MAAa,QAAQ;IAIpB,EAAE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I,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACJ,SAAG;mDAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACF,SAAG;qDAAC"}
@@ -1,6 +1,5 @@
1
1
  export declare class Quote {
2
2
  id: number;
3
3
  imageUrl: string;
4
- publishedDate: Date;
5
4
  constructor(props?: Partial<Quote>);
6
5
  }
@@ -14,7 +14,6 @@ const class_transformer_1 = require("class-transformer");
14
14
  class Quote {
15
15
  id;
16
16
  imageUrl;
17
- publishedDate;
18
17
  constructor(props) {
19
18
  Object.assign(this, props);
20
19
  }
@@ -29,9 +28,4 @@ __decorate([
29
28
  (0, class_transformer_1.Expose)(),
30
29
  __metadata("design:type", String)
31
30
  ], Quote.prototype, "imageUrl", void 0);
32
- __decorate([
33
- (0, class_transformer_1.Expose)(),
34
- (0, class_transformer_1.Type)(() => Date),
35
- __metadata("design:type", Date)
36
- ], Quote.prototype, "publishedDate", void 0);
37
31
  //# sourceMappingURL=quote.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/models/quote.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAIjB,aAAa,CAAO;IAEpB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,sBAgBC;AAZA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACF,IAAI;4CAAC"}
1
+ {"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/models/quote.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAZD,sBAYC;AARA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACQ"}