@intelact/bright 0.9.78 → 0.9.80

Sign up to get free protection for your applications and to get access to all the features.
Files changed (338) 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/dtos/index.d.ts +2 -1
  104. package/lib/dtos/index.js +2 -1
  105. package/lib/dtos/index.js.map +1 -1
  106. package/lib/dtos/notification.dto.d.ts +4 -0
  107. package/lib/dtos/notification.dto.js +29 -0
  108. package/lib/dtos/notification.dto.js.map +1 -0
  109. package/lib/enums/module.enum.d.ts +22 -0
  110. package/lib/enums/module.enum.js +24 -1
  111. package/lib/enums/module.enum.js.map +1 -1
  112. package/lib/enums/tracks.enum.d.ts +12 -8
  113. package/lib/enums/tracks.enum.js +16 -12
  114. package/lib/enums/tracks.enum.js.map +1 -1
  115. package/lib/feedback/feedback-item.model.d.ts +15 -0
  116. package/lib/feedback/feedback-item.model.js +81 -0
  117. package/lib/feedback/feedback-item.model.js.map +1 -0
  118. package/lib/feedback/feedback-option.model.d.ts +7 -0
  119. package/lib/feedback/feedback-option.model.js +43 -0
  120. package/lib/feedback/feedback-option.model.js.map +1 -0
  121. package/lib/feedback/feedback.data.d.ts +6 -0
  122. package/lib/feedback/feedback.data.js +3 -0
  123. package/lib/feedback/feedback.data.js.map +1 -0
  124. package/lib/feedback/feedback.dto.d.ts +9 -0
  125. package/lib/feedback/feedback.dto.js +47 -0
  126. package/lib/feedback/feedback.dto.js.map +1 -0
  127. package/lib/feedback/feedback.model.d.ts +18 -0
  128. package/lib/feedback/feedback.model.js +87 -0
  129. package/lib/feedback/feedback.model.js.map +1 -0
  130. package/lib/feedback/index.d.ts +5 -0
  131. package/lib/feedback/index.js +22 -0
  132. package/lib/feedback/index.js.map +1 -0
  133. package/lib/gallery/gallery.model.d.ts +6 -0
  134. package/lib/gallery/gallery.model.js +36 -0
  135. package/lib/gallery/gallery.model.js.map +1 -0
  136. package/lib/gallery/index.d.ts +1 -0
  137. package/lib/gallery/index.js +18 -0
  138. package/lib/gallery/index.js.map +1 -0
  139. package/lib/index.d.ts +27 -4
  140. package/lib/index.js +27 -4
  141. package/lib/index.js.map +1 -1
  142. package/lib/item/index.d.ts +1 -0
  143. package/lib/item/index.js +18 -0
  144. package/lib/item/index.js.map +1 -0
  145. package/lib/item/item.model.d.ts +14 -0
  146. package/lib/item/item.model.js +37 -0
  147. package/lib/item/item.model.js.map +1 -0
  148. package/lib/link/index.d.ts +1 -0
  149. package/lib/link/index.js +18 -0
  150. package/lib/link/index.js.map +1 -0
  151. package/lib/link/link.model.d.ts +16 -0
  152. package/lib/link/link.model.js +35 -0
  153. package/lib/link/link.model.js.map +1 -0
  154. package/lib/log/index.d.ts +2 -0
  155. package/lib/log/index.js +19 -0
  156. package/lib/log/index.js.map +1 -0
  157. package/lib/log/log.event.d.ts +14 -0
  158. package/lib/log/log.event.js +19 -0
  159. package/lib/log/log.event.js.map +1 -0
  160. package/lib/log/log.model.d.ts +12 -0
  161. package/lib/log/log.model.js +16 -0
  162. package/lib/log/log.model.js.map +1 -0
  163. package/lib/metric/index.d.ts +2 -0
  164. package/lib/metric/index.js +19 -0
  165. package/lib/metric/index.js.map +1 -0
  166. package/lib/metric/metric.model.d.ts +27 -0
  167. package/lib/metric/metric.model.js +189 -0
  168. package/lib/metric/metric.model.js.map +1 -0
  169. package/lib/metric/metric.type.d.ts +10 -0
  170. package/lib/metric/metric.type.js +15 -0
  171. package/lib/metric/metric.type.js.map +1 -0
  172. package/lib/models/brand.js +2 -2
  173. package/lib/models/brand.js.map +1 -1
  174. package/lib/models/log.d.ts +6 -6
  175. package/lib/models/log.js +5 -5
  176. package/lib/models/log.js.map +1 -1
  177. package/lib/models/response.d.ts +1 -0
  178. package/lib/notification/index.d.ts +5 -0
  179. package/lib/notification/index.js +22 -0
  180. package/lib/notification/index.js.map +1 -0
  181. package/lib/notification/notification.dto.d.ts +4 -0
  182. package/lib/notification/notification.dto.js +29 -0
  183. package/lib/notification/notification.dto.js.map +1 -0
  184. package/lib/notification/notification.event.d.ts +6 -0
  185. package/lib/notification/notification.event.js +11 -0
  186. package/lib/notification/notification.event.js.map +1 -0
  187. package/lib/notification/notification.model.d.ts +9 -0
  188. package/lib/notification/notification.model.js +48 -0
  189. package/lib/notification/notification.model.js.map +1 -0
  190. package/lib/notification/notification.token.d.ts +4 -0
  191. package/lib/notification/notification.token.js +3 -0
  192. package/lib/notification/notification.token.js.map +1 -0
  193. package/lib/notification/notification.type.d.ts +6 -0
  194. package/lib/notification/notification.type.js +11 -0
  195. package/lib/notification/notification.type.js.map +1 -0
  196. package/lib/popularity/index.d.ts +2 -0
  197. package/lib/popularity/index.js +19 -0
  198. package/lib/popularity/index.js.map +1 -0
  199. package/lib/popularity/popularity.model.d.ts +9 -0
  200. package/lib/popularity/popularity.model.js +95 -0
  201. package/lib/popularity/popularity.model.js.map +1 -0
  202. package/lib/popularity/popularity.rate.d.ts +8 -0
  203. package/lib/popularity/popularity.rate.js +13 -0
  204. package/lib/popularity/popularity.rate.js.map +1 -0
  205. package/lib/post/index.d.ts +4 -0
  206. package/lib/post/index.js +21 -0
  207. package/lib/post/index.js.map +1 -0
  208. package/lib/post/post.additionals.d.ts +24 -0
  209. package/lib/post/post.additionals.js +3 -0
  210. package/lib/post/post.additionals.js.map +1 -0
  211. package/lib/post/post.dto.d.ts +26 -0
  212. package/lib/post/post.dto.js +119 -0
  213. package/lib/post/post.dto.js.map +1 -0
  214. package/lib/post/post.model.d.ts +74 -0
  215. package/lib/post/post.model.js +514 -0
  216. package/lib/post/post.model.js.map +1 -0
  217. package/lib/post/post.type.d.ts +8 -0
  218. package/lib/post/post.type.js +13 -0
  219. package/lib/post/post.type.js.map +1 -0
  220. package/lib/promotion/index.d.ts +2 -0
  221. package/lib/promotion/index.js +19 -0
  222. package/lib/promotion/index.js.map +1 -0
  223. package/lib/promotion/promotion.dto.d.ts +5 -0
  224. package/lib/promotion/promotion.dto.js +38 -0
  225. package/lib/promotion/promotion.dto.js.map +1 -0
  226. package/lib/promotion/promotion.model.d.ts +24 -0
  227. package/lib/promotion/promotion.model.js +125 -0
  228. package/lib/promotion/promotion.model.js.map +1 -0
  229. package/lib/publisher/index.d.ts +3 -0
  230. package/lib/publisher/index.js +20 -0
  231. package/lib/publisher/index.js.map +1 -0
  232. package/lib/publisher/publisher.dto.d.ts +8 -0
  233. package/lib/publisher/publisher.dto.js +39 -0
  234. package/lib/publisher/publisher.dto.js.map +1 -0
  235. package/lib/publisher/publisher.enum.d.ts +7 -0
  236. package/lib/publisher/publisher.enum.js +12 -0
  237. package/lib/publisher/publisher.enum.js.map +1 -0
  238. package/lib/publisher/publisher.model.d.ts +29 -0
  239. package/lib/publisher/publisher.model.js +136 -0
  240. package/lib/publisher/publisher.model.js.map +1 -0
  241. package/lib/question/comment.model.d.ts +20 -0
  242. package/lib/question/comment.model.js +99 -0
  243. package/lib/question/comment.model.js.map +1 -0
  244. package/lib/question/index.d.ts +3 -0
  245. package/lib/question/index.js +20 -0
  246. package/lib/question/index.js.map +1 -0
  247. package/lib/question/question.dto.d.ts +15 -0
  248. package/lib/question/question.dto.js +86 -0
  249. package/lib/question/question.dto.js.map +1 -0
  250. package/lib/question/question.model.d.ts +39 -0
  251. package/lib/question/question.model.js +205 -0
  252. package/lib/question/question.model.js.map +1 -0
  253. package/lib/quote/index.d.ts +1 -0
  254. package/lib/quote/index.js +18 -0
  255. package/lib/quote/index.js.map +1 -0
  256. package/lib/quote/quote.model.d.ts +5 -0
  257. package/lib/quote/quote.model.js +31 -0
  258. package/lib/quote/quote.model.js.map +1 -0
  259. package/lib/security/account.status.d.ts +6 -0
  260. package/lib/security/account.status.js +11 -0
  261. package/lib/security/account.status.js.map +1 -0
  262. package/lib/security/account.type.d.ts +5 -0
  263. package/lib/security/account.type.js +10 -0
  264. package/lib/security/account.type.js.map +1 -0
  265. package/lib/security/index.d.ts +3 -0
  266. package/lib/security/index.js +3 -0
  267. package/lib/security/index.js.map +1 -1
  268. package/lib/security/token.interface.d.ts +7 -0
  269. package/lib/security/token.interface.js +3 -0
  270. package/lib/security/token.interface.js.map +1 -0
  271. package/lib/social/index.d.ts +4 -0
  272. package/lib/social/index.js +21 -0
  273. package/lib/social/index.js.map +1 -0
  274. package/lib/social/share.interface.d.ts +6 -0
  275. package/lib/social/share.interface.js +3 -0
  276. package/lib/social/share.interface.js.map +1 -0
  277. package/lib/social/share.provider.d.ts +7 -0
  278. package/lib/social/share.provider.js +12 -0
  279. package/lib/social/share.provider.js.map +1 -0
  280. package/lib/social/social-user.dto.d.ts +11 -0
  281. package/lib/social/social-user.dto.js +59 -0
  282. package/lib/social/social-user.dto.js.map +1 -0
  283. package/lib/social/social.provider.d.ts +7 -0
  284. package/lib/social/social.provider.js +12 -0
  285. package/lib/social/social.provider.js.map +1 -0
  286. package/lib/survey/index.d.ts +5 -0
  287. package/lib/survey/index.js +22 -0
  288. package/lib/survey/index.js.map +1 -0
  289. package/lib/survey/survey-item.model.d.ts +17 -0
  290. package/lib/survey/survey-item.model.js +88 -0
  291. package/lib/survey/survey-item.model.js.map +1 -0
  292. package/lib/survey/survey-option.model.d.ts +9 -0
  293. package/lib/survey/survey-option.model.js +50 -0
  294. package/lib/survey/survey-option.model.js.map +1 -0
  295. package/lib/survey/survey.dto.d.ts +9 -0
  296. package/lib/survey/survey.dto.js +54 -0
  297. package/lib/survey/survey.dto.js.map +1 -0
  298. package/lib/survey/survey.event.d.ts +5 -0
  299. package/lib/survey/survey.event.js +10 -0
  300. package/lib/survey/survey.event.js.map +1 -0
  301. package/lib/survey/survey.model.d.ts +27 -0
  302. package/lib/survey/survey.model.js +138 -0
  303. package/lib/survey/survey.model.js.map +1 -0
  304. package/lib/topic/index.d.ts +1 -0
  305. package/lib/topic/index.js +18 -0
  306. package/lib/topic/index.js.map +1 -0
  307. package/lib/topic/topic.model.d.ts +20 -0
  308. package/lib/topic/topic.model.js +104 -0
  309. package/lib/topic/topic.model.js.map +1 -0
  310. package/lib/tsconfig.tsbuildinfo +1 -1
  311. package/lib/ui/background.enum.d.ts +10 -0
  312. package/lib/ui/background.enum.js +15 -0
  313. package/lib/ui/background.enum.js.map +1 -0
  314. package/lib/ui/color.enum.d.ts +10 -0
  315. package/lib/ui/color.enum.js +15 -0
  316. package/lib/ui/color.enum.js.map +1 -0
  317. package/lib/ui/context.enum.d.ts +10 -0
  318. package/lib/ui/context.enum.js +15 -0
  319. package/lib/ui/context.enum.js.map +1 -0
  320. package/lib/ui/index.d.ts +3 -0
  321. package/lib/ui/index.js +20 -0
  322. package/lib/ui/index.js.map +1 -0
  323. package/lib/user/index.d.ts +2 -0
  324. package/lib/user/index.js +19 -0
  325. package/lib/user/index.js.map +1 -0
  326. package/lib/user/user.dto.d.ts +24 -0
  327. package/lib/user/user.dto.js +99 -0
  328. package/lib/user/user.dto.js.map +1 -0
  329. package/lib/user/user.model.d.ts +38 -0
  330. package/lib/user/user.model.js +258 -0
  331. package/lib/user/user.model.js.map +1 -0
  332. package/lib/verification/index.d.ts +1 -0
  333. package/lib/verification/index.js +18 -0
  334. package/lib/verification/index.js.map +1 -0
  335. package/lib/verification/verification.type.d.ts +5 -0
  336. package/lib/verification/verification.type.js +10 -0
  337. package/lib/verification/verification.type.js.map +1 -0
  338. package/package.json +2 -7
