@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.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;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACX,iBAAI;sCAAC;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+BAAe,CAAC;;0CACA;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;;4CACE;AA6BhB;IADN,IAAA,0BAAM,GAAE;;;;gCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;iCAGR"}
@@ -51,4 +51,6 @@ export declare class Report<T = any[]> {
51
51
  rangeToPeriod(range: ChartRangeType): void;
52
52
  getPeriodDto(): PeriodDto;
53
53
  static fromDto(dto: ReportDto): Report;
54
+ static toInstance(data: object, groups?: string[]): Report<any[]>;
55
+ static toInstances(data: any[], groups?: string[]): Report<any[]>[];
54
56
  }
@@ -173,6 +173,12 @@ class Report {
173
173
  report.criterias = [];
174
174
  return report;
175
175
  }
176
+ static toInstance(data, groups = ['admin']) {
177
+ return data ? (0, class_transformer_1.plainToInstance)(Report, data, { groups: groups || [] }) : null;
178
+ }
179
+ static toInstances(data, groups = ['admin']) {
180
+ return data ? (0, class_transformer_1.plainToInstance)(Report, data, { groups: groups || [] }) : [];
181
+ }
176
182
  }
177
183
  exports.Report = Report;
178
184
  __decorate([
@@ -385,4 +391,16 @@ __decorate([
385
391
  __metadata("design:paramtypes", []),
386
392
  __metadata("design:returntype", report_dto_1.ReportDto)
387
393
  ], Report.prototype, "getDto", null);
394
+ __decorate([
395
+ (0, class_transformer_1.Expose)(),
396
+ __metadata("design:type", Function),
397
+ __metadata("design:paramtypes", [Object, Array]),
398
+ __metadata("design:returntype", void 0)
399
+ ], Report, "toInstance", null);
400
+ __decorate([
401
+ (0, class_transformer_1.Expose)(),
402
+ __metadata("design:type", Function),
403
+ __metadata("design:paramtypes", [Array, Array]),
404
+ __metadata("design:returntype", void 0)
405
+ ], Report, "toInstances", null);
388
406
  //# sourceMappingURL=report.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"report.model.js","sourceRoot":"","sources":["../../src/report/report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,qDAAoF;AACpF,kCAA+B;AAC/B,kCAAmC;AACnC,+CAA2C;AAC3C,6CAAyC;AACzC,kCAAoC;AACpC,oCAAqD;AACrD,sCAAsC;AACtC,iCAAiC;AAEjC,MAAa,MAAM;IAKf,SAAS,CAAO;IAKhB,OAAO,CAAO;IAKd,IAAI,CAAa;IAIjB,KAAK,CAAS;IAId,QAAQ,CAAS;IAIpB,WAAW,CAAS;IAMjB,UAAU,GAAmB,EAAE,CAAC;IAOnC,kBAAkB,GAAa,EAAE,CAAC;IAM/B,UAAU,GAAmB,EAAE,CAAA;IAOlC,kBAAkB,GAAa,EAAE,CAAC;IAM/B,MAAM,GAAmB,EAAE,CAAA;IAO9B,cAAc,GAAa,EAAE,CAAC;IAM3B,YAAY,GAAqB,EAAE,CAAA;IAMnC,oBAAoB,CAAa;IAMjC,MAAM,GAAsB,EAAE,CAAA;IAM9B,cAAc,CAAc;IAK5B,MAAM,GAA2B,EAAE,CAAC;IAKpC,aAAa,CAAiB;IAMjC,YAAY,CAAiB;IAK1B,KAAK,GAAW,EAAE,CAAC;IAOtB,QAAQ,CAAW;IAKnB,SAAS,GAAa,EAAE,CAAC;IAItB,EAAE,CAAM;IAKX,KAAK,CAAS;IAKd,OAAO,CAAU;IAEjB,YAAY,CAAO;IAEnB,UAAU,CAAO;IAKjB,IAAI,CAAI;IAKR,KAAK,CAAY;IAEjB,YAAY,KAAuB;QAClC,IAAI,CAAC,KAAK,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC7B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAGE,QAAQ,CAAC,MAAiC;QAC5C,IAAI,CAAC,SAAS,GAAG,MAAM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,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAM,GAAE;;qCACa;AAOtB;IALC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC;IAC1B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAM,GAAE;;wCACU;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAM,GAAE;;yCACgB;AAItB;IAFF,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;kCACE;AAKX;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAM,GAAE;;qCACK;AA2BX;IADF,IAAA,0BAAM,GAAE;;;;sCAIR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;0CAGR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;4CAGR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;yCAGR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;sCAgBR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;0CAGR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;qCAGR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;yCAGR;AAGD;IADC,IAAA,0BAAM,GAAE;;;oCACC,sBAAS;oCA0BlB;AAiEM;IADN,IAAA,0BAAM,GAAE;;;;8BAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;+BAGR"}
@@ -15,4 +15,6 @@ export declare class SurveyItem {
15
15
  updatedBy: User;
16
16
  updatedOn: Date;
17
17
  constructor(props?: Partial<SurveyItem>);
18
+ static toInstance(data: object, groups?: string[]): SurveyItem;
19
+ static toInstances(data: any[], groups?: string[]): SurveyItem[];
18
20
  }
@@ -30,6 +30,12 @@ class SurveyItem {
30
30
  constructor(props) {
31
31
  Object.assign(this, props);
32
32
  }
33
+ static toInstance(data, groups = ['admin']) {
34
+ return data ? (0, class_transformer_1.plainToInstance)(SurveyItem, data, { groups: groups || [] }) : null;
35
+ }
36
+ static toInstances(data, groups = ['admin']) {
37
+ return data ? (0, class_transformer_1.plainToInstance)(SurveyItem, data, { groups: groups || [] }) : [];
38
+ }
33
39
  }
34
40
  exports.SurveyItem = SurveyItem;
35
41
  __decorate([
@@ -91,4 +97,16 @@ __decorate([
91
97
  (0, class_transformer_1.Type)(() => Date),
92
98
  __metadata("design:type", Date)
93
99
  ], SurveyItem.prototype, "updatedOn", void 0);
100
+ __decorate([
101
+ (0, class_transformer_1.Expose)(),
102
+ __metadata("design:type", Function),
103
+ __metadata("design:paramtypes", [Object, Array]),
104
+ __metadata("design:returntype", void 0)
105
+ ], SurveyItem, "toInstance", null);
106
+ __decorate([
107
+ (0, class_transformer_1.Expose)(),
108
+ __metadata("design:type", Function),
109
+ __metadata("design:paramtypes", [Array, Array]),
110
+ __metadata("design:returntype", void 0)
111
+ ], SurveyItem, "toInstances", null);
94
112
  //# sourceMappingURL=survey-item.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey-item.model.js","sourceRoot":"","sources":["../../src/survey/survey-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA0C;AAC1C,iDAAwC;AACxC,+DAAqD;AAGrD,MAAa,UAAU;IAItB,EAAE,CAAS;IAKX,QAAQ,CAAS;IAMjB,QAAQ,CAAU;IAIlB,SAAS,CAAU;IAInB,QAAQ,CAAU;IAIlB,IAAI,CAAS;IAMb,MAAM,CAAS;IAIf,OAAO,CAAiB;IAMxB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAEhB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAA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,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;6CAAC;AAOT;IADN,IAAA,0BAAM,GAAE;;;;kCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;mCAGR"}
@@ -6,4 +6,6 @@ export declare class SurveyOption {
6
6
  isSelected: boolean;
7
7
  item: SurveyItem;
8
8
  constructor(props?: Partial<SurveyOption>);
9
+ static toInstance(data: object, groups?: string[]): SurveyOption;
10
+ static toInstances(data: any[], groups?: string[]): SurveyOption[];
9
11
  }
@@ -21,6 +21,12 @@ class SurveyOption {
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)(SurveyOption, data, { groups: groups || [] }) : null;
26
+ }
27
+ static toInstances(data, groups = ['admin']) {
28
+ return data ? (0, class_transformer_1.plainToInstance)(SurveyOption, data, { groups: groups || [] }) : [];
29
+ }
24
30
  }
25
31
  exports.SurveyOption = SurveyOption;
26
32
  __decorate([
@@ -47,4 +53,16 @@ __decorate([
47
53
  (0, class_transformer_1.Type)(() => survey_item_model_1.SurveyItem),
48
54
  __metadata("design:type", survey_item_model_1.SurveyItem)
49
55
  ], SurveyOption.prototype, "item", void 0);
56
+ __decorate([
57
+ (0, class_transformer_1.Expose)(),
58
+ __metadata("design:type", Function),
59
+ __metadata("design:paramtypes", [Object, Array]),
60
+ __metadata("design:returntype", void 0)
61
+ ], SurveyOption, "toInstance", null);
62
+ __decorate([
63
+ (0, class_transformer_1.Expose)(),
64
+ __metadata("design:type", Function),
65
+ __metadata("design:paramtypes", [Array, Array]),
66
+ __metadata("design:returntype", void 0)
67
+ ], SurveyOption, "toInstances", null);
50
68
  //# sourceMappingURL=survey-option.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey-option.model.js","sourceRoot":"","sources":["../../src/survey/survey-option.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,2DAAiD;AAEjD,MAAa,YAAY;IAIxB,EAAE,CAAS;IAKX,OAAO,CAAS;IAMhB,IAAI,CAAS;IAIb,UAAU,CAAU;IAMpB,IAAI,CAAa;IAEjB,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA9BD,oCA8BC;AA1BA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;6CACO;AAMhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACN;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;gDACA;AAMpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAU,CAAC;8BACjB,8BAAU;0CAAC"}
1
+ {"version":3,"file":"survey-option.model.js","sourceRoot":"","sources":["../../src/survey/survey-option.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAkE;AAClE,2DAAiD;AAEjD,MAAa,YAAY;IAIxB,EAAE,CAAS;IAKX,OAAO,CAAS;IAMhB,IAAI,CAAS;IAIb,UAAU,CAAU;IAMpB,IAAI,CAAa;IAEjB,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;AAxCD,oCAwCC;AApCA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;6CACO;AAMhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACN;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;gDACA;AAMpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAAU,CAAC;8BACjB,8BAAU;0CAAC;AAOV;IADN,IAAA,0BAAM,GAAE;;;;oCAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;qCAGR"}
@@ -45,4 +45,6 @@ export declare class Survey {
45
45
  validate(): void;
46
46
  get statusContext(): Context;
47
47
  get labelContext(): Context;
48
+ static toInstance(data: object, groups?: string[]): Survey;
49
+ static toInstances(data: any[], groups?: string[]): Survey[];
48
50
  }
@@ -171,6 +171,12 @@ class Survey {
171
171
  ? ui_1.Context.Dark
172
172
  : ui_1.Context.Secondary;
173
173
  }
174
+ static toInstance(data, groups = ['admin']) {
175
+ return data ? (0, class_transformer_1.plainToInstance)(Survey, data, { groups: groups || [] }) : null;
176
+ }
177
+ static toInstances(data, groups = ['admin']) {
178
+ return data ? (0, class_transformer_1.plainToInstance)(Survey, data, { groups: groups || [] }) : [];
179
+ }
174
180
  }
175
181
  exports.Survey = Survey;
176
182
  __decorate([
@@ -298,4 +304,16 @@ __decorate([
298
304
  __metadata("design:type", String),
299
305
  __metadata("design:paramtypes", [])
300
306
  ], Survey.prototype, "labelContext", null);
307
+ __decorate([
308
+ (0, class_transformer_1.Expose)(),
309
+ __metadata("design:type", Function),
310
+ __metadata("design:paramtypes", [Object, Array]),
311
+ __metadata("design:returntype", void 0)
312
+ ], Survey, "toInstance", null);
313
+ __decorate([
314
+ (0, class_transformer_1.Expose)(),
315
+ __metadata("design:type", Function),
316
+ __metadata("design:paramtypes", [Array, Array]),
317
+ __metadata("design:returntype", void 0)
318
+ ], Survey, "toInstances", null);
301
319
  //# sourceMappingURL=survey.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey.model.js","sourceRoot":"","sources":["../../src/survey/survey.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,uDAAmD;AACnD,yDAAqD;AACrD,yDAAgD;AAChD,mDAA0C;AAC1C,2DAAiD;AACjD,kCAAoC;AACpC,sCAAuC;AACvC,kCAA+B;AAC/B,8BAAgC;AAWhC,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,IAAI,CAAS;IAGb,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAIjB,KAAK,CAAe;IAKpB,MAAM,CAAa;IAGnB,KAAK,CAAc;IAInB,SAAS,CAAO;IAIhB,OAAO,CAAO;IAId,SAAS,CAAU;IAanB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAA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C,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;2CAkC7B;AAOD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;sCA6E7B;AAMD;IAAC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;2CAG7B;AAMD;IAAC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;0CAW7B;AAGM;IADN,IAAA,0BAAM,GAAE;;;;8BAGR;AAGM;IADN,IAAA,0BAAM,GAAE;;;;+BAGR"}
@@ -23,4 +23,6 @@ export declare class Topic {
23
23
  get totalLikes(): Metric;
24
24
  get totalShares(): Metric;
25
25
  get totalDownloads(): Metric;
26
+ static toInstance(data: object, groups?: string[]): Topic;
27
+ static toInstances(data: any[], groups?: string[]): Topic[];
26
28
  }
@@ -59,6 +59,12 @@ class Topic {
59
59
  get totalDownloads() {
60
60
  return this?.metrics?.find(i => i.event === user_1.UserEvent.Download);
61
61
  }
62
+ static toInstance(data, groups = ['admin']) {
63
+ return data ? (0, class_transformer_1.plainToInstance)(Topic, data, { groups: groups || [] }) : null;
64
+ }
65
+ static toInstances(data, groups = ['admin']) {
66
+ return data ? (0, class_transformer_1.plainToInstance)(Topic, data, { groups: groups || [] }) : [];
67
+ }
62
68
  }
63
69
  exports.Topic = Topic;
64
70
  __decorate([
@@ -119,4 +125,16 @@ __decorate([
119
125
  (0, class_transformer_1.Type)(() => Date),
120
126
  __metadata("design:type", Date)
121
127
  ], Topic.prototype, "updatedOn", void 0);
128
+ __decorate([
129
+ (0, class_transformer_1.Expose)(),
130
+ __metadata("design:type", Function),
131
+ __metadata("design:paramtypes", [Object, Array]),
132
+ __metadata("design:returntype", void 0)
133
+ ], Topic, "toInstance", null);
134
+ __decorate([
135
+ (0, class_transformer_1.Expose)(),
136
+ __metadata("design:type", Function),
137
+ __metadata("design:paramtypes", [Array, Array]),
138
+ __metadata("design:returntype", void 0)
139
+ ], Topic, "toInstances", null);
122
140
  //# sourceMappingURL=topic.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"topic.model.js","sourceRoot":"","sources":["../../src/topic/topic.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,mDAA0C;AAC1C,yDAAgD;AAChD,mDAA0C;AAC1C,qEAA4D;AAC5D,sCAAuC;AACvC,kCAAoC;AAEpC,MAAa,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAIb,MAAM,CAAS;IAKf,UAAU,CAAa;IAgBvB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAEhB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAa,EAAE,MAAgB,IAAI;QACpD,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;IAED,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,EAA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