@intelact/bright 0.9.160 → 0.9.162

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/lib/auth/sign.dto.d.ts +2 -1
  2. package/lib/auth/sign.dto.js +12 -6
  3. package/lib/auth/sign.dto.js.map +1 -1
  4. package/lib/author/author.model.d.ts +2 -0
  5. package/lib/author/author.model.js +18 -0
  6. package/lib/author/author.model.js.map +1 -1
  7. package/lib/boost/boost.model.d.ts +2 -0
  8. package/lib/boost/boost.model.js +21 -2
  9. package/lib/boost/boost.model.js.map +1 -1
  10. package/lib/brand/brand-setting.model.d.ts +2 -0
  11. package/lib/brand/brand-setting.model.js +18 -0
  12. package/lib/brand/brand-setting.model.js.map +1 -1
  13. package/lib/brand/brand.model.d.ts +2 -0
  14. package/lib/brand/brand.model.js +18 -0
  15. package/lib/brand/brand.model.js.map +1 -1
  16. package/lib/category/category.model.d.ts +2 -0
  17. package/lib/category/category.model.js +18 -0
  18. package/lib/category/category.model.js.map +1 -1
  19. package/lib/collection/collection.model.d.ts +2 -0
  20. package/lib/collection/collection.model.js +18 -0
  21. package/lib/collection/collection.model.js.map +1 -1
  22. package/lib/feedback/feedback-item.model.d.ts +2 -0
  23. package/lib/feedback/feedback-item.model.js +18 -0
  24. package/lib/feedback/feedback-item.model.js.map +1 -1
  25. package/lib/feedback/feedback-option.model.d.ts +2 -0
  26. package/lib/feedback/feedback-option.model.js +18 -0
  27. package/lib/feedback/feedback-option.model.js.map +1 -1
  28. package/lib/feedback/feedback.model.d.ts +2 -0
  29. package/lib/feedback/feedback.model.js +18 -0
  30. package/lib/feedback/feedback.model.js.map +1 -1
  31. package/lib/gallery/gallery.model.d.ts +2 -0
  32. package/lib/gallery/gallery.model.js +18 -0
  33. package/lib/gallery/gallery.model.js.map +1 -1
  34. package/lib/log/log.model.d.ts +2 -0
  35. package/lib/log/log.model.js +28 -0
  36. package/lib/log/log.model.js.map +1 -1
  37. package/lib/metric/metric.model.d.ts +2 -0
  38. package/lib/metric/metric.model.js +18 -0
  39. package/lib/metric/metric.model.js.map +1 -1
  40. package/lib/notification/notification.model.d.ts +2 -0
  41. package/lib/notification/notification.model.js +18 -0
  42. package/lib/notification/notification.model.js.map +1 -1
  43. package/lib/popularity/popularity.model.d.ts +2 -0
  44. package/lib/popularity/popularity.model.js +18 -0
  45. package/lib/popularity/popularity.model.js.map +1 -1
  46. package/lib/post/post.model.d.ts +3 -1
  47. package/lib/post/post.model.js +18 -0
  48. package/lib/post/post.model.js.map +1 -1
  49. package/lib/promotion/promotion.model.d.ts +2 -0
  50. package/lib/promotion/promotion.model.js +18 -0
  51. package/lib/promotion/promotion.model.js.map +1 -1
  52. package/lib/publisher/publisher.model.d.ts +2 -0
  53. package/lib/publisher/publisher.model.js +18 -0
  54. package/lib/publisher/publisher.model.js.map +1 -1
  55. package/lib/question/comment.model.d.ts +2 -0
  56. package/lib/question/comment.model.js +18 -0
  57. package/lib/question/comment.model.js.map +1 -1
  58. package/lib/question/question.model.d.ts +2 -0
  59. package/lib/question/question.model.js +18 -0
  60. package/lib/question/question.model.js.map +1 -1
  61. package/lib/report/report.model.d.ts +2 -0
  62. package/lib/report/report.model.js +18 -0
  63. package/lib/report/report.model.js.map +1 -1
  64. package/lib/survey/survey-item.model.d.ts +2 -0
  65. package/lib/survey/survey-item.model.js +18 -0
  66. package/lib/survey/survey-item.model.js.map +1 -1
  67. package/lib/survey/survey-option.model.d.ts +2 -0
  68. package/lib/survey/survey-option.model.js +18 -0
  69. package/lib/survey/survey-option.model.js.map +1 -1
  70. package/lib/survey/survey.model.d.ts +2 -0
  71. package/lib/survey/survey.model.js +18 -0
  72. package/lib/survey/survey.model.js.map +1 -1
  73. package/lib/topic/topic.model.d.ts +2 -0
  74. package/lib/topic/topic.model.js +18 -0
  75. package/lib/topic/topic.model.js.map +1 -1
  76. package/lib/tsconfig.tsbuildinfo +1 -1
  77. package/lib/user/user.model.d.ts +2 -0
  78. package/lib/user/user.model.js +18 -0
  79. package/lib/user/user.model.js.map +1 -1
  80. package/package.json +1 -1
