@intelact/bright 0.8.3 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/models/asset.js +24 -0
- package/lib/models/asset.js.map +1 -1
- package/lib/models/author.d.ts +1 -0
- package/lib/models/author.js +25 -0
- package/lib/models/author.js.map +1 -1
- package/lib/models/boost.js +15 -2
- package/lib/models/boost.js.map +1 -1
- package/lib/models/brand.d.ts +4 -0
- package/lib/models/brand.js +143 -1
- package/lib/models/brand.js.map +1 -1
- package/lib/models/category.js +15 -0
- package/lib/models/category.js.map +1 -1
- package/lib/models/collection.js +6 -0
- package/lib/models/collection.js.map +1 -1
- package/lib/models/feedback.js +31 -0
- package/lib/models/feedback.js.map +1 -1
- package/lib/models/gallery.js +9 -0
- package/lib/models/gallery.js.map +1 -1
- package/lib/models/item.js.map +1 -1
- package/lib/models/link.d.ts +2 -1
- package/lib/models/link.js +7 -4
- package/lib/models/link.js.map +1 -1
- package/lib/models/notification.js +28 -1
- package/lib/models/notification.js.map +1 -1
- package/lib/models/post.js +77 -0
- package/lib/models/post.js.map +1 -1
- package/lib/models/promotion.js +19 -0
- package/lib/models/promotion.js.map +1 -1
- package/lib/models/publisher.js +32 -0
- package/lib/models/publisher.js.map +1 -1
- package/lib/models/question.js +76 -0
- package/lib/models/question.js.map +1 -1
- package/lib/models/quote.js +6 -0
- package/lib/models/quote.js.map +1 -1
- package/lib/models/survey.js +39 -0
- package/lib/models/survey.js.map +1 -1
- package/lib/models/topic.js +15 -0
- package/lib/models/topic.js.map +1 -1
- package/lib/models/user.js +47 -1
- package/lib/models/user.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/lib/models/asset.js
CHANGED
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.Asset = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
+
const enums_1 = require("../enums");
|
14
15
|
class Asset {
|
15
16
|
id;
|
16
17
|
type;
|
@@ -24,7 +25,30 @@ class Asset {
|
|
24
25
|
}
|
25
26
|
exports.Asset = Asset;
|
26
27
|
__decorate([
|
28
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
27
29
|
(0, class_transformer_1.Type)(() => Number),
|
28
30
|
__metadata("design:type", Number)
|
29
31
|
], Asset.prototype, "id", void 0);
|
32
|
+
__decorate([
|
33
|
+
(0, class_transformer_1.Expose)(),
|
34
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], Asset.prototype, "type", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, class_transformer_1.Expose)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], Asset.prototype, "url", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, class_transformer_1.Expose)(),
|
43
|
+
__metadata("design:type", String)
|
44
|
+
], Asset.prototype, "title", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, class_transformer_1.Expose)(),
|
47
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
48
|
+
__metadata("design:type", Array)
|
49
|
+
], Asset.prototype, "tags", void 0);
|
50
|
+
__decorate([
|
51
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
52
|
+
__metadata("design:type", String)
|
53
|
+
], Asset.prototype, "mimeType", void 0);
|
30
54
|
//# sourceMappingURL=asset.js.map
|
package/lib/models/asset.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/models/asset.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"asset.js","sourceRoot":"","sources":["../../src/models/asset.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAqC;AAKrC,MAAa,KAAK;IAIjB,EAAE,CAAS;IAIX,IAAI,CAAY;IAGhB,GAAG,CAAS;IAGZ,KAAK,CAAS;IAId,IAAI,CAAW;IAGf,QAAQ,CAAS;IAEjB,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1BD,sBA0BC;AAtBA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAIX;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;mCACd;AAGhB;IADC,IAAA,0BAAM,GAAE;;kCACG;AAGZ;IADC,IAAA,0BAAM,GAAE;;oCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;mCACf;AAGf;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;uCACb"}
|
package/lib/models/author.d.ts
CHANGED
package/lib/models/author.js
CHANGED
@@ -19,21 +19,46 @@ class Author {
|
|
19
19
|
imageUrl;
|
20
20
|
totalPosts;
|
21
21
|
totalQuestionsComments;
|
22
|
+
totalQuestions;
|
22
23
|
constructor(props) {
|
23
24
|
Object.assign(this, props);
|
24
25
|
}
|
25
26
|
}
|
26
27
|
exports.Author = Author;
|
27
28
|
__decorate([
|
29
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
28
30
|
(0, class_transformer_1.Type)(() => Number),
|
29
31
|
__metadata("design:type", Number)
|
30
32
|
], Author.prototype, "id", void 0);
|
31
33
|
__decorate([
|
34
|
+
(0, class_transformer_1.Expose)(),
|
35
|
+
__metadata("design:type", String)
|
36
|
+
], Author.prototype, "slug", void 0);
|
37
|
+
__decorate([
|
38
|
+
(0, class_transformer_1.Expose)(),
|
39
|
+
__metadata("design:type", String)
|
40
|
+
], Author.prototype, "name", void 0);
|
41
|
+
__decorate([
|
42
|
+
(0, class_transformer_1.Expose)(),
|
43
|
+
__metadata("design:type", String)
|
44
|
+
], Author.prototype, "biography", void 0);
|
45
|
+
__decorate([
|
46
|
+
(0, class_transformer_1.Expose)(),
|
47
|
+
__metadata("design:type", String)
|
48
|
+
], Author.prototype, "imageUrl", void 0);
|
49
|
+
__decorate([
|
50
|
+
(0, class_transformer_1.Expose)(),
|
32
51
|
(0, class_transformer_1.Type)(() => Number),
|
33
52
|
__metadata("design:type", Number)
|
34
53
|
], Author.prototype, "totalPosts", void 0);
|
35
54
|
__decorate([
|
55
|
+
(0, class_transformer_1.Expose)(),
|
36
56
|
(0, class_transformer_1.Type)(() => Number),
|
37
57
|
__metadata("design:type", Number)
|
38
58
|
], Author.prototype, "totalQuestionsComments", void 0);
|
59
|
+
__decorate([
|
60
|
+
(0, class_transformer_1.Expose)(),
|
61
|
+
(0, class_transformer_1.Type)(() => Number),
|
62
|
+
__metadata("design:type", Number)
|
63
|
+
], Author.prototype, "totalQuestions", void 0);
|
39
64
|
//# sourceMappingURL=author.js.map
|
package/lib/models/author.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/models/author.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"author.js","sourceRoot":"","sources":["../../src/models/author.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,MAAM;IAIlB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,IAAI,CAAS;IAGb,SAAS,CAAS;IAGlB,QAAQ,CAAS;IAIjB,UAAU,CAAS;IAInB,sBAAsB,CAAS;IAO/B,cAAc,CAAS;IAEvB,YAAY,KAAuB;QAClC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AApCD,wBAoCC;AAhCA;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;AAGb;IADC,IAAA,0BAAM,GAAE;;oCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;yCACS;AAGlB;IADC,IAAA,0BAAM,GAAE;;wCACQ;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;0CACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sDACY;AAO/B;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACI"}
|
package/lib/models/boost.js
CHANGED
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Boost = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
14
|
const post_1 = require("./post");
|
15
|
-
class Boost {
|
15
|
+
let Boost = class Boost {
|
16
16
|
id;
|
17
17
|
title;
|
18
18
|
startDate;
|
@@ -22,26 +22,39 @@ class Boost {
|
|
22
22
|
constructor(props) {
|
23
23
|
Object.assign(this, props);
|
24
24
|
}
|
25
|
-
}
|
25
|
+
};
|
26
26
|
exports.Boost = Boost;
|
27
27
|
__decorate([
|
28
|
+
(0, class_transformer_1.Expose)(),
|
28
29
|
(0, class_transformer_1.Type)(() => Number),
|
29
30
|
__metadata("design:type", Number)
|
30
31
|
], Boost.prototype, "id", void 0);
|
31
32
|
__decorate([
|
33
|
+
(0, class_transformer_1.Expose)(),
|
34
|
+
__metadata("design:type", String)
|
35
|
+
], Boost.prototype, "title", void 0);
|
36
|
+
__decorate([
|
37
|
+
(0, class_transformer_1.Expose)(),
|
32
38
|
(0, class_transformer_1.Type)(() => Date),
|
33
39
|
__metadata("design:type", Date)
|
34
40
|
], Boost.prototype, "startDate", void 0);
|
35
41
|
__decorate([
|
42
|
+
(0, class_transformer_1.Expose)(),
|
36
43
|
(0, class_transformer_1.Type)(() => Date),
|
37
44
|
__metadata("design:type", Date)
|
38
45
|
], Boost.prototype, "endDate", void 0);
|
39
46
|
__decorate([
|
47
|
+
(0, class_transformer_1.Expose)(),
|
40
48
|
(0, class_transformer_1.Type)(() => Number),
|
41
49
|
__metadata("design:type", Number)
|
42
50
|
], Boost.prototype, "totalItems", void 0);
|
43
51
|
__decorate([
|
52
|
+
(0, class_transformer_1.Expose)(),
|
44
53
|
(0, class_transformer_1.Type)(() => post_1.Post),
|
45
54
|
__metadata("design:type", Array)
|
46
55
|
], Boost.prototype, "items", void 0);
|
56
|
+
exports.Boost = Boost = __decorate([
|
57
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
58
|
+
__metadata("design:paramtypes", [Object])
|
59
|
+
], Boost);
|
47
60
|
//# sourceMappingURL=boost.js.map
|
package/lib/models/boost.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"boost.js","sourceRoot":"","sources":["../../src/models/boost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"boost.js","sourceRoot":"","sources":["../../src/models/boost.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAGvB,IAAM,KAAK,GAAX,MAAM,KAAK;IAIjB,EAAE,CAAS;IAGX,KAAK,CAAS;IAId,SAAS,CAAO;IAIhB,OAAO,CAAO;IAId,UAAU,CAAS;IAInB,KAAK,CAAS;IAEd,YAAY,KAAsB;QACjC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD,CAAA;AA5BY,sBAAK;AAIjB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;iCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;oCACK;AAId;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;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACA;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;oCACH;gBAvBF,KAAK;IADjB,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;GACjB,KAAK,CA4BjB"}
|
package/lib/models/brand.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { AccountStatusType, ModuleType, PostType, SettingType } from '../enums';
|
2
2
|
import { Publisher } from './publisher';
|
3
|
+
import { Link } from './link';
|
3
4
|
export declare class Brand {
|
4
5
|
id: number;
|
5
6
|
name: string;
|
@@ -19,6 +20,9 @@ export declare class Brand {
|
|
19
20
|
settings: BrandSetting[];
|
20
21
|
publishers: Publisher[];
|
21
22
|
constructor(props?: Partial<Brand>);
|
23
|
+
getMobileStoreLinks(): Link[];
|
24
|
+
getSocialLinks(): Link[];
|
25
|
+
getLegalLinks(): Link[];
|
22
26
|
}
|
23
27
|
export declare class BrandSetting {
|
24
28
|
id: number;
|
package/lib/models/brand.js
CHANGED
@@ -11,7 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.BrandSetting = exports.Brand = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
+
const enums_1 = require("../enums");
|
14
15
|
const publisher_1 = require("./publisher");
|
16
|
+
const link_1 = require("./link");
|
15
17
|
class Brand {
|
16
18
|
id;
|
17
19
|
name;
|
@@ -33,28 +35,147 @@ class Brand {
|
|
33
35
|
constructor(props) {
|
34
36
|
Object.assign(this, props);
|
35
37
|
}
|
38
|
+
getMobileStoreLinks() {
|
39
|
+
if (!this.settings) {
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
const def = {
|
43
|
+
LINK_PLAY_STORE_URL: ['fab', 'google-play'],
|
44
|
+
LINK_APPLE_STORE_URL: ['fab', 'app-store'],
|
45
|
+
};
|
46
|
+
return this.settings
|
47
|
+
.filter(i => def[i.name])
|
48
|
+
.map(i => (new link_1.Link({
|
49
|
+
id: i.name,
|
50
|
+
title: i.title,
|
51
|
+
href: i.value,
|
52
|
+
icon: def[i.name]
|
53
|
+
})));
|
54
|
+
}
|
55
|
+
getSocialLinks() {
|
56
|
+
if (!this.settings) {
|
57
|
+
return;
|
58
|
+
}
|
59
|
+
const ICON = {
|
60
|
+
SOCIAL_FACEBOOK_URL: ['fab', 'facebook-f'],
|
61
|
+
SOCIAL_INSTAGRAM_URL: ['fab', 'instagram'],
|
62
|
+
SOCIAL_TWITTER_URL: ['fab', 'x-twitter'],
|
63
|
+
SOCIAL_LINKEDIN_URL: ['fab', 'linkedin-in'],
|
64
|
+
};
|
65
|
+
return this.settings
|
66
|
+
.filter(i => i.scope === enums_1.SettingType.Social)
|
67
|
+
.map(i => (new link_1.Link({
|
68
|
+
id: i.name,
|
69
|
+
title: i.title,
|
70
|
+
href: i.value,
|
71
|
+
icon: ICON[i.name]
|
72
|
+
})));
|
73
|
+
}
|
74
|
+
getLegalLinks() {
|
75
|
+
if (!this.settings) {
|
76
|
+
return;
|
77
|
+
}
|
78
|
+
return this.settings
|
79
|
+
.filter(i => i.scope === enums_1.SettingType.Legal)
|
80
|
+
.map((i) => (new link_1.Link({
|
81
|
+
id: i.name.toLowerCase().replaceAll('_', '-'),
|
82
|
+
title: i.title,
|
83
|
+
url: i.value.replaceAll(this.url, '')
|
84
|
+
})));
|
85
|
+
}
|
36
86
|
}
|
37
87
|
exports.Brand = Brand;
|
38
88
|
__decorate([
|
89
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
39
90
|
(0, class_transformer_1.Type)(() => Number),
|
40
91
|
__metadata("design:type", Number)
|
41
92
|
], Brand.prototype, "id", void 0);
|
42
93
|
__decorate([
|
94
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
95
|
+
__metadata("design:type", String)
|
96
|
+
], Brand.prototype, "name", void 0);
|
97
|
+
__decorate([
|
98
|
+
(0, class_transformer_1.Expose)(),
|
99
|
+
__metadata("design:type", String)
|
100
|
+
], Brand.prototype, "title", void 0);
|
101
|
+
__decorate([
|
102
|
+
(0, class_transformer_1.Expose)(),
|
103
|
+
__metadata("design:type", String)
|
104
|
+
], Brand.prototype, "slogan", void 0);
|
105
|
+
__decorate([
|
106
|
+
(0, class_transformer_1.Expose)(),
|
107
|
+
__metadata("design:type", String)
|
108
|
+
], Brand.prototype, "url", void 0);
|
109
|
+
__decorate([
|
110
|
+
(0, class_transformer_1.Expose)(),
|
111
|
+
__metadata("design:type", String)
|
112
|
+
], Brand.prototype, "email", void 0);
|
113
|
+
__decorate([
|
114
|
+
(0, class_transformer_1.Expose)(),
|
115
|
+
__metadata("design:type", String)
|
116
|
+
], Brand.prototype, "description", void 0);
|
117
|
+
__decorate([
|
118
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
119
|
+
__metadata("design:type", String)
|
120
|
+
], Brand.prototype, "language", void 0);
|
121
|
+
__decorate([
|
122
|
+
(0, class_transformer_1.Expose)(),
|
123
|
+
__metadata("design:type", String)
|
124
|
+
], Brand.prototype, "logo", void 0);
|
125
|
+
__decorate([
|
126
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
127
|
+
__metadata("design:type", String)
|
128
|
+
], Brand.prototype, "status", void 0);
|
129
|
+
__decorate([
|
130
|
+
(0, class_transformer_1.Expose)(),
|
43
131
|
(0, class_transformer_1.Type)(() => Boolean),
|
44
132
|
__metadata("design:type", Boolean)
|
45
133
|
], Brand.prototype, "maintaince", void 0);
|
46
134
|
__decorate([
|
135
|
+
(0, class_transformer_1.Expose)(),
|
136
|
+
__metadata("design:type", String)
|
137
|
+
], Brand.prototype, "apiVersion", void 0);
|
138
|
+
__decorate([
|
139
|
+
(0, class_transformer_1.Expose)(),
|
47
140
|
(0, class_transformer_1.Type)(() => Boolean),
|
48
141
|
__metadata("design:type", Boolean)
|
49
142
|
], Brand.prototype, "appUpgrade", void 0);
|
50
143
|
__decorate([
|
144
|
+
(0, class_transformer_1.Expose)(),
|
145
|
+
__metadata("design:type", Array)
|
146
|
+
], Brand.prototype, "modules", void 0);
|
147
|
+
__decorate([
|
148
|
+
(0, class_transformer_1.Expose)(),
|
149
|
+
__metadata("design:type", Array)
|
150
|
+
], Brand.prototype, "contentTypes", void 0);
|
151
|
+
__decorate([
|
152
|
+
(0, class_transformer_1.Expose)(),
|
51
153
|
(0, class_transformer_1.Type)(() => BrandSetting),
|
52
154
|
__metadata("design:type", Array)
|
53
155
|
], Brand.prototype, "settings", void 0);
|
54
156
|
__decorate([
|
157
|
+
(0, class_transformer_1.Expose)(),
|
55
158
|
(0, class_transformer_1.Type)(() => publisher_1.Publisher),
|
56
159
|
__metadata("design:type", Array)
|
57
160
|
], Brand.prototype, "publishers", void 0);
|
161
|
+
__decorate([
|
162
|
+
(0, class_transformer_1.Expose)(),
|
163
|
+
__metadata("design:type", Function),
|
164
|
+
__metadata("design:paramtypes", []),
|
165
|
+
__metadata("design:returntype", Array)
|
166
|
+
], Brand.prototype, "getMobileStoreLinks", null);
|
167
|
+
__decorate([
|
168
|
+
(0, class_transformer_1.Expose)(),
|
169
|
+
__metadata("design:type", Function),
|
170
|
+
__metadata("design:paramtypes", []),
|
171
|
+
__metadata("design:returntype", Array)
|
172
|
+
], Brand.prototype, "getSocialLinks", null);
|
173
|
+
__decorate([
|
174
|
+
(0, class_transformer_1.Expose)(),
|
175
|
+
__metadata("design:type", Function),
|
176
|
+
__metadata("design:paramtypes", []),
|
177
|
+
__metadata("design:returntype", Array)
|
178
|
+
], Brand.prototype, "getLegalLinks", null);
|
58
179
|
class BrandSetting {
|
59
180
|
id;
|
60
181
|
scope;
|
@@ -69,10 +190,31 @@ class BrandSetting {
|
|
69
190
|
}
|
70
191
|
exports.BrandSetting = BrandSetting;
|
71
192
|
__decorate([
|
72
|
-
(0, class_transformer_1.
|
193
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
73
194
|
__metadata("design:type", Number)
|
74
195
|
], BrandSetting.prototype, "id", void 0);
|
75
196
|
__decorate([
|
197
|
+
(0, class_transformer_1.Expose)(),
|
198
|
+
__metadata("design:type", String)
|
199
|
+
], BrandSetting.prototype, "scope", void 0);
|
200
|
+
__decorate([
|
201
|
+
(0, class_transformer_1.Expose)(),
|
202
|
+
__metadata("design:type", String)
|
203
|
+
], BrandSetting.prototype, "name", void 0);
|
204
|
+
__decorate([
|
205
|
+
(0, class_transformer_1.Expose)(),
|
206
|
+
__metadata("design:type", String)
|
207
|
+
], BrandSetting.prototype, "value", void 0);
|
208
|
+
__decorate([
|
209
|
+
(0, class_transformer_1.Expose)(),
|
210
|
+
__metadata("design:type", String)
|
211
|
+
], BrandSetting.prototype, "title", void 0);
|
212
|
+
__decorate([
|
213
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
214
|
+
__metadata("design:type", String)
|
215
|
+
], BrandSetting.prototype, "description", void 0);
|
216
|
+
__decorate([
|
217
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
76
218
|
(0, class_transformer_1.Type)(() => Brand),
|
77
219
|
__metadata("design:type", Brand)
|
78
220
|
], BrandSetting.prototype, "brand", void 0);
|
package/lib/models/brand.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/models/brand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"brand.js","sourceRoot":"","sources":["../../src/models/brand.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAEjD,oCAAgF;AAChF,2CAAwC;AACxC,iCAA8B;AAE9B,MAAa,KAAK;IAIjB,EAAE,CAAS;IAOX,IAAI,CAAS;IAMb,KAAK,CAAS;IAMd,MAAM,CAAS;IAMf,GAAG,CAAS;IAMZ,KAAK,CAAS;IAMd,WAAW,CAAS;IAMpB,QAAQ,CAAS;IAMjB,IAAI,CAAS;IAMb,MAAM,CAAoB;IAO1B,UAAU,CAAU;IAMpB,UAAU,CAAS;IAOnB,UAAU,CAAU;IAMpB,OAAO,CAAe;IAMtB,YAAY,CAAa;IAOzB,QAAQ,CAAiB;IAOzB,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;QAKD,MAAM,GAAG,GAA+B;YACvC,mBAAmB,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC;YAC3C,oBAAoB,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC;SAC1C,CAAC;QAEF,OAAO,IAAI,CAAC,QAAQ;aAClB,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;aACxB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CACT,IAAI,WAAI,CAAC;YACR,EAAE,EAAE,CAAC,CAAC,IAAI;YACV,KAAK,EAAE,CAAC,CAAC,KAAK;YACd,IAAI,EAAE,CAAC,CAAC,KAAK;YACb,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;SACjB,CAAC,CACF,CAAC,CAAC;IACL,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,GAAE;;;;2CA2BR;AASD;IADC,IAAA,0BAAM,GAAE;;;;0CAgBR;AAGF,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,KAAK,CAAC;8BACX,KAAK;2CAAC"}
|
package/lib/models/category.js
CHANGED
@@ -24,14 +24,29 @@ class Category {
|
|
24
24
|
}
|
25
25
|
exports.Category = Category;
|
26
26
|
__decorate([
|
27
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
27
28
|
(0, class_transformer_1.Type)(() => Number),
|
28
29
|
__metadata("design:type", Number)
|
29
30
|
], Category.prototype, "id", void 0);
|
30
31
|
__decorate([
|
32
|
+
(0, class_transformer_1.Expose)(),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], Category.prototype, "title", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, class_transformer_1.Expose)(),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], Category.prototype, "hash", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, class_transformer_1.Expose)(),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], Category.prototype, "description", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
31
45
|
(0, class_transformer_1.Type)(() => Number),
|
32
46
|
__metadata("design:type", Number)
|
33
47
|
], Category.prototype, "sort", void 0);
|
34
48
|
__decorate([
|
49
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
35
50
|
(0, class_transformer_1.Type)(() => Boolean),
|
36
51
|
__metadata("design:type", Boolean)
|
37
52
|
], Category.prototype, "questionEnabled", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"category.js","sourceRoot":"","sources":["../../src/models/category.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,KAAK,CAAS;IAGd,IAAI,CAAS;IAGb,WAAW,CAAS;IAIpB,IAAI,CAAS;IAIb,eAAe,CAAU;IAEzB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AA1BD,4BA0BC;AAtBA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;uCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;sCACI;AAGb;IADC,IAAA,0BAAM,GAAE;;6CACW;AAIpB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACN;AAIb;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;iDACK"}
|
package/lib/models/collection.js
CHANGED
@@ -22,10 +22,16 @@ class Collection {
|
|
22
22
|
}
|
23
23
|
exports.Collection = Collection;
|
24
24
|
__decorate([
|
25
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
25
26
|
(0, class_transformer_1.Type)(() => Number),
|
26
27
|
__metadata("design:type", Number)
|
27
28
|
], Collection.prototype, "id", void 0);
|
28
29
|
__decorate([
|
30
|
+
(0, class_transformer_1.Expose)(),
|
31
|
+
__metadata("design:type", String)
|
32
|
+
], Collection.prototype, "title", void 0);
|
33
|
+
__decorate([
|
34
|
+
(0, class_transformer_1.Expose)(),
|
29
35
|
(0, class_transformer_1.Type)(() => post_1.Post),
|
30
36
|
__metadata("design:type", Array)
|
31
37
|
], Collection.prototype, "items", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../src/models/collection.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,iCAA8B;AAK9B,MAAa,UAAU;IAItB,EAAE,CAAS;IAGX,KAAK,CAAS;IAId,KAAK,CAAS;IAEd,YAAY,KAA2B;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhBD,gCAgBC;AAZA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACR;AAGX;IADC,IAAA,0BAAM,GAAE;;yCACK;AAId;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;yCACH"}
|
package/lib/models/feedback.js
CHANGED
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.FeedbackOption = exports.FeedbackItem = exports.Feedback = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
+
const enums_1 = require("../enums");
|
14
15
|
class Feedback {
|
15
16
|
id;
|
16
17
|
type;
|
@@ -23,10 +24,24 @@ class Feedback {
|
|
23
24
|
}
|
24
25
|
exports.Feedback = Feedback;
|
25
26
|
__decorate([
|
27
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
26
28
|
(0, class_transformer_1.Type)(() => Number),
|
27
29
|
__metadata("design:type", Number)
|
28
30
|
], Feedback.prototype, "id", void 0);
|
29
31
|
__decorate([
|
32
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
33
|
+
__metadata("design:type", String)
|
34
|
+
], Feedback.prototype, "type", void 0);
|
35
|
+
__decorate([
|
36
|
+
(0, class_transformer_1.Expose)(),
|
37
|
+
__metadata("design:type", String)
|
38
|
+
], Feedback.prototype, "title", void 0);
|
39
|
+
__decorate([
|
40
|
+
(0, class_transformer_1.Expose)(),
|
41
|
+
__metadata("design:type", String)
|
42
|
+
], Feedback.prototype, "description", void 0);
|
43
|
+
__decorate([
|
44
|
+
(0, class_transformer_1.Expose)(),
|
30
45
|
(0, class_transformer_1.Type)(() => FeedbackItem),
|
31
46
|
__metadata("design:type", Array)
|
32
47
|
], Feedback.prototype, "items", void 0);
|
@@ -43,22 +58,31 @@ class FeedbackItem {
|
|
43
58
|
}
|
44
59
|
exports.FeedbackItem = FeedbackItem;
|
45
60
|
__decorate([
|
61
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
46
62
|
(0, class_transformer_1.Type)(() => Number),
|
47
63
|
__metadata("design:type", Number)
|
48
64
|
], FeedbackItem.prototype, "id", void 0);
|
49
65
|
__decorate([
|
66
|
+
(0, class_transformer_1.Expose)(),
|
67
|
+
__metadata("design:type", String)
|
68
|
+
], FeedbackItem.prototype, "question", void 0);
|
69
|
+
__decorate([
|
70
|
+
(0, class_transformer_1.Expose)(),
|
50
71
|
(0, class_transformer_1.Type)(() => Boolean),
|
51
72
|
__metadata("design:type", Boolean)
|
52
73
|
], FeedbackItem.prototype, "multiple", void 0);
|
53
74
|
__decorate([
|
75
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
54
76
|
(0, class_transformer_1.Type)(() => Number),
|
55
77
|
__metadata("design:type", Number)
|
56
78
|
], FeedbackItem.prototype, "sort", void 0);
|
57
79
|
__decorate([
|
80
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
58
81
|
(0, class_transformer_1.Type)(() => Boolean),
|
59
82
|
__metadata("design:type", Boolean)
|
60
83
|
], FeedbackItem.prototype, "readonly", void 0);
|
61
84
|
__decorate([
|
85
|
+
(0, class_transformer_1.Expose)(),
|
62
86
|
(0, class_transformer_1.Type)(() => FeedbackOption),
|
63
87
|
__metadata("design:type", Array)
|
64
88
|
], FeedbackItem.prototype, "options", void 0);
|
@@ -73,14 +97,21 @@ class FeedbackOption {
|
|
73
97
|
}
|
74
98
|
exports.FeedbackOption = FeedbackOption;
|
75
99
|
__decorate([
|
100
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
76
101
|
(0, class_transformer_1.Type)(() => Number),
|
77
102
|
__metadata("design:type", Number)
|
78
103
|
], FeedbackOption.prototype, "id", void 0);
|
79
104
|
__decorate([
|
105
|
+
(0, class_transformer_1.Expose)(),
|
106
|
+
__metadata("design:type", String)
|
107
|
+
], FeedbackOption.prototype, "content", void 0);
|
108
|
+
__decorate([
|
109
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
80
110
|
(0, class_transformer_1.Type)(() => Number),
|
81
111
|
__metadata("design:type", Number)
|
82
112
|
], FeedbackOption.prototype, "sort", void 0);
|
83
113
|
__decorate([
|
114
|
+
(0, class_transformer_1.Expose)(),
|
84
115
|
(0, class_transformer_1.Type)(() => Boolean),
|
85
116
|
__metadata("design:type", Boolean)
|
86
117
|
], FeedbackOption.prototype, "isSelected", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/models/feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"feedback.js","sourceRoot":"","sources":["../../src/models/feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AACjD,oCAAoC;AAEpC,MAAa,QAAQ;IAIpB,EAAE,CAAS;IAGX,IAAI,CAAW;IAGf,KAAK,CAAS;IAGd,WAAW,CAAQ;IAInB,KAAK,CAAiB;IAEtB,YAAY,KAAyB;QACpC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAtBD,4BAsBC;AAlBA;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACR;AAGX;IADC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;sCACf;AAGf;IADC,IAAA,0BAAM,GAAE;;uCACK;AAGd;IADC,IAAA,0BAAM,GAAE;;6CACU;AAInB;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,YAAY,CAAC;;uCACH;AAOvB,MAAa,YAAY;IAIxB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAIjB,QAAQ,CAAU;IAIlB,IAAI,CAAS;IAIb,QAAQ,CAAU;IAIlB,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OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;4CACN;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACA"}
|
package/lib/models/gallery.js
CHANGED
@@ -21,6 +21,15 @@ class GalleryItem {
|
|
21
21
|
}
|
22
22
|
exports.GalleryItem = GalleryItem;
|
23
23
|
__decorate([
|
24
|
+
(0, class_transformer_1.Expose)(),
|
25
|
+
__metadata("design:type", String)
|
26
|
+
], GalleryItem.prototype, "title", void 0);
|
27
|
+
__decorate([
|
28
|
+
(0, class_transformer_1.Expose)(),
|
29
|
+
__metadata("design:type", String)
|
30
|
+
], GalleryItem.prototype, "imageUrl", void 0);
|
31
|
+
__decorate([
|
32
|
+
(0, class_transformer_1.Expose)({ groups: ['admin'] }),
|
24
33
|
(0, class_transformer_1.Type)(() => Number),
|
25
34
|
__metadata("design:type", Number)
|
26
35
|
], GalleryItem.prototype, "sort", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../src/models/gallery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"gallery.js","sourceRoot":"","sources":["../../src/models/gallery.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAiD;AAKjD,MAAa,WAAW;IAGvB,KAAK,CAAS;IAGd,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAEb,YAAY,KAA4B;QACvC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAfD,kCAeC;AAZA;IADC,IAAA,0BAAM,GAAE;;0CACK;AAGd;IADC,IAAA,0BAAM,GAAE;;6CACQ;AAIjB;IAFC,IAAA,0BAAM,EAAC,EAAE,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACN"}
|
package/lib/models/item.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/models/item.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAyC;AAWzC,MAAa,IAAI;IAKhB,IAAI,CAAU;IAMd,KAAK,CAAU;IAKf,KAAK,CAAK;IAMV,MAAM,CAAW;IAMjB,QAAQ,CAAW;IAKnB,IAAI,CAAY;IAKhB,YAAY,CAAY;IAKxB,KAAK,CAAO;
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../src/models/item.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAyC;AAWzC,MAAa,IAAI;IAKhB,IAAI,CAAU;IAMd,KAAK,CAAU;IAKf,KAAK,CAAK;IAMV,MAAM,CAAW;IAMjB,QAAQ,CAAW;IAKnB,IAAI,CAAY;IAKhB,YAAY,CAAY;IAKxB,KAAK,CAAO;IAEZ,YAAY,KAAqB;QAChC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAhDD,oBAgDC;AA1BA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oCACF;AAMjB;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;sCACA"}
|
package/lib/models/link.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IconProp } from "@fortawesome/fontawesome-svg-core";
|
2
|
-
export declare class
|
2
|
+
export declare class Link {
|
3
3
|
id?: string;
|
4
4
|
title?: string;
|
5
5
|
icon?: IconProp;
|
@@ -9,4 +9,5 @@ export declare class ILink {
|
|
9
9
|
href?: string;
|
10
10
|
active?: boolean;
|
11
11
|
permission?: string;
|
12
|
+
constructor(props: Partial<Link>);
|
12
13
|
}
|
package/lib/models/link.js
CHANGED
@@ -9,9 +9,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
10
|
};
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.
|
12
|
+
exports.Link = void 0;
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
14
|
-
class
|
14
|
+
class Link {
|
15
15
|
id;
|
16
16
|
title;
|
17
17
|
icon;
|
@@ -21,10 +21,13 @@ class ILink {
|
|
21
21
|
href;
|
22
22
|
active;
|
23
23
|
permission;
|
24
|
+
constructor(props) {
|
25
|
+
Object.assign(this, props);
|
26
|
+
}
|
24
27
|
}
|
25
|
-
exports.
|
28
|
+
exports.Link = Link;
|
26
29
|
__decorate([
|
27
30
|
(0, class_transformer_1.Type)(() => Boolean),
|
28
31
|
__metadata("design:type", Boolean)
|
29
|
-
],
|
32
|
+
], Link.prototype, "active", void 0);
|
30
33
|
//# sourceMappingURL=link.js.map
|
package/lib/models/link.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/models/link.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAyC;AAOzC,MAAa,
|
1
|
+
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/models/link.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,yDAAyC;AAOzC,MAAa,IAAI;IAIhB,EAAE,CAAU;IAKZ,KAAK,CAAU;IAKf,IAAI,CAAY;IAKhB,QAAQ,CAAO;IAKf,KAAK,CAAU;IAKf,GAAG,CAAU;IAKb,IAAI,CAAU;IAMd,MAAM,CAAW;IAKjB,UAAU,CAAU;IAEpB,YAAY,KAAoB;QAC/B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IAC5B,CAAC;CACD;AAlDD,oBAkDC;AAVA;IADC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;oCACH"}
|