@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
@@ -11,10 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Question = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const user_1 = require("../user");
15
- const category_1 = require("../category");
16
- const common_1 = require("../common");
17
- const metric_1 = require("../metric");
14
+ const user_model_1 = require("../user/user.model");
15
+ const category_model_1 = require("../category/category.model");
16
+ const status_type_1 = require("../common/status.type");
17
+ const metric_model_1 = require("../metric/metric.model");
18
18
  const comment_model_1 = require("./comment.model");
19
19
  class Question {
20
20
  id;
@@ -97,13 +97,13 @@ __decorate([
97
97
  ], Question.prototype, "myQuestion", void 0);
98
98
  __decorate([
99
99
  (0, class_transformer_1.Expose)(),
100
- (0, class_transformer_1.Type)(() => metric_1.Metric),
100
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
101
101
  __metadata("design:type", Array)
102
102
  ], Question.prototype, "metrics", void 0);
103
103
  __decorate([
104
104
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
105
- (0, class_transformer_1.Type)(() => user_1.User),
106
- __metadata("design:type", user_1.User)
105
+ (0, class_transformer_1.Type)(() => user_model_1.User),
106
+ __metadata("design:type", user_model_1.User)
107
107
  ], Question.prototype, "createdBy", void 0);
108
108
  __decorate([
109
109
  (0, class_transformer_1.Expose)(),
@@ -112,8 +112,8 @@ __decorate([
112
112
  ], Question.prototype, "createdOn", void 0);
113
113
  __decorate([
114
114
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
115
- (0, class_transformer_1.Type)(() => user_1.User),
116
- __metadata("design:type", user_1.User)
115
+ (0, class_transformer_1.Type)(() => user_model_1.User),
116
+ __metadata("design:type", user_model_1.User)
117
117
  ], Question.prototype, "updatedBy", void 0);
118
118
  __decorate([
119
119
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -122,8 +122,8 @@ __decorate([
122
122
  ], Question.prototype, "updatedOn", void 0);
123
123
  __decorate([
124
124
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
125
- (0, class_transformer_1.Type)(() => user_1.User),
126
- __metadata("design:type", user_1.User)
125
+ (0, class_transformer_1.Type)(() => user_model_1.User),
126
+ __metadata("design:type", user_model_1.User)
127
127
  ], Question.prototype, "statusChangedBy", void 0);
128
128
  __decorate([
129
129
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -132,8 +132,8 @@ __decorate([
132
132
  ], Question.prototype, "statusChangedOn", void 0);
133
133
  __decorate([
134
134
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
135
- (0, class_transformer_1.Type)(() => user_1.User),
136
- __metadata("design:type", user_1.User)
135
+ (0, class_transformer_1.Type)(() => user_model_1.User),
136
+ __metadata("design:type", user_model_1.User)
137
137
  ], Question.prototype, "publishedBy", void 0);
138
138
  __decorate([
139
139
  (0, class_transformer_1.Expose)(),
@@ -142,8 +142,8 @@ __decorate([
142
142
  ], Question.prototype, "publishedOn", void 0);
143
143
  __decorate([
144
144
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
145
- (0, class_transformer_1.Type)(() => user_1.User),
146
- __metadata("design:type", user_1.User)
145
+ (0, class_transformer_1.Type)(() => user_model_1.User),
146
+ __metadata("design:type", user_model_1.User)
147
147
  ], Question.prototype, "attentionBy", void 0);
148
148
  __decorate([
149
149
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -152,8 +152,8 @@ __decorate([
152
152
  ], Question.prototype, "attentionOn", void 0);
153
153
  __decorate([
154
154
  (0, class_transformer_1.Expose)(),
155
- (0, class_transformer_1.Type)(() => user_1.User),
156
- __metadata("design:type", user_1.User)
155
+ (0, class_transformer_1.Type)(() => user_model_1.User),
156
+ __metadata("design:type", user_model_1.User)
157
157
  ], Question.prototype, "user", void 0);
158
158
  __decorate([
159
159
  (0, class_transformer_1.Expose)(),
@@ -162,7 +162,7 @@ __decorate([
162
162
  ], Question.prototype, "comments", void 0);
163
163
  __decorate([
164
164
  (0, class_transformer_1.Expose)(),
165
- (0, class_transformer_1.Type)(() => category_1.Category),
165
+ (0, class_transformer_1.Type)(() => category_model_1.Category),
166
166
  __metadata("design:type", Array)
167
167
  ], Question.prototype, "categories", void 0);
168
168
  //# sourceMappingURL=question.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"question.model.js","sourceRoot":"","sources":["../../src/question/question.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,kCAA+B;AAC/B,0CAAuC;AACvC,sCAAuC;AACvC,sCAAmC;AACnC,mDAAkD;AAGlD,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,KAAK,CAAS;IAGd,QAAQ,CAAS;IAKjB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAKd,MAAM,CAAa;IAInB,OAAO,CAAU;IAIjB,MAAM,CAAU;IAIhB,UAAU,CAAU;IAcpB,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,WAAW,CAAO;IAIlB,WAAW,CAAO;IAMlB,IAAI,CAAO;IAIX,QAAQ,CAAoB;IAI5B,UAAU,CAAa;IAIvB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxHD,4BAw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ACA,iBAAI;iDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;iDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACJ,iBAAI;6CAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;6CAAC;AAIlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACJ,iBAAI;6CAAC;AAIlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;6CAAC;AAMlB;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"}
@@ -1,4 +1,4 @@
1
- import { Post } from '../post';
1
+ import { Post } from '../post/post.model';
2
2
  export declare class Quote {
3
3
  id: number;
4
4
  imageUrl: string;
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Quote = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const post_1 = require("../post");
14
+ const post_model_1 = require("../post/post.model");
15
15
  class Quote {
16
16
  id;
17
17
  imageUrl;
@@ -32,7 +32,7 @@ __decorate([
32
32
  ], Quote.prototype, "imageUrl", void 0);
33
33
  __decorate([
34
34
  (0, class_transformer_1.Expose)(),
35
- (0, class_transformer_1.Type)(() => post_1.Post),
36
- __metadata("design:type", post_1.Post)
35
+ (0, class_transformer_1.Type)(() => post_model_1.Post),
36
+ __metadata("design:type", post_model_1.Post)
37
37
  ], Quote.prototype, "post", void 0);
38
38
  //# sourceMappingURL=quote.model.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"quote.model.js","sourceRoot":"","sources":["../../src/quote/quote.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAG/B,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAIjB,IAAI,CAAO;IAEX,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,sBAgBC;AAZA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACX,WAAI;mCAAC"}
1
+ {"version":3,"file":"quote.model.js","sourceRoot":"","sources":["../../src/quote/quote.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,mDAA0C;AAG1C,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAIjB,IAAI,CAAO;IAEX,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,sBAgBC;AAZA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACX,iBAAI;mCAAC"}
@@ -1,5 +1,5 @@
1
1
  import { SocialLoginProvider } from './social.provider';
2
- import { IUserAgent } from '../common';
2
+ import { IUserAgent } from '../common/user.agent';
3
3
  export declare class SocialUserDto {
4
4
  uid: string;
5
5
  name: string;
@@ -2,6 +2,5 @@ export declare enum SocialLoginProvider {
2
2
  Google = "GOOGLE",
3
3
  Twitter = "TWITTER",
4
4
  Facebook = "FACEBOOK",
5
- Linkedin = "LINKEDIN",
6
5
  Apple = "APPLE"
7
6
  }
@@ -6,7 +6,6 @@ var SocialLoginProvider;
6
6
  SocialLoginProvider["Google"] = "GOOGLE";
7
7
  SocialLoginProvider["Twitter"] = "TWITTER";
8
8
  SocialLoginProvider["Facebook"] = "FACEBOOK";
9
- SocialLoginProvider["Linkedin"] = "LINKEDIN";
10
9
  SocialLoginProvider["Apple"] = "APPLE";
11
10
  })(SocialLoginProvider || (exports.SocialLoginProvider = SocialLoginProvider = {}));
12
11
  //# sourceMappingURL=social.provider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"social.provider.js","sourceRoot":"","sources":["../../src/social/social.provider.ts"],"names":[],"mappings":";;;AAIA,IAAY,mBA0BX;AA1BD,WAAY,mBAAmB;IAK9B,wCAAiB,CAAA;IAKjB,0CAAmB,CAAA;IAKnB,4CAAqB,CAAA;IAKrB,4CAAqB,CAAA;IAKrB,sCAAe,CAAA;AAChB,CAAC,EA1BW,mBAAmB,mCAAnB,mBAAmB,QA0B9B"}
1
+ {"version":3,"file":"social.provider.js","sourceRoot":"","sources":["../../src/social/social.provider.ts"],"names":[],"mappings":";;;AAIA,IAAY,mBAqBX;AArBD,WAAY,mBAAmB;IAK9B,wCAAiB,CAAA;IAKjB,0CAAmB,CAAA;IAKnB,4CAAqB,CAAA;IAKrB,sCAAe,CAAA;AAChB,CAAC,EArBW,mBAAmB,mCAAnB,mBAAmB,QAqB9B"}
@@ -1,4 +1,4 @@
1
- import { User } from '../user';
1
+ import { User } from '../user/user.model';
2
2
  import { Survey } from './survey.model';
3
3
  import { SurveyOption } from './survey-option.model';
4
4
  export declare class SurveyItem {
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.SurveyItem = 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 survey_model_1 = require("./survey.model");
16
16
  const survey_option_model_1 = require("./survey-option.model");
17
17
  class SurveyItem {
@@ -67,8 +67,8 @@ __decorate([
67
67
  ], SurveyItem.prototype, "options", void 0);
68
68
  __decorate([
69
69
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
70
- (0, class_transformer_1.Type)(() => user_1.User),
71
- __metadata("design:type", user_1.User)
70
+ (0, class_transformer_1.Type)(() => user_model_1.User),
71
+ __metadata("design:type", user_model_1.User)
72
72
  ], SurveyItem.prototype, "createdBy", void 0);
73
73
  __decorate([
74
74
  (0, class_transformer_1.Expose)(),
@@ -77,8 +77,8 @@ __decorate([
77
77
  ], SurveyItem.prototype, "createdOn", void 0);
78
78
  __decorate([
79
79
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
80
- (0, class_transformer_1.Type)(() => user_1.User),
81
- __metadata("design:type", user_1.User)
80
+ (0, class_transformer_1.Type)(() => user_model_1.User),
81
+ __metadata("design:type", user_model_1.User)
82
82
  ], SurveyItem.prototype, "updatedBy", void 0);
83
83
  __decorate([
84
84
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -1 +1 @@
1
- {"version":3,"file":"survey-item.model.js","sourceRoot":"","sources":["../../src/survey/survey-item.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,iDAAwC;AACxC,+DAAqD;AAGrD,MAAa,UAAU;IAItB,EAAE,CAAS;IAKX,QAAQ,CAAS;IAMjB,QAAQ,CAAU;IAIlB,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,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAxDD,gCAwDC;AApDA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;4CACQ;AAMjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;4CACF;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;4CACF;AAIlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACN;AAMb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAM,CAAC;8BACX,qBAAM;0CAAC;A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@ -1,6 +1,7 @@
1
- import { StatusType, StatusLabel } 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
  import { SurveyItem } from './survey-item.model';
5
6
  export declare class Survey {
6
7
  id: number;
@@ -11,9 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Survey = 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
  const survey_item_model_1 = require("./survey-item.model");
18
19
  class Survey {
19
20
  id;
@@ -92,13 +93,13 @@ __decorate([
92
93
  ], Survey.prototype, "isStarted", void 0);
93
94
  __decorate([
94
95
  (0, class_transformer_1.Expose)(),
95
- (0, class_transformer_1.Type)(() => metric_1.Metric),
96
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
96
97
  __metadata("design:type", Array)
97
98
  ], Survey.prototype, "metrics", void 0);
98
99
  __decorate([
99
100
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
100
- (0, class_transformer_1.Type)(() => user_1.User),
101
- __metadata("design:type", user_1.User)
101
+ (0, class_transformer_1.Type)(() => user_model_1.User),
102
+ __metadata("design:type", user_model_1.User)
102
103
  ], Survey.prototype, "createdBy", void 0);
103
104
  __decorate([
104
105
  (0, class_transformer_1.Expose)(),
@@ -107,8 +108,8 @@ __decorate([
107
108
  ], Survey.prototype, "createdOn", void 0);
108
109
  __decorate([
109
110
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
110
- (0, class_transformer_1.Type)(() => user_1.User),
111
- __metadata("design:type", user_1.User)
111
+ (0, class_transformer_1.Type)(() => user_model_1.User),
112
+ __metadata("design:type", user_model_1.User)
112
113
  ], Survey.prototype, "updatedBy", void 0);
113
114
  __decorate([
114
115
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -117,8 +118,8 @@ __decorate([
117
118
  ], Survey.prototype, "updatedOn", void 0);
118
119
  __decorate([
119
120
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
120
- (0, class_transformer_1.Type)(() => user_1.User),
121
- __metadata("design:type", user_1.User)
121
+ (0, class_transformer_1.Type)(() => user_model_1.User),
122
+ __metadata("design:type", user_model_1.User)
122
123
  ], Survey.prototype, "statusChangedBy", void 0);
123
124
  __decorate([
124
125
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -127,8 +128,8 @@ __decorate([
127
128
  ], Survey.prototype, "statusChangedOn", void 0);
128
129
  __decorate([
129
130
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
130
- (0, class_transformer_1.Type)(() => user_1.User),
131
- __metadata("design:type", user_1.User)
131
+ (0, class_transformer_1.Type)(() => user_model_1.User),
132
+ __metadata("design:type", user_model_1.User)
132
133
  ], Survey.prototype, "publishedBy", void 0);
133
134
  __decorate([
134
135
  (0, class_transformer_1.Expose)(),
@@ -1 +1 @@
1
- {"version":3,"file":"survey.model.js","sourceRoot":"","sources":["../../src/survey/survey.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,sCAAoD;AACpD,sCAAmC;AACnC,kCAA+B;AAC/B,2DAAiD;AAGjD,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;I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OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAI,CAAC;8BACJ,iBAAI;2CAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;2CAAC"}
@@ -1,7 +1,7 @@
1
- import { Item } from "../item";
2
- import { Metric } from "../metric";
3
- import { User } from "../user/";
4
- import { Popularity } from "../popularity";
1
+ import { Item } from "../item/item.model";
2
+ import { Metric } from "../metric/metric.model";
3
+ import { User } from "../user/user.model";
4
+ import { Popularity } from "../popularity/popularity.model";
5
5
  export declare class Topic {
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.Topic = 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/");
17
- const popularity_1 = require("../popularity");
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
+ const popularity_model_1 = require("../popularity/popularity.model");
18
18
  class Topic {
19
19
  id;
20
20
  title;
@@ -34,7 +34,7 @@ class Topic {
34
34
  static toItemList(data, key = 'id') {
35
35
  if (!data || data.length === 0)
36
36
  return [];
37
- return data.map(i => new item_1.Item({
37
+ return data.map(i => new item_model_1.Item({
38
38
  title: i.title,
39
39
  value: i[key]
40
40
  }));
@@ -70,19 +70,19 @@ __decorate([
70
70
  ], Topic.prototype, "weight", void 0);
71
71
  __decorate([
72
72
  (0, class_transformer_1.Expose)(),
73
- (0, class_transformer_1.Type)(() => popularity_1.Popularity),
74
- (0, class_transformer_1.Transform)(({ obj }) => popularity_1.Popularity.get(obj.weight)),
75
- __metadata("design:type", popularity_1.Popularity)
73
+ (0, class_transformer_1.Type)(() => popularity_model_1.Popularity),
74
+ (0, class_transformer_1.Transform)(({ obj }) => popularity_model_1.Popularity.get(obj.weight)),
75
+ __metadata("design:type", popularity_model_1.Popularity)
76
76
  ], Topic.prototype, "popularity", void 0);
77
77
  __decorate([
78
78
  (0, class_transformer_1.Expose)(),
79
- (0, class_transformer_1.Type)(() => metric_1.Metric),
79
+ (0, class_transformer_1.Type)(() => metric_model_1.Metric),
80
80
  __metadata("design:type", Array)
81
81
  ], Topic.prototype, "metrics", void 0);
82
82
  __decorate([
83
83
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
84
- (0, class_transformer_1.Type)(() => user_1.User),
85
- __metadata("design:type", user_1.User)
84
+ (0, class_transformer_1.Type)(() => user_model_1.User),
85
+ __metadata("design:type", user_model_1.User)
86
86
  ], Topic.prototype, "createdBy", void 0);
87
87
  __decorate([
88
88
  (0, class_transformer_1.Expose)(),
@@ -91,8 +91,8 @@ __decorate([
91
91
  ], Topic.prototype, "createdOn", void 0);
92
92
  __decorate([
93
93
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
94
- (0, class_transformer_1.Type)(() => user_1.User),
95
- __metadata("design:type", user_1.User)
94
+ (0, class_transformer_1.Type)(() => user_model_1.User),
95
+ __metadata("design:type", user_model_1.User)
96
96
  ], Topic.prototype, "updatedBy", void 0);
97
97
  __decorate([
98
98
  (0, class_transformer_1.Expose)({ groups: ['admin'] }),
@@ -1 +1 @@
1
- {"version":3,"file":"topic.model.js","sourceRoot":"","sources":["../../src/topic/topic.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,kCAA+B;AAC/B,sCAAmC;AACnC,mCAAgC;AAChC,8CAA2C;AAE3C,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;IAI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