@intelact/bright 0.9.77 → 0.9.79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. package/lib/dtos/index.d.ts +2 -1
  2. package/lib/dtos/index.js +2 -1
  3. package/lib/dtos/index.js.map +1 -1
  4. package/lib/dtos/notification.dto.d.ts +4 -0
  5. package/lib/dtos/notification.dto.js +29 -0
  6. package/lib/dtos/notification.dto.js.map +1 -0
  7. package/lib/enums/module.enum.d.ts +22 -0
  8. package/lib/enums/module.enum.js +24 -1
  9. package/lib/enums/module.enum.js.map +1 -1
  10. package/lib/enums/tracks.enum.d.ts +12 -8
  11. package/lib/enums/tracks.enum.js +16 -12
  12. package/lib/enums/tracks.enum.js.map +1 -1
  13. package/lib/helpers/index.d.ts +2 -0
  14. package/lib/helpers/index.js +19 -0
  15. package/lib/helpers/index.js.map +1 -0
  16. package/lib/helpers/popularity.helper.d.ts +2 -0
  17. package/lib/helpers/popularity.helper.js +58 -0
  18. package/lib/helpers/popularity.helper.js.map +1 -0
  19. package/lib/helpers/post.helper.d.ts +2 -0
  20. package/lib/helpers/post.helper.js +22 -0
  21. package/lib/helpers/post.helper.js.map +1 -0
  22. package/lib/index.d.ts +1 -0
  23. package/lib/index.js +1 -0
  24. package/lib/index.js.map +1 -1
  25. package/lib/models/author.d.ts +3 -3
  26. package/lib/models/author.js +7 -7
  27. package/lib/models/author.js.map +1 -1
  28. package/lib/models/boost.d.ts +3 -3
  29. package/lib/models/boost.js +10 -11
  30. package/lib/models/boost.js.map +1 -1
  31. package/lib/models/brand.d.ts +4 -4
  32. package/lib/models/brand.js +19 -19
  33. package/lib/models/brand.js.map +1 -1
  34. package/lib/models/category.js +0 -1
  35. package/lib/models/category.js.map +1 -1
  36. package/lib/models/collection.d.ts +3 -3
  37. package/lib/models/collection.js +10 -11
  38. package/lib/models/collection.js.map +1 -1
  39. package/lib/models/feedback.d.ts +3 -5
  40. package/lib/models/feedback.js +12 -36
  41. package/lib/models/feedback.js.map +1 -1
  42. package/lib/models/log.d.ts +7 -7
  43. package/lib/models/log.js +6 -6
  44. package/lib/models/log.js.map +1 -1
  45. package/lib/models/post.d.ts +15 -17
  46. package/lib/models/post.js +69 -160
  47. package/lib/models/post.js.map +1 -1
  48. package/lib/models/promotion.d.ts +5 -4
  49. package/lib/models/promotion.js +18 -14
  50. package/lib/models/promotion.js.map +1 -1
  51. package/lib/models/publisher.d.ts +4 -3
  52. package/lib/models/publisher.js +12 -8
  53. package/lib/models/publisher.js.map +1 -1
  54. package/lib/models/question.d.ts +20 -17
  55. package/lib/models/question.js +80 -61
  56. package/lib/models/question.js.map +1 -1
  57. package/lib/models/response.d.ts +1 -0
  58. package/lib/models/survey.d.ts +9 -11
  59. package/lib/models/survey.js +37 -47
  60. package/lib/models/survey.js.map +1 -1
  61. package/lib/models/topic.d.ts +2 -2
  62. package/lib/models/topic.js +6 -56
  63. package/lib/models/topic.js.map +1 -1
  64. package/lib/models/user.d.ts +4 -4
  65. package/lib/models/user.js +100 -22
  66. package/lib/models/user.js.map +1 -1
  67. package/lib/tsconfig.tsbuildinfo +1 -1
  68. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/models/brand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,oCAAgF;AAChF,2CAAwC;AACxC,iCAA8B;AAE9B,MAAa,KAAK;IAIjB,EAAE,CAAS;IASX,QAAQ,CAAS;IAMjB,IAAI,CAAS;IAMb,MAAM,CAAS;IAMf,GAAG,CAAS;IAMZ,KAAK,CAAS;IAMd,WAAW,CAAS;IAMpB,QAAQ,CAAS;IAMjB,IAAI,CAAS;IAMb,MAAM,CAAoB;IAO1B,UAAU,CAAU;IAMpB,UAAU,CAAS;IAOnB,UAAU,CAAU;IAMpB,OAAO,CAAe;IAMtB,YAAY,CAAa;IAOzB,QAAQ,CAAiB;IAOzB,UAAU,CAAc;IAExB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAA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7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,KAAK,CAAC;8BACX,KAAK;2CAAC"}