@@ -9,4 +9,6 @@ export declare class Log {
9
9
  scope?: ModuleScope;
10
10
  event?: LogEventType;
11
11
  constructor(props?: Partial<Log>);
12
+ static toInstance(data: object, groups?: string[]): Log;
13
+ static toInstances(data: any[], groups?: string[]): Log[];
12
14
  }
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Log = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class Log {
5
15
  date;
6
16
  user;
@@ -11,6 +21,24 @@ class Log {
11
21
  constructor(props) {
12
22
  Object.assign(this, props);
13
23
  }
24
+ static toInstance(data, groups = ['admin']) {
25
+ return data ? (0, class_transformer_1.plainToInstance)(Log, data, { groups: groups || [] }) : null;
26
+ }
27
+ static toInstances(data, groups = ['admin']) {
28
+ return data ? (0, class_transformer_1.plainToInstance)(Log, data, { groups: groups || [] }) : [];
29
+ }
14
30
  }
15
31
  exports.Log = Log;
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", Function),
35
+ __metadata("design:paramtypes", [Object, Array]),
36
+ __metadata("design:returntype", void 0)
37
+ ], Log, "toInstance", null);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", Function),
41
+ __metadata("design:paramtypes", [Array, Array]),
42
+ __metadata("design:returntype", void 0)
43
+ ], Log, "toInstances", null);
16
44
  //# sourceMappingURL=log.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"log.model.js","sourceRoot":"","sources":["../../src/log/log.model.ts"],"names":[],"mappings":";;;AAKA,MAAa,GAAG;IAMf,IAAI,CAAO;IAQX,IAAI,CAAQ;IAMZ,OAAO,CAAU;IAQjB,QAAQ,CAAU;IAQlB,KAAK,CAAe;IAMpB,KAAK,CAAgB;IAErB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,kBA+CC"}
1
+ {"version":3,"file":"log.model.js","sourceRoot":"","sources":["../../src/log/log.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAM5D,MAAa,GAAG;IAMf,IAAI,CAAO;IAQX,IAAI,CAAQ;IAMZ,OAAO,CAAU;IAQjB,QAAQ,CAAU;IAQlB,KAAK,CAAe;IAMpB,KAAK,CAAgB;IAErB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAGM,AAAP,MAAM,CAAC,UAAU,CAAC,IAAY,EAAE,SAAmB,CAAC,OAAO,CAAC;QAC3D,OAAO,IAAI,CAAC,CAAC,CAAC,IAAA,mCAAe,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC3E,CAAC;IAGM,AAAP,MAAM,CAAC,WAAW,CAAC,IAAW,EAAE,SAAmB,CAAC,OAAO,CAAC;QAC3D,OAAO,IAAI,CAAC,CAAC,CAAC,IAAA,mCAAe,EAAC,GAAG,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IACzE,CAAC;CACD;AAzDD,kBAyDC;AARO;IADN,IAAA,0BAAM,GAAE;;;;2BAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;4BAGR"}
@@ -43,4 +43,6 @@ export declare class Metric {
43
43
  static byPromotion(data: IMetricData): Metric[];
44
44
  static byPublisher(data: IMetricData): Metric[];
45
45
  static getIconByType(metricType: UserEvent | MetricType, active?: boolean): IconProp;
46
+ static toInstance(data: object, groups?: string[]): Metric;
47
+ static toInstances(data: any[], groups?: string[]): Metric[];
46
48
  }
@@ -389,6 +389,12 @@ class Metric {
389
389
  return ['fas', 'gauge'];
390
390
  }
391
391
  }
