@intelact/bright 0.9.169 → 0.9.171

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,7 @@ export declare class Boost {
36
36
  validators: Item<boolean>[];
37
37
  setValidators(): void;
38
38
  validate(): void;
39
+ setLabel(): void;
39
40
  get statusContext(): Context;
40
41
  get labelContext(): Context;
41
42
  static toInstance(data: object, groups?: string[]): Boost;
@@ -20,6 +20,7 @@ const metric_1 = require("../metric");
20
20
  const user_1 = require("../user");
21
21
  const item_1 = require("../item");
22
22
  const ui_1 = require("../ui");
23
+ const luxon_1 = require("luxon");
23
24
  let Boost = Boost_1 = class Boost {
24
25
  id;
25
26
  title;
@@ -132,6 +133,26 @@ let Boost = Boost_1 = class Boost {
132
133
  this.label === common_1.StatusLabel.Live) {
133
134
  this.authorisation.end = true;
134
135
  }
136
+ this.setLabel();
137
+ }
138
+ setLabel() {
139
+ if (!this.startDate || !this.endDate) {
140
+ this.label = null;
141
+ }
142
+ const today = luxon_1.DateTime.now().startOf('day');
143
+ const startDate = luxon_1.DateTime.fromJSDate(this.startDate).startOf('day');
144
+ const endDate = luxon_1.DateTime.fromJSDate(this.endDate).endOf('day');
145
+ if (this.status === common_1.StatusType.Published && startDate <= today && endDate >= today) {
146
+ this.label = common_1.StatusLabel.Live;
147
+ }
148
+ if (startDate > today) {
149
+ this.label = common_1.StatusLabel.Upcoming;
150
+ }
151
+ if (endDate < today) {
152
+ this.label = this.status === common_1.StatusType.Published
153
+ ? common_1.StatusLabel.Ended
154
+ : common_1.StatusLabel.Expired;
155
+ }
135
156
  }
136
157
  get statusContext() {
137
158
  return this.status === common_1.StatusType.Published ? ui_1.Context.Info : ui_1.Context.Secondary;
@@ -229,6 +250,12 @@ __decorate([
229
250
  __metadata("design:paramtypes", []),
230
251
  __metadata("design:returntype", void 0)
231
252
  ], Boost.prototype, "validate", null);
253
+ __decorate([
254
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
255
+ __metadata("design:type", Function),
256
+ __metadata("design:paramtypes", []),
257
+ __metadata("design:returntype", void 0)
258
+ ], Boost.prototype, "setLabel", null);
232
259
  __decorate([
233
260
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
234
261
  __metadata("design:type", String),
@@ -1 +1 @@
1
- {"version":3,"file":"boost.model.js","sourceRoot":"","sources":["../../src/boost/boost.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yDAAkE;AAClE,mDAA0C;AAC1C,yDAAgD;AAChD,mDAA0C;AAC1C,sCAAoD;AACpD,sCAAuC;AACvC,kCAAoC;AACpC,kCAA+B;AAC/B,8BAAgC;AAYzB,IAAM,KAAK,aAAX,MAAM,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAKd,MAAM,CAAa;IAGnB,KAAK,CAAc;IAInB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAed,OAAO,CAAW;IAKlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAEhB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAID,IAAI,UAAU;QACb,OAAO,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAG,mBAAU,CAAC,KAAK,CAAC,CAAC;IAC7D,CAAC;IAED,IAAI,SAAS;QACZ,OAAO,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAG,gBAAS,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IAED,IAAI,cAAc;QACjB,OAAO,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,KAAG,gBAAS,CAAC,QAAQ,CAAC,CAAC;IAC/D,CAAC;IAED,IAAI,UAAU;QACb,OAAO,IAAI,EAAE,OAAO,EAAE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CAmE7B;AAGD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;qCAwB7B;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;AAGM;IADN,IAAA,0BAAM,GAAE;;;;6BAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;8BAGR;gBA/QW,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CAgRjB"}
@@ -39,6 +39,7 @@ export declare class Promotion {
39
39
  get totalClicks(): Metric;
40
40
  setValidators(): void;
41
41
  validate(): void;
42
+ setLabel(): void;
42
43
  get statusContext(): Context;
43
44
  get labelContext(): Context;
44
45
  static toInstance(data: object, groups?: string[]): Promotion;
@@ -18,6 +18,7 @@ const user_model_1 = require("../user/user.model");
18
18
  const user_1 = require("../user");
19
19
  const item_1 = require("../item");
20
20
  const ui_1 = require("../ui");
21
+ const luxon_1 = require("luxon");
21
22
  class Promotion {
22
23
  id;
23
24
  title;
@@ -138,6 +139,26 @@ class Promotion {
138
139
  const isEnded = this.label === status_label_1.StatusLabel.Ended;
139
140
  this.authorisation.publish = !isExpired && !isEnded;
140
141
  }
142
+ this.setLabel();
143
+ }
144
+ setLabel() {
145
+ if (!this.startDate || !this.endDate) {
146
+ this.label = null;
147
+ }
148
+ const today = luxon_1.DateTime.now().startOf('day');
149
+ const startDate = luxon_1.DateTime.fromJSDate(this.startDate).startOf('day');
150
+ const endDate = luxon_1.DateTime.fromJSDate(this.endDate).endOf('day');
151
+ if (this.status === status_type_1.StatusType.Published && startDate <= today && endDate >= today) {
152
+ this.label = status_label_1.StatusLabel.Live;
153
+ }
154
+ if (startDate > today) {
155
+ this.label = status_label_1.StatusLabel.Upcoming;
156
+ }
157
+ if (endDate < today) {
158
+ this.label = this.status === status_type_1.StatusType.Published
159
+ ? status_label_1.StatusLabel.Ended
160
+ : status_label_1.StatusLabel.Expired;
161
+ }
141
162
  }
142
163
  get statusContext() {
143
164
  return this.status === status_type_1.StatusType.Published ? ui_1.Context.Info : ui_1.Context.Secondary;
@@ -266,6 +287,12 @@ __decorate([
266
287
  __metadata("design:paramtypes", []),
267
288
  __metadata("design:returntype", void 0)
268
289
  ], Promotion.prototype, "validate", null);
290
+ __decorate([
291
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
292
+ __metadata("design:type", Function),
293
+ __metadata("design:paramtypes", []),
294
+ __metadata("design:returntype", void 0)
295
+ ], Promotion.prototype, "setLabel", null);
269
296
  __decorate([
270
297
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
271
298
  __metadata("design:type", String),
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.model.js","sourceRoot":"","sources":["../../src/promotion/promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAkE;AAClE,uDAAmD;AACnD,yDAAqD;AACrD,yDAAgD;AAChD,mDAA0C;AAC1C,kCAAoC;AACpC,kCAA+B;AAC/B,8BAAgC;AAWhC,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,GAAG,CAAS;IAKZ,MAAM,CAAa;IAInB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAGd,KAAK,CAAc;IAUnB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,eAAe,CAAO;IAItB,eAAe,CAAO;IAItB,WAAW,CAAO;IAIlB,WAAW,CAAO;IAKlB,aAAa,GAA4B;QACxC,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,KAAK;QACd,SAAS,EAAE,KAA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