@intelact/bright 0.9.88 → 0.9.89

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. package/lib/auth/sign.dto.d.ts +1 -1
  2. package/lib/auth/sign.dto.js.map +1 -1
  3. package/lib/author/author.model.d.ts +3 -3
  4. package/lib/author/author.model.js +9 -9
  5. package/lib/author/author.model.js.map +1 -1
  6. package/lib/boost/boost.model.d.ts +3 -3
  7. package/lib/boost/boost.model.js +9 -9
  8. package/lib/boost/boost.model.js.map +1 -1
  9. package/lib/brand/brand.model.d.ts +5 -5
  10. package/lib/brand/brand.model.js +7 -7
  11. package/lib/brand/brand.model.js.map +1 -1
  12. package/lib/category/category.model.d.ts +3 -3
  13. package/lib/category/category.model.js +9 -9
  14. package/lib/category/category.model.js.map +1 -1
  15. package/lib/collection/collection.model.d.ts +4 -4
  16. package/lib/collection/collection.model.js +12 -12
  17. package/lib/collection/collection.model.js.map +1 -1
  18. package/lib/common/bookmark.dto.d.ts +1 -1
  19. package/lib/common/bookmark.dto.js +2 -0
  20. package/lib/common/bookmark.dto.js.map +1 -1
  21. package/lib/common/browse.dto.d.ts +1 -1
  22. package/lib/common/browse.dto.js +2 -2
  23. package/lib/common/browse.dto.js.map +1 -1
  24. package/lib/common/search.dto.d.ts +1 -1
  25. package/lib/common/search.dto.js +2 -2
  26. package/lib/common/search.dto.js.map +1 -1
  27. package/lib/feedback/feedback-item.model.d.ts +1 -1
  28. package/lib/feedback/feedback-item.model.js +5 -5
  29. package/lib/feedback/feedback-item.model.js.map +1 -1
  30. package/lib/feedback/feedback.dto.d.ts +1 -1
  31. package/lib/feedback/feedback.dto.js +2 -2
  32. package/lib/feedback/feedback.dto.js.map +1 -1
  33. package/lib/feedback/feedback.model.d.ts +3 -3
  34. package/lib/feedback/feedback.model.js +10 -9
  35. package/lib/feedback/feedback.model.js.map +1 -1
  36. package/lib/item/item.model.d.ts +1 -1
  37. package/lib/link/link.model.d.ts +2 -1
  38. package/lib/link/link.model.js.map +1 -1
  39. package/lib/log/log.model.d.ts +1 -1
  40. package/lib/metric/metric.model.d.ts +1 -1
  41. package/lib/metric/metric.model.js +37 -37
  42. package/lib/metric/metric.model.js.map +1 -1
  43. package/lib/popularity/popularity.model.d.ts +1 -1
  44. package/lib/popularity/popularity.model.js +8 -8
  45. package/lib/popularity/popularity.model.js.map +1 -1
  46. package/lib/post/post.dto.d.ts +2 -1
  47. package/lib/post/post.dto.js +6 -5
  48. package/lib/post/post.dto.js.map +1 -1
  49. package/lib/post/post.model.d.ts +9 -9
  50. package/lib/post/post.model.js +37 -37
  51. package/lib/post/post.model.js.map +1 -1
  52. package/lib/promotion/promotion.model.d.ts +4 -3
  53. package/lib/promotion/promotion.model.js +13 -12
  54. package/lib/promotion/promotion.model.js.map +1 -1
  55. package/lib/publisher/publisher.dto.d.ts +1 -1
  56. package/lib/publisher/publisher.dto.js +3 -3
  57. package/lib/publisher/publisher.dto.js.map +1 -1
  58. package/lib/publisher/publisher.model.d.ts +4 -4
  59. package/lib/publisher/publisher.model.js +15 -15
  60. package/lib/publisher/publisher.model.js.map +1 -1
  61. package/lib/question/comment.model.d.ts +3 -3
  62. package/lib/question/comment.model.js +13 -13
  63. package/lib/question/comment.model.js.map +1 -1
  64. package/lib/question/question.model.d.ts +4 -4
  65. package/lib/question/question.model.js +18 -18
  66. package/lib/question/question.model.js.map +1 -1
  67. package/lib/quote/quote.model.d.ts +1 -1
  68. package/lib/quote/quote.model.js +3 -3
  69. package/lib/quote/quote.model.js.map +1 -1
  70. package/lib/social/social-user.dto.d.ts +1 -1
  71. package/lib/social/social.provider.d.ts +0 -1
  72. package/lib/social/social.provider.js +0 -1
  73. package/lib/social/social.provider.js.map +1 -1
  74. package/lib/survey/survey-item.model.d.ts +1 -1
  75. package/lib/survey/survey-item.model.js +5 -5
  76. package/lib/survey/survey-item.model.js.map +1 -1
  77. package/lib/survey/survey.model.d.ts +4 -3
  78. package/lib/survey/survey.model.js +13 -12
  79. package/lib/survey/survey.model.js.map +1 -1
  80. package/lib/topic/topic.model.d.ts +4 -4
  81. package/lib/topic/topic.model.js +13 -13
  82. package/lib/topic/topic.model.js.map +1 -1
  83. package/lib/tsconfig.tsbuildinfo +1 -1
  84. package/lib/user/user.dto.d.ts +1 -1
  85. package/lib/user/user.dto.js +3 -3
  86. package/lib/user/user.dto.js.map +1 -1
  87. package/lib/user/user.model.d.ts +8 -6
  88. package/lib/user/user.model.js +21 -18
  89. package/lib/user/user.model.js.map +1 -1
  90. package/package.json +1 -1
