@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/question.js
CHANGED
@@ -15,43 +15,35 @@ const author_1 = require("./author");
|
|
15
15
|
const user_1 = require("./user");
|
16
16
|
const category_1 = require("./category");
|
17
17
|
const enums_1 = require("../enums");
|
18
|
-
const
|
18
|
+
const metric_1 = require("./metric");
|
19
|
+
const log_1 = require("./log");
|
19
20
|
class Question {
|
20
21
|
id;
|
21
|
-
status;
|
22
22
|
slug;
|
23
23
|
title;
|
24
|
+
question;
|
24
25
|
name;
|
25
26
|
email;
|
26
27
|
phone;
|
27
|
-
|
28
|
+
status;
|
28
29
|
private;
|
29
30
|
closed;
|
30
|
-
totalHits;
|
31
|
-
totalComments;
|
32
|
-
totalItems;
|
33
|
-
totalLikes;
|
34
|
-
totalShares;
|
35
|
-
totalBookmarks;
|
36
|
-
isBookmarked;
|
37
|
-
isLiked;
|
38
|
-
isShared;
|
39
31
|
myQuestion;
|
32
|
+
metricSeen;
|
33
|
+
metricOpens;
|
34
|
+
metricLikes;
|
35
|
+
metricShares;
|
36
|
+
metricBookmarks;
|
37
|
+
metricComments;
|
40
38
|
attention;
|
41
|
-
|
39
|
+
statusChanged;
|
40
|
+
published;
|
41
|
+
created;
|
42
|
+
updated;
|
43
|
+
deleted;
|
42
44
|
user;
|
43
45
|
comments;
|
44
|
-
items;
|
45
46
|
categories;
|
46
|
-
topics;
|
47
|
-
tags;
|
48
|
-
bookmark;
|
49
|
-
like;
|
50
|
-
share;
|
51
|
-
hit;
|
52
|
-
reactions;
|
53
|
-
badge;
|
54
|
-
metrics;
|
55
47
|
constructor(props) {
|
56
48
|
Object.assign(this, props);
|
57
49
|
}
|
@@ -62,10 +54,6 @@ __decorate([
|
|
62
54
|
(0, class_transformer_1.Type)(() => Number),
|
63
55
|
__metadata("design:type", Number)
|
64
56
|
], Question.prototype, "id", void 0);
|
65
|
-
__decorate([
|
66
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
67
|
-
__metadata("design:type", String)
|
68
|
-
], Question.prototype, "status", void 0);
|
69
57
|
__decorate([
|
70
58
|
(0, class_transformer_1.Expose)(),
|
71
59
|
__metadata("design:type", String)
|
@@ -74,6 +62,10 @@ __decorate([
|
|
74
62
|
(0, class_transformer_1.Expose)(),
|
75
63
|
__metadata("design:type", String)
|
76
64
|
], Question.prototype, "title", void 0);
|
65
|
+
__decorate([
|
66
|
+
(0, class_transformer_1.Expose)(),
|
67
|
+
__metadata("design:type", String)
|
68
|
+
], Question.prototype, "question", void 0);
|
77
69
|
__decorate([
|
78
70
|
(0, class_transformer_1.Expose)(),
|
79
71
|
__metadata("design:type", String)
|
@@ -87,9 +79,9 @@ __decorate([
|
|
87
79
|
__metadata("design:type", String)
|
88
80
|
], Question.prototype, "phone", void 0);
|
89
81
|
__decorate([
|
90
|
-
(0, class_transformer_1.Expose)(),
|
82
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
91
83
|
__metadata("design:type", String)
|
92
|
-
], Question.prototype, "
|
84
|
+
], Question.prototype, "status", void 0);
|
93
85
|
__decorate([
|
94
86
|
(0, class_transformer_1.Expose)(),
|
95
87
|
(0, class_transformer_1.Type)(() => Boolean),
|
@@ -102,64 +94,75 @@ __decorate([
|
|
102
94
|
], Question.prototype, "closed", void 0);
|
103
95
|
__decorate([
|
104
96
|
(0, class_transformer_1.Expose)(),
|
105
|
-
(0, class_transformer_1.Type)(() =>
|
106
|
-
__metadata("design:type",
|
107
|
-
], Question.prototype, "
|
97
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
98
|
+
__metadata("design:type", Boolean)
|
99
|
+
], Question.prototype, "myQuestion", void 0);
|
108
100
|
__decorate([
|
109
101
|
(0, class_transformer_1.Expose)(),
|
110
|
-
(0, class_transformer_1.Type)(() =>
|
111
|
-
|
112
|
-
|
102
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
103
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalSeen, obj?.hasSeen)),
|
104
|
+
__metadata("design:type", metric_1.Metric)
|
105
|
+
], Question.prototype, "metricSeen", void 0);
|
113
106
|
__decorate([
|
114
107
|
(0, class_transformer_1.Expose)(),
|
115
|
-
(0, class_transformer_1.Type)(() =>
|
116
|
-
|
117
|
-
|
108
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
109
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalOpens, obj?.hasOpen)),
|
110
|
+
__metadata("design:type", metric_1.Metric)
|
111
|
+
], Question.prototype, "metricOpens", void 0);
|
118
112
|
__decorate([
|
119
113
|
(0, class_transformer_1.Expose)(),
|
120
|
-
(0, class_transformer_1.Type)(() =>
|
121
|
-
|
122
|
-
|
114
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
115
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalLikes, obj?.hasLike)),
|
116
|
+
__metadata("design:type", metric_1.Metric)
|
117
|
+
], Question.prototype, "metricLikes", void 0);
|
123
118
|
__decorate([
|
124
119
|
(0, class_transformer_1.Expose)(),
|
125
|
-
(0, class_transformer_1.Type)(() =>
|
126
|
-
|
127
|
-
|
120
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
121
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalShares, obj?.hasShare)),
|
122
|
+
__metadata("design:type", metric_1.Metric)
|
123
|
+
], Question.prototype, "metricShares", void 0);
|
128
124
|
__decorate([
|
129
125
|
(0, class_transformer_1.Expose)(),
|
130
|
-
(0, class_transformer_1.Type)(() =>
|
131
|
-
|
132
|
-
|
126
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
127
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalBookmarks, obj?.hasBookmark)),
|
128
|
+
__metadata("design:type", metric_1.Metric)
|
129
|
+
], Question.prototype, "metricBookmarks", void 0);
|
133
130
|
__decorate([
|
134
131
|
(0, class_transformer_1.Expose)(),
|
135
|
-
(0, class_transformer_1.Type)(() =>
|
136
|
-
|
137
|
-
|
132
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
133
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.feedback(obj?.totalComments, obj?.hasComment)),
|
134
|
+
__metadata("design:type", metric_1.Metric)
|
135
|
+
], Question.prototype, "metricComments", void 0);
|
138
136
|
__decorate([
|
139
137
|
(0, class_transformer_1.Expose)(),
|
140
|
-
(0, class_transformer_1.Type)(() =>
|
141
|
-
__metadata("design:type",
|
142
|
-
], Question.prototype, "
|
138
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
139
|
+
__metadata("design:type", log_1.Log)
|
140
|
+
], Question.prototype, "attention", void 0);
|
143
141
|
__decorate([
|
144
142
|
(0, class_transformer_1.Expose)(),
|
145
|
-
(0, class_transformer_1.Type)(() =>
|
146
|
-
__metadata("design:type",
|
147
|
-
], Question.prototype, "
|
143
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
144
|
+
__metadata("design:type", log_1.Log)
|
145
|
+
], Question.prototype, "statusChanged", void 0);
|
148
146
|
__decorate([
|
149
147
|
(0, class_transformer_1.Expose)(),
|
150
|
-
(0, class_transformer_1.Type)(() =>
|
151
|
-
__metadata("design:type",
|
152
|
-
], Question.prototype, "
|
148
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
149
|
+
__metadata("design:type", log_1.Log)
|
150
|
+
], Question.prototype, "published", void 0);
|
153
151
|
__decorate([
|
154
|
-
(0, class_transformer_1.Expose)(),
|
155
|
-
(0, class_transformer_1.Type)(() =>
|
156
|
-
__metadata("design:type",
|
157
|
-
], Question.prototype, "
|
152
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
153
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
154
|
+
__metadata("design:type", log_1.Log)
|
155
|
+
], Question.prototype, "created", void 0);
|
158
156
|
__decorate([
|
159
|
-
(0, class_transformer_1.Expose)(),
|
160
|
-
(0, class_transformer_1.Type)(() =>
|
161
|
-
__metadata("design:type",
|
162
|
-
], Question.prototype, "
|
157
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
158
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
159
|
+
__metadata("design:type", log_1.Log)
|
160
|
+
], Question.prototype, "updated", void 0);
|
161
|
+
__decorate([
|
162
|
+
(0, class_transformer_1.Expose)({ groups: ['console'] }),
|
163
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
164
|
+
__metadata("design:type", log_1.Log)
|
165
|
+
], Question.prototype, "deleted", void 0);
|
163
166
|
__decorate([
|
164
167
|
(0, class_transformer_1.Expose)(),
|
165
168
|
(0, class_transformer_1.Type)(() => user_1.User),
|
@@ -170,101 +173,21 @@ __decorate([
|
|
170
173
|
(0, class_transformer_1.Type)(() => QuestionComment),
|
171
174
|
__metadata("design:type", Array)
|
172
175
|
], Question.prototype, "comments", void 0);
|
173
|
-
__decorate([
|
174
|
-
(0, class_transformer_1.Expose)(),
|
175
|
-
(0, class_transformer_1.Type)(() => QuestionComment),
|
176
|
-
__metadata("design:type", Array)
|
177
|
-
], Question.prototype, "items", void 0);
|
178
176
|
__decorate([
|
179
177
|
(0, class_transformer_1.Expose)(),
|
180
178
|
(0, class_transformer_1.Type)(() => category_1.Category),
|
181
179
|
__metadata("design:type", Array)
|
182
180
|
], Question.prototype, "categories", void 0);
|
183
|
-
__decorate([
|
184
|
-
(0, class_transformer_1.Expose)(),
|
185
|
-
(0, class_transformer_1.Type)(() => category_1.Category),
|
186
|
-
__metadata("design:type", Array)
|
187
|
-
], Question.prototype, "topics", void 0);
|
188
|
-
__decorate([
|
189
|
-
(0, class_transformer_1.Expose)(),
|
190
|
-
(0, class_transformer_1.Transform)(({ obj }) => (obj?.categories?.map((i) => i.hash) || [])),
|
191
|
-
__metadata("design:type", Array)
|
192
|
-
], Question.prototype, "tags", void 0);
|
193
|
-
__decorate([
|
194
|
-
(0, class_transformer_1.Expose)(),
|
195
|
-
(0, class_transformer_1.Type)(() => item_1.Item),
|
196
|
-
(0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
|
197
|
-
value: obj.totalBookmarks || 0,
|
198
|
-
active: obj.isBookmarked,
|
199
|
-
icon: ['far', 'bookmark'],
|
200
|
-
iconSelected: ['fas', 'bookmark'],
|
201
|
-
})),
|
202
|
-
__metadata("design:type", item_1.Item)
|
203
|
-
], Question.prototype, "bookmark", void 0);
|
204
|
-
__decorate([
|
205
|
-
(0, class_transformer_1.Expose)(),
|
206
|
-
(0, class_transformer_1.Type)(() => item_1.Item),
|
207
|
-
(0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
|
208
|
-
value: obj.totalLikes || 0,
|
209
|
-
active: obj.isLiked,
|
210
|
-
icon: ['far', 'heart'],
|
211
|
-
iconSelected: ['fas', 'heart'],
|
212
|
-
})),
|
213
|
-
__metadata("design:type", item_1.Item)
|
214
|
-
], Question.prototype, "like", void 0);
|
215
|
-
__decorate([
|
216
|
-
(0, class_transformer_1.Expose)(),
|
217
|
-
(0, class_transformer_1.Type)(() => item_1.Item),
|
218
|
-
(0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
|
219
|
-
value: obj.totalShares || 0,
|
220
|
-
active: obj.isShared,
|
221
|
-
icon: ['far', 'share-from-square'],
|
222
|
-
iconSelected: ['fas', 'share-from-square'],
|
223
|
-
})),
|
224
|
-
__metadata("design:type", item_1.Item)
|
225
|
-
], Question.prototype, "share", void 0);
|
226
|
-
__decorate([
|
227
|
-
(0, class_transformer_1.Expose)(),
|
228
|
-
(0, class_transformer_1.Type)(() => item_1.Item),
|
229
|
-
(0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
|
230
|
-
value: obj.totalHits || 0,
|
231
|
-
icon: ['fas', 'eye'],
|
232
|
-
iconSelected: ['fas', 'eye'],
|
233
|
-
})),
|
234
|
-
__metadata("design:type", item_1.Item)
|
235
|
-
], Question.prototype, "hit", void 0);
|
236
|
-
__decorate([
|
237
|
-
(0, class_transformer_1.Expose)(),
|
238
|
-
(0, class_transformer_1.Type)(() => item_1.Item),
|
239
|
-
(0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
|
240
|
-
value: obj.totalComments || 0,
|
241
|
-
active: obj.totalComments > 0,
|
242
|
-
icon: ['far', 'comment'],
|
243
|
-
iconSelected: ['fas', 'comment'],
|
244
|
-
})),
|
245
|
-
__metadata("design:type", item_1.Item)
|
246
|
-
], Question.prototype, "reactions", void 0);
|
247
|
-
__decorate([
|
248
|
-
(0, class_transformer_1.Expose)(),
|
249
|
-
(0, class_transformer_1.Transform)(() => new item_1.Item({
|
250
|
-
title: 'myQuestion',
|
251
|
-
value: 'text-bg-secondary',
|
252
|
-
})),
|
253
|
-
__metadata("design:type", item_1.Item)
|
254
|
-
], Question.prototype, "badge", void 0);
|
255
|
-
__decorate([
|
256
|
-
(0, class_transformer_1.Expose)(),
|
257
|
-
(0, class_transformer_1.Type)(() => item_1.Item),
|
258
|
-
__metadata("design:type", Array)
|
259
|
-
], Question.prototype, "metrics", void 0);
|
260
181
|
class QuestionComment {
|
261
182
|
id;
|
262
|
-
question;
|
263
183
|
author;
|
184
|
+
question;
|
264
185
|
comment;
|
265
186
|
status;
|
266
|
-
|
267
|
-
|
187
|
+
published;
|
188
|
+
statusChanged;
|
189
|
+
created;
|
190
|
+
updated;
|
268
191
|
constructor(props) {
|
269
192
|
Object.assign(this, props);
|
270
193
|
}
|
@@ -275,15 +198,15 @@ __decorate([
|
|
275
198
|
(0, class_transformer_1.Type)(() => Number),
|
276
199
|
__metadata("design:type", Number)
|
277
200
|
], QuestionComment.prototype, "id", void 0);
|
278
|
-
__decorate([
|
279
|
-
(0, class_transformer_1.Expose)(),
|
280
|
-
__metadata("design:type", Question)
|
281
|
-
], QuestionComment.prototype, "question", void 0);
|
282
201
|
__decorate([
|
283
202
|
(0, class_transformer_1.Expose)(),
|
284
203
|
(0, class_transformer_1.Type)(() => author_1.Author),
|
285
204
|
__metadata("design:type", author_1.Author)
|
286
205
|
], QuestionComment.prototype, "author", void 0);
|
206
|
+
__decorate([
|
207
|
+
(0, class_transformer_1.Expose)(),
|
208
|
+
__metadata("design:type", Question)
|
209
|
+
], QuestionComment.prototype, "question", void 0);
|
287
210
|
__decorate([
|
288
211
|
(0, class_transformer_1.Expose)(),
|
289
212
|
__metadata("design:type", String)
|
@@ -294,12 +217,22 @@ __decorate([
|
|
294
217
|
], QuestionComment.prototype, "status", void 0);
|
295
218
|
__decorate([
|
296
219
|
(0, class_transformer_1.Expose)(),
|
297
|
-
(0, class_transformer_1.Type)(() =>
|
298
|
-
__metadata("design:type",
|
299
|
-
], QuestionComment.prototype, "
|
220
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
221
|
+
__metadata("design:type", log_1.Log)
|
222
|
+
], QuestionComment.prototype, "published", void 0);
|
223
|
+
__decorate([
|
224
|
+
(0, class_transformer_1.Expose)(),
|
225
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
226
|
+
__metadata("design:type", log_1.Log)
|
227
|
+
], QuestionComment.prototype, "statusChanged", void 0);
|
228
|
+
__decorate([
|
229
|
+
(0, class_transformer_1.Expose)(),
|
230
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
231
|
+
__metadata("design:type", log_1.Log)
|
232
|
+
], QuestionComment.prototype, "created", void 0);
|
300
233
|
__decorate([
|
301
234
|
(0, class_transformer_1.Expose)(),
|
302
|
-
(0, class_transformer_1.Type)(() =>
|
303
|
-
__metadata("design:type",
|
304
|
-
], QuestionComment.prototype, "
|
235
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
236
|
+
__metadata("design:type", log_1.Log)
|
237
|
+
], QuestionComment.prototype, "updated", void 0);
|
305
238
|
//# sourceMappingURL=question.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/models/question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qCAAkC;AAClC,iCAA8B;AAC9B,yCAAsC;AACtC,oCAAsC;AACtC,
|
1
|
+
{"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/models/question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,qCAAkC;AAClC,iCAA8B;AAC9B,yCAAsC;AACtC,oCAAsC;AACtC,qCAAkC;AAClC,+BAA4B;AAG5B,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;IAUpB,UAAU,CAAS;IAQnB,WAAW,CAAS;IAQpB,WAAW,CAAS;IAQpB,YAAY,CAAS;IAQrB,eAAe,CAAS;IAQxB,cAAc,CAAS;IAMvB,SAAS,CAAM;IAIf,aAAa,CAAM;IAInB,SAAS,CAAM;IAIf,OAAO,CAAM;IAIb,OAAO,CAAM;IAIb,OAAO,CAAM;IAMb,IAAI,CAAO;IAIX,QAAQ,CAAoB;IAI5B,UAAU,CAAa;IAEvB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CA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AE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACR;AAUX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACX,eAAM;+CAAC;AAGf;IADC,IAAA,0BAAM,GAAE;8BACC,QAAQ;iDAAC;AAGnB;IADC,IAAA,0BAAM,GAAE;;gDACO;AAKhB;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;+CACX;AAMnB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACL,SAAG;kDAAC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACD,SAAG;sDAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;gDAAC;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACP,SAAG;gDAAC"}
|
package/lib/models/quote.d.ts
CHANGED
package/lib/models/quote.js
CHANGED
@@ -14,7 +14,6 @@ const class_transformer_1 = require("class-transformer");
|
|
14
14
|
class Quote {
|
15
15
|
id;
|
16
16
|
imageUrl;
|
17
|
-
publishedDate;
|
18
17
|
constructor(props) {
|
19
18
|
Object.assign(this, props);
|
20
19
|
}
|
@@ -29,9 +28,4 @@ __decorate([
|
|
29
28
|
(0, class_transformer_1.Expose)(),
|
30
29
|
__metadata("design:type", String)
|
31
30
|
], Quote.prototype, "imageUrl", void 0);
|
32
|
-
__decorate([
|
33
|
-
(0, class_transformer_1.Expose)(),
|
34
|
-
(0, class_transformer_1.Type)(() => Date),
|
35
|
-
__metadata("design:type", Date)
|
36
|
-
], Quote.prototype, "publishedDate", void 0);
|
37
31
|
//# sourceMappingURL=quote.js.map
|
package/lib/models/quote.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/models/quote.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;
|
1
|
+
{"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/models/quote.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAZD,sBAYC;AARA;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"}
|
package/lib/models/survey.d.ts
CHANGED
@@ -1,20 +1,27 @@
|
|
1
1
|
import { StatusType, StatusLabel } from '../enums';
|
2
|
-
import {
|
2
|
+
import { Metric } from './metric';
|
3
|
+
import { Log } from './log';
|
3
4
|
export declare class Survey {
|
4
5
|
id: number;
|
6
|
+
slug: string;
|
5
7
|
name: string;
|
6
8
|
description: string;
|
7
9
|
imageUrl: string;
|
8
|
-
startDate: Date;
|
9
|
-
endDate: Date;
|
10
|
-
slug: string;
|
11
10
|
items: SurveyItem[];
|
12
|
-
isStarted: boolean;
|
13
11
|
status: StatusType;
|
14
12
|
label: StatusLabel;
|
15
|
-
|
13
|
+
startDate: Date;
|
14
|
+
endDate: Date;
|
15
|
+
isStarted: boolean;
|
16
|
+
metricSeen: Metric;
|
17
|
+
metricOpens: Metric;
|
18
|
+
metricQuestions: Metric;
|
19
|
+
metricUsers: Metric;
|
20
|
+
statusChanged: Log;
|
21
|
+
published: Log;
|
22
|
+
created: Log;
|
23
|
+
updated: Log;
|
16
24
|
constructor(props?: Partial<Survey>);
|
17
|
-
updateMetrics(): void;
|
18
25
|
}
|
19
26
|
export declare class SurveyItem {
|
20
27
|
id: number;
|
@@ -24,14 +31,13 @@ export declare class SurveyItem {
|
|
24
31
|
sort: number;
|
25
32
|
survey: Survey;
|
26
33
|
options: SurveyOption[];
|
27
|
-
metrics: Item[];
|
28
34
|
constructor(props?: Partial<SurveyItem>);
|
29
35
|
}
|
30
36
|
export declare class SurveyOption {
|
31
37
|
id: number;
|
32
38
|
content: string;
|
33
39
|
sort: number;
|
34
|
-
item: SurveyItem;
|
35
40
|
isSelected: boolean;
|
41
|
+
item: SurveyItem;
|
36
42
|
constructor(props?: Partial<SurveyOption>);
|
37
43
|
}
|