@@ -0,0 +1,189 @@
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.Metric = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const metric_type_1 = require("./metric.type");
15
+ class Metric {
16
+ name;
17
+ title;
18
+ type;
19
+ value;
20
+ active;
21
+ icon;
22
+ iconActive;
23
+ constructor(props) {
24
+ Object.assign(this, props);
25
+ }
26
+ static seen(val, active) {
27
+ return new Metric({
28
+ title: 'seen',
29
+ type: metric_type_1.MetricType.Seen,
30
+ icon: ['fas', 'eye'],
31
+ iconActive: ['fas', 'eye'],
32
+ value: val || 0,
33
+ active: active
34
+ });
35
+ }
36
+ static opens(val, active) {
37
+ return new Metric({
38
+ title: 'opens',
39
+ type: metric_type_1.MetricType.Open,
40
+ icon: ['fas', 'book-open'],
41
+ iconActive: ['fas', 'book-open-reader'],
42
+ value: val || 0,
43
+ active: active
44
+ });
45
+ }
46
+ static likes(val, active) {
47
+ return new Metric({
48
+ title: 'likes',
49
+ type: metric_type_1.MetricType.Like,
50
+ icon: ['far', 'heart'],
51
+ iconActive: ['fas', 'heart'],
52
+ value: val || 0,
53
+ active: active
54
+ });
55
+ }
56
+ static bookmarks(val, active) {
57
+ return new Metric({
58
+ title: 'bookmarks',
59
+ type: metric_type_1.MetricType.Bookmark,
60
+ icon: ['far', 'bookmark'],
61
+ iconActive: ['fas', 'bookmark'],
62
+ value: val || 0,
63
+ active: active
64
+ });
65
+ }
66
+ static shares(val, active) {
67
+ return new Metric({
68
+ title: 'shares',
69
+ type: metric_type_1.MetricType.Share,
70
+ icon: ['far', 'share-from-square'],
71
+ iconActive: ['fas', 'share-from-square'],
72
+ value: val || 0,
73
+ active: active
74
+ });
75
+ }
76
+ static downloads(val, active) {
77
+ return new Metric({
78
+ title: 'downloads',
79
+ type: metric_type_1.MetricType.Download,
80
+ icon: ['fas', 'download'],
81
+ iconActive: ['fas', 'download'],
82
+ value: val || 0,
83
+ active: active
84
+ });
85
+ }
86
+ static feedbacks(val, active) {
87
+ return new Metric({
88
+ title: 'feedbacks',
89
+ type: metric_type_1.MetricType.Feedback,
90
+ icon: ['far', 'comments'],
91
+ iconActive: ['fas', 'comments'],
92
+ value: val || 0,
93
+ active: active
94
+ });
95
+ }
96
+ static total(title, val, icon, active) {
97
+ return new Metric({
98
+ title: title,
99
+ type: metric_type_1.MetricType.Total,
100
+ icon: icon || ['fas', 'gauge-high'],
101
+ iconActive: icon || ['fas', 'gauge-high'],
102
+ value: val || 0,
103
+ active: active
104
+ });
105
+ }
106
+ static getByAuthor(author) {
107
+ return [
108
+ Metric.total('totalPosts', author?.totalPosts || 0, ['fas', 'book-open']),
109
+ Metric.total('totalQuestions', author?.totalQuestions || 0, ['fas', 'circle-question'])
110
+ ];
111
+ }
112
+ static getByPost(post) {
113
+ return [
114
+ Metric.seen(post?.totalSeen),
115
+ Metric.opens(post?.totalOpens),
116
+ Metric.likes(post?.totalLikes),
117
+ Metric.shares(post?.totalShares),
118
+ Metric.bookmarks(post?.totalBookmarks),
119
+ Metric.downloads(post?.totalDownloads),
120
+ Metric.feedbacks(post?.totalFeedbacks),
121
+ ];
122
+ }
123
+ static getByQuestion(question) {
124
+ return [
125
+ Metric.seen(question?.totalSeen),
126
+ Metric.opens(question?.totalOpens),
127
+ Metric.likes(question?.totalLikes),
128
+ Metric.shares(question?.totalShares),
129
+ Metric.bookmarks(question?.totalBookmarks),
130
+ Metric.feedbacks(question?.totalComments),
131
+ ];
132
+ }
133
+ static getIconByType(metricType, active) {
134
+ switch (metricType) {
135
+ case metric_type_1.MetricType.Seen:
136
+ return active ? ['fas', 'eye'] : ['fas', 'eye'];
137
+ case metric_type_1.MetricType.Open:
138
+ return active ? ['fas', 'book-open-reader'] : ['fas', 'book-open'];
139
+ case metric_type_1.MetricType.Like:
140
+ return active ? ['fas', 'heart'] : ['far', 'heart'];
141
+ case metric_type_1.MetricType.Bookmark:
142
+ return active ? ['fas', 'bookmark'] : ['far', 'bookmark'];
143
+ case metric_type_1.MetricType.Share:
144
+ return active ? ['fas', 'share-from-square'] : ['far', 'share-from-square'];
145
+ case metric_type_1.MetricType.Download:
146
+ return active ? ['fas', 'download'] : ['fas', 'download'];
147
+ case metric_type_1.MetricType.Feedback:
148
+ return active ? ['fas', 'comments'] : ['far', 'comments'];
149
+ case metric_type_1.MetricType.Total:
150
+ return active ? ['fas', 'gauge-high'] : ['fas', 'gauge-high'];
151
+ default:
152
+ return ['fas', 'gauge'];
153
+ }
154
+ }
155
+ }
156
+ exports.Metric = Metric;
157
+ __decorate([
158
+ (0, class_transformer_1.Expose)(),
159
+ __metadata("design:type", String)
160
+ ], Metric.prototype, "name", void 0);
161
+ __decorate([
162
+ (0, class_transformer_1.Expose)(),
163
+ __metadata("design:type", String)
164
+ ], Metric.prototype, "title", void 0);
165
+ __decorate([
166
+ (0, class_transformer_1.Expose)(),
167
+ __metadata("design:type", String)
168
+ ], Metric.prototype, "type", void 0);
169
+ __decorate([
170
+ (0, class_transformer_1.Expose)(),
171
+ (0, class_transformer_1.Transform)(({ obj }) => obj?.value || 0),
172
+ __metadata("design:type", Number)
173
+ ], Metric.prototype, "value", void 0);
174
+ __decorate([
175
+ (0, class_transformer_1.Expose)(),
176
+ (0, class_transformer_1.Type)(() => Boolean),
177
+ __metadata("design:type", Boolean)
178
+ ], Metric.prototype, "active", void 0);
179
+ __decorate([
180
+ (0, class_transformer_1.Expose)(),
181
+ (0, class_transformer_1.Transform)(({ obj }) => Metric.getIconByType(obj?.type)),
182
+ __metadata("design:type", Object)
183
+ ], Metric.prototype, "icon", void 0);
184
+ __decorate([
185
+ (0, class_transformer_1.Expose)(),
186
+ (0, class_transformer_1.Transform)(({ obj }) => Metric.getIconByType(obj?.type, true)),
187
+ __metadata("design:type", Object)
188
+ ], Metric.prototype, "iconActive", void 0);
189
+ //# sourceMappingURL=metric.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metric.model.js","sourceRoot":"","sources":["../../src/metric/metric.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAA4D;AAC5D,+CAA2C;AAM3C,MAAa,MAAM;IAGlB,IAAI,CAAU;IAGd,KAAK,CAAU;IAGf,IAAI,CAAa;IAIjB,KAAK,CAAS;IAId,MAAM,CAAU;IAIhB,IAAI,CAAW;IAIf,UAAU,CAAW;IAErB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,MAAM,CAAC,IAAI,CAAC,GAAW,EAAE,MAAgB;QACxC,OAAO,IAAI,MAAM,CAAC;YACjB,KAAK,EAAE,MAAM;YACb,IAAI,EAAE,wBAAU,CAAC,IAAI;YACrB,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;YACpB,UAAU,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;YAC1B,KAAK,EAAE,GAAG,IAAI,CAAC;YACf,MAAM,EAAE,MAAM;SACd,CAAC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK,CAAC,GAAW,EAAE,MAAgB;QACzC,OAAO,IAAI,MAAM,CAAC;YACjB,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,wBAAU,CAAC,IAAI;YACrB,IAAI,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC;YAC1B,UAAU,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC;YACvC,KAAK,EAAE,GAAG,IAAI,CAAC;YACf,MAAM,EAAE,MA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AAG,EAAE,CAAC,OAAO,CAAC;;sCACJ;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;;oCACzC;AAIf;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;;0CACzC"}
@@ -0,0 +1,10 @@
1
+ export declare enum MetricType {
2
+ Seen = "SEEN",
3
+ Open = "OPEN",
4
+ Like = "LIKE",
5
+ Bookmark = "BOOKMARK",
6
+ Share = "SHARE",
7
+ Download = "DOWNLOAD",
8
+ Feedback = "FEEDBACK",
9
+ Total = "TOTAL"
10
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MetricType = void 0;
4
+ var MetricType;
5
+ (function (MetricType) {
6
+ MetricType["Seen"] = "SEEN";
7
+ MetricType["Open"] = "OPEN";
8
+ MetricType["Like"] = "LIKE";
9
+ MetricType["Bookmark"] = "BOOKMARK";
10
+ MetricType["Share"] = "SHARE";
11
+ MetricType["Download"] = "DOWNLOAD";
12
+ MetricType["Feedback"] = "FEEDBACK";
13
+ MetricType["Total"] = "TOTAL";
14
+ })(MetricType || (exports.MetricType = MetricType = {}));
15
+ //# sourceMappingURL=metric.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metric.type.js","sourceRoot":"","sources":["../../src/metric/metric.type.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAmCX;AAnCD,WAAY,UAAU;IAIrB,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,2BAAa,CAAA;IAIb,mCAAqB,CAAA;IAIrB,6BAAe,CAAA;IAIf,mCAAqB,CAAA;IAIrB,mCAAqB,CAAA;IAKrB,6BAAe,CAAA;AAEhB,CAAC,EAnCW,UAAU,0BAAV,UAAU,QAmCrB"}
@@ -84,11 +84,11 @@ class Brand {
84
84
  })));
