@intelact/bright 0.9.79 → 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/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/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,125 @@
|
|
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.Promotion = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const common_1 = require("../common");
|
15
|
+
const metric_1 = require("../metric");
|
16
|
+
const user_1 = require("../user");
|
17
|
+
class Promotion {
|
18
|
+
id;
|
19
|
+
title;
|
20
|
+
imageUrl;
|
21
|
+
feedUrl;
|
22
|
+
url;
|
23
|
+
status;
|
24
|
+
startDate;
|
25
|
+
endDate;
|
26
|
+
label;
|
27
|
+
metrics;
|
28
|
+
createdBy;
|
29
|
+
createdOn;
|
30
|
+
updatedBy;
|
31
|
+
updatedOn;
|
32
|
+
statusChangedBy;
|
33
|
+
statusChangedOn;
|
34
|
+
publishedBy;
|
35
|
+
publishedOn;
|
36
|
+
constructor(props) {
|
37
|
+
Object.assign(this, props);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
exports.Promotion = Promotion;
|
41
|
+
__decorate([
|
42
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
43
|
+
(0, class_transformer_1.Type)(() => Number),
|
44
|
+
__metadata("design:type", Number)
|
45
|
+
], Promotion.prototype, "id", void 0);
|
46
|
+
__decorate([
|
47
|
+
(0, class_transformer_1.Expose)(),
|
48
|
+
__metadata("design:type", String)
|
49
|
+
], Promotion.prototype, "title", void 0);
|
50
|
+
__decorate([
|
51
|
+
(0, class_transformer_1.Expose)(),
|
52
|
+
__metadata("design:type", String)
|
53
|
+
], Promotion.prototype, "imageUrl", void 0);
|
54
|
+
__decorate([
|
55
|
+
(0, class_transformer_1.Expose)(),
|
56
|
+
__metadata("design:type", String)
|
57
|
+
], Promotion.prototype, "feedUrl", void 0);
|
58
|
+
__decorate([
|
59
|
+
(0, class_transformer_1.Expose)(),
|
60
|
+
__metadata("design:type", String)
|
61
|
+
], Promotion.prototype, "url", void 0);
|
62
|
+
__decorate([
|
63
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
64
|
+
__metadata("design:type", String)
|
65
|
+
], Promotion.prototype, "status", void 0);
|
66
|
+
__decorate([
|
67
|
+
(0, class_transformer_1.Expose)(),
|
68
|
+
(0, class_transformer_1.Type)(() => Date),
|
69
|
+
__metadata("design:type", Date)
|
70
|
+
], Promotion.prototype, "startDate", void 0);
|
71
|
+
__decorate([
|
72
|
+
(0, class_transformer_1.Expose)(),
|
73
|
+
(0, class_transformer_1.Type)(() => Date),
|
74
|
+
__metadata("design:type", Date)
|
75
|
+
], Promotion.prototype, "endDate", void 0);
|
76
|
+
__decorate([
|
77
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
78
|
+
__metadata("design:type", String)
|
79
|
+
], Promotion.prototype, "label", void 0);
|
80
|
+
__decorate([
|
81
|
+
(0, class_transformer_1.Expose)(),
|
82
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
83
|
+
__metadata("design:type", Array)
|
84
|
+
], Promotion.prototype, "metrics", void 0);
|
85
|
+
__decorate([
|
86
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
87
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
88
|
+
__metadata("design:type", user_1.User)
|
89
|
+
], Promotion.prototype, "createdBy", void 0);
|
90
|
+
__decorate([
|
91
|
+
(0, class_transformer_1.Expose)(),
|
92
|
+
(0, class_transformer_1.Type)(() => Date),
|
93
|
+
__metadata("design:type", Date)
|
94
|
+
], Promotion.prototype, "createdOn", void 0);
|
95
|
+
__decorate([
|
96
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
97
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
98
|
+
__metadata("design:type", user_1.User)
|
99
|
+
], Promotion.prototype, "updatedBy", void 0);
|
100
|
+
__decorate([
|
101
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
102
|
+
(0, class_transformer_1.Type)(() => Date),
|
103
|
+
__metadata("design:type", Date)
|
104
|
+
], Promotion.prototype, "updatedOn", void 0);
|
105
|
+
__decorate([
|
106
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
107
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
108
|
+
__metadata("design:type", user_1.User)
|
109
|
+
], Promotion.prototype, "statusChangedBy", void 0);
|
110
|
+
__decorate([
|
111
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
112
|
+
(0, class_transformer_1.Type)(() => Date),
|
113
|
+
__metadata("design:type", Date)
|
114
|
+
], Promotion.prototype, "statusChangedOn", void 0);
|
115
|
+
__decorate([
|
116
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
117
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
118
|
+
__metadata("design:type", user_1.User)
|
119
|
+
], Promotion.prototype, "publishedBy", void 0);
|
120
|
+
__decorate([
|
121
|
+
(0, class_transformer_1.Expose)(),
|
122
|
+
(0, class_transformer_1.Type)(() => Date),
|
123
|
+
__metadata("design:type", Date)
|
124
|
+
], Promotion.prototype, "publishedOn", void 0);
|
125
|
+
//# sourceMappingURL=promotion.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"promotion.model.js","sourceRoot":"","sources":["../../src/promotion/promotion.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,sCAAoD;AACpD,sCAAmC;AACnC,kCAA+B;AAG/B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,KAAK,CAAS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2 = 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("./publisher.dto"), exports);
|
18
|
+
__exportStar(require("./publisher.enum"), exports);
|
19
|
+
__exportStar(require("./publisher.model"), exports);
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/publisher/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC"}
|
@@ -0,0 +1,39 @@
|
|
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.PublisherPostTypesDto = exports.InvitePublisherDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
const post_1 = require("../post");
|
15
|
+
class InvitePublisherDto {
|
16
|
+
email;
|
17
|
+
postTypes;
|
18
|
+
}
|
19
|
+
exports.InvitePublisherDto = InvitePublisherDto;
|
20
|
+
__decorate([
|
21
|
+
(0, class_validator_1.IsNotEmpty)(),
|
22
|
+
(0, class_validator_1.IsEmail)(),
|
23
|
+
__metadata("design:type", String)
|
24
|
+
], InvitePublisherDto.prototype, "email", void 0);
|
25
|
+
__decorate([
|
26
|
+
(0, class_validator_1.IsNotEmpty)(),
|
27
|
+
(0, class_validator_1.IsEnum)(post_1.PostType, { each: true }),
|
28
|
+
__metadata("design:type", Array)
|
29
|
+
], InvitePublisherDto.prototype, "postTypes", void 0);
|
30
|
+
class PublisherPostTypesDto {
|
31
|
+
postTypes;
|
32
|
+
}
|
33
|
+
exports.PublisherPostTypesDto = PublisherPostTypesDto;
|
34
|
+
__decorate([
|
35
|
+
(0, class_validator_1.IsNotEmpty)(),
|
36
|
+
(0, class_validator_1.IsEnum)(post_1.PostType, { each: true }),
|
37
|
+
__metadata("design:type", Array)
|
38
|
+
], PublisherPostTypesDto.prototype, "postTypes", void 0);
|
39
|
+
//# sourceMappingURL=publisher.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publisher.dto.js","sourceRoot":"","sources":["../../src/publisher/publisher.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8D;AAC9D,kCAAmC;AAGnC,MAAa,kBAAkB;IAI9B,KAAK,CAAS;IAId,SAAS,CAAa;CACtB;AATD,gDASC;AALA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;iDACI;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;qDACX;AAGvB,MAAa,qBAAqB;IAIjC,SAAS,CAAa;CACtB;AALD,sDAKC;AADA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAM,EAAC,eAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wDACX"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.PublisherSortType = void 0;
|
4
|
+
var PublisherSortType;
|
5
|
+
(function (PublisherSortType) {
|
6
|
+
PublisherSortType["Name"] = "name";
|
7
|
+
PublisherSortType["RegistrationDate"] = "regdate";
|
8
|
+
PublisherSortType["Users"] = "users";
|
9
|
+
PublisherSortType["Publications"] = "publications";
|
10
|
+
PublisherSortType["Popularity"] = "popularity";
|
11
|
+
})(PublisherSortType || (exports.PublisherSortType = PublisherSortType = {}));
|
12
|
+
//# sourceMappingURL=publisher.enum.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publisher.enum.js","sourceRoot":"","sources":["../../src/publisher/publisher.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBA0BX;AA1BD,WAAY,iBAAiB;IAK5B,kCAAa,CAAA;IAKb,iDAA4B,CAAA;IAK5B,oCAAe,CAAA;IAKf,kDAA6B,CAAA;IAK7B,8CAAyB,CAAA;AAC1B,CAAC,EA1BW,iBAAiB,iCAAjB,iBAAiB,QA0B5B"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { AccountStatus } from '../security';
|
2
|
+
import { PostType } from '../post';
|
3
|
+
import { Metric } from '../metric';
|
4
|
+
import { User } from '../user';
|
5
|
+
export declare class Publisher {
|
6
|
+
id: number;
|
7
|
+
name: string;
|
8
|
+
slogan: string;
|
9
|
+
description: string;
|
10
|
+
url: string;
|
11
|
+
logo: string;
|
12
|
+
status: AccountStatus;
|
13
|
+
allowedPostTypes: PostType[];
|
14
|
+
publicVisibility: boolean;
|
15
|
+
metrics: Metric[];
|
16
|
+
createdBy: User;
|
17
|
+
createdOn: Date;
|
18
|
+
updatedBy: User;
|
19
|
+
updatedOn: Date;
|
20
|
+
statusChangedBy: User;
|
21
|
+
statusChangedOn: Date;
|
22
|
+
invitedBy: User;
|
23
|
+
invitedOn: Date;
|
24
|
+
constructor(props?: Partial<Publisher>);
|
25
|
+
isActive(): boolean;
|
26
|
+
isDisabled(): boolean;
|
27
|
+
isClosed(): boolean;
|
28
|
+
hasAuthorizedType(type: PostType): boolean;
|
29
|
+
}
|
@@ -0,0 +1,136 @@
|
|
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.Publisher = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const security_1 = require("../security");
|
15
|
+
const metric_1 = require("../metric");
|
16
|
+
const user_1 = require("../user");
|
17
|
+
class Publisher {
|
18
|
+
id;
|
19
|
+
name;
|
20
|
+
slogan;
|
21
|
+
description;
|
22
|
+
url;
|
23
|
+
logo;
|
24
|
+
status;
|
25
|
+
allowedPostTypes;
|
26
|
+
publicVisibility;
|
27
|
+
metrics;
|
28
|
+
createdBy;
|
29
|
+
createdOn;
|
30
|
+
updatedBy;
|
31
|
+
updatedOn;
|
32
|
+
statusChangedBy;
|
33
|
+
statusChangedOn;
|
34
|
+
invitedBy;
|
35
|
+
invitedOn;
|
36
|
+
constructor(props) {
|
37
|
+
Object.assign(this, props);
|
38
|
+
}
|
39
|
+
isActive() {
|
40
|
+
return this.status === security_1.AccountStatus.Active;
|
41
|
+
}
|
42
|
+
isDisabled() {
|
43
|
+
return this.status === security_1.AccountStatus.Disabled;
|
44
|
+
}
|
45
|
+
isClosed() {
|
46
|
+
return this.status === security_1.AccountStatus.Closed;
|
47
|
+
}
|
48
|
+
hasAuthorizedType(type) {
|
49
|
+
return this?.allowedPostTypes?.includes(type);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
exports.Publisher = Publisher;
|
53
|
+
__decorate([
|
54
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
55
|
+
(0, class_transformer_1.Type)(() => Number),
|
56
|
+
__metadata("design:type", Number)
|
57
|
+
], Publisher.prototype, "id", void 0);
|
58
|
+
__decorate([
|
59
|
+
(0, class_transformer_1.Expose)(),
|
60
|
+
__metadata("design:type", String)
|
61
|
+
], Publisher.prototype, "name", void 0);
|
62
|
+
__decorate([
|
63
|
+
(0, class_transformer_1.Expose)(),
|
64
|
+
__metadata("design:type", String)
|
65
|
+
], Publisher.prototype, "slogan", void 0);
|
66
|
+
__decorate([
|
67
|
+
(0, class_transformer_1.Expose)(),
|
68
|
+
__metadata("design:type", String)
|
69
|
+
], Publisher.prototype, "description", void 0);
|
70
|
+
__decorate([
|
71
|
+
(0, class_transformer_1.Expose)(),
|
72
|
+
__metadata("design:type", String)
|
73
|
+
], Publisher.prototype, "url", void 0);
|
74
|
+
__decorate([
|
75
|
+
(0, class_transformer_1.Expose)(),
|
76
|
+
__metadata("design:type", String)
|
77
|
+
], Publisher.prototype, "logo", void 0);
|
78
|
+
__decorate([
|
79
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
80
|
+
__metadata("design:type", String)
|
81
|
+
], Publisher.prototype, "status", void 0);
|
82
|
+
__decorate([
|
83
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
84
|
+
__metadata("design:type", Array)
|
85
|
+
], Publisher.prototype, "allowedPostTypes", void 0);
|
86
|
+
__decorate([
|
87
|
+
(0, class_transformer_1.Expose)(),
|
88
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
89
|
+
__metadata("design:type", Boolean)
|
90
|
+
], Publisher.prototype, "publicVisibility", void 0);
|
91
|
+
__decorate([
|
92
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
93
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
94
|
+
__metadata("design:type", Array)
|
95
|
+
], Publisher.prototype, "metrics", void 0);
|
96
|
+
__decorate([
|
97
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
98
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
99
|
+
__metadata("design:type", user_1.User)
|
100
|
+
], Publisher.prototype, "createdBy", void 0);
|
101
|
+
__decorate([
|
102
|
+
(0, class_transformer_1.Expose)(),
|
103
|
+
(0, class_transformer_1.Type)(() => Date),
|
104
|
+
__metadata("design:type", Date)
|
105
|
+
], Publisher.prototype, "createdOn", void 0);
|
106
|
+
__decorate([
|
107
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
108
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
109
|
+
__metadata("design:type", user_1.User)
|
110
|
+
], Publisher.prototype, "updatedBy", void 0);
|
111
|
+
__decorate([
|
112
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
113
|
+
(0, class_transformer_1.Type)(() => Date),
|
114
|
+
__metadata("design:type", Date)
|
115
|
+
], Publisher.prototype, "updatedOn", void 0);
|
116
|
+
__decorate([
|
117
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
118
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
119
|
+
__metadata("design:type", user_1.User)
|
120
|
+
], Publisher.prototype, "statusChangedBy", void 0);
|
121
|
+
__decorate([
|
122
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
123
|
+
(0, class_transformer_1.Type)(() => Date),
|
124
|
+
__metadata("design:type", Date)
|
125
|
+
], Publisher.prototype, "statusChangedOn", void 0);
|
126
|
+
__decorate([
|
127
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
128
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
129
|
+
__metadata("design:type", user_1.User)
|
130
|
+
], Publisher.prototype, "invitedBy", void 0);
|
131
|
+
__decorate([
|
132
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
133
|
+
(0, class_transformer_1.Type)(() => Date),
|
134
|
+
__metadata("design:type", Date)
|
135
|
+
], Publisher.prototype, "invitedOn", void 0);
|
136
|
+
//# sourceMappingURL=publisher.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publisher.model.js","sourceRoot":"","sources":["../../src/publisher/publisher.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,0CAA4C;AAE5C,sCAAmC;AACnC,kCAA+B;AAG/B,MAAa,SAAS;IAIrB,EAAE,CAAS;IAKX,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,GAAG,CAAS;IAGZ,IAAI,CAAS;IAKb,MAAM,CAAgB;IAGtB,gBAAgB,CAAa;IAI7B,gBAAgB,CAAU;IAW1B,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,eAAe,CAAO;IAItB,eAAe,CAAO;IAItB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAA0B;QACrC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAED,QAAQ;QACP,OAAO,I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AI,CAAC;8BACN,WAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACA,WAAI;kDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;kDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACN,WAAI;4CAAC;AAIhB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACN,IAAI;4CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Author } from '../author';
|
2
|
+
import { User } from '../user';
|
3
|
+
import { StatusType } from '../common';
|
4
|
+
import { Question } from './question.model';
|
5
|
+
export declare class QuestionComment {
|
6
|
+
id: number;
|
7
|
+
author: Author;
|
8
|
+
question: Question;
|
9
|
+
comment: string;
|
10
|
+
status: StatusType;
|
11
|
+
createdBy: User;
|
12
|
+
createdOn: Date;
|
13
|
+
updatedBy: User;
|
14
|
+
updatedOn: Date;
|
15
|
+
statusChangedBy: User;
|
16
|
+
statusChangedOn: Date;
|
17
|
+
publishedBy: User;
|
18
|
+
publishedOn: Date;
|
19
|
+
constructor(props?: Partial<QuestionComment>);
|
20
|
+
}
|
@@ -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.QuestionComment = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const author_1 = require("../author");
|
15
|
+
const user_1 = require("../user");
|
16
|
+
const common_1 = require("../common");
|
17
|
+
const question_model_1 = require("./question.model");
|
18
|
+
class QuestionComment {
|
19
|
+
id;
|
20
|
+
author;
|
21
|
+
question;
|
22
|
+
comment;
|
23
|
+
status;
|
24
|
+
createdBy;
|
25
|
+
createdOn;
|
26
|
+
updatedBy;
|
27
|
+
updatedOn;
|
28
|
+
statusChangedBy;
|
29
|
+
statusChangedOn;
|
30
|
+
publishedBy;
|
31
|
+
publishedOn;
|
32
|
+
constructor(props) {
|
33
|
+
Object.assign(this, props);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
exports.QuestionComment = QuestionComment;
|
37
|
+
__decorate([
|
38
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
39
|
+
(0, class_transformer_1.Type)(() => Number),
|
40
|
+
__metadata("design:type", Number)
|
41
|
+
], QuestionComment.prototype, "id", void 0);
|
42
|
+
__decorate([
|
43
|
+
(0, class_transformer_1.Expose)(),
|
44
|
+
(0, class_transformer_1.Type)(() => author_1.Author),
|
45
|
+
__metadata("design:type", author_1.Author)
|
46
|
+
], QuestionComment.prototype, "author", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, class_transformer_1.Expose)(),
|
49
|
+
__metadata("design:type", question_model_1.Question)
|
50
|
+
], QuestionComment.prototype, "question", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, class_transformer_1.Expose)(),
|
53
|
+
__metadata("design:type", String)
|
54
|
+
], QuestionComment.prototype, "comment", void 0);
|
55
|
+
__decorate([
|
56
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
57
|
+
__metadata("design:type", String)
|
58
|
+
], QuestionComment.prototype, "status", void 0);
|
59
|
+
__decorate([
|
60
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
61
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
62
|
+
__metadata("design:type", user_1.User)
|
63
|
+
], QuestionComment.prototype, "createdBy", void 0);
|
64
|
+
__decorate([
|
65
|
+
(0, class_transformer_1.Expose)(),
|
66
|
+
(0, class_transformer_1.Type)(() => Date),
|
67
|
+
__metadata("design:type", Date)
|
68
|
+
], QuestionComment.prototype, "createdOn", void 0);
|
69
|
+
__decorate([
|
70
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
71
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
72
|
+
__metadata("design:type", user_1.User)
|
73
|
+
], QuestionComment.prototype, "updatedBy", void 0);
|
74
|
+
__decorate([
|
75
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
76
|
+
(0, class_transformer_1.Type)(() => Date),
|
77
|
+
__metadata("design:type", Date)
|
78
|
+
], QuestionComment.prototype, "updatedOn", void 0);
|
79
|
+
__decorate([
|
80
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
81
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
82
|
+
__metadata("design:type", user_1.User)
|
83
|
+
], QuestionComment.prototype, "statusChangedBy", void 0);
|
84
|
+
__decorate([
|
85
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
86
|
+
(0, class_transformer_1.Type)(() => Date),
|
87
|
+
__metadata("design:type", Date)
|
88
|
+
], QuestionComment.prototype, "statusChangedOn", void 0);
|
89
|
+
__decorate([
|
90
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
91
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
92
|
+
__metadata("design:type", user_1.User)
|
93
|
+
], QuestionComment.prototype, "publishedBy", void 0);
|
94
|
+
__decorate([
|
95
|
+
(0, class_transformer_1.Expose)(),
|
96
|
+
(0, class_transformer_1.Type)(() => Date),
|
97
|
+
__metadata("design:type", Date)
|
98
|
+
], QuestionComment.prototype, "publishedOn", void 0);
|
99
|
+
//# sourceMappingURL=comment.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"comment.model.js","sourceRoot":"","sources":["../../src/question/comment.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,sCAAmC;AACnC,kCAA+B;AAC/B,sCAAuC;AACvC,qDAA4C;AAG5C,MAAa,eAAe;IAI3B,EAAE,CAAS;IAUX,MAAM,CAAS;IAGf,QAAQ,CAAW;IAGnB,OAAO,CAAS;IAKhB,MAAM,CAAa;IAMnB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,eAAe,CAAO;IAItB,e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AAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACA,WAAI;wDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACA,IAAI;wDAAC;AAItB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;8BACJ,WAAI;oDAAC;AAIlB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,IAAI,CAAC;8BACJ,IAAI;oDAAC"}
|
@@ -0,0 +1,20 @@
|
|
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("./comment.model"), exports);
|
18
|
+
__exportStar(require("./question.model"), exports);
|
19
|
+
__exportStar(require("./question.dto"), exports);
|
20
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/question/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,mDAAiC;AACjC,iDAA+B"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class AskQuestionDto {
|
2
|
+
slug: string;
|
3
|
+
topics: string[];
|
4
|
+
categories: string[];
|
5
|
+
title: string;
|
6
|
+
question: string;
|
7
|
+
name: string;
|
8
|
+
email: string;
|
9
|
+
phone: string;
|
10
|
+
private: boolean;
|
11
|
+
}
|
12
|
+
export declare class QuestionCommentDto {
|
13
|
+
content: string;
|
14
|
+
authorId: number;
|
15
|
+
}
|