@intelact/bright 0.9.85 → 0.9.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,8 +7,6 @@ export declare class Author {
7
7
  name: string;
8
8
  biography: string;
9
9
  imageUrl: string;
10
- totalPosts: number;
11
- totalQuestions: number;
12
10
  metrics: Metric[];
13
11
  createdBy: User;
14
12
  createdOn: Date;
@@ -20,8 +20,6 @@ class Author {
20
20
  name;
21
21
  biography;
22
22
  imageUrl;
23
- totalPosts;
24
- totalQuestions;
25
23
  metrics;
26
24
  createdBy;
27
25
  createdOn;
@@ -61,18 +59,9 @@ __decorate([
61
59
  (0, class_transformer_1.Expose)(),
62
60
  __metadata("design:type", String)
63
61
  ], Author.prototype, "imageUrl", void 0);
64
- __decorate([
65
- (0, class_transformer_1.Expose)(),
66
- __metadata("design:type", Number)
67
- ], Author.prototype, "totalPosts", void 0);
68
- __decorate([
69
- (0, class_transformer_1.Expose)(),
70
- __metadata("design:type", Number)
71
- ], Author.prototype, "totalQuestions", void 0);
72
62
  __decorate([
73
63
  (0, class_transformer_1.Expose)(),
74
64
  (0, class_transformer_1.Type)(() => metric_1.Metric),
75
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.getByAuthor(obj)),
76
65
  __metadata("design:type", Array)
77
66
  ], Author.prototype, "metrics", void 0);
78
67
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"author.model.js","sourceRoot":"","sources":["../../src/author/author.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAE/B,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,IAAI,CAAS;IAGb,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAKjB,UAAU,CAAS;IAGnB,cAAc,CAAS;IAUvB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAAuB;QA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AA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;oCACI;AAKb;IADC,IAAA,0BAAM,GAAE;;oCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAWjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;;uCACD;AAMlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC"}
@@ -1,6 +1,7 @@
1
1
  export declare enum AuthorSort {
2
2
  Name = "name",
3
3
  NameDescending = "name_descending",
4
- Publications = "publications",
4
+ Posts = "posts",
5
+ Questions = "questions",
5
6
  Popularity = "popularity"
6
7
  }
@@ -5,7 +5,8 @@ var AuthorSort;
5
5
  (function (AuthorSort) {
6
6
  AuthorSort["Name"] = "name";
7
7
  AuthorSort["NameDescending"] = "name_descending";
8
- AuthorSort["Publications"] = "publications";
8
+ AuthorSort["Posts"] = "posts";
9
+ AuthorSort["Questions"] = "questions";
9
10
  AuthorSort["Popularity"] = "popularity";
10
11
  })(AuthorSort || (exports.AuthorSort = AuthorSort = {}));
11
12
  //# sourceMappingURL=author.sort.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"author.sort.js","sourceRoot":"","sources":["../../src/author/author.sort.ts"],"names":[],"mappings":";;;AAKA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAKrB,2BAAa,CAAA;IAKb,gDAAkC,CAAA;IAKlC,2CAA6B,CAAA;IAK7B,uCAAyB,CAAA;AAC1B,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB"}
1
+ {"version":3,"file":"author.sort.js","sourceRoot":"","sources":["../../src/author/author.sort.ts"],"names":[],"mappings":";;;AAKA,IAAY,UA0BX;AA1BD,WAAY,UAAU;IAKrB,2BAAa,CAAA;IAKb,gDAAkC,CAAA;IAKlC,6BAAe,CAAA;IAKf,qCAAuB,CAAA;IAKvB,uCAAyB,CAAA;AAC1B,CAAC,EA1BW,UAAU,0BAAV,UAAU,QA0BrB"}
@@ -1 +1 @@
1
- {"version":3,"file":"boost.model.js","sourceRoot":"","sources":["../../src/boost/boost.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAGxB,IAAM,KAAK,GAAX,MAAM,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAMd,SAAS,CAAO;IAIhB,OAAO,CAAO;IAWd,OAAO,CAAW;IAKlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAEhB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AAtDY,sBAAK;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAKX;IADC,IAAA,0BAAM,G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ACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AA1DY,sBAAK;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;oCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;oCACH;AAMd;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;sCAAC;AAed;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;;sCACD;AAKlB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;wCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAGhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;wCAAC;AAGhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;gBArDJ,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CA0DjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"category.model.js","sourceRoot":"","sources":["../../src/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAG/B,MAAa,QAAQ;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AM,CAAC;;sCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;yCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;yCACH;AAgBd;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;;2CACD;AAMlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;6CAAC;AAMhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;6CAAC"}
@@ -1,8 +1,5 @@
1
1
  export declare enum SortType {
2
+ Recommended = "recommended",
2
3
  Newest = "newest",
3
- Relevant = "relevant",
4
- Popular = "popular",
5
- Liked = "liked",
6
- Downloaded = "downloaded",
7
- Oldest = "oldest"
4
+ Popular = "popular"
8
5
  }
@@ -3,11 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SortType = void 0;
4
4
  var SortType;
5
5
  (function (SortType) {
6
+ SortType["Recommended"] = "recommended";
6
7
  SortType["Newest"] = "newest";
7
- SortType["Relevant"] = "relevant";
8
8
  SortType["Popular"] = "popular";
9
- SortType["Liked"] = "liked";
10
- SortType["Downloaded"] = "downloaded";
11
- SortType["Oldest"] = "oldest";
12
9
  })(SortType || (exports.SortType = SortType = {}));
13
10
  //# sourceMappingURL=sort.type.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sort.type.js","sourceRoot":"","sources":["../../src/common/sort.type.ts"],"names":[],"mappings":";;;AAMA,IAAY,QA8BX;AA9BD,WAAY,QAAQ;IAInB,6BAAiB,CAAA;IAKjB,iCAAqB,CAAA;IAKrB,+BAAmB,CAAA;IAKnB,2BAAe,CAAA;IAKf,qCAAyB,CAAA;IAKzB,6BAAiB,CAAA;AAClB,CAAC,EA9BW,QAAQ,wBAAR,QAAQ,QA8BnB"}
1
+ {"version":3,"file":"sort.type.js","sourceRoot":"","sources":["../../src/common/sort.type.ts"],"names":[],"mappings":";;;AAMA,IAAY,QAgBX;AAhBD,WAAY,QAAQ;IAInB,uCAA2B,CAAA;IAK3B,6BAAiB,CAAA;IAMjB,+BAAmB,CAAA;AACpB,CAAC,EAhBW,QAAQ,wBAAR,QAAQ,QAgBnB"}
@@ -1 +1 @@
1
- {"version":3,"file":"feedback.model.js","sourceRoot":"","sources":["../../src/feedback/feedback.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,kCAAyC;AACzC,sCAAmC;AACnC,kCAA+B;AAC/B,+DAAqD;AAErD,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,IAAI,CAAW;IAKf,KAAK,CAAS;IAGd,WAAW,CAAQ;IAInB,IAAI,CAAS;IAYb,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAMhB,KAAK,CAAiB;IAEtB,YAAY,KAAyB;QACpC,MAAM,CAAC,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E,CAAC,eAAM,CAAC;;yCACD;AAMlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;2CAAC;AAMhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAY,CAAC;;uCACH"}
@@ -1,17 +1,15 @@
1
1
  export interface IMetricData {
2
2
  id: number;
3
- seen?: number;
4
- opens?: number;
5
- likes?: number;
6
- shares?: number;
7
- bookmarks?: number;
8
- downloads?: number;
9
- feedbacks?: number;
10
- startFeedback?: number;
11
- completeFeedback?: number;
12
- rejectFeedback?: number;
13
- totalItems?: number;
3
+ totalOpens?: number;
4
+ totalLikes?: number;
5
+ totalShares?: number;
6
+ totalBookmarks?: number;
7
+ totalDownloads?: number;
14
8
  totalFeedbacks?: number;
9
+ totalStarted?: number;
10
+ totalCompleted?: number;
11
+ totalRejected?: number;
12
+ totalItems?: number;
15
13
  totalUsers?: number;
16
14
  totalPosts?: number;
17
15
  totalQuestions?: number;
@@ -2,8 +2,6 @@ import { IconProp } from "@fortawesome/fontawesome-svg-core";
2
2
  import { UserEvent } from "../user";
3
3
  import { IMetricData } from "./metric.data";
4
4
  import { MetricType } from "./metric.type";
5
- import { Post } from "../post";
6
- import { Question } from "../question";
7
5
  export declare class Metric {
8
6
  name?: string;
9
7
  title?: string;
@@ -13,25 +11,31 @@ export declare class Metric {
13
11
  icon: IconProp;
14
12
  iconActive: IconProp;
15
13
  constructor(props?: Partial<Metric>);
16
- static seen(val: number, active?: boolean): Metric;
17
- static likes(val: number, active?: boolean): Metric;
18
- static bookmarks(val: number, active?: boolean): Metric;
19
- static shares(val: number, active?: boolean): Metric;
20
- static downloads(val: number, active?: boolean): Metric;
21
- static feedbacks(val: number, active?: boolean): Metric;
14
+ static open(val: number, active?: boolean): Metric;
15
+ static like(val: number, active?: boolean): Metric;
16
+ static bookmark(val: number, active?: boolean): Metric;
17
+ static share(val: number, active?: boolean): Metric;
18
+ static download(val: number, active?: boolean): Metric;
19
+ static feedback(val: number, active?: boolean): Metric;
22
20
  static start(val: number, active?: boolean): Metric;
23
21
  static complete(val: number, active?: boolean): Metric;
24
22
  static reject(val: number, active?: boolean): Metric;
25
- static items(val: number, icon?: IconProp, active?: boolean): Metric;
26
- static users(val: number, active?: boolean): Metric;
27
- static posts(val: number, active?: boolean): Metric;
28
- static questions(val: number, active?: boolean): Metric;
29
- static getByAuthor(data: IMetricData): Metric[];
30
- static getByUser(data: IMetricData): Metric[];
31
- static setByPost(post: Post): Metric[];
32
- static setByQuestion(question: Question): Metric[];
33
- static getByBoost(data: IMetricData): Metric[];
34
- static getBySurvey(data: IMetricData): Metric[];
35
- static getByPromotion(data: IMetricData): Metric[];
23
+ static total(val: number, icon?: IconProp, active?: boolean): Metric;
24
+ static user(val: number, active?: boolean): Metric;
25
+ static post(val: number, active?: boolean): Metric;
26
+ static question(val: number, active?: boolean): Metric;
27
+ static byAuthor(data: IMetricData): Metric[];
28
+ static byUser(data: IMetricData): Metric[];
29
+ static byPost(data: IMetricData): Metric[];
30
+ static byBoost(data: IMetricData): Metric[];
31
+ static byCollection(data: IMetricData): Metric[];
32
+ static byTopic(data: IMetricData): Metric[];
33
+ static byFeedback(data: IMetricData): Metric[];
34
+ static byQuestion(data: IMetricData): Metric[];
35
+ static byQuestionCategory(data: IMetricData): Metric[];
36
+ static bySurvey(data: IMetricData): Metric[];
37
+ static byPromotion(data: IMetricData): Metric[];
38
+ static byPublisher(data: IMetricData): Metric[];
39
+ static byuser(data: IMetricData): Metric[];
36
40
  static getIconByType(metricType: UserEvent | MetricType, active?: boolean): IconProp;
37
41
  }
@@ -24,17 +24,17 @@ class Metric {
24
24
  constructor(props) {
25
25
  Object.assign(this, props);
26
26
  }
27
- static seen(val, active) {
27
+ static open(val, active) {
28
28
  return new Metric({
29
- title: 'userEventSeen',
30
- event: user_1.UserEvent.Seen,
31
- icon: Metric.getIconByType(user_1.UserEvent.Seen),
32
- iconActive: Metric.getIconByType(user_1.UserEvent.Seen, true),
29
+ title: 'userEventOpen',
30
+ event: user_1.UserEvent.Open,
31
+ icon: Metric.getIconByType(user_1.UserEvent.Open),
32
+ iconActive: Metric.getIconByType(user_1.UserEvent.Open, true),
33
33
  value: val || 0,
34
34
  active: active
35
35
  });
36
36
  }
37
- static likes(val, active) {
37
+ static like(val, active) {
38
38
  return new Metric({
39
39
  title: 'userEventLike',
40
40
  event: user_1.UserEvent.Like,
@@ -44,7 +44,7 @@ class Metric {
44
44
  active: active
45
45
  });
46
46
  }
47
- static bookmarks(val, active) {
47
+ static bookmark(val, active) {
48
48
  return new Metric({
49
49
  title: 'userEventBookmark',
50
50
  event: user_1.UserEvent.Bookmark,
@@ -54,7 +54,7 @@ class Metric {
54
54
  active: active
55
55
  });
56
56
  }
57
- static shares(val, active) {
57
+ static share(val, active) {
58
58
  return new Metric({
59
59
  title: 'userEventShare',
60
60
  event: user_1.UserEvent.Share,
@@ -64,7 +64,7 @@ class Metric {
64
64
  active: active
65
65
  });
66
66
  }
67
- static downloads(val, active) {
67
+ static download(val, active) {
68
68
  return new Metric({
69
69
  title: 'userEventDownload',
70
70
  event: user_1.UserEvent.Download,
@@ -74,7 +74,7 @@ class Metric {
74
74
  active: active
75
75
  });
76
76
  }
77
- static feedbacks(val, active) {
77
+ static feedback(val, active) {
78
78
  return new Metric({
79
79
  title: 'userEventFeedback',
80
80
  event: user_1.UserEvent.Feedback,
@@ -114,7 +114,7 @@ class Metric {
114
114
  active: active
115
115
  });
116
116
  }
117
- static items(val, icon, active) {
117
+ static total(val, icon, active) {
118
118
  return new Metric({
119
119
  title: 'userEventTotalItems',
120
120
  event: metric_type_1.MetricType.Items,
@@ -124,7 +124,7 @@ class Metric {
124
124
  active: active
125
125
  });
126
126
  }
127
- static users(val, active) {
127
+ static user(val, active) {
128
128
  return new Metric({
129
129
  title: 'userEventTotalUsers',
130
130
  event: metric_type_1.MetricType.Users,
@@ -134,7 +134,7 @@ class Metric {
134
134
  active: active
135
135
  });
136
136
  }
137
- static posts(val, active) {
137
+ static post(val, active) {
138
138
  return new Metric({
139
139
  title: 'userEventTotalPosts',
140
140
  event: metric_type_1.MetricType.Posts,
@@ -144,7 +144,7 @@ class Metric {
144
144
  active: active
145
145
  });
146
146
  }
147
- static questions(val, active) {
147
+ static question(val, active) {
148
148
  return new Metric({
149
149
  title: 'userEventTotalQuestions',
150
150
  event: metric_type_1.MetricType.Questions,
@@ -154,68 +154,124 @@ class Metric {
154
154
  active: active
155
155
  });
156
156
  }
157
- static getByAuthor(data) {
157
+ static byAuthor(data) {
158
158
  return [
159
- Metric.posts(data?.totalPosts),
160
- Metric.questions(data?.totalQuestions)
159
+ Metric.post(data?.totalPosts),
160
+ Metric.question(data?.totalQuestions)
161
161
  ];
162
162
  }
163
- static getByUser(data) {
163
+ static byUser(data) {
164
164
  return [
165
- Metric.seen(data?.seen),
166
- Metric.likes(data?.likes),
167
- Metric.shares(data?.shares),
168
- Metric.bookmarks(data?.bookmarks),
169
- Metric.downloads(data?.downloads),
170
- Metric.feedbacks(data?.feedbacks),
165
+ Metric.open(data?.totalOpens),
166
+ Metric.like(data?.totalLikes),
167
+ Metric.share(data?.totalShares),
168
+ Metric.bookmark(data?.totalBookmarks),
169
+ Metric.download(data?.totalDownloads),
170
+ Metric.feedback(data?.totalFeedbacks),
171
171
  ];
172
172
  }
173
- static setByPost(post) {
173
+ static byPost(data) {
174
174
  return [
175
- Metric.seen(post?.totalSeen), ,
176
- Metric.likes(post?.totalLikes),
177
- Metric.shares(post?.totalShares),
178
- Metric.bookmarks(post?.totalBookmarks),
179
- Metric.downloads(post?.totalDownloads),
180
- Metric.feedbacks(post?.totalFeedbacks),
175
+ Metric.open(data?.totalOpens),
176
+ Metric.like(data?.totalLikes),
177
+ Metric.share(data?.totalShares),
178
+ Metric.bookmark(data?.totalBookmarks),
179
+ Metric.download(data?.totalDownloads),
180
+ Metric.feedback(data?.totalFeedbacks),
181
181
  ];
182
182
  }
183
- static setByQuestion(question) {
183
+ static byBoost(data) {
184
184
  return [
185
- Metric.seen(question?.totalSeen),
186
- Metric.likes(question?.totalLikes),
187
- Metric.shares(question?.totalShares),
188
- Metric.bookmarks(question?.totalBookmarks)
185
+ Metric.total(data?.totalItems),
186
+ Metric.open(data?.totalOpens),
187
+ Metric.like(data?.totalLikes),
188
+ Metric.share(data?.totalShares),
189
+ Metric.bookmark(data?.totalBookmarks),
190
+ Metric.download(data?.totalDownloads),
191
+ Metric.feedback(data?.totalFeedbacks),
189
192
  ];
190
193
  }
191
- static getByBoost(data) {
194
+ static byCollection(data) {
192
195
  return [
193
- Metric.seen(data?.seen), ,
194
- Metric.likes(data?.likes),
195
- Metric.shares(data?.shares),
196
- Metric.bookmarks(data?.bookmarks),
197
- Metric.downloads(data?.downloads),
198
- Metric.posts(data?.totalItems),
196
+ Metric.total(data?.totalItems),
197
+ Metric.open(data?.totalOpens),
198
+ Metric.like(data?.totalLikes),
199
+ Metric.share(data?.totalShares),
200
+ Metric.bookmark(data?.totalBookmarks),
201
+ Metric.download(data?.totalDownloads),
202
+ Metric.feedback(data?.totalFeedbacks),
199
203
  ];
200
204
  }
201
- static getBySurvey(data) {
205
+ static byTopic(data) {
202
206
  return [
203
- Metric.seen(data?.seen),
204
- Metric.start(data?.opens),
205
- Metric.complete(data?.opens),
206
- Metric.reject(data?.opens),
207
- Metric.items(data?.totalItems),
207
+ Metric.total(data?.totalItems),
208
+ Metric.open(data?.totalOpens),
209
+ Metric.like(data?.totalLikes),
210
+ Metric.share(data?.totalShares),
211
+ Metric.bookmark(data?.totalBookmarks),
212
+ Metric.download(data?.totalDownloads),
213
+ Metric.feedback(data?.totalFeedbacks),
208
214
  ];
209
215
  }
210
- static getByPromotion(data) {
216
+ static byFeedback(data) {
211
217
  return [
212
- Metric.seen(data?.seen),
213
- Metric.items(data?.totalItems),
218
+ Metric.total(data?.totalItems),
219
+ Metric.open(data?.totalOpens),
220
+ Metric.post(data?.totalPosts),
221
+ Metric.user(data?.totalUsers),
222
+ ];
223
+ }
224
+ static byQuestion(data) {
225
+ return [
226
+ Metric.total(data?.totalItems),
227
+ Metric.open(data?.totalOpens),
228
+ Metric.like(data?.totalLikes),
229
+ Metric.share(data?.totalShares),
230
+ Metric.bookmark(data?.totalBookmarks)
231
+ ];
232
+ }
233
+ static byQuestionCategory(data) {
234
+ return [
235
+ Metric.total(data?.totalItems),
236
+ Metric.open(data?.totalOpens),
237
+ Metric.like(data?.totalLikes),
238
+ Metric.share(data?.totalShares),
239
+ Metric.bookmark(data?.totalBookmarks)
240
+ ];
241
+ }
242
+ static bySurvey(data) {
243
+ return [
244
+ Metric.total(data?.totalItems),
245
+ Metric.start(data?.totalStarted),
246
+ Metric.complete(data?.totalCompleted),
247
+ Metric.reject(data?.totalRejected),
248
+ ];
249
+ }
250
+ static byPromotion(data) {
251
+ return [
252
+ Metric.open(data?.totalOpens),
253
+ Metric.complete(data?.totalItems),
254
+ ];
255
+ }
256
+ static byPublisher(data) {
257
+ return [
258
+ Metric.post(data?.totalPosts),
259
+ Metric.user(data?.totalUsers),
260
+ ];
261
+ }
262
+ static byuser(data) {
263
+ return [
264
+ Metric.open(data?.totalOpens),
265
+ Metric.like(data?.totalLikes),
266
+ Metric.share(data?.totalShares),
267
+ Metric.bookmark(data?.totalBookmarks),
268
+ Metric.download(data?.totalDownloads),
269
+ Metric.feedback(data?.totalFeedbacks),
214
270
  ];
215
271
  }
216
272
  static getIconByType(metricType, active) {
217
273
  switch (metricType) {
218
- case user_1.UserEvent.Seen:
274
+ case user_1.UserEvent.Open:
219
275
  return active ? ['fas', 'eye'] : ['fas', 'eye'];
220
276
  case user_1.UserEvent.Like:
221
277
  return active ? ['fas', 'heart'] : ['far', 'heart'];
@@ -1 +1 @@
1
- {"version":3,"file":"metric.model.js","sourceRoot":"","sources":["../../src/metric/metric.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAA4D;AAC5D,kCAAoC;AAEpC,+CAA2C;AAI3C,MAAa,MAAM;IAGlB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,KAAK,CAAyB;IAI9B,KAAK,CAAS;IAId,MAAM,CAAU;IAIhB,IAAI,CAAW;IAIf,UAAU,CAAW;IAErB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,GAAW,EAAE,MAAgB;QACxC,OAAO,IAAI,MAAM,CAAC;YACjB,KAAK,EAAE,eAAe;YACtB,KAAK,EAAE,gBAAS,CAAC,IAAI;YACrB,IAAI,EAAE,MAAM,CAAC,aAAa,CAAC,gBAAS,CAAC,IAAI,CAAC;YAC1C,UAAU,EAAE,MAAM,CAAC,aAAa,CAAC,gBAAS,CAAC,IAAI,EAAE,IAAI,CAAC;YACtD,KAAK,EAAE,GAAG,IAAI,CAAC;YACf,MAAM,EAAE,MAAM;SACd,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,GAAW,EAAE,MAAgB;QACzC,OAAO,IAAI,MAAM,CAAC;YACjB,KAAK,EAAE,eAAe;YACtB,KAAK,EAAE,gBAAS,CAAC,IAAI;YACrB,I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;
33
33
  popularity: Popularity;
34
- totalSeen: number;
35
- totalLikes: number;
36
- totalShares: number;
37
- totalBookmarks: number;
38
- totalDownloads: number;
39
- totalFeedbacks: number;
40
34
  metrics: Metric[];
41
35
  createdBy: User;
42
36
  createdOn: Date;
@@ -42,12 +42,6 @@ class Post {
42
42
  postType;
43
43
  weight;
44
44
  popularity;
45
- totalSeen;
46
- totalLikes;
47
- totalShares;
48
- totalBookmarks;
49
- totalDownloads;
50
- totalFeedbacks;
51
45
  metrics;
52
46
  createdBy;
53
47
  createdOn;
@@ -360,40 +354,9 @@ __decorate([
360
354
  (0, class_transformer_1.Transform)(({ obj }) => popularity_1.Popularity.get(obj.weight)),
361
355
  __metadata("design:type", popularity_1.Popularity)
362
356
  ], Post.prototype, "popularity", void 0);
363
- __decorate([
364
- (0, class_transformer_1.Expose)(),
365
- (0, class_transformer_1.Type)(() => Number),
366
- __metadata("design:type", Number)
367
- ], Post.prototype, "totalSeen", void 0);
368
- __decorate([
369
- (0, class_transformer_1.Expose)(),
370
- (0, class_transformer_1.Type)(() => Number),
371
- __metadata("design:type", Number)
372
- ], Post.prototype, "totalLikes", void 0);
373
- __decorate([
374
- (0, class_transformer_1.Expose)(),
375
- (0, class_transformer_1.Type)(() => Number),
376
- __metadata("design:type", Number)
377
- ], Post.prototype, "totalShares", void 0);
378
- __decorate([
379
- (0, class_transformer_1.Expose)(),
380
- (0, class_transformer_1.Type)(() => Number),
381
- __metadata("design:type", Number)
382
- ], Post.prototype, "totalBookmarks", void 0);
383
- __decorate([
384
- (0, class_transformer_1.Expose)(),
385
- (0, class_transformer_1.Type)(() => Number),
386
- __metadata("design:type", Number)
387
- ], Post.prototype, "totalDownloads", void 0);
388
- __decorate([
389
- (0, class_transformer_1.Expose)(),
390
- (0, class_transformer_1.Type)(() => Number),
391
- __metadata("design:type", Number)
392
- ], Post.prototype, "totalFeedbacks", void 0);
393
357
  __decorate([
394
358
  (0, class_transformer_1.Expose)(),
395
359
  (0, class_transformer_1.Type)(() => metric_1.Metric),
396
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.setByPost(obj)),
397
360
  __metadata("design:type", Array)
398
361
  ], Post.prototype, "metrics", void 0);
399
362
  __decorate([