@intelact/bright 0.7.34 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. package/lib/models/asset.js +14 -0
  2. package/lib/models/asset.js.map +1 -1
  3. package/lib/models/author.js +22 -0
  4. package/lib/models/author.js.map +1 -1
  5. package/lib/models/boost.js +31 -0
  6. package/lib/models/boost.js.map +1 -1
  7. package/lib/models/brand.js +39 -0
  8. package/lib/models/brand.js.map +1 -1
  9. package/lib/models/category.js +22 -0
  10. package/lib/models/category.js.map +1 -1
  11. package/lib/models/collection.js +19 -0
  12. package/lib/models/collection.js.map +1 -1
  13. package/lib/models/feedback.js +50 -0
  14. package/lib/models/feedback.js.map +1 -1
  15. package/lib/models/gallery.js +14 -0
  16. package/lib/models/gallery.js.map +1 -1
  17. package/lib/models/index.d.ts +2 -0
  18. package/lib/models/index.js +2 -0
  19. package/lib/models/index.js.map +1 -1
  20. package/lib/models/item.d.ts +12 -0
  21. package/lib/models/item.js +36 -0
  22. package/lib/models/item.js.map +1 -0
  23. package/lib/models/link.d.ts +11 -0
  24. package/lib/models/link.js +30 -0
  25. package/lib/models/link.js.map +1 -0
  26. package/lib/models/post.d.ts +12 -1
  27. package/lib/models/post.js +192 -1
  28. package/lib/models/post.js.map +1 -1
  29. package/lib/models/promotion.js +22 -0
  30. package/lib/models/promotion.js.map +1 -1
  31. package/lib/models/publisher.js +26 -0
  32. package/lib/models/publisher.js.map +1 -1
  33. package/lib/models/question.d.ts +13 -0
  34. package/lib/models/question.js +161 -0
  35. package/lib/models/question.js.map +1 -1
  36. package/lib/models/quote.js +18 -0
  37. package/lib/models/quote.js.map +1 -1
  38. package/lib/models/survey.js +70 -0
  39. package/lib/models/survey.js.map +1 -1
  40. package/lib/models/topic.js +22 -0
  41. package/lib/models/topic.js.map +1 -1
  42. package/lib/models/user.js +32 -0
  43. package/lib/models/user.js.map +1 -1
  44. package/lib/test.d.ts +1 -0
  45. package/lib/test.js +14 -0
  46. package/lib/test.js.map +1 -0
  47. package/lib/tsconfig.tsbuildinfo +1 -1
  48. package/package.json +5 -3
