@intelact/bright 0.9.77 → 0.9.79
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/dtos/index.d.ts +2 -1
- package/lib/dtos/index.js +2 -1
- package/lib/dtos/index.js.map +1 -1
- package/lib/dtos/notification.dto.d.ts +4 -0
- package/lib/dtos/notification.dto.js +29 -0
- package/lib/dtos/notification.dto.js.map +1 -0
- package/lib/enums/module.enum.d.ts +22 -0
- package/lib/enums/module.enum.js +24 -1
- package/lib/enums/module.enum.js.map +1 -1
- package/lib/enums/tracks.enum.d.ts +12 -8
- package/lib/enums/tracks.enum.js +16 -12
- 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 +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 +19 -19
- 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 +7 -7
- package/lib/models/log.js +6 -6
- 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/response.d.ts +1 -0
- 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
package/lib/dtos/index.d.ts
CHANGED
@@ -5,7 +5,8 @@ export * from './browse.dto';
|
|
5
5
|
export * from './contact.dto';
|
6
6
|
export * from './feedback.dto';
|
7
7
|
export * from './general.dto';
|
8
|
-
export * from './
|
8
|
+
export * from './search.dto';
|
9
|
+
export * from './notification.dto';
|
9
10
|
export * from './post.dto';
|
10
11
|
export * from './promotion.dto';
|
11
12
|
export * from './publisher.dto';
|
package/lib/dtos/index.js
CHANGED
@@ -21,7 +21,8 @@ __exportStar(require("./browse.dto"), exports);
|
|
21
21
|
__exportStar(require("./contact.dto"), exports);
|
22
22
|
__exportStar(require("./feedback.dto"), exports);
|
23
23
|
__exportStar(require("./general.dto"), exports);
|
24
|
-
__exportStar(require("./
|
24
|
+
__exportStar(require("./search.dto"), exports);
|
25
|
+
__exportStar(require("./notification.dto"), exports);
|
25
26
|
__exportStar(require("./post.dto"), exports);
|
26
27
|
__exportStar(require("./promotion.dto"), exports);
|
27
28
|
__exportStar(require("./publisher.dto"), exports);
|
package/lib/dtos/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,iDAA+B;AAC/B,gDAA8B;AAC9B,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,+CAA6B;AAC7B,gDAA8B;AAC9B,iDAA+B;AAC/B,gDAA8B;AAC9B,+CAA6B;AAC7B,qDAAmC;AACnC,6CAA2B;AAC3B,kDAAgC;AAChC,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,6CAA2B"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
+
};
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
+
};
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
+
exports.NotificationTokenDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class NotificationTokenDto {
|
15
|
+
token;
|
16
|
+
deviceType;
|
17
|
+
}
|
18
|
+
exports.NotificationTokenDto = NotificationTokenDto;
|
19
|
+
__decorate([
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
21
|
+
(0, class_validator_1.IsString)(),
|
22
|
+
__metadata("design:type", String)
|
23
|
+
], NotificationTokenDto.prototype, "token", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsNotEmpty)(),
|
26
|
+
(0, class_validator_1.IsString)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], NotificationTokenDto.prototype, "deviceType", void 0);
|
29
|
+
//# sourceMappingURL=notification.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"notification.dto.js","sourceRoot":"","sources":["../../src/dtos/notification.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;IAIhC,KAAK,CAAQ;IAIb,UAAU,CAAQ;CAClB;AATD,oDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO"}
|
@@ -4,3 +4,25 @@ export declare enum ModuleType {
|
|
4
4
|
Library = "LIBRARY",
|
5
5
|
Question = "QUESTION"
|
6
6
|
}
|
7
|
+
export declare enum ModuleScope {
|
8
|
+
Auth = "auth",
|
9
|
+
Author = "author",
|
10
|
+
Boost = "boost",
|
11
|
+
BrandPublisher = "brand:publisher",
|
12
|
+
BrandTeam = "brand:team",
|
13
|
+
BrandSettings = "brand:settings",
|
14
|
+
Post = "post",
|
15
|
+
PostCollection = "post:colleaction",
|
16
|
+
Feedback = "feedback",
|
17
|
+
Promotion = "Promotion",
|
18
|
+
Publisher = "publisher",
|
19
|
+
PublisherTeam = "publisher:team",
|
20
|
+
Question = "question",
|
21
|
+
QuestionCategory = "question:category",
|
22
|
+
Quote = "quote",
|
23
|
+
Report = "report",
|
24
|
+
Survey = "survey",
|
25
|
+
Topic = "topic",
|
26
|
+
UserAdmin = "user:admin",
|
27
|
+
Other = "other"
|
28
|
+
}
|
package/lib/enums/module.enum.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.ModuleType = void 0;
|
3
|
+
exports.ModuleScope = exports.ModuleType = void 0;
|
4
4
|
var ModuleType;
|
5
5
|
(function (ModuleType) {
|
6
6
|
ModuleType["Home"] = "HOME";
|
@@ -8,4 +8,27 @@ var ModuleType;
|
|
8
8
|
ModuleType["Library"] = "LIBRARY";
|
9
9
|
ModuleType["Question"] = "QUESTION";
|
10
10
|
})(ModuleType || (exports.ModuleType = ModuleType = {}));
|
11
|
+
var ModuleScope;
|
12
|
+
(function (ModuleScope) {
|
13
|
+
ModuleScope["Auth"] = "auth";
|
14
|
+
ModuleScope["Author"] = "author";
|
15
|
+
ModuleScope["Boost"] = "boost";
|
16
|
+
ModuleScope["BrandPublisher"] = "brand:publisher";
|
17
|
+
ModuleScope["BrandTeam"] = "brand:team";
|
18
|
+
ModuleScope["BrandSettings"] = "brand:settings";
|
19
|
+
ModuleScope["Post"] = "post";
|
20
|
+
ModuleScope["PostCollection"] = "post:colleaction";
|
21
|
+
ModuleScope["Feedback"] = "feedback";
|
22
|
+
ModuleScope["Promotion"] = "Promotion";
|
23
|
+
ModuleScope["Publisher"] = "publisher";
|
24
|
+
ModuleScope["PublisherTeam"] = "publisher:team";
|
25
|
+
ModuleScope["Question"] = "question";
|
26
|
+
ModuleScope["QuestionCategory"] = "question:category";
|
27
|
+
ModuleScope["Quote"] = "quote";
|
28
|
+
ModuleScope["Report"] = "report";
|
29
|
+
ModuleScope["Survey"] = "survey";
|
30
|
+
ModuleScope["Topic"] = "topic";
|
31
|
+
ModuleScope["UserAdmin"] = "user:admin";
|
32
|
+
ModuleScope["Other"] = "other";
|
33
|
+
})(ModuleScope || (exports.ModuleScope = ModuleScope = {}));
|
11
34
|
//# sourceMappingURL=module.enum.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"module.enum.js","sourceRoot":"","sources":["../../src/enums/module.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAKb,+BAAiB,CAAA;IAKjB,iCAAmB,CAAA;IAMnB,mCAAqB,CAAA;AACtB,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB"}
|
1
|
+
{"version":3,"file":"module.enum.js","sourceRoot":"","sources":["../../src/enums/module.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAKb,+BAAiB,CAAA;IAKjB,iCAAmB,CAAA;IAMnB,mCAAqB,CAAA;AACtB,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB;AAED,IAAY,WAqBX;AArBD,WAAY,WAAW;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,iDAAkC,CAAA;IAClC,uCAAwB,CAAA;IACxB,+CAAgC,CAAA;IAChC,4BAAa,CAAA;IACb,kDAAmC,CAAA;IACnC,oCAAqB,CAAA;IACrB,sCAAuB,CAAA;IACvB,sCAAuB,CAAA;IACvB,+CAAgC,CAAA;IAChC,oCAAqB,CAAA;IACrB,qDAAsC,CAAA;IACtC,8BAAe,CAAA;IACf,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,uCAAwB,CAAA;IACxB,8BAAe,CAAA;AAChB,CAAC,EArBW,WAAW,2BAAX,WAAW,QAqBtB"}
|
@@ -8,15 +8,19 @@ export declare enum MetricType {
|
|
8
8
|
Feedback = "FEEDBACK",
|
9
9
|
Total = "TOTAL"
|
10
10
|
}
|
11
|
-
export declare enum
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
export declare enum EventType {
|
12
|
+
Create = "CREATE",
|
13
|
+
Update = "UPDATE",
|
14
|
+
Delete = "DELETE",
|
15
15
|
Status = "STATUS",
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
Attention = "
|
16
|
+
Start = "START",
|
17
|
+
Reject = "REJECT",
|
18
|
+
Complete = "COMPLETE",
|
19
|
+
Attention = "ATTENTION",
|
20
|
+
Invite = "INVITE",
|
21
|
+
Activate = "ACTIVATE",
|
22
|
+
Notify = "NOTIFY",
|
23
|
+
Event = "EVENT"
|
20
24
|
}
|
21
25
|
export declare enum SurveyActionType {
|
22
26
|
Start = "START",
|
package/lib/enums/tracks.enum.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AuthActionType = exports.SurveyActionType = exports.
|
3
|
+
exports.AuthActionType = exports.SurveyActionType = exports.EventType = exports.MetricType = void 0;
|
4
4
|
var MetricType;
|
5
5
|
(function (MetricType) {
|
6
6
|
MetricType["Seen"] = "SEEN";
|
@@ -12,17 +12,21 @@ var MetricType;
|
|
12
12
|
MetricType["Feedback"] = "FEEDBACK";
|
13
13
|
MetricType["Total"] = "TOTAL";
|
14
14
|
})(MetricType || (exports.MetricType = MetricType = {}));
|
15
|
-
var
|
16
|
-
(function (
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
15
|
+
var EventType;
|
16
|
+
(function (EventType) {
|
17
|
+
EventType["Create"] = "CREATE";
|
18
|
+
EventType["Update"] = "UPDATE";
|
19
|
+
EventType["Delete"] = "DELETE";
|
20
|
+
EventType["Status"] = "STATUS";
|
21
|
+
EventType["Start"] = "START";
|
22
|
+
EventType["Reject"] = "REJECT";
|
23
|
+
EventType["Complete"] = "COMPLETE";
|
24
|
+
EventType["Attention"] = "ATTENTION";
|
25
|
+
EventType["Invite"] = "INVITE";
|
26
|
+
EventType["Activate"] = "ACTIVATE";
|
27
|
+
EventType["Notify"] = "NOTIFY";
|
28
|
+
EventType["Event"] = "EVENT";
|
29
|
+
})(EventType || (exports.EventType = EventType = {}));
|
26
30
|
var SurveyActionType;
|
27
31
|
(function (SurveyActionType) {
|
28
32
|
SurveyActionType["Start"] = "START";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tracks.enum.js","sourceRoot":"","sources":["../../src/enums/tracks.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAmCX;AAnCD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,mCAAqB,CAAA;IAIrB,6BAAe,CAAA;IAIf,mCAAqB,CAAA;IAIrB,mCAAqB,CAAA;IAKrB,6BAAe,CAAA;AAEhB,CAAC,EAnCW,UAAU,0BAAV,UAAU,QAmCrB;AAED,IAAY,
|
1
|
+
{"version":3,"file":"tracks.enum.js","sourceRoot":"","sources":["../../src/enums/tracks.enum.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAmCX;AAnCD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,mCAAqB,CAAA;IAIrB,6BAAe,CAAA;IAIf,mCAAqB,CAAA;IAIrB,mCAAqB,CAAA;IAKrB,6BAAe,CAAA;AAEhB,CAAC,EAnCW,UAAU,0BAAV,UAAU,QAmCrB;AAED,IAAY,SAaX;AAbD,WAAY,SAAS;IACpB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;IACf,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,oCAAuB,CAAA;IACvB,8BAAiB,CAAA;IACjB,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;AAChB,CAAC,EAbW,SAAS,yBAAT,SAAS,QAapB;AAKD,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAI3B,mCAAe,CAAA;IAKf,2CAAuB,CAAA;IAKvB,qCAAiB,CAAA;AAClB,CAAC,EAfW,gBAAgB,gCAAhB,gBAAgB,QAe3B;AAED,IAAY,cAmCX;AAnCD,WAAY,cAAc;IAIzB,mCAAiB,CAAA;IAKjB,mCAAiB,CAAA;IAKjB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;IAKvB,2CAAyB,CAAA;IAKzB,qCAAmB,CAAA;IAKnB,yCAAuB,CAAA;AACxB,CAAC,EAnCW,cAAc,8BAAd,cAAc,QAmCzB"}
|
@@ -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,MAAM,EAAE,CAAC;QACb,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,CAAC;YACR,OAAO,EAAE,eAAO,CAAC,KAAK;SACtB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACrB,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,IAAI;YACtB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,SAAS;SAC1B,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,IAAI;YACtB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,IAAI;SACrB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,IAAI;YACtB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,OAAO;SACxB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,KAAK;YACvB,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,IAAI;SACrB,CAAC,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;QACpC,OAAO,IAAI,aAAI,CAAS;YACvB,KAAK,EAAE,kBAAU,CAAC,SAAS;YAC3B,KAAK,EAAE,MAAM;YACb,OAAO,EAAE,eAAO,CAAC,OAAO;SACxB,CAAC,CAAC;IACJ,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;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
@@ -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) {
|
@@ -84,11 +84,11 @@ class Brand {
|
|
84
84
|
})));
|
85
85
|
}
|
86
86
|
getExternImageProviders() {
|
87
|
-
const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === '
|
87
|
+
const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'IMAGE_PROVIDERS');
|
88
88
|
return setting?.value?.length > 0 ? setting.value.split(',') : [];
|
89
89
|
}
|
90
90
|
getExternVideoProviders() {
|
91
|
-
const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === '
|
91
|
+
const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'VIDEO_PROVIDERS');
|
92
92
|
return setting?.value?.length > 0 ? setting.value.split(',') : [];
|
93
93
|
}
|
94
94
|
}
|
@@ -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),
|