@@ -64,7 +64,6 @@ __decorate([
64
64
  __decorate([
65
65
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
66
66
  (0, class_transformer_1.Type)(() => metric_1.Metric),
67
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalQuestions', obj?.totalQuestions, ['fas', 'circle-question'])),
68
67
  __metadata("design:type", metric_1.Metric)
69
68
  ], Category.prototype, "metricQuestions", void 0);
70
69
  //# sourceMappingURL=category.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,iCAA8B;AAC9B,qCAAkC;AAKlC,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAIpB,IAAI,CAAS;IAIb,eAAe,CAAU;IAWzB,eAAe,CAAS;IAGxB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAgB,EAAE,MAAgB,IAAI;QACvD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAG,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,WAAI,CAAC;YAC7B,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AApDD,4BAoDC;AAhDA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CA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,OAAO,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,WAAI,CAAC;YAC7B,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AAlDD,4BAkDC;AA9CA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;uCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;sCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;6CACW;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACN;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACK;AAMzB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACF,eAAM;iDAAC"}
@@ -6,9 +6,9 @@ export declare class Collection {
6
6
  id: number;
7
7
  title: string;
8
8
  items: Post[];
9
- publisher: Publisher;
10
9
  metricPosts: Metric;
11
- logCreated: Log;
12
- logUpdated: Log;
10
+ created: Log;
11
+ updated: Log;
12
+ publisher: Publisher;
13
13
  constructor(props?: Partial<Collection>);
14
14
  }
@@ -19,10 +19,10 @@ class Collection {
19
19
  id;
20
20
  title;
21
21
  items;
22
- publisher;
23
22
  metricPosts;
24
- logCreated;
25
- logUpdated;
23
+ created;
24
+ updated;
25
+ publisher;
26
26
  constructor(props) {
27
27
  Object.assign(this, props);
28
28
  }
@@ -42,25 +42,24 @@ __decorate([
42
42
  (0, class_transformer_1.Type)(() => post_1.Post),
43
43
  __metadata("design:type", Array)
44
44
  ], Collection.prototype, "items", void 0);
45
- __decorate([
46
- (0, class_transformer_1.Expose)(),
47
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
48
- __metadata("design:type", publisher_1.Publisher)
49
- ], Collection.prototype, "publisher", void 0);
50
45
  __decorate([
51
46
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
52
47
  (0, class_transformer_1.Type)(() => metric_1.Metric),
53
- (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.total('totalPosts', obj?.totalPosts, ['fas', 'book-open'])),
54
48
  __metadata("design:type", metric_1.Metric)
55
49
  ], Collection.prototype, "metricPosts", void 0);
56
50
  __decorate([
57
51
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
58
52
  (0, class_transformer_1.Type)(() => log_1.Log),
59
53
  __metadata("design:type", log_1.Log)
60
- ], Collection.prototype, "logCreated", void 0);
54
+ ], Collection.prototype, "created", void 0);
61
55
  __decorate([
62
56
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
63
57
  (0, class_transformer_1.Type)(() => log_1.Log),
64
58
  __metadata("design:type", log_1.Log)
65
- ], Collection.prototype, "logUpdated", void 0);
59
+ ], Collection.prototype, "updated", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)(),
62
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
63
+ __metadata("design:type", publisher_1.Publisher)
64
+ ], Collection.prototype, "publisher", void 0);
66
65
  //# sourceMappingURL=collection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,iCAA8B;AAC9B,2CAAwC;AACxC,qCAAkC;AA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BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;8BACX,qBAAS;6CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { PostType } from '../enums';
2
- import { Item } from './item';
3
2
  import { Metric } from './metric';
4
3
  import { Log } from './log';
5
4
  export declare class Feedback {
@@ -7,13 +6,13 @@ export declare class Feedback {
7
6
  type: PostType;
8
7
  title: string;
9
8
  description: string;
10
- items: FeedbackItem[];
11
9
  icon: string;
12
10
  metricQuestions: Metric;
13
11
  metricPosts: Metric;
14
12
  metricUsers: Metric;
15
- logCreated: Log;
16
- logUpdated: Log;
13
+ created: Log;
14
+ updated: Log;
15
+ items: FeedbackItem[];
17
16
  constructor(props?: Partial<Feedback>);
18
17
  }
19
18
  export declare class FeedbackItem {
@@ -23,7 +22,6 @@ export declare class FeedbackItem {
23
22
  sort: number;
24
23
  readonly: boolean;
25
24
  options: FeedbackOption[];
26
- metrics: Item[];
27
25
  constructor(props?: Partial<FeedbackItem>);
28
26
  }
29
27
  export declare class FeedbackOption {
@@ -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;IAW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GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACA"}
@@ -1,11 +1,11 @@
1
- import { LogType, StatusType } from "../enums";
1
+ import { EventType, ModuleScope } 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;
8
- status?: StatusType;
9
- description?: string;
4
+ on: Date;
5
+ by?: User;
6
+ content?: string;
7
+ entityId?: number;
8
+ scope?: ModuleScope;
9
+ event?: EventType;
10
10
  constructor(props?: Partial<Log>);
11
11
  }
package/lib/models/log.js CHANGED
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Log = void 0;
4
4
  class Log {
5
- type;
6
- date;
7
- user;
8
- name;
9
- status;
10
- description;
5
+ on;
6
+ by;
7
+ content;
8
+ entityId;
9
+ scope;
10
+ event;
11
11
  constructor(props) {
12
12
  Object.assign(this, props);
13
13
  }
@@ -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;IAMf,EAAE,CAAO;IAQT,EAAE,CAAQ;IAMV,OAAO,CAAU;IAQjB,QAAQ,CAAU;IAQlB,KAAK,CAAe;IAMpB,KAAK,CAAa;IAElB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,kBA+CC"}
@@ -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(): {