@intelact/bright 0.9.75 → 0.9.77
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.d.ts +1 -3
- package/lib/enums/asset.enum.js +0 -2
- 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/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 +5 -6
- package/lib/models/boost.js +17 -23
- package/lib/models/boost.js.map +1 -1
- package/lib/models/brand.d.ts +3 -1
- package/lib/models/brand.js +23 -3
- package/lib/models/brand.js.map +1 -1
- package/lib/models/category.d.ts +2 -1
- package/lib/models/category.js +7 -5
- package/lib/models/category.js.map +1 -1
- package/lib/models/collection.d.ts +5 -5
- package/lib/models/collection.js +19 -18
- package/lib/models/collection.js.map +1 -1
- package/lib/models/feedback.d.ts +7 -2
- package/lib/models/feedback.js +35 -28
- 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 +21 -29
- package/lib/models/post.js +213 -242
- package/lib/models/post.js.map +1 -1
- package/lib/models/promotion.d.ts +7 -2
- package/lib/models/promotion.js +31 -3
- package/lib/models/promotion.js.map +1 -1
- package/lib/models/publisher.d.ts +7 -3
- package/lib/models/publisher.js +30 -14
- package/lib/models/publisher.js.map +1 -1
- package/lib/models/question.d.ts +20 -29
- package/lib/models/question.js +88 -174
- 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 +10 -2
- package/lib/models/survey.js +51 -25
- package/lib/models/survey.js.map +1 -1
- package/lib/models/topic.d.ts +5 -1
- package/lib/models/topic.js +26 -10
- package/lib/models/topic.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/lib/models/post.js
CHANGED
@@ -18,7 +18,8 @@ const enums_1 = require("../enums");
|
|
18
18
|
const gallery_1 = require("./gallery");
|
19
19
|
const feedback_1 = require("./feedback");
|
20
20
|
const item_1 = require("./item");
|
21
|
-
const
|
21
|
+
const metric_1 = require("./metric");
|
22
|
+
const log_1 = require("./log");
|
22
23
|
class Post {
|
23
24
|
id;
|
24
25
|
publisher;
|
@@ -45,87 +46,190 @@ class Post {
|
|
45
46
|
status;
|
46
47
|
weight;
|
47
48
|
popularity;
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
download;
|
63
|
-
metrics;
|
64
|
-
createdOn;
|
65
|
-
createdBy;
|
66
|
-
updatedOn;
|
67
|
-
updatedBy;
|
68
|
-
statusChangeDate;
|
69
|
-
statusChangeBy;
|
70
|
-
publishedDate;
|
71
|
-
publishedBy;
|
49
|
+
metricVisits;
|
50
|
+
metricOpens;
|
51
|
+
metricBookmarks;
|
52
|
+
metricLikes;
|
53
|
+
metricShares;
|
54
|
+
metricDownloads;
|
55
|
+
metricFeedbacks;
|
56
|
+
logCreated;
|
57
|
+
logUpdated;
|
58
|
+
logDeleted;
|
59
|
+
logPublished;
|
60
|
+
logArchived;
|
61
|
+
logBlocked;
|
62
|
+
logStatusChange;
|
72
63
|
constructor(props) {
|
73
64
|
Object.assign(this, props);
|
74
65
|
}
|
75
66
|
get type() {
|
76
67
|
return this.postType;
|
77
68
|
}
|
69
|
+
getStatusAuthorizations() {
|
70
|
+
switch (this.status) {
|
71
|
+
case enums_1.StatusType.Draft:
|
72
|
+
return {
|
73
|
+
draft: false,
|
74
|
+
approve: true,
|
75
|
+
publish: true,
|
76
|
+
unpublish: false,
|
77
|
+
archive: true,
|
78
|
+
unarchive: false,
|
79
|
+
block: true,
|
80
|
+
unblock: false
|
81
|
+
};
|
82
|
+
case enums_1.StatusType.ReadyForPublish:
|
83
|
+
return {
|
84
|
+
draft: true,
|
85
|
+
approve: false,
|
86
|
+
publish: true,
|
87
|
+
unpublish: false,
|
88
|
+
archive: false,
|
89
|
+
unarchive: false,
|
90
|
+
block: true,
|
91
|
+
unblock: false
|
92
|
+
};
|
93
|
+
case enums_1.StatusType.Published:
|
94
|
+
return {
|
95
|
+
draft: false,
|
96
|
+
approve: false,
|
97
|
+
publish: false,
|
98
|
+
unpublish: true,
|
99
|
+
archive: true,
|
100
|
+
unarchive: false,
|
101
|
+
block: true,
|
102
|
+
unblock: false
|
103
|
+
};
|
104
|
+
case enums_1.StatusType.Archived:
|
105
|
+
return {
|
106
|
+
draft: false,
|
107
|
+
approve: false,
|
108
|
+
publish: false,
|
109
|
+
unpublish: false,
|
110
|
+
archive: false,
|
111
|
+
unarchive: true,
|
112
|
+
block: false,
|
113
|
+
unblock: false
|
114
|
+
};
|
115
|
+
case enums_1.StatusType.Blocked:
|
116
|
+
return {
|
117
|
+
draft: false,
|
118
|
+
approve: false,
|
119
|
+
publish: false,
|
120
|
+
unpublish: false,
|
121
|
+
archive: false,
|
122
|
+
unarchive: false,
|
123
|
+
block: false,
|
124
|
+
unblock: true
|
125
|
+
};
|
126
|
+
default:
|
127
|
+
return {
|
128
|
+
draft: false,
|
129
|
+
approve: false,
|
130
|
+
publish: false,
|
131
|
+
unpublish: false,
|
132
|
+
archive: false,
|
133
|
+
unarchive: false,
|
134
|
+
block: false,
|
135
|
+
unblock: false
|
136
|
+
};
|
137
|
+
}
|
138
|
+
}
|
78
139
|
getPublishValidators() {
|
79
140
|
const postType = this.postType;
|
80
141
|
const validators = [];
|
81
|
-
validators.push(new item_1.Item({
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
142
|
+
validators.push(new item_1.Item({
|
143
|
+
name: 'author',
|
144
|
+
title: 'author',
|
145
|
+
icon: 'user'
|
146
|
+
}));
|
147
|
+
validators.push(new item_1.Item({
|
148
|
+
name: 'title',
|
149
|
+
title: 'title',
|
150
|
+
icon: 't'
|
151
|
+
}));
|
152
|
+
validators.push(new item_1.Item({
|
153
|
+
name: 'description',
|
154
|
+
title: 'daysescription',
|
155
|
+
icon: 'align-left'
|
156
|
+
}));
|
157
|
+
validators.push(new item_1.Item({
|
158
|
+
name: 'image',
|
159
|
+
title: 'image',
|
160
|
+
icon: 'image'
|
161
|
+
}));
|
162
|
+
validators.push(new item_1.Item({
|
163
|
+
name: 'feed',
|
164
|
+
title: 'postFeed',
|
165
|
+
icon: 'mobile-screen'
|
166
|
+
}));
|
86
167
|
if ([enums_1.PostType.Article, enums_1.PostType.Event, enums_1.PostType.News].includes(postType)) {
|
87
|
-
validators.push(new item_1.Item({
|
168
|
+
validators.push(new item_1.Item({
|
169
|
+
name: 'content',
|
170
|
+
title: 'content',
|
171
|
+
icon: 'align-justify'
|
172
|
+
}));
|
88
173
|
}
|
89
174
|
if (postType === enums_1.PostType.Book) {
|
90
|
-
validators.push(new item_1.Item({
|
175
|
+
validators.push(new item_1.Item({
|
176
|
+
name: 'pdf',
|
177
|
+
title: 'pdf',
|
178
|
+
icon: 'file-pdf'
|
179
|
+
}));
|
91
180
|
}
|
92
181
|
if (postType === enums_1.PostType.Audio) {
|
93
|
-
validators.push(new item_1.Item({
|
182
|
+
validators.push(new item_1.Item({
|
183
|
+
name: 'audio',
|
184
|
+
title: 'audio',
|
185
|
+
icon: 'microphone'
|
186
|
+
}));
|
94
187
|
}
|
95
188
|
if (postType === enums_1.PostType.Video) {
|
96
|
-
validators.push(new item_1.Item({
|
189
|
+
validators.push(new item_1.Item({
|
190
|
+
name: 'video',
|
191
|
+
title: 'video',
|
192
|
+
icon: 'file-video'
|
193
|
+
}));
|
97
194
|
}
|
98
195
|
if (postType === enums_1.PostType.Event) {
|
99
|
-
validators.push(new item_1.Item({
|
196
|
+
validators.push(new item_1.Item({
|
197
|
+
name: 'schedule',
|
198
|
+
title: 'eventSchedule',
|
199
|
+
icon: 'calendar-days'
|
200
|
+
}));
|
100
201
|
}
|
101
202
|
return validators;
|
102
203
|
}
|
103
204
|
validateForPublish() {
|
104
|
-
const postType = this.postType;
|
105
205
|
if (!this.status)
|
106
206
|
return false;
|
107
|
-
if (!this.author
|
207
|
+
if (!this.author) {
|
108
208
|
return false;
|
109
|
-
|
209
|
+
}
|
210
|
+
if (this.description?.trim()?.length === 0) {
|
110
211
|
return false;
|
111
|
-
|
212
|
+
}
|
213
|
+
if (this.imageUrl?.trim()?.length === 0) {
|
112
214
|
return false;
|
113
|
-
|
215
|
+
}
|
216
|
+
if (this.feedUrl?.trim()?.length) {
|
114
217
|
return false;
|
218
|
+
}
|
115
219
|
const contentMandatory = [enums_1.PostType.Article, enums_1.PostType.Event, enums_1.PostType.News];
|
116
|
-
if (contentMandatory.includes(
|
220
|
+
if (contentMandatory.includes(this.type) && !this.content?.trim()) {
|
117
221
|
return false;
|
118
222
|
}
|
119
|
-
if (
|
223
|
+
if (this.type === enums_1.PostType.Book && !this.pdfUrl?.trim()) {
|
120
224
|
return false;
|
121
225
|
}
|
122
|
-
if (
|
226
|
+
if (this.type === enums_1.PostType.Audio && !this.mediaUrl?.trim()) {
|
123
227
|
return false;
|
124
228
|
}
|
125
|
-
if (
|
229
|
+
if (this.type === enums_1.PostType.Video && !this.mediaUrl?.trim()) {
|
126
230
|
return false;
|
127
231
|
}
|
128
|
-
if (
|
232
|
+
if (this.type === enums_1.PostType.Event && !this.info?.events || this.info.events?.length === 0) {
|
129
233
|
return false;
|
130
234
|
}
|
131
235
|
return true;
|
@@ -222,7 +326,7 @@ __decorate([
|
|
222
326
|
__decorate([
|
223
327
|
(0, class_transformer_1.Expose)(),
|
224
328
|
(0, class_transformer_1.Transform)(({ obj }) => {
|
225
|
-
switch (obj
|
329
|
+
switch (obj?.postType) {
|
226
330
|
case enums_1.PostType.Article:
|
227
331
|
return 'file-lines';
|
228
332
|
case enums_1.PostType.Book:
|
@@ -242,7 +346,7 @@ __decorate([
|
|
242
346
|
__decorate([
|
243
347
|
(0, class_transformer_1.Expose)(),
|
244
348
|
(0, class_transformer_1.Transform)(({ obj }) => {
|
245
|
-
switch (obj
|
349
|
+
switch (obj?.postType) {
|
246
350
|
case enums_1.PostType.Article:
|
247
351
|
return '/assets/icons/content-type-article.svg';
|
248
352
|
case enums_1.PostType.Book:
|
@@ -297,6 +401,13 @@ __decorate([
|
|
297
401
|
(0, class_transformer_1.Expose)(),
|
298
402
|
(0, class_transformer_1.Type)(() => item_1.Item),
|
299
403
|
(0, class_transformer_1.Transform)(({ obj }) => {
|
404
|
+
if (!obj?.weight) {
|
405
|
+
return new item_1.Item({
|
406
|
+
title: 'n/A',
|
407
|
+
value: 0,
|
408
|
+
context: enums_1.Context.Light
|
409
|
+
});
|
410
|
+
}
|
300
411
|
if (obj.weight < 1.9999) {
|
301
412
|
return new item_1.Item({
|
302
413
|
title: enums_1.Popularity.Poor,
|
@@ -339,232 +450,92 @@ __decorate([
|
|
339
450
|
context: enums_1.Context.Danger
|
340
451
|
});
|
341
452
|
}
|
342
|
-
return new item_1.Item({
|
343
|
-
title: 'n/A',
|
344
|
-
value: 0,
|
345
|
-
context: enums_1.Context.Light
|
346
|
-
});
|
347
453
|
}),
|
348
454
|
__metadata("design:type", item_1.Item)
|
349
455
|
], Post.prototype, "popularity", void 0);
|
350
|
-
__decorate([
|
351
|
-
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
352
|
-
(0, class_transformer_1.Transform)(({ obj }) => {
|
353
|
-
switch (obj.status) {
|
354
|
-
case enums_1.StatusType.Draft:
|
355
|
-
return {
|
356
|
-
draft: false,
|
357
|
-
approve: true,
|
358
|
-
publish: true,
|
359
|
-
unpublish: false,
|
360
|
-
archive: true,
|
361
|
-
unarchive: false,
|
362
|
-
block: true,
|
363
|
-
unblock: false
|
364
|
-
};
|
365
|
-
case enums_1.StatusType.ReadyForPublish:
|
366
|
-
return {
|
367
|
-
draft: true,
|
368
|
-
approve: false,
|
369
|
-
publish: true,
|
370
|
-
unpublish: false,
|
371
|
-
archive: false,
|
372
|
-
unarchive: false,
|
373
|
-
block: true,
|
374
|
-
unblock: false
|
375
|
-
};
|
376
|
-
case enums_1.StatusType.Published:
|
377
|
-
return {
|
378
|
-
draft: false,
|
379
|
-
approve: false,
|
380
|
-
publish: false,
|
381
|
-
unpublish: true,
|
382
|
-
archive: true,
|
383
|
-
unarchive: false,
|
384
|
-
block: true,
|
385
|
-
unblock: false
|
386
|
-
};
|
387
|
-
case enums_1.StatusType.Archived:
|
388
|
-
return {
|
389
|
-
draft: false,
|
390
|
-
approve: false,
|
391
|
-
publish: false,
|
392
|
-
unpublish: false,
|
393
|
-
archive: false,
|
394
|
-
unarchive: true,
|
395
|
-
block: false,
|
396
|
-
unblock: false
|
397
|
-
};
|
398
|
-
case enums_1.StatusType.Blocked:
|
399
|
-
return {
|
400
|
-
draft: false,
|
401
|
-
approve: false,
|
402
|
-
publish: false,
|
403
|
-
unpublish: false,
|
404
|
-
archive: false,
|
405
|
-
unarchive: false,
|
406
|
-
block: false,
|
407
|
-
unblock: true
|
408
|
-
};
|
409
|
-
default:
|
410
|
-
return {
|
411
|
-
draft: false,
|
412
|
-
approve: false,
|
413
|
-
publish: false,
|
414
|
-
unpublish: false,
|
415
|
-
archive: false,
|
416
|
-
unarchive: false,
|
417
|
-
block: false,
|
418
|
-
unblock: false
|
419
|
-
};
|
420
|
-
}
|
421
|
-
}),
|
422
|
-
__metadata("design:type", Object)
|
423
|
-
], Post.prototype, "authorizedStatus", void 0);
|
424
|
-
__decorate([
|
425
|
-
(0, class_transformer_1.Expose)(),
|
426
|
-
(0, class_transformer_1.Type)(() => Number),
|
427
|
-
__metadata("design:type", Number)
|
428
|
-
], Post.prototype, "totalHits", void 0);
|
429
|
-
__decorate([
|
430
|
-
(0, class_transformer_1.Expose)(),
|
431
|
-
(0, class_transformer_1.Type)(() => Number),
|
432
|
-
__metadata("design:type", Number)
|
433
|
-
], Post.prototype, "totalLikes", void 0);
|
434
|
-
__decorate([
|
435
|
-
(0, class_transformer_1.Expose)(),
|
436
|
-
(0, class_transformer_1.Type)(() => Number),
|
437
|
-
__metadata("design:type", Number)
|
438
|
-
], Post.prototype, "totalShares", void 0);
|
439
|
-
__decorate([
|
440
|
-
(0, class_transformer_1.Expose)(),
|
441
|
-
(0, class_transformer_1.Type)(() => Number),
|
442
|
-
__metadata("design:type", Number)
|
443
|
-
], Post.prototype, "totalBookmarks", void 0);
|
444
|
-
__decorate([
|
445
|
-
(0, class_transformer_1.Expose)(),
|
446
|
-
(0, class_transformer_1.Type)(() => Number),
|
447
|
-
__metadata("design:type", Number)
|
448
|
-
], Post.prototype, "totalDownloads", void 0);
|
449
456
|
__decorate([
|
450
457
|
(0, class_transformer_1.Expose)(),
|
451
|
-
(0, class_transformer_1.Type)(() =>
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
(0, class_transformer_1.Expose)(),
|
456
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
457
|
-
__metadata("design:type", Boolean)
|
458
|
-
], Post.prototype, "isLiked", void 0);
|
459
|
-
__decorate([
|
460
|
-
(0, class_transformer_1.Expose)(),
|
461
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
462
|
-
__metadata("design:type", Boolean)
|
463
|
-
], Post.prototype, "isShared", void 0);
|
464
|
-
__decorate([
|
465
|
-
(0, class_transformer_1.Expose)(),
|
466
|
-
(0, class_transformer_1.Type)(() => Boolean),
|
467
|
-
__metadata("design:type", Boolean)
|
468
|
-
], Post.prototype, "isDownloaded", void 0);
|
458
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
459
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalVisits, obj?.hasSeen)),
|
460
|
+
__metadata("design:type", metric_1.Metric)
|
461
|
+
], Post.prototype, "metricVisits", void 0);
|
469
462
|
__decorate([
|
470
463
|
(0, class_transformer_1.Expose)(),
|
471
464
|
(0, class_transformer_1.Type)(() => item_1.Item),
|
472
|
-
(0, class_transformer_1.Transform)(({ obj }) =>
|
473
|
-
|
474
|
-
|
475
|
-
icon: ['far', 'bookmark'],
|
476
|
-
iconSelected: ['fas', 'bookmark'],
|
477
|
-
})),
|
478
|
-
__metadata("design:type", item_1.Item)
|
479
|
-
], Post.prototype, "bookmark", void 0);
|
465
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.open(obj?.totalOpens, obj?.hasOpen)),
|
466
|
+
__metadata("design:type", metric_1.Metric)
|
467
|
+
], Post.prototype, "metricOpens", void 0);
|
480
468
|
__decorate([
|
481
469
|
(0, class_transformer_1.Expose)(),
|
482
|
-
(0, class_transformer_1.Type)(() =>
|
483
|
-
(0, class_transformer_1.Transform)(({ obj }) =>
|
484
|
-
|
485
|
-
|
486
|
-
icon: ['far', 'heart'],
|
487
|
-
iconSelected: ['fas', 'heart'],
|
488
|
-
})),
|
489
|
-
__metadata("design:type", item_1.Item)
|
490
|
-
], Post.prototype, "like", void 0);
|
470
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
471
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.bookmark(obj?.totalBookmarks, obj?.hasBookmark)),
|
472
|
+
__metadata("design:type", metric_1.Metric)
|
473
|
+
], Post.prototype, "metricBookmarks", void 0);
|
491
474
|
__decorate([
|
492
475
|
(0, class_transformer_1.Expose)(),
|
493
|
-
(0, class_transformer_1.Type)(() =>
|
494
|
-
(0, class_transformer_1.Transform)(({ obj }) =>
|
495
|
-
|
496
|
-
|
497
|
-
icon: ['far', 'share-from-square'],
|
498
|
-
iconSelected: ['fas', 'share-from-square'],
|
499
|
-
})),
|
500
|
-
__metadata("design:type", item_1.Item)
|
501
|
-
], Post.prototype, "share", void 0);
|
476
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
477
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.like(obj?.totalLikes, obj?.hasLike)),
|
478
|
+
__metadata("design:type", metric_1.Metric)
|
479
|
+
], Post.prototype, "metricLikes", void 0);
|
502
480
|
__decorate([
|
503
481
|
(0, class_transformer_1.Expose)(),
|
504
|
-
(0, class_transformer_1.Type)(() =>
|
505
|
-
(0, class_transformer_1.Transform)(({ obj }) =>
|
506
|
-
|
507
|
-
|
508
|
-
iconSelected: ['fas', 'eye'],
|
509
|
-
})),
|
510
|
-
__metadata("design:type", item_1.Item)
|
511
|
-
], Post.prototype, "hit", void 0);
|
482
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
483
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.share(obj?.totalShares, obj?.hasShare)),
|
484
|
+
__metadata("design:type", metric_1.Metric)
|
485
|
+
], Post.prototype, "metricShares", void 0);
|
512
486
|
__decorate([
|
513
487
|
(0, class_transformer_1.Expose)(),
|
514
|
-
(0, class_transformer_1.Type)(() =>
|
515
|
-
(0, class_transformer_1.Transform)(({ obj }) =>
|
516
|
-
|
517
|
-
|
518
|
-
icon: ['fas', 'download'],
|
519
|
-
iconSelected: ['fas', 'download'],
|
520
|
-
})),
|
521
|
-
__metadata("design:type", item_1.Item)
|
522
|
-
], Post.prototype, "download", void 0);
|
488
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
489
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.download(obj?.totalDownloads, obj?.hasDownload)),
|
490
|
+
__metadata("design:type", metric_1.Metric)
|
491
|
+
], Post.prototype, "metricDownloads", void 0);
|
523
492
|
__decorate([
|
524
493
|
(0, class_transformer_1.Expose)(),
|
525
|
-
(0, class_transformer_1.Type)(() =>
|
526
|
-
|
527
|
-
|
494
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
495
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.feedback(obj?.totalFeedbacks, obj?.hasFeedback)),
|
496
|
+
__metadata("design:type", metric_1.Metric)
|
497
|
+
], Post.prototype, "metricFeedbacks", void 0);
|
528
498
|
__decorate([
|
529
499
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
530
|
-
(0, class_transformer_1.Type)(() =>
|
531
|
-
__metadata("design:type",
|
532
|
-
], Post.prototype, "
|
500
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
501
|
+
__metadata("design:type", log_1.Log)
|
502
|
+
], Post.prototype, "logCreated", void 0);
|
533
503
|
__decorate([
|
534
504
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
535
|
-
(0, class_transformer_1.Type)(() =>
|
536
|
-
__metadata("design:type",
|
537
|
-
], Post.prototype, "
|
505
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
506
|
+
__metadata("design:type", log_1.Log)
|
507
|
+
], Post.prototype, "logUpdated", void 0);
|
538
508
|
__decorate([
|
539
|
-
(0, class_transformer_1.Expose)({ groups: ['
|
540
|
-
(0, class_transformer_1.Type)(() =>
|
541
|
-
__metadata("design:type",
|
542
|
-
], Post.prototype, "
|
509
|
+
(0, class_transformer_1.Expose)({ groups: ['console'] }),
|
510
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
511
|
+
__metadata("design:type", log_1.Log)
|
512
|
+
], Post.prototype, "logDeleted", void 0);
|
543
513
|
__decorate([
|
544
|
-
(0, class_transformer_1.Expose)(
|
545
|
-
(0, class_transformer_1.Type)(() =>
|
546
|
-
__metadata("design:type",
|
547
|
-
], Post.prototype, "
|
514
|
+
(0, class_transformer_1.Expose)(),
|
515
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
516
|
+
__metadata("design:type", log_1.Log)
|
517
|
+
], Post.prototype, "logPublished", void 0);
|
548
518
|
__decorate([
|
549
519
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
550
|
-
(0, class_transformer_1.Type)(() =>
|
551
|
-
__metadata("design:type",
|
552
|
-
], Post.prototype, "
|
520
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
521
|
+
__metadata("design:type", log_1.Log)
|
522
|
+
], Post.prototype, "logArchived", void 0);
|
553
523
|
__decorate([
|
554
524
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
555
|
-
(0, class_transformer_1.Type)(() =>
|
556
|
-
__metadata("design:type",
|
557
|
-
], Post.prototype, "
|
525
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
526
|
+
__metadata("design:type", log_1.Log)
|
527
|
+
], Post.prototype, "logBlocked", void 0);
|
558
528
|
__decorate([
|
559
|
-
(0, class_transformer_1.Expose)(),
|
560
|
-
(0, class_transformer_1.Type)(() =>
|
561
|
-
__metadata("design:type",
|
562
|
-
], Post.prototype, "
|
529
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
530
|
+
(0, class_transformer_1.Type)(() => log_1.Log),
|
531
|
+
__metadata("design:type", log_1.Log)
|
532
|
+
], Post.prototype, "logStatusChange", void 0);
|
563
533
|
__decorate([
|
564
534
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
565
|
-
(
|
566
|
-
__metadata("design:
|
567
|
-
|
535
|
+
__metadata("design:type", Function),
|
536
|
+
__metadata("design:paramtypes", []),
|
537
|
+
__metadata("design:returntype", Object)
|
538
|
+
], Post.prototype, "getStatusAuthorizations", null);
|
568
539
|
__decorate([
|
569
540
|
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
570
541
|
__metadata("design:type", Function),
|
package/lib/models/post.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/models/post.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAE5D,qCAAkC;AAClC,2CAAwC;AACxC,mCAAgC;AAChC,oCAA+E;AAC/E,uCAAwC;AACxC,yCAAsC;AACtC,iCAA8B;AAC9B,iCAA8B;AAM9B,MAAa,IAAI;IAIhB,EAAE,CAAS;IAMX,SAAS,CAAY;IAIrB,MAAM,CAA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C,SAAG,CAAC;8BACJ,SAAG;wCAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,SAAG,CAAC;8BACC,SAAG;6CAAC;AAiBrB;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;mDA+E7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;gDAuF7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;8CAqD7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;4CAgB7B"}
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { StatusLabel, StatusType } from "../enums";
|
2
|
-
import {
|
2
|
+
import { Metric } from "./metric";
|
3
|
+
import { Log } from "./log";
|
3
4
|
export declare class Promotion {
|
4
5
|
id: number;
|
5
6
|
title: string;
|
@@ -10,6 +11,10 @@ export declare class Promotion {
|
|
10
11
|
endDate: Date;
|
11
12
|
status: StatusType;
|
12
13
|
label: StatusLabel;
|
13
|
-
|
14
|
+
metricSeen: Metric;
|
15
|
+
metricOpens: Metric;
|
16
|
+
logCreated: Log;
|
17
|
+
logUpdated: Log;
|
18
|
+
logPublished: Log;
|
14
19
|
constructor(props?: Partial<Promotion>);
|
15
20
|
}
|