@@ -1,6 +1,23 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Post = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const author_1 = require("./author");
15
+ const publisher_1 = require("./publisher");
16
+ const topic_1 = require("./topic");
17
+ const enums_1 = require("../enums");
18
+ const gallery_1 = require("./gallery");
19
+ const feedback_1 = require("./feedback");
20
+ const item_1 = require("./item");
4
21
  class Post {
5
22
  id;
6
23
  publisher;
@@ -11,12 +28,12 @@ class Post {
11
28
  gallery;
12
29
  postType;
13
30
  status;
31
+ info;
14
32
  publishedDate;
15
33
  slug;
16
34
  title;
17
35
  description;
18
36
  content;
19
- info;
20
37
  duration;
21
38
  totalHits;
22
39
  totalLikes;
@@ -33,9 +50,183 @@ class Post {
33
50
  mediaUrl;
34
51
  mediaEmbeddedUrl;
35
52
  externUrl;
53
+ icon;
54
+ svgIcon;
55
+ tags;
56
+ bookmark;
57
+ like;
58
+ share;
59
+ hit;
60
+ download;
36
61
  constructor(props) {
37
62
  Object.assign(this, props);
38
63
  }
64
+ get type() {
65
+ return this.postType;
66
+ }
39
67
  }
40
68
  exports.Post = Post;
69
+ __decorate([
70
+ (0, class_transformer_1.Type)(() => Number),
71
+ __metadata("design:type", Number)
72
+ ], Post.prototype, "id", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
75
+ __metadata("design:type", publisher_1.Publisher)
76
+ ], Post.prototype, "publisher", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Type)(() => author_1.Author),
79
+ __metadata("design:type", author_1.Author)
80
+ ], Post.prototype, "author", void 0);
81
+ __decorate([
82
+ (0, class_transformer_1.Type)(() => topic_1.Topic),
83
+ __metadata("design:type", Array)
84
+ ], Post.prototype, "topics", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Type)(() => feedback_1.Feedback),
87
+ __metadata("design:type", feedback_1.Feedback)
88
+ ], Post.prototype, "feedback", void 0);
89
+ __decorate([
90
+ (0, class_transformer_1.Type)(() => Post),
91
+ __metadata("design:type", Array)
92
+ ], Post.prototype, "collection", void 0);
93
+ __decorate([
94
+ (0, class_transformer_1.Type)(() => gallery_1.GalleryItem),
95
+ __metadata("design:type", Array)
96
+ ], Post.prototype, "gallery", void 0);
97
+ __decorate([
98
+ (0, class_transformer_1.Type)(() => Date),
99
+ __metadata("design:type", Date)
100
+ ], Post.prototype, "publishedDate", void 0);
101
+ __decorate([
102
+ (0, class_transformer_1.Type)(() => Number),
103
+ __metadata("design:type", Number)
104
+ ], Post.prototype, "duration", void 0);
105
+ __decorate([
106
+ (0, class_transformer_1.Type)(() => Number),
107
+ __metadata("design:type", Number)
108
+ ], Post.prototype, "totalHits", void 0);
109
+ __decorate([
110
+ (0, class_transformer_1.Type)(() => Number),
111
+ __metadata("design:type", Number)
112
+ ], Post.prototype, "totalLikes", void 0);
113
+ __decorate([
114
+ (0, class_transformer_1.Type)(() => Number),
115
+ __metadata("design:type", Number)
116
+ ], Post.prototype, "totalShares", void 0);
117
+ __decorate([
118
+ (0, class_transformer_1.Type)(() => Number),
119
+ __metadata("design:type", Number)
120
+ ], Post.prototype, "totalBookmarks", void 0);
121
+ __decorate([
122
+ (0, class_transformer_1.Type)(() => Number),
123
+ __metadata("design:type", Number)
124
+ ], Post.prototype, "totalDownloads", void 0);
125
+ __decorate([
126
+ (0, class_transformer_1.Type)(() => Boolean),
127
+ __metadata("design:type", Boolean)
128
+ ], Post.prototype, "isBookmarked", void 0);
129
+ __decorate([
130
+ (0, class_transformer_1.Type)(() => Boolean),
131
+ __metadata("design:type", Boolean)
132
+ ], Post.prototype, "isLiked", void 0);
133
+ __decorate([
134
+ (0, class_transformer_1.Type)(() => Boolean),
135
+ __metadata("design:type", Boolean)
136
+ ], Post.prototype, "isShared", void 0);
137
+ __decorate([
138
+ (0, class_transformer_1.Type)(() => Boolean),
139
+ __metadata("design:type", Boolean)
140
+ ], Post.prototype, "isDownloaded", void 0);
141
+ __decorate([
142
+ (0, class_transformer_1.Transform)(({ obj }) => {
143
+ switch (obj.postType) {
144
+ case enums_1.PostType.Article:
145
+ return 'file-lines';
146
+ case enums_1.PostType.Book:
147
+ return 'book-open';
148
+ case enums_1.PostType.Audio:
149
+ return 'headphones';
150
+ case enums_1.PostType.Video:
151
+ return 'circle-play';
152
+ case enums_1.PostType.News:
153
+ return 'newspaper';
154
+ case enums_1.PostType.Event:
155
+ return 'microphone';
156
+ }
157
+ }),
158
+ __metadata("design:type", Object)
159
+ ], Post.prototype, "icon", void 0);
160
+ __decorate([
161
+ (0, class_transformer_1.Transform)(({ obj }) => {
162
+ switch (obj.postType) {
163
+ case enums_1.PostType.Article:
164
+ return '/assets/icons/content-type-article.svg';
165
+ case enums_1.PostType.Book:
166
+ return '/assets/icons/content-type-book.svg';
167
+ case enums_1.PostType.Audio:
168
+ return '/assets/icons/content-type-audio.svg';
169
+ case enums_1.PostType.Video:
170
+ return '/assets/icons/content-type-video.svg';
171
+ case enums_1.PostType.News:
172
+ return '/assets/icons/content-type-news.svg';
173
+ case enums_1.PostType.Event:
174
+ return '/assets/icons/content-type-event.svg';
175
+ }
176
+ }),
177
+ __metadata("design:type", String)
178
+ ], Post.prototype, "svgIcon", void 0);
179
+ __decorate([
180
+ (0, class_transformer_1.Transform)(({ obj }) => (obj?.topics?.map((i) => i.hash) || [])),
181
+ __metadata("design:type", Array)
182
+ ], Post.prototype, "tags", void 0);
183
+ __decorate([
184
+ (0, class_transformer_1.Type)(() => item_1.Item),
185
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
186
+ value: obj.totalBookmarks || 0,
187
+ active: obj.isBookmarked,
188
+ icon: ['far', 'bookmark'],
189
+ iconSelected: ['fas', 'bookmark'],
190
+ })),
191
+ __metadata("design:type", item_1.Item)
192
+ ], Post.prototype, "bookmark", void 0);
193
+ __decorate([
194
+ (0, class_transformer_1.Type)(() => item_1.Item),
195
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
196
+ value: obj.totalLikes || 0,
197
+ active: obj.isLiked,
198
+ icon: ['far', 'heart'],
199
+ iconSelected: ['fas', 'heart'],
200
+ })),
201
+ __metadata("design:type", item_1.Item)
202
+ ], Post.prototype, "like", void 0);
203
+ __decorate([
204
+ (0, class_transformer_1.Type)(() => item_1.Item),
205
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
206
+ value: obj.totalShares || 0,
207
+ active: obj.isShared,
208
+ icon: ['far', 'share-from-square'],
209
+ iconSelected: ['fas', 'share-from-square'],
210
+ })),
211
+ __metadata("design:type", item_1.Item)
212
+ ], Post.prototype, "share", void 0);
213
+ __decorate([
214
+ (0, class_transformer_1.Type)(() => item_1.Item),
215
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
216
+ value: obj.totalHits || 0,
217
+ icon: ['fas', 'eye'],
218
+ iconSelected: ['fas', 'eye'],
219
+ })),
220
+ __metadata("design:type", item_1.Item)
221
+ ], Post.prototype, "hit", void 0);
222
+ __decorate([
223
+ (0, class_transformer_1.Type)(() => item_1.Item),
224
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
225
+ value: obj.totalDownloads || 0,
226
+ active: obj.isDownloaded,
227
+ icon: ['fas', 'download'],
228
+ iconSelected: ['fas', 'download'],
229
+ })),
230
+ __metadata("design:type", item_1.Item)
231
+ ], Post.prototype, "download", void 0);
41
232
  //# sourceMappingURL=post.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/models/post.ts"],"names":[],"mappings":";;;AAWA,MAAa,IAAI;IAEhB,EAAE,CAAS;IAKX,SAAS,CAAY;IAKrB,MAAM,CAAS;IAKf,MAAM,CAAU;IAKhB,QAAQ,CAAW;IAKnB,UAAU,CAAQ;IAKlB,OAAO,CAAgB;IAKvB,QAAQ,CAAsB;IAK9B,MAAM,CAAa;IAKnB,aAAa,CAAO;IAKpB,IAAI,CAAS;IAKb,KAAK,CAAS;IAKd,WAAW,CAAS;IAKpB,OAAO,CAAS;IAKhB,IAAI,CAAmB;IAKvB,QAAQ,CAAS;IAKjB,SAAS,CAAS;IAKlB,UAAU,CAAS;IAKnB,WAAW,CAAS;IAKpB,cAAc,CAAS;IAKvB,cAAc,CAAS;IAKvB,YAAY,CAAU;IAKtB,OAAO,CAAU;IAKjB,QAAQ,CAAU;IAKlB,YAAY,CAAU;IAKtB,MAAM,CAAS;IAKf,QAAQ,CAAS;IAKjB,SAAS,CAAS;IAKlB,QAAQ,CAAS;IAKjB,gBAAgB,CAAS;IAKzB,SAAS,CAAS;IAElB,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA7JD,oBA6JC"}
