@intelact/bright 0.9.77 → 0.9.78

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/lib/helpers/index.d.ts +2 -0
  2. package/lib/helpers/index.js +19 -0
  3. package/lib/helpers/index.js.map +1 -0
  4. package/lib/helpers/popularity.helper.d.ts +2 -0
  5. package/lib/helpers/popularity.helper.js +58 -0
  6. package/lib/helpers/popularity.helper.js.map +1 -0
  7. package/lib/helpers/post.helper.d.ts +2 -0
  8. package/lib/helpers/post.helper.js +22 -0
  9. package/lib/helpers/post.helper.js.map +1 -0
  10. package/lib/index.d.ts +1 -0
  11. package/lib/index.js +1 -0
  12. package/lib/index.js.map +1 -1
  13. package/lib/models/author.d.ts +3 -3
  14. package/lib/models/author.js +7 -7
  15. package/lib/models/author.js.map +1 -1
  16. package/lib/models/boost.d.ts +3 -3
  17. package/lib/models/boost.js +10 -11
  18. package/lib/models/boost.js.map +1 -1
  19. package/lib/models/brand.d.ts +4 -4
  20. package/lib/models/brand.js +17 -17
  21. package/lib/models/brand.js.map +1 -1
  22. package/lib/models/category.js +0 -1
  23. package/lib/models/category.js.map +1 -1
  24. package/lib/models/collection.d.ts +3 -3
  25. package/lib/models/collection.js +10 -11
  26. package/lib/models/collection.js.map +1 -1
  27. package/lib/models/feedback.d.ts +3 -5
  28. package/lib/models/feedback.js +12 -36
  29. package/lib/models/feedback.js.map +1 -1
  30. package/lib/models/log.d.ts +4 -4
  31. package/lib/models/log.js +3 -3
  32. package/lib/models/log.js.map +1 -1
  33. package/lib/models/post.d.ts +15 -17
  34. package/lib/models/post.js +69 -160
  35. package/lib/models/post.js.map +1 -1
  36. package/lib/models/promotion.d.ts +5 -4
  37. package/lib/models/promotion.js +18 -14
  38. package/lib/models/promotion.js.map +1 -1
  39. package/lib/models/publisher.d.ts +4 -3
  40. package/lib/models/publisher.js +12 -8
  41. package/lib/models/publisher.js.map +1 -1
  42. package/lib/models/question.d.ts +20 -17
  43. package/lib/models/question.js +80 -61
  44. package/lib/models/question.js.map +1 -1
  45. package/lib/models/survey.d.ts +9 -11
  46. package/lib/models/survey.js +37 -47
  47. package/lib/models/survey.js.map +1 -1
  48. package/lib/models/topic.d.ts +2 -2
  49. package/lib/models/topic.js +6 -56
  50. package/lib/models/topic.js.map +1 -1
  51. package/lib/models/user.d.ts +4 -4
  52. package/lib/models/user.js +100 -22
  53. package/lib/models/user.js.map +1 -1
  54. package/lib/tsconfig.tsbuildinfo +1 -1
  55. package/package.json +3 -3
@@ -12,21 +12,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FeedbackOption = exports.FeedbackItem = exports.Feedback = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const enums_1 = require("../enums");
15
- const item_1 = require("./item");
16
15
  const metric_1 = require("./metric");
17
16
  const log_1 = require("./log");
