@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.
- package/lib/auth/auth.event.d.ts +9 -0
- package/lib/auth/auth.event.js +14 -0
- package/lib/auth/auth.event.js.map +1 -0
- package/lib/auth/index.d.ts +4 -0
- package/lib/auth/index.js +21 -0
- package/lib/auth/index.js.map +1 -0
- package/lib/auth/password.dto.d.ts +8 -0
- package/lib/auth/password.dto.js +44 -0
- package/lib/auth/password.dto.js.map +1 -0
- package/lib/auth/sign.dto.d.ts +11 -0
- package/lib/auth/sign.dto.js +54 -0
- package/lib/auth/sign.dto.js.map +1 -0
- package/lib/auth/verify.dto.d.ts +10 -0
- package/lib/auth/verify.dto.js +47 -0
- package/lib/auth/verify.dto.js.map +1 -0
- package/lib/author/author.model.d.ts +19 -0
- package/lib/author/author.model.js +98 -0
- package/lib/author/author.model.js.map +1 -0
- package/lib/author/author.sort.d.ts +6 -0
- package/lib/author/author.sort.js +11 -0
- package/lib/author/author.sort.js.map +1 -0
- package/lib/author/index.d.ts +2 -0
- package/lib/author/index.js +19 -0
- package/lib/author/index.js.map +1 -0
- package/lib/boost/boost.dto.d.ts +5 -0
- package/lib/boost/boost.dto.js +38 -0
- package/lib/boost/boost.dto.js.map +1 -0
- package/lib/boost/boost.model.d.ts +16 -0
- package/lib/boost/boost.model.js +82 -0
- package/lib/boost/boost.model.js.map +1 -0
- package/lib/boost/index.d.ts +2 -0
- package/lib/boost/index.js +19 -0
- package/lib/boost/index.js.map +1 -0
- package/lib/brand/brand-setting.model.d.ts +12 -0
- package/lib/brand/brand-setting.model.js +58 -0
- package/lib/brand/brand-setting.model.js.map +1 -0
- package/lib/brand/brand-setting.type.d.ts +10 -0
- package/lib/brand/brand-setting.type.js +15 -0
- package/lib/brand/brand-setting.type.js.map +1 -0
- package/lib/brand/brand.dto.d.ts +6 -0
- package/lib/brand/brand.dto.js +41 -0
- package/lib/brand/brand.dto.js.map +1 -0
- package/lib/brand/brand.model.d.ts +31 -0
- package/lib/brand/brand.model.js +201 -0
- package/lib/brand/brand.model.js.map +1 -0
- package/lib/brand/index.d.ts +4 -0
- package/lib/brand/index.js +21 -0
- package/lib/brand/index.js.map +1 -0
- package/lib/category/category.model.d.ts +18 -0
- package/lib/category/category.model.js +94 -0
- package/lib/category/category.model.js.map +1 -0
- package/lib/category/index.d.ts +1 -0
- package/lib/category/index.js +18 -0
- package/lib/category/index.js.map +1 -0
- package/lib/collection/collection.model.d.ts +16 -0
- package/lib/collection/collection.model.js +77 -0
- package/lib/collection/collection.model.js.map +1 -0
- package/lib/collection/index.d.ts +1 -0
- package/lib/collection/index.js +18 -0
- package/lib/collection/index.js.map +1 -0
- package/lib/common/asset.type.d.ts +7 -0
- package/lib/common/asset.type.js +12 -0
- package/lib/common/asset.type.js.map +1 -0
- package/lib/common/bookmark.dto.d.ts +4 -0
- package/lib/common/bookmark.dto.js +24 -0
- package/lib/common/bookmark.dto.js.map +1 -0
- package/lib/common/browse.dto.d.ts +9 -0
- package/lib/common/browse.dto.js +47 -0
- package/lib/common/browse.dto.js.map +1 -0
- package/lib/common/general.dto.d.ts +25 -0
- package/lib/common/general.dto.js +94 -0
- package/lib/common/general.dto.js.map +1 -0
- package/lib/common/index.d.ts +11 -0
- package/lib/common/index.js +28 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/module.scope.d.ts +22 -0
- package/lib/common/module.scope.js +27 -0
- package/lib/common/module.scope.js.map +1 -0
- package/lib/common/module.type.d.ts +6 -0
- package/lib/common/module.type.js +11 -0
- package/lib/common/module.type.js.map +1 -0
- package/lib/common/search.dto.d.ts +14 -0
- package/lib/common/search.dto.js +74 -0
- package/lib/common/search.dto.js.map +1 -0
- package/lib/common/sort.type.d.ts +8 -0
- package/lib/common/sort.type.js +13 -0
- package/lib/common/sort.type.js.map +1 -0
- package/lib/common/status.label.d.ts +6 -0
- package/lib/common/status.label.js +11 -0
- package/lib/common/status.label.js.map +1 -0
- package/lib/common/status.type.d.ts +7 -0
- package/lib/common/status.type.js +12 -0
- package/lib/common/status.type.js.map +1 -0
- package/lib/common/user.agent.d.ts +11 -0
- package/lib/common/user.agent.js +3 -0
- package/lib/common/user.agent.js.map +1 -0
- package/lib/contact/contact.dto.d.ts +5 -0
- package/lib/contact/contact.dto.js +35 -0
- package/lib/contact/contact.dto.js.map +1 -0
- package/lib/contact/index.d.ts +1 -0
- package/lib/contact/index.js +18 -0
- package/lib/contact/index.js.map +1 -0
- package/lib/dtos/index.d.ts +2 -1
- package/lib/dtos/index.js +2 -1
- package/lib/dtos/index.js.map +1 -1
- package/lib/dtos/notification.dto.d.ts +4 -0
- package/lib/dtos/notification.dto.js +29 -0
- package/lib/dtos/notification.dto.js.map +1 -0
- package/lib/enums/module.enum.d.ts +22 -0
- package/lib/enums/module.enum.js +24 -1
- package/lib/enums/module.enum.js.map +1 -1
- package/lib/enums/tracks.enum.d.ts +12 -8
- package/lib/enums/tracks.enum.js +16 -12
- package/lib/enums/tracks.enum.js.map +1 -1
- package/lib/feedback/feedback-item.model.d.ts +15 -0
- package/lib/feedback/feedback-item.model.js +81 -0
- package/lib/feedback/feedback-item.model.js.map +1 -0
- package/lib/feedback/feedback-option.model.d.ts +7 -0
- package/lib/feedback/feedback-option.model.js +43 -0
- package/lib/feedback/feedback-option.model.js.map +1 -0
- package/lib/feedback/feedback.data.d.ts +6 -0
- package/lib/feedback/feedback.data.js +3 -0
- package/lib/feedback/feedback.data.js.map +1 -0
- package/lib/feedback/feedback.dto.d.ts +9 -0
- package/lib/feedback/feedback.dto.js +47 -0
- package/lib/feedback/feedback.dto.js.map +1 -0
- package/lib/feedback/feedback.model.d.ts +18 -0
- package/lib/feedback/feedback.model.js +87 -0
- package/lib/feedback/feedback.model.js.map +1 -0
- package/lib/feedback/index.d.ts +5 -0
- package/lib/feedback/index.js +22 -0
- package/lib/feedback/index.js.map +1 -0
- package/lib/gallery/gallery.model.d.ts +6 -0
- package/lib/gallery/gallery.model.js +36 -0
- package/lib/gallery/gallery.model.js.map +1 -0
- package/lib/gallery/index.d.ts +1 -0
- package/lib/gallery/index.js +18 -0
- package/lib/gallery/index.js.map +1 -0
- package/lib/index.d.ts +27 -4
- package/lib/index.js +27 -4
- package/lib/index.js.map +1 -1
- package/lib/item/index.d.ts +1 -0
- package/lib/item/index.js +18 -0
- package/lib/item/index.js.map +1 -0
- package/lib/item/item.model.d.ts +14 -0
- package/lib/item/item.model.js +37 -0
- package/lib/item/item.model.js.map +1 -0
- package/lib/link/index.d.ts +1 -0
- package/lib/link/index.js +18 -0
- package/lib/link/index.js.map +1 -0
- package/lib/link/link.model.d.ts +16 -0
- package/lib/link/link.model.js +35 -0
- package/lib/link/link.model.js.map +1 -0
- package/lib/log/index.d.ts +2 -0
- package/lib/log/index.js +19 -0
- package/lib/log/index.js.map +1 -0
- package/lib/log/log.event.d.ts +14 -0
- package/lib/log/log.event.js +19 -0
- package/lib/log/log.event.js.map +1 -0
- package/lib/log/log.model.d.ts +12 -0
- package/lib/log/log.model.js +16 -0
- package/lib/log/log.model.js.map +1 -0
- package/lib/metric/index.d.ts +2 -0
- package/lib/metric/index.js +19 -0
- package/lib/metric/index.js.map +1 -0
- package/lib/metric/metric.model.d.ts +27 -0
- package/lib/metric/metric.model.js +189 -0
- package/lib/metric/metric.model.js.map +1 -0
- package/lib/metric/metric.type.d.ts +10 -0
- package/lib/metric/metric.type.js +15 -0
- package/lib/metric/metric.type.js.map +1 -0
- package/lib/models/brand.js +2 -2
- package/lib/models/brand.js.map +1 -1
- package/lib/models/log.d.ts +6 -6
- package/lib/models/log.js +5 -5
- package/lib/models/log.js.map +1 -1
- package/lib/models/response.d.ts +1 -0
- package/lib/notification/index.d.ts +5 -0
- package/lib/notification/index.js +22 -0
- package/lib/notification/index.js.map +1 -0
- package/lib/notification/notification.dto.d.ts +4 -0
- package/lib/notification/notification.dto.js +29 -0
- package/lib/notification/notification.dto.js.map +1 -0
- package/lib/notification/notification.event.d.ts +6 -0
- package/lib/notification/notification.event.js +11 -0
- package/lib/notification/notification.event.js.map +1 -0
- package/lib/notification/notification.model.d.ts +9 -0
- package/lib/notification/notification.model.js +48 -0
- package/lib/notification/notification.model.js.map +1 -0
- package/lib/notification/notification.token.d.ts +4 -0
- package/lib/notification/notification.token.js +3 -0
- package/lib/notification/notification.token.js.map +1 -0
- package/lib/notification/notification.type.d.ts +6 -0
- package/lib/notification/notification.type.js +11 -0
- package/lib/notification/notification.type.js.map +1 -0
- package/lib/popularity/index.d.ts +2 -0
- package/lib/popularity/index.js +19 -0
- package/lib/popularity/index.js.map +1 -0
- package/lib/popularity/popularity.model.d.ts +9 -0
- package/lib/popularity/popularity.model.js +95 -0
- package/lib/popularity/popularity.model.js.map +1 -0
- package/lib/popularity/popularity.rate.d.ts +8 -0
- package/lib/popularity/popularity.rate.js +13 -0
- package/lib/popularity/popularity.rate.js.map +1 -0
- package/lib/post/index.d.ts +4 -0
- package/lib/post/index.js +21 -0
- package/lib/post/index.js.map +1 -0
- package/lib/post/post.additionals.d.ts +24 -0
- package/lib/post/post.additionals.js +3 -0
- package/lib/post/post.additionals.js.map +1 -0
- package/lib/post/post.dto.d.ts +26 -0
- package/lib/post/post.dto.js +119 -0
- package/lib/post/post.dto.js.map +1 -0
- package/lib/post/post.model.d.ts +74 -0
- package/lib/post/post.model.js +514 -0
- package/lib/post/post.model.js.map +1 -0
- package/lib/post/post.type.d.ts +8 -0
- package/lib/post/post.type.js +13 -0
- package/lib/post/post.type.js.map +1 -0
- package/lib/promotion/index.d.ts +2 -0
- package/lib/promotion/index.js +19 -0
- package/lib/promotion/index.js.map +1 -0
- package/lib/promotion/promotion.dto.d.ts +5 -0
- package/lib/promotion/promotion.dto.js +38 -0
- package/lib/promotion/promotion.dto.js.map +1 -0
- package/lib/promotion/promotion.model.d.ts +24 -0
- package/lib/promotion/promotion.model.js +125 -0
- package/lib/promotion/promotion.model.js.map +1 -0
- package/lib/publisher/index.d.ts +3 -0
- package/lib/publisher/index.js +20 -0
- package/lib/publisher/index.js.map +1 -0
- package/lib/publisher/publisher.dto.d.ts +8 -0
- package/lib/publisher/publisher.dto.js +39 -0
- package/lib/publisher/publisher.dto.js.map +1 -0
- package/lib/publisher/publisher.enum.d.ts +7 -0
- package/lib/publisher/publisher.enum.js +12 -0
- package/lib/publisher/publisher.enum.js.map +1 -0
- package/lib/publisher/publisher.model.d.ts +29 -0
- package/lib/publisher/publisher.model.js +136 -0
- package/lib/publisher/publisher.model.js.map +1 -0
- package/lib/question/comment.model.d.ts +20 -0
- package/lib/question/comment.model.js +99 -0
- package/lib/question/comment.model.js.map +1 -0
- package/lib/question/index.d.ts +3 -0
- package/lib/question/index.js +20 -0
- package/lib/question/index.js.map +1 -0
- package/lib/question/question.dto.d.ts +15 -0
- package/lib/question/question.dto.js +86 -0
- package/lib/question/question.dto.js.map +1 -0
- package/lib/question/question.model.d.ts +39 -0
- package/lib/question/question.model.js +205 -0
- package/lib/question/question.model.js.map +1 -0
- package/lib/quote/index.d.ts +1 -0
- package/lib/quote/index.js +18 -0
- package/lib/quote/index.js.map +1 -0
- package/lib/quote/quote.model.d.ts +5 -0
- package/lib/quote/quote.model.js +31 -0
- package/lib/quote/quote.model.js.map +1 -0
- package/lib/security/account.status.d.ts +6 -0
- package/lib/security/account.status.js +11 -0
- package/lib/security/account.status.js.map +1 -0
- package/lib/security/account.type.d.ts +5 -0
- package/lib/security/account.type.js +10 -0
- package/lib/security/account.type.js.map +1 -0
- package/lib/security/index.d.ts +3 -0
- package/lib/security/index.js +3 -0
- package/lib/security/index.js.map +1 -1
- package/lib/security/token.interface.d.ts +7 -0
- package/lib/security/token.interface.js +3 -0
- package/lib/security/token.interface.js.map +1 -0
- package/lib/social/index.d.ts +4 -0
- package/lib/social/index.js +21 -0
- package/lib/social/index.js.map +1 -0
- package/lib/social/share.interface.d.ts +6 -0
- package/lib/social/share.interface.js +3 -0
- package/lib/social/share.interface.js.map +1 -0
- package/lib/social/share.provider.d.ts +7 -0
- package/lib/social/share.provider.js +12 -0
- package/lib/social/share.provider.js.map +1 -0
- package/lib/social/social-user.dto.d.ts +11 -0
- package/lib/social/social-user.dto.js +59 -0
- package/lib/social/social-user.dto.js.map +1 -0
- package/lib/social/social.provider.d.ts +7 -0
- package/lib/social/social.provider.js +12 -0
- package/lib/social/social.provider.js.map +1 -0
- package/lib/survey/index.d.ts +5 -0
- package/lib/survey/index.js +22 -0
- package/lib/survey/index.js.map +1 -0
- package/lib/survey/survey-item.model.d.ts +17 -0
- package/lib/survey/survey-item.model.js +88 -0
- package/lib/survey/survey-item.model.js.map +1 -0
- package/lib/survey/survey-option.model.d.ts +9 -0
- package/lib/survey/survey-option.model.js +50 -0
- package/lib/survey/survey-option.model.js.map +1 -0
- package/lib/survey/survey.dto.d.ts +9 -0
- package/lib/survey/survey.dto.js +54 -0
- package/lib/survey/survey.dto.js.map +1 -0
- package/lib/survey/survey.event.d.ts +5 -0
- package/lib/survey/survey.event.js +10 -0
- package/lib/survey/survey.event.js.map +1 -0
- package/lib/survey/survey.model.d.ts +27 -0
- package/lib/survey/survey.model.js +138 -0
- package/lib/survey/survey.model.js.map +1 -0
- package/lib/topic/index.d.ts +1 -0
- package/lib/topic/index.js +18 -0
- package/lib/topic/index.js.map +1 -0
- package/lib/topic/topic.model.d.ts +20 -0
- package/lib/topic/topic.model.js +104 -0
- package/lib/topic/topic.model.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/ui/background.enum.d.ts +10 -0
- package/lib/ui/background.enum.js +15 -0
- package/lib/ui/background.enum.js.map +1 -0
- package/lib/ui/color.enum.d.ts +10 -0
- package/lib/ui/color.enum.js +15 -0
- package/lib/ui/color.enum.js.map +1 -0
- package/lib/ui/context.enum.d.ts +10 -0
- package/lib/ui/context.enum.js +15 -0
- package/lib/ui/context.enum.js.map +1 -0
- package/lib/ui/index.d.ts +3 -0
- package/lib/ui/index.js +20 -0
- package/lib/ui/index.js.map +1 -0
- package/lib/user/index.d.ts +2 -0
- package/lib/user/index.js +19 -0
- package/lib/user/index.js.map +1 -0
- package/lib/user/user.dto.d.ts +24 -0
- package/lib/user/user.dto.js +99 -0
- package/lib/user/user.dto.js.map +1 -0
- package/lib/user/user.model.d.ts +38 -0
- package/lib/user/user.model.js +258 -0
- package/lib/user/user.model.js.map +1 -0
- package/lib/verification/index.d.ts +1 -0
- package/lib/verification/index.js +18 -0
- package/lib/verification/index.js.map +1 -0
- package/lib/verification/verification.type.d.ts +5 -0
- package/lib/verification/verification.type.js +10 -0
- package/lib/verification/verification.type.js.map +1 -0
- 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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AM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;2CAG7B;AAQD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;;8CAG7B;AASD;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;;oCACd,qBAAS;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,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.
|
3
|
+
"version": "0.9.80",
|
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",
|