85
85
  }
86
86
  getExternImageProviders() {
87
- const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'extern-images');
87
+ const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'IMAGE_PROVIDERS');
88
88
  return setting?.value?.length > 0 ? setting.value.split(',') : [];
89
89
  }
90
90
  getExternVideoProviders() {
91
- const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'extern-videos');
91
+ const setting = this.settings.find(i => i.scope === enums_1.SettingType.Provider && i.name === 'VIDEO_PROVIDERS');
92
92
  return setting?.value?.length > 0 ? setting.value.split(',') : [];
93
93
  }
94
94
  }
@@ -1 +1 @@
1
- {"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/models/brand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,oCAAgF;AAChF,2CAAwC;AACxC,iCAA8B;AAE9B,MAAa,KAAK;IAIjB,EAAE,CAAS;IAWX,SAAS,CAAS;IAMlB,OAAO,CAAe;IAMtB,YAAY,CAAa;IAKzB,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,GAAG,CAAS;IAMZ,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAKb,MAAM,CAAoB;IAG1B,QAAQ,CAAS;IAIjB,UAAU,CAAU;IAGpB,UAAU,CAAS;IAInB,UAAU,CAAU;IAMpB,QAAQ,CAAiB;IAIzB,UAAU,CAAc;IAExB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IASD,mBAAmB;QAElB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,OAAO;QACR,CAAC;QAMD,MAAM,GAAG,GAA+B;YACvC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2
2
  import { User } from "./user";
3
3
  export declare class Log {
4
- type?: LogType;
5
- by: User;
6
4
  on: Date;
7
- id?: string;
8
- status?: StatusType;
9
- description?: string;
5
+ by?: User;
6
+ content?: string;
7
+ entityId?: number;
8
+ scope?: ModuleScope;
9
+ event?: EventType;
10
10
  constructor(props?: Partial<Log>);
11
11
  }
package/lib/models/log.js CHANGED
@@ -2,12 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Log = void 0;
4
4
  class Log {
5
- type;
6
- by;
7
5
  on;
8
- id;
9
- status;
10
- description;
6
+ by;
7
+ content;
8
+ entityId;
9
+ scope;
10
+ event;
11
11
  constructor(props) {
12
12
  Object.assign(this, props);
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/models/log.ts"],"names":[],"mappings":";;;AAIA,MAAa,GAAG;IAKf,IAAI,CAAW;IAKf,EAAE,CAAO;IAKT,EAAE,CAAO;IAKT,EAAE,CAAU;IAKZ,MAAM,CAAc;IAKpB,WAAW,CAAU;IAErB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAnCD,kBAmCC"}
1
+ {"version":3,"file":"log.js","sourceRoot":"","sources":["../../src/models/log.ts"],"names":[],"mappings":";;;AAIA,MAAa,GAAG;IAMf,EAAE,CAAO;IAQT,EAAE,CAAQ;IAMV,OAAO,CAAU;IAQjB,QAAQ,CAAU;IAQlB,KAAK,CAAe;IAMpB,KAAK,CAAa;IAElB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA/CD,kBA+CC"}
@@ -1,5 +1,6 @@
1
1
  export interface IResponse<T = any> {
2
2
  data?: T;
3
3
  message?: string;
4
+ redirectUrl?: string;
4
5
  success?: boolean;
5
6
  }
@@ -0,0 +1,5 @@
1
+ export * from './notification.event';
2
+ export * from './notification.dto';
3
+ export * from './notification.token';
4
+ export * from './notification.model';
5
+ export * from './notification.type';
@@ -0,0 +1,22 @@
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("./notification.event"), exports);
18
+ __exportStar(require("./notification.dto"), exports);
19
+ __exportStar(require("./notification.token"), exports);
20
+ __exportStar(require("./notification.model"), exports);
21
+ __exportStar(require("./notification.type"), exports);
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/notification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,sDAAoC"}
@@ -0,0 +1,4 @@
1
+ export declare class NotificationTokenDto {
2
+ token: string;
3
+ deviceType: string;
4
+ }
@@ -0,0 +1,29 @@
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.NotificationTokenDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class NotificationTokenDto {
15
+ token;
16
+ deviceType;
17
+ }
18
+ exports.NotificationTokenDto = NotificationTokenDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], NotificationTokenDto.prototype, "token", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsNotEmpty)(),
26
+ (0, class_validator_1.IsString)(),
27
+ __metadata("design:type", String)
28
+ ], NotificationTokenDto.prototype, "deviceType", void 0);
29
+ //# sourceMappingURL=notification.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.dto.js","sourceRoot":"","sources":["../../src/notification/notification.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkE;AAElE,MAAa,oBAAoB;IAIhC,KAAK,CAAQ;IAIb,UAAU,CAAQ;CAClB;AATD,oDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACO"}
@@ -0,0 +1,6 @@
1
+ export declare enum NotificationEventType {
2
+ Push = "PUSH",
3
+ SMS = "SMS",
4
+ InApp = "INAPP",
5
+ Email = "EMAIL"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationEventType = void 0;
4
+ var NotificationEventType;
5
+ (function (NotificationEventType) {
6
+ NotificationEventType["Push"] = "PUSH";
7
+ NotificationEventType["SMS"] = "SMS";
8
+ NotificationEventType["InApp"] = "INAPP";
9
+ NotificationEventType["Email"] = "EMAIL";
10
+ })(NotificationEventType || (exports.NotificationEventType = NotificationEventType = {}));
11
+ //# sourceMappingURL=notification.event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.event.js","sourceRoot":"","sources":["../../src/notification/notification.event.ts"],"names":[],"mappings":";;;AAKA,IAAY,qBAqBX;AArBD,WAAY,qBAAqB;IAKhC,sCAAa,CAAA;IAKb,oCAAW,CAAA;IAKX,wCAAe,CAAA;IAKf,wCAAe,CAAA;AAChB,CAAC,EArBW,qBAAqB,qCAArB,qBAAqB,QAqBhC"}
@@ -0,0 +1,9 @@
1
+ import { NotificationType } from './notification.type';
2
+ export declare class Notification {
3
+ type: NotificationType;
4
+ title: string;
5
+ message: string;
6
+ data: string;
7
+ autoClose: number;
8
+ constructor(props?: Partial<Notification>);
9
+ }
@@ -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
+ }