@intelact/bright 0.9.77 → 0.9.78
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/helpers/index.d.ts +2 -0
- package/lib/helpers/index.js +19 -0
- package/lib/helpers/index.js.map +1 -0
- package/lib/helpers/popularity.helper.d.ts +2 -0
- package/lib/helpers/popularity.helper.js +58 -0
- package/lib/helpers/popularity.helper.js.map +1 -0
- package/lib/helpers/post.helper.d.ts +2 -0
- package/lib/helpers/post.helper.js +22 -0
- package/lib/helpers/post.helper.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/models/author.d.ts +3 -3
- package/lib/models/author.js +7 -7
- package/lib/models/author.js.map +1 -1
- package/lib/models/boost.d.ts +3 -3
- package/lib/models/boost.js +10 -11
- package/lib/models/boost.js.map +1 -1
- package/lib/models/brand.d.ts +4 -4
- package/lib/models/brand.js +17 -17
- package/lib/models/brand.js.map +1 -1
- package/lib/models/category.js +0 -1
- package/lib/models/category.js.map +1 -1
- package/lib/models/collection.d.ts +3 -3
- package/lib/models/collection.js +10 -11
- package/lib/models/collection.js.map +1 -1
- package/lib/models/feedback.d.ts +3 -5
- package/lib/models/feedback.js +12 -36
- package/lib/models/feedback.js.map +1 -1
- package/lib/models/log.d.ts +4 -4
- package/lib/models/log.js +3 -3
- package/lib/models/log.js.map +1 -1
- package/lib/models/post.d.ts +15 -17
- package/lib/models/post.js +69 -160
- package/lib/models/post.js.map +1 -1
- package/lib/models/promotion.d.ts +5 -4
- package/lib/models/promotion.js +18 -14
- package/lib/models/promotion.js.map +1 -1
- package/lib/models/publisher.d.ts +4 -3
- package/lib/models/publisher.js +12 -8
- package/lib/models/publisher.js.map +1 -1
- package/lib/models/question.d.ts +20 -17
- package/lib/models/question.js +80 -61
- package/lib/models/question.js.map +1 -1
- package/lib/models/survey.d.ts +9 -11
- package/lib/models/survey.js +37 -47
- package/lib/models/survey.js.map +1 -1
- package/lib/models/topic.d.ts +2 -2
- package/lib/models/topic.js +6 -56
- package/lib/models/topic.js.map +1 -1
- package/lib/models/user.d.ts +4 -4
- package/lib/models/user.js +100 -22
- package/lib/models/user.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./popularity.helper"), exports);
|
18
|
+
__exportStar(require("./post.helper"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/helpers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,gDAA8B"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getPopularityByWeight = void 0;
|
4
|
+
const enums_1 = require("../enums");
|
5
|
+
const models_1 = require("../models");
|
6
|
+
function getPopularityByWeight(weight) {
|
7
|
+
if (!weight) {
|
8
|
+
return new models_1.Item({
|
9
|
+
title: 'n/A',
|
10
|
+
value: 0,
|
11
|
+
context: enums_1.Context.Light
|
12
|
+
});
|
13
|
+
}
|
14
|
+
if (weight < 1.9999) {
|
15
|
+
return new models_1.Item({
|
16
|
+
title: enums_1.Popularity.Poor,
|
17
|
+
value: weight,
|
18
|
+
context: enums_1.Context.Secondary
|
19
|
+
});
|
20
|
+
}
|
21
|
+
if (weight >= 2 && weight < 3.9999) {
|
22
|
+
return new models_1.Item({
|
23
|
+
title: enums_1.Popularity.Week,
|
24
|
+
value: weight,
|
25
|
+
context: enums_1.Context.Dark
|
26
|
+
});
|
27
|
+
}
|
28
|
+
if (weight >= 4 && weight < 5.9999) {
|
29
|
+
return new models_1.Item({
|
30
|
+
title: enums_1.Popularity.Fair,
|
31
|
+
value: weight,
|
32
|
+
context: enums_1.Context.Primary
|
33
|
+
});
|
34
|
+
}
|
35
|
+
if (weight >= 6 && weight < 7.9999) {
|
36
|
+
return new models_1.Item({
|
37
|
+
title: enums_1.Popularity.Great,
|
38
|
+
value: weight,
|
39
|
+
context: enums_1.Context.Info
|
40
|
+
});
|
41
|
+
}
|
42
|
+
if (weight >= 8 && weight < 8.9999) {
|
43
|
+
return new models_1.Item({
|
44
|
+
title: enums_1.Popularity.Excellent,
|
45
|
+
value: weight,
|
46
|
+
context: enums_1.Context.Success
|
47
|
+
});
|
48
|
+
}
|
49
|
+
if (weight >= 9 && weight <= 10) {
|
50
|
+
return new models_1.Item({
|
51
|
+
title: enums_1.Popularity.Exceptional,
|
52
|
+
value: weight,
|
53
|
+
context: enums_1.Context.Danger
|
54
|
+
});
|
55
|
+
}
|
56
|
+
}
|
57
|
+
exports.getPopularityByWeight = getPopularityByWeight;
|
58
|
+
//# sourceMappingURL=popularity.helper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"popularity.helper.js","sourceRoot":"","sources":["../../src/helpers/popularity.helper.ts"],"names":[],"mappings":";;;AAAA,oCAA+C;AAC/C,sCAAiC;AAEjC,SAAgB,qBAAqB,CAAC,MAAc;IAEnD,IAAI,CAAC,MA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ACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,EAAE,EAAE,CAAC;QACjC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,WAAW;YAC7B,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,MAAM;SACvB,CAAC,CAAC;IACJ,CAAC;AACF,CAAC;AAzDD,sDAyDC"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import { PostType } from "../enums";
|
2
|
+
export declare function getPostIcon(postType: PostType, custom?: boolean): "file-lines" | "microphone" | "circle-play" | "newspaper" | "headphones" | "book-open" | "/assets/icons/content-type-article.svg" | "/assets/icons/content-type-book.svg" | "/assets/icons/content-type-audio.svg" | "/assets/icons/content-type-video.svg" | "/assets/icons/content-type-news.svg" | "/assets/icons/content-type-event.svg";
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.getPostIcon = void 0;
|
4
|
+
const enums_1 = require("../enums");
|
5
|
+
function getPostIcon(postType, custom) {
|
6
|
+
switch (postType) {
|
7
|
+
case enums_1.PostType.Article:
|
8
|
+
return custom ? '/assets/icons/content-type-article.svg' : 'file-lines';
|
9
|
+
case enums_1.PostType.Book:
|
10
|
+
return custom ? '/assets/icons/content-type-book.svg' : 'book-open';
|
11
|
+
case enums_1.PostType.Audio:
|
12
|
+
return custom ? '/assets/icons/content-type-audio.svg' : 'headphones';
|
13
|
+
case enums_1.PostType.Video:
|
14
|
+
return custom ? '/assets/icons/content-type-video.svg' : 'circle-play';
|
15
|
+
case enums_1.PostType.News:
|
16
|
+
return custom ? '/assets/icons/content-type-news.svg' : 'newspaper';
|
17
|
+
case enums_1.PostType.Event:
|
18
|
+
return custom ? '/assets/icons/content-type-event.svg' : 'microphone';
|
19
|
+
}
|
20
|
+
}
|
21
|
+
exports.getPostIcon = getPostIcon;
|
22
|
+
//# sourceMappingURL=post.helper.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"post.helper.js","sourceRoot":"","sources":["../../src/helpers/post.helper.ts"],"names":[],"mappings":";;;AAAA,oCAAoC;AAEpC,SAAgB,WAAW,CAAC,QAAkB,EAAE,MAAgB;IAC/D,QAAQ,QAAQ,EAAE,CAAC;QAClB,KAAK,gBAAQ,CAAC,OAAO;YACpB,OAAO,MAAM,CAAC,CAAC,CAAC,wCAAwC,CAAC,CAAC,CAAA,YAAY,CAAC;QACxE,KAAK,gBAAQ,CAAC,IAAI;YACjB,OAAO,MAAM,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,WAAW,CAAC;QACrE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,YAAY,CAAC;QACvE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,aAAa,CAAC;QACxE,KAAK,gBAAQ,CAAC,IAAI;YACjB,OAAO,MAAM,CAAC,CAAC,CAAC,qCAAqC,CAAC,CAAC,CAAC,WAAW,CAAC;QACrE,KAAK,gBAAQ,CAAC,KAAK;YAClB,OAAO,MAAM,CAAC,CAAC,CAAC,sCAAsC,CAAC,CAAC,CAAC,YAAY,CAAC;IACxE,CAAC;AACF,CAAC;AAfD,kCAeC"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./dtos"), exports);
|
18
18
|
__exportStar(require("./enums"), exports);
|
19
|
+
__exportStar(require("./helpers"), exports);
|
19
20
|
__exportStar(require("./models"), exports);
|
20
21
|
__exportStar(require("./security"), exports);
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B"}
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B;AAC1B,2CAAyB;AACzB,6CAA2B"}
|
package/lib/models/author.d.ts
CHANGED
@@ -8,9 +8,9 @@ export declare class Author {
|
|
8
8
|
biography: string;
|
9
9
|
imageUrl: string;
|
10
10
|
metricPosts: Metric;
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
metricQuestions: Metric;
|
12
|
+
created: Log;
|
13
|
+
updated: Log;
|
14
14
|
constructor(props?: Partial<Author>);
|
15
15
|
static toItemList(data: Author[], key?: 'id' | 'slug'): Item<any>[];
|
16
16
|
}
|
package/lib/models/author.js
CHANGED
@@ -21,9 +21,9 @@ class Author {
|
|
21
21
|
biography;
|
22
22
|
imageUrl;
|
23
23
|
metricPosts;
|
24
|
-
|
25
|
-
|
26
|
-
|
24
|
+
metricQuestions;
|
25
|
+
created;
|
26
|
+
updated;
|
27
27
|
constructor(props) {
|
28
28
|
Object.assign(this, props);
|
29
29
|
}
|
@@ -67,17 +67,17 @@ __decorate([
|
|
67
67
|
__decorate([
|
68
68
|
(0, class_transformer_1.Expose)(),
|
69
69
|
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
70
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('
|
70
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestions', obj?.totalQuestions)),
|
71
71
|
__metadata("design:type", metric_1.Metric)
|
72
|
-
], Author.prototype, "
|
72
|
+
], Author.prototype, "metricQuestions", void 0);
|
73
73
|
__decorate([
|
74
74
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
75
75
|
(0, class_transformer_1.Type)(() => log_1.Log),
|
76
76
|
__metadata("design:type", log_1.Log)
|
77
|
-
], Author.prototype, "
|
77
|
+
], Author.prototype, "created", void 0);
|
78
78
|
__decorate([
|
79
79
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
80
80
|
(0, class_transformer_1.Type)(() => log_1.Log),
|
81
81
|
__metadata("design:type", log_1.Log)
|
82
|
-
], Author.prototype, "
|
82
|
+
], Author.prototype, "updated", void 0);
|
83
83
|
//# sourceMappingURL=author.js.map
|
package/lib/models/author.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/models/author.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAE5B,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;
|
1
|
+
{"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/models/author.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAE5B,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,IAAI,CAAS;IAGb,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAWjB,WAAW,CAAS;IAQpB,eAAe,CAAS;IAMxB,OAAO,CAAM;IAIb,OAAO,CAAM;IAEb,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,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,WAAI,CAAC;YAC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8BACP,SAAG;uCAAC"}
|
package/lib/models/boost.d.ts
CHANGED
@@ -4,11 +4,11 @@ import { Log } from './log';
|
|
4
4
|
export declare class Boost {
|
5
5
|
id: number;
|
6
6
|
title: string;
|
7
|
+
items: Post[];
|
7
8
|
startDate: Date;
|
8
9
|
endDate: Date;
|
9
|
-
items: Post[];
|
10
10
|
metricPosts: Metric;
|
11
|
-
|
12
|
-
|
11
|
+
created: Log;
|
12
|
+
updated: Log;
|
13
13
|
constructor(props?: Partial<Boost>);
|
14
14
|
}
|
package/lib/models/boost.js
CHANGED
@@ -17,12 +17,12 @@ const log_1 = require("./log");
|
|
17
17
|
let Boost = class Boost {
|
18
18
|
id;
|
19
19
|
title;
|
20
|
+
items;
|
20
21
|
startDate;
|
21
22
|
endDate;
|
22
|
-
items;
|
23
23
|
metricPosts;
|
24
|
-
|
25
|
-
|
24
|
+
created;
|
25
|
+
updated;
|
26
26
|
constructor(props) {
|
27
27
|
Object.assign(this, props);
|
28
28
|
}
|
@@ -37,6 +37,11 @@ __decorate([
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
38
38
|
__metadata("design:type", String)
|
39
39
|
], Boost.prototype, "title", void 0);
|
40
|
+
__decorate([
|
41
|
+
(0, class_transformer_1.Expose)(),
|
42
|
+
(0, class_transformer_1.Type)(() => post_1.Post),
|
43
|
+
__metadata("design:type", Array)
|
44
|
+
], Boost.prototype, "items", void 0);
|
40
45
|
__decorate([
|
41
46
|
(0, class_transformer_1.Expose)(),
|
42
47
|
(0, class_transformer_1.Type)(() => Date),
|
@@ -47,26 +52,20 @@ __decorate([
|
|
47
52
|
(0, class_transformer_1.Type)(() => Date),
|
48
53
|
__metadata("design:type", Date)
|
49
54
|
], Boost.prototype, "endDate", void 0);
|
50
|
-
__decorate([
|
51
|
-
(0, class_transformer_1.Expose)(),
|
52
|
-
(0, class_transformer_1.Type)(() => post_1.Post),
|
53
|
-
__metadata("design:type", Array)
|
54
|
-
], Boost.prototype, "items", void 0);
|
55
55
|
__decorate([
|
56
56
|
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
57
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
|
58
57
|
__metadata("design:type", metric_1.Metric)
|
59
58
|
], Boost.prototype, "metricPosts", void 0);
|
60
59
|
__decorate([
|
61
60
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
62
61
|
(0, class_transformer_1.Type)(() => log_1.Log),
|
63
62
|
__metadata("design:type", log_1.Log)
|
64
|
-
], Boost.prototype, "
|
63
|
+
], Boost.prototype, "created", void 0);
|
65
64
|
__decorate([
|
66
65
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
67
66
|
(0, class_transformer_1.Type)(() => log_1.Log),
|
68
67
|
__metadata("design:type", log_1.Log)
|
69
|
-
], Boost.prototype, "
|
68
|
+
], Boost.prototype, "updated", void 0);
|
70
69
|
exports.Boost = Boost = __decorate([
|
71
70
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
72
71
|
__metadata("design:paramtypes", [Object])
|
package/lib/models/boost.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boost.js","sourceRoot":"","sources":["../../src/models/boost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"boost.js","sourceRoot":"","sources":["../../src/models/boost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAGrB,IAAM,KAAK,GAAX,MAAM,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAMd,SAAS,CAAO;IAIhB,OAAO,CAAO;IAKd,WAAW,CAAS;IAMpB,OAAO,CAAM;IAIb,OAAO,CAAM;IAEb,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AA3CY,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;AAKd;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACN,eAAM;0CAAC;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,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;gBAtCD,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CA2CjB"}
|
package/lib/models/brand.d.ts
CHANGED
@@ -3,20 +3,20 @@ import { Publisher } from './publisher';
|
|
3
3
|
import { Link } from './link';
|
4
4
|
export declare class Brand {
|
5
5
|
id: number;
|
6
|
-
|
6
|
+
shortname: string;
|
7
|
+
modules: ModuleType[];
|
8
|
+
contentTypes: PostType[];
|
7
9
|
name: string;
|
8
10
|
slogan: string;
|
9
11
|
url: string;
|
10
12
|
email: string;
|
11
13
|
description: string;
|
12
|
-
language: string;
|
13
14
|
logo: string;
|
14
15
|
status: AccountStatusType;
|
16
|
+
language: string;
|
15
17
|
maintaince: boolean;
|
16
18
|
apiVersion: string;
|
17
19
|
appUpgrade: boolean;
|
18
|
-
modules: ModuleType[];
|
19
|
-
contentTypes: PostType[];
|
20
20
|
settings: BrandSetting[];
|
21
21
|
publishers: Publisher[];
|
22
22
|
constructor(props?: Partial<Brand>);
|
package/lib/models/brand.js
CHANGED
@@ -16,20 +16,20 @@ const publisher_1 = require("./publisher");
|
|
16
16
|
const link_1 = require("./link");
|
17
17
|
class Brand {
|
18
18
|
id;
|
19
|
-
|
19
|
+
shortname;
|
20
|
+
modules;
|
21
|
+
contentTypes;
|
20
22
|
name;
|
21
23
|
slogan;
|
22
24
|
url;
|
23
25
|
email;
|
24
26
|
description;
|
25
|
-
language;
|
26
27
|
logo;
|
27
28
|
status;
|
29
|
+
language;
|
28
30
|
maintaince;
|
29
31
|
apiVersion;
|
30
32
|
appUpgrade;
|
31
|
-
modules;
|
32
|
-
contentTypes;
|
33
33
|
settings;
|
34
34
|
publishers;
|
35
35
|
constructor(props) {
|
@@ -101,7 +101,15 @@ __decorate([
|
|
101
101
|
__decorate([
|
102
102
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
103
103
|
__metadata("design:type", String)
|
104
|
-
], Brand.prototype, "
|
104
|
+
], Brand.prototype, "shortname", void 0);
|
105
|
+
__decorate([
|
106
|
+
(0, class_transformer_1.Expose)(),
|
107
|
+
__metadata("design:type", Array)
|
108
|
+
], Brand.prototype, "modules", void 0);
|
109
|
+
__decorate([
|
110
|
+
(0, class_transformer_1.Expose)(),
|
111
|
+
__metadata("design:type", Array)
|
112
|
+
], Brand.prototype, "contentTypes", void 0);
|
105
113
|
__decorate([
|
106
114
|
(0, class_transformer_1.Expose)(),
|
107
115
|
__metadata("design:type", String)
|
@@ -122,10 +130,6 @@ __decorate([
|
|
122
130
|
(0, class_transformer_1.Expose)(),
|
123
131
|
__metadata("design:type", String)
|
124
132
|
], Brand.prototype, "description", void 0);
|
125
|
-
__decorate([
|
126
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
127
|
-
__metadata("design:type", String)
|
128
|
-
], Brand.prototype, "language", void 0);
|
129
133
|
__decorate([
|
130
134
|
(0, class_transformer_1.Expose)(),
|
131
135
|
__metadata("design:type", String)
|
@@ -134,6 +138,10 @@ __decorate([
|
|
134
138
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
135
139
|
__metadata("design:type", String)
|
136
140
|
], Brand.prototype, "status", void 0);
|
141
|
+
__decorate([
|
142
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
143
|
+
__metadata("design:type", String)
|
144
|
+
], Brand.prototype, "language", void 0);
|
137
145
|
__decorate([
|
138
146
|
(0, class_transformer_1.Expose)(),
|
139
147
|
(0, class_transformer_1.Type)(() => Boolean),
|
@@ -148,14 +156,6 @@ __decorate([
|
|
148
156
|
(0, class_transformer_1.Type)(() => Boolean),
|
149
157
|
__metadata("design:type", Boolean)
|
150
158
|
], Brand.prototype, "appUpgrade", void 0);
|
151
|
-
__decorate([
|
152
|
-
(0, class_transformer_1.Expose)(),
|
153
|
-
__metadata("design:type", Array)
|
154
|
-
], Brand.prototype, "modules", void 0);
|
155
|
-
__decorate([
|
156
|
-
(0, class_transformer_1.Expose)(),
|
157
|
-
__metadata("design:type", Array)
|
158
|
-
], Brand.prototype, "contentTypes", void 0);
|
159
159
|
__decorate([
|
160
160
|
(0, class_transformer_1.Expose)(),
|
161
161
|
(0, class_transformer_1.Type)(() => BrandSetting),
|
package/lib/models/brand.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/models/brand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,oCAAgF;AAChF,2CAAwC;AACxC,iCAA8B;AAE9B,MAAa,KAAK;IAIjB,EAAE,CAAS;
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ADC,IAAA,0BAAM,GAAE;;2CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;2CACK;AAGd;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;iDACV;AAIpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC;8BACX,KAAK;2CAAC"}
|
package/lib/models/category.js
CHANGED
@@ -64,7 +64,6 @@ __decorate([
|
|
64
64
|
__decorate([
|
65
65
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
66
66
|
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
67
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestions', obj?.totalQuestions, ['fas', 'circle-question'])),
|
68
67
|
__metadata("design:type", metric_1.Metric)
|
69
68
|
], Category.prototype, "metricQuestions", void 0);
|
70
69
|
//# sourceMappingURL=category.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAC9B,qCAAkC;AAGlC,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAIb,eAAe,CAAU;IAMzB,eAAe,CAAS;IAExB,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;AAlDD,4BAkDC;AA9CA;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,GAAE;;uCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;sCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;6CACW;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACN;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACK;AAMzB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACF,eAAM;iDAAC"}
|
@@ -6,9 +6,9 @@ export declare class Collection {
|
|
6
6
|
id: number;
|
7
7
|
title: string;
|
8
8
|
items: Post[];
|
9
|
-
publisher: Publisher;
|
10
9
|
metricPosts: Metric;
|
11
|
-
|
12
|
-
|
10
|
+
created: Log;
|
11
|
+
updated: Log;
|
12
|
+
publisher: Publisher;
|
13
13
|
constructor(props?: Partial<Collection>);
|
14
14
|
}
|
package/lib/models/collection.js
CHANGED
@@ -19,10 +19,10 @@ class Collection {
|
|
19
19
|
id;
|
20
20
|
title;
|
21
21
|
items;
|
22
|
-
publisher;
|
23
22
|
metricPosts;
|
24
|
-
|
25
|
-
|
23
|
+
created;
|
24
|
+
updated;
|
25
|
+
publisher;
|
26
26
|
constructor(props) {
|
27
27
|
Object.assign(this, props);
|
28
28
|
}
|
@@ -42,25 +42,24 @@ __decorate([
|
|
42
42
|
(0, class_transformer_1.Type)(() => post_1.Post),
|
43
43
|
__metadata("design:type", Array)
|
44
44
|
], Collection.prototype, "items", void 0);
|
45
|
-
__decorate([
|
46
|
-
(0, class_transformer_1.Expose)(),
|
47
|
-
(0, class_transformer_1.Type)(() => publisher_1.Publisher),
|
48
|
-
__metadata("design:type", publisher_1.Publisher)
|
49
|
-
], Collection.prototype, "publisher", void 0);
|
50
45
|
__decorate([
|
51
46
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
52
47
|
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
53
|
-
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
|
54
48
|
__metadata("design:type", metric_1.Metric)
|
55
49
|
], Collection.prototype, "metricPosts", void 0);
|
56
50
|
__decorate([
|
57
51
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
58
52
|
(0, class_transformer_1.Type)(() => log_1.Log),
|
59
53
|
__metadata("design:type", log_1.Log)
|
60
|
-
], Collection.prototype, "
|
54
|
+
], Collection.prototype, "created", void 0);
|
61
55
|
__decorate([
|
62
56
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
63
57
|
(0, class_transformer_1.Type)(() => log_1.Log),
|
64
58
|
__metadata("design:type", log_1.Log)
|
65
|
-
], Collection.prototype, "
|
59
|
+
], Collection.prototype, "updated", void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, class_transformer_1.Expose)(),
|
62
|
+
(0, class_transformer_1.Type)(() => publisher_1.Publisher),
|
63
|
+
__metadata("design:type", publisher_1.Publisher)
|
64
|
+
], Collection.prototype, "publisher", void 0);
|
66
65
|
//# sourceMappingURL=collection.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAC9B,2CAAwC;AACxC,qCAAkC;AAClC,+BAA4B;AAE5B,MAAa,UAAU;IAItB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAMd,WAAW,CAAS;IAMpB,OAAO,CAAM;IAIb,OAAO,CAAM;IAMb,SAAS,CAAY;IAErB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxCD,gCAwCC;AApCA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;yCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;yCACH;AAMd;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACN,eAAM;+CAAC;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;2CAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;2CAAC;AAMb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;6CAAC"}
|
package/lib/models/feedback.d.ts
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
import { PostType } from '../enums';
|
2
|
-
import { Item } from './item';
|
3
2
|
import { Metric } from './metric';
|
4
3
|
import { Log } from './log';
|
5
4
|
export declare class Feedback {
|
@@ -7,13 +6,13 @@ export declare class Feedback {
|
|
7
6
|
type: PostType;
|
8
7
|
title: string;
|
9
8
|
description: string;
|
10
|
-
items: FeedbackItem[];
|
11
9
|
icon: string;
|
12
10
|
metricQuestions: Metric;
|
13
11
|
metricPosts: Metric;
|
14
12
|
metricUsers: Metric;
|
15
|
-
|
16
|
-
|
13
|
+
created: Log;
|
14
|
+
updated: Log;
|
15
|
+
items: FeedbackItem[];
|
17
16
|
constructor(props?: Partial<Feedback>);
|
18
17
|
}
|
19
18
|
export declare class FeedbackItem {
|
@@ -23,7 +22,6 @@ export declare class FeedbackItem {
|
|
23
22
|
sort: number;
|
24
23
|
readonly: boolean;
|
25
24
|
options: FeedbackOption[];
|
26
|
-
metrics: Item[];
|
27
25
|
constructor(props?: Partial<FeedbackItem>);
|
28
26
|
}
|
29
27
|
export declare class FeedbackOption {
|