392
+ static toInstance(data, groups = ['admin']) {
393
+ return data ? (0, class_transformer_1.plainToInstance)(Metric, data, { groups: groups || [] }) : null;
394
+ }
395
+ static toInstances(data, groups = ['admin']) {
396
+ return data ? (0, class_transformer_1.plainToInstance)(Metric, data, { groups: groups || [] }) : [];
397
+ }
392
398
  }
393
399
  exports.Metric = Metric;
394
400
  __decorate([
@@ -428,4 +434,16 @@ __decorate([
428
434
  (0, class_transformer_1.Type)(() => Boolean),
429
435
  __metadata("design:type", Boolean)
430
436
  ], Metric.prototype, "showTitle", void 0);
437
+ __decorate([
438
+ (0, class_transformer_1.Expose)(),
439
+ __metadata("design:type", Function),
440
+ __metadata("design:paramtypes", [Object, Array]),
441
+ __metadata("design:returntype", void 0)
442
+ ], Metric, "toInstance", null);
443
+ __decorate([
444
+ (0, class_transformer_1.Expose)(),
445
+ __metadata("design:type", Function),
446
+ __metadata("design:paramtypes", [Array, Array]),
447
+ __metadata("design:returntype", void 0)
448
+ ], Metric, "toInstances", null);
431
449
  //# sourceMappingURL=metric.model.js.map
@@ -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;I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AI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACD;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;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;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;yCACO;AAoapB;IADN,IAAA,0BAAM,GAAE;;;;8BAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;+BAGR"}
@@ -8,4 +8,6 @@ export declare class Notification {
8
8
  };
9
9
  autoClose?: number;
10
10
  constructor(props?: Partial<Notification>);
11
+ static toInstance(data: object, groups?: string[]): Notification;
12
+ static toInstances(data: any[], groups?: string[]): Notification[];
11
13
  }
@@ -21,6 +21,12 @@ class Notification {
21
21
  constructor(props) {
22
22
  Object.assign(this, props);
23
23
  }
24
+ static toInstance(data, groups = ['admin']) {
25
+ return data ? (0, class_transformer_1.plainToInstance)(Notification, data, { groups: groups || [] }) : null;
26
+ }
27
+ static toInstances(data, groups = ['admin']) {
28
+ return data ? (0, class_transformer_1.plainToInstance)(Notification, data, { groups: groups || [] }) : [];
29
+ }
24
30
  }
25
31
  exports.Notification = Notification;
26
32
  __decorate([
@@ -45,4 +51,16 @@ __decorate([
45
51
  (0, class_transformer_1.Transform)(({ value }) => value || 3000),
46
52
  __metadata("design:type", Number)
47
53
  ], Notification.prototype, "autoClose", void 0);
54
+ __decorate([
55
+ (0, class_transformer_1.Expose)(),
56
+ __metadata("design:type", Function),
57
+ __metadata("design:paramtypes", [Object, Array]),
58
+ __metadata("design:returntype", void 0)
59
+ ], Notification, "toInstance", null);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)(),
62
+ __metadata("design:type", Function),
63
+ __metadata("design:paramtypes", [Array, Array]),
64
+ __metadata("design:returntype", void 0)
65
+ ], Notification, "toInstances", null);
48
66
  //# sourceMappingURL=notification.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../src/notification/notification.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,2DAAuD;AAGvD,MAAa,YAAY;IAMxB,IAAI,CAAmB;IAMvB,KAAK,CAAS;IAMd,OAAO,CAAS;IAMhB,IAAI,CAA0B;IAQ9B,SAAS,CAAU;IAEnB,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArCD,oCAqCC;AA/BA;IADC,IAAA,0BAAM,GAAE;;0CACc;AAMvB;IADC,IAAA,0BAAM,GAAE;;2CACK;AAMd;IADC,IAAA,0BAAM,GAAE;;6CACO;AAMhB;IADC,IAAA,0BAAM,GAAE;;0CACqB;AAQ9B;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC;;+CACrB"}
