@intelact/bright 0.9.79 → 0.9.81

Sign up to get free protection for your applications and to get access to all the features.
Files changed (323) 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 +3 -0
  152. package/lib/metric/index.js +20 -0
  153. package/lib/metric/index.js.map +1 -0
  154. package/lib/metric/metric.interface.d.ts +11 -0
  155. package/lib/metric/metric.interface.js +3 -0
  156. package/lib/metric/metric.interface.js.map +1 -0
  157. package/lib/metric/metric.model.d.ts +27 -0
  158. package/lib/metric/metric.model.js +189 -0
  159. package/lib/metric/metric.model.js.map +1 -0
  160. package/lib/metric/metric.type.d.ts +10 -0
  161. package/lib/metric/metric.type.js +15 -0
  162. package/lib/metric/metric.type.js.map +1 -0
  163. package/lib/notification/index.d.ts +5 -0
  164. package/lib/notification/index.js +22 -0
  165. package/lib/notification/index.js.map +1 -0
  166. package/lib/notification/notification.dto.d.ts +4 -0
  167. package/lib/notification/notification.dto.js +29 -0
  168. package/lib/notification/notification.dto.js.map +1 -0
  169. package/lib/notification/notification.event.d.ts +6 -0
  170. package/lib/notification/notification.event.js +11 -0
  171. package/lib/notification/notification.event.js.map +1 -0
  172. package/lib/notification/notification.model.d.ts +9 -0
  173. package/lib/notification/notification.model.js +48 -0
  174. package/lib/notification/notification.model.js.map +1 -0
  175. package/lib/notification/notification.token.d.ts +4 -0
  176. package/lib/notification/notification.token.js +3 -0
  177. package/lib/notification/notification.token.js.map +1 -0
  178. package/lib/notification/notification.type.d.ts +6 -0
  179. package/lib/notification/notification.type.js +11 -0
  180. package/lib/notification/notification.type.js.map +1 -0
  181. package/lib/popularity/index.d.ts +2 -0
  182. package/lib/popularity/index.js +19 -0
  183. package/lib/popularity/index.js.map +1 -0
  184. package/lib/popularity/popularity.model.d.ts +9 -0
  185. package/lib/popularity/popularity.model.js +95 -0
  186. package/lib/popularity/popularity.model.js.map +1 -0
  187. package/lib/popularity/popularity.rate.d.ts +8 -0
  188. package/lib/popularity/popularity.rate.js +13 -0
  189. package/lib/popularity/popularity.rate.js.map +1 -0
  190. package/lib/post/index.d.ts +4 -0
  191. package/lib/post/index.js +21 -0
  192. package/lib/post/index.js.map +1 -0
  193. package/lib/post/post.additionals.d.ts +24 -0
  194. package/lib/post/post.additionals.js +3 -0
  195. package/lib/post/post.additionals.js.map +1 -0
  196. package/lib/post/post.dto.d.ts +26 -0
  197. package/lib/post/post.dto.js +119 -0
  198. package/lib/post/post.dto.js.map +1 -0
  199. package/lib/post/post.model.d.ts +74 -0
  200. package/lib/post/post.model.js +514 -0
  201. package/lib/post/post.model.js.map +1 -0
  202. package/lib/post/post.type.d.ts +8 -0
  203. package/lib/post/post.type.js +13 -0
  204. package/lib/post/post.type.js.map +1 -0
  205. package/lib/promotion/index.d.ts +2 -0
  206. package/lib/promotion/index.js +19 -0
  207. package/lib/promotion/index.js.map +1 -0
  208. package/lib/promotion/promotion.dto.d.ts +5 -0
  209. package/lib/promotion/promotion.dto.js +38 -0
  210. package/lib/promotion/promotion.dto.js.map +1 -0
  211. package/lib/promotion/promotion.model.d.ts +24 -0
  212. package/lib/promotion/promotion.model.js +125 -0
  213. package/lib/promotion/promotion.model.js.map +1 -0
  214. package/lib/publisher/index.d.ts +3 -0
  215. package/lib/publisher/index.js +20 -0
  216. package/lib/publisher/index.js.map +1 -0
  217. package/lib/publisher/publisher.dto.d.ts +8 -0
  218. package/lib/publisher/publisher.dto.js +39 -0
  219. package/lib/publisher/publisher.dto.js.map +1 -0
  220. package/lib/publisher/publisher.enum.d.ts +7 -0
  221. package/lib/publisher/publisher.enum.js +12 -0
  222. package/lib/publisher/publisher.enum.js.map +1 -0
  223. package/lib/publisher/publisher.model.d.ts +29 -0
  224. package/lib/publisher/publisher.model.js +136 -0
  225. package/lib/publisher/publisher.model.js.map +1 -0
  226. package/lib/question/comment.model.d.ts +20 -0
  227. package/lib/question/comment.model.js +99 -0
  228. package/lib/question/comment.model.js.map +1 -0
  229. package/lib/question/index.d.ts +3 -0
  230. package/lib/question/index.js +20 -0
  231. package/lib/question/index.js.map +1 -0
  232. package/lib/question/question.dto.d.ts +15 -0
  233. package/lib/question/question.dto.js +86 -0
  234. package/lib/question/question.dto.js.map +1 -0
  235. package/lib/question/question.model.d.ts +39 -0
  236. package/lib/question/question.model.js +205 -0
  237. package/lib/question/question.model.js.map +1 -0
  238. package/lib/quote/index.d.ts +1 -0
  239. package/lib/quote/index.js +18 -0
  240. package/lib/quote/index.js.map +1 -0
  241. package/lib/quote/quote.model.d.ts +5 -0
  242. package/lib/quote/quote.model.js +31 -0
  243. package/lib/quote/quote.model.js.map +1 -0
  244. package/lib/security/account.status.d.ts +6 -0
  245. package/lib/security/account.status.js +11 -0
  246. package/lib/security/account.status.js.map +1 -0
  247. package/lib/security/account.type.d.ts +5 -0
  248. package/lib/security/account.type.js +10 -0
  249. package/lib/security/account.type.js.map +1 -0
  250. package/lib/security/index.d.ts +3 -0
  251. package/lib/security/index.js +3 -0
  252. package/lib/security/index.js.map +1 -1
  253. package/lib/security/token.interface.d.ts +7 -0
  254. package/lib/security/token.interface.js +3 -0
  255. package/lib/security/token.interface.js.map +1 -0
  256. package/lib/social/index.d.ts +4 -0
  257. package/lib/social/index.js +21 -0
  258. package/lib/social/index.js.map +1 -0
  259. package/lib/social/share.interface.d.ts +6 -0
  260. package/lib/social/share.interface.js +3 -0
  261. package/lib/social/share.interface.js.map +1 -0
  262. package/lib/social/share.provider.d.ts +7 -0
  263. package/lib/social/share.provider.js +12 -0
  264. package/lib/social/share.provider.js.map +1 -0
  265. package/lib/social/social-user.dto.d.ts +11 -0
  266. package/lib/social/social-user.dto.js +59 -0
  267. package/lib/social/social-user.dto.js.map +1 -0
  268. package/lib/social/social.provider.d.ts +7 -0
  269. package/lib/social/social.provider.js +12 -0
  270. package/lib/social/social.provider.js.map +1 -0
  271. package/lib/survey/index.d.ts +5 -0
  272. package/lib/survey/index.js +22 -0
  273. package/lib/survey/index.js.map +1 -0
  274. package/lib/survey/survey-item.model.d.ts +17 -0
  275. package/lib/survey/survey-item.model.js +88 -0
  276. package/lib/survey/survey-item.model.js.map +1 -0
  277. package/lib/survey/survey-option.model.d.ts +9 -0
  278. package/lib/survey/survey-option.model.js +50 -0
  279. package/lib/survey/survey-option.model.js.map +1 -0
  280. package/lib/survey/survey.dto.d.ts +9 -0
  281. package/lib/survey/survey.dto.js +54 -0
  282. package/lib/survey/survey.dto.js.map +1 -0
  283. package/lib/survey/survey.event.d.ts +5 -0
  284. package/lib/survey/survey.event.js +10 -0
  285. package/lib/survey/survey.event.js.map +1 -0
  286. package/lib/survey/survey.model.d.ts +27 -0
  287. package/lib/survey/survey.model.js +138 -0
  288. package/lib/survey/survey.model.js.map +1 -0
  289. package/lib/topic/index.d.ts +1 -0
  290. package/lib/topic/index.js +18 -0
  291. package/lib/topic/index.js.map +1 -0
  292. package/lib/topic/topic.model.d.ts +20 -0
  293. package/lib/topic/topic.model.js +104 -0
  294. package/lib/topic/topic.model.js.map +1 -0
  295. package/lib/tsconfig.tsbuildinfo +1 -1
  296. package/lib/ui/background.enum.d.ts +10 -0
  297. package/lib/ui/background.enum.js +15 -0
  298. package/lib/ui/background.enum.js.map +1 -0
  299. package/lib/ui/color.enum.d.ts +10 -0
  300. package/lib/ui/color.enum.js +15 -0
  301. package/lib/ui/color.enum.js.map +1 -0
  302. package/lib/ui/context.enum.d.ts +10 -0
  303. package/lib/ui/context.enum.js +15 -0
  304. package/lib/ui/context.enum.js.map +1 -0
  305. package/lib/ui/index.d.ts +3 -0
  306. package/lib/ui/index.js +20 -0
  307. package/lib/ui/index.js.map +1 -0
  308. package/lib/user/index.d.ts +2 -0
  309. package/lib/user/index.js +19 -0
  310. package/lib/user/index.js.map +1 -0
  311. package/lib/user/user.dto.d.ts +24 -0
  312. package/lib/user/user.dto.js +99 -0
  313. package/lib/user/user.dto.js.map +1 -0
  314. package/lib/user/user.model.d.ts +38 -0
  315. package/lib/user/user.model.js +258 -0
  316. package/lib/user/user.model.js.map +1 -0
  317. package/lib/verification/index.d.ts +1 -0
  318. package/lib/verification/index.js +18 -0
  319. package/lib/verification/index.js.map +1 -0
  320. package/lib/verification/verification.type.d.ts +5 -0
  321. package/lib/verification/verification.type.js +10 -0
  322. package/lib/verification/verification.type.js.map +1 -0
  323. package/package.json +2 -7
