@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.
- package/lib/author/author.model.d.ts +0 -2
- package/lib/author/author.model.js +0 -11
- package/lib/author/author.model.js.map +1 -1
- package/lib/author/author.sort.d.ts +2 -1
- package/lib/author/author.sort.js +2 -1
- package/lib/author/author.sort.js.map +1 -1
- package/lib/boost/boost.model.js.map +1 -1
- package/lib/category/category.model.js.map +1 -1
- package/lib/collection/collection.model.js.map +1 -1
- package/lib/common/sort.type.d.ts +2 -5
- package/lib/common/sort.type.js +1 -4
- package/lib/common/sort.type.js.map +1 -1
- package/lib/feedback/feedback.model.js.map +1 -1
- package/lib/metric/metric.data.d.ts +9 -11
- package/lib/metric/metric.model.d.ts +23 -19
- package/lib/metric/metric.model.js +109 -53
- package/lib/metric/metric.model.js.map +1 -1
- package/lib/post/post.model.d.ts +0 -6
- package/lib/post/post.model.js +0 -37
- package/lib/post/post.model.js.map +1 -1
- package/lib/question/question.model.d.ts +0 -5
- package/lib/question/question.model.js +0 -31
- package/lib/question/question.model.js.map +1 -1
- package/lib/topic/topic.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/user.event.d.ts +1 -1
- package/lib/user/user.event.js +1 -1
- package/lib/user/user.event.js.map +1 -1
- package/lib/user/user.model.d.ts +2 -0
- package/lib/user/user.model.js +7 -0
- package/lib/user/user.model.js.map +1 -1
- package/package.json +1 -1
@@ -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;
|
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;IAWjB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAc,EAAE,MAAgB,IAAI;QACrD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAG,CAAC;YAAE,OAAO,EAA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(AuthorSort) {
|
6
6
|
AuthorSort["Name"] = "name";
|
7
7
|
AuthorSort["NameDescending"] = "name_descending";
|
8
|
-
AuthorSort["
|
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,
|
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;
|
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,CA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"","sources":["../../src/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAG/B,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAIb,eAAe,CAAU;
|
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;IAIpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAIb,eAAe,CAAU;IAezB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAgB,EAAE,MAAgB,IAAI;QACvD,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;AA/ED,4BA+EC;AA3EA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAKX;IADC,IAAA,0BAAM,GA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,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"}
|
package/lib/common/sort.type.js
CHANGED
@@ -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,
|
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;
|
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;IAab,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAMhB,KAAK,CAAiB;IAEtB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA7DD,4BA6DC;AAzDA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAGX;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;sCACf;AAKf;IADC,IAAA,0BAAM,GAAE;;uCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;6CACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,WAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;;sCACzC;AAab;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,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
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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
|
17
|
-
static
|
18
|
-
static
|
19
|
-
static
|
20
|
-
static
|
21
|
-
static
|
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
|
26
|
-
static
|
27
|
-
static
|
28
|
-
static
|
29
|
-
static
|
30
|
-
static
|
31
|
-
static
|
32
|
-
static
|
33
|
-
static
|
34
|
-
static
|
35
|
-
static
|
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
|
27
|
+
static open(val, active) {
|
28
28
|
return new Metric({
|
29
|
-
title: '
|
30
|
-
event: user_1.UserEvent.
|
31
|
-
icon: Metric.getIconByType(user_1.UserEvent.
|
32
|
-
iconActive: Metric.getIconByType(user_1.UserEvent.
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
157
|
+
static byAuthor(data) {
|
158
158
|
return [
|
159
|
-
Metric.
|
160
|
-
Metric.
|
159
|
+
Metric.post(data?.totalPosts),
|
160
|
+
Metric.question(data?.totalQuestions)
|
161
161
|
];
|
162
162
|
}
|
163
|
-
static
|
163
|
+
static byUser(data) {
|
164
164
|
return [
|
165
|
-
Metric.
|
166
|
-
Metric.
|
167
|
-
Metric.
|
168
|
-
Metric.
|
169
|
-
Metric.
|
170
|
-
Metric.
|
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
|
173
|
+
static byPost(data) {
|
174
174
|
return [
|
175
|
-
Metric.
|
176
|
-
Metric.
|
177
|
-
Metric.
|
178
|
-
Metric.
|
179
|
-
Metric.
|
180
|
-
Metric.
|
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
|
183
|
+
static byBoost(data) {
|
184
184
|
return [
|
185
|
-
Metric.
|
186
|
-
Metric.
|
187
|
-
Metric.
|
188
|
-
Metric.
|
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
|
194
|
+
static byCollection(data) {
|
192
195
|
return [
|
193
|
-
Metric.
|
194
|
-
Metric.
|
195
|
-
Metric.
|
196
|
-
Metric.
|
197
|
-
Metric.
|
198
|
-
Metric.
|
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
|
205
|
+
static byTopic(data) {
|
202
206
|
return [
|
203
|
-
Metric.
|
204
|
-
Metric.
|
205
|
-
Metric.
|
206
|
-
Metric.
|
207
|
-
Metric.
|
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
|
216
|
+
static byFeedback(data) {
|
211
217
|
return [
|
212
|
-
Metric.
|
213
|
-
Metric.
|
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.
|
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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Gd;IADC,IAAA,0BAAM,GAAE;;qCACM;AAGf;IADC,IAAA,0BAAM,GAAE;;qCACqB;AAI9B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,EAAE,KAAK,IAAI,CAAC,CAAC;;qCAC1B;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;sCACJ;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;;oCACzC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;;0CACzC"}
|
package/lib/post/post.model.d.ts
CHANGED
@@ -31,12 +31,6 @@ export declare class Post {
|
|
31
31
|
postType: PostType;
|
32
32
|
weight: number;
|
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;
|
package/lib/post/post.model.js
CHANGED
@@ -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([
|