1
+ {"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/models/post.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAoD;AAEpD,qCAAkC;AAClC,2CAAwC;AACxC,mCAAgC;AAChC,oCAA0D;AAC1D,uCAAwC;AACxC,yCAAsC;AACtC,iCAA8B;AAM9B,MAAa,IAAI;IAGhB,EAAE,CAAS;IAMX,SAAS,CAAY;IAMrB,MAAM,CAAS;IAMf,MAAM,CAAU;IAMhB,QAAQ,CAAW;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IAAI,WAAI,CAAC;QAChC,KAAK,EAAE,GAAG,CAAC,cAAc,IAAI,CAAC;QAC9B,MAAM,EAAE,GAAG,CAAC,YAAY;QACxB,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;QACzB,YAAY,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC;KACjC,CAAC,CAAC;8BACO,WAAI;sCAAS"}
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Promotion = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class Promotion {
5
15
  id;
6
16
  title;
@@ -14,4 +24,16 @@ class Promotion {
14
24
  }
15
25
  }
16
26
  exports.Promotion = Promotion;
27
+ __decorate([
28
+ (0, class_transformer_1.Type)(() => Number),
29
+ __metadata("design:type", Number)
30
+ ], Promotion.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Type)(() => Date),
33
+ __metadata("design:type", Date)
34
+ ], Promotion.prototype, "startDate", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Type)(() => Date),
37
+ __metadata("design:type", Date)
38
+ ], Promotion.prototype, "endDate", void 0);
17
39
  //# sourceMappingURL=promotion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;AAIA,MAAa,SAAS;IAErB,EAAE,CAAS;IAKX,KAAK,CAAS;IAKd,QAAQ,CAAS;IAMjB,SAAS,CAAS;IAKlB,GAAG,CAAS;IAKZ,SAAS,CAAO;IAKhB,OAAO,CAAO;IAEd,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtCD,8BAsCC"}
