@intelact/bright 0.9.87 → 0.9.89
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/auth/sign.dto.d.ts +1 -1
- package/lib/auth/sign.dto.js.map +1 -1
- package/lib/author/author.model.d.ts +3 -3
- package/lib/author/author.model.js +9 -9
- package/lib/author/author.model.js.map +1 -1
- package/lib/boost/boost.model.d.ts +3 -3
- package/lib/boost/boost.model.js +9 -9
- package/lib/boost/boost.model.js.map +1 -1
- package/lib/brand/brand.model.d.ts +5 -5
- package/lib/brand/brand.model.js +7 -7
- package/lib/brand/brand.model.js.map +1 -1
- package/lib/category/category.model.d.ts +3 -3
- package/lib/category/category.model.js +9 -9
- package/lib/category/category.model.js.map +1 -1
- package/lib/collection/collection.model.d.ts +4 -4
- package/lib/collection/collection.model.js +12 -12
- package/lib/collection/collection.model.js.map +1 -1
- package/lib/common/bookmark.dto.d.ts +1 -1
- package/lib/common/bookmark.dto.js +2 -2
- package/lib/common/bookmark.dto.js.map +1 -1
- package/lib/common/browse.dto.d.ts +1 -1
- package/lib/common/browse.dto.js +2 -2
- package/lib/common/browse.dto.js.map +1 -1
- package/lib/common/search.dto.d.ts +1 -1
- package/lib/common/search.dto.js +2 -2
- package/lib/common/search.dto.js.map +1 -1
- package/lib/feedback/feedback-item.model.d.ts +1 -1
- package/lib/feedback/feedback-item.model.js +5 -5
- package/lib/feedback/feedback-item.model.js.map +1 -1
- package/lib/feedback/feedback.dto.d.ts +1 -1
- package/lib/feedback/feedback.dto.js +2 -2
- package/lib/feedback/feedback.dto.js.map +1 -1
- package/lib/feedback/feedback.model.d.ts +3 -3
- package/lib/feedback/feedback.model.js +10 -9
- package/lib/feedback/feedback.model.js.map +1 -1
- package/lib/item/item.model.d.ts +1 -1
- package/lib/link/link.model.d.ts +2 -1
- package/lib/link/link.model.js.map +1 -1
- package/lib/log/log.model.d.ts +1 -1
- package/lib/metric/metric.model.d.ts +1 -1
- package/lib/metric/metric.model.js +37 -37
- package/lib/metric/metric.model.js.map +1 -1
- package/lib/popularity/popularity.model.d.ts +1 -1
- package/lib/popularity/popularity.model.js +8 -8
- package/lib/popularity/popularity.model.js.map +1 -1
- package/lib/post/post.dto.d.ts +2 -1
- package/lib/post/post.dto.js +6 -5
- package/lib/post/post.dto.js.map +1 -1
- package/lib/post/post.model.d.ts +9 -9
- package/lib/post/post.model.js +37 -37
- package/lib/post/post.model.js.map +1 -1
- package/lib/promotion/promotion.model.d.ts +4 -3
- package/lib/promotion/promotion.model.js +13 -12
- package/lib/promotion/promotion.model.js.map +1 -1
- package/lib/publisher/publisher.dto.d.ts +1 -1
- package/lib/publisher/publisher.dto.js +3 -3
- package/lib/publisher/publisher.dto.js.map +1 -1
- package/lib/publisher/publisher.model.d.ts +4 -4
- package/lib/publisher/publisher.model.js +15 -15
- package/lib/publisher/publisher.model.js.map +1 -1
- package/lib/question/comment.model.d.ts +3 -3
- package/lib/question/comment.model.js +13 -13
- package/lib/question/comment.model.js.map +1 -1
- package/lib/question/question.model.d.ts +4 -4
- package/lib/question/question.model.js +18 -18
- package/lib/question/question.model.js.map +1 -1
- package/lib/quote/quote.model.d.ts +2 -0
- package/lib/quote/quote.model.js +7 -0
- package/lib/quote/quote.model.js.map +1 -1
- package/lib/social/social-user.dto.d.ts +1 -1
- package/lib/social/social.provider.d.ts +0 -1
- package/lib/social/social.provider.js +0 -1
- package/lib/social/social.provider.js.map +1 -1
- package/lib/survey/index.d.ts +0 -1
- package/lib/survey/index.js +0 -1
- package/lib/survey/index.js.map +1 -1
- package/lib/survey/survey-item.model.d.ts +1 -1
- package/lib/survey/survey-item.model.js +5 -5
- package/lib/survey/survey-item.model.js.map +1 -1
- package/lib/survey/survey.model.d.ts +4 -3
- package/lib/survey/survey.model.js +13 -12
- package/lib/survey/survey.model.js.map +1 -1
- package/lib/topic/topic.model.d.ts +4 -4
- package/lib/topic/topic.model.js +13 -13
- package/lib/topic/topic.model.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/user/user.dto.d.ts +1 -1
- package/lib/user/user.dto.js +3 -3
- package/lib/user/user.dto.js.map +1 -1
- package/lib/user/user.model.d.ts +8 -6
- package/lib/user/user.model.js +21 -18
- package/lib/user/user.model.js.map +1 -1
- package/package.json +1 -1
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.Question = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
-
const
|
15
|
-
const
|
16
|
-
const
|
17
|
-
const
|
14
|
+
const user_model_1 = require("../user/user.model");
|
15
|
+
const category_model_1 = require("../category/category.model");
|
16
|
+
const status_type_1 = require("../common/status.type");
|
17
|
+
const metric_model_1 = require("../metric/metric.model");
|
18
18
|
const comment_model_1 = require("./comment.model");
|
19
19
|
class Question {
|
20
20
|
id;
|
@@ -97,13 +97,13 @@ __decorate([
|
|
97
97
|
], Question.prototype, "myQuestion", void 0);
|
98
98
|
__decorate([
|
99
99
|
(0, class_transformer_1.Expose)(),
|
100
|
-
(0, class_transformer_1.Type)(() =>
|
100
|
+
(0, class_transformer_1.Type)(() => metric_model_1.Metric),
|
101
101
|
__metadata("design:type", Array)
|
102
102
|
], Question.prototype, "metrics", void 0);
|
103
103
|
__decorate([
|
104
104
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
105
|
-
(0, class_transformer_1.Type)(() =>
|
106
|
-
__metadata("design:type",
|
105
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
106
|
+
__metadata("design:type", user_model_1.User)
|
107
107
|
], Question.prototype, "createdBy", void 0);
|
108
108
|
__decorate([
|
109
109
|
(0, class_transformer_1.Expose)(),
|
@@ -112,8 +112,8 @@ __decorate([
|
|
112
112
|
], Question.prototype, "createdOn", void 0);
|
113
113
|
__decorate([
|
114
114
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
115
|
-
(0, class_transformer_1.Type)(() =>
|
116
|
-
__metadata("design:type",
|
115
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
116
|
+
__metadata("design:type", user_model_1.User)
|
117
117
|
], Question.prototype, "updatedBy", void 0);
|
118
118
|
__decorate([
|
119
119
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
@@ -122,8 +122,8 @@ __decorate([
|
|
122
122
|
], Question.prototype, "updatedOn", void 0);
|
123
123
|
__decorate([
|
124
124
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
125
|
-
(0, class_transformer_1.Type)(() =>
|
126
|
-
__metadata("design:type",
|
125
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
126
|
+
__metadata("design:type", user_model_1.User)
|
127
127
|
], Question.prototype, "statusChangedBy", void 0);
|
128
128
|
__decorate([
|
129
129
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
@@ -132,8 +132,8 @@ __decorate([
|
|
132
132
|
], Question.prototype, "statusChangedOn", void 0);
|
133
133
|
__decorate([
|
134
134
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
135
|
-
(0, class_transformer_1.Type)(() =>
|
136
|
-
__metadata("design:type",
|
135
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
136
|
+
__metadata("design:type", user_model_1.User)
|
137
137
|
], Question.prototype, "publishedBy", void 0);
|
138
138
|
__decorate([
|
139
139
|
(0, class_transformer_1.Expose)(),
|
@@ -142,8 +142,8 @@ __decorate([
|
|
142
142
|
], Question.prototype, "publishedOn", void 0);
|
143
143
|
__decorate([
|
144
144
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
145
|
-
(0, class_transformer_1.Type)(() =>
|
146
|
-
__metadata("design:type",
|
145
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
146
|
+
__metadata("design:type", user_model_1.User)
|
147
147
|
], Question.prototype, "attentionBy", void 0);
|
148
148
|
__decorate([
|
149
149
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
@@ -152,8 +152,8 @@ __decorate([
|
|
152
152
|
], Question.prototype, "attentionOn", void 0);
|
153
153
|
__decorate([
|
154
154
|
(0, class_transformer_1.Expose)(),
|
155
|
-
(0, class_transformer_1.Type)(() =>
|
156
|
-
__metadata("design:type",
|
155
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
156
|
+
__metadata("design:type", user_model_1.User)
|
157
157
|
], Question.prototype, "user", void 0);
|
158
158
|
__decorate([
|
159
159
|
(0, class_transformer_1.Expose)(),
|
@@ -162,7 +162,7 @@ __decorate([
|
|
162
162
|
], Question.prototype, "comments", void 0);
|
163
163
|
__decorate([
|
164
164
|
(0, class_transformer_1.Expose)(),
|
165
|
-
(0, class_transformer_1.Type)(() =>
|
165
|
+
(0, class_transformer_1.Type)(() => category_model_1.Category),
|
166
166
|
__metadata("design:type", Array)
|
167
167
|
], Question.prototype, "categories", void 0);
|
168
168
|
//# sourceMappingURL=question.model.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"question.model.js","sourceRoot":"","sources":["../../src/question/question.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"question.model.js","sourceRoot":"","sources":["../../src/question/question.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA0C;AAC1C,+DAAsD;AACtD,uDAAmD;AACnD,yDAAgD;AAChD,mDAAkD;AAGlD,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,KAAK,CAAS;IAGd,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAKd,MAAM,CAAa;IAInB,OAAO,CAAU;IAIjB,MAAM,CAAU;IAIhB,UAAU,CAAU;IAcpB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,eAAe,CAAO;IAItB,eAAe,CAAO;IAItB,WAAW,CAAO;IAIlB,WAAW,CAAO;IAIlB,W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AG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;6CAAC;AAMlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACX,iBAAI;sCAAC;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+BAAe,CAAC;;0CACA;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;;4CACE"}
|
package/lib/quote/quote.model.js
CHANGED
@@ -11,9 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.Quote = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
+
const post_model_1 = require("../post/post.model");
|
14
15
|
class Quote {
|
15
16
|
id;
|
16
17
|
imageUrl;
|
18
|
+
post;
|
17
19
|
constructor(props) {
|
18
20
|
Object.assign(this, props);
|
19
21
|
}
|
@@ -28,4 +30,9 @@ __decorate([
|
|
28
30
|
(0, class_transformer_1.Expose)(),
|
29
31
|
__metadata("design:type", String)
|
30
32
|
], Quote.prototype, "imageUrl", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, class_transformer_1.Expose)(),
|
35
|
+
(0, class_transformer_1.Type)(() => post_model_1.Post),
|
36
|
+
__metadata("design:type", post_model_1.Post)
|
37
|
+
], Quote.prototype, "post", void 0);
|
31
38
|
//# sourceMappingURL=quote.model.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote.model.js","sourceRoot":"","sources":["../../src/quote/quote.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;
|
1
|
+
{"version":3,"file":"quote.model.js","sourceRoot":"","sources":["../../src/quote/quote.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA0C;AAG1C,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAIjB,IAAI,CAAO;IAEX,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,sBAgBC;AAZA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACX,iBAAI;mCAAC"}
|
@@ -6,7 +6,6 @@ var SocialLoginProvider;
|
|
6
6
|
SocialLoginProvider["Google"] = "GOOGLE";
|
7
7
|
SocialLoginProvider["Twitter"] = "TWITTER";
|
8
8
|
SocialLoginProvider["Facebook"] = "FACEBOOK";
|
9
|
-
SocialLoginProvider["Linkedin"] = "LINKEDIN";
|
10
9
|
SocialLoginProvider["Apple"] = "APPLE";
|
11
10
|
})(SocialLoginProvider || (exports.SocialLoginProvider = SocialLoginProvider = {}));
|
12
11
|
//# sourceMappingURL=social.provider.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"social.provider.js","sourceRoot":"","sources":["../../src/social/social.provider.ts"],"names":[],"mappings":";;;AAIA,IAAY,
|
1
|
+
{"version":3,"file":"social.provider.js","sourceRoot":"","sources":["../../src/social/social.provider.ts"],"names":[],"mappings":";;;AAIA,IAAY,mBAqBX;AArBD,WAAY,mBAAmB;IAK9B,wCAAiB,CAAA;IAKjB,0CAAmB,CAAA;IAKnB,4CAAqB,CAAA;IAKrB,sCAAe,CAAA;AAChB,CAAC,EArBW,mBAAmB,mCAAnB,mBAAmB,QAqB9B"}
|
package/lib/survey/index.d.ts
CHANGED
package/lib/survey/index.js
CHANGED
@@ -17,6 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./survey-item.model"), exports);
|
18
18
|
__exportStar(require("./survey-option.model"), exports);
|
19
19
|
__exportStar(require("./survey.dto"), exports);
|
20
|
-
__exportStar(require("./survey.event"), exports);
|
21
20
|
__exportStar(require("./survey.model"), exports);
|
22
21
|
//# sourceMappingURL=index.js.map
|
package/lib/survey/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/survey/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,wDAAsC;AACtC,+CAA6B;AAC7B,iDAA+B
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/survey/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,wDAAsC;AACtC,+CAA6B;AAC7B,iDAA+B"}
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.SurveyItem = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
-
const
|
14
|
+
const user_model_1 = require("../user/user.model");
|
15
15
|
const survey_model_1 = require("./survey.model");
|
16
16
|
const survey_option_model_1 = require("./survey-option.model");
|
17
17
|
class SurveyItem {
|
@@ -67,8 +67,8 @@ __decorate([
|
|
67
67
|
], SurveyItem.prototype, "options", void 0);
|
68
68
|
__decorate([
|
69
69
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
70
|
-
(0, class_transformer_1.Type)(() =>
|
71
|
-
__metadata("design:type",
|
70
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
71
|
+
__metadata("design:type", user_model_1.User)
|
72
72
|
], SurveyItem.prototype, "createdBy", void 0);
|
73
73
|
__decorate([
|
74
74
|
(0, class_transformer_1.Expose)(),
|
@@ -77,8 +77,8 @@ __decorate([
|
|
77
77
|
], SurveyItem.prototype, "createdOn", void 0);
|
78
78
|
__decorate([
|
79
79
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
80
|
-
(0, class_transformer_1.Type)(() =>
|
81
|
-
__metadata("design:type",
|
80
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
81
|
+
__metadata("design:type", user_model_1.User)
|
82
82
|
], SurveyItem.prototype, "updatedBy", void 0);
|
83
83
|
__decorate([
|
84
84
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"survey-item.model.js","sourceRoot":"","sources":["../../src/survey/survey-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,
|
1
|
+
{"version":3,"file":"survey-item.model.js","sourceRoot":"","sources":["../../src/survey/survey-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA0C;AAC1C,iDAAwC;AACxC,+DAAqD;AAGrD,MAAa,UAAU;IAItB,EAAE,CAAS;IAKX,QAAQ,CAAS;IAMjB,QAAQ,CAAU;IAIlB,QAAQ,CAAU;IAIlB,IAAI,CAAS;IAMb,MAAM,CAAS;IAIf,OAAO,CAAiB;IAMxB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAEhB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxDD,gCAwDC;AApDA;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;;4CACQ;AAMjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;4CACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;4CACF;AAIlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACN;AAMb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAM,CAAC;8BACX,qBAAM;0CAAC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAY,CAAC;;2CACD;AAMxB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;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"}
|
@@ -1,6 +1,7 @@
|
|
1
|
-
import { StatusType
|
2
|
-
import {
|
3
|
-
import {
|
1
|
+
import { StatusType } from '../common/status.type';
|
2
|
+
import { StatusLabel } from '../common/status.label';
|
3
|
+
import { Metric } from '../metric/metric.model';
|
4
|
+
import { User } from '../user/user.model';
|
4
5
|
import { SurveyItem } from './survey-item.model';
|
5
6
|
export declare class Survey {
|
6
7
|
id: number;
|
@@ -11,9 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.Survey = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
-
const
|
15
|
-
const
|
16
|
-
const
|
14
|
+
const status_type_1 = require("../common/status.type");
|
15
|
+
const status_label_1 = require("../common/status.label");
|
16
|
+
const metric_model_1 = require("../metric/metric.model");
|
17
|
+
const user_model_1 = require("../user/user.model");
|
17
18
|
const survey_item_model_1 = require("./survey-item.model");
|
18
19
|
class Survey {
|
19
20
|
id;
|
@@ -92,13 +93,13 @@ __decorate([
|
|
92
93
|
], Survey.prototype, "isStarted", void 0);
|
93
94
|
__decorate([
|
94
95
|
(0, class_transformer_1.Expose)(),
|
95
|
-
(0, class_transformer_1.Type)(() =>
|
96
|
+
(0, class_transformer_1.Type)(() => metric_model_1.Metric),
|
96
97
|
__metadata("design:type", Array)
|
97
98
|
], Survey.prototype, "metrics", void 0);
|
98
99
|
__decorate([
|
99
100
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
100
|
-
(0, class_transformer_1.Type)(() =>
|
101
|
-
__metadata("design:type",
|
101
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
102
|
+
__metadata("design:type", user_model_1.User)
|
102
103
|
], Survey.prototype, "createdBy", void 0);
|
103
104
|
__decorate([
|
104
105
|
(0, class_transformer_1.Expose)(),
|
@@ -107,8 +108,8 @@ __decorate([
|
|
107
108
|
], Survey.prototype, "createdOn", void 0);
|
108
109
|
__decorate([
|
109
110
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
110
|
-
(0, class_transformer_1.Type)(() =>
|
111
|
-
__metadata("design:type",
|
111
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
112
|
+
__metadata("design:type", user_model_1.User)
|
112
113
|
], Survey.prototype, "updatedBy", void 0);
|
113
114
|
__decorate([
|
114
115
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
@@ -117,8 +118,8 @@ __decorate([
|
|
117
118
|
], Survey.prototype, "updatedOn", void 0);
|
118
119
|
__decorate([
|
119
120
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
120
|
-
(0, class_transformer_1.Type)(() =>
|
121
|
-
__metadata("design:type",
|
121
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
122
|
+
__metadata("design:type", user_model_1.User)
|
122
123
|
], Survey.prototype, "statusChangedBy", void 0);
|
123
124
|
__decorate([
|
124
125
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
@@ -127,8 +128,8 @@ __decorate([
|
|
127
128
|
], Survey.prototype, "statusChangedOn", void 0);
|
128
129
|
__decorate([
|
129
130
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
130
|
-
(0, class_transformer_1.Type)(() =>
|
131
|
-
__metadata("design:type",
|
131
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
132
|
+
__metadata("design:type", user_model_1.User)
|
132
133
|
], Survey.prototype, "publishedBy", void 0);
|
133
134
|
__decorate([
|
134
135
|
(0, class_transformer_1.Expose)(),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"survey.model.js","sourceRoot":"","sources":["../../src/survey/survey.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,
|
1
|
+
{"version":3,"file":"survey.model.js","sourceRoot":"","sources":["../../src/survey/survey.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,uDAAmD;AACnD,yDAAqD;AACrD,yDAAgD;AAChD,mDAA0C;AAC1C,2DAAiD;AAGjD,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,IAAI,CAAS;IAGb,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAIjB,KAAK,CAAe;IAKpB,MAAM,CAAa;IA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I;2CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { Item } from "../item";
|
2
|
-
import { Metric } from "../metric";
|
3
|
-
import { User } from "../user/";
|
4
|
-
import { Popularity } from "../popularity";
|
1
|
+
import { Item } from "../item/item.model";
|
2
|
+
import { Metric } from "../metric/metric.model";
|
3
|
+
import { User } from "../user/user.model";
|
4
|
+
import { Popularity } from "../popularity/popularity.model";
|
5
5
|
export declare class Topic {
|
6
6
|
id: number;
|
7
7
|
title: string;
|
package/lib/topic/topic.model.js
CHANGED
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.Topic = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
-
const
|
15
|
-
const
|
16
|
-
const
|
17
|
-
const
|
14
|
+
const item_model_1 = require("../item/item.model");
|
15
|
+
const metric_model_1 = require("../metric/metric.model");
|
16
|
+
const user_model_1 = require("../user/user.model");
|
17
|
+
const popularity_model_1 = require("../popularity/popularity.model");
|
18
18
|
class Topic {
|
19
19
|
id;
|
20
20
|
title;
|
@@ -34,7 +34,7 @@ class Topic {
|
|
34
34
|
static toItemList(data, key = 'id') {
|
35
35
|
if (!data || data.length === 0)
|
36
36
|
return [];
|
37
|
-
return data.map(i => new
|
37
|
+
return data.map(i => new item_model_1.Item({
|
38
38
|
title: i.title,
|
39
39
|
value: i[key]
|
40
40
|
}));
|
@@ -70,19 +70,19 @@ __decorate([
|
|
70
70
|
], Topic.prototype, "weight", void 0);
|
71
71
|
__decorate([
|
72
72
|
(0, class_transformer_1.Expose)(),
|
73
|
-
(0, class_transformer_1.Type)(() =>
|
74
|
-
(0, class_transformer_1.Transform)(({ obj }) =>
|
75
|
-
__metadata("design:type",
|
73
|
+
(0, class_transformer_1.Type)(() => popularity_model_1.Popularity),
|
74
|
+
(0, class_transformer_1.Transform)(({ obj }) => popularity_model_1.Popularity.get(obj.weight)),
|
75
|
+
__metadata("design:type", popularity_model_1.Popularity)
|
76
76
|
], Topic.prototype, "popularity", void 0);
|
77
77
|
__decorate([
|
78
78
|
(0, class_transformer_1.Expose)(),
|
79
|
-
(0, class_transformer_1.Type)(() =>
|
79
|
+
(0, class_transformer_1.Type)(() => metric_model_1.Metric),
|
80
80
|
__metadata("design:type", Array)
|
81
81
|
], Topic.prototype, "metrics", void 0);
|
82
82
|
__decorate([
|
83
83
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
84
|
-
(0, class_transformer_1.Type)(() =>
|
85
|
-
__metadata("design:type",
|
84
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
85
|
+
__metadata("design:type", user_model_1.User)
|
86
86
|
], Topic.prototype, "createdBy", void 0);
|
87
87
|
__decorate([
|
88
88
|
(0, class_transformer_1.Expose)(),
|
@@ -91,8 +91,8 @@ __decorate([
|
|
91
91
|
], Topic.prototype, "createdOn", void 0);
|
92
92
|
__decorate([
|
93
93
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
94
|
-
(0, class_transformer_1.Type)(() =>
|
95
|
-
__metadata("design:type",
|
94
|
+
(0, class_transformer_1.Type)(() => user_model_1.User),
|
95
|
+
__metadata("design:type", user_model_1.User)
|
96
96
|
], Topic.prototype, "updatedBy", void 0);
|
97
97
|
__decorate([
|
98
98
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"topic.model.js","sourceRoot":"","sources":["../../src/topic/topic.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,
|
1
|
+
{"version":3,"file":"topic.model.js","sourceRoot":"","sources":["../../src/topic/topic.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,mDAA0C;AAC1C,yDAAgD;AAChD,mDAA0C;AAC1C,qEAA4D;AAE5D,MAAa,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAA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