@intelact/bright 0.9.103 → 0.9.105

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,16 @@ import { Post } from '../post/post.model';
2
2
  import { Metric } from '../metric/metric.model';
3
3
  import { User } from '../user/user.model';
4
4
  import { StatusLabel, StatusType } from '../common';
5
+ import { Item } from '../item';
6
+ import { Context } from '../ui';
7
+ export interface IBoostAuthorisation {
8
+ edit: boolean;
9
+ publish: boolean;
10
+ unpublish: boolean;
11
+ end: boolean;
12
+ delete: boolean;
13
+ isValid: boolean;
14
+ }
5
15
  export declare class Boost {
6
16
  id: number;
7
17
  title: string;
@@ -22,4 +32,10 @@ export declare class Boost {
22
32
  get totalLikes(): Metric;
23
33
  get totalShares(): Metric;
24
34
  get totalDownloads(): Metric;
35
+ authorisation: IBoostAuthorisation;
36
+ validators: Item<boolean>[];
37
+ setValidators(): void;
38
+ validate(): void;
39
+ get statusContext(): Context;
40
+ get labelContext(): Context;
25
41
  }
@@ -17,6 +17,8 @@ const user_model_1 = require("../user/user.model");
17
17
  const common_1 = require("../common");
18
18
  const metric_1 = require("../metric");
19
19
  const user_1 = require("../user");
20
+ const item_1 = require("../item");
21
+ const ui_1 = require("../ui");
20
22
  let Boost = class Boost {
21
23
  id;
22
24
  title;
@@ -51,6 +53,95 @@ let Boost = class Boost {
51
53
  get totalDownloads() {
52
54
  return this?.metrics?.find(i => i.event === user_1.UserEvent.Download);
53
55
  }
56
+ authorisation = {
57
+ edit: false,
58
+ publish: false,
59
+ unpublish: false,
60
+ end: false,
61
+ delete: false,
62
+ isValid: false
63
+ };
64
+ validators;
65
+ setValidators() {
66
+ this.validators = [
67
+ new item_1.Item({
68
+ name: 'title',
69
+ title: 'boostTitle',
70
+ value: false,
71
+ icon: 't'
72
+ }),
73
+ new item_1.Item({
74
+ name: 'period',
75
+ title: 'boostPeriod',
76
+ value: false,
77
+ icon: 'calendar'
78
+ }),
79
+ new item_1.Item({
80
+ name: 'items',
81
+ title: 'boostPosts',
82
+ value: false,
83
+ icon: 'book'
84
+ })
85
+ ];
86
+ }
87
+ validate() {
88
+ if (!this.validators) {
89
+ this.setValidators();
90
+ }
91
+ this.authorisation.edit = false;
92
+ this.authorisation.delete = false;
93
+ this.authorisation.publish = false;
94
+ this.authorisation.unpublish = false;
95
+ this.authorisation.end = false;
96
+ this.authorisation.isValid = true;
97
+ if (this.status === common_1.StatusType.Draft) {
98
+ this.authorisation.edit = true;
99
+ this.authorisation.delete = true;
100
+ }
101
+ if (this.status === common_1.StatusType.Published &&
102
+ this.label === common_1.StatusLabel.Upcoming) {
103
+ this.authorisation.unpublish = true;
104
+ }
105
+ if (this.status === common_1.StatusType.Published &&
106
+ this.label === common_1.StatusLabel.Live) {
107
+ this.authorisation.end = true;
108
+ }
109
+ let validator;
110
+ if (!this.title || this.title.trim().length === 0) {
111
+ validator = this.validators?.find(i => i.name === 'title');
112
+ validator.value = false;
113
+ this.authorisation.isValid = false;
114
+ }
115
+ if (!this.startDate || !this.endDate) {
116
+ validator = this.validators?.find(i => i.name === 'period');
117
+ validator.value = false;
118
+ this.authorisation.isValid = false;
119
+ }
120
+ if (!this.items || this.items.length === 0) {
121
+ validator = this.validators?.find(i => i.name === 'items');
122
+ validator.value = false;
123
+ this.authorisation.isValid = false;
124
+ }
125
+ if (this.status === common_1.StatusType.Draft) {
126
+ const isExpired = this.label === common_1.StatusLabel.Expired;
127
+ const isEnded = this.label === common_1.StatusLabel.Ended;
128
+ this.authorisation.publish = !isExpired && !isEnded;
129
+ }
130
+ }
131
+ get statusContext() {
132
+ return this.status === common_1.StatusType.Published ? ui_1.Context.Info : ui_1.Context.Secondary;
133
+ }
134
+ get labelContext() {
135
+ return this.label === common_1.StatusLabel.Expired
136
+ ? ui_1.Context.Secondary
137
+ : this.label === common_1.StatusLabel.Live
138
+ ? ui_1.Context.Danger
139
+ : this.label === common_1.StatusLabel.Upcoming
140
+ ? ui_1.Context.Success
141
+ : this.label === common_1.StatusLabel.Ended
142
+ ? ui_1.Context.Dark
143
+ : ui_1.Context.Secondary;
144
+ }
54
145
  };
55
146
  exports.Boost = Boost;
56
147
  __decorate([
@@ -106,6 +197,37 @@ __decorate([
106
197
  (0, class_transformer_1.Type)(() => Date),
107
198
  __metadata("design:type", Date)
108
199
  ], Boost.prototype, "updatedOn", void 0);
200
+ __decorate([
201
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
202
+ __metadata("design:type", Object)
203
+ ], Boost.prototype, "authorisation", void 0);
204
+ __decorate([
205
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
206
+ (0, class_transformer_1.Type)(() => item_1.Item),
207
+ __metadata("design:type", Array)
208
+ ], Boost.prototype, "validators", void 0);
209
+ __decorate([
210
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
211
+ __metadata("design:type", Function),
212
+ __metadata("design:paramtypes", []),
213
+ __metadata("design:returntype", void 0)
214
+ ], Boost.prototype, "setValidators", null);
215
+ __decorate([
216
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
217
+ __metadata("design:type", Function),
218
+ __metadata("design:paramtypes", []),
219
+ __metadata("design:returntype", void 0)
220
+ ], Boost.prototype, "validate", null);
221
+ __decorate([
222
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
223
+ __metadata("design:type", String),
224
+ __metadata("design:paramtypes", [])
225
+ ], Boost.prototype, "statusContext", null);
226
+ __decorate([
227
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
228
+ __metadata("design:type", String),
229
+ __metadata("design:paramtypes", [])
230
+ ], Boost.prototype, "labelContext", null);
109
231
  exports.Boost = Boost = __decorate([
110
232
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
111
233
  __metadata("design:paramtypes", [Object])
@@ -1 +1 @@
1
- {"version":3,"file":"boost.model.js","sourceRoot":"","sources":["../../src/boost/boost.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA0C;AAC1C,yDAAgD;AAChD,mDAA0C;AAC1C,sCAAoD;AACpD,sCAAuC;AAC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CAAC;AAmChB;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;4CAQ7B;AAID;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;yCACW;AAS5B;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;0CAuB7B;AAOD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;qCA2D7B;AAMD;IAAC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;0CAG7B;AAMD;IAAC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;yCAW7B;gBAnOW,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CAoOjB"}
@@ -14,4 +14,10 @@ export declare class Category {
14
14
  updatedOn: Date;
15
15
  constructor(props?: Partial<Category>);
16
16
  static toItemList(data: Category[], key?: 'id' | 'hash'): Item<any>[];
17
+ get totalItems(): Metric;
18
+ get totalSeen(): Metric;
19
+ get totalBookmarks(): Metric;
20
+ get totalLikes(): Metric;
21
+ get totalShares(): Metric;
22
+ get totalDownloads(): Metric;
17
23
  }
@@ -14,6 +14,8 @@ const class_transformer_1 = require("class-transformer");
14
14
  const item_model_1 = require("../item/item.model");
15
15
  const metric_model_1 = require("../metric/metric.model");
16
16
  const user_model_1 = require("../user/user.model");
17
+ const metric_1 = require("../metric");
18
+ const user_1 = require("../user");
17
19
  class Category {
18
20
  id;
19
21
  title;
@@ -36,6 +38,24 @@ class Category {
36
38
  value: i[key]
37
39
  }));
38
40
  }
41
+ get totalItems() {
42
+ return this?.metrics?.find(i => i.event === metric_1.MetricType.Items);
43
+ }
44
+ get totalSeen() {
45
+ return this?.metrics?.find(i => i.event === user_1.UserEvent.Seen);
46
+ }
47
+ get totalBookmarks() {
48
+ return this?.metrics?.find(i => i.event === user_1.UserEvent.Bookmark);
49
+ }
50
+ get totalLikes() {
51
+ return this?.metrics?.find(i => i.event === user_1.UserEvent.Like);
52
+ }
53
+ get totalShares() {
54
+ return this?.metrics?.find(i => i.event === user_1.UserEvent.Share);
55
+ }
56
+ get totalDownloads() {
57
+ return this?.metrics?.find(i => i.event === user_1.UserEvent.Download);
58
+ }
39
59
  }
40
60
  exports.Category = Category;
41
61
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"category.model.js","sourceRoot":"","sources":["../../src/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA0C;AAC1C,yDAAgD;AAChD,mDAA0C;AAG1C,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAeb,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,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,iBAAI,CAAC;YAC7B,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AA3ED,4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;8BACN,IAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;2CAAC"}
@@ -12,6 +12,8 @@ export declare class Metric {
12
12
  iconActive: IconProp;
13
13
  constructor(props?: Partial<Metric>);
14
14
  toggleState(): void;
15
+ increase(): void;
16
+ decrease(): void;
15
17
  revertState(): void;
16
18
  static seen(val: number, active?: boolean): Metric;
17
19
  static like(val: number, active?: boolean): Metric;
@@ -43,6 +43,14 @@ class Metric {
43
43
  break;
44
44
  }
45
45
  }
46
+ increase() {
47
+ this.value = this.value || 0;
48
+ this.value = this.value + 1;
49
+ }
50
+ decrease() {
51
+ this.value = this.value || 0;
52
+ this.value = this.value > 1 ? this.value - 1 : 0;
53
+ }
46
54
  revertState() {
47
55
  let val;
48
56
  switch (this.event) {
@@ -1 +1 @@
1
- {"version":3,"file":"metric.model.js","sourceRoot":"","sources":["../../src/metric/metric.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAA4D;AAC5D,mDAA+C;AAE/C,+CAA2C;AAG3C,MAAa,MAAM;IAGlB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,KAAK,CAAyB;IAI9B,KAAK,GAAW,CAAC,CAAC;IAIlB,MAAM,GAAY,KAAK,CAAC;IAIxB,IAAI,CAAW;IAIf,UAAU,CAAW;IAErB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAOD,WAAW;QAEV,IAAI,GAAW,CAAC;QAEhB,QAAQ,IAAI,CAAC,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AAC;;sCACI;AAIxB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,IAAI,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;;oCACtD;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,IAAI,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;;0CAC3D"}
@@ -13,6 +13,8 @@ import { Context } from '../ui/context.enum';
13
13
  import { Popularity } from '../popularity/popularity.model';
14
14
  import { IPostAdditionals } from './post.additionals';
15
15
  export interface IPostAuthorization {
16
+ edit: boolean;
17
+ delete: boolean;
16
18
  draft: boolean;
17
19
  approve: boolean;
18
20
  publish: boolean;
@@ -21,6 +23,7 @@ export interface IPostAuthorization {
21
23
  unarchive: boolean;
22
24
  block: boolean;
23
25
  unblock: boolean;
26
+ isValid: boolean;
24
27
  }
25
28
  export declare class Post {
26
29
  id: number;
@@ -58,6 +61,8 @@ export declare class Post {
58
61
  feedback: Feedback;
59
62
  collection: Post[];
60
63
  gallery: GalleryItem[];
64
+ authorisation: IPostAuthorization;
65
+ validators: Item<boolean>[];
61
66
  constructor(props?: Partial<Post>);
62
67
  get type(): PostType;
63
68
  get seen(): Metric;
@@ -65,9 +70,8 @@ export declare class Post {
65
70
  get like(): Metric;
66
71
  get share(): Metric;
67
72
  get download(): Metric;
68
- getStatusAuthorizations(): IPostAuthorization;
69
- getPublishValidators(): Item[];
70
- validateForPublish(): boolean;
71
- getStatusContext(): Context;
73
+ setValidators(): void;
74
+ validate(): void;
75
+ get statusContext(): Context;
72
76
  static getIcon(postType: PostType, custom?: boolean): "/assets/icons/content-type-article.svg" | "file-lines" | "/assets/icons/content-type-book.svg" | "book-open" | "/assets/icons/content-type-audio.svg" | "headphones" | "/assets/icons/content-type-video.svg" | "circle-play" | "/assets/icons/content-type-news.svg" | "newspaper" | "/assets/icons/content-type-event.svg" | "microphone";
73
77
  }