17
+ const helpers_1 = require("../helpers");
18
18
  class Feedback {
19
19
  id;
20
20
  type;
21
21
  title;
22
22
  description;
23
- items;
24
23
  icon;
25
24
  metricQuestions;
26
25
  metricPosts;
27
26
  metricUsers;
28
- logCreated;
29
- logUpdated;
27
+ created;
28
+ updated;
29
+ items;
30
30
  constructor(props) {
31
31
  Object.assign(this, props);
32
32
  }
@@ -51,57 +51,39 @@ __decorate([
51
51
  ], Feedback.prototype, "description", void 0);
52
52
  __decorate([
53
53
  (0, class_transformer_1.Expose)(),
54
- (0, class_transformer_1.Type)(() => FeedbackItem),
55
- __metadata("design:type", Array)
56
- ], Feedback.prototype, "items", void 0);
57
- __decorate([
58
- (0, class_transformer_1.Expose)(),
59
- (0, class_transformer_1.Transform)(({ obj }) => {
60
- switch (obj?.type) {
61
- case enums_1.PostType.Article:
62
- return '/assets/icons/content-type-article.svg';
63
- case enums_1.PostType.Book:
64
- return '/assets/icons/content-type-book.svg';
65
- case enums_1.PostType.Audio:
66
- return '/assets/icons/content-type-audio.svg';
67
- case enums_1.PostType.Video:
68
- return '/assets/icons/content-type-video.svg';
69
- case enums_1.PostType.News:
70
- return '/assets/icons/content-type-news.svg';
71
- case enums_1.PostType.Event:
72
- return '/assets/icons/content-type-event.svg';
73
- }
74
- }),
54
+ (0, class_transformer_1.Transform)(({ obj }) => (0, helpers_1.getPostIcon)(obj?.type, true)),
75
55
  __metadata("design:type", String)
76
56
  ], Feedback.prototype, "icon", void 0);
77
57
  __decorate([
78
58
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
79
59
  (0, class_transformer_1.Type)(() => metric_1.Metric),
80
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestion', obj?.totalPosts, ['fas', 'circle-question'])),
81
60
  __metadata("design:type", metric_1.Metric)
82
61
  ], Feedback.prototype, "metricQuestions", void 0);
83
62
  __decorate([
84
63
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
85
64
  (0, class_transformer_1.Type)(() => metric_1.Metric),
86
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
87
65
  __metadata("design:type", metric_1.Metric)
88
66
  ], Feedback.prototype, "metricPosts", void 0);
89
67
  __decorate([
90
68
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
91
69
  (0, class_transformer_1.Type)(() => metric_1.Metric),
92
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalUsers', obj?.totalUsers, ['fas', 'users'])),
93
70
  __metadata("design:type", metric_1.Metric)
94
71
  ], Feedback.prototype, "metricUsers", void 0);
95
72
  __decorate([
96
73
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
97
74
  (0, class_transformer_1.Type)(() => log_1.Log),
98
75
  __metadata("design:type", log_1.Log)
99
- ], Feedback.prototype, "logCreated", void 0);
76
+ ], Feedback.prototype, "created", void 0);
100
77
  __decorate([
101
78
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
102
79
  (0, class_transformer_1.Type)(() => log_1.Log),
103
80
  __metadata("design:type", log_1.Log)
104
- ], Feedback.prototype, "logUpdated", void 0);
81
+ ], Feedback.prototype, "updated", void 0);
82
+ __decorate([
83
+ (0, class_transformer_1.Expose)(),
84
+ (0, class_transformer_1.Type)(() => FeedbackItem),
85
+ __metadata("design:type", Array)
86
+ ], Feedback.prototype, "items", void 0);
105
87
  class FeedbackItem {
106
88
  id;
107
89
  question;
@@ -109,7 +91,6 @@ class FeedbackItem {
109
91
  sort;
110
92
  readonly;
111
93
  options;
112
- metrics;
113
94
  constructor(props) {
114
95
  Object.assign(this, props);
115
96
  }
@@ -144,11 +125,6 @@ __decorate([
144
125
  (0, class_transformer_1.Type)(() => FeedbackOption),
145
126
  __metadata("design:type", Array)
146
127
  ], FeedbackItem.prototype, "options", void 0);
147
- __decorate([
148
- (0, class_transformer_1.Expose)(),
149
- (0, class_transformer_1.Type)(() => item_1.Item),
150
- __metadata("design:type", Array)
151
- ], FeedbackItem.prototype, "metrics", void 0);
152
128
  class FeedbackOption {
153
129
  id;
154
130
  content;
@@ -1 +1 @@
1
- {"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/models/feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,oCAAoC;AACpC,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAE5B,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,IAAI,CAAW;IAGf,KAAK,CAAS;IAGd,WAAW,CAAQ;IAInB,KAAK,CAAiB;IAmBtB,IAAI,CAAS;IAWb,eAAe,CAAS;IASxB,WAAW,CAAS;IASpB,WAAW,CAAS;IAMpB,UAAU,CAAM;IAIhB,UAAU,CAAM;IAEhB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhFD,4BAgFC;AA5EA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAGX;IADC,IAAA,0BAAM,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IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACN;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;8CACF;AAMlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC;;6CACD;AAO3B,MAAa,cAAc;IAI1B,EAAE,CAAS;IAKX,OAAO,CAAS;IAMhB,IAAI,CAAS;IAIb,UAAU,CAAU;IAEpB,YAAY,KAA+B;QAC1C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxBD,wCAwBC;AApBA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACR;AAKX;IADC,IAAA,0BAAM,GAAE;;+CACO;AAMhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACN;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACA"}
@@ -1,10 +1,10 @@
1
1
  import { LogType, StatusType } from "../enums";
2
2
  import { User } from "./user";
3
3
  export declare class Log {
4
- type: LogType;
5
- date: Date;
6
- user: User;
7
- name?: string;
4
+ type?: LogType;
5
+ by: User;
6
+ on: Date;
7
+ id?: string;
8
8
  status?: StatusType;
9
9
  description?: string;
10
10
  constructor(props?: Partial<Log>);
package/lib/models/log.js CHANGED
@@ -3,9 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Log = void 0;
4
4
  class Log {
5
5
  type;
6
- date;
7
- user;
8
- name;
6
+ by;
7
+ on;
8
+ id;
9
9
  status;
10
10
  description;
11
11
  constructor(props) {
@@ -1 +1 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/models/log.ts"],"names":[],"mappings":";;;AAIA,MAAa,GAAG;IAKf,IAAI,CAAU;IAKd,IAAI,CAAO;IAKX,IAAI,CAAO;IAKX,IAAI,CAAU;IAKd,MAAM,CAAc;IAKpB,WAAW,CAAU;IAErB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnCD,kBAmCC"}
1
+ {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/models/log.ts"],"names":[],"mappings":";;;AAIA,MAAa,GAAG;IAKf,IAAI,CAAW;IAKf,EAAE,CAAO;IAKT,EAAE,CAAO;IAKT,EAAE,CAAU;IAKZ,MAAM,CAAc;IAKpB,WAAW,CAAU;IAErB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnCD,kBAmCC"}
@@ -10,13 +10,6 @@ import { Metric } from './metric';
10
10
  import { Log } from './log';
11
11
  export declare class Post {
12
12
  id: number;
13
- publisher: Publisher;
14
- author: Author;
15
- topics: Topic[];
16
- feedback: Feedback;
17
- collection: Post[];
18
- gallery: GalleryItem[];
19
- postType: PostType;
20
13
  slug: string;
21
14
  title: string;
22
15
  description: string;
@@ -25,29 +18,34 @@ export declare class Post {
25
18
  duration: number;
26
19
  icon: IconProp;
27
20
  svgIcon: string;
28
- tags: string[];
29
21
  pdfUrl: string;
30
22
  imageUrl: string;
31
23
  feedUrl: string;
32
24
  mediaUrl: string;
33
25
  externUrl: string;
34
26
  status: StatusType;
27
+ postType: PostType;
35
28
  weight: number;
36
29
  popularity: Item<number>;
37
- metricVisits: Metric;
30
+ totalSeen: Metric;
38
31
  metricOpens: Metric;
39
- metricBookmarks: Metric;
40
32
  metricLikes: Metric;
41
33
  metricShares: Metric;
34
+ metricBookmarks: Metric;
42
35
  metricDownloads: Metric;
43
36
  metricFeedbacks: Metric;
44
- logCreated: Log;
45
- logUpdated: Log;
46
- logDeleted: Log;
47
- logPublished: Log;
48
- logArchived: Log;
49
- logBlocked: Log;
50
- logStatusChange: Log;
37
+ statusChanged: Log;
38
+ published: Log;
39
+ blocked: Log;
40
+ created: Log;
41
+ updated: Log;
42
+ deleted: Log;
43
+ publisher: Publisher;
44
+ author: Author;
45
+ topics: Topic[];
46
+ feedback: Feedback;
47
+ collection: Post[];
48
+ gallery: GalleryItem[];
51
49
  constructor(props?: Partial<Post>);
52
50
  get type(): PostType;
53
51
  getStatusAuthorizations(): {
@@ -20,15 +20,9 @@ const feedback_1 = require("./feedback");
20
20
  const item_1 = require("./item");
21
21
  const metric_1 = require("./metric");
22
22
  const log_1 = require("./log");
23
+ const helpers_1 = require("../helpers");
23
24
  class Post {
24
25
  id;
25
- publisher;
26
- author;
27
- topics;
28
- feedback;
29
- collection;
30
- gallery;
31
- postType;
32
26
  slug;
33
27
  title;
34
28
  description;
@@ -37,29 +31,34 @@ class Post {
37
31
  duration;
38
32
  icon;
39
33
  svgIcon;
40
- tags;
41
34
  pdfUrl;
42
35
  imageUrl;
43
36
  feedUrl;
44
37
  mediaUrl;
45
38
  externUrl;
46
39
  status;
40
+ postType;
47
41
  weight;
48
42
  popularity;
49
- metricVisits;
43
+ totalSeen;
50
44
  metricOpens;
51
- metricBookmarks;
52
45
  metricLikes;
53
46
  metricShares;
47
+ metricBookmarks;
54
48
  metricDownloads;
55
49
  metricFeedbacks;
56
- logCreated;
57
- logUpdated;
58
- logDeleted;
59
- logPublished;
60
- logArchived;
61
- logBlocked;
62
- logStatusChange;
50
+ statusChanged;
51
+ published;
52
+ blocked;
53
+ created;
54
+ updated;
55
+ deleted;
56
+ publisher;
57
+ author;
58
+ topics;
59
+ feedback;
60
+ collection;
61
+ gallery;
63
62
  constructor(props) {
64
63
  Object.assign(this, props);
65
64
  }
@@ -256,39 +255,6 @@ __decorate([
256
255
  (0, class_transformer_1.Type)(() => Number),
257
256
  __metadata("design:type", Number)
258
257
  ], Post.prototype, "id", void 0);
259
- __decorate([
260
- (0, class_transformer_1.Expose)(),
261
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
262
- __metadata("design:type", publisher_1.Publisher)
263
- ], Post.prototype, "publisher", void 0);
264
- __decorate([
265
- (0, class_transformer_1.Expose)(),
266
- (0, class_transformer_1.Type)(() => author_1.Author),
267
- __metadata("design:type", author_1.Author)
268
- ], Post.prototype, "author", void 0);
269
- __decorate([
270
- (0, class_transformer_1.Type)(() => topic_1.Topic),
271
- __metadata("design:type", Array)
272
- ], Post.prototype, "topics", void 0);
273
- __decorate([
274
- (0, class_transformer_1.Expose)(),
275
- (0, class_transformer_1.Type)(() => feedback_1.Feedback),
276
- __metadata("design:type", feedback_1.Feedback)
277
- ], Post.prototype, "feedback", void 0);
278
- __decorate([
279
- (0, class_transformer_1.Expose)(),
280
- (0, class_transformer_1.Type)(() => Post),
281
- __metadata("design:type", Array)
282
- ], Post.prototype, "collection", void 0);
283
- __decorate([
284
- (0, class_transformer_1.Expose)(),
285
- (0, class_transformer_1.Type)(() => gallery_1.GalleryItem),
286
- __metadata("design:type", Array)
287
- ], Post.prototype, "gallery", void 0);
288
- __decorate([
289
- (0, class_transformer_1.Expose)(),
290
- __metadata("design:type", String)
291
- ], Post.prototype, "postType", void 0);
292
258
  __decorate([
293
259
  (0, class_transformer_1.Expose)(),
294
260
  __metadata("design:type", String)
@@ -325,49 +291,14 @@ __decorate([
325
291
  ], Post.prototype, "duration", void 0);
326
292
  __decorate([
327
293
  (0, class_transformer_1.Expose)(),
328
- (0, class_transformer_1.Transform)(({ obj }) => {
329
- switch (obj?.postType) {
330
- case enums_1.PostType.Article:
331
- return 'file-lines';
332
- case enums_1.PostType.Book:
333
- return 'book-open';
334
- case enums_1.PostType.Audio:
335
- return 'headphones';
336
- case enums_1.PostType.Video:
337
- return 'circle-play';
338
- case enums_1.PostType.News:
339
- return 'newspaper';
340
- case enums_1.PostType.Event:
341
- return 'microphone';
342
- }
343
- }),
294
+ (0, class_transformer_1.Transform)(({ obj }) => (0, helpers_1.getPostIcon)(obj?.postType)),
344
295
  __metadata("design:type", Object)
345
296
  ], Post.prototype, "icon", void 0);
346
297
  __decorate([
347
298
  (0, class_transformer_1.Expose)(),
348
- (0, class_transformer_1.Transform)(({ obj }) => {
349
- switch (obj?.postType) {
350
- case enums_1.PostType.Article:
351
- return '/assets/icons/content-type-article.svg';
352
- case enums_1.PostType.Book:
353
- return '/assets/icons/content-type-book.svg';
354
- case enums_1.PostType.Audio:
355
- return '/assets/icons/content-type-audio.svg';
356
- case enums_1.PostType.Video:
357
- return '/assets/icons/content-type-video.svg';
358
- case enums_1.PostType.News:
359
- return '/assets/icons/content-type-news.svg';
360
- case enums_1.PostType.Event:
361
- return '/assets/icons/content-type-event.svg';
362
- }
363
- }),
299
+ (0, class_transformer_1.Transform)(({ obj }) => (0, helpers_1.getPostIcon)(obj?.postType, true)),
364
300
  __metadata("design:type", String)
365
301
  ], Post.prototype, "svgIcon", void 0);
366
- __decorate([
367
- (0, class_transformer_1.Expose)(),
368
- (0, class_transformer_1.Transform)(({ obj }) => (obj?.topics?.map((i) => i.hash) || [])),
369
- __metadata("design:type", Array)
370
- ], Post.prototype, "tags", void 0);
371
302
  __decorate([
372
303
  (0, class_transformer_1.Expose)(),
373
304
  __metadata("design:type", String)
@@ -392,6 +323,10 @@ __decorate([
392
323
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
393
324
  __metadata("design:type", String)
394
325
  ], Post.prototype, "status", void 0);
326
+ __decorate([
327
+ (0, class_transformer_1.Expose)(),
328
+ __metadata("design:type", String)
329
+ ], Post.prototype, "postType", void 0);
395
330
  __decorate([
396
331
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
397
332
  (0, class_transformer_1.Type)(() => Number),
@@ -400,77 +335,21 @@ __decorate([
400
335
  __decorate([
401
336
  (0, class_transformer_1.Expose)(),
402
337
  (0, class_transformer_1.Type)(() => item_1.Item),
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
- }
411
- if (obj.weight < 1.9999) {
412
- return new item_1.Item({
413
- title: enums_1.Popularity.Poor,
414
- value: obj.weight,
415
- context: enums_1.Context.Secondary
416
- });
417
- }
418
- if (obj.weight >= 2 && obj.weight < 3.9999) {
419
- return new item_1.Item({
420
- title: enums_1.Popularity.Week,
421
- value: obj.weight,
422
- context: enums_1.Context.Dark
423
- });
424
- }
425
- if (obj.weight >= 4 && obj.weight < 5.9999) {
426
- return new item_1.Item({
427
- title: enums_1.Popularity.Fair,
428
- value: obj.weight,
429
- context: enums_1.Context.Primary
430
- });
431
- }
432
- if (obj.weight >= 6 && obj.weight < 7.9999) {
433
- return new item_1.Item({
434
- title: enums_1.Popularity.Great,
435
- value: obj.weight,
436
- context: enums_1.Context.Info
437
- });
438
- }
439
- if (obj.weight >= 8 && obj.weight < 8.9999) {
440
- return new item_1.Item({
441
- title: enums_1.Popularity.Excellent,
442
- value: obj.weight,
443
- context: enums_1.Context.Success
444
- });
445
- }
446
- if (obj.weight >= 9 && obj.weight <= 10) {
447
- return new item_1.Item({
448
- title: enums_1.Popularity.Exceptional,
449
- value: obj.weight,
450
- context: enums_1.Context.Danger
451
- });
452
- }
453
- }),
338
+ (0, class_transformer_1.Transform)(({ obj }) => (0, helpers_1.getPopularityByWeight)(obj.weight)),
454
339
  __metadata("design:type", item_1.Item)
455
340
  ], Post.prototype, "popularity", void 0);
456
341
  __decorate([
457
342
  (0, class_transformer_1.Expose)(),
458
343
  (0, class_transformer_1.Type)(() => metric_1.Metric),
459
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalVisits, obj?.hasSeen)),
344
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.seen(obj?.totalSeen, obj?.hasSeen)),
460
345
  __metadata("design:type", metric_1.Metric)
461
- ], Post.prototype, "metricVisits", void 0);
346
+ ], Post.prototype, "totalSeen", void 0);
462
347
  __decorate([
463
348
  (0, class_transformer_1.Expose)(),
464
349
  (0, class_transformer_1.Type)(() => item_1.Item),
465
350
  (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.open(obj?.totalOpens, obj?.hasOpen)),
466
351
  __metadata("design:type", metric_1.Metric)
467
352
  ], Post.prototype, "metricOpens", void 0);
468
- __decorate([
469
- (0, class_transformer_1.Expose)(),
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);
474
353
  __decorate([
475
354
  (0, class_transformer_1.Expose)(),
476
355
  (0, class_transformer_1.Type)(() => metric_1.Metric),
@@ -483,6 +362,12 @@ __decorate([
483
362
  (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.share(obj?.totalShares, obj?.hasShare)),
484
363
  __metadata("design:type", metric_1.Metric)
485
364
  ], Post.prototype, "metricShares", void 0);
365
+ __decorate([
366
+ (0, class_transformer_1.Expose)(),
367
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
368
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.bookmark(obj?.totalBookmarks, obj?.hasBookmark)),
369
+ __metadata("design:type", metric_1.Metric)
370
+ ], Post.prototype, "metricBookmarks", void 0);
486
371
  __decorate([
487
372
  (0, class_transformer_1.Expose)(),
488
373
  (0, class_transformer_1.Type)(() => metric_1.Metric),
@@ -499,37 +384,61 @@ __decorate([
499
384
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
500
385
  (0, class_transformer_1.Type)(() => log_1.Log),
501
386
  __metadata("design:type", log_1.Log)
502
- ], Post.prototype, "logCreated", void 0);
503
- __decorate([
504
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
505
- (0, class_transformer_1.Type)(() => log_1.Log),
506
- __metadata("design:type", log_1.Log)
507
- ], Post.prototype, "logUpdated", void 0);
387
+ ], Post.prototype, "statusChanged", void 0);
508
388
  __decorate([
509
- (0, class_transformer_1.Expose)({ groups: ['console'] }),
389
+ (0, class_transformer_1.Expose)(),
510
390
  (0, class_transformer_1.Type)(() => log_1.Log),
511
391
  __metadata("design:type", log_1.Log)
512
- ], Post.prototype, "logDeleted", void 0);
392
+ ], Post.prototype, "published", void 0);
513
393
  __decorate([
514
- (0, class_transformer_1.Expose)(),
394
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
515
395
  (0, class_transformer_1.Type)(() => log_1.Log),
516
396
  __metadata("design:type", log_1.Log)
517
- ], Post.prototype, "logPublished", void 0);
397
+ ], Post.prototype, "blocked", void 0);
518
398
  __decorate([
519
399
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
520
400
  (0, class_transformer_1.Type)(() => log_1.Log),
521
401
  __metadata("design:type", log_1.Log)
522
- ], Post.prototype, "logArchived", void 0);
402
+ ], Post.prototype, "created", void 0);
523
403
  __decorate([
524
404
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
525
405
  (0, class_transformer_1.Type)(() => log_1.Log),
526
406
  __metadata("design:type", log_1.Log)
527
- ], Post.prototype, "logBlocked", void 0);
407
+ ], Post.prototype, "updated", void 0);
528
408
  __decorate([
529
- (0, class_transformer_1.Expose)({ groups: ['admin'] }),
409
+ (0, class_transformer_1.Expose)({ groups: ['console'] }),
530
410
  (0, class_transformer_1.Type)(() => log_1.Log),
531
411
  __metadata("design:type", log_1.Log)
532
- ], Post.prototype, "logStatusChange", void 0);
412
+ ], Post.prototype, "deleted", void 0);
413
+ __decorate([
414
+ (0, class_transformer_1.Expose)(),
415
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
416
+ __metadata("design:type", publisher_1.Publisher)
417
+ ], Post.prototype, "publisher", void 0);
418
+ __decorate([
419
+ (0, class_transformer_1.Expose)(),
420
+ (0, class_transformer_1.Type)(() => author_1.Author),
421
+ __metadata("design:type", author_1.Author)
422
+ ], Post.prototype, "author", void 0);
423
+ __decorate([
424
+ (0, class_transformer_1.Type)(() => topic_1.Topic),
425
+ __metadata("design:type", Array)
426
+ ], Post.prototype, "topics", void 0);
427
+ __decorate([
428
+ (0, class_transformer_1.Expose)(),
429
+ (0, class_transformer_1.Type)(() => feedback_1.Feedback),
430
+ __metadata("design:type", feedback_1.Feedback)
431
+ ], Post.prototype, "feedback", void 0);
432
+ __decorate([
433
+ (0, class_transformer_1.Expose)(),
434
+ (0, class_transformer_1.Type)(() => Post),
435
+ __metadata("design:type", Array)
436
+ ], Post.prototype, "collection", void 0);
437
+ __decorate([
438
+ (0, class_transformer_1.Expose)(),
439
+ (0, class_transformer_1.Type)(() => gallery_1.GalleryItem),
440
+ __metadata("design:type", Array)
441
+ ], Post.prototype, "gallery", void 0);
533
442
  __decorate([
534
443
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
535
444
  __metadata("design:type", Function),
@@ -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,oCAAqE;AACrE,uCAAwC;AACxC,yCAAsC;AACtC,iCAA8B;AAC9B,qCAAkC;AAClC,+BAA4B;AAG5B,MAAa,IAAI;IAIhB,EAAE,CAAS;IAMX,SAAS,CAAY;IAIrB,MAAM,CAAS;IAGf,MAAM,CAAU;IAIhB,QAAQ,CAAW;IAInB,UAAU,CAAQ;IAIlB,OAAO,CAAgB;IAKvB,QAAQ,CAAW;IAGnB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,OAAO,C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Date;
12
- status: StatusType;
13
13
  label: StatusLabel;
14
14
  metricSeen: Metric;
15
15
  metricOpens: Metric;
16
- logCreated: Log;
17
- logUpdated: Log;
18
- logPublished: Log;
16
+ statusChanged: Log;
17
+ published: Log;
18
+ created: Log;
19
+ updated: Log;
19
20
  constructor(props?: Partial<Promotion>);
20
21
  }