@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.
Files changed (110) hide show
  1. package/lib/dtos/boost.dto.d.ts +0 -12
  2. package/lib/dtos/boost.dto.js +1 -50
  3. package/lib/dtos/boost.dto.js.map +1 -1
  4. package/lib/dtos/brand.dto.d.ts +0 -15
  5. package/lib/dtos/brand.dto.js +1 -46
  6. package/lib/dtos/brand.dto.js.map +1 -1
  7. package/lib/dtos/feedback.dto.d.ts +0 -9
  8. package/lib/dtos/feedback.dto.js +1 -28
  9. package/lib/dtos/feedback.dto.js.map +1 -1
  10. package/lib/dtos/general.dto.d.ts +3 -0
  11. package/lib/dtos/general.dto.js +10 -1
  12. package/lib/dtos/general.dto.js.map +1 -1
  13. package/lib/dtos/index.d.ts +0 -4
  14. package/lib/dtos/index.js +0 -4
  15. package/lib/dtos/index.js.map +1 -1
  16. package/lib/dtos/post.dto.d.ts +0 -22
  17. package/lib/dtos/post.dto.js +1 -65
  18. package/lib/dtos/post.dto.js.map +1 -1
  19. package/lib/dtos/promotion.dto.d.ts +0 -8
  20. package/lib/dtos/promotion.dto.js +1 -37
  21. package/lib/dtos/promotion.dto.js.map +1 -1
  22. package/lib/dtos/question.dto.d.ts +0 -19
  23. package/lib/dtos/question.dto.js +1 -62
  24. package/lib/dtos/question.dto.js.map +1 -1
  25. package/lib/dtos/search.dto.d.ts +12 -0
  26. package/lib/dtos/search.dto.js +72 -0
  27. package/lib/dtos/search.dto.js.map +1 -0
  28. package/lib/dtos/survey.dto.d.ts +0 -24
  29. package/lib/dtos/survey.dto.js +1 -90
  30. package/lib/dtos/survey.dto.js.map +1 -1
  31. package/lib/dtos/user.dto.d.ts +0 -3
  32. package/lib/dtos/user.dto.js +1 -10
  33. package/lib/dtos/user.dto.js.map +1 -1
  34. package/lib/enums/asset.enum.js.map +1 -1
  35. package/lib/enums/index.d.ts +0 -1
  36. package/lib/enums/index.js +0 -1
  37. package/lib/enums/index.js.map +1 -1
  38. package/lib/enums/module.enum.d.ts +0 -19
  39. package/lib/enums/module.enum.js +1 -21
  40. package/lib/enums/module.enum.js.map +1 -1
  41. package/lib/enums/setting.enum.d.ts +2 -2
  42. package/lib/enums/setting.enum.js +2 -2
  43. package/lib/enums/tracks.enum.d.ts +13 -2
  44. package/lib/enums/tracks.enum.js +23 -11
  45. package/lib/enums/tracks.enum.js.map +1 -1
  46. package/lib/helpers/index.d.ts +2 -0
  47. package/lib/helpers/index.js +19 -0
  48. package/lib/helpers/index.js.map +1 -0
  49. package/lib/helpers/popularity.helper.d.ts +2 -0
  50. package/lib/helpers/popularity.helper.js +58 -0
  51. package/lib/helpers/popularity.helper.js.map +1 -0
  52. package/lib/helpers/post.helper.d.ts +2 -0
  53. package/lib/helpers/post.helper.js +22 -0
  54. package/lib/helpers/post.helper.js.map +1 -0
  55. package/lib/index.d.ts +1 -0
  56. package/lib/index.js +1 -0
  57. package/lib/index.js.map +1 -1
  58. package/lib/models/author.d.ts +6 -4
  59. package/lib/models/author.js +22 -18
  60. package/lib/models/author.js.map +1 -1
  61. package/lib/models/boost.d.ts +6 -7
  62. package/lib/models/boost.js +22 -29
  63. package/lib/models/boost.js.map +1 -1
  64. package/lib/models/brand.d.ts +6 -4
  65. package/lib/models/brand.js +38 -18
  66. package/lib/models/brand.js.map +1 -1
  67. package/lib/models/category.d.ts +2 -1
  68. package/lib/models/category.js +6 -5
  69. package/lib/models/category.js.map +1 -1
  70. package/lib/models/collection.d.ts +5 -5
  71. package/lib/models/collection.js +20 -20
  72. package/lib/models/collection.js.map +1 -1
  73. package/lib/models/feedback.d.ts +8 -5
  74. package/lib/models/feedback.js +37 -54
  75. package/lib/models/feedback.js.map +1 -1
  76. package/lib/models/index.d.ts +2 -1
  77. package/lib/models/index.js +2 -1
  78. package/lib/models/index.js.map +1 -1
  79. package/lib/models/log.d.ts +11 -0
  80. package/lib/models/log.js +16 -0
  81. package/lib/models/log.js.map +1 -0
  82. package/lib/models/metric.d.ts +20 -0
  83. package/lib/models/metric.js +186 -0
  84. package/lib/models/metric.js.map +1 -0
  85. package/lib/models/post.d.ts +26 -36
  86. package/lib/models/post.js +238 -358
  87. package/lib/models/post.js.map +1 -1
  88. package/lib/models/promotion.d.ts +9 -3
  89. package/lib/models/promotion.js +40 -8
  90. package/lib/models/promotion.js.map +1 -1
  91. package/lib/models/publisher.d.ts +8 -3
  92. package/lib/models/publisher.js +34 -14
  93. package/lib/models/publisher.js.map +1 -1
  94. package/lib/models/question.d.ts +21 -27
  95. package/lib/models/question.js +95 -162
  96. package/lib/models/question.js.map +1 -1
  97. package/lib/models/quote.d.ts +0 -1
  98. package/lib/models/quote.js +0 -6
  99. package/lib/models/quote.js.map +1 -1
  100. package/lib/models/survey.d.ts +15 -9
  101. package/lib/models/survey.js +70 -54
  102. package/lib/models/survey.js.map +1 -1
  103. package/lib/models/topic.d.ts +5 -1
  104. package/lib/models/topic.js +21 -55
  105. package/lib/models/topic.js.map +1 -1
  106. package/lib/models/user.d.ts +4 -4
  107. package/lib/models/user.js +100 -22
  108. package/lib/models/user.js.map +1 -1
  109. package/lib/tsconfig.tsbuildinfo +1 -1
  110. package/package.json +3 -3
