@intelact/bright 0.9.76 → 0.9.78
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dtos/boost.dto.d.ts +0 -12
- package/lib/dtos/boost.dto.js +1 -50
- package/lib/dtos/boost.dto.js.map +1 -1
- package/lib/dtos/brand.dto.d.ts +0 -15
- package/lib/dtos/brand.dto.js +1 -46
- package/lib/dtos/brand.dto.js.map +1 -1
- package/lib/dtos/feedback.dto.d.ts +0 -9
- package/lib/dtos/feedback.dto.js +1 -28
- package/lib/dtos/feedback.dto.js.map +1 -1
- package/lib/dtos/general.dto.d.ts +3 -0
- package/lib/dtos/general.dto.js +10 -1
- package/lib/dtos/general.dto.js.map +1 -1
- package/lib/dtos/index.d.ts +0 -4
- package/lib/dtos/index.js +0 -4
- package/lib/dtos/index.js.map +1 -1
- package/lib/dtos/post.dto.d.ts +0 -22
- package/lib/dtos/post.dto.js +1 -65
- package/lib/dtos/post.dto.js.map +1 -1
- package/lib/dtos/promotion.dto.d.ts +0 -8
- package/lib/dtos/promotion.dto.js +1 -37
- package/lib/dtos/promotion.dto.js.map +1 -1
- package/lib/dtos/question.dto.d.ts +0 -19
- package/lib/dtos/question.dto.js +1 -62
- package/lib/dtos/question.dto.js.map +1 -1
- package/lib/dtos/search.dto.d.ts +12 -0
- package/lib/dtos/search.dto.js +72 -0
- package/lib/dtos/search.dto.js.map +1 -0
- package/lib/dtos/survey.dto.d.ts +0 -24
- package/lib/dtos/survey.dto.js +1 -90
- package/lib/dtos/survey.dto.js.map +1 -1
- package/lib/dtos/user.dto.d.ts +0 -3
- package/lib/dtos/user.dto.js +1 -10
- package/lib/dtos/user.dto.js.map +1 -1
- package/lib/enums/asset.enum.js.map +1 -1
- package/lib/enums/index.d.ts +0 -1
- package/lib/enums/index.js +0 -1
- package/lib/enums/index.js.map +1 -1
- package/lib/enums/module.enum.d.ts +0 -19
- package/lib/enums/module.enum.js +1 -21
- package/lib/enums/module.enum.js.map +1 -1
- package/lib/enums/setting.enum.d.ts +2 -2
- package/lib/enums/setting.enum.js +2 -2
- package/lib/enums/tracks.enum.d.ts +13 -2
- package/lib/enums/tracks.enum.js +23 -11
- package/lib/enums/tracks.enum.js.map +1 -1
- 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 +6 -4
- package/lib/models/author.js +22 -18
- package/lib/models/author.js.map +1 -1
- package/lib/models/boost.d.ts +6 -7
- package/lib/models/boost.js +22 -29
- package/lib/models/boost.js.map +1 -1
- package/lib/models/brand.d.ts +6 -4
- package/lib/models/brand.js +38 -18
- package/lib/models/brand.js.map +1 -1
- package/lib/models/category.d.ts +2 -1
- package/lib/models/category.js +6 -5
- package/lib/models/category.js.map +1 -1
- package/lib/models/collection.d.ts +5 -5
- package/lib/models/collection.js +20 -20
- package/lib/models/collection.js.map +1 -1
- package/lib/models/feedback.d.ts +8 -5
- package/lib/models/feedback.js +37 -54
- package/lib/models/feedback.js.map +1 -1
- package/lib/models/index.d.ts +2 -1
- package/lib/models/index.js +2 -1
- package/lib/models/index.js.map +1 -1
- package/lib/models/log.d.ts +11 -0
- package/lib/models/log.js +16 -0
- package/lib/models/log.js.map +1 -0
- package/lib/models/metric.d.ts +20 -0
- package/lib/models/metric.js +186 -0
- package/lib/models/metric.js.map +1 -0
- package/lib/models/post.d.ts +26 -36
- package/lib/models/post.js +238 -358
- package/lib/models/post.js.map +1 -1
- package/lib/models/promotion.d.ts +9 -3
- package/lib/models/promotion.js +40 -8
- package/lib/models/promotion.js.map +1 -1
- package/lib/models/publisher.d.ts +8 -3
- package/lib/models/publisher.js +34 -14
- package/lib/models/publisher.js.map +1 -1
- package/lib/models/question.d.ts +21 -27
- package/lib/models/question.js +95 -162
- package/lib/models/question.js.map +1 -1
- package/lib/models/quote.d.ts +0 -1
- package/lib/models/quote.js +0 -6
- package/lib/models/quote.js.map +1 -1
- package/lib/models/survey.d.ts +15 -9
- package/lib/models/survey.js +70 -54
- package/lib/models/survey.js.map +1 -1
- package/lib/models/topic.d.ts +5 -1
- package/lib/models/topic.js +21 -55
- 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
package/lib/models/author.d.ts
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
import { Item } from "./item";
|
2
|
+
import { Metric } from "./metric";
|
3
|
+
import { Log } from "./log";
|
2
4
|
export declare class Author {
|
3
5
|
id: number;
|
4
6
|
slug: string;
|
5
7
|
name: string;
|
6
8
|
biography: string;
|
7
9
|
imageUrl: string;
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
10
|
+
metricPosts: Metric;
|
11
|
+
metricQuestions: Metric;
|
12
|
+
created: Log;
|
13
|
+
updated: Log;
|
12
14
|
constructor(props?: Partial<Author>);
|
13
15
|
static toItemList(data: Author[], key?: 'id' | 'slug'): Item<any>[];
|
14
16
|
}
|
package/lib/models/author.js
CHANGED
@@ -12,16 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Author = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const item_1 = require("./item");
|
15
|
+
const metric_1 = require("./metric");
|
16
|
+
const log_1 = require("./log");
|
15
17
|
class Author {
|
16
18
|
id;
|
17
19
|
slug;
|
18
20
|
name;
|
19
21
|
biography;
|
20
22
|
imageUrl;
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
23
|
+
metricPosts;
|
24
|
+
metricQuestions;
|
25
|
+
created;
|
26
|
+
updated;
|
25
27
|
constructor(props) {
|
26
28
|
Object.assign(this, props);
|
27
29
|
}
|
@@ -58,22 +60,24 @@ __decorate([
|
|
58
60
|
], Author.prototype, "imageUrl", void 0);
|
59
61
|
__decorate([
|
60
62
|
(0, class_transformer_1.Expose)(),
|
61
|
-
(0, class_transformer_1.Type)(() =>
|
62
|
-
|
63
|
-
|
63
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
64
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
|
65
|
+
__metadata("design:type", metric_1.Metric)
|
66
|
+
], Author.prototype, "metricPosts", void 0);
|
64
67
|
__decorate([
|
65
68
|
(0, class_transformer_1.Expose)(),
|
66
|
-
(0, class_transformer_1.Type)(() =>
|
67
|
-
|
68
|
-
|
69
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
70
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestions', obj?.totalQuestions)),
|
71
|
+
__metadata("design:type", metric_1.Metric)
|
72
|
+
], Author.prototype, "metricQuestions", void 0);
|
69
73
|
__decorate([
|
70
|
-
(0, class_transformer_1.Expose)(),
|
71
|
-
(0, class_transformer_1.Type)(() =>
|
72
|
-
__metadata("design:type",
|
73
|
-
], Author.prototype, "
|
74
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
75
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
76
|
+
__metadata("design:type", log_1.Log)
|
77
|
+
], Author.prototype, "created", void 0);
|
74
78
|
__decorate([
|
75
|
-
(0, class_transformer_1.Expose)(),
|
76
|
-
(0, class_transformer_1.Type)(() =>
|
77
|
-
__metadata("design:type",
|
78
|
-
], Author.prototype, "
|
79
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
80
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
81
|
+
__metadata("design:type", log_1.Log)
|
82
|
+
], Author.prototype, "updated", void 0);
|
79
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,
|
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;YAC7B,KAAK,EAAE,CAAC,CAAC,IAAI;YACb,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AAlED,wBAkEC;AA9DA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,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;IAPC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,eAAM,CAAC,KAAK,CACnC,YAAY,EACZ,GAAG,EAAE,UAAU,EACf,CAAC,KAAK,EAAE,WAAW,CAAC,CACpB,CAAC;8BACW,eAAM;2CAAC;AAQpB;IANC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,eAAM,CAAC,KAAK,CACnC,gBAAgB,EAChB,GAAG,EAAE,cAAc,CACnB,CAAC;8BACe,eAAM;+CAAC;AAMxB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;uCAAC;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;uCAAC"}
|
package/lib/models/boost.d.ts
CHANGED
@@ -1,15 +1,14 @@
|
|
1
1
|
import { Post } from './post';
|
2
|
-
import {
|
3
|
-
import {
|
2
|
+
import { Metric } from './metric';
|
3
|
+
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
|
-
|
10
|
-
|
11
|
-
|
12
|
-
createdOn: Date;
|
13
|
-
metrics: Item[];
|
10
|
+
metricPosts: Metric;
|
11
|
+
created: Log;
|
12
|
+
updated: Log;
|
14
13
|
constructor(props?: Partial<Boost>);
|
15
14
|
}
|
package/lib/models/boost.js
CHANGED
@@ -12,18 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Boost = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const post_1 = require("./post");
|
15
|
-
const
|
16
|
-
const
|
15
|
+
const metric_1 = require("./metric");
|
16
|
+
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
|
-
|
23
|
-
|
24
|
-
|
25
|
-
createdOn;
|
26
|
-
metrics;
|
23
|
+
metricPosts;
|
24
|
+
created;
|
25
|
+
updated;
|
27
26
|
constructor(props) {
|
28
27
|
Object.assign(this, props);
|
29
28
|
}
|
@@ -38,6 +37,11 @@ __decorate([
|
|
38
37
|
(0, class_transformer_1.Expose)(),
|
39
38
|
__metadata("design:type", String)
|
40
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);
|
41
45
|
__decorate([
|
42
46
|
(0, class_transformer_1.Expose)(),
|
43
47
|
(0, class_transformer_1.Type)(() => Date),
|
@@ -49,30 +53,19 @@ __decorate([
|
|
49
53
|
__metadata("design:type", Date)
|
50
54
|
], Boost.prototype, "endDate", void 0);
|
51
55
|
__decorate([
|
52
|
-
(0, class_transformer_1.
|
53
|
-
(
|
54
|
-
|
55
|
-
], Boost.prototype, "totalItems", void 0);
|
56
|
-
__decorate([
|
57
|
-
(0, class_transformer_1.Expose)(),
|
58
|
-
(0, class_transformer_1.Type)(() => post_1.Post),
|
59
|
-
__metadata("design:type", Array)
|
60
|
-
], Boost.prototype, "items", void 0);
|
61
|
-
__decorate([
|
62
|
-
(0, class_transformer_1.Expose)(),
|
63
|
-
(0, class_transformer_1.Type)(() => user_1.User),
|
64
|
-
__metadata("design:type", user_1.User)
|
65
|
-
], Boost.prototype, "createdBy", void 0);
|
56
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
57
|
+
__metadata("design:type", metric_1.Metric)
|
58
|
+
], Boost.prototype, "metricPosts", void 0);
|
66
59
|
__decorate([
|
67
|
-
(0, class_transformer_1.Expose)(),
|
68
|
-
(0, class_transformer_1.Type)(() =>
|
69
|
-
__metadata("design:type",
|
70
|
-
], Boost.prototype, "
|
60
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
61
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
62
|
+
__metadata("design:type", log_1.Log)
|
63
|
+
], Boost.prototype, "created", void 0);
|
71
64
|
__decorate([
|
72
|
-
(0, class_transformer_1.Expose)(),
|
73
|
-
(0, class_transformer_1.Type)(() =>
|
74
|
-
__metadata("design:type",
|
75
|
-
], Boost.prototype, "
|
65
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
66
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
67
|
+
__metadata("design:type", log_1.Log)
|
68
|
+
], Boost.prototype, "updated", void 0);
|
76
69
|
exports.Boost = Boost = __decorate([
|
77
70
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
78
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,yDAAiD;AACjD,iCAA8B;AAC9B,
|
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,CA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import { Publisher } from './publisher';
|
|
3
3
|
import { Link } from './link';
|
4
4
|
export declare class Brand {
|
5
5
|
id: number;
|
6
|
+
shortname: string;
|
7
|
+
modules: ModuleType[];
|
8
|
+
contentTypes: PostType[];
|
6
9
|
name: string;
|
7
|
-
title: 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>);
|
23
23
|
getMobileStoreLinks(): Link[];
|
24
24
|
getSocialLinks(): Link[];
|
25
25
|
getLegalLinks(): Link[];
|
26
|
+
getExternImageProviders(): string[];
|
27
|
+
getExternVideoProviders(): string[];
|
26
28
|
}
|
27
29
|
export declare class BrandSetting {
|
28
30
|
id: number;
|
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
|
+
shortname;
|
20
|
+
modules;
|
21
|
+
contentTypes;
|
19
22
|
name;
|
20
|
-
title;
|
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) {
|
@@ -83,6 +83,14 @@ class Brand {
|
|
83
83
|
url: i.value.replaceAll(this.url, '')
|
84
84
|
})));
|
85
85
|
}
|
86
|
+
getExternImageProviders() {
|
87
|
+
const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'extern-images');
|
88
|
+
return setting?.value?.length > 0 ? setting.value.split(',') : [];
|
89
|
+
}
|
90
|
+
getExternVideoProviders() {
|
91
|
+
const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'extern-videos');
|
92
|
+
return setting?.value?.length > 0 ? setting.value.split(',') : [];
|
93
|
+
}
|
86
94
|
}
|
87
95
|
exports.Brand = Brand;
|
88
96
|
__decorate([
|
@@ -93,11 +101,19 @@ __decorate([
|
|
93
101
|
__decorate([
|
94
102
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
95
103
|
__metadata("design:type", String)
|
96
|
-
], 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);
|
97
113
|
__decorate([
|
98
114
|
(0, class_transformer_1.Expose)(),
|
99
115
|
__metadata("design:type", String)
|
100
|
-
], Brand.prototype, "
|
116
|
+
], Brand.prototype, "name", void 0);
|
101
117
|
__decorate([
|
102
118
|
(0, class_transformer_1.Expose)(),
|
103
119
|
__metadata("design:type", String)
|
@@ -114,10 +130,6 @@ __decorate([
|
|
114
130
|
(0, class_transformer_1.Expose)(),
|
115
131
|
__metadata("design:type", String)
|
116
132
|
], Brand.prototype, "description", void 0);
|
117
|
-
__decorate([
|
118
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
119
|
-
__metadata("design:type", String)
|
120
|
-
], Brand.prototype, "language", void 0);
|
121
133
|
__decorate([
|
122
134
|
(0, class_transformer_1.Expose)(),
|
123
135
|
__metadata("design:type", String)
|
@@ -126,6 +138,10 @@ __decorate([
|
|
126
138
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
127
139
|
__metadata("design:type", String)
|
128
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);
|
129
145
|
__decorate([
|
130
146
|
(0, class_transformer_1.Expose)(),
|
131
147
|
(0, class_transformer_1.Type)(() => Boolean),
|
@@ -140,14 +156,6 @@ __decorate([
|
|
140
156
|
(0, class_transformer_1.Type)(() => Boolean),
|
141
157
|
__metadata("design:type", Boolean)
|
142
158
|
], Brand.prototype, "appUpgrade", void 0);
|
143
|
-
__decorate([
|
144
|
-
(0, class_transformer_1.Expose)(),
|
145
|
-
__metadata("design:type", Array)
|
146
|
-
], Brand.prototype, "modules", void 0);
|
147
|
-
__decorate([
|
148
|
-
(0, class_transformer_1.Expose)(),
|
149
|
-
__metadata("design:type", Array)
|
150
|
-
], Brand.prototype, "contentTypes", void 0);
|
151
159
|
__decorate([
|
152
160
|
(0, class_transformer_1.Expose)(),
|
153
161
|
(0, class_transformer_1.Type)(() => BrandSetting),
|
@@ -176,6 +184,18 @@ __decorate([
|
|
176
184
|
__metadata("design:paramtypes", []),
|
177
185
|
__metadata("design:returntype", Array)
|
178
186
|
], Brand.prototype, "getLegalLinks", null);
|
187
|
+
__decorate([
|
188
|
+
(0, class_transformer_1.Expose)(),
|
189
|
+
__metadata("design:type", Function),
|
190
|
+
__metadata("design:paramtypes", []),
|
191
|
+
__metadata("design:returntype", Array)
|
192
|
+
], Brand.prototype, "getExternImageProviders", null);
|
193
|
+
__decorate([
|
194
|
+
(0, class_transformer_1.Expose)(),
|
195
|
+
__metadata("design:type", Function),
|
196
|
+
__metadata("design:paramtypes", []),
|
197
|
+
__metadata("design:returntype", Array)
|
198
|
+
], Brand.prototype, "getExternVideoProviders", null);
|
179
199
|
class BrandSetting {
|
180
200
|
id;
|
181
201
|
scope;
|
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;
|
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;IAWX,SAAS,CAAS;IAMlB,OAAO,CAAe;IAMtB,YAAY,CAAa;IAKzB,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,GAAG,CAAS;IAMZ,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAKb,MAAM,CAAoB;IAG1B,QAAQ,CAAS;IAIjB,UAAU,CAAU;IAGpB,UAAU,CAAS;IAInB,UAAU,CAAU;IAMpB,QAAQ,CAAiB;IAIzB,UAAU,CAAc;IAExB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IASD,mBAAmB;QAElB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,OAAO;QACR,CAAC;QAMD,MAAM,GAAG,GAA+B;YACvC,mBAAmB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;YAC3C,oBAAoB,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC;SAC1C,CAAC;QAEF,OAAO,IAAI,CAAC,QAAQ;aAClB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACxB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACT,IAAI,WAAI,CAAC;YACR,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AAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA3BD,oCA2BC;AAxBA;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;wCACnB;AAGX;IADC,IAAA,0BAAM,GAAE;;2CACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;0CACI;AAGb;IADC,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.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Item } from "./item";
|
2
|
+
import { Metric } from "./metric";
|
2
3
|
export declare class Category {
|
3
4
|
id: number;
|
4
5
|
title: string;
|
@@ -6,7 +7,7 @@ export declare class Category {
|
|
6
7
|
description: string;
|
7
8
|
sort: number;
|
8
9
|
questionEnabled: boolean;
|
9
|
-
|
10
|
+
metricQuestions: Metric;
|
10
11
|
constructor(props?: Partial<Category>);
|
11
12
|
static toItemList(data: Category[], key?: 'id' | 'hash'): Item<any>[];
|
12
13
|
}
|
package/lib/models/category.js
CHANGED
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Category = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const item_1 = require("./item");
|
15
|
+
const metric_1 = require("./metric");
|
15
16
|
class Category {
|
16
17
|
id;
|
17
18
|
title;
|
@@ -19,7 +20,7 @@ class Category {
|
|
19
20
|
description;
|
20
21
|
sort;
|
21
22
|
questionEnabled;
|
22
|
-
|
23
|
+
metricQuestions;
|
23
24
|
constructor(props) {
|
24
25
|
Object.assign(this, props);
|
25
26
|
}
|
@@ -61,8 +62,8 @@ __decorate([
|
|
61
62
|
__metadata("design:type", Boolean)
|
62
63
|
], Category.prototype, "questionEnabled", void 0);
|
63
64
|
__decorate([
|
64
|
-
(0, class_transformer_1.Expose)(),
|
65
|
-
(0, class_transformer_1.Type)(() =>
|
66
|
-
__metadata("design:type",
|
67
|
-
], Category.prototype, "
|
65
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
66
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
67
|
+
__metadata("design:type", metric_1.Metric)
|
68
|
+
], Category.prototype, "metricQuestions", void 0);
|
68
69
|
//# sourceMappingURL=category.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;
|
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"}
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { Post } from './post';
|
2
2
|
import { Publisher } from './publisher';
|
3
|
-
import {
|
4
|
-
import {
|
3
|
+
import { Metric } from './metric';
|
4
|
+
import { Log } from './log';
|
5
5
|
export declare class Collection {
|
6
6
|
id: number;
|
7
7
|
title: string;
|
8
8
|
items: Post[];
|
9
|
+
metricPosts: Metric;
|
10
|
+
created: Log;
|
11
|
+
updated: Log;
|
9
12
|
publisher: Publisher;
|
10
|
-
createdBy: User;
|
11
|
-
createdOn: Date;
|
12
|
-
metrics: Item[];
|
13
13
|
constructor(props?: Partial<Collection>);
|
14
14
|
}
|
package/lib/models/collection.js
CHANGED
@@ -13,16 +13,16 @@ exports.Collection = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const post_1 = require("./post");
|
15
15
|
const publisher_1 = require("./publisher");
|
16
|
-
const
|
17
|
-
const
|
16
|
+
const metric_1 = require("./metric");
|
17
|
+
const log_1 = require("./log");
|
18
18
|
class Collection {
|
19
19
|
id;
|
20
20
|
title;
|
21
21
|
items;
|
22
|
+
metricPosts;
|
23
|
+
created;
|
24
|
+
updated;
|
22
25
|
publisher;
|
23
|
-
createdBy;
|
24
|
-
createdOn;
|
25
|
-
metrics;
|
26
26
|
constructor(props) {
|
27
27
|
Object.assign(this, props);
|
28
28
|
}
|
@@ -43,23 +43,23 @@ __decorate([
|
|
43
43
|
__metadata("design:type", Array)
|
44
44
|
], Collection.prototype, "items", void 0);
|
45
45
|
__decorate([
|
46
|
-
(0, class_transformer_1.Expose)(),
|
47
|
-
(0, class_transformer_1.Type)(() =>
|
48
|
-
__metadata("design:type",
|
49
|
-
], Collection.prototype, "
|
46
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
47
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
48
|
+
__metadata("design:type", metric_1.Metric)
|
49
|
+
], Collection.prototype, "metricPosts", void 0);
|
50
50
|
__decorate([
|
51
|
-
(0, class_transformer_1.Expose)(),
|
52
|
-
(0, class_transformer_1.Type)(() =>
|
53
|
-
__metadata("design:type",
|
54
|
-
], Collection.prototype, "
|
51
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
52
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
53
|
+
__metadata("design:type", log_1.Log)
|
54
|
+
], Collection.prototype, "created", void 0);
|
55
55
|
__decorate([
|
56
|
-
(0, class_transformer_1.Expose)(),
|
57
|
-
(0, class_transformer_1.Type)(() =>
|
58
|
-
__metadata("design:type",
|
59
|
-
], Collection.prototype, "
|
56
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
57
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
58
|
+
__metadata("design:type", log_1.Log)
|
59
|
+
], Collection.prototype, "updated", void 0);
|
60
60
|
__decorate([
|
61
61
|
(0, class_transformer_1.Expose)(),
|
62
|
-
(0, class_transformer_1.Type)(() =>
|
63
|
-
__metadata("design:type",
|
64
|
-
], Collection.prototype, "
|
62
|
+
(0, class_transformer_1.Type)(() => publisher_1.Publisher),
|
63
|
+
__metadata("design:type", publisher_1.Publisher)
|
64
|
+
], Collection.prototype, "publisher", void 0);
|
65
65
|
//# sourceMappingURL=collection.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAC9B,2CAAwC;AACxC,
|
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,15 +1,19 @@
|
|
1
1
|
import { PostType } from '../enums';
|
2
|
-
import {
|
2
|
+
import { Metric } from './metric';
|
3
|
+
import { Log } from './log';
|
3
4
|
export declare class Feedback {
|
4
5
|
id: number;
|
5
6
|
type: PostType;
|
6
7
|
title: string;
|
7
8
|
description: string;
|
8
|
-
items: FeedbackItem[];
|
9
9
|
icon: string;
|
10
|
-
|
10
|
+
metricQuestions: Metric;
|
11
|
+
metricPosts: Metric;
|
12
|
+
metricUsers: Metric;
|
13
|
+
created: Log;
|
14
|
+
updated: Log;
|
15
|
+
items: FeedbackItem[];
|
11
16
|
constructor(props?: Partial<Feedback>);
|
12
|
-
updateMetrics(): void;
|
13
17
|
}
|
14
18
|
export declare class FeedbackItem {
|
15
19
|
id: number;
|
@@ -18,7 +22,6 @@ export declare class FeedbackItem {
|
|
18
22
|
sort: number;
|
19
23
|
readonly: boolean;
|
20
24
|
options: FeedbackOption[];
|
21
|
-
metrics: Item[];
|
22
25
|
constructor(props?: Partial<FeedbackItem>);
|
23
26
|
}
|
24
27
|
export declare class FeedbackOption {
|