@intelact/bright 0.9.79 → 0.9.81
Sign up to get free protection for your applications and to get access to all the features.
- 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 +3 -0
- package/lib/metric/index.js +20 -0
- package/lib/metric/index.js.map +1 -0
- package/lib/metric/metric.interface.d.ts +11 -0
- package/lib/metric/metric.interface.js +3 -0
- package/lib/metric/metric.interface.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,58 @@
|
|
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.BrandSetting = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const brand_setting_type_1 = require("./brand-setting.type");
|
15
|
+
const brand_model_1 = require("./brand.model");
|
16
|
+
class BrandSetting {
|
17
|
+
id;
|
18
|
+
scope;
|
19
|
+
name;
|
20
|
+
value;
|
21
|
+
title;
|
22
|
+
description;
|
23
|
+
brand;
|
24
|
+
constructor(props) {
|
25
|
+
Object.assign(this, props);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
exports.BrandSetting = BrandSetting;
|
29
|
+
__decorate([
|
30
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
31
|
+
__metadata("design:type", Number)
|
32
|
+
], BrandSetting.prototype, "id", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, class_transformer_1.Expose)(),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], BrandSetting.prototype, "scope", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, class_transformer_1.Expose)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], BrandSetting.prototype, "name", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, class_transformer_1.Expose)(),
|
43
|
+
__metadata("design:type", String)
|
44
|
+
], BrandSetting.prototype, "value", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, class_transformer_1.Expose)(),
|
47
|
+
__metadata("design:type", String)
|
48
|
+
], BrandSetting.prototype, "title", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
51
|
+
__metadata("design:type", String)
|
52
|
+
], BrandSetting.prototype, "description", void 0);
|
53
|
+
__decorate([
|
54
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
55
|
+
(0, class_transformer_1.Type)(() => brand_model_1.Brand),
|
56
|
+
__metadata("design:type", brand_model_1.Brand)
|
57
|
+
], BrandSetting.prototype, "brand", void 0);
|
58
|
+
//# sourceMappingURL=brand-setting.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"brand-setting.model.js","sourceRoot":"","sources":["../../src/brand/brand-setting.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,6DAAmD;AACnD,+CAAsC;AAGtC,MAAa,YAAY;IAGxB,EAAE,CAAS;IAGX,KAAK,CAAc;IAGnB,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,WAAW,CAAS;IAIpB,KAAK,CAAQ;IAEb,YAAY,KAA6B;QACxC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA3BD,oCA2BC;AAxBA;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;wCACnB;AAGX;IADC,IAAA,0BAAM,GAAE;;2CACU;AAGnB;IADC,IAAA,0BAAM,GAAE;;0CACI;AAGb;IADC,IAAA,0BAAM,GAAE;;2CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;2CACK;AAGd;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;iDACV;AAIpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,mBAAK,CAAC;8BACX,mBAAK;2CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SettingType = void 0;
|
4
|
+
var SettingType;
|
5
|
+
(function (SettingType) {
|
6
|
+
SettingType["Config"] = "CONFIG";
|
7
|
+
SettingType["Legal"] = "LEGAL";
|
8
|
+
SettingType["Social"] = "SOCIAL";
|
9
|
+
SettingType["Link"] = "LINK";
|
10
|
+
SettingType["Auth"] = "AUTH";
|
11
|
+
SettingType["Mail"] = "MAIL";
|
12
|
+
SettingType["Provider"] = "PROVIDER";
|
13
|
+
SettingType["Other"] = "OTHER";
|
14
|
+
})(SettingType || (exports.SettingType = SettingType = {}));
|
15
|
+
//# sourceMappingURL=brand-setting.type.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"brand-setting.type.js","sourceRoot":"","sources":["../../src/brand/brand-setting.type.ts"],"names":[],"mappings":";;;AAIA,IAAY,WAyCX;AAzCD,WAAY,WAAW;IAKtB,gCAAiB,CAAA;IAKjB,8BAAe,CAAA;IAKf,gCAAiB,CAAA;IAKjB,4BAAa,CAAA;IAKb,4BAAa,CAAA;IAKb,4BAAa,CAAA;IAKb,oCAAqB,CAAA;IAKrB,8BAAe,CAAA;AAChB,CAAC,EAzCW,WAAW,2BAAX,WAAW,QAyCtB"}
|
@@ -0,0 +1,41 @@
|
|
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.BrandSettingDto = void 0;
|
13
|
+
const class_validator_1 = require("class-validator");
|
14
|
+
class BrandSettingDto {
|
15
|
+
name;
|
16
|
+
value;
|
17
|
+
title;
|
18
|
+
description;
|
19
|
+
}
|
20
|
+
exports.BrandSettingDto = BrandSettingDto;
|
21
|
+
__decorate([
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
23
|
+
(0, class_validator_1.IsString)(),
|
24
|
+
__metadata("design:type", String)
|
25
|
+
], BrandSettingDto.prototype, "name", void 0);
|
26
|
+
__decorate([
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
28
|
+
(0, class_validator_1.IsString)(),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], BrandSettingDto.prototype, "value", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
33
|
+
(0, class_validator_1.IsString)(),
|
34
|
+
__metadata("design:type", String)
|
35
|
+
], BrandSettingDto.prototype, "title", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
38
|
+
(0, class_validator_1.IsString)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], BrandSettingDto.prototype, "description", void 0);
|
41
|
+
//# sourceMappingURL=brand.dto.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"brand.dto.js","sourceRoot":"","sources":["../../src/brand/brand.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAmE;AAEnE,MAAa,eAAe;IAI3B,IAAI,CAAS;IAIb,KAAK,CAAS;IAId,KAAK,CAAS;IAId,WAAW,CAAS;CACpB;AAjBD,0CAiBC;AAbA;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACE;AAIb;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8CACG;AAId;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACS"}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { ModuleType } from '../common';
|
2
|
+
import { PostType } from '../post';
|
3
|
+
import { AccountStatus } from '../security';
|
4
|
+
import { Publisher } from '../publisher';
|
5
|
+
import { Link } from '../link';
|
6
|
+
import { BrandSetting } from './brand-setting.model';
|
7
|
+
export declare class Brand {
|
8
|
+
id: number;
|
9
|
+
shortname: string;
|
10
|
+
modules: ModuleType[];
|
11
|
+
contentTypes: PostType[];
|
12
|
+
name: string;
|
13
|
+
slogan: string;
|
14
|
+
url: string;
|
15
|
+
email: string;
|
16
|
+
description: string;
|
17
|
+
logo: string;
|
18
|
+
status: AccountStatus;
|
19
|
+
language: string;
|
20
|
+
maintaince: boolean;
|
21
|
+
apiVersion: string;
|
22
|
+
appUpgrade: boolean;
|
23
|
+
settings: BrandSetting[];
|
24
|
+
publishers: Publisher[];
|
25
|
+
constructor(props?: Partial<Brand>);
|
26
|
+
getMobileStoreLinks(): Link[];
|
27
|
+
getSocialLinks(): Link[];
|
28
|
+
getLegalLinks(): Link[];
|
29
|
+
getExternImageProviders(): string[];
|
30
|
+
getExternVideoProviders(): string[];
|
31
|
+
}
|
@@ -0,0 +1,201 @@
|
|
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.Brand = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const security_1 = require("../security");
|
15
|
+
const brand_setting_type_1 = require("./brand-setting.type");
|
16
|
+
const publisher_1 = require("../publisher");
|
17
|
+
const link_1 = require("../link");
|
18
|
+
const brand_setting_model_1 = require("./brand-setting.model");
|
19
|
+
class Brand {
|
20
|
+
id;
|
21
|
+
shortname;
|
22
|
+
modules;
|
23
|
+
contentTypes;
|
24
|
+
name;
|
25
|
+
slogan;
|
26
|
+
url;
|
27
|
+
email;
|
28
|
+
description;
|
29
|
+
logo;
|
30
|
+
status;
|
31
|
+
language;
|
32
|
+
maintaince;
|
33
|
+
apiVersion;
|
34
|
+
appUpgrade;
|
35
|
+
settings;
|
36
|
+
publishers;
|
37
|
+
constructor(props) {
|
38
|
+
Object.assign(this, props);
|
39
|
+
}
|
40
|
+
getMobileStoreLinks() {
|
41
|
+
if (!this.settings) {
|
42
|
+
return;
|
43
|
+
}
|
44
|
+
const def = {
|
45
|
+
LINK_PLAY_STORE_URL: ['fab', 'google-play'],
|
46
|
+
LINK_APPLE_STORE_URL: ['fab', 'app-store'],
|
47
|
+
};
|
48
|
+
return this.settings
|
49
|
+
.filter(i => def[i.name])
|
50
|
+
.map(i => (new link_1.Link({
|
51
|
+
id: i.name,
|
52
|
+
title: i.title,
|
53
|
+
href: i.value,
|
54
|
+
icon: def[i.name]
|
55
|
+
})));
|
56
|
+
}
|
57
|
+
getSocialLinks() {
|
58
|
+
if (!this.settings) {
|
59
|
+
return;
|
60
|
+
}
|
61
|
+
const ICON = {
|
62
|
+
SOCIAL_FACEBOOK_URL: ['fab', 'facebook-f'],
|
63
|
+
SOCIAL_INSTAGRAM_URL: ['fab', 'instagram'],
|
64
|
+
SOCIAL_TWITTER_URL: ['fab', 'x-twitter'],
|
65
|
+
SOCIAL_LINKEDIN_URL: ['fab', 'linkedin-in'],
|
66
|
+
};
|
67
|
+
return this.settings
|
68
|
+
.filter(i => i.scope === brand_setting_type_1.SettingType.Social)
|
69
|
+
.map(i => (new link_1.Link({
|
70
|
+
id: i.name,
|
71
|
+
title: i.title,
|
72
|
+
href: i.value,
|
73
|
+
icon: ICON[i.name]
|
74
|
+
})));
|
75
|
+
}
|
76
|
+
getLegalLinks() {
|
77
|
+
if (!this.settings) {
|
78
|
+
return;
|
79
|
+
}
|
80
|
+
return this.settings
|
81
|
+
.filter(i => i.scope === brand_setting_type_1.SettingType.Legal)
|
82
|
+
.map((i) => (new link_1.Link({
|
83
|
+
id: i.name.toLowerCase().replaceAll('_', '-'),
|
84
|
+
title: i.title,
|
85
|
+
url: i.value.replaceAll(this.url, '')
|
86
|
+
})));
|
87
|
+
}
|
88
|
+
getExternImageProviders() {
|
89
|
+
const setting = this.settings.find(i => i.scope === brand_setting_type_1.SettingType.Provider && i.name === 'IMAGE_PROVIDERS');
|
90
|
+
return setting?.value?.length > 0 ? setting.value.split(',') : [];
|
91
|
+
}
|
92
|
+
getExternVideoProviders() {
|
93
|
+
const setting = this.settings.find(i => i.scope === brand_setting_type_1.SettingType.Provider && i.name === 'VIDEO_PROVIDERS');
|
94
|
+
return setting?.value?.length > 0 ? setting.value.split(',') : [];
|
95
|
+
}
|
96
|
+
}
|
97
|
+
exports.Brand = Brand;
|
98
|
+
__decorate([
|
99
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
100
|
+
(0, class_transformer_1.Type)(() => Number),
|
101
|
+
__metadata("design:type", Number)
|
102
|
+
], Brand.prototype, "id", void 0);
|
103
|
+
__decorate([
|
104
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
105
|
+
__metadata("design:type", String)
|
106
|
+
], Brand.prototype, "shortname", void 0);
|
107
|
+
__decorate([
|
108
|
+
(0, class_transformer_1.Expose)(),
|
109
|
+
__metadata("design:type", Array)
|
110
|
+
], Brand.prototype, "modules", void 0);
|
111
|
+
__decorate([
|
112
|
+
(0, class_transformer_1.Expose)(),
|
113
|
+
__metadata("design:type", Array)
|
114
|
+
], Brand.prototype, "contentTypes", void 0);
|
115
|
+
__decorate([
|
116
|
+
(0, class_transformer_1.Expose)(),
|
117
|
+
__metadata("design:type", String)
|
118
|
+
], Brand.prototype, "name", void 0);
|
119
|
+
__decorate([
|
120
|
+
(0, class_transformer_1.Expose)(),
|
121
|
+
__metadata("design:type", String)
|
122
|
+
], Brand.prototype, "slogan", void 0);
|
123
|
+
__decorate([
|
124
|
+
(0, class_transformer_1.Expose)(),
|
125
|
+
__metadata("design:type", String)
|
126
|
+
], Brand.prototype, "url", void 0);
|
127
|
+
__decorate([
|
128
|
+
(0, class_transformer_1.Expose)(),
|
129
|
+
__metadata("design:type", String)
|
130
|
+
], Brand.prototype, "email", void 0);
|
131
|
+
__decorate([
|
132
|
+
(0, class_transformer_1.Expose)(),
|
133
|
+
__metadata("design:type", String)
|
134
|
+
], Brand.prototype, "description", void 0);
|
135
|
+
__decorate([
|
136
|
+
(0, class_transformer_1.Expose)(),
|
137
|
+
__metadata("design:type", String)
|
138
|
+
], Brand.prototype, "logo", void 0);
|
139
|
+
__decorate([
|
140
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
141
|
+
__metadata("design:type", String)
|
142
|
+
], Brand.prototype, "status", void 0);
|
143
|
+
__decorate([
|
144
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
145
|
+
__metadata("design:type", String)
|
146
|
+
], Brand.prototype, "language", void 0);
|
147
|
+
__decorate([
|
148
|
+
(0, class_transformer_1.Expose)(),
|
149
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
150
|
+
__metadata("design:type", Boolean)
|
151
|
+
], Brand.prototype, "maintaince", void 0);
|
152
|
+
__decorate([
|
153
|
+
(0, class_transformer_1.Expose)(),
|
154
|
+
__metadata("design:type", String)
|
155
|
+
], Brand.prototype, "apiVersion", void 0);
|
156
|
+
__decorate([
|
157
|
+
(0, class_transformer_1.Expose)(),
|
158
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
159
|
+
__metadata("design:type", Boolean)
|
160
|
+
], Brand.prototype, "appUpgrade", void 0);
|
161
|
+
__decorate([
|
162
|
+
(0, class_transformer_1.Expose)(),
|
163
|
+
(0, class_transformer_1.Type)(() => brand_setting_model_1.BrandSetting),
|
164
|
+
__metadata("design:type", Array)
|
165
|
+
], Brand.prototype, "settings", void 0);
|
166
|
+
__decorate([
|
167
|
+
(0, class_transformer_1.Expose)(),
|
168
|
+
(0, class_transformer_1.Type)(() => publisher_1.Publisher),
|
169
|
+
__metadata("design:type", Array)
|
170
|
+
], Brand.prototype, "publishers", void 0);
|
171
|
+
__decorate([
|
172
|
+
(0, class_transformer_1.Expose)(),
|
173
|
+
__metadata("design:type", Function),
|
174
|
+
__metadata("design:paramtypes", []),
|
175
|
+
__metadata("design:returntype", Array)
|
176
|
+
], Brand.prototype, "getMobileStoreLinks", null);
|
177
|
+
__decorate([
|
178
|
+
(0, class_transformer_1.Expose)(),
|
179
|
+
__metadata("design:type", Function),
|
180
|
+
__metadata("design:paramtypes", []),
|
181
|
+
__metadata("design:returntype", Array)
|
182
|
+
], Brand.prototype, "getSocialLinks", null);
|
183
|
+
__decorate([
|
184
|
+
(0, class_transformer_1.Expose)(),
|
185
|
+
__metadata("design:type", Function),
|
186
|
+
__metadata("design:paramtypes", []),
|
187
|
+
__metadata("design:returntype", Array)
|
188
|
+
], Brand.prototype, "getLegalLinks", null);
|
189
|
+
__decorate([
|
190
|
+
(0, class_transformer_1.Expose)(),
|
191
|
+
__metadata("design:type", Function),
|
192
|
+
__metadata("design:paramtypes", []),
|
193
|
+
__metadata("design:returntype", Array)
|
194
|
+
], Brand.prototype, "getExternImageProviders", null);
|
195
|
+
__decorate([
|
196
|
+
(0, class_transformer_1.Expose)(),
|
197
|
+
__metadata("design:type", Function),
|
198
|
+
__metadata("design:paramtypes", []),
|
199
|
+
__metadata("design:returntype", Array)
|
200
|
+
], Brand.prototype, "getExternVideoProviders", null);
|
201
|
+
//# sourceMappingURL=brand.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"brand.model.js","sourceRoot":"","sources":["../../src/brand/brand.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAIjD,0CAA4C;AAC5C,6DAAmD;AACnD,4CAAyC;AACzC,kCAA+B;AAC/B,+DAAqD;AAErD,MAAa,KAAK;IAIjB,EAAE,CAAS;IAWX,SAAS,CAAS;IAMlB,OAAO,CAAe;IAMtB,YAAY,CAAa;IAKzB,IAAI,CAAS;IAGb,MAAM,CAAS;IAGf,GAAG,CAAS;IAMZ,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAKb,MAAM,CAAgB;IAGtB,QAAQ,CAAS;IAIjB,UAAU,CAAU;IAGpB,UAAU,CAAS;IAInB,UAAU,CAAU;IAMpB,QAAQ,CAAiB;IAIzB,UAAU,CAAc;IAExB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IASD,mBAAmB;QAElB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACpB,OAAO;QACR,CAAC;QAMD,MAAM,GAAG,GAA+B;YACvC,mBAAmB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;YAC3C,oBAAoB,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC;SAC1C,CAAC;QAE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 -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("./brand.dto"), exports);
|
18
|
+
__exportStar(require("./brand.model"), exports);
|
19
|
+
__exportStar(require("./brand-setting.type"), exports);
|
20
|
+
__exportStar(require("./brand-setting.model"), exports);
|
21
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/brand/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,gDAA8B;AAC9B,uDAAqC;AACrC,wDAAsC"}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { Item } from "../item";
|
2
|
+
import { Metric } from "../metric";
|
3
|
+
import { User } from "../user";
|
4
|
+
export declare class Category {
|
5
|
+
id: number;
|
6
|
+
title: string;
|
7
|
+
hash: string;
|
8
|
+
description: string;
|
9
|
+
sort: number;
|
10
|
+
questionEnabled: boolean;
|
11
|
+
metrics: Metric[];
|
12
|
+
createdBy: User;
|
13
|
+
createdOn: Date;
|
14
|
+
updatedBy: User;
|
15
|
+
updatedOn: Date;
|
16
|
+
constructor(props?: Partial<Category>);
|
17
|
+
static toItemList(data: Category[], key?: 'id' | 'hash'): Item<any>[];
|
18
|
+
}
|
@@ -0,0 +1,94 @@
|
|
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.Category = 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 Category {
|
18
|
+
id;
|
19
|
+
title;
|
20
|
+
hash;
|
21
|
+
description;
|
22
|
+
sort;
|
23
|
+
questionEnabled;
|
24
|
+
metrics;
|
25
|
+
createdBy;
|
26
|
+
createdOn;
|
27
|
+
updatedBy;
|
28
|
+
updatedOn;
|
29
|
+
constructor(props) {
|
30
|
+
Object.assign(this, props);
|
31
|
+
}
|
32
|
+
static toItemList(data, key = 'id') {
|
33
|
+
if (!data || data.length === 0)
|
34
|
+
return [];
|
35
|
+
return data.map(i => new item_1.Item({
|
36
|
+
title: i.title,
|
37
|
+
value: i[key]
|
38
|
+
}));
|
39
|
+
}
|
40
|
+
}
|
41
|
+
exports.Category = Category;
|
42
|
+
__decorate([
|
43
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
44
|
+
(0, class_transformer_1.Type)(() => Number),
|
45
|
+
__metadata("design:type", Number)
|
46
|
+
], Category.prototype, "id", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, class_transformer_1.Expose)(),
|
49
|
+
__metadata("design:type", String)
|
50
|
+
], Category.prototype, "title", void 0);
|
51
|
+
__decorate([
|
52
|
+
(0, class_transformer_1.Expose)(),
|
53
|
+
__metadata("design:type", String)
|
54
|
+
], Category.prototype, "hash", void 0);
|
55
|
+
__decorate([
|
56
|
+
(0, class_transformer_1.Expose)(),
|
57
|
+
__metadata("design:type", String)
|
58
|
+
], Category.prototype, "description", void 0);
|
59
|
+
__decorate([
|
60
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
61
|
+
(0, class_transformer_1.Type)(() => Number),
|
62
|
+
__metadata("design:type", Number)
|
63
|
+
], Category.prototype, "sort", void 0);
|
64
|
+
__decorate([
|
65
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
66
|
+
(0, class_transformer_1.Type)(() => Boolean),
|
67
|
+
__metadata("design:type", Boolean)
|
68
|
+
], Category.prototype, "questionEnabled", void 0);
|
69
|
+
__decorate([
|
70
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
71
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
72
|
+
__metadata("design:type", Array)
|
73
|
+
], Category.prototype, "metrics", void 0);
|
74
|
+
__decorate([
|
75
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
76
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
77
|
+
__metadata("design:type", user_1.User)
|
78
|
+
], Category.prototype, "createdBy", void 0);
|
79
|
+
__decorate([
|
80
|
+
(0, class_transformer_1.Expose)(),
|
81
|
+
(0, class_transformer_1.Type)(() => Date),
|
82
|
+
__metadata("design:type", Date)
|
83
|
+
], Category.prototype, "createdOn", void 0);
|
84
|
+
__decorate([
|
85
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
86
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
87
|
+
__metadata("design:type", user_1.User)
|
88
|
+
], Category.prototype, "updatedBy", void 0);
|
89
|
+
__decorate([
|
90
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
91
|
+
(0, class_transformer_1.Type)(() => Date),
|
92
|
+
__metadata("design:type", Date)
|
93
|
+
], Category.prototype, "updatedOn", void 0);
|
94
|
+
//# sourceMappingURL=category.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"category.model.js","sourceRoot":"","sources":["../../src/category/category.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,kCAA+B;AAC/B,sCAAmC;AACnC,kCAA+B;AAG/B,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAKX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAMpB,IAAI,CAAS;IAIb,eAAe,CAAU;IAUzB,OAAO,CAAW;IAMlB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,SAAS,CAAO;IAIhB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;IAQD,MAAM,CAAC,UAAU,CAAC,IAAgB,EAAE,MAAgB,IAAI;QACvD,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,KAAK;YACd,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC;SACb,CAAC,CAAC,CAAA;IACJ,CAAC;CACD;AA1ED,4BA0EC;AAtEA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC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from './category.model';
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./category.model"), exports);
|
18
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/category/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { Post } from '../post';
|
2
|
+
import { Publisher } from '../publisher';
|
3
|
+
import { Metric } from '../metric';
|
4
|
+
import { User } from '../user';
|
5
|
+
export declare class Collection {
|
6
|
+
id: number;
|
7
|
+
title: string;
|
8
|
+
items: Post[];
|
9
|
+
metrics: Metric[];
|
10
|
+
createdBy: User;
|
11
|
+
createdOn: Date;
|
12
|
+
updatedBy: User;
|
13
|
+
updatedOn: Date;
|
14
|
+
publisher: Publisher;
|
15
|
+
constructor(props?: Partial<Collection>);
|
16
|
+
}
|
@@ -0,0 +1,77 @@
|
|
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.Collection = void 0;
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
14
|
+
const post_1 = require("../post");
|
15
|
+
const publisher_1 = require("../publisher");
|
16
|
+
const metric_1 = require("../metric");
|
17
|
+
const user_1 = require("../user");
|
18
|
+
class Collection {
|
19
|
+
id;
|
20
|
+
title;
|
21
|
+
items;
|
22
|
+
metrics;
|
23
|
+
createdBy;
|
24
|
+
createdOn;
|
25
|
+
updatedBy;
|
26
|
+
updatedOn;
|
27
|
+
publisher;
|
28
|
+
constructor(props) {
|
29
|
+
Object.assign(this, props);
|
30
|
+
}
|
31
|
+
}
|
32
|
+
exports.Collection = Collection;
|
33
|
+
__decorate([
|
34
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
35
|
+
(0, class_transformer_1.Type)(() => Number),
|
36
|
+
__metadata("design:type", Number)
|
37
|
+
], Collection.prototype, "id", void 0);
|
38
|
+
__decorate([
|
39
|
+
(0, class_transformer_1.Expose)(),
|
40
|
+
__metadata("design:type", String)
|
41
|
+
], Collection.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
|
+
], Collection.prototype, "items", void 0);
|
47
|
+
__decorate([
|
48
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
49
|
+
(0, class_transformer_1.Type)(() => metric_1.Metric),
|
50
|
+
__metadata("design:type", Array)
|
51
|
+
], Collection.prototype, "metrics", void 0);
|
52
|
+
__decorate([
|
53
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
54
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
55
|
+
__metadata("design:type", user_1.User)
|
56
|
+
], Collection.prototype, "createdBy", void 0);
|
57
|
+
__decorate([
|
58
|
+
(0, class_transformer_1.Expose)(),
|
59
|
+
(0, class_transformer_1.Type)(() => Date),
|
60
|
+
__metadata("design:type", Date)
|
61
|
+
], Collection.prototype, "createdOn", void 0);
|
62
|
+
__decorate([
|
63
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
64
|
+
(0, class_transformer_1.Type)(() => user_1.User),
|
65
|
+
__metadata("design:type", user_1.User)
|
66
|
+
], Collection.prototype, "updatedBy", void 0);
|
67
|
+
__decorate([
|
68
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
69
|
+
(0, class_transformer_1.Type)(() => Date),
|
70
|
+
__metadata("design:type", Date)
|
71
|
+
], Collection.prototype, "updatedOn", void 0);
|
72
|
+
__decorate([
|
73
|
+
(0, class_transformer_1.Expose)(),
|
74
|
+
(0, class_transformer_1.Type)(() => publisher_1.Publisher),
|
75
|
+
__metadata("design:type", publisher_1.Publisher)
|
76
|
+
], Collection.prototype, "publisher", void 0);
|
77
|
+
//# sourceMappingURL=collection.model.js.map
|