1
+ {"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../src/notification/notification.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA6E;AAC7E,2DAAuD;AAGvD,MAAa,YAAY;IAMxB,IAAI,CAAmB;IAMvB,KAAK,CAAS;IAMd,OAAO,CAAS;IAMhB,IAAI,CAA0B;IAQ9B,SAAS,CAAU;IAEnB,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAGM,AAAP,MAAM,CAAC,UAAU,CAAC,IAAY,EAAE,SAAmB,CAAC,OAAO,CAAC;QAC3D,OAAO,IAAI,CAAC,CAAC,CAAC,IAAA,mCAAe,EAAC,YAAY,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACpF,CAAC;IAGM,AAAP,MAAM,CAAC,WAAW,CAAC,IAAW,EAAE,SAAmB,CAAC,OAAO,CAAC;QAC3D,OAAO,IAAI,CAAC,CAAC,CAAC,IAAA,mCAAe,EAAC,YAAY,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAClF,CAAC;CACD;AA/CD,oCA+CC;AAzCA;IADC,IAAA,0BAAM,GAAE;;0CACc;AAMvB;IADC,IAAA,0BAAM,GAAE;;2CACK;AAMd;IADC,IAAA,0BAAM,GAAE;;6CACO;AAMhB;IADC,IAAA,0BAAM,GAAE;;0CACqB;AAQ9B;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC;;+CACrB;AAOZ;IADN,IAAA,0BAAM,GAAE;;;;oCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;qCAGR"}
@@ -6,4 +6,6 @@ export declare class Popularity {
6
6
  context: Context;
7
7
  constructor(props?: Partial<Popularity>);
8
8
  static get(weight: number): Popularity;
9
+ static toInstance(data: object, groups?: string[]): Popularity;
10
+ static toInstances(data: any[], groups?: string[]): Popularity[];
9
11
  }
@@ -71,6 +71,12 @@ class Popularity {
71
71
  });
72
72
  }
73
73
  }
74
+ static toInstance(data, groups = ['admin']) {
75
+ return data ? (0, class_transformer_1.plainToInstance)(Popularity, data, { groups: groups || [] }) : null;
76
+ }
77
+ static toInstances(data, groups = ['admin']) {
78
+ return data ? (0, class_transformer_1.plainToInstance)(Popularity, data, { groups: groups || [] }) : [];
79
+ }
74
80
  }
75
81
  exports.Popularity = Popularity;
