@intelact/bright 0.9.79 → 0.9.80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. package/lib/auth/auth.event.d.ts +9 -0
  2. package/lib/auth/auth.event.js +14 -0
  3. package/lib/auth/auth.event.js.map +1 -0
  4. package/lib/auth/index.d.ts +4 -0
  5. package/lib/auth/index.js +21 -0
  6. package/lib/auth/index.js.map +1 -0
  7. package/lib/auth/password.dto.d.ts +8 -0
  8. package/lib/auth/password.dto.js +44 -0
  9. package/lib/auth/password.dto.js.map +1 -0
  10. package/lib/auth/sign.dto.d.ts +11 -0
  11. package/lib/auth/sign.dto.js +54 -0
  12. package/lib/auth/sign.dto.js.map +1 -0
  13. package/lib/auth/verify.dto.d.ts +10 -0
  14. package/lib/auth/verify.dto.js +47 -0
  15. package/lib/auth/verify.dto.js.map +1 -0
  16. package/lib/author/author.model.d.ts +19 -0
  17. package/lib/author/author.model.js +98 -0
  18. package/lib/author/author.model.js.map +1 -0
  19. package/lib/author/author.sort.d.ts +6 -0
  20. package/lib/author/author.sort.js +11 -0
  21. package/lib/author/author.sort.js.map +1 -0
  22. package/lib/author/index.d.ts +2 -0
  23. package/lib/author/index.js +19 -0
  24. package/lib/author/index.js.map +1 -0
  25. package/lib/boost/boost.dto.d.ts +5 -0
  26. package/lib/boost/boost.dto.js +38 -0
  27. package/lib/boost/boost.dto.js.map +1 -0
  28. package/lib/boost/boost.model.d.ts +16 -0
  29. package/lib/boost/boost.model.js +82 -0
  30. package/lib/boost/boost.model.js.map +1 -0
  31. package/lib/boost/index.d.ts +2 -0
  32. package/lib/boost/index.js +19 -0
  33. package/lib/boost/index.js.map +1 -0
  34. package/lib/brand/brand-setting.model.d.ts +12 -0
  35. package/lib/brand/brand-setting.model.js +58 -0
  36. package/lib/brand/brand-setting.model.js.map +1 -0
  37. package/lib/brand/brand-setting.type.d.ts +10 -0
  38. package/lib/brand/brand-setting.type.js +15 -0
  39. package/lib/brand/brand-setting.type.js.map +1 -0
  40. package/lib/brand/brand.dto.d.ts +6 -0
  41. package/lib/brand/brand.dto.js +41 -0
  42. package/lib/brand/brand.dto.js.map +1 -0
  43. package/lib/brand/brand.model.d.ts +31 -0
  44. package/lib/brand/brand.model.js +201 -0
  45. package/lib/brand/brand.model.js.map +1 -0
  46. package/lib/brand/index.d.ts +4 -0
  47. package/lib/brand/index.js +21 -0
  48. package/lib/brand/index.js.map +1 -0
  49. package/lib/category/category.model.d.ts +18 -0
  50. package/lib/category/category.model.js +94 -0
  51. package/lib/category/category.model.js.map +1 -0
  52. package/lib/category/index.d.ts +1 -0
  53. package/lib/category/index.js +18 -0
  54. package/lib/category/index.js.map +1 -0
  55. package/lib/collection/collection.model.d.ts +16 -0
  56. package/lib/collection/collection.model.js +77 -0
  57. package/lib/collection/collection.model.js.map +1 -0
  58. package/lib/collection/index.d.ts +1 -0
  59. package/lib/collection/index.js +18 -0
  60. package/lib/collection/index.js.map +1 -0
  61. package/lib/common/asset.type.d.ts +7 -0
  62. package/lib/common/asset.type.js +12 -0
  63. package/lib/common/asset.type.js.map +1 -0
  64. package/lib/common/bookmark.dto.d.ts +4 -0
  65. package/lib/common/bookmark.dto.js +24 -0
  66. package/lib/common/bookmark.dto.js.map +1 -0
  67. package/lib/common/browse.dto.d.ts +9 -0
  68. package/lib/common/browse.dto.js +47 -0
  69. package/lib/common/browse.dto.js.map +1 -0
  70. package/lib/common/general.dto.d.ts +25 -0
  71. package/lib/common/general.dto.js +94 -0
  72. package/lib/common/general.dto.js.map +1 -0
  73. package/lib/common/index.d.ts +11 -0
  74. package/lib/common/index.js +28 -0
  75. package/lib/common/index.js.map +1 -0
  76. package/lib/common/module.scope.d.ts +22 -0
  77. package/lib/common/module.scope.js +27 -0
  78. package/lib/common/module.scope.js.map +1 -0
  79. package/lib/common/module.type.d.ts +6 -0
  80. package/lib/common/module.type.js +11 -0
  81. package/lib/common/module.type.js.map +1 -0
  82. package/lib/common/search.dto.d.ts +14 -0
  83. package/lib/common/search.dto.js +74 -0
  84. package/lib/common/search.dto.js.map +1 -0
  85. package/lib/common/sort.type.d.ts +8 -0
  86. package/lib/common/sort.type.js +13 -0
  87. package/lib/common/sort.type.js.map +1 -0
  88. package/lib/common/status.label.d.ts +6 -0
  89. package/lib/common/status.label.js +11 -0
  90. package/lib/common/status.label.js.map +1 -0
  91. package/lib/common/status.type.d.ts +7 -0
  92. package/lib/common/status.type.js +12 -0
  93. package/lib/common/status.type.js.map +1 -0
  94. package/lib/common/user.agent.d.ts +11 -0
  95. package/lib/common/user.agent.js +3 -0
  96. package/lib/common/user.agent.js.map +1 -0
  97. package/lib/contact/contact.dto.d.ts +5 -0
  98. package/lib/contact/contact.dto.js +35 -0
  99. package/lib/contact/contact.dto.js.map +1 -0
  100. package/lib/contact/index.d.ts +1 -0
  101. package/lib/contact/index.js +18 -0
  102. package/lib/contact/index.js.map +1 -0
  103. package/lib/feedback/feedback-item.model.d.ts +15 -0
  104. package/lib/feedback/feedback-item.model.js +81 -0
  105. package/lib/feedback/feedback-item.model.js.map +1 -0
  106. package/lib/feedback/feedback-option.model.d.ts +7 -0
  107. package/lib/feedback/feedback-option.model.js +43 -0
  108. package/lib/feedback/feedback-option.model.js.map +1 -0
  109. package/lib/feedback/feedback.data.d.ts +6 -0
  110. package/lib/feedback/feedback.data.js +3 -0
  111. package/lib/feedback/feedback.data.js.map +1 -0
  112. package/lib/feedback/feedback.dto.d.ts +9 -0
  113. package/lib/feedback/feedback.dto.js +47 -0
  114. package/lib/feedback/feedback.dto.js.map +1 -0
  115. package/lib/feedback/feedback.model.d.ts +18 -0
  116. package/lib/feedback/feedback.model.js +87 -0
  117. package/lib/feedback/feedback.model.js.map +1 -0
  118. package/lib/feedback/index.d.ts +5 -0
  119. package/lib/feedback/index.js +22 -0
  120. package/lib/feedback/index.js.map +1 -0
  121. package/lib/gallery/gallery.model.d.ts +6 -0
  122. package/lib/gallery/gallery.model.js +36 -0
  123. package/lib/gallery/gallery.model.js.map +1 -0
  124. package/lib/gallery/index.d.ts +1 -0
  125. package/lib/gallery/index.js +18 -0
  126. package/lib/gallery/index.js.map +1 -0
  127. package/lib/index.d.ts +27 -4
  128. package/lib/index.js +27 -4
  129. package/lib/index.js.map +1 -1
  130. package/lib/item/index.d.ts +1 -0
  131. package/lib/item/index.js +18 -0
  132. package/lib/item/index.js.map +1 -0
  133. package/lib/item/item.model.d.ts +14 -0
  134. package/lib/item/item.model.js +37 -0
  135. package/lib/item/item.model.js.map +1 -0
  136. package/lib/link/index.d.ts +1 -0
  137. package/lib/link/index.js +18 -0
  138. package/lib/link/index.js.map +1 -0
  139. package/lib/link/link.model.d.ts +16 -0
  140. package/lib/link/link.model.js +35 -0
  141. package/lib/link/link.model.js.map +1 -0
  142. package/lib/log/index.d.ts +2 -0
  143. package/lib/log/index.js +19 -0
  144. package/lib/log/index.js.map +1 -0
  145. package/lib/log/log.event.d.ts +14 -0
  146. package/lib/log/log.event.js +19 -0
  147. package/lib/log/log.event.js.map +1 -0
  148. package/lib/log/log.model.d.ts +12 -0
  149. package/lib/log/log.model.js +16 -0
  150. package/lib/log/log.model.js.map +1 -0
  151. package/lib/metric/index.d.ts +2 -0
  152. package/lib/metric/index.js +19 -0
  153. package/lib/metric/index.js.map +1 -0
  154. package/lib/metric/metric.model.d.ts +27 -0
  155. package/lib/metric/metric.model.js +189 -0
  156. package/lib/metric/metric.model.js.map +1 -0
  157. package/lib/metric/metric.type.d.ts +10 -0
  158. package/lib/metric/metric.type.js +15 -0
  159. package/lib/metric/metric.type.js.map +1 -0
  160. package/lib/notification/index.d.ts +5 -0
  161. package/lib/notification/index.js +22 -0
  162. package/lib/notification/index.js.map +1 -0
  163. package/lib/notification/notification.dto.d.ts +4 -0
  164. package/lib/notification/notification.dto.js +29 -0
  165. package/lib/notification/notification.dto.js.map +1 -0
  166. package/lib/notification/notification.event.d.ts +6 -0
  167. package/lib/notification/notification.event.js +11 -0
  168. package/lib/notification/notification.event.js.map +1 -0
  169. package/lib/notification/notification.model.d.ts +9 -0
  170. package/lib/notification/notification.model.js +48 -0
  171. package/lib/notification/notification.model.js.map +1 -0
  172. package/lib/notification/notification.token.d.ts +4 -0
  173. package/lib/notification/notification.token.js +3 -0
  174. package/lib/notification/notification.token.js.map +1 -0
  175. package/lib/notification/notification.type.d.ts +6 -0
  176. package/lib/notification/notification.type.js +11 -0
  177. package/lib/notification/notification.type.js.map +1 -0
  178. package/lib/popularity/index.d.ts +2 -0
  179. package/lib/popularity/index.js +19 -0
  180. package/lib/popularity/index.js.map +1 -0
  181. package/lib/popularity/popularity.model.d.ts +9 -0
  182. package/lib/popularity/popularity.model.js +95 -0
  183. package/lib/popularity/popularity.model.js.map +1 -0
  184. package/lib/popularity/popularity.rate.d.ts +8 -0
  185. package/lib/popularity/popularity.rate.js +13 -0
  186. package/lib/popularity/popularity.rate.js.map +1 -0
  187. package/lib/post/index.d.ts +4 -0
  188. package/lib/post/index.js +21 -0
  189. package/lib/post/index.js.map +1 -0
  190. package/lib/post/post.additionals.d.ts +24 -0
  191. package/lib/post/post.additionals.js +3 -0
  192. package/lib/post/post.additionals.js.map +1 -0
  193. package/lib/post/post.dto.d.ts +26 -0
  194. package/lib/post/post.dto.js +119 -0
  195. package/lib/post/post.dto.js.map +1 -0
  196. package/lib/post/post.model.d.ts +74 -0
  197. package/lib/post/post.model.js +514 -0
  198. package/lib/post/post.model.js.map +1 -0
  199. package/lib/post/post.type.d.ts +8 -0
  200. package/lib/post/post.type.js +13 -0
  201. package/lib/post/post.type.js.map +1 -0
  202. package/lib/promotion/index.d.ts +2 -0
  203. package/lib/promotion/index.js +19 -0
  204. package/lib/promotion/index.js.map +1 -0
  205. package/lib/promotion/promotion.dto.d.ts +5 -0
  206. package/lib/promotion/promotion.dto.js +38 -0
  207. package/lib/promotion/promotion.dto.js.map +1 -0
  208. package/lib/promotion/promotion.model.d.ts +24 -0
  209. package/lib/promotion/promotion.model.js +125 -0
  210. package/lib/promotion/promotion.model.js.map +1 -0
  211. package/lib/publisher/index.d.ts +3 -0
  212. package/lib/publisher/index.js +20 -0
  213. package/lib/publisher/index.js.map +1 -0
  214. package/lib/publisher/publisher.dto.d.ts +8 -0
  215. package/lib/publisher/publisher.dto.js +39 -0
  216. package/lib/publisher/publisher.dto.js.map +1 -0
  217. package/lib/publisher/publisher.enum.d.ts +7 -0
  218. package/lib/publisher/publisher.enum.js +12 -0
  219. package/lib/publisher/publisher.enum.js.map +1 -0
  220. package/lib/publisher/publisher.model.d.ts +29 -0
  221. package/lib/publisher/publisher.model.js +136 -0
  222. package/lib/publisher/publisher.model.js.map +1 -0
  223. package/lib/question/comment.model.d.ts +20 -0
  224. package/lib/question/comment.model.js +99 -0
  225. package/lib/question/comment.model.js.map +1 -0
  226. package/lib/question/index.d.ts +3 -0
  227. package/lib/question/index.js +20 -0
  228. package/lib/question/index.js.map +1 -0
  229. package/lib/question/question.dto.d.ts +15 -0
  230. package/lib/question/question.dto.js +86 -0
  231. package/lib/question/question.dto.js.map +1 -0
  232. package/lib/question/question.model.d.ts +39 -0
  233. package/lib/question/question.model.js +205 -0
  234. package/lib/question/question.model.js.map +1 -0
  235. package/lib/quote/index.d.ts +1 -0
  236. package/lib/quote/index.js +18 -0
  237. package/lib/quote/index.js.map +1 -0
  238. package/lib/quote/quote.model.d.ts +5 -0
  239. package/lib/quote/quote.model.js +31 -0
  240. package/lib/quote/quote.model.js.map +1 -0
  241. package/lib/security/account.status.d.ts +6 -0
  242. package/lib/security/account.status.js +11 -0
  243. package/lib/security/account.status.js.map +1 -0
  244. package/lib/security/account.type.d.ts +5 -0
  245. package/lib/security/account.type.js +10 -0
  246. package/lib/security/account.type.js.map +1 -0
  247. package/lib/security/index.d.ts +3 -0
  248. package/lib/security/index.js +3 -0
  249. package/lib/security/index.js.map +1 -1
  250. package/lib/security/token.interface.d.ts +7 -0
  251. package/lib/security/token.interface.js +3 -0
  252. package/lib/security/token.interface.js.map +1 -0
  253. package/lib/social/index.d.ts +4 -0
  254. package/lib/social/index.js +21 -0
  255. package/lib/social/index.js.map +1 -0
  256. package/lib/social/share.interface.d.ts +6 -0
  257. package/lib/social/share.interface.js +3 -0
  258. package/lib/social/share.interface.js.map +1 -0
  259. package/lib/social/share.provider.d.ts +7 -0
  260. package/lib/social/share.provider.js +12 -0
  261. package/lib/social/share.provider.js.map +1 -0
  262. package/lib/social/social-user.dto.d.ts +11 -0
  263. package/lib/social/social-user.dto.js +59 -0
  264. package/lib/social/social-user.dto.js.map +1 -0
  265. package/lib/social/social.provider.d.ts +7 -0
  266. package/lib/social/social.provider.js +12 -0
  267. package/lib/social/social.provider.js.map +1 -0
  268. package/lib/survey/index.d.ts +5 -0
  269. package/lib/survey/index.js +22 -0
  270. package/lib/survey/index.js.map +1 -0
  271. package/lib/survey/survey-item.model.d.ts +17 -0
  272. package/lib/survey/survey-item.model.js +88 -0
  273. package/lib/survey/survey-item.model.js.map +1 -0
  274. package/lib/survey/survey-option.model.d.ts +9 -0
  275. package/lib/survey/survey-option.model.js +50 -0
  276. package/lib/survey/survey-option.model.js.map +1 -0
  277. package/lib/survey/survey.dto.d.ts +9 -0
  278. package/lib/survey/survey.dto.js +54 -0
  279. package/lib/survey/survey.dto.js.map +1 -0
  280. package/lib/survey/survey.event.d.ts +5 -0
  281. package/lib/survey/survey.event.js +10 -0
  282. package/lib/survey/survey.event.js.map +1 -0
  283. package/lib/survey/survey.model.d.ts +27 -0
  284. package/lib/survey/survey.model.js +138 -0
  285. package/lib/survey/survey.model.js.map +1 -0
  286. package/lib/topic/index.d.ts +1 -0
  287. package/lib/topic/index.js +18 -0
  288. package/lib/topic/index.js.map +1 -0
  289. package/lib/topic/topic.model.d.ts +20 -0
  290. package/lib/topic/topic.model.js +104 -0
  291. package/lib/topic/topic.model.js.map +1 -0
  292. package/lib/tsconfig.tsbuildinfo +1 -1
  293. package/lib/ui/background.enum.d.ts +10 -0
  294. package/lib/ui/background.enum.js +15 -0
  295. package/lib/ui/background.enum.js.map +1 -0
  296. package/lib/ui/color.enum.d.ts +10 -0
  297. package/lib/ui/color.enum.js +15 -0
  298. package/lib/ui/color.enum.js.map +1 -0
  299. package/lib/ui/context.enum.d.ts +10 -0
  300. package/lib/ui/context.enum.js +15 -0
  301. package/lib/ui/context.enum.js.map +1 -0
  302. package/lib/ui/index.d.ts +3 -0
  303. package/lib/ui/index.js +20 -0
  304. package/lib/ui/index.js.map +1 -0
  305. package/lib/user/index.d.ts +2 -0
  306. package/lib/user/index.js +19 -0
  307. package/lib/user/index.js.map +1 -0
  308. package/lib/user/user.dto.d.ts +24 -0
  309. package/lib/user/user.dto.js +99 -0
  310. package/lib/user/user.dto.js.map +1 -0
  311. package/lib/user/user.model.d.ts +38 -0
  312. package/lib/user/user.model.js +258 -0
  313. package/lib/user/user.model.js.map +1 -0
  314. package/lib/verification/index.d.ts +1 -0
  315. package/lib/verification/index.js +18 -0
  316. package/lib/verification/index.js.map +1 -0
  317. package/lib/verification/verification.type.d.ts +5 -0
  318. package/lib/verification/verification.type.js +10 -0
  319. package/lib/verification/verification.type.js.map +1 -0
  320. package/package.json +2 -7