@@ -0,0 +1,99 @@
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.SubmitUserProfilePictureDto = exports.SubmitUserRolesDto = exports.SubmitUserPhoneDto = exports.SubmitUserPasswordDto = exports.SubmitUserEmailDto = exports.InviteUserDto = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const security_1 = require("../security");
15
+ class InviteUserDto {
16
+ email;
17
+ roles;
18
+ }
19
+ exports.InviteUserDto = InviteUserDto;
20
+ __decorate([
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ (0, class_validator_1.IsEmail)(),
23
+ __metadata("design:type", String)
24
+ ], InviteUserDto.prototype, "email", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ (0, class_validator_1.IsEnum)(security_1.Role, { each: true }),
28
+ __metadata("design:type", Array)
29
+ ], InviteUserDto.prototype, "roles", void 0);
30
+ class SubmitUserEmailDto {
31
+ email;
32
+ otp;
33
+ }
34
+ exports.SubmitUserEmailDto = SubmitUserEmailDto;
35
+ __decorate([
36
+ (0, class_validator_1.IsNotEmpty)(),
37
+ (0, class_validator_1.IsEmail)(),
38
+ __metadata("design:type", String)
39
+ ], SubmitUserEmailDto.prototype, "email", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsNotEmpty)(),
42
+ (0, class_validator_1.IsString)(),
43
+ __metadata("design:type", String)
44
+ ], SubmitUserEmailDto.prototype, "otp", void 0);
45
+ class SubmitUserPasswordDto {
46
+ password;
47
+ passwordRepeat;
48
+ otp;
49
+ }
50
+ exports.SubmitUserPasswordDto = SubmitUserPasswordDto;
51
+ __decorate([
52
+ (0, class_validator_1.IsNotEmpty)(),
53
+ (0, class_validator_1.IsString)(),
54
+ __metadata("design:type", String)
55
+ ], SubmitUserPasswordDto.prototype, "password", void 0);
56
+ __decorate([
57
+ (0, class_validator_1.IsOptional)(),
58
+ (0, class_validator_1.IsString)(),
59
+ __metadata("design:type", String)
60
+ ], SubmitUserPasswordDto.prototype, "passwordRepeat", void 0);
61
+ __decorate([
62
+ (0, class_validator_1.IsOptional)(),
63
+ (0, class_validator_1.IsString)(),
64
+ __metadata("design:type", String)
65
+ ], SubmitUserPasswordDto.prototype, "otp", void 0);
66
+ class SubmitUserPhoneDto {
67
+ phone;
68
+ otp;
69
+ }
70
+ exports.SubmitUserPhoneDto = SubmitUserPhoneDto;
71
+ __decorate([
72
+ (0, class_validator_1.IsNotEmpty)(),
73
+ (0, class_validator_1.IsString)(),
74
+ __metadata("design:type", String)
75
+ ], SubmitUserPhoneDto.prototype, "phone", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.IsOptional)(),
78
+ (0, class_validator_1.IsString)(),
79
+ __metadata("design:type", String)
80
+ ], SubmitUserPhoneDto.prototype, "otp", void 0);
81
+ class SubmitUserRolesDto {
82
+ roles;
83
+ }
84
+ exports.SubmitUserRolesDto = SubmitUserRolesDto;
85
+ __decorate([
86
+ (0, class_validator_1.IsNotEmpty)(),
87
+ (0, class_validator_1.IsIn)(Object.values(security_1.Role), { each: true }),
88
+ __metadata("design:type", Array)
89
+ ], SubmitUserRolesDto.prototype, "roles", void 0);
90
+ class SubmitUserProfilePictureDto {
91
+ url;
92
+ }
93
+ exports.SubmitUserProfilePictureDto = SubmitUserProfilePictureDto;
94
+ __decorate([
95
+ (0, class_validator_1.IsNotEmpty)(),
96
+ (0, class_validator_1.IsString)(),
97
+ __metadata("design:type", String)
98
+ ], SubmitUserProfilePictureDto.prototype, "url", void 0);
99
+ //# sourceMappingURL=user.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.dto.js","sourceRoot":"","sources":["../../src/user/user.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA0F;AAC1F,0CAAmC;AAEnC,MAAa,aAAa;IAItB,KAAK,CAAS;IAId,KAAK,CAAS;CACjB;AATD,sCASC;AALG;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;4CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;4CACf;AAGlB,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,GAAG,CAAS;CACZ;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACC;AAGb,MAAa,qBAAqB;IAIjC,QAAQ,CAAS;IAIjB,cAAc,CAAS;IAIvB,GAAG,CAAS;CACZ;AAbD,sDAaC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;uDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6DACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACC;AAGb,MAAa,kBAAkB;IAG9B,KAAK,CAAS;IAId,GAAG,CAAS;CACZ;AARD,gDAQC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;iDACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACC;AAGb,MAAa,kBAAkB;IAG9B,KAAK,CAAS;CACd;AAJD,gDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,MAAM,CAAC,MAAM,CAAC,eAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;iDAC5B;AAGf,MAAa,2BAA2B;IAGvC,GAAG,CAAS;CACZ;AAJD,kEAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACC"}
@@ -0,0 +1,38 @@
1
+ import { SocialLoginProvider } from '../social';
2
+ import { AccountStatus, AccountType } from '../security';
3
+ import { Permission, Role } from '../security';
4
+ import { Brand } from '../brand';
5
+ import { Publisher } from '../publisher';
6
+ export declare class User {
7
+ id: number;
8
+ uid: string;
9
+ name: string;
10
+ email: string;
11
+ phone: string;
12
+ image: string;
13
+ status: AccountStatus;
14
+ accountType: AccountType;
15
+ provider: SocialLoginProvider;
16
+ isBrand: boolean;
17
+ isPublisher: boolean;
18
+ roles: Role[];
19
+ permissions: Permission[];
20
+ selectedPublisher: Publisher;
21
+ accessPublishers: Publisher[];
22
+ brand: Brand;
23
+ publisher: Publisher;
24
+ constructor(props?: Partial<User>);
25
+ isActive(): boolean;
26
+ hasRole(role: Role): boolean;
27
+ hasRoles(roles: Role[]): boolean;
28
+ hasPermission(permission: Permission): boolean;
29
+ hasPermissions(permissions: Permission[]): boolean;
30
+ isBrandUser(): boolean;
31
+ belongsToBrand(brandId: number): boolean;
32
+ isPublisherUser(): boolean;
33
+ belongsToPublisher(publisherId: number): boolean;
34
+ getPublisher(): Publisher;
35
+ hasBrandAuthorization(brandId: number): boolean;
36
+ hasPublisherAuthorization(publisherId: number): boolean;
37
+ hasPublisherAccess(publisherId: number): boolean;
38
+ }
@@ -0,0 +1,258 @@
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.User = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const social_1 = require("../social");
15
+ const security_1 = require("../security");
16
+ const security_2 = require("../security");
17
+ const brand_1 = require("../brand");
18
+ const publisher_1 = require("../publisher");
19
+ class User {
20
+ id;
21
+ uid;
22
+ name;
23
+ email;
24
+ phone;
25
+ image;
26
+ status;
27
+ accountType;
28
+ provider;
29
+ isBrand;
30
+ isPublisher;
31
+ roles;
32
+ permissions;
33
+ selectedPublisher;
34
+ accessPublishers;
35
+ brand;
36
+ publisher;
37
+ constructor(props) {
38
+ Object.assign(this, props);
39
+ }
40
+ isActive() {
41
+ return this.status === security_1.AccountStatus.Active;
42
+ }
43
+ hasRole(role) {
44
+ return this?.roles.indexOf(role) > -1 ? true : false;
45
+ }
46
+ hasRoles(roles) {
47
+ return this.roles.some(role => roles.includes(role));
48
+ }
49
+ hasPermission(permission) {
50
+ if (!this.roles) {
51
+ return false;
52
+ }
53
+ if (!this.permissions) {
54
+ let permissions = [];
55
+ for (const role of this.roles) {
56
+ if (security_2.ACL[role]) {
57
+ permissions = [...permissions, ...security_2.ACL[role]];
58
+ }
59
+ }
60
+ this.permissions = Array.from(new Set(permissions));
61
+ }
62
+ return this.permissions.indexOf(permission) > -1 ? true : false;
63
+ }
64
+ hasPermissions(permissions) {
65
+ for (const permission of permissions) {
66
+ if (this.hasPermission(permission)) {
67
+ return true;
68
+ }
69
+ }
70
+ return false;
71
+ }
72
+ isBrandUser() {
73
+ return this.publisher ? false : true;
74
+ }
75
+ belongsToBrand(brandId) {
76
+ return this.brand?.id === brandId;
77
+ }
78
+ isPublisherUser() {
79
+ return this.publisher ? true : false;
80
+ }
81
+ belongsToPublisher(publisherId) {
82
+ return this.publisher?.id === publisherId;
83
+ }
84
+ getPublisher() {
85
+ return this.isBrandUser() ? this.selectedPublisher : this.publisher;
86
+ }
87
+ hasBrandAuthorization(brandId) {
88
+ return this.belongsToBrand(brandId) && this.isBrandUser();
89
+ }
90
+ hasPublisherAuthorization(publisherId) {
91
+ return this.belongsToPublisher(publisherId) && this.isPublisherUser();
92
+ }
93
+ hasPublisherAccess(publisherId) {
94
+ const accessPublishers = this.accessPublishers?.map(i => i.id) || [];
95
+ if (this.publisher) {
96
+ accessPublishers.push(this.publisher.id);
97
+ }
98
+ if (this.selectedPublisher) {
99
+ accessPublishers.push(this.selectedPublisher.id);
100
+ }
101
+ return accessPublishers.indexOf(publisherId) > -1 ? true : false;
102
+ }
103
+ }
104
+ exports.User = User;
105
+ __decorate([
106
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
107
+ (0, class_transformer_1.Type)(() => Number),
108
+ __metadata("design:type", Number)
109
+ ], User.prototype, "id", void 0);
110
+ __decorate([
111
+ (0, class_transformer_1.Expose)(),
112
+ __metadata("design:type", String)
113
+ ], User.prototype, "uid", void 0);
114
+ __decorate([
115
+ (0, class_transformer_1.Expose)(),
116
+ __metadata("design:type", String)
117
+ ], User.prototype, "name", void 0);
118
+ __decorate([
119
+ (0, class_transformer_1.Expose)(),
120
+ __metadata("design:type", String)
121
+ ], User.prototype, "email", void 0);
122
+ __decorate([
123
+ (0, class_transformer_1.Expose)(),
124
+ __metadata("design:type", String)
125
+ ], User.prototype, "phone", void 0);
126
+ __decorate([
127
+ (0, class_transformer_1.Expose)(),
128
+ __metadata("design:type", String)
129
+ ], User.prototype, "image", void 0);
130
+ __decorate([
131
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
132
+ __metadata("design:type", String)
133
+ ], User.prototype, "status", void 0);
134
+ __decorate([
135
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
136
+ __metadata("design:type", String)
137
+ ], User.prototype, "accountType", void 0);
138
+ __decorate([
139
+ (0, class_transformer_1.Expose)(),
140
+ __metadata("design:type", String)
141
+ ], User.prototype, "provider", void 0);
142
+ __decorate([
143
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
144
+ (0, class_transformer_1.Type)(() => Boolean),
145
+ __metadata("design:type", Boolean)
146
+ ], User.prototype, "isBrand", void 0);
147
+ __decorate([
148
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
149
+ (0, class_transformer_1.Type)(() => Boolean),
150
+ __metadata("design:type", Boolean)
151
+ ], User.prototype, "isPublisher", void 0);
152
+ __decorate([
153
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
154
+ __metadata("design:type", Array)
155
+ ], User.prototype, "roles", void 0);
156
+ __decorate([
157
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
158
+ __metadata("design:type", Array)
159
+ ], User.prototype, "permissions", void 0);
160
+ __decorate([
161
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
162
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
163
+ __metadata("design:type", publisher_1.Publisher)
164
+ ], User.prototype, "selectedPublisher", void 0);
165
+ __decorate([
166
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
167
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
168
+ __metadata("design:type", Array)
169
+ ], User.prototype, "accessPublishers", void 0);
170
+ __decorate([
171
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
172
+ (0, class_transformer_1.Type)(() => brand_1.Brand),
173
+ __metadata("design:type", brand_1.Brand)
174
+ ], User.prototype, "brand", void 0);
175
+ __decorate([
176
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
177
+ (0, class_transformer_1.Type)(() => publisher_1.Publisher),
178
+ __metadata("design:type", publisher_1.Publisher)
179
+ ], User.prototype, "publisher", void 0);
180
+ __decorate([
181
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
182
+ __metadata("design:type", Function),
183
+ __metadata("design:paramtypes", []),
184
+ __metadata("design:returntype", Boolean)
185
+ ], User.prototype, "isActive", null);
186
+ __decorate([
187
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
188
+ __metadata("design:type", Function),
189
+ __metadata("design:paramtypes", [String]),
190
+ __metadata("design:returntype", Boolean)
191
+ ], User.prototype, "hasRole", null);
192
+ __decorate([
193
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
194
+ __metadata("design:type", Function),
195
+ __metadata("design:paramtypes", [Array]),
196
+ __metadata("design:returntype", Boolean)
197
+ ], User.prototype, "hasRoles", null);
198
+ __decorate([
199
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
200
+ __metadata("design:type", Function),
201
+ __metadata("design:paramtypes", [String]),
202
+ __metadata("design:returntype", Boolean)
203
+ ], User.prototype, "hasPermission", null);
204
+ __decorate([
205
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
206
+ __metadata("design:type", Function),
207
+ __metadata("design:paramtypes", [Array]),
208
+ __metadata("design:returntype", Boolean)
209
+ ], User.prototype, "hasPermissions", null);
210
+ __decorate([
211
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
212
+ __metadata("design:type", Function),
213
+ __metadata("design:paramtypes", []),
214
+ __metadata("design:returntype", Boolean)
215
+ ], User.prototype, "isBrandUser", null);
216
+ __decorate([
217
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
218
+ __metadata("design:type", Function),
219
+ __metadata("design:paramtypes", [Number]),
220
+ __metadata("design:returntype", Boolean)
221
+ ], User.prototype, "belongsToBrand", null);
222
+ __decorate([
223
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
224
+ __metadata("design:type", Function),
225
+ __metadata("design:paramtypes", []),
226
+ __metadata("design:returntype", Boolean)
227
+ ], User.prototype, "isPublisherUser", null);
228
+ __decorate([
229
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
230
+ __metadata("design:type", Function),
231
+ __metadata("design:paramtypes", [Number]),
232
+ __metadata("design:returntype", void 0)
233
+ ], User.prototype, "belongsToPublisher", null);
234
+ __decorate([
235
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
236
+ __metadata("design:type", Function),
237
+ __metadata("design:paramtypes", []),
238
+ __metadata("design:returntype", publisher_1.Publisher)
239
+ ], User.prototype, "getPublisher", null);
240
+ __decorate([
241
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
242
+ __metadata("design:type", Function),
243
+ __metadata("design:paramtypes", [Number]),
244
+ __metadata("design:returntype", void 0)
245
+ ], User.prototype, "hasBrandAuthorization", null);
246
+ __decorate([
247
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
248
+ __metadata("design:type", Function),
249
+ __metadata("design:paramtypes", [Number]),
250
+ __metadata("design:returntype", void 0)
251
+ ], User.prototype, "hasPublisherAuthorization", null);
252
+ __decorate([
253
+ (0, class_transformer_1.Expose)({ groups: ['admin'] }),
254
+ __metadata("design:type", Function),
255
+ __metadata("design:paramtypes", [Number]),
256
+ __metadata("design:returntype", Boolean)
257
+ ], User.prototype, "hasPublisherAccess", null);
258
+ //# sourceMappingURL=user.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.model.js","sourceRoot":"","sources":["../../src/user/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,sCAAgD;AAChD,0CAAyD;AACzD,0CAAqD;AACrD,oCAAiC;AACjC,4CAAyC;AAOzC,MAAa,IAAI;IAQhB,EAAE,CAAS;IAOX,GAAG,CAAS;IAKZ,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,KAAK,CAAS;IAKd,MAAM,CAAgB;IAGtB,WAAW,CAAc;IAGzB,QAAQ,CAAsB;IAI9B,OAAO,CAAU;IAIjB,WAAW,CAAU;IAKrB,KAAK,CAAS;IAGd,WAAW,CAAe;IAU1B,iBAAiB,CAAY;IAO7B,gBAAgB,CAAc;IAM9B,KAAK,CAAQ;IAIb,SAAS,CAAY;IAErB,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAGD,QAAQ;QACP,OAAO,IAAI,CAAC,MAAM,KAAK,wBAAa,CAAC,MAAM,CAAC;IAC7C,CAAC;IAQD,OAAO,CAAC,IAAU;QACjB,OAAO,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IACtD,CAAC;IAQD,QAAQ,CAAC,K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BAAS;wCAExB;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;iDAG7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;qDAG7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;8CAc7B"}
@@ -0,0 +1 @@
1
+ export * from './verification.type';
@@ -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("./verification.type"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/verification/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -0,0 +1,5 @@
1
+ export declare enum VerificationType {
2
+ Ownership = "OWNERSHIP",
3
+ Email = "EMAIL",
4
+ Phone = "PHONE"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationType = void 0;
4
+ var VerificationType;
5
+ (function (VerificationType) {
6
+ VerificationType["Ownership"] = "OWNERSHIP";
7
+ VerificationType["Email"] = "EMAIL";
8
+ VerificationType["Phone"] = "PHONE";
9
+ })(VerificationType || (exports.VerificationType = VerificationType = {}));
10
+ //# sourceMappingURL=verification.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"verification.type.js","sourceRoot":"","sources":["../../src/verification/verification.type.ts"],"names":[],"mappings":";;;AAGA,IAAY,gBAgBX;AAhBD,WAAY,gBAAgB;IAK3B,2CAAuB,CAAA;IAKvB,mCAAe,CAAA;IAKf,mCAAe,CAAA;AAChB,CAAC,EAhBW,gBAAgB,gCAAhB,gBAAgB,QAgB3B"}
package/package.json CHANGED
@@ -1,18 +1,13 @@
1
1
  {
2
2
  "name": "@intelact/bright",
3
- "version": "0.9.79",
3
+ "version": "0.9.81",
4
4
  "description": "Bright common",
5
5
  "author": "Intelact Solutions Ltd.",
6
6
  "main": "lib/index.js",
7
7
  "module": "lib/index.js",
8
8
  "typings": "lib/index.d.ts",
9
9
  "exports": {
10
- ".": "./lib/index.js",
11
- "./dtos": "./lib/dtos/index.js",
12
- "./enums": "./lib/enums/index.js",
13
- "./helpers": "./lib/helpers/index.js",
14
- "./models": "./lib/models/index.js",
15
- "./security": "./lib/security/index.js"
10
+ ".": "./lib/index.js"
16
11
  },
17
12
  "scripts": {
18
13
  "build": "tsc",