1
+ {"version":3,"file":"promotion.js","sourceRoot":"","sources":["../../src/models/promotion.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAMzC,MAAa,SAAS;IAGrB,EAAE,CAAS;IAKX,KAAK,CAAS;IAKd,QAAQ,CAAS;IAMjB,SAAS,CAAS;IAKlB,GAAG,CAAS;IAMZ,SAAS,CAAO;IAMhB,OAAO,CAAO;IAEd,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAzCD,8BAyCC;AAtCA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qCACR;AA2BX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAMhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;0CAAC"}
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Publisher = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  const enums_1 = require("../enums");
5
15
  class Publisher {
6
16
  id;
@@ -31,4 +41,20 @@ class Publisher {
31
41
  }
32
42
  }
33
43
  exports.Publisher = Publisher;
44
+ __decorate([
45
+ (0, class_transformer_1.Type)(() => Number),
46
+ __metadata("design:type", Number)
47
+ ], Publisher.prototype, "id", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Type)(() => Boolean),
50
+ __metadata("design:type", Boolean)
51
+ ], Publisher.prototype, "publicVisibility", void 0);
52
+ __decorate([
53
+ (0, class_transformer_1.Type)(() => Number),
54
+ __metadata("design:type", Number)
55
+ ], Publisher.prototype, "totalUsers", void 0);
56
+ __decorate([
57
+ (0, class_transformer_1.Type)(() => Number),
58
+ __metadata("design:type", Number)
59
+ ], Publisher.prototype, "totalPosts", void 0);
34
60
  //# sourceMappingURL=publisher.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"publisher.js","sourceRoot":"","sources":["../../src/models/publisher.ts"],"names":[],"mappings":";;;AAAA,oCAAuD;AAKvD,MAAa,SAAS;IAErB,EAAE,CAAS;IAKX,IAAI,CAAS;IAMb,MAAM,CAAS;IAMf,WAAW,CAAS;IAKpB,GAAG,CAAS;IAKZ,IAAI,CAAS;IAKb,MAAM,CAAoB;IAK1B,gBAAgB,CAAa;IAK7B,gBAAgB,CAAU;IAK1B,UAAU,CAAS;IAKnB,UAAU,CAAS;IAEnB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,QAAQ;QACP,OAAO,IAAI,CAAC,MAAM,KAAK,yBAAiB,CAAC,MAAM,CA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AAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;mDACM;AAM1B;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACA;AAMnB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACA"}
@@ -2,16 +2,21 @@ import { Author } from './author';
2
2
  import { User } from './user';
3
3
  import { Category } from './category';
4
4
  import { StatusType } from '../enums';