@@ -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 item_1 = require("./item");
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
- question;
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
- createdOn;
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, "question", void 0);
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)(() => Number),
106
- __metadata("design:type", Number)
107
- ], Question.prototype, "totalHits", void 0);
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)(() => Number),
111
- __metadata("design:type", Number)
112
- ], Question.prototype, "totalComments", void 0);
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)(() => Number),
116
- __metadata("design:type", Number)
117
- ], Question.prototype, "totalItems", void 0);
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)(() => Number),
121
- __metadata("design:type", Number)
122
- ], Question.prototype, "totalLikes", void 0);
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)(() => Number),
126
- __metadata("design:type", Number)
127
- ], Question.prototype, "totalShares", void 0);
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)(() => Number),
131
- __metadata("design:type", Number)
132
- ], Question.prototype, "totalBookmarks", void 0);
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)(() => Boolean),
136
- __metadata("design:type", Boolean)
137
- ], Question.prototype, "isBookmarked", void 0);
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)(() => Boolean),
141
- __metadata("design:type", Boolean)
142
- ], Question.prototype, "isLiked", void 0);
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)(() => Boolean),
146
- __metadata("design:type", Boolean)
147
- ], Question.prototype, "isShared", void 0);
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)(() => Boolean),
151
- __metadata("design:type", Boolean)
152
- ], Question.prototype, "myQuestion", void 0);
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)(() => Boolean),
156
- __metadata("design:type", Boolean)
157
- ], Question.prototype, "attention", void 0);
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)(() => Date),
161
- __metadata("design:type", Date)
162
- ], Question.prototype, "createdOn", void 0);
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
- publishedDate;
267
- createdOn;
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)(() => Date),
298
- __metadata("design:type", Date)
299
- ], QuestionComment.prototype, "publishedDate", void 0);
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)(() => Date),
303
- __metadata("design:type", Date)
304
- ], QuestionComment.prototype, "createdOn", void 0);
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,iCAA8B;AAK9B,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,MAAM,CAAa;IAGnB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,QAAQ,CAAS;IAIjB,OAAO,CAAU;IAIjB,MAAM,CAAU;IAIhB,SAAS,CAAS;IAIlB,aAAa,CAAS;IAItB,UAAU,CAAS;IAInB,UAAU,CAAS;IAInB,WAAW,CAAS;IAIpB,cAAc,CAAS;IAIvB,YAAY,CAAU;IAItB,OAAO,CAAU;IAIjB,QAAQ,CAAU;IAIlB,UAAU,CAAU;IAIpB,SAAS,CAAU;IAInB,SAAS,CAAO;IAIhB,IAAI,CAAO;IAIX,QAAQ,CAAoB;IAO5B,KAAK,CAAoB;IAIzB,UAAU,CAAa;IAOvB,MAAM,CAAa;IAInB,IAAI,CAAW;IAUf,QAAQ,CAAe;IAUvB,IAAI,C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6 +1,5 @@
1
1
  export declare class Quote {
2
2
  id: number;
3
3
  imageUrl: string;
4
- publishedDate: Date;
5
4
  constructor(props?: Partial<Quote>);
6
5
  }
@@ -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
@@ -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;IAIjB,aAAa,CAAO;IAEpB,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,IAAI,CAAC;8BACF,IAAI;4CAAC"}
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"}
@@ -1,20 +1,27 @@
1
1
  import { StatusType, StatusLabel } from '../enums';
2
- import { Item } from './item';
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
- metrics: Item[];
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
  }