@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
@@ -1,4 +1,4 @@
1
- import { IUserAgent } from '../common';
1
+ import { IUserAgent } from '../common/user.agent';
2
2
  export declare class SigninDto {
3
3
  email: string;
4
4
  password: string;
@@ -1 +1 @@
1
- {"version":3,"file":"sign.dto.js","sourceRoot":"","sources":["../../src/auth/sign.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AAQpF,MAAa,SAAS;IAIrB,KAAK,CAAS;IAId,QAAQ,CAAS;IAGjB,MAAM,CAAsB;CAC5B;AAZD,8BAYC;AARA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACM;AAGjB;IADC,IAAA,4BAAU,GAAE;;yCACe;AAS7B,MAAa,SAAS;IAIrB,KAAK,CAAS;IAId,KAAK,CAAS;IAGd,MAAM,CAAsB;CAC5B;AAZD,8BAYC;AARA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACG;AAGd;IADC,IAAA,4BAAU,GAAE;;yCACe"}
1
+ {"version":3,"file":"sign.dto.js","sourceRoot":"","sources":["../../src/auth/sign.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAQ5E,MAAa,SAAS;IAIrB,KAAK,CAAS;IAId,QAAQ,CAAS;IAGjB,MAAM,CAAsB;CAC5B;AAZD,8BAYC;AARA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACM;AAGjB;IADC,IAAA,4BAAU,GAAE;;yCACe;AAS7B,MAAa,SAAS;IAIrB,KAAK,CAAS;IAId,KAAK,CAAS;IAGd,MAAM,CAAsB;CAC5B;AAZD,8BAYC;AARA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACG;AAGd;IADC,IAAA,4BAAU,GAAE;;yCACe"}
@@ -1,6 +1,6 @@
1
- import { Item } from "../item";
2
- import { Metric } from "../metric";
3
- import { User } from "../user";
1
+ import { Item } from "../item/item.model";
2
+ import { Metric } from "../metric/metric.model";
3
+ import { User } from "../user/user.model";
4
4
  export declare class Author {
5
5
  id: number;
6
6
  slug: string;
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Author = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const item_1 = require("../item");
15
- const metric_1 = require("../metric");
16
- const user_1 = require("../user");
14
+ const item_model_1 = require("../item/item.model");
15
+ const metric_model_1 = require("../metric/metric.model");
16
+ const user_model_1 = require("../user/user.model");
17
17
  class Author {
18
18
  id;
19
19
  slug;
@@ -31,7 +31,7 @@ class Author {
31
31
  static toItemList(data, key = 'id') {
32
32
  if (!data || data.length === 0)
33
33
  return [];
34
- return data.map(i => new item_1.Item({
34
+ return data.map(i => new item_model_1.Item({
35
35
  title: i.name,
36
36
  value: i[key]
37
37
  }));
@@ -61,13 +61,13 @@ __decorate([
61
61
  ], Author.prototype, "imageUrl", void 0);
62
62
  __decorate([
63
63
  (0, class_transformer_1.Expose)(),
64
- (0, class_transformer_1.Type)(() => metric_1.Metric),
64
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
65
65
  __metadata("design:type", Array)
66
66
  ], Author.prototype, "metrics", void 0);
67
67
  __decorate([
68
68
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
69
- (0, class_transformer_1.Type)(() => user_1.User),
70
- __metadata("design:type", user_1.User)
69
+ (0, class_transformer_1.Type)(() => user_model_1.User),
70
+ __metadata("design:type", user_model_1.User)
71
71
  ], Author.prototype, "createdBy", void 0);
72
72
  __decorate([
73
73
  (0, class_transformer_1.Expose)(),
@@ -76,8 +76,8 @@ __decorate([
76
76
  ], Author.prototype, "createdOn", void 0);
77
77
  __decorate([
78
78
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
79
- (0, class_transformer_1.Type)(() => user_1.User),
80
- __metadata("design:type", user_1.User)
79
+ (0, class_transformer_1.Type)(() => user_model_1.User),
80
+ __metadata("design:type", user_model_1.User)
81
81
  ], Author.prototype, "updatedBy", void 0);
82
82
  __decorate([
83
83
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -1 +1 @@
1
- {"version":3,"file":"author.model.js","sourceRoot":"","sources":["../../src/author/author.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAE/B,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,IAAI,CAAS;IAGb,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAWjB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAc,EAAE,MAAgB,IAAI;QACrD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAG,CAAC;YAAE,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C7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC"}
@@ -1,6 +1,6 @@
1
- import { Post } from '../post';
2
- import { Metric } from '../metric';
3
- import { User } from '../user';
1
+ import { Post } from '../post/post.model';
2
+ import { Metric } from '../metric/metric.model';
3
+ import { User } from '../user/user.model';
4
4
  export declare class Boost {
5
5
  id: number;
6
6
  title: string;
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Boost = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const post_1 = require("../post");
15
- const metric_1 = require("../metric");
16
- const user_1 = require("../user");
14
+ const post_model_1 = require("../post/post.model");
15
+ const metric_model_1 = require("../metric/metric.model");
16
+ const user_model_1 = require("../user/user.model");
17
17
  let Boost = class Boost {
18
18
  id;
19
19
  title;
@@ -41,7 +41,7 @@ __decorate([
41
41
  ], Boost.prototype, "title", void 0);
42
42
  __decorate([
43
43
  (0, class_transformer_1.Expose)(),
44
- (0, class_transformer_1.Type)(() => post_1.Post),
44
+ (0, class_transformer_1.Type)(() => post_model_1.Post),
45
45
  __metadata("design:type", Array)
46
46
  ], Boost.prototype, "items", void 0);
47
47
  __decorate([
@@ -55,12 +55,12 @@ __decorate([
55
55
  __metadata("design:type", Date)
56
56
  ], Boost.prototype, "endDate", void 0);
57
57
  __decorate([
58
- (0, class_transformer_1.Type)(() => metric_1.Metric),
58
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
59
59
  __metadata("design:type", Array)
60
60
  ], Boost.prototype, "metrics", void 0);
61
61
  __decorate([
62
- (0, class_transformer_1.Type)(() => user_1.User),
63
- __metadata("design:type", user_1.User)
62
+ (0, class_transformer_1.Type)(() => user_model_1.User),
63
+ __metadata("design:type", user_model_1.User)
64
64
  ], Boost.prototype, "createdBy", void 0);
65
65
  __decorate([
66
66
  (0, class_transformer_1.Expose)(),
@@ -68,8 +68,8 @@ __decorate([
68
68
  __metadata("design:type", Date)
69
69
  ], Boost.prototype, "createdOn", void 0);
70
70
  __decorate([
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
  ], Boost.prototype, "updatedBy", void 0);
74
74
  __decorate([
75
75
  (0, class_transformer_1.Type)(() => Date),
@@ -1 +1 @@
1
- {"version":3,"file":"boost.model.js","sourceRoot":"","sources":["../../src/boost/boost.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAGxB,IAAM,KAAK,GAAX,MAAM,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAMd,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;CACD,CAAA;AA1DY,sBAAK;AAIjB;IAFC,IAAA,0BAAM,GAAE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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;CACD,CAAA;AA1DY,sBAAK;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;oCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;;oCACH;AAMd;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;sCAAC;AAed;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAM,CAAC;;sCACD;AAKlB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;wCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAGhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;wCAAC;AAGhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;gBArDJ,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CA0DjB"}
@@ -1,8 +1,8 @@
1
- import { ModuleType } from '../common';
2
- import { PostType } from '../post';
3
- import { AccountStatus } from '../security';
4
- import { Publisher } from '../publisher';
5
- import { Link } from '../link';
1
+ import { ModuleType } from '../common/module.type';
2
+ import { PostType } from '../post/post.type';
3
+ import { AccountStatus } from '../security/account.status';
4
+ import { Publisher } from '../publisher/publisher.model';
5
+ import { Link } from '../link/link.model';
6
6
  import { BrandSetting } from './brand-setting.model';
7
7
  export declare class Brand {
8
8
  id: number;
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Brand = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const security_1 = require("../security");
14
+ const account_status_1 = require("../security/account.status");
15
15
  const brand_setting_type_1 = require("./brand-setting.type");
16
- const publisher_1 = require("../publisher");
17
- const link_1 = require("../link");
16
+ const publisher_model_1 = require("../publisher/publisher.model");
17
+ const link_model_1 = require("../link/link.model");
18
18
  const brand_setting_model_1 = require("./brand-setting.model");
19
19
  class Brand {
20
20
  id;
@@ -47,7 +47,7 @@ class Brand {
47
47
  };
48
48
  return this.settings
49
49
  .filter(i => def[i.name])
50
- .map(i => (new link_1.Link({
50
+ .map(i => (new link_model_1.Link({
51
51
  id: i.name,
52
52
  title: i.title,
53
53
  href: i.value,
@@ -66,7 +66,7 @@ class Brand {
66
66
  };
67
67
  return this.settings
68
68
  .filter(i => i.scope === brand_setting_type_1.SettingType.Social)
69
- .map(i => (new link_1.Link({
69
+ .map(i => (new link_model_1.Link({
70
70
  id: i.name,
71
71
  title: i.title,
72
72
  href: i.value,
@@ -79,7 +79,7 @@ class Brand {
79
79
  }
80
80
  return this.settings
81
81
  .filter(i => i.scope === brand_setting_type_1.SettingType.Legal)
82
- .map((i) => (new link_1.Link({
82
+ .map((i) => (new link_model_1.Link({
83
83
  id: i.name.toLowerCase().replaceAll('_', '-'),
84
84
  title: i.title,
85
85
  url: i.value.replaceAll(this.url, '')
@@ -189,7 +189,7 @@ __decorate([
189
189
  ], Brand.prototype, "settings", void 0);
190
190
  __decorate([
191
191
  (0, class_transformer_1.Expose)(),
192
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
192
+ (0, class_transformer_1.Type)(() => publisher_model_1.Publisher),
193
193
  __metadata("design:type", Array)
194
194
  ], Brand.prototype, "publishers", void 0);
195
195
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"brand.model.js","sourceRoot":"","sources":["../../src/brand/brand.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,0CAA4C;AAC5C,6DAAmD;AACnD,4CAAyC;AACzC,kCAA+B;AAC/B,+DAAqD;AAErD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAWX,SAAS,CAAS;IAMlB,OAAO,CAAe;IAMtB,YAAY,CAAa;IAKzB,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,GAAG,CAAS;IAMZ,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAKb,MAAM,CAAgB;IAGtB,QAAQ,CAAS;IAIjB,UAAU,CAAU;IAGpB,UAAU,CAAS;IAInB,UAAU,CAAU;IAMpB,QAAQ,CAAiB;IAIzB,UAAU,CAAc;IAExB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IASD,mBAAmB;QAElB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,OAAO;QACR,CAAC;QAMD,MAAM,GAAG,GAA+B;YACvC,mBAAmB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;YAC3C,oBAAoB,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC;SAC1C,CAAC;QAEF,OAAO,IAAI,CAAC,QAAQ;aAClB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACxB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACT,IAAI,WAAI,CAAC;YACR,EAAE,EAAE,CAAC,CAAC,IA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BAAM,GAAE;;qCACM;AAGf;IADC,IAAA,0BAAM,GAAE;;kCACG;AAMZ;IADC,IAAA,0BAAM,GAAE;;oCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;0CACW;AAGpB;IADC,IAAA,0BAAM,GAAE;;mCACI;AAKb;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;qCACR;AAGtB;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;uCACb;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;yCACA;AAGpB;IADC,IAAA,0BAAM,GAAE;;yCACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;yCACA;AAMpB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,kCAAY,CAAC;;uCACA;AAIzB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAS,CAAC;;yCACE;AAaxB;IADC,IAAA,0BAAM,GAAE;;;;gDA0BR;AASD;IADC,IAAA,0BAAM,GAAE;;;;2CA4BR;AASD;IADC,IAAA,0BAAM,GAAE;;;;0CAgBR;AAOD;IADC,IAAA,0BAAM,GAAE;;;;8CAIR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;iDAmBR;AAOD;IADC,IAAA,0BAAM,GAAE;;;;8CAIR;AAGD;IADC,IAAA,0BAAM,GAAE;;;;iDAmBR"}
@@ -1,6 +1,6 @@
1
- import { Item } from "../item";
2
- import { Metric } from "../metric";
3
- import { User } from "../user";
1
+ import { Item } from "../item/item.model";
2
+ import { Metric } from "../metric/metric.model";
3
+ import { User } from "../user/user.model";
4
4
  export declare class Category {
5
5
  id: number;
6
6
  title: string;
@@ -11,9 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Category = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const item_1 = require("../item");
15
- const metric_1 = require("../metric");
16
- const user_1 = require("../user");
14
+ const item_model_1 = require("../item/item.model");
15
+ const metric_model_1 = require("../metric/metric.model");
16
+ const user_model_1 = require("../user/user.model");
17
17
  class Category {
18
18
  id;
19
19
  title;
@@ -32,7 +32,7 @@ class Category {
32
32
  static toItemList(data, key = 'id') {
33
33
  if (!data || data.length === 0)
34
34
  return [];
35
- return data.map(i => new item_1.Item({
35
+ return data.map(i => new item_model_1.Item({
36
36
  title: i.title,
37
37
  value: i[key]
38
38
  }));
@@ -68,13 +68,13 @@ __decorate([
68
68
  ], Category.prototype, "questionEnabled", void 0);
69
69
  __decorate([
70
70
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
71
- (0, class_transformer_1.Type)(() => metric_1.Metric),
71
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
72
72
  __metadata("design:type", Array)
73
73
  ], Category.prototype, "metrics", void 0);
74
74
  __decorate([
75
75
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
76
- (0, class_transformer_1.Type)(() => user_1.User),
77
- __metadata("design:type", user_1.User)
76
+ (0, class_transformer_1.Type)(() => user_model_1.User),
77
+ __metadata("design:type", user_model_1.User)
78
78
  ], Category.prototype, "createdBy", void 0);
79
79
  __decorate([
80
80
  (0, class_transformer_1.Expose)(),
@@ -83,8 +83,8 @@ __decorate([
83
83
  ], Category.prototype, "createdOn", void 0);
84
84
  __decorate([
85
85
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
86
- (0, class_transformer_1.Type)(() => user_1.User),
87
- __metadata("design:type", user_1.User)
86
+ (0, class_transformer_1.Type)(() => user_model_1.User),
87
+ __metadata("design:type", user_model_1.User)
88
88
  ], Category.prototype, "updatedBy", void 0);
89
89
  __decorate([
90
90
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -1 +1 @@
1
- {"version":3,"file":"category.model.js","sourceRoot":"","sources":["../../src/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAG/B,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAIb,eAAe,CAAU;IAezB,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,WAAI,CAAC;YAC7B,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AA/ED,4BA+EC;AA3EA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;uCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;sCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;6CACW;AAMpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,G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O,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;2CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;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"}
@@ -1,7 +1,7 @@
1
- import { Post } from '../post';
2
- import { Publisher } from '../publisher';
3
- import { Metric } from '../metric';
4
- import { User } from '../user';
1
+ import { Post } from '../post/post.model';
2
+ import { Publisher } from '../publisher/publisher.model';
3
+ import { Metric } from '../metric/metric.model';
4
+ import { User } from '../user/user.model';
5
5
  export declare class Collection {
6
6
  id: number;
7
7
  title: string;
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Collection = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const post_1 = require("../post");
15
- const publisher_1 = require("../publisher");
16
- const metric_1 = require("../metric");
17
- const user_1 = require("../user");
14
+ const post_model_1 = require("../post/post.model");
15
+ const publisher_model_1 = require("../publisher/publisher.model");
16
+ const metric_model_1 = require("../metric/metric.model");
17
+ const user_model_1 = require("../user/user.model");
18
18
  class Collection {
19
19
  id;
20
20
  title;
@@ -41,18 +41,18 @@ __decorate([
41
41
  ], Collection.prototype, "title", void 0);
42
42
  __decorate([
43
43
  (0, class_transformer_1.Expose)(),
44
- (0, class_transformer_1.Type)(() => post_1.Post),
44
+ (0, class_transformer_1.Type)(() => post_model_1.Post),
45
45
  __metadata("design:type", Array)
46
46
  ], Collection.prototype, "items", void 0);
47
47
  __decorate([
48
48
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
49
- (0, class_transformer_1.Type)(() => metric_1.Metric),
49
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
50
50
  __metadata("design:type", Array)
51
51
  ], Collection.prototype, "metrics", void 0);
52
52
  __decorate([
53
53
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
54
- (0, class_transformer_1.Type)(() => user_1.User),
55
- __metadata("design:type", user_1.User)
54
+ (0, class_transformer_1.Type)(() => user_model_1.User),
55
+ __metadata("design:type", user_model_1.User)
56
56
  ], Collection.prototype, "createdBy", void 0);
57
57
  __decorate([
58
58
  (0, class_transformer_1.Expose)(),
@@ -61,8 +61,8 @@ __decorate([
61
61
  ], Collection.prototype, "createdOn", void 0);
62
62
  __decorate([
63
63
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
64
- (0, class_transformer_1.Type)(() => user_1.User),
65
- __metadata("design:type", user_1.User)
64
+ (0, class_transformer_1.Type)(() => user_model_1.User),
65
+ __metadata("design:type", user_model_1.User)
66
66
  ], Collection.prototype, "updatedBy", void 0);
67
67
  __decorate([
68
68
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -71,7 +71,7 @@ __decorate([
71
71
  ], Collection.prototype, "updatedOn", void 0);
72
72
  __decorate([
73
73
  (0, class_transformer_1.Expose)(),
74
- (0, class_transformer_1.Type)(() => publisher_1.Publisher),
75
- __metadata("design:type", publisher_1.Publisher)
74
+ (0, class_transformer_1.Type)(() => publisher_model_1.Publisher),
75
+ __metadata("design:type", publisher_model_1.Publisher)
76
76
  ], Collection.prototype, "publisher", void 0);
77
77
  //# sourceMappingURL=collection.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection.model.js","sourceRoot":"","sources":["../../src/collection/collection.model.ts"],"names":[],"mappings":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A,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;6CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;6CAAC;AAMhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAS,CAAC;8BACX,2BAAS;6CAAC"}
@@ -1,4 +1,4 @@
1
- import { PostType } from '../post';
1
+ import { PostType } from '../post/post.type';
2
2
  export declare class BrowseBookmarksDto {
3
3
  types: PostType[];
4
4
  }
@@ -11,12 +11,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BrowseBookmarksDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const post_type_1 = require("../post/post.type");
14
15
  class BrowseBookmarksDto {
15
16
  types;
16
17
  }
17
18
  exports.BrowseBookmarksDto = BrowseBookmarksDto;
18
19
  __decorate([
19
20
  (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.IsEnum)(post_type_1.PostType),
20
22
  __metadata("design:type", Array)
21
23
  ], BrowseBookmarksDto.prototype, "types", void 0);
22
24
  //# sourceMappingURL=bookmark.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bookmark.dto.js","sourceRoot":"","sources":["../../src/common/bookmark.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AAIrD,MAAa,kBAAkB;IAG9B,KAAK,CAAa;CAClB;AAJD,gDAIC;AADA;IADC,IAAA,4BAAU,GAAE;;iDACK"}
1
+ {"version":3,"file":"bookmark.dto.js","sourceRoot":"","sources":["../../src/common/bookmark.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqD;AACrD,iDAA6C;AAG7C,MAAa,kBAAkB;IAI9B,KAAK,CAAa;CAClB;AALD,gDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;iDACC"}
@@ -1,5 +1,5 @@
1
1
  import { SortType } from './sort.type';
2
- import { PostType } from '../post';
2
+ import { PostType } from '../post/post.type';
3
3
  export declare class BrowseParamsDto {
4
4
  term: string;
5
5
  topics: string[];
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.BrowseParamsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const sort_type_1 = require("./sort.type");
15
- const post_1 = require("../post");
15
+ const post_type_1 = require("../post/post.type");
16
16
  class BrowseParamsDto {
17
17
  term;
18
18
  topics;
@@ -36,7 +36,7 @@ __decorate([
36
36
  ], BrowseParamsDto.prototype, "authors", void 0);
37
37
  __decorate([
38
38
  (0, class_validator_1.IsOptional)(),
39
- (0, class_validator_1.IsEnum)(post_1.PostType),
39
+ (0, class_validator_1.IsEnum)(post_type_1.PostType),
40
40
  __metadata("design:type", Array)
41
41
  ], BrowseParamsDto.prototype, "types", void 0);
42
42
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"browse.dto.js","sourceRoot":"","sources":["../../src/common/browse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,2CAAuC;AACvC,kCAAmC;AAEnC,MAAa,eAAe;IAI3B,IAAI,CAAS;IAGb,MAAM,CAAW;IAGjB,OAAO,CAAW;IAIlB,KAAK,CAAa;IAIlB,IAAI,CAAW;CACf;AAnBD,0CAmBC;AAfA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGb;IADC,IAAA,4BAAU,GAAE;;+CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;gDACK;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,CAAC;;8CACC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;6CACF"}
1
+ {"version":3,"file":"browse.dto.js","sourceRoot":"","sources":["../../src/common/browse.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAC/D,2CAAuC;AACvC,iDAA6C;AAE7C,MAAa,eAAe;IAI3B,IAAI,CAAS;IAGb,MAAM,CAAW;IAGjB,OAAO,CAAW;IAIlB,KAAK,CAAa;IAIlB,IAAI,CAAW;CACf;AAnBD,0CAmBC;AAfA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAGb;IADC,IAAA,4BAAU,GAAE;;+CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;gDACK;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;8CACC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;6CACF"}
@@ -1,4 +1,4 @@
1
- import { PostType } from "../post";
1
+ import { PostType } from "../post/post.type";
2
2
  import { SortType } from "./sort.type";
3
3
  import { StatusType } from "./status.type";
4
4
  export declare class SearchParamsDto {
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SearchParamsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
- const post_1 = require("../post");
15
+ const post_type_1 = require("../post/post.type");
16
16
  const sort_type_1 = require("./sort.type");
17
17
  const status_type_1 = require("./status.type");
18
18
  class SearchParamsDto {
@@ -29,7 +29,7 @@ class SearchParamsDto {
29
29
  exports.SearchParamsDto = SearchParamsDto;
30
30
  __decorate([
31
31
  (0, class_validator_1.IsOptional)(),
32
- (0, class_validator_1.IsEnum)(post_1.PostType),
32
+ (0, class_validator_1.IsEnum)(post_type_1.PostType),
33
33
  __metadata("design:type", String)
34
34
  ], SearchParamsDto.prototype, "type", void 0);
35
35
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"search.dto.js","sourceRoot":"","sources":["../../src/common/search.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,yDAAyC;AACzC,kCAAmC;AACnC,2CAAuC;AACvC,+CAA2C;AAO3C,MAAa,eAAe;IAI3B,IAAI,CAAY;IAIhB,MAAM,CAAc;IAIpB,IAAI,CAAU;IAId,IAAI,CAAY;IAGhB,MAAM,CAAY;IAGlB,UAAU,CAAY;IAGtB,OAAO,CAAY;IAKnB,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CACf;AApCD,0CAoCC;AAhCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,CAAC;;6CACD;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAU,CAAC;;+CACC;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;6CACD;AAGhB;IADC,IAAA,4BAAU,GAAE;;+CACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;mDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;gDACM;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;kDAAC;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACP,IAAI;gDAAC"}
1
+ {"version":3,"file":"search.dto.js","sourceRoot":"","sources":["../../src/common/search.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAuE;AACvE,yDAAyC;AACzC,iDAA6C;AAC7C,2CAAuC;AACvC,+CAA2C;AAO3C,MAAa,eAAe;IAI3B,IAAI,CAAY;IAIhB,MAAM,CAAc;IAIpB,IAAI,CAAU;IAId,IAAI,CAAY;IAGhB,MAAM,CAAY;IAGlB,UAAU,CAAY;IAGtB,OAAO,CAAY;IAKnB,SAAS,CAAQ;IAKjB,OAAO,CAAQ;CACf;AApCD,0CAoCC;AAhCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;6CACD;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,wBAAU,CAAC;;+CACC;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;6CACD;AAGhB;IADC,IAAA,4BAAU,GAAE;;+CACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;mDACS;AAGtB;IADC,IAAA,4BAAU,GAAE;;gDACM;AAKnB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACL,IAAI;kDAAC;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACP,IAAI;gDAAC"}
@@ -1,4 +1,4 @@
1
- import { User } from "../user";
1
+ import { User } from "../user/user.model";
2
2
  import { FeedbackOption } from "./feedback-option.model";
3
3
  export declare class FeedbackItem {
4
4
  id: number;
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FeedbackItem = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const user_1 = require("../user");
14
+ const user_model_1 = require("../user/user.model");
15
15
  const feedback_option_model_1 = require("./feedback-option.model");
16
16
  class FeedbackItem {
17
17
  id;
@@ -55,8 +55,8 @@ __decorate([
55
55
  ], FeedbackItem.prototype, "readonly", void 0);
56
56
  __decorate([
57
57
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
58
- (0, class_transformer_1.Type)(() => user_1.User),
59
- __metadata("design:type", user_1.User)
58
+ (0, class_transformer_1.Type)(() => user_model_1.User),
59
+ __metadata("design:type", user_model_1.User)
60
60
  ], FeedbackItem.prototype, "createdBy", void 0);
61
61
  __decorate([
62
62
  (0, class_transformer_1.Expose)(),
@@ -65,8 +65,8 @@ __decorate([
65
65
  ], FeedbackItem.prototype, "createdOn", void 0);
66
66
  __decorate([
67
67
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
68
- (0, class_transformer_1.Type)(() => user_1.User),
69
- __metadata("design:type", user_1.User)
68
+ (0, class_transformer_1.Type)(() => user_model_1.User),
69
+ __metadata("design:type", user_model_1.User)
70
70
  ], FeedbackItem.prototype, "updatedBy", void 0);
71
71
  __decorate([
72
72
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -1 +1 @@
1
- {"version":3,"file":"feedback-item.model.js","sourceRoot":"","sources":["../../src/feedback/feedback-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,mEAAyD;AAGzD,MAAa,YAAY;IAIxB,EAAE,CAAS;IAKX,QAAQ,CAAS;IAMjB,QAAQ,CAAU;IAIlB,IAAI,CAAS;IAIb,QAAQ,CAAU;IAMlB,SAAS,CAAO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lB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;+CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;+CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACN,iBAAI;+CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;+CAAC;AAMhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;;6CACD"}
@@ -1,4 +1,4 @@
1
- import { PostType } from '../post';
1
+ import { PostType } from '../post/post.type';
2
2
  export declare class CreateFeedbackDto {
3
3
  name: string;
4
4
  postType: PostType;
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.FeedbackItemDto = exports.CreateFeedbackDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
- const post_1 = require("../post");
15
+ const post_type_1 = require("../post/post.type");
16
16
  class CreateFeedbackDto {
17
17
  name;
18
18
  postType;
@@ -25,7 +25,7 @@ __decorate([
25
25
  ], CreateFeedbackDto.prototype, "name", void 0);
26
26
  __decorate([
27
27
  (0, class_validator_1.IsNotEmpty)(),
28
- (0, class_validator_1.IsEnum)(post_1.PostType),
28
+ (0, class_validator_1.IsEnum)(post_type_1.PostType),
29
29
  __metadata("design:type", String)
30
30
  ], CreateFeedbackDto.prototype, "postType", void 0);
31
31
  class FeedbackItemDto {
@@ -1 +1 @@
1
- {"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/feedback/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,yDAAyC;AACzC,kCAAmC;AAGnC,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAIb,QAAQ,CAAW;CACnB;AATD,8CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,CAAC;;mDACE;AAGpB,MAAa,eAAe;IAI3B,QAAQ,CAAS;IAKjB,QAAQ,CAAU;CAClB;AAVD,0CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACF"}
1
+ {"version":3,"file":"feedback.dto.js","sourceRoot":"","sources":["../../src/feedback/feedback.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAsF;AACtF,yDAAyC;AACzC,iDAA6C;AAG7C,MAAa,iBAAiB;IAI7B,IAAI,CAAS;IAIb,QAAQ,CAAW;CACnB;AATD,8CASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;mDACE;AAGpB,MAAa,eAAe;IAI3B,QAAQ,CAAS;IAKjB,QAAQ,CAAU;CAClB;AAVD,0CAUC;AANA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACM;AAKjB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACF"}
@@ -1,6 +1,6 @@
1
- import { PostType } from '../post';
2
- import { Metric } from '../metric';
3
- import { User } from '../user';
1
+ import { PostType } from '../post/post.type';
2
+ import { Metric } from '../metric/metric.model';
3
+ import { User } from '../user/user.model';
4
4
  import { FeedbackItem } from './feedback-item.model';
5
5
  export declare class Feedback {
6
6
  id: number;