5
+ import { Item } from './item';
5
6
  export declare class Question {
6
7
  id: number;
7
8
  status: StatusType;
8
9
  slug: string;
9
10
  title: string;
11
+ name: string;
12
+ email: string;
13
+ phone: string;
10
14
  question: string;
11
15
  private: boolean;
12
16
  closed: boolean;
13
17
  totalHits: number;
14
18
  totalComments: number;
19
+ totalItems: number;
15
20
  totalLikes: number;
16
21
  totalShares: number;
17
22
  totalBookmarks: number;
@@ -22,7 +27,14 @@ export declare class Question {
22
27
  createdOn: Date;
23
28
  user: User;
24
29
  comments: QuestionComment[];
30
+ items: QuestionComment[];
25
31
  categories: Category[];
32
+ topics: QuestionComment[];
33
+ tags: string[];
34
+ bookmark: Item<number>;
35
+ like: Item<number>;
36
+ share: Item<number>;
37
+ hit: Item<number>;
26
38
  constructor(props?: Partial<Question>);
27
39
  }
28
40
  export declare class QuestionComment {
@@ -30,6 +42,7 @@ export declare class QuestionComment {
30
42
  question: Question;
31
43
  author: Author;
32
44
  comment: string;
45
+ content: string;
33
46
  status: StatusType;
34
47
  publishedDate: Date;
35
48
  createdOn: Date;
@@ -1,16 +1,34 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.QuestionComment = exports.Question = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const author_1 = require("./author");
15
+ const user_1 = require("./user");
16
+ const category_1 = require("./category");
17
+ const item_1 = require("./item");
4
18
  class Question {
5
19
  id;
6
20
  status;
7
21
  slug;
8
22
  title;
23
+ name;
24
+ email;
25
+ phone;
9
26
  question;
10
27
  private;
11
28
  closed;
12
29
  totalHits;
13
30
  totalComments;
31
+ totalItems;
14
32
  totalLikes;
15
33
  totalShares;
16
34
  totalBookmarks;
@@ -21,17 +39,144 @@ class Question {
21
39
  createdOn;
22
40
  user;
23
41
  comments;
42
+ items;
24
43
  categories;
44
+ topics;
45
+ tags;
46
+ bookmark;
47
+ like;
48
+ share;
49
+ hit;
25
50
  constructor(props) {
26
51
  Object.assign(this, props);
27
52
  }
28
53
  }
29
54
  exports.Question = Question;
55
+ __decorate([
56
+ (0, class_transformer_1.Type)(() => Number),
57
+ __metadata("design:type", Number)
58
+ ], Question.prototype, "id", void 0);
59
+ __decorate([
60
+ (0, class_transformer_1.Type)(() => Boolean),
61
+ __metadata("design:type", Boolean)
62
+ ], Question.prototype, "private", void 0);
63
+ __decorate([
64
+ (0, class_transformer_1.Type)(() => Boolean),
65
+ __metadata("design:type", Boolean)
66
+ ], Question.prototype, "closed", void 0);
67
+ __decorate([
68
+ (0, class_transformer_1.Type)(() => Number),
69
+ __metadata("design:type", Number)
70
+ ], Question.prototype, "totalHits", void 0);
71
+ __decorate([
72
+ (0, class_transformer_1.Type)(() => Number),
73
+ __metadata("design:type", Number)
74
+ ], Question.prototype, "totalComments", void 0);
75
+ __decorate([
76
+ (0, class_transformer_1.Type)(() => Number),
77
+ __metadata("design:type", Number)
78
+ ], Question.prototype, "totalItems", void 0);
79
+ __decorate([
80
+ (0, class_transformer_1.Type)(() => Number),
81
+ __metadata("design:type", Number)
82
+ ], Question.prototype, "totalLikes", void 0);
83
+ __decorate([
84
+ (0, class_transformer_1.Type)(() => Number),
85
+ __metadata("design:type", Number)
86
+ ], Question.prototype, "totalShares", void 0);
87
+ __decorate([
88
+ (0, class_transformer_1.Type)(() => Number),
89
+ __metadata("design:type", Number)
90
+ ], Question.prototype, "totalBookmarks", void 0);
91
+ __decorate([
92
+ (0, class_transformer_1.Type)(() => Boolean),
93
+ __metadata("design:type", Boolean)
94
+ ], Question.prototype, "isBookmarked", void 0);
95
+ __decorate([
96
+ (0, class_transformer_1.Type)(() => Boolean),
97
+ __metadata("design:type", Boolean)
98
+ ], Question.prototype, "isLiked", void 0);
99
+ __decorate([
100
+ (0, class_transformer_1.Type)(() => Boolean),
101
+ __metadata("design:type", Boolean)
102
+ ], Question.prototype, "isShared", void 0);
103
+ __decorate([
104
+ (0, class_transformer_1.Type)(() => Boolean),
105
+ __metadata("design:type", Boolean)
106
+ ], Question.prototype, "myQuestion", void 0);
107
+ __decorate([
108
+ (0, class_transformer_1.Type)(() => Date),
109
+ __metadata("design:type", Date)
110
+ ], Question.prototype, "createdOn", void 0);
111
+ __decorate([
112
+ (0, class_transformer_1.Type)(() => user_1.User),
113
+ __metadata("design:type", user_1.User)
114
+ ], Question.prototype, "user", void 0);
115
+ __decorate([
116
+ (0, class_transformer_1.Type)(() => QuestionComment),
117
+ __metadata("design:type", Array)
118
+ ], Question.prototype, "comments", void 0);
119
+ __decorate([
120
+ (0, class_transformer_1.Type)(() => QuestionComment),
121
+ __metadata("design:type", Array)
122
+ ], Question.prototype, "items", void 0);
123
+ __decorate([
124
+ (0, class_transformer_1.Type)(() => category_1.Category),
125
+ __metadata("design:type", Array)
126
+ ], Question.prototype, "categories", void 0);
127
+ __decorate([
128
+ (0, class_transformer_1.Type)(() => QuestionComment),
129
+ __metadata("design:type", Array)
130
+ ], Question.prototype, "topics", void 0);
131
+ __decorate([
132
+ (0, class_transformer_1.Transform)(({ obj }) => (obj?.categories?.map((i) => i.hash) || [])),
133
+ __metadata("design:type", Array)
134
+ ], Question.prototype, "tags", void 0);
135
+ __decorate([
136
+ (0, class_transformer_1.Type)(() => item_1.Item),
137
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
138
+ value: obj.totalBookmarks || 0,
139
+ active: obj.isBookmarked,
140
+ icon: ['far', 'bookmark'],
141
+ iconSelected: ['fas', 'bookmark'],
142
+ })),
143
+ __metadata("design:type", item_1.Item)
144
+ ], Question.prototype, "bookmark", void 0);
145
+ __decorate([
146
+ (0, class_transformer_1.Type)(() => item_1.Item),
147
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
148
+ value: obj.totalLikes || 0,
149
+ active: obj.isLiked,
150
+ icon: ['far', 'heart'],
151
+ iconSelected: ['fas', 'heart'],
152
+ })),
153
+ __metadata("design:type", item_1.Item)
154
+ ], Question.prototype, "like", void 0);
155
+ __decorate([
156
+ (0, class_transformer_1.Type)(() => item_1.Item),
157
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
158
+ value: obj.totalShares || 0,
159
+ active: obj.isShared,
160
+ icon: ['far', 'share-from-square'],
161
+ iconSelected: ['fas', 'share-from-square'],
162
+ })),
163
+ __metadata("design:type", item_1.Item)
164
+ ], Question.prototype, "share", void 0);
165
+ __decorate([
166
+ (0, class_transformer_1.Type)(() => item_1.Item),
167
+ (0, class_transformer_1.Transform)(({ obj }) => new item_1.Item({
168
+ value: obj.totalHits || 0,
169
+ icon: ['fas', 'eye'],
170
+ iconSelected: ['fas', 'eye'],
171
+ })),
172
+ __metadata("design:type", item_1.Item)
173
+ ], Question.prototype, "hit", void 0);
30
174
  class QuestionComment {
31
175
  id;
32
176
  question;
33
177
  author;
34
178
  comment;
179
+ content;
35
180
  status;
36
181
  publishedDate;
37
182
  createdOn;
@@ -40,4 +185,20 @@ class QuestionComment {
40
185
  }
41
186
  }