76
82
  __decorate([
@@ -92,4 +98,16 @@ __decorate([
92
98
  __metadata("design:paramtypes", [Number]),
93
99
  __metadata("design:returntype", Popularity)
94
100
  ], Popularity, "get", null);
101
+ __decorate([
102
+ (0, class_transformer_1.Expose)(),
103
+ __metadata("design:type", Function),
104
+ __metadata("design:paramtypes", [Object, Array]),
105
+ __metadata("design:returntype", void 0)
106
+ ], Popularity, "toInstance", null);
107
+ __decorate([
108
+ (0, class_transformer_1.Expose)(),
109
+ __metadata("design:type", Function),
110
+ __metadata("design:paramtypes", [Array, Array]),
111
+ __metadata("design:returntype", void 0)
112
+ ], Popularity, "toInstances", null);
95
113
  //# sourceMappingURL=popularity.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"popularity.model.js","sourceRoot":"","sources":["../../src/popularity/popularity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,uDAAmD;AACnD,qDAA6C;AAG7C,MAAa,UAAU;IAGtB,IAAI,CAAiB;IAIrB,MAAM,CAAS;IAGf,OAAO,CAAU;IAEjB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAGM,AAAP,MAAM,CAAC,GAAG,CAAC,MAAc;QAExB,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,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AAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,WAAW;gBAChC,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,sBAAO,CAAC,MAAM;aACvB,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD;AA3ED,gCA2EC;AAxEA;IADC,IAAA,0BAAM,GAAE;;wCACY;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACQ;AAOV;IADN,IAAA,0BAAM,GAAE;;;oCACmB,UAAU;2BAyDrC"}
1
+ {"version":3,"file":"popularity.model.js","sourceRoot":"","sources":["../../src/popularity/popularity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAkE;AAClE,uDAAmD;AACnD,qDAA6C;AAG7C,MAAa,UAAU;IAGtB,IAAI,CAAiB;IAIrB,MAAM,CAAS;IAGf,OAAO,CAAU;IAEjB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAGM,AAAP,MAAM,CAAC,GAAG,CAAC,MAAc;QAExB,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,sBAAO,CAAC,KAAK;aACtB,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YACrB,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,sBAAO,CAAC,SAAS;aAC1B,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YACpC,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,MAAM,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAClF,CAAC;IAGM,AAAP,MAAM,CAAC,WAAW,CAAC,IAAW,EAAE,SAAmB,CAAC,OAAO,CAAC;QAC3D,OAAO,IAAI,CAAC,CAAC,CAAC,IAAA,mCAAe,EAAC,UAAU,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAChF,CAAC;CACD;AArFD,gCAqFC;AAlFA;IADC,IAAA,0BAAM,GAAE;;wCACY;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACQ;AAOV;IADN,IAAA,0BAAM,GAAE;;;oCACmB,UAAU;2BAyDrC;AAGM;IADN,IAAA,0BAAM,GAAE;;;;kCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;mCAGR"}
@@ -79,5 +79,7 @@ export declare class Post {
79
79
  validateForPublic(): void;
80
80
  validate(): void;
81
81
  get statusContext(): Context;
82
- 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";
82
+ static getIcon(postType: PostType, custom?: boolean): "file-lines" | "microphone" | "circle-play" | "newspaper" | "headphones" | "book-open" | "/assets/icons/content-type-article.svg" | "/assets/icons/content-type-book.svg" | "/assets/icons/content-type-audio.svg" | "/assets/icons/content-type-video.svg" | "/assets/icons/content-type-news.svg" | "/assets/icons/content-type-event.svg";
83
+ static toInstance(data: object, groups?: string[]): Post;
84
+ static toInstances(data: any[], groups?: string[]): Post[];
83
85
  }
@@ -311,6 +311,12 @@ class Post {
311
311
  return custom ? '/assets/icons/content-type-event.svg' : 'microphone';
312
312
  }
313
313
  }
314
+ static toInstance(data, groups = ['admin']) {
315
+ return data ? (0, class_transformer_1.plainToInstance)(Post, data, { groups: groups || [] }) : null;
316
+ }
317
+ static toInstances(data, groups = ['admin']) {
318
+ return data ? (0, class_transformer_1.plainToInstance)(Post, data, { groups: groups || [] }) : [];
319
+ }
314
320
  }
315
321
  exports.Post = Post;
316
322
  __decorate([
@@ -523,4 +529,16 @@ __decorate([
523
529
  __metadata("design:paramtypes", [String, Boolean]),
524
530
  __metadata("design:returntype", void 0)
525
531
  ], Post, "getIcon", null);
532
+ __decorate([
533
+ (0, class_transformer_1.Expose)(),
534
+ __metadata("design:type", Function),
535
+ __metadata("design:paramtypes", [Object, Array]),
536
+ __metadata("design:returntype", void 0)
537
+ ], Post, "toInstance", null);
538
+ __decorate([
539
+ (0, class_transformer_1.Expose)(),
540
+ __metadata("design:type", Function),
541
+ __metadata("design:paramtypes", [Array, Array]),
542
+ __metadata("design:returntype", void 0)
543
+ ], Post, "toInstances", null);
526
544
  //# sourceMappingURL=post.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"post.model.js","sourceRoot":"","sources":["../../src/post/post.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAE5D,mDAA0C;AAC1C,yDAAgD;AAChD,kEAAyD;AACzD,sDAA6C;AAC7C,4DAAuD;AACvD,+DAAsD;AACtD,mDAA0C;AAC1C,yDAAgD;AAChD,uDAAmD;AACnD,2CAAuC;AACvC,qDAA4C;AAC5C,qEAA4D;AAE5D,kCAAoC;AAqBpC,MAAa,IAAI;IAIhB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,OAAO,CAAS;IAahB,IAAI,CAAmB;IAIvB,QAAQ,CAAS;IAOjB,IAAI,CAAW;IAOf,OAAO,CAAS;IAKhB,MAAM,CAAS;IA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ADN,IAAA,0BAAM,GAAE;;;;4BAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;6BAGR"}
@@ -41,4 +41,6 @@ export declare class Promotion {
41
41
  validate(): void;
42
42
  get statusContext(): Context;
43
43
  get labelContext(): Context;
44
+ static toInstance(data: object, groups?: string[]): Promotion;
45
+ static toInstances(data: any[], groups?: string[]): Promotion[];
44
46
  }
@@ -153,6 +153,12 @@ class Promotion {
153
153
  ? ui_1.Context.Dark
154
154
  : ui_1.Context.Secondary;
155
155
  }
156
+ static toInstance(data, groups = ['admin']) {
157
+ return data ? (0, class_transformer_1.plainToInstance)(Promotion, data, { groups: groups || [] }) : null;
158
+ }
159
+ static toInstances(data, groups = ['admin']) {
160
+ return data ? (0, class_transformer_1.plainToInstance)(Promotion, data, { groups: groups || [] }) : [];
161
+ }
156
162
  }
157
163
  exports.Promotion = Promotion;
158
164
  __decorate([
@@ -270,4 +276,16 @@ __decorate([
270
276
  __metadata("design:type", String),
271
277
  __metadata("design:paramtypes", [])
272
278
  ], Promotion.prototype, "labelContext", null);
279
+ __decorate([
280
+ (0, class_transformer_1.Expose)(),
281
+ __metadata("design:type", Function),
282
+ __metadata("design:paramtypes", [Object, Array]),
283
+ __metadata("design:returntype", void 0)
284
+ ], Promotion, "toInstance", null);
285
+ __decorate([
286
+ (0, class_transformer_1.Expose)(),
287
+ __metadata("design:type", Function),
288
+ __metadata("design:paramtypes", [Array, Array]),
289
+ __metadata("design:returntype", void 0)
290
+ ], Promotion, "toInstances", null);
273
291
  //# sourceMappingURL=promotion.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.model.js","sourceRoot":"","sources":["../../src/promotion/promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,uDAAmD;AACnD,yDAAqD;AACrD,yDAAgD;AAChD,mDAA0C;AAC1C,kCAAoC;AACpC,kCAA+B;AAC/B,8BAAgC;AAWhC,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,K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AE,CAAC;;;6CAW7B;AAGM;IADN,IAAA,0BAAM,GAAE;;;;iCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;kCAGR"}
@@ -34,4 +34,6 @@ export declare class Publisher {
34
34
  get totalUsers(): Metric;
35
35
  get totalPosts(): Metric;
36
36
  static toItemList(data: Publisher[], key?: 'id' | 'shortname'): Item<any>[];
37
+ static toInstance(data: object, groups?: string[]): Publisher;
38
+ static toInstances(data: any[], groups?: string[]): Publisher[];
37
39
  }
@@ -70,6 +70,12 @@ class Publisher {
70
70
  value: i[key]
71
71
  }));
72
72
  }
73
+ static toInstance(data, groups = ['admin']) {
74
+ return data ? (0, class_transformer_1.plainToInstance)(Publisher, data, { groups: groups || [] }) : null;
75
+ }
76
+ static toInstances(data, groups = ['admin']) {
77
+ return data ? (0, class_transformer_1.plainToInstance)(Publisher, data, { groups: groups || [] }) : [];
78
+ }
73
79
  }