@@ -12,17 +12,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Post = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const user_model_1 = require("../user/user.model");
15
- const author_1 = require("../author");
16
- const publisher_1 = require("../publisher");
17
- const topic_1 = require("../topic");
18
- const gallery_1 = require("../gallery");
19
- const feedback_1 = require("../feedback");
15
+ const author_model_1 = require("../author/author.model");
16
+ const publisher_model_1 = require("../publisher/publisher.model");
17
+ const topic_model_1 = require("../topic/topic.model");
18
+ const gallery_model_1 = require("../gallery/gallery.model");
19
+ const feedback_model_1 = require("../feedback/feedback.model");
20
20
  const item_model_1 = require("../item/item.model");
21
- const metric_1 = require("../metric");
22
- const common_1 = require("../common");
21
+ const metric_model_1 = require("../metric/metric.model");
22
+ const status_type_1 = require("../common/status.type");
23
23
  const post_type_1 = require("./post.type");
24
- const ui_1 = require("../ui");
25
- const popularity_1 = require("../popularity");
24
+ const context_enum_1 = require("../ui/context.enum");
25
+ const popularity_model_1 = require("../popularity/popularity.model");
26
26
  class Post {
27
27
  id;
28
28
  slug;
@@ -67,7 +67,7 @@ class Post {
67
67
  }
68
68
  getStatusAuthorizations() {
69
69
  switch (this.status) {
70
- case common_1.StatusType.Draft:
70
+ case status_type_1.StatusType.Draft:
71
71
  return {
72
72
  draft: false,
73
73
  approve: true,
@@ -78,7 +78,7 @@ class Post {
78
78
  block: true,
79
79
  unblock: false
80
80
  };
81
- case common_1.StatusType.ReadyForPublish:
81
+ case status_type_1.StatusType.ReadyForPublish:
82
82
  return {
83
83
  draft: true,
84
84
  approve: false,
@@ -89,7 +89,7 @@ class Post {
89
89
  block: true,
90
90
  unblock: false
91
91
  };
92
- case common_1.StatusType.Published:
92
+ case status_type_1.StatusType.Published:
93
93
  return {
94
94
  draft: false,
95
95
  approve: false,
@@ -100,7 +100,7 @@ class Post {
100
100
  block: true,
101
101
  unblock: false
102
102
  };
103
- case common_1.StatusType.Archived:
103
+ case status_type_1.StatusType.Archived:
104
104
  return {
105
105
  draft: false,
106
106
  approve: false,
@@ -111,7 +111,7 @@ class Post {
111
111
  block: false,
112
112
  unblock: false
113
113
  };
114
- case common_1.StatusType.Blocked:
114
+ case status_type_1.StatusType.Blocked:
115
115
  return {
116
116
  draft: false,
117
117
  approve: false,
@@ -236,17 +236,17 @@ class Post {
236
236
  getStatusContext() {
237
237
  if (!this.status)
238
238
  return;
239
- return this.status === common_1.StatusType.Draft
240
- ? ui_1.Context.Secondary
241
- : this.status === common_1.StatusType.ReadyForPublish
242
- ? ui_1.Context.Info
243
- : this.status === common_1.StatusType.Published
244
- ? ui_1.Context.Success
245
- : this.status === common_1.StatusType.Archived
246
- ? ui_1.Context.Warning
247
- : this.status === common_1.StatusType.Blocked
248
- ? ui_1.Context.Danger
249
- : ui_1.Context.Dark;
239
+ return this.status === status_type_1.StatusType.Draft
240
+ ? context_enum_1.Context.Secondary
241
+ : this.status === status_type_1.StatusType.ReadyForPublish
242
+ ? context_enum_1.Context.Info
243
+ : this.status === status_type_1.StatusType.Published
244
+ ? context_enum_1.Context.Success
245
+ : this.status === status_type_1.StatusType.Archived
246
+ ? context_enum_1.Context.Warning
247
+ : this.status === status_type_1.StatusType.Blocked
248
+ ? context_enum_1.Context.Danger
249
+ : context_enum_1.Context.Dark;
250
250
  }
251
251
  static getIcon(postType, custom) {
252
252
  switch (postType) {
@@ -350,13 +350,13 @@ __decorate([
350
350
  ], Post.prototype, "weight", void 0);
351
351
  __decorate([
352
352
  (0, class_transformer_1.Expose)(),
353
- (0, class_transformer_1.Type)(() => popularity_1.Popularity),
354
- (0, class_transformer_1.Transform)(({ obj }) => popularity_1.Popularity.get(obj.weight)),
355
- __metadata("design:type", popularity_1.Popularity)
353
+ (0, class_transformer_1.Type)(() => popularity_model_1.Popularity),
354
+ (0, class_transformer_1.Transform)(({ obj }) => popularity_model_1.Popularity.get(obj.weight)),
355
+ __metadata("design:type", popularity_model_1.Popularity)
356
356
  ], Post.prototype, "popularity", void 0);
357
357
  __decorate([
358
358
  (0, class_transformer_1.Expose)(),
359
- (0, class_transformer_1.Type)(() => metric_1.Metric),
359
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
360
360
  __metadata("design:type", Array)
361
361
  ], Post.prototype, "metrics", void 0);
362
362
  __decorate([
@@ -411,22 +411,22 @@ __decorate([
411
411
  ], Post.prototype, "blockedOn", void 0);
412
412
  __decorate([
413
413
  (0, class_transformer_1.Expose)(),
414
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
415
- __metadata("design:type", publisher_1.Publisher)
414
+ (0, class_transformer_1.Type)(() => publisher_model_1.Publisher),
415
+ __metadata("design:type", publisher_model_1.Publisher)
416
416
  ], Post.prototype, "publisher", void 0);
417
417
  __decorate([
418
418
  (0, class_transformer_1.Expose)(),
419
- (0, class_transformer_1.Type)(() => author_1.Author),
420
- __metadata("design:type", author_1.Author)
419
+ (0, class_transformer_1.Type)(() => author_model_1.Author),
420
+ __metadata("design:type", author_model_1.Author)
421
421
  ], Post.prototype, "author", void 0);
422
422
  __decorate([
423
- (0, class_transformer_1.Type)(() => topic_1.Topic),
423
+ (0, class_transformer_1.Type)(() => topic_model_1.Topic),
424
424
  __metadata("design:type", Array)
425
425
  ], Post.prototype, "topics", void 0);
426
426
  __decorate([
427
427
  (0, class_transformer_1.Expose)(),
428
- (0, class_transformer_1.Type)(() => feedback_1.Feedback),
429
- __metadata("design:type", feedback_1.Feedback)
428
+ (0, class_transformer_1.Type)(() => feedback_model_1.Feedback),
429
+ __metadata("design:type", feedback_model_1.Feedback)
430
430
  ], Post.prototype, "feedback", void 0);
431
431
  __decorate([
432
432
  (0, class_transformer_1.Expose)(),
@@ -435,7 +435,7 @@ __decorate([
435
435
  ], Post.prototype, "collection", void 0);
436
436
  __decorate([
437
437
  (0, class_transformer_1.Expose)(),
438
- (0, class_transformer_1.Type)(() => gallery_1.GalleryItem),
438
+ (0, class_transformer_1.Type)(() => gallery_model_1.GalleryItem),
439
439
  __metadata("design:type", Array)
440
440
  ], Post.prototype, "gallery", void 0);
441
441
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"post.model.js","sourceRoot":"","sources":["../../src/post/post.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAE5D,mDAA0C;AAC1C,sCAAmC;AACnC,4CAAyC;AACzC,oCAAiC;AACjC,wCAAyC;AACzC,0CAAuC;AACvC,mDAA0C;AAC1C,sCAAmC;AACnC,sCAAuC;AACvC,2CAAuC;AACvC,8BAA+B;AAC/B,8CAA2C;AAI3C,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;IAGf,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,SAAS,CAAS;IAKlB,MAAM,CAAa;IAGnB,QAAQ,CAAW;IAInB,MAAM,CAAS;IAKf,UAAU,CAAa;IAevB,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;IAIlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAMhB,SAAS,CAAY;IAIrB,MAAM,CAAS;IAGf,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IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;uCAAC;AAMhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAS,CAAC;8BACX,2BAAS;uCAAC;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAM,CAAC;8BACX,qBAAM;oCAAC;AAGf;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAK,CAAC;;oCACF;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAQ,CAAC;8BACX,yBAAQ;sCAAC;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;;wCACC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAW,CAAC;;qCACD;AAmBvB;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;mDA+E7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;gDAuF7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;8CAqD7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;4CAgB7B;AAGM;IADN,IAAA,0BAAM,GAAE;;;;yBAgBR"}
@@ -1,6 +1,7 @@
1
- import { StatusLabel, StatusType } from "../common";
2
- import { Metric } from "../metric";
3
- import { User } from "../user";
1
+ import { StatusType } from "../common/status.type";
2
+ import { StatusLabel } from "../common/status.label";
3
+ import { Metric } from "../metric/metric.model";
4
+ import { User } from "../user/user.model";
4
5
  export declare class Promotion {
5
6
  id: number;
6
7
  title: string;
@@ -11,9 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Promotion = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const common_1 = require("../common");
15
- const metric_1 = require("../metric");
16
- const user_1 = require("../user");
14
+ const status_type_1 = require("../common/status.type");
15
+ const status_label_1 = require("../common/status.label");
16
+ const metric_model_1 = require("../metric/metric.model");
17
+ const user_model_1 = require("../user/user.model");
17
18
  class Promotion {
18
19
  id;
19
20
  title;
@@ -79,13 +80,13 @@ __decorate([
79
80
  ], Promotion.prototype, "label", void 0);
80
81
  __decorate([
81
82
  (0, class_transformer_1.Expose)(),
82
- (0, class_transformer_1.Type)(() => metric_1.Metric),
83
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
83
84
  __metadata("design:type", Array)
84
85
  ], Promotion.prototype, "metrics", void 0);
85
86
  __decorate([
86
87
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
87
- (0, class_transformer_1.Type)(() => user_1.User),
88
- __metadata("design:type", user_1.User)
88
+ (0, class_transformer_1.Type)(() => user_model_1.User),
89
+ __metadata("design:type", user_model_1.User)
89
90
  ], Promotion.prototype, "createdBy", void 0);
90
91
  __decorate([
91
92
  (0, class_transformer_1.Expose)(),
@@ -94,8 +95,8 @@ __decorate([
94
95
  ], Promotion.prototype, "createdOn", void 0);
95
96
  __decorate([
96
97
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
97
- (0, class_transformer_1.Type)(() => user_1.User),
98
- __metadata("design:type", user_1.User)
98
+ (0, class_transformer_1.Type)(() => user_model_1.User),
99
+ __metadata("design:type", user_model_1.User)
99
100
  ], Promotion.prototype, "updatedBy", void 0);
100
101
  __decorate([
101
102
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -104,8 +105,8 @@ __decorate([
104
105
  ], Promotion.prototype, "updatedOn", void 0);
105
106
  __decorate([
106
107
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
107
- (0, class_transformer_1.Type)(() => user_1.User),
108
- __metadata("design:type", user_1.User)
108
+ (0, class_transformer_1.Type)(() => user_model_1.User),
109
+ __metadata("design:type", user_model_1.User)
109
110
  ], Promotion.prototype, "statusChangedBy", void 0);
110
111
  __decorate([
111
112
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -114,8 +115,8 @@ __decorate([
114
115
  ], Promotion.prototype, "statusChangedOn", void 0);
115
116
  __decorate([
116
117
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
117
- (0, class_transformer_1.Type)(() => user_1.User),
118
- __metadata("design:type", user_1.User)
118
+ (0, class_transformer_1.Type)(() => user_model_1.User),
119
+ __metadata("design:type", user_model_1.User)
119
120
  ], Promotion.prototype, "publishedBy", void 0);
120
121
  __decorate([
121
122
  (0, class_transformer_1.Expose)(),
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.model.js","sourceRoot":"","sources":["../../src/promotion/promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,sCAAoD;AACpD,sCAAmC;AACnC,kCAA+B;AAG/B,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;IAWnB,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;IAElB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApFD,8BAoFC;AAhFA;IAF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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;8BACJ,iBAAI;8CAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;8CAAC"}
@@ -1,4 +1,4 @@
1
- import { PostType } from '../post';
1
+ import { PostType } from '../post/post.type';
2
2
  export declare class InvitePublisherDto {
3
3
  email: string;
4
4
  postTypes: PostType[];
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.PublisherPostTypesDto = exports.InvitePublisherDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- const post_1 = require("../post");
14
+ const post_type_1 = require("../post/post.type");
15
15
  class InvitePublisherDto {
16
16
  email;
17
17
  postTypes;
@@ -24,7 +24,7 @@ __decorate([
24
24
  ], InvitePublisherDto.prototype, "email", void 0);
25
25
  __decorate([
26
26
  (0, class_validator_1.IsNotEmpty)(),
27
- (0, class_validator_1.IsEnum)(post_1.PostType, { each: true }),
27
+ (0, class_validator_1.IsEnum)(post_type_1.PostType, { each: true }),
28
28
  __metadata("design:type", Array)
29
29
  ], InvitePublisherDto.prototype, "postTypes", void 0);
30
30
  class PublisherPostTypesDto {
@@ -33,7 +33,7 @@ class PublisherPostTypesDto {
33
33
  exports.PublisherPostTypesDto = PublisherPostTypesDto;
34
34
  __decorate([
35
35
  (0, class_validator_1.IsNotEmpty)(),
36
- (0, class_validator_1.IsEnum)(post_1.PostType, { each: true }),
36
+ (0, class_validator_1.IsEnum)(post_type_1.PostType, { each: true }),
37
37
  __metadata("design:type", Array)
38
38
  ], PublisherPostTypesDto.prototype, "postTypes", void 0);
39
39
  //# sourceMappingURL=publisher.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"publisher.dto.js","sourceRoot":"","sources":["../../src/publisher/publisher.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,kCAAmC;AAGnC,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,SAAS,CAAa;CACtB;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACX;AAGvB,MAAa,qBAAqB;IAIjC,SAAS,CAAa;CACtB;AALD,sDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACX"}
1
+ {"version":3,"file":"publisher.dto.js","sourceRoot":"","sources":["../../src/publisher/publisher.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,iDAA6C;AAG7C,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,SAAS,CAAa;CACtB;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACX;AAGvB,MAAa,qBAAqB;IAIjC,SAAS,CAAa;CACtB;AALD,sDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACX"}
@@ -1,7 +1,7 @@
1
- import { AccountStatus } from '../security';
2
- import { PostType } from '../post';
3
- import { Metric } from '../metric';
4
- import { User } from '../user';
1
+ import { AccountStatus } from '../security/account.status';
2
+ import { PostType } from '../post/post.type';
3
+ import { Metric } from '../metric/metric.model';
4
+ import { User } from '../user/user.model';
5
5
  export declare class Publisher {
6
6
  id: number;
7
7
  name: string;
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Publisher = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const security_1 = require("../security");
15
- const metric_1 = require("../metric");
16
- const user_1 = require("../user");
14
+ const account_status_1 = require("../security/account.status");
15
+ const metric_model_1 = require("../metric/metric.model");
16
+ const user_model_1 = require("../user/user.model");
17
17
  class Publisher {
18
18
  id;
19
19
  name;
@@ -37,13 +37,13 @@ class Publisher {
37
37
  Object.assign(this, props);
38
38
  }
39
39
  isActive() {
40
- return this.status === security_1.AccountStatus.Active;
40
+ return this.status === account_status_1.AccountStatus.Active;
41
41
  }
42
42
  isDisabled() {
43
- return this.status === security_1.AccountStatus.Disabled;
43
+ return this.status === account_status_1.AccountStatus.Disabled;
44
44
  }
45
45
  isClosed() {
46
- return this.status === security_1.AccountStatus.Closed;
46
+ return this.status === account_status_1.AccountStatus.Closed;
47
47
  }
48
48
  hasAuthorizedType(type) {
49
49
  return this?.allowedPostTypes?.includes(type);
@@ -90,13 +90,13 @@ __decorate([
90
90
  ], Publisher.prototype, "publicVisibility", void 0);
91
91
  __decorate([
92
92
  (0, class_transformer_1.Expose)(),
93
- (0, class_transformer_1.Type)(() => metric_1.Metric),
93
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
94
94
  __metadata("design:type", Array)
95
95
  ], Publisher.prototype, "metrics", void 0);
96
96
  __decorate([
97
97
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
98
- (0, class_transformer_1.Type)(() => user_1.User),
99
- __metadata("design:type", user_1.User)
98
+ (0, class_transformer_1.Type)(() => user_model_1.User),
99
+ __metadata("design:type", user_model_1.User)
100
100
  ], Publisher.prototype, "createdBy", void 0);
101
101
  __decorate([
102
102
  (0, class_transformer_1.Expose)(),
@@ -105,8 +105,8 @@ __decorate([
105
105
  ], Publisher.prototype, "createdOn", void 0);
106
106
  __decorate([
107
107
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
108
- (0, class_transformer_1.Type)(() => user_1.User),
109
- __metadata("design:type", user_1.User)
108
+ (0, class_transformer_1.Type)(() => user_model_1.User),
109
+ __metadata("design:type", user_model_1.User)
110
110
  ], Publisher.prototype, "updatedBy", void 0);
111
111
  __decorate([
112
112
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -115,8 +115,8 @@ __decorate([
115
115
  ], Publisher.prototype, "updatedOn", void 0);
116
116
  __decorate([
117
117
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
118
- (0, class_transformer_1.Type)(() => user_1.User),
119
- __metadata("design:type", user_1.User)
118
+ (0, class_transformer_1.Type)(() => user_model_1.User),
119
+ __metadata("design:type", user_model_1.User)
120
120
  ], Publisher.prototype, "statusChangedBy", void 0);
121
121
  __decorate([
122
122
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -125,8 +125,8 @@ __decorate([
125
125
  ], Publisher.prototype, "statusChangedOn", void 0);
126
126
  __decorate([
127
127
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
128
- (0, class_transformer_1.Type)(() => user_1.User),
129
- __metadata("design:type", user_1.User)
128
+ (0, class_transformer_1.Type)(() => user_model_1.User),
129
+ __metadata("design:type", user_model_1.User)
130
130
  ], Publisher.prototype, "invitedBy", void 0);
131
131
  __decorate([
132
132
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -1 +1 @@
1
- {"version":3,"file":"publisher.model.js","sourceRoot":"","sources":["../../src/publisher/publisher.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,0CAA4C;AAE5C,sCAAmC;AACnC,kCAA+B;AAG/B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,GAAG,CAAS;IAGZ,IAAI,CAAS;IAKb,MAAM,CAAgB;IAGtB,gBAAgB,CAAa;IAI7B,gBAAgB,CAAU;IAW1B,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,eAAe,CAAO;IAItB,eAAe,CAAO;IAItB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,QAAQ;QACP,OAAO,IAAI,CAAC,MAAM,KAAK,wBAAa,CAAC,MAAM,CAAC;IAC7C,CAAC;IAED,UAAU;QACT,OAAO,IAAI,CAAC,MAAM,KAAK,wBAAa,CAAC,QAAQ,CAAC;IAC/C,CAAC;IAED,QAAQ;QACP,OAAO,IAAI,CAAC,MAAM,KAAK,wBAAa,CAAC,MAAM,CAAC;IAC7C,CAAC;IAED,iBAAiB,CAAC,IAAc;QAC/B,OAAO,IAAI,EAAE,gBAAgB,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAA;IA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B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,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;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"}
@@ -1,6 +1,6 @@
1
- import { Author } from '../author';
2
- import { User } from '../user';
3
- import { StatusType } from '../common';
1
+ import { Author } from '../author/author.model';
2
+ import { User } from '../user/user.model';
3
+ import { StatusType } from '../common/status.type';
4
4
  import { Question } from './question.model';
5
5
  export declare class QuestionComment {
6
6
  id: number;
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.QuestionComment = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const author_1 = require("../author");
15
- const user_1 = require("../user");
16
- const common_1 = require("../common");
14
+ const author_model_1 = require("../author/author.model");
15
+ const user_model_1 = require("../user/user.model");
16
+ const status_type_1 = require("../common/status.type");
17
17
  const question_model_1 = require("./question.model");
18
18
  class QuestionComment {
19
19
  id;
@@ -41,8 +41,8 @@ __decorate([
41
41
  ], QuestionComment.prototype, "id", void 0);
42
42
  __decorate([
43
43
  (0, class_transformer_1.Expose)(),
44
- (0, class_transformer_1.Type)(() => author_1.Author),
45
- __metadata("design:type", author_1.Author)
44
+ (0, class_transformer_1.Type)(() => author_model_1.Author),
45
+ __metadata("design:type", author_model_1.Author)
46
46
  ], QuestionComment.prototype, "author", void 0);
47
47
  __decorate([
48
48
  (0, class_transformer_1.Expose)(),
@@ -58,8 +58,8 @@ __decorate([
58
58
  ], QuestionComment.prototype, "status", void 0);
59
59
  __decorate([
60
60
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
61
- (0, class_transformer_1.Type)(() => user_1.User),
62
- __metadata("design:type", user_1.User)
61
+ (0, class_transformer_1.Type)(() => user_model_1.User),
62
+ __metadata("design:type", user_model_1.User)
63
63
  ], QuestionComment.prototype, "createdBy", void 0);
64
64
  __decorate([
65
65
  (0, class_transformer_1.Expose)(),
@@ -68,8 +68,8 @@ __decorate([
68
68
  ], QuestionComment.prototype, "createdOn", void 0);
69
69
  __decorate([
70
70
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
71
- (0, class_transformer_1.Type)(() => user_1.User),
72
- __metadata("design:type", user_1.User)
71
+ (0, class_transformer_1.Type)(() => user_model_1.User),
72
+ __metadata("design:type", user_model_1.User)
73
73
  ], QuestionComment.prototype, "updatedBy", void 0);
74
74
  __decorate([
75
75
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -78,8 +78,8 @@ __decorate([
78
78
  ], QuestionComment.prototype, "updatedOn", void 0);
79
79
  __decorate([
80
80
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
81
- (0, class_transformer_1.Type)(() => user_1.User),
82
- __metadata("design:type", user_1.User)
81
+ (0, class_transformer_1.Type)(() => user_model_1.User),
82
+ __metadata("design:type", user_model_1.User)
83
83
  ], QuestionComment.prototype, "statusChangedBy", void 0);
84
84
  __decorate([
85
85
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -88,8 +88,8 @@ __decorate([
88
88
  ], QuestionComment.prototype, "statusChangedOn", void 0);
89
89
  __decorate([
90
90
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
91
- (0, class_transformer_1.Type)(() => user_1.User),
92
- __metadata("design:type", user_1.User)
91
+ (0, class_transformer_1.Type)(() => user_model_1.User),
92
+ __metadata("design:type", user_model_1.User)
93
93
  ], QuestionComment.prototype, "publishedBy", void 0);
94
94
  __decorate([
95
95
  (0, class_transformer_1.Expose)(),
@@ -1 +1 @@
1
- {"version":3,"file":"comment.model.js","sourceRoot":"","sources":["../../src/question/comment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,sCAAmC;AACnC,kCAA+B;AAC/B,sCAAuC;AACvC,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,IA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AAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;oDAAC"}
@@ -1,7 +1,7 @@
1
- import { User } from '../user';
2
- import { Category } from '../category';
3
- import { StatusType } from '../common';
4
- import { Metric } from '../metric';
1
+ import { User } from '../user/user.model';
2
+ import { Category } from '../category/category.model';
3
+ import { StatusType } from '../common/status.type';
4
+ import { Metric } from '../metric/metric.model';
5
5
  import { QuestionComment } from './comment.model';
6
6
  export declare class Question {
7
7
  id: number;