42
187
  exports.QuestionComment = QuestionComment;
188
+ __decorate([
189
+ (0, class_transformer_1.Type)(() => Number),
190
+ __metadata("design:type", Number)
191
+ ], QuestionComment.prototype, "id", void 0);
192
+ __decorate([
193
+ (0, class_transformer_1.Type)(() => author_1.Author),
194
+ __metadata("design:type", author_1.Author)
195
+ ], QuestionComment.prototype, "author", void 0);
196
+ __decorate([
197
+ (0, class_transformer_1.Type)(() => Date),
198
+ __metadata("design:type", Date)
199
+ ], QuestionComment.prototype, "publishedDate", void 0);
200
+ __decorate([
201
+ (0, class_transformer_1.Type)(() => Date),
202
+ __metadata("design:type", Date)
203
+ ], QuestionComment.prototype, "createdOn", void 0);
43
204
  //# sourceMappingURL=question.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"question.js","sourceRoot":"","sources":["../../src/models/question.ts"],"names":[],"mappings":";;;AASA,MAAa,QAAQ;IAEpB,EAAE,CAAS;IAKX,MAAM,CAAa;IAKnB,IAAI,CAAS;IAKb,KAAK,CAAS;IAKd,QAAQ,CAAS;IAKjB,OAAO,CAAU;IAKjB,MAAM,CAAU;IAKhB,SAAS,CAAS;IAKlB,aAAa,CAAS;IAKtB,UAAU,CAAS;IAKnB,WAAW,CAAS;IAKpB,cAAc,CAAS;IAKvB,YAAY,CAAU;IAKtB,OAAO,CAAU;IAKjB,QAAQ,CAAU;IAKlB,UAAU,CAAU;IAKpB,SAAS,CAAO;IAKhB,IAAI,CAAO;IAKX,QAAQ,CAAoB;IAK5B,UAAU,CAAa;IAEvB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtGD,4BAsGC;AAOD,MAAa,eAAe;IAE3B,EAAE,CAAS;IAKX,QAAQ,CAAW;IAOnB,MAAM,CAAS;IAKf,OAAO,CAAS;IAKhB,MAAM,CAAa;IAKnB,aAAa,CAAO;IAKpB,SAAS,CAAO;IAEhB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I,CAAC;IAChB,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,IAAI,WAAI,CAAC;QAChC,KAAK,EAAE,GAAG,CAAC,SAAS,IAAI,CAAC;QACzB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;QACpB,YAAY,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;KAC5B,CAAC,CAAC;8BACE,WAAI;qCAAS;AAYnB,MAAa,eAAe;IAG3B,EAAE,CAAS;IAKX,QAAQ,CAAW;IAOnB,MAAM,CAAS;IAKf,OAAO,CAAS;IAKhB,OAAO,CAAS;IAKhB,MAAM,CAAa;IAMnB,aAAa,CAAO;IAMpB,SAAS,CAAO;IAEhB,YAAY,KAAgC;QAC3C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,0CA+CC;AA5CA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;2CACR;AAYX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACX,eAAM;+CAAC;AAqBf;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACF,IAAI;sDAAC;AAMpB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;kDAAC"}
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Quote = void 0;
13
+ const class_transformer_1 = require("class-transformer");
4
14
  class Quote {
5
15
  id;
6
16
  imageUrl;
@@ -10,4 +20,12 @@ class Quote {
10
20
  }
11
21
  }
12
22
  exports.Quote = Quote;
23
+ __decorate([
24
+ (0, class_transformer_1.Type)(() => Number),
25
+ __metadata("design:type", Number)
26
+ ], Quote.prototype, "id", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Type)(() => Date),
29
+ __metadata("design:type", Date)
30
+ ], Quote.prototype, "publishedDate", void 0);
13
31
  //# sourceMappingURL=quote.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/models/quote.ts"],"names":[],"mappings":";;;AAKA,MAAa,KAAK;IAEjB,EAAE,CAAS;IAEX,QAAQ,CAAS;IAEjB,aAAa,CAAO;IAEpB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAXD,sBAWC"}
1
+ {"version":3,"file":"quote.js","sourceRoot":"","sources":["../../src/models/quote.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AAKzC,MAAa,KAAK;IAGjB,EAAE,CAAS;IAEX,QAAQ,CAAS;IAGjB,aAAa,CAAO;IAEpB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAbD,sBAaC;AAVA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAKX;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACF,IAAI;4CAAC"}