74
80
  exports.Publisher = Publisher;
75
81
  __decorate([
@@ -168,4 +174,16 @@ __decorate([
168
174
  (0, class_transformer_1.Type)(() => Date),
169
175
  __metadata("design:type", Date)
170
176
  ], Publisher.prototype, "invitedOn", void 0);
177
+ __decorate([
178
+ (0, class_transformer_1.Expose)(),
179
+ __metadata("design:type", Function),
180
+ __metadata("design:paramtypes", [Object, Array]),
181
+ __metadata("design:returntype", void 0)
182
+ ], Publisher, "toInstance", null);
183
+ __decorate([
184
+ (0, class_transformer_1.Expose)(),
185
+ __metadata("design:type", Function),
186
+ __metadata("design:paramtypes", [Array, Array]),
187
+ __metadata("design:returntype", void 0)
188
+ ], Publisher, "toInstances", null);
171
189
  //# sourceMappingURL=publisher.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"publisher.model.js","sourceRoot":"","sources":["../../src/publisher/publisher.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,+DAA2D;AAE3D,yDAAgD;AAChD,mDAA0C;AAC1C,sCAAuC;AACvC,kCAA+B;AAG/B,MAAa,SAAS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EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACA,iBAAI;kDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;kDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAmDT;IADN,IAAA,0BAAM,GAAE;;;;iCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;kCAGR"}
@@ -17,4 +17,6 @@ export declare class QuestionComment {
17
17
  publishedBy: User;
18
18
  publishedOn: Date;
19
19
  constructor(props?: Partial<QuestionComment>);
20
+ static toInstance(data: object, groups?: string[]): QuestionComment;
21
+ static toInstances(data: any[], groups?: string[]): QuestionComment[];
20
22
  }
@@ -32,6 +32,12 @@ class QuestionComment {
32
32
  constructor(props) {
33
33
  Object.assign(this, props);
34
34
  }
35
+ static toInstance(data, groups = ['admin']) {
36
+ return data ? (0, class_transformer_1.plainToInstance)(QuestionComment, data, { groups: groups || [] }) : null;
37
+ }
38
+ static toInstances(data, groups = ['admin']) {
39
+ return data ? (0, class_transformer_1.plainToInstance)(QuestionComment, data, { groups: groups || [] }) : [];
40
+ }
35
41
  }
36
42
  exports.QuestionComment = QuestionComment;
37
43
  __decorate([
@@ -96,4 +102,16 @@ __decorate([
96
102
  (0, class_transformer_1.Type)(() => Date),
97
103
  __metadata("design:type", Date)
98
104
  ], QuestionComment.prototype, "publishedOn", void 0);
105
+ __decorate([
106
+ (0, class_transformer_1.Expose)(),
107
+ __metadata("design:type", Function),
108
+ __metadata("design:paramtypes", [Object, Array]),
109
+ __metadata("design:returntype", void 0)
110
+ ], QuestionComment, "toInstance", null);
111
+ __decorate([
112
+ (0, class_transformer_1.Expose)(),
113
+ __metadata("design:type", Function),
114
+ __metadata("design:paramtypes", [Array, Array]),
115
+ __metadata("design:returntype", void 0)
116
+ ], QuestionComment, "toInstances", null);
99
117
  //# sourceMappingURL=comment.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"comment.model.js","sourceRoot":"","sources":["../../src/question/comment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,yDAAgD;AAChD,mDAA0C;AAC1C,uDAAmD;AACnD,qDAA4C;AAG5C,MAAa,eAAe;IAI3B,EAAE,CAAS;IAUX,MAAM,CAAS;IAGf,QAAQ,CAAW;IAGnB,OAAO,CAAS;IAKhB,MAAM,CAAa;IAMnB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,eAAe,CAAO;IAItB,eAAe,CAAO;IAItB,WAAW,CAAO;IAIlB,WAAW,CAAO;IAElB,YAAY,KAAgC;QAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhED,0CAgEC;AA5DA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO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,CAAC;8BACA,iBAAI;wDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;wDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACJ,iBAAI;oDAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;oDAAC;AAOX;IADN,IAAA,0BAAM,GAAE;;;;uCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;wCAGR"}
@@ -35,4 +35,6 @@ export declare class Question {
35
35
  get like(): Metric;
36
36
  get share(): Metric;
37
37
  get totalItems(): Metric;
38
+ static toInstance(data: object, groups?: string[]): Question;
39
+ static toInstances(data: any[], groups?: string[]): Question[];
38
40
  }
@@ -62,6 +62,12 @@ class Question {
62
62
  get totalItems() {
63
63
  return this?.metrics?.find(i => i.event === metric_1.MetricType.Items);
64
64
  }
65
+ static toInstance(data, groups = ['admin']) {
66
+ return data ? (0, class_transformer_1.plainToInstance)(Question, data, { groups: groups || [] }) : null;
67
+ }
68
+ static toInstances(data, groups = ['admin']) {
69
+ return data ? (0, class_transformer_1.plainToInstance)(Question, data, { groups: groups || [] }) : [];
70
+ }
65
71
  }
66
72
  exports.Question = Question;
67
73
  __decorate([
@@ -182,4 +188,16 @@ __decorate([
182
188
  (0, class_transformer_1.Type)(() => category_model_1.Category),
183
189
  __metadata("design:type", Array)
184
190
  ], Question.prototype, "categories", void 0);
191
+ __decorate([
192
+ (0, class_transformer_1.Expose)(),
193
+ __metadata("design:type", Function),
194
+ __metadata("design:paramtypes", [Object, Array]),
195
+ __metadata("design:returntype", void 0)
196
+ ], Question, "toInstance", null);
197
+ __decorate([
198
+ (0, class_transformer_1.Expose)(),
199
+ __metadata("design:type", Function),
200
+ __metadata("design:paramtypes", [Array, Array]),
201
+ __metadata("design:returntype", void 0)
202
+ ], Question, "toInstances", null);
185
203
  //# sourceMappingURL=question.model.js.map