@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,86 @@
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.QuestionCommentDto = exports.AskQuestionDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class AskQuestionDto {
16
+ slug;
17
+ topics;
18
+ categories;
19
+ title;
20
+ question;
21
+ name;
22
+ email;
23
+ phone;
24
+ private;
25
+ }
26
+ exports.AskQuestionDto = AskQuestionDto;
27
+ __decorate([
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsString)(),
30
+ __metadata("design:type", String)
31
+ ], AskQuestionDto.prototype, "slug", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsOptional)(),
34
+ __metadata("design:type", Array)
35
+ ], AskQuestionDto.prototype, "topics", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsOptional)(),
38
+ __metadata("design:type", Array)
39
+ ], AskQuestionDto.prototype, "categories", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsString)(),
43
+ __metadata("design:type", String)
44
+ ], AskQuestionDto.prototype, "title", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsNotEmpty)(),
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], AskQuestionDto.prototype, "question", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsOptional)(),
52
+ (0, class_validator_1.IsString)(),
53
+ __metadata("design:type", String)
54
+ ], AskQuestionDto.prototype, "name", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_validator_1.IsString)(),
58
+ __metadata("design:type", String)
59
+ ], AskQuestionDto.prototype, "email", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.IsOptional)(),
62
+ (0, class_validator_1.IsString)(),
63
+ __metadata("design:type", String)
64
+ ], AskQuestionDto.prototype, "phone", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.IsOptional)(),
67
+ (0, class_validator_1.IsBoolean)(),
68
+ (0, class_transformer_1.Type)(() => Boolean),
69
+ __metadata("design:type", Boolean)
70
+ ], AskQuestionDto.prototype, "private", void 0);
71
+ class QuestionCommentDto {
72
+ content;
73
+ authorId;
74
+ }
75
+ exports.QuestionCommentDto = QuestionCommentDto;
76
+ __decorate([
77
+ (0, class_validator_1.IsNotEmpty)(),
78
+ (0, class_validator_1.IsString)(),
79
+ __metadata("design:type", String)
80
+ ], QuestionCommentDto.prototype, "content", void 0);
81
+ __decorate([
82
+ (0, class_validator_1.IsNotEmpty)(),
83
+ (0, class_validator_1.IsNumber)(),
84
+ __metadata("design:type", Number)
85
+ ], QuestionCommentDto.prototype, "authorId", void 0);
86
+ //# sourceMappingURL=question.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question.dto.js","sourceRoot":"","sources":["../../src/question/question.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAwF;AACxF,yDAAyC;AAEzC,MAAa,cAAc;IAI1B,IAAI,CAAS;IAMb,MAAM,CAAW;IAGjB,UAAU,CAAW;IAIrB,KAAK,CAAS;IAId,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAKd,OAAO,CAAU;CACjB;AAvCD,wCAuCC;AAnCA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AAMb;IADC,IAAA,4BAAU,GAAE;;8CACI;AAGjB;IADC,IAAA,4BAAU,GAAE;;kDACQ;AAIrB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;gDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;+CACH;AAGlB,MAAa,kBAAkB;IAI9B,OAAO,CAAS;IAIhB,QAAQ,CAAS;CACjB;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;mDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACM"}
@@ -0,0 +1,39 @@
1
+ import { User } from '../user';
2
+ import { Category } from '../category';
3
+ import { StatusType } from '../common';
4
+ import { Metric } from '../metric';
5
+ import { QuestionComment } from './comment.model';
6
+ export declare class Question {
7
+ id: number;
8
+ slug: string;
9
+ title: string;
10
+ question: string;
11
+ name: string;
12
+ email: string;
13
+ phone: string;
14
+ status: StatusType;
15
+ private: boolean;
16
+ closed: boolean;
17
+ myQuestion: boolean;
18
+ totalSeen: number;
19
+ totalOpens: number;
20
+ totalLikes: number;
21
+ totalShares: number;
22
+ totalBookmarks: number;
23
+ totalComments: number;
24
+ metrics: Metric[];
25
+ createdBy: User;
26
+ createdOn: Date;
27
+ updatedBy: User;
28
+ updatedOn: Date;
29
+ statusChangedBy: User;
30
+ statusChangedOn: Date;
31
+ publishedBy: User;
32
+ publishedOn: Date;
33
+ attentionBy: User;
34
+ attentionOn: Date;
35
+ user: User;
36
+ comments: QuestionComment[];
37
+ categories: Category[];
38
+ constructor(props?: Partial<Question>);
39
+ }
@@ -0,0 +1,205 @@
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.Question = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const user_1 = require("../user");
15
+ const category_1 = require("../category");
16
+ const common_1 = require("../common");
17
+ const metric_1 = require("../metric");
18
+ const comment_model_1 = require("./comment.model");
19
+ class Question {
20
+ id;
21
+ slug;
22
+ title;
23
+ question;
24
+ name;
25
+ email;
26
+ phone;
27
+ status;
28
+ private;
29
+ closed;
30
+ myQuestion;
31
+ totalSeen;
32
+ totalOpens;
33
+ totalLikes;
34
+ totalShares;
35
+ totalBookmarks;
36
+ totalComments;
37
+ metrics;
38
+ createdBy;
39
+ createdOn;
40
+ updatedBy;
41
+ updatedOn;
42
+ statusChangedBy;
43
+ statusChangedOn;
44
+ publishedBy;
45
+ publishedOn;
46
+ attentionBy;
47
+ attentionOn;
48
+ user;
49
+ comments;
50
+ categories;
51
+ constructor(props) {
52
+ Object.assign(this, props);
53
+ }
54
+ }
55
+ exports.Question = Question;
56
+ __decorate([
57
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
58
+ (0, class_transformer_1.Type)(() => Number),
59
+ __metadata("design:type", Number)
60
+ ], Question.prototype, "id", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", String)
64
+ ], Question.prototype, "slug", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], Question.prototype, "title", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", String)
72
+ ], Question.prototype, "question", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ __metadata("design:type", String)
76
+ ], Question.prototype, "name", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", String)
80
+ ], Question.prototype, "email", void 0);
81
+ __decorate([
82
+ (0, class_transformer_1.Expose)(),
83
+ __metadata("design:type", String)
84
+ ], Question.prototype, "phone", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
87
+ __metadata("design:type", String)
88
+ ], Question.prototype, "status", void 0);
89
+ __decorate([
90
+ (0, class_transformer_1.Expose)(),
91
+ (0, class_transformer_1.Type)(() => Boolean),
92
+ __metadata("design:type", Boolean)
93
+ ], Question.prototype, "private", void 0);
94
+ __decorate([
95
+ (0, class_transformer_1.Expose)(),
96
+ (0, class_transformer_1.Type)(() => Boolean),
97
+ __metadata("design:type", Boolean)
98
+ ], Question.prototype, "closed", void 0);
99
+ __decorate([
100
+ (0, class_transformer_1.Expose)(),
101
+ (0, class_transformer_1.Type)(() => Boolean),
102
+ __metadata("design:type", Boolean)
103
+ ], Question.prototype, "myQuestion", void 0);
104
+ __decorate([
105
+ (0, class_transformer_1.Expose)(),
106
+ (0, class_transformer_1.Type)(() => Number),
107
+ __metadata("design:type", Number)
108
+ ], Question.prototype, "totalSeen", void 0);
109
+ __decorate([
110
+ (0, class_transformer_1.Expose)(),
111
+ (0, class_transformer_1.Type)(() => Number),
112
+ __metadata("design:type", Number)
113
+ ], Question.prototype, "totalOpens", void 0);
114
+ __decorate([
115
+ (0, class_transformer_1.Expose)(),
116
+ (0, class_transformer_1.Type)(() => Number),
117
+ __metadata("design:type", Number)
118
+ ], Question.prototype, "totalLikes", void 0);
119
+ __decorate([
120
+ (0, class_transformer_1.Expose)(),
121
+ (0, class_transformer_1.Type)(() => Number),
122
+ __metadata("design:type", Number)
123
+ ], Question.prototype, "totalShares", void 0);
124
+ __decorate([
125
+ (0, class_transformer_1.Expose)(),
126
+ (0, class_transformer_1.Type)(() => Number),
127
+ __metadata("design:type", Number)
128
+ ], Question.prototype, "totalBookmarks", void 0);
129
+ __decorate([
130
+ (0, class_transformer_1.Expose)(),
131
+ (0, class_transformer_1.Type)(() => Number),
132
+ __metadata("design:type", Number)
133
+ ], Question.prototype, "totalComments", void 0);
134
+ __decorate([
135
+ (0, class_transformer_1.Expose)(),
136
+ (0, class_transformer_1.Type)(() => metric_1.Metric),
137
+ (0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.getByQuestion(obj)),
138
+ __metadata("design:type", Array)
139
+ ], Question.prototype, "metrics", void 0);
140
+ __decorate([
141
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
142
+ (0, class_transformer_1.Type)(() => user_1.User),
143
+ __metadata("design:type", user_1.User)
144
+ ], Question.prototype, "createdBy", void 0);
145
+ __decorate([
146
+ (0, class_transformer_1.Expose)(),
147
+ (0, class_transformer_1.Type)(() => Date),
148
+ __metadata("design:type", Date)
149
+ ], Question.prototype, "createdOn", void 0);
150
+ __decorate([
151
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
152
+ (0, class_transformer_1.Type)(() => user_1.User),
153
+ __metadata("design:type", user_1.User)
154
+ ], Question.prototype, "updatedBy", void 0);
155
+ __decorate([
156
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
157
+ (0, class_transformer_1.Type)(() => Date),
158
+ __metadata("design:type", Date)
159
+ ], Question.prototype, "updatedOn", void 0);
160
+ __decorate([
161
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
162
+ (0, class_transformer_1.Type)(() => user_1.User),
163
+ __metadata("design:type", user_1.User)
164
+ ], Question.prototype, "statusChangedBy", void 0);
165
+ __decorate([
166
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
167
+ (0, class_transformer_1.Type)(() => Date),
168
+ __metadata("design:type", Date)
169
+ ], Question.prototype, "statusChangedOn", void 0);
170
+ __decorate([
171
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
172
+ (0, class_transformer_1.Type)(() => user_1.User),
173
+ __metadata("design:type", user_1.User)
174
+ ], Question.prototype, "publishedBy", void 0);
175
+ __decorate([
176
+ (0, class_transformer_1.Expose)(),
177
+ (0, class_transformer_1.Type)(() => Date),
178
+ __metadata("design:type", Date)
179
+ ], Question.prototype, "publishedOn", void 0);
180
+ __decorate([
181
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
182
+ (0, class_transformer_1.Type)(() => user_1.User),
183
+ __metadata("design:type", user_1.User)
184
+ ], Question.prototype, "attentionBy", void 0);
185
+ __decorate([
186
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
187
+ (0, class_transformer_1.Type)(() => Date),
188
+ __metadata("design:type", Date)
189
+ ], Question.prototype, "attentionOn", void 0);
190
+ __decorate([
191
+ (0, class_transformer_1.Expose)(),
192
+ (0, class_transformer_1.Type)(() => user_1.User),
193
+ __metadata("design:type", user_1.User)
194
+ ], Question.prototype, "user", void 0);
195
+ __decorate([
196
+ (0, class_transformer_1.Expose)(),
197
+ (0, class_transformer_1.Type)(() => comment_model_1.QuestionComment),
198
+ __metadata("design:type", Array)
199
+ ], Question.prototype, "comments", void 0);
200
+ __decorate([
201
+ (0, class_transformer_1.Expose)(),
202
+ (0, class_transformer_1.Type)(() => category_1.Category),
203
+ __metadata("design:type", Array)
204
+ ], Question.prototype, "categories", void 0);
205
+ //# sourceMappingURL=question.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"question.model.js","sour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AAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;6CAAC;AAMlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACX,WAAI;sCAAC;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,+BAAe,CAAC;;0CACA;AAI5B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAQ,CAAC;;4CACE"}
@@ -0,0 +1 @@
1
+ export * from './quote.model';
@@ -0,0 +1,18 @@
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("./quote.model"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/quote/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
@@ -0,0 +1,5 @@
1
+ export declare class Quote {
2
+ id: number;
3
+ imageUrl: string;
4
+ constructor(props?: Partial<Quote>);
5
+ }
@@ -0,0 +1,31 @@
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.Quote = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ class Quote {
15
+ id;
16
+ imageUrl;
17
+ constructor(props) {
18
+ Object.assign(this, props);
19
+ }
20
+ }
21
+ exports.Quote = Quote;
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
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.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], Quote.prototype, "imageUrl", void 0);
31
+ //# sourceMappingURL=quote.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quote.model.js","sourceRoot":"","sources":["../../src/quote/quote.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAGjD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAZD,sBAYC;AARA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACQ"}
@@ -0,0 +1,6 @@
1
+ export declare enum AccountStatus {
2
+ Invited = "INVITED",
3
+ Active = "ACTIVE",
4
+ Disabled = "DISABLED",
5
+ Closed = "CLOSED"
6
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountStatus = void 0;
4
+ var AccountStatus;
5
+ (function (AccountStatus) {
6
+ AccountStatus["Invited"] = "INVITED";
7
+ AccountStatus["Active"] = "ACTIVE";
8
+ AccountStatus["Disabled"] = "DISABLED";
9
+ AccountStatus["Closed"] = "CLOSED";
10
+ })(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
11
+ //# sourceMappingURL=account.status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.status.js","sourceRoot":"","sources":["../../src/security/account.status.ts"],"names":[],"mappings":";;;AAKA,IAAY,aAsBX;AAtBD,WAAY,aAAa;IAIxB,oCAAmB,CAAA;IAKnB,kCAAiB,CAAA;IAOjB,sCAAqB,CAAA;IAKrB,kCAAiB,CAAA;AAClB,CAAC,EAtBW,aAAa,6BAAb,aAAa,QAsBxB"}
@@ -0,0 +1,5 @@
1
+ export declare enum AccountType {
2
+ Stakeholder = "STAKEHOLDER",
3
+ Brand = "BRAND",
4
+ Publisher = "PUBLISHER"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountType = void 0;
4
+ var AccountType;
5
+ (function (AccountType) {
6
+ AccountType["Stakeholder"] = "STAKEHOLDER";
7
+ AccountType["Brand"] = "BRAND";
8
+ AccountType["Publisher"] = "PUBLISHER";
9
+ })(AccountType || (exports.AccountType = AccountType = {}));
10
+ //# sourceMappingURL=account.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.type.js","sourceRoot":"","sources":["../../src/security/account.type.ts"],"names":[],"mappings":";;;AAAA,IAAY,WAiBX;AAjBD,WAAY,WAAW;IAKtB,0CAA2B,CAAA;IAM3B,8BAAe,CAAA;IAKf,sCAAuB,CAAA;AACxB,CAAC,EAjBW,WAAW,2BAAX,WAAW,QAiBtB"}
@@ -1,3 +1,6 @@
1
1
  export * from './acl';
2
2
  export * from './role';
3
+ export * from './account.status';
4
+ export * from './account.type';
3
5
  export * from './permissions';
6
+ export * from './token.interface';
@@ -16,5 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./acl"), exports);
18
18
  __exportStar(require("./role"), exports);
19
+ __exportStar(require("./account.status"), exports);
20
+ __exportStar(require("./account.type"), exports);
19
21
  __exportStar(require("./permissions"), exports);
22
+ __exportStar(require("./token.interface"), exports);
20
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,yCAAuB;AACvB,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/security/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,yCAAuB;AACvB,mDAAiC;AACjC,iDAA+B;AAC/B,gDAA8B;AAC9B,oDAAkC"}
@@ -0,0 +1,7 @@
1
+ export interface IToken {
2
+ tokenType: string;
3
+ accessToken: string;
4
+ refreshToken: string;
5
+ accessTokenExpires: number;
6
+ refreshTokenExpires: number;
7
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=token.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.interface.js","sourceRoot":"","sources":["../../src/security/token.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * from './share.interface';
2
+ export * from './social.provider';
3
+ export * from './social-user.dto';
4
+ export * from './share.provider';
@@ -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("./share.interface"), exports);
18
+ __exportStar(require("./social.provider"), exports);
19
+ __exportStar(require("./social-user.dto"), exports);
20
+ __exportStar(require("./share.provider"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/social/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,mDAAiC"}
@@ -0,0 +1,6 @@
1
+ export interface IShareData {
2
+ title: string;
3
+ description: string;
4
+ image: string;
5
+ url: string;
6
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=share.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share.interface.js","sourceRoot":"","sources":["../../src/social/share.interface.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export declare enum SocialSharePrivider {
2
+ Twitter = "TWITTER",
3
+ Facebook = "FACEBOOK",
4
+ Instagram = "INSTAGRAM",
5
+ Linkedin = "LINKEDIN",
6
+ Whatsup = "WHATSAPP"
7
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SocialSharePrivider = void 0;
4
+ var SocialSharePrivider;
5
+ (function (SocialSharePrivider) {
6
+ SocialSharePrivider["Twitter"] = "TWITTER";
7
+ SocialSharePrivider["Facebook"] = "FACEBOOK";
8
+ SocialSharePrivider["Instagram"] = "INSTAGRAM";
9
+ SocialSharePrivider["Linkedin"] = "LINKEDIN";
10
+ SocialSharePrivider["Whatsup"] = "WHATSAPP";
11
+ })(SocialSharePrivider || (exports.SocialSharePrivider = SocialSharePrivider = {}));
12
+ //# sourceMappingURL=share.provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"share.provider.js","sourceRoot":"","sources":["../../src/social/share.provider.ts"],"names":[],"mappings":";;;AAGA,IAAY,mBA0BX;AA1BD,WAAY,mBAAmB;IAK9B,0CAAmB,CAAA;IAKnB,4CAAqB,CAAA;IAKrB,8CAAuB,CAAA;IAKvB,4CAAqB,CAAA;IAKrB,2CAAoB,CAAA;AACrB,CAAC,EA1BW,mBAAmB,mCAAnB,mBAAmB,QA0B9B"}
@@ -0,0 +1,11 @@
1
+ import { SocialLoginProvider } from './social.provider';
2
+ import { IUserAgent } from '../common';
3
+ export declare class SocialUserDto {
4
+ uid: string;
5
+ name: string;
6
+ email: string;
7
+ phone: string;
8
+ image: string;
9
+ provider: SocialLoginProvider;
10
+ device: Partial<IUserAgent>;
11
+ }
@@ -0,0 +1,59 @@
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.SocialUserDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const social_provider_1 = require("./social.provider");
15
+ class SocialUserDto {
16
+ uid;
17
+ name;
18
+ email;
19
+ phone;
20
+ image;
21
+ provider;
22
+ device;
23
+ }
24
+ exports.SocialUserDto = SocialUserDto;
25
+ __decorate([
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], SocialUserDto.prototype, "uid", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsString)(),
33
+ __metadata("design:type", String)
34
+ ], SocialUserDto.prototype, "name", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsOptional)(),
37
+ (0, class_validator_1.IsEmail)(),
38
+ __metadata("design:type", String)
39
+ ], SocialUserDto.prototype, "email", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsString)(),
43
+ __metadata("design:type", String)
44
+ ], SocialUserDto.prototype, "phone", void 0);
45
+ __decorate([
46
+ (0, class_validator_1.IsOptional)(),
47
+ (0, class_validator_1.IsString)(),
48
+ __metadata("design:type", String)
49
+ ], SocialUserDto.prototype, "image", void 0);
50
+ __decorate([
51
+ (0, class_validator_1.IsNotEmpty)(),
52
+ (0, class_validator_1.IsEnum)(social_provider_1.SocialLoginProvider),
53
+ __metadata("design:type", String)
54
+ ], SocialUserDto.prototype, "provider", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsOptional)(),
57
+ __metadata("design:type", Object)
58
+ ], SocialUserDto.prototype, "device", void 0);
59
+ //# sourceMappingURL=social-user.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"social-user.dto.js","sourceRoot":"","sources":["../../src/social/social-user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AACpF,uDAAwD;AAIxD,MAAa,aAAa;IAIzB,GAAG,CAAS;IAIZ,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAId,KAAK,CAAS;IAId,QAAQ,CAAsB;IAG9B,MAAM,CAAsB;CAC5B;AA5BD,sCA4BC;AAxBA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACC;AAIZ;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,qCAAmB,CAAC;;+CACE;AAG9B;IADC,IAAA,4BAAU,GAAE;;6CACe"}