@@ -0,0 +1,48 @@
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
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Notification = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const notification_type_1 = require("./notification.type");
15
+ class Notification {
16
+ type;
17
+ title;
18
+ message;
19
+ data;
20
+ autoClose;
21
+ constructor(props) {
22
+ Object.assign(this, props);
23
+ }
24
+ }
25
+ exports.Notification = Notification;
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], Notification.prototype, "type", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], Notification.prototype, "title", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], Notification.prototype, "message", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", String)
41
+ ], Notification.prototype, "data", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)(),
44
+ (0, class_transformer_1.Type)(() => Number),
45
+ (0, class_transformer_1.Transform)(({ value }) => value || 3000),
46
+ __metadata("design:type", Number)
47
+ ], Notification.prototype, "autoClose", void 0);
48
+ //# sourceMappingURL=notification.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.model.js","sourceRoot":"","sources":["../../src/notification/notification.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,2DAAuD;AAGvD,MAAa,YAAY;IAMxB,IAAI,CAAmB;IAMvB,KAAK,CAAS;IAMd,OAAO,CAAS;IAMhB,IAAI,CAAS;IAQb,SAAS,CAAS;IAElB,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AArCD,oCAqCC;AA/BA;IADC,IAAA,0BAAM,GAAE;;0CACc;AAMvB;IADC,IAAA,0BAAM,GAAE;;2CACK;AAMd;IADC,IAAA,0BAAM,GAAE;;6CACO;AAMhB;IADC,IAAA,0BAAM,GAAE;;0CACI;AAQb;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,IAAI,IAAI,CAAC;;+CACtB"}
@@ -0,0 +1,4 @@
1
+ export interface NotificationToken {
2
+ deviceType: string;
3
+ token: string;
4
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=notification.token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.token.js","sourceRoot":"","sources":["../../src/notification/notification.token.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationType {
2
+ Info = "INFO",
3
+ Success = "SUCCESS",
4
+ Warning = "WARNING",
5
+ Error = "ERROR"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationType = void 0;
4
+ var NotificationType;
5
+ (function (NotificationType) {
6
+ NotificationType["Info"] = "INFO";
7
+ NotificationType["Success"] = "SUCCESS";
8
+ NotificationType["Warning"] = "WARNING";
9
+ NotificationType["Error"] = "ERROR";
10
+ })(NotificationType || (exports.NotificationType = NotificationType = {}));
11
+ //# sourceMappingURL=notification.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.type.js","sourceRoot":"","sources":["../../src/notification/notification.type.ts"],"names":[],"mappings":";;;AAKA,IAAY,gBAqBX;AArBD,WAAY,gBAAgB;IAK3B,iCAAa,CAAA;IAKb,uCAAmB,CAAA;IAKnB,uCAAmB,CAAA;IAKnB,mCAAe,CAAA;AAChB,CAAC,EArBW,gBAAgB,gCAAhB,gBAAgB,QAqB3B"}
@@ -0,0 +1,2 @@
1
+ export * from './popularity.rate';
2
+ export * from './popularity.model';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./popularity.rate"), exports);
18
+ __exportStar(require("./popularity.model"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/popularity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC"}
@@ -0,0 +1,9 @@
1
+ import { PopularityRate } from "./popularity.rate";
2
+ import { Context } from "../ui";
3
+ export declare class Popularity {
4
+ rate: PopularityRate;
5
+ weight: number;
6
+ context: Context;
7
+ constructor(props?: Partial<Popularity>);
8
+ static get(weight: number): Popularity;
9
+ }
@@ -0,0 +1,95 @@
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
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.Popularity = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const popularity_rate_1 = require("./popularity.rate");
15
+ const ui_1 = require("../ui");
16
+ class Popularity {
17
+ rate;
18
+ weight;
19
+ context;
20
+ constructor(props) {
21
+ Object.assign(this, props);
22
+ }
23
+ static get(weight) {
24
+ if (!weight) {
25
+ return new Popularity({
26
+ rate: popularity_rate_1.PopularityRate.Poor,
27
+ weight: 0,
28
+ context: ui_1.Context.Light
29
+ });
30
+ }
31
+ if (weight < 1.9999) {
32
+ return new Popularity({
33
+ rate: popularity_rate_1.PopularityRate.Poor,
34
+ weight: weight,
35
+ context: ui_1.Context.Secondary
36
+ });
37
+ }
38
+ if (weight >= 2 && weight < 3.9999) {
39
+ return new Popularity({
40
+ rate: popularity_rate_1.PopularityRate.Week,
41
+ weight: weight,
42
+ context: ui_1.Context.Dark
43
+ });
44
+ }
45
+ if (weight >= 4 && weight < 5.9999) {
46
+ return new Popularity({
47
+ rate: popularity_rate_1.PopularityRate.Fair,
48
+ weight: weight,
49
+ context: ui_1.Context.Primary
50
+ });
51
+ }
52
+ if (weight >= 6 && weight < 7.9999) {
53
+ return new Popularity({
54
+ rate: popularity_rate_1.PopularityRate.Great,
55
+ weight: weight,
56
+ context: ui_1.Context.Info
57
+ });
58
+ }
59
+ if (weight >= 8 && weight < 8.9999) {
60
+ return new Popularity({
61
+ rate: popularity_rate_1.PopularityRate.Excellent,
62
+ weight: weight,
63
+ context: ui_1.Context.Success
64
+ });
65
+ }
66
+ if (weight >= 9 && weight <= 10) {
67
+ return new Popularity({
68
+ rate: popularity_rate_1.PopularityRate.Exceptional,
69
+ weight: weight,
70
+ context: ui_1.Context.Danger
71
+ });
72
+ }
73
+ }
74
+ }
75
+ exports.Popularity = Popularity;
76
+ __decorate([
77
+ (0, class_transformer_1.Expose)(),
78
+ __metadata("design:type", String)
79
+ ], Popularity.prototype, "rate", void 0);
80
+ __decorate([
81
+ (0, class_transformer_1.Expose)(),
82
+ (0, class_transformer_1.Type)(() => Number),
83
+ __metadata("design:type", Number)
84
+ ], Popularity.prototype, "weight", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Expose)(),
87
+ __metadata("design:type", String)
88
+ ], Popularity.prototype, "context", void 0);
89
+ __decorate([
90
+ (0, class_transformer_1.Expose)(),
91
+ __metadata("design:type", Function),
92
+ __metadata("design:paramtypes", [Number]),
93
+ __metadata("design:returntype", Popularity)
94
+ ], Popularity, "get", null);
95
+ //# sourceMappingURL=popularity.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popularity.model.js","sourceRoot":"","sources":["../../src/popularity/popularity.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,uDAAmD;AACnD,8BAAgC;AAGhC,MAAa,UAAU;IAGtB,IAAI,CAAiB;IAIrB,MAAM,CAAS;IAGf,OAAO,CAAU;IAEjB,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAGM,AAAP,MAAM,CAAC,GAAG,CAAC,MAAc;QAExB,IAAI,CAAC,MAAM,EAAE,CAAC;YACb,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,CAAC;gBACT,OAAO,EAAE,YAAO,CAAC,KAAK;aACtB,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YACrB,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,YAAO,CAAC,SAAS;aAC1B,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YACpC,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,YAAO,CAAC,IAAI;aACrB,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YACpC,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,IAAI;gBACzB,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,YAAO,CAAC,OAAO;aACxB,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YACpC,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,KAAK;gBAC1B,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,YAAO,CAAC,IAAI;aACrB,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,GAAG,MAAM,EAAE,CAAC;YACpC,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,SAAS;gBAC9B,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,YAAO,CAAC,OAAO;aACxB,CAAC,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,IAAI,CAAC,IAAI,MAAM,IAAI,EAAE,EAAE,CAAC;YACjC,OAAO,IAAI,UAAU,CAAC;gBACrB,IAAI,EAAE,gCAAc,CAAC,WAAW;gBAChC,MAAM,EAAE,MAAM;gBACd,OAAO,EAAE,YAAO,CAAC,MAAM;aACvB,CAAC,CAAC;QACJ,CAAC;IACF,CAAC;CACD;AA3ED,gCA2EC;AAxEA;IADC,IAAA,0BAAM,GAAE;;wCACY;AAIrB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACJ;AAGf;IADC,IAAA,0BAAM,GAAE;;2CACQ;AAOV;IADN,IAAA,0BAAM,GAAE;;;oCACmB,UAAU;2BAyDrC"}
@@ -0,0 +1,8 @@
1
+ export declare enum PopularityRate {
2
+ Poor = "POOR",
3
+ Week = "WEEK",
4
+ Fair = "FAIR",
5
+ Great = "GREAT",
6
+ Excellent = "EXCELLANT",
7
+ Exceptional = "EXCEPTIONAL"
8
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PopularityRate = void 0;
4
+ var PopularityRate;
5
+ (function (PopularityRate) {
6
+ PopularityRate["Poor"] = "POOR";
7
+ PopularityRate["Week"] = "WEEK";
8
+ PopularityRate["Fair"] = "FAIR";
9
+ PopularityRate["Great"] = "GREAT";
10
+ PopularityRate["Excellent"] = "EXCELLANT";
11
+ PopularityRate["Exceptional"] = "EXCEPTIONAL";
12
+ })(PopularityRate || (exports.PopularityRate = PopularityRate = {}));
13
+ //# sourceMappingURL=popularity.rate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popularity.rate.js","sourceRoot":"","sources":["../../src/popularity/popularity.rate.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAoCX;AApCD,WAAY,cAAc;IAKzB,+BAAa,CAAA;IAMb,+BAAa,CAAA;IAMb,+BAAa,CAAA;IAMb,iCAAe,CAAA;IAMf,yCAAuB,CAAA;IAMvB,6CAA2B,CAAA;AAC5B,CAAC,EApCW,cAAc,8BAAd,cAAc,QAoCzB"}
@@ -0,0 +1,4 @@
1
+ export * from './post.dto';
2
+ export * from './post.type';
3
+ export * from './post.additionals';
4
+ export * from './post.model';
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./post.dto"), exports);
18
+ __exportStar(require("./post.type"), exports);
19
+ __exportStar(require("./post.additionals"), exports);
20
+ __exportStar(require("./post.model"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,8CAA4B;AAC5B,qDAAmC;AACnC,+CAA6B"}
@@ -0,0 +1,24 @@
1
+ export interface IPostAdditionals {
2
+ book?: IPostBookInfo;
3
+ events?: IPostEventInfo[];
4
+ }
5
+ export interface IPostBookInfo {
6
+ bookTranslatedBy?: string;
7
+ bookTotalPages?: number;
8
+ bookISBN?: string;
9
+ bookPrice?: number;
10
+ bookPublishDate?: number;
11
+ bookPublisher?: string;
12
+ }
13
+ export interface IPostEventInfo {
14
+ id: number;
15
+ name: string;
16
+ location: string;
17
+ date: Date;
18
+ schedule: {
19
+ id: number;
20
+ title: string;
21
+ start: string;
22
+ end: string;
23
+ }[];
24
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=post.additionals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.additionals.js","sourceRoot":"","sources":["../../src/post/post.additionals.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import { SortType, StatusType } from '../common';
2
+ import { PostType } from './post.type';
3
+ export declare class PostParamsDto {
4
+ type: PostType;
5
+ status: StatusType;
6
+ term: string;
7
+ sort: SortType;
8
+ topics: string[];
9
+ authors: string[];
10
+ }
11
+ export declare class PostAdminParamsDto {
12
+ types: PostType[];
13
+ statuses: StatusType[];
14
+ term: string;
15
+ sort: SortType;
16
+ topics: number[];
17
+ authors: number[];
18
+ publishers: number[];
19
+ }
20
+ export declare class CreatePostDto {
21
+ title: string;
22
+ type: PostType;
23
+ }
24
+ export declare class PostAuthorDto {
25
+ author: number;
26
+ }
@@ -0,0 +1,119 @@
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
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PostAuthorDto = exports.CreatePostDto = exports.PostAdminParamsDto = exports.PostParamsDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const common_1 = require("../common");
15
+ const post_type_1 = require("./post.type");
16
+ class PostParamsDto {
17
+ type;
18
+ status;
19
+ term;
20
+ sort;
21
+ topics;
22
+ authors;
23
+ }
24
+ exports.PostParamsDto = PostParamsDto;
25
+ __decorate([
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsEnum)(post_type_1.PostType),
28
+ __metadata("design:type", String)
29
+ ], PostParamsDto.prototype, "type", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsEnum)(common_1.StatusType),
33
+ __metadata("design:type", String)
34
+ ], PostParamsDto.prototype, "status", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsString)(),
38
+ __metadata("design:type", String)
39
+ ], PostParamsDto.prototype, "term", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsEnum)(common_1.SortType),
43
+ __metadata("design:type", String)
44
+ ], PostParamsDto.prototype, "sort", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ __metadata("design:type", Array)
48
+ ], PostParamsDto.prototype, "topics", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ __metadata("design:type", Array)
52
+ ], PostParamsDto.prototype, "authors", void 0);
53
+ class PostAdminParamsDto {
54
+ types;
55
+ statuses;
56
+ term;
57
+ sort;
58
+ topics;
59
+ authors;
60
+ publishers;
61
+ }
62
+ exports.PostAdminParamsDto = PostAdminParamsDto;
63
+ __decorate([
64
+ (0, class_validator_1.IsOptional)(),
65
+ (0, class_validator_1.IsEnum)(post_type_1.PostType),
66
+ __metadata("design:type", Array)
67
+ ], PostAdminParamsDto.prototype, "types", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_validator_1.IsEnum)(common_1.StatusType),
71
+ __metadata("design:type", Array)
72
+ ], PostAdminParamsDto.prototype, "statuses", void 0);
73
+ __decorate([
74
+ (0, class_validator_1.IsOptional)(),
75
+ (0, class_validator_1.IsString)(),
76
+ __metadata("design:type", String)
77
+ ], PostAdminParamsDto.prototype, "term", void 0);
78
+ __decorate([
79
+ (0, class_validator_1.IsOptional)(),
80
+ (0, class_validator_1.IsEnum)(common_1.SortType),
81
+ __metadata("design:type", String)
82
+ ], PostAdminParamsDto.prototype, "sort", void 0);
83
+ __decorate([
84
+ (0, class_validator_1.IsOptional)(),
85
+ __metadata("design:type", Array)
86
+ ], PostAdminParamsDto.prototype, "topics", void 0);
87
+ __decorate([
88
+ (0, class_validator_1.IsOptional)(),
89
+ __metadata("design:type", Array)
90
+ ], PostAdminParamsDto.prototype, "authors", void 0);
91
+ __decorate([
92
+ (0, class_validator_1.IsOptional)(),
93
+ __metadata("design:type", Array)
94
+ ], PostAdminParamsDto.prototype, "publishers", void 0);
95
+ class CreatePostDto {
96
+ title;
97
+ type;
98
+ }
99
+ exports.CreatePostDto = CreatePostDto;
100
+ __decorate([
101
+ (0, class_validator_1.IsNotEmpty)(),
102
+ (0, class_validator_1.IsString)(),
103
+ __metadata("design:type", String)
104
+ ], CreatePostDto.prototype, "title", void 0);
105
+ __decorate([
106
+ (0, class_validator_1.IsNotEmpty)(),
107
+ (0, class_validator_1.IsEnum)(post_type_1.PostType),
108
+ __metadata("design:type", String)
109
+ ], CreatePostDto.prototype, "type", void 0);
110
+ class PostAuthorDto {
111
+ author;
112
+ }
113
+ exports.PostAuthorDto = PostAuthorDto;
114
+ __decorate([
115
+ (0, class_validator_1.IsOptional)(),
116
+ (0, class_validator_1.IsNumber)(),
117
+ __metadata("design:type", Number)
118
+ ], PostAuthorDto.prototype, "author", void 0);
119
+ //# sourceMappingURL=post.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post.dto.js","sourceRoot":"","sources":["../../src/post/post.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAqF;AACrF,sCAAiD;AACjD,2CAAuC;AAEvC,MAAa,aAAa;IAIzB,IAAI,CAAW;IAIf,MAAM,CAAa;IAInB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;CAClB;AAvBD,sCAuBC;AAnBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;2CACF;AAIf;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mBAAU,CAAC;;6CACA;AAInB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAQ,CAAC;;2CACF;AAGf;IADC,IAAA,4BAAU,GAAE;;6CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;8CACK;AAGnB,MAAa,kBAAkB;IAI9B,KAAK,CAAa;IAIlB,QAAQ,CAAe;IAIvB,IAAI,CAAS;IAIb,IAAI,CAAW;IAGf,MAAM,CAAW;IAGjB,OAAO,CAAW;IAGlB,UAAU,CAAW;CACrB;AA1BD,gDA0BC;AAtBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;iDACC;AAIlB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,mBAAU,CAAC;;oDACI;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,iBAAQ,CAAC;;gDACF;AAGf;IADC,IAAA,4BAAU,GAAE;;kDACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;mDACK;AAGlB;IADC,IAAA,4BAAU,GAAE;;sDACQ;AAGtB,MAAa,aAAa;IAGzB,KAAK,CAAS;IAId,IAAI,CAAW;CACf;AARD,sCAQC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,oBAAQ,CAAC;;2CACF;AAGhB,MAAa,aAAa;IAGzB,MAAM,CAAS;CACf;AAJD,sCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACI"}
@@ -0,0 +1,74 @@
1
+ import { IconProp } from '@fortawesome/fontawesome-svg-core';
2
+ import { User } from '../user/user.model';
3
+ import { Author } from '../author';
4
+ import { Publisher } from '../publisher';
5
+ import { Topic } from '../topic';
6
+ import { GalleryItem } from '../gallery';
7
+ import { Feedback } from '../feedback';
8
+ import { Item } from '../item/item.model';
9
+ import { Metric } from '../metric';
10
+ import { StatusType } from '../common';
11
+ import { PostType } from './post.type';
12
+ import { Context } from '../ui';
13
+ import { Popularity } from '../popularity';
14
+ import { IPostAdditionals } from './post.additionals';
15
+ export declare class Post {
16
+ id: number;
17
+ slug: string;
18
+ title: string;
19
+ description: string;
20
+ content: string;
21
+ info: IPostAdditionals;
22
+ duration: number;
23
+ icon: IconProp;
24
+ svgIcon: string;
25
+ pdfUrl: string;
26
+ imageUrl: string;
27
+ feedUrl: string;
28
+ mediaUrl: string;
29
+ externUrl: string;
30
+ status: StatusType;
31
+ postType: PostType;
32
+ weight: number;
33
+ popularity: Popularity;
34
+ totalSeen: number;
35
+ totalOpens: number;
36
+ totalLikes: number;
37
+ totalShares: number;
38
+ totalBookmarks: number;
39
+ totalDownloads: number;
40
+ totalFeedbacks: number;
41
+ metrics: Metric[];
42
+ createdBy: User;
43
+ createdOn: Date;
44
+ updatedBy: User;
45
+ updatedOn: Date;
46
+ statusChangedBy: User;
47
+ statusChangedOn: Date;
48
+ publishedBy: User;
49
+ publishedOn: Date;
50
+ blockedBy: User;
51
+ blockedOn: Date;
52
+ publisher: Publisher;
53
+ author: Author;
54
+ topics: Topic[];
55
+ feedback: Feedback;
56
+ collection: Post[];
57
+ gallery: GalleryItem[];
58
+ constructor(props?: Partial<Post>);
59
+ get type(): PostType;
60
+ getStatusAuthorizations(): {
61
+ draft: boolean;
62
+ approve: boolean;
63
+ publish: boolean;
64
+ unpublish: boolean;
65
+ archive: boolean;
66
+ unarchive: boolean;
67
+ block: boolean;
68
+ unblock: boolean;
69
+ };
70
+ getPublishValidators(): Item[];
71
+ validateForPublish(): boolean;
72
+ getStatusContext(): Context;
73
+ static getIcon(postType: PostType, custom?: boolean): "file-lines" | "microphone" | "circle-play" | "newspaper" | "headphones" | "book-open" | "/assets/icons/content-type-article.svg" | "/assets/icons/content-type-book.svg" | "/assets/icons/content-type-audio.svg" | "/assets/icons/content-type-video.svg" | "/assets/icons/content-type-news.svg" | "/assets/icons/content-type-event.svg";
74
+ }