@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,14 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AuthEvent = void 0;
|
4
|
+
var AuthEvent;
|
5
|
+
(function (AuthEvent) {
|
6
|
+
AuthEvent["Signin"] = "SIGNIN";
|
7
|
+
AuthEvent["Signup"] = "SIGNUP";
|
8
|
+
AuthEvent["Signout"] = "SIGNOUT";
|
9
|
+
AuthEvent["Anonymous"] = "ANONYMOUS";
|
10
|
+
AuthEvent["Takeovered"] = "TAKEOVERED";
|
11
|
+
AuthEvent["Deleted"] = "DELETED";
|
12
|
+
AuthEvent["Suspended"] = "SUSPENDED";
|
13
|
+
})(AuthEvent || (exports.AuthEvent = AuthEvent = {}));
|
14
|
+
//# sourceMappingURL=auth.event.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"auth.event.js","sourceRoot":"","sources":["../../src/auth/auth.event.ts"],"names":[],"mappings":";;;AAKA,IAAY,SAmCX;AAnCD,WAAY,SAAS;IAIpB,8BAAiB,CAAA;IAKjB,8BAAiB,CAAA;IAKjB,gCAAmB,CAAA;IAKnB,oCAAuB,CAAA;IAKvB,sCAAyB,CAAA;IAKzB,gCAAmB,CAAA;IAKnB,oCAAuB,CAAA;AACxB,CAAC,EAnCW,SAAS,yBAAT,SAAS,QAmCpB"}
|
@@ -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("./auth.event"), exports);
|
18
|
+
__exportStar(require("./password.dto"), exports);
|
19
|
+
__exportStar(require("./sign.dto"), exports);
|
20
|
+
__exportStar(require("./verify.dto"), exports);
|
21
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,iDAA+B;AAC/B,6CAA2B;AAC3B,+CAA6B"}
|
@@ -0,0 +1,44 @@
|
|
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.PasswordResetDto = exports.PasswordForgottenDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class PasswordForgottenDto {
|
15
|
+
email;
|
16
|
+
}
|
17
|
+
exports.PasswordForgottenDto = PasswordForgottenDto;
|
18
|
+
__decorate([
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
20
|
+
(0, class_validator_1.IsEmail)(),
|
21
|
+
__metadata("design:type", String)
|
22
|
+
], PasswordForgottenDto.prototype, "email", void 0);
|
23
|
+
class PasswordResetDto {
|
24
|
+
password;
|
25
|
+
email;
|
26
|
+
token;
|
27
|
+
}
|
28
|
+
exports.PasswordResetDto = PasswordResetDto;
|
29
|
+
__decorate([
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
31
|
+
(0, class_validator_1.IsString)(),
|
32
|
+
__metadata("design:type", String)
|
33
|
+
], PasswordResetDto.prototype, "password", void 0);
|
34
|
+
__decorate([
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
36
|
+
(0, class_validator_1.IsEmail)(),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], PasswordResetDto.prototype, "email", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, class_validator_1.IsNotEmpty)(),
|
41
|
+
(0, class_validator_1.IsString)(),
|
42
|
+
__metadata("design:type", String)
|
43
|
+
], PasswordResetDto.prototype, "token", void 0);
|
44
|
+
//# sourceMappingURL=password.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"password.dto.js","sourceRoot":"","sources":["../../src/auth/password.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAgE;AAOhE,MAAa,oBAAoB;IAGhC,KAAK,CAAS;CACd;AAJD,oDAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;mDACI;AAQf,MAAa,gBAAgB;IAI5B,QAAQ,CAAS;IAIjB,KAAK,CAAS;IAId,KAAK,CAAS;CACd;AAbD,4CAaC;AATA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;+CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;+CACG"}
|
@@ -0,0 +1,54 @@
|
|
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.SignupDto = exports.SigninDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class SigninDto {
|
15
|
+
email;
|
16
|
+
password;
|
17
|
+
device;
|
18
|
+
}
|
19
|
+
exports.SigninDto = SigninDto;
|
20
|
+
__decorate([
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
22
|
+
(0, class_validator_1.IsEmail)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], SigninDto.prototype, "email", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
27
|
+
(0, class_validator_1.IsString)(),
|
28
|
+
__metadata("design:type", String)
|
29
|
+
], SigninDto.prototype, "password", void 0);
|
30
|
+
__decorate([
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
32
|
+
__metadata("design:type", Object)
|
33
|
+
], SigninDto.prototype, "device", void 0);
|
34
|
+
class SignupDto {
|
35
|
+
email;
|
36
|
+
token;
|
37
|
+
device;
|
38
|
+
}
|
39
|
+
exports.SignupDto = SignupDto;
|
40
|
+
__decorate([
|
41
|
+
(0, class_validator_1.IsNotEmpty)(),
|
42
|
+
(0, class_validator_1.IsEmail)(),
|
43
|
+
__metadata("design:type", String)
|
44
|
+
], SignupDto.prototype, "email", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, class_validator_1.IsNotEmpty)(),
|
47
|
+
(0, class_validator_1.IsString)(),
|
48
|
+
__metadata("design:type", String)
|
49
|
+
], SignupDto.prototype, "token", void 0);
|
50
|
+
__decorate([
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
52
|
+
__metadata("design:type", Object)
|
53
|
+
], SignupDto.prototype, "device", void 0);
|
54
|
+
//# sourceMappingURL=sign.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sign.dto.js","sourceRoot":"","sources":["../../src/auth/sign.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoF;AAQpF,MAAa,SAAS;IAIrB,KAAK,CAAS;IAId,QAAQ,CAAS;IAGjB,MAAM,CAAsB;CAC5B;AAZD,8BAYC;AARA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACM;AAGjB;IADC,IAAA,4BAAU,GAAE;;yCACe;AAS7B,MAAa,SAAS;IAIrB,KAAK,CAAS;IAId,KAAK,CAAS;IAGd,MAAM,CAAsB;CAC5B;AAZD,8BAYC;AARA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wCACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wCACG;AAGd;IADC,IAAA,4BAAU,GAAE;;yCACe"}
|
@@ -0,0 +1,47 @@
|
|
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.OtpPhoneDto = exports.OtpEmailDto = exports.VerifyEmailDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class VerifyEmailDto {
|
15
|
+
email;
|
16
|
+
url;
|
17
|
+
}
|
18
|
+
exports.VerifyEmailDto = VerifyEmailDto;
|
19
|
+
__decorate([
|
20
|
+
(0, class_validator_1.IsNotEmpty)(),
|
21
|
+
(0, class_validator_1.IsEmail)(),
|
22
|
+
__metadata("design:type", String)
|
23
|
+
], VerifyEmailDto.prototype, "email", void 0);
|
24
|
+
__decorate([
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
26
|
+
(0, class_validator_1.IsString)(),
|
27
|
+
__metadata("design:type", String)
|
28
|
+
], VerifyEmailDto.prototype, "url", void 0);
|
29
|
+
class OtpEmailDto {
|
30
|
+
email;
|
31
|
+
}
|
32
|
+
exports.OtpEmailDto = OtpEmailDto;
|
33
|
+
__decorate([
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
35
|
+
(0, class_validator_1.IsEmail)(),
|
36
|
+
__metadata("design:type", String)
|
37
|
+
], OtpEmailDto.prototype, "email", void 0);
|
38
|
+
class OtpPhoneDto {
|
39
|
+
phone;
|
40
|
+
}
|
41
|
+
exports.OtpPhoneDto = OtpPhoneDto;
|
42
|
+
__decorate([
|
43
|
+
(0, class_validator_1.IsNotEmpty)(),
|
44
|
+
(0, class_validator_1.IsString)(),
|
45
|
+
__metadata("design:type", String)
|
46
|
+
], OtpPhoneDto.prototype, "phone", void 0);
|
47
|
+
//# sourceMappingURL=verify.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"verify.dto.js","sourceRoot":"","sources":["../../src/auth/verify.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4E;AAM5E,MAAa,cAAc;IAI1B,KAAK,CAAS;IAId,GAAG,CAAS;CACZ;AATD,wCASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;6CACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2CACC;AAMb,MAAa,WAAW;IAGvB,KAAK,CAAS;CACd;AAJD,kCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;0CACI;AAMf,MAAa,WAAW;IAGvB,KAAK,CAAS;CACd;AAJD,kCAIC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0CACG"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { Item } from "../item";
|
2
|
+
import { Metric } from "../metric";
|
3
|
+
import { User } from "../user";
|
4
|
+
export declare class Author {
|
5
|
+
id: number;
|
6
|
+
slug: string;
|
7
|
+
name: string;
|
8
|
+
biography: string;
|
9
|
+
imageUrl: string;
|
10
|
+
totalPosts: number;
|
11
|
+
totalQuestions: number;
|
12
|
+
metrics: Metric[];
|
13
|
+
createdBy: User;
|
14
|
+
createdOn: Date;
|
15
|
+
updatedBy: User;
|
16
|
+
updatedOn: Date;
|
17
|
+
constructor(props?: Partial<Author>);
|
18
|
+
static toItemList(data: Author[], key?: 'id' | 'slug'): Item<any>[];
|
19
|
+
}
|
@@ -0,0 +1,98 @@
|
|
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.Author = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const item_1 = require("../item");
|
15
|
+
const metric_1 = require("../metric");
|
16
|
+
const user_1 = require("../user");
|
17
|
+
class Author {
|
18
|
+
id;
|
19
|
+
slug;
|
20
|
+
name;
|
21
|
+
biography;
|
22
|
+
imageUrl;
|
23
|
+
totalPosts;
|
24
|
+
totalQuestions;
|
25
|
+
metrics;
|
26
|
+
createdBy;
|
27
|
+
createdOn;
|
28
|
+
updatedBy;
|
29
|
+
updatedOn;
|
30
|
+
constructor(props) {
|
31
|
+
Object.assign(this, props);
|
32
|
+
}
|
33
|
+
static toItemList(data, key = 'id') {
|
34
|
+
if (!data || data.length === 0)
|
35
|
+
return [];
|
36
|
+
return data.map(i => new item_1.Item({
|
37
|
+
title: i.name,
|
38
|
+
value: i[key]
|
39
|
+
}));
|
40
|
+
}
|
41
|
+
}
|
42
|
+
exports.Author = Author;
|
43
|
+
__decorate([
|
44
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
45
|
+
(0, class_transformer_1.Type)(() => Number),
|
46
|
+
__metadata("design:type", Number)
|
47
|
+
], Author.prototype, "id", void 0);
|
48
|
+
__decorate([
|
49
|
+
(0, class_transformer_1.Expose)(),
|
50
|
+
__metadata("design:type", String)
|
51
|
+
], Author.prototype, "slug", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, class_transformer_1.Expose)(),
|
54
|
+
__metadata("design:type", String)
|
55
|
+
], Author.prototype, "name", void 0);
|
56
|
+
__decorate([
|
57
|
+
(0, class_transformer_1.Expose)(),
|
58
|
+
__metadata("design:type", String)
|
59
|
+
], Author.prototype, "biography", void 0);
|
60
|
+
__decorate([
|
61
|
+
(0, class_transformer_1.Expose)(),
|
62
|
+
__metadata("design:type", String)
|
63
|
+
], Author.prototype, "imageUrl", void 0);
|
64
|
+
__decorate([
|
65
|
+
(0, class_transformer_1.Expose)(),
|
66
|
+
__metadata("design:type", Number)
|
67
|
+
], Author.prototype, "totalPosts", void 0);
|
68
|
+
__decorate([
|
69
|
+
(0, class_transformer_1.Expose)(),
|
70
|
+
__metadata("design:type", Number)
|
71
|
+
], Author.prototype, "totalQuestions", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, class_transformer_1.Expose)(),
|
74
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
75
|
+
(0, class_transformer_1.Transform)(({ obj }) => metric_1.Metric.getByAuthor(obj)),
|
76
|
+
__metadata("design:type", Array)
|
77
|
+
], Author.prototype, "metrics", void 0);
|
78
|
+
__decorate([
|
79
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
80
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
81
|
+
__metadata("design:type", user_1.User)
|
82
|
+
], Author.prototype, "createdBy", void 0);
|
83
|
+
__decorate([
|
84
|
+
(0, class_transformer_1.Expose)(),
|
85
|
+
(0, class_transformer_1.Type)(() => Date),
|
86
|
+
__metadata("design:type", Date)
|
87
|
+
], Author.prototype, "createdOn", void 0);
|
88
|
+
__decorate([
|
89
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
90
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
91
|
+
__metadata("design:type", user_1.User)
|
92
|
+
], Author.prototype, "updatedBy", void 0);
|
93
|
+
__decorate([
|
94
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
95
|
+
(0, class_transformer_1.Type)(() => Date),
|
96
|
+
__metadata("design:type", Date)
|
97
|
+
], Author.prototype, "updatedOn", void 0);
|
98
|
+
//# sourceMappingURL=author.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"author.model.js","sourceRoot":"","sources":["../../src/author/author.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA4D;AAC5D,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAE/B,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAKb,IAAI,CAAS;IAGb,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAKjB,UAAU,CAAS;IAGnB,cAAc,CAAS;IAUvB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAc,EAAE,MAAgB,IAAI;QACrD,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAG,CAAC;YAAE,OAAO,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,WAAI,CAAC;YAC7B,KAAK,EAAE,CAAC,CAAC,IAAI;YACb,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AA3ED,wBA2EC;AAvEA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;kCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;oCACI;AAKb;IADC,IAAA,0BAAM,GAAE;;oCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAKjB;IADC,IAAA,0BAAM,GAAE;;0CACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;8CACc;AAUvB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;IAClB,IAAA,6BAAS,EAAC,CAAC,EAAC,GAAG,EAAC,EAAE,EAAE,CAAC,eAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;;uCAC5B;AAMlB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;yCAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;yCAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.AuthorSort = void 0;
|
4
|
+
var AuthorSort;
|
5
|
+
(function (AuthorSort) {
|
6
|
+
AuthorSort["Name"] = "name";
|
7
|
+
AuthorSort["NameDescending"] = "name_descending";
|
8
|
+
AuthorSort["Publications"] = "publications";
|
9
|
+
AuthorSort["Popularity"] = "popularity";
|
10
|
+
})(AuthorSort || (exports.AuthorSort = AuthorSort = {}));
|
11
|
+
//# sourceMappingURL=author.sort.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"author.sort.js","sourceRoot":"","sources":["../../src/author/author.sort.ts"],"names":[],"mappings":";;;AAKA,IAAY,UAqBX;AArBD,WAAY,UAAU;IAKrB,2BAAa,CAAA;IAKb,gDAAkC,CAAA;IAKlC,2CAA6B,CAAA;IAK7B,uCAAyB,CAAA;AAC1B,CAAC,EArBW,UAAU,0BAAV,UAAU,QAqBrB"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./author.model"), exports);
|
18
|
+
__exportStar(require("./author.sort"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/author/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,gDAA8B"}
|
@@ -0,0 +1,38 @@
|
|
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.CreateBoostDto = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const class_validator_1 = require("class-validator");
|
15
|
+
class CreateBoostDto {
|
16
|
+
title;
|
17
|
+
startDate;
|
18
|
+
endDate;
|
19
|
+
}
|
20
|
+
exports.CreateBoostDto = CreateBoostDto;
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
23
|
+
(0, class_validator_1.IsString)(),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], CreateBoostDto.prototype, "title", void 0);
|
26
|
+
__decorate([
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
28
|
+
(0, class_validator_1.IsDate)(),
|
29
|
+
(0, class_transformer_1.Type)(() => Date),
|
30
|
+
__metadata("design:type", Date)
|
31
|
+
], CreateBoostDto.prototype, "startDate", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
34
|
+
(0, class_validator_1.IsDate)(),
|
35
|
+
(0, class_transformer_1.Type)(() => Date),
|
36
|
+
__metadata("design:type", Date)
|
37
|
+
], CreateBoostDto.prototype, "endDate", void 0);
|
38
|
+
//# sourceMappingURL=boost.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"boost.dto.js","sourceRoot":"","sources":["../../src/boost/boost.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAyC;AACzC,qDAA+D;AAE/D,MAAa,cAAc;IAI1B,KAAK,CAAS;IAKd,SAAS,CAAO;IAKhB,OAAO,CAAO;CACd;AAfD,wCAeC;AAXA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACG;AAKd;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;iDAAC;AAKhB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;+CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Post } from '../post';
|
2
|
+
import { Metric } from '../metric';
|
3
|
+
import { User } from '../user';
|
4
|
+
export declare class Boost {
|
5
|
+
id: number;
|
6
|
+
title: string;
|
7
|
+
items: Post[];
|
8
|
+
startDate: Date;
|
9
|
+
endDate: Date;
|
10
|
+
metrics: Metric;
|
11
|
+
createdBy: User;
|
12
|
+
createdOn: Date;
|
13
|
+
updatedBy: User;
|
14
|
+
updatedOn: Date;
|
15
|
+
constructor(props?: Partial<Boost>);
|
16
|
+
}
|
@@ -0,0 +1,82 @@
|
|
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.Boost = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const post_1 = require("../post");
|
15
|
+
const metric_1 = require("../metric");
|
16
|
+
const user_1 = require("../user");
|
17
|
+
let Boost = class Boost {
|
18
|
+
id;
|
19
|
+
title;
|
20
|
+
items;
|
21
|
+
startDate;
|
22
|
+
endDate;
|
23
|
+
metrics;
|
24
|
+
createdBy;
|
25
|
+
createdOn;
|
26
|
+
updatedBy;
|
27
|
+
updatedOn;
|
28
|
+
constructor(props) {
|
29
|
+
Object.assign(this, props);
|
30
|
+
}
|
31
|
+
};
|
32
|
+
exports.Boost = Boost;
|
33
|
+
__decorate([
|
34
|
+
(0, class_transformer_1.Expose)(),
|
35
|
+
(0, class_transformer_1.Type)(() => Number),
|
36
|
+
__metadata("design:type", Number)
|
37
|
+
], Boost.prototype, "id", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, class_transformer_1.Expose)(),
|
40
|
+
__metadata("design:type", String)
|
41
|
+
], Boost.prototype, "title", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, class_transformer_1.Expose)(),
|
44
|
+
(0, class_transformer_1.Type)(() => post_1.Post),
|
45
|
+
__metadata("design:type", Array)
|
46
|
+
], Boost.prototype, "items", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, class_transformer_1.Expose)(),
|
49
|
+
(0, class_transformer_1.Type)(() => Date),
|
50
|
+
__metadata("design:type", Date)
|
51
|
+
], Boost.prototype, "startDate", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, class_transformer_1.Expose)(),
|
54
|
+
(0, class_transformer_1.Type)(() => Date),
|
55
|
+
__metadata("design:type", Date)
|
56
|
+
], Boost.prototype, "endDate", void 0);
|
57
|
+
__decorate([
|
58
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
59
|
+
__metadata("design:type", metric_1.Metric)
|
60
|
+
], Boost.prototype, "metrics", void 0);
|
61
|
+
__decorate([
|
62
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
63
|
+
__metadata("design:type", user_1.User)
|
64
|
+
], Boost.prototype, "createdBy", void 0);
|
65
|
+
__decorate([
|
66
|
+
(0, class_transformer_1.Expose)(),
|
67
|
+
(0, class_transformer_1.Type)(() => Date),
|
68
|
+
__metadata("design:type", Date)
|
69
|
+
], Boost.prototype, "createdOn", void 0);
|
70
|
+
__decorate([
|
71
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
72
|
+
__metadata("design:type", user_1.User)
|
73
|
+
], Boost.prototype, "updatedBy", void 0);
|
74
|
+
__decorate([
|
75
|
+
(0, class_transformer_1.Type)(() => Date),
|
76
|
+
__metadata("design:type", Date)
|
77
|
+
], Boost.prototype, "updatedOn", void 0);
|
78
|
+
exports.Boost = Boost = __decorate([
|
79
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
80
|
+
__metadata("design:paramtypes", [Object])
|
81
|
+
], Boost);
|
82
|
+
//# sourceMappingURL=boost.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"boost.model.js","sourceRoot":"","sources":["../../src/boost/boost.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAGxB,IAAM,KAAK,GAAX,MAAM,KAAK;IAIjB,EAAE,CAAS;IAKX,KAAK,CAAS;IAId,KAAK,CAAS;IAMd,SAAS,CAAO;IAIhB,OAAO,CAAO;IAWd,OAAO,CAAS;IAKhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAGhB,SAAS,CAAO;IAEhB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AAtDY,sBAAK;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAKX;IADC,IAAA,0BAAM,GAAE;;oCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;oCACH;AAMd;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACR,IAAI;sCAAC;AAWd;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,eAAM,CAAC;8BACV,eAAM;sCAAC;AAKhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;wCAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;AAGhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;wCAAC;AAGhB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;wCAAC;gBAjDJ,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CAsDjB"}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./boost.model"), exports);
|
18
|
+
__exportStar(require("./boost.dto"), exports);
|
19
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/boost/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,8CAA4B"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { SettingType } from "./brand-setting.type";
|
2
|
+
import { Brand } from "./brand.model";
|
3
|
+
export declare class BrandSetting {
|
4
|
+
id: number;
|
5
|
+
scope: SettingType;
|
6
|
+
name: string;
|
7
|
+
value: string;
|
8
|
+
title: string;
|
9
|
+
description: string;
|
10
|
+
brand: Brand;
|
11
|
+
constructor(props?: Partial<BrandSetting>);
|
12
|
+
}
|